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

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
/*

 Copyright Google LLC
 SPDX-License-Identifier: Apache-2.0
*/
/*


 Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
     http://www.apache.org/licenses/LICENSE-2.0
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
*/
/*

 Copyright Google LLC All Rights Reserved.

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

 Copyright 2017 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
/*
 SPDX-License-Identifier: Apache-2.0
*/
/*

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

 -----------------------------------------------------------------------------
 Ported from zlib, which is under the following license
 https://github.com/madler/zlib/blob/master/zlib.h

 zlib.h -- interface of the 'zlib' general purpose compression library
   version 1.2.8, April 28th, 2013
   Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler
   This software is provided 'as-is', without any express or implied
   warranty.  In no event will the authors be held liable for any damages
   arising from the use of this software.
   Permission is granted to anyone to use this software for any purpose,
   including commercial applications, and to alter it and redistribute it
   freely, subject to the following restrictions:
   1. The origin of this software must not be misrepresented; you must not
      claim that you wrote the original software. If you use this software
      in a product, an acknowledgment in the product documentation would be
      appreciated but is not required.
   2. Altered source versions must be plainly marked as such, and must not be
      misrepresented as being the original software.
   3. This notice may not be removed or altered from any source distribution.
   Jean-loup Gailly        Mark Adler
   jloup@gzip.org          madler@alumni.caltech.edu
   The data format used by the zlib library is described by RFCs (Request for
   Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950
   (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format).
*/
/*

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

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

 Copyright (c) Felix Böhm
 All rights reserved.

 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:

 Redistributions of source code must retain the above copyright notice, this
 list of conditions and the following disclaimer.

 Redistributions in binary form must reproduce the above copyright notice,
 this list of conditions and the following disclaimer in the documentation
 and/or other materials provided with the distribution.

 THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 OUT OF THE USE OF THIS, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*

 The bulk of this code derives from https://github.com/dmoscrop/fold-case
 But in addition to case-folding, we also normalize whitespace.

 fold-case is Copyright Mathias Bynens <https://mathiasbynens.be/>

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:

     * Redistributions of source code must retain the above copyright
       notice, this list of conditions and the following disclaimer.

     * Redistributions in binary form must reproduce the above
       copyright notice, this list of conditions and the following
       disclaimer in the documentation and/or other materials provided
       with the distribution.

 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*

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


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var Gd,xL$,zPf,K$,oV,af$,BL,rn,YC,HL,oCC,yQf,C$,cQh,TnL,AQ,Z$Q,b$V,LEn,Ku,sVL,YDL,H$h,CO3,Iff,pu,bq,mh,Hs,AQQ,$8,ULC,Is,OE,iq,SDE,w9,q0,i$E,wLf,qDE,EE,vCE,xi,JQf,Kf,NnQ,z8,fff,PO$,G7f,Oc,D0n,KhC,zZ3,aof,o8O,jx,ECO,$i,hP3,x0V,Zu$,QsE,psn,iC,VZQ,bu3,Lh$,B9d,ssV,YE3,$0d,ff,Iod,Oun,AkP,n8C,iud,ki,G4,g8f,N9V,z4,v8L,k7n,foQ,oS,tZP,aS,rk3,cd,Z7,MH,yY,pm,hZn,Pqh,E8d,Bd,xk$,G8h,DkL,z4D,KfP,$0,acV,oiO,bU,lcn,c6L,Xc,WfE,QTh,RS,Bbh,e4D,r6D,sTd,Ycf,IcQ,$kd,gh,dh,Of$,A63,Ukn,ifV,Nbd,PCC,G4E,ygD,zW,cgh,Wzd,cC,WC,
er,Mc,Q$,mu,$Y,F_,bmh,U2,Bhh,Y_n,qc,Nc,HmE,J_,f9,t_,kY,Fzn,CUC,I7C,jSL,OmC,XdC,AgV,UHP,RUQ,n0O,DY,GA,imn,g0h,ucV,wdf,dH3,q_C,TA,v0f,W5,ez,ZY,M1,pl,f7O,V6,k4C,GWd,r4,Dcf,Ku3,zof,YR,aBE,oYP,mV,$R,c_L,Cl,eof,Z9E,I0,QFD,MrL,pCd,VrE,b9C,Luf,XF,BCf,r_3,A1,sFP,Y2E,Us,R0,Sz,nl,mcn,$cO,H9V,iX,CHh,IBL,jFP,w4,N1,v5,J1,t1,kR,P5,O93,XCE,A_n,UcQ,RoE,S2d,nYV,i9O,gYL,u_$,dc$,h1,wCQ,q2V,D_,NC$,zj,ah,vY3,trV,kWf,PH3,hod,x1f,GAE,aYO,oR$,y1h,lYh,c1V,T4C,WVn,Q0E,lN,p5D,VzE,blL,LVh,B4f,r1n,YsP,RGf,SsL,nR$,gRd,uFC,p2,d1C,
L2,J1L,fYh,tz$,kAn,PXD,ERE,hGD,xYd,mF,DYn,N4h,KFn,z5C,a_3,oSh,yOL,l_L,cOD,T0f,WFE,MiL,Z2D,Vid,QhD,pu3,B03,rOh,shL,b2Q,mYD,LFL,$Y3,iN,FFL,g0,d0,CNO,jhP,O2$,UYh,N0E,SaP,R53,i2h,unf,nSn,tiE,JOD,kjP,PNf,ES3,h53,xyV,DyQ,GH$,KWf,zCD,aED,oa$,lEd,TMV,WWn,eCf,MBD,Z4O,$yE,tO,FWL,IEP,jKf,O4V,XZO,AEL,RCf,SPP,na3,DE,K4,i4f,qPL,yF,lP,fEE,tBn,aSP,Oxd,ZE,AtP,n9D,RFP,SXD,L4,ixn,g9Q,duO,wlP,qXE,NOC,v9C,Jt3,fSf,sP,kCO,E9d,P1O,xhd,jB,AE,UP,DhO,KSf,zRC,ayL,oT3,lyC,TTn,cmd,JE,tE,ka,EP,YoV,mhD,GC,HTL,$hh,DS,CMO,FSC,nTD,
iTO,gTV,dhL,vTL,fyf,tRd,kZ3,PM3,hR3,Gzh,DUQ,of,oKL,cvh,Tx$,WdQ,exO,ZLn,lbE,abE,zxE,l1,KdC,M_D,p0d,Bxf,bLE,Wl,sAf,mUD,HLD,$UP,FdL,Q9,CIL,jAE,Ib$,OL$,Av3,b1,dUn,qjh,vKd,fbD,t_h,PIV,Y9,Hl,mG,GuL,kzQ,DOL,Cx,oWC,OX,Xq,cuO,eHh,Mlh,QWP,pSE,At,Vlf,bUf,LnL,ruL,sWd,YpD,mO$,$OL,Rf,FnL,CpP,nx,u1,OUh,XSh,AuE,wO,Sp3,nWC,gW$,Pl,vWf,JuO,fvQ,tlf,kuO,GZ,Dy,KT,zZ,hHE,oE,xiP,G1E,DiO,KvO,y2d,c2f,Tuf,lgd,lM,Wvn,Q4n,c6,MmV,pwV,eeV,Vm$,Zy,LvP,Bu3,r2O,s4$,mif,Y9E,HE3,CVL,$iO,j4L,S9d,iEV,uvP,wwE,vq$,NuV,q9f,J2D,tmP,PVD,k1Q,
Eqh,xqQ,GRV,DqV,$T,aPQ,zpQ,oBn,yUd,CT,IE,lPV,T1L,epL,QNV,VSh,pmh,tm,boh,W7f,HoE,$qf,F7L,xK,Cg$,jN3,AUC,SvL,Rpf,uKQ,dq$,wmn,qvV,vBC,PgO,JUP,tSC,kRE,EBV,hpE,Gy$,xpD,KbD,Dpd,Zb,zcP,omP,y$3,WbP,rx,sj,ec3,ZCD,YK,VqP,Ff,CL,IA,r$O,j_,mp3,Av,HCC,$pO,Fbd,CxP,S_,IuV,OCP,Xyf,UpL,Sf3,gmC,dp3,v0,wyh,qfE,N5V,vmQ,J$f,fuC,tq$,kyf,tv,hcd,x5n,Gl$,D5f,Ksd,z9h,aqC,oOO,yNf,lq$,cNd,TBO,WsE,KU,YOO,m53,zu,aW,oW,HW$,$5n,Fsh,C0O,Iq3,jI3,OW$,SOC,nOP,iWE,gOV,usE,el,MO,Qu,pU,LU,BS,r$,wgP,YW,NBh,mn,vOC,JNO,HS,fqD,t7E,kld,a2C,
yrh,eDd,pkh,Q_f,o_h,V5h,BKV,UWh,$Wf,g_h,C7P,i3L,uXd,Op,wk$,Au,NKO,v_f,f23,t5L,km3,E_f,nU,xBh,GUf,DBL,KgO,zSC,aDf,oA$,hDf,cSC,TAf,WgC,g$,VTV,btE,piL,BAf,rSh,Y4V,mBd,snV,OtL,ASO,RSV,nAO,Ep,q4n,wiC,tTD,Poh,EAV,hSf,xvf,Gaf,DvQ,yh,Wy3,Z7f,coL,l6V,e$O,z$E,QeL,$vf,b7L,LyQ,Bcf,SYD,i7V,R$V,NcP,UvC,Kyn,qYE,V2O,H73,nrV,M2E,orn,a6D,yo$,TcQ,Ao$,Yq,o$f,lJC,cnC,TkD,Wwf,BkD,$JQ,Fwf,R4,IJf,XhE,SIL,RfV,izE,g$E,whf,dJf,qID,vw,NkE,v$h,fJf,JnE,J2,xsh,hfV,E$P,zaQ,GYf,aXV,KjL,o7h,t2,ya3,WjL,ca$,TGh,ZHd,MsV,pHn,h2,Ljf,VsV,
BGP,msL,HHd,C_f,jl$,Ko,zR,UsE,RaE,aN,oN,SuO,yr,lg,n7E,cm,iHQ,TR,g7O,u8d,eS,ds3,wHV,qu3,NGD,v7f,fXC,JaQ,kY3,haD,E7V,xFO,Gx$,tsP,DFO,awE,zMC,P_Q,oLV,ycC,Vr,lwL,TlQ,ccL,eMn,Zsn,QOO,MUL,pq$,Lo,bs$,LYC,VUE,rcC,sOP,Yg3,FYV,jOQ,RMd,gLL,Bm,wqO,qgD,r1,Nlh,Hm,$B,PAP,YB,IN,ELh,hML,GFV,DXC,z_$,o5D,yj3,lkC,cjO,e_D,V8E,Qyf,WIP,b1d,LIV,AU,pbP,Bjf,SS,rj3,syn,YHL,mXd,CQV,H1V,FIf,Xbh,AjP,i1Q,n53,dXP,fkD,t8h,PQn,h_O,xtP,DtV,KJO,ztO,o13,yRf,lUn,WJE,Qpf,p1L,etC,b6L,Bv$,LJP,VJL,rRQ,mtO,H6$,$tP,FJD,Chf,tU,kB,hU,Gy,O6O,
X1L,UtP,n1L,Du,KC,i6h,aZ,dtf,w1E,q$C,yz,tJE,htQ,GK$,DVL,KHE,z0L,ahC,lhn,cy,ced,e0V,Ty,ZrE,pVP,VI3,brP,QXE,mVE,FHD,Hr3,Crd,OrO,Ae$,R0L,gpD,irf,qkn,Qz,NPC,vp3,Vz,Jef,bx,fhL,tI$,kKO,EpP,PrQ,h0L,x2D,GEC,D2L,cZE,WqO,ZXh,es3,o23,zsf,QmP,VwP,smO,Yxn,$2Q,X_E,U2L,sf,RsO,n2D,iXE,u$n,NgD,JZn,twP,kEQ,PdL,E2f,K5f,hsD,y3n,lzd,TiC,Hy,ey3,Zwd,MHL,QYP,pA$,VHO,bwV,Bin,r3L,IZ,sYf,YRD,$_P,Of,Hwd,CvO,XAP,A$,A33,U_O,RyQ,iwE,ghL,SR$,d_P,vhd,J3Q,fzV,g5,tHh,hyQ,x93,qp,KRV,GXf,D9D,aC3,yxh,lCf,eAL,Q6E,MuV,ZiO,p$f,bif,LRC,HiD,
Bqn,$93,ICh,FRL,RAE,iiO,uud,w$d,EJP,xlP,Gsf,arO,yD$,ms,AN,ZyE,VYO,pR$,LLC,BUn,sbn,rDL,Yq3,mlL,UO,Z3Q,MYP,byL,QbD,OO,N5,FLf,CGd,Ird,jbC,vg,OyL,JN,XRE,ADV,UlV,RrQ,kO,SqP,gGn,dlL,wRP,ksL,EGV,hrC,xMf,DMn,KK$,a_,aKf,oyh,yyO,lKn,cyL,TrD,eqf,MjL,pef,Vj$,YBL,ryV,mMQ,ziV,amn,e5,ooO,y7Q,lmf,WUL,ZgP,ei$,Q8O,VVh,Vy,LUn,BHh,bgL,r7h,s8n,m7V,$7L,HgL,FU3,YdD,CKf,ImL,j8C,OgC,Xph,A7O,U7E,Rif,Sdn,goh,ig$,uaf,wpf,d7O,b7,qdV,J7L,EoL,NHV,hin,x6D,GcV,D6O,Ted,ezD,ZB3,QLQ,poL,j5,BeE,m6D,$6h,OA,jL3,Iid,OBP,UA,Xod,AzE,U6V,
SVf,nVn,iBE,gVh,d6n,won,hz3,t1f,PzE,G$3,xZ3,DZV,KaC,aOf,yi$,cif,WaD,rid,mZd,$ZP,FaP,Caf,IOD,jrC,XGf,Ain,S3f,nPf,iJV,gPO,upC,dZf,wGf,q3L,JiL,PaO,f3,tr,k_,Pk,EPV,xA,xzn,cGP,QQQ,ZF$,OFV,XPQ,AGh,Dzf,lHh,aHf,RJV,Sef,ntC,W3L,gt3,dzQ,qeL,JGO,fHd,eT,Q7,pt,GSD,xCO,aNL,obO,QJD,VMO,Lef,BVf,YCD,HhD,mCL,C9O,jJL,nbO,RlQ,Xx$,SCf,AXO,ihV,wxL,O4,EbC,tMh,xED,GkL,K1f,zKd,AS,aeh,leE,TEC,W1Q,ZSd,eKP,ST,L1d,wA,rp$,sGQ,NB,YnP,mED,HSV,$E$,F1D,C4D,IeD,jGL,OSD,XTC,Ap3,UED,RKD,Sn3,nlf,vi,iSQ,glh,uLC,dEC,wTO,qnQ,NEn,vln,Jpf,
fed,tyC,kkD,ft,ElQ,xdh,DdE,aQE,lQh,cMf,T8h,e2O,Mef,QdE,ptC,za,rMf,Lp3,sdQ,YJd,mdD,Fph,CmL,IQf,OM3,p7,AMO,Mv,R2D,SJL,Vf,nnf,iMO,gnL,u2L,L7,N8L,JMC,EnC,Pmf,xgL,GgP,$r,DgV,KZD,aIL,yKV,lId,TR$,WZP,ocf,eQ3,VGh,rKn,sHh,Fw,YbC,mgh,IId,HjQ,FZf,CuD,RQf,OjQ,Sbf,ijV,uTQ,dgD,w2C,qbV,NRf,vcE,fI$,tG$,kgd,PuV,EcP,xDL,DDL,a9n,cW3,eVf,Mbf,Vbh,UY,bd3,LxL,B_V,rWE,sDQ,mDh,HdO,$Df,Fxf,C2f,I9C,jDC,Odf,XOd,AWh,UDC,Shf,RVE,gd$,dDd,n7,wOL,vdd,N_h,uD,tbL,knn,hVV,GQd,xSf,EdQ,zuO,K_C,c9P,aLE,vD,y9$,pU3,euC,ZNf,MCd,QqP,VCC,L_L,
bNf,Jo,f7,$SV,r9E,HNL,mSL,sqf,YL3,ILL,ONf,A9E,XUE,nMD,SL3,uoL,dS$,qLD,Nyf,wUP,vME,fLP,J9d,kQD,huD,DJ,xn3,GDd,z8C,cJL,QMf,ze,VEC,rJd,Hef,mnh,sMC,YmV,ch,IZd,$nd,FBf,jMh,XF$,OeL,R8V,SmP,ieL,gXf,uZd,dnE,wFL,Np3,vX3,sI,fZd,mw,tEO,h8P,xG3,Cz,G6C,KAL,enQ,An,yFL,WAd,lln,cFL,pXn,VDP,QxP,bqf,LAL,YNL,BX$,mGL,Hqh,RP,FAD,CS3,Il3,$Gf,OqO,jxE,Sn,RnQ,wXP,qNL,NXh,vuP,JFL,fl3,Eu$,k6D,PSC,tDP,xoE,K4Q,ojD,yf$,cfV,ek$,TJd,W4f,Z_V,Q9d,pBO,VWO,b_V,L4L,BJ$,s9V,vh,Y8C,$o$,H_f,CEP,F4d,IMC,j9V,O_n,Jn,AfE,NJQ,wBO,fMf,tWD,GVL,
DIf,Kmf,zhQ,adf,ofE,cCE,T7d,WmE,ehL,Qu3,pcn,Vv$,b8d,LmP,B7d,rCE,suV,YQ3,mId,$IP,FmE,C8d,O8P,ACf,nfO,SQP,RhP,UIL,dIO,gfL,qQ3,es,N7E,vf$,JCh,P8D,fdd,EfD,tvQ,hhd,pH,xr$,GJL,DrL,kVh,Kch,lRV,cI3,ToQ,LH,Wcn,eWD,ZGL,MFO,QRP,pvL,bGV,Lc$,Bo$,rIf,mr3,YMO,IRf,sRf,rG,jRL,HG$,CTD,AIP,RWn,uWn,iG3,g3f,n3C,SME,CH,drP,qMP,NoV,v3Q,JId,fRC,hWd,kJL,tFO,PTO,TDf,lpC,E3$,ylQ,VtL,bRD,Lif,BD3,rlC,sgD,YTf,$$C,CBE,jgh,X9f,AlL,U$f,iRL,nD3,gDO,d$E,ta,NDE,vDf,JlV,fpQ,PH,Eu,PBE,x3d,ozP,T6f,Wk$,eOn,Zvh,MhV,Q7C,Vhf,LkV,bv3,B6h,s7n,
Yi3,m3D,Hvf,$3O,Fk3,Ks,C5n,ROf,Sih,XaE,Ov3,U3$,ABd,N6D,d33,ys,vzO,JB$,fT$,thP,kBh,P5O,EzQ,hO$,xj3,DjC,zXh,o4E,l0h,Ts$,MPD,QiC,pnO,LDL,bOV,VPf,Bs$,rVD,Yrn,mj$,HOn,$jL,Zw,CLL,I0f,jif,XnV,OO$,AVd,RXn,SrE,n4$,g43,uGd,iOf,JVD,kOL,PLn,E4d,hXD,G3V,xN$,DNf,a43,oZh,yTC,l43,TLD,cTC,ev$,V9Q,pWP,LOf,BLL,rT3,$N3,FO$,CZh,I4E,XW3,ATL,SGf,iPE,nZh,gZn,Ac,uUL,dNh,vZP,NL$,JTO,f4C,k3n,PZh,xen,Ded,Krd,z7f,a5n,oU3,yAf,l5f,cAf,TNV,Wrh,Zkd,e7d,MAP,Qkd,pQ3,VAE,bkQ,Lrf,BNd,skD,YlD,rAd,uA,$ef,FrP,Cid,I5C,jkh,XQO,Ue3,R7f,SlP,
nUD,ikL,gUn,deO,wQn,NND,JAD,tAV,h7C,Pif,kGh,EUE,xx3,K$3,Gff,DxE,aAD,lA$,cwL,Tzn,e3n,ZVQ,MpV,pzh,bVL,QoP,L$C,BzQ,rwV,sod,YwL,mx3,$xh,HVO,F$O,CsV,IAh,joQ,OVO,Xzh,Awf,Ux3,nFE,iVC,R3d,Swh,wzn,qw$,x5,tpd,kfD,EFd,GNh,xb3,Db3,KtO,GF,K1,aGf,ov$,oy,y4,T3h,y8D,lGD,Zan,pIC,baE,LtD,B3O,r8$,s1n,mbP,HaO,$bL,Fth,CRQ,IGD,j1Q,TF,Oa$,XIL,e8,A8f,UbE,RYD,SZD,nvC,ian,Q4,p1,gvD,uPn,V4,dbE,wIf,qZ$,N3V,J83,fGE,kN3,G9D,xAQ,hYL,DAf,K0n,cqO,ow3,yqf,a1f,l1C,L1,Z0D,M0f,QvQ,pN$,V0f,L0Q,YyL,rqL,Bb,BF$,C3n,jvP,O0Q,XNQ,Aqf,UAh,Syn,
nwn,i0d,gwf,dAh,wNC,qy3,vwP,JqL,t0E,k9Q,GoP,K2f,DQP,a3D,TSD,W2D,eI$,ZKL,Q2Q,Hb,FD,$5,pJd,V6n,bKL,L2P,rPh,s2D,YSd,mQE,$QO,CJQ,I3n,j2L,C1,OK$,APC,UQL,nxL,iKf,Iy,j8,dQL,gx$,wJO,vxO,qSD,JPP,XD,t6V,kon,hIO,GTE,Aj,KXL,zbn,at$,oEQ,yHn,ltd,cH3,WXh,Qtd,p3P,LXn,VkD,bbL,BYL,m4L,rHQ,Y7L,HbE,$4L,FXC,jtL,Obf,X3E,AHE,U4O,uNd,gED,JHn,kTd,vb,PWf,CPD,EEL,hb3,Grf,KMD,zEd,WML,eEL,Pb,Z5V,M3O,Q5n,p8D,V33,LMD,r5O,b5$,BZh,YzL,s5f,FMD,H5O,CYQ,I$D,j5L,O5$,X8C,Uwd,A5O,i5h,dw$,gkP,w8V,qzh,NZQ,G0,vkD,J5d,K6,t3V,f$n,krL,PYf,hEE,
xKf,DK3,KN$,zB$,ax3,oNL,cLL,eB$,Q3f,MoP,p4Q,VoE,BwV,j3n,mKP,X4L,ALV,RBd,S0D,uS$,dKd,w4n,q0d,Nw3,vN$,JLD,toL,ENO,hBE,xTn,GhL,zLL,KQC,lW$,c4f,TWC,WQf,eLh,ZAh,QBn,L6,VQL,Y1,LQC,r4C,sBO,FQd,IWf,A4O,RL$,SKV,iAD,gH$,uzO,wfC,NWh,vHd,tQQ,Pjf,xPC,hLL,EHh,Ip,DPf,GM$,KCf,zT3,aVP,oIO,y0h,lVD,c0d,WCf,eTh,QwL,Zp$,MgP,VgL,bpP,LCD,BI3,swL,Y1f,OpL,XMQ,A03,UPL,RTh,ipn,SJ,NI3,vId,J0V,fVP,tgh,n6,f4,KTL,uh,zNd,TtQ,cdO,dv,eN$,Nhf;
_.xC=function(x,G){if(Error.captureStackTrace)Error.captureStackTrace(this,_.xC);else{var D=Error().stack;D&&(this.stack=D)}x&&(this.message=String(x));G!==void 0&&(this.cause=G)};
Gd=function(){throw Error("B");};
xL$=function(x,G){G=String.fromCharCode.apply(null,G);return x==null?G:x+G};
zPf=function(x){var G=!1;G=G===void 0?!1:G;if(GdL){if(G&&(DLd?!x.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(x)))throw Error("C");x=(KEh||(KEh=new TextEncoder)).encode(x)}else{for(var D=0,K=new Uint8Array(3*x.length),z=0;z<x.length;z++){var y=x.charCodeAt(z);if(y<128)K[D++]=y;else{if(y<2048)K[D++]=y>>6|192;else{if(y>=55296&&y<=57343){if(y<=56319&&z<x.length){var c=x.charCodeAt(++z);if(c>=56320&&c<=57343){y=(y-55296)*1024+c-56320+65536;K[D++]=y>>18|
240;K[D++]=y>>12&63|128;K[D++]=y>>6&63|128;K[D++]=y&63|128;continue}else z--}if(G)throw Error("C");y=65533}K[D++]=y>>12|224;K[D++]=y>>6&63|128}K[D++]=y&63|128}}x=D===K.length?K:K.subarray(0,D)}return x};
K$=function(x){_.Df.setTimeout(function(){throw x;},0)};
_.zd=function(x,G){return x.lastIndexOf(G,0)==0};
oV=function(x,G){var D=x.length-G.length;return D>=0&&x.indexOf(G,D)==D};
_.y3=function(x){return/^[\s\xa0]*$/.test(x)};
_.Td=function(x,G){return x.indexOf(G)!=-1};
_.WL=function(x,G){return _.Td(x.toLowerCase(),G.toLowerCase())};
_.ML=function(x,G){var D=0;x=Zf(String(x)).split(".");G=Zf(String(G)).split(".");for(var K=Math.max(x.length,G.length),z=0;D==0&&z<K;z++){var y=x[z]||"",c=G[z]||"";do{y=/(\d*)(\D*)(.*)/.exec(y)||["","","",""];c=/(\d*)(\D*)(.*)/.exec(c)||["","","",""];if(y[0].length==0&&c[0].length==0)break;D=af$(y[1].length==0?0:parseInt(y[1],10),c[1].length==0?0:parseInt(c[1],10))||af$(y[2].length==0,c[2].length==0)||af$(y[2],c[2]);y=y[3];c=c[3]}while(D==0)}return D};
af$=function(x,G){return x<G?-1:x>G?1:0};
_.Q3=function(){var x=_.Df.navigator;return x&&(x=x.userAgent)?x:""};
BL=function(x){if(!p$||!V3)return!1;for(var G=0;G<V3.brands.length;G++){var D=V3.brands[G].brand;if(D&&_.Td(D,x))return!0}return!1};
rn=function(x){return _.Td(_.Q3(),x)};
YC=function(){return p$?!!V3&&V3.brands.length>0:!1};
HL=function(){return YC()?!1:rn("Opera")};
oCC=function(){return YC()?!1:rn("Trident")||rn("MSIE")};
yQf=function(){return YC()?BL("Microsoft Edge"):rn("Edg/")};
C$=function(){return rn("Firefox")||rn("FxiOS")};
_.Xh=function(){return rn("Safari")&&!(_.IV()||(YC()?0:rn("Coast"))||HL()||(YC()?0:rn("Edge"))||yQf()||(YC()?BL("Opera"):rn("OPR"))||C$()||rn("Silk")||rn("Android"))};
_.IV=function(){return YC()?BL("Chromium"):(rn("Chrome")||rn("CriOS"))&&!(YC()?0:rn("Edge"))||rn("Silk")};
_.lfC=function(){return rn("Android")&&!(_.IV()||C$()||HL()||rn("Silk"))};
cQh=function(x){var G={};x.forEach(function(D){G[D[0]]=D[1]});
return function(D){return G[D.find(function(K){return K in G})]||""}};
TnL=function(x){var G=_.Q3();if(x==="Internet Explorer"){if(oCC())if((x=/rv: *([\d\.]*)/.exec(G))&&x[1])G=x[1];else{x="";var D=/MSIE +([\d\.]+)/.exec(G);if(D&&D[1])if(G=/Trident\/(\d.\d)/.exec(G),D[1]=="7.0")if(G&&G[1])switch(G[1]){case "4.0":x="8.0";break;case "5.0":x="9.0";break;case "6.0":x="10.0";break;case "7.0":x="11.0"}else x="7.0";else x=D[1];G=x}else G="";return G}var K=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");D=[];for(var z;z=K.exec(G);)D.push([z[1],z[2],z[3]||void 0]);
G=cQh(D);switch(x){case "Opera":if(HL())return G(["Version","Opera"]);if(YC()?BL("Opera"):rn("OPR"))return G(["OPR"]);break;case "Microsoft Edge":if(YC()?0:rn("Edge"))return G(["Edge"]);if(yQf())return G(["Edg"]);break;case "Chromium":if(_.IV())return G(["Chrome","CriOS","HeadlessChrome"])}return x==="Firefox"&&C$()||x==="Safari"&&_.Xh()||x==="Android Browser"&&_.lfC()||x==="Silk"&&rn("Silk")?(G=D[2])&&G[1]||"":""};
_.WEL=function(x){if(YC()&&x!=="Silk"){var G=V3.brands.find(function(D){return D.brand===x});
if(!G||!G.version)return NaN;G=G.version.split(".")}else{G=TnL(x);if(G==="")return NaN;G=G.split(".")}return G.length===0?NaN:Number(G[0])};
AQ=function(){return p$?!!V3&&!!V3.platform:!1};
_.ePL=function(){return AQ()?V3.platform==="Android":rn("Android")};
Z$Q=function(){return rn("iPhone")&&!rn("iPod")&&!rn("iPad")};
_.UD=function(){return Z$Q()||rn("iPad")||rn("iPod")};
_.MfL=function(){return AQ()?V3.platform==="macOS":rn("Macintosh")};
_.QVh=function(){return AQ()?V3.platform==="Windows":rn("Windows")};
_.pL3=function(){return AQ()?V3.platform==="Chrome OS":rn("CrOS")};
_.RV=function(x){return x[x.length-1]};
_.iO=function(x,G,D){G=_.VfQ(x,G,D);return G<0?null:typeof x==="string"?x.charAt(G):x[G]};
_.VfQ=function(x,G,D){for(var K=x.length,z=typeof x==="string"?x.split(""):x,y=0;y<K;y++)if(y in z&&G.call(D,z[y],y,x))return y;return-1};
b$V=function(x){for(var G=_.gn,D=typeof x==="string"?x.split(""):x,K=x.length-1;K>=0;K--)if(K in D&&G.call(void 0,D[K],K,x))return K;return-1};
_.qL=function(x,G){return _.uO(x,G)>=0};
_.vL=function(x,G){_.qL(x,G)||x.push(G)};
_.f$=function(x,G){G=_.uO(x,G);var D;(D=G>=0)&&_.JQ(x,G);return D};
_.JQ=function(x,G){Array.prototype.splice.call(x,G,1)};
_.kC=function(x){var G=x.length;if(G>0){for(var D=Array(G),K=0;K<G;K++)D[K]=x[K];return D}return[]};
_.ED=function(x,G){for(var D=1;D<arguments.length;D++){var K=arguments[D];if(_.PL(K)){var z=x.length||0,y=K.length||0;x.length=z+y;for(var c=0;c<y;c++)x[z+c]=K[c]}else x.push(K)}};
_.BnC=function(x,G,D,K){Array.prototype.splice.apply(x,LEn(arguments,1))};
LEn=function(x,G,D){return arguments.length<=2?Array.prototype.slice.call(x,G):Array.prototype.slice.call(x,G,D)};
Ku=function(x,G){G=G||x;for(var D=0,K=0,z={};K<x.length;){var y=x[K++],c=_.G7(y)?"o"+_.Do(y):(typeof y).charAt(0)+y;Object.prototype.hasOwnProperty.call(z,c)||(z[c]=!0,G[D++]=y)}G.length=D};
_.rQf=function(x,G,D){D=D||_.z7;for(var K=0,z=x.length,y;K<z;){var c=K+(z-K>>>1);var W=D(G,x[c]);W>0?K=c+1:(z=c,y=!W)}return y?K:-K-1};
_.yJ=function(x,G,D){if(!_.PL(x)||!_.PL(G)||x.length!=G.length)return!1;var K=x.length;D=D||sVL;for(var z=0;z<K;z++)if(!D(x[z],G[z]))return!1;return!0};
_.z7=function(x,G){return x>G?1:x<G?-1:0};
sVL=function(x,G){return x===G};
YDL=function(x,G,D){G=Array.prototype.splice.call(x,G,1);Array.prototype.splice.call(x,D,0,G[0])};
H$h=function(x){return mLC[x]||""};
CO3=function(x){if(!$LV)return _.eZ(x);x=FEL.test(x)?x.replace(FEL,H$h):x;x=atob(x);for(var G=new Uint8Array(x.length),D=0;D<x.length;D++)G[D]=x.charCodeAt(D);return G};
Iff=function(x,G){x.__closure__error__context__984382||(x.__closure__error__context__984382={});x.__closure__error__context__984382.severity=G};
_.Zo=function(x){x=Error(x);Iff(x,"warning");return x};
pu=function(x,G){if(x!=null){var D;var K=(D=jVf)!=null?D:jVf={};D=K[x]||0;D>=G||(K[x]=D+1,x=Error(),Iff(x,"incident"),K$(x))}};
bq=function(x,G,D){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(D===void 0?0:D)&&Symbol.for&&x?Symbol.for(x):x!=null?Symbol(x):Symbol():G};
mh=function(x,G){r9||_.sE in x||O$L(x,XLE);x[_.sE]|=G};
Hs=function(x,G){r9||_.sE in x||O$L(x,XLE);x[_.sE]=G};
AQQ=function(x){if(4&x)return 512&x?512:1024&x?1024:0};
$8=function(x){mh(x,34);return x};
ULC=function(x){mh(x,32);return x};
Is=function(){return typeof BigInt==="function"};
OE=function(x,G){return G===void 0?x.copyOnWrite!==jZ&&!!(2&(x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.sE]|0)):!!(2&G)&&x.copyOnWrite!==jZ};
_.nu=function(x,G){if(x!=null)if(typeof x==="string")x=x?new Ak(x,Rs):_.SZ();else if(x.constructor!==Ak)if(RPQ&&x!=null&&x instanceof Uint8Array)x=x.length?new Ak(new Uint8Array(x),Rs):_.SZ();else{if(!G)throw Error();x=void 0}return x};
iq=function(x,G){if(typeof G!=="number"||G<0||G>=x.length)throw Error();};
SDE=function(x,G,D){var K=G&128?0:-1,z=x.length,y;if(y=!!z)y=x[z-1],y=y!=null&&typeof y==="object"&&y.constructor===Object;var c=z+(y?-1:0);for(G=G&128?1:0;G<c;G++)D(G-K,x[G]);if(y){x=x[z-1];for(var W in x)!isNaN(W)&&D(+W,x[W])}};
w9=function(x){return x&128?uq:void 0};
q0=function(x){x.isGuard_doNotManuallySetPrettyPlease=!0;return x};
i$E=function(){var x=nCD;return q0(function(G){for(var D in x)if(G===x[D]&&!/^[0-9]+$/.test(D))return!0;return!1})};
_.tk=function(x){var G=x;if(gCQ(G)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(G))throw Error(String(G));}else if(uhh(G)&&!Number.isSafeInteger(G))throw Error(String(G));return Jk?BigInt(x):x=dLQ(x)?x?"1":"0":gCQ(x)?x.trim()||"0":String(x)};
wLf=function(x,G){if(x.length>G.length)return!1;if(x.length<G.length||x===G)return!0;for(var D=0;D<x.length;D++){var K=x[D],z=G[D];if(K>z)return!1;if(K<z)return!0}};
qDE=function(x){var G=x>>>0;k8=G;Ps=(x-G)/4294967296>>>0};
EE=function(x){if(x<0){qDE(-x);var G=_.l(NnQ(k8,Ps));x=G.next().value;G=G.next().value;k8=x>>>0;Ps=G>>>0}else qDE(x)};
vCE=function(x,G){var D=G*4294967296+(x>>>0);return Number.isSafeInteger(D)?D:_.hk(x,G)};
xi=function(x,G){var D=G&2147483648;D&&(x=~x+1>>>0,G=~G>>>0,x==0&&(G=G+1>>>0));x=vCE(x,G);return typeof x==="number"?D?-x:x:D?"-"+x:x};
_.hk=function(x,G){G>>>=0;x>>>=0;if(G<=2097151)var D=""+(4294967296*G+x);else Is()?D=""+(BigInt(G)<<BigInt(32)|BigInt(x)):(D=(x>>>24|G<<8)&16777215,G=G>>16&65535,x=(x&16777215)+D*6777216+G*6710656,D+=G*8147497,G*=2,x>=1E7&&(D+=x/1E7>>>0,x%=1E7),D>=1E7&&(G+=D/1E7>>>0,D%=1E7),D=G+JQf(D)+JQf(x));return D};
JQf=function(x){x=String(x);return"0000000".slice(x.length)+x};
_.Dc=function(x,G){G&2147483648?Is()?x=""+(BigInt(G|0)<<BigInt(32)|BigInt(x>>>0)):(G=_.l(NnQ(x,G)),x=G.next().value,G=G.next().value,x="-"+_.hk(x,G)):x=_.hk(x,G);return x};
Kf=function(x){if(x.length<16)EE(Number(x));else if(Is())x=BigInt(x),k8=Number(x&BigInt(4294967295))>>>0,Ps=Number(x>>BigInt(32)&BigInt(4294967295));else{var G=+(x[0]==="-");Ps=k8=0;for(var D=x.length,K=G,z=(D-G)%6+G;z<=D;K=z,z+=6)K=Number(x.slice(K,z)),Ps*=1E6,k8=k8*1E6+K,k8>=4294967296&&(Ps+=Math.trunc(k8/4294967296),Ps>>>=0,k8>>>=0);G&&(G=_.l(NnQ(k8,Ps)),x=G.next().value,G=G.next().value,k8=x,Ps=G)}};
NnQ=function(x,G){G=~G;x?x=~x+1:G+=1;return[x,G]};
z8=function(x){return Array.prototype.slice.call(x)};
_.oT=function(x,G){throw Error(G===void 0?"unexpected value "+x+"!":G);};
_.cY=function(x){if(x!=null&&typeof x!=="number")throw Error("I`"+typeof x+"`"+x);return x};
_.T8=function(x){if(x==null||typeof x==="number")return x;if(x==="NaN"||x==="Infinity"||x==="-Infinity")return Number(x)};
fff=function(x){if(x!=null&&typeof x!=="boolean")throw Error("J`"+_.WY(x)+"`"+x);return x};
_.tfL=function(x){if(x==null||typeof x==="boolean")return x;if(typeof x==="number")return!!x};
_.bC=function(x){switch(typeof x){case "bigint":return!0;case "number":return Qj(x);case "string":return kdf.test(x);default:return!1}};
_.rb=function(x){if(!Qj(x))throw _.Zo("enum");return x|0};
_.sc=function(x){return x==null?x:Qj(x)?x|0:void 0};
PO$=function(x){if(typeof x!=="number")throw _.Zo("int32");if(!Qj(x))throw _.Zo("int32");return x|0};
_.Yi=function(x){return x==null?x:PO$(x)};
_.mf=function(x){if(x==null)return x;if(typeof x==="string"&&x)x=+x;else if(typeof x!=="number")return;return Qj(x)?x|0:void 0};
_.HY=function(x){if(x==null)return x;if(typeof x==="string"&&x)x=+x;else if(typeof x!=="number")return;return Qj(x)?x>>>0:void 0};
G7f=function(x){var G=0;G=G===void 0?0:G;if(!_.bC(x))throw _.Zo("int64");var D=typeof x;switch(G){case 512:switch(D){case "string":return $i(x);case "bigint":return String(Cf(64,x));default:return ECO(x)}case 1024:switch(D){case "string":return hP3(x);case "bigint":return _.tk(Cf(64,x));default:return x0V(x)}case 0:switch(D){case "string":return $i(x);case "bigint":return _.tk(Cf(64,x));default:return jx(x)}default:return _.oT(G,"Unknown format requested type for int64")}};
Oc=function(x){return x==null?x:G7f(x)};
D0n=function(x){if(x[0]==="-")return!1;var G=x.length;return G<20?!0:G===20&&Number(x.substring(0,6))<184467};
KhC=function(x){var G=x.length;return x[0]==="-"?G<20?!0:G===20&&Number(x.substring(0,7))>-922337:G<19?!0:G===19&&Number(x.substring(0,6))<922337};
zZ3=function(x){if(x<0){EE(x);var G=_.hk(k8,Ps);x=Number(G);return XO(x)?x:G}G=String(x);if(D0n(G))return G;EE(x);return vCE(k8,Ps)};
aof=function(x){if(KhC(x))return x;Kf(x);return _.Dc(k8,Ps)};
o8O=function(x){if(D0n(x))return x;Kf(x);return _.hk(k8,Ps)};
jx=function(x){x=A6(x);XO(x)||(EE(x),x=xi(k8,Ps));return x};
_.ykn=function(x){x=A6(x);return x>=0&&XO(x)?x:zZ3(x)};
ECO=function(x){x=A6(x);if(XO(x))x=String(x);else{var G=String(x);KhC(G)?x=G:(EE(x),x=_.Dc(k8,Ps))}return x};
_.lo3=function(x){x=A6(x);if(x>=0&&XO(x))x=String(x);else{var G=String(x);D0n(G)?x=G:(EE(x),x=_.hk(k8,Ps))}return x};
$i=function(x){var G=A6(Number(x));if(XO(G))return String(G);G=x.indexOf(".");G!==-1&&(x=x.substring(0,G));return aof(x)};
hP3=function(x){var G=A6(Number(x));if(XO(G))return _.tk(G);G=x.indexOf(".");G!==-1&&(x=x.substring(0,G));return Is()?_.tk(Cf(64,BigInt(x))):_.tk(aof(x))};
x0V=function(x){return XO(x)?_.tk(jx(x)):_.tk(ECO(x))};
_.ck3=function(x){return XO(x)?_.tk(_.ykn(x)):_.tk(_.lo3(x))};
_.T9D=function(x){var G=A6(Number(x));if(XO(G)&&G>=0)return String(G);G=x.indexOf(".");G!==-1&&(x=x.substring(0,G));return o8O(x)};
_.WhL=function(x){var G=A6(Number(x));if(XO(G)&&G>=0)return _.tk(G);G=x.indexOf(".");G!==-1&&(x=x.substring(0,G));return Is()?_.tk((0,_.Uc)(64,BigInt(x))):_.tk(o8O(x))};
_.eZ$=function(x){if(x==null)return x;if(typeof x==="bigint")return RT(x)?x=Number(x):(x=Cf(64,x),x=RT(x)?Number(x):String(x)),x;if(_.bC(x))return typeof x==="number"?jx(x):$i(x)};
Zu$=function(x,G){G=G===void 0?!1:G;var D=typeof x;if(x==null)return x;if(D==="bigint")return String(Cf(64,x));if(_.bC(x))return D==="string"?$i(x):G?ECO(x):jx(x)};
_.MZf=function(x){var G=typeof x;if(x==null)return x;if(G==="bigint")return _.tk(Cf(64,x));if(_.bC(x))return G==="string"?hP3(x):x0V(x)};
QsE=function(x){if(x==null)return x;var G=typeof x;if(G==="bigint")return String(Cf(64,x));if(_.bC(x)){if(G==="string")return $i(x);if(G==="number")return jx(x)}};
psn=function(x){if(x==null)return x;var G=typeof x;if(G==="bigint")return String((0,_.Uc)(64,x));if(_.bC(x)){if(G==="string")return _.T9D(x);if(G==="number")return _.ykn(x)}};
_.Sx=function(x){if(typeof x!=="string")throw Error();return x};
iC=function(x){if(x!=null&&typeof x!=="string")throw Error();return x};
_.gb=function(x){return x==null||typeof x==="string"?x:void 0};
VZQ=function(x,G,D,K){if(x!=null&&x[db]===wb)return x;if(!Array.isArray(x))return D?K&2?((x=G[qk])||(x=new G,$8(x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),x=G[qk]=x),G=x):G=new G:G=void 0,G;D=x[_.sE]|0;K=D|K&32|K&2;K!==D&&Hs(x,K);return new G(x)};
bu3=function(x,G,D){x=G?PO$(x):_.mf(x);return x==null?D?0:void 0:x|0};
Lh$=function(x){return x};
B9d=function(x){return x};
ssV=function(x,G,D,K,z,y){x=VZQ(x,K,D,y);z&&(x=rk3(x));return x};
YE3=function(x){return[x,this.get(x)]};
$0d=function(){return m0P||(m0P=new Nk($8([]),void 0,void 0,void 0,Hud))};
ff=function(x){var G=vY(J6);return G?x[G]:void 0};
Iod=function(x,G){var D=D===void 0?!1:D;if(vY(FhL)&&vY(J6)&&void 0===FhL){var K=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=K[J6];if(!z)return;if(z=z.reviveUnknownFields)try{z(K,G,Cqh);return}catch(y){K$(y)}}D&&(x=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(D=vY(J6))&&D in x&&(x=x[D])&&delete x[G])};
Oun=function(x,G){var D=vY(J6),K;r9&&D&&((K=x[D])==null?void 0:K[G])!=null&&pu(jsL,3)};
AkP=function(x,G){G<100||pu(XsL,1)};
n8C=function(x,G,D,K){var z=K!==void 0;K=!!K;var y=vY(J6),c;!z&&r9&&y&&(c=x[y])&&t6(c,AkP);y=[];var W=x.length;c=4294967295;var e=!1,Q=!!(G&64),p=Q?G&128?0:-1:void 0;if(!(G&1)){var V=W&&x[W-1];V!=null&&typeof V==="object"&&V.constructor===Object?(W--,c=W):V=void 0;if(Q&&!(G&128)&&!z){e=!0;var L;c=((L=U0L)!=null?L:Lh$)(c-p,p,x,V)+p}}G=void 0;for(L=0;L<W;L++){var r=x[L];if(r!=null&&(r=D(r,K))!=null)if(Q&&L>=c){var H=L-p,O=void 0;((O=G)!=null?O:G={})[H]=r}else y[L]=r}if(V)for(var A in V)W=V[A],W!=null&&
(W=D(W,K))!=null&&(L=+A,r=void 0,Q&&!Number.isNaN(L)&&(r=L+p)<c?y[r]=W:(L=void 0,((L=G)!=null?L:G={})[A]=W));G&&(e?y.push(G):y[c]=G);z&&vY(J6)&&(x=ff(x))&&x instanceof RZh&&(y[J6]=SED(x));return y};
iud=function(x){x[0]=ki(x[0]);x[1]=ki(x[1]);return x};
ki=function(x){switch(typeof x){case "number":return Number.isFinite(x)?x:""+x;case "bigint":return RT(x)?Number(x):""+x;case "boolean":return x?1:0;case "object":if(Array.isArray(x)){var G=x[_.sE]|0;return x.length===0&&G&1?void 0:n8C(x,G,ki)}if(x!=null&&x[db]===wb)return g8f(x);if(x instanceof Ak){G=x.JSC$6830_value_;if(G==null)x="";else if(typeof G==="string")x=G;else{if($LV){for(var D="",K=0,z=G.length-10240;K<z;)D+=String.fromCharCode.apply(null,G.subarray(K,K+=10240));D+=String.fromCharCode.apply(null,
K?G.subarray(K):G);G=btoa(D)}else G=_.PY(G);x=x.JSC$6830_value_=G}return x}if(x instanceof Nk)return x=x.size!==0?Array.from(x0.prototype.entries.call(x),iud):void 0,x;return}return x};
G4=function(x,G){if(G){U0L=G==null||G===Lh$||G[ui3]!==d0d?Lh$:G;try{return g8f(x)}finally{U0L=void 0}}return g8f(x)};
g8f=function(x){x=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return n8C(x,x[_.sE]|0,ki)};
N9V=function(x){switch(typeof x){case "boolean":return wsQ||(wsQ=[0,void 0,!0]);case "number":return x>0?void 0:x===0?qEO||(qEO=[0,void 0]):[-x,void 0];case "string":return[0,x];case "object":return x}};
z4=function(x,G,D){return x=_.Km(x,G[0],G[1],D?1:2)};
_.Km=function(x,G,D,K){K=K===void 0?0:K;if(x==null){var z=32;D?(x=[D],z|=128):x=[];G&&(z=z&-8380417|(G&1023)<<13)}else{if(!Array.isArray(x))throw Error("L");z=x[_.sE]|0;2048&z&&!(2&z)&&v8L();if(z&256)throw Error("N");if(z&64)return K!==0||z&2048||Hs(x,z|2048),x;if(D&&(z|=128,D!==x[0]))throw Error("O");a:{D=x;z|=64;var y=D.length;if(y){var c=y-1,W=D[c];if(W!=null&&typeof W==="object"&&W.constructor===Object){G=z&128?0:-1;c-=G;if(c>=1024)throw Error("Q");for(var e in W)y=+e,y<c&&(D[y+G]=W[e],delete W[e]);
z=z&-8380417|(c&1023)<<13;break a}}if(G){e=Math.max(G,y-(z&128?0:-1));if(e>1024)throw Error("R");z=z&-8380417|(e&1023)<<13}}}z|=64;K===0&&(z|=2048);Hs(x,z);return x};
v8L=function(){pu(JkV,5)};
k7n=function(x,G){if(typeof x!=="object")return x;if(Array.isArray(x)){var D=x[_.sE]|0;return x.length===0&&D&1?void 0:foQ(x,D,G)}if(x!=null&&x[db]===wb)return tZP(x);if(x instanceof Nk){G=x.arrayState;if(G&2)return x;if(!x.size)return;D=$8(Array.from(x0.prototype.entries.call(x)));if(x.valueCtor)for(x=0;x<D.length;x++){var K=D[x],z=K[1];z==null||typeof z!=="object"?z=void 0:z!=null&&z[db]===wb?z=tZP(z):Array.isArray(z)?z=foQ(z,z[_.sE]|0,!!(G&32)):z=void 0;K[1]=z}return D}if(x instanceof Ak)return x};
foQ=function(x,G,D){if(G&2)return x;!D||4096&G||16&G?x=aS(x,G,!1,D&&!(G&16)):(mh(x,34),G&4&&Object.freeze(x));return x};
oS=function(x,G,D){x=new x.constructor(G);D&&(x.copyOnWrite=jZ);x.noLegacyNull=jZ;return x};
tZP=function(x){var G=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,D=G[_.sE]|0;return OE(x,D)?x:yY(x,G,D)?oS(x,G):aS(G,D)};
aS=function(x,G,D,K){K!=null||(K=!!(34&G));x=n8C(x,G,k7n,K);K=32;D&&(K|=2);G=G&8380609|K;Hs(x,G);return x};
rk3=function(x){var G=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,D=G[_.sE]|0;return OE(x,D)?yY(x,G,D)?oS(x,G,!0):new x.constructor(aS(G,D,!1)):x};
cd=function(x){if(x.copyOnWrite!==jZ)return!1;var G=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;G=aS(G,G[_.sE]|0);mh(G,2048);x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=G;x.copyOnWrite=void 0;x.noLegacyNull=void 0;return!0};
Z7=function(x){if(!cd(x)&&OE(x,x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.sE]|0))throw Error();};
MH=function(x,G){G===void 0&&(G=x[_.sE]|0);G&32&&!(G&4096)&&Hs(x,G|4096)};
yY=function(x,G,D){return D&2?!0:D&32&&!(D&4096)?(Hs(G,D|2),x.copyOnWrite=jZ,!0):!1};
pm=function(x,G,D,K,z){var y=D+(z?0:-1),c=x.length-1;if(c>=1+(z?0:-1)&&y>=c){var W=x[c];if(W!=null&&typeof W==="object"&&W.constructor===Object)return W[D]=K,G}if(y<=c)return x[y]=K,G;if(K!==void 0){var e;c=((e=G)!=null?e:G=x[_.sE]|0)>>13&1023||536870912;D>=c?K!=null&&(y={},x[c+(z?0:-1)]=(y[D]=K,y)):x[y]=K}return G};
_.Lm=function(x,G,D,K,z){var y=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=y[_.sE]|0;K=OE(x,c)?1:K;z=!!z||K===3;K===2&&cd(x)&&(y=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=y[_.sE]|0);x=Pqh(y,G);var W=x===VY?7:x[_.sE]|0,e=E8d(W,c);var Q=4&e?!1:!0;if(Q){4&e&&(x=z8(x),W=0,e=bU(e,c),c=pm(y,c,G,x));for(var p=0,V=0;p<x.length;p++){var L=D(x[p]);L!=null&&(x[V++]=L)}V<p&&(x.length=V);D=(e|4)&-513;e=D&=-1025;e&=-4097}e!==W&&(Hs(x,e),2&e&&Object.freeze(x));return x=hZn(x,e,y,
c,G,K,Q,z)};
hZn=function(x,G,D,K,z,y,c,W){var e=G;y===1||(y!==4?0:2&G||!(16&G)&&32&K)?Bd(G)||(G|=!x.length||c&&!(4096&G)||32&K&&!(4096&G||16&G)?2:256,G!==e&&Hs(x,G),Object.freeze(x)):(y===2&&Bd(G)&&(x=z8(x),e=0,G=bU(G,K),K=pm(D,K,z,x)),Bd(G)||(W||(G|=16),G!==e&&Hs(x,G)));2&G||!(4096&G||16&G)||MH(D,K);return x};
Pqh=function(x,G,D){x=rh(x,G,D);return Array.isArray(x)?x:VY};
E8d=function(x,G){2&G&&(x|=2);return x|1};
Bd=function(x){return!!(2&x)&&!!(4&x)||!!(256&x)};
xk$=function(x){return _.nu(x,!0)};
G8h=function(x,G){var D=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,K=D[_.sE]|0;a:{var z=K;K=OE(x,K);!K&&cd(x)&&(D=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=D[_.sE]|0);var y=rh(D,G);x=!1;if(y==null){if(K){G=$0d();break a}y=[]}else if(y.constructor===Nk)if(y.arrayState&2&&!K)y=Array.from(x0.prototype.entries.call(y));else{G=y;break a}else Array.isArray(y)?x=!!((y[_.sE]|0)&2):y=[];if(K){if(!y.length){G=$0d();break a}x||(x=!0,$8(y))}else if(x){x=!1;K=y;K=z8(K);for(y=0;y<
K.length;y++){var c=K[y]=z8(K[y]);Array.isArray(c[1])&&(c[1]=$8(c[1]))}y=K}!x&&z&32&&ULC(y);K=new Nk(y,void 0,bu3,bu3);z=pm(D,z,G,K);x||MH(D,z);G=K}return G};
_.s_=function(x,G,D,K){Z7(x);var z=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=z[_.sE]|0;if(D==null)return pm(z,y,G),x;var c=D===VY?7:D[_.sE]|0,W=c,e=Bd(c),Q=e||Object.isFrozen(D);e||(c=0);Q||(D=z8(D),W=0,c=bU(c,y),Q=!1);c|=5;var p;e=(p=AQQ(c))!=null?p:0;for(p=0;p<D.length;p++){var V=D[p],L=K(V,e);Object.is(V,L)||(Q&&(D=z8(D),W=0,c=bU(c,y),Q=!1),D[p]=L)}c!==W&&(Q&&(D=z8(D),c=bU(c,y)),Hs(D,c));pm(z,y,G,D);return x};
_.Y0=function(x,G,D,K,z){Z7(x);var y=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;pm(y,y[_.sE]|0,G,(K==="0"?Number(D)===0:D===K)?void 0:D,z);return x};
_.mz=function(x,G,D){if(G&2)throw Error();var K=w9(G),z=Pqh(x,D,K),y=z===VY?7:z[_.sE]|0,c=E8d(y,G);if(2&c||Bd(c)||16&c)z=z8(z),y=0,c=bU(c,G),pm(x,G,D,z,K);c&=-13;c!==y&&Hs(z,c);return z};
DkL=function(x){if(r9){var G;return(G=x[Hd])!=null?G:x[Hd]=new Map}if(Hd in x)return x[Hd];G=new Map;Object.defineProperty(x,Hd,{value:G});return G};
z4D=function(x,G,D,K,z){var y=DkL(x),c=KfP(y,x,G,D,z);c!==K&&(c&&(G=pm(x,G,c,void 0,z)),y.set(D,K));return G};
KfP=function(x,G,D,K,z){var y=x.get(K);if(y!=null)return y;for(var c=y=0;c<K.length;c++){var W=K[c];rh(G,W,z)!=null&&(y!==0&&(D=pm(G,D,y,void 0,z)),y=W)}x.set(K,y);return y};
$0=function(x,G,D,K,z){var y=!1;K=rh(x,K,z,function(c){var W=VZQ(c,D,!1,G);y=W!==c&&W!=null;return W});
if(K!=null)return y&&!OE(K)&&MH(x,G),K};
acV=function(x,G,D,K,z,y,c,W){var e=OE(x,D);y=e?1:y;c=!!c||y===3;e=W&&!e;(y===2||e)&&cd(x)&&(G=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,D=G[_.sE]|0);x=Pqh(G,z);var Q=x===VY?7:x[_.sE]|0,p=E8d(Q,D);if(W=!(4&p)){var V=x,L=D,r=!!(2&p);r&&(L|=2);for(var H=!r,O=!0,A=0,g=0;A<V.length;A++){var u=VZQ(V[A],K,!1,L);if(u instanceof K){if(!r){var f=OE(u);H&&(H=!f);O&&(O=f)}V[g++]=u}}g<A&&(V.length=g);p|=4;p=O?p&-4097:p|4096;p=H?p|8:p&-9}p!==Q&&(Hs(x,p),2&p&&Object.freeze(x));if(e&&!(8&p||!x.length&&
(y===1||(y!==4?0:2&p||!(16&p)&&32&D)))){Bd(p)&&(x=z8(x),p=bU(p,D),D=pm(G,D,z,x));K=x;e=p;for(Q=0;Q<K.length;Q++)V=K[Q],p=rk3(V),V!==p&&(K[Q]=p);e|=8;p=e=K.length?e|4096:e&-4097;Hs(x,p)}return x=hZn(x,p,G,D,z,y,W,c)};
oiO=function(x){x==null&&(x=void 0);return x};
bU=function(x,G){return x=(2&G?x|2:x&-3)&-273};
_.y6L=function(x,G,D,K,z){Z7(x);G=_.Lm(x,G,z,2,!0);var y;z=(y=AQQ(G===VY?7:G[_.sE]|0))!=null?y:0;G.push(D(K,z));return x};
lcn=function(x,G,D,K,z,y,c){Z7(x);var W=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;x=acV(x,W,W[_.sE]|0,D,G,2,!0);if(y&&c)z!=null||(z=x.length-1),iq(x,z),x.splice(z,y),x.length||(x[_.sE]&=-4097);else{if(y){if(typeof z!=="number"||z<0||z>x.length)throw Error();}else K=K!=null?K:new D;z!=void 0?x.splice(z,y,K):x.push(K);z=D=x===VY?7:x[_.sE]|0;(K=OE(K))?(D&=-9,x.length===1&&(D&=-4097)):D|=4096;D!==z&&Hs(x,D);K||MH(W)}};
c6L=function(x,G){if(typeof x==="string")return new jX(CO3(x),G);if(Array.isArray(x))return new jX(new Uint8Array(x),G);if(x.constructor===Uint8Array)return new jX(x,!1);if(x.constructor===ArrayBuffer)return x=new Uint8Array(x),new jX(x,!1);if(x.constructor===Ak)return G=O_(x)||new Uint8Array(0),new jX(G,!0,x);if(x instanceof Uint8Array)return x=x.constructor===Uint8Array?x:new Uint8Array(x.buffer,x.byteOffset,x.byteLength),new jX(x,!1);throw Error();};
Xc=function(){var x=function(){throw Error();};
Object.setPrototypeOf(x,x.prototype);return x};
WfE=function(x,G){var D=D===void 0?TbL:D;return new U_(x,G,D)};
QTh=function(x,G,D,K,z){G=e4D(G,K);G!=null&&(D=_.ZfD(x,D),z(G,x),_.MxE(x,D))};
RS=function(x,G,D,K){var z=K[x];if(z)return z;z={};z.binaryFields=K;z.messageMetadata=N9V(K[0]);var y=K[1],c=1;y&&y.constructor===Object&&(z.extensions=y,y=K[++c],typeof y==="function"&&(z.isMessageSet=!0,pYL!=null||(pYL=y),Vxd!=null||(Vxd=K[c+1]),y=K[c+=2]));for(var W={};y&&Array.isArray(y)&&y.length&&typeof y[0]==="number"&&y[0]>0;){for(var e=0;e<y.length;e++)W[y[e]]=y;y=K[++c]}for(e=1;y!==void 0;){typeof y==="number"&&(e+=y,y=K[++c]);var Q=void 0;if(y instanceof U_)var p=y;else p=bfO,c--;y=void 0;
if((y=p)==null?0:y.$$isMsg){y=K[++c];Q=K;var V=c;typeof y==="function"&&(y=y(),Q[V]=y);Q=y}y=K[++c];V=e+1;typeof y==="number"&&y<0&&(V-=y,y=K[++c]);for(;e<V;e++){var L=W[e];Q?D(z,e,p,Q,L):G(z,e,p,L)}}return K[x]=z};
Bbh=function(x){return Array.isArray(x)?x[0]instanceof U_?x:[LfO,x]:[x,void 0]};
e4D=function(x,G){if(x instanceof _.SX)return x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(x))return z4(x,G,!1)};
r6D=function(x,G,D,K){var z=D.$$binaryReaderFn;x[G]=K?function(y,c,W){return z(y,c,W,K)}:z};
sTd=function(x,G,D,K,z){var y=D.$$binaryReaderFn,c,W;x[G]=function(e,Q,p){return y(e,Q,p,W||(W=RS(nm,r6D,sTd,K).messageMetadata),c||(c=Ycf(K)),z)}};
Ycf=function(x){var G=x[mkh];if(G!=null)return G;var D=RS(nm,r6D,sTd,x);G=D.isMessageSet?function(K,z){return pYL(K,z,D)}:function(K,z){for(;HfO(z)&&z.nextWireType_!=4;){var y=z.nextField_,c=D[y];
if(c==null){var W=D.extensions;W&&(W=W[y])&&(W=$kd(W),W!=null&&(c=D[y]=W))}if(c==null||!c(z,K,y)){W=z;c=W.fieldCursor_;iU(W);if(W.discardUnknownFields)var e=void 0;else{var Q=W.decoder_.cursor_-c;W.decoder_.cursor_=c;e=FfV(W.decoder_,Q)}Q=W=c=void 0;var p=K;e&&((c=(W=(Q=p[J6])!=null?Q:p[J6]=new RZh)[y])!=null?c:W[y]=[]).push(e)}}if(K=ff(K))K.reviveUnknownFields=D.binaryFields[CCP];return!0};
x[mkh]=G;x[CCP]=IcQ.bind(x);return G};
IcQ=function(x,G,D,K){var z=this[nm],y=this[mkh],c=z4(void 0,z.messageMetadata,!1),W=ff(x);if(W){var e=!1,Q=z.extensions;if(Q){z=function(H,O,A){if(A.length!==0)if(Q[O])for(H=_.l(A),O=H.next();!O.done;O=H.next()){O=jTE(O.value);try{e=!0,y(c,O)}finally{O.free()}}else K==null||K(x,O,A)};
if(G==null)t6(W,z);else if(W!=null){var p=W[G];p&&z(W,G,p)}if(e){var V=x[_.sE]|0;if(V&2&&V&2048&&(D==null||!D.reviveIntoImmutable))throw Error();var L=w9(V),r=function(H,O){if(rh(x,H,L)!=null)switch(D==null?void 0:D.resolutionBehavior){case 1:return;default:throw Error();}O!=null&&(V=pm(x,V,H,O,L));delete W[H]};
G==null?SDE(c,c[_.sE]|0,function(H,O){r(H,O)}):r(G,rh(c,G,L))}}}};
$kd=function(x){x=Bbh(x);var G=x[0].$$binaryReaderFn;if(x=x[1]){var D=Ycf(x),K=RS(nm,r6D,sTd,x).messageMetadata;return function(z,y,c){return G(z,y,c,K,D)}}return G};
gh=function(x,G,D){x[G]=D.$$binaryWriterFn};
dh=function(x,G,D,K){var z,y,c=D.$$binaryWriterFn;x[G]=function(W,e,Q){return c(W,e,Q,y||(y=RS(uU,gh,dh,K).messageMetadata),z||(z=Of$(K)))}};
Of$=function(x){var G=x[XYh];if(!G){var D=RS(uU,gh,dh,x);G=function(K,z){return A63(K,z,D)};
x[XYh]=G}return G};
A63=function(x,G,D){SDE(x,x[_.sE]|0,function(K,z){if(z!=null){var y=Ukn(D,K);y?y(G,z,K):K<500||pu(R4L,3)}});
(x=ff(x))&&t6(x,function(K,z,y){wh(G,G.encoder_.end());for(K=0;K<y.length;K++)wh(G,O_(y[K])||new Uint8Array(0))})};
Ukn=function(x,G){var D=x[G];if(D)return D;if(D=x.extensions)if(D=D[G]){D=Bbh(D);var K=D[0].$$binaryWriterFn;if(D=D[1]){var z=Of$(D),y=RS(uU,gh,dh,D).messageMetadata;D=x.isMessageSet?Vxd(y,z):function(c,W,e){return K(c,W,e,y,z)}}else D=K;
return x[G]=D}};
_.Sc$=function(x,G,D){if(Array.isArray(G)){var K=G[_.sE]|0;if(K&4)return G;for(var z=0,y=0;z<G.length;z++){var c=x(G[z]);c!=null&&(G[y++]=c)}y<z&&(G.length=y);D&&(Hs(G,(K|5)&-1537),K&2&&Object.freeze(G));return G}};
_.qH=function(x,G,D){return new U_(x,G,D)};
_.ni$=function(x,G,D){return new U_(x,G,D)};
_.NH=function(x,G,D){pm(x,x[_.sE]|0,G,D,w9(x[_.sE]|0))};
ifV=function(x,G,D){G=_.T8(G);G!=null&&(_.Jg(x,D,1),x=x.encoder_,D=fm||(fm=new DataView(new ArrayBuffer(8))),D.setFloat64(0,+G,!0),k8=D.getUint32(0,!0),Ps=D.getUint32(4,!0),_.tg(x,k8),_.tg(x,Ps))};
_.k0=function(x,G,D){G=QsE(G);if(G!=null){switch(typeof G){case "string":gi$(G)}if(G!=null)switch(_.Jg(x,D,0),typeof G){case "number":x=x.encoder_;EE(G);uOC(x,k8,Ps);break;case "bigint":D=BigInt.asUintN(64,G);D=new wYL(Number(D&BigInt(4294967295)),Number(D>>BigInt(32)));uOC(x.encoder_,D.JSC$6874_lo,D.JSC$6874_hi);break;default:D=gi$(G),uOC(x.encoder_,D.JSC$6874_lo,D.JSC$6874_hi)}}};
Nbd=function(x,G,D){G=_.mf(G);G!=null&&G!=null&&(_.Jg(x,D,0),_.qcf(x.encoder_,G))};
_.J6n=function(x,G,D){vin(x,D,psn(G))};
_.fc$=function(x,G,D){G=_.tfL(G);G!=null&&(_.Jg(x,D,0),x.encoder_.JSC$6876_buffer_.push(G?1:0))};
_.k8L=function(x,G,D){G=_.gb(G);G!=null&&tx3(x,D,zPf(G))};
PCC=function(x,G,D,K,z){G=e4D(G,K);G!=null&&(D=_.ZfD(x,D),z(G,x),_.MxE(x,D))};
_.EiL=function(x,G,D){G=G==null||typeof G=="string"||G instanceof Ak?G:void 0;G!=null&&tx3(x,D,c6L(G,!0).buffer)};
_.h43=function(x,G,D){G=_.mf(G);G!=null&&(G=parseInt(G,10),_.Jg(x,D,0),_.qcf(x.encoder_,G))};
_.Pd=function(x,G){return function(D,K){var z={treatNewDataAsImmutable:!0};K&&Object.assign(z,K);D=jTE(D,void 0,void 0,z);try{var y=new x,c=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Ycf(G)(c,D);var W=y}finally{D.free()}return W}};
_.E_=function(x){return function(G){return xHP(G,x)}};
G4E=function(x){return function(){return xHP(this,x)}};
_.DH$=function(x){return q0(function(G){return G instanceof x&&!OE(G)})};
_.hg=function(x){return function(G){return KzV(x,G)}};
ygD=function(x,G){return zUh({child:x,origin:G||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:a7$,getPayloadCase:function(D){return D.getPayloadCase()},
createInitMessage:function(D){var K=new xY,z=new o0Q;D=_.GW(z,1,D);return _.DB(K,5,K9,D)}})};
zW=function(x){return{valueOf:x}.valueOf()};
cgh=function(){var x=null;if(!l7n)return x;try{var G=function(D){return D};
x=l7n.createPolicy("goog#html",{createHTML:G,createScript:G,createScriptURL:G})}catch(D){}return x};
Wzd=function(){ThQ===void 0&&(ThQ=cgh());return ThQ};
_.oF=function(x){var G=Wzd();x=G?G.createScriptURL(x):x;return new aF(x)};
_.lH=function(x){if(x instanceof aF)return x.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("da");};
cC=function(x){return x.toString().indexOf("`")===-1};
WC=function(x){return new _.TW(eUf,x)};
er=function(x){return x instanceof _.TW};
_.ZB=function(x){if(er(x))return x.privateDoNotAccessOrElseWrappedUrl;throw Error("da");};
Mc=function(x){return new Zmh(function(G){return G.substr(0,x.length+1).toLowerCase()===x+":"})};
Q$=function(x,G){G=G===void 0?MXE:G;if(er(x))return x;for(var D=0;D<G.length;++D){var K=G[D];if(K instanceof Zmh&&K.isValid(x))return WC(x)}};
_.V$=function(x,G){G=G===void 0?MXE:G;return Q$(x,G)||p9};
_.L9=function(x){var G=window;if(typeof MediaSource!=="undefined"&&x instanceof MediaSource||typeof G.ManagedMediaSource!=="undefined"&&x instanceof G.ManagedMediaSource)return WC(URL.createObjectURL(x));G=x.type;G.toLowerCase()==="application/octet-stream"?G=!0:(G=G.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),G=(G==null?void 0:G.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(G[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(G[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(G[1])||/^font\/[\w-]+$/i.test(G[1])));if(!G)throw Error("da");return WC(URL.createObjectURL(x))};
_.s2=function(x){for(var G=_.rC.apply(1,arguments),D=[x[0]],K=0;K<G.length;K++)D.push(String(G[K])),D.push(x[K+1]);return WC(D.join(""))};
_.pdD=function(x){if(!QSO){a:{var G=document.createElement("a");try{G.href=x}catch(D){x=void 0;break a}x=G.protocol;x=x===":"||x===""?"https:":x}return x}try{G=new URL(x)}catch(D){return"https:"}return G.protocol};
_.YY=function(x){x instanceof _.TW?x=_.ZB(x):x=VXC.test(x)?x:void 0;return x};
mu=function(x,G){G=_.YY(G);G!==void 0&&(x.href=G)};
$Y=function(x){var G=Wzd();x=G?G.createHTML(x):x;return new HC(x)};
F_=function(x){if(x instanceof HC)return x.privateDoNotAccessOrElseWrappedHtml;throw Error("da");};
_.C9=function(x,G){x.src=_.lH(G).toString()};
bmh=function(x,G){x.setAttribute("sandbox","");for(var D=0;D<G.length;D++)x.sandbox.supports&&!x.sandbox.supports(G[D])||x.sandbox.add(G[D])};
_.LzL=function(x,G,D){x.removeAttribute("srcdoc");switch(G){case 0:if(D instanceof aF)throw new IF("TrustedResourceUrl",0);bmh(x,[]);G=_.YY(D);G!==void 0&&(x.src=G);break;case 1:if(!(D instanceof aF))throw new IF(typeof D,1);bmh(x,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.C9(x,D);break;case 2:if(D instanceof aF)throw new IF("TrustedResourceUrl",2);bmh(x,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
G=_.YY(D);G!==void 0&&(x.src=G);break;default:_.oT(G)}};
_.jr=function(x,G,D,K){G=_.YY(G);return G!==void 0?x.open(G,D,K):null};
_.O2=function(x){x=x===void 0?document:x;var G,D;x=(D=(G=x).querySelector)==null?void 0:D.call(G,"script[nonce]");return x==null?"":x.nonce||x.getAttribute("nonce")||""};
_.A_=function(x){var G=Wzd();x=G?G.createScript(x):x;return new _.X_(x)};
U2=function(x){if(x instanceof _.X_)return x.privateDoNotAccessOrElseWrappedScript;throw Error("da");};
Bhh=function(x){var G=_.O2(x.ownerDocument);G&&x.setAttribute("nonce",G)};
_.RF=function(x,G){x.textContent=U2(G);Bhh(x)};
_.Sr=function(x,G){x.src=_.lH(G);Bhh(x)};
_.n9=function(x,G){if(x.nodeType===1&&/^(script|style)$/i.test(x.tagName))throw Error("da");x.innerHTML=F_(G)};
_.iH=function(x,G,D,K){if(x.length===0)throw Error("da");x=x.map(function(y){if(y instanceof rgf)y=y.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("da");return y});
var z=D.toLowerCase();if(x.every(function(y){return z.indexOf(y)!==0}))throw Error("ea`"+D);
G.setAttribute(D,K)};
_.gC=function(x,G,D){if(G instanceof aF)x.href=_.lH(G).toString(),x.rel=D;else{if(sSD.indexOf(D)===-1)throw Error("fa`"+D);G=_.YY(G);G!==void 0&&(x.href=G,x.rel=D)}};
Y_n=function(x){return"function"==typeof _.uH&&x instanceof _.uH};
_.mHf=function(x){if(Y_n(x))return x.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("da");};
_.wC=function(x,G){G=_.YY(G);G!==void 0&&(x.href=G)};
qc=function(x,G){x&&(G=x.indexOf(G),0<=G&&x.splice(G,1))};
Nc=function(x){return typeof x==="function"};
HmE=function(x){return x instanceof vC||x&&"closed"in x&&Nc(x.remove)&&Nc(x.add)&&Nc(x.unsubscribe)};
J_=function(){};
f9=function(x){$H$(function(){throw x;})};
t_=function(x){return x};
kY=function(){return Fzn(_.rC.apply(0,arguments))};
Fzn=function(x){return x.length===0?t_:x.length===1?x[0]:function(G){return x.reduce(function(D,K){return K(D)},G)}};
CUC=function(x){var G;return(G=x!=null?x:void 0)!=null?G:Promise};
I7C=function(x,G){return new E2(function(D){var K=0;return G.schedule(function(){K===x.length?D.complete():(D.next(x[K++]),D.closed||this.schedule())})})};
jSL=function(x,G){if(!x)throw Error("ga");return new E2(function(D){var K=new vC;K.add(G.schedule(function(){var z=x[Symbol.asyncIterator]();K.add(G.schedule(function(){var y=this;z.next().then(function(c){c.done?D.complete():(D.next(c.value),y.schedule())})}))}));
return K})};
OmC=function(x,G,D){G=G.schedule(function(){try{D.call(this)}catch(K){x.error(K)}},0);
x.add(G)};
XdC=function(x,G){return new E2(function(D){var K;D.add(G.schedule(function(){K=x[h_]();OmC(D,G,function(){var z=K.next(),y=z.value;z.done?D.complete():(D.next(y),this.schedule())})}));
return function(){var z;return Nc((z=K)==null?void 0:z.return)&&K.return()}})};
AgV=function(x,G){return new E2(function(D){var K=new vC;K.add(G.schedule(function(){var z=x[xR]();K.add(z.subscribe({next:function(y){K.add(G.schedule(function(){return D.next(y)}))},
error:function(y){K.add(G.schedule(function(){return D.error(y)}))},
complete:function(){K.add(G.schedule(function(){return D.complete()}))}}))}));
return K})};
UHP=function(x,G){return new E2(function(D){return G.schedule(function(){return x.then(function(K){D.add(G.schedule(function(){D.next(K);D.add(G.schedule(function(){return D.complete()}))}))},function(K){D.add(G.schedule(function(){return D.error(K)}))})})})};
RUQ=function(x){return new TypeError("ha`"+(x!==null&&typeof x==="object"?"an invalid object":"'"+x+"'"))};
n0O=function(x,G){if(x!=null){if(Nc(x[xR]))return AgV(x,G);if(S_L(x))return I7C(x,G);if(Nc(x==null?void 0:x.then))return UHP(x,G);if(Symbol.asyncIterator&&Nc(x==null?void 0:x[Symbol.asyncIterator]))return jSL(x,G);if(Nc(x==null?void 0:x[h_]))return XdC(x,G)}throw RUQ(x);};
DY=function(x,G){return G?n0O(x,G):GA(x)};
GA=function(x){if(x instanceof E2)return x;if(x!=null){if(Nc(x[xR]))return imn(x);if(S_L(x))return g0h(x);if(Nc(x==null?void 0:x.then))return ucV(x);if(Symbol.asyncIterator&&Nc(x==null?void 0:x[Symbol.asyncIterator]))return dH3(x);if(Nc(x==null?void 0:x[h_]))return wdf(x)}throw RUQ(x);};
imn=function(x){return new E2(function(G){var D=x[xR]();if(Nc(D.subscribe))return D.subscribe(G);throw new TypeError("ia");})};
g0h=function(x){return new E2(function(G){for(var D=0;D<x.length&&!G.closed;D++)G.next(x[D]);G.complete()})};
ucV=function(x){return new E2(function(G){x.then(function(D){G.closed||(G.next(D),G.complete())},function(D){return G.error(D)}).then(null,f9)})};
wdf=function(x){return new E2(function(G){for(var D=x[h_]();!G.closed;){var K=D.next(),z=K.value;K.done?G.complete():G.next(z)}return function(){return Nc(D==null?void 0:D.return)&&D.return()}})};
dH3=function(x){return new E2(function(G){q_C(x,G).catch(function(D){return G.error(D)})})};
q_C=function(x,G){var D,K,z,y,c,W;return _.T(function(e){switch(e.nextAddress){case 1:_.Kl(e,2,3);var Q=x[Symbol.asyncIterator];y=Q!==void 0?Q.call(x):new Nhf(_.l(x));case 5:return _.Z(e,y.next(),8);case 8:K=e.yieldResult;if(K.done){e.jumpTo(3);break}c=K.value;G.next(c);e.jumpTo(5);break;case 3:_.zA(e);_.o0(e,9);if(!K||K.done||!(z=y.return)){e.jumpTo(9);break}return _.Z(e,z.call(y),9);case 9:_.zA(e,0,0,1);if(D)throw D.error;_.y6(e,10,1);break;case 10:_.y6(e,4);break;case 2:W=_.lX(e);D={error:W};e.jumpTo(3);
break;case 4:G.complete(),_.c5(e)}})};
TA=function(x,G){return G?I7C(x,G):g0h(x)};
v0f=function(x){return Nc(x[x.length-1])?x.pop():void 0};
W5=function(x){var G=x[x.length-1];return G&&Nc(G.schedule)?x.pop():void 0};
ez=function(){var x=_.rC.apply(0,arguments),G=W5(x);return G?I7C(x,G):TA(x)};
ZY=function(x){var G=Nc(x)?x:function(){return x};
return new E2(function(D){return D.error(G())})};
M1=function(x){return function(G){if(Nc(G==null?void 0:G.lift))return G.lift(function(D){try{return x(D,this)}catch(K){this.error(K)}});
throw new TypeError("ja");}};
pl=function(){return M1(function(x,G){var D=null;x._refCount++;var K=new Q6(G,void 0,void 0,void 0,function(){if(!x||x._refCount<=0||0<--x._refCount)D=null;else{var z=x._connection,y=D;D=null;!z||y&&z!==y||z.unsubscribe();G.unsubscribe()}});
x.subscribe(K);K.closed||(D=x.connect())})};
f7O=function(){var x=JgD;var G=G===void 0?0:G;return M1(function(D,K){K.add(x.schedule(function(){return D.subscribe(K)},G))})};
V6=function(x){return M1(function(G,D){var K=0;G.subscribe(new Q6(D,function(z){D.next(x.call(void 0,z,K++))}))})};
k4C=function(x){return V6(function(G){return tXf(G)?x.apply(null,_.B5(G)):x(G)})};
GWd=function(x){if(x.length===1){var G=x[0];if(PUQ(G))return{args:G,keys:null};if(G&&typeof G==="object"&&E0h(G)===hUL)return x=xcd(G),{args:x.map(function(D){return G[D]}),
keys:x}}return{args:x,keys:null}};
r4=function(){var x=_.rC.apply(0,arguments),G=W5(x),D=v0f(x);x=GWd(x);var K=x.args,z=x.keys;if(K.length===0)return DY([],G);G=new E2(Dcf(K,G,z?function(y){for(var c={},W=0;W<y.length;W++)c[z[W]]=y[W];return c}:t_));
return D?G.pipe(k4C(D)):G};
Dcf=function(x,G,D){D=D===void 0?t_:D;return function(K){Ku3(G,function(){for(var z=x.length,y=Array(z),c=z,W=x.map(function(){return!1}),e=!0,Q={i$jscomp$216:0};Q.i$jscomp$216<z;Q={i$jscomp$216:Q.i$jscomp$216},Q.i$jscomp$216++)Ku3(G,function(p){return function(){DY(x[p.i$jscomp$216],G).subscribe(new ss(K,function(V){y[p.i$jscomp$216]=V;
e&&(W[p.i$jscomp$216]=!0,e=!W.every(t_));e||K.next(D(y.slice()))},function(){return--c===0}))}}(Q),K)},K)}};
Ku3=function(x,G,D){x?D.add(x.schedule(G)):G()};
zof=function(x,G,D,K){var z=[],y=0,c=0,W=!1,e=function(Q){y++;GA(D(Q,c++)).subscribe(new Q6(G,function(p){G.next(p)},void 0,function(){y--;
for(var p={};z.length&&y<K;p={bufferedValue:void 0})p.bufferedValue=z.shift(),e(p.bufferedValue);!W||z.length||y||G.complete()}))};
x.subscribe(new Q6(G,function(Q){return y<K?e(Q):z.push(Q)},void 0,function(){W=!0;
!W||z.length||y||G.complete()}));
return function(){z=null}};
YR=function(x,G){var D=D===void 0?Infinity:D;if(Nc(G))return YR(function(K,z){return V6(function(y,c){return G(K,y,z,c)})(GA(x(K,z)))},D);
typeof G==="number"&&(D=G);return M1(function(K,z){return zof(K,z,x,D)})};
aBE=function(x){x=x===void 0?Infinity:x;return YR(t_,x)};
oYP=function(){var x=_.rC.apply(0,arguments);return aBE(1)(TA(x,W5(x)))};
mV=function(x){return new E2(function(G){GA(x()).subscribe(G)})};
$R=function(x,G,D){if(Nc(D)){var K=D;D=void 0}if(K)return $R(x,G,D).pipe(k4C(K));K=_.l(Nc(x.addEventListener)&&Nc(x.removeEventListener)?y_n.map(function(c){return function(W){return x[c](G,W,D)}}):Nc(x.addListener)&&Nc(x.removeListener)?lBn.map(c_L(x,G)):Nc(x.on)&&Nc(x.off)?TCn.map(c_L(x,G)):[]);
var z=K.next().value,y=K.next().value;return!z&&S_L(x)?YR(function(c){return $R(c,G,D)})(TA(x)):new E2(function(c){if(!z)throw new TypeError("ka");
var W=function(){var e=_.rC.apply(0,arguments);return c.next(1<e.length?e:e[0])};
z(W);return function(){return y(W)}})};
c_L=function(x,G){return function(D){return function(K){return x[D](G,K)}}};
Cl=function(){var x=_.rC.apply(0,arguments),G=W5(x);var D=typeof x[x.length-1]==="number"?x.pop():Infinity;return x.length?x.length===1?GA(x[0]):aBE(D)(TA(x,G)):FF};
eof=function(x){return x.length===1&&WuL(x[0])?x[0]:x};
Z9E=function(){var x=eof(_.rC.apply(0,arguments));return M1(function(G,D){var K=[G].concat(_.B5(x)),z=function(){if(!D.closed)if(K.length>0){try{var y=GA(K.shift())}catch(W){z();return}var c=new Q6(D,void 0,J_,J_);D.add(y.subscribe(c));c.add(z)}else D.complete()};
z()})};
I0=function(x){return M1(function(G,D){var K=0;G.subscribe(new Q6(D,function(z){return x.call(void 0,z,K++)&&D.next(z)}))})};
QFD=function(){var x=_.rC.apply(0,arguments);x=eof(x);return x.length===1?GA(x[0]):new E2(MrL(x))};
MrL=function(x){return function(G){for(var D=[],K={i$jscomp$219:0};D&&!G.closed&&K.i$jscomp$219<x.length;K={i$jscomp$219:K.i$jscomp$219},K.i$jscomp$219++)D.push(GA(x[K.i$jscomp$219]).subscribe(new Q6(G,function(z){return function(y){if(D){for(var c=0;c<D.length;c++)c!==z.i$jscomp$219&&D[c].unsubscribe();D=null}G.next(y)}}(K))))}};
pCd=function(){var x=_.rC.apply(0,arguments),G=v0f(x),D=eof(x);return D.length?new E2(function(K){var z=D.map(function(){return[]}),y=D.map(function(){return!1});
K.add(function(){z=y=null});
for(var c={sourceIndex$jscomp$1:0};!K.closed&&c.sourceIndex$jscomp$1<D.length;c={sourceIndex$jscomp$1:c.sourceIndex$jscomp$1},c.sourceIndex$jscomp$1++)GA(D[c.sourceIndex$jscomp$1]).subscribe(new Q6(K,function(W){return function(e){z[W.sourceIndex$jscomp$1].push(e);z.every(function(Q){return Q.length})&&(e=z.map(function(Q){return Q.shift()}),K.next(G?G.apply(null,_.B5(e)):e),z.some(function(Q,p){return!Q.length&&y[p]})&&K.complete())}}(c),void 0,function(W){return function(){y[W.sourceIndex$jscomp$1]=
!0;
!z[W.sourceIndex$jscomp$1].length&&K.complete()}}(c)));
return function(){z=y=null}}):FF};
VrE=function(x){var G,D,K;return!!x&&typeof x.active==="boolean"&&typeof((G=x.clock)==null?void 0:G.now)==="function"&&((D=x.clock)==null?void 0:D.timeline)!==void 0&&!((K=x.lastMeasurement)==null||!K.timestamp)&&typeof x.equivalentTo==="function"&&typeof x.extrapolateToNow==="function"&&typeof x.extrapolateToTime==="function"&&typeof x.map==="function"&&typeof x.joinWith==="function"};
b9C=function(x){function G(D){return typeof D==="boolean"||typeof D==="string"||typeof D==="number"||D===void 0||D===null}
return G(x)?!0:Array.isArray(x)?x.every(G):typeof x==="object"?Object.keys(x).every(function(D){return typeof D==="string"})&&Object.values(x).every(function(D){return Array.isArray(D)?D.every(G):G(D)}):!1};
Luf=function(x){if(b9C(x))return x;if(VrE(x))return{lastMeasurement:{value:Luf(x.lastMeasurement.value),timestamp:jz(x.lastMeasurement.timestamp,new Os(0,x.lastMeasurement.timestamp.timeline))},active:x.active};try{return JSON.parse(JSON.stringify(x))}catch(G){}return String(x)};
XF=function(x,G){return function(D){return new E2(function(K){return D.subscribe(function(z){x.timeExecution(G,function(){K.next(z)})()},function(z){x.timeExecution(G,function(){K.error(z)})()},function(){x.timeExecution(G,function(){K.complete()})()})})}};
BCf=function(x,G){var D=!1;return new E2(function(K){var z=x.setTimeout(function(){D=!0;K.next(!0);K.complete()},G);
return function(){D||x.clearTimeout(z)}})};
r_3=function(x){x=x.global;if(x.fetchLater)return x.fetchLater.bind(x)};
A1=function(x){return M1(function(G,D){var K=null,z=!1,y;K=G.subscribe(new Q6(D,void 0,function(c){y=GA(x(c,A1(x)(G)));K?(K.unsubscribe(),K=null,y.subscribe(D)):z=!0}));
z&&(K.unsubscribe(),K=null,y.subscribe(D))})};
sFP=function(x,G,D){return function(K,z){var y=D,c=G,W=0;K.subscribe(new Q6(z,function(e){var Q=W++;c=y?x(c,e,Q):(y=!0,e);z.next(c)},void 0,void 0))}};
Y2E=function(x){x=x===void 0?null:x;return M1(function(G,D){var K=!1;G.subscribe(new Q6(D,function(z){K=!0;D.next(z)},void 0,function(){K||D.next(x);
D.complete()}))})};
Us=function(){return M1(function(x,G){x.subscribe(new Q6(G,J_))})};
R0=function(x){return M1(function(G,D){G.subscribe(new Q6(D,function(){return D.next(x)}))})};
Sz=function(x){return x<=0?function(){return FF}:M1(function(G,D){var K=0;
G.subscribe(new Q6(D,function(z){++K<=x&&(D.next(z),x<=K&&D.complete())}))})};
nl=function(x){var G=G===void 0?t_:G;var D;x=(D=x)!=null?D:mcn;return M1(function(K,z){var y,c=!0;K.subscribe(new Q6(z,function(W){var e=G(W);if(c||!x(y,e))c=!1,y=e,z.next(W)}))})};
mcn=function(x,G){return x===G};
$cO=function(x){x=x===void 0?H9V:x;return M1(function(G,D){var K=!1;G.subscribe(new Q6(D,function(z){K=!0;D.next(z)},void 0,function(){return K?D.complete():D.error(x())}))})};
H9V=function(){return new FuP};
iX=function(){var x=_.rC.apply(0,arguments);return function(G){return oYP(G,ez.apply(null,_.B5(x)))}};
CHh=function(x){return M1(function(G,D){var K=0;G.subscribe(new Q6(D,function(z){x.call(void 0,z,K++,G)||(D.next(!1),D.complete())},void 0,function(){D.next(!0);
D.complete()}))})};
IBL=function(){return M1(function(x,G){var D=[];x.subscribe(new Q6(G,function(K){D.push(K);1<D.length&&D.shift()},void 0,function(){for(var K=_.l(D),z=K.next();!z.done;z=K.next())G.next(z.value);
G.complete()},function(){D=null}))})};
jFP=function(x,G){var D=arguments.length>=2;return function(K){return K.pipe(x?I0(function(z,y){return x(z,y,K)}):t_,IBL(),D?Y2E(G):$cO(function(){return new FuP}))}};
w4=function(x){var G=Nc(x)?x:function(){return x};
return Nc()?M1(function(D,K){var z=G();(void 0)(z).subscribe(K).add(D.subscribe(z))}):function(D){var K=new d4(D,G);
Nc(D==null?void 0:D.lift)&&(K.lift=D.lift);K.source=D;K.subjectFactory=G;return K}};
N1=function(x){var G=new q1(x,void 0,void 0);return function(D){return w4(function(){return G})(D)}};
v5=function(x,G){return M1(sFP(x,G,arguments.length>=2))};
J1=function(){var x=_.rC.apply(0,arguments),G=W5(x);return M1(function(D,K){(G?oYP(x,D,G):oYP(x,D)).subscribe(K)})};
t1=function(x){return M1(function(G,D){var K=null,z=0,y=!1;G.subscribe(new Q6(D,function(c){var W;(W=K)==null||W.unsubscribe();W=z++;GA(x(c,W)).subscribe(K=new Q6(D,function(e){return D.next(e)},void 0,function(){K=null;
y&&!K&&D.complete()}))},void 0,function(){(y=!0,!K)&&D.complete()}))})};
kR=function(x,G){G=G===void 0?!1:G;return M1(function(D,K){var z=0;D.subscribe(new Q6(K,function(y){var c=x(y,z++);(c||G)&&K.next(y);!c&&K.complete()}))})};
P5=function(x,G,D){var K=Nc(x)||G||D?{next:x,error:G,complete:D}:x;return K?M1(function(z,y){z.subscribe(new Q6(y,function(c){var W;(W=K.next)==null||W.call(K,c);y.next(c)},function(c){var W;
(W=K.error)==null||W.call(K,c);y.error(c)},function(){var c;
(c=K.complete)==null||c.call(K);y.complete()}))}):t_};
O93=function(){var x=_.rC.apply(0,arguments),G=v0f(x);return M1(function(D,K){for(var z=x.length,y=Array(z),c=x.map(function(){return!1}),W=!1,e={i$jscomp$229:0};e.i$jscomp$229<z;e={i$jscomp$229:e.i$jscomp$229},e.i$jscomp$229++)GA(x[e.i$jscomp$229]).subscribe(new Q6(K,function(Q){return function(p){y[Q.i$jscomp$229]=p;
W||c[Q.i$jscomp$229]||(c[Q.i$jscomp$229]=!0,(W=c.every(t_))&&(c=null))}}(e),void 0,J_));
D.subscribe(new Q6(K,function(Q){W&&(Q=[Q].concat(_.B5(y)),K.next(G?G.apply(null,_.B5(Q)):Q))}))})};
XCE=function(x){var G=[],D=0,K;for(K in x)G[D++]=K;return G};
A_n=function(x,G){for(var D in x)if(x[D]==G)return!0;return!1};
UcQ=function(x,G,D){for(var K in x)if(G.call(D,x[K],K,x))return K};
RoE=function(x){if(!x||typeof x!=="object")return x;if(typeof x.clone==="function")return x.clone();if(typeof Map!=="undefined"&&x instanceof Map)return new Map(x);if(typeof Set!=="undefined"&&x instanceof Set)return new Set(x);if(x instanceof Date)return new Date(x.getTime());var G=Array.isArray(x)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(x)||x instanceof DataView?{}:new x.constructor(x.length),D;for(D in x)G[D]=RoE(x[D]);return G};
S2d=function(x){var G=arguments.length;if(G==1&&Array.isArray(arguments[0]))return S2d.apply(null,arguments[0]);if(G%2)throw Error("oa");for(var D={},K=0;K<G;K+=2)D[arguments[K]]=arguments[K+1];return D};
nYV=function(x){var G=arguments.length;if(G==1&&Array.isArray(arguments[0]))return nYV.apply(null,arguments[0]);for(var D={},K=0;K<G;K++)D[arguments[K]]=!0;return D};
_.Es=function(x){return new rgf(x[0].toLowerCase())};
i9O=function(x){try{return new URL(x,window.document.baseURI)}catch(G){return new URL("about:invalid")}};
gYL=function(x,G){var D=G.createRange();D.selectNode(G.body);x=$Y(x);return D.createContextualFragment(F_(x))};
u_$=function(x){x=x.nodeName;return typeof x==="string"?x:"FORM"};
dc$=function(x){x=x.nodeType;return x===1||typeof x!=="number"};
h1=function(x,G,D){x.setAttribute(G,D)};
wCQ=function(x){return x.parts.map(function(G){var D=G.descriptor;return""+G.url+(D?" "+D:"")}).join(" , ")};
_.xS=function(x){var G=_.rC.apply(1,arguments);if(G.length===0)return _.oF(x[0]);for(var D=x[0],K=0;K<G.length;K++)D+=encodeURIComponent(G[K])+x[K+1];return _.oF(D)};
_.Gj=function(x,G){x=_.lH(x).toString();var D=x.split(/[?#]/),K=/[?]/.test(x)?"?"+D[1]:"";return q2V(D[0],K,/[#]/.test(x)?"#"+(K?D[2]:D[1]):"",G)};
q2V=function(x,G,D,K){function z(c,W){c!=null&&(Array.isArray(c)?c.forEach(function(e){return z(e,W)}):(G+=y+encodeURIComponent(W)+"="+encodeURIComponent(c),y="&"))}
var y=G.length?"&":"?";K.constructor===Object&&(K=Object.entries(K));Array.isArray(K)?K.forEach(function(c){return z(c[1],c[0])}):K.forEach(z);
return _.oF(x+G+D)};
D_=function(x,G,D,K){this.top=x;this.right=G;this.bottom=D;this.left=K};
NC$=function(x){x=x.global;if(x.PendingGetBeacon)return x.PendingGetBeacon};
zj=function(x){return function(G){return G.pipe(vY3(x,w4(new K2)))}};
ah=function(x){return function(G){return G.pipe(vY3(x,N1(1)))}};
vY3=function(x,G){function D(K){return new E2(function(z){return K.subscribe(function(y){oh(x,function(){return void z.next(y)},3)},function(y){oh(x,function(){return void z.error(y)},3)},function(){oh(x,function(){return void z.complete()},3)})})}
return kY(D,f7O(),G,pl(),D)};
trV=function(x){var G=J_C(x);return G===null?new yx(null):G.pipe(V6(function(D){D=D.serialize();if(fBf)D=_.Df.btoa(D);else{for(var K=[],z=0,y=0;y<D.length;y++){var c=D.charCodeAt(y);c>255&&(K[z++]=c&255,c>>=8);K[z++]=c}D=_.PY(K)}return D}),Sz(1),ah(x.queue))};
kWf=function(x){var G=G===void 0?{}:G;if(typeof Event==="function")return new Event(x,G);if(typeof document!=="undefined"){var D=document.createEvent("CustomEvent");D.initCustomEvent(x,G.bubbles||!1,G.cancelable||!1,G.detail);return D}throw Error();};
PH3=function(x){return typeof x==="string"?document.getElementById(x):x};
hod=function(x){var G=!1;G=G===void 0?!1:G;if(x.tagName==="IMG"){if(x.complete&&(!x.naturalWidth||!x.naturalHeight))return!0;var D;if(G&&((D=x.style)==null?void 0:D.display)==="none")return!0}var K,z;return EYf.test((K=x.getAttribute("width"))!=null?K:"")&&EYf.test((z=x.getAttribute("height"))!=null?z:"")};
x1f=function(x,G){if(x.tagName==="IMG")return x.naturalWidth&&x.naturalHeight?!0:!1;try{if(x.readyState)var D=x.readyState;else{var K,z;D=(K=x.contentWindow)==null?void 0:(z=K.document)==null?void 0:z.readyState}return D==="complete"}catch(y){return G===void 0?!1:G}};
GAE=function(x){x||(x=function(G,D,K){G.addEventListener(D,K)});
return x};
aYO=function(x,G){var D=D1$();D=D===void 0?new KV3:D;if(x=PH3(x)){var K=GAE(K);for(var z=!1,y=function(A){z||(z=!0,G(A))},c,W=2,e=0;e<zGL.length;++e)if(zGL[e]===x.tagName){W=3;
c=[x];break}c||(c=x.querySelectorAll(zGL.join(",")));var Q=0,p=0,V=!0,L=x=!1;e={};for(var r=0;r<c.length;e={isImg:void 0},r++){var H=c[r];if(!hod(H))if(e.isImg=H.tagName==="IMG",x1f(H,D.crossDomainLoadedDefault))x=!0,e.isImg&&(V=!0);else{Q++;var O=function(A){return function(g){Q--;!Q&&V&&y(W);A.isImg&&(g=g&&g.type==="error",p--,g||(V=!0),!p&&L&&V&&y(W))}}(e);
K(H,"load",O);e.isImg&&(p++,K(H,"error",O))}}p===0&&(V=!0);c=null;c=_.Df.document.readyState==="complete";if(Q===0&&!x&&c)W=5;else if(Q||!x){K(_.Df,"load",function(){!D.pendingImagesBlockLoad||!p&&V?y(4):L=!0});
return}y(W)}};
oR$=function(x,G,D){if(x)for(var K=0;x!=null&&K<500&&!D(x);++K)x=G(x)};
y1h=function(x,G){oR$(x,function(D){try{return D===D.parent?null:D.parent}catch(K){}return null},G)};
lYh=function(x,G){if(x.tagName=="IFRAME")G(x);else{x=x.querySelectorAll("IFRAME");for(var D=0;D<x.length&&!G(x[D]);++D);}};
c1V=function(x){return(x=x.ownerDocument)&&(x.parentWindow||x.defaultView)||null};
T4C=function(x,G,D){try{var K=JSON.parse(D.data)}catch(c){}if(typeof K==="object"&&K&&K.type==="creativeLoad"){var z=c1V(x);if(D.source&&z){var y;y1h(D.source,function(c){try{if(c.parent===z)return y=c,!0}catch(W){}});
y&&lYh(x,function(c){if(c.contentWindow===y)return G(K),!0})}}};
WVn=function(x){return typeof x==="string"?document.getElementById(x):x};
Q0E=function(){var x={};return x[0]=_.xS(eGO,"current"),x[1]=_.xS(ZlQ),x[2]=_.xS(MzQ),x};
lN=function(x,G){return x.left===G.left&&x.top===G.top&&x.width===G.width&&x.height===G.height};
p5D=function(x,G){return{left:Math.max(x.left,G.left),top:Math.max(x.top,G.top),width:Math.max(0,Math.min(x.left+x.width,G.left+G.width)-Math.max(x.left,G.left)),height:Math.max(0,Math.min(x.top+x.height,G.top+G.height)-Math.max(x.top,G.top))}};
VzE=function(x,G){return{left:Math.round(x.left+G.x),top:Math.round(x.top+G.y),width:x.width,height:x.height}};
blL=function(x,G,D){if(x&&G!==null&&G!=G.top){if(!G.top)return new _.cu(-12245933,-12245933);G=G.top}try{return(D===void 0?0:D)?(new _.cu(G.innerWidth,G.innerHeight)).round():_.Tj(G).round()}catch(K){return new _.cu(-12245933,-12245933)}};
LVh=function(x,G,D){try{if(x){if(!G.top)return new D_(-12245933,-12245933,-12245933,-12245933);G=G.top}var K=blL(x,G,D),z=K.height,y=K.width;if(y===-12245933)return new D_(y,y,y,y);var c=Wu(ei(G.document)),W=c.x,e=c.y;return new D_(e,W+y,e+z,W)}catch(Q){return new D_(-12245933,-12245933,-12245933,-12245933)}};
B4f=function(x){var G;return(G=x.google_tag_data)!=null?G:x.google_tag_data={}};
r1n=function(x){var G,D;return typeof((G=x.navigator)==null?void 0:(D=G.userAgentData)==null?void 0:D.getHighEntropyValues)==="function"};
YsP=function(x){if(!r1n(x))return null;var G=B4f(x);if(G.uach_promise)return G.uach_promise;x=x.navigator.userAgentData.getHighEntropyValues(s0n).then(function(D){G.uach!=null||(G.uach=D);return D});
return G.uach_promise=x};
RGf=function(x){var G;return m1f(HlV($1V(FVf(CXh(IYQ(j0O(OlP(X5h(new A1f,x.architecture||""),x.bitness||""),x.mobile||!1),x.model||""),x.platform||""),x.platformVersion||""),x.uaFullVersion||""),((G=x.fullVersionList)==null?void 0:G.map(function(D){var K=new U1L;K=_.Z_(K,1,D.brand);return _.Z_(K,2,D.version)}))||[]),x.wow64||!1)};
SsL=function(x){var G,D;return(D=(G=YsP(x))==null?void 0:G.then(function(K){return RGf(K)}))!=null?D:null};
nR$=function(x,G){return new E2(function(D){var K=!1,z=Array(G.length);z.fill(void 0);var y=new Set,c=new Set,W=function(V,L){x.running?(z[L]=V,y.add(L),K||(K=!0,oh(x,function(){K=!1;D.next(_.kC(z))},1))):D.error(new MY(L))},e=function(V,L){c.add(L);
y.add(L);oh(x,function(){D.error(V)},1)},Q=function(V){c.add(V);
oh(x,function(){c.size===G.length&&D.complete()},1)},p=G.map(function(V,L){return V.subscribe(function(r){return void W(r,L)},function(r){return void e(r,L)},function(){return void Q(L)})});
return function(){p.forEach(function(V){return void V.unsubscribe()})}})};
gRd=function(x,G,D){function K(){if(G.debugChannel){var A=G.debugChannel,g=A.next;var u={creativeId:G.debugNames.getName(D),requiredSignals:z,signals:Object.assign({},y),hasPrematurelyCompleted:c,errorMessage:W,erroredSignalKey:e};u={specMajor:2,specMinor:0,specPatch:0,timestamp:jz(G.timeProvider.now(),new Os(0,G.timeProvider.timeline)),instanceId:G.debugNames.getName(G.symbol),creativeState:u};g.call(A,u)}}
for(var z=Object.keys(x),y={},c=!1,W=null,e=null,Q={},p=new Set,V=[],L=[],r=_.l(z),H=r.next(),O={};!H.done;O={key$jscomp$374:void 0},H=r.next())O.key$jscomp$374=H.value,H=x[O.key$jscomp$374],H instanceof yx?(Q[O.key$jscomp$374]=H.value,p.add(O.key$jscomp$374),G.debugChannel&&(y[String(O.key$jscomp$374)]=Luf(H.value))):(H=H.pipe(nl(function(A,g){return VrE(A)||VrE(g)?!1:A===g}),V6(function(A){return function(g){G.debugChannel&&(y[String(A.key$jscomp$374)]=Luf(g),K());
var u={};return u[A.key$jscomp$374]=g,u}}(O)),A1(function(A){return function(g){if(g instanceof MY)throw new ilQ(String(A.key$jscomp$374));
throw g;}}(O)),P5(function(A){return function(){p.add(A.key$jscomp$374)}}(O),function(A){return function(g){e=String(A.key$jscomp$374);
W=String(g);K()}}(O),function(A){return function(){p.has(A.key$jscomp$374)||(c=!0,K())}}(O))),L.push(O.key$jscomp$374),V.push(H));
(x=Object.keys(y).length>0)&&K();r=nR$(G.queue,V).pipe(A1(function(A){if(A instanceof MY)throw new Qx(String(L[A.inputObservableIndex]));throw A;}),V6(function(A){return Object.freeze(Object.assign.apply(Object,[{},
Q].concat(_.B5(A))))}));
return(V=V.length>0)&&x?Cl(ez(Object.freeze(Q)),r):V?r:ez(Object.freeze(Q))};
uFC=function(x,G,D,K,z){return x.performanceMonitor.timeExecution.bind(x.performanceMonitor)(733,function(){var y={};try{return G.pipe(A1(function(c){K(Object.assign({},y,{error:c}));return FF}),YR(function(c){try{var W=D(x,c)}catch(Q){return K(Object.assign({},y,{error:Q instanceof Error?Q:String(Q)})),FF}var e={};
return gRd(W,x,c.symbol).pipe(P5(function(Q){e=Q}),N1(1),pl()).pipe(z,A1(function(Q){K(Object.assign({},e,{error:Q}));
return FF}),iX(void 0),V6(function(){return!0}))})).pipe(v5(function(c){return c+1},0),A1(function(c){K(Object.assign({},y,{error:c}));
return FF}))}catch(c){return K(Object.assign({},y,{error:c})),FF}})()};
p2=function(x){var G=new Map;if(typeof x!=="object"||x===null)return G;Object.values(x).forEach(function(D){D&&typeof D.extrapolateToNow==="function"&&(G.has(D.clock.timeline)||G.set(D.clock.timeline,D.clock.now()))});
return G};
d1C=function(x,G){return typeof x==="string"?encodeURIComponent(x):typeof x==="number"?String(x):Array.isArray(x)?x.map(function(D){return d1C(D,G)}).join(","):x instanceof Os?x.toString():x&&typeof x.extrapolateToNow==="function"?d1C(x.extrapolateUsingTimestampMap(G).value,G):x===!0?"1":x===!1?"0":x===void 0||x===null?null:x instanceof w5E?qsf(x):[x.top,
x.left,x.top+x.height,x.left+x.width].join()};
L2=function(x,G){x=Object.entries(x).map(function(D){var K=_.l(D);D=K.next().value;K=K.next().value;K=d1C(K,G);return K===null?"":D+"="+K}).filter(function(D){return D!==""});
return x.length?x.join("&"):""};
J1L=function(x,G){var D=N4h,K=vRD;G=G===void 0?.01:G;return function(z){G>0&&Math.random()<=G&&(x.global.HTMLFencedFrameElement&&x.global.fence&&typeof x.global.fence.reportEvent==="function"&&x.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),z=Object.assign({},z,{errorMessage:z.error instanceof Error&&z.error.message?z.error.message:String(z.error),errorStack:z.error instanceof Error&&z.error.stack?String(z.error.stack):null,errorName:z.error instanceof
Error&&z.error.name?String(z.error.name):null,errorContext:String(x.performanceMonitor.timedFunctionContext),errorEscapedQueryId:z.escapedQueryId}),D(Object.assign({},z,{payloadMapper:function(){return function(y){try{return K(Object.assign({},y))}catch(c){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),p2(z)).forEach(function(y){x.beaconFactory.makeBeacon(y).sendNow()}))}};
fYh=function(){var x=_.rC.apply(0,arguments);return function(G){var D=G.pipe(N1(1),pl());G=x.map(function(K){return D.pipe(K,iX(!0))});
return r4(G).pipe(Sz(1),Us())}};
tz$=function(){var x=_.rC.apply(0,arguments);return function(G){var D=G.pipe(N1(1),pl());G=x.map(function(K){return D.pipe(K,iX(!0))});
return Cl.apply(null,_.B5(G)).pipe(Sz(1),Us())}};
kAn=function(x,G){return function(D){var K=D.pipe(N1(1),pl());D=K.pipe(x,iX(!0));K=K.pipe(kY(G,N1(),pl()),iX(!0));D=r4([D,K]);return QFD(D,K).pipe(Sz(1),Us())}};
PXD=function(x,G,D){D(!0)};
ERE=function(x,G){return kY(t1(function(D){var K=x(D),z=G(D),y={};return K&&z&&y?new E2(function(c){z(K,y,function(W){c.next(Object.assign({},D,{canEmit:W}));c.complete()});
return function(){}}):Bu}),I0(function(D){return D.canEmit}))};
hGD=function(x){var G={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(D){return D.pipe(t1(function(K){return new E2(function(z){function y(){W.disconnect();e.unsubscribe()}
var c=x.MutationObserver;if(c&&K.ref!==void 0){var W=new c(function(Q){z.next(Q)});
W.observe(K.ref,G);var e=K.JSC$7371_released.subscribe(y);return y}})}))}};
xYd=function(x){if(x.measurementDeferralState===3)return null;if(x.timeOnScreenReason!==void 0){var G=x.creativeFound===!1?"n":null;if(G!==null)return G}return x.geometricMeasurementErrors instanceof r0?"msf":x.contextValidationErrors instanceof sa?"c":x.contextVisibilityKnown===!1?"pv":x.geometricMeasurementErrors||x.contextValidationErrors?"x":null};
mF=function(x,G){return x.replace(Gjf,function(D,K){try{var z=_.YS.get(G,K);if(z==null||z.toString()==null)return D;z=z.toString();if(z==""||!_.y3(z==null?"":String(z)))return encodeURIComponent(z).replace(/%2C/g,",")}catch(y){}return D})};
DYn=function(x,G){var D=Object.assign({},x),K=x.userAgentClientHints;D=(delete D.userAgentClientHints,D);D=x.payloadMapper(D);var z=L2(D,G);return _.Hu(x.urlPrefixes,function(y){var c="";typeof K==="string"&&(c="&"+L2({uach:K},G));var W={};return mF(y,(W.VIEWABILITY=z,W))+c})};
N4h=function(x,G){var D=x.payloadMapper(x),K=L2(D,G);return K?_.Hu(x.urlPrefixes,function(z){z=z.indexOf("?")>=0?z:z+"?";z="?&".indexOf(z.slice(-1))>=0?z:z+"&";return z+K}):x.urlPrefixes};
KFn=function(){return kY(I0(function(x){return x!==void 0}),V6(function(x){return x}))};
z5C=function(x){return kY(V6(function(){return!0}),J1(!1),ah(x))};
a_3=function(x){return x.length<=0?FF:r4(x.map(function(G){var D=0;return G.pipe(V6(function(K){return{index:D++,value:K}}))})).pipe(I0(function(G){return G.every(function(D){return D.index===G[0].index})}),V6(function(G){return G.map(function(D){return D.value})}))};
oSh=function(x,G){x.currentState&&(x.previousState=x.currentState);x.currentState=G;x.previousState&&x.previousState.value?(G=Math.max(0,jz(G.timestamp,x.previousState.timestamp)),x.totalTime+=G,x.consecutiveTime+=G):x.consecutiveTime=0;return x};
yOL=function(){return kY(v5(oSh,{totalTime:0,consecutiveTime:0}),V6(function(x){return x.totalTime}))};
l_L=function(){return kY(v5(oSh,{totalTime:0,consecutiveTime:0}),V6(function(x){return x.consecutiveTime}))};
cOD=function(x,G){return function(D){return a_3(G.map(function(K){return D.pipe(x(K))}))}};
T0f=function(){var x;return kY(P5(function(G){return void(x=G.timestamp)}),l_L(),V6(function(G){return{timestamp:x,
value:Math.round(G)}}))};
WFE=function(x,G){return lN(x.topWindowViewportExternalGeometry,G.topWindowViewportExternalGeometry)&&lN(x.elementGeometry,G.elementGeometry)&&lN(x.exposedViewportLocalGeometry,G.exposedViewportLocalGeometry)&&lN(x.intersectionGeometry,G.intersectionGeometry)&&x.elementGeometrySourceName===G.elementGeometrySourceName&&x.measurementRequests===G.measurementRequests&&x.viewportGeometrySourceName===G.viewportGeometrySourceName&&x.viewportLocalAppOffset.x===G.viewportLocalAppOffset.x&&x.viewportLocalAppOffset.y===
G.viewportLocalAppOffset.y};
MiL=function(x,G){return function(D){return function(K){var z=K.pipe(w4(new K2),pl());K=D.element.pipe(nl());z=z.pipe(V6(function(y){return y.value}));
return r4([K,z,G]).pipe(V6(function(y){var c=_.l(y);y=c.next().value;var W=c.next().value;c=c.next().value;if(y.ref===void 0)var e={top:0,left:0,width:0,height:0};else{e=y.ref.getBoundingClientRect();var Q=y.ref,p=x.global,V=new _.$S(0,0),L=Fn(_.C2(Q));if(Ih(L,"parent")){do{if(L==p)var r=_.ji(Q);else r=e5V(Q),r=new _.$S(r.left,r.top);V.x+=r.x;V.y+=r.y}while(L&&L!=p&&L!=L.parent&&(Q=L.frameElement)&&(L=L.parent))}e={top:V.y,left:V.x,width:e.width,height:e.height}}e=VzE(e,W.viewportLocalAppOffset);
p=p5D(e,W.exposedViewportLocalGeometry);V=x.timeProvider.now();L=Object;Q=L.assign;if(c!==2||x.inCrossDomainIframe||p.width<=0||p.height<=0)var H=!1;else try{var O=x.document.elementFromPoint(p.left+p.width/2,p.top+p.height/2);H=O?!Z2D(O,y):!1}catch(A){H=!1}return{timestamp:V,value:Q.call(L,{},W,{elementGeometrySourceName:"geo",intersectionGeometry:H?Oa.intersectionGeometry:p,elementGeometry:e})}}),zj(x.queue))}}};
Z2D=function(x,G,D){D=D===void 0?0:D;return x.ref===void 0||G.ref===void 0?!1:x.ref===G.ref||_.Xn(G.ref,function(K){return K===x.ref})?!0:G.ref.ownerDocument&&G.ref.ownerDocument.defaultView&&G.ref.ownerDocument.defaultView===G.ref.ownerDocument.defaultView.top?!1:D<10&&G.ref.ownerDocument&&G.ref.ownerDocument.defaultView&&G.ref.ownerDocument.defaultView.frameElement?Z2D(x,new AO(G.ref.ownerDocument.defaultView.frameElement),D+1):!0};
Vid=function(x){return function(G){return G.pipe(x.ResizeObserver?QhD(x):pu3(x),N1(1),pl())}};
QhD=function(x){return function(G){return G.pipe(t1(function(D){var K=x.ResizeObserver;if(!K||D.ref===void 0)return ez(Oa.elementGeometry);var z=(new E2(function(y){function c(){D.ref!==void 0&&W.unobserve(D.ref);W.disconnect();e.unsubscribe()}
if(D.ref===void 0)return y.complete(),function(){};
var W=new K(function(Q){Q.forEach(function(p){y.next(p)})});
W.observe(D.ref);var e=D.JSC$7371_released.subscribe(c);return c})).pipe(XF(x.performanceMonitor,736),V6(function(y){return y.contentRect}));
return Cl(ez(D.ref.getBoundingClientRect()),z)}),nl(lN))}};
pu3=function(x){return function(G){var D=G.pipe(hGD(x)),K=x.onResize;D=Cl(G.pipe(V6(function(){return kWf("resize")})),D,K);
return r4(G,D).pipe(XF(x.performanceMonitor,737),V6(function(z){z=_.l(z).next().value;return z.ref===void 0?void 0:z.ref.getBoundingClientRect()}),KFn(),nl(lN))}};
B03=function(x,G){var D=b2Q(x,G).pipe(N1(1),pl());return function(K){return function(z){z=z.pipe(t1(function(y){return y.element}),nl());
return r4([D,z]).pipe(t1(function(y){var c=_.l(y);y=c.next().value;c=c.next().value;return LFL(x,y.intersectionObserver,Vid(x),y.observations,K,y.flushRecords,c)}),zj(x.queue))}}};
rOh=function(x){return V6(function(G){return G.value.viewportGeometrySourceName!=="nio"?G:Object.assign({},G,{value:Object.assign({},G.value,{exposedViewportLocalGeometry:Ua(x,!0),topWindowViewportExternalGeometry:Ua(x,!0)})})})};
shL=function(x,G){return ez(G).pipe(x,V6(function(){return G}))};
b2Q=function(x,G){return x.timeProvider.timeline!==Yaf?ZY(new r0(2)):x.MutationObserver?typeof IntersectionObserver==="undefined"?ZY(new r0(0)):(new E2(function(D){var K=new K2,z=new Rh(K.next.bind(K),{threshold:[].concat(_.B5(G))});D.next({observations:K.pipe(XF(x.performanceMonitor,735)),intersectionObserver:z,flushRecords:function(y){y=z.takeRecords(y);y.length>0&&K.next(y)}})})).pipe(Sz(1),N1(1),pl()):ZY(new r0(1))};
mYD=function(x){return n0O(x.sort(function(G,D){return G.time-D.time}),JgD)};
LFL=function(x,G,D,K,z,y,c){return new E2(function(W){function e(){H||(H=!0,c.ref!==void 0&&G.unobserve(z,c.ref),p.unsubscribe(),r.unsubscribe(),L.unsubscribe(),O.unsubscribe())}
if(c.ref!==void 0){H2n(G,z);G.observe(z,c.ref);var Q=new Si({timestamp:x.timeProvider.now(),value:Object.assign({},Oa,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),p=K.pipe(YR(function(A){return mYD(A)}),I0(function(A){return A.target===c.ref}),V6(function(A){return{timestamp:new Os(A.time,Yaf),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:A.rootBounds||n2,topWindowViewportExternalGeometry:A.rootBounds||Ua(x,!0),measurementRequests:V,elementGeometrySourceName:"nio",intersectionGeometry:A.intersectionRect,elementGeometry:A.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:A.isIntersecting,isV2Visible:A.isVisible}}}),w4(Q),pl()).subscribe(W),V=new K2,L=V.subscribe(function(){y(z);
W.next({timestamp:x.timeProvider.now(),value:Q.value.value});c.ref!==void 0&&(G.unobserve(z,c.ref),G.observe(z,c.ref))}),r=shL(D,c).subscribe(function(){V.next()}),H=!1,O=c.JSC$7371_released.subscribe(function(){return e()});
return e}})};
$Y3=function(x,G){var D=x.getOnBackgrounded().pipe(V6(function(){return"b"}));
return QFD(G,D).pipe(Sz(1),ah(x.queue))};
iN=function(x){return function(G){var D;return G.pipe(P5(function(K){return void(D=K.timestamp)}),V6(function(K){return K.value}),x,V6(function(K){return{timestamp:D,
value:K}}))}};
FFL=function(x){return x.intersectionGeometry.width*x.intersectionGeometry.height/(x.elementGeometry.width*x.elementGeometry.height)};
g0=function(x,G,D){D=D===void 0?function(K,z){return K===z}:D;
return x.timestamp.equals(G.timestamp)&&D(x.value,G.value)};
d0=function(x,G){return G.pipe(V6(function(D){return new uN(x.timeProvider,{timestamp:x.timeProvider.now(),value:D})}))};
CNO=function(x){return function(G){return G.pipe(O93(x),V6(function(D){var K=_.l(D);D=K.next().value;K=K.next().value;var z=D.value;return{timestamp:D.timestamp,value:z>=1?!0:z<=0?!1:z>=K}}))}};
jhP=function(){return kY(I0(function(x,G){return G>0}),I_D,J1(-1),nl())};
O2$=function(x,G,D){return x?r4([G,D]).pipe(I0(function(K){var z=_.l(K);K=z.next().value;z=z.next().value;return K.timestamp.equals(z.timestamp)}),V6(function(K){var z=_.l(K);
K=z.next().value;z=z.next().value;return K.value>z.value?K:z})):G};
UYh=function(x){return function(G){var D=G.pipe(Xu3),K=G.pipe(AOP);return x instanceof E2?x.pipe(t1(function(z){return O2$(z,D,K)})):O2$(x.value,D,K)}};
N0E=function(x,G,D,K){var z=K.geometryIsOccluded,y=K.exposureThreshold,c=K.wasLargeAdAtRender,W=K.allowLargeAdThreshold,e=K.largeAdExposureThreshold,Q=K.mayUseViewportShareExposure,p=K.hasMeasurementStarted;K=K.useIntersectionObserverV2;G=R53(x,D,G);D=SaP(x,D);K=nSn(G,K);var V=i2h(x,z,Q,G),L=V.pipe(V6(function(P){return P.value}),nl(),ah(x),v5(function(P,k){return Math.max(P,k)},0)),r=V.pipe(V6(function(P){return P.value}),jhP(),ah(x)),H=G.pipe(gSD,V6(function(P){return P.value}),Sz(2),nl(),ah(x));
c=unf(x,G,c,W);var O=c.pipe(J1(!1),nl(),V6(function(P){return P?e:y}));
W=V.pipe(CNO(O),nl(),ah(x));var A=r4([W,G]).pipe(I0(function(P){var k=_.l(P);P=k.next().value;k=k.next().value;return P.timestamp.equals(k.timestamp)}),V6(function(P){var k=_.l(P);
P=k.next().value;k=k.next().value;return{visible:P.value,geometry:k.value.elementGeometry}}),v5(function(P,k){return!k.visible&&P.visible?P:k},{visible:!1,
geometry:n2}),V6(function(P){return P.geometry}),J1(n2),ah(x),nl(lN));
Q=Q instanceof E2?Q.pipe(nl(),R0()):Bu;O=r4([Q,O]).pipe(R0());var g=G.pipe(I0(function(P){return P.value.viewportGeometrySourceName!=="ns"&&P.value.elementGeometrySourceName!=="ns"}),v5(function(P){return P+1},0),J1(0),ah(x)),u=D.pipe(R0(!0),J1(!1),ah(x));
u=r4([p,u]).pipe(V6(function(P){var k=_.l(P);P=k.next().value;k=k.next().value;return P&&!k}),ah(x));
var f=G.pipe(dYP,nl()),v=f.pipe(V6(function(P){return P.value}),v5(function(P,k){return Math.max(P,k)},0),nl(),ah(x));
x=f.pipe(V6(function(P){return P.value}),jhP(),ah(x));
return{shouldResetExposureSignals:Q,shouldResetViewabilitySignals:O,geometrySignals:{readyGeometryWithDefault:G,measurementStrategy:G.pipe(wuO),creativePosition:A.pipe(nl(lN)),visible:W.pipe(nl(g0)),timestampedExposure:V.pipe(nl(g0)),maximumExposure:L,minimumExposure:r,browserSize:G.pipe(qaf,nl(_.yJ)),timestampedScreenShare:f,maxScreenShare:v,minScreenShare:x,geometricMeasurementErrors:D,measurementRequests:G.pipe(V6(function(P){return P.value.measurementRequests})),
isLargeAd:c,geometryIsOccluded:z,hasMeasurementStarted:p,geometryMeasurable:u,validMeasurementCount:g,loadTimeExposure:H,v2VisibilityBitVector:K}}};
SaP=function(x,G){return G.pipe(I0(function(){return!1}),V6(function(D){return D}),A1(function(D){return w0(new yx(D),x)}))};
R53=function(x,G,D){return G.pipe(Z9E(Bu),ah(x)).pipe(nl(function(K,z){return g0(K,z,WFE)}),J1({timestamp:D.now(),
value:Oa}),ah(x))};
i2h=function(x,G,D,K){D=K.pipe(UYh(D),iN(V6(function(z){return Math.round(z*100)/100})),ah(x));
return G instanceof yx?D:r4([D,G]).pipe(V6(function(z){var y=_.l(z);z=y.next().value;y=y.next().value;return{timestamp:y.timestamp.maximum(z.timestamp),value:y.value?0:z.value}}),nl(g0),ah(x))};
unf=function(x,G,D,K){G=[G.pipe(V6(function(z){return z.value.elementGeometry.width*z.value.elementGeometry.height>=242500}))];
D instanceof E2&&G.push(D.pipe(V6(function(z){return!!z})));
D=r4(G);return K?D.pipe(V6(function(z){return z.some(function(y){return y})}),J1(!1),nl(),ah(x)):w0(new yx(!1),x)};
nSn=function(x,G){x=r4([x,G]).pipe(V6(function(z){var y=_.l(z);z=y.next().value;if(y.next().value&&z.value.isIntersecting)return z.value.isV2Visible}),nl());
var D=x.pipe(V6(function(z){return z===void 0?!0:z}),v5(function(z,y){return z||!y},!1)),K=x.pipe(v5(function(z,y){return y===void 0?z:y?!1:z!=null?z:!0},void 0),V6(function(z){return!!z}));
return r4([G,pCd(x,D,K)]).pipe(V6(function(z){var y=_.l(z);z=y.next().value;var c=_.l(y.next().value);y=c.next().value;var W=c.next().value;c=c.next().value;var e=0;if(!z)return 0;if(y===void 0)return 16;y&&(e|=1);y||(e|=2);W&&(e|=4);c&&(e|=8);return e}))};
tiE=function(x,G,D,K,z){var y=qY.timeThresholdMs;var c=c===void 0?new vS$(G,K):c;return(new E2(function(W){var e=D.pipe(J1(void 0),t1(function(){return JOD(z)})).pipe(V6(function(Q){var p=Q.value;
Q=Q.timestamp;var V=p.visible;p=p.consecutiveViewTime;var L=p>=y;L||!V?NY(c):(Q=Math.max(0,jz(G.now(),Q)),f_O(c,Math.max(0,y-p-Q)));return L}),v5(function(Q,p){return p||Q},!1),nl()).subscribe(W);
return function(){c.dispose();e.unsubscribe()}})).pipe(kR(function(W){return!W},!0),ah(x))};
JOD=function(x){return a_3([x,x.pipe(T0f())]).pipe(V6(function(G){var D=_.l(G);G=D.next().value;D=D.next().value;return{timestamp:G.timestamp,value:{visible:G.value,consecutiveViewTime:D.value}}}),nl(function(G,D){return g0(G,D,function(K,z){return K.consecutiveViewTime===z.consecutiveViewTime&&K.visible===z.visible})}))};
kjP=function(){return kY(l_L(),v5(function(x,G){return Math.max(x,G)},0),V6(function(x){return Math.round(x)}))};
PNf=function(x){return kY(CNO(ez(x)),kjP())};
ES3=function(x,G){return G instanceof E2?G.pipe(t1(function(D){return(D=D?15:null)?ZY(new r0(D)):x})):(G=G.value?15:null)?ZY(new r0(G)):x};
h53=function(x){var G=new r0(13);if(x.length<1)return{chain:FF,capturedErrors:FF};var D=new K2,K=x[0];return{chain:x.slice(1).reduce(function(z,y){return z.pipe(A1(function(c){D.next(c);return y}))},K).pipe(A1(function(z){D.next(z);
return ZY(G)}),w4(new K2),pl()),
capturedErrors:D}};
xyV=function(x,G){var D=x.pipe(w4(new K2),pl());return t1(function(K){return D.pipe(G(K))})};
DyQ=function(x,G){if(x.inCrossDomainIframe)return ZY(new r0(6));var D=new K2;return Cl(ez({}),G,D).pipe(V6(function(){return{timestamp:x.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:GH$(x),topWindowViewportExternalGeometry:Ua(x,!0),measurementRequests:D,viewportLocalAppOffset:{x:0,y:0}}}}),zj(x.queue))};
GH$=function(x){var G=Ua(x,!1);if(!x.inIframe||!vu(x.global.parent)||x.global.parent===x.global)return G;var D=new JO(x.global.parent,x.debugChannel);D.beaconFactory=x.beaconFactory;D=GH$(D);x=x.global.frameElement.getBoundingClientRect();return p5D(VzE(p5D(D,x),{x:G.left-x.left,y:G.top-x.top}),G)};
KWf=function(x){if(x.prerendering)return 3;var G;return(G={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[x.visibilityState||x.webkitVisibilityState||x.mozVisibilityState||""])!=null?G:0};
zCD=function(x){return x.document.JSC$7382_onVisibilityChange.pipe(V6(function(G){return G==="visible"}),nl(),ah(x.queue))};
aED=function(x,G,D){var K;return G.pipe(nl(),t1(function(z){return D.pipe(V6(function(){if(!K){K=!0;try{z.next()}finally{K=!1}}return!0}))}),J1(!1),ah(x.queue))};
oa$=function(x){return kY(iN(V6(function(G){return G>=1?!0:G<=0?!1:G>=x})),yOL(),V6(function(G){return Math.round(G)}))};
lEd=function(x,G,D,K,z){var y=yEC;if(y.length>1)for(var c=0;c<y.length-1;c++)if(y[c]<y[c+1])throw Error();c=z.pipe(J1(void 0),t1(function(){return D.pipe(T0f())}),nl(),ah(x));
z=z.pipe(J1(void 0),t1(function(){return D.pipe(kjP())}),nl(),ah(x));
return{totalMeasurementTime:K.pipe(J1(void 0),t1(function(){return G.pipe(V6(function(W){return{timestamp:W.timestamp,value:!0}}),yOL())}),nl(),ah(x)),
totalUnviewedTime:K.pipe(J1(void 0),t1(function(){return G.pipe(V6(function(W){return{timestamp:W.timestamp,value:W.value===0}}),yOL())}),nl(),ah(x)),
maxTimeOnScreen:K.pipe(J1(void 0),t1(function(){return G.pipe(cOD(PNf,y))}),nl(_.yJ),ah(x)),
timeOnScreen:K.pipe(J1(void 0),t1(function(){return G.pipe(cOD(oa$,y),V6(function(W){return W.map(function(e,Q){return Q>0?e-W[Q-1]:e})}))}),nl(_.yJ),ah(x)),
maxConsecutiveViewTime:z,consecutiveViewTime:c.pipe(nl(g0),ah(x))}};
TMV=function(x){var G=!0;G=G===void 0?!1:G;return kY(t1(function(D){return cEn(x.document,D,G)}),ah(x.queue))};
WWn=function(x,G,D){var K=D.pipe(V6(function(z){return{value:z,timestamp:x.timeProvider.now()}}),nl(g0));
return G instanceof E2?G.pipe(nl(),t1(function(z){return z?w0(new yx({value:!1,timestamp:x.timeProvider.now()}),x.queue):K})):G.value===!1?K:new yx(!1)};
eCf=function(x,G,D,K,z,y,c){var W=qY;G=G instanceof E2?G.pipe(J1(!1),nl()):G;var e=!x.isMobile();D=WWn(x,D,K);x=c.measurableCreative.pipe(z5C(x.queue));return Object.assign({},W,{geometryIsOccluded:D,wasLargeAdAtRender:z,allowLargeAdThreshold:e,mayUseViewportShareExposure:G,hasMeasurementStarted:x,useIntersectionObserverV2:y})};
MBD=function(x,G,D,K,z,y){var c=1;y=y===void 0?!0:y;c=c===void 0?.01:c;var W=W===void 0?x.timeProvider.intervalObservable(100).pipe(ah(x.queue)):W;return x.performanceMonitor.timeExecution(916,function(){return Z4O(x,G.pipe(zj(x.queue)),D.pipe(zj(x.queue)),K,z,y,c,W)})()};
Z4O=function(x,G,D,K,z,y,c,W){var e=zCD(x).pipe(V6(function(p){return!p})),Q=new QKO(x,[new pZD(x,yEC),
new VB3(x,W)]);W=fYh(b4$,LWC);return uFC(x,G,function(p,V){var L=w0(new yx(V.element),p.queue).pipe(TMV(p),ah(p.queue)),r={loadedElement:L,shouldMeasure:L.pipe(R0(!0)),measurableCreative:L.pipe(V6(function(P){var k=k===void 0?Symbol():k;return Object.freeze({symbol:k,element:w0(new yx(P),p.queue)})})),
creativeSearchResult:w0(new yx("mue"),p.queue)},H=new yx(!1),O=new yx(!1),A=new yx(17),g=new yx(!1),u=new yx(!1),f=w0(f2,p.queue);H=Q.buildGeometrySource(r,{inApp:H,useV2:!1,requestSource:w0(A,p.queue)}).geometrySource;r=eCf(p,g,O,e,u,f,r);O=N0E(p.queue,p.timeProvider,H,r);r=O.geometrySignals;g=O.shouldResetViewabilitySignals;O=lEd(p.queue,r.timestampedExposure,r.visible,O.shouldResetExposureSignals,g);g=tiE(p.queue,p.timeProvider,g,r.measurementRequests,r.visible);u=D.pipe(I0(function(P){return P===
V.element.ref}),V6(function(){return"ur"}));
f=BCf(p.timeProvider,z).pipe(R0("t"));u=$Y3(p,Cl(u,f));f=aED(p,r.measurementRequests,u.pipe(I0(function(P){return P!==null})));
H=u.pipe(I0(function(P){return P!==null}),V6(function(){return KWf(p.global.document)===1}));
var v=BML(p.document);return Object.assign({},{beaconFactory:new yx(p.beaconFactory),context:new yx(p),inferredPingId:new yx("lidar2"),timeOnScreenPingId:new yx("lidartos"),binaryContext:new yx(17),binaryVersion:new yx(K),requestSource:A,contextValidationErrors:new yx(p.validate()?null:new sa),contextVisibilityKnown:new yx(v),payloadMapper:new yx(vRD),endOfSessionReason:u,timeOnScreenReason:u,requestMeasurementOnEndOfSession:f,hasImpressionFired:rEE,crossDomainIframeState:new yx(p.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:f2,inFetchLaterBeaconExperiment:f2,isTurtlex:f2,turtlexReportEventData:new yx(""),reportFencedFrameEvent:Bu,isViewableAttributionEnabled:f2,inViewableAttributionExperiment:new yx(0),fetchBeaconFactory:Bu,supportsPendingBeacon:f2,supportsFetchLater:f2,emit:new yx(PXD),beginToRenderEvent:new yx(Symbol()),activeViewUnmeasurableEvent:new yx(Symbol()),activeViewViewableEvent:new yx(Symbol()),creativeFound:rEE,immediateUrlPrefixes:new yx(V.immediateUrls),timeOnScreenUrlPrefixes:new yx(V.timeOnScreenUrls),
cpmavUrls:Bu,viewableRelayUrls:Bu,measurementDeferralState:new yx(2),urlSerializer:new yx(DYn),viewUrlSerializer:new yx(sKQ),isCreativeLoaded:L.pipe(z5C(p.queue)),pageVisible:e.pipe(V6(function(P){return!P})),
eosPageVisible:H,timestampedExposureHistory:r.timestampedExposure.pipe(v5(function(P,k){P.push(k);return P},[]))},r,{viewable:d0(p,g),
maxTimeOnScreen:d0(p,O.maxTimeOnScreen),timeOnScreen:d0(p,O.timeOnScreen),maxConsecutiveViewTime:d0(p,O.maxConsecutiveViewTime),consecutiveViewTime:O.consecutiveViewTime.pipe(V6(function(P){return new uN(p.timeProvider,P)})),
totalMeasurementTime:d0(p,O.totalMeasurementTime),totalUnviewedTime:d0(p,O.totalUnviewedTime),userAgentClientHints:trV(p),clientOrderPingCounter:new yx(new w5E)})},J1L(x,c),tz$(y?kAn(W,YPP):kAn(W,myP),H4$))};
$yE=function(x){var G=_.rC.apply(1,arguments).filter(Boolean).join("&");if(!G)return x;var D=x.match(/[?&]adurl=/);return D?x.slice(0,D.index+1)+G+"&"+x.slice(D.index+1):x+(x.indexOf("?")<0?"?":"&")+G};
tO=function(x,G){return G?"&"+x+"="+encodeURIComponent(G):""};
FWL=function(){try{var x,G;return!!((x=window)==null?0:(G=x.top)==null?0:G.location.href)&&!1}catch(D){return!0}};
_.kS=function(x){x&&typeof x.dispose=="function"&&x.dispose()};
_.Pu=function(x){for(var G=0,D=arguments.length;G<D;++G){var K=arguments[G];_.PL(K)?_.Pu.apply(null,K):_.kS(K)}};
IEP=function(){var x=CPD();x=x===void 0?"bevasrsg":x;return new Promise(function(G){var D=window===window.top?window:FWL()?window:window.top,K=D[x],z;((z=K)==null?0:z.bevasrs)?G(new Ea(K.bevasrs)):(K||(K={},K=(K.nqfbel=[],K),D[x]=K),K.nqfbel.push(function(y){G(new Ea(y))}))})};
jKf=function(x){var G={c:x.vA,e:x.n8g,mc:x.mE3,me:x.em2};x.yn&&(G.co={c:x.yn.rVF,a:x.yn.gDl,s:x.yn.dHu});return G};
O4V=function(x){var G,D,K={vA:x.c,n8g:x.e,mE3:(G=x.mc)!=null?G:!1,em2:(D=x.me)!=null?D:!1};x.co&&(K.yn={rVF:x.co.c,gDl:x.co.a,dHu:x.co.s});return K};
XZO=function(x){return function(){var G;return _.T(function(D){if(D.nextAddress==1)return _.Z(D,x(),2);G=D.yieldResult;return D.return({f:function(){return G.dKI()},
c:function(K){return G.rmh(K)},
m:function(K){return G.di(O4V(K))},
mws:function(K){return G.i4(O4V(K))}})})}};
AEL=function(x,G){var D=CPD();D=D===void 0?"bevasrsg":D;G={s:function(y){var c;return x.snapshot(Object.assign({},y.c&&{vA:y.c},y.s&&{r4g:y.s},{meo:(c=y.p)!=null?c:!0}))},
e:function(y){var c;return void((c=x.s71)==null?void 0:c.call(x,y))},
c:function(y,c){return x.hNc(y,c)},
p:x.vcI,l:function(){return x.hZ1()},
wpc:G?XZO(G):void 0};var K=window===window.top?window:FWL()?window:window.top,z=K[D];if(z){z.bevasrs=G;if(z.nqfbel!==void 0)for(D=_.l(z.nqfbel),K=D.next();!K.done;K=D.next())K=K.value,K(G);z.nqfbel=void 0}else z={},z=(z.bevasrs=G,z.nqfbel=void 0,z),K[D]=z};
RCf=function(x){var G=G===void 0?49:G;var D=[];_.hO(x,Uyd,6,_.xa()).forEach(function(K){_.GH(K,2)<=G&&D.push(_.GH(K,1))});
return D};
SPP=function(x){var G=G===void 0?49:G;var D=[];_.hO(x,Uyd,6,_.xa()).forEach(function(K){_.GH(K,2)>G&&D.push(_.GH(K,1))});
return D};
na3=function(x){x.then(function(){},function(){})};
DE=function(x){return{fieldType:1,fieldName:x}};
K4=function(x){return{fieldType:2,fieldName:x}};
_.zH=function(x){return{fieldType:3,fieldName:x}};
i4f=function(){function x(){z[0]=1732584193;z[1]=4023233417;z[2]=2562383102;z[3]=271733878;z[4]=3285377520;p=Q=0}
function G(V){for(var L=c,r=0;r<64;r+=4)L[r/4]=V[r]<<24|V[r+1]<<16|V[r+2]<<8|V[r+3];for(r=16;r<80;r++)V=L[r-3]^L[r-8]^L[r-14]^L[r-16],L[r]=(V<<1|V>>>31)&4294967295;V=z[0];var H=z[1],O=z[2],A=z[3],g=z[4];for(r=0;r<80;r++){if(r<40)if(r<20){var u=A^H&(O^A);var f=1518500249}else u=H^O^A,f=1859775393;else r<60?(u=H&O|A&(H|O),f=2400959708):(u=H^O^A,f=3395469782);u=((V<<5|V>>>27)&4294967295)+u+g+f+L[r]&4294967295;g=A;A=O;O=(H<<30|H>>>2)&4294967295;H=V;V=u}z[0]=z[0]+V&4294967295;z[1]=z[1]+H&4294967295;z[2]=
z[2]+O&4294967295;z[3]=z[3]+A&4294967295;z[4]=z[4]+g&4294967295}
function D(V,L){if(typeof V==="string"){V=unescape(encodeURIComponent(V));for(var r=[],H=0,O=V.length;H<O;++H)r.push(V.charCodeAt(H));V=r}L||(L=V.length);r=0;if(Q==0)for(;r+64<L;)G(V.slice(r,r+64)),r+=64,p+=64;for(;r<L;)if(y[Q++]=V[r++],p++,Q==64)for(Q=0,G(y);r+64<L;)G(V.slice(r,r+64)),r+=64,p+=64}
function K(){var V=[],L=p*8;Q<56?D(W,56-Q):D(W,64-(Q-56));for(var r=63;r>=56;r--)y[r]=L&255,L>>>=8;G(y);for(r=L=0;r<5;r++)for(var H=24;H>=0;H-=8)V[L++]=z[r]>>H&255;return V}
for(var z=[],y=[],c=[],W=[128],e=1;e<64;++e)W[e]=0;var Q,p;x();return{reset:x,update:D,digest:K,digestString:function(){for(var V=K(),L="",r=0;r<V.length;r++)L+="0123456789ABCDEF".charAt(Math.floor(V[r]/16))+"0123456789ABCDEF".charAt(V[r]%16);return L}}};
qPL=function(x,G){G=G===void 0?gaC:G;if(!ukh){var D;x=(D=x.navigator)==null?void 0:D.userAgentData;if(!x||typeof x.getHighEntropyValues!=="function"||x.brands&&typeof x.brands.map!=="function")return Promise.reject(Error("ya"));dyL((x.brands||[]).map(function(z){var y=new wZV;y=_.Z_(y,1,z.brand);return _.Z_(y,2,z.version)}));
typeof x.mobile==="boolean"&&_.aK(oK,2,x.mobile);ukh=x.getHighEntropyValues(G)}var K=new Set(G);return ukh.then(function(z){var y=oK.clone();K.has("platform")&&_.Z_(y,3,z.platform);K.has("platformVersion")&&_.Z_(y,4,z.platformVersion);K.has("architecture")&&_.Z_(y,5,z.architecture);K.has("model")&&_.Z_(y,6,z.model);K.has("uaFullVersion")&&_.Z_(y,7,z.uaFullVersion);return y.serialize()}).catch(function(){return oK.serialize()})};
yF=function(x,G,D,K){this.initialValue_=x;this.maxValue_=G;this.currBaseValue_=this.currValue_=x;this.randomFactor_=D||0;this.backoffFactor_=K||2};
lP=function(x){this.src=x;this.listeners={};this.typeCount_=0};
fEE=function(){for(var x;x=NMf.remove();){try{x.fn.call(x.scope)}catch(G){K$(G)}vaC.put(x)}JEd=!1};
_.cZ=function(x){switch(x){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}};
tBn=function(x){switch(x){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""}};
_.kHn=function(){};
aSP=function(x){return{zUa:new PPf(x),errorCount:new Ea$(x),eventCount:new hCO(x),zRc:new xuL(x),hFp:new GCC(x),yH5:new Duh(x),nxa:new KG$(x),l75:new zFQ(x)}};
Oxd=function(x,G,D,K){x=o93(yth(lSQ(new _.TH(1828,"0"),x),new $uh));G.length&&FGO(x,C1L(new ISC,G));K!==void 0&&(x.destinationUrl=K);var z=new jfD(1828,"","",!1,"",x.build());_.WZ(z,x);var y=new eB({flush:function(c){try{z.flush(c)}catch(W){D(W)}}});
y.addOnDisposeCallback(function(){setTimeout(function(){try{y.snapshotAndFlush()}finally{z.dispose()}})});
y.invocationLimit=1E5;y.flushInterval=3E4;y.JSC$7798_flushTimer.setInterval(3E4);return y};
ZE=function(){var x,G,D;return(D=(x=globalThis.performance)==null?void 0:(G=x.now)==null?void 0:G.call(x))!=null?D:Date.now()};
AtP=function(x,G,D){if(x.disable)return new XlD;G=G?RCf(G):[];if(D)return D.l1g(G),D.share();x={kp:x.kp,dBv:x.njr,cbt:x.f4c,destinationUrl:x.destinationUrl,p5F:x.p5F,xt:x.xt};D=G;D=D===void 0?[]:D;return new My(x,D)};
_.Uuh=function(x){if(!x)return null;x=_.QF(x,4);return x===null||x===void 0?null:_.oF(x)};
n9D=function(x,G){return G?RFP(G):x?SXD(x):Promise.resolve()};
RFP=function(x){return new Promise(function(G,D){var K=_.p4("SCRIPT"),z=_.Uuh(x);_.Sr(K,z);K.onload=function(){_.VF(K);G()};
K.onerror=function(){_.VF(K);D(Error("Ja"))};
(bP("HEAD")[0]||document.documentElement).appendChild(K)})};
SXD=function(x){return new Promise(function(G){var D=_.p4("SCRIPT");if(x){var K=_.QF(x,6);K=K===null||K===void 0?null:_.A_(K)}else K=null;_.RF(D,K);(bP("HEAD")[0]||document.documentElement).appendChild(D);_.VF(D);G()})};
L4=function(x,G,D){var K,z=new Promise(function(y){K=setTimeout(y,G)});
return Promise.race([x.finally(function(){return void clearTimeout(K)}),
z.then(D)])};
ixn=function(x,G){try{return globalThis.sessionStorage.setItem(x,G),!0}catch(D){return!1}};
g9Q=function(x,G,D,K){G=G===void 0?0:G;D=D===void 0?x.length:D;var z=0;for(K&&(z=g9Q(K));G<D;G++)K=typeof x==="string"?x.charCodeAt(G):x[G],z=uq$(31,z)+K|0;return z};
duO=function(x,G){return[g9Q(x,0,x.length>>1,G),g9Q(x,x.length>>1)]};
wlP=function(x){var G=_.l(duO(x,BZ));x=G.next().value;G=G.next().value;return x.toString(16)+G.toString(16)};
qXE=function(x,G){var D=duO(G);x=new Uint32Array(x.buffer);G=x[0];var K=_.l(D);D=K.next().value;K=K.next().value;for(var z=1;z<x.length;z+=2){for(var y=G,c=z,W=D,e=K,Q=0;Q<22;Q++)c=c>>>8|c<<24,c+=y|0,c^=W+38293,y=y<<3|y>>>29,y^=c,e=e>>>8|e<<24,e+=W|0,e^=Q+38293,W=W<<3|W>>>29,W^=e;y=[y,c];x[z]^=y[0];z+1<x.length&&(x[z+1]^=y[1])}};
NOC=function(x,G,D,K,z){var y=(4-(BZ.length+D.length)%4)%4,c=new Uint8Array(4+y+BZ.length+4+D.length),W=new DataView(c.buffer),e=0;W.setUint32(e,Math.random()*4294967295);e=e+4+y;c.set(BZ,e);e+=BZ.length;W.setUint32(e,z);c.set(D,e+4);qXE(c,K);return x.insert(G,function(Q){return void globalThis.sessionStorage.removeItem(Q)})?ixn(G,_.PY(c))?"s":"t":"i"};
v9C=function(x,G){var D=globalThis.sessionStorage.getItem(x);if(!D)return["m"];try{var K=_.eZ(D);qXE(K,G)}catch(z){return globalThis.sessionStorage.removeItem(x),["c"]}for(G=4;G<7&&K[G]===0;)G++;for(D=0;D<BZ.length;D++)if(K[G++]!==BZ[D])return globalThis.sessionStorage.removeItem(x),["d"];D=(new DataView(K.buffer)).getUint32(G);return Math.floor(Date.now()/1E3)>=D?(globalThis.sessionStorage.removeItem(x),["e"]):["a",new Uint8Array(K.buffer,G+4)]};
Jt3=function(x){return globalThis.TextEncoder?(new TextEncoder).encode(x):_.rM(x)};
fSf=function(x){var G=x,D;return function(){if(G){var K=G;G=void 0;D=K.apply(this,arguments)}return D}};
sP=function(x){return q0(function(G){if(G instanceof x)return!0;var D,K,z=G==null?void 0:(D=G.ownerDocument)==null?void 0:(K=D.defaultView)==null?void 0:K[x.name];return tOL(z)&&G instanceof z})};
_.HZ=function(x,G,D){_.Ya.call(this);this.JSC$8008_listener_=x;this.JSC$8008_interval_=G||0;this.handler_=D;this.callback_=(0,_.mW)(this.JSC$8010_doAction_,this)};
_.$a=function(x){x=kCO(x);return _.oF(x)};
kCO=function(x){return x===null?"null":x===void 0?"undefined":x};
E9d=function(x){if(x&&x.focus)if(x!==document.activeElement)x.focus();else return P1O(function(){return _.T(function(G){document.activeElement&&document.activeElement.blur();return G.return(P1O(function(){x.focus()}))})})};
_.hF3=function(x){var G=G===void 0?5:G;setTimeout(function(){var D;return _.T(function(K){K.nextAddress==1&&(D=document.activeElement);if(K.nextAddress!=5)return(document.activeElement===D||document.activeElement===document.body)&&G>=0&&x?_.Z(K,E9d(x),5):K.jumpTo(0);if(document.activeElement===x)return K.return();x=x.parentElement;--G;return K.jumpTo(2)})},15)};
P1O=function(x){return new Promise(function(G){requestAnimationFrame(function(){G(x())})})};
xhd=function(x){if(_.Fk)x(_.Fk);else{var G;((G=C4)!=null?G:C4=[]).push(x)}};
jB=function(){!_.Fk&&_.IK&&_.GZO(_.IK());return _.Fk};
_.GZO=function(x){_.Fk=x;var G;(G=C4)==null||G.forEach(xhd);C4=void 0};
_.OP=function(x){_.Fk&&_.Fk.beforeLoadModuleCode(x)};
_.Xk=function(){_.Fk&&_.Fk.JSC$8951_setLoaded()};
AE=function(x){return RT(x)?Number(x):String(x)};
UP=function(x){this.action=x;this.wfv=!1};
DhO=function(x,G){UP.call(this,"set-drive-options");this.appId=x;this.appOrigin=G};
KSf=function(x){UP.call(this,"visibility");this.visible=x};
zRC=function(x,G,D){RK.call(this,x,G,D)};
ayL=function(x){SB.call(this,x)};
oT3=function(x){x=x&&x.getWindow()||window;return x.gadgets&&x.gadgets.rpc};
lyC=function(x,G){var D=G&&G.getWindow()||window;if(oT3(G))x();else if(ymL)ymL.push(x);else var K=ymL=[x],z=D.setInterval(function(){if(oT3(G)){D.clearInterval(z);for(var y=0;y<K.length;y++)K[y]();ymL=null}},100)};
TTn=function(x,G){var D=new n4(x);_.WZ(G,D);var K={passive:!1};G.listen(D,"mousewheel",function(z){return void cmd(x,z)},K).listen(x,"scroll",function(z){return void cmd(x,z)},K)};
cmd=function(x,G){var D;a:{for(D=G.target;D;){if(D.nodeType==1){var K=_.iP(D,"overflowY");if(K=="auto"||K=="scroll")break a}D=D.parentNode}D=null}if(!D||!_.gM(x,D)||D.scrollHeight==D.clientHeight||G.deltaY>0&&Math.abs(D.scrollTop-(D.scrollHeight-D.clientHeight))<=1||G.deltaY<0&&D.scrollTop==0)G.preventDefault(),G.stopPropagation()};
JE=function(x,G,D,K,z,y,c,W,e){W=W===void 0?!1:W;e=e===void 0?!1:e;RK.call(this,void 0,void 0,void 0);RK.call(this,y?y+" picker modal-dialog":"picker modal-dialog",!0,D);_.uP(x,"protocol");this.iframeManager_=new WSV;this.targetId_=dM();this.rpcToken_=dM();x=_.wM(x);_.qy(x,"hostId");D=_.qy(x,"parent");this.useGapi_=!e&&!0||(D==null?void 0:D.includes("onepick.corp.google.com"));W&&_.Ny(x,"fv2","true");this.setUrl(x.toString());this.preferredDialogWidth_=K;this.preferredDialogHeight_=z;K!==void 0||
z!==void 0?K=!0:(K=_.qy(_.wM(x.toString()),"hostId"),eRL||(eRL=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),K=!eRL.has(K));this.autoSizeDialog_=K;this.JSC$8198_gadgetsDomHelper_=c||this.JSC$8149_dom_;G&&(c=this.JSC$8198_gadgetsDomHelper_,G=_.qy(_.wM(this.JSC$8200_url_),"grugl")=="true"?ZTf:MR$,oT3(c)||(c=c||ei(document),K=c.createElement("SCRIPT"),_.Sr(K,G),K.type="text/javascript",c.JSC$7337_document_.body.appendChild(K)));
x=x.toString();G=null;c=x.indexOf("/picker?");c>-1?G=x.substring(0,c+8-1):oV(x,"/picker")&&(G=x);G&&this.setRelayUrl(G+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(x=this.buttons_,x.JSC$8183_element_=this.buttonEl_,x.render()):_.n9(this.buttonEl_,QED),_.vZ(this.buttonEl_,!!this.buttons_))};
_.LSf=function(x){var G=G===void 0?p6P:G;var D=_.Do(x),K=function(y){y=_.l(y);y.next();y=f4(y);return G(D,y)},z=function(y){var c=_.l(y);
y=c.next().value;c=f4(c);return x.apply(y,c)};
return function(){var y=_.rC.apply(0,arguments),c=this||_.Df,W=VR3.get(c);W||(W={},VR3.set(c,W));return bTD(W,[this].concat(_.B5(y)),z,K)}};
tE=function(x){var G={};x=x.replace(/\r/g,"").split("\n");for(var D=0;D<x.length;D++){var K=x[D],z=K.indexOf(":");z<0||(G[K.substring(0,z)]=K.substring(z+2,K.length))}return G};
ka=function(x,G,D){D=D===void 0?function(){}:D;
return x?G():D()};
_.rmP=function(x){var G;return((G=BT$.documentOverride)!=null?G:x).__wizdispatcher};
EP=function(x){var G=PZ;PZ=x;return G};
YoV=function(x){return x===sEL||(x==null?void 0:x.name)==="\u0275NotFound"};
mhD=function(x,G){var D;if((D=x)==null?0:D.isDisposed)throw Error("nb`"+String(x.debugName));for(;x!==void 0;){D=x;if(D.retrieve)return D.retrieve(G,{optional:!0});x=x.parent}return sEL};
GC=function(x){return{"\u0275prov":{providedIn:"root",token:Symbol(x),factory:void 0,value:void 0}}};
HTL=function(x){var G=EP(x);x={};return x[Symbol.dispose]=function(){EP(G)},x};
$hh=function(x,G){x.disposables||(x.disposables=[]);x.disposables.push(G)};
DS=function(x){var G=PZ;G&&!G.isDisposed&&($hh(G,x),x.parent=G)};
CMO=function(x){if(x.disposables){for(var G=_.l(x.disposables),D=G.next();!D.done;D=G.next())D=D.value,typeof D==="function"?D():FSC(D);x.disposables.length=0}};
FSC=function(x){if(!x.isDisposed){x.isDisposed=!0;var G;(G=x[Symbol.dispose])==null||G.call(x);delete x.parent;CMO(x)}};
nTD=function(x){var G={retrieve:function(D){switch(D.\u0275prov.token){case IyD.\u0275prov.token:var K=x.asyncDeps;break;case jE$.\u0275prov.token:K=x.rootElement;break;case OTd.\u0275prov.token:K=x.modelRootElement;break;case X6P.\u0275prov.token:K=x.appContext;break;case Am$.\u0275prov.token:K=x.rendererData;break;case Uh3.\u0275prov.token:K=x.injectingConstructor;break;case RRn.\u0275prov.token:K=x.dispatcher}if(K)D=K;else a:{for(K=G.parent;K;){var z=K;if(z.retrieve){D=z.retrieve(D);break a}K=
K.parent}K=D.\u0275prov.token;z=SoE[K];z!==void 0?D=z:(z=D.\u0275prov.providedIn,D.\u0275prov.factory?(D=D.\u0275prov.factory(),K&&z==="root"&&(SoE[K]=D)):D=sEL)}return D}};
DS(G);return G};
iTO=function(){var x=PZ;if(!x)throw Error("ob");var G=mhD(x,X6P);YoV(G)&&(x=mhD(x,RRn),YoV(x)||x.getOptionalAppContext())};
gTV=function(x){if(typeof document!=="undefined"&&document&&document.getElementById&&(x=document.getElementById(x))){var G=x.tagName.toUpperCase();if(G=="SCRIPT"||G=="LINK")return x}return null};
dhL=function(x,G){if((x=x===void 0?"":x)&&G)throw Error("ub");var D="";var K=_.Df._F_jsUrl;(x=G||gTV(x))&&(D=x.src?x.src:x.getAttribute("href"));if(K&&D){if(K!=D)throw Error("vb`"+K+"`"+D);D=K}else D=K||D;if(!uQh(D))throw Error("wb");return D};
vTL=function(){if(!w6$){w6$=!0;try{var x=dhL(_.Df._F_jsUrl?"":"base-js")}catch(K){return}var G=qoC(NT$(x)),D=Object.keys(G);D.length!==0&&xhd(function(K){for(var z=_.l(D),y=z.next();!y.done;y=z.next()){y=y.value;for(var c=_.l(Object.keys(G[y])),W=c.next();!W.done;W=c.next())K.addExtraEdge(y,W.value)}})}};
fyf=function(){var x=Object.assign({},JmO);Object.getOwnPropertyNames(JmO).forEach(function(G){Kx[G]!==void 0&&(x[G]=Kx[G])});
return x};
tRd=function(x,G){if(Kx.enablePerformanceTiming){var D,K;(K=(D=performance).mark)==null||K.call(D,x+"Start__"+G)}};
kZ3=function(x,G){if(Kx.enablePerformanceTiming){var D,K;(K=(D=performance).measure)==null||K.call(D,x+"__"+G,x+"Start__"+G)}};
PM3=function(x,G,D){var K;return x&&G?x+"__"+G:(K=x!=null?x:G)!=null?K:D};
hR3=function(x,G){var D=Object.create(ET3);D.debugName=G;!PZ||DS(D);G=EP(D);try{x(D)}finally{EP(G)}return function(){return void FSC(D)}};
Gzh=function(x){return zC(x)&&xU3 in x};
DUQ=function(x,G){return Object.is(x,G)};
of=function(x){var G=af;af=x;return G};
oKL=function(x){if(y9)throw Error("da");if(af!==null){var G=af.nextProducerIndex++;KdC(af);G<af.producerNode.length&&af.producerNode[G]!==x&&l1(af)&&zxE(af.producerNode[G],af.producerIndexOfThis[G]);af.producerNode[G]!==x&&(af.producerNode[G]=x,af.producerIndexOfThis[G]=l1(af)?abE(x,af,G):0);af.producerLastReadVersion[G]=x.version}};
cvh=function(x){if(!l1(x)||x.dirty)if(x.dirty||x.lastCleanEpoch!==yvE)(x.producerMustRecompute(x)||lbE(x))&&x.producerRecomputeValue(x),x.dirty=!1,x.lastCleanEpoch=yvE};
Tx$=function(x){if(x.liveConsumerNode!==void 0){var G=y9;y9=!0;try{for(var D=_.l(x.liveConsumerNode),K=D.next();!K.done;K=D.next()){var z=K.value;z.dirty||(x=void 0,z.dirty=!0,Tx$(z),(x=z.consumerMarkedDirty)==null||x.call(z,z))}}finally{y9=G}}};
WdQ=function(){var x;return((x=af)==null?void 0:x.consumerAllowSignalWrites)!==!1};
exO=function(x){x&&(x.nextProducerIndex=0);return of(x)};
ZLn=function(x,G){of(G);if(x&&x.producerNode!==void 0&&x.producerIndexOfThis!==void 0&&x.producerLastReadVersion!==void 0){if(l1(x))for(G=x.nextProducerIndex;G<x.producerNode.length;G++)zxE(x.producerNode[G],x.producerIndexOfThis[G]);for(;x.producerNode.length>x.nextProducerIndex;)x.producerNode.pop(),x.producerLastReadVersion.pop(),x.producerIndexOfThis.pop()}};
lbE=function(x){KdC(x);for(var G=0;G<x.producerNode.length;G++){var D=x.producerNode[G],K=x.producerLastReadVersion[G];if(K!==D.version)return!0;cvh(D);if(K!==D.version)return!0}return!1};
abE=function(x,G,D){M_D(x);if(x.liveConsumerNode.length===0&&x.producerNode!==void 0)for(var K=0;K<x.producerNode.length;K++)x.producerIndexOfThis[K]=abE(x.producerNode[K],x,K);x.liveConsumerIndexOfThis.push(D);return x.liveConsumerNode.push(G)-1};
zxE=function(x,G){M_D(x);if(x.liveConsumerNode.length===1&&x.producerNode!==void 0)for(var D=0;D<x.producerNode.length;D++)zxE(x.producerNode[D],x.producerIndexOfThis[D]);D=x.liveConsumerNode.length-1;x.liveConsumerNode[G]=x.liveConsumerNode[D];x.liveConsumerIndexOfThis[G]=x.liveConsumerIndexOfThis[D];x.liveConsumerNode.length--;x.liveConsumerIndexOfThis.length--;G<x.liveConsumerNode.length&&(D=x.liveConsumerIndexOfThis[G],x=x.liveConsumerNode[G],KdC(x),x.producerIndexOfThis[D]=G)};
l1=function(x){var G,D;return x.consumerIsAlwaysLive||((D=x==null?void 0:(G=x.liveConsumerNode)==null?void 0:G.length)!=null?D:0)>0};
KdC=function(x){x.producerNode!=null||(x.producerNode=[]);x.producerIndexOfThis!=null||(x.producerIndexOfThis=[]);x.producerLastReadVersion!=null||(x.producerLastReadVersion=[])};
M_D=function(x){x.liveConsumerNode!=null||(x.liveConsumerNode=[]);x.liveConsumerIndexOfThis!=null||(x.liveConsumerIndexOfThis=[])};
p0d=function(x){var G=Object.create(QAf);G.computation=x;x=function(){cvh(G);oKL(G);if(G.value===cl)throw G.error;return G.value};
x[TC]=G;return x};
Bxf=function(x,G){var D=Object.create(V_C);D.value=x;G!==void 0&&(D.equal=G);x=function(){oKL(D);return D.value};
x[TC]=D;return[x,function(K){return bLE(D,K)},
function(K){WdQ()||LdO(D);bLE(D,K(D.value))}]};
bLE=function(x,G){WdQ()||LdO(x);if(!x.equal(x.value,G)){x.value=G;x.version++;yvE++;Tx$(x);var D;(D=rvh)==null||D(x)}};
Wl=function(x){var G=of(null);try{return x()}finally{of(G)}};
_.eO=function(x,G,D){D=D===void 0?"":D;x=Bxf(x,G==null?void 0:G.equals);var K=x[0],z=K[TC];z.debugName=PM3(G==null?void 0:G.debugName,D,"[signal]");if(!Kx.enablePerformanceTiming)return x;var y=x[1],c=x[2];return[K,function(W){sAf(function(){return void y(W)},z)},
function(W){sAf(function(){return void c(W)},z)}]};
sAf=function(x,G){tRd("signalSet",G.debugName);try{x()}finally{kZ3("signalSet",G.debugName)}};
mUD=function(x,G){var D=_.l(_.eO(x,void 0,"cPpJzc"));x=D.next().value;D=D.next().value;x[YjL]=D;x[ZS]=G;return x};
HLD=function(x){return!!x&&typeof x==="object"&&Object.getPrototypeOf(x)===Object.prototype};
$UP=function(x){return typeof x==="function"&&YjL in x&&typeof x[YjL]==="function"};
FdL=function(x,G){Object.defineProperty(x,ZS,{get:function(){return G}})};
Q9=function(x,G){if(Mu(x)){var D=x.map(function(y){return Q9(y,G)});
FdL(D,G);return D}if(HLD(x)){D={};x=_.l(Object.entries(x));for(var K=x.next();!K.done;K=x.next()){var z=_.l(K.value);K=z.next().value;z=z.next().value;D[K]=Q9(z,G)}FdL(D,G);return D}return mUD(x,G)};
CIL=function(x){if(Mu(x))return x.map(function(z){return CIL(z)});
if(HLD(x)){var G={};x=_.l(Object.entries(x));for(var D=x.next();!D.done;D=x.next()){var K=_.l(D.value);D=K.next().value;K=K.next().value;G[D]=CIL(K)}return G}return $UP(x)?x():x};
jAE=function(){var x={height:0,width:0};if(!HLD(x))throw Error("Ib");var G=Symbol("Jb");return[Q9(x,G),function(D,K){if(D[ZS]===G)if(typeof K==="function"){var z=[].concat(_.B5(CIL(D)));K=K(z)||z;Ib$(D,[].concat(_.B5(K)))}else Ib$(D,K);else throw Error("Kb");}]};
Ib$=function(x,G){if($UP(x))x[YjL](G);else if(Mu(x)&&Mu(G))G=Q9(G,x[ZS]),x.length=0,x.push.apply(x,_.B5(G));else if((HLD(x)||Mu(x))&&(Mu(G)||typeof G==="object"&&G!==null)){G=_.l(Object.entries(G));for(var D=G.next();!D.done;D=G.next()){var K=_.l(D.value);D=K.next().value;K=K.next().value;var z=x,y=z[D];Object.hasOwn(x,D)?Ib$(y,K):z[D]=Q9(K,x[ZS])}}else throw Error("Lb");};
OL$=function(x){return Object.create(Object.assign({},px,x))};
Av3=function(){var x;return(x=X0$)!=null?x:X0$=OL$({consumerAllowSignalWrites:!0})};
_.V9=function(x,G,D){D=D===void 0?"":D;x=p0d(x);var K=x[TC];K.debugName=PM3(G==null?void 0:G.debugName,D,"[computed]");(G==null?void 0:G.equals)!=null&&(K.equal=G.equals);return x};
b1=function(x){var G=of(UUd);try{x()}finally{of(G)}};
dUn=function(x){if(!x.isDisposed)switch(x.effectType){case Rx3:Sjf.schedule(x);break;case nKL:iLO.schedule(x);break;case gK$:ufP.schedule(x);break;default:_.oT(x.effectType)}};
qjh=function(x){w0d.push(x);return function(){var G=w0d.indexOf(x);G!==-1&&w0d.splice(G,1)}};
vKd=function(){if(Lx>0)Sjf.flush();else for(var x=_.l(NxO),G=x.next();!G.done;G=x.next())G.value.flush()};
fbD=function(x){for(var G=_.l(x),D=G.next();!D.done;D=G.next()){var K=D.value;for(D=[K];K.parent!==void 0;)K=K.parent,JvL(K)&&x.has(K)&&D.push(K);for(;D.length>0;)K=D.pop(),x.delete(K),K.run()}};
t_h=function(x){Lx--;if(x){x=_.l(NxO);for(var G=x.next();!G.done;G=x.next())G.value.clear()}else Lx>0||vKd()};
PIV=function(x,G,D){var K=kzQ(x);rO={name:D?K+" ("+D+")":K,isReactive:x.componentType!==sX,parent:rO};x=G();rO=rO.parent;return x};
Y9=function(){var x=rO;return x?x.isReactive:!1};
Hl=function(x,G){var D=rO;G&&(rO=G);try{return x()}catch(y){x=y;mG(x,rO);if(x!==EKV){hxD=rO;G=[];for(var K=PZ;K;){var z=void 0;G.push((z=K.debugName)!=null?z:"[context]");z=void 0;K=(z=K.parent)!=null?z:null}xOQ=G.reverse()}EKV=x;throw x;}finally{rO=D}};
mG=function(x,G){try{var D=GuL(G);if(D&&!x.componentStack&&(x.componentStack=D,Kx.enableComponentStacksInErrorMessages)){var K=x.message+"\n\nComponent stack: "+D;x.stack&&(x.stack=x.stack.replace(x.message,K));x.message=K}}catch(z){}};
GuL=function(x){if(zC(x)&&x.name!==void 0&&x.isReactive!==void 0&&x.parent!==void 0||x===null){for(var G=0,D="";G<20&&x;)D+=x.name+" > ",x=x.parent,G++;x=D.slice(0,-3)}else if(Kx.enableContextBasedComponentStacks){a:{for(x=x===void 0?PZ:x;x;){if(Gzh(x))break a;G=void 0;x=(G=x.parent)!=null?G:null}x=null}x=x.getComponentStack().slice(0,20).join(" > ")}else x="";return x};
kzQ=function(x){return x.debugName||x.name||"[component]"};
DOL=function(x,G,D){G=Object.create(G);G.effectFn=x;D&&(G.debugName=D);DS(G);G.componentStack=rO;return G};
_.$9=function(x,G){x=DOL(x,Kn$,G);dUn(x)};
_.Fq=function(x){var G=PZ;if(G){var D=rO;$hh(G,function(){var K=of(Av3());try{Hl(function(){return void x()},D)}catch(z){throw Kx.enableContextBasedComponentStacks&&mG(z),z;
}finally{of(K)}})}};
Cx=function(x,G){var D={};(G===void 0||G)&&DS(D);G=EP(D);try{x(D)}finally{EP(G)}return function(){return void FSC(D)}};
_.If=function(x){return typeof x==="function"?x():(x==null?0:x[zHQ])?x.get():x};
_.jO=function(x,G){x=DOL(x,avL,G);dUn(x)};
oWC=function(x){if(PZ)throw Error("rb");Cx(x,!1)};
OX=function(x,G){x=EP(x);try{return Wl(G)}finally{EP(x)}};
Xq=function(x,G){var D=GuL(hxD),K,z;var y=(z=(K=xOQ)==null?void 0:K.slice())!=null?z:[];G={componentStack:D,contextTrace:y,errorSeverity:3,featureFlags:fyf(),tagName:G};return[x,G]};
cuO=function(x,G,D){if(Object.hasOwnProperty.call(yuQ,x)&&(x=yuQ[x],Object.hasOwnProperty.call(x,G)&&(x=x[G],x instanceof Array))){for(var K=null,z=!1,y=0,c=x.length;y<c;++y){var W=x[y],e=W.contingentAttribute;if(!e)return W.contract;K===null&&(K={});e=Object.hasOwnProperty.call(K,e)?K[e]:K[e]=D(e);if(e===W.requiredValue)return W.contract;e==null&&(z=!0)}if(z)return null}G=lvD[G];return typeof G==="number"?G:null};
eHh=function(x,G,D){var K=null;(x=T$d[x])&&(K=x[G]);return typeof K!=="number"&&((x=T$d["*"])&&(K=x[G]),typeof K!=="number")?!1:!0===WnD[K][String(D).toLowerCase()]};
Mlh=function(x,G){G=cuO(x.toLowerCase(),G,function(){var K;(K=Kx.handleError)==null||K.call.apply(K,[Kx].concat(_.B5(Xq(Error("Qb"),x.toLowerCase()))))});
if(G===null)return null;var D;return(D=ZUn[G])!=null?D:null};
QWP=function(x,G,D){if(D===null||D===void 0)return D;x=Mlh(x,G);return x===null?D:x(G,D)};
pSE=function(){};
At=function(x,G){for(;x.length>G;)x.pop()};
Vlf=function(x){x=Array(x);At(x,0);return x};
bUf=function(x,G,D){if(D==null)x.removeAttribute(G);else{var K;(K=G.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":G.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?x.setAttributeNS(K,G,D):x.setAttribute(G,D)}};
LnL=function(x,G,D){x[G]=D};
ruL=function(x,G,D){x=x.style;if(typeof D==="string")x.cssText=D;else{x.cssText="";for(var K in D)if(B$O.call(D,K)){G=x;var z=K,y=D[K];z.indexOf("-")>=0?G.setProperty(z,y):G[z]=y}}};
sWd=function(x,G,D){var K=typeof D;K==="object"||K==="function"?x[G]=D:bUf(x,G,D)};
YpD=function(){var x=new pSE;x[UX.default]=sWd;x.style=ruL;return x};
mO$=function(x,G,D,K){(K[G]||K[UX.default])(x,G,D)};
$OL=function(x,G,D){G=new HUQ(G,D);return x.__incrementalDOMData=G};
Rf=function(x,G){if(x.__incrementalDOMData)return x.__incrementalDOMData;var D=x.nodeType===1?x.localName:x.nodeName,K=x.nodeType===1?x.getAttribute("key"):null;G=$OL(x,D,x.nodeType===1?K||G:null);if(x.nodeType===1&&(x=x.attributes,D=x.length)){K=G._attrsArr||(G._attrsArr=Vlf(D*2));for(var z=0,y=0;z<D;z+=1,y+=2){var c=x[z],W=c.value;K[y]=c.name;K[y+1]=W}}return G};
FnL=function(x,G,D,K,z){return G==D&&K==z};
CpP=function(x){for(var G=SO,D=nx();D!==x;){var K=D.nextSibling;G.removeChild(D);i1.deleted.push(D);D=K}};
nx=function(){return gO?gO.nextSibling:SO.firstChild};
u1=function(){gO=nx()};
OUh=function(x,G,D){u1();var K;a:{if(K=gO){do{var z=K,y=x,c=G,W=Rf(z,c);if(Ivh(z,y,W.nameOrCtor,c,W.key))break a}while(G&&(K=K.nextSibling))}K=null}K||(x==="#text"?(D=dO.createTextNode(""),$OL(D,"#text",null),x=D):(K=dO,z=SO,typeof x==="function"?K=new x:K=(z=x==="svg"?"http://www.w3.org/2000/svg":x==="math"?"http://www.w3.org/1998/Math/MathML":z==null||Rf(z).nameOrCtor==="foreignObject"?null:z.namespaceURI)?K.createElementNS(z,x):K.createElement(x),$OL(K,x,G),x=K,D&&x.setAttribute("nonce",D)),i1.created.push(x),
K=x);D=K;if(D!==gO){if(jWE.indexOf(D)>=0)for(x=SO,G=D.nextSibling,K=gO;K!==null&&K!==D;)z=K.nextSibling,x.insertBefore(K,G),K=z;else SO.insertBefore(D,gO);gO=D}};
XSh=function(x,G,D){OUh(x,G,D);SO=gO;gO=null;return SO};
AuE=function(){CpP(null);gO=SO;SO=SO.parentNode};
wO=function(){gO=SO.lastChild};
Sp3=function(x,G){G=G===void 0?{}:G;var D=G.matches===void 0?FnL:G.matches;return function(K,z,y){var c=i1,W=dO,e=jWE,Q=vl,p=Jt,V=gO,L=SO,r=Ivh;dO=K.ownerDocument;i1=new UOQ(K);Ivh=D;vl=[];Jt=[];gO=null;var H=SO=K.parentNode,O,A=RHQ.call(K);if((O=A.nodeType===11||A.nodeType===9?A.activeElement:null)&&K.contains(O)){for(A=[];O!==H;)A.push(O),O=O.parentNode||(H?O.host:null);H=A}else H=[];jWE=H;try{return x(K,z,y)}finally{K=i1,fx&&K.deleted.length>0&&fx(K.deleted),dO=W,i1=c,Ivh=r,vl=Q,Jt=p,gO=V,SO=L,
jWE=e}}};
nWC=function(x,G,D,K){tt.push(mO$);tt.push(x);tt.push(G);tt.push(D);tt.push(K)};
gW$=function(x,G,D){var K=Jt;G=G._attrsArr||(G._attrsArr=Vlf(K.length));for(var z=!G.length||!1,y=0;y<K.length;y+=2){var c=K[y];if(z)G[y]=c;else if(G[y]!==c)break;var W=K[y+1];if(z||G[y+1]!==W)G[y+1]=W,nWC(x,c,W,D)}if(y<K.length||y<G.length){for(y=z=y;y<G.length;y+=2)k9[G[y]]=G[y+1];for(y=z;y<K.length;y+=2)z=K[y],c=K[y+1],k9[z]!==c&&nWC(x,z,c,D),G[y]=z,G[y+1]=c,delete k9[z];At(G,K.length);for(var e in k9)nWC(x,e,void 0,D),delete k9[e]}x=iU$;iU$=D=tt.length;for(e=x;e<D;e+=5)(0,tt[e])(tt[e+1],tt[e+
2],tt[e+3],tt[e+4]);iU$=x;At(tt,x);At(K,0)};
Pl=function(x){OUh("#text",null);var G=gO;var D=Rf(G);if(D.text!==x){D=D.text=x;for(var K=1;K<arguments.length;K+=1)D=(0,arguments[K])(D);G.data!==D&&(G.data=D)}};
vWf=function(x,G,D){if(D===!1&&ujO.has(G))bUf(x,G,null);else if(G!=="idomKey"&&G!=="skip"&&G!=="skipchildren"&&G!=="children"&&G!=="el"){if(G.startsWith("on"))if(G[2]===":"){if(D===void 0||D===null){var K;(K=Kx.handleError)==null||K.call.apply(K,[Kx].concat(_.B5(Xq(Error("Ub`"+G),x.tagName))));x[G]=void 0;return}if(typeof D!=="object"||D===null)throw Error("Vb`"+G+"`"+typeof D);if(typeof D.getFn!=="function")throw Error("Wb`"+G+"`"+Object.keys(D));var z=D.getFn(0),y=G.slice(3);if((K=Y9())&&x["on"+
y]===void 0)x.addEventListener(y,z),_.Fq(function(){return void x.removeEventListener(y,z)});
else if(K||!dO3.includes(y))x["on"+y]=z}else{wSf(x,G,D);return}else if(G.startsWith("data-")&&typeof D==="string")try{D=qpV(D)}catch(c){D="zSoyz"}typeof D!=="function"||x._disposeEffects!=null?(Kx.enableAttributeSanitization&&(D=QWP(x.tagName,G,D)),G==="style"?N$D(x,G,D):G.startsWith("prop:")?(G=G.slice(5),x[G]=D):wSf(x,G,D)):(x._signalProps||(x._signalProps=[]),x._signalValues||(x._signalValues=[]),x._signalProps.push(G))}};
JuO=function(x,G,D){D=(D===void 0?{}:D).isReactive;if(G==null?0:G.el){var K=G.el;if(typeof K==="function")K(x);else{var z;(z=K.onRender)==null||z.call(K,x);x._disposeRef||(x._disposeRef=function(){var y;(y=K.onUnmount)==null||y.call(K);delete x._disposeRef},D&&_.Fq(function(){var y;
return void((y=x._disposeRef)==null?void 0:y.call(x))}))}}};
fvQ=function(x){return zC(x)&&EX in x};
tlf=function(x){return fvQ(x)?x[EX].flattened:x};
kuO=function(x,G){var D=_.rC.apply(2,arguments),K;G=(K=G)!=null?K:{};K={};return K.type=x,K.props=G,K.children=D,K[ht]=!0,K};
_.xT=function(x){return x.children};
GZ=function(x){var G=Ppf!==kuO;Ppf=x?EWL:kuO;return G};
Dy=function(x){return _.G7(x)?"nodeType"in x:!1};
KT=function(){return document.createTextNode("")};
zZ=function(x){x=document.createTextNode(String(x));x._isSignalTextNode=!0;return x};
hHE=function(x){var G=document.createElement("div");if(!(x instanceof HC)){if(x.contentKind!==aE)throw Error("Tb");x=$Y(x.toString())}_.n9(G,x);x=_.l(G.childNodes);for(var D=x.next();!D.done;D=x.next())D.value._isSafeOrSanitizedHtmlNode=!0;return G};
oE=function(x){x=typeof x;return x==="string"||x==="number"||x==="boolean"};
xiP=function(x){return x instanceof aF||er(x)||"function"==typeof _.uH&&x instanceof _.uH||!1};
G1E=function(x,G){var D=x.parentElement;if(!D)return G;D.replaceChild(G,x);return G};
DiO=function(x,G){var D=x[0].parentElement;if(D)if(x[0].previousSibling||x[x.length-1].nextSibling){D.insertBefore(G,x[0]);for(var K=x.length-1;K>=0;K--)D.removeChild(x[K])}else D.textContent="",D.appendChild(G);return G};
KvO=function(x,G){if(x[0].parentElement)for(var D=x[0].parentElement,K=G.length,z=x.length,y=K,c=0,W=0,e=x[z-1].nextSibling,Q=null;c<z||W<y;)if(x[c]===G[W])c++,W++;else{for(;x[z-1]===G[y-1];)z--,y--;if(z===c)for(var p=y<K?W?G[W-1].nextSibling:G[y-W]:e;W<y;){var V=G[W++];D.insertBefore(V,p)}else if(y===W)for(;c<z;)p=x[c],Q&&Q.has(p)||D.removeChild(p),c++;else if(x[c]===G[y-1]&&G[W]===x[z-1])p=x[--z].nextSibling,D.insertBefore(G[W++],x[c++].nextSibling),D.insertBefore(G[--y],p),x[z]=G[y];else{if(!Q)for(Q=
new Map,p=W;p<y;)Q.set(G[p],p++);p=Q.get(x[c]);if(p==null)D.removeChild(x[c]),c++;else if(W<p&&p<y){V=c;for(var L=1,r=void 0;++V<z&&V<y&&(r=Q.get(x[V]))!=null&&r===p+L;)L++;if(L>p-W)for(V=x[c];W<p;)D.insertBefore(G[W++],V);else D.replaceChild(G[W++],x[c++])}else c++}}return G};
y2d=function(x,G){var D;G!=null?D=G:D=_.rmP(document).getAppContext();D.get(zeO).JSC$25469_getEventTarget().dispatchEvent(new agC(oqf,x,aE))};
c2f=function(x){if(Array.isArray(x)){if(x.length>1)throw Error("ec`"+x.length+"`"+x.map(lgd).join(", "));x=x[0]}if(x==null)return null;if(!(x instanceof _.X_)){var G,D;if((G=window)==null?0:(D=G.trustedTypes)==null?0:D.isScript(x))throw Error("dc");if(String(x).trim().length===0)return null;throw Error("fc`"+lgd(x));}return x};
Tuf=function(x){if(Array.isArray(x)){if(x.length>1)throw Error("gc`"+x.length+"`"+x.map(lgd).join(", "));x=x[0]}if(x==null)return null;if(!Y_n(x)){if(String(x).trim().length===0)return null;throw Error("hc`"+lgd(x));}return x};
lgd=function(x){return"("+typeof x+") "+(x!=null&&typeof x==="object"?x.constructor.name:typeof x)+" "+x};
lM=function(x,G){function D(){z=!1;G.isControlFlowComponent&&Lx++;var y=K[0],c=K[EX].flattened,W=GZ(!0);try{var e=x(),Q=Wvn(y,e,K);Array.isArray(Q)||(K[EX].flattened=[Q]);var p=K[EX].flattened;if(c&&(!Array.isArray(c)||c.length!==0)){var V=Array.isArray(c)?c[0]:c,L=V[yD],r=V._disposeEffects;V._disposeEffects=void 0;V=Array.isArray(p)?p[0]:p;V[yD]=L;V[yD]&&(V[yD].numNodes=V===p?1:p.length);V._disposeEffects=r}K[0]=Q;G.isControlFlowComponent&&t_h(!1)}catch(H){throw G.isControlFlowComponent&&t_h(!0),
H;}finally{GZ(W)}}
G=G===void 0?{}:G;var K=eeV(),z=!0;Kx.legacyTriggerSoyRendererEvents&&iTO();_.jO(function(){(ZEf==null?0:ZEf.logger)&&!z?(ZEf.logger.logGraft(K[0],D),ZEf.logger.resetBuilder()):D()},G.debugName);
return K};
Wvn=function(x,G,D){for(;typeof G==="function";)G=G();if(G!=null&&G[ht]){var K,z,y;(y=Kx.handleError)==null||y.call.apply(y,[Kx].concat(_.B5(Xq(Error("ic`"+((K=G.type)==null?void 0:K.TAG_NAME)),(z=G.type)==null?void 0:z.TAG_NAME))))}if(x==null)return G==null?KT():oE(G)?zZ(G):xiP(G)?zZ(G.toString()):Dy(G)?G:G.length===0?KT():MmV(G,D);if(Dy(x)){if(G==null)return G1E(x,KT());if(oE(G))return Q4n(x,G);if(xiP(G))return Q4n(x,G.toString());if(Dy(G))return G1E(x,G);if(G.length===0)return G1E(x,KT());G=MmV(G,
D);KvO([x],D[EX].flattened);return G}x=c6(x);if(G==null)return DiO(x,KT());if(oE(G))return DiO(x,zZ(G));if(xiP(G))return DiO(x,zZ(G.toString()));if(Dy(G))return KvO(x,[G])[0];if(G.length===0)return DiO(x,KT());G=MmV(G,D);KvO(x,D[EX].flattened);return G};
Q4n=function(x,G){x.nodeType===Node.TEXT_NODE?x.textContent!==String(G)&&(x.textContent=String(G)):x=G1E(x,zZ(G));return x};
c6=function(x,G,D){return pwV(x,G!=null?G:[],D===void 0?!1:D)};
MmV=function(x,G){var D=c6(x,void 0,!0);if(D.length===0)return KT();G[EX].flattened=D;return x};
pwV=function(x,G,D,K,z){G=G===void 0?[]:G;D=D===void 0?!1:D;z=z===void 0?-1:z;if(x==null)return G;if(x instanceof W6)return x=x.render(),pwV(x,G,D,K,z);if(Dy(G)&&G.nodeType===Node.ELEMENT_NODE)switch(G.tagName){case "SCRIPT":D=c2f(x);D!==null&&_.RF(G,D);return;case "STYLE":D=Tuf(x);D!==null&&(G.textContent=_.mHf(D));return}oE(x)&&(x=zZ(x),K&&D&&(K[z]=x));if(x!=null&&x.contentKind===aE||x instanceof HC){D=hHE(x);D=Array.from(D.childNodes);D=_.l(D);for(x=D.next();!x.done;x=D.next())Vm$(G,x.value);return G}xiP(x)&&
(x=zZ(x.toString()),K&&D&&(K[z]=x));if(Dy(x))return Vm$(G,x);if(Array.isArray(x)){for(var y=0;y<x.length;y++)pwV(x[y],G,D,x,y);return G}if(typeof x==="function"){x=lM(x,{debugName:"qmF2ne"})[0];if(Array.isArray(x)){D=_.l(x);for(x=D.next();!x.done;x=D.next())Vm$(G,x.value);return G}K&&D&&(K[z]=x);return Vm$(G,x)}if(x!=null&&x[ht]){K=GZ(!0);z=Ppf;try{y=z.apply(null,[x.type,x.props].concat(_.B5(x.children)))}finally{GZ(K)}return pwV(y,G,D)}var c;(c=Kx.handleError)==null||c.call.apply(c,[Kx].concat(_.B5(Xq(Error("jc")))));
return G};
eeV=function(x){var G={};G=Object.assign([],(G[EX]={flattened:[]},G));if(!x)return G;G[0]=MmV(x,G);return G};
Vm$=function(x,G){Array.isArray(x)?x.push(G):x.appendChild(G);return x};
Zy=function(x){if(!Kx.enableLazyTsx)return x;if(Array.isArray(x)){for(var G=0;G<x.length;G++)x[G]=Zy(x[G]);return x}return x instanceof W6?(x=x.render(),Zy(x)):x};
LvP=function(x,G){var D,K,z=kzQ(x),y=function(r){K=r;r=GZ(!0);var H=of(Mh);tRd("render",z);try{D=Zy(x(G))}finally{kZ3("render",z),of(H),GZ(r)}};
y=Kx.enableContextPerComponent?hR3(y,z):Cx(y,Kx.alwaysTrackContexts||!!PZ);Gzh(K);if(!G.renderedFromIdom){var c=EP(K);try{return bEf(x,G,D),D}finally{EP(c)}}!fvQ(D)&&Array.isArray(D)&&(D=eeV(D));var W=tlf(D);c=Array.isArray(W)?W[0]:W;var e=!1;if(c){var Q,p=(Q=G==null?void 0:G.idomKey)!=null?Q:x;Q=W!==c;c._disposeEffects=y;var V=c[yD]||{},L=fvQ(D)?D:V.sourceDynamicRange;Object.assign(V,{key:p,numNodes:Q?W.length:1,context:K,higherOrder:!!c[yD],sourceDynamicRange:L});c[yD]=V}else e=!0;(function(){var r=
EP(K);try{bEf(x,G,W)}finally{EP(r)}})();
e&&y();return D};
Bu3=function(x){var G={},D;for(D in x)G={prev$jscomp$23:void 0,next$jscomp$32:void 0},G.prev$jscomp$23=QD[D],G.next$jscomp$32=x[D],QD[D]=function(K){return function(){var z=_.rC.apply(0,arguments);K.prev$jscomp$23.apply(null,_.B5(z));K.next$jscomp$32.apply(null,_.B5(z))}}(G)};
r2O=function(){if(Y9())throw Error("kc");return pT};
s4$=function(x,G){if(!x.__unmounted&&G){x.__unmounted=!0;try{x.didUnmount()}catch(z){var D,K;(K=Kx.handleError)==null||K.call.apply(K,[Kx].concat(_.B5(Xq(z,(D=x.JSC$8272___type)==null?void 0:D.TAG_NAME))))}QD.didUnmount(x);x.el=null;G.__instance&&delete G.__instance}};
mif=function(x,G,D){x._signalProps!=null&&x._disposeEffects==null&&((D===void 0?0:D)?x._disposeEffects=Cx(function(){return void Y9E(x,G)},Kx.alwaysTrackContexts||!!PZ):Y9E(x,G))};
Y9E=function(x,G){_.jO(function(){for(var D=x._signalProps,K=x._signalValues,z=0;z<D.length;z++){var y=D[z],c=G[y]();K[z]!==c&&(K[z]=c,vWf(x,y,c))}},"e3YVbb")};
HE3=function(x,G,D){var K,z=[];x._disposeEffects=Cx(function(){_.jO(function(){var y=D();if(y===null||y===void 0)y="";if(oE(y)||y===null)K!=null||(K=document.createTextNode("")),K.parentNode!==x&&(K._isSignalTextNode=!0,x.insertBefore(K,G)),K.textContent=String(y);else if(y!=null&&y.contentKind===aE||y instanceof HC){for(var c=z.length>0?z[z.length-1].nextSibling:G,W=_.l(z),e=W.next();!e.done;e=W.next())x.removeChild(e.value);y=hHE(y);z=Array.from(y.childNodes);y=_.l(z);for(W=y.next();!W.done;W=y.next())x.insertBefore(W.value,
c)}else throw e=(W=(c=rO)==null?void 0:c.name)!=null?W:"unknown",Error("$b`"+e+"`"+typeof y);},"VvDgC")},Kx.alwaysTrackContexts||!!PZ)};
CVL=function(x,G){var D=_.rC.apply(2,arguments);G!=null||(G={});return!Kx.enableLazyTsx||rO!=null&&!Y9()?$iO(x,G,D):new FvO(x,G,D)};
$iO=function(x,G,D){if(x===_.xT)return D;if(typeof x==="function")return rO&&!Y9()&&(G.renderedFromIdom=!0),PIV(x,function(){var y=Igf(x,G,D);if(y)return y;D.length>0&&(G.children=D.length===1?D[0]:D);if(x.componentType===sX){var c;hR3(function(){var W=G;if(x.componentType!==sX)c=!1;else{W||(W={});var e=new VD(W,x),Q=of(Mh);try{var p=e.render(W)}finally{of(Q)}p instanceof HTMLElement?(p.__instance=e,e.el=p,e.JSC$8272___type=x,x.TAG_NAME=p.tagName.toLowerCase(),QD.didPatch(e),c=p):c=p}},x.name);
if(c)return c}return LvP(x,G)},G.debugInstance);
var K=j4L(x,G),z;for(z in G)vWf(K,z,G[z]);mif(K,G);c6(D,K);JuO(K,G,{isReactive:!0});OEn(K,G);return K};
j4L=function(x,G){x=(Xwf.has(x.toLowerCase())?0:A2n.has(x.startsWith("svg:")?x.replace("svg:",""):x))?document.createElementNS("http://www.w3.org/2000/svg",x.startsWith("svg:")?x.replace("svg:",""):x):UiD(x,G)||document.createElement(x);x[Reh]=!0;return x};
S9d=function(x){if(x){var G;(G=x._disposeRef)==null||G.call(x);var D;(D=x._disposeEffects)==null||D.call(x);x.__instance&&x.__instance instanceof bM&&(G=x.__instance,s4$(G,x),G instanceof VD&&G.disposeEffects());for(G=0;G<x.childNodes.length;G++)S9d(x.childNodes[G])}};
iEV=function(x){nqP.push(x)===1&&requestAnimationFrame(function(){setTimeout(function(){var G=[].concat(_.B5(nqP));nqP=[];G=_.l(G);for(var D=G.next();!D.done;D=G.next()){D=D.value;try{for(var K=0;K<D.length;K++)S9d(D[K])}catch(z){K=D=void 0,(K=(D=Kx).handleError)==null||K.call.apply(K,[D].concat(_.B5(Xq(z))))}}})})};
_.M=function(x,G){return Ppf.apply(null,[x,G].concat(_.B5(_.rC.apply(2,arguments))))};
uvP=function(){var x=document.body.firstElementChild;window.ng||x.__ngContext__||(x.__ngContext__={},x.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=gqL)};
_.b=function(x){var G=x.cond;if(G===void 0)return x.else&&x.else();var D=_.V9(function(){return!!G()},void 0,"JHVi8"),K=function(){var z=G();
if(!z){var y;(y=Kx.handleError)==null||y.call.apply(y,[Kx].concat(_.B5(Xq(dif.nonNullableCondIsNull()))))}return z};
return lM(function(){var z=D(),y;Cx(function(){var c=of(Mh);try{y=Zy(z?x.then(K):x.else&&x.else())}finally{of(c)}},!0);
return y},{debugName:x.debugInstance,
isControlFlowComponent:!0})};
wwE=function(x){return _.b(x)};
_.LT=function(x){return x.keyBy==="INDEX"?q9f(x):NuV(x)};
vq$=function(x){x=_.l(x);for(var G=x.next();!G.done;G=x.next()){var D=void 0;(D=G.value)==null||D()}};
NuV=function(x){var G=x.keyBy===void 0||x.keyBy==="REFERENCE",D=G?function(p){return p}:x.keyBy,K=[],z=[],y=[],c=[],W=[],e=[],Q=!0;
_.Fq(function(){vq$(c)});
return lM(function(){var p=x.each(),V=p.length;if(V===0){if(K.length===0&&!Q)return y;vq$(c);K=p;z=[];for(p=0;p<K.length;p++)z.push(D(K[p]));y=[];c=[];W=[];e=[];x.fallback&&(c[0]=J2D(function(){y[0]=Zy(x.fallback())}));
Q=!1;return y}for(var L=new fgL,r=K.length-1;r>=0;r--)L.push(z[r],r);r=Array(V);for(var H=Array(V),O=Array(V),A=Array(V),g=Array(G?0:V),u={i$jscomp$442:0};u.i$jscomp$442<V;u={i$jscomp$442:u.i$jscomp$442,item$jscomp$103:void 0,key$jscomp$523:void 0},u.i$jscomp$442++){u.item$jscomp$103=p[u.i$jscomp$442];u.key$jscomp$523=D(u.item$jscomp$103);var f=L.pop(u.key$jscomp$523);f!=null?(O[u.i$jscomp$442]=y[f],H[u.i$jscomp$442]=z[f],r[u.i$jscomp$442]=c[f],A[u.i$jscomp$442]=W[f],G||(g[u.i$jscomp$442]=e[f]),b1(function(v){return function(){A[v.i$jscomp$442](v.i$jscomp$442);
if(!G)g[v.i$jscomp$442](v.item$jscomp$103)}}(u)),delete c[f]):r[u.i$jscomp$442]=J2D(function(v){return function(){var P=_.l(_.eO(v.i$jscomp$442,void 0,"Fqk1zd")),k=P.next().value;
P=P.next().value;A[v.i$jscomp$442]=P;H[v.i$jscomp$442]=v.key$jscomp$523;if(G)O[v.i$jscomp$442]=Zy(x.children(v.item$jscomp$103,k));else{var cL=_.l(_.eO(v.item$jscomp$103,void 0,"GBj5de"));P=cL.next().value;cL=cL.next().value;g[v.i$jscomp$442]=cL;O[v.i$jscomp$442]=Zy(x.children(P,k))}}}(u))}vq$(c);
K=p;z=H;y=O;c=r;W=A;e=g;Q=!1;return O},{debugName:x.debugInstance,
isControlFlowComponent:!0})};
q9f=function(x){var G=[],D=[],K=[],z=[],y=!1;_.Fq(function(){for(var c=_.l(z),W=c.next();!W.done;W=c.next())W=W.value,W()});
return lM(function(){var c=x.each();y&&c.length>0&&(z.pop()(),G.pop(),y=!1);for(var W=Array(c.length),e={i$jscomp$443:0};e.i$jscomp$443<c.length;e={i$jscomp$443:e.i$jscomp$443},e.i$jscomp$443++)if(e.i$jscomp$443<G.length)G[e.i$jscomp$443]!==c[e.i$jscomp$443]&&(b1(function(p){return function(){return void D[p.i$jscomp$443](c[p.i$jscomp$443])}}(e)),G[e.i$jscomp$443]=c[e.i$jscomp$443]),W[e.i$jscomp$443]=K[e.i$jscomp$443];
else{var Q=J2D(function(p){return function(){G[p.i$jscomp$443]=c[p.i$jscomp$443];var V=_.l(_.eO(c[p.i$jscomp$443],void 0,"kGMqJe")),L=V.next().value;V=V.next().value;D[p.i$jscomp$443]=V;W[p.i$jscomp$443]=Zy(x.children(L,p.i$jscomp$443))}}(e));
z[e.i$jscomp$443]=Q}for(;G.length>c.length;)G.pop(),z.pop()(),D.pop();c.length===0&&!y&&x.fallback&&(e=J2D(function(){W[0]=Zy(x.fallback())}),z[0]=e,y=!0);
return K=W},{debugName:x.debugInstance,
isControlFlowComponent:!0})};
J2D=function(x){var G=PZ;return Cx(function(D){var K=of(Mh);try{D.parent=G,x(D)}finally{of(K)}},!1)};
_.B6=function(x){return x};
_.rT=function(x){return{isDefault:!0,children:x.children}};
_.so=function(x){var G=tmP(x),D=_.V9(function(){return k1Q(G)},void 0,"F1PF4");
return lM(function(){var K=D(),z;Cx(function(){var y=of(Mh);try{z=Zy(K())}finally{of(y)}});
return z},{debugName:x.debugInstance,
isControlFlowComponent:!0})};
tmP=function(x){x=x.children;return Array.isArray(x)?x:[x]};
PVD=function(x){var G=x.props;x=x.getChildren()[0];return G.when?{when:G.when,children:x}:{isDefault:!0,children:x}};
k1Q=function(x){var G=function(){return null};
x=_.l(x);for(var D=x.next();!D.done;D=x.next())if(D=D.value,D!=null&&D[ht]&&(D=D.type===_.rT?{isDefault:!0,children:D.children[0]}:{when:D.props.when,children:D.children[0]}),D instanceof W6&&(D=PVD(D)),D.isDefault)G=D.children;else if(D.when())return D.children;return G};
Eqh=function(x){var G=null,D;return{value:null,onRender:function(K){if(D&&K!==D){var z;(z=G)==null||z();D._disposeRef=void 0}D=K;G=x(K)||null},
onUnmount:function(){var K;(K=G)==null||K();G=null}}};
xqQ=function(x){var G=r2O();if(G==null)throw heV.PRIMITIVE_INVALID_HOOK_CALL();var D=G.hookCounter++;G.hooks||(G.hooks=[]);var K=G.hooks;K[D]||(K[D]={key:x,host:G});if(x!==K[D].key){if(G.JSC$8272___type){var z;x=(z=G.JSC$8272___type)==null?void 0:z.name}else x=G instanceof VD?kzQ(G.functionComponent):"<"+G.el.tagName.toLowerCase()+">";throw heV.OUT_OF_ORDER_HOOK_CALL(x);}return K[D]};
GRV=function(x,G){return!x||x.length!==(G==null?void 0:G.length)||x.some(function(D,K){return D!==G[K]})};
DqV=function(x,G){var D=xqQ("onChange"),K=r2O();GRV(D.deps,G)&&(D.deps=G,D.pendingEffect=x,K.__syncEffects||(K.__syncEffects=[]),K.__syncEffects.push(D))};
_.mS=function(x,G){var D=D===void 0?{enableDevtools:!1}:D;var K=Kx.legacyTriggerSoyRendererEvents,z=D.appContext,y=Hl(function(){var c=of(Mh);try{return Cx(function(){var W=_.rmP(_.C2(x)),e;var Q=nTD({rootElement:{value:x},appContext:z||(W==null?void 0:(e=W.getOptionalAppContext)==null?void 0:e.call(W)),dispatcher:W});W=EP(Q);Q=GZ(!0);Lx++;try{c6(G(),x),t_h(!1)}catch(p){throw t_h(!0),p;}finally{GZ(Q),EP(W)}},!1)}catch(W){throw Kx.enableContextBasedComponentStacks&&mG(W),W;
}finally{of(c)}});
x[K7L]=!0;K&&y2d(x,z);return function(){x.textContent="";y();x[K7L]=!1}};
_.H6=function(x){if(JvL(af)){var G;(G=Kx.handleError)==null||G.call.apply(G,[Kx].concat(_.B5(Xq(Error("Zb")))))}var D=PZ,K=rO;Promise.resolve().then(function(){if(D&&!D.isDisposed){var z=EP(D);try{Hl(function(){return void x()},K)}catch(y){throw Kx.enableContextBasedComponentStacks&&mG(y),y;
}finally{EP(z)}}})};
$T=function(x,G){DqV(function(){return Wl(x)},G)};
_.FQ=function(x){Y9()?_.H6(function(){Wl(x)}):DqV(function(){return Wl(x)},[])};
aPQ=function(x){var G=[].concat(_.B5(x));x.length=0;x=_.l(G);for(G=x.next();!G.done;G=x.next()){G=G.value;zpQ(G);var D=G.pendingEffect;G.pendingEffect=null;if(D=D==null?void 0:D())G.pendingCleanup=D}};
zpQ=function(x){var G=x.pendingCleanup;x.pendingCleanup=null;G==null||G()};
oBn=function(x,G){if(Y9())return x();var D=xqQ("useMemoInternal");GRV(D.deps,G)&&(D.deps=G,D.value=x());return D.value};
yUd=function(x,G){return oBn(x,G)};
CT=function(x){return oBn(x,[])};
IE=function(x){return CT(function(){return{value:x}})};
_.jR=function(x,G){if(!x)return null;x=Object.keys(x);x=_.l(x);for(var D=x.next();!D.done;D=x.next()){D=D.value;var K=D.toLowerCase();if(K.indexOf(G,K.length-G.length)>-1)return D}return null};
_.XQ=function(){var x=arguments,G=_.Oo;x.length>1?G[x[0]]=x[1]:x.length===1&&Object.assign(G,x[0])};
_.Am=function(x,G){return x in _.Oo?_.Oo[x]:G};
_.Uo=function(x,G){return!!_.Am(x,G)};
lPV=function(x){var G=_.Oo.EXPERIMENT_FLAGS;return G?G[x]:void 0};
T1L=function(x){cUd.forEach(function(G){return G(x)})};
_.SR=function(x){return x&&window.yterr?function(){try{return x.apply(this,arguments)}catch(G){_.RE(G)}}:x};
_.RE=function(x){var G=_.nT("yt.logging.errors.log");G?G(x,"ERROR",void 0,void 0,void 0,void 0,void 0):(G=_.Am("ERRORS",[]),G.push([x,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.XQ("ERRORS",G));T1L(x)};
_.iM=function(x,G,D,K,z){var y=_.nT("yt.logging.errors.log");y?y(x,"WARNING",G,D,K,void 0,z):(y=_.Am("ERRORS",[]),y.push([x,"WARNING",G,D,K,void 0,z]),_.XQ("ERRORS",y))};
epL=function(x,G){G=x.split(G);for(var D={},K=0,z=G.length;K<z;K++){var y=G[K].split("=");if(y.length===1&&y[0]||y.length===2)try{var c=W7f(y[0]||""),W=W7f(y[1]||"");if(c in D){var e=D[c];Array.isArray(e)?_.ED(e,W):D[c]=[e,W]}else D[c]=W}catch(L){var Q=L,p=y[0],V=String(epL);Q.args=[{key:p,value:y[1],query:x,method:Zoh===V?"unchanged":V}];MSP.hasOwnProperty(p)||_.iM(Q)}}return D};
QNV=function(x){var G=[];_.YS.forEach(x,function(D,K){var z=_.gT(K);_.uM(Array.isArray(D)?D:[D],function(y){y==""?G.push(z):G.push(z+"="+_.gT(y))})});
return G.join("&")};
_.dT=function(x){x.charAt(0)==="?"&&(x=x.substring(1));return epL(x,"&")};
_.wT=function(x){return x.indexOf("?")!==-1?(x=(x||"").split("#")[0],x=x.split("?",2),_.dT(x.length>1?x[1]:x[0])):{}};
_.qh=function(x,G){return pmh(x,G||{},!0)};
VSh=function(x,G){return pmh(x,G||{},!1)};
pmh=function(x,G,D){var K=x.split("#",2);x=K[0];K=K.length>1?"#"+K[1]:"";var z=x.split("?",2);x=z[0];z=_.dT(z[1]||"");for(var y in G)if(D||!_.YS.containsKey(z,y))z[y]=G[y];return _.Nh(x,z)+K};
tm=function(x){if(!G)var G=window.location.href;var D=_.v6(x)[1]||null,K=_.Jm(x);return D&&K?fT(x,G):K?_.Jm(G)===K&&(Number(_.v6(G)[4]||null)||null)===(Number(_.v6(x)[4]||null)||null):!0};
_.L7Q=function(x){x=boh(x);return x===null?!1:x[0]==="com"&&x[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
boh=function(x){x=_.Jm(x);return x!==null?x.split(".").reverse():null};
W7f=function(x){return x&&x.match(B1C)?x:kT(x)};
_.P6=function(x){return new rUO(x)};
_.Eo=function(){sNL||(sNL=new Yv$);return sNL};
HoE=function(x){var G=_.hm,D,K;_.T(function(z){D=_.Eo();return(K=D.resolve(_.P6(G)))?(x(K),z.return(Promise.resolve(K))):z.return(D.resolve(new mqC(G)).then(function(y){x(y);return y}))})};
_.B=function(x){x=xK(x);return typeof x==="string"&&x==="false"?!1:!!x};
_.Gz=function(x,G){x=xK(x);return x===void 0&&G!==void 0?G:Number(x||0)};
$qf=function(x){x=xK(x);return Array.isArray(x)?_.Hu(x,function(G){return Number(G||0)}):[Number(x||0)]};
_.Db=function(x){x=xK(x);return x!==void 0?String(x):""};
_.KL=function(x){x=xK(x);return Array.isArray(x)?_.Hu(x,function(G){return String(G||"")}):[String(x||"")]};
F7L=function(){return _.Am("EXPERIMENTS_TOKEN","")};
xK=function(x){return _.Am("EXPERIMENT_FLAGS",{})[x]};
Cg$=function(){for(var x=[],G=_.Am("EXPERIMENTS_FORCED_FLAGS",{}),D=_.l(Object.keys(G)),K=D.next();!K.done;K=D.next())K=K.value,x.push({key:K,value:String(G[K])});D=_.Am("EXPERIMENT_FLAGS",{});K=_.l(Object.keys(D));for(var z=K.next();!z.done;z=K.next())z=z.value,z.startsWith("force_")&&G[z]===void 0&&x.push({key:z,value:String(D[z])});return x};
jN3=function(){if(!IPC)return null;var x=IPC();return"open"in x?x:null};
_.OoV=function(x){switch(_.zz(x)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.zz=function(x){return x&&"status"in x?x.status:-1};
_.oA=function(x,G){typeof x==="function"&&(x=_.SR(x));return window.setTimeout(x,G)};
_.yR=function(x,G){typeof x==="function"&&(x=_.SR(x));return window.setInterval(x,G)};
_.lI=function(x){window.clearTimeout(x)};
AUC=function(x){x=_.wT(x);for(var G=_.l(Xm$),D=G.next();!D.done;D=G.next())if(x[D.value]!==void 0)return!0;return!1};
SvL=function(x,G,D,K,z,y,c,W){D=D===void 0?"GET":D;K=K===void 0?"":K;W=W===void 0?!1:W;var e=jN3();if(!e)return null;var Q=function(){(e&&"readyState"in e?e.readyState:0)===4&&G&&_.SR(G)(e)};
"onloadend"in e?e.addEventListener("loadend",Q,!1):e.onreadystatechange=Q;_.B("debug_forward_web_query_parameters")&&(x=UqQ(x,window.location.search));e.open(D,x,!0);y&&(e.responseType=y);c&&(e.withCredentials=!0);D=D==="POST"&&(window.FormData===void 0||!(K instanceof FormData));if(z=Rpf(x,z))for(var p in z)e.setRequestHeader(p,z[p]),"content-type"===p.toLowerCase()&&(D=!1);D&&e.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(W&&"setAttributionReporting"in XMLHttpRequest.prototype){x=
{eventSourceEligible:!0,triggerEligible:!1};try{e.setAttributionReporting(x)}catch(V){_.iM(V)}}e.send(K);return e};
Rpf=function(x,G){G=G===void 0?{}:G;var D=tm(x),K=_.Am("INNERTUBE_CLIENT_NAME"),z=_.B("web_ajax_ignore_global_headers_if_set"),y;for(y in nBV){var c=_.Am(nBV[y]),W=y==="X-Goog-AuthUser"||y==="X-Goog-PageId";y!=="X-Goog-Visitor-Id"||c||(c=_.Am("VISITOR_DATA"));var e;if(!(e=!c)){if(!(e=D||(_.Jm(x)?!1:!0))){e=x;var Q;if(Q=_.B("add_auth_headers_to_remarketing_google_dot_com_ping")&&y==="Authorization"&&(K==="TVHTML5"||K==="TVHTML5_UNPLUGGED"||K==="TVHTML5_SIMPLY"))Q=boh(e),Q=Q===null?!1:Q[1]==="google"?
!0:Q[2]==="google"?Q[0]==="au"&&Q[1]==="com"?!0:Q[0]==="uk"&&Q[1]==="co"?!0:!1:!1;Q&&(e=_.c0(e)||"",e=e.split("/"),e="/"+(e.length>1?e[1]:""),Q=e==="/pagead");e=Q?!0:!1}e=!e}e||z&&G[y]!==void 0||K==="TVHTML5_UNPLUGGED"&&W||(G[y]=c)}"X-Goog-EOM-Visitor-Id"in G&&"X-Goog-Visitor-Id"in G&&delete G["X-Goog-Visitor-Id"];if(D||!_.Jm(x))G["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(D||!_.Jm(x)){try{var p=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(V){}p&&(G["X-YouTube-Time-Zone"]=
p)}document.location.hostname.endsWith("youtubeeducation.com")||!D&&_.Jm(x)||(G["X-YouTube-Ad-Signals"]=QNV(ioP()));return G};
_.gBn=function(x,G){var D=_.Jm(x);_.B("debug_handle_relative_url_for_query_forward_killswitch")||!D&&tm(x)&&(D=document.location.hostname);var K=_.c0(x);K=(D=D&&(D.endsWith("youtube.com")||D.endsWith("youtube-nocookie.com")))&&K&&K.startsWith("/api/");if(!D||K)return x;var z=_.dT(G),y={};_.uM(Xm$,function(c){z[c]&&(y[c]=z[c])});
return VSh(x,y)};
uKQ=function(x,G){G.method="POST";G.postParams||(G.postParams={});return _.Tz(x,G)};
dq$=function(x,G){var D=_.Am("XSRF_FIELD_NAME"),K;G.headers&&(K=G.headers["Content-Type"]);return!G.excludeXsrf&&(!_.Jm(x)||G.withCredentials||_.Jm(x)===document.location.hostname)&&G.method==="POST"&&(!K||K==="application/x-www-form-urlencoded")&&!(G.postParams&&G.postParams[D])};
_.Tz=function(x,G){var D=G.format||"JSON";x=wmn(x,G);var K=qvV(x,G),z=!1,y=N1d(x,function(e){if(!z){z=!0;W&&_.lI(W);var Q=_.OoV(e),p=null,V=400<=e.status&&e.status<500,L=500<=e.status&&e.status<600;if(Q||V||L)p=vBC(x,D,e,G.convertToSafeHtml);Q&&(Q=JUP(D,e,p));p=p||{};V=G.context||_.Df;Q?G.onSuccess&&G.onSuccess.call(V,e,p):G.onError&&G.onError.call(V,e,p);G.onFinish&&G.onFinish.call(V,e,p)}},G.method,K,G.headers,G.responseType,G.withCredentials);
K=G.timeout||0;if(G.onTimeout&&K>0){var c=G.onTimeout;var W=_.oA(function(){z||(z=!0,y.abort(),_.lI(W),c.call(G.context||_.Df,y))},K)}return y};
wmn=function(x,G){G.includeDomain&&(x=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+x);var D=_.Am("XSRF_FIELD_NAME");if(G=G.urlParams)G[D]&&delete G[D],x=_.qh(x,G);return x};
qvV=function(x,G){var D=_.Am("XSRF_FIELD_NAME"),K=_.Am("XSRF_TOKEN"),z=G.postBody||"",y=G.postParams;dq$(x,G)&&(y||(y={}),y[D]=K);(_.B("ajax_parse_query_data_only_when_filled")&&y&&Object.keys(y).length>0||y)&&typeof z==="string"&&(z=_.dT(z),_.YS.extend(z,y),z=G.postBodyFormat&&G.postBodyFormat==="JSON"?JSON.stringify(z):_.W0(z));y=z||y&&!_.YS.isEmpty(y);!fPP&&y&&G.method!=="POST"&&(fPP=!0,_.RE(Error("Ec")));return z};
vBC=function(x,G,D,K){var z=null;switch(G){case "JSON":try{var y=D.responseText}catch(c){throw K=Error("Fc"),K.params=x,_.iM(K),c;}x=D.getResponseHeader("Content-Type")||"";y&&x.indexOf("json")>=0&&(y.substring(0,5)===")]}'\n"&&(y=y.substring(5)),z=JSON.parse(y));break;case "XML":if(x=(x=D.responseXML)?tSC(x):null)z={},_.uM(x.getElementsByTagName("*"),function(c){z[c.tagName]=kRE(c)})}K&&PgO(z);
return z};
PgO=function(x){if(_.G7(x))for(var G in x)G==="html_content"||oV(G,"_html")?x[G]=$Y(x[G]):PgO(x[G])};
JUP=function(x,G,D){if(G&&G.status===204)return!0;switch(x){case "JSON":return!!D;case "XML":return Number(D&&D.return_code)===0;case "RAW":return!0;default:return!!D}};
tSC=function(x){return x?(x=("responseXML"in x?x.responseXML:x).getElementsByTagName("root"))&&x.length>0?x[0]:null:null};
kRE=function(x){var G="";_.uM(x.childNodes,function(D){G+=D.nodeValue});
return G};
EBV=function(x){if(x.name==="JavaException")return!0;x=x.stack;return x.includes("chrome://")||x.includes("-extension://")||x.includes("webkit-masked-url://")};
hpE=function(x){if(!x.stack)return!0;var G=!x.stack.includes("\n");return G&&x.stack.includes("ErrorType: ")||G&&x.stack.includes("Anonymous function (Unknown script")||x.stack.toLowerCase()==="not available"||x.fileName==="user-script"||x.fileName.startsWith("user-script:")?!0:!1};
_.e_=function(x){_.Ya.call(this);this.JSC$8443_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!x};
Gy$=function(x,G){var D=x.length,K=0,z=function(){return x.charCodeAt(K++)};
do{var y=xpD(z);if(y===Infinity)break;var c=y>>3;switch(y&7){case 0:y=xpD(z);if(c===G)return y;break;case 1:if(c===G)return;K+=8;break;case 2:y=xpD(z);if(c===G)return x.substr(K,y);K+=y;break;case 5:if(c===G)return;K+=4;break;default:return}}while(K<D)};
xpD=function(x){var G=x(),D=G&127;if(G<128)return D;G=x();D|=(G&127)<<7;if(G<128)return D;G=x();D|=(G&127)<<14;if(G<128)return D;G=x();return G<128?D|(G&127)<<21:Infinity};
KbD=function(x,G,D,K){if(x)if(Array.isArray(x)){var z=K;for(K=0;K<x.length&&!(x[K]&&(z+=Dpd(K,x[K],G,D),z>500));K++);K=z}else if(typeof x==="object")for(z in x){if(x[z]){var y=z;var c=x[z],W=G,e=D;y=typeof c!=="string"||y!=="clickTrackingParams"&&y!=="trackingParams"?0:(c=Gy$(atob(c.replace(/-/g,"+").replace(/_/g,"/")),2))?Dpd(y+".ve",c,W,e):0;K+=y;K+=Dpd(z,x[z],G,D);if(K>500)break}}else D[G]=Zb(x),K+=D[G].length;else D[G]=Zb(x),K+=D[G].length;return K};
Dpd=function(x,G,D,K){D+="."+x;x=Zb(G);K[D]=x;return D.length+x.length};
Zb=function(x){try{return(typeof x==="string"?x:String(JSON.stringify(x))).substr(0,500)}catch(G){return"unable to serialize "+typeof x+" ("+G.message+")"}};
zcP=function(x){switch(x){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}};
_.QR=function(x,G,D,K,z){_.MU.set(x,G,{maxAge:D,path:"/",domain:K===void 0?"youtube.com":K,secure:z===void 0?!1:z})};
_.auf=function(x,G,D){_.MU.remove(x,G===void 0?"/":G,D===void 0?"youtube.com":D)};
_.pL=function(){if(_.B("embeds_web_enable_cookie_detection_fix")){if(!_.Df.navigator.cookieEnabled)return!1}else if(!_.MU.isEnabled())return!1;if(!_.MU.isEmpty())return!0;_.B("embeds_web_enable_cookie_detection_fix")?_.MU.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.MU.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.MU.get("TESTCOOKIESENABLED")!=="1")return!1;_.MU.remove("TESTCOOKIESENABLED");return!0};
omP=function(){var x=_.Df.navigator;return x?x.connection:void 0};
y$3=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(x){}};
_.c$$=function(){var x=omP();if(x){var G=luf[x.type||"unknown"]||"CONN_UNKNOWN";x=luf[x.effectiveType||"unknown"]||"CONN_UNKNOWN";G==="CONN_CELLULAR_UNKNOWN"&&x!=="CONN_UNKNOWN"&&(G=x);if(G!=="CONN_UNKNOWN")return G;if(x!=="CONN_UNKNOWN")return x}};
WbP=function(){var x=omP();if(x!=null&&x.effectiveType)return T53.hasOwnProperty(x.effectiveType)?T53[x.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.bI=function(){try{return _.VR(),!0}catch(x){return!1}};
_.VR=function(x){if(_.Am("DATASYNC_ID")!==void 0)return _.Am("DATASYNC_ID");throw new _.LL("Datasync ID not set",x===void 0?"unknown":x);};
_.B0=function(x){this.mechanism=x};
rx=function(x){this.mechanism=x};
sj=function(x){this.storage_=x;this.cachedIsStorageAvailable_=null};
ec3=function(){var x=null;try{x=_.Df.localStorage||null}catch(G){}sj.call(this,x)};
ZCD=function(){var x=null;try{x=_.Df.sessionStorage||null}catch(G){}sj.call(this,x)};
YK=function(x,G){this.mechanism_=x;this.JSC$8545_prefix_=G+"::"};
_.MqP=function(x){var G=new ec3;return G.isAvailable()?x?new YK(G,x):G:null};
_.QZh=function(x){var G=new ZCD;return G.isAvailable()?x?new YK(G,x):G:null};
VqP=function(){var x;return(x=py$())==null?void 0:x.get("LAST_RESULT_ENTRY_KEY",!0)};
_.$K=function(x){bCL||(_.md?_.md.logError(x):(_.H0.push({type:"ERROR",payload:x}),_.H0.length>10&&_.H0.shift()))};
Ff=function(x,G){bCL||(_.md?_.md.logEvent(x,G):(_.H0.push({type:"EVENT",eventType:x,payload:G}),_.H0.length>10&&_.H0.shift()))};
CL=function(x){if(x.indexOf(":")>=0)throw Error("Mc");};
IA=function(x){return x.substr(0,x.indexOf(":"))||x};
r$O=function(){return(LbD||B5E)&&j_("applewebkit")&&!j_("version")&&(!j_("safari")||j_("gsa/"))};
j_=function(x){var G=_.Q3();return G?G.toLowerCase().indexOf(x)>=0:!1};
mp3=function(x,G,D,K){G=IA(G);var z=x instanceof Error?x:Error("Nc`"+x);if(z instanceof Oj)return z;x={objectStoreNames:D,dbName:G,dbVersion:K};if(z.name==="QuotaExceededError")return new Oj("QUOTA_EXCEEDED",x);if(_.Xf&&z.name==="UnknownError")return new Oj("QUOTA_MAYBE_EXCEEDED",x);if(z instanceof sZO)return new Oj("MISSING_INDEX",Object.assign({},x,{objectStore:z.objectStore,index:z.index}));if(z.name==="InvalidStateError"&&YfQ.some(function(y){return z.message.includes(y)}))return new Oj("EXECUTE_TRANSACTION_ON_CLOSED_DB",
x);
if(z.name==="AbortError")return new Oj("UNKNOWN_ABORT",x,z.message);z.args=[Object.assign({},x,{name:"IdbError",originalName:z.name})];z.level="WARNING";return z};
Av=function(x,G,D){var K=VqP();return new Oj("IDB_NOT_SUPPORTED",{context:{caller:x,publicName:G,version:D,hasSucceededOnce:K==null?void 0:K.hasSucceededOnce}})};
HCC=function(x){if(!x)throw Error();throw x;};
$pO=function(x){return x};
Fbd=function(x,G,D){var K=function(){try{x.removeEventListener("success",z),x.removeEventListener("error",y)}catch(c){}},z=function(){G(x.result);
K()},y=function(){D(x.error);
K()};
x.addEventListener("success",z);x.addEventListener("error",y)};
CxP=function(x){return new Promise(function(G,D){Fbd(x,G,D)})};
S_=function(x){return new Uj(new RA(function(G,D){Fbd(x,G,D)}))};
IuV=function(x,G){return new Uj(new RA(function(D,K){var z=function(){var y=x?G(x):null;y?y.then(function(c){x=c;z()},K):D()};
z()}))};
OCP=function(x,G,D){return new Promise(function(K,z){var y=G!==void 0?self.indexedDB.open(x,G):self.indexedDB.open(x);var c=D.blocked,W=D.blocking,e=D.terminated,Q=D.upgrade,p=D.closed,V,L=function(){V||(V=new nL(y.result,{closed:p}));return V};
y.addEventListener("upgradeneeded",function(r){try{if(r.newVersion===null)throw Error("Sc");if(y.transaction===null)throw Error("Tc");r.dataLoss&&r.dataLoss!=="none"&&Ff("IDB_DATA_CORRUPTED",{reason:r.dataLossMessage||"unknown reason",dbName:IA(x)});var H=L(),O=new jZ3(y.transaction);Q&&Q(H,function(A){return r.oldVersion<A&&r.newVersion>=A},O);
O.done.catch(function(A){z(A)})}catch(A){z(A)}});
y.addEventListener("success",function(){var r=y.result;W&&r.addEventListener("versionchange",function(){W(L())});
r.addEventListener("close",function(){Ff("IDB_UNEXPECTEDLY_CLOSED",{dbName:IA(x),dbVersion:r.version});e&&e()});
K(L())});
y.addEventListener("error",function(){z(y.error)});
c&&y.addEventListener("blocked",function(){c()})})};
Xyf=function(x,G,D){D=D===void 0?{}:D;return OCP(x,G,D)};
_.gx=function(x,G){G=G===void 0?{}:G;var D,K,z,y;return _.T(function(c){if(c.nextAddress==1)return _.Kl(c,2),D=self.indexedDB.deleteDatabase(x),K=G,(z=K.blocked)&&D.addEventListener("blocked",function(){z()}),_.Z(c,CxP(D),4);
if(c.nextAddress!=2)return _.iI(c,0);y=_.lX(c);throw mp3(y,x,"",-1);})};
UpL=function(x,G){var D;return _.T(function(K){if(K.nextAddress==1)return _.Z(K,_.uI(A$L,G),2);D=K.yieldResult;return K.return(_.dx(D,["databases"],{enableRetries:!0,mode:"readwrite"},function(z){var y=z.objectStore("databases");return y.get(x.actualName).then(function(c){if(c?x.actualName!==c.actualName||x.publicName!==c.publicName||x.userIdentifier!==c.userIdentifier:1)return y.put(x).then(function(){})})}))})};
_.wx=function(x,G){var D;return _.T(function(K){if(K.nextAddress==1)return x?_.Z(K,_.uI(A$L,G),2):K.return();D=K.yieldResult;return K.return(D.delete("databases",x))})};
_.RcQ=function(x,G){var D,K;return _.T(function(z){return z.nextAddress==1?(D=[],_.Z(z,_.uI(A$L,G),2)):z.nextAddress!=3?(K=z.yieldResult,_.Z(z,_.dx(K,["databases"],{enableRetries:!0,mode:"readonly"},function(y){D.length=0;return qU(y.objectStore("databases"),{},function(c){x(c.getValue())&&D.push(c.getValue());return c.continue()})}),3)):z.return(D)})};
Sf3=function(x,G){return _.RcQ(function(D){return D.publicName===x&&D.userIdentifier!==void 0},G)};
gmC=function(){var x,G,D,K;return _.T(function(z){switch(z.nextAddress){case 1:x=VqP();if((G=x)==null?0:G.hasSucceededOnce)return z.return(!0);var y;if(y=nmh)y=/WebKit\/([0-9]+)/.exec(_.Q3()),y=!!(y&&parseInt(y[1],10)>=600);y&&(y=/WebKit\/([0-9]+)/.exec(_.Q3()),y=!(y&&parseInt(y[1],10)>=602));if(y||NU)return z.return(!1);try{if(D=self,!(D.indexedDB&&D.IDBIndex&&D.IDBKeyRange&&D.IDBObjectStore))return z.return(!1)}catch(c){return z.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return z.return(!1);
_.Kl(z,2);K={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.Z(z,UpL(K,iCn),4);case 4:return _.Z(z,_.wx("yt-idb-test-do-not-use",iCn),5);case 5:return z.return(!0);case 2:return _.lX(z),z.return(!1)}})};
dp3=function(){if(uxV!==void 0)return uxV;bCL=!0;return uxV=gmC().then(function(x){bCL=!1;var G;if((G=py$())!=null&&G.expiringStorage_){var D;G={hasSucceededOnce:((D=VqP())==null?void 0:D.hasSucceededOnce)||x};var K;(K=py$())==null||K.set("LAST_RESULT_ENTRY_KEY",G,2592E3,!0)}return x})};
v0=function(){return _.nT("ytglobal.idbToken_")||void 0};
_.fL=function(){var x=v0();return x?Promise.resolve(x):dp3().then(function(G){(G=G?iCn:void 0)&&_.Jv("ytglobal.idbToken_",G);return G})};
wyh=function(x){if(!_.bI())throw x=new Oj("AUTH_INVALID",{dbName:x}),_.$K(x),x;var G=_.VR();return{actualName:x+":"+G,publicName:x,userIdentifier:G}};
qfE=function(x,G,D,K){var z,y,c,W,e,Q;return _.T(function(p){switch(p.nextAddress){case 1:return y=(z=Error().stack)!=null?z:"",_.Z(p,_.fL(),2);case 2:c=p.yieldResult;if(!c)throw W=Av("openDbImpl",x,G),_.B("ytidb_async_stack_killswitch")||(W.stack=W.stack+"\n"+y.substring(y.indexOf("\n")+1)),_.$K(W),W;CL(x);e=D?{actualName:x,publicName:x,userIdentifier:void 0}:wyh(x);_.Kl(p,3);return _.Z(p,UpL(e,c),5);case 5:return _.Z(p,Xyf(e.actualName,G,K),6);case 6:return p.return(p.yieldResult);case 3:return Q=
_.lX(p),_.Kl(p,7),_.Z(p,_.wx(e.actualName,c),9);case 9:_.iI(p,8);break;case 7:_.lX(p);case 8:throw Q;}})};
N5V=function(x,G,D){D=D===void 0?{}:D;return qfE(x,G,!1,D)};
vmQ=function(x,G,D){D=D===void 0?{}:D;return qfE(x,G,!0,D)};
J$f=function(x,G){G=G===void 0?{}:G;var D,K;return _.T(function(z){if(z.nextAddress==1)return _.Z(z,_.fL(),2);if(z.nextAddress!=3){D=z.yieldResult;if(!D)return z.return();CL(x);K=wyh(x);return _.Z(z,_.gx(K.actualName,G),3)}return _.Z(z,_.wx(K.actualName,D),0)})};
fuC=function(x,G,D){x=x.map(function(K){return _.T(function(z){return z.nextAddress==1?_.Z(z,_.gx(K.actualName,G),2):_.Z(z,_.wx(K.actualName,D),0)})});
return Promise.all(x).then(function(){})};
tq$=function(x){var G=G===void 0?{}:G;var D,K;return _.T(function(z){if(z.nextAddress==1)return _.Z(z,_.fL(),2);if(z.nextAddress!=3){D=z.yieldResult;if(!D)return z.return();CL(x);return _.Z(z,Sf3(x,D),3)}K=z.yieldResult;return _.Z(z,fuC(K,G,D),0)})};
kyf=function(x,G){G=G===void 0?{}:G;var D;return _.T(function(K){if(K.nextAddress==1)return _.Z(K,_.fL(),2);if(K.nextAddress!=3){D=K.yieldResult;if(!D)return K.return();CL(x);return _.Z(K,_.gx(x,G),3)}return _.Z(K,_.wx(x,D),0)})};
tv=function(x,G){return PxE(x,G)};
hcd=function(x){return _.uI(EmO(),x)};
x5n=function(x,G,D,K){var z,y,c;return _.T(function(W){switch(W.nextAddress){case 1:return z={config:x,hashData:G,timestamp:K!==void 0?K:(0,_.kK)()},_.Z(W,hcd(D),2);case 2:return y=W.yieldResult,_.Z(W,y.clear("hotConfigStore"),3);case 3:return _.Z(W,y.put("hotConfigStore",z),4);case 4:return c=W.yieldResult,W.return(c)}})};
Gl$=function(x,G,D,K,z){var y,c,W;return _.T(function(e){switch(e.nextAddress){case 1:return y={config:x,hashData:G,configData:D,timestamp:z!==void 0?z:(0,_.kK)()},_.Z(e,hcd(K),2);case 2:return c=e.yieldResult,_.Z(e,c.clear("coldConfigStore"),3);case 3:return _.Z(e,c.put("coldConfigStore",y),4);case 4:return W=e.yieldResult,e.return(W)}})};
D5f=function(x){var G,D;return _.T(function(K){return K.nextAddress==1?_.Z(K,hcd(x),2):K.nextAddress!=3?(G=K.yieldResult,D=void 0,_.Z(K,_.dx(G,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(z){return _.P0(z.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(y){D=y.getValue()})}),3)):K.return(D)})};
Ksd=function(x){var G,D;return _.T(function(K){return K.nextAddress==1?_.Z(K,hcd(x),2):K.nextAddress!=3?(G=K.yieldResult,D=void 0,_.Z(K,_.dx(G,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(z){return _.P0(z.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(y){D=y.getValue()})}),3)):K.return(D)})};
z9h=function(){return _.T(function(x){return _.Z(x,tq$("ytGcfConfig"),0)})};
aqC=function(){return"INNERTUBE_API_KEY"in _.Oo&&"INNERTUBE_API_VERSION"in _.Oo};
_.Ej=function(){return{innertubeApiKey:_.Am("INNERTUBE_API_KEY"),innertubeApiVersion:_.Am("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.Am("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.Am("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.Am("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.Am("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.Am("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.Am("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.Am("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.Uo("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.Uo("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.Am("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.e9$=function(x){var G={client:{hl:x.innertubeContextHostLanguage,gl:x.innertubeContextGeoLocation,clientName:x.innertubeContextClientName,clientVersion:x.innertubeContextClientVersion,configInfo:x.innertubeContextClientConfigInfo}};navigator.userAgent&&(G.client.userAgent=String(navigator.userAgent));var D=_.Df.devicePixelRatio;D&&D!=1&&(G.client.screenDensityFloat=String(D));D=F7L();D!==""&&(G.client.experimentsToken=D);D=Cg$();D.length>0&&(G.request={internalExperimentFlags:D});oOO(x,void 0,G);
yNf(void 0,G);lq$(void 0,G);cNd(x,void 0,G);TBO(void 0,G);_.B("start_client_gcf")&&WsE(void 0,G);_.Am("DELEGATED_SESSION_ID")&&!_.B("pageid_as_header_web")&&(G.user={onBehalfOfUser:_.Am("DELEGATED_SESSION_ID")});!_.B("fill_delegate_context_in_gel_killswitch")&&(x=_.Am("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(G.user=Object.assign({},G.user,{serializedDelegationContext:x}));x=_.Am("INNERTUBE_CONTEXT");var K;if(_.B("enable_persistent_device_token")&&(x==null?0:(K=x.client)==null?0:K.rolloutToken)){var z;
G.client.rolloutToken=x==null?void 0:(z=x.client)==null?void 0:z.rolloutToken}K=Object;z=K.assign;x=G.client;D={};for(var y=_.l(Object.entries(_.dT(_.Am("DEVICE","")))),c=y.next();!c.done;c=y.next()){var W=_.l(c.value);c=W.next().value;W=W.next().value;c==="cbrand"?D.deviceMake=W:c==="cmodel"?D.deviceModel=W:c==="cbr"?D.browserName=W:c==="cbrver"?D.browserVersion=W:c==="cos"?D.osName=W:c==="cosver"?D.osVersion=W:c==="cplatform"&&(D.platform=W)}G.client=z.call(K,x,D);return G};
oOO=function(x,G,D){x=x.innertubeContextClientName;if(x==="WEB"||x==="MWEB"||x===1||x===2)if(G){D=_.hv(G,ZWE,96)||new ZWE;var K=M7$();K=Object.keys(QIE).indexOf(K);K=K===-1?null:K;K!==null&&_.xW(D,3,K);_.GW(G,96,D)}else D&&(D.client.mainAppWebInfo=(K=D.client.mainAppWebInfo)!=null?K:{},D.client.mainAppWebInfo.webDisplayMode=M7$())};
yNf=function(x,G){var D=_.nT("yt.embedded_player.embed_url");D&&(x?(G=_.hv(x,pgV,7)||new pgV,_.Z_(G,4,D),_.GW(x,7,G)):G&&(G.thirdParty={embedUrl:D}))};
lq$=function(x,G){var D;if(_.B("web_log_memory_total_kbytes")&&((D=_.Df.navigator)==null?0:D.deviceMemory)){var K;D=(K=_.Df.navigator)==null?void 0:K.deviceMemory;x?_.Gu(x,95,Oc(D*1E6)):G&&(G.client.memoryTotalKbytes=""+D*1E6)}};
cNd=function(x,G,D){if(x.appInstallData)if(G){var K;D=(K=_.hv(G,Dv,62))!=null?K:new Dv;_.Z_(D,6,x.appInstallData);_.GW(G,62,D)}else D&&(D.client.configInfo=D.client.configInfo||{},D.client.configInfo.appInstallData=x.appInstallData)};
TBO=function(x,G){var D=_.c$$();D&&(x?_.xW(x,61,V7E[D]):G&&(G.client.connectionType=D));_.B("web_log_effective_connection_type")&&(D=WbP())&&(x?_.xW(x,94,bWL[D]):G&&(G.client.effectiveConnectionType=D))};
_.rNO=function(x,G,D){D=D===void 0?{}:D;var K={};_.Am("EOM_VISITOR_DATA")?K={"X-Goog-EOM-Visitor-Id":_.Am("EOM_VISITOR_DATA")}:K={"X-Goog-Visitor-Id":D.visitorData||_.Am("VISITOR_DATA","")};if(G&&G.includes("www.youtube-nocookie.com"))return K;G=D.authorization||_.Am("AUTHORIZATION");G||(x?G="Bearer "+_.nT("gapi.auth.getToken")().access_token:(Lsh.instance||(Lsh.instance=new Lsh),x=BB$(),_.B("pageid_as_header_web")||delete x["X-Goog-PageId"],K=Object.assign({},K,x)));G&&(K.Authorization=G);return K};
WsE=function(x,G){var D=sIP();if(D){var K=D.coldConfigData,z=D.coldHashData;D=D.hotHashData;if(x){var y;G=(y=_.hv(x,Dv,62))!=null?y:new Dv;K=_.Z_(G,1,K);_.Z_(K,3,z).setHotHashData(D);_.GW(x,62,G)}else G&&(G.client.configInfo=G.client.configInfo||{},K&&(G.client.configInfo.coldConfigData=K),z&&(G.client.configInfo.coldHashData=z),D&&(G.client.configInfo.hotHashData=D))}};
KU=function(x){for(var G=x.length;--G>=0;)x[G]=0};
YOO=function(x,G,D,K,z){this.static_tree=x;this.extra_bits=G;this.extra_base=D;this.elems=K;this.max_length=z;this.has_stree=x&&x.length};
m53=function(x,G){this.dyn_tree=x;this.max_code=0;this.stat_desc=G};
zu=function(x,G){x.pending_buf[x.pending++]=G&255;x.pending_buf[x.pending++]=G>>>8&255};
aW=function(x,G,D){x.bi_valid>16-D?(x.bi_buf|=G<<x.bi_valid&65535,zu(x,x.bi_buf),x.bi_buf=G>>16-x.bi_valid,x.bi_valid+=D-16):(x.bi_buf|=G<<x.bi_valid&65535,x.bi_valid+=D)};
oW=function(x,G,D){aW(x,D[G*2],D[G*2+1])};
HW$=function(x,G){var D=0;do D|=x&1,x>>>=1,D<<=1;while(--G>0);return D>>>1};
$5n=function(x,G,D){var K=Array(16),z=0,y;for(y=1;y<=15;y++)K[y]=z=z+D[y-1]<<1;for(D=0;D<=G;D++)z=x[D*2+1],z!==0&&(x[D*2]=HW$(K[z]++,z))};
Fsh=function(x){var G;for(G=0;G<286;G++)x.dyn_ltree[G*2]=0;for(G=0;G<30;G++)x.dyn_dtree[G*2]=0;for(G=0;G<19;G++)x.bl_tree[G*2]=0;x.dyn_ltree[512]=1;x.opt_len=x.static_len=0;x.last_lit=x.matches=0};
C0O=function(x){x.bi_valid>8?zu(x,x.bi_buf):x.bi_valid>0&&(x.pending_buf[x.pending++]=x.bi_buf);x.bi_buf=0;x.bi_valid=0};
Iq3=function(x,G,D){C0O(x);zu(x,D);zu(x,~D);yu.arraySet(x.pending_buf,x.window,G,D,x.pending);x.pending+=D};
jI3=function(x,G,D,K){var z=G*2,y=D*2;return x[z]<x[y]||x[z]===x[y]&&K[G]<=K[D]};
OW$=function(x,G,D){for(var K=x.heap[D],z=D<<1;z<=x.heap_len;){z<x.heap_len&&jI3(G,x.heap[z+1],x.heap[z],x.depth)&&z++;if(jI3(G,K,x.heap[z],x.depth))break;x.heap[D]=x.heap[z];D=z;z<<=1}x.heap[D]=K};
SOC=function(x,G,D){var K=0;if(x.last_lit!==0){do{var z=x.pending_buf[x.d_buf+K*2]<<8|x.pending_buf[x.d_buf+K*2+1];var y=x.pending_buf[x.l_buf+K];K++;if(z===0)oW(x,y,G);else{var c=cS[y];oW(x,c+256+1,G);var W=Xgh[c];W!==0&&(y-=ANV[c],aW(x,y,W));z--;c=z<256?WS[z]:WS[256+(z>>>7)];oW(x,c,D);W=U5L[c];W!==0&&(z-=R9$[c],aW(x,z,W))}}while(K<x.last_lit)}oW(x,256,G)};
nOP=function(x,G){var D=G.dyn_tree,K=G.stat_desc.static_tree,z=G.stat_desc.has_stree,y=G.stat_desc.elems,c,W=-1;x.heap_len=0;x.heap_max=573;for(c=0;c<y;c++)D[c*2]!==0?(x.heap[++x.heap_len]=W=c,x.depth[c]=0):D[c*2+1]=0;for(;x.heap_len<2;){var e=x.heap[++x.heap_len]=W<2?++W:0;D[e*2]=1;x.depth[e]=0;x.opt_len--;z&&(x.static_len-=K[e*2+1])}G.max_code=W;for(c=x.heap_len>>1;c>=1;c--)OW$(x,D,c);e=y;do c=x.heap[1],x.heap[1]=x.heap[x.heap_len--],OW$(x,D,1),K=x.heap[1],x.heap[--x.heap_max]=c,x.heap[--x.heap_max]=
K,D[e*2]=D[c*2]+D[K*2],x.depth[e]=(x.depth[c]>=x.depth[K]?x.depth[c]:x.depth[K])+1,D[c*2+1]=D[K*2+1]=e,x.heap[1]=e++,OW$(x,D,1);while(x.heap_len>=2);x.heap[--x.heap_max]=x.heap[1];c=G.dyn_tree;e=G.max_code;K=G.stat_desc.static_tree;z=G.stat_desc.has_stree;y=G.stat_desc.extra_bits;var Q=G.stat_desc.extra_base,p=G.stat_desc.max_length,V,L=0;for(V=0;V<=15;V++)x.bl_count[V]=0;c[x.heap[x.heap_max]*2+1]=0;for(G=x.heap_max+1;G<573;G++){var r=x.heap[G];V=c[c[r*2+1]*2+1]+1;V>p&&(V=p,L++);c[r*2+1]=V;if(!(r>
e)){x.bl_count[V]++;var H=0;r>=Q&&(H=y[r-Q]);var O=c[r*2];x.opt_len+=O*(V+H);z&&(x.static_len+=O*(K[r*2+1]+H))}}if(L!==0){do{for(V=p-1;x.bl_count[V]===0;)V--;x.bl_count[V]--;x.bl_count[V+1]+=2;x.bl_count[p]--;L-=2}while(L>0);for(V=p;V!==0;V--)for(r=x.bl_count[V];r!==0;)K=x.heap[--G],K>e||(c[K*2+1]!==V&&(x.opt_len+=(V-c[K*2+1])*c[K*2],c[K*2+1]=V),r--)}$5n(D,W,x.bl_count)};
iWE=function(x,G,D){var K,z=-1,y=G[1],c=0,W=7,e=4;y===0&&(W=138,e=3);G[(D+1)*2+1]=65535;for(K=0;K<=D;K++){var Q=y;y=G[(K+1)*2+1];++c<W&&Q===y||(c<e?x.bl_tree[Q*2]+=c:Q!==0?(Q!==z&&x.bl_tree[Q*2]++,x.bl_tree[32]++):c<=10?x.bl_tree[34]++:x.bl_tree[36]++,c=0,z=Q,y===0?(W=138,e=3):Q===y?(W=6,e=3):(W=7,e=4))}};
gOV=function(x,G,D){var K,z=-1,y=G[1],c=0,W=7,e=4;y===0&&(W=138,e=3);for(K=0;K<=D;K++){var Q=y;y=G[(K+1)*2+1];if(!(++c<W&&Q===y)){if(c<e){do oW(x,Q,x.bl_tree);while(--c!==0)}else Q!==0?(Q!==z&&(oW(x,Q,x.bl_tree),c--),oW(x,16,x.bl_tree),aW(x,c-3,2)):c<=10?(oW(x,17,x.bl_tree),aW(x,c-3,3)):(oW(x,18,x.bl_tree),aW(x,c-11,7));c=0;z=Q;y===0?(W=138,e=3):Q===y?(W=6,e=3):(W=7,e=4)}}};
usE=function(x){var G=4093624447,D;for(D=0;D<=31;D++,G>>>=1)if(G&1&&x.dyn_ltree[D*2]!==0)return 0;if(x.dyn_ltree[18]!==0||x.dyn_ltree[20]!==0||x.dyn_ltree[26]!==0)return 1;for(D=32;D<256;D++)if(x.dyn_ltree[D*2]!==0)return 1;return 0};
el=function(x,G,D){x.pending_buf[x.d_buf+x.last_lit*2]=G>>>8&255;x.pending_buf[x.d_buf+x.last_lit*2+1]=G&255;x.pending_buf[x.l_buf+x.last_lit]=D&255;x.last_lit++;G===0?x.dyn_ltree[D*2]++:(x.matches++,G--,x.dyn_ltree[(cS[D]+256+1)*2]++,x.dyn_dtree[(G<256?WS[G]:WS[256+(G>>>7)])*2]++);return x.last_lit===x.lit_bufsize-1};
MO=function(x,G){x.msg=Zv[G];return G};
Qu=function(x){for(var G=x.length;--G>=0;)x[G]=0};
pU=function(x){var G=x.state,D=G.pending;D>x.avail_out&&(D=x.avail_out);D!==0&&(yu.arraySet(x.output,G.pending_buf,G.pending_out,D,x.next_out),x.next_out+=D,G.pending_out+=D,x.total_out+=D,x.avail_out-=D,G.pending-=D,G.pending===0&&(G.pending_out=0))};
LU=function(x,G){var D=x.block_start>=0?x.block_start:-1,K=x.strstart-x.block_start,z=0;if(x.level>0){x.strm.data_type===2&&(x.strm.data_type=usE(x));nOP(x,x.l_desc);nOP(x,x.d_desc);iWE(x,x.dyn_ltree,x.l_desc.max_code);iWE(x,x.dyn_dtree,x.d_desc.max_code);nOP(x,x.bl_desc);for(z=18;z>=3&&x.bl_tree[d5D[z]*2+1]===0;z--);x.opt_len+=3*(z+1)+5+5+4;var y=x.opt_len+3+7>>>3;var c=x.static_len+3+7>>>3;c<=y&&(y=c)}else y=c=K+5;if(K+4<=y&&D!==-1)aW(x,G?1:0,3),Iq3(x,D,K);else if(x.strategy===4||c===y)aW(x,2+(G?
1:0),3),SOC(x,Vu,bp);else{aW(x,4+(G?1:0),3);D=x.l_desc.max_code+1;K=x.d_desc.max_code+1;z+=1;aW(x,D-257,5);aW(x,K-1,5);aW(x,z-4,4);for(y=0;y<z;y++)aW(x,x.bl_tree[d5D[y]*2+1],3);gOV(x,x.dyn_ltree,D-1);gOV(x,x.dyn_dtree,K-1);SOC(x,x.dyn_ltree,x.dyn_dtree)}Fsh(x);G&&C0O(x);x.block_start=x.strstart;pU(x.strm)};
BS=function(x,G){x.pending_buf[x.pending++]=G};
r$=function(x,G){x.pending_buf[x.pending++]=G>>>8&255;x.pending_buf[x.pending++]=G&255};
wgP=function(x,G){var D=x.max_chain_length,K=x.strstart,z=x.prev_length,y=x.nice_match,c=x.strstart>x.w_size-262?x.strstart-(x.w_size-262):0,W=x.window,e=x.w_mask,Q=x.prev,p=x.strstart+258,V=W[K+z-1],L=W[K+z];x.prev_length>=x.good_match&&(D>>=2);y>x.lookahead&&(y=x.lookahead);do{var r=G;if(W[r+z]===L&&W[r+z-1]===V&&W[r]===W[K]&&W[++r]===W[K+1]){K+=2;for(r++;W[++K]===W[++r]&&W[++K]===W[++r]&&W[++K]===W[++r]&&W[++K]===W[++r]&&W[++K]===W[++r]&&W[++K]===W[++r]&&W[++K]===W[++r]&&W[++K]===W[++r]&&K<p;);
r=258-(p-K);K=p-258;if(r>z){x.match_start=G;z=r;if(r>=y)break;V=W[K+z-1];L=W[K+z]}}}while((G=Q[G&e])>c&&--D!==0);return z<=x.lookahead?z:x.lookahead};
YW=function(x){var G=x.w_size,D;do{var K=x.window_size-x.lookahead-x.strstart;if(x.strstart>=G+(G-262)){yu.arraySet(x.window,x.window,G,G,0);x.match_start-=G;x.strstart-=G;x.block_start-=G;var z=D=x.hash_size;do{var y=x.head[--z];x.head[z]=y>=G?y-G:0}while(--D);z=D=G;do y=x.prev[--z],x.prev[z]=y>=G?y-G:0;while(--D);K+=G}if(x.strm.avail_in===0)break;z=x.strm;D=x.window;y=x.strstart+x.lookahead;var c=z.avail_in;c>K&&(c=K);c===0?D=0:(z.avail_in-=c,yu.arraySet(D,z.input,z.next_in,c,y),z.state.wrap===
1?z.adler=qOL(z.adler,D,c,y):z.state.wrap===2&&(z.adler=sp(z.adler,D,c,y)),z.next_in+=c,z.total_in+=c,D=c);x.lookahead+=D;if(x.lookahead+x.insert>=3)for(K=x.strstart-x.insert,x.ins_h=x.window[K],x.ins_h=(x.ins_h<<x.hash_shift^x.window[K+1])&x.hash_mask;x.insert&&!(x.ins_h=(x.ins_h<<x.hash_shift^x.window[K+3-1])&x.hash_mask,x.prev[K&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=K,K++,x.insert--,x.lookahead+x.insert<3););}while(x.lookahead<262&&x.strm.avail_in!==0)};
NBh=function(x,G){for(var D;;){if(x.lookahead<262){YW(x);if(x.lookahead<262&&G===0)return 1;if(x.lookahead===0)break}D=0;x.lookahead>=3&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+3-1])&x.hash_mask,D=x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart);D!==0&&x.strstart-D<=x.w_size-262&&(x.match_length=wgP(x,D));if(x.match_length>=3)if(D=el(x,x.strstart-x.match_start,x.match_length-3),x.lookahead-=x.match_length,x.match_length<=x.max_lazy_match&&x.lookahead>=3){x.match_length--;
do x.strstart++,x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+3-1])&x.hash_mask,x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart;while(--x.match_length!==0);x.strstart++}else x.strstart+=x.match_length,x.match_length=0,x.ins_h=x.window[x.strstart],x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+1])&x.hash_mask;else D=el(x,0,x.window[x.strstart]),x.lookahead--,x.strstart++;if(D&&(LU(x,!1),x.strm.avail_out===0))return 1}x.insert=x.strstart<2?x.strstart:2;return G===4?(LU(x,
!0),x.strm.avail_out===0?3:4):x.last_lit&&(LU(x,!1),x.strm.avail_out===0)?1:2};
mn=function(x,G){for(var D,K;;){if(x.lookahead<262){YW(x);if(x.lookahead<262&&G===0)return 1;if(x.lookahead===0)break}D=0;x.lookahead>=3&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+3-1])&x.hash_mask,D=x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart);x.prev_length=x.match_length;x.prev_match=x.match_start;x.match_length=2;D!==0&&x.prev_length<x.max_lazy_match&&x.strstart-D<=x.w_size-262&&(x.match_length=wgP(x,D),x.match_length<=5&&(x.strategy===1||x.match_length===3&&
x.strstart-x.match_start>4096)&&(x.match_length=2));if(x.prev_length>=3&&x.match_length<=x.prev_length){K=x.strstart+x.lookahead-3;D=el(x,x.strstart-1-x.prev_match,x.prev_length-3);x.lookahead-=x.prev_length-1;x.prev_length-=2;do++x.strstart<=K&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+3-1])&x.hash_mask,x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart);while(--x.prev_length!==0);x.match_available=0;x.match_length=2;x.strstart++;if(D&&(LU(x,!1),x.strm.avail_out===0))return 1}else if(x.match_available){if((D=
el(x,0,x.window[x.strstart-1]))&&LU(x,!1),x.strstart++,x.lookahead--,x.strm.avail_out===0)return 1}else x.match_available=1,x.strstart++,x.lookahead--}x.match_available&&(el(x,0,x.window[x.strstart-1]),x.match_available=0);x.insert=x.strstart<2?x.strstart:2;return G===4?(LU(x,!0),x.strm.avail_out===0?3:4):x.last_lit&&(LU(x,!1),x.strm.avail_out===0)?1:2};
vOC=function(x,G){for(var D,K,z,y=x.window;;){if(x.lookahead<=258){YW(x);if(x.lookahead<=258&&G===0)return 1;if(x.lookahead===0)break}x.match_length=0;if(x.lookahead>=3&&x.strstart>0&&(K=x.strstart-1,D=y[K],D===y[++K]&&D===y[++K]&&D===y[++K])){for(z=x.strstart+258;D===y[++K]&&D===y[++K]&&D===y[++K]&&D===y[++K]&&D===y[++K]&&D===y[++K]&&D===y[++K]&&D===y[++K]&&K<z;);x.match_length=258-(z-K);x.match_length>x.lookahead&&(x.match_length=x.lookahead)}x.match_length>=3?(D=el(x,1,x.match_length-3),x.lookahead-=
x.match_length,x.strstart+=x.match_length,x.match_length=0):(D=el(x,0,x.window[x.strstart]),x.lookahead--,x.strstart++);if(D&&(LU(x,!1),x.strm.avail_out===0))return 1}x.insert=0;return G===4?(LU(x,!0),x.strm.avail_out===0?3:4):x.last_lit&&(LU(x,!1),x.strm.avail_out===0)?1:2};
JNO=function(x,G){for(var D;;){if(x.lookahead===0&&(YW(x),x.lookahead===0)){if(G===0)return 1;break}x.match_length=0;D=el(x,0,x.window[x.strstart]);x.lookahead--;x.strstart++;if(D&&(LU(x,!1),x.strm.avail_out===0))return 1}x.insert=0;return G===4?(LU(x,!0),x.strm.avail_out===0?3:4):x.last_lit&&(LU(x,!1),x.strm.avail_out===0)?1:2};
HS=function(x,G,D,K,z){this.good_length=x;this.max_lazy=G;this.nice_length=D;this.max_chain=K;this.func=z};
fqD=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 yu.Buf16(1146);this.dyn_dtree=new yu.Buf16(122);this.bl_tree=new yu.Buf16(78);Qu(this.dyn_ltree);Qu(this.dyn_dtree);Qu(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new yu.Buf16(16);this.heap=new yu.Buf16(573);Qu(this.heap);this.heap_max=this.heap_len=0;this.depth=new yu.Buf16(573);Qu(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};
t7E=function(x,G){if(!x||!x.state||G>5||G<0)return x?MO(x,-2):-2;var D=x.state;if(!x.output||!x.input&&x.avail_in!==0||D.status===666&&G!==4)return MO(x,x.avail_out===0?-5:-2);D.strm=x;var K=D.last_flush;D.last_flush=G;if(D.status===42)if(D.wrap===2)x.adler=0,BS(D,31),BS(D,139),BS(D,8),D.gzhead?(BS(D,(D.gzhead.text?1:0)+(D.gzhead.hcrc?2:0)+(D.gzhead.extra?4:0)+(D.gzhead.name?8:0)+(D.gzhead.comment?16:0)),BS(D,D.gzhead.time&255),BS(D,D.gzhead.time>>8&255),BS(D,D.gzhead.time>>16&255),BS(D,D.gzhead.time>>
24&255),BS(D,D.level===9?2:D.strategy>=2||D.level<2?4:0),BS(D,D.gzhead.os&255),D.gzhead.extra&&D.gzhead.extra.length&&(BS(D,D.gzhead.extra.length&255),BS(D,D.gzhead.extra.length>>8&255)),D.gzhead.hcrc&&(x.adler=sp(x.adler,D.pending_buf,D.pending,0)),D.gzindex=0,D.status=69):(BS(D,0),BS(D,0),BS(D,0),BS(D,0),BS(D,0),BS(D,D.level===9?2:D.strategy>=2||D.level<2?4:0),BS(D,3),D.status=113);else{var z=8+(D.w_bits-8<<4)<<8;z|=(D.strategy>=2||D.level<2?0:D.level<6?1:D.level===6?2:3)<<6;D.strstart!==0&&(z|=
32);D.status=113;r$(D,z+(31-z%31));D.strstart!==0&&(r$(D,x.adler>>>16),r$(D,x.adler&65535));x.adler=1}if(D.status===69)if(D.gzhead.extra){for(z=D.pending;D.gzindex<(D.gzhead.extra.length&65535)&&(D.pending!==D.pending_buf_size||(D.gzhead.hcrc&&D.pending>z&&(x.adler=sp(x.adler,D.pending_buf,D.pending-z,z)),pU(x),z=D.pending,D.pending!==D.pending_buf_size));)BS(D,D.gzhead.extra[D.gzindex]&255),D.gzindex++;D.gzhead.hcrc&&D.pending>z&&(x.adler=sp(x.adler,D.pending_buf,D.pending-z,z));D.gzindex===D.gzhead.extra.length&&
(D.gzindex=0,D.status=73)}else D.status=73;if(D.status===73)if(D.gzhead.name){z=D.pending;do{if(D.pending===D.pending_buf_size&&(D.gzhead.hcrc&&D.pending>z&&(x.adler=sp(x.adler,D.pending_buf,D.pending-z,z)),pU(x),z=D.pending,D.pending===D.pending_buf_size)){var y=1;break}y=D.gzindex<D.gzhead.name.length?D.gzhead.name.charCodeAt(D.gzindex++)&255:0;BS(D,y)}while(y!==0);D.gzhead.hcrc&&D.pending>z&&(x.adler=sp(x.adler,D.pending_buf,D.pending-z,z));y===0&&(D.gzindex=0,D.status=91)}else D.status=91;if(D.status===
91)if(D.gzhead.comment){z=D.pending;do{if(D.pending===D.pending_buf_size&&(D.gzhead.hcrc&&D.pending>z&&(x.adler=sp(x.adler,D.pending_buf,D.pending-z,z)),pU(x),z=D.pending,D.pending===D.pending_buf_size)){y=1;break}y=D.gzindex<D.gzhead.comment.length?D.gzhead.comment.charCodeAt(D.gzindex++)&255:0;BS(D,y)}while(y!==0);D.gzhead.hcrc&&D.pending>z&&(x.adler=sp(x.adler,D.pending_buf,D.pending-z,z));y===0&&(D.status=103)}else D.status=103;D.status===103&&(D.gzhead.hcrc?(D.pending+2>D.pending_buf_size&&pU(x),
D.pending+2<=D.pending_buf_size&&(BS(D,x.adler&255),BS(D,x.adler>>8&255),x.adler=0,D.status=113)):D.status=113);if(D.pending!==0){if(pU(x),x.avail_out===0)return D.last_flush=-1,0}else if(x.avail_in===0&&(G<<1)-(G>4?9:0)<=(K<<1)-(K>4?9:0)&&G!==4)return MO(x,-5);if(D.status===666&&x.avail_in!==0)return MO(x,-5);if(x.avail_in!==0||D.lookahead!==0||G!==0&&D.status!==666){K=D.strategy===2?JNO(D,G):D.strategy===3?vOC(D,G):$W[D.level].func(D,G);if(K===3||K===4)D.status=666;if(K===1||K===3)return x.avail_out===
0&&(D.last_flush=-1),0;if(K===2&&(G===1?(aW(D,2,3),oW(D,256,Vu),D.bi_valid===16?(zu(D,D.bi_buf),D.bi_buf=0,D.bi_valid=0):D.bi_valid>=8&&(D.pending_buf[D.pending++]=D.bi_buf&255,D.bi_buf>>=8,D.bi_valid-=8)):G!==5&&(aW(D,0,3),Iq3(D,0,0),G===3&&(Qu(D.head),D.lookahead===0&&(D.strstart=0,D.block_start=0,D.insert=0))),pU(x),x.avail_out===0))return D.last_flush=-1,0}if(G!==4)return 0;if(D.wrap<=0)return 1;D.wrap===2?(BS(D,x.adler&255),BS(D,x.adler>>8&255),BS(D,x.adler>>16&255),BS(D,x.adler>>24&255),BS(D,
x.total_in&255),BS(D,x.total_in>>8&255),BS(D,x.total_in>>16&255),BS(D,x.total_in>>24&255)):(r$(D,x.adler>>>16),r$(D,x.adler&65535));pU(x);D.wrap>0&&(D.wrap=-D.wrap);return D.pending!==0?0:1};
kld=function(x){if(!(this instanceof kld))return new kld(x);x=this.options=yu.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},x||{});x.raw&&x.windowBits>0?x.windowBits=-x.windowBits:x.gzip&&x.windowBits>0&&x.windowBits<16&&(x.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new P0$;this.strm.avail_out=0;var G=this.strm;var D=x.level,K=x.method,z=x.windowBits,y=x.memLevel,c=x.strategy;if(G){var W=1;D===-1&&(D=6);z<0?(W=0,z=-z):z>15&&
(W=2,z-=16);if(y<1||y>9||K!==8||z<8||z>15||D<0||D>9||c<0||c>4)G=MO(G,-2);else{z===8&&(z=9);var e=new fqD;G.state=e;e.strm=G;e.wrap=W;e.gzhead=null;e.w_bits=z;e.w_size=1<<e.w_bits;e.w_mask=e.w_size-1;e.hash_bits=y+7;e.hash_size=1<<e.hash_bits;e.hash_mask=e.hash_size-1;e.hash_shift=~~((e.hash_bits+3-1)/3);e.window=new yu.Buf8(e.w_size*2);e.head=new yu.Buf16(e.hash_size);e.prev=new yu.Buf16(e.w_size);e.lit_bufsize=1<<y+6;e.pending_buf_size=e.lit_bufsize*4;e.pending_buf=new yu.Buf8(e.pending_buf_size);
e.d_buf=e.lit_bufsize;e.l_buf=3*e.lit_bufsize;e.level=D;e.strategy=c;e.method=K;if(G&&G.state){G.total_in=G.total_out=0;G.data_type=2;D=G.state;D.pending=0;D.pending_out=0;D.wrap<0&&(D.wrap=-D.wrap);D.status=D.wrap?42:113;G.adler=D.wrap===2?0:1;D.last_flush=0;if(!EOh){K=Array(16);for(y=c=0;y<28;y++)for(ANV[y]=c,z=0;z<1<<Xgh[y];z++)cS[c++]=y;cS[c-1]=y;for(y=c=0;y<16;y++)for(R9$[y]=c,z=0;z<1<<U5L[y];z++)WS[c++]=y;for(c>>=7;y<30;y++)for(R9$[y]=c<<7,z=0;z<1<<U5L[y]-7;z++)WS[256+c++]=y;for(z=0;z<=15;z++)K[z]=
0;for(z=0;z<=143;)Vu[z*2+1]=8,z++,K[8]++;for(;z<=255;)Vu[z*2+1]=9,z++,K[9]++;for(;z<=279;)Vu[z*2+1]=7,z++,K[7]++;for(;z<=287;)Vu[z*2+1]=8,z++,K[8]++;$5n(Vu,287,K);for(z=0;z<30;z++)bp[z*2+1]=5,bp[z*2]=HW$(z,5);h9C=new YOO(Vu,Xgh,257,286,15);xWL=new YOO(bp,U5L,0,30,15);Gm3=new YOO([],DWd,0,19,7);EOh=!0}D.l_desc=new m53(D.dyn_ltree,h9C);D.d_desc=new m53(D.dyn_dtree,xWL);D.bl_desc=new m53(D.bl_tree,Gm3);D.bi_buf=0;D.bi_valid=0;Fsh(D);D=0}else D=MO(G,-2);D===0&&(G=G.state,G.window_size=2*G.w_size,Qu(G.head),
G.max_lazy_match=$W[G.level].max_lazy,G.good_match=$W[G.level].good_length,G.nice_match=$W[G.level].nice_length,G.max_chain_length=$W[G.level].max_chain,G.strstart=0,G.block_start=0,G.lookahead=0,G.insert=0,G.match_length=G.prev_length=2,G.match_available=0,G.ins_h=0);G=D}}else G=-2;if(G!==0)throw Error(Zv[G]);x.header&&(G=this.strm)&&G.state&&G.state.wrap===2&&(G.state.gzhead=x.header);if(x.dictionary){var Q;typeof x.dictionary==="string"?Q=K8D(x.dictionary):zDL.call(x.dictionary)==="[object ArrayBuffer]"?
Q=new Uint8Array(x.dictionary):Q=x.dictionary;x=this.strm;y=Q;c=y.length;if(x&&x.state)if(Q=x.state,G=Q.wrap,G===2||G===1&&Q.status!==42||Q.lookahead)G=-2;else{G===1&&(x.adler=qOL(x.adler,y,c,0));Q.wrap=0;c>=Q.w_size&&(G===0&&(Qu(Q.head),Q.strstart=0,Q.block_start=0,Q.insert=0),D=new yu.Buf8(Q.w_size),yu.arraySet(D,y,c-Q.w_size,Q.w_size,0),y=D,c=Q.w_size);D=x.avail_in;K=x.next_in;z=x.input;x.avail_in=c;x.next_in=0;x.input=y;for(YW(Q);Q.lookahead>=3;){y=Q.strstart;c=Q.lookahead-2;do Q.ins_h=(Q.ins_h<<
Q.hash_shift^Q.window[y+3-1])&Q.hash_mask,Q.prev[y&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=y,y++;while(--c);Q.strstart=y;Q.lookahead=2;YW(Q)}Q.strstart+=Q.lookahead;Q.block_start=Q.strstart;Q.insert=Q.lookahead;Q.lookahead=0;Q.match_length=Q.prev_length=2;Q.match_available=0;x.next_in=K;x.input=z;x.avail_in=D;Q.wrap=G;G=0}else G=-2;if(G!==0)throw Error(Zv[G]);this._dict_set=!0}};
a2C=function(x,G){G=G||{};G.gzip=!0;G=new kld(G);G.push(x,!0);if(G.err)throw G.msg||Zv[G.err];return G.result};
yrh=function(x,G){var D=o_h();D&&D.publish.call(D,x.toString(),x,G)};
eDd=function(x,G,D){var K=o_h();if(!K)return 0;var z=K.subscribe(x.toString(),function(y,c){var W=_.nT("ytPubsub2Pubsub2SkipSubKey");W&&W==z||(W=function(){if(l23[z])try{if(c&&x instanceof crh&&x!=y)try{var e=x.dataClass,Q=c;if(!Q.args||!Q.version)throw Error("Vc");try{if(!e.version_){var p=new e;e.version_=p.version}var V=e.version_}catch(L){}if(!V||Q.version!=V)throw Error("Wc");try{c=Reflect.construct(e,_.kC(Q.args))}catch(L){throw L.message="yt.pubsub2.Data.deserialize(): "+L.message,L;}}catch(L){throw L.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+x.toString()+": "+L.message,L;}G.call(D||window,c)}catch(L){_.RE(L)}},TKD[x.toString()]?_.nT("yt.scheduler.instance")?_.Fj.addLowPriorityJob(W):_.oA(W,0):W())});
l23[z]=!0;W8n[x.toString()]||(W8n[x.toString()]=[]);W8n[x.toString()].push(z);return z};
pkh=function(){var x=Z3Q,G=eDd(M5L,function(D){x.apply(void 0,arguments);Q_f(G)});
return G};
Q_f=function(x){var G=o_h();G&&(typeof x==="number"&&(x=[x]),_.uM(x,function(D){G.unsubscribeByKey(D);delete l23[D]}))};
o_h=function(){return _.nT("ytPubsub2Pubsub2Instance")};
V5h=function(x,G,D){D=D===void 0?{sampleRate:.1}:D;Math.random()<Math.min(.02,D.sampleRate/100)&&yrh("meta_logging_csi_event",{timerName:x,timelineData:G})};
_.b3P=function(x){return x?(x=x.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.A_(x):null:null};
_.CU=function(x){return x?(x=x.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.oF(x):null:null};
BKV=function(){L8C||(L8C=_.CU(_.Am("WORKER_SERIALIZATION_URL")));return L8C||void 0};
_.s_C=function(){var x=BKV();rrL||x===void 0||(rrL=new Worker(_.lH(x),void 0));return rrL};
_.YAf=function(){return typeof Worker==="function"&&BKV()?!0:!1};
_.F8f=function(){if(_.YAf()&&!mW3){var x=function(D){D=D.data;if(D.op==="gzippedGelBatch"){var K=H3V.get(D.key);K&&($Wf(D.gzippedBatch,K.latencyPayload,K.url,K.options,K.sendFn),H3V.delete(D.key))}},G=_.s_C();
G&&(G.addEventListener("message",x),G.onerror=function(){H3V.clear()},mW3=!0)}};
UWh=function(x,G,D,K,z){z=z===void 0?!1:z;var y={startTime:(0,_.kK)(),ticks:{},infos:{}};if(IW)try{var c=C7P(G);if(c!=null&&(c>I2L||c<j_f))K(x,D);else{if(_.B("gzip_gel_with_worker")&&(_.B("initial_gzip_use_main_thread")&&!O3P||!_.B("initial_gzip_use_main_thread"))){mW3||_.F8f();var W=_.s_C();if(W&&!z){H3V.set(Xkd,{latencyPayload:y,url:x,options:D,sendFn:K});W.postMessage({op:"gelBatchToGzip",serializedBatch:G,key:Xkd});Xkd++;return}}var e=a2C(Ard(G));$Wf(e,y,x,D,K)}}catch(Q){_.iM(Q),K(x,D)}else K(x,
D)};
$Wf=function(x,G,D,K,z){O3P=!1;var y=(0,_.kK)();G.ticks.gelc=y;jl++;_.B("disable_compression_due_to_performance_degredation")&&y-G.startTime>=RD3&&(SAf++,_.B("abandon_compression_after_N_slow_zips")?jl===_.Gz("compression_disable_point")&&SAf>n_3&&(IW=!1):IW=!1);i3L(G);K.headers||(K.headers={});K.headers["Content-Encoding"]="gzip";K.postBody=x;K.postParams=void 0;z(D,K)};
g_h=function(x){var G=G===void 0?!1:G;var D=D===void 0?!1:D;var K=(0,_.kK)(),z={startTime:K,ticks:{},infos:{}},y=G?_.nT("yt.logging.gzipForFetch",!1):!0;if(IW&&y){if(!x.body)return x;try{var c=D?x.body:typeof x.body==="string"?x.body:JSON.stringify(x.body);y=c;if(!D&&typeof c==="string"){var W=C7P(c);if(W!=null&&(W>I2L||W<j_f))return x;D=G?{level:1}:void 0;y=a2C(Ard(c),D);var e=(0,_.kK)();z.ticks.gelc=e;if(G){jl++;if((_.B("disable_compression_due_to_performance_degredation")||_.B("disable_compression_due_to_performance_degradation_lr"))&&
e-K>=RD3)if(SAf++,_.B("abandon_compression_after_N_slow_zips")||_.B("abandon_compression_after_N_slow_zips_lr")){G=SAf/jl;var Q=n_3/_.Gz("compression_disable_point");jl>0&&jl%_.Gz("compression_disable_point")===0&&G>=Q&&(IW=!1)}else IW=!1;i3L(z)}}x.headers=Object.assign({},{"Content-Encoding":"gzip"},x.headers||{});x.body=y;return x}catch(p){return _.iM(p),x}}else return x};
C7P=function(x){try{return(new Blob(x.split(""))).size}catch(G){return _.iM(G),null}};
i3L=function(x){_.B("gel_compression_csi_killswitch")||!_.B("log_gel_compression_latency")&&!_.B("log_gel_compression_latency_lr")||V5h("gel_compression",x,{sampleRate:.1})};
uXd=function(){this.blockSize=-1};
Op=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var x=1;x<this.blockSize;++x)this.pad_[x]=0;this.total_=this.inbuf_=0;this.reset()};
wk$=function(x){x=Object.assign({},x);delete x.Authorization;var G=dWP();if(G){var D=new Op;D.update(_.Am("INNERTUBE_API_KEY"));D.update(G);x.hash=_.PY(D.digest(),3)}return x};
Au=function(){qA$||(qA$=new _.Xj("yt.innertube"));return qA$};
NKO=function(x,G,D,K){if(K)return null;K=Au().get("nextId",!0)||1;var z=Au().get("requests",!0)||{};z[K]={method:x,request:G,authState:wk$(D),requestTime:Math.round((0,_.kK)())};Au().set("nextId",K+1,86400,!0);Au().set("requests",z,86400,!0);return K};
v_f=function(x){var G=Au().get("requests",!0)||{};delete G[x];Au().set("requests",G,86400,!0)};
f23=function(x){var G=Au().get("requests",!0);if(G){for(var D in G){var K=G[D];if(!(Math.round((0,_.kK)())-K.requestTime<6E4)){var z=K.authState,y=wk$(_.rNO(!1));_.YS.equals(z,y)&&(z=K.request,"requestTimeMs"in z&&(z.requestTimeMs=Math.round((0,_.kK)())),JrD(x,K.method,z,{}));delete G[D]}}Au().set("requests",G,86400,!0)}};
t5L=function(x){var G;return(x=x==null?void 0:(G=x.error)==null?void 0:G.code)&&x>=400&&x<=599?!1:!0};
km3=function(x){var G;x=x==null?void 0:(G=x.error)==null?void 0:G.code;return!(x!==400&&x!==415)};
E_f=function(){if(P7D)return P7D();var x={};P7D=tv("LogsDatabaseV2",{objectStores:(x.LogsRequestsStore={addedAtVersion:2},x),shared:!1,upgrade:function(G,D,K){D(2)&&Up(G,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});D(3);D(5)&&(K=K.objectStore("LogsRequestsStore"),K.JSC$8604_wrapped.indexNames.contains("newRequest")&&K.JSC$8604_wrapped.deleteIndex("newRequest"),Sl(K,"newRequestV2",["status","interface","timestamp"]));D(7)&&G.JSC$8589_wrapped.objectStoreNames.contains("sapisid")&&G.JSC$8589_wrapped.deleteObjectStore("sapisid");
D(9)&&G.JSC$8589_wrapped.objectStoreNames.contains("SWHealthLog")&&G.JSC$8589_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return P7D()};
nU=function(x){return _.uI(E_f(),x)};
xBh=function(x,G){var D,K,z,y;return _.T(function(c){if(c.nextAddress==1)return D={startTime:(0,_.kK)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.Z(c,nU(G),2);if(c.nextAddress!=3)return K=c.yieldResult,z=Object.assign({},x,{options:JSON.parse(JSON.stringify(x.options)),interface:_.Am("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.Z(c,K.put("LogsRequestsStore",z),3);y=c.yieldResult;D.ticks.tc=(0,_.kK)();hDf(D);return c.return(y)})};
GUf=function(x,G){var D,K,z,y,c,W,e,Q;return _.T(function(p){if(p.nextAddress==1)return D={startTime:(0,_.kK)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.Z(p,nU(G),2);if(p.nextAddress!=3)return K=p.yieldResult,z=_.Am("INNERTUBE_CONTEXT_CLIENT_NAME",0),y=[x,z,0],c=[x,z,(0,_.kK)()],W=IDBKeyRange.bound(y,c),e="prev",_.B("use_fifo_for_networkless")&&(e="next"),Q=void 0,_.Z(p,_.dx(K,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(V){return _.P0(V.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:W,direction:e},function(L){L.getValue()&&(Q=L.getValue(),x==="NEW"&&(Q.status="QUEUED",L.update(Q)))})}),3);
D.ticks.tc=(0,_.kK)();hDf(D);return p.return(Q)})};
DBL=function(x,G){var D;return _.T(function(K){if(K.nextAddress==1)return _.Z(K,nU(G),2);D=K.yieldResult;return K.return(_.dx(D,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(z){var y=z.objectStore("LogsRequestsStore");return y.get(x).then(function(c){if(c)return c.status="QUEUED",y.put(c).then(function(){return c})})}))})};
KgO=function(x,G,D,K){D=D===void 0?!0:D;var z;return _.T(function(y){if(y.nextAddress==1)return _.Z(y,nU(G),2);z=y.yieldResult;return y.return(_.dx(z,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(c){var W=c.objectStore("LogsRequestsStore");return W.get(x).then(function(e){return e?(e.status="NEW",D&&(e.sendCount+=1),K!==void 0&&(e.options.compress=K),W.put(e).then(function(){return e})):Uj.resolve(void 0)})}))})};
zSC=function(x,G){var D;return _.T(function(K){if(K.nextAddress==1)return _.Z(K,nU(G),2);D=K.yieldResult;return K.return(D.delete("LogsRequestsStore",x))})};
aDf=function(x){var G,D;return _.T(function(K){if(K.nextAddress==1)return _.Z(K,nU(x),2);G=K.yieldResult;D=(0,_.kK)()-2592E6;return _.Z(K,_.dx(G,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(z){return qU(z.objectStore("LogsRequestsStore"),{},function(y){if(y.getValue().timestamp<=D)return y.delete().then(function(){return y.continue()})})}),0)})};
oA$=function(){_.T(function(x){return _.Z(x,tq$("LogsDatabaseV2"),0)})};
hDf=function(x){_.B("nwl_csi_killswitch")||V5h("networkless_performance",x,{sampleRate:1})};
_.lDO=function(x){return _.uI(ySh(),x)};
cSC=function(x){var G,D;_.T(function(K){if(K.nextAddress==1)return _.Z(K,_.lDO(x),2);G=K.yieldResult;D=(0,_.kK)()-2592E6;return _.Z(K,_.dx(G,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(z){return qU(z.objectStore("SWHealthLog"),{},function(y){if(y.getValue().timestamp<=D)return y.delete().then(function(){return y.continue()})})}),0)})};
TAf=function(x){var G;return _.T(function(D){if(D.nextAddress==1)return _.Z(D,_.lDO(x),2);G=D.yieldResult;return _.Z(D,G.clear("SWHealthLog"),0)})};
_.ip=function(x,G,D,K,z,y,c){z=z===void 0?"":z;y=y===void 0?!1:y;c=c===void 0?!1:c;if(x)if(D&&!j_("cobalt"))_.iM(new _.LL("Legacy referrer-scrubbed ping detected")),x&&WgC(x,void 0,{scrubReferrer:!0});else if(z)SvL(x,G,"POST",z,K);else if(_.Am("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||K||c)SvL(x,G,"GET","",K,void 0,y,c);else{b:{try{c:{var W=new eS3({url:x});if(W.urlParamValues_.dsh==="1")var e=null;else{var Q=W.urlParamValues_.ae;if(Q==="1"){var p=W.urlParamValues_.adurl;if(p)try{e={version:3,directUrl:decodeURIComponent(p),
asyncUrl:$yE(W.JSC$7487_url_,"act=1","ri=1",ZtL(W))};break c}catch(H){}}e=Q==="2"?{version:4,directUrl:$yE(W.JSC$7487_url_,"dct=1","suid="+W.suid_,""),asyncUrl:$yE(W.JSC$7487_url_,"act=1","ri=1","suid="+W.suid_)}:null}}if(e){var V=_.c0(x);var L=!(!V||!V.endsWith("/aclk")||_.uP(x,"ri")!=="1");break b}}catch(H){}L=!1}if(L){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(x,"")){var r=!0;break b}}catch(H){}r=!1}r?(G&&G(),D=!0):D=!1}else D=!1;D||WgC(x,G)}};
WgC=function(x,G,D){D=D===void 0?{}:D;var K=new Image,z=""+MTO++;Qnh[z]=K;K.onload=K.onerror=function(){G&&Qnh[z]&&G();delete Qnh[z]};
D.scrubReferrer&&(K.referrerPolicy="no-referrer");K.src=x};
g$=function(x,G){piL(x,G==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
VTV=function(x){var G;return((G=document.featurePolicy)==null?0:G.allowedFeatures().includes("attribution-reporting"))?x+"&nis=6":x+"&nis=5"};
btE=function(x){if(!x)return!1;try{var G;if(((G=_.dT(x))==null?void 0:G.asm)==="4")return!0}catch(D){_.RE(D)}return!1};
piL=function(x,G){G?(x=VTV(x),_.ip(x,void 0,void 0,void 0,"",!0,!0)):_.ip(x)};
BAf=function(){LgD||(LgD=new _.Xj("yt.offline"));return LgD};
rSh=function(x){if(_.B("offline_error_handling")){var G=BAf().get("errors",!0)||{};G[x.message]={name:x.name,stack:x.stack};x.level&&(G[x.message].level=x.level);BAf().set("errors",G,2592E3,!0)}};
Y4V=function(x,G,D,K){K=K===void 0?!1:K;G=_.B("web_fp_via_jspb")?Object.assign({},G):G;_.B("use_cfr_monitor")&&snV(x,G);if(_.B("use_request_time_ms_header"))G.headers&&tm(x)&&(G.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.kK)())));else{var z;if((z=G.postParams)==null?0:z.requestTimeMs)G.postParams.requestTimeMs=Math.round((0,_.kK)())}D&&Object.keys(G).length===0?_.ip(x):G.compress?G.postBody?(typeof G.postBody!=="string"&&(G.postBody=JSON.stringify(G.postBody)),UWh(x,G.postBody,
G,_.Tz,K)):UWh(x,JSON.stringify(G.postParams),G,uKQ,K):_.Tz(x,G)};
mBd=function(x,G){_.B("use_event_time_ms_header")&&tm(x)&&(G.headers||(G.headers={}),G.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.kK)())));return G};
_.$BQ=function(){Htf||(Htf=new _.w$({logOfflineErrors:!0,enablePolling:!0}));return Htf};
snV=function(x,G){var D=G.onError?G.onError:function(){};
G.onError=function(z,y){qO().requestComplete(x,!1);D(z,y)};
var K=G.onSuccess?G.onSuccess:function(){};
G.onSuccess=function(z,y){qO().requestComplete(x,!0);K(z,y)}};
_.Fgd=function(){return _.Jm(document.location.toString())!=="www.youtube-nocookie.com"};
_.jnn=function(){return _.nT("ytNetworklessLoggingInitializationOptions")?_.CoQ.isNwlInitialized:_.IDh};
OtL=function(x,G){if(_.B("polymer_on_demand_shady_dom")){var D;var K=(D=x.__shady_native_firstElementChild)!=null?D:x.firstElementChild}else K=x.firstElementChild;for(;K;){if(x=G(K)?K:OtL(K,G))return x;K=K.nextElementSibling}return null};
ASO=function(){var x=document;if("visibilityState"in x)return x.visibilityState;var G=XiQ+"VisibilityState";if(G in x)return x[G]};
_.UBd=function(x,G){var D;NO(x,function(K){D=G[K];return!!D});
return D};
_.Ju=function(x){var G=RSV(x);G?G.focus(void 0):_.vS(x)};
RSV=function(x){return(x=OtL(x,function(G){return _.fU(G)?S4V(G)&&!!G.offsetParent:!1}))?x:null};
_.vS=function(x,G){x.hasAttribute("tabindex")||x.setAttribute("tabindex","-1");x.focus(G)};
nAO=function(x,G,D,K){K=K===void 0?{}:K;x.addEventListener&&(G!="mouseenter"||"onmouseenter"in document?G!="mouseleave"||"onmouseenter"in document?G=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(G="MozMousePixelScroll"):G="mouseout":G="mouseover");return _.YS.findKey(tu,function(z){var y=typeof z[4]==="boolean"&&z[4]==!!K,c=_.G7(z[4])&&_.G7(K)&&_.YS.equals(z[4],K);return!!z.length&&z[0]==x&&z[1]==G&&z[2]==D&&(y||c)})};
_.PS=function(x,G,D,K){K=K===void 0?{}:K;if(!x||!x.addEventListener&&!x.attachEvent)return"";var z=nAO(x,G,D,K);if(z)return z;z=++itO.count+"";var y=!(G!="mouseenter"&&G!="mouseleave"||!x.addEventListener||"onmouseenter"in document);var c=y?function(W){W=new kW(W);if(!_.Xn(W.relatedTarget,function(e){return e==x},!0))return W.currentTarget=x,W.type=G,D.call(x,W)}:function(W){W=new kW(W);
W.currentTarget=x;return D.call(x,W)};
c=_.SR(c);x.addEventListener?(G=="mouseenter"&&y?G="mouseover":G=="mouseleave"&&y?G="mouseout":G=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(G="MozMousePixelScroll"),gAL()||typeof K==="boolean"?x.addEventListener(G,c,K):x.addEventListener(G,c,!!K.capture)):x.attachEvent("on"+G,c);tu[z]=[x,G,D,c,K];return z};
_.dBh=function(x,G,D){var K=K===void 0?{}:K;var z=_.PS(x,G,function(){_.u5$(z);D.apply(x,arguments)},K)};
_.u5$=function(x){x&&(typeof x=="string"&&(x=[x]),_.uM(x,function(G){if(G in tu){var D=tu[G],K=D[0],z=D[1],y=D[3];D=D[4];K.removeEventListener?gAL()||typeof D==="boolean"?K.removeEventListener(z,y,D):K.removeEventListener(z,y,!!D.capture):K.detachEvent&&K.detachEvent("on"+z,y);delete tu[G]}}))};
Ep=function(x){this.callback_=x;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(x=0;x<4;x++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.PS(window,"mousemove",(0,_.mW)(this.onMouseMove_,this));this.timerId_=_.yR((0,_.mW)(this.checkPosition_,this),25)};
q4n=function(){var x={};var G=x.preferMobileEvents===void 0?!1:x.preferMobileEvents;x=x.enableScrollEventListener===void 0?!0:x.enableScrollEventListener;if(_.nT("_lact",window)==null){var D=parseInt(_.Am("LACT"),10);D=isFinite(D)?Date.now()-Math.max(D,0):-1;_.Jv("_lact",D,window);_.Jv("_fact",D,window);D==-1&&_.hu();_.PS(document,"keydown",_.hu);_.PS(document,"keyup",_.hu);_.PS(document,"mousedown",_.hu);_.PS(document,"mouseup",_.hu);G?_.PS(window,"touchmove",function(){wiC("touchmove",200)},{passive:!0}):
(_.PS(window,"resize",function(){wiC("resize",200)}),x&&_.PS(window,"scroll",function(){wiC("scroll",200)}));
new Ep(function(){wiC("mouse",100)});
_.PS(document,"touchstart",_.hu,{passive:!0});_.PS(document,"touchend",_.hu,{passive:!0})}};
wiC=function(x,G){NAC[x]||(NAC[x]=!0,_.Fj.addLowPriorityJob(function(){_.hu();NAC[x]=!1},G))};
_.hu=function(){_.nT("_lact",window)==null&&q4n();var x=Date.now();_.Jv("_lact",x,window);_.nT("_fact",window)==-1&&_.Jv("_fact",x,window);(x=_.nT("ytglobal.ytUtilActivityCallback_"))&&x()};
_.xq=function(){var x=_.nT("_lact",window);return x==null?-1:Math.max(Date.now()-x,0)};
_.z1=function(x,G,D){var K=_.G1();if(K&&G){var z=K.subscribe(x,function(){var y=arguments,c=function(){Dg[z]&&G.apply&&typeof G.apply=="function"&&G.apply(D||window,y)};
try{_.vA3[x]?c():_.oA(c,0)}catch(W){_.RE(W)}},D);
Dg[z]=!0;KE[x]||(KE[x]=[]);KE[x].push(z);return z}return 0};
_.JSn=function(x){var G=_.G1();G&&(typeof x==="number"?x=[x]:typeof x==="string"&&(x=[parseInt(x,10)]),_.uM(x,function(D){G.unsubscribeByKey(D);delete Dg[D]}))};
_.fDD=function(x,G){var D=_.G1();D&&D.publish.apply(D,arguments)};
_.kUQ=function(x){var G=_.G1();if(G)if(G.clear(x),x)tTD(x);else for(var D in KE)tTD(D)};
_.G1=function(){return _.Df.ytPubsubPubsubInstance};
tTD=function(x){KE[x]&&(x=KE[x],_.uM(x,function(G){Dg[G]&&delete Dg[G]}),x.length=0)};
Poh=function(){var x,G;return"h5vcc"in a4&&((x=a4.h5vcc.traceEvent)==null?0:x.traceBegin)&&((G=a4.h5vcc.traceEvent)==null?0:G.traceEnd)?1:"performance"in a4&&a4.performance.mark&&a4.performance.measure?2:0};
EAV=function(x){var G=Poh();switch(G){case 1:a4.h5vcc.traceEvent.traceBegin("YTLR",x);break;case 2:a4.performance.mark(x+"-start");break;case 0:break;default:_.oT(G,"unknown trace type")}};
hSf=function(x){var G=Poh();switch(G){case 1:a4.h5vcc.traceEvent.traceEnd("YTLR",x);break;case 2:G=x+"-start";var D=x+"-end";a4.performance.mark(D);a4.performance.measure(x,G,D);break;case 0:break;default:_.oT(G,"unknown trace type")}};
xvf=function(x){var G,D;(D=(G=window).onerror)==null||D.call(G,x.message,"",0,0,x)};
Gaf=function(x){if(_.B("web_lifecycle_error_handling_killswitch"))return x();try{return x()}catch(G){xvf(G)}};
DvQ=function(x){return[x.auth===void 0?"undefined":x.auth,x.isJspb===void 0?"undefined":x.isJspb,x.cttAuthInfo===void 0?"undefined":x.cttAuthInfo,x.tier===void 0?"undefined":x.tier].join("/")};
_.Y=function(x,G){if(x)return x[G.name]};
yh=function(){var x=_.nT("yt.logging.ims");x||(x=new o4,_.Jv("yt.logging.ims",x));return x};
Wy3=function(x,G){if(x.endpoint==="log_event"){Kyn(x);var D=z$E(x),K=a6D(x.payload)||"",z=orn(K),y=200;if(z){if(z.enabled===!1&&!_.B("web_payload_policy_disabled_killswitch"))return;y=yo$(z.tier);if(y===400){l6V(x,G);return}}lV[D]=!0;D={cttAuthInfo:D,isJspb:!1,tier:y};yh().storePayload(D,x.payload);coL(G,!1,D,TcQ(K))}};
Z7f=function(x,G,D){if(G.endpoint==="log_event"){Kyn(void 0,G);var K=z$E(G,!0),z=orn(x),y=200;if(z){if(z.enabled===!1&&!_.B("web_payload_policy_disabled_killswitch"))return;y=yo$(z.tier);if(y===400){e$O(x,G,D);return}}lV[K]=!0;K={cttAuthInfo:K,isJspb:!0,tier:y};yh().storePayload(K,G4(G.payload));coL(D,!0,K,TcQ(x))}};
coL=function(x,G,D,K){G=G===void 0?!1:G;K=K===void 0?!1:K;x&&(cw=new x);x=_.Gz("tvhtml5_logging_max_batch_ads_fork")||_.Gz("tvhtml5_logging_max_batch")||_.Gz("web_logging_max_batch")||100;var z=(0,_.kK)(),y=M2E(G,D.tier),c=y.lastDebounceQueueFromLogTimeMs;K&&(y.useVideoStatsEndPoint=!0);K=0;D&&(K=yh().getSequenceCount(D));var W=function(){QeL({writeThenSend:!0},G,D.tier)};
K>=1E3?W():K>=x?pD3||(pD3=V2O(function(){W();pD3=void 0},0)):z-c>=10&&(b7L(G,D.tier),y.lastDebounceQueueFromLogTimeMs=z)};
l6V=function(x,G){if(x.endpoint==="log_event"){_.B("more_accurate_gel_parser")&&yh().storePayload({isJspb:!1},x.payload);Kyn(x);var D=z$E(x),K=new Map;K.set(D,[x.payload]);var z=a6D(x.payload)||"";G&&(cw=new G);return new _.T1(function(y,c){cw&&cw.isReady()?LyQ(K,cw,y,c,{bypassNetworkless:!0},!0,TcQ(z)):y()})}};
e$O=function(x,G,D){if(G.endpoint==="log_event"){Kyn(void 0,G);var K=z$E(G,!0),z=new Map;z.set(K,[G4(G.payload)]);D&&(cw=new D);return new _.T1(function(y){cw&&cw.isReady()?Bcf(z,cw,y,{bypassNetworkless:!0},!0,TcQ(x)):y()})}};
z$E=function(x,G){var D="";if(x.dangerousLogToVisitorSession)D="visitorOnlyApprovedKey";else if(x.cttAuthInfo){if(G===void 0?0:G){G=x.cttAuthInfo.token;D=x.cttAuthInfo;var K=new ron;D.videoId?K.setVideoId(D.videoId):D.playlistId&&Ww(K,2,sef,iC(D.playlistId));YYn[G]=K}else G=x.cttAuthInfo,D={},G.videoId?D.videoId=G.videoId:G.playlistId&&(D.playlistId=G.playlistId),mv3[x.cttAuthInfo.token]=D;D=x.cttAuthInfo.token}return D};
QeL=function(x,G,D){x=x===void 0?{}:x;G=G===void 0?!1:G;new _.T1(function(K,z){var y=M2E(G,D),c=y.useVideoStatsEndPoint;y.useVideoStatsEndPoint=!1;H73(y.queueTimer);H73(y.queueMaxTimer);y.queueMaxTimer=0;cw&&cw.isReady()?D===void 0&&_.B("enable_web_tiered_gel")?$vf(K,z,x,G,300,c):$vf(K,z,x,G,D,c):(b7L(G,D),K())})};
$vf=function(x,G,D,K,z,y){var c=cw;D=D===void 0?{}:D;K=K===void 0?!1:K;z=z===void 0?200:z;y=y===void 0?!1:y;var W=new Map,e=new Map,Q={isJspb:K,cttAuthInfo:void 0,tier:z},p={isJspb:K,cttAuthInfo:void 0};if(K){G=_.l(Object.keys(lV));for(z=G.next();!z.done;z=G.next())z=z.value,e=_.B("enable_web_tiered_gel")?yh().smartExtractMatchingEntries({keys:[Q,p],sizeLimit:1E3}):yh().extractMatchingEntries({isJspb:!0,cttAuthInfo:z}),e.length>0&&W.set(z,e),(_.B("web_fp_via_jspb_and_json")&&D.writeThenSend||!_.B("web_fp_via_jspb_and_json"))&&
delete lV[z];Bcf(W,c,x,D,!1,y)}else{W=_.l(Object.keys(lV));for(Q=W.next();!Q.done;Q=W.next())Q=Q.value,p=_.B("enable_web_tiered_gel")?yh().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:Q,tier:z},{isJspb:!1,cttAuthInfo:Q}],sizeLimit:1E3}):yh().extractMatchingEntries({isJspb:!1,cttAuthInfo:Q}),p.length>0&&e.set(Q,p),(_.B("web_fp_via_jspb_and_json")&&D.writeThenSend||!_.B("web_fp_via_jspb_and_json"))&&delete lV[Q];LyQ(e,c,x,G,D,!1,y)}};
b7L=function(x,G){x=x===void 0?!1:x;G=G===void 0?200:G;var D=function(){QeL({writeThenSend:!0},x,G)},K=M2E(x,G),z=K===Fyh||K===CDn?5E3:I6L;
_.B("web_gel_timeout_cap")&&!K.queueMaxTimer&&(z=V2O(function(){D()},z),K.queueMaxTimer=z);
H73(K.queueTimer);z=_.Am("LOGGING_BATCH_TIMEOUT",_.Gz("web_gel_debounce_ms",1E4));_.B("shorten_initial_gel_batch_timeout")&&jeO&&(z=O7f);z=V2O(function(){_.Gz("gel_min_batch_size")>0?yh().getSequenceCount({cttAuthInfo:void 0,isJspb:x,tier:G})>=XDL&&D():D()},z);
K.queueTimer=z};
LyQ=function(x,G,D,K,z,y,c){z=z===void 0?{}:z;var W=Math.round((0,_.kK)()),e=x.size,Q=Ao$(c);x=_.l(x);var p=x.next();for(c={};!p.done;c={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},p=x.next()){var V=_.l(p.value);p=V.next().value;V=V.next().value;c.batchRequest=_.YS.unsafeClone({context:_.e9$(G.config_||_.Ej())});if(!_.PL(V)&&!_.B("throw_err_when_logevent_malformed_killswitch")){K();break}c.batchRequest.events=V;
(V=mv3[p])&&UvC(c.batchRequest,p,V);delete mv3[p];c.dangerousLogToVisitorSession=p==="visitorOnlyApprovedKey";R$V(c.batchRequest,W,c.dangerousLogToVisitorSession);SYD(z);c.onSuccess$jscomp$3=function(L){_.B("start_client_gcf")&&_.Fj.addLowPriorityJob(function(){return _.T(function(r){return _.Z(r,nrV(L),0)})});
e--;e||D()};
c.networkFailures=0;c.onError$jscomp$5=function(L){return function(){L.networkFailures++;if(z.bypassNetworkless&&L.networkFailures===1)try{JrD(G,Q,L.batchRequest,i7V({writeThenSend:!0},L.dangerousLogToVisitorSession,L.onSuccess$jscomp$3,L.onError$jscomp$5,y)),jeO=!1}catch(r){_.RE(r),K()}e--;e||D()}}(c);
try{JrD(G,Q,c.batchRequest,i7V(z,c.dangerousLogToVisitorSession,c.onSuccess$jscomp$3,c.onError$jscomp$5,y)),jeO=!1}catch(L){_.RE(L),K()}}};
Bcf=function(x,G,D,K,z,y){K=K===void 0?{}:K;var c=Math.round((0,_.kK)()),W={value:x.size},e=new Map([].concat(_.B5(x)));e=_.l(e);for(var Q=e.next();!Q.done;Q=e.next()){var p=_.l(Q.value).next().value,V=x.get(p);Q=new grV;var L=G.config_||_.Ej(),r=new em,H=new uwP;_.Z_(H,1,L.innertubeContextHostLanguage);_.Z_(H,2,L.innertubeContextGeoLocation);_.xW(H,16,L.innertubeContextClientNameFieldNumber);_.Z_(H,17,L.innertubeContextClientVersion);if(L.innertubeContextClientConfigInfo){var O=L.innertubeContextClientConfigInfo,
A=new Dv;O.coldConfigData&&_.Z_(A,1,O.coldConfigData);O.appInstallData&&_.Z_(A,6,O.appInstallData);O.coldHashData&&_.Z_(A,3,O.coldHashData);O.hotHashData&&A.setHotHashData(O.hotHashData);_.GW(H,62,A)}(O=_.Df.devicePixelRatio)&&O!=1&&_.Gu(H,65,_.cY(O));O=F7L();O!==""&&_.Z_(H,54,O);O=Cg$();if(O.length>0){A=new dvL;for(var g=0;g<O.length;g++){var u=new Zg;u.setKey(O[g].key);Ww(u,2,wDL,iC(O[g].value));Mi(A,15,Zg,u)}_.GW(r,5,A)}oOO(L,H);yNf(r);lq$(H);cNd(L,H);TBO(H);_.B("start_client_gcf")&&WsE(H);_.Am("DELEGATED_SESSION_ID")&&
!_.B("pageid_as_header_web")&&(L=new Qh,_.Z_(L,3,_.Am("DELEGATED_SESSION_ID")));!_.B("fill_delegate_context_in_gel_killswitch")&&(O=_.Am("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(A=_.hv(r,Qh,3)||new Qh,L=r,O=_.Z_(A,18,O),_.GW(L,3,O));L=H;O=_.l(Object.entries(_.dT(_.Am("DEVICE",""))));for(A=O.next();!A.done;A=O.next())g=_.l(A.value),A=g.next().value,g=g.next().value,A==="cbrand"?_.Z_(L,12,g):A==="cmodel"?_.Z_(L,13,g):A==="cbr"?_.Z_(L,87,g):A==="cbrver"?_.Z_(L,88,g):A==="cos"?_.Z_(L,18,
g):A==="cosver"?_.Z_(L,19,g):A==="cplatform"&&_.xW(L,42,zcP(g));r.setClient(H);_.GW(Q,1,r);if(H=YYn[p])a:{if(_.QF(H,pE(H,sef,1)))r=1;else if(H.getPlaylistId())r=2;else break a;_.GW(Q,4,H);H=Q.getContext()||new em;L=_.hv(H,Qh,3)||new Qh;O=new Vh;O.setToken(p);_.xW(O,1,r);Mi(L,12,Vh,O);_.GW(H,3,L)}delete YYn[p];p=p==="visitorOnlyApprovedKey";qYE()||_.bV(Q,2,c);!p&&(r=_.Am("EVENT_ID"))&&(H=NcP(),L=new vrE,_.Z_(L,1,r),_.bV(L,2,H),_.GW(Q,5,L));SYD(K);if(_.B("jspb_serialize_with_worker")&&(r=_.s_C())&&
K.writeThenSend){_.Jof.set(f6h,{client:G,resolve:D,networklessOptions:K,isIsolated:z,useVSSEndpoint:y,dangerousLogToVisitorSession:p,requestsOutstanding:W});r.postMessage({op:"gelBatchToSerialize",batchRequest:G4(Q),clientEvents:V,key:f6h});f6h++;break}if(V){r=[];for(H=0;H<V.length;H++)try{r.push(new LE(V[H]))}catch(f){_.RE(new _.LL("Transport failed to deserialize "+String(V[H])))}V=r}else V=[];V=_.l(V);for(r=V.next();!r.done;r=V.next())Mi(Q,3,LE,r.value);V={startTime:(0,_.kK)(),ticks:{},infos:{}};
Q=Q.serialize();V.ticks.geljspc=(0,_.kK)();_.B("log_jspb_serialize_latency")&&V5h("gel_jspb_serialize",V,{sampleRate:.1});_.t2h(Q,G,D,K,z,y,p,W)}};
_.t2h=function(x,G,D,K,z,y,c,W){K=K===void 0?{}:K;W=W===void 0?{value:0}:W;y=Ao$(y);K=i7V(K,c,function(e){_.B("start_client_gcf")&&_.Fj.addLowPriorityJob(function(){return _.T(function(Q){return _.Z(Q,nrV(e),0)})});
W.value--;W.value||D()},function(){W.value--;
W.value||D()},z);
K.headers["Content-Type"]="application/json+protobuf";K.postBodyFormat="JSPB";K.postBody=x;JrD(G,y,"",K);jeO=!1};
SYD=function(x){_.B("always_send_and_write")&&(x.writeThenSend=!1)};
i7V=function(x,G,D,K,z){x={retry:!0,onSuccess:D,onError:K,networklessOptions:x,dangerousLogToVisitorSession:G,bypassMonitoring:!!z,headers:{},postBodyFormat:"",postBody:"",compress:_.B("compress_gel")||_.B("compress_gel_lr")};qYE()&&(x.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.kK)())));return x};
R$V=function(x,G,D){qYE()||(x.requestTimeMs=String(G));_.B("unsplit_gel_payloads_in_logs")&&(x.unsplitGelPayloadsInLogs=!0);!D&&(G=_.Am("EVENT_ID"))&&(D=NcP(),x.serializedClientEventId={serializedEventId:G,clientCounter:String(D)})};
NcP=function(){var x=_.Am("BATCH_CLIENT_COUNTER")||0;x||(x=Math.floor(Math.random()*65535/2));x++;x>65535&&(x=1);_.XQ("BATCH_CLIENT_COUNTER",x);return x};
UvC=function(x,G,D){if(D.videoId)var K="VIDEO";else if(D.playlistId)K="PLAYLIST";else return;x.credentialTransferTokenTargetId=D;x.context=x.context||{};x.context.user=x.context.user||{};x.context.user.credentialTransferTokens=[{token:G,scope:K}]};
Kyn=function(x,G){var D=_.Db("il_payload_scraping")==="enable_il_payload_scraping";if(!_.nT("yt.logging.transport.enableScrapingForTest"))if(D)kaQ=[],_.Jv("yt.logging.transport.enableScrapingForTest",!0),_.Jv("yt.logging.transport.scrapedPayloadsForTesting",kaQ),_.Jv("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.Jv("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.Jv("yt.logging.transport.scrapeClientEvent",!0);else return;D=_.nT("yt.logging.transport.scrapedPayloadsForTesting");var K=_.nT("yt.logging.transport.payloadToScrape");G&&(G=_.nT("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(G.payload)())&&D.push(G);G=_.nT("yt.logging.transport.scrapeClientEvent");if(K&&K.length>=1)for(var z=0;z<K.length;z++)if(x&&x.payload[K[z]])if(G)D.push(x.payload);else{var y=void 0;D.push(((y=x)==null?void 0:y.payload)[K[z]])}_.Jv("yt.logging.transport.scrapedPayloadsForTesting",
D)};
qYE=function(){return _.B("use_request_time_ms_header")||_.B("lr_use_request_time_ms_header")};
V2O=function(x,G){return _.B("transport_use_scheduler")===!1?_.oA(x,G):_.B("logging_avoid_blocking_during_navigation")||_.B("lr_logging_avoid_blocking_during_navigation")?_.Bw(_.Fj,function(){if(_.PDL().currentState==="none")x();else{var D={};_.PDL().install((D.none={callback:x},D))}},G):_.Bw(_.Fj,x,G)};
H73=function(x){_.B("transport_use_scheduler")?_.Fj.cancelJob(x):_.lI(x)};
nrV=function(x){var G,D,K,z,y,c,W,e,Q,p;return _.T(function(V){return V.nextAddress==1?(K=(G=x)==null?void 0:(D=G.responseContext)==null?void 0:D.globalConfigGroup,z=_.Y(K,ErQ),c=(y=K)==null?void 0:y.hotHashData,W=_.Y(K,h$E),Q=(e=K)==null?void 0:e.coldHashData,(p=_.Eo().resolve(_.P6(ru)))?c?z?_.Z(V,xJd(p,c,z),2):_.Z(V,xJd(p,c),2):V.jumpTo(2):V.return()):Q?W?_.Z(V,GeC(p,Q,W),0):_.Z(V,GeC(p,Q),0):V.jumpTo(0)})};
M2E=function(x,G){G=G===void 0?200:G;return x?G===300?Fyh:DJD:G===300?CDn:KwD};
orn=function(x){if(_.B("enable_web_tiered_gel")){x=zfQ[x||""];var G,D,K,z=_.Eo().resolve(_.P6(ru))==null?void 0:(G=aJD())==null?void 0:(D=G.loggingHotConfig)==null?void 0:(K=D.eventLoggingConfig)==null?void 0:K.payloadPolicies;if(z)for(G=0;G<z.length;G++)if(z[G].payloadNumber===x)return z[G]}};
a6D=function(x){x=Object.keys(x);x=_.l(x);for(var G=x.next();!G.done;G=x.next())if(G=G.value,zfQ[G])return G};
yo$=function(x){switch(x){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}};
TcQ=function(x){return x==="gelDebuggingEvent"};
Ao$=function(x){return(x===void 0?0:x)&&_.B("vss_through_gel_video_stats")?"video_stats":"log_event"};
Yq=function(x,G,D,K){K=K===void 0?{}:K;var z={},y=Math.round(K.timestamp||(0,_.kK)());z.eventTimeMs=y<Number.MAX_SAFE_INTEGER?y:0;z[x]=G;x=_.xq();z.context={lastActivityMs:String(K.timestamp||!isFinite(x)?-1:x)};K.sequenceGroup&&!_.B("web_gel_sequence_info_killswitch")&&(x=z.context,G=K.sequenceGroup,G={index:o$f(G),groupKey:G},x.sequence=G,K.endOfSequence&&delete s9[K.sequenceGroup]);(K.sendIsolatedPayload?l6V:Wy3)({endpoint:"log_event",payload:z,cttAuthInfo:K.cttAuthInfo,dangerousLogToVisitorSession:K.dangerousLogToVisitorSession},
D)};
o$f=function(x){s9[x]=x in s9?s9[x]+1:0;return s9[x]};
_.Fv=function(x,G,D){D=D===void 0?{}:D;var K=mv;_.Uo("ytLoggingEventsDefaultDisabled",!1)&&mv===mv&&(K=null);Yq(x,G,K,D)};
_.CE=function(){if(_.B("web_fp_via_jspb")){var x=!0;x=x===void 0?!1:x;var G=ynn;ynn=[];if(G){G=_.l(G);for(var D=G.next();!D.done;D=G.next())D=D.value,x?Yq(D.payloadName,D.payload,mv,D.options):_.Fv(D.payloadName,D.payload,D.options)}QeL(void 0,!0);if(!_.B("web_fp_via_jspb_and_json"))return}QeL(void 0,!1)};
lJC=function(x,G){var D;if((D=G)==null?0:D.componentStack)return G;if(x=x.componentStack)G||(G={}),G.componentStack=x;return G};
cnC=function(){_.uM(_.Am("ERRORS")||[],function(x){_.I4.apply(null,x)});
_.XQ("ERRORS",[])};
_.jm=function(x){_.I4(x)};
_.O9=function(x){_.I4(x,"WARNING")};
TkD=function(x){x instanceof Error?_.I4(x):(x=_.G7(x)?JSON.stringify(x):String(x),x=new _.LL(x),x.name="RejectedPromiseError",_.O9(x))};
Wwf=function(x,G,D,K,z,y){G=G===void 0?"Unknown file":G;D=D===void 0?0:D;var c=!1,W=lPV("log_window_onerror_fraction");if(W&&Math.random()<W)c=!0;else{W=document.getElementsByTagName("script");for(var e=0,Q=W.length;e<Q;e++)if(W[e].src.indexOf("/debug-")>0){c=!0;break}}c&&(c=!1,z?c=!0:(typeof x==="string"?W=x:ErrorEvent&&x instanceof ErrorEvent?(c=!0,W=x.message,G=x.filename,D=x.lineno,K=x.colno):(W="Unknown error",G="Unknown file",D=0),z=new _.LL(W),z.name="UnhandledWindowError",z.message=W,z.fileName=
G,z.lineNumber=D,isNaN(K)?delete z.columnNumber:z.columnNumber=K),_.B("wiz_enable_component_stack_propagation_killswitch")||(y=lJC(z,y)),y&&_.Xv(z,y),c?_.I4(z):_.O9(z))};
_.I4=function(x,G,D,K,z,y,c,W){y=y===void 0?{}:y;y.name=D||_.Am("INNERTUBE_CONTEXT_CLIENT_NAME",1);y.version=K||_.Am("INNERTUBE_CONTEXT_CLIENT_VERSION");D=y;G=G===void 0?"ERROR":G;c=c===void 0?!1:c;G=G===void 0?"ERROR":G;c=c===void 0?!1:c;if(x&&(x.hasOwnProperty("level")&&x.level&&(G=x.level),_.B("console_log_js_exceptions")&&(K=[],K.push("Name: "+x.name),K.push("Message: "+x.message),x.hasOwnProperty("params")&&K.push("Error Params: "+JSON.stringify(x.params)),x.hasOwnProperty("args")&&K.push("Error args: "+
JSON.stringify(x.args)),K.push("File name: "+x.fileName),K.push("Stacktrace: "+x.stack),K=K.join("\n"),window.console.log(K,x)),!(efQ>=5))){K=[];z=_.l(ZzL);for(y=z.next();!y.done;y=z.next()){y=y.value;try{y()&&K.push(y())}catch(A){}}K=[].concat(_.B5(Mnh),_.B5(K));var e=QPE(x);z=e.message||"Unknown Error";y=e.name||"UnknownError";var Q=e.stack||x.stacktrace||"Not available";if(Q.startsWith(y+": "+z)){var p=Q.split("\n");p.shift();Q=p.join("\n")}p=e.lineNumber||"Not available";e=e.fileName||"Not available";
var V=0;if(x.hasOwnProperty("args")&&x.args&&x.args.length)for(var L=0;L<x.args.length&&!(V=KbD(x.args[L],"params."+L,D,V),V>=500);L++);else if(x.hasOwnProperty("params")&&x.params){var r=x.params;if(typeof x.params==="object")for(L in r){if(r[L]){var H="params."+L,O=Zb(r[L]);D[H]=O;V+=H.length+O.length;if(V>500)break}}else D.params=Zb(r)}if(K.length)for(L=0;L<K.length&&!(V=KbD(K[L],"params.context."+L,D,V),V>=500);L++);navigator.vendor&&!D.hasOwnProperty("vendor")&&(D["device.vendor"]=navigator.vendor);
L={message:z,name:y,lineNumber:p,fileName:e,stack:Q,params:D,sampleWeight:1};D=Number(x.columnNumber);isNaN(D)||(L.lineNumber=L.lineNumber+":"+D);if(x.level==="IGNORED")x=0;else a:{x=ph$();D=_.l(x.messageWeights);for(K=D.next();!K.done;K=D.next())if(K=K.value,L.message&&L.message.match(K.messageRegExp)){x=K.weight;break a}x=_.l(x.callbackWeights);for(D=x.next();!D.done;D=x.next())if(D=D.value,D.callback(L)){x=D.weight;break a}x=1}L.sampleWeight=x;x=_.l(VnL);for(D=x.next();!D.done;D=x.next())if(D=
D.value,D.patternsForType[L.name])for(z=_.l(D.patternsForType[L.name]),K=z.next();!K.done;K=z.next())if(y=K.value,K=L.message.match(y.regexp)){L.params["params.error.original"]=K[0];z=y.groups;y={};for(p=0;p<z.length;p++)y[z[p]]=K[p+1],L.params["params.error."+z[p]]=K[p+1];L.message=D.messageFn(y);break}L.params||(L.params={});x=ph$();L.params["params.errorServiceSignature"]="msg="+x.messageWeights.length+"&cb="+x.callbackWeights.length;L.params["params.serviceWorker"]="false";_.Df.document&&_.Df.document.querySelectorAll&&
(L.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new A2(bz$,"sample")).constructor!==A2&&(L.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(L);if(L.sampleWeight!==0&&!LwL.has(L.message)){if(c&&_.B("web_enable_error_204"))BkD(G===void 0?"ERROR":G,L);else{G=G===void 0?"ERROR":G;G==="ERROR"?(rnD.publish("handleError",L),_.B("record_app_crashed_web")&&sPC===0&&L.sampleWeight===1&&(sPC++,c={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.B("report_client_error_with_app_crash_ks")||(c.systemHealth={crashData:{clientError:{logMessage:{message:L.message}}}}),_.Fv("appCrashed",c)),YIf++):G==="WARNING"&&rnD.publish("handleWarning",L);if(_.B("kevlar_gel_error_routing")){c=G;W=W===void 0?{}:W;b:{x=_.l(mJd);for(D=x.next();!D.done;D=x.next())if(j_(D.value.toLowerCase())){x=!0;break b}x=!1}if(x)W=void 0;else{D={stackTrace:L.stack};L.fileName&&(D.filename=L.fileName);x=L.lineNumber&&L.lineNumber.split?L.lineNumber.split(":"):[];x.length!==
0&&(x.length!==1||isNaN(Number(x[0]))?x.length!==2||isNaN(Number(x[0]))||isNaN(Number(x[1]))||(D.lineNumber=Number(x[0]),D.columnNumber=Number(x[1])):D.lineNumber=Number(x[0]));x={level:"ERROR_LEVEL_UNKNOWN",message:L.message,errorClassName:L.name,sampleWeight:L.sampleWeight};c==="ERROR"?x.level="ERROR_LEVEL_ERROR":c==="WARNING"&&(x.level="ERROR_LEVEL_WARNNING");D={isObfuscated:!0,browserStackInfo:D};W.pageUrl=window.location.href;W.kvPairs=[];_.Am("FEXP_EXPERIMENTS")&&(W.experimentIds=_.Am("FEXP_EXPERIMENTS"));
K=_.Am("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!lPV("web_disable_gel_stp_ecatcher_killswitch")&&K)for(z=_.l(Object.keys(K)),y=z.next();!y.done;y=z.next())y=y.value,W.kvPairs.push({key:y,value:String(K[y])});if(K=L.params)for(z=_.l(Object.keys(K)),y=z.next();!y.done;y=z.next())y=y.value,W.kvPairs.push({key:"client."+y,value:String(K[y])});K=_.Am("SERVER_NAME");z=_.Am("SERVER_VERSION");K&&z&&(W.kvPairs.push({key:"server.name",value:K}),W.kvPairs.push({key:"server.version",value:z}));W={errorMetadata:W,
stackTrace:D,logMessage:x}}W&&(_.Fv("clientError",W),(c==="ERROR"||_.B("errors_flush_gel_always_killswitch"))&&_.CE())}_.B("suppress_error_204_logging")||BkD(G,L)}try{LwL.add(L.message)}catch(A){}efQ++}}};
BkD=function(x,G){var D=G.params||{};x={urlParams:{a:"logerror",t:"jserror",type:G.name,msg:G.message.substr(0,250),line:G.lineNumber,level:x,"client.name":D.name},postParams:{url:_.Am("PAGE_NAME",window.location.href),file:G.fileName},method:"POST"};D.version&&(x["client.version"]=D.version);if(x.postParams){G.stack&&(x.postParams.stack=G.stack);G=_.l(Object.keys(D));for(var K=G.next();!K.done;K=G.next())K=K.value,x.postParams["client."+K]=D[K];if(D=_.Am("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(G=
_.l(Object.keys(D)),K=G.next();!K.done;K=G.next())K=K.value,x.postParams[K]=D[K];(D=_.Am("LAVA_VERSION"))&&(x.postParams["lava.version"]=D);D=_.Am("SERVER_NAME");G=_.Am("SERVER_VERSION");D&&G&&(x.postParams["server.name"]=D,x.postParams["server.version"]=G)}_.Tz(_.Am("ECATCHER_REPORT_HOST","")+"/error_204",x)};
_.HzQ=function(x,G){G=G===void 0?"ERROR":G;var D=D===void 0?{}:D;var K=_.nT("ytbin.polymer.shared.lib.tampering.info");K&&(K=K())&&(D["params.tamperingInfo"]=K.sort().join(","));_.I4(x,G,void 0,void 0,!0,D)};
_.Xv=function(x){var G=_.rC.apply(1,arguments);x.args||(x.args=[]);Array.isArray(x.args)&&x.args.push.apply(x.args,_.B5(G))};
$JQ=function(x){x.level="IGNORED"};
Fwf=function(x,G){Mnh.push(x);G();Mnh.pop()};
R4=function(x,G){for(var D in G)G.hasOwnProperty(D)&&(x=_.U9(x,D,G[D]));return x};
_.Cb$=function(x,G,D){D=D===void 0?!1:D;if(!x)return null;if(x.adInfoDialogEndpoint||x.backstageImageUploadEndpoint||x.confirmDialogEndpoint||x.clientActionEndpoint||x.createBackstagePostDialogEndpoint||x.createCommentReplyDialogEndpoint||x.flowEndpoint||x.guideBuilderEndpoint||x.liveChatDialogEndpoint||x.modalEndpoint||x.openPopupAction||x.shareEndpoint||x.shareEntityEndpoint||x.showLiveChatItemEndpoint||x.subscriptionManagerEndpoint||x.unlimitedCreateFamilyEndpoint||x.unlimitedFamilyFlowEndpoint||
x.updateCommentDialogEndpoint||x.updateCommentReplyDialogEndpoint||x.userFeedbackEndpoint||x.videoEditorEndpoint||x.ypcCancelSurveyEndpoint)return G=_.Gz("polymer_report_client_url_requested_rate"),!D&&Math.random()<G&&_.O9(new _.LL("urlForEndpoint used on client endpoint",x)),null;var K=_.Gz("polymer_report_missing_web_navigation_endpoint_rate");if(x.liveChatEndpoint||x.liveChatReplayEndpoint)K=0;if(!x.commandMetadata&&!x.clickTrackingParams&&Math.random()<K){var z={},y;for(y in x)z[y]="1";_.O9(new _.LL("Missing navigation data",
z))}z="";if(x.commandMetadata&&x.commandMetadata.webCommandMetadata&&x.commandMetadata.webCommandMetadata.url)z=x.commandMetadata.webCommandMetadata.url;else if(x.searchEndpoint)Math.random()<K&&_.O9(new _.LL("Should not manually handle search",x)),z="/results?search_query="+encodeURIComponent(x.searchEndpoint.query).replace(/%20/g,"+"),x.searchEndpoint.params&&(z+="&sp="+x.searchEndpoint.params);else if(x.watchEndpoint)Math.random()<K&&_.O9(new _.LL("Should not manually handle watch",x)),z="/watch?v="+
x.watchEndpoint.videoId,x.watchEndpoint.playlistId&&(z+="&list="+x.watchEndpoint.playlistId),x.watchEndpoint.index&&(z+="&index="+x.watchEndpoint.index),x.watchEndpoint.startTimeSeconds&&(z+="&t="+x.watchEndpoint.startTimeSeconds);else if(x.browseEndpoint)K=x.browseEndpoint.browseId,(y=x.browseEndpoint.canonicalBaseUrl)?z=y:K&&(z=K.substr(0,2),z=z==="FE"?K==="FEwhat_to_watch"?"/":K==="FEmy_videos"?"/my_videos":"/feed/"+K.substr(2):z==="VL"?"/playlist?list="+K.substr(2):"/channel/"+K),z&&x.browseEndpoint.query&&
(z=R4(z+"/search",{query:x.browseEndpoint.query})),z&&x.browseEndpoint.params&&(z=R4(z,{params:x.browseEndpoint.params}));else{if(x.urlEndpoint)return x.urlEndpoint.url;x.signInEndpoint?(z="https://accounts.google.com/ServiceLogin",K={},_.YS.extend(K,G||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),G=K):x.uploadEndpoint?z="//www.youtube.com/upload":x.liveChatEndpoint?(z=x.liveChatEndpoint,K=_.YS.clone(z),_.G7(z.continuation)&&(y=Object.keys(z.continuation)[0],
K.continuation=z.continuation[y].continuation),z=R4("/youtubei/v1/live_chat/get_live_chat",K)):x.liveChatReplayEndpoint?(z=_.YS.clone(x.liveChatReplayEndpoint),z.currentPlayerState&&(_.YS.extend(z,z.currentPlayerState),delete z.currentPlayerState),z=R4("/youtubei/v1/live_chat/get_live_chat_replay",z)):x.liveChatItemContextMenuEndpoint?z=R4("/youtubei/v1/live_chat/get_item_context_menu",x.liveChatItemContextMenuEndpoint):x.liveChatPurchaseMessageEndpoint?z=R4("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
x.liveChatPurchaseMessageEndpoint):x.openSuperStickerBuyFlowCommand?z=R4("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",x.openSuperStickerBuyFlowCommand):x.videoEditEndpoint?z=R4("/edit",{video_id:x.videoEditEndpoint.videoId}):x.liveDashboardEndpoint?z=x.liveDashboardEndpoint.videoId?R4("/live_dashboard",{v:x.liveDashboardEndpoint.videoId}):"/live_dashboard":x.signalNavigationEndpoint&&x.signalNavigationEndpoint.signal&&x.signalNavigationEndpoint.signal==="WEBCAM"?z="/webcam":x.getPdgBuyFlowCommand&&
(z=R4(x.getPdgBuyFlowCommand.buyflowApiPath,{params:x.getPdgBuyFlowCommand.params}))}return z||D?R4(z,G||{}):(_.O9(new _.LL("Error: Can't construct url for endpoint","keys:"+Object.keys(x).sort().join(","),x)),null)};
IJf=function(x){if(x){if(x.browseEndpoint)return!!x.browseEndpoint.nofollow;if(x.watchEndpoint)return!!x.watchEndpoint.nofollow;if(x.urlEndpoint)return!!x.urlEndpoint.nofollow}return!1};
_.OzQ=function(x,G){var D=G+x,K=jPV.get(D);if(K)return K;x=G+"-"+x.replace(/([A-Z])/g,"-$1").toLowerCase();jPV.set(D,x);return x};
XhE=function(x){var G=_.jR(x,"action")||_.jR(x,"command")||_.jR(x,"endpoint");if(!G)return null;G=_.OzQ(G,"yt");_.Y(x,_.Sm)&&(G+="-"+_.Y(x,_.Sm).signal.toLowerCase().replace(/_/g,"-"));return G};
SIL=function(x){try{var G=Object.keys(x)}catch(z){return[]}for(var D=0;D<G.length;D++){var K=G[D];if(An3.test(K)||UJL.test(K))return RfV(x[K])}return[]};
RfV=function(x){return x.command?[x.command]:x.onExecutionAction?[x.onExecutionAction]:x.onResponseReceivedCommand?[x.onResponseReceivedCommand]:x.updateFlowCommand?[x.updateFlowCommand]:x.clientActions?x.clientActions:x.action?[x.action]:x.actions||x.commands||x.onResponseReceivedActions||x.onResponseReceivedCommands||x.onResponseReceivedEndpoints||[]};
izE=function(x,G){G=G===void 0?!1:G;var D=_.Eo().resolve(_.P6(nE));D||(D=new n$P,_.Eo().addProvider({provide:nE,useValue:D}));return D&&x&&!_.YS.isEmpty(x)?D.getUrl(x,G):""};
g$E=function(x,G,D){D=D===void 0?"":D;if(G){x.data=G;var K=izE(G);K?(mu(x,K),IJf(G)||!tm(K)?x.rel="nofollow":x.removeAttribute("rel"),_.Y(G,_.iV)&&_.Y(G,_.iV).target==="TARGET_NEW_WINDOW"?x.target="_blank":D?x.target=D:x.removeAttribute("target")):(x.removeAttribute("href"),x.removeAttribute("rel"),x.removeAttribute("target"))}};
_.wu=function(x,G){var D=PZ;if(Y9())uBQ(x,function(){var y=_.rC.apply(0,arguments);OX(D,function(){G.apply(null,_.B5(y))})});
else{var K=_.gu.getInstance(),z=IE(G);DqV(function(){z.value=G});
_.FQ(function(){var y={},c=_.uV(K,(y[x]=function(){var W=_.rC.apply(0,arguments);OX(D,function(){z.value.apply(z,_.B5(W))})},y));
return function(){var W={};_.du(K,(W[x]="",W),c)}})}};
_.qi=function(x){return Y9()?dJf(x):whf(x)};
_.Ni=function(x){return Y9()?dJf(x):whf(x)};
whf=function(x){return CT(function(){return dJf(x)})};
dJf=function(x){var G=Eqh(function(D){G.value&&G.value===D||(G.__count=G.__count?G.__count+1:1);G.value=D;var K=function(){var z=of(null);try{return x==null?void 0:x(D)}finally{of(z)}}();
return function(){K==null||K();G.value=null}});
return G};
qID=function(x){var G=PZ,D=rO;return{getFn:function(){return function(K){G.isDisposed||Hl(function(){return Wl(function(){return x(K)})},D)!==!0&&K.stopPropagation()}}}};
vw=function(x){if(typeof x.children==="function")return x.children(),null;x=_.l(x.children);for(var G=x.next();!G.done;G=x.next())G=G.value,G();return null};
NkE=function(x){var G;return((G=x.prototype)==null?void 0:G.render)===void 0};
v$h=function(x){x=x.items.map(x.children);return x.length>0&&typeof x[0]==="string"?x.join(""):x};
fJf=function(x,G,D){D=D===void 0?!1:D;Hl(function(){return JnE(x,G,D)})};
JnE=function(x,G,D){D=((D===void 0?0:D)?tnn:keO)(x,function(){J2(G)});
return D===null?x:D};
J2=function(x){if(x!==void 0&&x!==null)if(x instanceof W6)for(var G=SO;nx()!=null&&Reh in nx()&&G.contains(nx());)u1();else if(Array.isArray(x))for(G=_.l(x),x=G.next();!x.done;x=G.next())J2(x.value);else if(x instanceof aF||"function"==typeof _.uH&&x instanceof _.uH)Pl(x.toString());else if(Dy(x)){if(nx()!==x){var D,K;G=(K=(D=rO)==null?void 0:D.name)!=null?K:"unknown";throw Error("cc`"+x.tagName+"`"+G);}u1()}else if(x!=null&&x.contentKind===aE||x instanceof HC)for(G=hHE(x),G=Array.from(G.childNodes),
G=_.l(G),x=G.next();!x.done;x=G.next())SO.appendChild(x.value),u1();else if(er(x)&&(x=x.toString()),D=typeof x,D==="boolean"||D==="number"||D==="string")Pl(x);else if(typeof x==="function"){G=SO;var z=nx();z&&(z._isSignalTextNode||z._isSafeOrSanitizedHtmlNode)||HE3(G,z,x);u1()}else if(x.type===v$h)J2(x.type(Object.assign({},x.props,{children:x.children[0]})));else{QD.beforeVisit(x);if(typeof x.type==="string"){a:{x.__open||XSh(x.type,x.props.idomKey);z=SO;for(G in x.props)if(x.props[G]!==Pbf){var y=
x.props[G];D=Jt;D.push(G);D.push(y)}G=Kx.attributes;G=G===void 0?fE:G;y=SO;D=Rf(y);gW$(y,D,G);mif(z,x.props,!0);if((x.props.skip||x.props.skipchildren)&&SO.hasChildNodes())wO();else{if(x.type==="style"&&Tuf(x.children)===null){wO();G=void 0;break a}J2(x.children)}AuE();x.__open&&(x.__open=!1);JuO(z,x.props);G=z}return G}if(x.type===_.xT)J2(x.children);else if(!E$P(x)){G=x;try{hfV(G)}catch(c){x=c,(y=Kx.handleError)==null||y.call.apply(y,[Kx].concat(_.B5(Xq(x,(z=G.type)==null?void 0:z.TAG_NAME))))}G.__open&&
(AuE(),G.__open=!1)}}};
xsh=function(x,G){var D;NkE(x)?D=new VD(G,x):D=new x(G);D.JSC$8272___type=x;D.__updateContext={nextState:D.state,isForced:!1};return D};
hfV=function(x){var G=x.type,D=G.TAG_NAME;if(G===vw)x.props.children=x.children,G(x.props);else{x.children.length>0&&(x.props.children=x.children);var K;(K=x.props).idomKey||(K.idomKey=G);if(D){var z=XSh(D,x.props.idomKey);x.__open=!0;var y=z.__instance}y||(y=xsh(G,x.props),y.props=null,z&&(z.__instance=y,y.el=z));var c;D=((c=y.__updateContext)!=null?c:{nextState:y.state,isForced:!1}).nextState;y.__updateContext=void 0;G.getDerivedStateFromProps&&(D=G.getDerivedStateFromProps(x.props,D));y.props=
x.props;y.state=D;c=function(){var W=y;QD.beforeRender(W);var e=W.render(W.props);QD.afterRender(W,e);e?(W.props.idomKey&&(e.props.idomKey=W.props.idomKey),W=e):W=void 0;if(e=W)if(e.__open=x.__open,W=J2(e),x.__open=e.__open,!G.TAG_NAME)if(W)G.TAG_NAME=W.tagName.toLowerCase(),W.__instance=y,y.el=W;else{var Q;if((Q=y.hooks)==null?0:Q.length){var p;(p=Kx.handleError)==null||p.call.apply(p,[Kx].concat(_.B5(Xq(Error("id")))))}}y.didPatch();QD.didPatch(y)};
(D=y.functionComponent)?PIV(D,c,y.props.debugInstance):c()}};
E$P=function(x){var G=x.type;if(!NkE(G)||G===vw||G.componentType===sX)return!1;x.props.children=x.children.length>1?x.children:x.children[0];var D,K=(D=x.props.idomKey)!=null?D:x.type,z;if(nx()&&((z=nx()[yD])==null?void 0:z.key)===K){var y=nx(),c=y[yD];if(!c)throw Error("bc`"+y.tagName);var W;(W=c.updateSignalsFromIdomProps)==null||W.call(c,x.props);GYf(c);return!0}if(Ds3.has(G.name))throw W=G.name,G=(c=(y=rO)==null?void 0:y.name)!=null?c:"unknown",Error("ac`"+W+"`"+G);Igf(x.type,x.props,x.children);
x.props.renderedFromIdom=!0;(W=PIV(x.type,function(){return LvP(x.type,x.props)},x.props.debugInstance))&&KjL(W);
return!0};
zaQ=function(x){for(var G=0;G<c6(x).length;G++)u1()};
GYf=function(x){var G=aXV();if(G)zaQ(G);else for(var D=0;D<x.numNodes;D++)(G=aXV())?zaQ(G):u1()};
aXV=function(){var x;return(x=nx()[yD])==null?void 0:x.sourceDynamicRange};
KjL=function(x){x=tlf(x);x=Array.isArray(x)?x:[x];x=_.l(x);for(var G=x.next();!G.done;G=x.next())SO.insertBefore(G.value,nx()),u1()};
o7h=function(x){var G=r2O(),D=CT(function(){return{value:typeof x==="function"?x():x}});
return[D.value,function(K){if(pT!==null){var z;(z=Kx.handleError)==null||z.call.apply(z,[Kx].concat(_.B5(Xq(Error("jd")))))}D.value=typeof K==="function"?K(D.value):K;G.__updateContext={nextState:G.state,isForced:!0};K=EP(G.effectContext);z=GZ(!1);try{if(G.el){var y,c={},W=(c.props=G.props,c.type=G.JSC$8272___type,c.children=(y=G.props.children)!=null?y:[],c[ht]=!0,c);try{fJf(G.el,W,!0)}catch(p){var e,Q;(Q=Kx.handleError)==null||Q.call.apply(Q,[Kx].concat(_.B5(Xq(p,(e=G.JSC$8272___type)==null?void 0:
e.TAG_NAME))))}}}finally{GZ(z),EP(K)}}]};
t2=function(x,G){var D=PZ,K=function(z){OX(D,function(){G(z)})};
window.addEventListener(x,K,void 0);_.Fq(function(){window.removeEventListener(x,K,void 0)})};
_.Pw=function(x,G){var D=PZ;_.FQ(function(){var K,z=(K=G.observer)!=null?K:_.Eo().resolve(kq);if(K=x.value){var y=ya3(K),c=[];G.showOption&&c.push(z.observe(K,function(){OX(D,function(){G.visibilityCallback(!0)})},G.showOption));
G.hideOption&&c.push(z.observe(K,function(){OX(D,function(){G.visibilityCallback(!1)})},G.hideOption));
G.prescanOption&&G.prescanCallback&&c.push(z.observe(K,function(){OX(D,function(){G.prescanCallback()})},G.prescanOption));
var W;y.visibilityMonitorKeys=((W=y.visibilityMonitorKeys)!=null?W:[]).concat(c)}})};
ya3=function(x){var G;return(G=x.polymerController)!=null?G:x};
_.E9=function(x){x.componentType=sX};
WjL=function(x,G){var D=lXn;return _.M(_.xT,null,ka(Kx.enableLazyTsx,function(){return _.M(ca$,{id:D,value:x,children:G})},function(){var K=TGh(D,x);
DS(K);K=EP(K);try{return G()}finally{EP(K)}}))};
ca$=function(x){var G=x.children;x=TGh(x.id,x.value);DS(x);x=EP(x);try{return _.M(_.xT,null,Zy(G()))}finally{EP(x)}};
TGh=function(x,G){return Object.assign(Object.create(eaf),{id:x,contextValue:G})};
ZHd=function(x){var G,D=PZ;_.jO(function(){var K=EP(D),z=GZ(!G);try{if(G)fJf(G,x.children(),!0);else if(G=Zy(x.children()),!(G instanceof Element))throw Error("kd");}finally{GZ(z),EP(K)}});
return G};
MsV=function(x){var G,D=Cx(function(){var K=GZ(!0);try{G=c6(x())}finally{GZ(K)}},!1);
return[G,D]};
pHn=function(x){x=x.buf.charCodeAt(x.pos++);return QlD[x]};
h2=function(x){var G=0,D=0;do{var K=pHn(x);G|=(K&31)<<D;D+=5}while(K&32);return G<0?G+4294967296:G};
Ljf=function(x,G,D){VsV(x,G);x[G][bHQ].unshift(D)};
VsV=function(x,G){if(!x[G]||!x[G][bHQ]){var D=x[G],K=D?[D]:[];x[G]=function(){for(var z=_.l(K),y=z.next();!y.done;y=z.next())y.value.apply(this,arguments)};
x[G][bHQ]=K}};
BGP=function(x){if(!x)return[];var G=[];x=_.l(x);for(var D=x.next();!D.done;D=x.next())D=D.value,Array.isArray(D)?G.push.apply(G,_.B5(BGP(D))):G.push(D);return G};
_.GR=function(x,G){if(x&&raf.test(x)||x==="//")return x;if(slC===void 0){slC=!1;try{var D=new URL("b","http://a");D.pathname="c%20d";slC=D.href==="http://a/c%20d"}catch(K){}}G||(G=document.baseURI||window.location.href);if(slC)try{return(new URL(x,G)).href}catch(K){return x}xB||(xB=document.implementation.createHTMLDocument("temp"),xB.base=xB.createElement("base"),xB.head.appendChild(xB.base),xB.anchor=xB.createElement("a"),xB.body.appendChild(xB.anchor));xB.base.href=G;xB.anchor.href=x;return xB.anchor.href||
x};
msL=function(x,G){return x.replace(Yuh,function(D,K,z,y){return K+"'"+_.GR(z.replace(/["']/g,""),G)+"'"+y})};
HHd=function(x){return x.substring(0,x.lastIndexOf("/")+1)};
C_f=function(){$sV=!1;for(var x=DP.length,G=0;G<x;G++){var D=DP[G];if(D)try{D()}catch(K){setTimeout(function(){throw K;})}}DP.splice(0,x);
Fj3+=x};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(x){console.log("["+x.is+"]: registered")};
jl$=function(x){IXf.push(x)};
Ko=function(x){return OHD[x]||(OHD[x]=x.indexOf("-")<0?x:x.replace(XHD,function(G){return G[1].toUpperCase()}))};
zR=function(x){return OHD[x]||(OHD[x]=x.replace(AaC,"-$1").toLowerCase())};
UsE=function(x,G){var D=G.parentInfo&&UsE(x,G.parentInfo);if(D)for(x=D.firstChild,D=0;x;x=x.nextSibling){if(G.parentIndex===D++)return x}else return x};
RaE=function(x,G){x=x._methodHost||x;return function(D){if(x[G])x[G](D,D.detail);else console.warn("listener method `"+G+"` not defined")}};
aN=function(x){return x.indexOf(".")>=0};
oN=function(x){var G=x.indexOf(".");return G===-1?x:x.slice(0,G)};
SuO=function(x,G){return x.indexOf(G+".")===0};
yr=function(x,G){return G.indexOf(x+".")===0};
lg=function(x,G,D){return G+D.slice(x.length)};
n7E=function(x,G){return x===G||SuO(x,G)||yr(x,G)};
cm=function(x){if(Array.isArray(x)){for(var G=[],D=0;D<x.length;D++)for(var K=x[D].toString().split("."),z=0;z<K.length;z++)G.push(K[z]);return G.join(".")}return x};
iHQ=function(x){return Array.isArray(x)?cm(x).split("."):x.toString().split(".")};
TR=function(x,G,D){G=iHQ(G);for(var K=0;K<G.length;K++){if(!x)return;x=x[G[K]]}D&&(D.path=G.join("."));return x};
g7O=function(x,G,D){var K=iHQ(G),z=K[K.length-1];if(K.length>1){for(G=0;G<K.length-1;G++)if(x=x[K[G]],!x)return;x[z]=D}else x[G]=D;return K.join(".")};
u8d=function(x,G,D){var K=x[G];if(!K)K=x[G]={};else if(!x.hasOwnProperty(G)&&(K=x[G]=Object.create(x[G]),D))for(var z in K)for(x=K[z],G=K[z]=Array(x.length),D=0;D<x.length;D++)G[D]=x[D];return K};
eS=function(x,G,D,K,z,y){if(G){var c=!1,W=Wm++,e;for(e in D){var Q=z?oN(e):e;if(Q=G[Q])for(var p=0,V=Q.length,L=void 0;p<V&&(L=Q[p]);p++)L.info&&L.info.lastRun===W||z&&!ds3(e,L.trigger)||(L.info&&(L.info.lastRun=W),L.fn(x,e,D,K,L.info,z,y),c=!0)}return c}return!1};
ds3=function(x,G){if(G){var D=G.name;return D==x||!(!G.structured||!SuO(D,x))||!(!G.wildcard||!yr(D,x))}return!0};
wHV=function(x,G,D,K,z){G=typeof z.method==="string"?x[z.method]:z.method;D=z.property;G?G.call(x,x.__data[D],K[D]):z.dynamicFn||console.warn("observer method `"+z.method+"` not defined")};
qu3=function(x,G,D,K){D={value:D,queueProperty:!0};K&&(D.path=K);(0,_.ZP)(x).dispatchEvent(new CustomEvent(G,{detail:D}))};
NGD=function(x,G,D,K,z,y){y=(K=(y?oN(G):G)!=G?G:null)?TR(x,K):x.__data[G];K&&y===void 0&&(y=D[G]);qu3(x,z.eventName,y,K)};
v7f=function(x,G,D,K,z){D=x.__data[G];Mq&&(D=Mq(D,z.attrName,"attribute",x));x._propertyToAttribute(G,z.attrName,D)};
fXC=function(x){var G=x.constructor.__orderedComputedDeps;if(!G){G=new Map;for(var D=x.__computeEffects,K=JaQ(x),z=K.counts,y=K.ready,c=K.total;K=y.shift();)G.set(K,G.size),(K=D[K])&&K.forEach(function(W){W=W.info.methodInfo;--c;--z[W]===0&&y.push(W)});
c!==0&&console.warn("Computed graph for "+x.localName+" incomplete; circular?");x.constructor.__orderedComputedDeps=G}return G};
JaQ=function(x){var G=x.__computeInfo,D={};x=x.__computeEffects;var K=[],z=0,y;for(y in G){var c=G[y];z+=D[y]=c.args.filter(function(e){return!e.literal}).length+(c.dynamicFn?1:0)}for(var W in x)G[W]||K.push(W);
return{counts:D,ready:K,total:z}};
kY3=function(x,G,D,K,z){G=tsP(x,G,D,K,z);if(G===Qr)return!1;z=z.methodInfo;if(x.__dataHasAccessor&&x.__dataHasAccessor[z])return x._setPendingProperty(z,G,!0);x[z]=G;return!1};
haD=function(x,G,D,K,z,y,c){D.bindings=D.bindings||[];K={kind:K,target:z,parts:y,literal:c,isCompound:y.length!==1};D.bindings.push(K);K.target&&K.kind!="attribute"&&K.kind!="text"&&!K.isCompound&&K.parts[0].mode==="{"&&(D=K.parts[0],y=D.negate,K.listenerEvent=D.event||zR(z)+"-changed",K.listenerNegate=y);z=G.nodeInfoList.length;for(D=0;D<K.parts.length;D++){var W=K.parts[D];W.compoundIndex=D;y=x;c=G;var e=K,Q=W,p=z;if(!Q.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+
e.target+' because "-" is not a valid attribute starting character');else for(W=Q.dependencies,e={index:p,binding:e,part:Q,evaluator:y},Q=0;Q<W.length;Q++)p=W[Q],typeof p=="string"&&(p=P_Q(p),p.wildcard=!0),y._addTemplatePropertyEffect(c,p.rootProperty,{fn:E7V,info:e,trigger:p})}};
E7V=function(x,G,D,K,z,y,c){c=c[z.index];var W=z.binding,e=z.part;y&&e.source&&G.length>e.source.length&&W.kind=="property"&&!W.isCompound&&c.__isPropertyEffectsClient&&c.__dataHasAccessor&&c.__dataHasAccessor[W.target]?(D=D[G],G=lg(e.source,W.target,G),c._setPendingPropertyOrPath(G,D,!1,!0)&&x._enqueueClient(c)):(G=z.evaluator._evaluateBinding(x,e,G,D,K,y),G!==Qr&&(W.isCompound&&(D=c.__dataCompoundStorage[W.target],D[e.compoundIndex]=G,G=D.join("")),W.kind==="attribute"||W.target!=="textContent"&&
(W.target!=="value"||c.localName!=="input"&&c.localName!=="textarea")||(G=G==void 0?"":G),e=G,Mq&&(e=Mq(e,W.target,W.kind,c)),W.kind=="attribute"?x._valueToNodeAttribute(c,e,W.target):(W=W.target,c.__isPropertyEffectsClient&&c.__dataHasAccessor&&c.__dataHasAccessor[W]?c.__readOnly&&c.__readOnly[W]||c._setPendingProperty(W,e)&&x._enqueueClient(c):x._setUnmanagedPropertyToNode(c,W,e))))};
xFO=function(x,G,D){if(D.listenerEvent){var K=D.parts[0];x.addEventListener(D.listenerEvent,function(z){var y=D.target,c=K.source,W=K.negate,e=z.detail,Q=e&&e.path;Q?(c=lg(y,c,Q),z=e&&e.value):z=z.currentTarget[y];G.__readOnly&&G.__readOnly[c]||!G._setPendingPropertyOrPath(c,W?!z:z,!0,!!Q)||e&&e.queueProperty||G._invalidateProperties()})}};
Gx$=function(x,G,D,K,z,y){y=G.static||y&&(typeof y!=="object"||y[G.methodName]);z={methodName:G.methodName,args:G.args,methodInfo:z,dynamicFn:y};for(var c=0,W=void 0;c<G.args.length&&(W=G.args[c]);c++)W.literal||x._addPropertyEffect(W.rootProperty,D,{fn:K,info:z,trigger:W});y&&x._addPropertyEffect(G.methodName,D,{fn:K,info:z});return z};
tsP=function(x,G,D,K,z){K=x._methodHost||x;var y=K[z.methodName];if(y)return x=x._marshalArgs(z.args,G,D),x===Qr?Qr:y.apply(K,x);z.dynamicFn||console.warn("method `"+z.methodName+"` not defined")};
DFO=function(x){for(var G="",D=0;D<x.length;D++)G+=x[D].literal||"";return G};
awE=function(x){if(x=x.match(/([^\s]+?)\(([\s\S]*)\)/)){var G={methodName:x[1],static:!0,args:KYO};return x[2].trim()?zMC(x[2].replace(/\\,/g,"&comma;").split(","),G):G}return null};
zMC=function(x,G){G.args=x.map(function(D){D=P_Q(D);D.literal||(G.static=!1);return D},this);
return G};
P_Q=function(x){x=x.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var G={name:x,value:"",literal:!1},D=x[0];D==="-"&&(D=x[1]);D>="0"&&D<="9"&&(D="#");switch(D){case "'":case '"':G.value=x.slice(1,-1);G.literal=!0;break;case "#":G.value=Number(x),G.literal=!0}G.literal||(G.rootProperty=oN(x),G.structured=aN(x),G.structured&&(G.wildcard=x.slice(-2)==".*",G.wildcard&&(G.name=x.slice(0,-2))));return G};
oLV=function(x,G,D){x=TR(x,D);x===void 0&&(x=G[D]);return x};
ycC=function(x,G,D,K){K={indexSplices:K};po&&!x._overrideLegacyUndefined&&(G.splices=K);x.notifyPath(D+".splices",K);x.notifyPath(D+".length",G.length);po&&!x._overrideLegacyUndefined&&(K.indexSplices=[])};
Vr=function(x,G,D,K,z,y){ycC(x,G,D,[{index:K,addedCount:z,removed:y,object:G,type:"splice"}])};
lwL=function(x){x=msL((x.body?x.body:x).textContent,x.baseURI);var G=document.createElement("style");G.textContent=x;return G};
TlQ=function(x){x=x.trim().split(/\s+/);for(var G=[],D=0;D<x.length;D++)G.push.apply(G,_.B5(ccL(x[D])));return G};
ccL=function(x){var G=bg.import(x);if(!G)return console.warn("Could not find style data in module named",x),[];if(G._styles===void 0){x=[];x.push.apply(x,_.B5(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(G)));var D=G.querySelector("template");D&&x.push.apply(x,_.B5(eMn(D,G.assetpath)));G._styles=x}return G._styles};
eMn=function(x,G){if(!x._styles){for(var D=[],K=x.content.querySelectorAll("style"),z=0;z<K.length;z++){var y=K[z],c=y.getAttribute("include");c&&D.push.apply(D,_.B5(TlQ(c).filter(function(W,e,Q){return Q.indexOf(W)===e})));
G&&(y.textContent=msL(y.textContent,G));D.push(y)}x._styles=D}return x._styles};
Zsn=function(x){return(x=bg.import(x))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(x):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(x){var G=[];x=x.querySelectorAll("link[rel=import][type~=css]");for(var D=0;D<x.length;D++){var K=x[D];if(K.import){var z=K.import;if((K=K.hasAttribute("shady-unscoped"))&&!z._unscopedStyle){var y=lwL(z);y.setAttribute("shady-unscoped","");z._unscopedStyle=y}else z._style||(z._style=lwL(z));G.push(K?z._unscopedStyle:z._style)}}return G};
QOO=function(x){x=x.trim().split(/\s+/);for(var G="",D=0;D<x.length;D++)G+=MUL(x[D]);return G};
MUL=function(x){var G=bg.import(x);if(G&&G._cssText===void 0){var D=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(G),K=G.querySelector("template");K&&(D+=pq$(K,G.assetpath));G._cssText=D||null}G||console.warn("Could not find style data in module named",x);return G&&G._cssText||""};
pq$=function(x,G){var D="";x=eMn(x,G);for(G=0;G<x.length;G++){var K=x[G];K.parentNode&&K.parentNode.removeChild(K);D+=K.textContent}return D};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(x){var G="";x=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(x);for(var D=0;D<x.length;D++)G+=x[D].textContent;return G};
Lo=function(x,G){return{index:x,removed:[],addedCount:G}};
bs$=function(x,G,D,K){var z=0,y=0,c=0,W=0,e=Math.min(G-z,K-y);if(z==0&&y==0)a:{for(c=0;c<e;c++)if(x[c]!==D[c])break a;c=e}if(G==x.length&&K==D.length){W=x.length;for(var Q=D.length,p=0;p<e-c&&VUE(x[--W],D[--Q]);)p++;W=p}z+=c;y+=c;G-=W;K-=W;if(G-z==0&&K-y==0)return[];if(z==G){for(G=Lo(z,0);y<K;)G.removed.push(D[y++]);return[G]}if(y==K)return[Lo(z,G-z)];e=z;c=y;K=K-c+1;W=G-e+1;G=Array(K);for(Q=0;Q<K;Q++)G[Q]=Array(W),G[Q][0]=Q;for(Q=0;Q<W;Q++)G[0][Q]=Q;for(Q=1;Q<K;Q++)for(p=1;p<W;p++)if(x[e+p-1]===
D[c+Q-1])G[Q][p]=G[Q-1][p-1];else{var V=G[Q-1][p]+1,L=G[Q][p-1]+1;G[Q][p]=V<L?V:L}e=G.length-1;c=G[0].length-1;K=G[e][c];for(x=[];e>0||c>0;)e==0?(x.push(2),c--):c==0?(x.push(3),e--):(W=G[e-1][c-1],Q=G[e-1][c],p=G[e][c-1],V=Q<p?Q<W?Q:W:p<W?p:W,V==W?(W==K?x.push(0):(x.push(1),K=W),e--,c--):V==Q?(x.push(3),e--,K=Q):(x.push(2),c--,K=p));x.reverse();G=void 0;e=[];for(c=0;c<x.length;c++)switch(x[c]){case 0:G&&(e.push(G),G=void 0);z++;y++;break;case 1:G||(G=Lo(z,0));G.addedCount++;z++;G.removed.push(D[y]);
y++;break;case 2:G||(G=Lo(z,0));G.addedCount++;z++;break;case 3:G||(G=Lo(z,0)),G.removed.push(D[y]),y++}G&&e.push(G);return e};
LYC=function(x,G){return bs$(x,x.length,G,G.length)};
VUE=function(x,G){return x===G};
rcC=function(x){if(x instanceof Blf)return x.value;throw Error("Bd`"+x);};
sOP=function(x,G){for(var D in G)D===null?x.style.removeProperty(D):x.style.setProperty(D,G[D])};
Yg3=function(x,G){return(x=window.getComputedStyle(x).getPropertyValue(G))?x.trim():""};
FYV=function(x){requestAnimationFrame(function(){mFn?mFn(x):(Hsh||(Hsh=new Promise(function(G){$FC=G}),document.readyState==="complete"?$FC():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&$FC()})),Hsh.then(function(){x&&x()}))})};
jOQ=function(x){CAd=x&&x.shimcssproperties?!1:IwO||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
RMd=function(x){if(!(OsQ.indexOf(x)>-1)&&x!=="touchend"&&XqC&&AcL&&UFh)return{passive:!0}};
gLL=function(x){for(var G=SgC?["click"]:OsQ,D=0,K;D<G.length;D++)K=G[D],x?(nLQ.length=0,document.addEventListener(K,isL,!0)):document.removeEventListener(K,isL,!0)};
Bm=function(x){var G=x.type;return OsQ.indexOf(G)>-1?G==="mousemove"?(G=x.buttons===void 0?1:x.buttons,x instanceof window.MouseEvent&&!u4d&&(G=dF3[x.which]||0),!!(G&1)):(x.button===void 0?0:x.button)===0:!1};
wqO=function(x){if(x.type==="click"){if(x.detail===0)return!0;var G=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(x);if(!G.nodeType||G.nodeType!==Node.ELEMENT_NODE)return!0;G=G.getBoundingClientRect();var D=x.pageX;x=x.pageY;return!(D>=G.left&&D<=G.right&&x>=G.top&&x<=G.bottom)}return!1};
qgD=function(x,G,D){x.movefn=G;x.upfn=D;document.addEventListener("mousemove",G);document.addEventListener("mouseup",D)};
r1=function(x){document.removeEventListener("mousemove",x.movefn);document.removeEventListener("mouseup",x.upfn);x.movefn=null;x.upfn=null};
Nlh=function(x,G){for(var D=document.elementFromPoint(x,G),K=D;K&&K.shadowRoot&&!window.ShadyDOM;){var z=K;K=K.shadowRoot.elementFromPoint(x,G);if(z===K)break;K&&(D=K)}return D};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(x){var G=vLE(x);return G.length>0?G[0]:x.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(x){var G=x.type,D=x.currentTarget.__polymerGestures;if(D&&(D=D[G])){if(!x.__polymerGesturesHandled&&(x.__polymerGesturesHandled={},G.slice(0,5)==="touch")){var K=x.changedTouches[0];G==="touchstart"&&x.touches.length===1&&(Jcd=K.identifier);if(Jcd!==K.identifier)return;XqC||(G==="touchstart"||G==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(x)}K=
x.__polymerGesturesHandled;if(!K.skip){for(var z=0,y;z<sv.length;z++)y=sv[z],D[y.name]&&!K[y.name]&&y.flow&&y.flow.start.indexOf(x.type)>-1&&y.reset&&y.reset();for(z=0;z<sv.length;z++)y=sv[z],D[y.name]&&!K[y.name]&&(K[y.name]=!0,y[G](x))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(x){var G=x.changedTouches[0],D=x.type;if(D==="touchstart")fw3=G.clientX,tUh=G.clientY,kxh=!1;else if(D==="touchmove"&&!kxh){kxh=!0;D="auto";for(var K=vLE(x),z=0,y;z<K.length;z++)if(y=K[z],y.__polymerGesturesTouchAction){D=y.__polymerGesturesTouchAction;break}K=!1;z=Math.abs(fw3-G.clientX);G=Math.abs(tUh-G.clientY);x.cancelable&&(D==="none"?K=!0:D==="pan-x"?K=G>z:D==="pan-y"&&(K=z>G));K?x.preventDefault():
YB("track")}};
Hm=function(x,G,D){return m7[G]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(x,G,D),!0):!1};
$B=function(x,G,D){return m7[G]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(x,G,D),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(x,G,D){var K=m7[G],z=K.deps,y=K.name,c=x.__polymerGestures;c||(x.__polymerGestures=c={});for(var W=0,e,Q;W<z.length;W++)e=z[W],SgC&&OsQ.indexOf(e)>-1&&e!=="click"||((Q=c[e])||(c[e]=Q={_count:0}),Q._count===0&&x.addEventListener(e,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,RMd(e)),Q[y]=(Q[y]||0)+1,Q._count=(Q._count||0)+1);x.addEventListener(G,D);K.touchAction&&_.FK(x,K.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(x,G,D){var K=m7[G],z=K.deps;K=K.name;var y=x.__polymerGestures;if(y)for(var c=0,W,e;c<z.length;c++)W=z[c],(e=y[W])&&e[K]&&(e[K]=(e[K]||1)-1,e._count=(e._count||1)-1,e._count===0&&x.removeEventListener(W,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,RMd(W)));x.removeEventListener(G,D)};
PAP=function(x){sv.push(x);for(var G=0;G<x.emits.length;G++)m7[x.emits[G]]=x};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(x){for(var G=0,D;G<sv.length;G++){D=sv[G];for(var K=0,z;K<D.emits.length;K++)if(z=D.emits[K],z===x)return D}return null};
_.FK=function(x,G){XqC&&x instanceof HTMLElement&&Co.run(function(){x.style.touchAction=G});
x.__polymerGesturesTouchAction=G};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(x,G,D){G=new Event(G,{bubbles:!0,cancelable:!0,composed:!0});G.detail=D;(0,_.ZP)(x).dispatchEvent(G);G.defaultPrevented&&(x=D.preventer||D.sourceEvent)&&x.preventDefault&&x.preventDefault()};
YB=function(x){x=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(x);x.info&&(x.info.prevent=!0)};
IN=function(x,G,D,K){G&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G,x,{x:D.clientX,y:D.clientY,sourceEvent:D,preventer:K,prevent:function(z){return YB(z)}})};
ELh=function(x,G,D){if(x.prevent)return!1;if(x.started)return!0;D=Math.abs(x.y-D);return Math.abs(x.x-G)>=5||D>=5};
hML=function(x,G,D){if(G){var K=x.moves[x.moves.length-2],z=x.moves[x.moves.length-1],y=z.x-x.x,c=z.y-x.y,W=0;if(K){var e=z.x-K.x;W=z.y-K.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G,"track",{state:x.state,x:D.clientX,y:D.clientY,dx:y,dy:c,ddx:e,ddy:W,sourceEvent:D,hover:function(){return Nlh(D.clientX,D.clientY)}})}};
GFV=function(x,G,D){var K=Math.abs(G.clientX-x.x),z=Math.abs(G.clientY-x.y),y=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D||G);!y||xXV[y.localName]&&y.hasAttribute("disabled")||!(isNaN(K)||isNaN(z)||K<=25&&z<=25||wqO(G))||x.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y,"tap",{x:G.clientX,y:G.clientY,sourceEvent:G,preventer:D})};
DXC=function(x,G,D,K,z){var y;z&&(y=typeof D==="object"&&D!==null)&&(K=x.__dataTemp[G]);K=K!==D&&(K===K||D===D);y&&K&&(x.__dataTemp[G]=D);return K};
z_$=function(){if(jS&&!Ov){if(!KIf){KIf=!0;var x=document.createElement("style");x.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(x)}return!0}return!1};
o5D=function(){return akn};
yj3=function(x,G){akn=x;Object.setPrototypeOf(x,G.prototype);new G;akn=null};
lkC=function(x,G){for(var D=0;D<G.length;D++){var K=G[D];if(!!x!=!!K.__hideTemplateChildren__)if(K.nodeType===Node.TEXT_NODE)x?(K.__polymerTextContent__=K.textContent,K.textContent=""):K.textContent=K.__polymerTextContent__;else if(K.localName==="slot")if(x)K.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.ZP)((0,_.ZP)(K).parentNode).replaceChild(K.__polymerReplaced__,K);else{var z=K.__polymerReplaced__;z&&(0,_.ZP)((0,_.ZP)(z).parentNode).replaceChild(K,z)}else K.style&&(x?(K.__polymerDisplay__=
K.style.display,K.style.display="none"):K.style.display=K.__polymerDisplay__);K.__hideTemplateChildren__=x;K._showHideChildren&&K._showHideChildren(x)}};
cjO=function(x){return(x=x.__dataHost)&&x._methodHost||x};
e_D=function(x,G,D){var K=D.mutableData?TjV:XK;AU.mixin&&(K=AU.mixin(K));var z=function(){return K.apply(this,arguments)||this};
_.m(z,K);z.prototype.__templatizeOptions=D;z.prototype._bindTemplate(x);WIP(z,x,G,D);return z};
V8E=function(x,G,D,K){var z=D.forwardHostProp;if(z&&G.hasHostProps){var y=x.localName=="template",c=G.templatizeTemplateClass;if(!c){if(y){var W=D.mutableData?Z13:M8D;c=function(){return W.apply(this,arguments)||this};
_.m(c,W);c=G.templatizeTemplateClass=c}else{var e=x.constructor;c=function(){return e.apply(this,arguments)||this};
_.m(c,e);c=G.templatizeTemplateClass=c}var Q=G.hostProps,p;for(p in Q)c.prototype._addPropertyEffect("_host_"+p,c.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Qyf(z)}),c.prototype._createNotifyingProperty("_host_"+p);Uv&&K&&pbP(G,D,K)}x.__dataProto&&Object.assign(x.__data,x.__dataProto);if(y)yj3(x,c),x.__dataTemp={},x.__dataPending=null,x.__dataOld=null,x._enableProperties();else{Object.setPrototypeOf(x,c.prototype);G=G.hostProps;for(var V in G)V="_host_"+V,V in x&&(G=x[V],delete x[V],x.__data[V]=
G)}}};
Qyf=function(x){return function(G,D,K){x.call(G.__templatizeOwner,D.substring(6),K[D])}};
WIP=function(x,G,D,K){var z=D.hostProps||{},y;for(y in K.instanceProps){delete z[y];var c=K.notifyInstanceProp;c&&x.prototype._addPropertyEffect(y,x.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:b1d(c)})}if(K.forwardHostProp&&G.__dataHost)for(var W in z)D.hasHostProps||(D.hasHostProps=!0),x.prototype._addPropertyEffect(W,x.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:LIV()})};
b1d=function(x){return function(G,D,K){x.call(G.__templatizeOwner,G,D,K[D])}};
LIV=function(){return function(x,G,D){x.__dataHost._setPendingPropertyOrPath("_host_"+G,D[G],!0,!0)}};
AU=function(x,G,D){if(RN&&!cjO(x))throw Error("Hd");D=D||{};if(x.__templatizeOwner)throw Error("Id");x.__templatizeOwner=G;var K=(G?G.constructor:XK)._parseTemplate(x),z=K.templatizeInstanceClass;z||(z=e_D(x,K,D),K.templatizeInstanceClass=z);var y=cjO(x);V8E(x,K,D,y);D=function(){return z.apply(this,arguments)||this};
_.m(D,z);D.prototype._methodHost=y;D.prototype.__dataHost=x;D.prototype.__templatizeOwner=G;D.prototype.__hostProps=K.hostProps;return D};
pbP=function(x,G,D){D=D.constructor._properties;x=x.propertyEffects;G=G.instanceProps;for(var K in x)if(!(D[K]||G&&G[K]))for(var z=x[K],y=0;y<z.length;y++){var c=z[y].info.part;if(!c.signature||!c.signature.static){console.warn("Property '"+K+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
Bjf=function(x,G){for(var D;G;)if(D=G.__dataHost?G:G.__templatizeInstance)if(D.__dataHost!=x)G=D.__dataHost;else return D;else G=(0,_.ZP)(G).parentNode;return null};
SS=function(x){return x.localName==="slot"};
rj3=function(){for(var x=no.prototype,G="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),D={},K=0;K<G.length;D={method$jscomp$30:void 0},K++)D.method$jscomp$30=G[K],x[D.method$jscomp$30]=function(z){return function(){return this.node[z.method$jscomp$30].apply(this.node,arguments)}}(D)};
syn=function(x,G){for(var D={},K=0;K<G.length;D={name$jscomp$380:void 0},K++)D.name$jscomp$380=G[K],Object.defineProperty(x,D.name$jscomp$380,{get:function(z){return function(){return this.node[z.name$jscomp$380]}}(D),
configurable:!0})};
YHL=function(){for(var x=no.prototype,G=["textContent","innerHTML","className"],D={},K=0;K<G.length;D={name$jscomp$381:void 0},K++)D.name$jscomp$381=G[K],Object.defineProperty(x,D.name$jscomp$381,{get:function(z){return function(){return this.node[z.name$jscomp$381]}}(D),
set:function(z){return function(y){this.node[z.name$jscomp$381]=y}}(D),
configurable:!0})};
mXd=function(){ig=document.documentElement.getAttribute("dir");ig=document.documentElement.getAttribute("dir");for(var x=0;x<g1.length;x++){var G=g1[x];G.__autoDirOptOut||G.setAttribute("dir",ig)}};
CQV=function(){ug=!0;requestAnimationFrame(function(){ug=!1;H1V($Xf);setTimeout(function(){for(var x=0,G=d1.length;x<G;x++)FIf(d1.shift())})})};
H1V=function(x){for(;x.length;)FIf(x.shift())};
FIf=function(x){var G=x[0],D=x[1];x=x[2];try{D.apply(G,x)}catch(K){setTimeout(function(){throw K;})}};
_.IkC=function(x,G,D){ug||CQV();$Xf.push([x,G,D])};
_.w1=function(x,G,D){ug||CQV();d1.push([x,G,D])};
Xbh=function(x,G){G=G===void 0?!1:G;if(!jyd||!O1Q||!jyd.handlesDynamicScoping)return null;var D=O1Q.ScopingShim;if(!D)return null;var K=D.scopeForNode(x),z=(0,_.ZP)(x).getRootNode(),y=function(c){if((0,_.ZP)(c).getRootNode()===z){var W=Array.from(jyd.nativeMethods.querySelectorAll.call(c,"*"));W.push(c);for(c=0;c<W.length;c++){var e=W[c];if((0,_.ZP)(e).getRootNode()===z){var Q=D.currentScopeForNode(e);Q!==K&&(Q!==""&&D.unscopeNode(e,Q),D.scopeNode(e,K))}}}};
y(x);return G?(G=new MutationObserver(function(c){for(var W=0;W<c.length;W++)for(var e=c[W],Q=0;Q<e.addedNodes.length;Q++){var p=e.addedNodes[Q];p.nodeType===Node.ELEMENT_NODE&&y(p)}}),G.observe(x,{childList:!0,
subtree:!0}),G):null};
AjP=function(){document.body.removeAttribute("unresolved")};
i1Q=function(x){var G=x=x.replace(UXL,"").replace(R_P,""),D=new SHL;D.start=0;D.end=G.length;for(var K=D,z=0,y=G.length;z<y;z++)if(G[z]==="{"){K.rules||(K.rules=[]);var c=K,W=c.rules[c.rules.length-1]||null;K=new SHL;K.start=z+1;K.parent=c;K.previous=W;c.rules.push(K)}else G[z]==="}"&&(K.end=z+1,K=K.parent||D);return n53(D,x)};
n53=function(x,G){var D=G.substring(x.start,x.end-1);x.parsedCssText=x.cssText=D.trim();x.parent&&(D=G.substring(x.previous?x.previous.end:x.parent.start,x.start-1),D=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(D),D=D.replace(g5h," "),D=D.substring(D.lastIndexOf(";")+1),D=x.parsedSelector=x.selector=D.trim(),x.atRule=D.indexOf("@")===0,x.atRule?D.indexOf("@media")===0?x.type=4:D.match(uDO)&&(x.type=7,x.keyframesName=x.selector.split(g5h).pop()):D.indexOf("--")===
0?x.type=1E3:x.type=1);if(D=x.rules)for(var K=0,z=D.length,y=void 0;K<z&&(y=D[K]);K++)n53(y,G);return x};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(x){return x.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var G=arguments[1],D=6-G.length;D--;)G="0"+G;return"\\"+G})};
dXP=function(x,G,D){D=D===void 0?"":D;var K="";if(x.cssText||x.rules){var z=x.rules;if(z&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(z))for(var y=0,c=z.length,W=void 0;y<c&&(W=z[y]);y++)K=dXP(W,G,K);else G?G=x.cssText:(G=x.cssText,G=G.replace(wbE,"").replace(qHf,""),G=G.replace(Nj$,"").replace(v5L,"")),(K=G.trim())&&(K="  "+K+"\n")}K&&(x.selector&&(D+=x.selector+" {\n"),D+=K,x.selector&&(D+="}\n\n"));return D};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(x){x=x[0];return!!x&&!!x.selector&&x.selector.indexOf("--")===0};
fkD=function(x){if(x=JjC[x])x._applyShimCurrentVersion=x._applyShimCurrentVersion||0,x._applyShimValidatingVersion=x._applyShimValidatingVersion||0,x._applyShimNextVersion=(x._applyShimNextVersion||0)+1};
t8h=function(x){return x._applyShimCurrentVersion===x._applyShimNextVersion};
PQn=function(x){x._applyShimValidatingVersion=x._applyShimNextVersion;x._validating||(x._validating=!0,kFD.then(function(){x._applyShimCurrentVersion=x._applyShimNextVersion;x._validating=!1}))};
h_O=function(x){if(!x)return"";typeof x==="string"&&(x=i1Q(x));return dXP(x,E5f)};
xtP=function(x){!x.__cssRules&&x.textContent&&(x.__cssRules=i1Q(x.textContent));return x.__cssRules||null};
DtV=function(x,G,D,K){if(x){var z=!1,y=x.type;if(K&&y===4){var c=x.selector.match(G03);c&&(window.matchMedia(c[1]).matches||(z=!0))}y===1?G(x):D&&y===7?D(x):y===1E3&&(z=!0);if((x=x.rules)&&!z)for(z=0,y=x.length,c=void 0;z<y&&(c=x[z]);z++)DtV(c,G,D,K)}};
KJO=function(x,G){var D=x.indexOf("var(");if(D===-1)return G(x,"","","");a:{var K=0;var z=D+3;for(var y=x.length;z<y;z++)if(x[z]==="(")K++;else if(x[z]===")"&&--K===0)break a;z=-1}K=x.substring(D+4,z);D=x.substring(0,D);x=KJO(x.substring(z+1),G);y=K.indexOf(",");if(y===-1)return G(D,K.trim(),"",x);z=K.substring(0,y).trim();K=K.substring(y+1).trim();return G(D,z,K,x)};
ztO=function(x){if(qq!==void 0)return qq;if(x.__cssBuild===void 0){var G=x.getAttribute("css-build");if(G)x.__cssBuild=G;else{a:{G=x.localName==="template"?x.content.firstChild:x.firstChild;if(G instanceof Comment&&(G=G.textContent.trim().split(":"),G[0]==="css-build")){G=G[1];break a}G=""}if(G!==""){var D=x.localName==="template"?x.content.firstChild:x.firstChild;D.parentNode.removeChild(D)}x.__cssBuild=G}}return x.__cssBuild||""};
o13=function(x,G,D,K){for(var z=G._noAccessors,y=Object.getOwnPropertyNames(G),c=0;c<y.length;c++){var W=y[c];if(!(W in K))if(z)x[W]=G[W];else{var e=Object.getOwnPropertyDescriptor(G,W);e&&(e.configurable=!0,Object.defineProperty(x,W,e))}}for(var Q in aUP)G[Q]&&(D[Q]=D[Q]||[],D[Q].push(G[Q]))};
yRf=function(x,G,D){G=G||[];for(var K=x.length-1;K>=0;K--){var z=x[K];z?Array.isArray(z)?yRf(z,G):G.indexOf(z)<0&&(!D||D.indexOf(z)<0)&&G.unshift(z):console.warn("behavior is null, check for missing or 404 import")}return G};
lUn=function(x,G){for(var D in G){var K=x[D],z=G[D];x[D]=!("value"in z)&&K&&"value"in K?Object.assign({value:K.value},z):z}};
WJE=function(x,G,D){var K={},z=function(){return G.apply(this,arguments)||this};
_.m(z,G);z._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(c)for(var e=0,Q;e<c.length;e++)Q=c[e],Q.properties&&this.createProperties(Q.properties),Q.observers&&this.createObservers(Q.observers,Q.properties);x.properties&&this.createProperties(x.properties);x.observers&&this.createObservers(x.observers,x.properties);this._prepareTemplate()}else G._finalizeClass.call(this)};
z.prototype.created=function(){G.prototype.created.call(this);var e=K.created;if(e)for(var Q=0;Q<e.length;Q++)e[Q].call(this)};
z.prototype._registered=function(){var e=z.prototype;if(!e.hasOwnProperty("__hasRegisterFinished")){e.__hasRegisterFinished=!0;G.prototype._registered.call(this);jS&&W(e);e=Object.getPrototypeOf(this);var Q=K.beforeRegister;if(Q)for(var p=0;p<Q.length;p++)Q[p].call(e);if(Q=K.registered)for(p=0;p<Q.length;p++)Q[p].call(e)}};
z.prototype._applyListeners=function(){G.prototype._applyListeners.call(this);var e=K.listeners;if(e)for(var Q=0;Q<e.length;Q++){var p=e[Q];if(p)for(var V in p)this._addMethodEventListenerToNode(this,V,p[V])}};
z.prototype._ensureAttributes=function(){var e=K.hostAttributes;if(e)for(var Q=e.length-1;Q>=0;Q--){var p=e[Q],V;for(V in p)this._ensureAttribute(V,p[V])}G.prototype._ensureAttributes.call(this)};
z.prototype.ready=function(){G.prototype.ready.call(this);var e=K.ready;if(e)for(var Q=0;Q<e.length;Q++)e[Q].call(this)};
z.prototype.attached=function(){G.prototype.attached.call(this);var e=K.attached;if(e)for(var Q=0;Q<e.length;Q++)e[Q].call(this)};
z.prototype.detached=function(){G.prototype.detached.call(this);var e=K.detached;if(e)for(var Q=0;Q<e.length;Q++)e[Q].call(this)};
z.prototype.attributeChanged=function(e,Q,p){G.prototype.attributeChanged.call(this);var V=K.attributeChanged;if(V)for(var L=0;L<V.length;L++)V[L].call(this,e,Q,p)};
_.Nq.Object.defineProperties(z,{properties:{configurable:!0,enumerable:!0,get:function(){var e={};if(c)for(var Q=0;Q<c.length;Q++)lUn(e,c[Q].properties);lUn(e,x.properties);return e}},
observers:{configurable:!0,enumerable:!0,get:function(){var e=[];if(c)for(var Q=0,p;Q<c.length;Q++)p=c[Q],p.observers&&(e=e.concat(p.observers));x.observers&&(e=e.concat(x.observers));return e}}});
if(D){Array.isArray(D)||(D=[D]);var y=G.prototype.behaviors;var c=yRf(D,null,y);z.prototype.behaviors=y?y.concat(D):c}var W=function(e){if(c)for(var Q=c,p=0;p<Q.length;p++)o13(e,Q[p],K,cRd);o13(e,x,K,TvO)};
jS||W(z.prototype);z.generatedFrom=x;return z};
Qpf=function(x){var G=typeof x!=="string"?x:{is:x,notifyObserversOnUndefined:!0};G.fastInit===void 0&&(G.fastInit=!0);return function(D){if(!G.disableInheritanceCheck&&Object.getPrototypeOf(D.prototype).constructor!==_.vm)throw Error("Md");var K=D.prototype;K.is=G.is;Ljf(K,"created",function(){this.hostElement=this;this.polymerController=this});
etC(K,D,G.fastInit);G.notifyObserversOnUndefined&&(K._overrideLegacyUndefined=!0);if(Z63)for(var z=_.l(Object.getOwnPropertyNames(K)),y=z.next();!y.done;y=z.next()){y=y.value;var c=Object.getOwnPropertyDescriptor(K,y);c.enumerable===!1&&(c.enumerable=!0,Object.defineProperty(K,y,c))}if("template"in D)var W=function(){return D.template};
else G.template!==void 0&&(W=G.template);if(W!==void 0){var e;Object.defineProperty(K,"_template",{get:function(){e===void 0&&(e=W());return e},
set:function(Q){e=Q},
configurable:!0,enumerable:!0})}Polymer(K);D[MJL]=K}};
p1L=function(x){x=x===void 0?{}:x;x.fastInit===void 0&&(x.fastInit=!0);return function(G){if(!x.disableInheritanceCheck&&Object.getPrototypeOf(G.prototype).constructor!==JU)throw Error("Nd");etC(G.prototype,G,x.fastInit)}};
etC=function(x,G,D){D=D===void 0?!1:D;VJL(G);D?Ljf(x,"created",function(){this.disableEnforceFastDefaultValuesCheck||b6L(G,this)}):Ljf(x,"ready",function(){for(var K={},z=_.l(BGP(this.behaviors)),y=z.next();!y.done;y=z.next())y=y.value,y.properties&&Object.assign(K,LJP(this,y.properties));
Object.assign(K,LJP(this,this.properties));b6L(G,this);z=_.l(Object.keys(K));for(y=z.next();!y.done;y=z.next())y=y.value,this[y]=K[y]})};
b6L=function(x,G){if(Z63){x=new x;for(var D=_.l(Object.getOwnPropertyNames(x)),K=D.next();!K.done;K=D.next())K=K.value,G[K]=x[K];for(D=G;D&&D!==Object.prototype;D=Object.getPrototypeOf(D)){K=_.l(Object.getOwnPropertyNames(D));for(var z=K.next();!z.done;z=K.next())z=z.value,x.hasOwnProperty(z)||Object.defineProperty(x,z,Bv$(G,z))}}else x.apply(G)};
Bv$=function(x,G){return{get:function(){var D=x[G];return D instanceof Function?D.bind(x):D},
set:function(D){x[G]=D}}};
LJP=function(x,G){if(!G)return{};for(var D={},K=_.l(Object.keys(G)),z=K.next();!z.done;z=K.next())if(z=z.value,!G[z].readOnly){var y=x[z];y!==void 0&&(D[z]=y)}return D};
VJL=function(x){var G=new x;x=x.prototype.properties||{};for(var D=_.l(Object.keys(x)),K=D.next();!K.done;K=D.next())if(K=K.value,G.hasOwnProperty(K)){var z=x[K];typeof z==="function"&&(x[K]=z={type:z});G[K]!=null&&z.type===Object&&(z.type=rRQ(G[K].constructor))}};
rRQ=function(x){for(var G=_.l(Y$V),D=G.next();!D.done;D=G.next())if(D=D.value,x===D)return D;return Object};
mtO=function(x){return function(G,D){G.behaviors=G.behaviors||[];G.behaviors.push(x||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",G,D).prototype:void 0));Object.defineProperty(G,D,{get:function(){return this},
enumerable:!0,configurable:!0})}};
H6$=function(x){x=x===void 0?{}:x;return function(G,D){G.properties=G.properties||{};x.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?x.type=rRQ(Reflect.getMetadata("design:type",G,D)):x.type=String);var K=x,z=G.properties[D];G.properties[D]=z?Object.assign({},z,K):K}};
$tP=function(x){return function(G,D){G.listeners=G.listeners||{};G.listeners[x]=D}};
FJD=function(){var x=_.rC.apply(0,arguments);if(x.length===0)throw Error("Od");return function(G,D){G.observers=G.observers||[];G.observers.push(D+"("+x.join(",")+")")}};
Chf=function(){var x=_.rC.apply(0,arguments);return function(G,D,K){var z=Object.getOwnPropertyDescriptor(G,D).get,y="__compute__"+D;Object.defineProperty(G,y,{value:z,enumerable:!0});G.properties=G.properties||{};z=G.properties[D];z||(z={},G.properties[D]=z);z.computed=y+"("+x.join(",")+")";K.get=void 0}};
_.fo=function(x,G,D){_.Ya.call(this);this.JSC$9217_id_=null;this.usingListeners_=!1;this.JSC$9217_listener_=x;this.handler_=D;this.JSC$9217_win_=G||window;this.callback_=(0,_.mW)(this.JSC$9219_doAction_,this)};
tU=function(x){this.range_=x};
kB=function(x){this.range_=x};
hU=function(x,G,D){_.Ya.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=x;this.scrollTimer_=new _.Pm(50);this.JSC$9296_eventHandler_=new _.Ev(this);this.scrollDelta_=new _.$S;this.containerIsActuallyContent_=x.tagName==="BODY"||x.tagName==="HTML";this.containerBounds_=IUD(x);this.containerIsActuallyContent_&&(x=_.Tj(),this.containerBounds_.height=x.height,this.containerBounds_.width=x.width);this.margin_=G||0;if(G){if(G=this.containerBounds_.clone(),x=this.margin_){var K=
Math.min(x,G.height*.25);G.top+=K;G.height-=2*K;x=Math.min(x,G.width*.25);G.left+=x;G.width-=2*x}}else G=this.containerBounds_;this.scrollBounds_=G;D||this.JSC$9296_eventHandler_.listen(_.C2(this.containerNode_),"mousemove",this.JSC$9298_onMouseMove);this.JSC$9296_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9298_onTick_)};
_.xm=function(x){this.mechanism=x};
Gy=function(x,G){this.JSC$9394_key_=x;this.JSC$9394_value_=G};
O6O=function(x){if(x>=55296&&x<=57343||x>1114111)return"\ufffd";x in jpQ&&(x=jpQ[x]);var G="";x>65535&&(x-=65536,G+=String.fromCharCode(x>>>10&1023|55296),x=56320|x&1023);return G+=String.fromCharCode(x)};
X1L=function(x,G){return x<G?1:-1};
UtP=function(){return function(x){return x.charAt(1)==="#"?x.charAt(2)==="X"||x.charAt(2)==="x"?O6O(parseInt(x.substr(3),16)):O6O(parseInt(x.substr(2),10)):ARP[x.slice(1,-1)]}};
n1L=function(x){return x.slice(1,x.length-1).trim().replace(Rth,function(G){return S$h[G]||" "})};
Du=function(x){return x===32||x===9};
KC=function(x,G){return G<x.length?x.charCodeAt(G):-1};
i6h=function(x){for(;x;){if(x._lastLineBlank)return!0;var G=x.type;if(G==="list"||G==="item")x=x._lastChild;else break}return!1};
aZ=function(x){if(g1f.test(x)){var G=1,D=0,K=0;for(x[D]=="|"&&D++;D<x.length;){switch(x[D]){case "|":K=1;break;case " ":break;case "\t":break;default:K&&(K=0,G++)}D++}return um$.test(x)?-G:G}return 0};
dtf=function(x){return x=="table"||x=="row"||x=="cell"};
w1E=function(){return new oZ("document",[[1,1],[0,0]])};
q$C=function(){};
yz=function(){var x={safe:!1};x=x||{};x.softbreak=x.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=x};
tJE=function(x,G){var D="";if(x)if(x=x.toLowerCase(),x===" "||Nvf.test(x))D="space";else if(v1E.test(x))D="esc";else if(x.length==1){if(!G||JRf.test(x))D=x}else D=fUd.test(x)?x.replace("arrow",""):x=="multiply"?"*":x;return D};
htQ=function(x,G){var D=x.hasModifiers;if(G.key)D=tJE(G.key,D);else if(G.detail&&G.detail.key)D=tJE(G.detail.key,D);else{D=G.keyIdentifier;var K="";D&&(D in k03?K=k03[D]:Ph3.test(D)?(D=parseInt(D.replace("U+","0x"),16),K=String.fromCharCode(D).toLowerCase()):K=D.toLowerCase());(D=K)||(D=G.keyCode,K="",Number(D)&&(D>=65&&D<=90?K=String.fromCharCode(32+D):D>=112&&D<=123?K="f"+(D-112+1):D>=48&&D<=57?K=String(D-48):D>=96&&D<=105?K=String(D-96):K=E13[D]),D=K);D=D||""}return D===x.key&&(!x.hasModifiers||
!!G.shiftKey===!!x.shiftKey&&!!G.ctrlKey===!!x.ctrlKey&&!!G.altKey===!!x.altKey&&!!G.metaKey===!!x.metaKey)};
GK$=function(x){return x.length===1?{combo:x,key:x,event:"keydown"}:x.split("+").reduce(function(G,D){var K=D.split(":");D=K[0];K=K[1];D in xVQ?(G[xVQ[D]]=!0,G.hasModifiers=!0):(G.key=D,G.event=K||"keydown");return G},{combo:x.split(":").shift()})};
DVL=function(x){return x.trim().split(" ").map(function(G){return GK$(G)})};
KHE=function(x,G){if(x&&x.fn){var D=x.fn;x.fn=function(){try{D.apply(this,arguments)}catch(K){if(K instanceof lx)console.warn("Argument '"+K.arg+"'"+(G?" for method '"+G+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw K;}}}return x};
z0L=function(){var x=_.rC.apply(0,arguments);return x.length===0?function(G){return G}:x.length===1?x[0]:x.reduce(function(G,D){return function(){return G(D.apply(null,_.B5(_.rC.apply(0,arguments))))}})};
ahC=function(){var x=_.rC.apply(0,arguments);return function(G){return function(D,K){D=G(D,K);var z=function(){throw Error("ye");},y={getState:D.getState,
dispatch:function(c){return z.apply(null,[c].concat(_.B5(_.rC.apply(1,arguments))))}};
K=x.map(function(c){return c(y)});
z=z0L.apply(null,_.B5(K))(D.dispatch);return Object.assign({},D,{dispatch:z})}}};
lhn=function(x){Object.keys(x).forEach(function(G){var D=x[G];if(typeof D(void 0,{type:opf})==="undefined")throw Error("ze`"+G);if(typeof D(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+yeQ()})==="undefined")throw Error("Ae`"+G+"`"+opf);})};
cy=function(x){for(var G=Object.keys(x),D={},K=0;K<G.length;K++){var z=G[K];typeof x[z]==="function"&&(D[z]=x[z])}var y=Object.keys(D);try{lhn(D)}catch(W){var c=W}return function(W,e){W=W===void 0?{}:W;if(c)throw c;for(var Q=!1,p={},V=0;V<y.length;V++){var L=y[V],r=W[L],H=(0,D[L])(r,e);if(typeof H==="undefined")throw W=e&&e.type,Error("Be`"+(W?'"'+String(W)+'"':"(unknown type)")+"`"+L);p[L]=H;Q=Q||H!==r}return(Q=Q||y.length!==Object.keys(W).length)?p:W}};
ced=function(x,G,D){function K(){if(p)throw Error("Ce");return W}
function z(r){if(typeof r!=="function")throw Error("De`"+typeof r);if(p)throw Error("Ee");var H=!0;Q===e&&(Q=e.slice());Q.push(r);return function(){if(H){if(p)throw Error("Fe");H=!1;Q===e&&(Q=e.slice());var O=Q.indexOf(r);Q.splice(O,1);e=null}}}
function y(r){if(typeof r!=="object"||r===null)var H=!1;else{for(H=r;Object.getPrototypeOf(H)!==null;)H=Object.getPrototypeOf(H);H=Object.getPrototypeOf(r)===H}if(!H)throw Error("Ge`"+typeof r);if(typeof r.type==="undefined")throw Error("He");if(p)throw Error("Ie");try{p=!0,W=c(W,r)}finally{p=!1}H=e=Q;for(var O=0;O<H.length;O++)(0,H[O])();return r}
if(typeof G==="function"&&typeof D==="function"||typeof D==="function"&&typeof arguments[3]==="function")throw Error("Je");typeof G==="function"&&typeof D==="undefined"&&(D=G,G=void 0);if(typeof D!=="undefined"){if(typeof D!=="function")throw Error("Ke`"+typeof D);return D(ced)(x,G)}if(typeof x!=="function")throw Error("Le`"+typeof x);var c=x,W=G,e=[],Q=e,p=!1;y({type:opf});var V={},L=(V.dispatch=y,V.subscribe=z,V.getState=K,V.replaceReducer=function(r){if(typeof r!=="function")throw Error("Me`"+
typeof r);c=r;y({type:TPf});return L},V[WHE]=function(){var r={};
return r.subscribe=function(H){function O(){H.next&&H.next(K())}
if(typeof H!=="object"||H===null)throw new TypeError("Ne`"+typeof H);O();return{unsubscribe:z(O)}},r[WHE]=function(){return this},r},V);
return L};
e0V=function(x){function G(){z&&(z=!1,x());y&&K()}
function D(){requestAnimationFrame(G)}
function K(){var W=Date.now();if(z){if(W-c<2)return;y=!0}else z=!0,y=!1,setTimeout(D,20);c=W}
var z=!1,y=!1,c=0;return K};
Ty=function(x){return typeof x==="number"?x:parseFloat(x)||0};
ZrE=function(x){return _.rC.apply(1,arguments).reduce(function(G,D){return G+Ty(x["border-"+D+"-width"])},0)};
_.F=function(x,G){G=F_($Y(G));x.innerHTML=G};
pVP=function(x){var G=MIO;G||(G=QXE(),G=MIO=_.YS.transpose(G));G=G[x];return typeof G==="string"?G:_.Wy(x)};
VI3=function(x){x=String(x).toLowerCase();var G=QXE()[x];return typeof G==="string"?G:_.eq(x)};
brP=function(x){x=x.toLowerCase();x=QXE()[x];return typeof x==="string"?x:null};
QXE=function(){if(!LHn){for(var x=Object.assign({},BPE),G=_.l(reE),D=G.next();!D.done;D=G.next())D=D.value,x[D.toLowerCase()]=D;LHn=x}return LHn};
mVE=function(x,G){var D=window.customElements;return D&&D.get(x)||sXD[x]===!0?2:G.name==="HTMLUnknownElement"?1:G.name==="HTMLElement"&&YkE.test(x)?3:0};
FHD=function(x,G){switch(G){case "innerHTML":return Hr3(x)===1?2:null;case "textContent":return x=Hr3(x),x===1||x===6?1:null;default:var D,K;return(K=(D=$VP[x.localName])==null?void 0:D[G])!=null?K:null}};
Hr3=function(x){var G=x.localName,D=mVE(G,x.constructor);switch(D){case 0:case 1:return Crd(G,x);case 3:case 2:return 1;default:_.oT(D,"got an unknown element classification")}};
Crd=function(x,G){var D=Object.hasOwnProperty.call(IhE,x)?IhE[x]:null;return D!==null?D:Object.hasOwnProperty.call(jXV,x)&&G instanceof SVGElement?jXV[x]:null};
OrO=function(x,G){return G};
Ae$=function(x){return(x=x.split(XVf,2))?{url:x[0],metadata:x[1]}:null};
R0L=function(x){var G=String(x.url).replace(UVV,encodeURIComponent);if(x=x.metadata){UVV.lastIndex=0;if(UVV.test(x))return null;G+=" "+x}return G};
gpD=function(x){function G(Q){var p=Q.localName;if(!Q.getAttribute("is")&&mVE(p,Q.constructor)===2){var V;return(V=e)!=null?V:e=document.createElement("polyresinuncustomized")}(Q=W[p])||(Q=W[p]=document.createElement(p));return Q}
var D=x.reportHandler||void 0,K=x.safeTypesBridge||Sk$,z=/^$/;if(x=x.allowedIdentifierPrefixes){x=_.l(x);for(var y=x.next();!y.done;y=x.next())z=new RegExp(z.source+"|^"+_.npC(y.value))}D&&D(!1,"initResin",null);var c=irf(z,K,D),W={},e=null;return function(Q,p,V){var L=Q.nodeType;if(L!==Node.ELEMENT_NODE){if(L===Node.TEXT_NODE){p=Q.parentElement;V=!p;if(p&&p.nodeType===Node.ELEMENT_NODE){L=p.localName;var r=mVE(L,p.constructor);switch(r){case 0:case 1:p=Crd(L,p);V=p===1||p===6;break;case 3:case 2:V=
!0;break;default:_.oT(r,"got an unknown element classification")}}if(V)return function(g){return""+K(g,"STRING",g)}}return function(g){if(!g&&g!==document.all)return g;
D&&D(!0,"Failed to sanitize "+(Q.parentElement&&Q.parentElement.nodeName)+" #text node to value "+g,Q.parentElement);return Zu}}var H=Q.localName;
L=G(Q);var O=null;switch(V){case "attribute":if(VI3(p)in L)break;return function(g){return g};
case "property":if(p in L){O=FHD(L,p);break}if((r=brP(p))&&r in L)break;return function(g){return g};
default:_.oT(V,"got an unknown resin type, expected either 'property' or 'attribute'")}var A=V==="attribute"?p.toLowerCase():pVP(p);O||(O=cuO(H,A,function(g){var u=Q.getAttribute(g);return!u||/[\[\{]/.test(g)?null:u}));
return function(g){var u=Mp,f=null;if(!g&&g!==document.all)return g;if(O!=null){var v=c[O],P=v.safeType;f=v.safeReplacement;P&&(u=K(g,P,Mp));u===Mp&&(v.filterString?(u=String(K(g,"STRING",g)),u=v.filterString(H,A,u)):v.filterRaw&&(u=v.filterRaw(H,A,g,Q)),u===f&&(u=Mp))}u===Mp&&(u=f||Zu,D&&D(!0,"Failed to sanitize attribute of <"+H+">: <"+H+" "+A+'="'+g+'">',Q));return u}}};
irf=function(x,G,D){return[,{filterRaw:function(K,z,y){return y},
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:uVn,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:uVn,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:Zu,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:dVE,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(K,z,y){y=
String(y).toLowerCase();return eHh(K,z,y)?y:Zu},
safeReplacement:Zu,safeType:void 0},,{filterRaw:void 0,filterString:function(K,z,y){return x.test(y)?y:Zu},
safeReplacement:Zu,safeType:"CONSTANT"},{filterRaw:function(K,z,y,c){if(typeof y==="string")var W=(W=y.match(wVL))?W.map(Ae$).filter(Boolean):[];else if(Array.isArray(y))W=y;else return uVn;var e=W;W=[];var Q=[],p={};if(Array.isArray(e))for(var V=0,L=e.length;V<L;++V){var r=e[V],H=r&&r.url;if(H){var O=G(H,"URL",p);if(O){var A=O!==p;(A?W:Q).push({url:A?O:H,metadata:r.metadata})}}}else Q.push(e);e=Q.length?JSON.stringify(Q):null;Q=Mp;if(W.length){if(!Array.isArray(W))throw Error();Q=W.map(R0L).filter(Boolean).join(" , ")||
Mp}e&&D&&D(!0,"Failed to sanitize attribute value of <"+K+">: <"+K+" "+z+'="'+y+'">: '+e,c);return Q===Mp?uVn:Q},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
qkn=function(x){var G=gpD(x);return function(D,K,z,y){return y||y===document.all?G(D,K,z)(y):y}};
Qz=function(x,G){function D(){function z(W,e,Q){for(e=Reflect.getMetadata("parameters",W)||[];e.length<=Q;)e.push(null);e[Q]=e[Q]||[];e[Q].push(c);Reflect.defineMetadata(e,W);return W}
var y=_.rC.apply(0,arguments);if(this instanceof D)return K.apply(this,y),this;var c=new (Function.prototype.bind.apply(D,[null].concat(_.B5(y))));z.annotation=c;return z}
var K=NPC(G);D.prototype.toString=function(){return"@"+x};
return D.annotationCls=D};
NPC=function(x){return function(){var G=_.rC.apply(0,arguments),D=this;x.forEach(function(K,z){z=G[z];if(Array.isArray(K))D[K[0]]=z&&z!==void 0?z:K[1];else for(var y in K)D[y]=z&&z[y]!==void 0?z[y]:K[y]})}};
vp3=function(x){return x!==void 0&&x!==null};
Vz=function(x){if(typeof x==="string")return x;if(x===void 0||x===null)return""+x;if(x.overriddenName)return x.overriddenName;if(x.name)return x.name;x=x.toString();var G=x.indexOf("\n");return G===-1?x:x.substring(0,G)};
Jef=function(x){x.__forward_ref__=Jef;x.toString=function(){return Vz(this())};
return x};
bx=function(x){return typeof x==="function"&&x.hasOwnProperty("__forward_ref__")&&x.__forward_ref__===Jef?x():x};
fhL=function(x){return x?x.map(function(G){return new (Function.prototype.bind.apply(G.type.annotationCls,[null].concat(_.B5(G.args?G.args:[]))))}):[]};
tI$=function(x){for(var G=[],D=0;D<x.length;++D){if(G.indexOf(x[D])>-1){G.push(x[D]);break}G.push(x[D])}return G};
kKO=function(x){return x.length>1?" ("+tI$(x.slice().reverse()).map(function(G){return Vz(G.token)}).join(" -> ")+")":""};
EpP=function(x,G,D,K){if(K){var z=Error("Ue``"+(K instanceof Error?K.message:K));z.ngOriginalError=K}else z=Error();z.addKey=PrQ;z.keys=[G];z.injectors=[x];z.constructResolvingMessage=D;z.message=z.constructResolvingMessage();z.ngOriginalError=K;return z};
PrQ=function(x,G){this.injectors.push(x);this.keys.push(G);this.message=this.constructResolvingMessage()};
h0L=function(x,G){return EpP(x,G,function(){return"No provider for "+Vz(this.keys[0].token)+"!"+kKO(this.keys)})};
x2D=function(x,G){return EpP(x,G,function(){return"Cannot instantiate cyclic dependency!"+kKO(this.keys)})};
GEC=function(x,G,D){return EpP(x,D,function(){var K=Vz(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+K+"!"+kKO(this.keys)+"."},G)};
D2L=function(x,G){for(var D=[],K=0,z=G.length;K<z;K++){var y=G[K];y&&y.length!=0?D.push(y.map(Vz).join(" ")):D.push("?")}return Error("Ye`"+Vz(x)+"`"+D.join(", ")+"`"+Vz(x))};
cZE=function(x){var G=void 0,D=void 0;if(x&&x.useClass!==void 0){G=x.useClass;var K=bx(x.useClass);var z=Kqn.factory(K);K=zsf(K)}else x&&x.useExisting!==void 0?(z=function(y){return y},K=[aFd(LC.get(bx(x.useExisting)))]):x&&x.useFactory!==void 0?(z=x.useFactory,K=o23(x.useFactory,x.deps)):(D=x.useValue,z=function(){return x.useValue},K=yZh);
return new lF3(z,K,G,D)};
WqO=function(x){return new TgQ(LC.get(bx(x.provide)),[cZE(x)],x.multi)};
ZXh=function(x){x=es3(x,[]).map(WqO);for(var G=new Map,D=0;D<x.length;D++){var K=x[D],z=G.get(K.key.id);if(z){if(K.multiProvider!==z.multiProvider)throw Error("$e`"+z+"`"+K);if(K.multiProvider)for(var y=0;y<K.resolvedFactories.length;y++)z.resolvedFactories.push(K.resolvedFactories[y]);else G.set(K.key.id,K)}else z=void 0,K.multiProvider?z=new TgQ(K.key,K.resolvedFactories.slice(),K.multiProvider):z=K,G.set(K.key.id,z)}return Array.from(G.values())};
es3=function(x,G){x.forEach(function(D){if(D instanceof Mwh)G.push({provide:D,useClass:D});else if(D&&typeof D=="object"&&D.provide!==void 0)G.push(D);else if(D instanceof Array)es3(D,G);else throw Error("Xe`"+D);});
return G};
o23=function(x,G){if(G){var D=G.map(function(K){return[K]});
return G.map(function(K){return QmP(x,K,D)})}return zsf(x)};
zsf=function(x){var G=Kqn.parameters(x);if(!G)return[];if(G.some(function(D){return D==null}))throw D2L(x,G);
return G.map(function(D){return QmP(x,D,G)})};
QmP=function(x,G,D){var K=null,z=!1;if(!Array.isArray(G))return G instanceof p_n?VwP(G.token,z,null):VwP(G,z,null);for(var y=null,c=0;c<G.length;++c){var W=G[c];if(W instanceof Mwh)K=W;else if(W instanceof p_n)K=W.token;else if(W instanceof bX$)z=!0;else if(W instanceof LqV||W instanceof Bgn)y=W}K=bx(K);if(K!=null)return VwP(K,z,y);throw D2L(x,D);};
VwP=function(x,G,D){return new rZh(LC.get(bx(x)),G,D)};
smO=function(x,G){for(var D=Array(x.providers.length),K=0;K<x.providers.length;++K){var z=K;if(K<0||K>=x.providers.length)throw Error("Ze`"+K);D[z]=G(x.providers[K])}return D};
Yxn=function(x){return typeof x==="function"&&Kqn.parameters(x).every(function(G){return!!G})};
$2Q=function(x){var G=m2L;HXC.get(x)||HXC.set(x,new G);return HXC.get(x)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(x){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(x)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(x){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(x)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(x,G){var D,K;if(x.contains(G))return!0;x=_.By(x).querySelectorAll("content,slot");for(D=0;D<x.length;++D){var z=_.By(x[D]).getDistributedNodes();for(K=0;K<z.length;++K)if(z[K].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(z[K],G))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(x){x.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(x)&&x.preventDefault();x.targetTouches&&(x=x.targetTouches[0],FqP=x.pageX,Cd3=x.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 x=0,G=r5.length;x<G;x++)document.addEventListener(r5[x],_._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 x=0,G=r5.length;x<G;x++)document.removeEventListener(r5[x],_._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(x){var G=_.By(x).rootTarget;x.type!=="touchmove"&&IFD!==G&&(IFD=G,jmh=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.By(x).path));if(!jmh.length)return!0;if(x.type==="touchstart")return!1;x=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(x);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(jmh,x.deltaX,x.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(x){for(var G=[],D=x.indexOf(OXC),K=0;K<=D;K++)if(x[K].nodeType===Node.ELEMENT_NODE){var z=x[K],y=z.style;y.overflow!=="scroll"&&y.overflow!=="auto"&&(y=window.getComputedStyle(z));y.overflow!=="scroll"&&y.overflow!=="auto"||G.push(z)}return G};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(x,G,D){if(G||D)for(var K=Math.abs(D)>=Math.abs(G),z=0;z<x.length;z++){var y=x[z];if(K?D<0?y.scrollTop>0:y.scrollTop<y.scrollHeight-y.clientHeight:G<0?y.scrollLeft>0:y.scrollLeft<y.scrollWidth-y.clientWidth)return y}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(x){var G={deltaX:x.deltaX,deltaY:x.deltaY};"deltaX"in x||("wheelDeltaX"in x&&"wheelDeltaY"in x?(G.deltaX=-x.wheelDeltaX,G.deltaY=-x.wheelDeltaY):"wheelDelta"in x?(G.deltaX=0,G.deltaY=-x.wheelDelta):"axis"in x?(G.deltaX=x.axis===1?x.detail:0,G.deltaY=x.axis===2?x.detail:0):x.targetTouches&&(x=x.targetTouches[0],G.deltaX=FqP-x.pageX,G.deltaY=Cd3-x.pageY));return G};
X_E=function(x){this.element=x;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
U2L=function(x){this.element=x;this.color=window.getComputedStyle(x).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");_.By(this.waveContainer).appendChild(this.wave);AZL(this)};
sf=function(x,G){for(var D in x)if(D.toLowerCase()===G.toLowerCase())return x[D]};
RsO=function(x,G){for(var D in x)if(D.toLowerCase()===G.toLowerCase()){delete x[D];break}};
n2D=function(x){x=_.YS.clone(x);for(var G=0;G<SxL.length;++G){var D=SxL[G],K=sf(x,D);K&&(x["X-Goog-Upload-Header-"+D]=K,RsO(x,D))}return x};
iXE=function(x){x=_.YS.clone(x);RsO(x,"X-Goog-Upload-Status")};
u$n=function(x){return g23.some(function(G){return G.test(x)})};
NgD=function(x,G){var D;var K=(D=x.formContent)==null?void 0:D.locale;D=K==null?void 0:K.split("-")[0];K=K&&d2h.includes(K)?K:D&&d2h.includes(D)?D:void 0;K=(K!=null?K:"en").replaceAll("-","_").toLowerCase();var z;x=((z=x.initializationData)==null?0:z.useNightlyRelease)?"nightly":"live";var y;return(G==null?0:(y=G.getEnableAlohaBinarySplit)==null?0:y.call(G))?_.xS(w_P,x):_.xS(qxh,x,K)};
JZn=function(x,G,D,K){if(v2V)return v2V;var z=NgD(x,K);return v2V=G.feedbackV2GlobalObject?Promise.resolve(G.feedbackV2GlobalObject):new Promise(function(y,c){var W=_.p4("SCRIPT");_.Sr(W,z);W.onload=function(){G.feedbackV2GlobalObject?y(G.feedbackV2GlobalObject):c(Error("cf"))};
W.onerror=function(){c(Error("df`"+z.toString()))};
D.body.appendChild(W)})};
twP=function(x,G,D,K){if(fFL)return fFL;var z=NgD(x,K);return fFL=G.feedbackV2GlobalObject?Promise.resolve(G.feedbackV2GlobalObject):new Promise(function(y,c){var W=_.p4("SCRIPT");_.Sr(W,z);W.onload=function(){G.feedbackV2GlobalObject?y(G.feedbackV2GlobalObject):c(Error("cf"))};
W.onerror=function(){c(Error("df`"+z.toString()))};
D.body.appendChild(W)})};
kEQ=function(x,G,D,K,z){z=z===void 0?!0:z;var y,c,W,e,Q;return _.T(function(p){switch(p.nextAddress){case 1:return y=Date.now(),_.Z(p,JZn(x,D,K,G),2);case 2:c=p.yieldResult;if(!(z||((e=x.initializationData)==null?0:e.useNightlyRelease)||((Q=x.initializationData)==null?0:Q.isLocalServer))){W=c.initializeFeedbackClient(x,y,G);p.jumpTo(3);break}return _.Z(p,c.initializeFeedbackClientAsync(x,y,G),4);case 4:W=p.yieldResult;case 3:return W.initiateAloha(),p.return(W)}})};
PdL=function(x,G,D,K){var z,y,c;return _.T(function(W){if(W.nextAddress==1)return z=Date.now(),_.Z(W,twP(x,D,K.document,G),2);if(W.nextAddress!=3)return y=W.yieldResult,_.Z(W,y.initializeFeedbackClientAsync(x,z,G,K),3);c=W.yieldResult;c.initiateAloha();return W.return(c)})};
E2f=function(x,G,D){var K=!0;K=K===void 0?!0:K;var z,y,c,W,e,Q,p,V,L,r;return _.T(function(H){z=D||_.Df;if((y=G)==null?0:(W=(c=y).getEnableAlohaBinarySplit)==null?0:W.call(c)){e=z;if(e.isFormOpened)throw Q=Error("ef"),Q.name="DuplicateFormError",Q;e.isFormOpened=!0;x.callbacks=x.callbacks||{};p=x.callbacks.onClose||function(){};
x.callbacks.onClose=function(O){e.isFormOpened=!1;p(O)};
try{return H.return(PdL(x,G,e,z))}catch(O){throw e.isFormOpened=!1,O;}}else{V=z;if(V.isFormOpened)throw L=Error("ef"),L.name="DuplicateFormError",L;V.isFormOpened=!0;x.callbacks=x.callbacks||{};r=x.callbacks.onClose||function(){};
x.callbacks.onClose=function(O){V.isFormOpened=!1;r(O)};
try{return H.return(kEQ(x,G,V,z.document,K))}catch(O){throw V.isFormOpened=!1,O;}}_.c5(H)})};
K5f=function(x,G){return _.T(function(D){return D.return(new Promise(function(K){var z=hsD(G!=null?G:"")+"/aloha_form_properties?productId="+x;x_V(z,function(y){y=y.target;var c=null;try{var W=JSON,e=W.stringify;if(y.JSC$7807_xhr_){var Q=y.JSC$7807_xhr_.responseText;Q.indexOf(")]}'\n")==0&&(Q=Q.substring(5));var p=(0,_.Ym)(Q)}else p=void 0;c=KzV(G2f,e.call(W,p))}catch(V){e=new G2f,p=D_D(),p=_.mb(p,13,!1),p=_.mb(p,14,!0),p=_.mb(p,15,!0),p=_.mb(p,20,!1),c=_.GW(e,1,p)}K(c)},"GET","",{},2E3,!0)}))})};
hsD=function(x){return u$n(x)?x:"https://www.google.com/tools/feedback"};
y3n=function(x){x=x.match(new RegExp(zyf,"gi"))||[];x=_.l(x);for(var G=x.next();!G.done;G=x.next()){G=G.value;a:{var D=_.l(azV);for(var K=D.next();!K.done;K=D.next())if(K.value.test(G)){D=!1;break a}D=!0}if(!D)a:{D=_.l(ohd);for(K=D.next();!K.done;K=D.next())if(K.value.test(G)){D=!0;break a}D=!1}if(D)return!0}return!1};
lzd=function(x){switch(x){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"}};
TiC=function(x){if(window.crypto&&window.crypto.getRandomValues)try{var G=Array(x),D=new Uint8Array(x);window.crypto.getRandomValues(D);for(var K=0;K<G.length;K++)G[K]=D[K];return G}catch(y){}G=Array(x);for(D=0;D<x;D++){K=Date.now();for(var z=0;z<K%23;z++)G[D]=Math.random();G[D]=Math.floor(Math.random()*256)}if(c3h)for(D=1,K=0;K<c3h.length;K++)G[D%x]^=G[(D-1)%x]/4^c3h.charCodeAt(K),D++;return G};
Hy=function(x){x=TiC(x);for(var G=[],D=0;D<x.length;D++)G.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(x[D]&63));return G.join("")};
ey3=function(x){x&&_.Fv("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:W5f,clientScreenNonce:x})};
Zwd=function(x){return _.Am("client-screen-nonce-store",{})[x===void 0?0:x]};
MHL=function(x,G){G=G===void 0?0:G;var D=_.Am("client-screen-nonce-store");D||(D={},_.XQ("client-screen-nonce-store",D));D[G]=x};
QYP=function(x){x=x===void 0?0:x;return x===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+x};
pA$=function(x){return _.Am(QYP(x===void 0?0:x))};
_.Fx=function(x){return(x=pA$(x===void 0?0:x))?new _.$m({veType:x,youtubeData:void 0,jspbYoutubeData:void 0}):null};
VHO=function(){var x=_.Am("csn-to-ctt-auth-info");x||(x={},_.XQ("csn-to-ctt-auth-info",x));return x};
bwV=function(){return Object.values(_.Am("client-screen-nonce-store",{})).filter(function(x){return x!==void 0})};
_.CC=function(x){x=Zwd(x===void 0?0:x);if(!x&&!_.Uo("USE_CSN_FALLBACK",!0))return null;x||(x="UNDEFINED_CSN");return x?x:null};
Bin=function(x){for(var G=_.l(Object.values(L5E)),D=G.next();!D.done;D=G.next())if(_.CC(D.value)===x)return!0;return!1};
r3L=function(x,G,D){var K=VHO();(D=_.CC(D))&&delete K[D];G&&(K[x]=G)};
IZ=function(x){return VHO()[x]};
_.jq=function(x,G,D,K){D=D===void 0?0:D;if(x!==Zwd(D)||G!==_.Am(QYP(D)))if(r3L(x,K,D),MHL(x,D),_.XQ(QYP(D),G),G=function(){setTimeout(function(){ey3(x)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(G)}catch(z){G()}else G()};
sYf=function(x,G){G=G===void 0?"":G;var D=[],K;for(K in x)if(x.hasOwnProperty(K)){var z=G!==""?G+"."+K:K;typeof x[K]==="object"?D.push.apply(D,_.B5(sYf(x[K],z))):D.push([z,x[K]])}D.sort();return D};
_.m_Q=function(x){var G=_.rC.apply(1,arguments);if(!Of(x)||G.some(function(K){return!Of(K)}))throw Error("ff");
G=_.l(G);for(var D=G.next();!D.done;D=G.next())YRD(x,D.value)};
YRD=function(x,G){for(var D in G)if(Of(G[D])){if(D in x&&!Of(x[D]))throw Error("gf");D in x||(x[D]={});YRD(x[D],G[D])}else if(Hwd(G[D])){if(D in x&&!Hwd(x[D]))throw Error("hf");D in x||(x[D]=[]);$_P(x[D],G[D])}else x[D]=G[D];return x};
$_P=function(x,G){G=_.l(G);for(var D=G.next();!D.done;D=G.next())D=D.value,Of(D)?x.push(YRD({},D)):Hwd(D)?x.push($_P([],D)):x.push(D);return x};
Of=function(x){return typeof x==="object"&&!Array.isArray(x)};
Hwd=function(x){return typeof x==="object"&&Array.isArray(x)};
CvO=function(x){for(var G=_.l(Object.entries(F5Q)),D=G.next();!D.done;D=G.next())if(D=_.l(D.value),D.next(),D=D.next().value,D==="SLI_STATUS_"+x)return D;return"SLI_STATUS_UNKNOWN"};
_.Xx=function(x,G,D,K){return Izd(x,G,function(){return new _.jYf(x,G,D,K)})};
_.Own=function(){return _.Xx("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
XAP=function(){return _.Xx("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
A$=function(){return _.Xx("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
A33=function(){return _.Xx("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
U_O=function(){return _.Xx("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
RyQ=function(){return _.Xx("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
iwE=function(x){x&&(x.dataset?x.dataset[SR$()]="true":_.iH([_.Es(nhf)],x,"data-loaded","true".toString()))};
ghL=function(x){return x?x.dataset?x.dataset[SR$()]:x.getAttribute("data-loaded"):null};
SR$=function(){return u6E.loaded||(u6E.loaded="loaded".replace(/\-([a-z])/g,function(x,G){return G.toUpperCase()}))};
_.Uf=function(x,G,D){d_P(x,G,D===void 0?null:D)};
_.qRn=function(x,G){x&&G&&(x=""+_.Do(G),(x=wAL[x])&&_.JSn(x))};
d_P=function(x,G,D){D=D===void 0?null:D;var K=_.NiE(x),z=document.getElementById(K),y=z&&ghL(z),c=z&&!y;y?G&&G():(G&&(y=_.z1(K,G),G=""+_.Do(G),wAL[G]=y),c||(z=vhd(x,K,function(){ghL(z)||(iwE(z),_.fDD(K),_.oA(function(){_.kUQ(K)},0))},D)))};
vhd=function(x,G,D,K){K=K===void 0?null:K;var z=_.p4("SCRIPT");z.id=G;z.onload=function(){D&&setTimeout(D,0)};
z.onreadystatechange=function(){switch(z.readyState){case "loaded":case "complete":z.onload()}};
K&&z.setAttribute("nonce",K);_.Sr(z,_.$a(x));x=document.getElementsByTagName("head")[0]||document.body;x.insertBefore(z,x.firstChild);return z};
_.NiE=function(x){var G=document.createElement("a");mu(G,x);return"js-"+RZ(G.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
J3Q=function(x){var G=_.Am("INNERTUBE_HOST_OVERRIDE");G&&(x=String(G)+String(_.Sq(x)));return x};
fzV=function(x){var G={};_.B("json_condensed_response")&&(G.prettyPrint="false");return x=VSh(x,G)};
_.nC=function(x){return tm(x)?"same-origin":"include"};
_.ix=function(x){return tm(x)?"same-origin":"cors"};
g5=function(x,G,D){D=D===void 0?{}:D;x={method:G===void 0?"POST":G,mode:_.ix(x),credentials:_.nC(x)};G={};for(var K=_.l(Object.keys(D)),z=K.next();!z.done;z=K.next())z=z.value,D[z]&&(G[z]=D[z]);Object.keys(G).length>0&&(x.headers=G);return x};
_.ux=function(x,G){G=G===void 0?{}:G;return"service:"+x+"/"+Object.keys(G).sort().map(function(D){return D+":"+G[D]}).join("/")};
tHh=function(x){var G,D,K,z;x=(G=_.Y(x,_.d5))==null?void 0:(D=G.watchEndpointSupportedOnesieConfig)==null?void 0:(K=D.html5PlaybackOnesieConfig)==null?void 0:(z=K.commonConfig)==null?void 0:z.url;if(!x)return[];G=new _.w5(x);return G.JSC$8039_domain_?["https://"+G.JSC$8039_domain_+"/generate_204"]:[]};
_.EhP=function(){return k2D()||r$O()||PvP&&j_("version/")?!0:_.Am("EOM_VISITOR_DATA")?!1:!0};
hyQ=function(x){var G=x.docid||x.video_id||x.videoId||x.id;if(G)return G;G=x.raw_player_response;G||(x=x.player_response)&&(G=JSON.parse(x));return G&&G.videoDetails&&G.videoDetails.videoId||null};
x93=function(x){return x.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
qp=function(x){return!isNaN(Number(x))&&!_.y3(x)};
_.vy=function(x,G,D,K){K=K===void 0?!0:K;var z=_.Am("VALID_SESSION_TEMPDATA_DOMAINS",[]),y=_.Jm(window.location.href);y&&z.push(y);y=_.Jm(x);if(_.qL(z,y)||!y&&_.zd(x,"/"))if(z=document.createElement("a"),mu(z,x),x=z.href)if(x=_.Sq(x),x=_.Np(x))K&&!G.csn&&(G.itct||G.ved)&&(G=Object.assign({csn:_.CC()},G)),D?(D=parseInt(D,10),isFinite(D)&&D>0&&GXf(x,G,D)):GXf(x,G)};
KRV=function(x){var G=_.Am("VALID_SESSION_TEMPDATA_DOMAINS",[]),D=_.Jm(window.location.href);D&&G.push(D);D=_.Jm(x);if(!(_.qL(G,D)||!D&&_.zd(x,"/")))return null;x=_.Sq(x);(x=_.Np(x))?(x=D9D(x),x=(x=_.MU.get(x,void 0)||null)?_.dT(x):{}):x=null;return x};
GXf=function(x,G,D){x=D9D(x);G=G?_.W0(G):"";D=D||5;_.EhP()&&_.QR(x,G,D)};
D9D=function(x){for(var G=_.l(zAC),D=G.next();!D.done;D=G.next())x=_.J$(x,D.value);return"ST-"+RZ(x).toString(36)};
aC3=function(x,G){x.commandMetadata&&_.Y(x.commandMetadata,_.fC)&&_.Y(x.commandMetadata,_.fC).url&&(x=_.wT(_.Y(x.commandMetadata,_.fC).url).adurl)&&_.L7Q(x)&&_.vy(_.Sq(x),{encoded_ad_playback_context:G})};
_.oJf=function(x){if(x.requestFullscreen)x=x.requestFullscreen(void 0);else if(x.webkitRequestFullscreen)x=x.webkitRequestFullscreen();else if(x.mozRequestFullScreen)x=x.mozRequestFullScreen();else if(x.msRequestFullscreen)x=x.msRequestFullscreen();else if(x.webkitEnterFullscreen)x=x.webkitEnterFullscreen();else return Promise.reject(Error("rf"));return x instanceof Promise?x:Promise.resolve()};
_.km=function(x){var G;_.UBd(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.t$()==x&&(G=document):G=x;if(G&&(x=_.UBd(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],G))){x.call(G)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.t$=function(){var x=x===void 0?!1:x;var G=_.UBd(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(x)for(;G&&G.shadowRoot;)G=G.shadowRoot.fullscreenElement;return G?G:null};
_.Py=function(x,G){G=G===void 0?!0:G;x.addEventListener("wheel",yxh);x.overscrollConfig={cooldown:G}};
_.Ef=function(x){x.overscrollConfig=void 0;x.removeEventListener("wheel",yxh)};
yxh=function(x){var G=x.deltaY,D=x.target,K=null;if(window.Polymer&&window.Polymer.Element){if(D=x.path||x.composedPath&&x.composedPath()){D=_.l(D);for(var z=D.next();!z.done&&(z=z.value,!lCf(z,G));z=D.next())if(z.overscrollConfig){K=z;break}}}else for(;D&&!lCf(D,G);){if(D.overscrollConfig){K=D;break}D=D.parentElement}K&&(G=K.overscrollConfig,G.cooldown?(K=x.deltaY,D=G.lastDeltaY||0,G.lastDeltaY=K,z=G.lastStopped||0,D&&z&&D>0==K>0?Math.abs(D)>=Math.abs(K)?(K=z+1200,D=!1):(K=z+600,D=!0):(K=Date.now()+
600,D=!0),K>Date.now()&&(x.preventDefault(),D&&(G.lastStopped=Date.now()))):x.preventDefault())};
lCf=function(x,G){return G<0&&x.scrollTop>0||G>0&&x.scrollTop<x.scrollHeight-x.clientHeight-1?(x=getComputedStyle(x).overflowY,x=="auto"||x=="scroll"):!1};
_.h$=function(x,G,D,K){K||(K={bubbles:!0,cancelable:!1,composed:!0});D!==null&&D!==void 0&&(K.detail=D);var z=new CustomEvent(G,K);_.B("untrack_fire_custom_event_killswitch")?x.dispatchEvent(z):Wl(function(){return void x.dispatchEvent(z)});
return z};
_.xO=function(x,G,D,K){G=new cxP(G,!(K===void 0||!K),D);_.h$(x,"yt-action",G);return G.returnValue};
_.Gl=function(x,G,D){return _.xO(x,G,D,!0)};
_.Dq=function(x,G,D){return _.xO(x,G,D)[0]};
_.zl=function(x,G,D,K){G&&G.length&&G.forEach(function(z){var y=XhE(z);y&&(_.B("handle_service_request_actions")&&z.commandMetadata&&z.commandMetadata.webCommandMetadata&&z.commandMetadata.webCommandMetadata.sendPost?_.KW(D?D:x,[z]):_.Gl(x,y,[z,D,K]))})};
_.KW=function(x,G){var D=[x];G&&D.push.apply(D,G);G=_.xO(x,"yt-service-request",D);return G.length>0&&(G=G[0],_.h$(x,"yt-service-request-sent",G),G&&G.ajaxPromise)?(G.ajaxPromise.then(function(K){_.h$(x,"yt-service-request-completed",K)},function(K){_.h$(x,"yt-service-request-error",{error:K,
params:D})},x),G.ajaxPromise):_.aI()};
_.yg=function(x,G){if(_.B("handle_service_request_actions"))_.zl(G,x,G);else{x=_.l(x);for(var D=x.next();!D.done;D=x.next()){D=D.value;var K=void 0;((K=_.Y(D,_.oI))==null?0:K.commands)?_.yg(_.Y(D,_.oI).commands,G):(K=void 0,((K=_.Y(D,_.cg))==null?0:K.actions)?_.yg(_.Y(D,_.cg).actions,G):(K=void 0,((K=_.Y(D.commandMetadata,_.fC))==null?0:K.sendPost)?_.KW(G,[D]):_.zl(G,[D],G)))}}};
_.WRO=function(x,G,D){G=G===void 0?{}:G;typeof G==="function"&&(G={callback:G});D||G._c&&G._c.jsl&&G._c.jsl.h||_.YS.extend(G,{_c:{jsl:{h:_.Am("GAPI_HINT_PARAMS")}}});(G.gapiHintOverride||_.Am("GAPI_HINT_OVERRIDE"))&&(D=_.wT(document.location.href).gapi_jsh)&&_.YS.extend(G,{_c:{jsl:{h:D}}});TqL(x,G)};
_.Wg=function(x,G,D){G=G===void 0?{}:G;x=(x=x in Tl?Tl[x]:D)||"";D={};for(var K in G){D={key$jscomp$788:D.key$jscomp$788};D.key$jscomp$788=K;var z=function(y){return function(){return String(G[y.key$jscomp$788])}}(D);
x=x.replace(new RegExp("\\$\\{"+D.key$jscomp$788+"\\}","gi"),z);x=x.replace(new RegExp("\\$"+D.key$jscomp$788,"gi"),z)}return x};
_.e7=function(x,G){return eAL(x in Tl?Tl[x]:{},G)};
eAL=function(x,G){var D=_.Am("I18N_PLURAL_RULES");D||(D=function(K){return K==1?"one":"other"});
return(x=x["case"+G]||x[D(G)])?x.replace("#",G.toString()):G+""};
Q6E=function(x){var G=ZiO(x),D=document.getElementById(G),K=D&&ghL(D);K||D&&!K||(D=MuV(x,G,function(){if(!ghL(D)){iwE(D);_.fDD(G);var z=_.Zq(_.kUQ,G);_.oA(z,0)}}))};
MuV=function(x,G,D){var K=document.createElement("link");K.id=G;K.onload=function(){D&&setTimeout(D,0)};
x=_.$a(x);_.gC(K,x,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(K);return K};
ZiO=function(x){var G=_.p4("A");mu(G,WC(x));return"css-"+RZ(G.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.Vud=function(x){var G=p$f();x!==G&&(G=_.M5(),!_.B("web_autonav_allow_off_by_default")&&x||_.Qg(0,141,!0),_.Qg(0,140,!x),G.save())};
p$f=function(){var x=_.M5();return _.B("web_autonav_allow_off_by_default")&&!x.getFlag(141)&&_.Am("AUTONAV_OFF_BY_DEFAULT")?!1:!x.getFlag(140)};
bif=function(x,G){var D,K;x=((D=x.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(K=D.videoAuthorizationToken)==null?void 0:K.credentialTransferTokens)||[];for(D=0;D<x.length;++D)if(x[D].scope===G)return x[D].token||void 0};
LRC=function(x){for(var G=0,D=0;D<x.length;D++)G=G*31+x.charCodeAt(D),D<x.length-1&&(G%=0x800000000000);return G%1E5};
_.pW=function(x){return _.nT("ytcsi."+(x||"")+"data_")||Bqn(x)};
_.rxC=function(x){x=_.pW(x);x.metadata||(x.metadata={});return x.metadata};
_.s6C=function(x){x=_.pW(x);x.tick||(x.tick={});return x.tick};
_.Ytn=function(x){x=_.pW(x);if(x.gel){var G=x.gel;G.gelInfos||(G.gelInfos={});G.gelTicks||(G.gelTicks={})}else x.gel={gelTicks:{},gelInfos:{}};return x.gel};
_.m9O=function(x){x=_.Ytn(x);x.gelInfos||(x.gelInfos={});return x.gelInfos};
HiD=function(x){var G=_.pW(x).nonce;G||(G=Hy(16),_.pW(x).nonce=G);return G};
Bqn=function(x){var G={tick:{},info:{}};_.Jv("ytcsi."+(x||"")+"data_",G);return G};
$93=function(){var x=_.nT("ytcsi.debug");x||(x=[],_.Jv("ytcsi.debug",x),_.Jv("ytcsi.reference",{}));return x};
_.Clf=function(x){x=x||"";var G=FRL();if(G[x])return G[x];var D=$93(),K={timerName:x,info:{},tick:{},span:{},jspbInfo:[]};D.push(K);return G[x]=K};
ICh=function(x){x=x||"";var G=FRL();G[x]&&delete G[x];var D=$93(),K={timerName:x,info:{},tick:{},span:{},jspbInfo:[]};D.push(K);G[x]=K};
FRL=function(){var x=_.nT("ytcsi.reference");if(x)return x;$93();return _.nT("ytcsi.reference")};
_.OiO=function(x){return j6O[x]||"LATENCY_ACTION_UNKNOWN"};
RAE=function(x,G,D){D=D===void 0?{}:D;var K=!1;_.Uo("ytLoggingEventsDefaultDisabled",!1)&&(K=!0);K=K?null:mv;D=D===void 0?{}:D;var z=Math.round(D.timestamp||(0,_.kK)());_.bV(G,1,z<Number.MAX_SAFE_INTEGER?z:0);z=new X$C;if(D.lact)_.bV(z,1,isFinite(D.lact)?D.lact:-1);else if(D.timestamp)_.bV(z,1,-1);else{var y=_.xq();_.bV(z,1,isFinite(y)?y:-1)}if(D.sequenceGroup&&!_.B("web_gel_sequence_info_killswitch")){y=D.sequenceGroup;var c=o$f(y),W=new Axf;_.bV(W,2,c);_.Z_(W,1,y);_.GW(z,3,W);D.endOfSequence&&delete U9E[D.sequenceGroup]}_.GW(G,
33,z);(D.sendIsolatedPayload?e$O:Z7f)(x,{endpoint:"log_event",payload:G,cttAuthInfo:D.cttAuthInfo,dangerousLogToVisitorSession:D.dangerousLogToVisitorSession},K)};
_.b0=function(){return(_.B("csi_use_time_origin")||_.B("csi_use_time_origin_tvhtml5"))&&_.Vg.timeOrigin?Math.floor(_.Vg.timeOrigin):_.Vg.timing.navigationStart};
_.StP=function(x,G){_.LW("_start",x,G)};
_.sO=function(x,G){if(!_.B("web_csi_action_sampling_enabled")||!_.pW(G).actionDisabled){var D=_.Clf(G||"");_.m_Q(D.info,x);x.loadType&&(D=x.loadType,_.rxC(G).loadType=D);_.m_Q(_.m9O(G),x);D=HiD(G);G=_.pW(G).cttAuthInfo;nJQ().info(x,D,G)}};
iiO=function(){var x,G,D,K;return((K=_.Eo().resolve(_.P6(ru))==null?void 0:(x=aJD())==null?void 0:(G=x.loggingHotConfig)==null?void 0:(D=G.csiConfig)==null?void 0:D.debugTicks)!=null?K:[]).map(function(z){return Object.values(z)[0]})};
_.LW=function(x,G,D){if(!_.B("web_csi_action_sampling_enabled")||!_.pW(D).actionDisabled){var K=HiD(D),z;if(z=_.B("web_csi_debug_sample_enabled")&&K){(_.Eo().resolve(_.P6(ru))==null?0:aJD())&&!gJf&&(gJf=!0,_.LW("gcfl",(0,_.kK)(),D));var y,c,W;z=(_.Eo().resolve(_.P6(ru))==null?void 0:(y=aJD())==null?void 0:(c=y.loggingHotConfig)==null?void 0:(W=c.csiConfig)==null?void 0:W.debugSampleWeight)||0;if(y=z!==0)b:{y=iiO();if(y.length>0)for(c=0;c<y.length;c++)if(x===y[c]){y=!0;break b}y=!1}y?(z=LRC(K)%z!==
0,_.pW(D).debugTicksExcludedLogged||(y={},y.debugTicksExcluded=z,_.sO(y,D)),_.pW(D).debugTicksExcludedLogged=!0):z=!1}if(!z){x[0]!=="_"&&uud(x,D,G);z=_.Clf(D||"");z.tick[x]=G||(0,_.kK)();if(z.callback&&z.callback[x])for(z=_.l(z.callback[x]),y=z.next();!y.done;y=z.next())y=y.value,y();z=_.Ytn(D);z.gelTicks&&(z.gelTicks[x]=!0);y=_.s6C(D);z=G||(0,_.kK)();_.B("log_repeated_ytcsi_ticks")?x in y||(y[x]=z):y[x]=z;y=_.pW(D).cttAuthInfo;x==="_start"?nJQ().baseline(K,G,y):nJQ().tick(x,K,G,y);_.d9$(D);return z}}};
uud=function(x,G,D){if(_.Vg.mark)if(x.startsWith("mark_")||(x="mark_"+x),G&&(x+=" ("+G+")"),D===void 0||_.B("web_csi_disable_alt_time_performance_mark"))_.Vg.mark(x);else{D=_.B("csi_use_performance_navigation_timing")?D-_.Vg.timeOrigin:D-(_.Vg.timeOrigin||_.Vg.timing.navigationStart);try{_.Vg.mark(x,{startTime:D})}catch(K){}}};
w$d=function(){var x,G=(x=_.Vg.getEntriesByType)==null?void 0:x.call(_.Vg,"mark");G&&G.forEach(function(D){if(D.name.startsWith("mark_")){var K;(K=_.Vg.clearMarks)==null||K.call(_.Vg,D.name)}})};
_.qtd=function(){switch(ASO()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.NqV=function(x){var G={},D=function(y,c,W){c=c.match("_rid")?c.split("_rid")[0]:c;typeof W==="number"&&(W=JSON.stringify(W));y.requestIds?y.requestIds.push({endpoint:c,id:W}):y.requestIds=[{endpoint:c,id:W}]};
x=_.l(Object.entries(x));for(var K=x.next();!K.done;K=x.next()){var z=_.l(K.value);K=z.next().value;z=z.next().value;switch(K){case "GetBrowse_rid":D(G,K,z);break;case "GetGuide_rid":D(G,K,z);break;case "GetHome_rid":D(G,K,z);break;case "GetPlayer_rid":D(G,K,z);break;case "GetSearch_rid":D(G,K,z);break;case "GetSettings_rid":D(G,K,z);break;case "GetTrending_rid":D(G,K,z);break;case "GetWatchNext_rid":D(G,K,z);break;case "yt_red":G.isRedSubscriber=!!z;break;case "yt_ad":G.isMonetized=!!z}}return G};
_.vJV=function(x){var G=_.YO("aft",x);if(G)return G;G=_.Am((x||"")+"TIMING_AFT_KEYS",["ol"]);for(var D=G.length,K=0;K<D;K++){var z=_.YO(G[K],x);if(z)return z}return NaN};
_.Jxd=function(x,G){_.Jv("ytglobal.timing"+(G||"")+"ready_",x)};
_.YO=function(x,G){if(x=_.s6C(G)[x])return typeof x==="number"?x:x[x.length-1]};
_.d9$=function(x){var G=_.YO("_start",x),D=_.vJV(x),K=!fCD;G&&D&&K&&(yrh(tuf,new kXL(Math.round(D-G),x)),fCD=!0)};
EJP=function(x){Bqn(x);Pld();w$d();x||(_.Am("TIMING_ACTION")&&_.XQ("PREVIOUS_ACTION",_.Am("TIMING_ACTION")),_.XQ("TIMING_ACTION",""))};
_.hAL=function(x){x=x===void 0?{}:x;_.SR(function(){ms();ICh();EJP();_.Jxd(!1);x.cttAuthInfo&&(_.pW().cttAuthInfo=x.cttAuthInfo);_.XQ("TIMING_AFT_KEYS",[]);x.isHot?_.Hg({loadType:"hot"}):_.Hg({loadType:"warm"});_.XQ("TIMING_ACTION","");delete _.Am("TIMING_INFO",{}).yt_lt;_.SR(_.StP)(x.startTime,void 0)})()};
_.$O=function(x,G,D,K){G=G===void 0?{}:G;_.SR(function(){var z=D?D:x;xlP(z);var y=G.sampleRate;if(!_.B("web_csi_action_sampling_enabled")||y===void 0||y<=1)y=!1;else{var c=HiD(z);y=LRC(c)%y!==0}y&&(_.pW(z).actionDisabled=!0);_.Clf(z||"").info.actionType=x;G.cttAuthInfo&&(_.pW(z).cttAuthInfo=G.cttAuthInfo);_.XQ(z+"TIMING_ACTION",x);_.SR(_.StP)(G.startTime,z);y={actionType:K||_.OiO(x)};G.logPreviousAction&&(y.previousAction=_.OiO(_.Am("TIMING_ACTION")));(c=_.CC())&&c!=="UNDEFINED_CSN"&&(y.clientScreenNonce=
c);_.Hg(y,z);_.Jxd(!0,z)})()};
xlP=function(x){_.SR(function(){ms(x);ICh(x);EJP(x)})()};
Gsf=function(){_.SR(function(){var x=[],G;for(G in _.nT("ytcsi.".slice(0,-1)))G.endsWith("data_")&&x.push(G.slice(0,-5));x=_.l(x);for(G=x.next();!G.done;G=x.next())xlP(G.value);ms()})()};
_.KLL=function(x){return _.SR(function(){return _.Dlf("_start",x)})()};
_.Hg=function(x,G,D){_.SR(_.sO)(x,G,D===void 0?!1:D)};
_.Fs=function(x,G,D){return _.SR(_.LW)(x,G,D)};
_.Dlf=function(x,G){return _.SR(function(){var D=_.s6C(G);return x in D})()};
arO=function(x){if(!_.B("universal_csi_network_ticks"))return"";x=_.c0(x)||"";for(var G=Object.keys(zrh),D=0;D<G.length;D++){var K=G[D];if(x.includes(K))return K}return""};
yD$=function(x){if(!_.B("universal_csi_network_ticks"))return function(){};
var G=zrh[x];return G?(_.CW(G),function(){var D=_.B("universal_csi_network_ticks")?(D=oGD[x])?_.CW(D):!1:!1;return D}):function(){}};
_.CW=function(x,G,D){return _.SR(function(){if(_.Dlf(x,D))return!1;_.Fs(x,G,D);return!0})()};
_.II=function(x,G,D){_.SR(function(){if(!_.KLL(D)||_.Dlf(x,D))return!1;_.Fs(x,G,D);return!0})()};
_.j7=function(x){return _.SR(_.YO)(x,void 0)};
ms=function(x){_.KLL(x)&&_.Fs("aa",void 0,x)};
_.erf=function(x,G,D,K,z,y,c,W,e){var Q=lrC();W=new _.$m({veType:G,youtubeData:y,jspbYoutubeData:W});y=OO({},Q);z&&(y.cttAuthInfo=z);z={csn:Q,pageVe:W.getAsJson()};_.B("expectation_logging")&&e&&e.screenCreatedLoggingExpectations&&(z.screenCreatedLoggingExpectations=e.screenCreatedLoggingExpectations);D&&D.visualElement?(z.implicitGesture={parentCsn:D.clientScreenNonce,gesturedVe:D.visualElement.getAsJson()},c&&(z.implicitGesture.gestureType=c)):D&&_.O9(new _.LL("newScreen() parent element does not have a VE - rootVe",
G));K&&(z.cloneCsn=K);x?Yq("screenCreated",z,x,y):_.Fv("screenCreated",z,y);yrh(M5L,new cDD(Q));Xs.clear();TUf.clear();WLn.clear();return Q};
AN=function(x,G,D,K,z){ZyE(x,G,D,[K],z===void 0?!1:z)};
ZyE=function(x,G,D,K,z){z=z===void 0?!1:z;for(var y=OO({cttAuthInfo:IZ(G)||void 0},G),c=_.l(K),W=c.next();!W.done;W=c.next()){W=W.value;var e=W.getAsJson();(_.YS.isEmpty(e)||!e.trackingParams&&!e.veType)&&_.O9(Error("sf"));if(_.B("no_client_ve_attach_unless_shown")){var Q=MYP(W,G);if(e.veType&&!TUf.has(Q)&&!WLn.has(Q)&&!z){if(!_.B("il_attach_cache_limit")||Xs.size<1E3){Xs.set(Q,[x,G,D,W]);return}_.B("il_attach_cache_limit")&&Xs.size>1E3&&_.O9(new _.LL("IL Attach cache exceeded limit"))}W=MYP(D,G);
Xs.has(W)?QbD(D,G):WLn.set(W,!0)}}K=K.filter(function(p){p.csn!==G?(p.csn=G,p=!0):p=!1;return p});
D={csn:G,parentVe:D.getAsJson(),childVes:_.Hu(K,function(p){return p.getAsJson()})};
G==="UNDEFINED_CSN"?UO("visualElementAttached",y,D):x?Yq("visualElementAttached",D,x,y):_.Fv("visualElementAttached",D,y)};
VYO=function(x,G,D,K,z){pR$(x,G,D,z)};
pR$=function(x,G,D,K){byL(D,G);var z=OO({cttAuthInfo:IZ(G)||void 0},G);D={csn:G,ve:D.getAsJson(),eventType:1};K&&(D.clientData=K);G==="UNDEFINED_CSN"?UO("visualElementShown",z,D):x?Yq("visualElementShown",D,x,z):_.Fv("visualElementShown",D,z)};
LLC=function(x,G,D,K){byL(D,G);var z=OO({cttAuthInfo:IZ(G)||void 0},G);D={csn:G,ve:D.getAsJson(),eventType:4};K&&(D.clientData=K);G==="UNDEFINED_CSN"?UO("visualElementShown",z,D):x?Yq("visualElementShown",D,x,z):_.Fv("visualElementShown",D,z)};
BUn=function(x,G,D,K,z){var y=(K=K===void 0?!1:K)?16:8;K=OO({cttAuthInfo:IZ(G)||void 0,endOfSequence:K},G);D={csn:G,ve:D.getAsJson(),eventType:y};z&&(D.clientData=z);G==="UNDEFINED_CSN"?UO("visualElementHidden",K,D):x?Yq("visualElementHidden",D,x,K):_.Fv("visualElementHidden",D,K)};
sbn=function(x,G,D,K,z){rDL(x,G,D,void 0,K,z)};
rDL=function(x,G,D,K,z){byL(D,G);K=K||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var y=OO({cttAuthInfo:IZ(G)||void 0},G);D={csn:G,ve:D.getAsJson(),gestureType:K};z&&(D.clientData=z);G==="UNDEFINED_CSN"?UO("visualElementGestured",y,D):x?Yq("visualElementGestured",D,x,y):_.Fv("visualElementGestured",D,y)};
Yq3=function(x,G,D,K){var z=OO({cttAuthInfo:IZ(G)||void 0},G);D={csn:G,ve:D.getAsJson(),clientData:K};G==="UNDEFINED_CSN"?UO("visualElementStateChanged",z,D):x?Yq("visualElementStateChanged",D,x,z):_.Fv("visualElementStateChanged",D,z)};
mlL=function(){var x=TiC(16);for(var G=[],D=0;D<x.length;D++)G.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(x[D]&63));return G.join("")};
UO=function(x,G,D){Hyf.push({payloadName:x,payload:D,jspbPayload:void 0,options:G});$l3||($l3=pkh())};
Z3Q=function(x){if(Hyf){for(var G=_.l(Hyf),D=G.next();!D.done;D=G.next())D=D.value,D.payload&&(D.payload.csn=x.csn,_.Fv(D.payloadName,D.payload,D.options));Hyf.length=0}$l3=0};
MYP=function(x,G){return""+x.getAsJson().veType+x.getAsJson().veCounter+G};
byL=function(x,G){if(_.B("no_client_ve_attach_unless_shown")){var D=MYP(x,G);TUf.set(D,!0);QbD(x,G)}};
QbD=function(x,G){x=MYP(x,G);Xs.has(x)&&(G=Xs.get(x)||[],AN(G[0],G[1],G[2],G[3],!0),Xs.delete(x))};
OO=function(x,G){_.B("log_sequence_info_on_gel_web")&&(x.sequenceGroup=G);return x};
_.RI=function(x,G,D){_.SR(AN)(void 0,x,G,D)};
_.S7=function(x,G,D){_.SR(ZyE)(void 0,x,G,D)};
_.nW=function(x,G){_.SR(VYO)(void 0,x,G,void 0,void 0,void 0)};
_.i0=function(x,G,D){_.SR(function(){_.uM(G,function(K){LLC(void 0,x,K,D)})})()};
_.gB=function(x,G,D,K){_.SR(function(){_.uM(G,function(z){BUn(void 0,x,z,D,K)})})()};
_.u0=function(x,G,D){_.SR(sbn)(void 0,x,G,D,void 0)};
_.dB=function(x,G,D,K){_.SR(rDL)(void 0,x,G,D,K,void 0)};
_.wB=function(x,G,D){_.SR(Yq3)(void 0,x,G,D,void 0)};
N5=function(x){return q5.get(x)};
FLf=function(x,G){q5.set(x,G)};
CGd=function(x,G){var D=Object.keys(x);x=new _.LL("[Command Handler] "+G,{filteredCommandNames:D,originalCommand:x});_.I4(x)};
Ird=function(x,G){CGd(x,G+" was called but not set")};
jbC=function(x){return function(){return new x}};
vg=function(x){return function(){return _.Eo().resolve(x)}};
OyL=function(x,G){var D=_.Y(x,_.Sm);if(D&&(D=G[D.signal]))return D();x=_.l(Object.keys(x));for(D=x.next();!D.done;D=x.next())if(D=D.value,G[D]&&(D=G[D]))return D()};
JN=function(x,G,D,K){return{browseEndpoint:{browseId:x},commandMetadata:{webCommandMetadata:{url:G,rootVe:D,webPageType:K===void 0?"WEB_PAGE_TYPE_BROWSE":K}}}};
XRE=function(x,G,D){var K=G=G===void 0?0:G;D=D===void 0?0:D;var z=D-K;return _.fW(x,"PPSV",void 0,void 0,(z>600?0:z<60||D<=0||K/D>.9)?0:G)};
_.fW=function(x,G,D,K,z){var y="/watch?v="+x;x={videoId:x};G&&(x.playlistId=G,y+="&list="+G);K&&(y+="&pp="+K);z&&(x.startTimeSeconds=z,y+="&t="+z+"s");G={watchEndpoint:x,commandMetadata:{webCommandMetadata:{url:y,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};D&&(G.clickTrackingParams=D);K&&(_.Y(G,_.d5).playerParams=K);return G};
ADV=function(x){return{browseEndpoint:{browseId:"VL"+x},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+x,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
UlV=function(x){if(x){var G;if(x){var D=(G=_.Y(x.commandMetadata,_.fC))==null?void 0:G.url;G=!(!D||D==="/service_ajax")}else G=!1;if(G)return x;var K;if(x=(K=_.Y(x,_.oI))==null?void 0:K.commands)for(K=_.l(x),x=K.next();!x.done;x=K.next())if(x=UlV(x.value))return x}};
_.tN=function(x){return{runs:[{text:x}]}};
RrQ=function(x,G){return x&&G?{runs:[{text:x,navigationEndpoint:G}]}:void 0};
kO=function(x){return x?_.tN(x):void 0};
_.Pg=function(x){return x?{simpleText:x}:void 0};
_.EO=function(x){var G=x.type;x=x.payload;G={type:G};x!==void 0&&(G.payload=x);return G};
SqP=function(x,G,D){for(var K=Object.assign({},x),z=_.l(Object.keys(G)),y=z.next();!y.done;y=z.next()){y=y.value;var c=x[y],W=G[y];if(W===void 0)delete K[y];else if(c===void 0)K[y]=W;else if(Array.isArray(W)&&Array.isArray(c))K[y]=D?[].concat(_.B5(c),_.B5(W)):W;else if(!Array.isArray(W)&&_.G7(W)&&!Array.isArray(c)&&_.G7(c))K[y]=SqP(c,W,D);else if(typeof W===typeof c)K[y]=W;else return G=new _.LL("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:y,originalValue:c,updateValue:W}),
_.I4(G),x}return K};
gGn=function(x){if(!x.length)return"";try{if(nGE)return nGE.decode(x);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(x)}catch(c){}for(var G=0,D=[],K=x.length;G<K;){for(var z=0;z<1024&&G<K;){var y=x[G++];if(y<128)iyL[z++]=y;else{if(y<224)y=(y&31)<<6|x[G++]&63;else if(y<240)y=(y&15)<<12|(x[G++]&63)<<6|x[G++]&63;else{if(z+1===1024){--G;break}y=(y&7)<<18|(x[G++]&63)<<12|(x[G++]&63)<<6|x[G++]&63;y-=65536;iyL[z++]=55296|y>>10;y=56320|y&1023}iyL[z++]=y}}y=String.fromCharCode.apply(String,
iyL);z<1024&&(y=y.substring(0,z));D.push(y)}return D.join("")};
dlL=function(x,G){var D;if((D=uCE)==null?0:D.encodeInto)return G=uCE.encodeInto(x,G),G.read<x.length?x.length*4:G.written;for(var K=D=0;K<x.length;K++){var z=x.charCodeAt(K);z<128?G[D++]=z:(z<2048?G[D++]=z>>6|192:((z&64512)===55296&&K+1<x.length&&(x.charCodeAt(K+1)&64512)===56320?(z=65536+((z&1023)<<10)+(x.charCodeAt(++K)&1023),G[D++]=z>>18|240,G[D++]=z>>12&63|128):G[D++]=z>>12|224,G[D++]=z>>6&63|128),G[D++]=z&63|128)}return D};
wRP=function(x,G){x=new Uint8Array(x);G&&x.set(G);return x};
_.x_=function(x){x=new qqL(new NUf([_.eZ(decodeURIComponent(x))]));if(vGf(x,2)){var G=hN(x);var D=x.pos;var K=x.arrayView;D=D===void 0?0:D;var z=G===void 0?-1:G;D=D===void 0?0:D;z=z===void 0?-1:z;if(K.totalLength&&z){z<0&&(z=K.totalLength-D);K.focus(D);if(!(D-K.arrayPos+z<=K.arrays[K.arrayIdx].length)){var y=K.arrayIdx,c=K.arrayPos;K.focus(D+z-1);c=new Uint8Array(K.arrayPos+K.arrays[K.arrayIdx].length-c);for(var W=0,e=y;e<=K.arrayIdx;e++)c.set(K.arrays[e],W),W+=K.arrays[e].length;K.arrays.splice(y,
K.arrayIdx-y+1,c);K.arrayIdx=0;K.arrayPos=0;K.focus(D)}y=K.arrays[K.arrayIdx];K=new DataView(y.buffer,y.byteOffset+D-K.arrayPos,z)}else K=new DataView(new ArrayBuffer(0));K=new Uint8Array(K.buffer,K.byteOffset,K.byteLength);x.pos+=G;G=K}else G=void 0;G=G?gGn(G):void 0;x=vGf(x,4)?hN(x):void 0;K=JDf[x];if(typeof K==="undefined")throw x=new _.LL("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:x}),_.I4(x),x;return{entityTypeFieldNumber:x,entityType:K,entityId:G}};
_.K3=function(x,G,D){D=D===void 0?0:D;var K=new frV;if(uCE)x=uCE.encode(x);else{var z=new Uint8Array(Math.ceil(x.length*1.2)),y=dlL(x,z);z.length<y&&(z=new Uint8Array(y),y=dlL(x,z));z.length>y&&(z=z.subarray(0,y));x=z}x!==void 0&&(Gm(K,18),z=x.length,Gm(K,z),D2(K,z),K.buf.set(x,K.pos),K.pos+=z);x=tYQ[G];if(typeof x==="undefined")throw D=new _.LL("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:G}),_.I4(D),D;x!==void 0&&(Gm(K,32),Gm(K,x));Gm(K,40);Gm(K,1);G=new Uint8Array(K.buf.buffer,
K.buf.byteOffset,K.pos);return encodeURIComponent(_.PY(G,D))};
ksL=function(x){x=x.key||x.id;if(!x)throw Error("vf");return x};
EGV=function(x,G){x=x===void 0?{}:x;return PGO(x,G)};
hrC=function(x,G,D,K){if(K===void 0)return K=Object.assign({},x[G]||{}),D=(delete K[D],K),K={},Object.assign({},x,(K[G]=D,K));var z={},y={};return Object.assign({},x,(y[G]=Object.assign({},x[G],(z[D]=K,z)),y))};
xMf=function(x,G,D,K,z){var y=x[G];if(y==null||!y[D])return x;K=SqP(y[D],K,z==="REPEATED_FIELDS_MERGE_OPTION_APPEND");z={};y={};return Object.assign({},x,(y[G]=Object.assign({},x[G],(z[D]=K,z)),y))};
_.zm=function(x,G,D){return x[G]?x[G][D]||null:null};
DMn=function(){if(GIV)return GIV();var x={};GIV=tv("PersistentEntityStoreDb",{objectStores:(x.EntityStore={addedAtVersion:1},x.EntityAssociationStore={addedAtVersion:2},x),shared:!1,upgrade:function(G,D){D(1)&&Sl(Up(G,"EntityStore",{keyPath:"key"}),"entityType","entityType");D(2)&&(G=Up(G,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),Sl(G,"byParentEntityKey","parentEntityKey"),Sl(G,"byChildEntityKey","childEntityKey"))},
version:3});return GIV()};
KK$=function(x){return _.uI(DMn(),x)};
a_=function(x){return window.Int32Array?new Int32Array(x):Array(x)};
aKf=function(x){return _.uI(zqD(),x)};
oyh=function(x){return new o_("WRONG_DATA_TYPE",{encoderVersion:x})};
yyO=function(x){return x instanceof Error?new o_("UNKNOWN_ENCODE_ERROR",{originalMessage:x.message}):new o_("UNKNOWN_ENCODE_ERROR")};
lKn=function(x){return x instanceof Error?new o_("UNKNOWN_DECODE_ERROR",{originalMessage:x.message}):new o_("UNKNOWN_DECODE_ERROR")};
cyL=function(x,G){x=x instanceof o_?x:G(x);_.I4(x);throw x;};
TrD=function(x){x=(new TextEncoder).encode(x).subarray(0,16);var G=new Uint8Array(16);G.set(x);return G};
eqf=function(x){var G=WKD[x];if(G)return G;_.O9(new _.LL("Entity model not found.",{entityType:x}))};
_.yy=function(){ZZn||(ZZn=MjL());return ZZn};
MjL=function(){var x,G,D;return _.T(function(K){if(K.nextAddress==1)return _.Kl(K,2),_.Z(K,_.fL(),4);if(K.nextAddress!=2){x=K.yieldResult;if(!x||!_.bI()||typeof _.Df.BroadcastChannel==="undefined")return K.return();G=new Qcd;return K.return(new l7(x,G))}D=_.lX(K);D instanceof Error&&_.I4(D);return K.return()})};
_.ck=function(x,G){var D;return _.T(function(K){if(K.nextAddress==1){D=x.mutations;if(!D||D.length<=0)return K.return();G&&G.dispatch(_.EO({type:"ENTITY_LOADED",payload:D}));return _.Z(K,pef(D),2)}D.length=0;_.c5(K)})};
pef=function(x){var G;return _.T(function(D){return D.nextAddress==1?_.Z(D,_.yy(),2):(G=D.yieldResult)?_.Z(D,_.Tm(G,"readwrite",function(K){for(var z={},y=_.l(x),c=y.next(),W={};!c.done;W={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},c=y.next())W.mutation$jscomp$4=c.value,W.mutation$jscomp$4.entityKey&&Vj$(W.mutation$jscomp$4)&&(W.mutationEntityType$jscomp$3=(0,_.YS.getAnyKey)(W.mutation$jscomp$4.payload),c=void 0,W.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(c=function(e){return function(){return _.bZD(K,
e.mutation$jscomp$4.payload[e.mutationEntityType$jscomp$3],e.mutationEntityType$jscomp$3)}}(W)),W.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(c=function(e){return function(){return LKf(K,e.mutation$jscomp$4.entityKey)}}(W)),W.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(c=function(e){return function(){return Brh(K,e.mutation$jscomp$4.entityKey,e.mutation$jscomp$4.payload[e.mutationEntityType$jscomp$3],e.mutationEntityType$jscomp$3)}}(W)),c&&(z[W.mutation$jscomp$4.entityKey]=
z[W.mutation$jscomp$4.entityKey]?z[W.mutation$jscomp$4.entityKey].then(c):c()));
return Uj.all(Object.values(z))}),0):D.return()})};
Vj$=function(x){var G;x=(G=x.options)==null?void 0:G.persistenceOption;return x==="ENTITY_PERSISTENCE_OPTION_PERSIST"||x==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
YBL=function(x,G){var D,K;_.T(function(z){if(z.nextAddress==1)return _.Z(z,_.yy(),2);if(z.nextAddress!=3)return(D=z.yieldResult)?_.Z(z,_.Tm(D,"readonly",function(y){var c={},W=Object.keys(G).map(function(e){var Q=G[e]?[].concat(_.B5(G[e])):[];return ryV(y,e,Q,c)});
return Uj.all(W).then(function(){return c})}),3):z.return();
K=z.yieldResult;Object.keys(K).length>0&&x.dispatch(sc3(K));_.c5(z)})};
ryV=function(x,G,D,K){return Wk(x,G,D).then(function(z){K[G]=mMQ(D,z)})};
mMQ=function(x,G){if(G.length!==x.length)throw Error("yf");return G.reduce(function(D,K,z){D[x[z]]=K;return D},{})};
ziV=function(x){var G=x.filter(function(z){var y;return(z==null?void 0:(y=z.transferEntity)==null?void 0:y.transferState)==="TRANSFER_STATE_COMPLETE"}).length,D=x.filter(function(z){var y;
return(z==null?void 0:(y=z.transferEntity)==null?void 0:y.transferState)==="TRANSFER_STATE_FAILED"}).length,K=x.filter(function(z){var y;
return(z==null?void 0:(y=z.transferEntity)==null?void 0:y.transferState)&&HZh.includes(z.transferEntity.transferState)});
if(!(G||K!=null&&K.length))return 0;G=_.KUV(K)+G;x=x.length-D;return x===0?0:Math.round(G*100/x)/100};
_.KUV=function(x){var G=[];G=G.concat.apply(G,_.B5(x.filter(function(y){return y.streamEntity}).map(function(y){var c=Object.assign({},y.streamEntity),W,e=(W=y.transferEntity)==null?void 0:W.transferState;
c.streamsProgress=c.streamsProgress||[];c.streamsProgress=c.streamsProgress.map(function(Q){var p=Object.assign({},Q);p.numBytesDownloaded=e==="TRANSFER_STATE_COMPLETE"?Q.numTotalBytes:Q.numBytesDownloaded;return p});
return c}).map(function(y){return y.streamsProgress})));
var D=x=0;G=_.l(G);for(var K=G.next();!K.done;K=G.next()){var z=K.value;K=Number(z.numBytesDownloaded);z=Number(z.numTotalBytes);D+=isNaN(K)?0:K;x+=isNaN(z)?0:z}return x===0?0:Math.round(D*100/x)/100};
amn=function(x){if(!x||!x.expirationTimestamp||!x.action)return!1;var G=(0,_.kK)()/1E3;return Number(x.expirationTimestamp)>=G};
e5=function(x){return x&&x.expirationTimestamp&&x.action?amn(x)&&x.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.Z2=function(x){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(x||"TRANSFER_STATE_UNKNOWN")};
ooO=function(x){var G=new frV;if(x!==void 0){var D=Math.ceil(Math.log2(x.length*4+2)/7);D=D===void 0?2:D;Gm(G,10);G.submessagePosStack.push(G.pos);G.submessagePosStack.push(D);G.pos+=D;D2(G,x.length*1.2);D=dlL(x,G.buf.subarray(G.pos));G.pos+D>G.buf.length&&(D2(G,D),D=dlL(x,G.buf.subarray(G.pos)));G.pos+=D;x=G.submessagePosStack.pop();D=G.submessagePosStack.pop();for(var K=G.pos-D-x;x--;){var z=x?128:0;G.view.setUint8(D++,K&127|z);K>>=7}}G=new Uint8Array(G.buf.buffer,G.buf.byteOffset,G.pos);return(new TextDecoder("utf-8")).decode(G)};
_.MW=function(x){var G=0;x=_.l(x);for(var D=x.next(),K={};!D.done;K={transferState$jscomp$3:void 0},D=x.next()){var z=D.value,y=void 0;D=(y=z.streamEntity)!=null?y:{};y=void 0;K.transferState$jscomp$3=(y=z.transferEntity)==null?void 0:y.transferState;y=z=void 0;((z=D)==null?0:(y=z.streamsProgress)==null?0:y.length)&&D.streamsProgress.forEach(function(c){return function(W){W=Number(c.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?W.numTotalBytes:W.numBytesDownloaded);isFinite(W)&&(G+=W)}}(K))}return G};
y7Q=function(x){return x.some(function(G){var D;if(!(G==null?0:(D=G.transferEntity)==null?0:D.transferState)){var K;return!(G==null?0:(K=G.policyEntity)==null?0:K.action)||G.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return HZh.includes(G.transferEntity.transferState)})};
lmf=function(x,G){if(!G)return!1;if(_.B("of_pb_en_po_ks"))return!0;var D;x=(D=_.zm(x,"offlineVideoPolicy",_.K3(G,"offlineVideoPolicy")))!=null?D:void 0;return!!x&&e5(x)};
_.THf=function(x){var G=["TRANSFER_STATE_COMPLETE"];G=G===void 0?c7n:G;return x.filter(function(D){var K,z;return G.includes((z=(K=D.transferEntity)==null?void 0:K.transferState)!=null?z:"TRANSFER_STATE_UNKNOWN")})};
WUL=function(x,G){if(G){var D,K=(D=_.zm(x,"playbackData",_.K3(G,"playbackData")))!=null?D:null,z;D=(z=_.zm(x,"transfer",_.K3(G,"transfer")))!=null?z:null;var y;z=(y=_.zm(x,"offlineVideoStreams",_.K3(G,"offlineVideoStreams")))!=null?y:null;var c;x=(c=_.zm(x,"offlineVideoPolicy",_.K3(G,"offlineVideoPolicy")))!=null?c:null;if(K||D||z||x)return{playbackDataEntity:K,transferEntity:D,streamEntity:z,policyEntity:x}}};
_.p3=function(x){var G=x.playbackData;if(!G)return[];var D=[];G=_.l(Object.keys(G));for(var K=G.next();!K.done;K=G.next()){var z=K.value;if(!ei$(x,_.x_(z).entityId)&&(K=WUL(x,_.x_(z).entityId))){var y=void 0,c=void 0;z=(c=Number((y=_.zm(x,"playbackData",z))==null?void 0:y.streamDownloadTimestampSeconds))!=null?c:(0,_.kK)();D.push({entity:K,streamDownloadTimestamp:z})}}return D.sort(function(W,e){var Q=W.streamDownloadTimestamp,p=e.streamDownloadTimestamp;return p===Q?W.entity.streamEntity&&!e.entity.streamEntity?
1:-1:p-Q}).map(function(W){return W.entity})};
ZgP=function(x){return _.THf(_.p3(x))};
_.MVh=function(x){return _.p3(x).filter(function(G){var D;if(((D=G.policyEntity)==null?0:D.action)&&G.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var K;if((K=G.transferEntity)==null?0:K.transferState){var z;return HZh.includes((z=G.transferEntity)==null?void 0:z.transferState)}return!0})};
ei$=function(x,G){var D;return((D=_.zm(x,"downloadStatusEntity",_.K3(G,"downloadStatusEntity")))==null?void 0:D.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
Q8O=function(x){var G;if(x==null?0:(G=x.playbackDataEntity)==null?0:G.key)return _.x_(x.playbackDataEntity.key).entityId;var D;if(x==null?0:(D=x.transferEntity)==null?0:D.key)return _.x_(x.transferEntity.key).entityId;var K;if(x==null?0:(K=x.streamEntity)==null?0:K.key)return _.x_(x.streamEntity.key).entityId;var z;if(x==null?0:(z=x.policyEntity)==null?0:z.key)return _.x_(x.policyEntity.key).entityId};
VVh=function(x){var G=new Set,D;x=(D=x.mainDownloadsListEntity)==null?void 0:D[ppE];var K;if(!(x==null?0:(K=x.downloads)==null?0:K.length))return G;var z;x==null||(z=x.downloads)==null||z.forEach(function(y){(y==null?0:y.videoItem)&&G.add(y.videoItem)});
return G};
Vy=function(x,G){if(G){var D=_.zm(x,"mainVideoEntity",_.K3(G,"mainVideoEntity")),K=_.zm(x,"downloadStatusEntity",_.K3(G,"downloadStatusEntity")),z=_.zm(x,"ytMainChannelEntity",_.K3(G,"ytMainChannelEntity")),y={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};x=WUL(x,G);K=(K==null?void 0:K.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.B("woffle_render_failed_download_state_ks")&&(K==null?void 0:K.downloadState)==="DOWNLOAD_STATE_FAILED";!x&&K&&(x=y);if(x&&D&&
z)return Object.assign({},{videoEntity:D,channelEntity:z},x)}};
LUn=function(x,G){return bgL(x,G)==="TRANSFER_STATE_COMPLETE"&&lmf(x,G)};
BHh=function(x,G){if(!G)return!1;var D;x=(D=_.zm(x,"playbackData",_.K3(G,"playbackData")))!=null?D:void 0;return!!x&&!!x.playerResponseJson};
bgL=function(x,G){if(!G)return"TRANSFER_STATE_UNKNOWN";var D=_.zm(x,"transfer",_.K3(G,"transfer"));if(D){var K;return(K=D.transferState)!=null?K:"TRANSFER_STATE_UNKNOWN"}D=_.zm(x,"offlineOrchestrationActionWrapperEntity",_.K3(G,"offlineOrchestrationActionWrapperEntity"));x=_.zm(x,"mainVideoEntity",_.K3(G,"mainVideoEntity"));return D||x?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
r7h=function(x,G){if(!G)return"TRANSFER_STATE_UNKNOWN";if(x=_.zm(x,"transfer",_.K3(G,"transfer"))){var D;return(D=x.transferState)!=null?D:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
s8n=function(x,G){return G&&(x=_.zm(x,"videoPlaybackPositionEntity",_.K3(G,"videoPlaybackPositionEntity")),x==null?0:x.lastPlaybackPositionSeconds)?Number(x.lastPlaybackPositionSeconds):0};
m7V=function(x,G){return YdD(x).some(function(D){var K;return(D==null?void 0:(K=D.mainPlaylistEntity)==null?void 0:K.playlistId)===G})};
$7L=function(x,G,D){var K=HgL(x,G);if(!K.length)return[];G=[];K=_.l(K);for(var z=K.next();!z.done;z=K.next()){z=z.value;var y=Vy(x,z);D&&bgL(x,z)!=="TRANSFER_STATE_COMPLETE"||y&&G.push(y)}return G};
HgL=function(x,G){if(!G)return[];var D=_.K3(G,"mainPlaylistEntity"),K;G=(K=x.mainPlaylistEntity)==null?void 0:K[D];K=[];if(G==null||!G.videos)return K;G=_.l(G.videos);for(D=G.next();!D.done;D=G.next()){D=D.value;var z=void 0,y=void 0,c=void 0,W=(z=x)==null?void 0:(y=z.mainPlaylistVideoEntity)==null?void 0:(c=y[D])==null?void 0:c.video;W&&(D=_.x_(W).entityId)&&K.push(D)}return K};
FU3=function(x,G){if(G){var D=_.zm(x,"mainPlaylistEntity",_.K3(G,"mainPlaylistEntity")),K=_.zm(x,"mainPlaylistDownloadStateEntity",_.K3(G,"mainPlaylistDownloadStateEntity"));x=_.zm(x,"ytMainChannelEntity",_.K3(G,"ytMainChannelEntity"));if(K&&D)return Object.assign({},{mainPlaylistEntity:D,mainPlaylistDownloadStateEntity:K},!!x&&{channelEntity:x})}};
YdD=function(x){return CKf(x).sort(function(G,D){return D.addedTimestampMillis-G.addedTimestampMillis}).map(function(G){return G.downloadedPlaylistEntities})};
CKf=function(x){var G=x.mainPlaylistDownloadStateEntity,D=[];if(!G)return D;for(var K=_.l(Object.keys(G)),z=K.next();!z.done;z=K.next()){var y=z.value;z=FU3(x,_.x_(y).entityId);var c=void 0;y=Number((c=G[y])==null?void 0:c.addedTimestampMillis);c=isNaN(y)?(0,_.kK)():y;z!==void 0&&D.push({downloadedPlaylistEntities:z,addedTimestampMillis:c})}return D};
ImL=function(x){var G,D=(G=x.mainPlaylistVideoEntity)!=null?G:{};return new Set(YdD(x).reduce(function(K,z){K=K===void 0?[]:K;var y,c;z==null||(y=z.mainPlaylistEntity)==null||(c=y.videos)==null||c.forEach(function(W){var e;(W=(e=D[W])==null?void 0:e.video)&&K.push(W)});
return K},[]))};
j8C=function(x){return"downloadedMusicPlaylistEntities"in x};
OgC=function(x){return"mainPlaylistEntity"in x&&"mainPlaylistDownloadStateEntity"in x};
Xph=function(x){return"videoEntity"in x&&"channelEntity"in x};
A7O=function(x){var G=x.musicPlaylistDownloadMetadataEntity,D=[];if(!G)return D;for(var K=_.l(Object.keys(G)),z=K.next();!z.done;z=K.next()){z=z.value;a:{var y=x,c=_.x_(z).entityId;if(c){var W=_.zm(y,"musicPlaylist",_.K3(c,"musicPlaylist"));y=_.zm(y,"musicPlaylistDownloadMetadataEntity",_.K3(c,"musicPlaylistDownloadMetadataEntity"));if(W&&y){W={musicPlaylistEntity:W,musicPlaylistDownloadStateEntity:y};break a}}W=void 0}y=void 0;z=Number((y=G[z])==null?void 0:y.addedTimestampMillis);z=isNaN(z)?(0,_.kK)():
z;W!==void 0&&D.push({downloadedMusicPlaylistEntities:W,addedTimestampMillis:z})}return D};
U7E=function(x){var G=new Set;x=_.l(x);for(var D=x.next();!D.done;D=x.next())if(D=D.value,"musicPlaylistEntity"in D&&"musicPlaylistDownloadStateEntity"in D){D=_.l(D.musicPlaylistEntity.tracks);for(var K=D.next();!K.done;K=D.next())G.add(K.value)}return G};
Rif=function(x,G){if(G){var D=_.zm(x,"musicTrack",_.K3(G,"musicTrack")),K=_.zm(x,"musicArtist",_.K3(G,"musicArtist"))||{};if((x=WUL(x,G))&&D&&K)return Object.assign({},{musicTrackEntity:D,musicArtistEntity:K},x)}};
Sdn=function(x){var G=x.musicTrackDownloadMetadataEntity,D=[];if(!G)return[];G=_.l(Object.keys(G));for(var K=G.next();!K.done;K=G.next()){var z=K.value;K=Rif(x,_.x_(z).entityId);var y=void 0;z=Number((y=_.zm(x,"musicTrackDownloadMetadataEntity",z))==null?void 0:y.addedTimestampMillis);y=isNaN(z)?(0,_.kK)():z;K!==void 0&&D.push({downloadedMusicEntities:K,addedTimestampMillis:y})}return D};
goh=function(x,G){if(!G)return[];if(Object.values(non).includes(G))return ig$(x,G);G=_.K3(G,"musicPlaylist");var D;x=(D=x.musicPlaylist)==null?void 0:D[G];D=[];if(x==null||!x.tracks)return D;x=_.l(x.tracks);for(G=x.next();!G.done;G=x.next())(G=_.x_(G.value).entityId)&&D.push(G);return D};
ig$=function(x,G){var D=new Set,K=A7O(x).map(function(y){return y.downloadedMusicPlaylistEntities});
K=U7E(K);K=_.l(K);for(var z=K.next();!z.done;z=K.next())(z=_.x_(z.value).entityId)&&D.add(z);return uaf(x).downloadedMusicEntities.filter(function(y){var c;if((c=y.musicTrackEntity)!=null&&c.videoId){y=y.musicTrackEntity;if(c=G==="PPOM"?!0:!D.has(y.videoId))b:switch(y=y.musicVideoType,G){case "PPSE":c=y==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:c=y!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}y=c}else y=!1;return y}).map(function(y){var c;
return(c=y.musicTrackEntity)==null?void 0:c.videoId})};
uaf=function(x){var G=Sdn(x).sort(function(D,K){return K.addedTimestampMillis-D.addedTimestampMillis}).map(function(D){return"downloadedMusicEntities"in D?D.downloadedMusicEntities:j8C(D)?D.downloadedMusicPlaylistEntities:{}});
x=A7O(x).sort(function(D,K){return K.addedTimestampMillis-D.addedTimestampMillis}).map(function(D){return"downloadedMusicEntities"in D?D.downloadedMusicEntities:j8C(D)?D.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:G,downloadedMusicPlaylistEntities:x}};
wpf=function(x,G){G=_.Am("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?goh(x,G):HgL(x,G);if(!G.length)return"TRANSFER_STATE_UNKNOWN";G=G.map(function(D){return r7h(x,D)});
return d7O(G)};
d7O=function(x){var G=new Set(x);if(G.has("TRANSFER_STATE_FAILED")&&G.size===1)return"TRANSFER_STATE_FAILED";G.delete("TRANSFER_STATE_FAILED");if(G.has("TRANSFER_STATE_UNKNOWN")&&G.size===1)return"TRANSFER_STATE_PRE_TRANSFER";G.delete("TRANSFER_STATE_UNKNOWN");if(G.has("TRANSFER_STATE_PRE_TRANSFER")&&G.size===1||G.size===0)return"TRANSFER_STATE_PRE_TRANSFER";x=G.has("TRANSFER_STATE_TRANSFERRING");G=G.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return x||G?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
b7=function(x){var G=x.mainVideoDownloadStateEntity,D=[];if(!G)return[];G=_.l(Object.keys(G));for(var K=G.next();!K.done;K=G.next()){var z=K.value;if(!ei$(x,_.x_(z).entityId)){K=Vy(x,_.x_(z).entityId);var y=void 0,c=void 0;z=(c=Number((y=_.zm(x,"mainVideoDownloadStateEntity",z))==null?void 0:y.addedTimestampMillis))!=null?c:(0,_.kK)();K!==void 0&&D.push({downloadedVideoEntities:K,addedTimestampMillis:z})}}return D};
qdV=function(x){return b7(x).sort(function(G,D){return D.addedTimestampMillis-G.addedTimestampMillis}).map(function(G){return G.downloadedVideoEntities})};
_.vo3=function(x){var G=ImL(x),D=_.L3(x),K=VVh(x),z=b7(x).filter(function(c){var W,e;if((c==null?void 0:(W=c.downloadedVideoEntities)==null?void 0:(e=W.transferEntity)==null?void 0:e.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var Q,p;c=c==null?void 0:(Q=c.downloadedVideoEntities)==null?void 0:(p=Q.videoEntity)==null?void 0:p.key;return _.B("kevlar_use_library_entity")?c&&(K.has(c)||D[c]):c&&!G.has(c)}),y=CKf(x).filter(function(c){return wpf(x,c.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.B5(z),_.B5(y)).sort(function(c,W){return W.addedTimestampMillis-c.addedTimestampMillis}).map(function(c){return NHV(c)})};
J7L=function(x,G){if(G&&lmf(x,G)){var D,K,z=(K=(D=_.zm(x,"playbackData",_.K3(G,"playbackData")))!=null?D:void 0)==null?void 0:K.playerResponseJson;if(z){try{var y=JSON.parse(z);var c=_.zm(x,"transfer",_.K3(G,"transfer")),W=s8n(x,G);W&&(y=Object.assign({},y,{playerConfig:Object.assign({},y.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+W*1E3}}})}));y.cotn=c==null?void 0:c.cotn}catch(e){}return y}}};
_.kb$=function(x){var G,D,K;x=(K=(D=((G=x.downloadsPageViewConfigurationEntity)!=null?G:{})[fmO])==null?void 0:D.smartDownloadsOptInBannerVisibility)!=null?K:{};var z;return(z=_.Y(x,tVP))!=null?z:{}};
_.L3=function(x){var G,D,K;x=(K=(D=((G=x.mainDownloadsListEntity)!=null?G:{})[_.PKC])==null?void 0:D.downloads)!=null?K:[];G={};D=_.l(x);for(K=D.next();!K.done;K=D.next())x=void 0,G[(x=K.value.videoItem)!=null?x:""]=!0;return G};
EoL=function(x){var G=_.L3(x);if(Object.keys(G).length===0)return!1;var D=x.mainVideoEntity;if(!D)return!0;D=_.l(Object.keys(D));for(var K=D.next();!K.done;K=D.next()){K=K.value;var z=_.x_(K).entityId;if(G[K]&&!ei$(x,z))return!1}return!0};
_.Bk=function(x){var G=_.L3(x);return b7(x).sort(function(D,K){return D.addedTimestampMillis-K.addedTimestampMillis}).map(function(D){return D.downloadedVideoEntities}).filter(function(D){var K;
return(D=D==null?void 0:(K=D.videoEntity)==null?void 0:K.key)&&!!G[D]})};
NHV=function(x){return"downloadedVideoEntities"in x?x.downloadedVideoEntities:"downloadedPlaylistEntities"in x?x.downloadedPlaylistEntities:{}};
hin=function(x){var G=_.L3(x),D=ImL(x),K=b7(x).filter(function(z){var y,c;return(z=z==null?void 0:(y=z.downloadedVideoEntities)==null?void 0:(c=y.videoEntity)==null?void 0:c.key)&&!G[z]&&!D.has(z)});
x=CKf(x);return[].concat(_.B5(K),_.B5(x)).sort(function(z,y){return y.addedTimestampMillis-z.addedTimestampMillis}).map(function(z){return NHV(z)})};
_.rK=function(x){if(!_.B("kevlar_use_library_entity"))return hin(x);var G=b7(x).filter(function(K){var z,y;if(z=K=K==null?void 0:(z=K.downloadedVideoEntities)==null?void 0:(y=z.videoEntity)==null?void 0:y.key){var c,W,e;z=((W=(c=x.mainDownloadsListEntity)==null?void 0:c[ppE])==null?0:(e=W.downloads)==null?0:e.length)?VVh(x).has(K):!1}return z}),D=CKf(x);
return[].concat(_.B5(G),_.B5(D)).sort(function(K,z){return z.addedTimestampMillis-K.addedTimestampMillis}).map(function(K){return NHV(K)})};
x6D=function(x){var G=_.L3(x),D=ImL(x);return qdV(x).filter(function(K){var z;return(K=K==null?void 0:(z=K.videoEntity)==null?void 0:z.key)&&!G[K]&&!D.has(K)})};
GcV=function(x){if(!_.B("kevlar_use_library_entity"))return x6D(x);var G=_.L3(x),D=VVh(x);return qdV(x).filter(function(K){var z;return(K=K==null?void 0:(z=K.videoEntity)==null?void 0:z.key)&&!G[K]&&D.has(K)})};
D6O=function(x,G){G=_.K3(G,"settingEntity");var D,K,z;return!!((z=(K=((D=x.settingEntity)!=null?D:{})[G])==null?void 0:K.settingOptionValue)!=null?z:{}).boolValue};
_.sA=function(x){var G=_.Bk(x);if(y7Q(G))return 0;var D=[];G=_.l(G);for(var K=G.next();!K.done;K=G.next()){K=K.value;var z=void 0,y=void 0;if((z=K)==null?0:(y=z.videoEntity)==null?0:y.key)z=_.x_(K.videoEntity.key).entityId,K=x,z=_.K3(z,"mainVideoDownloadStateEntity"),K=_.zm(K,"mainVideoDownloadStateEntity",z),(K=Number(K==null?void 0:K.addedTimestampMillis))&&D.push(K)}return Math.max.apply(Math,_.B5(D))};
_.Y_=function(x){return x.ui.richGridMiniMode};
_.m8=function(x){return x.ui.richGridItemsPerRow};
_.KPD=function(x){return x.ui.richGridSlimItemsPerRow};
_.zzQ=function(x){return x.ui.guideIsExpanded};
_.Hk=function(x){return x.ui.miniplayerIsActive};
_.aiP=function(x){return x.ui.singleOptionSurveyIsActive};
_.$_=function(x){return x.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.oVC=function(x){return x.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.yzd=function(x){return x.ui.inlinePreviewIsActive};
_.liL=function(x){return x.ui.inlinePreviewIsEnabled};
_.czO=function(x){return x.ui.miniplayerPlaybackState};
Ted=function(x){return x.ui.isOnline};
_.WPV=function(x){return x.ui.frostedGlassMode};
_.C3=function(x,G){return bgL(x.entities,G)};
_.I_=function(x,G){return wpf(x.entities,G)};
ezD=function(x,G){var D;if(G){var K;x=(K=_.zm(x.entities,"offlineVideoPolicy",_.K3(G,"offlineVideoPolicy")))==null?void 0:K.action}else x=void 0;return(D=x)!=null?D:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
ZB3=function(x,G){var D;G?(x=_.zm(x.entities,"offlineVideoPolicy",_.K3(G,"offlineVideoPolicy")),x=Number(x==null?void 0:x.expirationTimestamp)):x=void 0;return(D=x)!=null?D:0};
_.M1d=function(x){return _.p3(x.entities).length};
QLQ=function(x,G){return Vy(x.entities,G)};
poL=function(x,G){return FU3(x.entities,G)};
j5=function(x,G){return(x=Vy(x.entities,G))?_.KUV([x]):0};
_.V1f=function(x,G){var D=_.Am("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(D){var K=x.entities;var z=goh(K,G);if(z.length){var y=[];z=_.l(z);for(var c=z.next();!c.done;c=z.next())(c=Rif(K,c.value))&&y.push(c);K=y}else K=[]}else K=$7L(x.entities,G);var W;if(D){var e=x.entities;G?(G=_.K3(G,"musicPlaylist"),e=(W=e.musicPlaylist)==null?void 0:W[G],W=e!=null&&e.tracks?e.tracks.length:0):W=0}else W=x.entities,G?(G=_.K3(G,"mainPlaylistEntity"),W=(e=W.mainPlaylistEntity)==null?void 0:e[G],W=W!=null&&W.videos?
W.videos.length:0):W=0;return K.length!==W?0:K?ziV(K):0};
_.bBO=function(x){return x.download.isLeaderTab};
_.LPL=function(x,G,D){if(!G&&D){var K=x.entities;if(D){var z=ooO(D),y,c;G=(c=(y=_.zm(K,"offlineabilityEntity",_.K3(z,"offlineabilityEntity")))==null?void 0:y.addToOfflineButtonState)!=null?c:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else G="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else y=x.entities,G?(c=ooO(G),G=(z=(K=_.zm(y,"offlineabilityEntity",_.K3(c,"offlineabilityEntity")))==null?void 0:K.addToOfflineButtonState)!=null?z:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):G="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return G};
BeE=function(x,G){x=x.entities;if(G){G=ooO(G);var D,K;G=(K=(D=_.zm(x,"offlineabilityEntity",_.K3(G,"offlineabilityEntity")))==null?void 0:D.addToOfflineButtonState)!=null?K:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else G="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return G};
_.rzD=function(x){var G=x.entities;x=Ted(x);var D=D6O(G,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.B("kevlar_modern_downloads_page")&&D)var K=!1;else{var z,y;G=(y=(z=((K=G.downloadsPageViewConfigurationEntity)!=null?K:{})[fmO])==null?void 0:z.smartDownloadsOptInBannerVisibility)!=null?y:{};K=x?!!G.visibleWithConnection:!!G.visibleWithoutConnection}return K};
_.sLd=function(x){return D6O(x.entities,"SMART_DOWNLOADS_ENABLED")};
_.YVE=function(x){return EoL(x.entities)};
m6D=function(x){return _.Bk(x.entities).every(function(G){var D;return(G==null?void 0:(D=G.transferEntity)==null?void 0:D.transferState)&&!HZh.includes(G.transferEntity.transferState)})};
_.HBD=function(x,G){return ei$(x.entities,G)};
$6h=function(x,G){if(G){var D,K;x=(K=(D=_.zm(x.entities,"downloadStatusEntity",_.K3(G,"downloadStatusEntity")))==null?void 0:D.downloadState)!=null?K:"DOWNLOAD_STATE_UNKNOWN"}else x="DOWNLOAD_STATE_UNKNOWN";return x};
OA=function(x,G){return s8n(x.entities,G)};
jL3=function(x){x=_.FPL(x);var G=x.hours===void 0?0:x.hours,D=x.minutes===void 0?0:x.minutes,K=x.seconds===void 0?0:x.seconds,z=G>0;x=[];z&&(G=_.CzL(G),x.push(G));G=z;G=G===void 0?!1:G;D=(["af","be","lt"].includes(_.XX)||G)&&D<10?Iid().format(D):(new Intl.NumberFormat("en-u-nu-latn")).format(D);x.push(D);D=Iid().format(K);x.push(D);D=":";"da fi id si sr sr-Latn".split(" ").includes(_.XX)&&(D=".");return x.join(D)};
_.FPL=function(x){var G=x.hours||0,D=x.minutes||0,K=x.seconds||0;G=K+D*60+G*3600+(x.days||0)*86400+(x.weeks||0)*604800+(x.months||0)*2629800+(x.years||0)*31557600;if(G<=0)return{hours:0,minutes:0,seconds:0};x=G;G=Math.floor(x/3600);x%=3600;D=Math.floor(x/60);K=Math.floor(x%60);return{hours:G,minutes:D,seconds:K}};
_.CzL=function(x){x=(new Intl.NumberFormat("en-u-nu-latn")).format(x);var G=["fr"],D="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(_.XX)?x.replace(",","\u00a0"):G.includes(_.XX)?x.replace(",","\u202f"):D.includes(_.XX)?x.replace(",","."):x};
Iid=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
OBP=function(x){try{return(new _.Ar(5)).format(x)}catch(G){}};
UA=function(x){return{thumbnailOverlayDownloadingRenderer:{state:x}}};
Xod=function(x){if(x=OBP(x))return{thumbnailOverlaySidePanelRenderer:{text:_.tN(x),icon:{iconType:"PLAYLISTS"}}}};
AzE=function(){var x=_.Wg("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.tN(x),icon:{iconType:"PLAY_ALL"}}}};
U6V=function(x){x=_.R_(x,2);return _.XX!=="ru"&&_.XX!=="es_419"&&_.XX!=="es-419"&&_.XX!=="es"&&_.XX!=="es_US"&&_.XX!=="es-US"&&_.XX!=="fr"&&_.XX!=="pl"&&_.XX!=="it"&&_.XX!=="nl"&&_.XX!=="uk"&&_.XX!=="fr_CA"&&_.XX!=="fr-CA"||x===""?x:x[0].toLocaleUpperCase()+x.substring(1)};
SVf=function(x){return function(G){var D=x(),K=_.R_(G,D.dateFormat);G=_.R_(G,D.timeFormat);var z=RzD.DATETIMEFORMATS[D.joinerStyle];z=z.replace(/'(?!')/g,"");z=z.replace("{0}",G);z=z.replace("{1}",K);return D.capitalize(z)}};
nVn=function(x){return x?typeof x.seconds==="string"&&(x.nanos===void 0||typeof x.nanos==="number"):!1};
iBE=function(x){return new Date(Number(x.seconds)*1E3+(x.nanos||0)*1E-6)};
_.R_=function(x,G){if(typeof x.getTime==="function")x={date:x};else if(nVn(x))x={date:iBE(x)};else if(typeof nVn(x.timestamp)&&typeof x.i18nInternalSecondsEastOfUtc==="number")x={date:iBE(x.timestamp),timeZone:S5(-x.i18nInternalSecondsEastOfUtc/60)};else throw Error("zf`"+JSON.stringify(x));var D=x;x=D.date;D=D.timeZone;G=gVh(G).format(x,D);_.XX==="zh-TW"&&(x=D?Number(gVh("H").format(x,D)):x.getHours(),G=x<5?G.replace("\u4e0a\u5348","\u51cc\u6668"):x<8?G.replace("\u4e0a\u5348","\u65e9\u4e0a"):x<12?
G.replace("\u4e0a\u5348","\u4e0a\u5348"):x<13?G.replace("\u4e0b\u5348","\u4e2d\u5348"):x<19?G.replace("\u4e0b\u5348","\u4e0b\u5348"):G.replace("\u4e0b\u5348","\u665a\u4e0a"));return G};
gVh=function(x){if(ugP.has(x))return ugP.get(x);var G=d6n(x);G=won(G);qVL!==!0&&(qVL=!0);NeC=!0;NeC=!1;G=new n3(G,RzD);ugP.set(x,G);return G};
d6n=function(x){return(new n3(x,RzD)).patternParts_.map(function(G){return G.type===0?"'"+G.text+"'":G.text}).join("")};
won=function(x){return _.XX==="en"||_.XX==="es_US"||_.XX==="es-US"?x:x.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(G,D,K){return"H".repeat(D.length)+K})};
hz3=function(x,G){vVC||(_.i7=_.JzV,vVC=new fiO);var D=vVC;a:if(x=t1f(x),G=t1f(G||new Date),x>G)D=x.getTime()-G.getTime()>6048E5?_.R_(x,1):kch(x);else{for(var K=0;PzE(x,12*(K+1))<G;)++K;if(K>0)D=D.format(-K,0);else{for(K=0;PzE(x,K+1)<G;)++K;if(K>0)D=D.format(-K,2);else{x=G.getTime()-x.getTime();G=_.l(EVd);for(K=G.next();!K.done;K=G.next()){K=K.value;var z=K.unit,y=Math.floor(x/K.unitDuration);if(y>=(K.threshold===void 0?1:K.threshold)){D=D.format(-y,z);break a}}D=D.format(-0,7)}}}return D};
t1f=function(x){if(typeof x.getTime==="function")return x;if(nVn(x))return iBE(x);throw Error("Af`"+JSON.stringify(x));};
PzE=function(x,G){for(var D=0,K;;++D)if(K=new Date(x.getFullYear(),x.getMonth()+G,x.getDate()-D,x.getHours(),x.getMinutes(),x.getSeconds()),K.getMonth()===(x.getMonth()+G)%12)return K};
_.gK=function(x){return{runs:[{text:x}]}};
_.u7=function(x){if(x&&x.simpleText)return x.simpleText;var G="";if(x&&x.runs)for(var D=0;D<x.runs.length;D++)x.runs[D].text&&(G+=x.runs[D].text);return G};
G$3=function(x,G,D,K){return x.videoEntity&&!x.policyEntity&&D!=="DOWNLOAD_STATE_FAILED"?[UA("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:e5(x.policyEntity)&&G!=="TRANSFER_STATE_FAILED"&&G!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?G==="TRANSFER_STATE_PAUSED_BY_USER"?[UA("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.Z2(G)?[UA("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:x.videoEntity.lengthSeconds?xZ3(x.videoEntity.lengthSeconds,K):[]:
[UA("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
xZ3=function(x,G){var D=[{thumbnailOverlayTimeStatusRenderer:{text:_.tN(jL3({seconds:x})),style:"DEFAULT"}}];G&&(x=G<=0||x<=0?0:G>=x?100:Math.ceil(G*100/x),x>0&&D.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:x}}));return D};
DZV=function(x,G,D,K,z){if(G==="TRANSFER_STATE_UNKNOWN"||!x)return{};if(_.Z2(G)||G==="TRANSFER_STATE_PRE_TRANSFER")var y=[UA("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var c,W;if(G==="TRANSFER_STATE_COMPLETE"&&((c=x.mainPlaylistEntity)==null?0:(W=c.videos)==null?0:W.length)){if(_.B("web_modern_collections_v2")){var e;var Q=(y=x.mainPlaylistEntity)==null?void 0:(e=y.videos)==null?void 0:e.length;y=(y=OBP(Q))?{thumbnailOverlayBottomPanelRenderer:{text:_.tN(y),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var p;y=Xod((Q=x.mainPlaylistEntity)==null?void 0:(p=Q.videos)==null?void 0:p.length)}var V;y=[AzE(),Object.assign({},(V=y)!=null?V:{})]}else y=[]}V=y;a:if(G==="TRANSFER_STATE_PRE_TRANSFER")D=kO(_.Wg("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(G==="TRANSFER_STATE_TRANSFER_IN_QUEUE")D=kO(_.Wg("WAITING_TO_DOWNLOAD"));else if(_.Z2(G))D=Math.floor(D*100).toString(),D=kO(_.Wg("DOWNLOADING_PERCENT",{percent:D},"Downloading... "+D+"%"));else{if(K&&(_.B("playlist_is_offline_selector_killswitch")&&
(z=_.Eo().resolve(_.w$).isNetworkAvailable()),z)){D=RrQ(_.Wg("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),ADV(K));break a}D=void 0}G=G==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.Wg("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},V.length?{thumbnailOverlays:V}:{},D?{viewPlaylistText:D}:{viewPlaylistText:_.gK("")},G.length?{badges:G}:{})};
KaC=function(x,G,D,K,z,y){if(G==="TRANSFER_STATE_UNKNOWN"||!x)return{};if(K==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var c=G$3(x,G,K);if(x.videoEntity&&!x.policyEntity&&K!=="DOWNLOAD_STATE_FAILED"){var W=_.Wg("WAITING_TO_DOWNLOAD");if(W)return{shortViewCountText:_.gK(W),publishedTimeText:void 0,thumbnailOverlays:c}}if(!e5(x.policyEntity)){y=x.policyEntity&&!amn(x.policyEntity)?_.Wg("DOWNLOAD_EXPIRED",{},"Download expired"):
_.Wg("TRANSFER_FAILED",{},"Download failed");var e;if((e=x.policyEntity)==null?0:e.shortMessageForDisabledAction)y=x.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:kO(y),publishedTimeText:void 0,thumbnailOverlays:c}}if(G==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.gK(_.Wg("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:c};if(G==="TRANSFER_STATE_FAILED"||G==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.gK(_.Wg("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:c};if(G==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(e=_.Wg("WAITING_TO_DOWNLOAD"),K==="DOWNLOAD_STATE_PAUSED"&&(e=_.Wg("DOWNLOAD_PAUSED",{},"Download paused")),e))return{shortViewCountText:_.gK(e),publishedTimeText:void 0,thumbnailOverlays:c};if(_.Z2(G))return x=Math.floor(D*100).toString(),{shortViewCountText:_.gK(_.Wg("DOWNLOADING_PERCENT",{percent:x},"Downloading... "+x+"%")),publishedTimeText:void 0,thumbnailOverlays:c};G=void 0;x.videoEntity.publishedTimestampMillis&&
(G=new Date,z&&(G=new Date(z)),G=kO(hz3(new Date(Number(x.videoEntity.publishedTimestampMillis)),G)));z=[];_.B("kevlar_woffle_badge_killswitch")||(z=[{metadataBadgeRenderer:{label:_.Wg("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var Q;x=kO((Q=x.videoEntity.localizedStrings)==null?void 0:Q.viewCount);return Object.assign({},y?{shortViewCountText:void 0}:{shortViewCountText:x},y?{}:{publishedTimeText:G},{badges:z,thumbnailOverlays:c})};
aOf=function(x,G){x=x===void 0?zmn:x;switch(G.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:G.payload.playlistId,inviteLinkURL:G.payload.inviteLinkUrl};default:return x}};
yi$=function(x,G){x=x===void 0?oP3:x;switch(G.type){case "SET_CURRENT_FORM_ID":return G=G.payload.formId,x.currentFormId===G?x:{currentFormId:G,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var D=G.payload;G=D.groupId;D=D.command;if(x.currentFormId){var K=Object.assign({},x.commandsMap);K[G]=D;x=Object.assign({},x,{commandsMap:K})}return x;case "RESET_COMMAND_MAP":return Object.assign({},x,{commandsMap:{}});default:return x}};
cif=function(x,G){x=x===void 0?lOP:x;switch(G.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},x,{guideIsExpanded:G.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},x,{scrollAtTop:G.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},x,{guideIsVisibleButNotPersistent:G.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},x,{miniplayerIsActive:G.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},x,{singleOptionSurveyIsActive:G.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},x,{slimlineSurveyRatingSelectedIndex:G.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},x,{richGridMiniMode:G.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},x,{richGridItemsPerRow:G.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},x,{richGridSlimItemsPerRow:G.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},x,{richGridContainerWidth:G.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},x,{richGridStyle:G.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},x,{currentPageType:G.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},x,{inlinePreviewIsActive:G.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},x,{inlinePreviewIsEnabled:G.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},x,{darkModeIsEnabled:G.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
x,{miniplayerPlaybackState:G.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},x,{tabGesturesIsActive:G.payload});case "SET_ONLINE_STATUS":return Object.assign({},x,{isOnline:G.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},x,{chipBarIsSticky:G.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},x,{frostedGlassMode:G.payload});default:return x}};
WaD=function(x,G){x=x===void 0?TQP:x;switch(G.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},x,{transcription:G.payload});case "SET_OVERLAY_STATE":return Object.assign({},x,{overlay:G.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return x}};
rid=function(){return cy(Object.assign({},{continuation:emE,entities:EGV,download:ZJL,reportChannelAbuse:MK3,share:Qrh,talkToRecs:pGf,ui:cif,voiceSearch:WaD,watch:VKn,ypc:bJ3,shorts:LaO,radioButtonGroup:yi$,collabInviteLink:aOf},BQD))};
mZd=function(){return _.B("web_player_entities_middleware")?new dK(rid(),[srC,Y3V]):new dK(rid(),[srC])};
_.wK=function(){HJL||(HJL=mZd());return HJL};
$ZP=function(x,G,D){if(x.length)return{titleText:_.tN(G!=null?G:_.Wg("DOWNLOADS",void 0,"Downloads")),contents:x.map(function(K){var z=K.videoEntity;K={videoId:z.videoId,title:kO(z.title),shortBylineText:kO(K.channelEntity.title),thumbnail:z.thumbnail};var y=z.videoId?OA(_.wK().getState(),z.videoId):0;z.videoId&&D?K.navigationEndpoint=_.fW(z.videoId,D,void 0,void 0,y):z.videoId&&(K.navigationEndpoint=XRE(z.videoId,y,z.lengthSeconds));z.lengthSeconds&&(K.thumbnailOverlays=xZ3(z.lengthSeconds,y));return{playlistPanelVideoRenderer:K}}),
totalVideos:x.length}};
FaP=function(x){return(x=(0,_.YS.getValueByKeys)(x,"playlistId"))?{playlistId:x}:null};
Caf=function(){return{}};
IOD=function(x,G){return new _.T1(function(D,K){x.then(function(z){if(z){if(z=G(z))return D(z);K()}},K)})};
jrC=function(x){var G,D,K,z=(G=x.contents)==null?void 0:(D=G.twoColumnWatchNextResults)==null?void 0:(K=D.autoplay)==null?void 0:K.autoplay,y,c,W;G=(y=x.contents)==null?void 0:(c=y.twoColumnWatchNextResults)==null?void 0:(W=c.playlist)==null?void 0:W.playlist;return z&&G&&G.playlistId?{rawResponse:x,autoplayRenderer:z,playlistPanelRenderer:G,playlistId:G.playlistId}:null};
XGf=function(x){var G=G===void 0?"UNKNOWN_INTERFACE":G;if(x.length===1)return x[0];var D=OJC[G];if(D){D=new RegExp(D);for(var K=_.l(x),z=K.next();!z.done;z=K.next())if(z=z.value,D.exec(z))return z}var y=[];Object.entries(OJC).forEach(function(c){var W=_.l(c);c=W.next().value;W=W.next().value;G!==c&&y.push(W)});
D=new RegExp(y.join("|"));x.sort(function(c,W){return c.length-W.length});
K=_.l(x);for(z=K.next();!z.done;z=K.next())if(z=z.value,!D.exec(z))return z;return x[0]};
_.qW=function(x){return"/youtubei/v1/"+XGf(x)};
_.NW=function(x){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:x}}}}};
_.vk=function(x){return _.NW(_.gK(x))};
Ain=function(x,G){var D={mode:"NORMAL"};x&&(D.autoplayVideo=x.navigationEndpoint,D.nextButtonVideo=x.navigationEndpoint);G&&(D.previousButtonVideo=G.navigationEndpoint);return D};
S3f=function(x,G,D){if(!D||!D.sets)return{sets:[Ain(x,G)]};var K=D.sets.find(function(c){return c.mode==="NORMAL"}),z=(0,_.YS.unsafeClone)(D);
if(!K)return z.sets.push(Ain(x,G)),z;if(!x)return D;K=_.YS.getValueByKeys.apply(null,[K].concat(_.B5(UZV)));var y=_.YS.getValueByKeys.apply(null,[x].concat(_.B5(Rm3)));if(K===y)return D;z.sets=z.sets.filter(function(c){return c.mode!=="NORMAL"});
z.sets.push(Ain(x,G));return z};
nPf=function(x){return!!x.playlistPanelVideoRenderer&&!x.playlistPanelVideoRenderer.unplayableText};
iJV=function(x){return!!x.playlistPanelVideoRenderer&&!!x.playlistPanelVideoRenderer.title};
gPO=function(x,G){if(G.contents&&!(x>=G.contents.length)&&(x=G.contents.slice(x).find(nPf)))return x.playlistPanelVideoRenderer};
upC=function(x,G){if(G.contents)return(G=G.contents.find(function(D){return!!D.playlistPanelVideoRenderer&&D.playlistPanelVideoRenderer.videoId===x}))?G.playlistPanelVideoRenderer:void 0};
dZf=function(x,G){return G.contents?G.contents.findIndex(function(D){return!!D.playlistPanelVideoRenderer&&D.playlistPanelVideoRenderer.videoId===x}):-1};
wGf=function(x,G){return G.contents?G.contents.findIndex(function(D){return!!D.playlistPanelVideoRenderer&&D.playlistPanelVideoRenderer.playlistSetVideoId===x}):-1};
q3L=function(x,G){x.contents&&G!==-1&&x.contents.splice(G,1).length===1&&x.totalVideos!==void 0&&(--x.totalVideos,delete x.videoCountText)};
_.NQQ=function(x){var G=[];if(!x||!x.contents)return G;x=_.l(x.contents);for(var D=x.next();!D.done;D=x.next())D=D.value,D.playlistPanelVideoRenderer&&D.playlistPanelVideoRenderer.videoId&&G.push(D.playlistPanelVideoRenderer.videoId);return G};
_.vP3=function(x){if(x&&x.contents)return(x=x.contents.find(function(G){return!!G.playlistPanelVideoRenderer&&!!G.playlistPanelVideoRenderer.selected})||x.contents[x.currentIndex])?x.playlistPanelVideoRenderer:void 0};
JiL=function(x,G,D,K,z,y,c){z=z===void 0?!1:z;y=y===void 0?!1:y;c=c===void 0?!1:c;if(x.contents&&x.contents.length!==0){K&&(x.contents=x.contents.filter(K));K=x.contents.length;for(var W=0;W<K;W++){var e=x.contents[W].playlistPanelVideoRenderer;e&&(W===G?(y&&delete e.menu,e.indexText=_.gK("\u25b6")):z||x.isInfinite||e.indexText===void 0?delete e.indexText:e.indexText=_.gK((W+1+D).toString()))}x.currentIndex=G+D;c&&(delete x.videoCountText,x.totalVideos=K)}};
_.Jr=function(x){x=fOC(x);if(x){var G=x.length;var D=-63%G;D<0&&(D=G+D);x=x.slice(G-D)+x.slice(0,G-D)}else x="";D="";for(G=0;G<x.length&&x[G]!==tKP;G++)D+=x[G];return D};
_.k$d=function(x,G){var D=document.body;G=G===void 0?function(W){return W}:G;
var K,z=null;x=_.l(x);for(K=x.next();!K.done;K=x.next()){var y=K.value;K=void 0;var c=(K=y[2])!=null?K:"div";K=document.createElement(c);z||(z=K);c=y[0];y=y[1];c&&(K.id=G(c));if(y)for(y=_.l(y),c=y.next();!c.done;c=y.next())K.classList.add(G(c.value));D.appendChild(K);D=K}return[z,D]};
PaO=function(x,G){for(var D="",K=0;K<G;K++)D+=x.charAt(Math.floor(Math.random()*x.length));return D};
f3=function(x){return PaO("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",x)};
tr=function(x){return PaO("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",x)};
k_=function(x){return PaO("0123456789",x)};
Pk=function(){var x=performance.now(),G=new Date;var D="2."+G.getFullYear()+String(G.getMonth()+1).padStart(2,"0")+String(G.getDate()).padStart(2,"0");for(var K,z=Math.floor(Math.random()*11)+15,y=[],c=0;c<z;c++)y.push(Math.floor(Math.random()*26476865)+24547720);K=y.join(",");var W=f3(10),e=f3(100),Q=f3(102),p=f3(106),V=f3(108),L=f3(11),r=f3(1140),H=f3(123),O=f3(14),A=f3(16),g=f3(1900),u=f3(23),f=f3(26),v=f3(34),P=f3(397),k=f3(44),cL=f3(5),bO=f3(72),mE=f3(74),jf=f3(75),$C=f3(88),OD=f3(91),wn="rr2---sn-aigl6nzs rr2---sn-q4fl6nsy rr4---sn-q4fl6nd7 rr2---sn-4g5lznez rr2---sn-q4fl6ndz rr2---sn-q4fzen7l rr3---sn-q4fl6nd7 rr1---sn-t0a7lnee rr4---sn-q4fl6nsd rr2---sn-q4flrner rr3---sn-5hne6nsr rr2---sn-q4fzene7 rr1---sn-ntqe6n7r rr5---sn-4g5ednd7 rr5---sn-q4fzen7l rr1---sn-5hne6nzs rr3---sn-5hneknee rr2---sn-hgn7rnll rr5---sn-hgn7rnll rr1---sn-q4fl6nd6".split(" ");
var n$=wn[Math.floor(Math.random()*wn.length)];var Fi=(new Date("2010-01-01")).getTime();var pf=(new Date(Fi+Math.random()*((new Date).getTime()-Fi))).toISOString().split("T")[0];for(var UE,M0=[],cs=0;cs<4;cs++)M0.push(Math.floor(Math.random()*100));UE=M0.join(".");var G8=Number(k_(5)),T7=Number(k_(6)),Wd=Number(k_(7)),Fc=Number(k_(9)),lO=k_(1),Bs=k_(10),Xi=k_(16),uC=k_(19),Y8=k_(2),fu=k_(20),g4=k_(21),vs=k_(3),as=k_(4),d9=k_(5),Lf=k_(6),Lu=k_(7),Cu=k_(8),ex=k_(9);var y$=PaO("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var yj=[tr(5),tr(5),tr(5)].join("%2C"),bX=[k_(3),k_(5),k_(5)].join("%2C"),l0=tr(0),g9=tr(1),FO=tr(10),Ec=tr(108),h6=tr(11),TZ=tr(12),uX=tr(13),RW=tr(14),aA=tr(15),PC=tr(16),zy=tr(17),sD=tr(18),Sf=tr(19),dn=tr(2),Ws=tr(20),aT=tr(22),Cm=tr(23),Zc=tr(24),VJ=tr(266),QJ=tr(3),BY=tr(30),eX=tr(34),os=tr(35),bH=tr(36),Vx=tr(4),Ag=tr(40),Ll=tr(43),lp=tr(47),Qy=tr(5),NL=tr(6),lC=tr(7),lU=tr(75),nf=tr(8),H5=tr(80),fl=tr(9),IS="https://www."+tr(12)+".com",MV={},QW={},eb={},dk$={},Z9={},S6={},nK={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:K}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:D},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+tr(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:D},{key:"client.name",value:"WEB"},{key:"client.fexp",value:K}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:g4+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+tr(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:Ag,ypcGetOfflineUpsellEndpoint:{params:H5}},trackingParams:os+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+n$+".googlevideo.com/videoplayback?expire="+Bs+"&ei="+u+"&ip="+UE+"&id=o-AF"+Ll+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+bX+"&mn="+yj+"&ms="+yj+"&mv="+g9+"&mvi="+lO+"&pl="+Y8+"&initcwndbps="+Lu+"&siu="+lO+"&spc="+k+"&vprv="+lO+"&svpuc="+lO+"&mime=video%2Fmp4&ns="+Zc+"&cnr="+Y8+"&ratebypass=yes&dur="+Cu+"&lmt="+Xi+"&mt="+Bs+"&fvip=3&c=WEB&txp="+Lu+"&n="+A+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:T7,width:640,height:360,lastModified:Xi,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Lu,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+n$+".googlevideo.com/videoplayback?expire="+Bs+"&ei="+u+"&ip="+UE+"&id=o-AF"+Ll+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+bX+"&mn="+
yj+"&ms="+yj+"&mv="+g9+"&mvi="+lO+"&pl="+Y8+"&initcwndbps="+Lu+"&siu="+lO+"&spc="+k+"&vprv="+lO+"&svpuc="+lO+"&mime=video%2Fmp4&ns="+Zc+"&cnr="+Y8+"&ratebypass=yes&dur="+Cu+"&lmt="+Xi+"&mt="+Bs+"&fvip=3&c=WEB&txp="+Lu+"&n="+A+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+Ec+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:T7,width:1280,
height:720,lastModified:Xi,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Lu,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+n$+".googlevideo.com/videoplayback?expire="+Bs+"&ei="+u+"&ip="+UE+"&id=o-AF"+Ll+"&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="+bX+"&mn="+yj+"&ms="+
yj+"&mv="+g9+"&mvi="+lO+"&pl="+Y8+"&initcwndbps="+Lu+"&siu="+lO+"&spc="+k+"&vprv="+lO+"&svpuc="+lO+"&mime=video%2Fmp4&ns="+Zc+"&gir="+QJ+"&clen="+ex+"&dur="+Cu+"&lmt="+Xi+"&mt="+Bs+"&fvip=3&keepalive="+QJ+"&c=WEB&txp="+Lu+"&n="+PC+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:Wd,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:vs,end:as},lastModified:Xi,contentLength:ex,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Wd,approxDurationMs:Lu},{itag:248,url:"https://"+n$+".googlevideo.com/videoplayback?expire="+Bs+"&ei="+u+"&ip="+UE+"&id=o-AF"+Ll+"&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="+bX+"&mn="+yj+"&ms="+yj+"&mv="+
g9+"&mvi="+lO+"&pl="+Y8+"&initcwndbps="+Lu+"&siu="+lO+"&spc="+k+"&vprv="+lO+"&svpuc="+lO+"&mime=video%2Fwebm&ns="+Zc+"&gir="+QJ+"&clen="+ex+"&dur="+Cu+"&lmt="+Xi+"&mt="+Bs+"&fvip=3&keepalive="+QJ+"&c=WEB&txp="+Lu+"&n="+PC+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/webm; codecs="vp9"',bitrate:Wd,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:vs,end:as},lastModified:Xi,contentLength:ex,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Wd,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Lu},{itag:399,url:"https://"+n$+".googlevideo.com/videoplayback?expire="+Bs+"&ei="+u+"&ip="+UE+"&id=o-AF"+Ll+"&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="+
bX+"&mn="+yj+"&ms="+yj+"&mv="+g9+"&mvi="+lO+"&pl="+Y8+"&initcwndbps="+Lu+"&siu="+lO+"&spc="+k+"&vprv="+lO+"&svpuc="+lO+"&mime=video%2Fmp4&ns="+Zc+"&gir="+QJ+"&clen="+ex+"&dur="+Cu+"&lmt="+Xi+"&mt="+Bs+"&fvip=3&keepalive="+QJ+"&c=WEB&txp="+Lu+"&n="+PC+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:Wd,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:vs,end:as},lastModified:Xi,contentLength:ex,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Wd,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Lu},{itag:136,url:"https://"+n$+".googlevideo.com/videoplayback?expire="+Bs+"&ei="+u+"&ip="+UE+"&id=o-AF"+Ll+"&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="+
bX+"&mn="+yj+"&ms="+yj+"&mv="+g9+"&mvi="+lO+"&pl="+Y8+"&initcwndbps="+Lu+"&siu="+lO+"&spc="+k+"&vprv="+lO+"&svpuc="+lO+"&mime=video%2Fmp4&ns="+Zc+"&gir="+QJ+"&clen="+ex+"&dur="+Cu+"&lmt="+Xi+"&mt="+Bs+"&fvip=3&keepalive="+QJ+"&c=WEB&txp="+Lu+"&n="+PC+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Wd,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:vs,end:as},lastModified:Xi,contentLength:ex,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:T7,approxDurationMs:Lu},{itag:247,url:"https://"+n$+".googlevideo.com/videoplayback?expire="+Bs+"&ei="+u+"&ip="+UE+"&id=o-AF"+Ll+"&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="+bX+"&mn="+
yj+"&ms="+yj+"&mv="+g9+"&mvi="+lO+"&pl="+Y8+"&initcwndbps="+Lu+"&siu="+lO+"&spc="+k+"&vprv="+lO+"&svpuc="+lO+"&mime=video%2Fwebm&ns="+Zc+"&gir="+QJ+"&clen="+ex+"&dur="+Cu+"&lmt="+Xi+"&mt="+Bs+"&fvip=3&keepalive="+QJ+"&c=WEB&txp="+Lu+"&n="+PC+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/webm; codecs="vp9"',bitrate:Wd,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:vs,end:as},lastModified:Xi,contentLength:ex,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:T7,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Lu},{itag:398,url:"https://"+n$+".googlevideo.com/videoplayback?expire="+Bs+"&ei="+u+"&ip="+UE+"&id=o-AF"+Ll+"&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="+
bX+"&mn="+yj+"&ms="+yj+"&mv="+g9+"&mvi="+lO+"&pl="+Y8+"&initcwndbps="+Lu+"&siu="+lO+"&spc="+k+"&vprv="+lO+"&svpuc="+lO+"&mime=video%2Fmp4&ns="+Zc+"&gir="+QJ+"&clen="+ex+"&dur="+Cu+"&lmt="+Xi+"&mt="+Bs+"&fvip=3&keepalive="+QJ+"&c=WEB&txp="+Lu+"&n="+PC+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:Wd,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:vs,end:as},lastModified:Xi,contentLength:ex,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:T7,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Lu},{itag:135,url:"https://"+n$+".googlevideo.com/videoplayback?expire="+Bs+"&ei="+u+"&ip="+UE+"&id=o-AF"+Ll+"&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="+
bX+"&mn="+yj+"&ms="+yj+"&mv="+g9+"&mvi="+lO+"&pl="+Y8+"&initcwndbps="+Lu+"&siu="+lO+"&spc="+k+"&vprv="+lO+"&svpuc="+lO+"&mime=video%2Fmp4&ns="+Zc+"&gir="+QJ+"&clen="+Cu+"&dur="+Cu+"&lmt="+Xi+"&mt="+Bs+"&fvip=3&keepalive="+QJ+"&c=WEB&txp="+Lu+"&n="+PC+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:T7,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:vs,end:as},lastModified:Xi,contentLength:Cu,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:T7,approxDurationMs:Lu},{itag:244,url:"https://"+n$+".googlevideo.com/videoplayback?expire="+Bs+"&ei="+u+"&ip="+UE+"&id=o-AF"+Ll+"&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="+bX+"&mn="+
yj+"&ms="+yj+"&mv="+g9+"&mvi="+lO+"&pl="+Y8+"&initcwndbps="+Lu+"&siu="+lO+"&spc="+k+"&vprv="+lO+"&svpuc="+lO+"&mime=video%2Fwebm&ns="+Zc+"&gir="+QJ+"&clen="+Cu+"&dur="+Cu+"&lmt="+Xi+"&mt="+Bs+"&fvip=3&keepalive="+QJ+"&c=WEB&txp="+Lu+"&n="+PC+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Ec+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/webm; codecs="vp9"',bitrate:T7,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:vs,end:as},lastModified:Xi,contentLength:Cu,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:T7,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Lu},{itag:397,url:"https://"+n$+".googlevideo.com/videoplayback?expire="+Bs+"&ei="+u+"&ip="+UE+"&id=o-AF"+Ll+"&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="+
bX+"&mn="+yj+"&ms="+yj+"&mv="+g9+"&mvi="+lO+"&pl="+Y8+"&initcwndbps="+Lu+"&siu="+lO+"&spc="+k+"&vprv="+lO+"&svpuc="+lO+"&mime=video%2Fmp4&ns="+Zc+"&gir="+QJ+"&clen="+Cu+"&dur="+Cu+"&lmt="+Xi+"&mt="+Bs+"&fvip=3&keepalive="+QJ+"&c=WEB&txp="+Lu+"&n="+PC+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:T7,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:vs,end:as},lastModified:Xi,contentLength:Cu,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:T7,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Lu},{itag:134,url:"https://"+n$+".googlevideo.com/videoplayback?expire="+Bs+"&ei="+u+"&ip="+UE+"&id=o-AF"+Ll+"&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="+
bX+"&mn="+yj+"&ms="+yj+"&mv="+g9+"&mvi="+lO+"&pl="+Y8+"&initcwndbps="+Lu+"&siu="+lO+"&spc="+k+"&vprv="+lO+"&svpuc="+lO+"&mime=video%2Fmp4&ns="+Zc+"&gir="+QJ+"&clen="+Cu+"&dur="+Cu+"&lmt="+Xi+"&mt="+Bs+"&fvip=3&keepalive="+QJ+"&c=WEB&txp="+Lu+"&n="+PC+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:T7,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:vs,end:as},lastModified:Xi,contentLength:Cu,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:T7,highReplication:!0,approxDurationMs:Lu},{itag:243,url:"https://"+n$+".googlevideo.com/videoplayback?expire="+Bs+"&ei="+u+"&ip="+UE+"&id=o-AF"+Ll+"&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="+
bX+"&mn="+yj+"&ms="+yj+"&mv="+g9+"&mvi="+lO+"&pl="+Y8+"&initcwndbps="+Lu+"&siu="+lO+"&spc="+k+"&vprv="+lO+"&svpuc="+lO+"&mime=video%2Fwebm&ns="+Zc+"&gir="+QJ+"&clen="+Cu+"&dur="+Cu+"&lmt="+Xi+"&mt="+Bs+"&fvip=3&keepalive="+QJ+"&c=WEB&txp="+Lu+"&n="+PC+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/webm; codecs="vp9"',bitrate:T7,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:vs,end:as},lastModified:Xi,contentLength:Cu,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:T7,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Lu},{itag:396,url:"https://"+n$+".googlevideo.com/videoplayback?expire="+Bs+"&ei="+u+"&ip="+UE+"&id=o-AF"+Ll+"&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="+
bX+"&mn="+yj+"&ms="+yj+"&mv="+g9+"&mvi="+lO+"&pl="+Y8+"&initcwndbps="+Lu+"&siu="+lO+"&spc="+k+"&vprv="+lO+"&svpuc="+lO+"&mime=video%2Fmp4&ns="+Zc+"&gir="+QJ+"&clen="+Cu+"&dur="+Cu+"&lmt="+Xi+"&mt="+Bs+"&fvip=3&keepalive="+QJ+"&c=WEB&txp="+Lu+"&n="+PC+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:T7,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:vs,end:as},lastModified:Xi,contentLength:Cu,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:T7,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Lu},{itag:133,url:"https://"+n$+".googlevideo.com/videoplayback?expire="+Bs+"&ei="+u+"&ip="+UE+"&id=o-AF"+Ll+"&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="+
bX+"&mn="+yj+"&ms="+yj+"&mv="+g9+"&mvi="+lO+"&pl="+Y8+"&initcwndbps="+Lu+"&siu="+lO+"&spc="+k+"&vprv="+lO+"&svpuc="+lO+"&mime=video%2Fmp4&ns="+Zc+"&gir="+QJ+"&clen="+Cu+"&dur="+Cu+"&lmt="+Xi+"&mt="+Bs+"&fvip=3&keepalive="+QJ+"&c=WEB&txp="+Lu+"&n="+PC+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:T7,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:vs,end:as},lastModified:Xi,contentLength:Cu,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:T7,approxDurationMs:Lu},{itag:242,url:"https://"+n$+".googlevideo.com/videoplayback?expire="+Bs+"&ei="+u+"&ip="+UE+"&id=o-AF"+Ll+"&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="+bX+"&mn="+
yj+"&ms="+yj+"&mv="+g9+"&mvi="+lO+"&pl="+Y8+"&initcwndbps="+Lu+"&siu="+lO+"&spc="+k+"&vprv="+lO+"&svpuc="+lO+"&mime=video%2Fwebm&ns="+Zc+"&gir="+QJ+"&clen="+Cu+"&dur="+Cu+"&lmt="+Xi+"&mt="+Bs+"&fvip=3&keepalive="+QJ+"&c=WEB&txp="+Lu+"&n="+PC+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/webm; codecs="vp9"',bitrate:T7,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:vs,end:as},lastModified:Xi,contentLength:Cu,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:T7,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Lu},{itag:395,url:"https://"+n$+".googlevideo.com/videoplayback?expire="+Bs+"&ei="+u+"&ip="+UE+"&id=o-AF"+Ll+"&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="+
bX+"&mn="+yj+"&ms="+yj+"&mv="+g9+"&mvi="+lO+"&pl="+Y8+"&initcwndbps="+Lu+"&siu="+lO+"&spc="+k+"&vprv="+lO+"&svpuc="+lO+"&mime=video%2Fmp4&ns="+Zc+"&gir="+QJ+"&clen="+Cu+"&dur="+Cu+"&lmt="+Xi+"&mt="+Bs+"&fvip=3&keepalive="+QJ+"&c=WEB&txp="+Lu+"&n="+PC+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:T7,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:vs,end:as},lastModified:Xi,contentLength:Cu,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:T7,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Lu},{itag:160,url:"https://"+n$+".googlevideo.com/videoplayback?expire="+Bs+"&ei="+u+"&ip="+UE+"&id=o-AF"+Ll+"&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="+
bX+"&mn="+yj+"&ms="+yj+"&mv="+g9+"&mvi="+lO+"&pl="+Y8+"&initcwndbps="+Lu+"&siu="+lO+"&spc="+k+"&vprv="+lO+"&svpuc="+lO+"&mime=video%2Fmp4&ns="+Zc+"&gir="+QJ+"&clen="+Cu+"&dur="+Cu+"&lmt="+Xi+"&mt="+Bs+"&fvip=3&keepalive="+QJ+"&c=WEB&txp="+Lu+"&n="+PC+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:T7,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:vs,end:as},lastModified:Xi,contentLength:Cu,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:G8,approxDurationMs:Lu},{itag:278,url:"https://"+n$+".googlevideo.com/videoplayback?expire="+Bs+"&ei="+u+"&ip="+UE+"&id=o-AF"+Ll+"&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="+bX+"&mn="+
yj+"&ms="+yj+"&mv="+g9+"&mvi="+lO+"&pl="+Y8+"&initcwndbps="+Lu+"&siu="+lO+"&spc="+k+"&vprv="+lO+"&svpuc="+lO+"&mime=video%2Fwebm&ns="+Zc+"&gir="+QJ+"&clen="+Cu+"&dur="+Cu+"&lmt="+Xi+"&mt="+Bs+"&fvip=3&keepalive="+QJ+"&c=WEB&txp="+Lu+"&n="+PC+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/webm; codecs="vp9"',bitrate:T7,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:vs,end:as},lastModified:Xi,contentLength:Cu,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:G8,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Lu},{itag:394,url:"https://"+n$+".googlevideo.com/videoplayback?expire="+Bs+"&ei="+u+"&ip="+UE+"&id=o-AF"+Ll+"&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="+
bX+"&mn="+yj+"&ms="+yj+"&mv="+g9+"&mvi="+lO+"&pl="+Y8+"&initcwndbps="+Lu+"&siu="+lO+"&spc="+k+"&vprv="+lO+"&svpuc="+lO+"&mime=video%2Fmp4&ns="+Zc+"&gir="+QJ+"&clen="+Cu+"&dur="+Cu+"&lmt="+Xi+"&mt="+Bs+"&fvip=3&keepalive="+QJ+"&c=WEB&txp="+Lu+"&n="+PC+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:G8,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:vs,end:as},lastModified:Xi,contentLength:Cu,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:G8,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Lu},{itag:140,url:"https://"+n$+".googlevideo.com/videoplayback?expire="+Bs+"&ei="+u+"&ip="+UE+"&id=o-AF"+Ll+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
bX+"&mn="+yj+"&ms="+yj+"&mv="+g9+"&mvi="+lO+"&pl="+Y8+"&initcwndbps="+Lu+"&siu="+lO+"&spc="+k+"&vprv="+lO+"&svpuc="+lO+"&mime=audio%2Fmp4&ns="+Zc+"&gir="+QJ+"&clen="+Cu+"&dur="+Cu+"&lmt="+Xi+"&mt="+Bs+"&fvip=3&keepalive="+QJ+"&c=WEB&txp="+Lu+"&n="+PC+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:T7,
initRange:{start:"0",end:"631"},indexRange:{start:vs,end:as},lastModified:Xi,contentLength:Cu,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:T7,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Lu,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+n$+".googlevideo.com/videoplayback?expire="+Bs+"&ei="+u+"&ip="+UE+"&id=o-AF"+Ll+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+bX+"&mn="+yj+"&ms="+yj+"&mv="+g9+"&mvi="+lO+"&pl="+
Y8+"&initcwndbps="+Lu+"&siu="+lO+"&spc="+k+"&vprv="+lO+"&svpuc="+lO+"&mime=audio%2Fwebm&ns="+Zc+"&gir="+QJ+"&clen="+Lu+"&dur="+Cu+"&lmt="+Xi+"&mt="+Bs+"&fvip=3&keepalive="+QJ+"&c=WEB&txp="+Lu+"&n="+PC+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'audio/webm; codecs="opus"',bitrate:G8,initRange:{start:"0",end:"265"},indexRange:{start:vs,
end:as},lastModified:Xi,contentLength:Lu,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:G8,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Lu,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+n$+".googlevideo.com/videoplayback?expire="+Bs+"&ei="+u+"&ip="+UE+"&id=o-AF"+Ll+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+bX+"&mn="+yj+"&ms="+yj+"&mv="+g9+"&mvi="+lO+"&pl="+Y8+"&initcwndbps="+Lu+"&siu="+lO+"&spc="+k+"&vprv="+lO+"&svpuc="+lO+"&mime=audio%2Fwebm&ns="+
Zc+"&gir="+QJ+"&clen="+Lu+"&dur="+Cu+"&lmt="+Xi+"&mt="+Bs+"&fvip=3&keepalive="+QJ+"&c=WEB&txp="+Lu+"&n="+PC+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'audio/webm; codecs="opus"',bitrate:G8,initRange:{start:"0",end:"265"},indexRange:{start:vs,end:as},lastModified:Xi,contentLength:Lu,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:G8,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Lu,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+n$+".googlevideo.com/videoplayback?expire="+Bs+"&ei="+u+"&ip="+UE+"&id=o-AF"+Ll+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+bX+"&mn="+yj+"&ms="+yj+"&mv="+g9+"&mvi="+lO+"&pl="+Y8+"&initcwndbps="+Lu+"&siu="+lO+"&spc="+k+"&vprv="+lO+"&svpuc="+lO+"&mime=audio%2Fwebm&ns="+Zc+"&gir="+QJ+"&clen="+Cu+"&dur="+Cu+"&lmt="+Xi+"&mt="+Bs+"&fvip=3&keepalive="+QJ+"&c=WEB&txp="+
Lu+"&n="+PC+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'audio/webm; codecs="opus"',bitrate:T7,initRange:{start:"0",end:"265"},indexRange:{start:vs,end:as},lastModified:Xi,contentLength:Cu,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:T7,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Lu,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="+ex+"&docid="+L+"&ei="+u+"&feature="+W+"&fexp="+l0+"&ns="+dn+"&plid="+A+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+g9+"&el="+FO+"&len="+as+"&of="+aT+
"&uga="+Y8+"&vm="+VJ},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+ex+"&docid="+L+"&ei="+u+"&feature="+W+"&fexp="+l0+"&ns="+dn+"&plid="+A+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+g9+"&el="+FO+"&len="+as+"&of="+aT+"&uga="+Y8+"&vm="+VJ},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+ex+"&docid="+L+"&ei="+u+"&feature="+W+"&fexp="+l0+"&ns="+dn+"&plid="+A+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
g9+"&el="+FO+"&len="+as+"&of="+aT+"&uga="+Y8+"&vm="+VJ},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+u+"&m="+$C+"&oid="+aT+"&plid="+A+"&pltype="+lC+"&ptchn="+aT+"&ptk="+O+"&video_id="+L},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+ex+"&docid="+L+"&ei="+u+"&event="+RW+"&feature="+W+"&fexp="+l0+"&ns="+dn+"&plid="+A+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+g9},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+L+"&ei="+u+"&feature="+
W+"&len="+as+"&ns="+dn+"&plid="+A+"&ver="+lO,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+L+"&caps="+QJ+"&opi="+ex+"&xoaf="+lO+"&hl="+dn+"&ip="+UE+"&ipbits="+lO+"&expire="+Bs+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+UE+"&key="+QJ+"&lang="+cL,name:{simpleText:NL},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+L+"&caps="+QJ+"&opi="+ex+"&xoaf="+lO+"&hl="+dn+"&ip="+UE+"&ipbits="+lO+"&expire="+Bs+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+UE+"&key="+QJ+"&kind="+QJ+"&lang="+dn,name:{simpleText:Vx},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:h6,title:Qy,lengthSeconds:"1155",keywords:[nf,nf,Vx,lC],
channelId:Zc,isOwnerViewing:!1,shortDescription:fl,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+L+"/hqdefault.jpg?sqp=-oaymwE"+bH+"G&rs="+eX,width:168,height:94},{url:"https://i.ytimg.com/vi/"+L+"/hqdefault.jpg?sqp=-oaymwE"+bH+"G&rs="+eX,width:196,height:110},{url:"https://i.ytimg.com/vi/"+L+"/hqdefault.jpg?sqp=-oaymwE"+bH+"G&rs="+v,width:246,height:138},{url:"https://i.ytimg.com/vi/"+L+"/hqdefault.jpg?sqp=-oaymwE"+bH+"G&rs="+v,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
L+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:Lu,author:uX,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:Lu,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+aT+"/featured_channel.jpg?v="+nf,width:40,height:40}]},trackingParams:os+"=",navigationEndpoint:{clickTrackingParams:Ag,commandMetadata:{webCommandMetadata:{url:"/channel/"+Zc,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Zc}},channelName:uX,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Sf}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Zc,showPreferences:!1,subscribedButtonText:{runs:[{text:Ws}]},unsubscribedButtonText:{runs:[{text:fl}]},trackingParams:os+"=",unsubscribeButtonText:{runs:[{text:NL}]},serviceEndpoints:[{clickTrackingParams:Ag,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[Zc],params:nf}},{clickTrackingParams:Ag,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Ag,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:os+"=",dialogMessages:[{runs:[{text:nf},{text:nf},{text:Vx}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Ws}]},serviceEndpoint:{clickTrackingParams:Ag,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Zc],params:nf}},accessibility:{label:Ws},trackingParams:os+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:h6}]},accessibility:{label:RW},trackingParams:os+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:uX}},unsubscribeAccessibility:{accessibilityData:{label:Ws}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:Cu},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:Ag,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:Ag,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Zc],params:nf}},unsubscribeCommand:{clickTrackingParams:Ag,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Zc],params:nf}},addToWatchLaterCommand:{clickTrackingParams:Ag,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:h6,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:Ag,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:h6}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+L+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+bH+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
L+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+h6,width:1280,height:720},title:{simpleText:Vx},description:{simpleText:PC},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+h6,externalChannelId:Zc,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:Lu,category:"Travel & Events",publishDate:pf,ownerChannelName:uX,uploadDate:pf}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:RW},trackingParams:os+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:Ag,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:os+"="}}],headerText:{simpleText:Ws},icon:{infoCardIconRenderer:{trackingParams:os+"="}},closeButton:{infoCardIconRenderer:{trackingParams:os+"="}},trackingParams:os+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:os+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+h6+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:y$,interpreterSafeUrl:(MV.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+BY+".js",MV),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:PC},{text:h6,bold:!0}]},endpoint:{clickTrackingParams:Ag,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:os+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:Sf}]},actionButton:{buttonRenderer:{text:{runs:[{text:FO}]},navigationEndpoint:{clickTrackingParams:Ag,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+L,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
L,target:"TARGET_NEW_WINDOW"}},trackingParams:os+"="}},trackingParams:os+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+bO+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+bO+"=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:Lu,endMs:Lu,title:{accessibility:{accessibilityData:{label:h6}},simpleText:Qy},metadata:{simpleText:Vx},callToAction:{simpleText:fl},dismiss:{simpleText:nf},endpoint:{clickTrackingParams:Ag,commandMetadata:{webCommandMetadata:{url:"/channel/"+Zc,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Zc}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:RW}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Zc,showPreferences:!1,
subscribedButtonText:{runs:[{text:Qy}]},unsubscribedButtonText:{runs:[{text:RW}]},trackingParams:os+"=",unsubscribeButtonText:{runs:[{text:TZ}]},serviceEndpoints:[{clickTrackingParams:Ag,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Zc],params:nf}},{clickTrackingParams:Ag,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Ag,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:os+
"=",dialogMessages:[{runs:[{text:Vx},{text:Qy},{text:Ws}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:sD}]},serviceEndpoint:{clickTrackingParams:Ag,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Zc],params:nf}},accessibility:{label:h6},trackingParams:os+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Vx}]},
accessibility:{label:h6},trackingParams:os+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:zy}},unsubscribeAccessibility:{accessibilityData:{label:h6}}}},trackingParams:os+"=",isSubscribe:!0,id:fu}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+L+"/hqdefault.jpg?sqp=-oaymwE"+bH+"G&rs="+v,width:168,height:94},{url:"https://i.ytimg.com/vi/"+L+"/hqdefault.jpg?sqp=-oaymwE"+bH+"G&rs="+eX,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+L+"/hqdefault.jpg?sqp=-oaymwE"+bH+"G&rs="+v,width:246,height:138},{url:"https://i.ytimg.com/vi/"+L+"/hqdefault.jpg?sqp=-oaymwE"+bH+"G&rs="+v,width:336,height:188},{url:"https://i.ytimg.com/vi/"+L+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:Lu,endMs:Lu,title:{accessibility:{accessibilityData:{label:NL}},simpleText:lC},metadata:{simpleText:fl},endpoint:{clickTrackingParams:Ag,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
h6,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:h6,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+n$+".googlevideo.com/videoplayback?source=youtube&oeis="+lO+"&c=WEB&oad="+as+"&ovd="+as+"&oaad="+d9+"&oavd="+d9+"&ocs="+vs+"&oewis="+lO+"&oputc="+lO+"&ofpcc="+lO+"&siu="+lO+"&msp="+lO+"&odepv="+lO+
"&id=o-AF"+Ll+"&ip="+UE+"&initcwndbps="+Lu+"&mt="+Bs+"&oweuc="+l0}}}}},trackingParams:os+"=",id:fu,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:Qy}},simpleText:nf},style:"DEFAULT"}}]}}],startMs:Lu,trackingParams:os+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:lO,offsetEndMilliseconds:d9},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ex+";dc_trk_cid="+ex+";dc_dbm_token="+V+";ord="+Bs+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+lO+";dc_rui="+lO+";dc_exteid="+fu+";dc_av="+vs+";dc_sk="+lO+";dc_ctype="+Y8+";dc_ref=http://www.youtube.com/video/"+h6+";dc_pubid="+lO+";dc_btype=23?gclid="+OD+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
r+"____________"+H+"AxAA&sigh="+h6+"&cid="+f+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+lO+"&ns="+lO+"&event="+lO+"&device="+lO+"&content_v="+L+"&el="+FO+"&ei="+u+"&devicever="+D+"&bti="+Lu+"&format="+Lf+"&break_type="+lO+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+lO+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+UE+"&slot_pos="+lO+"&slot_len="+lO+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+bX+"&ad_len="+d9+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
h6+"&aqi="+u+"&ad_rmp="+lO+"&sli="+lO}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+H+"AxAA&sigh="+L+"&cid="+f+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+H+"AxAA&sigh="+L+"&cid="+f+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lO+";dc_exteid="+fu+";met="+lO+";ecn"+lO+"="+lO+
";etm1="+lO+";eid1="+Y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+H+"AxAA&sigh="+L+"&cid="+f+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lO+";dc_exteid="+fu+";met="+lO+";ecn"+lO+"="+lO+";etm1="+lO+";eid1="+Lf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
r+"____________"+H+"AxAA&sigh="+L+"&cid="+f+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lO+";dc_exteid="+fu+";met="+lO+";ecn"+lO+"="+lO+";etm1="+lO+";eid1="+Y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+H+"AxAA&sigh="+L+"&cid="+f+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+H+"AxAA&sigh="+L+"&cid="+f+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lO+";dc_exteid="+fu+";met="+lO+";ecn"+lO+"="+lO+";etm1="+lO+";eid1="+Y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+H+"AxAA&sigh="+L+"&cid="+f+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lO+";dc_exteid="+fu+";met="+lO+";ecn"+lO+"="+lO+";etm1="+lO+";eid1="+Lu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+H+"AxAA&sigh="+L+"&cid="+f+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
r+"____________"+H+"AxAA&sigh="+L+"&cid="+f+"&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"+r+"____________"+H+"AxAA&ase=2&num="+lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&ctype="+vs+"&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"+
r+"____________"+H+"AxAA&ase=2&num="+lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&label=video_engaged_view&ctype="+vs+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lO+";dc_exteid="+fu+";met="+lO+";ecn"+lO+"="+lO+";etm1="+lO+";eid1="+Lf+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
ex+";dc_trk_cid="+ex+";dc_dbm_token="+V+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+lO+";ord="+ex+";dc_rui="+lO+";dc_exteid="+uC+";dc_av="+lO+";dc_sk="+lO+";dc_ctype="+Y8+";dc_pubid="+lO+";dc_btype=3?gclid="+OD+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+H+"AxAA&sigh="+L+"&cid="+f+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lO+";dc_exteid="+fu+";met="+lO+";ecn"+lO+"="+lO+";etm1="+lO+";eid1="+Y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+Q+"&sig="+Cm+"&ad_cpn=[AD_CPN]&id="+NL+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+NL+"&dc_pubid="+lO+"&dc_exteid="+fu+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+H+"AxAA&sigh="+L+"&cid="+f+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+Q+"&sig="+Cm+"&ad_cpn=[AD_CPN]&id="+NL+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+lO},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+NL+"&avm="+lO+"&dc_pubid="+lO+"&dc_exteid="+
fu+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+H+"AxAA&sigh="+L+"&cid="+f+"&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="+lO+";dc_exteid="+fu+";met="+lO+";ecn"+lO+"="+lO+";etm1="+lO+";eid1="+Y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
Q+"&sig="+Cm+"&ad_cpn=[AD_CPN]&id="+NL+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+lO},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+NL+"&dc_pubid="+lO+"&dc_exteid="+fu+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lO+";dc_exteid="+fu+";met="+lO+";ecn"+lO+"="+lO+";etm1="+lO+";eid1="+Y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
lO+";dc_exteid="+fu+";met="+lO+";ecn"+lO+"="+lO+";etm1="+lO+";eid1="+Lf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lO+";dc_exteid="+fu+";met="+lO+";ecn"+lO+"="+lO+";etm1="+lO+";eid1="+Y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lO+";dc_exteid="+fu+";met="+lO+";ecn"+lO+"="+lO+";etm1="+lO+";eid1="+Lf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+H+"AxAA&sigh="+L+"&cid="+f+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lO+";dc_exteid="+fu+";met="+lO+";ecn"+lO+"="+lO+";etm1="+lO+";eid1="+Y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Ag,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+H+"AxAA&ase=2&num="+lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&label=video_click_to_advertiser_site&ctype="+vs+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+H+"AxAA&ase=2&num="+lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&label=video_click_to_advertiser_site&ctype="+
vs+"&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/"+L+"/mqdefault.jpg",width:320,height:180}]},trackingParams:os+"="},trackingParams:os+
"=",templatedCountdown:{templatedAdText:{text:aA,isTemplated:!0,trackingParams:os+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Qy,isTemplated:!1,trackingParams:os+"="},trackingParams:os+"="}},trackingParams:os+"=",skipOffsetMilliseconds:5E3}},trackingParams:os+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:FO},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Ag,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
r+"____________"+H+"AxAA&ase=2&num="+lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&label=video_click_to_advertiser_site&ctype="+vs+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+H+"AxAA&ase=2&num="+lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&label=video_click_to_advertiser_site&ctype="+vs+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:os+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:Ws,isTemplated:!1,trackingParams:os+"="},trackingParams:os+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Sf,isTemplated:!0,trackingParams:os+"="}},trackingParams:os+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Ag,openPopupAction:{popup:{aboutThisAdRenderer:{url:(QW.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+g+"&hl="+dn+"&origin=www.youtube.com&ata_theme="+Vx,QW),trackingParams:os+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:os+"="}},hoverText:{runs:[{text:nf}]},trackingParams:os+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+lp+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:os+"="},headline:{text:FO,isTemplated:!1,trackingParams:os+"="},description:{text:lC,
trackingParams:os+"="},actionButton:{buttonRenderer:{text:{simpleText:NL},navigationEndpoint:{clickTrackingParams:Ag,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ex+";dc_trk_cid="+ex+";dc_dbm_token="+V+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+lO+";ord="+ex+";dc_rui="+lO+";dc_exteid="+fu+";dc_av="+lO+";dc_sk="+lO+";dc_ctype="+Y8+";dc_pubid="+lO+";dc_btype=3?gclid="+OD+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
r+"____________"+H+"AxAA&ase=2&num="+lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&label=video_click_to_advertiser_site&ctype="+vs+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+H+"AxAA&ase=2&num="+lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&label=video_click_to_advertiser_site&ctype="+vs+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:os+"="}},startMs:lO,trackingParams:os+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:uX},elementId:fl}},elementId:Ws,trackingParams:os+"=",legacyInfoCardVastExtension:PC,sodarExtensionData:{siub:uX,bgub:zy,scs:FO,bgp:zy},externalVideoId:h6,adLayoutLoggingData:{serializedAdServingDataEntry:TZ},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+lp+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:os+"="},
headline:{text:Qy,isTemplated:!1,trackingParams:os+"="},description:{text:NL,isTemplated:!1,trackingParams:os+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:FO},navigationEndpoint:{clickTrackingParams:Ag,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ex+";dc_trk_cid="+ex+";dc_dbm_token="+V+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+lO+";ord="+ex+";dc_rui="+lO+";dc_exteid="+
fu+";dc_av="+lO+";dc_sk="+lO+";dc_ctype="+Y8+";dc_pubid="+lO+";dc_btype=3?gclid="+OD+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+H+"AxAA&ase=2&num="+lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&label=video_click_to_advertiser_site&ctype="+vs+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+H+"AxAA&ase=2&num="+
lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&label=video_click_to_advertiser_site&ctype="+vs+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:os+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:os+"="}},navigationEndpoint:{clickTrackingParams:Ag,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ex+";dc_trk_cid="+
ex+";dc_dbm_token="+V+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+lO+";ord="+ex+";dc_rui="+lO+";dc_exteid="+fu+";dc_av="+lO+";dc_sk="+lO+";dc_ctype="+Y8+";dc_pubid="+lO+";dc_btype=3?gclid="+OD+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+H+"AxAA&sigh="+L+"&cid="+f+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+
H+"AxAA&ase=2&num="+lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&label=video_click_to_advertiser_site&ctype="+vs+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+H+"AxAA&ase=2&num="+lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&label=video_click_to_advertiser_site&ctype="+vs+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:os+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:os+"="},abandonCommands:{commands:[{clickTrackingParams:Ag,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+H+"AxAA&sigh="+L+"&cid="+f+"&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="+lO+";dc_exteid="+fu+";met="+lO+";ecn"+
lO+"="+lO+";etm1="+lO+";eid1="+Y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Ag,commandExecutorCommand:{commands:[{clickTrackingParams:Ag,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+H+"AxAA&sigh="+L+"&cid="+f+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:aA,isTemplated:!1,trackingParams:os+
"="},trackingParams:os+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Ws},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+H+"AxAA&sigh="+L+"&cid="+f+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lO+";dc_exteid="+fu+";met="+lO+";ecn"+lO+"="+lO+";etm1="+lO+";eid1="+Lu+";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="+ex+";dc_trk_cid="+ex+";ord="+Bs+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+lO+";dc_rui="+lO+";dc_exteid="+fu+";dc_av="+vs+";dc_sk="+lO+";dc_ctype="+Y8+";dc_ref=http://www.youtube.com/video/"+h6+";dc_pubid="+lO+";dc_btype=23?gclid="+OD+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+r+"____________"+H+"AxAA&sigh="+h6+"&cid="+f+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+lO+"&ns="+lO+"&event="+lO+"&device="+lO+"&content_v="+L+"&el="+FO+"&ei="+u+"&devicever="+D+"&bti="+Lu+"&format="+Lf+"&break_type="+lO+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+lO+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+UE+"&slot_pos="+lO+"&slot_len="+lO+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
bX+"&ad_len="+d9+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+h6+"&aqi="+u+"&ad_rmp="+lO+"&sli="+lO}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+H+"AxAA&sigh="+h6+"&cid="+f+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+H+"AxAA&sigh="+h6+"&cid="+f+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
lO+";dc_exteid="+fu+";met="+lO+";ecn"+lO+"="+lO+";etm1="+lO+";eid1="+Y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+H+"AxAA&sigh="+h6+"&cid="+f+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lO+";dc_exteid="+fu+";met="+lO+";ecn"+lO+"="+lO+";etm1="+lO+";eid1="+Lf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+H+"AxAA&sigh="+h6+"&cid="+f+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lO+";dc_exteid="+fu+";met="+lO+";ecn"+lO+"="+lO+";etm1="+lO+";eid1="+Y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+H+"AxAA&sigh="+h6+"&cid="+
f+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+H+"AxAA&sigh="+h6+"&cid="+f+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lO+";dc_exteid="+fu+";met="+lO+";ecn"+lO+"="+lO+";etm1="+lO+";eid1="+Y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
r+"____________"+H+"AxAA&sigh="+h6+"&cid="+f+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lO+";dc_exteid="+fu+";met="+lO+";ecn"+lO+"="+lO+";etm1="+lO+";eid1="+Lu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+H+"AxAA&sigh="+h6+"&cid="+f+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+H+"AxAA&sigh="+h6+"&cid="+f+"&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"+r+"____________"+H+"AxAA&ase=2&num="+lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&ctype="+vs+"&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"+r+"____________"+H+"AxAA&ase=2&num="+lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&label=video_engaged_view&ctype="+vs+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lO+";dc_exteid="+fu+";met="+lO+";ecn"+lO+"="+lO+";etm1="+lO+";eid1="+Lf+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+H+"AxAA&sigh="+h6+"&cid="+f+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lO+";dc_exteid="+fu+";met="+lO+";ecn"+lO+"="+lO+";etm1="+lO+";eid1="+Y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+Q+"&sig="+Cm+"&ad_cpn=[AD_CPN]&id="+
NL+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+NL+"&dc_pubid="+lO+"&dc_exteid="+fu+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+H+"AxAA&sigh="+h6+"&cid="+f+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+Q+
"&sig="+Cm+"&ad_cpn=[AD_CPN]&id="+NL+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+lO},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+NL+"&avm="+lO+"&dc_pubid="+lO+"&dc_exteid="+fu+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+H+"AxAA&sigh="+h6+"&cid="+f+"&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="+lO+";dc_exteid="+fu+";met="+lO+";ecn"+lO+"="+lO+";etm1="+lO+";eid1="+Y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+Q+"&sig="+Cm+"&ad_cpn=[AD_CPN]&id="+NL+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+lO},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+NL+"&dc_pubid="+lO+"&dc_exteid="+fu+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lO+";dc_exteid="+fu+";met="+lO+";ecn"+lO+"="+lO+";etm1="+lO+";eid1="+Y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lO+";dc_exteid="+fu+";met="+lO+";ecn"+lO+"="+lO+";etm1="+lO+";eid1="+Lf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
lO+";dc_exteid="+fu+";met="+lO+";ecn"+lO+"="+lO+";etm1="+lO+";eid1="+Y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lO+";dc_exteid="+fu+";met="+lO+";ecn"+lO+"="+lO+";etm1="+lO+";eid1="+Lf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+H+"AxAA&sigh="+h6+"&cid="+f+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lO+";dc_exteid="+fu+";met="+lO+";ecn"+lO+"="+lO+";etm1="+lO+";eid1="+Y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Ag,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+H+"AxAA&ase=2&num="+lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&label=video_click_to_advertiser_site&ctype="+
vs+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+H+"AxAA&ase=2&num="+lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&label=video_click_to_advertiser_site&ctype="+vs+"&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/"+L+"/mqdefault.jpg",width:320,height:180}]},trackingParams:os+"="},trackingParams:os+"=",templatedCountdown:{templatedAdText:{text:Sf,isTemplated:!0,trackingParams:os+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:zy,isTemplated:!1,trackingParams:os+"="},trackingParams:os+"="}},
trackingParams:os+"=",skipOffsetMilliseconds:5E3}},trackingParams:os+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:TZ},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Ag,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+H+"AxAA&ase=2&num="+lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&label=video_click_to_advertiser_site&ctype="+vs+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+H+"AxAA&ase=2&num="+lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&label=video_click_to_advertiser_site&ctype="+vs+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:os+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:uX,isTemplated:!1,trackingParams:os+"="},trackingParams:os+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:h6,
isTemplated:!0,trackingParams:os+"="}},trackingParams:os+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Ag,openPopupAction:{popup:{aboutThisAdRenderer:{url:(eb.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+g+"&hl="+dn+"&origin=www.youtube.com&ata_theme="+Vx,eb),trackingParams:os+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:os+"="}},hoverText:{runs:[{text:Vx}]},trackingParams:os+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+mE+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:os+"="},headline:{text:PC,isTemplated:!1,trackingParams:os+"="},description:{text:Ws,trackingParams:os+"="},actionButton:{buttonRenderer:{text:{simpleText:nf},navigationEndpoint:{clickTrackingParams:Ag,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
r+"____________"+H+"AxAA&ase=2&num="+lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&label=video_click_to_advertiser_site&ctype="+vs+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+H+"AxAA&ase=2&num="+lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&label=video_click_to_advertiser_site&ctype="+vs+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:os+"="}},startMs:lO,trackingParams:os+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Vx},elementId:FO}},elementId:Qy,trackingParams:os+"=",legacyInfoCardVastExtension:nf,sodarExtensionData:{siub:uX,bgub:TZ,scs:nf,bgp:Vx},externalVideoId:h6,adLayoutLoggingData:{serializedAdServingDataEntry:PC},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+mE+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:os+"="},headline:{text:Vx,
isTemplated:!1,trackingParams:os+"="},description:{text:zy,isTemplated:!1,trackingParams:os+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:nf},navigationEndpoint:{clickTrackingParams:Ag,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+H+"AxAA&ase=2&num="+lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&label=video_click_to_advertiser_site&ctype="+vs+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+H+"AxAA&ase=2&num="+lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&label=video_click_to_advertiser_site&ctype="+vs+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:os+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:os+"="}},navigationEndpoint:{clickTrackingParams:Ag,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
r+"____________"+H+"AxAA&sigh="+h6+"&cid="+f+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+H+"AxAA&ase=2&num="+lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&label=video_click_to_advertiser_site&ctype="+vs+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+H+"AxAA&ase=2&num="+
lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&label=video_click_to_advertiser_site&ctype="+vs+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:os+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:os+"="},abandonCommands:{commands:[{clickTrackingParams:Ag,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+H+"AxAA&sigh="+h6+"&cid="+f+"&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="+lO+";dc_exteid="+fu+";met="+lO+";ecn"+lO+"="+lO+";etm1="+lO+";eid1="+Y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Ag,commandExecutorCommand:{commands:[{clickTrackingParams:Ag,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+H+"AxAA&sigh="+h6+"&cid="+f+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:aA,isTemplated:!1,trackingParams:os+"="},trackingParams:os+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:uX},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+H+"AxAA&sigh="+h6+"&cid="+f+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lO+";dc_exteid="+fu+";met="+lO+";ecn"+lO+"="+lO+";etm1="+lO+";eid1="+
Lu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:lC}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:sD}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:d9,offsetEndMilliseconds:Lf},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+u+"&m_pos="+Y8+"&token=ALHj"+P+"&index="+lO+"&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="+D+"&m_pos_ms="+d9}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Ws}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:Lf,offsetEndMilliseconds:Lf},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+u+"&m_pos="+vs+"&token=ALHj"+P+"&index="+lO+"&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="+
D+"&m_pos_ms="+Lf}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Vx}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Lf,offsetEndMilliseconds:Lf},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+u+"&m_pos="+vs+"&token=ALHj"+P+"&index="+lO+"&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="+
D+"&m_pos_ms="+Lf}},adSlotLoggingData:{serializedSlotAdServingDataEntry:aA}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Lf,offsetEndMilliseconds:Lf},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+u+"&m_pos="+vs+"&token=ALHj"+P+"&index="+lO+"&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="+
D+"&m_pos_ms="+Lf}},adSlotLoggingData:{serializedSlotAdServingDataEntry:aA}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Lf,offsetEndMilliseconds:Y8},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+u+"&m_pos="+vs+"&token=ALHj"+P+"&index="+lO+"&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="+
D+"&m_pos_ms="+Lf}},adSlotLoggingData:{serializedSlotAdServingDataEntry:TZ}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:Y8,offsetEndMilliseconds:Y8},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+u+"&m_pos="+Y8+"&token=ALHj"+P+"&index="+lO+"&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="+
D+"&m_pos_ms="+Y8}},adSlotLoggingData:{serializedSlotAdServingDataEntry:zy}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:TZ,isTemplated:!1,trackingParams:os+"="},description:{text:Qy,isTemplated:!1,trackingParams:os+"="},actionButton:{buttonRenderer:{text:{simpleText:Vx},navigationEndpoint:{clickTrackingParams:Ag,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
ex+";dc_trk_cid="+ex+";dc_dbm_token="+V+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+lO+";ord="+ex+";dc_rui="+lO+";dc_exteid="+fu+";dc_av="+lO+";dc_sk="+lO+";dc_ctype="+Y8+";dc_pubid="+lO+";dc_btype=3?gclid="+OD+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+H+"AxAA&ase=2&num="+lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&label=video_click_to_advertiser_site&ctype="+vs+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+H+"AxAA&ase=2&num="+lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&label=video_click_to_advertiser_site&ctype="+vs+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:os+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+lp+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:os+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+jf+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:os+"="},navigationEndpoint:{clickTrackingParams:Ag,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ex+";dc_trk_cid="+ex+";dc_dbm_token="+V+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+lO+";ord="+ex+
";dc_rui="+lO+";dc_exteid="+fu+";dc_av="+lO+";dc_sk="+lO+";dc_ctype="+Y8+";dc_pubid="+lO+";dc_btype=3?gclid="+OD+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+H+"AxAA&ase=2&num="+lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&label=video_click_to_advertiser_site&ctype="+vs+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
r+"____________"+H+"AxAA&ase=2&num="+lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&label=video_click_to_advertiser_site&ctype="+vs+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:os+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Ag,openPopupAction:{popup:{aboutThisAdRenderer:{url:(dk$.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+g+"&hl="+dn+"&origin=www.youtube.com&ata_theme="+Vx,dk$),trackingParams:os+"="}},popupType:"DIALOG"}},trackingParams:os+"="}},hoverText:{runs:[{text:uX}]},trackingParams:os+"="}},adVideoId:h6,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+H+"AxAA&sigh="+L+"&cid="+f+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:h6},associatedCompositePlayerBytesLayoutId:PC}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:NL}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:PC,isTemplated:!1,trackingParams:os+"="},description:{text:lC,isTemplated:!1,trackingParams:os+"="},actionButton:{buttonRenderer:{text:{simpleText:FO},navigationEndpoint:{clickTrackingParams:Ag,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+
H+"AxAA&ase=2&num="+lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&label=video_click_to_advertiser_site&ctype="+vs+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+H+"AxAA&ase=2&num="+lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&label=video_click_to_advertiser_site&ctype="+vs+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:os+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+mE+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:os+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+lU+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:os+"="},navigationEndpoint:{clickTrackingParams:Ag,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+H+"AxAA&ase=2&num="+
lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&label=video_click_to_advertiser_site&ctype="+vs+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+H+"AxAA&ase=2&num="+lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&label=video_click_to_advertiser_site&ctype="+vs+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:os+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Ag,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Z9.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+g+"&hl="+dn+"&origin=www.youtube.com&ata_theme="+Vx,Z9),trackingParams:os+"="}},popupType:"DIALOG"}},trackingParams:os+"="}},
hoverText:{runs:[{text:PC}]},trackingParams:os+"="}},adVideoId:h6,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+H+"AxAA&sigh="+h6+"&cid="+f+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Sf},associatedCompositePlayerBytesLayoutId:PC}},adSlotLoggingData:{serializedSlotAdServingDataEntry:aA}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:zy,
isTemplated:!1,trackingParams:os+"="},description:{text:nf,isTemplated:!1,trackingParams:os+"="},actionButton:{buttonRenderer:{text:{simpleText:Vx},navigationEndpoint:{clickTrackingParams:Ag,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ex+";dc_trk_cid="+ex+";dc_dbm_token="+V+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+lO+";ord="+ex+";dc_rui="+lO+";dc_exteid="+fu+";dc_av="+lO+";dc_sk="+lO+";dc_ctype="+
Y8+";dc_pubid="+lO+";dc_btype=3?gclid="+OD+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+H+"AxAA&ase=2&num="+lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&label=video_click_to_advertiser_site&ctype="+vs+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+H+"AxAA&ase=2&num="+lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+
v+"&adurl="+IS+"&label=video_click_to_advertiser_site&ctype="+vs+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:os+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+lp+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:os+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+jf+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:os+
"="},navigationEndpoint:{clickTrackingParams:Ag,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ex+";dc_trk_cid="+ex+";dc_dbm_token="+V+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+lO+";ord="+ex+";dc_rui="+lO+";dc_exteid="+fu+";dc_av="+lO+";dc_sk="+lO+";dc_ctype="+Y8+";dc_pubid="+lO+";dc_btype=3?gclid="+OD+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
r+"____________"+H+"AxAA&ase=2&num="+lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&label=video_click_to_advertiser_site&ctype="+vs+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+H+"AxAA&ase=2&num="+lO+"&cid="+f+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+IS+"&label=video_click_to_advertiser_site&ctype="+vs+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:os+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Ag,openPopupAction:{popup:{aboutThisAdRenderer:{url:(S6.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+g+"&hl="+dn+"&origin=www.youtube.com&ata_theme="+Vx,S6),trackingParams:os+"="}},popupType:"DIALOG"}},trackingParams:os+
"="}},hoverText:{runs:[{text:Qy}]},trackingParams:os+"="}},adVideoId:h6,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+H+"AxAA&sigh="+L+"&cid="+f+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Ws},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:PC}},adSlotLoggingData:{serializedSlotAdServingDataEntry:TZ}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:BY,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:BY,command:{innertubeCommand:{clickTrackingParams:Ag,ypcGetOfflineUpsellEndpoint:{params:H5}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:os+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:Bs,nanos:Fc}}}},WYh=JSON.stringify(nK),iJ=performance.now()-x;return{objectRepresentation:nK,jsonRepresentation:WYh,generationTime:iJ}};
EPV=function(x,G){if(x===G)return!0;if(!x||!G||typeof x!==typeof G)return!1;if(x instanceof Array&&G instanceof Array){if(x.length!==G.length)return!1;for(var D=0;D<x.length;D++)if(!EPV(x[D],G[D]))return!1;return!0}if(typeof x==="object"&&typeof G==="object"&&x&&G){for(D in x)if(!(D in G&&EPV(x[D],G[D])))return!1;for(var K in G)if(!(K in x))return!1;return!0}return!1};
_.hr=function(){if(!EA){EA=new eB(new hmE);var x=_.Gz("client_streamz_web_flush_count",-1);x!==-1&&(EA.invocationLimit=x)}return EA};
xA=function(x,G,D,K){if(x===G)return!0;if(Array.isArray(x)&&Array.isArray(G)){if(x.length!==G.length)return!1;for(var z=0;z<x.length;z++)if(!xA(x[z],G[z],D,K))return!1;return!0}if(x instanceof Set||G instanceof Set){if(x instanceof Set&&G instanceof Set){if(x.size!==G.size)return!1;K=_.l(x.values());for(z=K.next();!z.done;z=K.next())if(!G.has(z.value))return!1;return!0}return!1}if(x instanceof Function){if(K)return!0;x.name===""&&_.I4(Error("Ef"),"ERROR");return!1}if(x instanceof Date&&G instanceof
Date)return x.getTime()===G.getTime();if(x instanceof Object&&G instanceof Object){if(xzn(x)&&xzn(G))try{return x.equals(G)}catch(c){_.I4(Error("Ff`"+c),"ERROR")}z=Object.getOwnPropertyNames(x).filter(function(c){return D?x[c]!==void 0:!0});
var y=Object.getOwnPropertyNames(G).filter(function(c){return D?G[c]!==void 0:!0});
if(z.length!==y.length)return!1;z=_.l(z);for(y=z.next();!y.done;y=z.next())if(y=y.value,!xA(x[y],G[y],D,K))return!1;return!0}return!1};
xzn=function(x){x=Object.getPrototypeOf(x).equals;return x instanceof Function&&x.length===1};
_.K3f=function(){return _.T(function(x){if(x.nextAddress==1)return GPP!==2?x.jumpTo(2):_.Z(x,Dzf(),3);x.nextAddress!=2&&(GPP=x.yieldResult);return x.return(GPP)})};
_.ot$=function(){return _.T(function(x){if(x.nextAddress==1)return _.B("ab_pl_man")?zJd!==2?x.jumpTo(2):_.Z(x,aHf(),3):x.return(1);x.nextAddress!=2&&(zJd=x.yieldResult);return x.return(zJd)})};
cGP=function(){return _.T(function(x){if(x.nextAddress==1)return _.B("ab_fk_sk_cl")?yGV!==2?x.jumpTo(2):_.Z(x,lHh(),3):x.return(1);x.nextAddress!=2&&(yGV=x.yieldResult);return x.return(yGV)})};
_.eJh=function(){return _.T(function(x){if(x.nextAddress==1)return _.B("ab_det_apb_b")?T2n!==2?x.jumpTo(2):_.Z(x,W3L(),3):x.return(1);x.nextAddress!=2&&(T2n=x.yieldResult);return x.return(T2n)})};
QQQ=function(){var x;return _.T(function(G){if(G.nextAddress==1)return _.Z(G,Promise.all([_.K3f(),_.eJh(),_.ot$(),cGP()]),2);if(G.nextAddress!=3)return ZF$()?G.return(!0):_.Z(G,_.M$L(),3);x=G.yieldResult;return G.return(x===0)})};
ZF$=function(){var x=!1,G=function(D,K){pP3.increment(K,D);D===0&&(x=!0)};
G(_.V$3(),"j.s_");G(GPP,"f.i_");G(T2n,"a.b_");G(zJd,"p.m_");G(yGV,"i.f_");bF3===2&&(bF3=_.L3O(B23));G(bF3,"e.h_");_.B("ks_det_gpbl")||G(_.rGC(),"p.i_");_.B("ks_get_o_pp")||G(_.sQP(),"g.o_");_.B("ab_deg_unex_thr")||G(_.YeQ(),"a.o_");G(mzd,"s.t_");_.B("ab_det_sc_inj_enf")&&G(_.HFL(),"s.i_");G($zC,"d.p_");G(_.F3d(_.GU),"o.p_");G(_.CkO()===0?0:_.IHQ(),"o.a_");return _.B("debug_sk_em_precheck")?!0:x};
OFV=function(){var x=[].concat(_.B5(jQd));try{var G=Pk();x.push({jsonRepresentation:G.jsonRepresentation,objectRepresentation:G.objectRepresentation})}catch(D){x=[].concat(_.B5(jQd))}return x};
XPQ=function(){var x=["adPlacements","adSlots"];try{return x.filter(function(){return!0}).length!==x.length?0:1}catch(G){return 0}};
_.sQP=function(){if(XPQ()===0)return 0;var x=Pk(),G=x.objectRepresentation,D=(0,_.YS.unsafeClone)(G),K=[];if(G&&typeof G==="object")for(var z in G)K.push(z);else return 4;x=x.objectRepresentation.adPlacements;if(!(x&&x.length>0))return 4;try{if(!EPV(K,Object.getOwnPropertyNames(G)))return 0}catch(y){return 0}return EPV(D,G)?1:0};
_.F3d=function(x){if(!x||!x.length||typeof x==="string")return 0;for(var G=Object.getOwnPropertyNames(Object.prototype),D=0;D<x.length;D++)for(var K=_.Jr(x[D]),z=_.l(G),y=z.next();!y.done;y=z.next())if(K===y.value)return 0;return 1};
AGh=function(x){var G=_.Jr(x[1]);if(x[0]===null)return G;x=x[0];for(var D={},K=0;K<x.length;K++){var z=_.Jr(x[K]);if(K===0)D[z]=G;else{var y={};y[z]=D;D=y}}return D};
_.CkO=function(){for(var x=_.DD,G=0;G<x.length;G++){var D=AGh(x[G]),K=[];K.push(D);if(K.length===0)return 0}return 1};
_.IHQ=function(){for(var x=_.DD,G={},D=0;D<x.length;G={cpc:void 0},D++){var K=[AGh(x[D])];G.cpc=[];K.forEach(function(z){return function(y){z.cpc[z.cpc.length]=y}}(G));
if(G.cpc.length===0)return 0}return 1};
_.V$3=function(){for(var x=_.l(OFV()),G=x.next();!G.done;G=x.next()){var D=G.value;G=D.jsonRepresentation;D=D.objectRepresentation;try{var K=JSON.parse(G);if(!xA(K,D,!1,!1))return 0}catch(z){return 0}}return 1};
_.HFL=function(){try{var x=_.KL("ab_det_sc_inj_val");x.length===1&&x[0]===""&&(x=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var G=document.querySelectorAll("script"),D=_.l(G),K=D.next();!K.done;K=D.next())for(var z=K.value,y=_.l(x),c=y.next();!c.done;c=y.next()){var W=c.value;G=void 0;if((G=z.textContent)==null?0:G.includes(W))return 0}}catch(e){return 4}return 1};
_.M$L=function(){var x,G,D,K,z,y,c;return _.T(function(W){switch(W.nextAddress){case 1:_.Kl(W,2),x=_.l(jQd),G=x.next();case 4:if(G.done)return W.return(1);K=D=G.value;z=K.jsonRepresentation;y=K.objectRepresentation;return _.Z(W,(new Response(z,{status:200})).json(),7);case 7:c=W.yieldResult;if(!xA(c,y,!1,!1))return W.return(0);G=x.next();W.jumpTo(4);break;case 2:return _.lX(W),W.return(4)}})};
_.YeQ=function(){try{btoa("abc")}catch(x){return 0}return 1};
Dzf=function(){var x,G,D,K,z,y,c,W,e,Q,p;return _.T(function(V){switch(V.nextAddress){case 1:_.Kl(V,2),x=_.l(OFV()),G=x.next();case 4:if(G.done)return V.return(1);K=D=G.value;z=K.jsonRepresentation;y=K.objectRepresentation;c=btoa(z);W="data:application/json;base64,"+c;e=new Request(W);Object.defineProperty(e,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(e,"method",{get:function(){return"POST"}});
Object.defineProperty(e,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(e,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(e,"body",{get:function(){return new ReadableStream}});
return _.Z(V,fetch(e),7);case 7:return Q=V.yieldResult,_.Z(V,Q.json(),8);case 8:p=V.yieldResult;if(!xA(p,y,!1,!1))return V.return(0);G=x.next();V.jumpTo(4);break;case 2:return _.lX(V),V.return(4)}})};
_.L3O=function(x){if(!x||!x.length||typeof x==="string")return 0;for(var G=function(z){return _.Jr(z)},D=2,K=0;K<x.length&&(D=_.UzO(_.k$d(x[K],G)),D!==0);K++);
return D};
_.UzO=function(x){var G=_.l(x);x=G.next().value;G=G.next().value;try{var D=document.createElement("div");document.body.appendChild(D);var K=getComputedStyle(D).display;document.body.removeChild(D);if(K==="none")return 4;var z=getComputedStyle(G).display==="none"?0:1;document.body.removeChild(x);return z}catch(y){return 4}};
lHh=function(){var x,G,D;return _.T(function(K){x=new _.Kt;G=document.createElement("button");G.classList.add("ytp-ad-skip-button");G.style.opacity="0";G.style.height="0px";G.style.width="0px";G.style.padding="0px";G.style.border="none";D=function(){G.parentElement&&G.parentElement.removeChild(G)};
G.onclick=function(){x.resolve(0);D()};
document.body.appendChild(G);setTimeout(function(){D();x.resolve(1)},50);
return K.return(x.promise)})};
aHf=function(){var x,G,D,K,z,y,c;return _.T(function(W){x=new _.Kt;G=document.createElement("ytd-player");try{document.body.prepend(G)}catch(e){return W.return(4)}D=function(){G.parentElement&&G.parentElement.removeChild(G)};
G.getElementsByTagName("div").length>0?K=G.getElementsByTagName("div")[0]:(K=document.createElement("div"),G.appendChild(K));z=document.createElement("div");K.appendChild(z);y=document.createElement("video");c=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"});y.src=_.ZB(_.L9(c));y.ontimeupdate=function(){D();x.resolve(0)};
z.appendChild(y);y.classList.add("html5-main-video");setTimeout(function(){z.classList.add("ad-interrupting")},200);
setTimeout(function(){D();x.resolve(1)},5E3);
return W.return(x.promise)})};
RJV=function(x,G){var D,K;return _.T(function(z){switch(z.nextAddress){case 1:D=[],K=0;case 2:if(!(K<3)){z.jumpTo(4);break}return _.Z(z,fetch(x,{cache:"no-store",method:G}).then(function(y){D.push(y.status)}).catch(function(){D.push(-1)}),3);
case 3:K++;z.jumpTo(2);break;case 4:return z.return(D)}})};
Sef=function(x){return x.domainLookupStart===0&&x.domainLookupEnd===0&&x.connectStart===0&&x.connectEnd===0};
ntC=function(x,G,D){D=D===void 0?"GET":D;var K,z,y,c,W,e,Q,p,V,L;return _.T(function(r){if(r.nextAddress==1)return _.Z(r,Promise.all([RJV(x,D),RJV(G,D)]),2);K=r.yieldResult;z=_.l(K);y=z.next().value;c=z.next().value;W=y;e=c;if(Math.min.apply(Math,_.B5(e))!==Math.max.apply(Math,_.B5(e))||Math.min.apply(Math,_.B5(W))!==Math.max.apply(Math,_.B5(W)))return r.return(2);if(Math.min.apply(Math,_.B5(e))===Math.min.apply(Math,_.B5(W)))return r.return(1);p=(Q=performance.getEntriesByName(x))==null?void 0:Q[0];
L=(V=performance.getEntriesByName(G))==null?void 0:V[0];return p&&L?Sef(L)?r.return(1):Sef(p)?r.return(0):r.return(1):r.return(2)})};
W3L=function(){var x;return _.T(function(G){var D=[];var K;var z,y,c;(z=K=(z=Pk().objectRepresentation.streamingData)==null?void 0:(y=z.formats)==null?void 0:(c=y[0])==null?void 0:c.url)&&z&&!K.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(z=z.replace("initcwndbps","ctier=L&initcwndbps"),z=z.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),K={testUrl:z,baseUrl:K,method:"GET"}):K=void 0;K&&D.push(K);_.B("ab_net_tp_e")&&D.push({testUrl:_.Df.location.origin+"/ad_companion",baseUrl:_.Df.location.origin+
"/generate_204",method:"OPTIONS"});if(_.B("ad_net_pb_ab")){var W;b:{K=/api\/stats\/ads/;var e,Q,p,V;z=(W=Pk().objectRepresentation.adPlacements)==null?void 0:(e=W[0])==null?void 0:(Q=e.adPlacementRenderer)==null?void 0:(p=Q.renderer)==null?void 0:(V=p.linearAdSequenceRenderer)==null?void 0:V.linearAds;if(z!=null&&z.length&&(W=_.Y(z[0],iFf))&&(W=W.pings,W!=null&&W.impressionPings))for(e=[].concat(_.B5(W.impressionPings)),W.progressPings&&(e=[].concat(_.B5(e),_.B5(W.progressPings))),W=_.l(e),e=W.next();!e.done;e=
W.next())if(e=e.value,e.baseUrl&&K.test(e.baseUrl)){W=e.baseUrl.replace("https://www.youtube.com","");break b}W=void 0}W&&D.push({testUrl:_.Df.location.origin+W,baseUrl:_.Df.location.origin+"/feed/download",method:"GET"})}if(_.B("ad_net_pb_pbp")){var L;b:{W=/api\/stats\/qoe/;if(e=Pk().objectRepresentation.playbackTracking){Q=[];Q.push(e==null?void 0:(L=e.videostatsPlaybackUrl)==null?void 0:L.baseUrl);var r;Q.push(e==null?void 0:(r=e.videostatsDelayplayUrl)==null?void 0:r.baseUrl);var H;Q.push(e==
null?void 0:(H=e.videostatsWatchtimeUrl)==null?void 0:H.baseUrl);var O;Q.push(e==null?void 0:(O=e.ptrackingUrl)==null?void 0:O.baseUrl);var A;Q.push(e==null?void 0:(A=e.qoeUrl)==null?void 0:A.baseUrl);var g;Q.push(e==null?void 0:(g=e.atrUrl)==null?void 0:g.baseUrl);L=_.l(Q);for(r=L.next();!r.done;r=L.next())if((r=r.value)&&W.test(r)){L=r.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}L=void 0}L&&D.push({testUrl:_.Df.location.origin+L,baseUrl:_.Df.location.origin+
"/feed/download",method:"GET"})}D=D.length!==0?D[Math.floor(Math.random()*D.length)]:void 0;return(x=D)?G.return(ntC(x.testUrl,x.baseUrl,x.method)):G.return(4)})};
_.rGC=function(){if(_.Df.w2O===void 0||_.Df.w2O===null||typeof _.Df.w2O!=="function")return 2;try{return _.Df.w2O()===!0?0:1}catch(x){return 0}};
gt3=function(x){switch(x){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.oT(x,"unknown result type")}};
_.uHP=function(x,G){var D=Number(_.Am("CATSTAT",0));if(G.i83===void 0)return D;G=G.i83;x=gt3(x);return D&~(3<<G)|x<<G};
dzQ=function(x){var G,D;if((x=(G=x.auxiliaryUi)==null?void 0:(D=G.messageRenderers)==null?void 0:D.bkaEnforcementMessageViewModel)&&x.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return x};
qeL=function(){for(var x=_.l(Object.values(_.wPf)),G=x.next();!G.done;G=x.next())G=G.value,G.isAsync&&G.i83&&_.XQ("CATSTAT",_.uHP(2,G))};
_.y7=function(x,G){x=_.zU("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",x);(G===void 0?0:G)?_.N2E(x,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.an(_.on(),x,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
JGO=function(){if(!vtV){if(Polymer.Base){var x=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{x.apply(this,arguments)}catch(V){_.RE(V)}};
var G=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{G.apply(this,arguments)}catch(V){_.RE(V)}};
var D=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{D.apply(this,arguments)}catch(V){_.RE(V)}};
var K=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{K.apply(this,arguments)}catch(V){_.RE(V)}};
var z=Polymer.Base._listen,y=new WeakMap;Polymer.Base._listen=function(V,L,r){var H=function(){try{r.apply(this,arguments)}catch(O){_.RE(O)}};
y.set(r,H);z.call(this,V,L,H)};
var c=Polymer.Base._unlisten;Polymer.Base._unlisten=function(V,L,r){c.call(this,V,L,y.get(r))}}if(Polymer.Async){var W=Polymer.Async,e=W._atEndOfMicrotask;
W._atEndOfMicrotask=function(){try{e.apply(W,arguments)}catch(V){_.RE(V)}}}if(Polymer.RenderStatus){var Q=Polymer.RenderStatus,p=Q.afterNextRender;
Q.afterNextRender=function(V,L,r){p.call(Q,V,function(){try{L.apply(this,arguments)}catch(H){_.RE(H)}},r)}}vtV=!0}};
_.lo=function(x){var G=x?_.c0(x):"";if(G){if(G.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(G.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(G.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(G.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(G.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return"learning";if(G.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===0)return"music";G=G.toLowerCase();if(G==="/")return"home";if(G===
"/channel_memberships")return"channel-memberships-shopfront";if(G.indexOf("/feed/trending")===0)return"trending";if(G.indexOf("/feed/explore")===0)return"explore";if(G.indexOf("/live")===0)return"live";if(G.indexOf("/results")===0)return"search";if(G.indexOf("/sports")===0)return"sports";if(G.indexOf("/fashion")===0||G.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(G))return"news";if(/^\/(learning)|(@learning)(\/.*)?$/.test(G))return"learning";
if(G.indexOf("/channel/")===0||G.indexOf("/user/")===0||G.indexOf("/gaming")===0||G.indexOf("/post/")===0)return"channel";if(fHd(x))return"show";if(G==="/playlist"||G.indexOf("/playlist/")===0||G==="/view_play_list"||G.indexOf("/view_play_list/")===0||G.indexOf("/show/")===0)return"playlist";if(G==="/feed/history"||G.indexOf("/feed/history/")===0)return"history";if(G==="/new")return"labs";if(G==="/feed/subscriptions")return"subscriptions";if(G.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";
if(G==="/history_controls")return"standalone";if(G.indexOf("/account")===0||G==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(G.indexOf("/paid_memberships")===0||G.indexOf("/refund")===0||G.indexOf("/purchases")===0||G.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(G.indexOf("/product")===0)return"yts-products";if(G.indexOf("/premium")===0||G.indexOf("/musicpremium")===0)return G.indexOf("/premium/offers")===0||G.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(G===
"/cart/checkout"||G==="/cart")return"ypc-checkout";if(G.indexOf("/feed/downloads")===0||G.indexOf("/redeem")===0||G.indexOf("/reporthistory")===0)return"browse";if(G.indexOf("/hashtag")===0)return"hashtag-landing-page";if(G.indexOf("/handle")===0)return"handle";if(G.indexOf("/source")===0)return"audio-pivot";if(G.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(G.indexOf("/playables")===0)return"playables";if(G.indexOf("/create/live/join")===0)return"open-in-app";if(G.indexOf("/shorts")===
0)return"shorts";if(G.indexOf("/feed/channels")===0)return"subscriptions-channels";(G=x?_.c0(x):"")&&G.indexOf("/watch")===0&&_.B("web_watch_enable_learning_journey")?(x=_.wT(x),x=!!x.list&&x.list.indexOf("LJPP")===0):x=!1;if(x)return"learning_journey_watch"}};
_.ci=function(x){var G,D;(x=(D=_.Y(x==null?void 0:x.commandMetadata,_.fC))==null?void 0:D.url)&&(G=_.lo(x));return G};
fHd=function(x){var G=x?_.c0(x):"";if(!G)return!1;G=G.toLowerCase();return G.indexOf("/show/")===0||G.indexOf("/playlist")===0&&(x=_.wT(x),x.list&&x.list.indexOf("EL")===0)?!0:!1};
eT=function(x){var G="unknown",D;var K=((D=_.Y(x==null?void 0:x.commandMetadata,_.fC))==null?void 0:D.webPageType)||"";K?(D=K.toLowerCase(),D.startsWith("web_page_type_")&&(D=D.slice(14))):D=K;D&&t$d[D.toUpperCase()]?G=t$d[D.toUpperCase()]:_.Y(x,_.TU)||_.Y(x,kPn)?G="browse":_.Y(x,_.Wi)?G="search":_.Y(x,_.d5)&&(G="watch");G==="watch"&&_.ci(x||null)==="learning_journey_watch"&&(G="learning_journey_watch");G==="unknown"&&_.O9(Error("Hf`"+JSON.stringify({clickTrackingParams:x==null?void 0:x.clickTrackingParams,
commandMetadata:x==null?void 0:x.commandMetadata,allEndpointKeys:Object.keys(x||[])})));return G};
_.ZD=function(x){if(!_.PkV||x)_.PkV=_.Tj();return _.PkV};
_.Et3=function(x){return!!_.Y(x,_.d5)||!!_.Y(x,_.MB)&&_.B("kevlar_enable_shorts_prefetch")};
_.hJ$=function(x,G){x=_.Y(x,_.d5)||_.Y(x,_.MB);return"v"+x.videoId+(x.playlistId?"-pl"+x.playlistId:"")+(G?"-an1":"")+(x.params?"-pr"+x.params:"")};
Q7=function(x){return function(){return new x}};
pt=function(x){var G=_.Eo();return function(){return G.resolve(x)}};
GSD=function(x){var G=_.Gz("web_pbj_log_warning_rate",0);G=G>0&&Math.random()<G;if(!_.Y(x,_.MB))return G&&_.O9(Error("Kf")),!1;var D;return _.B("shorts_controller_retrieve_seedless_sequence_v2")&&((D=_.Y(x,_.MB))==null?void 0:D.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:xCO(x)?!0:(G&&_.O9(Error("Lf")),!1)};
xCO=function(x){var G=(_.Y(x,_.d5)||_.Y(x,_.MB)).videoId;if(!G||!DCh.test(G))return!1;var D;return(x=(D=_.Y(x.commandMetadata,_.fC))==null?void 0:D.url)&&(x.includes(G)||x.startsWith("/clip"))?!0:!1};
_.zln=function(){var x=_.M5();return x.getFlag(192)?x.getFlag(190):!(_.B("web_watch_cinematics_disabled_by_default")||_.B("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&KeV())};
_.V7=function(x,G,D){var K={};K.currentUrl=G;K.vis=x.vis!==void 0?x.vis:0;K.splay=!1;G=_.M5();K.autoCaptionsDefaultOn=G.getFlag(66);G.getFlag(141)?G.getFlag(140)?K.autonavState="STATE_OFF":K.autonavState="STATE_ON":K.autonavState="STATE_NONE";K.html5Preference="HTML5_PREF_WANTS";isNaN(_.Am("STS"))||(K.signatureTimestamp=_.Am("STS"));x.autonav&&(K.autoplay=!0,K.autonav=!0);x.mutedAutoplay&&(K.autoplay=!0,K.mutedAutoplay=!0);x.inlinePlayback&&(K.autoplay=!0,K.autonav=!1,K.isInlineUnmutedPlayback=!!x.inlineUnmuted);
K.referer=D;K.lactMilliseconds=x.lact!==void 0?x.lact.toString():"-1";_.B("enable_unknown_lact_fix_on_html5")&&K.lactMilliseconds==="-1"&&_.O9(new _.LL("Unknown LACT is set in playbackContext.",{"lact in tempData":x.lact||"undefined",autonav:x.autonav||"undefined"}));x={};G.getFlag(194)&&(x.hasShownAmbientMode=!0);G.getFlag(192)&&(x.hasToggledOffAmbientMode=!0);_.zln()&&(x.watchAmbientModeEnabled=!0);K.watchAmbientModeContext=x;return K};
aNL=function(x){var G={},D=x.pbis||0;D&&(G.playbackBeginsInSeconds=D);x.prefetch_reason&&x.prefetch_reason==="hc_pbis"&&(G.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return G};
_.Lt=function(x){x=x===void 0?!1:x;var G=_.M5(),D="USER_INTERFACE_THEME_LIGHT";G.getFlag(165)?D="USER_INTERFACE_THEME_DARK":G.getFlag(174)?D="USER_INTERFACE_THEME_LIGHT":_.bo()&&(D="USER_INTERFACE_THEME_DARK");return x?D:obO()||D};
_.yXP=function(){return!_.B("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.bo=function(){return _.yXP()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.Bi=function(){var x=_.M5();return _.yXP()&&!x.getFlag(165)&&!x.getFlag(174)};
obO=function(){var x=x===void 0?window.location.href:x;if(_.B("kevlar_disable_theme_param"))return null;var G=_.c0(x);if(_.lNO(G))return"USER_INTERFACE_THEME_DARK";try{var D=_.wT(x).theme;return cXV.get(D)||null}catch(K){}return null};
_.lNO=function(x){return _.B("enable_dark_theme_only_on_shorts")?!(x==null||!x.startsWith("/shorts/")):!1};
_.el3=function(x,G,D,K,z){G=G===void 0?!1:G;D=D===void 0?!1:D;var y=_.Am("INNERTUBE_CONTEXT");if(!y)return _.I4(Error("Of")),{};y=(0,_.YS.unsafeClone)(y);_.B("web_no_tracking_params_in_shell_killswitch")||delete y.clickTracking;y.client||(y.client={});var c=y.client;c.clientName==="MWEB"&&c.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(c.clientFormFactor=_.Am("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");c.screenWidthPoints=window.innerWidth;c.screenHeightPoints=window.innerHeight;c.screenPixelDensity=
Math.round(window.devicePixelRatio||1);c.screenDensityFloat=window.devicePixelRatio||1;c.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());c.userInterfaceTheme=_.Lt();if(!G){var W=_.c$$();W&&(c.connectionType=W);_.B("web_log_effective_connection_type")&&(W=WbP())&&(y.client.effectiveConnectionType=W)}var e;if(_.B("web_log_memory_total_kbytes")&&((e=_.Df.navigator)==null?0:e.deviceMemory)){var Q;e=(Q=_.Df.navigator)==null?void 0:Q.deviceMemory;y.client.memoryTotalKbytes=""+e*1E6}G&&K&&!_.B("web_it_context_set_original_url_ks")&&
(c.originalUrl=TVh(_.Df.location.href,K).toString());_.B("web_gcf_hashes_innertube")&&(W=sIP())&&(Q=W.coldConfigData,e=W.coldHashData,W=W.hotHashData,y.client.configInfo=y.client.configInfo||{},Q&&(y.client.configInfo.coldConfigData=Q),e&&(y.client.configInfo.coldHashData=e),W&&(y.client.configInfo.hotHashData=W));Q=_.wT(_.Df.location.href);!_.B("web_populate_internal_geo_killswitch")&&Q.internalcountrycode&&(c.internalGeo=Q.internalcountrycode);!_.B("web_populate_client_screen_killswitch")&&z&&(c.clientScreen=
z);c.clientName==="MWEB"||c.clientName==="WEB"?(c.mainAppWebInfo={graftUrl:K||_.Df.location.href},_.B("kevlar_woffle")&&_.rA.instance&&(K=_.rA.instance,c.mainAppWebInfo.pwaInstallabilityStatus=!K.appInstalledEventFired&&K.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),c.mainAppWebInfo.webDisplayMode=M7$(),c.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):c.clientName==="TVHTML5"&&(!_.B("web_lr_app_quality_killswitch")&&
(K=_.Am("LIVING_ROOM_APP_QUALITY"))&&(c.tvAppInfo=Object.assign(c.tvAppInfo||{},{appQuality:K})),K=_.Am("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(c.tvAppInfo=Object.assign(c.tvAppInfo||{},{certificationScope:K}));!_.B("web_populate_time_zone_itc_killswitch")&&(K=y$3())&&(c.timeZone=K);(K=F7L())?c.experimentsToken=K:delete c.experimentsToken;c=Cg$();K=_.Wef();K=(0,_.YS.getValues)(K.tokenJars);y.request=Object.assign({},y.request,{internalExperimentFlags:c,consistencyTokenJars:K});!_.B("web_prequest_context_killswitch")&&
(c=_.Am("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(y.request.externalPrequestContext=c);K=_.M5();c=K.getFlag(58);K=K.get("gsml","");y.user=Object.assign({},y.user);c&&(y.user.enableSafetyMode=c);K&&(y.user.lockedSafetyMode=!0);_.B("warm_op_csn_cleanup")?D&&(G=_.CC())&&(y.clientScreenNonce=G):!G&&(G=_.CC())&&(y.clientScreenNonce=G);x&&(y.clickTracking={clickTrackingParams:x});if(x=_.nT("yt.mdx.remote.remoteClient_"))y.remoteClient=x;_.s4.getInstance().setLocationOnInnerTubeContext(y);try{var p=ioP(),
V=p.bid;delete p.bid;y.adSignalsInfo={params:[],bid:V};for(var L=_.l(Object.entries(p)),r=L.next();!r.done;r=L.next()){var H=_.l(r.value),O=H.next().value,A=H.next().value;p=O;V=A;x=void 0;(x=y.adSignalsInfo.params)==null||x.push({key:p,value:""+V})}var g,u;if(((g=y.client)==null?void 0:g.clientName)==="TVHTML5"||((u=y.client)==null?void 0:u.clientName)==="TVHTML5_UNPLUGGED"){var f=_.Am("INNERTUBE_CONTEXT");f.adSignalsInfo&&(y.adSignalsInfo.advertisingId=f.adSignalsInfo.advertisingId,y.adSignalsInfo.advertisingIdSignalType=
"DEVICE_ID_TYPE_CONNECTED_TV_IFA",y.adSignalsInfo.limitAdTracking=f.adSignalsInfo.limitAdTracking)}}catch(v){_.I4(v)}return y};
_.Zh$=function(x){var G=new YA(_.Am("ONE_PICK_URL",""));G.urlParamMap_.set("hostId",x);(x=_.Am("GAPI_LOCALE"))&&G.urlParamMap_.set("hl",x);(x=_.Am("SESSION_INDEX"))&&G.urlParamMap_.set("authuser",x);(x=_.Am("DELEGATED_SESSION_ID"))&&G.urlParamMap_.set("groupId",x);return G};
QJD=function(){var x=_.Eo(),G=x.resolve(_.mg);x=x.resolve(_.Hi);return new MMn(G,x)};
VMO=function(x){if(window.IntersectionObserver)return new pxL(x,400);throw new TypeError("Vf");};
Lef=function(){var x=Hammer.TouchAction,G=x.prototype.preventDefaults;x.prototype.preventDefaults=function(D){var K=this.actions.indexOf("pan-down")>-1;if(!K)return G.call(this,D);if(!bhf){var z=D.srcEvent;D=D.direction;var y;if((y=this.manager)==null?0:y.session.prevented)z.preventDefault();else if(K&&D&Hammer.DIRECTION_DOWN)return this.preventSrc(z)}}};
BVf=function(x){if(!x||x.size===0)return Hammer.DIRECTION_ALL;if(x.size===2){if(x.has("up")&&x.has("down"))return Hammer.DIRECTION_VERTICAL;if(x.has("right")&&x.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(x.size===1){if(x.has("up"))return Hammer.DIRECTION_UP;if(x.has("down"))return Hammer.DIRECTION_DOWN;if(x.has("right"))return Hammer.DIRECTION_RIGHT;if(x.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.sJh=function(){return rXV?Promise.resolve(rXV):new Promise(function(x,G){var D=self.indexedDB.open("swpushnotificationsdb");D.onerror=G;D.onsuccess=function(){var K=D.result;if(K.objectStoreNames.contains("swpushnotificationsstore"))rXV=K,x(rXV);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.sJh()};
D.onupgradeneeded=YCD})};
YCD=function(x){x=x.target.result;x.objectStoreNames.contains("swpushnotificationsstore")&&x.deleteObjectStore("swpushnotificationsstore");x.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
HhD=function(x){var G=mCL(),D;return _.T(function(K){switch(K.nextAddress){case 1:return _.Kl(K,2),_.Z(K,x.match(G,{cacheName:"yt-appshell-assets"}),4);case 4:D=K.yieldResult;_.iI(K,3);break;case 2:_.lX(K);case 3:return K.return(D)}})};
mCL=function(){var x=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?$CQ.registration.scope:FeO;x.endsWith("/")&&(x=x.slice(0,-1));return x+"/app_shell_home"};
C9O=function(x){x.map(function(G){return G.source}).join("|")};
_.INE=function(x){return _.T(function(G){return G.return(HhD(x))})};
jJL=function(){var x=window.caches,G;return _.T(function(D){if(D.nextAddress==1)return _.Z(D,_.INE(x),2);G=D.yieldResult;return D.return(!!G)})};
nbO=function(){_.T(function(x){if(x.nextAddress==1){if(Ohn)return x.jumpTo(0);Ohn=!0;if(_.B("enable_system_health_primes_monitoring"))return _.yR(Xx$,3E4),AXO(),x.return();if(!(Math.random()<_.Gz("web_system_health_fraction")))return x.jumpTo(0);UC$={heightPixels:screen.height,widthPixels:screen.width};$A&&!isNaN($A.jsHeapSizeLimit)&&(UC$.memoryTotalKbytes=String(Math.round($A.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(UC$.devicePixelRatio=window.devicePixelRatio);return _.Z(x,RlQ(),4)}_.yR(Xx$,
3E4);return _.Z(x,SCf(),0)})};
RlQ=function(){return _.T(function(x){if(x.nextAddress==1)return F5.intersectionObserverPresent="IntersectionObserver"in window,F5.serviceWorkerPresent="serviceWorker"in navigator,F5.webSharePresent="share"in navigator,F5.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,F5.cacheStoragePresent="caches"in window,F5.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,F5.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
F5.webkitTemporaryStoragePresent="webkitTemporaryStorage"in Ct&&Ct.webkitTemporaryStorage&&"queryUsageAndQuota"in Ct.webkitTemporaryStorage,F5.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.Z(x,dp3(),2);F5.indexedDbPresent=x.yieldResult;F5.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;F5.broadcastChannelPresent="BroadcastChannel"in window;F5.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(F5.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,F5.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.c5(x)})};
Xx$=function(){var x=9E4+Math.random()*2E3;_.xq()>x||(_.B("enable_system_health_primes_monitoring")?AXO():SCf())};
SCf=function(){var x;return _.T(function(G){if(G.nextAddress==1)return _.Z(G,ihV(),2);x=G.yieldResult;_.Fv("systemHealthCaptured",x);_.c5(G)})};
AXO=function(){var x={metric:{}},G=gbf();G.networkEvents.length&&(x.metric.networkEvents=utC(G));_.Fv("systemHealthCaptured",x)};
ihV=function(){var x,G,D,K,z,y,c,W,e,Q;return _.T(function(p){switch(p.nextAddress){case 1:x={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)};G=window.screen;_.B("enable_is_extended_monitoring")&&G&&"isExtended"in G&&(x.isExtended=!!G.isExtended);D={metric:{staticContext:UC$,dynamicContext:x,webMetric:dCV,webApiSupport:F5}};
if(K=_.CC())D.csn=K;$A&&(D.metric.webMetric.currentHeapKbytes=Math.round($A.usedJSHeapSize/1E3));window.matchMedia&&(D.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,D.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,D.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in Ct&&typeof Ct.getBattery==="function")){p.jumpTo(2);break}return _.Z(p,Ct.getBattery(),3);case 3:if(z=
p.yieldResult)D.metric.dynamicContext.chargingStatus=z.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(D.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(F5.storageEstimatePresent)return _.Z(p,navigator.storage.estimate(),8);if(!F5.webkitTemporaryStoragePresent){p.jumpTo(5);break}return _.Z(p,wxL(),7);case 7:y=p.yieldResult;p.jumpTo(5);break;case 8:y=p.yieldResult;case 5:return D.metric.dynamicContext.deviceStorageQuotaMbytes=((c=y)==null?0:c.quota)?String(Math.round(y.quota/
1048576/10)*10):"-1",D.metric.dynamicContext.deviceStorageUsageMbytes=((W=y)==null?0:W.usage)?String(Math.round(y.usage/1048576/10)*10):"-1",e=D.metric.dynamicContext,_.Z(p,jJL(),9);case 9:return e.hasAppShell=p.yieldResult,Q=gbf(),Q.networkEvents.length&&(D.metric.networkEvents=utC(Q)),p.return(D)}})};
wxL=function(){return new Promise(function(x){var G;F5.webkitTemporaryStoragePresent&&(G=Ct.webkitTemporaryStorage)!=null&&G.queryUsageAndQuota?Ct.webkitTemporaryStorage.queryUsageAndQuota(function(D,K){x({usage:D,quota:K})}):x(void 0)})};
_.In=function(x){x&=16777215;x=[(x&16711680)>>16,(x&65280)>>8,x&255];return qCn(x[0],x[1],x[2])};
_.jT=function(x){x=[(x&16711680)>>>16,(x&65280)>>>8,x&255,(x&4278190080)>>>24];var G=_.NVf(x,function(D){return D==(D&255)});
x[3]=(x[3]/255).toFixed(3);if(!G)throw Error("Wf`"+x.join(","));return"rgba("+x.join(",")+")"};
_.vbQ=function(x){return[(x&16711680)>>>16,(x&65280)>>>8,x&255]};
_.JXE=function(x){x=x.map(function(G){G/=255;return G<=.03928?G/12.92:Math.pow((G+.05)/1.05,2.4)});
return x[0]*.2126+x[1]*.7152+x[2]*.0722};
O4=function(x,G){x=_.vbQ(x);return"rgba("+x[0]+", "+x[1]+", "+x[2]+", "+G+")"};
_.fNC=function(){try{return!!self.localStorage}catch(x){return!1}};
EbC=function(){if(tMh())_.O9(Error("Xf"));else{var x=document.createElement("iframe");x.style.display="none";var G=G===void 0?window.location.href:G;var D=_.CU(_.Am("PERSIST_IDENTITY_IFRAME_URL"));G=D?D:(new URL(G)).host.indexOf("studio")===0?_.xS(kS3,"persist_identity"):_.xS(P9f,"persist_identity");_.LzL(x,1,G);x.id="persist_identity";var K;(K=document.body)==null||K.appendChild(x)}};
tMh=function(){var x=hlQ;x||(x=document.querySelector("#persist_identity"));return x};
xED=function(){var x=!1;try{x=!!window.sessionStorage.getItem("session_logininfo")}catch(G){x=!0}return(_.Am("INNERTUBE_CLIENT_NAME")==="WEB"||_.Am("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&x};
GkL=function(x,G){if(!xED())return!1;G||(G=_.Am("LOGIN_INFO"));return G?(x.session_logininfo=G,!0):!1};
K1f=function(x,G){x=x===void 0?!1:x;if((G===void 0||!G)&&DEO!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.Uo("LOG_STICKINESS",!1)){G=_.CC();var D=_.Fx(),K={identityStickinessData:{initialState:DEO}};G&&D&&_.wB(G,D,K)}if(G=tMh())if(D=G.src?(new URL(G.src)).origin:"*",x){var z;(z=G.contentWindow)==null||z.postMessage({action:"clear"},D)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(x=window.sessionStorage.getItem("session_logininfo"))){var y;(y=G.contentWindow)==null||y.postMessage({loginInfo:x},D)}};
_.X5=function(x){x=x===void 0?!0:x;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.XQ("LOGIN_INFO",""),x&&window.sessionStorage.setItem("from_switch_account","1"),K1f(!0,x)}catch(G){}};
zKd=function(x){x&&(x.startsWith("https://accounts.google.com/AddSession")?_.X5():x.startsWith("https://accounts.google.com/ServiceLogin")?_.X5():x.startsWith("https://myaccount.google.com")&&_.wM(x).getPath().endsWith("/youtubeoptions")&&_.X5())};
AS=function(x,G){zKd(x);if(_.Uo("LOGGED_IN",!0)&&xED()){var D=KRV(x);D==null&&(D={});GkL(D,G)&&_.vy(x,D)}};
aeh=function(){function x(G){for(G=G.target;G&&G.nodeName!=="A";)if(G=G.parentNode,!(G&&G instanceof HTMLElement))return;if(G&&!G.hasAttribute("download")&&G.getAttribute("rel")!=="external"&&G.href)return G.href}
document.addEventListener("mousedown",function(G){G.button!==0&&(G=x(G))&&AS(G)});
document.addEventListener("click",function(G){(G=x(G))&&AS(G)})};
leE=function(){var x=new olD;try{if(_.Uo("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(W){x.increment(5,!1);return}if(_.Am("LOGIN_INFO")){var G=ypd?ypd:window.location;_.Am("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&EbC();var D=KRV(G.href);D==null&&(D={});var K=D.session_logininfo,z=Number(window.sessionStorage.getItem("stickiness_reload")),y=K===_.Am("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
z>=2||y)z>=2?x.increment(2,y):y?x.increment(7,y):window.sessionStorage.getItem("session_logininfo")||(x.increment(3,y),DEO="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.Am("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.Am("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))x.increment(4,y),window.sessionStorage.removeItem("stickiness_reload");
else if(z<2){window.sessionStorage.setItem("stickiness_reload",String(z+1));var c=G.href;c=_.J$(c,"sttick");AS(c,window.sessionStorage.getItem("session_logininfo"));c=_.qh(c,{sttick:z});x.increment(z,y);_.wC(G,c)}}else x.increment(6,!1)}else _.X5(!1)}catch(W){}};
_.U4=function(x,G,D,K,z){G=G===void 0?{}:G;D=D===void 0?"":D;K=K===void 0?window:K;x=_.Nh(x,G);AS(x);D=_.V$(x+D,z);_.wC(K.location,D)};
_.cp$=function(x,G,D,K,z){z=z===void 0?!1:z;D&&_.vy(x,D);D=_.V$(x);var y=_.ZB(D);x!=y&&_.iM(Error("Yf`"+x));x=y;G=G||RZ(x).toString(36);try{if(z)return z=x,z=VTV(z),AS(z),_.jr(window,z,G,"attributionsrc")}catch(c){_.RE(c)}AS(x);return _.jr(window,D,G,K)};
TEC=function(x){if(x.urlEndpoint){if(x=_.wT(x.urlEndpoint.url),x.adurl)return kT(x.adurl)}else if(x.watchEndpoint)return"//www.youtube.com/watch?v="+x.watchEndpoint.videoId;return null};
W1Q=function(x){if(!x||!x.reportingPings)return null;var G={};x.reportingPings.forEach(function(D){D.pingType in G?G[D.pingType].push(D.url):G[D.pingType]=[D.url]});
return{adpings:QNV(G)}};
_.Rn=function(){return{isShellLoad:_.Uo("IS_SHELL_LOAD",!1)}};
ZSd=function(){navigator.serviceWorker.getRegistrations().then(function(x){x.forEach(eKP)})};
eKP=function(x){x&&_.MyO(QGL,x.scope)};
_.MyO=function(x,G){G={scope:G||_.Db("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.lH(x),G)};
ST=function(x,G,D,K){if(G&&G.serializedYpcCujLoggingParams){if(D){var z={};z.transactionErrorType=D;K&&(z.errorMessage=K);G.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:z}}}D={};D.ypcCujContext=G;x=_.zU("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",x,D);_.an(_.on(),x,"FLOW_TYPE_YPC_ACQUISITION")}};
_.pTh=function(x,G,D,K){var z={};z.serializedTransactionFlowLoggingParams=G;D&&(z.errorType=D);K&&(z.errorMessage=K);_.Fv(x,z);_.CE()};
_.Vyf=function(x){x&&_.pTh("transactionFlowStarted",x)};
_.bSE=function(x){x&&_.pTh("transactionFlowCancelled",x)};
_.nt=function(x,G,D){G&&_.pTh("transactionFlowFailed",G,x,D)};
L1d=function(x){if(_.B("enable_setting_app_inert_when_buy_flow_opens")){var G=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");G&&(G.inert=x)}};
_.io=function(){this.megabloxUrl_=null};
_.gA=function(x){try{var G=BEd==null?void 0:BEd.composedPath(x)}catch(D){G=x.composedPath?x.composedPath():[]}return G&&G.length>0?G:x.composedPath?x.composedPath():[]};
_.uo=function(x){return _.gA(x)[0]};
_.dA=function(x){if(!(x instanceof Element))return null;x=x.classList?Array.from(x.classList):void 0;if(!x)return null;var G=x.indexOf("style-scope");return G>-1&&G+1<x.length?x[G+1]:null};
wA=function(x){if(!(x instanceof HTMLElement))return null;var G=x&&(x.$$||x.polymerController)?x.tagName.toLowerCase():null;return G?G:_.dA(x)};
rp$=function(x,G){return x.replace(/[^a-z]*[^\s]+/g,function(D){return D+".style-scope."+G})};
sGQ=function(x,G){return G?x.split(",").map(function(D){return rp$(D.trim(),G)}).join(", "):x};
_.qB=function(x){var G,D,K,z;return(z=(K=(D=(G=x.root)!=null?G:x.shadowRoot)!=null?D:x.__shady_native_shadowRoot)!=null?K:x.__shady_shadowRoot)!=null?z:x};
NB=function(x){return x instanceof ShadowRoot?ShadowRoot:x instanceof DocumentFragment?DocumentFragment:x instanceof Document?Document:HTMLElement};
YnP=function(x){var G,D,K;return(K=(D=(G=x.parentElement)!=null?G:x.__shady_native_parentElement)!=null?D:x.__shady_parentElement)!=null?K:null};
mED=function(x){var G,D,K;return(K=(D=(G=x.parentNode)!=null?G:x.__shady_native_parentNode)!=null?D:x.__shady_parentNode)!=null?K:null};
HSV=function(x){var G,D,K;return(K=(D=(G=x.__shady_parentNode)!=null?G:x.__shady_native_parentNode)!=null?D:x.parentNode)!=null?K:null};
$E$=function(x){var G,D;return(D=(G=mED(x))!=null?G:x.host)!=null?D:null};
F1D=function(x){var G,D,K;return(K=(D=(G=x.nextSibling)!=null?G:x.__shady_native_nextSibling)!=null?D:x.__shady_nextSibling)!=null?K:null};
C4D=function(x){var G,D,K;return(K=(D=(G=x.previousSibling)!=null?G:x.__shady_native_previousSibling)!=null?D:x.__shady_previousSibling)!=null?K:null};
IeD=function(x){var G,D,K;return(K=(D=(G=x.nextElementSibling)!=null?G:x.__shady_native_nextElementSibling)!=null?D:x.__shady_nextElementSibling)!=null?K:null};
jGL=function(x){var G,D,K;return(K=(D=(G=x.previousElementSibling)!=null?G:x.__shady_native_previousElementSibling)!=null?D:x.__shady_previousElementSibling)!=null?K:null};
OSD=function(x){var G,D,K;return new Set([].concat(_.B5((G=x.children)!=null?G:[]),_.B5((D=x.__shady_native_children)!=null?D:[]),_.B5((K=x.__shady_children)!=null?K:[])))};
XTC=function(x){var G,D,K;return new Set([].concat(_.B5((G=x.childNodes)!=null?G:[]),_.B5((D=x.__shady_native_childNodes)!=null?D:[]),_.B5((K=x.__shady_childNodes)!=null?K:[])))};
Ap3=function(x){if(!x)return null;var G=_.dA(x);if(!G){var D;return(D=Node.prototype.getRootNode)==null?void 0:D.call(x)}G=G.toUpperCase();for(x=YnP(x);x&&x.tagName!==G;)x=YnP(x);return x?_.qB(x):null};
UED=function(x){for(;x&&!(x instanceof HTMLElement);)x=$E$(x);return x};
RKD=function(x){var G=UED(x);return x===G?_.dA(x):G?wA(G):null};
Sn3=function(x){return(x=UED(x))?wA(x):null};
nlf=function(x){if(x instanceof Comment)return!1;if(x instanceof Text){var G,D;if(((D=(G=x.textContent)==null?void 0:G.trim())!=null?D:"")==="")return!1}return!0};
vi=function(x,G,D){var K=G(x);for(D=D===void 0?Sn3(x):D;K&&(RKD(K)!==D||!nlf(K));)x=K,K=G(x);return K};
iSQ=function(x,G,D){if(!G)return null;x=Sn3(x);return RKD(G)===x&&nlf(G)?G:vi(G,D,x)};
glh=function(x){return vi(x,HSV,_.dA(x))};
uLC=function(x){return vi(x,IeD)};
dEC=function(x){return vi(x,F1D)};
wTO=function(x){return vi(x,jGL)};
qnQ=function(x){return vi(x,C4D)};
NEn=function(x){return iSQ(x,x.firstChild||x.__shady_native_firstChild||x.__shady_firstChild||null,F1D)};
vln=function(x){var G,D,K;var z=(K=(D=(G=x.firstElementChild)!=null?G:x.__shady_native_firstElementChild)!=null?D:x.__shady_firstElementChild)!=null?K:null;return iSQ(x,z,IeD)};
Jpf=function(x){var G,D,K;var z=(K=(D=(G=x.lastChild)!=null?G:x.__shady_native_lastChild)!=null?D:x.__shady_lastChild)!=null?K:null;return iSQ(x,z,C4D)};
fed=function(x){var G,D,K;var z=(K=(D=(G=x.lastElementChild)!=null?G:x.__shady_native_lastElementChild)!=null?D:x.__shady_lastElementChild)!=null?K:null;return iSQ(x,z,jGL)};
tyC=function(x){var G=Sn3(x);return Array.from(XTC(x)).filter(function(D){return RKD(D)===G})};
kkD=function(x){var G=wA(x);return Array.from(OSD(x)).filter(function(D){return _.dA(D)===G})};
_.JS=function(x,G,D){if(x instanceof HTMLElement&&_.dA(x)===D){var K=Array.from(x.classList).indexOf("style-scope");if(K===-1)x.classList.add("style-scope"),x.classList.add(G);else if(!(K+1>=x.classList.length)){K=x.classList[K+1];var z,y;x==null||(z=x.classList)==null||(y=z.replace)==null||y.call(z,K,G)}}if(x instanceof HTMLElement||x instanceof DocumentFragment)for(z=_.l(OSD(x)),y=z.next();!y.done;y=z.next())_.JS(y.value,G,D);return x};
ft=function(x,G){if(x instanceof HTMLElement&&_.dA(x)===G){var D=Array.from(x.classList).indexOf("style-scope");D===-1||D+1>=x.classList.length||x.classList.remove("style-scope",x.classList[D+1])}if(x instanceof HTMLElement||x instanceof DocumentFragment){D=_.l(x.children);for(var K=D.next();!K.done;K=D.next())ft(K.value,G)}return x};
_.P4P=function(x,G){return NB(x).prototype.appendChild.call(x,G)};
ElQ=function(x,G){if(x===G)return!0;x=XTC(x);return Array.from(x).some(function(D){return ElQ(D,G)})};
_.kA=function(x,G){if(x instanceof tS)return x;(G==null?0:G.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(x,"ownerDocument")&&Object.defineProperty(x,"ownerDocument",{get:function(){return window.document}});
return new tS(x)};
xdh=function(){var x=tS.prototype,G=[].concat(_.B5(hKn?[]:["getRootNode"]),["setAttribute","removeAttribute"]);G=_.l(G);for(var D=G.next(),K={};!D.done;K={method$jscomp$48:void 0},D=G.next())K.method$jscomp$48=D.value,x[K.method$jscomp$48]=function(z){return function(){return this.host[z.method$jscomp$48].apply(this.host,arguments)}}(K)};
DdE=function(){var x=tS.prototype,G=[].concat(_.B5(hKn?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.B5(Gpd?[]:["querySelector","querySelectorAll"]));G=_.l(G);for(var D=G.next(),K={};!D.done;K={method$jscomp$49:void 0},D=G.next())K.method$jscomp$49=D.value,x[K.method$jscomp$49]=function(z){return function(){return this.root[z.method$jscomp$49].apply(this.root,arguments)}}(K)};
aQE=function(){var x=tS.prototype,G=[].concat(_.B5(KpQ?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.B5(z2P?[]:["parentNode"]));G=_.l(G);for(var D=G.next(),K={};!D.done;K={prop$jscomp$62:void 0},D=G.next())K.prop$jscomp$62=D.value,Object.defineProperty(x,K.prop$jscomp$62,{get:function(z){return function(){return this.host[z.prop$jscomp$62]}}(K),
configurable:!0})};
lQh=function(){var x=tS.prototype,G=["activeElement"].concat(_.B5(KpQ?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.B5(onn?[]:["children"]),_.B5(yME?[]:["lastChild"]));G=_.l(G);for(var D=G.next(),K={};!D.done;K={prop$jscomp$63:void 0},D=G.next())K.prop$jscomp$63=D.value,Object.defineProperty(x,K.prop$jscomp$63,{get:function(z){return function(){return this.root[z.prop$jscomp$63]}}(K),
configurable:!0})};
cMf=function(){for(var x=tS.prototype,G=_.l(["innerHTML","textContent"]),D=G.next(),K={};!D.done;K={prop$jscomp$64:void 0},D=G.next())K.prop$jscomp$64=D.value,Object.defineProperty(x,K.prop$jscomp$64,{get:function(z){return function(){return this.root[z.prop$jscomp$64]}}(K),
set:function(z){return function(y){this.root[z.prop$jscomp$64]=y}}(K),
configurable:!0})};
T8h=function(x){var G=tS.prototype;x=_.l(Object.entries(x));for(var D=x.next(),K={};!D.done;K={fn$jscomp$359:void 0},D=x.next()){var z=_.l(D.value);D=z.next().value;z=z.next().value;K.fn$jscomp$359=z;G[D]=function(y){return function(){return y.fn$jscomp$359.apply(null,[this.host.node||this.host].concat(_.B5(arguments)))}}(K)}};
e2O=function(){for(var x=tS.prototype,G=_.l(Object.entries(WpO)),D=G.next(),K={};!D.done;K={fn$jscomp$360:void 0},D=G.next()){var z=_.l(D.value);D=z.next().value;z=z.next().value;K.fn$jscomp$360=z;Object.defineProperty(x,D,{get:function(y){return function(){return y.fn$jscomp$360.apply(null,[this.host.node||this.host].concat(_.B5(arguments)))}}(K),
configurable:!0})}};
_.Pi=function(x){return x instanceof ZM3||x instanceof Document?x:new ZM3(x)};
Mef=function(){for(var x=ZM3.prototype,G=_.l("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),D=G.next(),K={};!D.done;K={method$jscomp$50:void 0},D=G.next())K.method$jscomp$50=D.value,x[K.method$jscomp$50]=function(z){return function(){return HTMLElement.prototype[z.method$jscomp$50].call.apply(HTMLElement.prototype[z.method$jscomp$50],[this.node].concat(_.B5(arguments)))}}(K)};
QdE=function(){for(var x=ZM3.prototype,G=_.l("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),D=G.next(),K={};!D.done;K={prop$jscomp$65:void 0},D=G.next())K.prop$jscomp$65=D.value,Object.defineProperty(x,K.prop$jscomp$65,{get:function(z){return function(){var y;return(y=this.node["__shady_native_"+z.prop$jscomp$65])!=null?y:this.node[z.prop$jscomp$65]}}(K),
configurable:!0})};
_.E4=function(x,G,D){D===void 0&&(D=!x.classList.contains(G));D?x.classList.add(G):x.classList.remove(G)};
_.Ga=function(x,G,D){D===void 0&&(D=!x.hasAttribute(G));if(G==="class")throw Error("bg");D?_.Pi(x).setAttribute(G,""):_.Pi(x).removeAttribute(G)};
ptC=function(x){return(x.localName!=="slot"?[]:(0,_.D6)(x).assignedNodes({flatten:!0})).filter(function(G){return G.nodeType===Node.ELEMENT_NODE})};
_.VeD=function(x){return(x=_.kA(x).querySelector("slot"))&&x.localName==="slot"?ptC(x):[]};
_.K7=function(x,G){window.ShadyCSS&&window.ShadyCSS.styleSubtree(x,G)};
za=function(x,G){var D=G.bind(x);return function(K){D(K,K.detail)}};
_.ae=function(x,G){var D=bMn.get(x);D||(D=new WeakMap,bMn.set(x,D));if(D.has(G))return D.get(G);if(_.B("web_fi_listen_disable_bound_fn_helper")){var K=G.bind(x);x=function(z){K(z,z==null?void 0:z.detail)}}else x=za(x,G);
D.set(G,x);return x};
rMf=function(x,G){Lp3(x);x.created[B8L].push(G)};
Lp3=function(x){if(!x.created||!x.created[B8L]){var G=x.created,D=G?[G]:[];x.created=function(){for(var K=_.l(D),z=K.next();!z.done;z=K.next())z.value.apply(this)};
x.created[B8L]=D}};
sdQ=function(x){return function(){var G=_.rC.apply(0,arguments);return function(D,K,z){x.apply(null,_.B5(G))(D,K,z)}}};
YJd=function(){return function(){var x=_.rC.apply(0,arguments);return function(G,D,K){mtO.apply(null,_.B5(x))(G,D,K)}}};
_.I=function(x){return YJd()(x)};
_.U=function(){return sdQ(Chf).apply(null,_.B5(_.rC.apply(0,arguments)))};
_.oe=function(x){return _.B("pbcm_fi_listen_decorators")?mdD(x):sdQ($tP)(x)};
mdD=function(x){return function(G,D){rMf(G,function(){var K=this[D],z=_.B("web_fi_listen_disable_bound_fn_helper")?function(y){K(y,y.detail)}.bind(this):za(this,K);
HM$.has(x)?Hm(this.hostElement,x,z):this.hostElement.addEventListener(x,z)})}};
_.yf=function(){return sdQ(FJD).apply(null,_.B5(_.rC.apply(0,arguments)))};
_.R=function(x){x=x===void 0?{}:x;return sdQ(H6$)(x)};
_.lD=function(x){if(x.hostElement&&x!==x.hostElement){var G=_.By(x.hostElement);G=x.renderIdom?G:G.shadowRoot}G||(x=x.root,G=x instanceof Node?_.By(x):null);return G};
_.cD=function(x){return $dC?Fph(x):function(G,D){Object.defineProperty(G,D,{get:function(){var K;return(K=_.lD(this))==null?void 0:K.querySelector(x)},
enumerable:!0,configurable:!0})}};
Fph=function(x){return function(G,D){Object.defineProperty(G,D,{get:function(){var K,z=(K=_.kA(this.hostElement))==null?void 0:K.querySelector(x);if(z)return z;var y;return(y=_.lD(this))==null?void 0:y.querySelector(x)},
enumerable:!0,configurable:!0})}};
_.Ta=function(x){return $dC?CmL(x):function(G,D){Object.defineProperty(G,D,{get:function(){var K;return(K=_.lD(this))==null?void 0:K.querySelectorAll(x)},
enumerable:!0,configurable:!0})}};
CmL=function(x){return function(G,D){Object.defineProperty(G,D,{get:function(){var K,z=(K=_.kA(this.hostElement))==null?void 0:K.querySelectorAll(x);if(z==null?0:z.length)return z;var y;return(y=_.lD(this))==null?void 0:y.querySelectorAll(x)},
enumerable:!0,configurable:!0})}};
IQf=function(x){return function(G){if(![_.vm,_.n].includes(Object.getPrototypeOf(G.prototype).constructor))throw Error("cg");Qpf(Object.assign({},typeof x!=="string"?x:{is:x,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(G)}};
_.e2=function(){var x=x===void 0?{}:x;return function(G){if(![JU,_.WD].includes(Object.getPrototypeOf(G.prototype).constructor))throw Error("dg");p1L(Object.assign({},x,{disableInheritanceCheck:!0}))(G)}};
OM3=function(x,G){jdO[x]!=null||(jdO[x]=new Set);jdO[x].add(G)};
_.Z6=function(){var x=_.yf.apply(null,_.B5(_.rC.apply(0,arguments)));return function(G,D){OM3(G.is,D);x(G,D)}};
p7=function(x,G,D){if(Mv(x)&&!Xtf.has(G)){G=G.replace(/^JSC\$[\d]+_/,"");G=G.replace(/\.\d+(\.|$)/g,function(y,c){return".#"+c});
Qf[x]!=null||(Qf[x]={});var K,z;(K=Qf[x])[z=G]!=null||(K[z]=new Set);Qf[x][G].has(D)||(Qf[x][G].add(D),_.Fv("polymerPropertyAccessEvent",{componentName:x,propertyName:G,accessType:D}))}};
AMO=function(){return _.B("polymer_property_access_logging_debug")||_.B("polymer_enable_property_access_logging")};
Mv=function(x){if(_.B("polymer_property_access_logging_debug"))return!0;if(!_.B("polymer_enable_property_access_logging"))return!1;UdV||(UdV=Date.now());return(RZ(x)+UdV)%100<_.Gz("polymer_property_access_logging_percent")};
R2D=function(x,G){return Mv(G)&&x.hostElement.loggingStatus?new Proxy(x,{get:function(D,K,z){if(D.hostElement.loggingStatus.bypassProxyController)return D[K];D.hostElement.loggingStatus.isExternalGet=!0;var y=D[K];D.hostElement.loggingStatus.isExternalGet=!1;if(y instanceof Function)return function(){var c=_.rC.apply(0,arguments);try{return D.hostElement.loggingStatus.currentExternalCall=K,p7(G,K,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),y.apply(this===z?D:this,c)}finally{D.hostElement.loggingStatus.currentExternalCall=
void 0}};
p7(G,K,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return y},
set:function(D,K,z){if(D.hostElement.loggingStatus.bypassProxyController)return D[K]=z,!0;D.hostElement.loggingStatus.isRendererStamper?p7(G,K,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):D.hostElement.loggingStatus.isDeclarativeExternal||p7(G,K,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{D.hostElement.loggingStatus.currentExternalSet=K,D[K]=z}finally{D.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):x};
SJL=function(x,G){x&&x.loggingStatus&&!x.loggingStatus.isDeclarativeExternal&&!x.loggingStatus.isExternalGet&&x.loggingStatus.currentExternalSet!==G&&p7(x.tagName.toLowerCase(),G,"PROPERTY_ACCESS_GET_INTERNAL")};
Vf=function(x,G,D){x&&(D||x.loggingStatus&&!x.loggingStatus.isInitializing&&!x.loggingStatus.isDefiningPropertyAccessor&&x.loggingStatus.currentExternalSet!==G)&&p7(x.tagName.toLowerCase(),G,"PROPERTY_ACCESS_SET_INTERNAL")};
nnf=function(){return{_definePropertyAccessor:function(x,G){var D=this,K=D.hostElement.loggingStatus;K&&(K.isDefiningPropertyAccessor=!0);var z=D[x];z!==void 0&&(D.__data?D._setPendingProperty(x,z):(D.__dataProto!=null||(D.__dataProto={}),D.__dataProto[x]=z));K&&(K.isDefiningPropertyAccessor=!1);Object.defineProperty(this,x,{get:function(){SJL(D.hostElement,x);return this.__data[x]},
set:function(y){G||this._setPendingProperty(x,y,!0)&&this._invalidateProperties()}})},
created:function(){var x=this._setPendingProperty.bind(this);this._setPendingProperty=function(G,D,K){Vf(this.hostElement,G);return x.apply(this,[G,D,K])}}}};
iMO=function(x){AMO()&&_.I(bD.prototype)(x.prototype,"__templateBindingLoggingBehavior")};
gnL=function(x,G){if(G.resolvedFactories.length!==x.resolvedFactories.length)return!0;G=_.l(G.resolvedFactories.entries());for(var D=G.next();!D.done;D=G.next()){var K=_.l(D.value);D=K.next().value;K=K.next().value;if(K.providerClass){if(K.providerClass!==x.resolvedFactories[D].providerClass)return!0}else if(K.providerValue){if(K.providerValue!==x.resolvedFactories[D].providerValue)return!0}else if(K.factory!==x.resolvedFactories[D].factory)return!0}return!1};
u2L=function(x,G){x=_.l(x);for(var D=x.next();!D.done;D=x.next())if(D=D.value,D.constructor===Array)u2L(D,G);else{var K=G;K.has(D)||(D.inject&&K.add(D),D.behaviors&&u2L(D.behaviors,K))}};
L7=function(x,G){var D=x[G];x[G]=function(){var K=_.rC.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(D)return D.apply(this,K)}};
N8L=function(){_.BD.Class=function(D,K){D=ddE(D,K);L7(D.prototype,"created");return D};
L7(rc.prototype,"_initializeProperties");L7(_.sY.prototype,"_initializeProperties");if(wtd)L7(qJC,"created");else{var x=function(){L7(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))x();else{var G=customElements.define;customElements.define=function(D,K,z){G.call(customElements,D,K,z);D==="tp-yt-iron-list"&&(x(),customElements.define=G)}}}};
JMC=function(x,G){x.prototype.behaviors=x.prototype.behaviors||[];x.prototype.behaviors.unshift(vnP.InjectBehavior);x.prototype.provide=G};
_.HD=function(x){return function(G){if(!x.disableElementRegistration){x.noInjection||JMC(G,x.providers);var D=G.prototype;D.__templateHelpers||mtO(Yr.prototype)(D,"__templateHelpers");D=x.is;fQh||(fQh=Date.now());(RZ(D)+fQh)%100<_.Gz("polymer_log_prop_change_observer_percent")&&mtO(my.prototype)(G.prototype,"__propertyObserverObserver");G.prototype.behaviors=G.prototype.behaviors||[];G.prototype.behaviors.unshift(_.teL.YtHostElementBehavior);iMO(G);IQf({is:x.is,notifyObserversOnUndefined:x.notifyObserversOnUndefined!==
!1,fastInit:x.fastInit,template:x.template,disableEnforceFastDefaultValuesCheck:!0})(G)}}};
_.d=function(x){return _.HD({is:x.is,template:x.template,disableElementRegistration:x.disableElementRegistration,cssBuildOptOut:x.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
EnC=function(x,G){if(kpL){x=new x;for(var D=_.l(Object.getOwnPropertyNames(x)),K=D.next();!K.done;K=D.next())K=K.value,G[K]=x[K];for(D=G;D&&D!==Object.prototype;D=Object.getPrototypeOf(D)){K=_.l(Object.getOwnPropertyNames(D));for(var z=K.next();!z.done;z=K.next())z=z.value,x.hasOwnProperty(z)||Object.defineProperty(x,z,Pmf(G,z))}}else x.apply(G)};
Pmf=function(x,G){return{get:function(){var D=x[G];return D instanceof Function?D.bind(x):D},
set:function(D){x[G]=D}}};
xgL=function(x,G){for(var D=x._noAccessors,K=_.l(Object.getOwnPropertyNames(x)),z=K.next();!z.done;z=K.next())if(z=z.value,!h2E.has(z))if(D)G[z]=x[z];else{var y=Object.getOwnPropertyDescriptor(x,z);y&&(y.configurable=!0,Object.defineProperty(G,z,y))}};
GgP=function(x,G,D){return function(K){if(D){var z=D();K.model=z}if(x[G])x[G](K,K.detail)}};
$r=function(x){var G=[];if(typeof x==="string")x.length>0&&G.push.apply(G,_.B5(x.split(".")));else{x=_.l(x);for(var D=x.next();!D.done;D=x.next())D=D.value,typeof D==="string"?G.push.apply(G,_.B5(D.split("."))):G.push(D)}return G};
DgV=function(x,G){if(G[G.length-1]!=="*"&&G[G.length-1]!=="splices"){for(var D=0;D<G.length;D++){if(!x)return;x=x[G[D]]}return x}};
KZD=function(x,G){if(x.length>G.length)return!1;for(var D=0;D<x.length;D++)if(x[D]!==G[D])return!1;return!0};
aIL=function(x,G,D){if(G.type==="compute"){var K=G.getter.bind(D);var z=G.args}else K=function(){return D[G.method.methodName].apply(D,_.B5(_.rC.apply(0,arguments)))},z=G.method.args;
zQE(x,G.propertyKey,K,z,G.value)};
yKV=function(x,G){if(G.readOnly){var D=Object.getOwnPropertyDescriptor(x.model,G.propertyKey);Object.defineProperty(x.model,G.propertyKey,{get:D.get,set:function(){}});
x.model[ocf(G.propertyKey)]=D.set}};
lId=function(x,G,D){if(D){var K=G.propertyKey,z=G.selector;G=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.B5(G.selectorArgs.map(function(y){return{type:"path",path:y}})));
zQE(x,K,function(y){var c=_.rC.apply(1,arguments);return z.apply(null,[D.getState()].concat(_.B5(c)))},G)}};
TR$=function(x,G,D){var K=_.Wy(G.propertyKey)+"-changed";cKP(x,function(z){var y={value:z.value,queueProperty:!0};z.path.split(".").length>1&&(y.path=z.path);D.dispatchEvent(new CustomEvent(K,{detail:y}))},[{type:"wildcard",
path:G.propertyKey}])};
WZP=function(x,G,D){cKP(x,function(){D[G.method.methodName].apply(D,_.B5(_.rC.apply(0,arguments)))},G.method.args)};
ocf=function(x){return"_set"+(x.charAt(0).toUpperCase()+x.slice(1))};
eQ3=function(){var x,G=Cx(function(D){x=D},!1);
return[x,G]};
VGh=function(x){x=x.trim().replace(Zjh,",").replace(MGE,"$1");var G=x[0];G==="-"&&(G=x[1]);if(G>="0"&&G<="9")return{type:"literal",value:Number(x)};if(G==="'"||G==='"')return{type:"literal",value:x.slice(1,-1)};if(G=x.match(QHh)){G=G[1];var D=p23[G];if(D)return{type:D,path:x.slice(0,-(G.length+1))}}return{type:"path",path:x}};
rKn=function(x){var G=x.match(bjn);if(G)return x={methodName:G[1],args:LZd},G[2].trim()&&(G=G[2].replace(BRL,"&comma;").split(","),x.args=G.map(VGh)),x};
sHh=function(x,G,D,K){K=K===void 0?!1:K;G=_.Wy(G);var z=Mq;z&&(D=z(D,G,"attribute",x));Fw(x,D,G,K)};
Fw=function(x,G,D,K){G=YbC(G,K===void 0?!1:K);G===void 0?x.removeAttribute(D):x.setAttribute(D,G)};
YbC=function(x,G){switch(typeof x){case "object":case "function":if(x instanceof Date)return x.toString();if(x){if((G===void 0?0:G)&&!_.B("polymer_reflect_objects_as_boolean_killswitch"))return x?"":void 0;G=window.trustedTypes?window.trustedTypes.isHTML(x)||window.trustedTypes.isScript(x)||window.trustedTypes.isScriptURL(x):void 0;if(G)return x;try{return JSON.stringify(x)}catch(D){_.O9(Error("zg`"+x))}}break;case "boolean":return x?"":void 0;default:return x!==null&&x!==void 0?x.toString():void 0}};
mgh=function(x){if(x===void 0)throw Error("Ag");return x};
IId=function(x,G,D,K){var z=HjQ(K);if(z.length){K=D;var y="property";$gV.test(D)?y="attribute":D[D.length-1]==="$"&&(D=D.slice(0,-1),y="attribute");var c=FZf(z);c&&y==="attribute"&&(D==="class"&&x.hasAttribute("class")&&(c+=" "+x.getAttribute(D)),Fw(x,c,D));y==="attribute"&&K==="disable-upgrade$"&&x.setAttribute("disable-upgrade","");x.localName==="input"&&K==="value"&&x.setAttribute("value","");x.removeAttribute(K);y==="property"&&(D=_.eq(D));G=mgh(G);CuD(G,y,D,z);return!0}return D.slice(0,3)===
"on-"?(x.removeAttribute(D),(y=G).events!=null||(y.events=[]),G.events.push({name:D.slice(3),value:K}),!0):D==="id"?(G.id=K,!0):!1};
HjQ=function(x){for(var G=[],D=0,K;(K=jHQ.exec(x))!==null;){K.index>D&&G.push({type:"literal",value:x.slice(D,K.index)});var z=K[1][0];D=!!K[2];K=K[3].trim();if(z==="{")throw Error("Bg");(z=rKn(K))?G.push({type:"method",negate:D,signature:z}):G.push({type:"path",negate:D,path:K});D=jHQ.lastIndex}D&&D<x.length&&(x=x.substring(D))&&G.push({type:"literal",value:x});return G};
FZf=function(x){for(var G="",D=0;D<x.length;D++){var K=x[D];K.type==="literal"&&(G+=K.value)}return G};
CuD=function(x,G,D,K){x.bindings!=null||(x.bindings=[]);x.bindings.push({kind:G,target:D,parts:K})};
RQf=function(x,G,D){var K=!1;if(x.localName==="template"){K=D;var z=G.stripWhitespace;z=OjQ(x,z===void 0?!1:z);var y=x.content.ownerDocument.createDocumentFragment();z.content=y;y.appendChild(x.content);K&&(K.templateInfo=z);K=!0}else x.localName==="slot"&&(G.hasInsertionPoint=!0);if(x.firstChild&&(z=D,x.localName!=="script"&&x.localName!=="style")){y=0;for(var c=x.firstChild;c;){var W=c;if(W.localName==="template"){var e=W.getAttribute("is");if((c=e==="dom-if")||e==="dom-repeat"){W.removeAttribute("is");
e=W.ownerDocument.createElement("ps-"+e);W.parentNode.replaceChild(e,W);e.appendChild(W);var Q=Array.from(W.attributes);Q=_.l(Q);for(var p=Q.next();!p.done;p=Q.next())p=p.value,c?X2n.has(p.name)&&Fw(e,p.value,p.name):AKn.has(p.name)?Fw(e,p.value,p.name):UgC.has(p.name),W.removeAttribute(p.name);c=e}else c=W}if(c.nodeType===Node.TEXT_NODE){W=void 0;e=x;for(Q=c;((W=Q.nextSibling)==null?void 0:W.nodeType)===Node.TEXT_NODE;)p=void 0,(p=Q).textContent!=null||(p.textContent=""),Q.nextSibling.textContent&&
(Q.textContent+=Q.nextSibling.textContent),e.removeChild(Q.nextSibling);if(G.stripWhitespace&&c.textContent&&!c.textContent.trim()){x.removeChild(c);c=c.nextSibling;continue}}RQf(c,G,{parentIndex:y,parentInfo:z});c.parentNode&&y++;c=c.nextSibling}}var V;if((V=x.hasAttributes)==null?0:V.call(x)){V=D=mgh(D);z=!1;y=Array.from(x.attributes);y=_.l(y);for(W=y.next();!W.done;W=y.next())W=W.value,z=IId(x,V,W.name,W.value)||z;K=z||K}x.nodeType===Node.TEXT_NODE&&(V=HjQ(x.textContent),V.length&&(x.textContent=
FZf(V)||" ",D=mgh(D),CuD(D,"text","textContent",V),K=!0));D&&K&&(D.infoIndex=G.nodeInfoList.push(D)-1)};
OjQ=function(x,G){G={nodeInfoList:[],stripWhitespace:(G===void 0?!1:G)||x.hasAttribute("strip-whitespace")};RQf(x.content,G);return G};
Sbf=function(x){Object.assign(x,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
ijV=function(x,G,D){G.signalCache!=null||(G.signalCache={});var K=G.signalCache[D];if(!K){var z=D.split(".");K=!nc3(x,z[0]);if(z.length>1&&K){var y=x.getPathMutationSignal(z);K=function(){var c=OX(x.owner,function(){return x.getWithPath([z[0]])}),W,e=(W=y())==null?void 0:W.value;
return{rootWasDefined:c!==void 0,value:e}}}else K=function(){var c=x.getWithPath(z);
return{rootWasDefined:c!==void 0,value:c}};
G.signalCache[D]=K}return K()};
uTQ=function(x,G,D,K,z){G=G.parts.map(function(c,W){if(c.type==="literal"){D.partWasDefined!=null||(D.partWasDefined=[]);var e;(e=D.partWasDefined)[W]||(e[W]=c.value!==void 0);return c.value}var Q;if(c.type==="method"){var p,V=(p=(Q=D.partWasDefined)==null?void 0:Q[W])!=null?p:!1;V||(V=c.signature.args.every(function(H){return H.type==="literal"}));
var L=!1,r=!0;Q=c.signature.args.map(function(H){if(H.type==="literal")return H.value;if(H.type!=="path")throw Error("Cg`"+H.type);var O=ijV(x,D,H.path);H=O.value;O=O.rootWasDefined;L||(L=O);r&&(r=O);return H});
V||(V=z===1?r:L);D.partWasDefined!=null||(D.partWasDefined={});D.partWasDefined[W]=V;if(!V)return;Q=(W=ijV(x,D,c.signature.methodName).value)&&typeof W==="function"?W.apply(K,Q):void 0}else p=ijV(x,D,c.path),Q=p.value,D.partWasDefined!=null||(D.partWasDefined={}),(V=D.partWasDefined)[W]||(V[W]=Q!==void 0||p.rootWasDefined);c.negate&&(Q=!Q);return Q});
if(G.length===1){var y;return((y=D.partWasDefined)==null?0:y[0])?G[0]:gc$}return G.join("")};
dgD=function(x){return typeof x==="object"&&!!x&&"notifyPath"in x&&"canNotifyPath"in x};
w2C=function(x){return typeof x==="object"&&!!x&&"notifyPath"in x};
qbV=function(x){return"polymerController"in x};
NRf=function(x,G){G=""+$r(G)[0];if(dgD(x))return x.canNotifyPath(G);if(qbV(x)&&dgD(x.polymerController))return x.polymerController.canNotifyPath(G);if(w2C(x)){var D;return!((D=x.properties)==null||!D[G])}if(qbV(x)&&w2C(x.polymerController)){var K;return!((K=x.polymerController.properties)==null||!K[G])}return!1};
vcE=function(x,G,D){dgD(x)||w2C(x)?x.notifyPath(G,D):qbV(x)&&(dgD(x.polymerController)||w2C(x.polymerController))&&x.polymerController.notifyPath(G,D)};
fI$=function(x,G,D){if(D!==gc$){x.kind==="attribute"||x.target!=="textContent"&&(x.target!=="value"||G.localName!=="input"&&G.localName!=="textarea")||(D=D===void 0?"":D);var K,z=(K=JK3.Polymer)==null?void 0:K.sanitizeDOMValue;z&&(D=z(D,x.target,x.kind,G));if(x.kind==="attribute"){x=x.target;if(x==="class"||x==="name"||x==="slot")G=(0,_.D6)(G);Fw(G,D,x)}else if(x=x.target,D!==G[x]||typeof D==="object")G.loggingStatus&&(G.loggingStatus.isDeclarativeExternal=!0,p7(G.localName,x,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
G[x]=D,G.loggingStatus&&(G.loggingStatus.isDeclarativeExternal=!1)}};
tG$=function(x,G,D,K){var z=G.parts[0];if(G.parts.length!==1||z.type!=="path"||!NRf(D,G.target))return!1;var y=_.l(z.path.split(".")),c=y.next().value,W=f4(y);if(nc3(x,c))return!1;K.signalCache!=null||(K.signalCache={});y=K.signalCache[z.path];var e;y=(e=y)==null?void 0:e().value;if((y==null?void 0:y.path)!==void 0){K=$r(y.path);var Q=$r(z.path);K=[G.target].concat(_.B5(K.slice(Q.length-1)));vcE(D,K,z.negate?!y.value:y.value);return!0}var p=C7(x,c);var V=p.getChangeRecordSignal(W),L=!1;y=function(){if(!L){var H=
OX(x.owner,function(){return p.getWithPath([])});
L||(L=H!==void 0)}return{value:V(),rootWasDefined:L}};
K.signalCache[z.path]=y;K.partWasDefined!=null||(K.partWasDefined={});y=y();(Q=K.partWasDefined)[0]||(Q[0]=y.rootWasDefined);var r=OX(x.owner,function(){return p.getWithPath(W)});
K.partWasDefined[0]&&OX(x.owner,function(){return void fI$(G,D,z.negate?!r:r)});
return!0};
kgd=function(x,G,D,K,z,y){if(!tG$(x,G,D,K)){var c=uTQ(x,G,K,z,y);OX(x.owner,function(){return void fI$(G,D,c)})}};
PuV=function(x,G,D,K,z,y){D=_.l(D);for(var c=D.next(),W={};!c.done;W={infoIndex:void 0},c=D.next()){c=c.value;var e=c.bindings;W.infoIndex=c.infoIndex;c=c.parentInfo;if(e){e=_.l(e);for(var Q=e.next(),p={};!Q.done;p={b$jscomp$253:void 0,bindingCtx$jscomp$4:void 0},Q=e.next()){p.b$jscomp$253=Q.value;if(W.infoIndex===void 0)throw Error("Dg");p.bindingCtx$jscomp$4={};x.effect(function(V,L){return function(){z&&!z()||kgd(x,V.b$jscomp$253,G[L.infoIndex],V.bindingCtx$jscomp$4,K,y)}}(p,W))}}c&&PuV(x,G,[c],
K,z,y)}};
EcP=function(x,G){x=(G.parentInfo?EcP(x,G.parentInfo):x).firstChild;for(var D=0;x;x=x.nextSibling)if(G.parentIndex===D++)return x;throw Error("Eg");};
xDL=function(x,G,D,K){x=document.importNode(x.content,!0);x.__noInsertionPoint=!(K==null?0:K.hasInsertionPoint);for(var z=Array(G.length),y={},c=0;c<G.length;c++){var W=G[c],e=EcP(x,W);z[c]=e;W.id&&(y[W.id]=e);if(W.templateInfo){var Q=e.parentElement;Q&&(Q.templateInfo=W.templateInfo,Q.parentSignalProxy=D,Q.eventListenerHost=K.eventListenerHost,Q.stampingEnabled=K.enabledSignal)}Q=void 0;if((Q=W.events)==null?0:Q.length)for(Q=0;Q<W.events.length;Q++){var p=W.events[Q];hQO(K.eventListenerHost,e,p.name,
p.value,K.getModel)}}PuV(D,z,G,K.thisCtx,K.enabledSignal,K.methodInvocationRequirement);return{root:x,nodes:z,nodesById:y}};
DDL=function(x,G){x=x();var D;(D=GnD.ShadyCSS)==null||D.prepareTemplate(x,G);G=OjQ(x);return{template:x,nodeInfoList:G.nodeInfoList,hasInsertionPoint:G.hasInsertionPoint}};
a9n=function(){Kxf=!1;for(var x=Ie.length,G=0;G<x;G++){var D=Ie[G];if(D)try{D()}catch(K){Promise.resolve().then(function(){throw K;})}}Ie.splice(0,x);
zVL+=x};
cW3=function(x){Kxf||(Kxf=!0,odL.textContent=(yWP++).toString());Ie.push(x);return l9L++};
_.Xw=function(x,G,D){j2++;x=G?new T_V(j2,x,G,D):new Wxh(j2,x);OY.set(j2,x);return j2};
eVf=function(x){(x=OY.get(x))&&x.cancel()};
Mbf=function(x,G){x=Zdn.get(x);return x?(G=x.get(G))?G:null:null};
_.Ao=function(x,G,D,K){var z=Mbf(x,G);if(!z){z=new QDE;var y=Zdn.get(x);y||(y=new Map,Zdn.set(x,y));y.set(G,z)}x=D.bind(x);z.run(x,K,void 0)};
_.pOL=function(x,G){var D;(D=Mbf(x,G))==null||D.cancel()};
Vbh=function(x){var G;(G=Mbf(x,"doRender"))==null||G.flush()};
UY=function(x){var G;return(G=x.hostElement)!=null?G:x};
bd3=function(x){var G=x.indexOf(".");return G===-1?x:x.slice(0,G)};
LxL=function(x,G,D,K,z,y){y=(z=(K=y?bd3(G):G)?G:null)?x.get(z):x.__data[G];z&&y===void 0&&(y=D[G]);_.h$(x.hostElement,x93(K)+"-changed",{value:y,queueProperty:!0,path:z!=null?z:void 0},{bubbles:!1,composed:!1})};
B_V=function(x,G){x.__isReflecting=!0;sHh(x.hostElement,G,x.__data[G]);x.__isReflecting=!1};
rWE=function(x){if(x._onIronRequestResizeNotifications){var G=x._onIronRequestResizeNotifications.bind(x);x._onIronRequestResizeNotifications=function(D){_.uo(D)!==x.hostElement&&G(D)}}x._ariaActiveAttributeChanged&&(x._ariaActiveAttributeChanged=x._ariaActiveAttributeChanged.bind(x.hostElement));
x._activeChanged&&(x._activeChanged=function(D){x.toggles?Fw(x.hostElement,D?"true":"false",x.ariaActiveAttribute):x.hostElement.removeAttribute(x.ariaActiveAttribute);x._changedButtonState()});
x._asyncClick&&(x._asyncClick=function(){_.Xw(function(){x.hostElement.click()},1)});
!x.keyEventTarget||x.keyEventTarget instanceof EventTarget||(x.keyEventTarget=UY(x.keyEventTarget));x._disabledChanged&&(x._disabledChanged=x._disabledChanged.bind(x.hostElement));x._observeItems&&(x._observeItems=function(D){var K=UY(D);return _.By(K).observeNodes(function(z){x._updateItems();x._updateSelected();_.h$(K,"iron-items-changed",z,{bubbles:!1,cancelable:!1})})});
x._updateItems&&x._updateItems===_.Re._updateItems&&(x._updateItems=function(){var D=_.By(x.hostElement).queryDistributedElements(x.selectable||"*");D=Array.prototype.filter.call(D,x._bindFilterItem);x._setItems(D)});
x._computeKeyboardClass&&(x._computeKeyboardClass=function(D){_.E4(x.hostElement,"keyboard-focus",D)});
x.ensureRipple&&(x.ensureRipple=function(D){if(x.hasRipple&&!x.hasRipple()){if(!x._createRipple)return;x._ripple=x._createRipple();x._ripple.noink=x.noink;var K=x._rippleContainer||x.hostElement;K&&_.kA(K).appendChild(x._ripple)}var z;if(D&&((z=x._ripple)==null?0:z.uiDownAction)){K=_.kA(x._rippleContainer||x.hostElement);var y;z=(y=D.composedPath())==null?void 0:y[0];K.contains(z)&&x._ripple.uiDownAction(D)}});
x._updateMultiselectable&&(x._updateMultiselectable=function(D){D?x.hostElement.setAttribute("aria-multiselectable","true"):x.hostElement.removeAttribute("aria-multiselectable")})};
sDQ=function(x,G,D){D=_.l(D);for(var K=D.next();!K.done;K=D.next())EnC(K.value.constructor,x);EnC(G.constructor,x)};
mDh=function(x,G){x=_.l(x);for(var D=x.next();!D.done;D=x.next())if(D=D.value,D.type==="signal"){var K=D.propertyKey;if(G.hasOwnProperty(K)&&G[K]!=null&&D.attributeType===Object){a:{K=G[K].constructor;for(var z=_.l(YhL),y=z.next();!y.done;y=z.next())if(y=y.value,K===y){K=y;break a}K=Object}D.attributeType=K}}};
HdO=function(){};
$Df=function(x){var G;return(G=x.hostElement)!=null?G:x};
Fxf=function(){throw Error("Ig");};
C2f=function(x,G){x.constructor.prototype.useSignals=!0;var D=new x.constructor;sDQ(D,x,G.behaviors);mDh(G.reactiveSchemas,D);D={};for(var K=_.l(G.reactiveSchemas),z=K.next();!z.done;z=K.next())z=z.value,z.type==="signal"&&(D[z.propertyKey]=z.attributeType);var y={copyPropertiesToProto:Fxf,didRegister:!1,typesForSignals:D},c=["disable-upgrade"].concat(_.B5(G.observedAttributes)),W=function(e){S2.call(this,x,G,y,e)};
_.m(W,S2);_.Nq.Object.defineProperties(W,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return c}}});
y.copyPropertiesToProto=function(){for(var e=0;e<G.behaviors.length;e++)xgL(G.behaviors[e],W.prototype);xgL(x,W.prototype)};
G.legacyOptimizations||y.copyPropertiesToProto();W.prototype.is=x.is;return W};
I9C=function(x,G){if(Object.getPrototypeOf(G.prototype).constructor!==_.n)throw Error("Jg");G.prototype.is=x.is;return C2f(G.prototype,x)};
jDC=function(x){return x.type==="compute"||x.type==="computeWithMethod"};
Odf=function(x){for(var G=x.reactiveSchemas.filter(jDC),D=new Map,K=new Map,z=new Map,y=_.l(G),c=y.next();!c.done;c=y.next())c=c.value,D.set(c.propertyKey,c),K.set(c.propertyKey,[]),z.set(c.propertyKey,0);y=0;G=_.l(G);for(c=G.next();!c.done;c=G.next()){c=c.value;for(var W=_.l(c.type==="computeWithMethod"?c.method.args:c.args),e=W.next();!e.done;e=W.next())e=e.value,e.type!=="literal"&&(e=e.path.split(".")[0],K.has(e)&&(K.get(e).push(c.propertyKey),z.set(c.propertyKey,z.get(c.propertyKey)+1),y++))}c=
[].concat(_.B5(K.keys())).filter(function(Q){return z.get(Q)===0});
for(G=[];c.length;)for(W=c.shift(),G.push(D.get(W)),W=_.l(K.get(W)),e=W.next();!e.done;e=W.next())e=e.value,z.set(e,z.get(e)-1),y--,z.get(e)===0&&c.push(e);D=x.reactiveSchemas.filter(function(Q){return!jDC(Q)});
x.reactiveSchemas=[].concat(_.B5(D),_.B5(G))};
XOd=function(x,G){if(G.properties)for(var D=_.l(Object.entries(G.properties)),K=D.next();!K.done;K=D.next()){var z=_.l(K.value);K=z.next().value;z=z.next().value;x.properties[K]=typeof z==="function"?{type:z}:z}G.observers&&x.observers.push.apply(x.observers,_.B5(G.observers));G.disabledPolySiReactions&&x.disabledPolySiReactions.push.apply(x.disabledPolySiReactions,_.B5(G.disabledPolySiReactions))};
AWh=function(x,G){for(var D=G.length-1;D>=0;D--){var K=G[D];Array.isArray(K)?AWh(x,K):x.indexOf(K)<0&&x.unshift(K)}};
UDC=function(x,G){x.reactiveSchemas=x.reactiveSchemas.filter(function(D){return D.type==="observe"&&G.includes(D.method.methodName)||jDC(D)&&G.includes(D.propertyKey)?!1:!0})};
Shf=function(x,G){var D=G.prototype,K,z,y={is:x.is,reactiveSchemas:[],observedAttributes:[],behaviors:[vnP.InjectBehavior,Yr.prototype],disableElementRegistration:x.disableElementRegistration,provide:(K=x.providers)!=null?K:[],reactivityMode:x.reactivityMode,signalProperties:(z=D.signalProperties)!=null?z:[]};"template"in G?y.templateGetter=function(){return G.template}:x.getTemplate&&(y.templateGetter=x.getTemplate);
D.behaviors&&AWh(y.behaviors,D.behaviors);RVE(y,G);return y};
RVE=function(x,G){for(var D=G.prototype,K={properties:{},observers:[],disabledPolySiReactions:[]},z=_.l(x.behaviors),y=z.next();!y.done;y=z.next())XOd(K,y.value);XOd(K,D);if(x.signalProperties)for(D=_.l(x.signalProperties),z=D.next();!z.done;z=D.next())delete K.properties[z.value];D=_.l(Object.entries(K.properties));for(z=D.next();!z.done;z=D.next()){y=_.l(z.value);z=y.next().value;y=y.next().value;var c=void 0;if((c=x.signalProperties)==null||!c.includes(z)){c=void 0;var W=x,e=y.type;if(!e)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{e=Reflect.getMetadata("design:type",G,z);for(var Q=_.l(ndP),p=Q.next();!p.done;p=Q.next())if(p=p.value,e===p){e=p;break a}e=Object}else e=String;y.computed||y.selector||(W.reactiveSchemas.push({type:"signal",propertyKey:z,value:y.value,attributeType:e,readOnly:y.readOnly}),W.observedAttributes.push(_.Wy(z)));y.reflectToAttribute&&W.reactiveSchemas.push({type:"reflect",propertyKey:z});if(y.computed){e=rKn(y.computed);if(!e)throw Error("Kg");W.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:z,method:e,value:y.value})}y.observer&&W.reactiveSchemas.push({type:"observe",method:{methodName:y.observer,args:[{type:"path",path:z}]}});y.notify&&W.reactiveSchemas.push({type:"notify",propertyKey:z});y.selector&&W.reactiveSchemas.push({type:"redux",propertyKey:z,selector:y.selector,selectorArgs:(c=y.selectorArgs)!=null?c:[]})}}id$&&Odf(x);G=_.l(K.observers);for(z=G.next();!z.done;z=G.next())D=x,z=z.value,(y=rKn(z))?D.reactiveSchemas.push({type:"observe",method:y}):console.log('Warning: unable to parse observe declaration: "'+
z+'"');UDC(x,K.disabledPolySiReactions)};
gd$=function(x,G){for(var D=0;D<G.length;D++){var K=G[D],z=void 0;(z=K).showHideApi!=null||(z.showHideApi={});z=void 0;!!x!==!((z=K.showHideApi)==null||!z.hideTemplateChildren)&&(K.nodeType===Node.TEXT_NODE?x?(K.showHideApi.polymerTextContent=K.textContent,K.textContent=""):(z=void 0,K.textContent=(z=K.showHideApi.polymerTextContent)!=null?z:null):K instanceof Element&&K.localName==="slot"?x?(K.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.D6)((0,_.D6)(K).parentNode).replaceChild(K.showHideApi.polymerReplaced,
K)):(z=K.showHideApi.polymerReplaced)&&(0,_.D6)((0,_.D6)(z).parentNode).replaceChild(K,z):K instanceof HTMLElement&&K.style&&(x?(K.showHideApi.polymerDisplay=K.style.display,K.style.display="none"):K.style.display=K.showHideApi.polymerDisplay));K.showHideApi.hideTemplateChildren=x;K.showHideChildren&&K.showHideChildren(x)}};
dDd=function(){if(!ur3){var x=document.createElement("style");x.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(x);ur3=!0}};
n7=function(){return _.B("disable_hidden_dom_if_using_stamper")||_.B("creator_disable_hidden_dom_if_using_stamper")};
wOL=function(x,G){var D=_.iD().getState();return G?x.apply(null,[D].concat(_.B5(G))):x(D)};
vdd=function(){if(qhE)return qhE;var x=_.l(_.eO(0,void 0,"Nl6eIe")),G=x.next().value;x.next();var D=x.next().value;_.iD().subscribe(function(){N_h(D)});
return qhE=G};
N_h=function(x){_.B("delay_redux_signal_update_killswitch")?x(function(G){return G+1}):JWL||(JWL=!0,Promise.resolve().then(function(){x(function(G){return G+1});
JWL=!1}))};
_.iD=function(){return f9Q.getAppStore()};
uD=function(x,G){return f9Q.getSelectFn()(x,G)};
_.dc=function(x){f9Q.getDispatchFn()(x)};
tbL=function(x,G){var D={},K;for(K in x)D[K]=G(x[K],K);return D};
_.wc=function(x,G){return function(){var D;return(D=_.If(x))!=null?D:G}};
_.qv=function(x,G){var D=Object.assign({},x),K;for(K in G)G.hasOwnProperty(K)&&(D[K]=_.wc(x[K],G[K]));return D};
knn=function(x,G,D){x instanceof Element&&(D.debugName||(D.debugName="<"+x.tagName.toLowerCase()+(x.tagName.includes("-")?">":"."+x.className+">")),_.B("ytwiz_enable_debug_component_props")&&(x.debugProps||(x.debugProps=tbL(G,function(K){return function(){return K()}}))))};
_.Nv=function(x,G){var D=function(K){var z=P2$={};var y;if(((y=D)==null?0:y.idomCompat)&&K.renderedFromIdom){var c;y=typeof D.idomCompat==="object"?(c=D)==null?void 0:c.idomCompat.callbacks:{};K=_.l(EdQ(K,y,D.debugName));y=K.next().value;K.next();K=K.next().value;c=hVV(x,y);z.privateValue=c;P2$=void 0;knn(c,y,D);z=tlf(c);z=Array.isArray(z)?z[0]:z;z[yD]||(z[yD]={});z[yD].updateSignalsFromIdomProps=K;z=c}else c=tbL(K,xSf),K=hVV(x,c),z.privateValue=K,P2$=void 0,knn(K,c,D),z=K;return z};
D.debugName=G===void 0?"":G;return D};
hVV=function(x,G){x=x(G);return Zy(x)};
GQd=function(x,G){x[G]||(x=new _.LL("IDOM interop setter undefined. Key:",G),_.I4(x))};
xSf=function(x,G){return G==="children"||G==="ref"||typeof x==="function"||x===void 0?x:function(){return _.If(x)}};
EdQ=function(x,G,D){var K={},z={},y={},c={},W;for(W in x){c={key$jscomp$893:c.key$jscomp$893};c.key$jscomp$893=W;var e=x[c.key$jscomp$893];if(c.key$jscomp$893==="children"||c.key$jscomp$893==="ref")K[c.key$jscomp$893]=e;else if(typeof e==="function")c.key$jscomp$893 in G||e.length>0?(y[c.key$jscomp$893]=e,K[c.key$jscomp$893]=function(p){return function(){return y[p.key$jscomp$893].apply(y,_.B5(_.rC.apply(0,arguments)))}}(c)):K[c.key$jscomp$893]=e;
else if(!(x[c.key$jscomp$893]===void 0&&c.key$jscomp$893 in G)){var Q=_.l(_.eO(x[c.key$jscomp$893],{debugName:"__cwis:"+D+":"+c.key$jscomp$893},"W25zpe"));e=Q.next().value;Q=Q.next().value;K[c.key$jscomp$893]=e;z[c.key$jscomp$893]=Q}}return[K,z,function(p){var V={},L;for(L in p)V={key$jscomp$894:V.key$jscomp$894,val$jscomp$117:void 0},V.key$jscomp$894=L,V.val$jscomp$117=p[V.key$jscomp$894],V.key$jscomp$894!=="children"&&V.key$jscomp$894!=="ref"&&(typeof V.val$jscomp$117==="function"?V.key$jscomp$894 in
G?y[V.key$jscomp$894]=V.val$jscomp$117:V.val$jscomp$117.length>0&&(y[V.key$jscomp$894]=V.val$jscomp$117,_.O9(new _.LL("Callback detected that was not set in the idomCompat callbacks map. Key:",V.key$jscomp$894))):V.key$jscomp$894 in G&&V.val$jscomp$117===void 0||(GQd(z,V.key$jscomp$894),b1(function(r){return function(){z[r.key$jscomp$894](r.val$jscomp$117)}}(V))))}]};
zuO=function(x,G,D){var K=WJE(x.prototype,DSL,x.prototype.behaviors);K.prototype.is=G;K.prototype.localName=G;D&&K_C(K,D);return function(z){z&&(K.prototype.hostElement=z);var y=new K;y.root=y;y.hostElement=z;return y}};
K_C=function(x,G){var D;Object.defineProperty(x.prototype,"_template",{get:function(){D===void 0&&(D=G());return D},
set:function(K){D=K},
configurable:!0,enumerable:!0})};
c9P=function(x,G,D,K){function z(){if(!r){for(var H=new Set,O=_.l(p),A=O.next();!A.done;A=O.next()){A=A.value;for(var g=_.l(Object.getOwnPropertyNames(A)),u=g.next();!u.done;u=g.next()){u=u.value;var f=void 0,v=(f=Object.getOwnPropertyDescriptor(A,u))==null?void 0:f.value;v&&v instanceof Function&&!vD(u)&&(!W[u]||_.B("polymer_forward_method_killswitch"))&&H.add(u)}}O=_.l(Object.entries(Object.getOwnPropertyDescriptors(x.prototype)));for(A=O.next();!A.done;A=O.next())g=_.l(A.value),A=g.next().value,
g=g.next().value,g.value instanceof Function&&!vD(A)&&H.add(A);r=H}return r}
aLE(x,G,K==null?void 0:K.providers);etC(x.prototype,x,!0);var y=zuO(x,G,D),c,W=(c=x.prototype.properties)!=null?c:{},e,Q,p=(Q=(e=x.prototype.behaviors)==null?void 0:e.flat(Infinity))!=null?Q:[];D=_.l(p);for(c=D.next();!c.done;c=D.next())W=Object.assign({},c.value.properties,W);var V=[].concat(_.B5(oMh),_.B5(Object.keys(W).map(function(H){return _.Wy(H)}))),L=!1,r;
return{ctor:function(H,O){var A=y(H),g,u;H=[].concat(_.B5((g=K==null?void 0:K.allowedProps)!=null?g:[]),_.B5((u=K==null?void 0:K.allowedPropsFromBehaviors)!=null?u:[]));A.allowedProps=H.length>0?H:void 0;g={};u=_.l(V);for(H=u.next();!H.done;H=u.next())H=H.value,g[H]=_.eq(H);A.__dataAttributes=g;var f=A.ready.bind(A);A.ready=function(){O.beforeReady();f();if(Mv(G)&&!L){var v=A.__templateInfo;if(v==null?0:v.hostProps){v=_.l(Object.keys(v.hostProps));for(var P=v.next();!P.done;P=v.next())p7(G,P.value,
"PROPERTY_ACCESS_GET_INTERNAL")}L=!0}};
A._overrideLegacyUndefined=!0;return A},
props:W,observedAttributes:V,getInitialMethods:z,getPropsToForwardBeforeRegister:function(){for(var H=[],O=new Set,A=_.l(Object.keys(W)),g=A.next();!g.done;g=A.next())g=g.value,H.push([g,W[g].readOnly]),O.add(g);A=z();g=_.l(Object.keys(Object.getOwnPropertyDescriptors(x.prototype)));for(var u=g.next();!u.done;u=g.next())u=u.value,!y9$(u)||A.has(u)||O.has(u)||(H.push([u,!1]),O.add(u));O=_.l(lLh);for(A=O.next();!A.done;A=O.next())H.push([A.value,!0]);return H},
getPropsToForwardBeforeReady:function(H){for(var O=[],A=_.l(Object.entries(H)),g=A.next();!g.done;g=A.next()){var u=_.l(g.value);g=u.next().value;u=u.next().value;if(y9$(g)&&!(u instanceof Function)&&(O.push([g,!1]),Mv(G))){var f=u=void 0;(f=(u=H)._createPropertyAccessor)==null||f.call(u,g)}}return O},
shouldForwardProp:y9$,shouldLog:Mv}};
aLE=function(x,G,D){JMC(x,D);x.prototype.behaviors.unshift(TyD);if(AMO()){if(Mv(G)){var K;(K=x.prototype).behaviors!=null||(K.behaviors=[]);x.prototype.behaviors.unshift(nnf())}iMO(x)}_.I(Yr.prototype)(x.prototype,"__templateHelpers")};
vD=function(x){return W_V.has(x)||x.startsWith("__compute__")};
y9$=function(x){return!vD(x)&&!x.startsWith("_")&&!x.endsWith("_")};
pU3=function(x,G){function D(){var L=e();L=_.l(L);for(var r=L.next();!r.done;r=L.next()){var H=_.l(r.value);r=H.next().value;H=H.next().value;euC(V.prototype,r,H)}K=!0}
var K=!1,z=x.ctor,y=x.getInitialMethods,c=x.observedAttributes,W=x.getPropsToForwardBeforeReady,e=x.getPropsToForwardBeforeRegister,Q=x.shouldForwardProp,p=x.shouldLog,V=function(){var L=HTMLElement.call(this)||this;L.didForwardDynamicProps=!1;L.loggingStatus={};K||D();L.inst=z(L,{beforeReady:function(){L.didForwardDynamicProps||(L.forwardDynamicProps(),L.didForwardDynamicProps=!0)}});
L.controllerProxy=R2D(L.inst,G);L.forwardMethods();return L};
_.m(V,HTMLElement);V.prototype.forwardMethods=function(){for(var L=this,r=_.l(this.inst.getExtraMethodsToForward()),H=r.next(),O={};!H.done;O={method$jscomp$60:void 0},H=r.next()){var A=_.l(H.value);H=A.next().value;A=A.next().value;O.method$jscomp$60=A;this[H]=function(g){return function(){return g.method$jscomp$60.call.apply(g.method$jscomp$60,[L.inst].concat(_.B5(_.rC.apply(0,arguments))))}}(O)}r=_.l(y());
for(O=r.next();!O.done;O=r.next())O=O.value,Q(O)&&ZNf(this,O),p(G)&&!vD(O)&&MCd(this.inst,O)};
V.prototype.forwardDynamicProps=function(){var L=W(this.inst);L=_.l(L);for(var r=L.next();!r.done;r=L.next()){var H=_.l(r.value);r=H.next().value;H=H.next().value;euC(this,r,H);p(G)&&!vD(r)&&QqP(this.inst,r)}};
V.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
V.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
V.prototype.attributeChangedCallback=function(L,r,H){this.inst.attributeChangedCallbackWrapper(L,r,H)};
_.Nq.Object.defineProperties(V.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return G}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.Nq.Object.defineProperties(V,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return c}}});
customElements.define(G,V)};
euC=function(x,G,D){x.hasOwnProperty(G)||Object.defineProperty(x,G,{get:function(){var K,z=((K=x.is)!=null?K:x.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||p7(z,G,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,K=this.polymerController[G],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,K},
set:function(K){if(!D){var z,y=((z=x.is)!=null?z:x.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||p7(y,G,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=G,this.loggingStatus.bypassProxyController=!0,this.polymerController[G]!==K&&(z={},this.polymerController.setProperties((z[G]=K,z)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
ZNf=function(x,G,D){var K=x.polymerController;x[G]=function(){var z=_.rC.apply(0,arguments);x.loggingStatus.currentExternalCall=G;x.loggingStatus.bypassProxyController=!0;var y,c=((y=x.is)!=null?y:x.tagName).toLowerCase();p7(c,G,"PROPERTY_ACCESS_CALL_EXTERNAL");var W;y=(W=D!=null?D:K[G])==null?void 0:W.call.apply(W,[K].concat(_.B5(z)));x.loggingStatus.currentExternalCall=void 0;x.loggingStatus.bypassProxyController=!1;return y}};
MCd=function(x,G){var D=x.hostElement,K=x[G];x[G]=function(){var z=_.rC.apply(0,arguments);if(D.loggingStatus.currentExternalCall!==G){var y,c=((y=D.is)!=null?y:D.tagName).toLowerCase();p7(c,G,"PROPERTY_ACCESS_CALL_INTERNAL")}return K==null?void 0:K.apply(x,z)}};
QqP=function(x,G){var D=Object.getOwnPropertyDescriptor(x,G);D&&!D.get&&Object.defineProperty(x,G,{get:function(){SJL(x.hostElement,G);return D.value},
set:function(K){Vf(x.hostElement,G);D.value=K}})};
VCC=function(x){return _.B("poly_si_dom_repeat_detached_fix_killswitch")||x.tagName!=="PS-DOM-REPEAT"?x.tagName==="DOM-REPEAT":!0};
L_L=function(x,G){var D=bNf(x);x instanceof Element&&D.unshift(x);x=_.l(D.filter(VCC));for(var K=x.next();!K.done;K=x.next()){var z=void 0;K=_.l((z=K.value.__instances)!=null?z:[]);for(z=K.next();!z.done;z=K.next())if(z=z.value,z.root){z=Array.from(z.root.children);z=_.l(z);for(var y=z.next();!y.done;y=z.next())D.push.apply(D,_.B5(L_L(y.value,G)))}}return D.filter(function(c){return c.usePatchedLifecycles&&c.lifecycleIsConnected===G})};
bNf=function(x){var G=null;x instanceof Element?G=Element.prototype.querySelectorAll:x instanceof DocumentFragment&&(G=DocumentFragment.prototype.querySelectorAll);return G?Array.from(G.call(x,"*")):[]};
Jo=function(x){Wl(function(){for(var G=_.l(L_L(x,!1)),D=G.next();!D.done;D=G.next()){D=D.value;D.lifecycleIsConnected=!0;try{var K=void 0,z=void 0,y=void 0,c=void 0;(K=(c=D.polymerController)!=null?c:D)==null||(y=(z=K).connectedCallback)==null||y.call(z)}catch(W){_.I4(W)}}})};
f7=function(x){Wl(function(){for(var G=_.l(L_L(x,!0)),D=G.next();!D.done;D=G.next()){D=D.value;D.lifecycleIsConnected=!1;try{var K=void 0,z=void 0,y=void 0,c=void 0;(K=(c=D.polymerController)!=null?c:D)==null||(y=(z=K).disconnectedCallback)==null||y.call(z)}catch(W){_.I4(W)}}})};
$SV=function(){if(!ByQ){ByQ=!0;var x=[Node];to&&x.push(to.Wrapper);var G=Node.prototype.insertBefore,D=Node.prototype.removeChild;x=_.l(x);for(var K=x.next(),z={};!K.done;z={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},K=x.next())K=K.value,z.nativeInsertBefore=K.prototype.insertBefore,K.prototype.insertBefore=function(c){return function(W,e){if(W instanceof DocumentFragment){var Q=Array.from(W.children);W=c.nativeInsertBefore.call(this,W,e);
if(this.isConnected&&c.nativeInsertBefore===G)for(e=_.l(Q),Q=e.next();!Q.done;Q=e.next())Jo(Q.value);return W}Q=W instanceof Element&&W.isConnected;e=c.nativeInsertBefore.call(this,W,e);Q&&f7(W);this.isConnected&&Jo(W);return e}}(z),z.nativeAppendChild=K.prototype.appendChild,K.prototype.appendChild=function(c){return function(W){if(W instanceof DocumentFragment){var e=Array.from(W.children);
W=c.nativeAppendChild.call(this,W);if(this.isConnected){e=_.l(e);for(var Q=e.next();!Q.done;Q=e.next())Jo(Q.value)}return W}e=W instanceof Element&&W.isConnected;Q=c.nativeAppendChild.call(this,W);e&&f7(W);this.isConnected&&Jo(W);return Q}}(z),z.nativeRemoveChild=K.prototype.removeChild,K.prototype.removeChild=function(c){return function(W){var e=W instanceof Element&&W.isConnected,Q=c.nativeRemoveChild.call(this,W);
e&&D===c.nativeRemoveChild&&f7(W);return Q}}(z),z.nativeReplaceChild=K.prototype.replaceChild,K.prototype.replaceChild=function(c){return function(W,e){if(W instanceof DocumentFragment){var Q=Array.from(W.children);
W=c.nativeReplaceChild.call(this,W,e);if(this.isConnected)for(f7(e),e=_.l(Q),Q=e.next();!Q.done;Q=e.next())Jo(Q.value);return W}Q=W instanceof Element&&W.isConnected;var p=this.isConnected,V=c.nativeReplaceChild.call(this,W,e);p&&f7(e);Q&&f7(W);p&&Jo(W);return V}}(z);
x=[Element];to&&x.push(to.Wrapper);x=_.l(x);K=x.next();for(z={};!K.done;z={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},K=x.next())K=K.value,K.prototype.before=r9E(K.prototype.before),K.prototype.after=r9E(K.prototype.after),z.nativeReplaceWith=K.prototype.replaceWith,K.prototype.replaceWith=function(c){return function(){var W=_.rC.apply(0,arguments),e=_.l(sqf(W)),Q=e.next().value,
p=e.next().value;e=this.isConnected;c.nativeReplaceWith.apply(this,W);W=_.l(p);for(p=W.next();!p.done;p=W.next())f7(p.value);if(e)for(f7(this),Q=_.l(Q),e=Q.next();!e.done;e=Q.next())e=e.value,e instanceof Element&&Jo(e)}}(z),z.nativeRemove=K.prototype.remove,K.prototype.remove=function(c){return function(){var W=this.isConnected;
c.nativeRemove.call(this);W&&f7(this)}}(z),z.nativeInsertAdjacentElement=K.prototype.insertAdjacentElement,K.prototype.insertAdjacentElement=function(c){return function(W,e){var Q=e.isConnected;
W=c.nativeInsertAdjacentElement.call(this,W,e);Q&&f7(e);W.isConnected&&Jo(W);return W}}(z),z.nativeSetAttribute=K.prototype.setAttribute,K.prototype.setAttribute=function(c){return function(W,e){var Q=YL3(this);
if(!Q.usePatchedLifecycles)return c.nativeSetAttribute.call(this,W,e);var p=this.getAttribute(W);c.nativeSetAttribute.call(this,W,e);e=this.getAttribute(W);mSL(Q,W,p,e)}}(z),z.nativeRemoveAttribute=K.prototype.removeAttribute,K.prototype.removeAttribute=function(c){return function(W){var e=YL3(this);
if(!e.usePatchedLifecycles)return c.nativeRemoveAttribute.call(this,W);var Q=this.getAttribute(W);c.nativeRemoveAttribute.call(this,W);Q!==null&&mSL(e,W,Q,null)}}(z),z.nativeToggleAttribute=K.prototype.toggleAttribute,K.prototype.toggleAttribute=function(c){return function(W,e){var Q=YL3(this);
if(!this.usePatchedLifecycles)return c.nativeToggleAttribute.call(this,W,e);var p=this.getAttribute(W),V=p!==null;e=c.nativeToggleAttribute.call(this,W,e);e!==V&&mSL(Q,W,p,e?"":null);return e}}(z);
x=[Document,DocumentFragment,Element,ShadowRoot];to&&x.push(to.Wrapper);x=_.l(x);for(z=x.next();!z.done;z=x.next())z=z.value,z.prototype.prepend=r9E(z.prototype.prepend),z.prototype.append=r9E(z.prototype.append);(to==null?void 0:to.noPatch)===!0&&HNL();document.readyState==="complete"?Jo(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Jo(document.body)});
var y=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");y&&y.get&&y.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:y.enumerable,configurable:!0,get:y.get,set:function(c){c||f7(this);y.set.call(this,c);return c}})}};
r9E=function(x){return function(){var G=_.rC.apply(0,arguments),D=_.l(sqf(G)),K=D.next().value;D=D.next().value;x.apply(this,G);G=_.l(D);for(D=G.next();!D.done;D=G.next())f7(D.value);if(this.isConnected)for(K=_.l(K),G=K.next();!G.done;G=K.next())G=G.value,G instanceof Element&&Jo(G)}};
HNL=function(){for(var x=_.l(F_f),G=x.next();!G.done;G=x.next()){G=G.value.prototype;for(var D=_.l(CyL),K=D.next();!K.done;K=D.next()){K=K.value;var z=Object.getOwnPropertyDescriptor(G,K);z&&Object.defineProperty(G,"__shady_native_"+K,z)}}};
mSL=function(x,G,D,K){var z,y;if((z=x.polymerController)==null?0:(y=z.observedAttributes)==null?0:y.includes(G))if(x=x.polymerController,x.attributeChangedCallbackWrapper)x.attributeChangedCallbackWrapper.call(x,G,D,K);else{var c;(c=x.attributeChangedCallback)==null||c.call(x,G,D,K)}};
sqf=function(x){var G=[],D=[];x=_.l(x);for(var K=x.next();!K.done;K=x.next())K=K.value,K instanceof Element&&K.isConnected&&D.push(K),K instanceof DocumentFragment?G.push.apply(G,_.B5(Array.from(K.children))):G.push(K);return[G,D]};
YL3=function(x){return!(x instanceof Element)&&x.node instanceof Element?x.node:x};
ILL=function(x,G){var D=G?["children"].concat(_.B5(G)):["children"];G=[];D=_.l(D);for(var K=D.next();!K.done;K=D.next()){var z=K.value;if(x.hasOwnProperty(z)){K=x[z];K=typeof K==="function"?K():K;K=Zy(Array.isArray(K)?K:[K]).flat();if(z!=="children"){z=x93(z);for(var y=_.l(K),c=y.next();!c.done;c=y.next())c=c.value,c instanceof Element&&c.setAttribute("slot",z)}G.push(K)}}G.length===0?x=[]:(x=Zy(_.M("div",null,G)),x=Array.from(x.childNodes));return x};
ONf=function(x,G,D){var K={};_.jO(function(){var z={},y;for(y in G)if(G.hasOwnProperty(y)){var c=void 0,W=void 0;if(!(((c=D.slotProps)==null?0:c.includes(y))||y==="children"||((W=D.callbackProps)==null?0:W.includes(y))||y==="ref")&&(c=_.If(G[y]),K[y]!==c)){K[y]=c;W=void 0;var e=(W=x.hostElement)!=null?W:x;jqL.has(y)&&(e[y]=c);z[y]=c}}b1(function(){if(x.setProperties)x.setProperties(z);else for(var Q=_.l(Object.entries(z)),p=Q.next();!p.done;p=Q.next()){var V=_.l(p.value);p=V.next().value;V=V.next().value;
x[p]=V}})})};
A9E=function(x,G,D,K){var z=ILL(D,K.slotProps),y=(0,_.D6)(x);z=_.l(z);for(var c=z.next();!c.done;c=z.next())y.appendChild(c.value);ONf(G,D,K);K=_.l(K.callbackProps||[]);z=K.next();for(y={};!z.done;y={kebabEventName:void 0,eventListener:void 0},z=K.next())c=z=z.value,String(z).substring(0,2)==="on"&&D[c]?(y.kebabEventName=x93(String(z).substring(2)),y.eventListener=D[c],x.addEventListener(y.kebabEventName,y.eventListener),_.Fq(function(p){return function(){x.removeEventListener(p.kebabEventName,p.eventListener)}}(y))):
G[c]=D[c];
if(D.ref){D=_.l(XUE(D.ref));var W=D.next().value,e=D.next().value,Q=G.attached.bind(G);G.attached=function(){W(x);Q()};
_.Fq(function(){e()})}};
XUE=function(x){if(typeof x==="function"){var G;return[function(D){G=x(D)},
function(){var D;(D=G)==null||D()}]}if(!x.onRender||!x.onUnmount)throw Error("Og");
return[x.onRender,x.onUnmount]};
nMD=function(x,G,D,K,z){K=K===void 0?{}:K;var y=USh,c=!1;y?(c=!0,USh=void 0):(Ru$=G,y=document.createElement(G),Ru$=void 0);var W=y;W.usePatchedLifecycles=!0;W.lifecycleIsConnected=!1;y.loggingStatus={};var e=SL3(x,G,y,K,z);_.Fq(function(){W.lifecycleIsConnected&&(W.lifecycleIsConnected=!1,e.disconnectedCallback())});
c||A9E(y,e,D,K);return y};
SL3=function(x,G,D,K,z){z=z===void 0?c9P:z;iNO[G]!=null||(iNO[G]=z(x,G,K==null?void 0:K.getTemplate,K));var y=iNO[G],c=y.ctor;z=y.getInitialMethods;var W=y.getPropsToForwardBeforeReady;x=y.getPropsToForwardBeforeRegister;K=y.shouldForwardProp;var e=y.observedAttributes,Q=y.shouldLog,p=c(D,{beforeReady:function(){var V=p;V._takeAttributes?V._takeAttributes():V.setPropertiesFromInitialAttributeValues&&V.setPropertiesFromInitialAttributeValues();V=_.l(W(D.polymerController));for(var L=V.next();!L.done;L=
V.next()){var r=_.l(L.value);L=r.next().value;r=r.next().value;euC(D,L,r);Q(G)&&!vD(L)&&QqP(D.polymerController,L)}D.polymerController=R2D(p,G)}});
D.polymerController=p;D.polymerController.observedAttributes=e;y=_.l(p.getExtraMethodsToForward());for(c=y.next();!c.done;c=y.next())e=_.l(c.value),c=e.next().value,e=e.next().value,ZNf(D,c,e);z=_.l(z());for(y=z.next();!y.done;y=z.next())y=y.value,K(y)&&ZNf(D,y),Q(G)&&!vD(y)&&MCd(p,y);x=_.l(x());for(K=x.next();!K.done;K=x.next())z=_.l(K.value),K=z.next().value,z=z.next().value,euC(D,K,z);return p};
uoL=function(x,G){return kr===G?(x.isInert=!0,kr="",!0):gMO===G?(x.isInert=!0,gMO="",!0):!1};
dS$=function(x){var G=PD;PD=x;return G};
qLD=function(x){if(EY.has(x))gMO=x;else if(ho.has(x)&&PD&&wUP(PD)===x){var G;(G=PD)._numRenders!=null||(G._numRenders=0);PD._numRenders++;if(PD._numRenders>1)throw Error("Pg");return PD}};
Nyf=function(x){EY.has(wUP(x))?gMO=wUP(x):ho.has(wUP(x))&&PD!==x&&(x._isInert=!0)};
wUP=function(x){var G;return(G=x==null?void 0:x.tagName.toLowerCase())!=null?G:""};
vME=function(x,G){if(x.componentType===sX)throw Error("Qg");ho.add(G);var D=function(){var K=HTMLElement.call(this)||this;K.is=G;if(Ru$===G)return K.isInert=!0,K;K.createElement();return K};
_.m(D,HTMLElement);D.prototype.createElement=function(){if(!this.isInert){USh=this;var K=_.l(MsV(function(){return _.M(x,null)})).next().value;
USh=void 0;Sbf(this);return K}};
customElements.define(G,D)};
fLP=function(x,G,D,K,z){x.prototype.is=G;(K==null?0:K.useSink)?J9d(x,G,D,K,z):(D=c9P(x,G,D,K),pU3(D,G));return x};
J9d=function(x,G,D,K,z){$SV();var y=_.Nv(function(c){return nMD(x,G,c,Object.assign({},K,{getTemplate:D}),z)},"a");
vME(y,G);return y};
kQD=function(x){return!tCh.has(x)};
huD=function(x,G,D,K){function z(){if(!V){for(var L=new Set(PyV),r=_.l(y.behaviors),H=r.next();!H.done;H=r.next()){H=H.value;for(var O=_.l(Object.getOwnPropertyNames(H)),A=O.next();!A.done;A=O.next()){A=A.value;var g=void 0,u=(g=Object.getOwnPropertyDescriptor(H,A))==null?void 0:g.value;u&&u instanceof Function&&(!Q[A]||_.B("polymer_forward_method_killswitch"))&&L.add(A)}}r=_.l(Object.entries(Object.getOwnPropertyDescriptors(x.prototype)));for(H=r.next();!H.done;H=r.next())O=_.l(H.value),H=O.next().value,
O=O.next().value,O.value instanceof Function&&L.add(H);V=L}return V}
var y=Shf({is:G,disableElementRegistration:!1,getTemplate:D,providers:K==null?void 0:K.providers,reactivityMode:K==null?void 0:K.reactivityMode},x);if((K==null?0:K.allowedProps)||(K==null?0:K.allowedPropsFromBehaviors)){var c,W;y.allowedProps=[].concat(_.B5((c=K.allowedProps)!=null?c:[]),_.B5((W=K.allowedPropsFromBehaviors)!=null?W:[]))}var e=I9C(y,x);G=e.observedAttributes;var Q={};D=_.l(y.reactiveSchemas);for(K=D.next();!K.done;K=D.next())if(K=K.value,K.type==="signal")Q[K.propertyKey]={readOnly:K.readOnly},
K.readOnly&&(Q[ocf(K.propertyKey)]={readOnly:!0});else if(K.type==="compute"||K.type==="computeWithMethod"||K.type==="redux")Q[K.propertyKey]={readOnly:!0};var p=y.reactiveSchemas.length,V;return{ctor:function(L,r){L=new e(L);L.beforeReady=r.beforeReady;return L},
props:Q,observedAttributes:G,getInitialMethods:z,getPropsToForwardBeforeRegister:function(){for(var L=[],r=new Set,H=_.l(EMP),O=H.next();!O.done;O=H.next())O=O.value,L.push([O,O!=="observers"&&O!=="properties"]),r.add(O);H=_.l(Object.keys(Q));for(O=H.next();!O.done;O=H.next())O=O.value,L.push([O,Q[O].readOnly]),r.add(O);H=z();O=_.l(Object.keys(Object.getOwnPropertyDescriptors(x.prototype)));for(var A=O.next();!A.done;A=O.next())A=A.value,!kQD(A)||H.has(A)||r.has(A)||(L.push([A,!1]),r.add(A));L.push(["allowedProps",
!0]);return L},
getPropsToForwardBeforeReady:function(L){var r=[];L=_.l(Object.keys(L));for(var H=L.next();!H.done;H=L.next()){H=H.value;var O=z();kQD(H)&&!O.has(H)&&r.push([H,!1])}L=_.l(y.reactiveSchemas.slice(p));for(H=L.next();!H.done;H=L.next())H=H.value,H.type!=="compute"&&H.type!=="computeWithMethod"&&H.type!=="redux"&&H.type!=="signal"||r.push([H.propertyKey,H.type==="signal"?H.readOnly:!0]);return r},
shouldForwardProp:kQD,shouldLog:Mv}};
_.w=function(x,G,D,K){var z,y,c=(y=(z=K)==null?void 0:z.mode)!=null?y:0;K!=null||(K={});var W;(W=K).reactivityMode!=null||(W.reactivityMode=0);c===1&&_.KL("creator_poly_si_disable_list").includes(G)&&(c=2);return c===1?fLP(x,G,D,Object.assign({},K,{useSink:!0}),huD):fLP(x,G,D,Object.assign({},K,{useSink:c===2}))};
_.x$=function(){return function(x,G,D,K){var z,y,c=(y=(z=K)==null?void 0:z.mode)!=null?y:2;K!=null||(K={});var W;(W=K).reactivityMode!=null||(W.reactivityMode=0);if(c===0)throw Error("Rg`"+c);return J9d(x,G,D,K,c===1?huD:void 0)}};
_.Ge=function(x){return _.B("creator_poly_si_killswitch")?!1:_.B("force_all_poly_si_batches")&&(x==="poly_si_all_on_test_check"||x==="creator_poly_si_batch_050"?0:x)||document.documentElement.hasAttribute("use-signals")?!0:!x||_.B(x+"_holdback_enabled")&&_.B("kevlar_polysi_holdback")?!1:_.B(x)};
DJ=function(x){return x?x.icon?x.icon.iconType.toLowerCase():x.customThumbnail?"member":"":""};
xn3=function(x){if(!x)return"";x=_.l(x);for(var G=x.next();!G.done;G=x.next())if((G=G.value)&&G.liveChatAuthorBadgeRenderer&&(G=DJ(G.liveChatAuthorBadgeRenderer))&&G!=="verified")return G;return""};
GDd=function(x,G){if(!x)return null;var D;return((D=x.find(function(K){return K&&K.liveChatAuthorBadgeRenderer?DJ(K.liveChatAuthorBadgeRenderer)===G:!1}))==null?void 0:D.liveChatAuthorBadgeRenderer)||null};
_.yJE=function(x){var G=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;x=DnP(x);G=DnP(G);var D=KBP(x.hex);G=KBP(G.hex);var K=G[0]/255;var z=G[1]/255,y=G[2]/255,c=Math.max(K,z,y),W=Math.min(K,z,y),e=0,Q=0,p=.5*(c+W);c!=W&&(c==K?e=60*(z-y)/(c-W):c==z?e=60*(y-K)/(c-W)+120:c==y&&(e=60*(K-z)/(c-W)+240),Q=0<p&&p<=.5?(c-W)/(2*p):(c-W)/(2-2*p));K=[Math.round(e+360)%360,Q,p];D=z8C(D,G);for(x=aZO(x.hex);D<4.5;){x=K[2]>=.5?x.darker((4.5-D)/2):x.brighter((4.5-D)/2);D=x.toString();
z=oXh(D);if(!z.length)throw Error("Qd`"+D);D=z;D=z8C(D,G)}return x.hex()};
z8C=function(x,G){x=_.JXE(x);G=_.JXE(G);return(Math.max(x,G)+.05)/(Math.min(x,G)+.05)};
_.Kz=function(x){return"#"+("000000"+(x&16777215).toString(16)).slice(-6)};
_.lZQ=function(x){for(var G=0,D=0;D<x.length;D++)G=x.charCodeAt(D)+((G<<5)-G);x="#";for(D=0;D<3;D++)x+=("00"+(G>>D*8&255).toString(16)).slice(-2);return x};
cJL=function(x){x=(x||"").split(":");x.length===1&&x.unshift("yt-icons");x[1]=x[1].toLowerCase();return x};
QMf=function(x,G){var D=(G=G===void 0?!1:G)?Tpd:WB3,K=G?e8D:ZeD;x.getIconNames().forEach(function(z){z=G?z:z.substring(z.indexOf(":")+1);x.name==="yt-icons"?MED.add(z):z.includes("-filled")?D.add(z):K.add(z)})};
ze=function(x,G,D,K){D=D===void 0?!1:D;K=K===void 0?!1:K;var z,y,c;return _.T(function(W){if(W.nextAddress==1)return _.Z(W,pFQ,2);if(K)return W.return(MED.has(x));z=D?Tpd:WB3;y=D?e8D:ZeD;return G?(c=x.includes("-filled")?x:x.concat("-filled"),W.return(z.has(c))):W.return(y.has(x))})};
_.LBf=function(x){if(VEC(x))return x;var G=x=x.toLowerCase();(x=ben.get(x))&&(G=x);return G};
_.aP=function(x){if(VEC(x))return x.toString();var G=Bp$.get(x);if(G)return G;G=x.toLowerCase();var D="yt-icons",K=G.replace(/_/g,"-");switch(x){case "MY_CHANNEL":G="account_circle";break;case "ADD_TO_LIBRARY":G="add";break;case "ALERT_WARN_RED":G="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":G="person_music";break;case "BLOCK_USER":G="block";break;case "CAPTIONS":G="closed_caption";break;case "CLOSED_CAPTION":D="av";G="closed-caption";break;case "COLLECTION":D="maps";G="layers";break;case "CONTACT":D=
"icons";G="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":D="ytcp-icons";G=K.split("creator-studio-")[1];break;case "DISMISSAL":G="close";break;case "DO_NOT_DISTURB":G="block";break;case "DOGFOOD":D="icons";G="pets";break;case "DRAFT":G="paper_corner_folded";break;
case "EMPTY_LIKE":G="like_outline";break;case "EXIT_APP":G="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":G=K;break;case "GAMES":D="ytg";G="my-games";break;case "GO_TO_PAGE":G="arrow-forward";break;case "GROUP":D="social";break;case "HIDE":G="not_interested";break;case "INPUT_COMPONENT":D="icons";G="settings-input-component";break;case "KIDS_BLOCK":G="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":D="ytg";G="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":D=
"ytg";G="membership-post-purchase";break;case "MULTIVIEW":G="screen_multi_view";break;case "MY_LOCATION":D="maps";G=K;break;case "NOTIFICATIONS_INBOX":G="NOTIFICATIONS";break;case "NEXT":G="chevron_right";break;case "OFFLINE":G="power-settings-new";break;case "PAUSE":D="miniplayer";break;case "PAYMENT":D="icons";break;case "PHONE_DOWNLOAD":G="phone_download";break;case "PREMIUM_STANDALONE":D="yt-logos";G="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":D="yt-logos";G="premium_standalone_cairo";
break;case "QUESTION_ANSWER":G="question_answer";break;case "REDEEM":D="icons";G="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":G="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":G="library_add";break;case "SCHOOL":D="yt-sys-icons";G="creator_academy";break;case "SETTINGS_LIGHT":G="settings_applications";break;case "SETTINGS_MATERIAL":G="settings";break;case "SEARCH_HISTORY":G="watch_history";break;case "SHOPPING_BAG":G="bag";break;case "SOCIAL":case "PEOPLE":D=
"yt-icons";G="people";break;case "STAFF_PICK":D="ytg";G="spotlight";break;case "START_DVR":G="add";break;case "STOP_DVR":D="av";G="stop";break;case "TAB_LIKED":G="like";break;case "TAB_INBOX":G="mail";break;case "TERMS_OF_SERVICE":D="icons";G="description";break;case "TRENDING":G="fire";break;case "UNBLOCK_USER":G="remove";break;case "UNPLUGGED_DARK_THEME":D="image";G="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":G="live";break;case "UNPLUGGED_SPORTS":D="ytu";G="visibility-off";break;
case "VIDEOS":D="av";G="play-circle-filled";break;case "YOUTUBE":D="yt-logos";G="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":D="yt-logos-ext";G="yt-logo-red-updated";break;case "YOUTUBE_LOGO":D="yt-logos-ext";G="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":D="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":D="shorts";G=K;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":D="yt-sys-icons";G="youtube_improve_tv";break;case "OUTLINE_BAG":D=
"yt-sys-icons";G="bag";break;case "QUEUE_PLAY_LAST":D="yt-sys-icons";G="list_queue_last";break;case "SLASH_CIRCLE_LEFT":G="slash_circle_left";break;case "SPEED_1_POINT_2X":G="1_point_2x";break;case "SPEED_1_POINT_5X":G="1_point_5x";break;case "SPEED_1_POINT_8X":G="1_point_8x";break;case "SPEED_POINT_2X":G="point_2x";break;case "SPEED_POINT_5X":G="point_5x";break;case "SPEED_POINT_8X":G="point_8x";break;case "SPEED_1X":G="1x";break;case "SPEED_2X":G="2x";break;case "TAB_BOOKMARK":G="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":D="yt-sys-icons";G="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":D="yt-sys-icons";G="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":D="yt-sys-icons",G="tic_tac_toe"}G=D+":"+G;Bp$.set(x,G);return G};
VEC=function(x){var G;_.B("kevlar_use_wil_icons")?G=!!_.Eo().resolve(_.oP).resolveIcon({iconName:x.toString()}):G=!1;return G};
_.lb=function(x,G,D,K){D=D===void 0?{}:D;K=K===void 0?!1:K;D===null&&(D={});var z=_.KL("kevlar_command_handler_command_banlist");z=_.l(z);for(var y=z.next();!y.done;y=z.next())if(y=x?x.hasOwnProperty(y.value):void 0,y)return!1;z=_.Y(x.commandMetadata,_.fC);return K&&z!=null&&z.url?!1:!G.disableCommandHandlerOverride&&_.y2.instance?(K=_.y2.instance,D.form||(D.form={element:G}),D.form.element||(D.form.element=G),!D.clickedVisualElement&&G.visualElement&&(D.clickedVisualElement=G.visualElement),K.resolveCommand(x,
D),!0):!1};
rJd=function(x,G){x=ch(x);for(var D=_.l(x.visibilityMonitorKeys||[]),K=D.next();!K.done;K=D.next())G.unobserveByKey(K.value);x.visibilityMonitorKeys=void 0};
Hef=function(x,G){if(_.CC()){if(_.B("kevlar_vimio_use_shared_monitor"))sMC(x,G.data);else if(!sMC(x,G.data))return;var D=G.data,K=YmV(D);if(_.B("enable_client_ve_spec_logging"))rJd(x,G.observer);else{var z=ch(x);z.trackedParams&&z.trackedParams!==K&&rJd(x,G.observer)}z=ch(x);!D||z.data&&z.data===D||(z.data=D);mnh(x,G);z.trackedParams=K}};
mnh=function(x,G){var D=G.observer;if(!D&&_.B("web_skip_missing_vimio_observer")){var K,z;_.O9(new _.LL("VisibilityObserver is not defined.",x.tagName,x.trackedParams,(K=G.data)==null?void 0:K.trackingParams,(z=G.data)==null?void 0:z.loggingDirectives))}else{var y=G.layer,c=G.visibilityCallback||function(){},W=G.prescanCallback,e=ch(x);
K=[];G.showOption&&K.push(D.observe(x,function(){G.skipLogging&&G.skipLogging()||_.Te().reportShown(e,void 0,y);c(!0)},G.showOption));
G.hideOption&&K.push(D.observe(x,function(){_.Te().reportHidden(e,void 0,y);c(!1)},G.hideOption));
G.prescanOption&&W&&K.push(D.observe(x,function(){W()},G.prescanOption));
e.visibilityMonitorKeys=K}};
sMC=function(x,G){x=ch(x);if(x.visualElement&&!G)return!0;if(!G)return!1;var D=!1;if(_.B("enable_client_ve_spec_logging")){var K,z;D=!!((K=G.loggingDirectives)==null?0:(z=K.clientVeSpec)==null?0:z.uiType)}K=YmV(G);if(!K&&!D)return!1;_.B("mweb_component_visibility_logging")&&(x.veContainer||(x.veContainer={}),x.veContainer.trackingParams=K);if(x.trackedParams&&x.trackedParams===K)return!1;var y;if(_.B("enable_client_ve_spec_logging")&&((y=x.visualElement)==null?0:y.isClientVe())){var c;y=(c=x.visualElement)==
null?void 0:c.getAsJspb();var W,e,Q,p;if(_.GH(y,2)===((W=G.loggingDirectives)==null?void 0:(e=W.clientVeSpec)==null?void 0:e.uiType)&&_.GH(y,3,-1)===((Q=G.loggingDirectives)==null?void 0:(p=Q.clientVeSpec)==null?void 0:p.elementIndex))return!1}if(_.B("enable_client_ve_spec_logging")){var V,L;!x.visualElement&&((V=G.loggingDirectives)==null?0:(L=V.clientVeSpec)==null?0:L.uiType)&&(W=G.loggingDirectives.clientVeSpec,G=W.uiType,c=W.elementIndex,W=W.clientYoutubeData,x.visualElement=_.Wh(_.en(),{veType:G,
elementIndex:c,clientYouTubeData:W}))}return!0};
YmV=function(x){if(x==null?0:x.rendererContext){var G=_.Y(x.rendererContext,_.ZJ);if(G==null?0:G.loggingDirectives)return G.loggingDirectives.trackingParams}return(x==null?0:x.loggingDirectives)?x.loggingDirectives.trackingParams:x==null?void 0:x.trackingParams};
ch=function(x){var G;return(G=x.polymerController)!=null?G:x};
IZd=function(x){_.Te();if(_.SR(MJ().JSC$10467_elementShouldLogGesture).bind(MJ())(x,4)){$nd(x);var G=FBf(x);C$D.set(x,G)}};
$nd=function(x){C$D.has(x)&&(C$D.get(x).cancel("untrack hover element"),C$D.delete(x))};
FBf=function(x){var G,D=[],K=!1,z=new _.T1(function(y,c){Q2(x,"mouseenter",_.SR(function(){var W,e,Q;return _.T(function(p){if(p.nextAddress==1)return G=(0,_.kK)(),W=jMh(x),D.push(W),e=OeL(x,function(){K=!0;c(Error("Sg"))}),_.Z(p,W,2);
if(p.nextAddress!=3)return e&&pz(e),Q=XF$(x),D.push(Q),_.Z(p,Q,3);y();_.c5(p)})}))});
z.then(function(){var y=(0,_.kK)()-G;y=Math.round(y);if(!(500>y||6E5<=y)){var c=x.getScreenLayer?x.getScreenLayer():void 0;c=_.CC(c)||"";var W=AJQ(_.Te(),x);_.dB(c,x.visualElement?x.visualElement:_.V2(W),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:y}})}IZd(x)},function(){bb&&(bb(),bb=null);
K&&($nd(x),IZd(x))});
return z};
jMh=function(x){var G;return(new _.T1(function(D,K){bb=function(){K(Error("Tg"))};
G=_.Fj.debounce(_.SR(function(){pz(z);D()}),1,100);
var z=_.Lz(x,"mousemove",G)})).thenCatch(function(){var D=_.Fj.cancelDebouncedJobMap.get(G);
D&&_.Fj.cancelJob(D)})};
XF$=function(x){var G;return(new _.T1(function(D,K){bb=function(){K(Error("Ug"))};
G=Q2(x,"mouseleave",_.SR(function(){D()}))})).thenCatch(function(){pz(G)})};
OeL=function(x,G){return Q2(x,"mouseleave",_.SR(G))};
R8V=function(x){Unh&&_.Bh.cancel(Unh);Unh=_.Bh.run(function(){_.h$(x,"yt-visibility-refresh");Unh=0})};
SmP=function(x){x=Number(x);return"rgba("+[x>>16&255,x>>8&255,x&255,(x>>24&255)/255].join()+")"};
ieL=function(x){if(!x)return!1;if(_.Y(x,_.nXV))return!0;var G;if(x=(G=_.Y(x,_.oI))==null?void 0:G.commands)for(G=_.l(x),x=G.next();!x.done;x=G.next())if(_.Y(x.value,_.nXV))return!0;return!1};
gXf=function(x){var G=!0;G=G===void 0?!0:G;if(!x.useSignals&&!x.experimentalPropertiesChanged||_.B("experimental_templating_behavior_nopatch_killswitch")){var D=x._propertiesChanged;x._propertiesChanged=function(K,z,y){G?x.debounceRender():x.doRender();D&&D.call(x,K,z,y)}}};
uZd=function(x,G){if(x.useSignals||x.experimentalPropertiesChanged)if(_.B("experimental_templating_behavior_nopatch_killswitch"))x.experimentalPropertiesChanged=function(){};
else return;var D=new Set,K=[x].concat(_.B5(x.behaviors));K=_.l(K);for(var z=K.next();!z.done;z=K.next()){z=z.value;for(var y in z.properties)D.has(y)||(x._addPropertyEffect(y,"function",G),D.add(y))}};
dnE=function(){var x=Polymer.Element,G=x._prepareTemplate;x._prepareTemplate=function(){G.call(this);var D=this.prototype;if(D.experimentalTemplatingInUse&&D.experimentalTemplatingInUse()&&D.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.I4(Error("Vg"));else{D=this.template.content.childNodes;for(var K=D.length-1;K>=0;K--){var z=D[K];z.nodeName!=="STYLE"&&z.nodeName!=="LINK"&&z.nodeName!=="SCRIPT"&&z.nodeName!=="#comment"&&z.remove()}}}};
wFL=function(x){var G=!0;G=G===void 0?!0:G;dnE();var D=x.ready;x.ready=function(){this._template=null;D.call(this)};
uZd(x,G?x.debounceRender:x.doRender)};
Np3=function(x,G,D){if(D===null||D===void 0)return D;var K=cuO(x.tagName.toLowerCase(),G,function(){throw Error("Qb");});
if(K===null)return D;K=qm3[K];var z;if((z=K.isUnwrappable)==null?0:z.call(K,D)){if(K.unwrap)return K.unwrap(D);throw Error("Yg");}return K.filterString?K.filterString(x.tagName,G,String(D)):D};
vX3=function(x,G,D){var K=G[G.length-1]!=="$",z=Np3(x,G,D);if(K)if(typeof z==="function"&&G.startsWith("reactiveon")&&G===G.toLowerCase()){var y=PZ;LnL(x,G.slice(8),function(c){OX(y,function(){z(c)})})}else x[G]=z;
else D=z==null?null:String(z),bUf(x,G.slice(0,-1),D)};
sI=function(x){JJf.length===0&&requestAnimationFrame(function(){setTimeout(function(){var G=JJf.slice();JJf.length=0;G=_.l(G);for(var D=G.next();!D.done;D=G.next()){D=D.value;try{D()}catch(K){_.rk(K)}}})});
JJf.push(x)};
fZd=function(x){if(x){var G=x.component;if(G){var D;G==null||(D=G.events)==null||D.publish("DISCONNECTED");var K;G==null||(K=G.onDisconnected)==null||K.call(G)}var z,y;(z=x.__spec)==null||(y=z.didUnmount)==null||y.call(z);for(G=0;G<x.childNodes.length;G++)fZd(x.childNodes[G])}};
mw=function(x,G,D){var K=G&&G.key,z=vl;z[0]=x;z[1]=K;z[2]=void 0;for(var y in G)G.hasOwnProperty(y)&&(x=G[y],K=Jt,K.push(y),K.push(x));G=vl;a:{if(y=vl[2])for(x=0;x<y.length;x+=2)if(y[x]==="nonce"){y=y[x+1];break a}y=""}y=XSh(G[0],G[1],y);x=Rf(y);K=G[2];if(!x.staticsApplied&&(x.staticsApplied=!0,K&&K.length))if((z=x._attrsArr)&&z.length){for(z=0;z<K.length;z+=2)Y$[K[z]]=z+1;z=x._attrsArr||(x._attrsArr=Vlf(0));for(var c=0,W=0;W<z.length;W+=2){var e=z[W],Q=z[W+1],p=Y$[e];p?K[p]===Q&&delete Y$[e]:(z[c]=
e,z[c+1]=Q,c+=2)}At(z,c);for(var V in Y$)mO$(y,V,K[Y$[V]],fE),delete Y$[V]}else for(V=0;V<K.length;V+=2)mO$(y,K[V],K[V+1],fE);gW$(y,x,fE);At(G,0);D&&D(SO);AuE()};
tEO=function(x){var G=x.toString().toLowerCase();return function(D,K){mw(G,D,K)}};
_.Hh=function(x,G,D){D===void 0?delete x[G.name]:x[G.name]=D};
_.$$=function(x){var G={androidIncludeFontPadding:!1},D=0,K=[],z=[],y=[];if(x.simpleText)return G.content=x.simpleText,G;if(x.runs===void 0)return G.content="",G;x=_.l(x.runs);for(var c=x.next();!c.done;c=x.next()){c=c.value;var W=c.text,e=void 0,Q=(e=W)==null?void 0:e.length;if(W&&Q){K.push(W);if(c.bold||c.italics||c.strikethrough||c.underline||c.textColor!=null&&c.textColor!==0||c.deemphasize){W=z;e=W.push;var p={startIndex:D,length:Q};c.bold&&(p.weightLabel="FONT_WEIGHT_MEDIUM");c.italics&&(p.italic=
!0);c.strikethrough&&(p.strikethrough="LINE_STYLE_SINGLE");c.underline&&(p.underline="LINE_STYLE_SINGLE");c.textColor!=null&&c.textColor!==0?document.documentElement.hasAttribute("dark")?p.fontColor=c.darkModeTextColor||c.textColor:p.fontColor=c.textColor:c.deemphasize&&(document.documentElement.hasAttribute("dark")?p.fontColor=parseInt("ff"+kDL("#aaa").substring(1),16):p.fontColor=parseInt("ff"+kDL("#606060").substring(1),16));e.call(W,p)}c.navigationEndpoint&&(W=y,e=W.push,p={startIndex:D,length:Q,
onTap:{innertubeCommand:c.navigationEndpoint}},c.loggingDirectives&&_.Hh(p,P$V,c.loggingDirectives),e.call(W,p));D+=Q}}G.content=K.join("");G.styleRuns=z.length?z:void 0;G.commandRuns=y.length?y:void 0;return G};
h8P=function(x){if(x==null||!x.runs)return!0;x=_.l(x.runs);for(var G=x.next();!G.done;G=x.next())if(G=G.value,G.bracket||G.errorUnderline||G.deemphasize||_.Y(G,FB)||_.Y(G,EXh))return!1;return!0};
xG3=function(x,G){return function(D){var K=G.unit;if(K!==D)throw Error("ah`"+x+"`"+K+"`"+D);return G}};
Cz=function(x){if(!((x==null?0:x.value)&&(x==null?0:x.unit)))return"";switch(x.unit){case "DIMENSION_UNIT_FRACTION":var G="%";break;default:G="px"}x=x.value;G==="%"&&(x*=100);return""+x+G};
G6C=function(x){try{return x()}catch(G){_.O9(G)}};
_.jn=function(x){var G=_.Y(x,_.IP);if(G)return G;if((G=_.Y(x,DGE))&&G.commands)return KAL(G.commands);if((G=_.Y(x,zn$))&&G.commands)return KAL(G.commands);if((x=_.Y(x,alO))&&x.identifier&&x.command&&(ouC||(ouC=[]),!ouC.includes(x.identifier)))return ouC.push(x.identifier),_.Y(x.command,_.IP)};
KAL=function(x){if(x.length!==0){var G=[];x=_.l(x);for(var D=x.next();!D.done;D=x.next())(D=_.jn(D.value))&&G.push(D);return{commandExecutorCommand:{commands:G}}}};
_.XB=function(x){var G=x.defaultTarget,D=x.elementConfig,K=x.elementsCommand,z=x.skipOnClick,y=x.forceNewState,c=x.additionalCommandArgs,W=x.innertubeCommand||_.jn(K);if(W){x={};var e=yFL(W);K=e.navigatingCommand;e=e.href;K&&e?(x.href$=e,lln(x,K,e,G),_.B("web_atagconfig_pointerdown")&&cFL(x,K),y&&(x["force-new-state$"]=!0)):(x.role$="button",x.href$="javascript:void(0);");_.Y(W,TXP)&&(x["aria-haspopup$"]=!0);z||(x.onclick=function(Q){if(WAd(Q)){var p=Object.assign({},{form:{element:Q.target,event:Q}},
c);Q.preventDefault();_.OI(W,p)}});
return Object.assign({},D,x)}};
enQ=function(x){if(x.length){if(x.length===1)return x[0];var G={};_.Hh(G,_.oI,{commands:x});return G}};
An=function(x){return x&&x.href$!=="javascript:void(0);"};
yFL=function(x){var G,D=((G=_.Y(x,_.oI))==null?void 0:G.commands)||[x];x=_.l(D);for(G=x.next();!G.done;G=x.next()){G=G.value;var K=void 0,z=void 0;D=(z=_.Y((K=G)==null?void 0:K.commandMetadata,_.fC))==null?void 0:z.url;_.B("web_remove_web_navigation_endpoint_data")||(K=void 0,D=D||((K=_.Y(G,ZqE))==null?void 0:K.url));if(D&&D!=="/service_ajax"){if(K=Q$(D,MD3))return x=_.ZB(K),{navigatingCommand:G,href:x};_.O9(new _.LL("AttributedString URL could not be sanitized",D))}}return{}};
WAd=function(x){return x.button!==void 0?x.button===0&&!(x.shiftKey||x.altKey||x.metaKey||x.ctrlKey):!(x.shiftKey||x.altKey||x.metaKey||x.ctrlKey)};
lln=function(x,G,D,K){D=!tm(D);var z,y,c;if((z=_.Y(G,_.TU))!=null&&z.nofollow||(y=_.Y(G,_.d5))!=null&&y.nofollow||(c=_.Y(G,_.iV))!=null&&c.nofollow||D)x.rel$="nofollow";var W;G=((W=_.Y(G,_.iV))==null?void 0:W.target)==="TARGET_NEW_WINDOW"?"_blank":K===void 0?"":K;x.target$=G};
cFL=function(x,G){G.clickTrackingParams&&(x.params={itct:G.clickTrackingParams});x.onpointerdown=function(D){QxP(D)};
x._data=G};
pXn=function(x){(x.loggingUrls||[]).forEach(function(G){g$(G.baseUrl,G.attributionSrcMode)})};
VDP=function(x){x.currentTarget._data&&pXn(x.currentTarget._data)};
QxP=function(x){var G=x.currentTarget;x=G6C(function(){return G.href});
var D=G.params;x&&_.vy(x,D||{},8,!0)};
bqf=function(x,G){if(G=_.Y(G,_.iV))(G==null?void 0:G.target)==="TARGET_NEW_WINDOW"&&(x.target="_blank"),G.nofollow&&(x.rel="nofollow")};
LAL=function(x){x=_.Y(x==null?void 0:x.commandMetadata,_.fC);return(x==null?0:x.url)?x.url:null};
_.UI=function(x,G){(x=_.jn(x))&&_.OI(x,G)};
_.OI=function(x,G){HoE(function(D){G?D.resolveCommand(x,G):D.resolveCommand(x)})};
YNL=function(x,G){var D=["yt-core-attributed-string__link"];G!=null&&G.noLinkColor||((G==null?0:G.isOverlay)?D.push("yt-core-attributed-string__link--overlay-call-to-action-color"):D.push("yt-core-attributed-string__link--call-to-action-color"),(G==null?0:G.linkInheritColor)&&D.push("yt-core-attributed-string--link-inherit-color"));D={className:D.join(" "),tabindex$:"0"};var K=x.onTap||x.onLongPress;if(!K)return D;var z=BX$(x);z&&(D["aria-label$"]=z);G=_.XB({elementsCommand:K,elementConfig:D,skipOnClick:!(G==
null||!G.skipOnClick),forceNewState:!0});x.onLongPress&&(K=new rF$(function(){var y=_.jn(x.onLongPress);y&&_.Eo().resolve(_.hm).resolveCommand(y)}),G&&sxn(K,G));
return G||D};
BX$=function(x){var G,D;return(G=x.onTapOptions)==null?void 0:(D=G.accessibilityInfo)==null?void 0:D.accessibilityLabel};
mGL=function(x){var G=x;x<=16777215&&(G+=parseInt("ff000000",16));return _.jT(G)};
Hqh=function(x){var G=x.isDarkTheme;var D=x.extension;x=x.runColor;var K=void 0;if(D=D==null?void 0:D.colorMap){G=G?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";D=_.l(D);for(var z=D.next();!z.done;z=D.next())if(z=z.value,G===z.key){K=z.value;break}}K==null&&x&&(K=x);if(K)return mGL(K)};
RP=function(x){var G=x.config;var D=x.image;var K=x.imageConfig;var z=x.imageWrapperConfig;var y=x.run;var c=x.tag;var W=x.textLength;var e=x.startIndex===void 0?0:x.startIndex;x=x.length;e===void 0&&(e=0);y={run:y,startIndex:e,endIndex:x!==void 0?e+x:W,tag:c};D&&(y.image=D);K&&(y.imageConfig=K);z&&(y.imageWrapperConfig=z);G&&(y.config=G);return y};
FAD=function(x,G){var D=[];D.push("yt-core-attributed-string");(G==null?0:G.className)&&D.push(G==null?void 0:G.className);(G==null?0:G.ellipsisTruncate)?D.push("yt-core-attributed-string--ellipsis-truncate"):(G==null?0:G.noWrap)?D.push("yt-core-attributed-string--white-space-no-wrap"):(G==null?0:G.noPreWrap)||D.push("yt-core-attributed-string--white-space-pre-wrap");(G==null?0:G.linkInheritColor)&&D.push("yt-core-attributed-string--link-inherit-color");x.alignment&&D.push($Gf(x.alignment));x.lineBreakMode&&
D.push("yt-core-attributed-string--word-wrapping");return D.join(" ")};
CS3=function(x){if(x.weight)return x.weight;switch(x.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}};
Il3=function(x){switch(x){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"}};
$Gf=function(x){switch(x){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"}};
OqO=function(x,G,D){var K=G;x.content&&D&&(D=x.content.indexOf("\n"),D!==-1&&(K=Math.min(G,D)));if(!x.content||x.content.length<=K)G=x;else if(x.attachmentRuns||x.commandRuns||x.decorationRuns||x.styleRuns||x.paragraphStyleRuns){G=Sn(x.content,K);D=K;var z=x.attachmentRuns;if(z){var y=[];z=_.l(z);for(var c=z.next();!c.done;c=z.next())c=Object.assign({},c.value),c.startIndex===void 0||c.startIndex>=D||(c.length||(c.length=0),c.length+c.startIndex>D&&(c.length=D-c.startIndex),y.push(c));D=y}else D=
void 0;y=jxE(K,x.commandRuns);z=K;var W=x.decorationRuns;if(W){c=[];W=_.l(W);for(var e=W.next();!e.done;e=W.next()){e=e.value;var Q=_.Y(e.textDecorator,nz);if(Q&&Q.startIndex!==void 0&&!(Q.startIndex>=z)){e=Object.assign({},e,{textDecorator:{highlightTextDecorator:Object.assign({},Q)}});Q=_.Y(e.textDecorator,nz);if(!Q.length||Q.length+Q.startIndex>z)Q.length=z-Q.startIndex;c.push(e)}}z=c}else z=void 0;c=jxE(K,x.styleRuns);if(W=x.paragraphStyleRuns)for(x=[],W=_.l(W),e=W.next();!e.done;e=W.next()){var p=
e.value;e=Object.assign({},p);if(!(e.startIndex===void 0||e.startIndex>=K)){if(!e.length||e.length+e.startIndex>K)e.length=K-e.startIndex;Q=[];var V=void 0,L=void 0;if((V=p)==null?0:(L=V.listGroup)==null?0:L.listItems)for(p=_.l(p.listGroup.listItems),V=p.next();!V.done;V=p.next())if(V=Object.assign({},V.value),!(V.startIndex===void 0||V.startIndex>=K)){if(!V.length||V.length+V.startIndex>K)V.length=K-V.startIndex;Q.push(V)}Q.length>0&&(e.listGroup||(e.listGroup={}),e.listGroup=Object.assign({},e.listGroup,
{listItems:Q}));x.push(e)}}else x=void 0;G={content:G,attachmentRuns:D,commandRuns:y,decorationRuns:z,styleRuns:c,paragraphStyleRuns:x}}else G=Object.assign({},x,{content:Sn(x.content,K)});return G};
jxE=function(x,G){if(G){var D=[];G=_.l(G);for(var K=G.next();!K.done;K=G.next())if(K=Object.assign({},K.value),!(K.startIndex===void 0||K.startIndex>=x)){if(!K.length||K.length+K.startIndex>x)K.length=x-K.startIndex;D.push(K)}return D}};
Sn=function(x,G){var D=G,K;if(K=D>0)K=x.charCodeAt(D-1),K=K>=55296&&K<=56319;K&&(D=x.charCodeAt(D),K=D>=56320&&D<=57343);K&&--G;return x.substring(0,G)};
RnQ=function(x,G,D){D=D===void 0?XXh:D;if(x){var K=_.Eo().resolve(kq);K||_.B("mweb_no_observer_killswitch")?Hef(x,{data:G,observer:K,visibilityCallback:D,hideOption:AFL,showOption:UGV,layer:x.layer}):_.O9(new _.LL("Warning: monitorVisibility called with null observer",x.tagName,G==null?void 0:G.loggingDirectives,G==null?void 0:G.trackingParams))}else _.O9(new _.LL("Warning: monitorVisibility called with null element",G==null?void 0:G.loggingDirectives,G==null?void 0:G.trackingParams,G==null?void 0:
G.rendererContext))};
wXP=function(x,G){var D=[],K=x.content.length,z,y=(z=_.Eo().resolve(_.P6(_.ib)))==null?void 0:z();if(x.paragraphStyleRuns){z=_.l(x.paragraphStyleRuns);for(var c=z.next();!c.done;c=z.next()){var W=D.push,e=W.apply;var Q=void 0;c=c.value;if((Q=c.listGroup)!=null&&Q.listItems){Q=[];b:switch(c.listGroup.listType){case "LIST_TYPE_BULLET":var p="ul";break b;default:p="span"}Q.push(RP({run:c,textLength:K,tag:p,config:{className:"yt-core-attributed-string__list-group"},startIndex:c.startIndex,length:c.length}));
p=_.l(c.listGroup.listItems);for(var V=p.next();!V.done;V=p.next()){V=V.value;b:switch(c.listGroup.listType){case "LIST_TYPE_BULLET":var L="li";break b;default:L="span"}Q.push(RP({run:c,textLength:K,tag:L,startIndex:V.startIndex,length:V.length}))}c=Q}else c=[];e.call(W,D,_.B5(c))}}if(x.styleRuns&&(G==null||!G.noStyleRuns))for(z=_.l(x.styleRuns),W=z.next();!W.done;W=z.next()){W=W.value;e=Hqh({extension:_.Y(W.styleRunExtensions,SNO),isDarkTheme:y===void 0?!1:y,runColor:W.fontColor});Q=[];e&&Q.push("yt-core-attributed-string--link-inherit-color");
W.italic&&Q.push("yt-core-attributed-string--italicized");W.underline&&W.strikethrough?Q.push("yt-core-attributed-string--underline-strikethrough",Il3(W.underline)):W.underline?Q.push("yt-core-attributed-string--underlined",Il3(W.underline)):W.strikethrough&&Q.push("yt-core-attributed-string--strikethrough",Il3(W.strikethrough));if(W.baselineOffset){a:switch(W.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":c="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":c=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:c="yt-core-attributed-string--baseline-offset-unknown"}Q.push(c)}c=Q.join(" ");Q=W;p={};if(Q.weight||Q.weightLabel)p.fontWeight=CS3(Q).toString();e&&(p.color=e);D.push(RP({run:W,textLength:K,tag:"span",config:{className:c,style:p},startIndex:W.startIndex,length:W.length}))}if(x.decorationRuns)for(z=_.l(x.decorationRuns),W=z.next();!W.done;W=z.next())W=W.value,e={},W.textDecorator&&(p=W.textDecorator,c=y===void 0?!1:y,V=[],Q=
_.Y(p,nz),p=_.Y(p,nuf),Q?(p=V,V=p.concat,L=[],(c=Hqh({extension:_.Y(Q.highlightTextDecoratorExtensions,iq$),isDarkTheme:c,runColor:Q.backgroundColor}))&&L.push("background-color: "+c+";"),Q.backgroundCornerRadius!==void 0&&L.push("border-radius: "+Q.backgroundCornerRadius+"px;"),Q.leftPadding!==void 0&&L.push("padding-left: "+Q.leftPadding+"px;"),Q.rightPadding!==void 0&&L.push("padding-right: "+Q.rightPadding+"px;"),Q.topPadding!==void 0&&L.push("padding-top: "+Q.topPadding+"px;"),Q.bottomPadding!==
void 0&&L.push("padding-bottom: "+Q.bottomPadding+"px;"),V=V.call(p,L)):p&&(Q=V,V=Q.concat,c=c?"#2ba640":"#107516",c=p.color?mGL(p.color):c,c=["padding: 2px;","border-top: solid "+c+" 2px;","border-bottom: solid "+c+" 2px;","background: linear-gradient(135deg, "+c+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+c+" 3px, rgba(0, 0, 0, 0) 3px);"],V=V.call(Q,c)),c=V.join(" "),e.style$=c,c=W.textDecorator,Q=[],p=_.Y(c,nuf),_.Y(c,nz)?Q.push("yt-core-attributed-string--highlight-text-decorator"):
p&&Q.push("yt-core-attributed-string--bracket-text-decorator"),c=Q.join(" "),e.className=c,e.dir="auto"),c=_.Y(W.textDecorator,nz),Q=_.Y(W.textDecorator,nuf),p=_.Y(W.textDecorator,nz),V=_.Y(W.textDecorator,nuf),D.push(RP({run:W,textLength:K,tag:"span",config:e,startIndex:(c==null?void 0:c.startIndex)||(Q==null?void 0:Q.startIndex)||0,length:(p==null?void 0:p.length)||(V==null?void 0:V.length)||0}));if(x.commandRuns&&(G==null||!G.noEndpoints))for(y=_.l(x.commandRuns),z=y.next();!z.done;z=y.next())z=
z.value,W=YNL(z,G),D.push(RP({run:z,textLength:K,tag:"a",config:W,startIndex:z.startIndex,length:z.length}));if(x.attachmentRuns)for(x=_.l(x.attachmentRuns),y=x.next();!y.done;y=x.next()){y=y.value;e=W=void 0;z={className:"yt-core-attributed-string--inline-block-mod"};if((e=y.element)==null?0:e.properties){e=(W=y.element)==null?void 0:W.properties;W=[];e=_.Y(e,guV);if(e==null?0:e.margin)e=e.margin,e.left&&W.push("margin-left: "+Cz(e.left)+";"),e.right&&W.push("margin-right: "+Cz(e.right)+";"),e.top&&
W.push("margin-top: "+Cz(e.top)+";"),e.bottom&&W.push("margin-bottom: "+Cz(e.bottom)+";");W=W.length!==0?W.join(" "):void 0;z.style$=W}c=void 0;W={alt:"",preserveHeight:!0,preserveWidth:!0};e=["yt-core-attributed-string__image-element"];if(y.alignment){a:switch(y.alignment){case "ALIGNMENT_BASELINE":Q="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":Q="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:Q=
"yt-core-attributed-string__image-element--image-alignment-bottom"}e.push(Q)}if((c=y.element)==null?0:c.properties)c=[],Q=_.Y(y.element.properties,guV),(Q==null?0:Q.height)&&c.push("height: "+Cz(Q.height)+";"),(Q==null?0:Q.width)&&c.push("width: "+Cz(Q.width)+";"),c=c.length!==0?c.join(" "):void 0,W.style$=c,Q=void 0,c=((Q=_.Y(y.element.properties,uED))==null?void 0:Q.label)||"",W.alt=c;W.className=e.join(" ");e=void 0;p=Q=void 0;c=((p=y.element)==null?0:p.type)?(Q=_.Y(y.element.type,dG$))==null?
void 0:Q.image:void 0;D.push(RP({run:y,textLength:K,tag:"img",image:c,imageConfig:W,imageWrapperConfig:z,startIndex:y.startIndex,length:(e=y.length)!=null?e:0}))}if(G==null?0:G.headerRuns)for(G=_.l(G.headerRuns),x=G.next();!x.done;x=G.next())if(x=x.value,x.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(x.headerMapping)){a:{switch(x.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":y=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":y="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":y="yt-core-attributed-string--heading-3";break a}y=void 0}D.push(RP({run:x,textLength:K,tag:"span",config:y?{className:y}:void 0,startIndex:x.startIndex,length:x.length}))}return D};
_.gk=function(x){return(x==null?void 0:x.content)!==void 0};
qNL=function(x){return _.gk(x)?x:_.$$(x)};
NXh=function(x){return x.image!==void 0&&x.imageConfig!==void 0};
vuP=function(x,G){if(G==null?0:G.userInput)for(x=_.l(x),G=x.next();!G.done;G=x.next())if(G=G.value,G.tag!=="a"&&G.tag!=="li"){var D=void 0;(D=G).config||(D.config={});G.config.dir=G.tag==="ul"?_.Eo().resolve(_.ub):"auto"}};
JFL=function(x){return function(G){var D=x.run;(D.onTap!==void 0||D.onLongPress!==void 0)&&_.Y(D,P$V)&&RnQ(G,{loggingDirectives:_.Y(D,P$V)})}};
fl3=function(x){return function(G){for(var D in x)(fE[D]||fE[UX["default"]])(G,D,x[D])}};
Eu$=function(x,G){tDP(G);var D={data:null,start:0,end:x.length,parts:[]};G=_.l(G);for(var K=G.next();!K.done;K=G.next())K=K.value,k6D(D,K.startIndex,K.endIndex,K);PSC(x,D);return D};
k6D=function(x,G,D,K){for(var z=_.l(x.parts),y=z.next();!y.done;y=z.next()){y=y.value;if(typeof y==="string")throw Error("ch");if(y.start<=G&&D<=y.end){k6D(y,G,D,K);return}}x.parts.push({data:K,parts:[],start:G,end:D})};
PSC=function(x,G){for(var D=G.parts.length;D>=0;D--){var K=G.parts[D],z=G.parts[D-1],y=D===G.parts.length?G.end:K.start;z=D===0?G.start:z.end;y!==z&&G.parts.splice(D,0,x.slice(z,y));K&&PSC(x,K)}};
tDP=function(x){x.sort(function(G,D){if(G.startIndex<D.startIndex)return-1;if(D.startIndex<G.startIndex)return 1;G=G.endIndex-G.startIndex;D=D.endIndex-D.startIndex;return G>D?-1:D>G?1:0})};
_.hnf=function(x){var G=x.thumbnails;if(G){x={sources:[]};G=_.l(G);for(var D=G.next();!D.done;D=G.next()){D=D.value;var K={};K.url=D.url;K.width=D.width;K.height=D.height;x.sources.push(K)}return x}};
xoE=function(x,G,D,K){if(!G)return x.length>=1?x[x.length-1]:null;if(K)for(var z=_.l(x),y=z.next();!y.done;y=z.next()){y=y.value;var c=void 0,W=(c=y.url)==null?void 0:c.indexOf(K);if(W!==void 0&&W>=0)return y}K=_.l(x);for(z=K.next();!z.done;z=K.next())if(z=z.value,z.width&&z.height&&(D&&z.width>=G||!D&&z.height>=G))return z;for(G=x.length-1;G>=0;G--)if(D&&x[G].width||!D&&x[G].height)return x[G];return x[0]};
_.GqP=function(x){var G;return(x=(G=x.sources)==null?void 0:G[0])?x.width/x.height:0};
_.DoC=function(x){if(x.sources){x=_.l(x.sources);for(var G=x.next();!G.done;G=x.next()){G=G.value;var D=void 0;if((D=G.clientResource)==null?0:D.imageName)return G}}};
K4Q=function(x){var G;if((G=x.clientResource)!=null&&G.imageColor)return _.jT(x.clientResource.imageColor)};
_.aMf=function(x,G,D,K,z,y,c){if(!G||G.length===0||G[0].clientResource)return null;if(D&&G[0].url)return G[0].url;K===void 0&&(K=!0);if(K){var W;x=zkf*(z||(x==null?void 0:(W=x.getBoundingClientRect())==null?void 0:W.width)||0)}else{var e;x=zkf*(y||(x==null?void 0:(e=x.getBoundingClientRect())==null?void 0:e.height)||0)}G=xoE(G,x,K,c);return(G==null?0:G.url)?G.url:(G==null?0:G.imageData)?G.imageData:null};
ojD=function(x,G,D){D=D?[D]:[];x.opacity&&D.push("opacity: "+x.opacity+";");G&&x.placeholderColor?(x=_.jT(x.placeholderColor),D.push("background-color: "+x+";")):D.push("background-color: transparent;");return D.join(" ")};
yf$=function(x,G,D,K,z){var y=["yt-core-image"];G&&y.push(G);D||y.push("yt-core-image--fill-parent-height");K||y.push("yt-core-image--fill-parent-width");switch(x.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":y.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":y.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":y.push("yt-core-image--content-mode-center");break;default:y.push("yt-core-image--content-mode-scale-to-fill")}x.flipForRtlLayout&&
y.push("yt-core-image--flip-rtl");switch(z){case "TOP_START":var c;y.push(((c=document.body)==null?void 0:c.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return y.join(" ")};
cfV=function(x){var G;if(x==null?0:(G=x.clientResource)==null?0:G.imageName){var D;x=(D=x.clientResource)==null?void 0:D.imageName;a:{switch(x){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":D="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":D="yt-logos-ext:yt-logo-updated";break a}D=void 0}return D||lMf.get(x)||x}};
ek$=function(x){return _.B("mweb_wiz_skip_render")?TJd(x):W4f(x)};
TJd=function(x){return function(G){var D=XSh("wink-root");wO();AuE();fJf(D,_.M(x,G))}};
W4f=function(x){var G=G===void 0?!1:G;return function(D){if(!G||!_.B("mweb_skip_keto_to_c3_if_no_data")||D.data!==void 0){var K=GZ(!1);try{var z=D.children;_.B("mweb_render_outside_patch_killswitch")||SO?z?J2(_.M(x,D,z)):J2(_.M(x,D)):_.O9(new _.LL("ketoToC3 called outside of a patch",{tagName:x.TAG_NAME}))}finally{GZ(K)}}}};
Z_V=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
Q9d=function(x,G){x.onViewportEntered=G;MWD.observe(x)};
pBO=function(){var x={rootMargin:"10%",threshold:.01};_.B("mweb_enable_set_io_root_to_null_safari")?x.root=null:_.B("mweb_enable_set_io_root_to_body_safari")&&(x.root=document.body);return new IntersectionObserver(function(G,D){G.filter(function(K){return K.intersectionRect.height>0}).forEach(function(K){K=K.target;
if(!_.B("mweb_enable_only_update_image_when_connected")||K.isConnected!==!1){var z;(z=K.onViewportEntered)==null||z.call(K);D.unobserve(K)}})},x)};
VWO=function(x,G,D,K,z){function y(){if(K){var W=K.loadedClass,e=K.notifyOnUnloaded;W&&_.dk(x,W);e&&x.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function c(){var W=D(G,x);W&&x.getAttribute("src")!==W&&(_.B("mweb_enable_only_update_image_when_connected")&&x.isConnected===!1||W===x.src||(x.src=W),y())}
z=z===void 0?!0:z;x.removeAttribute("src");y();G&&(z?Q9d(x,c):c())};
b_V=function(x,G,D){if(!G)return!1;G=D(G,x);D=x.getAttribute("src");return G&&G===D&&x.complete};
L4L=function(x,G){for(var D in G)D==="className"?x.className=G[D]:(fE[D]||fE[UX.default])(x,D,G[D])};
BJ$=function(x,G,D,K){ek$(_.wk)({contentMode:G.contentMode,loadedClass:G.loadedClass,isPreloaded:G.isPreloaded,notifyOnLoaded:G.notifyOnLoaded,notifyOnUnloaded:G.notifyOnUnloaded,preferredThumbnail:G.preferredThumbnail,preserveHeight:G.preserveHeight,preserveWidth:G.preserveWidth,objectPosition:G.objectPosition,targetWidth:G.targetWidth,targetHeight:G.targetHeight,shouldShowPlaceholder:G.shouldShowPlaceholder,useWidth:G.useWidth,alt:G.alt,className:G.className,onerror:G.onerror,onload:G.onload,style$:G.style$,
color:G.color,width:G.width,height:G.height,"aria-hidden$":G["aria-hidden$"],draggable:G.draggable,"data-disabled$":G["data-disabled$"],data:x,callback:D,renderLazy:K===void 0?!0:K,hideOn404:!1})};
s9V=function(x,G,D){D=D===void 0?!1:D;var K=x.sources!==void 0?x:_.hnf(x);if(K){var z=G.onload;G.onload=function(e){var Q=e.target;D&&Q.naturalWidth===120||_.qJ(Q,"yt-core-image--loaded");G.notifyOnLoaded&&Q.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));z==null||z(e)};
G.targetWidth&&G.preserveWidth&&(G.width=G.targetWidth);G.targetHeight&&G.preserveHeight&&(G.height=G.targetHeight);var y=_.DoC(K),c=y&&cfV(y);if(c)return(x=K4Q(y))&&(G.color=x),{type:"icon",iconName:c,config:Object.assign({},G,G.alt?{}:{"aria-hidden$":"true"},{"aria-label$":G.alt,role:"img"})};if(x.sources===void 0){G.alt=x.accessibility&&x.accessibility.accessibilityData&&x.accessibility.accessibilityData.label||G.alt;G.style$=ojD(x,G.shouldShowPlaceholder,G.style$);var W;G.isPreloaded=!((W=_.Y(x,
rfO))==null||!W.isPreloaded)}G.contentMode&&!K.contentMode&&(K.contentMode=G.contentMode);G.className=yf$(K,G.className,G.preserveHeight,G.preserveWidth,G.objectPosition);G.loadedClass="yt-core-image--loaded";return{type:"image",image:K,config:G}}};
_.NJ=function(){var x=_.rC.apply(0,arguments);return _.Ni(function(G){var D=x.map(function(K){return K(G)});
return function(){return void D.forEach(function(K){return void(K==null?void 0:K())})}})};
vh=function(x,G){var D=G==null?void 0:G.initial;return _.V9(function(){_.If(!0);return D=x(D)},{equals:G==null?void 0:G.isEqual},"rSlKsc")};
Y8C=function(x,G){if(x===G)return!0;if(x===void 0||G===void 0)return!1;var D,K,z,y,c,W,e,Q;return x.content===G.content&&((D=x.styleRuns)==null?void 0:D.length)===((K=G.styleRuns)==null?void 0:K.length)&&((z=x.commandRuns)==null?void 0:z.length)===((y=G.commandRuns)==null?void 0:y.length)&&((c=x.attachmentRuns)==null?void 0:c.length)===((W=G.attachmentRuns)==null?void 0:W.length)&&((e=x.decorationRuns)==null?void 0:e.length)===((Q=G.decorationRuns)==null?void 0:Q.length)};
$o$=function(x,G){if(x){var D=qNL(x);if(D!=null&&D.content)if(_.B("attr_string_reactive"))ek$(moV)({text:x,config:G});else{var K=!(G==null||!G.ariaLabel)||!(D.commandRuns&&D.commandRuns.length!==0||D.paragraphStyleRuns&&D.paragraphStyleRuns.length!==0);x=K?G==null?void 0:G.ariaLabel:null;K=K?"text":null;mw("span",{className:FAD(D,G),dir$:(G==null?0:G.userInput)?"auto":void 0,"aria-label$":x,role$:K},function(){if(D.styleRuns||D.commandRuns||D.attachmentRuns||D.decorationRuns){var z=wXP(D,G);vuP(z,
G);z=Eu$(D.content,z);z=_.l(z.parts);for(var y=z.next();!y.done;y=z.next())H_f(y.value)}else Pl(D.content)})}}};
H_f=function(x){typeof x==="string"?Pl(x):NXh(x.data)?mw("span",x.data.imageWrapperConfig,function(){BJ$(x.data.image,x.data.imageConfig)}):mw(x.data.tag,x.data.config,function(G){JFL(x.data)(G);
G=_.l(x.parts);for(var D=G.next();!D.done;D=G.next())H_f(D.value)})};
CEP=function(x){return x.parts.map(F4d)};
F4d=function(x){if(typeof x==="string")return x;x=NXh(x.data)?_.M("span",{el:_.NJ(fl3(x.data.imageWrapperConfig))},_.M(_.wk,Object.assign({},{data:x.data.image},x.data.imageConfig))):_.M(x.data.tag,{el:_.NJ(JFL(x.data),fl3(x.data.config))},x.parts.map(F4d));return Zy(x)};
IMC=function(x,G){return x===G?!0:x===void 0||G===void 0?!1:x.noStyleRuns===G.noStyleRuns&&x.noLinkColor===G.noLinkColor&&x.noEndpoints===G.noEndpoints&&x.headerRuns===G.headerRuns&&x.isOverlay===G.isOverlay&&x.linkInheritColor===G.linkInheritColor&&x.userInput===G.userInput};
j9V=function(x){return function(){var G,D,K,z,y,c,W,e,Q,p,V,L,r,H;return{ariaLabel:(G=x.ariaLabel)==null?void 0:G.call(x),className:(D=x.className)==null?void 0:D.call(x),ellipsisTruncate:(K=x.ellipsisTruncate)==null?void 0:K.call(x),isOverlay:(z=x.isOverlay)==null?void 0:z.call(x),linkInheritColor:(y=x.linkInheritColor)==null?void 0:y.call(x),noEndpoints:(c=x.noEndpoints)==null?void 0:c.call(x),noStyleRuns:(W=x.noStyleRuns)==null?void 0:W.call(x),noLinkColor:(e=x.noLinkColor)==null?void 0:e.call(x),
noPreWrap:(Q=x.noPreWrap)==null?void 0:Q.call(x),noWrap:(p=x.noWrap)==null?void 0:p.call(x),skipOnClick:(V=x.skipOnClick)==null?void 0:V.call(x),stopPropagation:(L=x.stopPropagation)==null?void 0:L.call(x),userInput:(r=x.userInput)==null?void 0:r.call(x),headerRuns:(H=x.headerRuns)==null?void 0:H.call(x)}}};
O_n=function(x){return x.value===""||x.value==="true"?!0:x.value==="false"?!1:isNaN(Number(x.value))?x.value:Number(x.value)};
Jn=function(x,G){x=new XBD(x,G);_.I4(x);throw x;};
AfE=function(x,G,D){var K=dS$(x);x._numRenders=0;try{var z=MsV(function(){return _.M(G,Object.assign({},D))})}catch(c){var y=function(W){W.args||(W.args=[]);
W.args.push("Error in web component wrapper");W.args.push(x.tagName.toLowerCase());return W};
_.jm(c instanceof Error?y(c):new XBD("Wiz rendering error",x.tagName.toLowerCase()));throw c;}finally{dS$(K)}return z};
_.tn=function(x,G,D){function K(p){var V={};p=_.l(p);for(var L=p.next();!L.done;L=p.next()){L=L.value;var r=void 0,H=void 0,O=void 0,A=_.eq((O=(H=(r=L).getAttribute)==null?void 0:H.call(r,"slot"))!=null?O:"children");if(r=V[A])r.push(L);else if(A in y||A==="children")V[A]=[L]}p=_.l(Object.keys(V));A=p.next();for(L={};!A.done;L={content$jscomp$55:void 0},A=p.next())A=A.value,A!=="children"&&(L.content$jscomp$55=V[A],V[A]=function(g){return function(){return g.content$jscomp$55}}(L));
return V}
D=D===void 0?{}:D;x.componentType!==sX||Jn("Components must be marked reactive to be used from web component wrapper.",G);EY.has(G)&&Jn("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",G);var z,y=(z=D.props)!=null?z:{};ho.add(G);var c=UoL();z=function(){var p=c.apply(this,arguments)||this;p.rawProps={};p.queuingRender=!1;p.dispose=function(){};
p.isWebComponentWrapper=!0;p.isReparenting=!1;p.hasRendered=!1;return p};
_.m(z,c);z.prototype.render=function(){this.hasRendered=!0;for(var p=_.l([].concat(_.B5(this.attributes))),V=p.next();!V.done;V=p.next())V=V.value,V.name!=="slot"&&this.removeAttribute(V.name);p=Object.assign({},this.componentProps,this.slotProps);V=_.l(AfE(this,x,p));p=V.next().value;V=V.next().value;!(p[0]instanceof Element)||p.length>1?Jn("Wrapped Wiz components must return a single root element.",G):(p=p[0].tagName.toLowerCase(),p!==G&&Jn("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(p+" !== '"+G),G),this.dispose=V)};
z.prototype.setUpProps=function(){for(var p=this.rawProps,V=this.attributes,L=_.l(Object.keys(y)),r=L.next();!r.done;r=L.next()){r=r.value;var H=void 0;((H=this)==null?0:H[r])&&this[r]!==RkL&&p[r]===void 0&&(p[r]=this[r],(H=Object.getOwnPropertyDescriptor(this.constructor.prototype,r))&&Object.defineProperty(this,r,H))}L=_.l(V);for(r=L.next();!r.done;r=L.next()){H=r.value;r=_.eq(H.name);var O=r==="class"&&!V.getNamedItem("class-name");if(r in y||O)H=O_n(H),r!=="class"||p.className?p[r]=H:p.className=
H}V={};for(var A in y)y[A]!==_.fz&&y[A]!==S8L&&(p[A]instanceof Function&&Jn("Function props must be configured as STATIC, not SIGNAL.",G),r=_.l(_.eO(p[A],void 0,"Ri8MSe")),L=r.next().value,r=r.next().value,V[A]=r,p[A]=L);p=_.l([p,V]);this.componentProps=p.next().value;this.setters=p.next().value;this.slotProps=K(this.childNodes)};
z.prototype.connectedCallback=function(){kr===G&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in y&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
z.prototype.disconnectedCallback=function(){if(!this._isInert){var p;a:{if(_.njf)for(p=this;p;){if(_.i_d.has(p)){p=!0;break a}p=p.parentElement}p=!1}if(p)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){p=_.l([].concat(_.B5(this.attributes)));for(var V=p.next();!V.done;V=p.next())V=V.value,V.name!=="slot"&&this.removeAttribute(V.name)}this.innerText="";Sbf(this)}}};
z.prototype._setPendingPropertyOrPath=function(){};
z.prototype.notifyPath=function(){};
_.Nq.Object.defineProperties(z.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var W=_.l(Object.keys(y)),e=W.next(),Q={};!e.done;Q={prop$jscomp$104:void 0},e=W.next())Q.prop$jscomp$104=e.value,e=void 0,((e=D.legacyPolymer)==null?0:e.forwardHostProps)&&jqL.has(Q.prop$jscomp$104)||Object.defineProperty(z.prototype,Q.prop$jscomp$104,{set:function(p){return function(V){var L=this;this._isInert||(this.setters?b1(function(){var r,H;return void((H=(r=L.setters)[p.prop$jscomp$104])==null?void 0:H.call(r,V))}):(this.rawProps[p.prop$jscomp$104]=V,this.queuingRender&&p.prop$jscomp$104===
"data"&&V!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(Q),
get:gjf.has(Q.prop$jscomp$104)?void 0:function(){return RkL}});
customElements.define(G,z)};
_.uA$=function(x,G){return(x=_.k$(x,G))?_.ZB(_.V$(x)):null};
_.Ph=function(x){if(x=_.k$(x,Number.MAX_VALUE,void 0,"width"))return _.V$(x)};
_.k$=function(x,G,D,K){K=K===void 0?"width":K;if(!x||!x.length)return null;if(_.B("kevlar_tuner_should_always_use_device_pixel_ratio")){var z=window.devicePixelRatio;_.B("kevlar_tuner_should_clamp_device_pixel_ratio")?z=Math.min(z,_.Gz("kevlar_tuner_clamp_device_pixel_ratio")):_.B("kevlar_tuner_should_use_thumbnail_factor")&&(z=_.Gz("kevlar_tuner_thumbnail_factor"));dod=z}else dod||(dod=window.devicePixelRatio);z=dod;_.B("kevlar_tuner_should_always_use_device_pixel_ratio")?G*=z:z>1&&(G*=z);if(_.B("kevlar_tuner_min_thumbnail_quality"))return x[0].url||
null;z=x.length;if(_.B("kevlar_tuner_max_thumbnail_quality"))return x[z-1].url||null;if(D)for(var y=0;y<z;y++)if(x[y].url.indexOf(D)>=0)return x[y].url||null;for(D=0;D<z;D++)if(x[D][K]>=G)return x[D].url||null;for(G=z-1;G>0;G--)if(x[G][K])return x[G].url||null;return x[0].url||null};
NJQ=function(){EI.size?setTimeout(function(){hn(wBO)},0):q8V=0};
wBO=function(){var x=(0,_.kK)(),G=null,D=!1;EI.forEach(function(z){z.loaded=!0;z.loadTime=x;z.pendingPaint=!1;var y=vjD.get(z);y&&y.resolve(x);G=z;D||!z.ftlEligible&&z.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(D=!0)});
var K;((K=G)==null?0:K.markDirty)&&G.markDirty();EI.clear();q8V=0;D&&Jfd(x)};
fMf=function(x){EI.add(x);x.pendingPaint=!0;q8V||(q8V=_.x7(_.Fj,NJQ))};
tWD=function(x){x.loaded=!1;x.loadTime=Infinity;var G=vjD.get(x);G&&(G.reject(Error("ih")),vjD.delete(x));x.pendingPaint&&(EI.delete(x),x.pendingPaint=!1)};
_.kqP=function(x){var G=x.indexOf(":");return G===-1?{originalName:x}:{originalName:x.substring(0,G),datasyncId:x.substring(G+1)}};
_.EjL=function(){return _.T(function(x){if(PE$!==void 0)return x.return(PE$);PE$=new Promise(function(G){var D;return _.T(function(K){switch(K.nextAddress){case 1:return _.Kl(K,2),_.Z(K,_.GY.open("test-only"),4);case 4:return _.Z(K,_.GY.delete("test-only"),5);case 5:_.iI(K,3);break;case 2:if(D=_.lX(K),D instanceof Error&&D.name==="SecurityError")return G(!1),K.return();case 3:G("caches"in window),_.c5(K)}})});
return x.return(PE$)})};
GVL=function(){return _.T(function(x){if(x.nextAddress==1)return _.Z(x,_.EjL(),2);if(!x.yieldResult)return x.return(void 0);hkC||(hkC=new xIL);return x.return(hkC)})};
DIf=function(x){var G,D,K,z;return _.T(function(y){switch(y.nextAddress){case 1:return _.Z(y,GVL(),2);case 2:G=y.yieldResult;if(!G)throw Error("kh");return _.Z(y,G.open("yt-player-local-img"),3);case 3:return D=y.yieldResult,_.Z(y,D.match(x),4);case 4:K=y.yieldResult;if(!K)throw Error("lh");return _.Z(y,K.blob(),5);case 5:return z=y.yieldResult,y.return(z)}})};
Kmf=function(x,G){for(var D in x)if(x.hasOwnProperty(D)&&G[D])return D;return null};
zhQ=function(x){return"stamp"+x.replace("-","_")+"_"};
adf=function(x){var G=x.match(/\[\[([\w\.]+)\]\]/);if(G&&G.length>1)return G[1];_.I4(Error("nh`"+x));return null};
ofE=function(x){return x===void 0?_.Uo("REUSE_COMPONENTS",!1):x||!1};
cCE=function(x,G,D){D&&(G.is?(yCh.has(G)&&(x=yCh.get(G),D=x.listener,delete G[x.property],D.type==="element"&&G.removeEventListener(D.eventName,D.handler),yCh.delete(G)),ldd(G)):G.__proto__==HTMLElement.prototype&&(G=new _.LL("Rendererstamper removed a non custom element","Stamper: "+x+" element: "+(G&&G.nodeName)),_.O9(G)))};
T7d=function(x,G,D,K){var z=G.node?G.node:G;_.kA(D).parentNode===z&&(G.removeChild(D),cCE(x,D,K));if(x=DX.get(D))DX.delete(D),_.Fj.cancelJob(x);D.hidden=!1};
WmE=function(x,G,D,K){if(G&&G.children&&(D=G.children[D]))if(_.Uo("DEFERRED_DETACH"))for(;D&&!DX.has(D);){var z=x,y=G,c=D,W=K;c.hidden=!0;z=_.Bw(_.Fj,T7d.bind(null,z,y,c,W),0);DX.set(c,z);D=D.nextElementSibling}else for(;(c=G.lastElementChild)&&(G.removeChild(c),cCE(x,c,K),c!=D););};
ehL=function(x){var G=_.qi();_.FQ(function(){for(var D=_.l(x.slotContent),K=D.next();!K.done;K=D.next())G.value.appendChild(K.value)});
return _.M("__slot-el",{el:G,skip:!0})};
_.KH=function(x,G,D){D=D===void 0?Z8f:D;EY.add(G);var K;(K=D).propNames!=null||(K.propNames=[]);var z=new Set(D.propNames),y=UoL();K=function(){var Q=y.call(this)||this;Q.props={};Q.isUpdating=!1;Q.hasAttached=!1;Q.isInert=!1;Q.updateQueued=!1;Q.initialClasses=[];uoL(Q,G);return Q};
_.m(K,y);K.prototype.forwardKebabCaseProp=function(Q,p){Q=_.eq(Q);if(z.has(Q)||Q==="children")this.props[Q]=p};
K.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var Q=_.l(this.initialClasses),p=Q.next();!p.done;p=Q.next())(p=p.value)&&this.classList.add(p);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
K.prototype.handleSlottedContent=function(){for(var Q=new Map,p=_.l(this.children),V=p.next();!V.done;V=p.next()){V=V.value;var L=void 0,r=(L=V.getAttribute("slot"))!=null?L:"children";(L=Q.get(r))?L.push(V):Q.set(r,[V]);if(!V.getAttribute("key")){var H=void 0,O=void 0;V.setAttribute("key",r+"_"+((O=(H=L)==null?void 0:H.length)!=null?O:0))}}Q=_.l(Q);for(p=Q.next();!p.done;p=Q.next())V=_.l(p.value),p=V.next().value,V=V.next().value,this.forwardKebabCaseProp(p,_.M(ehL,{slotContent:V}))};
K.prototype.connectedCallback=function(){var Q=this;if(!uoL(this,G)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var p=_.l(this.attributes),V=p.next();!V.done;V=p.next())V=V.value,this.forwardKebabCaseProp(V.name,O_n(V));this.handleSlottedContent();D.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){Q.afterFirstPatch()});
this.hasAttached=!0}};
K.prototype.attributeChangedCallback=function(Q,p,V){this.isInert||this.isUpdating||this.isConnected||Q!=="class"||this.initialClasses.push.apply(this.initialClasses,_.B5(V.split(" ")))};
K.prototype.disconnectedCallback=function(){S9d(this)};
K.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var Q,p;fJf(this,_.M(x,Object.assign({},this.props,{idomKey:(p=(Q=this.__incrementalDOMData)==null?void 0:Q.key)!=null?p:G})),!0)}catch(L){var V=L instanceof Error?L:new _.LL("Wiz rendering error");V.args||(V.args=[]);V.args.push("Error in deprecated web component wrapper");V.args.push(G.toLowerCase());_.I4(V);throw L;}finally{this.updateQueued=this.isUpdating=!1}}};
K.prototype.enqueueUpdate=function(){var Q=this;return _.T(function(p){if(D.synchronous)return Q.update(),p.return();if(Q.updateQueued)return p.return();Q.updateQueued=!0;return p.return(Promise.resolve().then(function(){Q.update()}))})};
K.prototype.notifyPath=function(){D.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.Nq.Object.defineProperties(K,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var c=_.l(D.propNames),W=c.next(),e={};!W.done;e={prop$jscomp$106:void 0},W=c.next())e.prop$jscomp$106=W.value,Object.defineProperty(K.prototype,e.prop$jscomp$106,{set:function(Q){return function(p){this.isInert||p===this.props[Q.prop$jscomp$106]||(this.props[Q.prop$jscomp$106]=p,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(e)});
customElements.define(G,K)};
_.MvE=function(x,G){return _.zm(x.entities,"markersEngagementPanelSyncEntity",G)};
Qu3=function(x,G){return _.zm(x.entities,"fantasyWinProbabilityEntity",G)};
pcn=function(x,G){return _.zm(x.entities,"fantasyTeamEntity",G)};
Vv$=function(x,G){return _.zm(x.entities,"fantasyPlayerEntity",G)};
b8d=function(x,G){return _.zm(x.entities,"booleanEntity",G)};
LmP=function(x,G){return _.zm(x.entities,"qrCodeEntity",G)};
B7d=function(x){return _.zm(x.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
rCE=function(){if(zY)return zY;if(window.lottie)return zY=Promise.resolve(window.lottie);var x=_.CU(_.Am("LOTTIE_URL"));return x?zY=new Promise(function(G,D){var K=document.createElement("script");K.addEventListener("load",function(){G(lottie)});
K.addEventListener("error",function(z){var y="Lottie library failed to load.";z?z.message&&(y+=" Original description: "+z.message,_.Xv(z,y)):z=Error(y);_.O9(z);D(z)});
K.setAttribute("async","");_.Sr(K,x);document.head.appendChild(K)}):Promise.reject(Error("oh"))};
suV=function(){return zY?zY:rCE()};
YQ3=function(x){if(x)switch(x){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.B("kevlar_use_wil_icons"))return x=(x=B7d(_.wK().getState()))&&x.animationLightUrl&&x.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:x.animationLightUrl,pathDarkTheme:x.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:60,lazyLoad:!0}:void 0,x?x:al.get("LIKE")}};
mId=function(x){var G=YQ3(x);if(G)return G;switch(x){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return al.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return al.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return al.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return al.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return al.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return al.get("NOTIFICATION_BELL")}};
$IP=function(x,G){if(!x||H8n)G=!1;else{if(x.closest){var D=!!YQ3(G);D=_.Am("ID_TOKEN")&&D?!!x.closest("segmented-like-dislike-button-view-model"):!1}else D=!1;if(!D)if(x.closest)if(D=!_.Am("ID_TOKEN"),x=x.closest("ytd-subscription-notification-toggle-button-renderer-next"),D||!x)D=!1;else{var K;D=((K=x.data)==null?void 0:K.targetId)==="notification-bell"&&G!=="EXPAND_MORE"}else D=!1;G=D}return G};
FmE=function(x){var G,D;return _.T(function(K){switch(K.nextAddress){case 1:return _.Kl(K,2),_.Z(K,fetch(x),4);case 4:return G=K.yieldResult,_.Z(K,G.json(),5);case 5:return K.return(K.yieldResult);case 2:D=_.lX(K),_.O9(D),_.c5(K)}})};
C8d=function(x,G){var D,K,z;return _.T(function(y){if(y.nextAddress==1)return(D=G?x.pathDarkTheme:x.path)?_.Z(y,Promise.all([FmE(D),rCE()]),2):y.return();K=y.yieldResult;z=K[0];ol.set(D,z);_.c5(y)})};
_.ym=function(){var x=_.rC.apply(0,arguments);return function(){for(var G="",D=_.l(x),K=D.next();!K.done;K=D.next())if(K=K.value,typeof K==="function"&&(K=K()),K)if(typeof K==="string")G+=" "+K;else for(var z in K)if(K.hasOwnProperty(z)){var y=K[z];typeof y==="function"&&(y=y());y&&(G+=" "+z)}G=G.trim()||void 0;return _.If(G)}};
_.l_=function(x){var G;var D=x.data;var K=x.className;var z=x.animationName;var y=x.animationRef;var c=(G=x.elRefForInterop)||_.qi(),W;_.Fq(function(){var p;return void((p=W)==null?void 0:p.destroy())});
var e;_.$9(function(){var p=_.If(z);if(p!==e){e=p;var V=Object.assign({},{animationName:p,animationRef:_.If(y)},_.If(D));try{_.Eo().resolve(IdC)().then(function(H){var O;(O=W)==null||O.destroy();O=V.animationRef;var A=V.listeners;H=H.loadAnimation(Object.assign({},{container:c.value},V.animationConfig));O&&(O.lottieEl=H);if(A)for(O=_.l(Object.entries(A)),A=O.next();!A.done;A=O.next()){var g=_.l(A.value);A=g.next().value;(g=g.next().value)&&H.addEventListener(A,g)}W=H})}catch(H){p=H;
var L="LottieComponent error.";p.message&&(L+=" Original description: "+p.message);_.Xv(p,L);_.O9(p);var r;((r=V.listeners)==null?0:r.error)&&V.listeners.error(p)}}});
var Q=_.ym("ytLottieComponentHost",K);return _.M(wwE,{cond:function(){return!G},
then:function(){return _.M("lottie-component",{class:Q,el:c})}})};
O8P=function(x,G,D,K){function z(c,W){if(G.value===W&&x!=null&&x.value){for(;x.value.firstChild;)x.value.removeChild(x.value.firstChild);x.value.classList.add("yt-spec-icon-shape");c(x.value,K)}}
D=_.juE(_.Eo().resolve(_.oP),D);if(typeof D==="function")G.value=null,z(D,null);else{var y=new _.T1(D.then,D);G.value=y;y.then(function(c){z(c,y)})}};
ACf=function(x,G){var D=document.createElement("div"),K=_.mS(D,function(){return _.M(_.b,{cond:x,then:function(z){return _.M(XcP,{data:z,options:G})}})});
return[D,K]};
_.cH=function(){for(var x=[],G=_.l(_.rC.apply(0,arguments)),D=G.next();!D.done;D=G.next())if(D=D.value)if(typeof D==="string")x.push(D);else{D=_.l(Object.entries(D));for(var K=D.next();!K.done;K=D.next()){var z=_.l(K.value);K=z.next().value;(z=z.next().value)&&x.push(K)}}return x.join(" ")};
nfO=function(x){var G=_.qi(),D=IE(),K=qp(x.character)||qp(x.previousCharacter);DqV(function(){if(x.marginMultiplier){var z;(z=D.value)==null||z.cancel();K?(z=x.previousCharacter?Number(x.previousCharacter)+10:x.rollUp?0:30,x.shouldAnimate||(z-=UIL(x,z))):(z=x.rollUp?0:2,x.shouldAnimate||(z-=x.rollUp?-1:1));G.value.style.marginTop="-"+z*x.marginMultiplier+"px";x.shouldAnimate?D.value=RhP(G.value,x,z,K):G.value.style.display=x.character?"":"none"}});
return _.M("animated-rolling-character",{el:G,class:"animated-rolling-character-wiz"},ka(K,function(){for(var z=[],y=1;y<30;y++)z.push(_.M("div",null,y%10));return _.M(_.xT,null,_.M("div",null,"\u00a0"),z,_.M("div",null,"\u00a0"))},function(){return SQP(x.character)}))};
SQP=function(x){return _.M(_.xT,null,_.M("div",null,"\u00a0"),_.M(_.xT,null,ka(!x||_.y3(x),function(){return _.M("div",null,"\u00a0")},function(){return _.M("div",null,x)})),_.M("div",null,"\u00a0"))};
RhP=function(x,G,D,K){D=new Animation(new KeyframeEffect(x,[{transform:"translateY(0px)"},{transform:"translateY("+(K?UIL(G,D):G.rollUp?-1:1)*G.marginMultiplier+"px)"}],i8f),document.timeline);G.character?(x.style.display="",D.onfinish=null):D.onfinish=function(){x.style.display="none"};
D.play();return D};
UIL=function(x,G){var D=Number(x.character)+10;if(x.previousCharacter)if(x.character){var K=Number(x.character),z=Number(x.previousCharacter);x=x.rollUp?z<K?D:D+10:z<K?D-10:D}else x=x.rollUp?30:0;else x=x.character==="0"?D:x.rollUp?D-10:D+10;return G-x};
_.TY=function(x,G){return function(D){var K={},z;for(z in D){var y=void 0,c=void 0;((y=G)==null?0:(c=y.callbacks)==null?0:c[z])||(K[z]=D[z])}return _.M(ZHd,null,function(){for(var W in K)D[W]=_.If(K[W]);D.disableReactiveLogging=!0;return _.M(x,Object.assign({},D))})}};
dIO=function(x,G,D,K,z,y,c){D=new Animation(new KeyframeEffect(x,[{transform:"translateY(0px)"},{transform:"translateY("+(y?gfL(G,D,K,z):K?-1:1)*c+"px)"}],ueV),document.timeline);G?(x.style.display="",D.onfinish=null):D.onfinish=function(){x.style.display="none"};
D.play();return D};
gfL=function(x,G,D,K){var z=Number(x)+10;G?x?(x=Number(x),G=Number(G),D=D?G<x?z:z+10:G<x?z-10:z):D=D?30:0:D=x==="0"?z:D?z-10:z+10;return K-D};
qQ3=function(x){var G=IE(),D=IE();$T(function(){G.value=x.numberText;D.value=x.numberValue},[x.numberText]);
var K=x.fontSizeMultiplier?x.heightPx*x.fontSizeMultiplier:x.heightPx,z=yUd(function(){if(x.numberText){var c=x.numberText;var W=x.forceRollUp||!D.value||!x.numberValue||D.value<x.numberValue;var e=!!x.shouldAnimate,Q=G.value,p=[],V=0,L=0,r=(Q?Q.replace(/\D/g,"").length:0)-(c?c.replace(/\D/g,"").length:0);Q=Q?Q.split(/(\d)/).filter(Boolean):[];for(c=c.split(/(\d)/).filter(Boolean);r<0;){var H=c[L];p.push({character:H,rollUp:W,marginMultiplier:K,shouldAnimate:e});L++;qp(H)&&r++}for(;V<r;)H=Q[V],p.push({previousCharacter:H,
rollUp:W,marginMultiplier:K,shouldAnimate:e}),V++,qp(H)||r++;for(;L<c.length;)r=c[L],H=Q[V],qp(r)===qp(H)?(L++,V++):qp(r)?(V++,r=void 0):qp(H)&&(L++,H=void 0),p.push({character:r,previousCharacter:H,rollUp:W,marginMultiplier:K,shouldAnimate:e});W=p}else W=[];return W},[x.numberText]),y=x.numberText?["height: "+K+"px;",
"line-height: "+x.heightPx+"px;"].join(" "):"";return _.M("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:y,dir:"ltr","aria-hidden":"true"},z.map(function(c){return _.M(wcV,Object.assign({},c))}))};
_.WH=function(x){return qID(function(G){G=x==null?void 0:x(G);return typeof G==="boolean"?G:!0})};
es=function(x){return function(){return x()?x():void 0}};
N7E=function(x){return new KeyframeEffect(x,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
vf$=function(x){return new KeyframeEffect(x,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.ZX=function(x){var G=vh(function(D){D=D?Wl(D[0]):void 0;return _.eO(x(D),void 0,"AwTxXe")},{isEqual:function(D,K){return Wl(D[0])===Wl(K[0])}});
return[function(){return G()[0]()},
function(D){return void G()[1](D)}]};
_.Ms=function(x){return function(){var G="",D;for(D in x){for(var K=x[D];typeof K==="function";)K=K();K!==void 0&&K!==null&&(G+="; "+D+": "+K)}return G.length>0?_.If(G.slice(2)):_.If()}};
JCh=function(x){switch(x){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"}};
P8D=function(x,G,D,K,z,y){var c=fdd(x),W=c.disabled,e=c.iconPosition,Q=c.style,p=c.focused,V=function(){return!!H()&&e()==="icon-only"},L=function(){return!!H()&&e()==="icon-only-40"},r=function(){return!!H()&&e()==="icon-with-label"},H=function(){return!!G||!(K==null||!K())};
return{type:function(){return Q()==="call-to-action-inverse"?"text":Q()==="overlay-dark"&&x().type!=="filled"&&x().type!=="tonal"?"tonal":x().type},
shouldFocus:function(){return(p()||(y==null?void 0:y()))&&!W()},
hasIconLeading:function(){return!!H()&&e()==="leading"},
hasIconTrailing:function(){return!!H()&&e()==="trailing"},
hasIconLeadingTrailing:function(){return!!H()&&!!(D||z!=null&&z())&&e()==="leading-trailing"},
hasIconOnly:V,hasIconOnly40:L,hasIconWithLabel:r,iconButton:function(){return V()||L()||r()},
visiblyDisabled:function(){return(W()?"disabled":x().state)==="disabled"||W()},
overrideSmallSizeIcon:function(){return tvQ(x(),H())},
iconToRender:G?G:function(){return _.M(_.Qm,{icon:K,size:function(){return pH(x(),!0)},
active:function(){return x().toggled},
iconFilter:function(){return kVh(x())}})},
secondaryIconToRender:D?D:function(){return _.M(_.Qm,{icon:z,size:function(){return pH(x(),!0)},
active:function(){return x().toggled},
iconFilter:function(){return kVh(x())}})}}};
fdd=function(x){return{size:function(){return x().size},
style:function(){return x().style},
focused:function(){return x().focused},
disabled:function(){return x().disabled},
onTap:function(G){var D,K;return(K=(D=x()).onTap)==null?void 0:K.call(D,G)},
alignByText:function(){return x().alignByText},
aTagConfig:function(){return x().aTagConfig},
customColors:function(){return x().customColors},
segmentedPosition:function(){return x().segmentedPosition},
toggled:function(){return x().toggled},
toggleable:function(){return x().toggleable},
accessibilityLabel:function(){return x().accessibilityLabel},
onToggle:function(G){var D,K;return(K=(D=x()).onToggle)==null?void 0:K.call(D,G)},
iconPosition:function(){return x().iconPosition},
oneOffCustomTextWrap:function(){return x().oneOffCustomTextWrap},
disableTextEllipsis:function(){return x().disableTextEllipsis},
disableBackdropFilter:function(){return x().disableBackdropFilter},
tooltipText:function(){return x().tooltipText},
ariaHidden:function(){return x().ariaHidden},
tabIndex:function(){return x().tabIndex},
buttonText:function(){return x().buttonText},
formattedButtonText:function(){return x().formattedButtonText},
animatedTextProps:function(){return x().animatedTextProps}}};
EfD=function(x){return x.style==="overlay-dark"?4:x.style==="overlay"?x.type==="filled"?4:3:x.type==="filled"||x.style==="call-to-action-inverse"||x.style==="mono-inverse"?2:1};
tvQ=function(x,G){G=(x.iconPosition==="icon-only"||x.iconPosition==="icon-only-40"||x.iconPosition==="icon-with-label")&&G;return!x.segmentedPosition&&G&&x.size==="S"};
hhd=function(){return!_.B("web_disable_backdrop_filter")};
pH=function(x,G){switch(x.size){case "XS":return 16;case "S":return tvQ(x,G)?24:16;default:return 24}};
xr$=function(x){switch(x){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"}};
GJL=function(x){switch(x){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"}};
DrL=function(x){switch(x){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"}};
kVh=function(x){if(x.style==="overlay-dark"&&x.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
Kch=function(x){if(!x)return{};var G=x.color,D=x.backgroundColor;x=x.borderColor;var K="";G&&(K+="color: "+G+";");D&&(K+="background-color: "+D+";");x&&(K+="border-color: "+x+";");return{style:K}};
lRV=function(x,G,D){var K=x.buttonText,z=x.formattedButtonText,y=x.formattedButtonTextLegacy,c=x.animatedTextProps,W=x.style,e=x.size,Q=x.focused,p=x.disabled,V=x.onTap,L=x.alignByText,r=x.aTagConfig,H=x.customColors,O=x.segmentedPosition,A=x.toggled,g=x.toggleable,u=x.accessibilityLabel,f=x.onToggle,v=x.iconPosition,P=x.oneOffCustomTextWrap,k=x.disableTextEllipsis,cL=x.disableBackdropFilter,bO=x.tooltipText,mE=x.ariaHidden,jf=x.tabIndex,$C=x.state,OD=x.type;W==="call-to-action-inverse"&&(OD="text");
W==="overlay-dark"&&OD!=="filled"&&OD!=="tonal"&&(OD="tonal");var wn=!!G&&v==="leading",n$=!!G&&v==="trailing",Fi=!!G&&!!D&&v==="leading-trailing",pf=!!G&&v==="icon-only",UE=!!G&&v==="icon-only-40",M0=!!G&&v==="icon-with-label",cs=pf||UE||M0;p&&($C="disabled");var G8=$C==="disabled"||p;$C=tvQ(x,!!G);var T7={},Wd=(T7["yt-spec-button-shape-next"]=!0,T7[xr$(OD)]=!0,T7[GJL(W)]=!G8,T7["yt-spec-button-shape-next--disabled"]=!!G8,T7[DrL(e)]=!0,T7["yt-spec-button-shape-next--focused"]=!!Q&&!p,T7["yt-spec-button-shape-next--icon-trailing"]=
n$,T7["yt-spec-button-shape-next--icon-leading"]=wn,T7["yt-spec-button-shape-next--icon-leading-trailing"]=Fi,T7["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=Fi&&!(K||z),T7["yt-spec-button-shape-next--icon-button"]=pf||M0,T7["yt-spec-button-shape-next--icon-only-default"]=UE,T7["yt-spec-button-shape-next--align-by-text"]=!!L,T7["yt-spec-button-shape-next--segmented-start"]=O==="start",T7["yt-spec-button-shape-next--segmented-end"]=O==="end",T7["yt-spec-button-shape-next--override-small-size-icon"]=
$C,T7["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!P,T7["yt-spec-button-shape-next--disable-text-ellipsis"]=!!k,T7["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!cL&&hhd(),T7),Fc=function(){if(c)ek$(_.zWf)(c);else if(y)y(v==="icon-with-label"||P?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(z){var fu=v==="icon-with-label"||P;$o$(Object.assign({},z,fu?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:
{}),{noLinkColor:!0,noWrap:!fu})}else K&&Pl(K)},lO=function(fu){V==null||V(fu);
g&&(f==null||f(fu))},Bs=r?aRE:o3d,Xi=r?"aria-current$":"aria-pressed$",uC=function(){G&&(wn||Fi||cs)&&function(){Vm({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){G()})}();
(K||z||y||c)&&!cs&&function(){Vm({className:"yt-spec-button-shape-next__button-text-content"},function(){Fc()})}();
n$&&function(){Vm({className:"yt-spec-button-shape-next__icon"},function(){G()})}();
Fi&&function(){Vm({className:"yt-spec-button-shape-next__secondary-icon"},function(){D()})}();
p||ek$(_.b_)({model:{color:EfD(x)}})},Y8=function(){var fu={};
Bs(Object.assign({},(fu.className=_.cH(Wd),fu.onclick=r?void 0:lO,fu.disabled=p,fu["aria-disabled$"]=G8,fu.style=p&&r?"pointer-events:none":void 0,fu[Xi]=g?!!A:void 0,fu["aria-label$"]=u,fu.title$=bO!=null?bO:"",fu["aria-hidden$"]=mE,fu.tabindex$=jf,fu),r,Kch(H)),function(){uC()})};
M0?(e={},W=(e["yt-spec-button-shape-with-label"]=!0,e["yt-spec-button-shape-with-label--is-overlay"]=W==="overlay"||W==="overlay-dark",e),yIn({className:_.cH(W)},function(){Y8();Vm({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},Fc)})):Y8()};
cI3=function(x,G){if(!PZ){var D;oWC(function(){return D=WjL(x,G)});
return D}return WjL(x,G)};
ToQ=function(){var x=mhD(PZ||void 0,lXn);return YoV(x)?void 0:x};
LH=function(x,G){_.OI(x,Object.assign({},G,{forceClickLogging:!0}))};
Wcn=function(x,G,D,K){var z=void 0;return function(y){var c=_.jn(D?x==null?void 0:x.onDisabledTap:x==null?void 0:x.onTap);if(c){var W;z=(W=z)!=null?W:G==null?void 0:G.value;if(c)if(_.B("web_button_vm_click_client_ve_killswitch"))LH(c,Object.assign({},{form:{element:z,event:y}},void 0));else{var e;W=c==null?void 0:c.clickTrackingParams;var Q,p=x==null?void 0:(e=x.loggingDirectives)==null?void 0:(Q=e.clientVeSpec)==null?void 0:Q.uiType;e=p&&!W?_.BH(p):void 0;LH(c,Object.assign({},{form:{element:z,event:y}},
{clickedVisualElement:e}))}}K&&K(y)}};
eWD=function(x){switch(x){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"}};
ZGL=function(x){switch(x){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"}};
MFO=function(x){switch(x){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"}};
QRP=function(x){switch(x){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"}};
pvL=function(x,G){return _.zm(x.entities,"engagementToolbarStateEntityPayload",G)};
bGV=function(x){(x=_.V2(x))&&_.VFE(x)};
_.VFE=function(x){var G=_.CC();G&&_.nW(G,x)};
Lc$=function(x,G,D){_.xO(x,"yt-open-popup-action",[G,D||x])};
Bo$=function(x,G){var D=_.jR(x,"endpoint"),K=_.jR(x,"action");return(D=K?K:D)&&G&&(D=G.navigationEndpointPopupMap[D])&&(x=_.nT(D,x),(D=_.jR(x,"renderer"))&&G.supportedPopups.hasOwnProperty(D))?{openPopupAction:{popupType:G.popupTypeMap[D],popup:x}}:null};
rIf=function(x,G,D,K){if(K){var z;D=D==null?void 0:(z=D.data)==null?void 0:z.contents;(z=D instanceof Array&&D.length?D[0]:D)&&(D=_.jR(z,"renderer"))&&K.supportedPopups.hasOwnProperty(D)&&(G.stopPropagation(),Lc$(x,{openPopupAction:{popupType:K.popupTypeMap[D],popup:z}}))}};
mr3=function(x,G,D,K){K=K===void 0?!1:K;var z=sRf(G);if(z){z.href&&AS(z.href);var y=G.button;y=y!==void 0?y===0&&!rG(G):!rG(G);z.data&&y&&YMO(x,z,G,D,K)}};
YMO=function(x,G,D,K,z){z=z===void 0?!1:z;var y=_.Gz("pbj_navigate_limit",-1)===0;HG$(G);_.Eo().resolve(_.P6(nE));var c=G.data;if(Object.keys(c).length!==0)if(!_.B("unplugged_web_disable_actions_for_cec_endpoint")&&_.Y(c,_.oI))_.B("endpoint_behavior_command_executor_fix_killswitch")||(D.preventDefault(),D.stopPropagation()),_.zl(x,[c],x);else if(K=Bo$(c,K))c.loggingUrls&&c.loggingUrls.forEach(function(e){e.baseUrl&&_.ip(e.baseUrl)}),D.preventDefault(),D.stopPropagation(),Lc$(x,K,G);
else{var W=$rP(0,G.data,D);if(x=G.getForm)x=x(),W.tempData=W.tempData||{},W.tempData=Object.assign({},W.tempData,x);x=_.gA(D);if(K=x.find(function(e){return!!e.visualElement}))W.createScreenConfig=W.createScreenConfig||{},W.createScreenConfig.clickedVisualElement=K.visualElement;
if(!y)if(D.preventDefault(),D.stopPropagation(),_.Y(c,_.Fcd)&&!z&&_.y2.instance)_.y2.instance.resolveCommand(c,W);else if(_.B("kevlar_command_handler_formatted_string")&&!z&&_.y2.instance&&CTD(c))z=x.find(function(e){return!!e.is})||D.target,D={form:Object.assign({},W,{event:D,
element:z,originatingNode:G})},_.y2.instance.resolveCommand(c,D);else{c=_.gA(D);D=[];for(z=0;z<c.length;z++)(y=c[z].is)&&D.push(y);Fwf({parents:D.join(","),text:G.innerText},function(){_.h$(G,"yt-navigate",W)})}}};
IRf=function(x){if(x=sRf(x))HG$(x),zKd(x.href)};
sRf=function(x){x=_.gA(x);for(var G,D=0;D<x.length;D++)if(G=x[D],G.tagName==="A"&&G.classList.contains("yt-simple-endpoint")){if(!G.data)break;return G}return null};
rG=function(x){return x.shiftKey||x.altKey||x.metaKey||x.ctrlKey};
jRL=function(x,G){var D={itct:G.clickTrackingParams};_.B("kevlar_client_side_screens")&&(!_.Y(G,_.MB)||_.B("kevlar_exclude_endpoint_killswitch"))&&(D.endpoint=JSON.stringify(G));_.B("enable_unknown_lact_fix_on_html5")&&_.Eo().resolve(_.P6(_.su))&&(D.lact=_.xq());GkL(D);_.vy(x,D)};
HG$=function(x){x.href&&Object.keys(x.data).length!==0&&jRL(x.href,x.data)};
CTD=function(x){for(var G=_.l(OGO),D=G.next();!D.done;D=G.next())if(x[D.value])return!1;return!0};
_.Y7=function(x,G){if(G){var D={};XvP.forEach(function(K){K=AIP(G,K,"--yt-lightsource-");Object.assign(D,K)});
UrD.forEach(function(K){K=AIP(G,K,"--yt-basic-");Object.assign(D,K)});
_.K7(x,D)}};
AIP=function(x,G,D){var K={};K[D+_.Wy(G)]=x&&x[G]?_.jT(x[G]):"";return K};
_.HH=function(x,G,D){mj[x]||(mj[x]={});mj[x][G]=D};
_.$7=function(x){mj[x]||(mj[x]={});return mj[x]};
RWn=function(x){if(!x)return{};var G=x.foregroundTitleColor,D=x.backgroundColor;x=x.borderColor;var K="text";x?K="outline":D&&(K="filled");return{type:K,customColors:{color:G?_.jT(G):void 0,backgroundColor:D?_.jT(D):void 0,borderColor:x?_.jT(x):void 0}}};
uWn=function(x){var G=x.renderer;var D=x.element;var K=x.commandController;var z=x.onTapCallback;var y=x.skipCommandHandling;var c=x.overrides;var W=x.forceIcon;var e=x.forceModernIconButton;var Q=x.forceDisabled;var p=x.isSubscribe===void 0?!1:x.isSubscribe;var V=x.isPressed===void 0?!1:x.isPressed;var L=x.useButtonSize===void 0?!1:x.useButtonSize;x=SME(G);p&&(x.style="mono",x.type="filled");W=!G.icon||!W&&G.text?G.icon?G.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:e?"icon-only":"icon-only-40";W==="icon-only-40"&&(x.type="text");var r;e=Object;p=e.assign;L=n3C(G,L);V=!!G.isSelected||!_.B("web_propagate_is_pressed_killswitch")&&!!V;var H=G.isSelected!==void 0;Q=Q===void 0?G.isDisabled:Q;var O=G.text?_.$$(G.text):void 0;var A,g,u,f=((A=G.accessibilityData)==null?void 0:(g=A.accessibilityData)==null?void 0:g.label)||((u=G.accessibility)==null?void 0:u.label);A=f?f:_.u7(G.text);D=iG3(G,D,K,z,y);K=g3f(G);K!=null&&K.length?(K=_.XB({innertubeCommand:enQ(K),
forceNewState:!0}),K=An(K)?K:void 0):K=void 0;return p.call(e,{},x,L,{iconPosition:W},c,{focused:!1,toggled:V,toggleable:H,disabled:Q,formattedButtonText:O,accessibilityLabel:A,onTap:D,aTagConfig:K},RWn((r=G.colorData)==null?void 0:r.basicColorPaletteData),{oneOffCustomTextWrap:G.oneOffCustomTextWrap})};
iG3=function(x,G,D,K,z){return function(y){var c=g3f(x);K(c,y);if(!z){c=_.l(c);for(var W=c.next();!W.done;W=c.next())LH(W.value,{form:{element:G,event:y},commandController:D})}}};
g3f=function(x){var G=[];x.command&&G.push(x.command);x.serviceEndpoint&&G.push(x.serviceEndpoint);x.navigationEndpoint&&G.push(x.navigationEndpoint);return G};
n3C=function(x,G){if(G)switch(x.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(x.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
SME=function(x){switch(x.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"}}};
_.F8=function(x){return _.V9(function(){vdd()();return uD(x)},void 0,"Icv7j")};
CH=function(x,G){return _.zm(x.entities,"likeStatusEntity",G)};
drP=function(x,G){return _.zm(x.entities,"likeCountEntity",G)};
_.wvh=function(x,G){return _.zm(x.entities,"stringEntity",G)};
qMP=function(x,G){if(!x)return!1;var D,K=(D=_.Y(x,_.cg))==null?void 0:D.signal;if(K&&G.signalEndpointMap)return!!G.signalEndpointMap[K];var z;if((D=(z=_.Y(x,_.Il))==null?void 0:z.request)&&G.continuationEndpointMap)return!!G.continuationEndpointMap[D];for(var y in x)if(G.commandEndpointMap[y])return!0;return!1};
NoV=function(x,G){if(G.streamingEndpointMap)for(var D in x)if(G.streamingEndpointMap[D]&&(x=G.streamingEndpointMap[D]))return x()};
v3Q=function(x,G){var D,K=(D=_.Y(x,_.cg))==null?void 0:D.signal;if(K&&G.signalEndpointMap&&(D=G.signalEndpointMap[K]))return D();var z;if((D=(z=_.Y(x,_.Il))==null?void 0:z.request)&&G.continuationEndpointMap&&(z=G.continuationEndpointMap[D]))return z();for(var y in x)if(G.commandEndpointMap[y]&&(x=G.commandEndpointMap[y]))return x()};
JId=function(x){var G={"Content-Type":"application/json"};_.Am("EOM_VISITOR_DATA")?G["X-Goog-EOM-Visitor-Id"]=_.Am("EOM_VISITOR_DATA"):_.Am("VISITOR_DATA")&&(G["X-Goog-Visitor-Id"]=_.Am("VISITOR_DATA"));G["X-Youtube-Bootstrap-Logged-In"]=_.Am("LOGGED_IN",!1);_.Am("DEBUG_SETTINGS_METADATA")&&(G["X-Debug-Settings-Metadata"]=_.Am("DEBUG_SETTINGS_METADATA"));x!=="cors"&&((x=_.Am("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(G["X-Youtube-Client-Name"]=x),(x=_.Am("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(G["X-Youtube-Client-Version"]=
x),(x=_.Am("CHROME_CONNECTED_HEADER"))&&(G["X-Youtube-Chrome-Connected"]=x),(x=_.Am("DOMAIN_ADMIN_STATE"))&&(G["X-Youtube-Domain-Admin-State"]=x),_.Uo("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(x=_.Am("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(G["X-YouTube-Lava-Device-Context"]=x));return G};
fRC=function(x,G){G.watchNextResponse||G.reelItemWatchResponse?G.watchNextResponse?x.content=G.watchNextResponse:x.content=G.reelItemWatchResponse:G.playerResponse?x.player=G.playerResponse:G.reelWatchSequenceResponse&&(x.reelSequence=G.reelWatchSequenceResponse)};
_.js=function(x){if(!x)return null;for(var G=[],D=0;D<x.textSegments.length;D++){var K=x.textSegments[D];K.text?G.push(K):K.emojiId&&G.push({emoji_id:K.emojiId})}return{text_segments:G}};
hWd=function(x,G,D,K,z,y,c){y=y===void 0?[]:y;var W=new _.Ou;W.endpoint=D;if(!D)return _.jm(new _.LL("handle undefined endpoint",G.tagName)),W;var e=SIL(D);e.length&&(_.zl(x,e,G,K),W.actions=e);D.loggingUrls&&D.loggingUrls.forEach(function(p){p.baseUrl&&g$(p.baseUrl,p.attributionSrcMode)});
e=!_.B("web_skip_impression_click_killswitch")&&K&&K.impression;if(D.clickTrackingParams&&!tFO(D)&&!kJL(G)&&!e&&(e=_.en(),!_.X8(e,G))){var Q=G.getScreenLayer&&G.getScreenLayer();Q?e.clickCommand(D,null,Q):e.clickCommand(D,null)}e=!1;for(Q=0;Q<y.length;Q++)if((0,y[Q])(G,D,K)){e=!0;break}!e&&PTO(D)&&(W.ajaxPromise=E3$(x,G,D,K,z,c));return W};
kJL=function(x){var G;return(x=(G=x.data)==null?void 0:G.navigationEndpoint)&&!!x.clickTrackingParams};
tFO=function(x){var G=_.Y(x,_.cg);if(G&&(G=G.signal)&&x$L.indexOf(G)>=0)return!0;for(var D in x)if(G_n.indexOf(D)>=0)return!0;return!1};
PTO=function(x){var G;if(((G=_.Y(x,_.cg))==null?void 0:G.signal)==="CLIENT_SIGNAL")return!1;for(var D in x)if(D$n.indexOf(D)>=0)return!1;x=Object.keys(x);return x.length===1&&x[0]==="loggingUrls"?!1:!0};
TDf=function(x,G,D,K,z,y,c){var W=_.Aa.instance;if(W&&_.Uu(W,K))var e=_.Rl(W,K,z).then(function(p){return(p==null?0:p.data)?p:{data:p}});
else e=x.requestDataForServiceEndpoint(K,z),_.Y(K,Ki3)||_.Y(K,zjf)||_.Y(K,_.apO)||_.Y(K,oDd)||_.O9(new _.LL("No RequestBuilder for endpoint",K));var Q=_.Ss();Q.promise.thenCatch(function(){var p=_.jR(K,"action")||_.jR(K,"command")||_.jR(K,"endpoint");p&&(p=K[p],p.hasOwnProperty("onFailureAction")?_.zl(G,[p.onFailureAction],D):p.hasOwnProperty("onFailureCommand")&&_.zl(G,p.onFailureCommand,D));e.cancel("Resolver promise rejected")});
e.then(function(p){if(p){var V=p.error;if(V){if(y&&y.onServerError)y.onServerError(K,p);Q.reject(new _.LL("Response error",K,V))}else if(p=p.data)if(V=p.error){if(y&&y.onServerError)y.onServerError(K,p);Q.reject(new _.LL("Returned error",K,V))}else{ylQ(G,D,p,K);lpC(p);if(V=RfV(p))for(var L=_.l(V),r=L.next();!r.done;r=L.next()){r=r.value;var H=_.Eo().resolve(_.P6(cl3))||nH;if(!_.Aa.instance||!H.some(function(A){return!!_.Y(K,A)})||_.B("kevlar_response_processor_allowlist_killswitch")){var O=H=void 0;
((O=_.Y((H=r)==null?void 0:H.commandMetadata,_.fC))==null?0:O.sendPost)?_.KW(G,[r]):_.zl(G,[r],D)}}(L=_.Y(p==null?void 0:p.frameworkUpdates,i_))&&c&&c(L);if(y&&y.onSuccess)y.onSuccess(K,p);Q.resolve(new _.gG(p,V))}}else Q.reject(new _.LL("Invalid service endpoint provided",K))},function(p){Q.reject(p)});
return Q.promise};
lpC=function(x){var G;(x=(G=_.Y(x==null?void 0:x.onResponseReceivedCommand,_.WiL))==null?void 0:G.continuationItems)&&(x==null?void 0:x.length)===1&&_.Y(x[0],ejD)&&_.Fs("so_r",void 0,"search_overview_answer")};
E3$=function(x,G,D,K,z,y){var c;return(c=G.getNetworkManager&&G.getNetworkManager()?G.getNetworkManager():_.Eo().resolve(_.P6(_.mg)))?TDf(c,x,G,D,K,z,y):_.rk("No network manager.")};
ylQ=function(x,G,D,K){if(D=D.trackingParams||D.loggingDirectives&&D.loggingDirectives.trackingParams){var z;(_.Y(K,ZRO)||_.Y(K,Mtf)||_.Y(K,QgL))&&K.clickTrackingParams?z=_.V2(K.clickTrackingParams):_.B("web_graft_to_parent_command")&&K.clickTrackingParams&&(z=_.V2(K.clickTrackingParams));var y;K=(y=G.getScreenLayer)==null?void 0:y.call(G);G=_.en().graftServerVe(D,z,K);_.Gl(x,"yt-store-grafted-ve-action",[G])}};
_.p9O=function(x){var G=new Image;return new _.T1(function(D,K){G.addEventListener("load",function(){D()});
G.addEventListener("error",function(){K()});
G.src=x})};
VtL=function(x){return!!x};
bRD=function(x){return!!x};
Lif=function(x,G,D){var K=x.rowIndex;K!==void 0&&_.Gl(x.hostElement,"yt-section-reactive-dismissal",[K,G,D])};
_.u_=function(x,G,D){x=_.l(x);for(var K=x.next();!K.done;K=x.next()){K=K.value;if(K===G)break;for(var z=_.l(D),y=z.next();!y.done;y=z.next())if(y=y.value,K.tagName===y||!_.B("web_event_button_role_check_killswitch")&&K.role==="button"&&y==="BUTTON")return!0}return!1};
_.dG=function(x,G,D){x=_.l(x);for(var K=x.next();!K.done;K=x.next()){K=K.value;if(K===G)break;for(var z=_.l(D),y=z.next();!y.done;y=z.next())if(K.id===y.value)return!0}return!1};
BD3=function(x,G){if(!x&&!G)return"medium";x=Math.max(x||0,G||0);return x>=256?"large":x>=96?"medium":"small"};
rlC=function(x){switch(x){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.Ns=function(){var x=_.Eo().resolve(_.P6(_.wG));return x?(x=x.getCurrentPage())?_.qs(x):null:null};
_.vH=function(){var x=_.Ns();if(!x){var G=_.Eo().resolve(_.P6(_.wG)),D=G?typeof G:"no page manager";G=G?G.getCurrentPage():null;D=new _.LL("Player is missing when requested.",D,G?G.tagName:"no page");_.I4(D)}return x};
_.qs=function(x){return x&&x.getPlayer?x.getPlayer():null};
sgD=function(x,G){x={args:{raw_player_response:x}};G&&(x.args=Object.assign({},x.args,G));return x};
YTf=function(x){if(x.args){if(x.args.raw_player_response)return x.args.raw_player_response;if(x.args.player_response)return JSON.parse(x.args.player_response)}};
_.m$E=function(x,G){var D={url:"/watch?v="+x.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};x.playlistId&&(D.url+="&list="+x.playlistId);x.playerParams&&(D.url+="&pp="+x.playerParams);x={watchEndpoint:x,commandMetadata:{webCommandMetadata:D}};G&&(x.clickTrackingParams=G);return x};
$$C=function(){return HRn||!!_.nT("yt.player.Application")};
CBE=function(){return Fi3||!!document.querySelector("link#player-css")};
jgh=function(){function x(){HRn=!0;IpV.resolve()}
var G,D;return _.T(function(K){IpV||(IpV=new _.Kt,$$C()?x():(G=document.createElement("script"),G.addEventListener("load",x),D=_.$a(_.Am("PLAYER_JS_URL")),_.Sr(G,D),document.head.appendChild(G)));return K.return(IpV.promise)})};
X9f=function(){function x(){Fi3=!0;ORf.resolve()}
if(!ORf)if(ORf=new _.Kt,CBE())x();else{var G=document.createElement("link");G.id="player-css";G.addEventListener("load",x);var D=_.$a(_.Am("PLAYER_CSS_URL"));_.gC(G,D,"stylesheet");document.head.appendChild(G)}return ORf.promise};
AlL=function(){return $$C()&&CBE()?Promise.resolve([]):Promise.all([jgh(),X9f()])};
U$f=function(x,G,D){var K={args:{}};x&&(K.args.raw_player_response=x);G&&(K.args.raw_watch_next_response=G);D&&(K.args=Object.assign({},K.args,D));return K};
iRL=function(x,G,D){var K=!1;K=K===void 0?!0:K;x=typeof x==="string"?_.Ja(document,x):x;var z=Rjf+"_"+_.Do(x),y=STn[z];if(y&&K)return nD3(G,D)?y.api.loadVideoByPlayerVars(G.args||null):y.loadNewVideoConfig(G),y.api;y=new fH(x,z,G,D,void 0);STn[z]=y;y.addOnDisposeCallback(function(){delete STn[y.getId()]});
return y.api};
nD3=function(x,G){return G&&G.serializedExperimentFlags?G.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):x&&x.args&&x.args.fflags?x.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
gDO=function(){var x=new _.Kt;x.resolved=!1;var G=x.resolve;x.resolve=function(D){x.resolved=!0;G(D)};
return x};
d$E=function(x){var G={};uRn().install((G.document_disposed={callback:x},G))};
ta=function(x,G){if(!x&&Math.random()<=_.Gz("kevlar_unified_player_logging_threshold")){x=Error("qh`"+(G?G:"Unspecified error"));if(_.B("kevlar_unified_player_throw_errors"))throw x;_.O9(x)}};
_.w93=function(){var x=_.nT("ytDebugData.callbacks");x||(x={},_.Jv("ytDebugData.callbacks",x));return x};
NDE=function(x,G){var D=_.w93();if(_.B("web_dd_iu")||qTE.includes(x))D[x]=G};
vDf=function(){return _.T(function(x){return x.return({isLeader:_.bBO(_.wK().getState()),c:_.Am("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.Am("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
JlV=function(){var x;_.T(function(G){if(G.nextAddress==1)return NDE("APP_STATE",vDf),_.Z(G,_.Eo().resolve(_.k7),2);x=G.yieldResult;NDE("PI",function(){return _.T(function(D){return D.return(x.getVideoStats())})});
_.c5(G)})};
fpQ=function(x){var G=_.Np(_.Sq(_.Df.location.href));x=_.Np(_.Sq(x));return _.B("kevlar_clear_non_displayable_url_params")?G==PH(x):PH(G)==PH(x)};
PH=function(x){var G=_.ttD(x);x=x.slice(0);var D=["frags"];_.B("kevlar_hide_pp_url_param")&&D.push("pp");_.B("kevlar_hide_time_continue_url_param")&&D.push("time_continue");D=_.l(D);for(var K=D.next();!K.done;K=D.next())K=K.value,x=_.J$(_.Np(x),K);return _.Np(x)+(G?"#"+G:"")};
Eu=function(x,G){G=Number(G)*1E3;var D=Math.round((0,_.kK)()),K=D.toString();x={innertubeResponse:x,serverDateTimestampMs:K,lastModifiedTimestampMs:K,expireTimestampMs:(D+G).toString()};if(G=_.Am("INNERTUBE_CONTEXT_CLIENT_NAME"))x.clientName=G;return x};
PBE=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++k_Q};
_.ED3=function(){var x=_.Fx(),G=_.CC();G&&x&&_.gB(G,[x],!0)};
x3d=function(x){return x&&hj$.some(function(G){return x.includes(G)})};
ozP=function(x){var G=_.Y(x,_.iV);if(!G)return!1;var D=G.url,K=G.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!D)return _.I4(Error("vh")),!1;if(G.target==="TARGET_NEW_WINDOW"){var z={};_.B("resolve_url_parent_tracking_params")&&(!_.Jm(D)||fT(window.location.href,D))&&(z={endpoint:x,itct:x.clickTrackingParams});GkL(z);x=null;try{if(K)return x=_.cp$(D,"_blank",z,void 0,K),GBd(_.Eo().resolve(D3f),x,D),!0}catch(L){_.I4(L)}_.vy(D,z);G={target:"_blank",noopener:_.B("set_window_noopener_ks")&&
!G.allowOpener};x=window;K=er(D)?D:_.V$(typeof D.href!="undefined"?D.href:String(D));z=self.crossOriginIsolated!==void 0;var y="strict-origin-when-cross-origin";window.Request&&(y=(new Request("/")).referrerPolicy);var c=G.noreferrer;if(z&&c&&y==="unsafe-url")throw Error("oe");y=c&&!z;c=G.target||D.target;var W=[],e=[],Q=!1;for(V in G){var p=G[V];switch(V){case "width":case "height":case "top":case "left":W.push(V+"="+p);break;case "target":break;case "noopener":case "noreferrer":p?e.push(V):(Q=!0,
e.push(V+"=false"));break;case "attributionsrc":W.push(V+(p?"="+p:""));break;default:W.push(V+"="+(p?1:0))}}var V=c!==void 0&&!["_blank","_self","_top","_parent",""].includes(c);V=C$()&&V;KkQ&&z&&W.length===0&&e.length>0&&!V&&!Q?(e.length===2&&(e=["noreferrer"]),_.jr(x,K,c,e[0]),x=zOD()):(V=W.join(","),_.UD()&&x.navigator&&x.navigator.standalone&&c&&c!="_self"?(V=_.p4("A"),mu(V,K),V.target=c,y&&(V.rel="noreferrer"),((G=G.attributionsrc)||G==="")&&V.setAttribute("attributionsrc",G),G=document.createEvent("MouseEvent"),
G.initMouseEvent("click",!0,!0,x,1),V.dispatchEvent(G),x=zOD()):y?(x=_.jr(x,"",c,V),G=_.ZB(K),x&&(x.opener=null,G===""&&(G="javascript:''"),G='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+ha(G)+'">',G=$Y(G),(K=x.document)&&K.write&&(K.write(F_(G)),K.close()))):((x=_.jr(x,K,c,V))&&G.noopener&&(x.opener=null),x&&G.noreferrer&&(x.opener=null)));GBd(_.Eo().resolve(D3f),x,D);return!0}G=_.c0(D);G=x3d(G)||D==="https://studio.youtube.com/";K=!(!_.Jm(D)||fT(window.location.href,
D));V=D.indexOf("disable_polymer=1")>=0;if(K||V||G)AS(D),ms(),_.U4(D,void 0,void 0,window.top,aTC);else return _.O9(new _.LL("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",x)),!1;return!0};
_.cBL=function(x,G){G=G===void 0?0:G;if(!(_.Y(x,yB3)||_.Y(x,lT3)||_.Y(x,_.iV)&&_.Y(x,_.iV).url))return!1;var D,K=(D=_.Y(x,_.iV))==null?void 0:D.url;D=K?{externalLinkData:{url:K}}:null;return _.en().clickCommand(x,D,G)};
T6f=function(x,G){return _.zm(x.entities,"subscriptionStateEntity",G)};
Wk$=function(x,G){return _.zm(x.entities,"subscriptionNotificationStateEntity",G)};
eOn=function(x,G){return _.zm(x.entities,"upcomingEventReminderStateEntity",G)};
Zvh=function(x,G){return _.zm(x.entities,"engagementToolbarSurfaceEntityPayload",G)};
MhV=function(x,G){return _.zm(x.entities,"triStateButtonStateEntityPayload",G)};
Q7C=function(x,G){return _.zm(x.entities,"commerceCartCheckoutButtonEntity",G)};
_.paP=function(x,G){return _.zm(x.entities,"playlistLoopStateEntity",G)};
Vhf=function(x,G){return _.zm(x.entities,"commandEntity",G)};
LkV=function(x,G,D,K,z){z=z===void 0?{}:z;return function(y){var c,W;var e=((c=x.loggingDirectives)==null?0:(W=c.clientVeSpec)==null?0:W.uiType)?_.BH(x.loggingDirectives.clientVeSpec.uiType):void 0;z.clickedVisualElement||(z.clickedVisualElement=e);e=bv3(x,G);D(e,y);e=_.l(e);for(c=e.next();!c.done;c=e.next()){c=c.value;W=K;var Q=y,p=z;p.form?p.form.event=Q:p.form={element:W,event:Q};LH(c,p)}}};
bv3=function(x,G){var D=[];G?(x.toggledCommand&&D.push(x.toggledCommand),x.toggledServiceEndpoint&&D.push(x.toggledServiceEndpoint)):(x.defaultCommand&&D.push(x.defaultCommand),x.defaultServiceEndpoint&&D.push(x.defaultServiceEndpoint),x.defaultNavigationEndpoint&&D.push(x.defaultNavigationEndpoint));return D};
B6h=function(x,G){var D=x.toggledStyle||x.style,K;switch((K=G?D:x.style)==null?void 0:K.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"}}};
_.xL=function(){return _.T(function(x){return x.nextAddress==1?_.Z(x,_.Eo().resolve(_.k7),2):x.return(_.Eo().resolve(rBn)())})};
_.Gx=function(){return _.Eo().resolve(rBn)()};
_.Dw=function(){return CT(function(){return{lottieEl:void 0}})};
s7n=function(x,G){return x.startsWith(G.uniqueId)};
Yi3=function(x){var G,D;_.T(function(K){if(K.nextAddress==1)return _.Z(K,_.xL(),2);G=K.yieldResult;if((D=G)==null||!D.addEventListener)return Ks(),K.return();G.addEventListener("onCueRangeEnter",x);_.c5(K)})};
m3D=function(x){var G,D;_.T(function(K){if(K.nextAddress==1)return _.Z(K,_.xL(),2);G=K.yieldResult;if((D=G)==null||!D.removeEventListener)return Ks(),K.return();G.removeEventListener("onCueRangeEnter",x);_.c5(K)})};
Hvf=function(x){var G,D,K,z,y;_.T(function(c){if(c.nextAddress==1)return _.Z(c,_.xL(),2);G=c.yieldResult;if((D=G)==null||!D.addCueRange)return Ks(),c.return();K=_.l(x.timings);for(z=K.next();!z.done;z=K.next())y=z.value,G.addCueRange(x.uniqueId+"-"+y,y/1E3,(y+100)/1E3);_.c5(c)})};
$3O=function(x){var G,D,K,z,y;_.T(function(c){if(c.nextAddress==1)return _.Z(c,_.xL(),2);G=c.yieldResult;if((D=G)==null||!D.removeCueRange)return Ks(),c.return();K=_.l(x.timings);for(z=K.next();!z.done;z=K.next())y=z.value,G.removeCueRange(x.uniqueId+"-"+y);_.c5(c)})};
Fk3=function(){var x,G,D;return _.T(function(K){if(K.nextAddress==1)return _.Z(K,_.xL(),2);x=K.yieldResult;if((G=x)==null||!G.getPlayerState)return Ks(),K.return();D=x.getPlayerState();return K.return(D===2)})};
Ks=function(){_.O9(new _.LL("Smartimation player does not exist or is corrupted"))};
C5n=function(){try{var x;return(x=window.CSS)!=null&&x.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(G){return _.O9(new _.LL("Smartimation CSS.supports threw an error")),!1}};
ROf=function(x,G,D,K,z){var y=x.playlistId?IT$:j73;G=G();D=D();z=!!x.videoId&&z()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.Z2(G))return Ov3({data:x,actionType:y,disabled:z},D);if(x.videoId&&K())return XaE({data:x,actionType:y,disabled:z});switch(G){case "TRANSFER_STATE_UNKNOWN":return XaE({data:x,actionType:y,disabled:z});case "TRANSFER_STATE_FAILED":return x.videoId?ABd({data:x,actionType:y,disabled:z}):U3$({data:x,actionType:y,disabled:z});case "TRANSFER_STATE_COMPLETE":return U3$({data:x,
actionType:y,disabled:z});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return Ov3({data:x,actionType:y,disabled:z},D);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return x.videoId?ABd({data:x,actionType:y,disabled:z}):XaE({data:x,actionType:y,disabled:z});default:return XaE({data:x,actionType:y,disabled:z})}};
Sih=function(x,G){var D=x.onTapCommand,K=_.jn(D);if(x.videoId&&_.Y(K,_.zx))return _.Y(K,_.zx).action=G,D;x.playlistId&&_.Y(K,_.oO)&&(_.Y(K,_.oO).action=G);return D};
XaE=function(x){var G=x.data;var D=x.actionType;x=x.disabled;return{text:nzd,iconType:"OFFLINE_DOWNLOAD",onTap:Sih(G,D.ACTION_ADD),disabled:x}};
Ov3=function(x,G){var D=x.data;var K=x.actionType;x=x.disabled;var z="OFFLINE_DOWNLOAD";G>=0&&G<=.1?z="OFFLINE_DOWNLOADING_ZERO":G>.1&&G<=.3?z="OFFLINE_DOWNLOADING_TWENTY":G>.3&&G<=.5?z="OFFLINE_DOWNLOADING_FORTY":G>.5&&G<=.7?z="OFFLINE_DOWNLOADING_SIXTY":G>.7&&G<1?z="OFFLINE_DOWNLOADING_EIGHTY":G===1&&(z="OFFLINE_PIN");return{text:ivf,iconType:z,onTap:Sih(D,K.ACTION_REMOVE_WITH_PROMPT),disabled:x}};
U3$=function(x){var G=x.data;var D=x.actionType;x=x.disabled;return{text:gzP,iconType:"OFFLINE_PIN",onTap:Sih(G,D.ACTION_REMOVE_WITH_PROMPT),disabled:x}};
ABd=function(x){var G=x.data;var D=x.actionType;x=x.disabled;return{text:uIh,iconType:"OFFLINE_DOWNLOAD",onTap:Sih(G,D.ACTION_RETRY),disabled:x}};
N6D=function(x){var G=d33;waE.push(x);qiO||(G(function(){for(var D=_.l(waE),K=D.next();!K.done;K=D.next())K=K.value,K();waE.length=0;qiO=!1}),qiO=!0)};
d33=function(x){Promise.resolve().then(x)};
ys=function(x){x=_.l(o7h(x));var G=x.next().value,D=x.next().value,K=!1;_.FQ(function(){return function(){K=!0}});
return[G,function(z){N6D(function(){K&&!_.B("cow_prevent_state_setter_after_cleanup_killswitch")||D(z)})}]};
vzO=function(){var x=_.l(ys(!1)),G=x.next().value,D=x.next().value;return function(){D(!G)}};
JB$=function(x){return CT(function(){return{value:x}})};
fT$=function(x,G){var D=JB$(x),K=JB$(G);$T(function(){D.value=x},[x]);
$T(function(){K.value=G},G&&G.length>=1?G:[void 0]);
var z=CT(function(){return{value:void 0}});
if(x!==D.value||K.value!==G||z.value===void 0)z.value=uD(x,G);var y=vzO();_.FQ(function(){function c(){var e=uD(D.value,G);e!==z.value&&(z.value=e,y())}
var W=_.iD().subscribe(c);c();return W});
return z.value};
_.lA=function(x,G){var D=vdd();return _.V9(function(){D();return uD(x,[_.If(G)||""])},void 0,"HaeHEc")};
thP=function(x){var G=_.lA(_.C3,function(){return x().videoId}),D=_.lA(_.I_,function(){return x().playlistId});
return function(){return x().videoId?G:x().playlistId?D:_.l(_.eO("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
kBh=function(x){var G=_.lA(j5,function(){return x().videoId}),D=_.lA(_.V1f,function(){return x().playlistId});
return function(){return x().videoId?G:x().playlistId?D:_.l(_.eO(0,void 0,"K4tgOc")).next().value}};
P5O=function(x){var G=_.lA(_.HBD,function(){return x().videoId});
return function(){return x().videoId?G:_.l(_.eO(!1,void 0,"Oaxwcf")).next().value}};
EzQ=function(x){var G=_.lA(BeE,function(){return x().videoId});
return function(){return x().videoId?G:_.l(_.eO("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
hO$=function(){return{}};
xj3=function(){var x,G;return(G=(x=_.Eo().resolve(_.P6(_.ib)))==null?void 0:x())!=null?G:!1};
DjC=function(x,G){x=x===void 0?GOd:x;switch(G.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},x,{isOpen:G.payload});default:return x}};
zXh=function(x,G){x=x===void 0?KDf:x;switch(G.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},x,{isAllowed:G.payload});default:return x}};
o4E=function(x,G){x=x===void 0?a0D:x;switch(G.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},x,{errorMessage:G.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},x,{title:G.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},x,{privacy:G.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},x,{isDisabled:G.payload});default:return x}};
l0h=function(x,G){x=x===void 0?yV$:x;switch(G.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},x,{isOpen:G.payload});default:return x}};
Ts$=function(x,G){x=x===void 0?cVn:x;switch(G.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},x,{isFullscreen:G.payload});case "SET_NAVIGATION_BUTTON":var D=G.payload.targetId,K=Object.assign({},x.navigationButtons);K[D]=G.payload.button;return Object.assign({},x,{navigationButtons:K});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},x,{topPanelId:G.payload});case "SET_SECONDARY_HEADER":return D=G.payload.panelId,K=Object.assign({},x.secondaryHeader),K[D]=G.payload.secondaryHeader,
Object.assign({},x,{secondaryHeader:K});default:return x}};
MPD=function(){return cy(Object.assign({},{entities:EGV,voiceSearch:WaD,engagementPanel:Ts$,bottomSheet:DjC,cinematicSetting:zXh,shorts:LaO,drawerLayout:l0h,createPlaylist:o4E,locationCollection:WDV,reportChannel:eXL,reportForm:ZOf},BQD))};
QiC=function(x,G){_.Fj.addLowPriorityJob(function(){var D,K,z;return _.T(function(y){switch(y.nextAddress){case 1:return _.Kl(y,2),_.Z(y,rCE(),4);case 4:return _.Z(y,fetch(x),5);case 5:return D=y.yieldResult,_.Z(y,D.json(),6);case 6:K=y.yieldResult;ol.set(x,K);requestAnimationFrame(function(){G(K)});
_.iI(y,0);break;case 2:z=_.lX(y),_.O9(z),_.c5(y)}})})};
pnO=function(x){var G={animationConfig:{},listeners:{}},D=function(){x(!0)};
G.listeners.data_failed=D;G.listeners.error=D;G.listeners.data_ready=function(){x(!1)};
return G};
LDL=function(x){var G=x.model;var D=x.subscribed;var K=x.isOverlay;var z=x.element;var y=x.commandController;var c=x.notificationState;if(D){var W,e;var Q=(G==null?void 0:(W=G.buttonStyle)==null?void 0:W.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:G==null?void 0:(e=G.unsubscribeButtonContent)==null?void 0:e.buttonText}else{var p;Q=G==null?void 0:(p=G.subscribeButtonContent)==null?void 0:p.buttonText}a:{var V;switch(G==null?void 0:(V=G.buttonStyle)==
null?void 0:V.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":W="S";break a;default:W="M"}}a:if(K)K="overlay";else switch(G.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":K="overlay";break a;default:K="mono"}a:if(D)var L="tonal";else switch((L=G.buttonStyle)==
null?void 0:L.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":L="tonal";break a;default:L="filled"}return{style:K,type:L,state:G.disableSubscribeButton?"disabled":"active",size:W,focused:x.focused,toggled:D,accessibilityLabel:VPf(G,D,c),buttonText:Q,iconPosition:G.disableNotificationBell?"none":"leading-trailing",onTap:bOV(G,D,z,y),disableTextEllipsis:!!x.disableTextEllipsis}};
bOV=function(x,G,D,K){return function(z){if(G){var y;var c=x.disableNotificationBell?_.jn(x==null?void 0:(y=x.unsubscribeButtonContent)==null?void 0:y.onTapCommand):_.jn(x==null?void 0:x.onShowSubscriptionOptions)}else{var W;c=_.jn(x==null?void 0:(W=x.subscribeButtonContent)==null?void 0:W.onTapCommand)}c&&LH(c,{form:{element:D==null?void 0:D.value},commandController:K});z.stopPropagation()}};
VPf=function(x,G,D){if(G){if(x==null?0:x.disableNotificationBell){var K;return x==null?void 0:(K=x.unsubscribeButtonContent)==null?void 0:K.accessibilityText}switch(D){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var z;return x==null?void 0:(z=x.bellAccessibilityData)==null?void 0:z.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var y;return x==null?void 0:(y=x.bellAccessibilityData)==null?void 0:y.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var c;return x==null?void 0:(c=
x.bellAccessibilityData)==null?void 0:c.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var W;return x==null?void 0:(W=x.bellAccessibilityData)==null?void 0:W.disabledLabel;default:var e;return x==null?void 0:(e=x.unsubscribeButtonContent)==null?void 0:e.accessibilityText}}else{var Q;return x==null?void 0:(Q=x.subscribeButtonContent)==null?void 0:Q.accessibilityText}};
Bs$=function(x){if(x){switch(x){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":x="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":x="NOTIFICATIONS_OFF";break;default:x="NOTIFICATIONS_NONE"}return x}};
rVD=function(x,G,D){D.subscribed!==G&&((D=D.key)&&_.dc(_.cq("subscriptionStateEntity",D,{key:D,subscribed:G})),x.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:G})),G||_.xO(x,"yt-unsubscribe-action"))};
Yrn=function(x){x=_.Y(_.jn(x),_.Tx);var G,D,K,z;return(z=_.Y(x==null?void 0:(G=x.panelLoadingStrategy)==null?void 0:(D=G.inlineContent)==null?void 0:(K=D.sheetViewModel)==null?void 0:K.content,sin))==null?void 0:z.listItems};
mj$=function(x,G){if(x.onShowSubscriptionOptions&&G&&(x=Yrn(x.onShowSubscriptionOptions),x!=null&&x.length)){var D=Bs$(G);x.forEach(function(K){K=_.Y(K,_.Wq);var z,y,c,W,e=K==null?void 0:(z=K.leadingImage)==null?void 0:(y=z.sources)==null?void 0:(c=y[0])==null?void 0:(W=c.clientResource)==null?void 0:W.imageName;K&&e&&(K.isSelected=e===D)})}};
HOn=function(x,G,D,K){G&&D?x.style.width=D+"px":!G&&K&&(x.style.width=K+"px")};
$jL=function(x,G,D){var K;(K=x.lottieEl)==null||K.goToAndPlay(0);var z;(z=G.lottieEl)==null||z.goToAndPlay(0);_.eU(_.Fj,function(){var y;(y=D.lottieEl)==null||y.goToAndPlay(0)},300)};
Zw=function(){return _.Eo().resolve(_.P6(FDd))||{}};
CLL=function(x){return typeof x==="function"};
_.MF=function(x){Object.keys(x);var G=function(D,K){var z=G.mapping||x;if(!D)return _.M(_.xT,null);if(Array.isArray(D)&&(D=I0f(z,G,D),Array.isArray(D))){if(!D.length)return _.M(_.xT,null);if(D.length>1){for(var y=!1,c=!1,W=[],e={},Q=0;Q<D.length;e={data$jscomp$1845:void 0},Q++)if(e.data$jscomp$1845=D[Q],e.data$jscomp$1845){var p=jif(e.data$jscomp$1845,z),V=p.mappingEntry;p=p.rendererName;V&&p&&(V&&(!CLL(V)&&OO$(V)&&(c=!0),!CLL(V)&&V.asyncId||(y=!0)),W.push(XnV(e.data$jscomp$1845,V,p,G,K)))}return c&&
!y?_.M(_.xT,null,AVd()):_.M(_.xT,null,W)}D=D[0]}if(!D)return _.M(_.xT,null);D=I0f(z,G,[D])[0];if(!D)return _.M(_.xT,null);y=jif(D,z);z=y.mappingEntry;y=y.rendererName;return z&&y?_.M(_.xT,null,XnV(D,z,y,G,K)):_.M(_.xT,null)};
G.mapping=x;return G};
_.UjD=function(x){var G=void 0,D;for(D in x)if(x.hasOwnProperty(D)){G=D;break}return G};
I0f=function(x,G,D){var K,z=(K=Zw().preProcessOptions)==null?void 0:K.idomOptions;if(!z)return D;Zw();return z.preProcessPropsIdom(x,D,G.triggerRerender)};
jif=function(x,G){return(x=_.UjD(x))?{mappingEntry:G[x],rendererName:x}:{mappingEntry:void 0,rendererName:void 0}};
XnV=function(x,G,D,K,z){if(!G)return _.M(_.xT,null);var y={};z&&z[D]&&(y=Object.assign({},z[D]));x[D]!==void 0&&(y.data=x[D]);if(CLL(G))return G.debugName||(G.debugName=D),_.M(G,y);G.asyncId&&(K.pendingIdsMap=K.pendingIdsMap||{},K.pendingIdsMap[D]=G.asyncId);return G.templateFn?G.templateFn(y):OO$(G)?AVd():_.M(_.xT,null)};
OO$=function(x){var G;return(G=x.showPlaceholder)!=null?G:Zw().defaultShowPlaceholder};
AVd=function(){var x=Zw().placeholder;return x()};
RXn=function(x,G){G=G===void 0?{shouldPersist:!0}:G;return{useUpdatableData:function(D,K){var z=[],y=_.l(_.ZX(function(){var Q=D();if(K!=null&&K.length&&z){var p=z.length>0;for(var V=!1,L=0;L<K.length;L++){var r=K[L]();p&&r!==z[L]&&(V=!0);z[L]=r}p=V}else p=!1;if(p)_.Qs.remove(e());else if(p=_.Qs.get(e()))return p;return Q})),c=y.next().value,W=y.next().value,e=_.V9(function(){return x(D())},void 0,"VFraLb");
_.$9(function(){if(e()!=null){ps.set(e(),[c,W,!1]);var Q=e();_.Fq(function(){ps.delete(Q)})}});
return[c,function(Q){W(Q);G.shouldPersist&&_.Qs.set(e(),Q)}]},
getData:function(D){var K;return(K=ps.get(x(D)))==null?void 0:K[0]()},
updateData:function(D,K){D=x(D);var z=ps.get(D);if(!z)return!1;var y=_.l(z);z=y.next().value;y=y.next().value;K=K(z());y(K);G.shouldPersist&&_.Qs.set(D,K);return!0},
useUpdatableDataIdom:function(D,K){var z=x(D),y=_.Qs.get(z),c=_.l(ys(y!=null?y:D)),W=c.next().value,e=c.next().value,Q=IE(y!=null?y:D);$T(function(){if(z!=null)return ps.set(z,[function(){return Q.value},
function(p){e(p);Q.value=p},
ps.has(z)]),_.Fj.addJob(function(){_.Vs(_.Fj,function(){var p=ps.get(z);p&&(p[2]=!1)},0)},8),function(){var p;
((p=ps.get(z))==null?0:p[2])||ps.delete(z)}},[z]);
$T(function(){W!==D&&(e(D),Q.value=D)},K?[].concat(_.B5(K),[z]):[z]);
return[W,e]}}};
SrE=function(x){var G=_.l(_.eO(!0,void 0,"bKtO6d")),D=G.next().value;G.next();return function(){var K=Zy(x.children());return _.M(_.b,{cond:D,then:function(){return K},
else:x.fallback})}()};
_.bA=function(x){var G=n4$(x),D=G.data,K=G.mapping,z=G.wrapper;G=G.pendingFallback;var y=function(){return iOf(_.If(D))},c=function(){var W=y(),e=[];
W=_.l(W);for(var Q=W.next();!Q.done;Q=W.next()){var p=void 0;Q=Q.value;var V=void 0;for(p in Q)if(!(!Q).hasOwnProperty(p)){V=p;break}(p=V)&&e.push(p)}return e};
return x.data?_.M(SrE,{fallback:G},function(){return _.M(_.LT,{each:c},function(W,e){var Q=z?function(V){return z(function(){return K[W](V,e)},p,e)}:function(V){return K[W](V,e)};
Q.debugName||(Q.debugName=String(W));if(!K[String(W)])return document.createComment("");var p=g43(y,W,e);return _.M(Q,{data:p})})}):_.M(_.xT,null)};
n4$=function(x){var G=x.targetId||uGd(x.children);if(!x.data||!G||_.B("mweb_new_replaceables_killswitch"))return Object.assign({},x,{mapping:x.children,wrapper:void 0});var D="stamper-"+djn++,K=function(){var W;return(W=_.If(x.targetId))!=null?W:D};
G=_.l(wnC(function(){var W=iOf(x.data());W.targetId=K;return W})).next().value;
var z=Object.assign({},Zw().replaceableMapping,x.children);if(x.replacementWrapper){var y=z.notificationTextRenderer,c=z.notificationMultiActionRenderer;y&&(z.notificationTextRenderer=function(W,e){return x.replacementWrapper(y({data:W.data},e))});
c&&(z.notificationMultiActionRenderer=function(W,e){return x.replacementWrapper(c({data:W.data},e))})}return Object.assign({},x,{data:G,
mapping:z,wrapper:function(W,e,Q){return cI3({targetId:K,stamperIndex:Q},W)}})};
g43=function(x,G,D){var K;return _.V9(function(){var z=x()[D()];if(z)K=z[G];else return _.O9(new _.LL("Stamper failed to find "+String(G)+" at index "+D()+" of data array of length "+(x().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),K;return z[G]},void 0,"DHuMIe")};
uGd=function(x){x=_.l(Object.keys(x));for(var G=x.next();!G.done;G=x.next())if(G=G.value,qrD.includes(G)||Nsd.includes(G)||v4O.includes(G))return!0;return!1};
iOf=function(x){return x?Array.isArray(x)?x:[x]:[]};
JVD=function(x){x=_.Y(x,_.Ls);return(x==null?void 0:x.iconName)&&!(x==null?0:x.title)};
kOL=function(x,G,D){var K;return _.M(_.xT,null,x==null?void 0:(K=x.actions)==null?void 0:K.map(function(z){return _.M("div",{class:function(){var y={"yt-flexible-actions-view-model-wiz__action":!0};y["yt-flexible-actions-view-model-wiz__action--row-action"]=G;y["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(JVD(z))var c=!0;else if(c=_.Y(z,_.Bq),(c==null?0:c.isToggled)&&JVD(c==null?void 0:c.toggledButtonViewModel)||(c==null||!c.isToggled)&&JVD(c==null?void 0:c.defaultButtonViewModel))c=
!0;else{var W;c=((W=_.Y(z,f0P))==null?0:W.playlistId)?!0:!1}y=(y["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=c,y["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=D,y);return _.cH(y)}},tPf([z],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!G}}))}))};
PLn=function(x){var G=x.layout===1,D,K=((D=x.data)==null?void 0:D.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";D={};K=(D["yt-flexible-actions-view-model-wiz"]=!0,D["yt-flexible-actions-view-model-wiz--inline"]=!G,D["yt-flexible-actions-view-model-wiz--scrollable"]=K,D);var z,y;return _.M("yt-flexible-actions-view-model",{class:_.cH(x.className,K)},(z=x.data)==null?void 0:(y=z.actionsRows)==null?void 0:y.map(function(c){if(G){var W;return _.M("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
kOL(c,G,!((W=x.data)==null||!W.respectActionIntrinsicWidth)))}return kOL(c,G,!1)}))};
E4d=function(x){return!(x==null||!x.iconName||(x==null?0:x.title))};
hXD=function(x){var G=_.Y(x.data.toggleButtonViewModel,_.Bq),D,K=(D=x.data.dislikeEntityKey)!=null?D:"",z=fT$(CH,[K]);G=Object.assign({},G,{isToggled:z?z.likeStatus==="DISLIKE":G.isToggled});return _.M("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.M(_.rl,{data:G,buttonShapeOverrides:x.buttonShapeOverrideables,onToggle:function(y){z&&y!==(z.likeStatus==="DISLIKE")&&z.key&&_.dc(_.sg("likeStatusEntity",z.key,{likeStatus:y?"DISLIKE":"INDIFFERENT",hadUserInteraction:y}))}}))};
G3V=function(x){var G=_.B("web_supports_animations_api"),D=_.Y(x.data.toggleButtonViewModel,_.Bq),K,z,y,c,W=_.l(ys({numberText:(c=(K=x.likeCountEntity)==null?void 0:(z=K.likeCountIfIndifferent)==null?void 0:z.content)!=null?c:"",numberValue:Number((y=x.likeCountEntity)==null?void 0:y.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1})),e=W.next().value,Q=W.next().value,p,V,L,r;K=_.l(ys({numberText:(r=(p=x.likeCountEntity)==null?void 0:(V=p.likeCountIfLiked)==null?void 0:V.content)!=null?
r:"",numberValue:Number((L=x.likeCountEntity)==null?void 0:L.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}));p=K.next().value;var H=K.next().value;V=_.l(ys());var O=V.next().value,A=V.next().value,g;V=(g=x.data.likeStatusEntityKey)!=null?g:"";var u,f;g=(f=(u=x.likeCountEntity)==null?void 0:u.key)!=null?f:"";var v=fT$(CH,[V]),P=fT$(drP,[g]);u=yUd(function(){return(v==null?void 0:v.likeStatus)==="LIKE"},[v]);
$T(function(){var k,cL=P&&((k=P.likeCountIfIndifferent)==null?void 0:k.content)!==e.numberText;if(!O&&cL){var bO,mE;Q({numberText:(mE=P==null?void 0:(bO=P.likeCountIfIndifferent)==null?void 0:bO.content)!=null?mE:"",numberValue:Number(P==null?void 0:P.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!0});var jf,$C;H({numberText:($C=P==null?void 0:(jf=P.likeCountIfLiked)==null?void 0:jf.content)!=null?$C:"",numberValue:Number(P==null?void 0:P.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!0})}},
[P]);
D=Object.assign({},D,{isToggled:u});G=G&&x.likeCountEntity;return _.M("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.M(_.rl,{data:D,buttonShapeOverrides:x.buttonShapeOverrideables,animatedTextPropsDefault:G?e:void 0,animatedTextPropsToggled:G?p:void 0,onToggle:function(k){xN$(k,v,O,A)},
style:function(){return x.disableIconAnimation?void 0:{animateIcon:"true"}}}))};
xN$=function(x,G,D,K){D&&_.Fj.cancelJob(D);D=_.Fj.addLowPriorityJob(function(){K(void 0)},5E3);
K(D);G&&x!==(G.likeStatus==="LIKE")&&G.key&&_.dc(_.cq("likeStatusEntity",G.key,{key:G.key,likeStatus:x?"LIKE":"INDIFFERENT",hadUserInteraction:x}))};
DNf=function(x,G,D,K){D&&_.Fj.cancelJob(D);D=_.Fj.addLowPriorityJob(function(){K(void 0)},5E3);
K(D);G&&x!==(G.likeStatus==="LIKE")&&G.key&&_.dc(_.cq("likeStatusEntity",G.key,{key:G.key,likeStatus:x?"LIKE":"INDIFFERENT",hadUserInteraction:x}))};
a43=function(x){var G,D=_.Y((G=x.data)==null?void 0:G.likeButtonViewModel,_.YL),K;G=_.Y((K=x.data)==null?void 0:K.dislikeButtonViewModel,_.mY);var z,y=(z=fT$(CH,[(D==null?void 0:D.likeStatusEntityKey)||""]))!=null?z:D==null?void 0:D.likeStatusEntity;K=yUd(function(){var c=x.data,W;c=(c==null?void 0:(W=c.timedAnimationData)==null?void 0:W.animationTiming)||[];return{uniqueId:"like-dislike",timings:c,enabled:(y==null?void 0:y.likeStatus)==="INDIFFERENT"&&c.length>0,experimentEnabled:c.length>0}},[x.data,
y]);return _.M("segmented-like-dislike-button-view-model",{class:_.cH(x.className,"ytSegmentedLikeDislikeButtonViewModelHost"),"button-renderer":!0},_.M(Hq,{settings:K},_.M("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},D?_.M(KOL,{data:D,likeCountEntity:x.data.likeCountEntity,buttonShapeOverrideables:{segmentedPosition:"start"}}):null,G?_.M(zvC,{data:G,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}}):null)))};
oZh=function(x,G){var D=N5(x)||{layerNode:G};D.layerNode=G;FLf(x,D);x.getScreenLayer=function(){return $L(D.layerNode)}};
yTC=function(x){var G;x=x.parentNode;for(var D;x&&((G=N5(x))==null||!G.isRenderer)&&!((D=x.polymerController)!=null?D:x).isRenderer_;)x=x.parentNode||x.host;if(G=x)return N5(G)};
l43=function(x){if(x){q5.delete(x);var G=_.Eo().resolve(kq);rJd(x,G)}};
TLD=function(x,G,D){if(D===void 0?0:D){if(D=x.getAttribute("client-ve-type"),G.data&&!G.disableReactiveLogging||D)_.jO(function(){cTC(x,_.If(G.data))}),_.Fq(function(){return void l43(x)})}else typeof G.data!=="function"&&cTC(x,G.data)};
cTC=function(x,G){WOP++;ev$(x,G)&&_.Fj.addJob(function(){_.Vs(_.Fj,function(){if(ev$(x,G)&&x.ownerDocument.documentElement===document.documentElement&&x){var D;if(x.getAttribute("layer")){var K=D=Number(x.getAttribute("layer")),z=N5(x);z?z.layerNode.layer=K:oZh(x,new ZP3(K));(K=yTC(x))&&(z=N5(x))!=null&&(z.layerNode.parent=K.layerNode)}else if(D=N5(x))D=$L(D.layerNode);else{D=$L;K=new ZP3;if(z=yTC(x))K.parent=z.layerNode;oZh(x,K);D=D(K)}D!=null||(D=0);K=x.getAttribute("client-ve-type");z=Number(K);
var y=!1;K=!1;var c=N5(x),W;if((W=c)&&!(W=c[F4]!==G)&&(W=z)){var e;W=((e=q5.get(x))==null?void 0:e.clientVeType)===void 0}W&&(c[F4]=G,y=K=c.isRenderer=!0);q5.has(x)&&(q5.get(x).clientVeType=z);x.visualElement&&(K=!0);if(_.B("wiz_next_ld_fix_client_ve_spec")){var Q;e=((Q=_.Y(G==null?void 0:G.rendererContext,_.ZJ))==null?void 0:Q.loggingDirectives)||(G==null?void 0:G.loggingDirectives)}else e=G==null?void 0:G.loggingDirectives;e&&e.clientVeSpec&&(Q=M9d(_.Te(),x),Q=_.Qzf(_.en(),e,Q||void 0,D))&&(x.visualElement=
Q);!x.visualElement&&z&&y&&(x.veType=z,Q=void 0,_.B("wiz_next_client_ve_parent_fix")&&(Q=M9d(_.Te(),x)),Q=_.Wh(_.en(),x,Q,D),x.visualElement=Q);K&&(Q=_.Eo().resolve(kq),Hef(x,{data:G,observer:Q,layer:D,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
ev$=function(x,G){return(G==null?0:G.trackingParams)||(G==null?0:G.loggingDirectives)||_.Y(G==null?void 0:G.rendererContext,_.ZJ)||x.getAttribute("client-ve-type")?!0:!1};
V9Q=function(x){return _.B("cow_logging_in_component_wrapper")?function(G){TLD(G,x,!0)}:pWP};
pWP=function(){};
_.bPE=function(x,G){return _.zm(x.entities,"accountLinkStatusEntity",G)};
LOf=function(x,G){return _.zm(x.entities,"hatsSurveyEntity",G)};
BLL=function(x,G){return _.zm(x.entities,"hatsSurveyStateEntity",G)};
rT3=function(x,G){return _.zm(x.entities,"quantityIncrementerEntity",G)};
$N3=function(x){var G=x.data;var D=x.className===void 0?"":x.className;var K=x.setMinWidth;x=x.forceIconOnly;var z=_.qi(V9Q({data:G}));K=K?"ytwAccountLinkButtonViewModelHostMinWidth":"";var y=_.lA(_.bPE,function(){var V;return(V=_.If(G).accountLinkStatusEntityKey)!=null?V:""}),c=_.lA(_.bPE,function(){var V;
return(V=_.If(G).accountLinkStatusSecondaryEntityKey)!=null?V:""}),W=function(){if(!_.B("web_account_link_secondary_killswitch")){var V,L;
return((V=y())==null?void 0:V.linked)||((L=c())==null?void 0:L.linked)}var r;return(r=y())==null?void 0:r.linked};
_.$9(function(){var V=y();if(V){var L=szE(new YGC,mNn(new HPd,!!V.linked));_.xL().then(function(r){r&&(r.setAccountLinkState(_.PY(L.JSC$10071_serializeBinary(),4)),r.updateAccountLinkingConfig(!!V.linked))})}});
var e=function(){return _.Y(_.If(G).toggleButtonViewModel,_.Bq)};
_.wu("yt-signal-action-show-account-link-dialog",function(){if(e()){var V=W()?e().toggledButtonViewModel:e().defaultButtonViewModel;V=_.Y(V,_.Ls);var L;if((L=y())==null?0:L.isWarning){L=_.Y(_.If(G).warningButtonViewModel,_.Ls);if(!L){_.iM(Error("wh"));return}V=L}var r;(L=_.jn((r=V)==null?void 0:r.onTap))&&_.yg([L],z.value)}else _.iM(Error("xh"))});
var Q=function(){var V=e();return Object.assign({},V,{isToggled:W()})},p=x?{iconPosition:"icon-only"}:{};
return _.M("account-link-button-view-model",{class:_.ym("ytwAccountLinkButtonViewModelHost",function(){return _.If(D)},K),
el:z,"button-renderer":!0},_.M("div",null,_.M(_.b,{cond:function(){var V;if((V=y())==null?0:V.isWarning)return(V=_.Y(_.If(G).warningButtonViewModel,_.Ls))||_.iM(Error("wh")),V},
then:function(V){return _.M(_.Cs,{data:V,buttonOverrides:p})},
else:function(){return _.M(_.rl,{data:Q,buttonShapeOverrides:p})}})))};
FO$=function(x){switch(x){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}};
CZh=function(x){switch(x){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}};
I4E=function(x){switch(x){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"}};
_.OPC=function(x){var G=_.Gz("web_generic_client_event_wait_period ",0);G||(G=3E5);var D=jzL.get(x);!_.B("enable_web_client_experiment_event_timeout_killswitch")&&D&&(0,_.kK)()-D<G||(jzL.set(x,(0,_.kK)()),_.Fv("genericClientExperimentEvent",{eventType:x}))};
XW3=function(x){switch(x){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""}};
ATL=function(x){if(!x)return"";var G,D=(G=_.Eo().resolve(_.P6(_.ib)))==null?void 0:G(),K;if(!D&&((K=x.vibrantColorPalette)==null?0:K.iconInactiveColor))return O4(x.vibrantColorPalette.iconInactiveColor,"1");var z;return D&&((z=x.darkColorPalette)==null?0:z.iconInactiveColor)?O4(x.darkColorPalette.iconInactiveColor,"1"):x.color?O4(x.color,"1"):x.sampledThumbnailColor?(x=x.sampledThumbnailColor,"rgba("+x.red+","+x.green+","+x.blue+");"):""};
_.IO=function(x,G){if(!x.includes("DATE_PLACEHOLDER"))return x;var D=new Date(0);D.setUTCSeconds(G);return x.replace("DATE_PLACEHOLDER",UNh(D))};
_.jU=function(x){return x!=null&&x.watch?x.watch.isTheaterMode:!1};
_.Og=function(x){return x!=null&&x.watch?x.watch.isWatchFullscreen:!1};
_.X4=function(x){x=_.RvL(x);return _.B("web_watch_enable_single_column_grid_view")?x:!1};
_.RvL=function(x){return x.watch.isWatchNarrowWidth};
SGf=function(x,G,D){return function(K){var z=x.command;z&&(LH(z,{form:{element:D}}),G([z],K))}};
iPE=function(x,G,D,K,z){return function(y){var c=nZh(x,D);c&&LH(c,{form:{element:K},commandController:z});G&&G.stopPropagation&&y.stopPropagation()}};
nZh=function(x,G){if(x.signInEndpoint&&!_.B("web_subscribe_sign_in_endpoint_killswitch"))return x.signInEndpoint;if(G){if(x.serviceEndpoints)return x.serviceEndpoints[1];if(x.onUnsubscribeEndpoints)return x.onUnsubscribeEndpoints[0]}else{if(x.serviceEndpoints)return x.serviceEndpoints[0];if(x.onSubscribeEndpoints)return x.onSubscribeEndpoints[0]}};
gZn=function(x,G){var D,K,z,y;G=G&&((D=x.unsubscribeAccessibility)==null?void 0:(K=D.accessibilityData)==null?void 0:K.label)||((z=x.subscribeAccessibility)==null?void 0:(y=z.accessibilityData)==null?void 0:y.label);return x.longSubscriberCountText?[G,_.u7(x.longSubscriberCountText)].filter(function(c){return c}).join(" "):G};
Ac=function(x,G){return G||(x==null?0:x.isChannelDelegate)?"disabled":"active"};
uUL=function(x,G){var D;switch((D=x.style)==null?void 0:D.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:Ac(x)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:Ac(x)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:Ac(x,!0)};case "OVERLAY":return G?{style:"overlay",type:"tonal",state:Ac(x)}:{style:"overlay",type:"filled",state:Ac(x)};default:return G?{style:"mono",type:"tonal",state:Ac(x)}:{style:"mono",type:"filled",state:Ac(x)}}};
dNh=function(x,G){var D=x.map(function(K){return K.toString()});
return _.WH(function(K){if(D.includes(K.key)){G&&K.preventDefault();var z;(z=K.currentTarget)==null||z.click()}})};
_.wW3=function(){return dNh(["Enter"])};
_.qGf=function(){return dNh(["Enter"," "],!0)};
_.Ug=function(x){if(x.composedPath)return x.composedPath();if(!x.__composedPath){for(var G=[],D=x.target;D;)G.push(D),D=D.parentNode;G.push(window);x.__composedPath=G}return x.__composedPath};
_.RO=function(x,G,D){x=_.l(x);for(var K=x.next();!K.done;K=x.next()){K=K.value;if(K===G)break;for(var z=_.l(D),y=z.next();!y.done;y=z.next())if(y=y.value,K.tagName===y||K.role==="button"&&y==="BUTTON")return!0}return!1};
vZP=function(x,G){var D,K=(D=G.observer)!=null?D:_.Eo().resolve(kq);if(x){D=NL$(x);var z=[];G.showOption&&z.push(K.observe(x,function(){G.visibilityCallback(!0)},G.showOption));
G.hideOption&&z.push(K.observe(x,function(){G.visibilityCallback(!1)},G.hideOption));
G.prescanOption&&G.prescanCallback&&z.push(K.observe(x,function(){G.prescanCallback()},G.prescanOption));
var y;D.visibilityMonitorKeys=((y=D.visibilityMonitorKeys)!=null?y:[]).concat(z)}};
NL$=function(x){var G;return(G=x.polymerController)!=null?G:x};
_.ns=function(x){return!!_.SU(x)};
_.t9h=function(x,G){var D=ToQ();$T(function(){var K=x.value;if(K)return JTO(K,G),f4C(K,G,void 0,void 0,void 0,D)},[G])};
_.iA=function(x,G,D,K,z,y){var c=ToQ();_.$9(function(){var W=x.value;W&&(JTO(W,G(),y),W=f4C(W,G(),D,K,z,c),_.Fq(W))})};
JTO=function(x,G,D){var K=k3n(G),z=PZh(G);G=K&&EZ3;var y=z&&hvn;(K||z)&&vZP(x,{visibilityCallback:function(c){var W=_.Eo().resolve(_.hm);c&&K?W.resolveCommand(K,{form:{element:D?x:void 0},disableClickTracking:!0}):!c&&z&&W.resolveCommand(z,{form:{element:D?x:void 0},disableClickTracking:!0})},
showOption:G,hideOption:y})};
f4C=function(x,G,D,K,z,y){var c=new Map;if(G=_.SU(G)){var W;x=(K==null?void 0:(W=K.onTap)==null?void 0:W.value)||x;D=xen(G,x,D==null?void 0:D.onTap,z,y);x.addEventListener("click",D);c.set("click",D)}return function(){for(var e=_.l(c),Q=e.next();!Q.done;Q=e.next()){var p=_.l(Q.value);Q=p.next().value;p=p.next().value;x.removeEventListener(Q,p)}}};
_.SU=function(x){var G;return(x=(G=_.Y(x,GGO))==null?void 0:G.onTap)&&_.jn(x)};
k3n=function(x){var G;return(x=(G=_.Y(x,GGO))==null?void 0:G.onVisible)&&_.jn(x)};
PZh=function(x){var G;return(x=(G=_.Y(x,GGO))==null?void 0:G.onHidden)&&_.jn(x)};
xen=function(x,G,D,K,z){var y=function(W){_.Eo().resolve(_.hm).resolveCommand(x,W)},c=function(W){K&&_.RO(_.Ug(W),G,K)||y(W.target?{form:{element:W.target,
sourceData:x,mutationContext:z}}:void 0)};
D&&(c=function(W){D(W,y)});
return c};
Ded=function(x){switch(x){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}};
Krd=function(x){var G=x.numAvatarsInCluster;switch(x.clusterSize){case "small":return G===2?22:18;case "40":return G===2?24:22;default:return G===2?24:20}};
z7f=function(x,G){return function(D){var K=Object.keys(G);_.$9(function(){if(x()){for(var z=_.l(K),y=z.next();!y.done;y=z.next())y=y.value,D.addEventListener(y,G[y]);_.Fq(function(){for(var c=_.l(K),W=c.next();!W.done;W=c.next())W=W.value,D.removeEventListener(W,G[W])})}})}};
a5n=function(x){switch(Krd(x)){case 18:return"yt-spec-avatar-shape--avatar-in-cluster-size-18";case 20:return"yt-spec-avatar-shape--avatar-in-cluster-size-20";case 22:return"yt-spec-avatar-shape--avatar-in-cluster-size-22";case 24:return"yt-spec-avatar-shape--avatar-in-cluster-size-24";default:return""}};
oU3=function(x){switch(x){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""}};
yAf=function(x){switch(Krd(x)){case 18:return"yt-spec-avatar-shape__button--button-in-cluster-size-18";case 20:return"yt-spec-avatar-shape__button--button-in-cluster-size-20";case 22:return"yt-spec-avatar-shape__button--button-in-cluster-size-22";case 24:return"yt-spec-avatar-shape__button--button-in-cluster-size-24";default:return""}};
l5f=function(x){switch(x){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""}};
cAf=function(x){switch(x){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}};
TNV=function(x){return x==="medium"||x==="48"||x==="large"||x==="extra-large"||x==="extra-extra-large"||x==="giant"};
Wrh=function(x){return!!((x==null?0:x.includes(3))||(x==null?0:x.includes(5)))};
Zkd=function(x){return{size:e7d(x.data.avatarImageSize),onTap:x.onTap,decorations:x.decorations||[],badgeText:x.badgeText,accessibilityText:x.accessibilityText,avatarButtonCustomClassName:x.avatarButtonCustomClassName,clusterLayoutConfig:x.clusterLayoutConfig}};
e7d=function(x){switch(x){case "AVATAR_SIZE_XXS":return"tiny";case "AVATAR_SIZE_XS":return"extra-small";case "AVATAR_SIZE_S":return"small";case "AVATAR_SIZE_M":return"medium";case "AVATAR_SIZE_L":return"large";case "AVATAR_SIZE_XL":return"extra-large";case "AVATAR_SIZE_XXL":return"extra-extra-large";case "AVATAR_SIZE_XXXL":return"giant";case "AVATAR_SIZE_RESPONSIVE":return"responsive";case "AVATAR_SIZE_40":return"40";case "AVATAR_SIZE_48":return"48";default:return"medium"}};
MAP=function(x){switch(x){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_40":return 40;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
Qkd=function(x){switch(x){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""}};
pQ3=function(x){var G=x.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",D,K=x.avatars&&x.avatars.length>0?(D=_.Y(x.avatars[0],_.gl))==null?void 0:D.avatarImageSize:"AVATAR_SIZE_UNKNOWN";D=MAP(K)||0;if(G){var z,y=(z=x.avatarClusterSize)!=null?z:"AVATAR_SIZE_M";G=MAP(y);var c,W,e=Math.min((W=(c=x.avatars)==null?void 0:c.length)!=null?W:0,4),Q;return{avatars:((Q=x.avatars)==null?void 0:Q.slice(0,4))||[],avatarSizeInPx:D,avatarStackStyle:{width:G+"px",height:G+"px",position:"relative"},avatarStyle:function(V){var L=
Krd({clusterSize:e7d(y),numAvatarsInCluster:e,avatarIndex:V});var r=MAP(y);e===3&&V===2?(r=(r-L)/2,r=(_.Am("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*r):r=void 0;return{position:"absolute",top:e===2&&V===1||e===3&&V===2||e===4&&V>=2?"0":void 0,bottom:e===2&&V===0||e>2&&V<2?"0":void 0,left:e===2&&V===1||e>2&&(V===1||V===3)?"0":void 0,right:e<=3&&V===0||e===4&&(V===0||V===2)?"0":void 0,transform:r?"translateX("+r+"px)":void 0,width:L+"px",height:L+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(V){return{clusterSize:e7d(x.avatarClusterSize),numAvatarsInCluster:e,avatarIndex:V}},
avatarButtonCustomClassName:void 0}}var p;return{avatars:((p=x.avatars)==null?void 0:p.slice())||[],avatarSizeInPx:D,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:Qkd(K),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
VAE=function(x,G,D){return function(){LH(x,{form:{element:G},commandController:D})}};
bkQ=function(x){switch(x){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
Lrf=function(x){switch(x){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"}};
BNd=function(x){var G=x.data;x=x.hidden===void 0?!1:x.hidden;var D={};x={class:_.cH("yt-page-indicator-view-model",(D["yt-page-indicator-view-model__indicator--hidden"]=!G.indicatorCount,D)),hidden:x};if(G.indicatorCount){D=[];for(var K=0;K<G.indicatorCount;K++){var z={};z=_.cH("yt-page-indicator-view-model__indicator",(z["yt-page-indicator-view-model__indicator--selected"]=G.selectedIndex===K,z));D.push(_.M("div",{class:z}))}G=_.M(_.xT,null,D)}else G=_.M(_.xT,null);return _.M("yt-page-indicator-view-model",
x,G)};
skD=function(x){x&&(rAd(x)?delete x.inlinePlayerData:"inlinePlaybackEndpoint"in x&&delete x.inlinePlaybackEndpoint)};
YlD=function(x){if("accessibilityText"in x)return x.accessibilityText||"";if("title"in x){var G,D,K;return((G=x.title)==null?void 0:(D=G.accessibility)==null?void 0:(K=D.accessibilityData)==null?void 0:K.label)||""}if("accessibility"in x){var z,y;return((z=x.accessibility)==null?void 0:(y=z.accessibilityData)==null?void 0:y.label)||""}return""};
rAd=function(x){return"inlinePlayerData"in x};
uA=function(x){return new mef(x)};
_.HkV=function(x,G,D,K,z,y){var c=function(Q){Q.preventDefault()},W=function(){var Q=x.value;
if(Q)return(Q._data=G)?(Q.addEventListener("touchstart",QxP,{passive:!0}),Q.addEventListener("click",VDP),G.clickTrackingParams&&(Q.params={itct:G.clickTrackingParams}),bqf(Q,G),mu(Q,LAL(G)||"")):Q.addEventListener("click",c),function(){G?(Q.removeEventListener("touchstart",QxP,{passive:!0}),Q.removeEventListener("click",VDP)):Q.removeEventListener("click",c)}},e=function(){var Q=x.value;
if(Q){var p=_.XB({innertubeCommand:G,elementsCommand:D,forceNewState:K,stopPropagation:y});if(p)return Q._data=p._data,p["aria-haspopup$"]&&Q.setAttribute("aria-haspopup",p["aria-haspopup$"].toString()),p["force-new-state$"]&&Q.setAttribute("force-new-state",p["force-new-state$"].toString()),p.href$&&mu(Q,p.href$),p.rel$&&(Q.rel=p.rel$),p.role$&&Q.setAttribute("role",p.role$),p.target$&&(Q.target=p.target$),Q.params=p.params,p.onclick&&Q.addEventListener("click",p.onclick),p.onpointerdown&&Q.addEventListener("onpointerdown",
p.onpointerdown),function(){p.onclick&&Q.removeEventListener("click",p.onclick);p.onpointerdown&&Q.removeEventListener("onpointerdown",p.onpointerdown)}}};
$T(z?e:W,[G,D])};
$ef=function(x){var G=x.children;var D=x.className;var K=x.dir;var z=x.style;var y=x.role;var c=x.ariaSelected;var W=x.ariaLabel;var e=x.ariaHidden;var Q=x.ariaLabelledby;var p=x.ariaDescribedby;var V=x.command;var L=x.elementsCommand;var r=x.forceNewState;var H=x.isPlaceholder;var O=x.tabIdentifier;var A=x.target;var g=x.tabIndex;var u=x.useATagConfig;var f=x.stopPropagation;x=_.qi();_.HkV(x,V,L,r,u,f);return _.M("a",{el:x,"on:click":_.WH(function(){return f===!1}),
class:D,style:z,dir:K,role:y?y:V?void 0:"group","aria-hidden":e?!0:void 0,"aria-label":W,"aria-labelledby":Q,"aria-describedby":p,"aria-selected":c,tabindex:g!==void 0?g:void 0,target:A,"tab-identifier":O,"force-new-state":r?!0:void 0,"is-placeholder":H?!0:void 0},G)};
FrP=function(x){var G=x.data;x=_.WH(function(){var z=_.Y(G.onTap,_.IP);z&&_.Eo().resolve(_.hm).resolveCommand(z);return!1});
var D={sources:[{url:G.thumbnailUrl,width:120,height:90}]},K=G.rating&&G.ratingA11yLabel&&G.reviewsCount&&G.reviewsCountA11yLabel;return _.M("place-data-view-model",null,G.placeName&&G.placeCategory?_.M("div",{class:"yt-spec-place-data-view-model-shape","on:click":x},_.M(_.wk,{data:D,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail"}),_.M($ef,{className:"yt-spec-place-data-view-model-shape__place-link",command:_.Y(G.onTap,_.IP),forceNewState:!0,useATagConfig:!0},
_.M("h3",{class:"yt-spec-place-data-view-model-shape__name",title:G.placeName},G.placeName)),_.M("div",{class:"yt-spec-place-data-view-model-shape__metadata"},K?_.M("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.M("span",{class:"score",title:G.ratingA11yLabel},G.rating),_.M("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.M(_.Qm,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),
_.M("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:G.reviewsCountA11yLabel},G.reviewsCount)):_.M("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.M("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.M("span",{class:"category",title:G.placeCategory},G.placeCategory)))):null)};
Cid=function(x){return function(G){x&&(x.thumbnailElRef=G.thumbnailElRef,x.thumbnail=G.thumbnail,x.thumbnailOverlays=G.thumbnailOverlays,x.thumbnailSize=G.thumbnailSize)}};
I5C=function(x){var G;return(G=x.sharedUi)==null?void 0:G.animatedThumbnailEnabled};
jkh=function(x){var G;return(G=x.sharedUi)==null?void 0:G.inlinePreviewEnabled};
_.Okf=function(x){var G;return(G=x.sharedUi)==null?void 0:G.currentPageSubType};
XQO=function(x){switch(x){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"}};
Ue3=function(x){var G=_.l(_.eO(!1,void 0,"RIOonf")),D=G.next().value,K=G.next().value;_.FQ(function(){var z=x==null?void 0:x();if(z){var y=_.Eo().resolve(_.P6(AAE));if(y){var c={triggeringElement:z,onDwellTriggeredFn:function(){K(!0)},
onDwellEndFn:function(){K(!1)}};
y.registerElement(c);_.Fq(function(){y.unregisterElement(c)})}}});
return D};
R7f=function(x,G,D){D?D(G):_.UI(G,x.target?{form:{element:x.target}}:void 0)};
_.dl=function(x,G,D,K){_.$9(function(){var z=x.value;if(z){var y=new Map,c,W=(c=G())==null?void 0:c.onTap;W&&(c=function(e){a:{var Q=e.composedPath();Q=_.l(Q);for(var p=Q.next();!p.done;p=Q.next()){p=p.value;if(p===z)break;if(p.className.indexOf("HostIsClickableAdComponent")>=0||p.tagName==="A".toString()||p.tagName==="BUTTON".toString()){Q=!0;break a}}Q=!1}Q||(_.B("enable_square_image_components_ui_web_with_float_button")?_.h$(x.value,"yt-navigate",{endpoint:_.jn(W)}):R7f(e,W,D))},(K==null?0:K())||
_.B("enable_web_home_top_landscape_image_layout_level_click")?(z.addEventListener("tap",c),y.set("tap",c)):(z.addEventListener("click",c),y.set("click",c)));
_.Fq(function(){for(var e=_.l(y),Q=e.next();!Q.done;Q=e.next()){var p=_.l(Q.value);Q=p.next().value;p=p.next().value;z.removeEventListener(Q,p)}})}})};
SlP=function(x,G){var D,K=(D=x.interaction)==null?void 0:D.onTap;if(x=_.XB({elementsCommand:K,forceNewState:!0,skipOnClick:!0}))return x.onclick=function(z){WAd(z)&&(z.preventDefault(),K&&R7f(z,K,G))},An(x)?x:void 0};
nUD=function(x){switch(x){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
ikL=function(x){switch(x){case "AD_BUTTON_STYLE_OVERLAY":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TEXT":return"overlay";case "AD_BUTTON_STYLE_TRANSPARENT":case "AD_BUTTON_STYLE_MONO_FILLED":case "AD_BUTTON_STYLE_MONO_TONAL":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"mono";case "AD_BUTTON_STYLE_OVERLAY_FILLED":return"call-to-action-overlay";default:return"call-to-action"}};
gUn=function(x){switch(x){case "AD_BUTTON_STYLE_OUTLINE":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"outline";case "AD_BUTTON_STYLE_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_MONO_TONAL":return"tonal";case "AD_BUTTON_STYLE_OVERLAY_TEXT":case "AD_BUTTON_STYLE_TRANSPARENT":return"text";default:return"filled"}};
_.u3O=function(x){return _.B("rich_grid_enable_dynamic_offset")&&x?Math.max(Math.round((x-_.Gz("rich_grid_dynamic_offset_anchor_width",1300))/100*_.Gz("rich_grid_dynamic_offset_offset_per_100",10)),_.Gz("rich_grid_dynamic_offset_lower_bound",-60)):0};
deO=function(x,G){switch(G){case 4:return 16;case 1:return x<528?16:x<1024?32:48;case 2:return(x>=528?16:8)/2;case 3:return(x<528?16:x<1024?32:48)+(x>=528?16:8)/2;default:return 0}};
wQn=function(x){var G=x.originalContainerWidth;var D=x.sizing;var K=x.standardUnit;if(x.isCompactList&&G<528)return 1;switch(D){case "STANDARD":return K;case "COMPACT":return K+1;case "EXTRA_COMPACT":return _.B("web_responsive_extra_compact_2x")?K*2:_.B("web_responsive_current")?K===1?2:K%2===0?K/2*3:K+2:K<4?K*2:Math.ceil(K*3/2);case "MINI":return K>1?K*2:3;default:return K}};
NND=function(x){var G=x.containerWidth;var D=x.peek;var K=x.gutter;var z=x.numItems;x=x.ignoreMaxWidthLimit;G=D?Math.max((G-D-K*z)/z,0):Math.max((G-K*(z-1))/z,0);return x?G:Math.min(G,qlh)};
_.wl=function(x){var G=x.containerWidth;var D=x.hasPeek;var K=x.sizing;var z=x.marginSettings;var y=x.isCompactList;var c=x.enableFullBleedForSingleCol;var W=x.standardUnitMinWidth;K=K||"STANDARD";D=!!D;x=G>=528?16:8;var e=D?G>=528?48:24:0;z=deO(G,z);var Q=Math.max(G-z*2,0);W=_.B("kevlar_disable_min_width_override")?void 0:W;W=Math.min(Math.max(Math.floor((Q-e+x)/((W!=null?W:vUf)+_.u3O(G)+x)),1),6);var p=(c=!!c&&W===1)||W===1&&K!=="STANDARD";D=D||p?Q:Math.min(Q,(qlh+x)*W-x);K=wQn({originalContainerWidth:G,
sizing:K,standardUnit:W,isCompactList:y});return{itemWidth:NND({containerWidth:D,peek:e,gutter:x,numItems:K,ignoreMaxWidthLimit:p}),gutter:x,maxContainerWidth:D,numItems:K,margin:c?0:z,contentMargin:deO(G,1),typographyBump:NND({containerWidth:D,peek:e,gutter:x,numItems:W,ignoreMaxWidthLimit:p})>400&&!(y&&G<528),standardUnit:W}};
JAD=function(x){switch(x){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.f5O=function(x){if(x){var G;if((G=x.responsiveContainerConfiguration)==null?0:G.responsiveSize)return JAD(x.responsiveContainerConfiguration.responsiveSize);if(x.layoutSizing)switch(x.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"}}};
tAV=function(x){if(x.fullbleed)return 1;switch(x.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
h7C=function(x,G,D,K,z,y,c,W){a:switch(x){case 4:y=!!(y&&y<100);break a;default:y=!1}a:switch(x){case 3:case 4:var e=K==="LOCKUP_CONTENT_TYPE_CHANNEL"||K==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:e=!1}a:switch(x){case 5:var Q=!0;break a;case 4:Q=!1;break a;default:Q=!1}a:if(x===4&&K==="LOCKUP_CONTENT_TYPE_SOURCE")var p=1;else switch(x){case 3:p=1;break a;default:p=0}return{isOverlay:Q,isCard:kGh(K,c),sizing:G!=null?G:"STANDARD",typographyBump:D!=null?D:!1,isTiny:y,isCentered:e,isCollection:Pif(K),
arrangement:p,addMarginForFullbleed:x===1&&K!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:x===1&&K==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:EUE(K,z,W),disableRounding:x===5||kGh(K,c)||x===1&&K==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:Pif(K)?2:0,useLegacyTypography:!(W==null||!W.useLegacyTypography),useRichGridLegacyTypography:!(W==null||!W.useRichGridLegacyTypography)&&!_.B("web_enable_typography_bump")}};
Pif=function(x){switch(x){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}};
kGh=function(x,G){if(G&&x==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(x){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
EUE=function(x,G,D){if(G&&(D==null||!D.alwaysRespectPodcastShowAspectRatio||x!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(x){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}};
xx3=function(x){switch(x){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"}};
K$3=function(x,G,D){a:switch(x.badgeStyle){case "BADGE_OVERLAY":var K=!0;break a;default:K=!1}return{type:G?16:Gff(x.badgeStyle),brNzRatingBadgeType:DxE(x.badgeStyle),text:x.badgeText,icon:x.iconName,isOverlay:K,modern:D||_.B("web_modern_badge_view_model")}};
Gff=function(x){switch(x){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
DxE=function(x){switch(x){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}};
aAD=function(x){var G=x.data?K$3(x.data,!!x.workaroundShortsIsThumbnailBadge,x.modern):void 0;return _.M("yt-badge-view-model",{class:_.cH("yt-badge-view-model-wiz",x.class)},ka(G==null?void 0:G.brNzRatingBadgeType,function(){return _.M(z3$,{data:G})}),ka(G&&!G.brNzRatingBadgeType,function(){return _.M(_.qF,{data:G})}))};
_.NF=function(x){if(x){var G;return((G=_.Eo().resolve(_.P6(_.ib)))==null?0:G())?x.darkThemeImage:x.image}};
lA$=function(x,G,D,K,z,y){if(z&&y&&G==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:z,height:y};if(!D)return{};z=D.size;D=D.allowFullWidth;if(G==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&D)return{fullWidth:!0};if(z===void 0)return{};switch(x){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:z,height:z};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:z,height:1/oFL*z};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:z*
ywE,height:z};default:return(K==null?0:K.height)&&(K==null?0:K.width)?K.width/K.height>1?{maxWidth:z*ywE}:{maxWidth:z}:{maxWidth:z}}};
cwL=function(x){var G;return x&&((G=_.NF(x.themedImage))!=null?G:x.image)};
Tzn=function(x){var G;return x==null?void 0:(G=x.sources)==null?void 0:G[0]};
e3n=function(x,G){var D,K;return!!((x==null?0:(D=x.byline)==null?0:D.hideAvatar)&&((K=_.Y(G,W$3))==null?void 0:K.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
ZVQ=function(x,G){var D,K;return!!((x==null?0:(D=x.byline)==null?0:D.addPadding)&&((K=_.Y(G,W$3))==null?void 0:K.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
MpV=function(x,G,D,K){var z={},y=(z["yt-content-metadata-view-model-wiz__delimiter"]=!0,z["yt-content-metadata-view-model-wiz__delimiter--standalone"]=K,z);return ka(G-1>D,function(){return _.M("span",{class:_.cH(y),"aria-hidden":!0},x)})};
pzh=function(x,G){return _.M(_.vq,{text:x.text,linkInheritColor:!0,className:QoP(G),userInput:!0})};
bVL=function(x){var G=x.metadataPart;var D=x.isOverlay;var K=x.useMediumText;var z=x.hideAvatar;var y=1;G.maxLines!==void 0&&(y=G.maxLines);return _.M(_.xT,null,ka(G.avatarStack,function(){return VpV(G.avatarStack,{avatarStackViewModel:{isOverlay:D,useMediumText:K,hideAvatar:z}})}),ka(G.text,function(){var c=y;
return _.M(_.xT,null,G.tooltip?_.M("span",{title:G.tooltip,role:"tooltip"},pzh(G,c)):pzh(G,c))}))};
QoP=function(x){switch(x){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"}};
L$C=function(x){var G=x.metadataRow;var D=x.isInline;var K=x.delimiter;var z=x.isOverlay;var y=x.useMediumText;var c=x.extensions;var W=e3n(c==null?void 0:c.lockupMetadata,G);x=ZVQ(c==null?void 0:c.lockupMetadata,G);c=!(!((c==null?0:c.lockupMetadata)&&G.badges)||G.metadataParts);var e={};x=(e["yt-content-metadata-view-model-wiz__metadata-row"]=!0,e["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=D,e["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=
x,e["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=c,e);var Q,p;return _.M("div",{class:_.cH(x)},(Q=G.badges)==null?void 0:Q.map(function(V){return _.M("div",{class:"yt-content-metadata-view-model-wiz__badge"},VpV(V))}),(p=G.metadataParts)==null?void 0:p.map(function(V,L){return _.M(_.xT,null,bVL({metadataPart:V,
isOverlay:z,useMediumText:y,hideAvatar:W}),MpV(K,G.metadataParts.length,L,!1))}),ka(G.isSpacerRow&&!D,function(){return _.M("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}))};
BzQ=function(x){var G=x.className;var D=x.data;var K=x.layout===void 0?0:x.layout;var z=x.isOverlay===void 0?!1:x.isOverlay;var y=x.useMediumText;var c=x.extensions;x=_.qi();var W=K===0;K={};K=(K["yt-content-metadata-view-model-wiz"]=!0,K["yt-content-metadata-view-model-wiz--inline"]=W,K["yt-content-metadata-view-model-wiz--tappable"]=_.ns(D.rendererContext),K["yt-content-metadata-view-model-wiz--medium-text"]=y,K);_.t9h(x,D.rendererContext);return _.M("yt-content-metadata-view-model",{class:_.cH(G,
K),el:x},ka(D.metadataRows,function(){return D.metadataRows.map(function(e,Q){return _.M(_.xT,null,L$C({metadataRow:e,isInline:W,delimiter:D.delimiter,isOverlay:z,useMediumText:y,extensions:c}),ka(W&&!e.isSpacerRow,function(){return MpV(D.delimiter,D.metadataRows.length,Q,!0)}))})}))};
rwV=function(x){switch(x){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"}};
sod=function(x){switch(x.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"}}};
YwL=function(x){var G=_.Okf(_.iD().getState())||"";return x?x+G:""};
mx3=function(x){switch(x){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
$xh=function(x){var G=_.l(_.eO(void 0,void 0,"BIquNb")),D=G.next().value,K=G.next().value,z=_.l(_.eO(void 0,void 0,"eR0GH"));G=z.next().value;var y=z.next().value;z=_.l(_.eO(void 0,void 0,"UmkP0"));var c=z.next().value,W=z.next().value;return{touchFeedbackEvents:{pointerUpEvent:D,pointerDownEvent:G,pointerLeaveEvent:c},touchFeedbackOnPointerUp:_.WH(function(e){if(HVO(_.Ug(e)))return!1;K(e);y(void 0);W(void 0);return!0}),
touchFeedbackOnPointerDown:_.WH(function(e){x==null||x(e);if(HVO(_.Ug(e)))return!1;y(e);K(void 0);W(void 0);return!0}),
touchFeedbackOnPointerLeave:_.WH(function(e){HVO(_.Ug(e))||(W(e),y(void 0),K(void 0))})}};
HVO=function(x){var G=["BUTTON".toString()];x=_.l(x);for(var D=x.next();!D.done;D=x.next()){D=D.value;for(var K=_.l(G),z=K.next();!z.done;z=K.next())if(D.tagName===z.value)return!0}return!1};
F$O=function(x){switch(x){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"}};
CsV=function(x,G){var D;return OqO(x,((D=x.content)==null?void 0:D.length)||0,!G)};
IAh=function(x,G){G=CsV(x,G);var D,K;return(((D=x.content)==null?void 0:D.length)||0)>(((K=G.content)==null?void 0:K.length)||0)};
joQ=function(x){var G=x.isTruncated;var D=x.isAbsoluteButton;var K=x.lineHeight;var z=x.contentRef.value,y=x.placeholderTruncationTextRef.value,c=x.truncationTextRef.value;x=x.appDirection==="rtl";if(z&&y){var W=y.offsetLeft;x&&(W=z.offsetWidth-y.offsetWidth-y.offsetLeft);if(G){G=y.offsetWidth;y=z.offsetWidth;var e=D?y-G-70:W-70;K="linear-gradient(\n      to top, transparent 0%,\n      transparent "+K+"px,\n      #000 "+K+"px,\n      #000 100%), linear-gradient(\n      to "+((x?"left":"right")+",\n      #000 0px,\n      #000 "+
e+"px,\n      transparent "+(D?y-G:e+70)+"px)");z.style.setProperty("-webkit-mask-image",K);z.style.setProperty("mask-image",K)}else z.style.setProperty("-webkit-mask-image",""),z.style.setProperty("mask-image","");D?x?(c.style.setProperty("left","0"),c.style.setProperty("right","unset")):(c.style.setProperty("left",""),c.style.setProperty("right","0")):x?(c.style.setProperty("left","unset"),c.style.setProperty("right",W+"px")):(c.style.setProperty("left",W+"px"),c.style.setProperty("right","unset"))}};
OVO=function(x,G,D,K,z,y,c){var W=_.qi(),e=_.qi(),Q=_.qi(),p=CsV(x,z),V=_.Eo().resolve(_.ub),L=_.l(ys(IAh(x,z))),r=L.next().value,H=L.next().value,O=IE(null);$T(function(){function A(){if(W.value&&e.value&&Q.value){var f=W.value;f.scrollHeight-f.offsetHeight>1?(H(!0),K||joQ({isTruncated:!0,isAbsoluteButton:!0,lineHeight:D,contentRef:W,placeholderTruncationTextRef:e,truncationTextRef:Q,appDirection:V})):(f=IAh(x,z),H(f),K||joQ({isTruncated:f,isAbsoluteButton:!1,lineHeight:D,contentRef:W,placeholderTruncationTextRef:e,
truncationTextRef:Q,appDirection:V}))}}
var g,u;(g=O.value)==null||(u=g.stop)==null||u.call(g);g=new _.Jc(A,17);A();O.value=g},[x.content,
G,D,V,K,y,c,z]);_.FQ(function(){var A=function(){var u,f;(u=O.value)==null||(f=u.fire)==null||f.call(u)};
if(window.ResizeObserver){var g=new ResizeObserver(A);g.observe(W.value);return function(){var u,f;(u=O.value)==null||(f=u.stop)==null||f.call(u);g.disconnect()}}window.addEventListener("resize",A);
return function(){var u,f;(u=O.value)==null||(f=u.stop)==null||f.call(u);window.removeEventListener("resize",A)}});
return{isTruncated:r,displayText:p,contentRef:W,placeholderTruncationTextRef:e,truncationTextRef:Q}};
Xzh=function(x){return _.M("button",{"aria-disabled":!0,disabled:!0,class:x.className,el:x.elRef,style:"line-height: "+x.lineHeight+"px;"},_.M(_.vq,{text:x.text}))};
Awf=function(x){var G=x.text;var D=x.alwaysShowTruncationText;var K=x.truncationText;var z=x.onExpandClick;var y=x.lineHeight===void 0?16:x.lineHeight;var c=x.maxLines===void 0?2:x.maxLines;var W=x.disableTextMask===void 0?!1:x.disableTextMask;var e=x.textStyle===void 0?"default":x.textStyle;var Q=x.accessibilityLabel===void 0?"":x.accessibilityLabel;var p=x.textSize===void 0?"small":x.textSize;var V=_.WH(function(){return void(z==null?void 0:z())}),L=OVO(G,c,y,W,x.alwaysTruncateAtMaxLines===void 0?
!1:x.alwaysTruncateAtMaxLines,p,e),r=L.isTruncated;
x=L.displayText;G=L.contentRef;var H=L.placeholderTruncationTextRef;L=L.truncationTextRef;var O={};D=_.cH((O["truncated-text-wiz__absolute-button"]=!W,O["truncated-text-wiz__bottom-button"]=W,O["truncated-text-wiz--hidden"]=!(D||r),O));W={};e=_.cH((W["truncated-text-wiz"]=!0,W["truncated-text-wiz--overlay"]=e==="overlay",W["truncated-text-wiz--medium-text"]=p==="medium",W["truncated-text-wiz--large-text"]=p==="large",W["truncated-text-wiz--primary-text"]=e==="primary-text",W));return _.M("truncated-text",
{class:e,"on:click":V,style:"line-height: "+y+"px;"},_.M("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",el:G,style:"max-height: "+c*y+"px;"},_.M(_.vq,{text:x}),_.M(Xzh,{text:K,lineHeight:y,elRef:H,className:"truncated-text-wiz__inline-button"})),_.M("button",{"aria-label":Q,class:D,el:L,style:"line-height: "+y+"px;"},_.M(_.vq,{text:K})))};
Ux3=function(x){return{content:x!=null?x:""}};
nFE=function(x){var G=x.data;var D;x={class:x.className};a:switch(G.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var K="yt-video-attribute-view-model--vertical";break a;default:K="yt-video-attribute-view-model--horizontal"}a:switch(G.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var z="yt-video-attribute-view-model--image-small";break a;default:z="yt-video-attribute-view-model--image-large"}a:switch(G.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var y="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":y="yt-video-attribute-view-model--image-avatar";break a;default:y=""}a:switch(G.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var c="yt-video-attribute-view-model--metadata-header";break a;default:c=""}a:switch(G.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var W="yt-video-attribute-view-model--container-card";break a;default:W=""}var e=_.jn(G.onTap)||_.SU(G.rendererContext)?"yt-video-attribute-view-model--clickable":"";
K=["yt-video-attribute-view-model",K,z,y,c,W,e].join(" ");if(G.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var Q="";else z=G.lightColorPalette,y=G.darkColorPalette,c=((Q=_.Eo().resolve(_.P6(_.ib)))==null?0:Q())&&y?y:z,Q=(Q=c==null?void 0:c.section2Color)?_.jT(Q):"";return _.M("yt-video-attribute-view-model",x,_.M("div",{class:K,style:_.Ms({"background-color":Q})},_.M($ef,{className:"yt-video-attribute-view-model__link-container",useATagConfig:!0,stopPropagation:!1,command:(D=_.jn(G.onTap))!=
null?D:_.SU(G.rendererContext),role:"group",ariaLabel:G.title,forceNewState:!0},G.heroText||G.image?_.M(R3d,{data:G}):null,_.M(Swh,{data:G,sizeSmall:G.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
iVC=function(x){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:x.overflowMenuA11yLabel,onTap:function(G){G.preventDefault();G.stopPropagation();if(x.overflowMenuOnTap){var D=_.XB({elementsCommand:x.overflowMenuOnTap,forceNewState:!0});if(D==null?0:D.onclick)D.onclick(G)}}}};
R3d=function(x){x=x.data;var G,D=((G=_.Eo().resolve(_.P6(_.ib)))==null?0:G())&&x.darkThemeImage?x.darkThemeImage:x.image;G=iVC(x);return _.M("div",{class:"yt-video-attribute-view-model__hero-section"},D?_.M(_.wk,{data:D,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):x.heroText?_.M("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.M("span",{class:"yt-video-attribute-view-model__hero-text"},x.heroText)):null,x.overflowMenuOnTap?
_.M("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.M(fs,{data:G,iconName:"MORE_VERT"})):null)};
Swh=function(x){var G=x.data;x=x.sizeSmall;var D=G.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",K=_.jn(G.onTap)||_.SU(G.rendererContext);K=_.XB({innertubeCommand:K});K=An(K);var z={};x={class:_.cH("yt-video-attribute-view-model__metadata",(z["yt-video-attribute-view-model--small-font"]=x,z)),role:K?"link":"group"};K=_.M("h1",{class:"yt-video-attribute-view-model__title"},G.title);D=G.subtitle?_.M("h4",{class:"yt-video-attribute-view-model__subtitle"},D?_.M(Awf,{text:Ux3(G.subtitle),truncationText:Ux3(G.subtitleTruncationText),
maxLines:2}):_.M("span",null,G.subtitle)):null;if(G.secondarySubtitle){z=G.secondarySubtitle;if(z!=null&&z.attachmentRuns){for(var y=[],c=_.l(z.attachmentRuns),W=c.next();!W.done;W=c.next())W=W.value,W.element&&y.push(Object.assign({},W,{element:Object.assign({},W.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));z=Object.assign({},z,{attachmentRuns:y})}z=_.M("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},
_.M(_.vq,{text:z}))}else z=null;return _.M("div",x,K,D,z,G.buttonViewModel?gFf(G.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
_.tc=function(x,G,D,K,z){K=K===void 0?{}:K;if(!z||Math.random()<5E-4){G=G||null;D=D||null;x=x instanceof Error?x:new _.LL(x);if(x.args)for(var y=_.l(x.args),c=y.next();!c.done;c=y.next())c=c.value,c instanceof Object&&(K=Object.assign({},c,K));K.category="H5 Ads Control Flow";G&&(K.slot=G?"slot:  "+G.slotType:"");D&&(K.layout=D?"layout:  "+D.layoutType:"",K.layoutId=D.layoutId);z&&(K.known_error_aggressively_sampled=!0);x.args=[K];_.O9(x)}};
_.udL=function(x,G){_.xO(x,"yt-open-popup-action",[_.NW(G),x])};
_.kL=function(x,G){_.udL(x,_.gK(G))};
wzn=function(x){if(!x)return"";if(dxL[x])return dxL[x];Pq||(Pq=_.p4("A"));Pq.href!==x&&mu(Pq,x);var G=Pq.pathname;dxL[x]=G.startsWith("/")?G:"/"+G;return dxL[x]};
qw$=function(){var x=wzn(window.location.href);if(x==="/")return"home";if(x.startsWith("/results"))return"search";if(x.startsWith("/watch"))return"watch";if(x.startsWith("/shorts"))return"shorts";if(x.startsWith("/hashtag"))return"hashtag";if(x.startsWith("/create_channel"))return"create_channel";if(x.startsWith("/@")||x.startsWith("/user/")||x.startsWith("/channel/"))return"channel";if(x.startsWith("/experiments"))return"experiments";if(x.startsWith("/sponsor_channel"))return"sponsorship";if(x.startsWith("/select_site"))return"settings";
if(x.startsWith("/locate"))return"locate";if(x.startsWith("/redeem"))return"redeem";if(x.startsWith("/musicpremium")||x.startsWith("/premium")||x.startsWith("/red"))return"premium";if(x.startsWith("/paid_memberships"))return"paid_memberships";if(x.startsWith("/oops"))return"oops";if(x.startsWith("/clip"))return"clip";var G;return(Eg==null?void 0:(G=Eg.response)==null?void 0:G.page)==="404"?"404":x.startsWith("/feed/history")?"history":x.startsWith("/feed/library")?"library":x.startsWith("/feed/subscriptions")?
"subscriptions":x.startsWith("/feed/trending")?"trending":x.startsWith("/feed/news_destination")?"news":x.startsWith("/playlist")?"playlist":x.startsWith("/minor_moment")?"minor_moment":x.startsWith("/playable/")||x.match("^/playables/(?!saved).")?"mini_app":x.startsWith("/playables")?"playables":x.startsWith("/create/live/join")?"open_in_app":x.startsWith("/feed/explore")?"explore":"browse"};
_.fA$=function(){var x=Eg==null?void 0:Eg.response,G=x==null?void 0:x.endpoint;if(!G)return(x==null?void 0:x.page)==="watch"?"watch":qw$();var D;x=(D=_.Y(G==null?void 0:G.commandMetadata,_.fC))==null?void 0:D.webPageType;D=!1;if(x&&!Nzn.includes(x))switch(x){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 K;return((K=_.Y(G==null?void 0:G.commandMetadata,_.fC))==null?0:K.url)&&wzn(_.Y(G.commandMetadata,_.fC).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var z;return(G=(z=_.Y(G,_.TU))==null?void 0:z.browseId)?vFP[G]||"browse":"browse";default:D=!0}if(_.Y(G,_.hc)||_.Y(G,JwL))return"sponsorship";z=wzn(window.location.href);if(z.startsWith("/experiments"))return"experiments";if(z.startsWith("/create_channel"))return"create_channel";
if(_.Y(G,_.iV)&&z.startsWith("/shorts"))return"shorts";if(_.Y(G,_.iV)&&z.startsWith("/watch"))return"watch";D&&(G=new _.LL("Unsupported mWeb page type",{pathname:z,webPageType:x}),_.I4(G));return"browse"};
x5=function(x,G,D,K){return x&&G?x!==D||G!==K?(_.tc(Error("Dh"),void 0,void 0,{"stored-slot":x,"stored-layout":G,"latest-slot":D,"latest-layout":K}),!1):!0:!1};
tpd=function(x,G,D){return x({targetId:G},function(K){return D.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},K,{header:D.continuationItems?D.continuationItems[0]:void 0}):Object.assign({},K,{contents:D.continuationItems?D.continuationItems:[]})})};
kfD=function(x,G,D,K){if(G=G.trackingParams){var z,y=(z=D.getScreenLayer)==null?void 0:z.call(D);D=_.CC(y);z=_.Fx(y);if(D&&z){var c=_.V2(G);_.B("combine_ve_grafts")?x.graftServerVe(G,z,y):_.RI(D,z,c);K==null||K(c)}}};
EFd=function(x){var G;return((G=PsP.get(x))==null?void 0:G.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
GNh=function(x,G){var D={type:G.slotType,controlFlowManagerLayer:h33.get(G.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};G.slotEntryTrigger&&(D.entryTriggerType=G.slotEntryTrigger.triggerType);G.slotPhysicalPosition!==1&&(D.slotPhysicalPosition=G.slotPhysicalPosition);if(x){D.debugData={slotId:G.slotId};if(x=G.slotEntryTrigger)D.debugData.slotEntryTriggerData=xb3(x);x=G.slotFulfillmentTriggers;D.debugData.fulfillmentTriggerData=[];x=_.l(x);for(var K=x.next();!K.done;K=x.next())D.debugData.fulfillmentTriggerData.push(xb3(K.value));
G=G.slotExpirationTriggers;D.debugData.expirationTriggerData=[];G=_.l(G);for(x=G.next();!x.done;x=G.next())D.debugData.expirationTriggerData.push(xb3(x.value))}return D};
xb3=function(x,G){var D={type:x.triggerType};G!=null&&(D.category=G);x.triggeringSlotId!=null&&(D.triggerSourceData||(D.triggerSourceData={}),D.triggerSourceData.associatedSlotId=x.triggeringSlotId);x.triggeringLayoutId!=null&&(D.triggerSourceData||(D.triggerSourceData={}),D.triggerSourceData.associatedLayoutId=x.triggeringLayoutId);return D};
Db3=function(x,G,D,K){G={opportunityType:G};x&&(K||D)&&(K=_.Hu(K||[],function(z){return GNh(x,z)}),G.debugData=Object.assign({},D&&D.length>0?{associatedSlotId:D}:{},K.length>0?{slots:K}:{}));
return G};
KtO=function(x){return GF(x.opportunityAdapterMap).concat(GF(x.triggerAdapterMap)).concat(GF(x.fulfillmentAdapterFactoryMap)).concat(GF(x.slotAdapterFactoryMap)).concat(GF(x.layoutRenderingAdapterFactoryMap))};
GF=function(x){var G=[];x=_.l(x.values());for(var D=x.next();!D.done;D=x.next())D=D.value,D.isAdsControlFlowEventListener&&G.push(D);return G};
K1=function(x){var G=x.slotId,D=x.slotType,K=x.slotPhysicalPosition;return G===void 0?new Dk("Cannot construct a slot due to the missing id.",{adSlotMetadata:x}):D===void 0?new Dk("Cannot construct a slot due to the missing type.",{adSlotMetadata:x}):K===void 0?new Dk("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:x}):{slotId:G,slotType:D,slotPhysicalPosition:K,managerLayer:"external",adSlotLoggingData:x.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new zYQ}};
aGf=function(x){var G=x.layoutId,D=x.layoutType;return G===void 0?new zF("Cannot construct a layout due to the missing id.",{adLayoutMetadata:x}):D===void 0?new zF("Cannot construct a layout due to the missing type.",{adLayoutMetadata:x}):{layoutId:G,layoutType:D,managerLayer:"external",adLayoutLoggingData:x.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new zYQ,interactionLoggingAdsClientData:{}}};
ov$=function(x){if((x=x.value)&&x.querySelector("img")){var G=x.querySelector("img");G.addEventListener("error",function(){DIf(G.src).then(function(D){(D=_.L9(D).toString())?G.src=D:G.removeAttribute("src")}).catch(function(){G.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
oy=function(x,G){if(G&&(y8D(G.viewableCommand)||y8D(G.endOfSessionCommand))){x=x.value;var D=lGD(G==null?void 0:G.viewableCommand);G=lGD(G==null?void 0:G.endOfSessionCommand);if(!ay){var K=_.Gz("custom_active_view_tos_timeout_ms");ay=K>0&&K!==36E5?new c8E(T3h(),K):new c8E(T3h())}Wtn(ay,x);eYL(ay,x,D,G)}};
y4=function(x){ay&&Wtn(ay,x.value)};
T3h=function(){var x=_.Am("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(x==null?void 0:x.length)===2?x[1]:null};
y8D=function(x){x=_.jn(x);return!(x==null||!x.loggingUrls)&&x.loggingUrls.length>0};
lGD=function(x){if(!x)return[];var G=[],D,K;((K=(D=_.jn(x))==null?void 0:D.loggingUrls)!=null?K:[]).forEach(function(z){z.baseUrl&&G.push(z.baseUrl)});
return G};
Zan=function(x){return x.shorts.isDesktopSmallWidth};
_.M4E=function(x){return x.shorts.isWatchWhileMode};
_.lQ=function(x){return x.shorts.isFullscreen};
_.cb=function(x){return x.shorts.isShortsPipActive};
pIC=function(x){var G,D;if(x=(G=_.Y(x.reelsAdCardButtoned,Q1D))==null?void 0:(D=G.animatedRenderingConfig)==null?void 0:D.easeOutSeconds)return x+"s"};
baE=function(x,G,D){return _.T(function(K){return K.return(new Promise(function(z){var y=new Image;y.onload=function(){z(new V4L(x,G,D,y.naturalWidth,y.naturalHeight))};
y.src=D.toString()}))})};
LtD=function(x,G){return Math.round(x/1E-5)===Math.round(G/1E-5)};
B3O=function(x,G){return Math.round(x/1E-5)===Math.round(G/1E-5)};
r8$=function(x,G){return x.year===G.year&&x.month===G.month&&x.day===G.day};
s1n=function(x,G){return x.year!==G.year?x.year<G.year:x.month!==G.month?x.month<G.month:x.day<G.day};
mbP=function(x){return x.day===YZf(x.year,x.month)?x.month===11?{year:x.year+1,month:0,day:1}:{year:x.year,month:x.month+1,day:1}:{year:x.year,month:x.month,day:x.day+1}};
HaO=function(){var x=new Date,G={year:x.getFullYear(),month:x.getMonth(),day:x.getDate()};return{start:G,end:{year:x.getFullYear()+2,month:x.getMonth(),day:x.getDate()},selectedDate:mbP(G)}};
$bL=function(x){return(new n3(2)).format(new Date(x.year,x.month,x.day))};
Fth=function(x){return{year:x.getFullYear(),month:x.getMonth(),day:x.getDate()}};
CRQ=function(x,G){x=(x+(Number(G.utcOffsetSec)+(new Date(x*1E3)).getTimezoneOffset()*60))*1E3;G=Fth(new Date(x));return{date:G,secondsSinceMidnight:Math.floor((x-(new Date(G.year,G.month,G.day)).getTime())/1E3)}};
IGD=function(x,G){G=G.months.findIndex(function(D){return D.year===x.year&&D.month===x.month});
return G>=0?G:void 0};
j1Q=function(x){if(!x)return!1;try{if(x.host&&x.host.tagName==="YT-FORMATTED-STRING"&&x.host.id==="contenteditable-textarea"||x.nodeType===Node.ELEMENT_NODE&&x.tagName==="YTD-COMMENTBOX")return!0}catch(G){return!1}return j1Q(x.parentNode)};
TF=function(x){return x?!(x.tagName!=="A"||!x.href||!x.classList.contains("yt-simple-endpoint")):!1};
Oa$=function(x){return x?x.tagName==="IMG"&&x.classList.contains("emoji"):!1};
XIL=function(x,G,D){if(!x)return null;var K=TF(x);if(K&&D)return G=x.pathname.substring(x.pathname.indexOf("/channel/")+9),document.createTextNode("@"+G);if(K&&!D)return document.createTextNode("");if(Oa$(x))return D=x.alt,x=x.dataset.emojiId,!x&&G&&(G=_.Wb(G,D))&&G.isCustomEmoji&&(x=G.emojiId),x?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+x+">"):document.createTextNode(D);K=x.cloneNode(!1);for(var z=0;z<x.childNodes.length;++z){var y=XIL(x.childNodes[z],G,D);y&&K.appendChild(y)}return K};
e8=function(x){return x?TF(x)?x:e8(x.lastChild):null};
A8f=function(x){return x?TF(x)?x:A8f(x.firstChild):null};
UbE=function(x){if(!x)return null;for(var G=x.previousSibling;G;)if(G.nodeType===Node.ELEMENT_NODE&&G.nodeName==="BR")G=G.previousSibling;else if(G.nodeType===Node.TEXT_NODE&&/\s+/.test(G.textContent))G=G.previousSibling;else break;(G=e8(G))?x=G:x=(x=x.parentNode)?e8(x.previousElementSibling):null;return x};
RYD=function(x){if(!x)return null;for(var G=x.nextSibling;G;)if(G.nodeType===Node.ELEMENT_NODE&&G.nodeName==="BR")G=G.nextSibling;else if(G.nodeType===Node.TEXT_NODE&&/\s+/.test(G.textContent))G=G.nextSibling;else break;return(G=A8f(G))?G:RYD(x.parentNode)};
SZD=function(x){var G=_.Zk(),D=G.JSC$9250_getStartNode();if(!j1Q(D.parentNode))return null;G=G.JSC$9250_getStartOffset();if(D.nodeType===Node.TEXT_NODE){var K=_.Xn(D,TF);if(K){if(x&&G===0||!x&&G===D.length)return K}else{if(x&&G===D.length)return!D||D.nodeName==="BR"||D.nextElementSibling&&_.MX(D.nextElementSibling,"display")==="block"?null:A8f(D.nextElementSibling);if(!x&&G===0)return D?e8(D.previousElementSibling):null}}if(D.nodeType===Node.ELEMENT_NODE)if(x){if(0<=G&&G<D.childNodes.length)return A8f(D.childNodes[G])}else if(0<
G&&G<=D.childNodes.length)return e8(D.childNodes[G-1]);return null};
nvC=function(x,G,D){if(!x)return null;if(x.nodeType===Node.TEXT_NODE)if(D){var K=UbE(x);if(K&&!/^\s+\S/.test(x.wholeText.substr(0,G)))return K}else if((K=RYD(x))&&!/\S\s+/.test(x.wholeText.substr(G,x.wholeText.length)))return K;return x.nodeType===Node.ELEMENT_NODE?D?UbE(x.childNodes[G]):RYD(x.childNodes[G]):nvC(x.parentNode,G,D)};
ian=function(x){if(x.hasChildNodes())switch(x.tagName){case "DIV":case "A":case "SPAN":var G="";for(x=x.firstChild;x;x=x.nextSibling)G+=ian(x);return G;default:return""}else switch(x.nodeType){case 3:return x.textContent;default:return""}};
Q4=function(x,G){return x.year===G.year&&x.month===G.month&&x.day===G.day};
p1=function(x,G){return x.year!==G.year?x.year<G.year:x.month!==G.month?x.month<G.month:x.day<G.day};
gvD=function(x){return{year:x.getFullYear(),month:x.getMonth(),day:x.getDate()}};
uPn=function(x){var G=U6V;G=G===void 0?U6V:G;G(new Date(x.year,x.month,x.day))};
V4=function(x){return gvD(new Date(Number(x.seconds)*1E3))};
dbE=function(x){return x.year!==void 0&&x.month!==void 0&&x.day!==void 0};
wIf=function(x){return x.start!==void 0&&x.end!==void 0};
qZ$=function(x){return wIf(x)?x.start:x};
N3V=function(x){return wIf(x)?x.end:void 0};
J83=function(x,G){for(var D=[],K=new Date(x.start.year,x.start.month);K.getFullYear()<x.end.year||K.getFullYear()===x.end.year&&K.getMonth()<=x.end.month;){var z=D,y=z.push,c=K.getFullYear(),W=K.getMonth(),e=x,Q=G,p=void 0,V=[],L=Object.freeze({extraCssClass:"invisible"}),r=new Date(c,W),H=gvD(r);r=r.getDay();for(var O=gvD(new Date);H.month===W;){r!==vvQ&&p||(p=Array.from({length:7}).fill(L),V.push(p));var A={date:{year:c,month:W,day:H.day},extraCssClass:"",debugClass:""};A.extraCssClass=Q(A.date,
H,O,e).trim();p[(r-vvQ+7)%7]=A;H=H.day===YZf(H.year,H.month)?H.month===11?{year:H.year+1,month:0,day:1}:{year:H.year,month:H.month+1,day:1}:{year:H.year,month:H.month,day:H.day+1};r=(r+1)%7}y.call(z,{weeks:V,monthLabel:bQ.SHORTMONTHS[W]+" "+c,year:c,month:W,monthLabelExtraCssClass:V[0][2]===L?"shift-down-label":""});K.setMonth(K.getMonth()+1)}return D};
fGE=function(x,G){G=G.months.findIndex(function(D){return D.year===x.year&&D.month===x.month});
return G>=0?G:void 0};
kN3=function(x,G){a:{var D=D===void 0?[2,3]:D;D=_.l(D);for(var K=D.next();!K.done;K=D.next()){var z=new Date;if((new t4P(K.value)).parse(G,z,{validate:!0})){z.setHours(0,0,0,0);G=z;break a}}G=null}if(!G)return{isValid:!1,value:void 0};G=gvD(G);D=x.end;return p1(G,x.start)||p1(D,G)?{isValid:!1,value:void 0}:{isValid:!0,value:G}};
G9D=function(x){var G=PRd;G=G===void 0?EvV:G;var D=x.columnsToShow||[],K=hYL(x.columnDimensions,x.columnsToShow,x.leftFloatingColumns,G);return D.map(function(z,y){var c=x.columns[z];if(c===void 0)throw Error("Jh");var W=K?K[y]:"";var e=x.getCustomTooltip?x.getCustomTooltip(z,c.headerTooltipParagraphs):c.headerTooltipParagraphs;var Q=xAQ(x,z);return{type:z,index:y,style:W,classes:Q,headerName:c.headerName||"",headerIcon:c.headerIcon,headerTooltipParagraphs:e||[],headerTooltipHelpContext:c.headerTooltipHelpContext,
sortOrders:c.sortOrders||[],selectionState:c.isSelectionCheckbox?x.selectionState:void 0}})};
xAQ=function(x,G){var D=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],K=x.columns[G];if(K===void 0)return"";var z=D.includes("DEFAULTS")&&K.cssClass?[K.cssClass]:[];if(D.includes("SORTING")){K.sortOrders&&K.sortOrders.length&&z.push("sortable");if(x.sorting&&x.sorting.columnType===G)a:switch(x.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var y="column-sorted";break a;default:y=""}else y="";y&&z.push(y)}D.includes("FLOATING")&&(G=x.columnsToShow.indexOf(G),x.leftFloatingColumns&&G<x.leftFloatingColumns&&
z.push("floating-column"),x.leftFloatingColumns&&G===x.leftFloatingColumns-1&&z.push("last-floating-column"));D.includes("RIGHT_ALIGN")&&K.rightAlignHeader&&z.push("right-align");return z.filter(function(c){return c}).join(" ")};
hYL=function(x,G,D,K){D=D===void 0?0:D;K=K===void 0?EvV:K;if(x){var z=[],y=0;DAf(x,G,K).forEach(function(c,W){var e="min-width:"+c.minWidth+"px;padding-left:"+c.paddingLeft+"px;padding-right:"+c.paddingRight+"px;flex:"+c.flexGrow+" 0 "+c.minWidth+"px;";c.maxWidth!==Infinity&&(e=[e,"max-width:"+c.maxWidth+"px;"].join(""));y>0&&W<D&&(e=[e,"left:"+y+"px;"].join(""));z.push(e);y+=c.minWidth+c.paddingLeft+c.paddingRight});
return z}};
DAf=function(x,G,D){D=D===void 0?EvV:D;return G.map(function(K,z){K=x&&x[K]||{};var y=z===0?D.paddingLeftFirstColumn:D.padding;K.paddingLeft!==void 0&&(y=K.paddingLeft);z=z===G.length-1?D.paddingRightLastColumn:D.padding;K.paddingRight!==void 0&&(z=K.paddingRight);return{paddingLeft:y,paddingRight:z,minWidth:K.minWidth!==void 0?K.minWidth:D.minWidth,maxWidth:K.maxWidth!==void 0?K.maxWidth:D.maxWidth,flexGrow:K.flexGrow!==void 0?K.flexGrow:D.flexGrow}})};
K0n=function(x){var G=x.reduce(function(K,z){var y=z.columnId,c={};z.headerText&&(c.headerName=_.u7(z.headerText));z.rightAlignHeader&&(c.rightAlignHeader=z.rightAlignHeader);var W;if((W=z.headerIcon)==null?0:W.iconType)c.headerIcon=_.aP(z.headerIcon.iconType);K[y]=c;return K},{}),D=x.filter(function(K){return!K.hideColumn}).map(function(K){return K.columnId});
x=x.filter(function(K){return!!K.dimensions}).reduce(function(K,z){K[z.columnId]=z.dimensions;
return K},{});
return{columns:G,columnsToShow:D,columnDimensions:x}};
_.zdf=function(x){return x?x.simpleText?x.simpleText:x.runs?x.runs.map(function(G){return G.text}).join(""):"":""};
cqO=function(x){var G=x.data;var D=x.onTap;var K=x.isSelected;var z=x.onFocusIn;if(!G)return{};x=a1f(G);K===void 0&&(K=G==null?void 0:G.isSelected);var y;return{text:ow3(G,x),startIcon:(y=G.icon)==null?void 0:y.iconType,state:K?0:2,type:0,onTap:yqf(G,D),accessibilityLabel:l1C(G,x),onFocusIn:function(){return z==null?void 0:z()}}};
ow3=function(x,G){if(!G)return x.text?_.zdf(x.text):void 0};
yqf=function(x,G){return function(D){G==null||G(D,x)}};
a1f=function(x){x=x.style&&x.style.styleType;return!TFn&&x==="STYLE_EXPLORE_LAUNCHER_CHIP"};
l1C=function(x,G){if(G){var D,K,z;return(z=(D=x.accessibilityData)==null?void 0:(K=D.accessibilityData)==null?void 0:K.label)!=null?z:ow3(x,!1)}};
L1=function(x){return{signalAction:{signal:x}}};
Z0D=function(){return _.Am("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?W0f:_.edE};
M0f=function(x,G){x=x===void 0?"SOFT_RELOAD_PAGE":x;G=G===void 0?49504:G;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.tN(_.Wg("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:G}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:x}}]}}}};
QvQ=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.tN(_.Wg("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:Z0D()}};
pN$=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.tN(_.Wg("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:Z0D()}};
V0f=function(x,G){var D=_.tN(_.Wg("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),K=_.tN(_.Wg("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),z={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.tN(_.Wg("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};z.serviceEndpoint=x?x:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[L1("SOFT_RELOAD_PAGE")]}};return{title:D,bodyText:K,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:z},
style:{value:G!=null?G:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
L0Q=function(x){x=x===void 0?{}:x;return{title:_.tN(x.localizedZeroStateTitleText===void 0?"":x.localizedZeroStateTitleText),bodyText:_.tN(x.localizedZeroStateMessage===void 0?"":x.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.tN(x.localizedZeroStateButtonText===void 0?"":x.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[b0O]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
_.svC=function(x,G,D,K,z,y,c,W){K=K===void 0?!1:K;z=z===void 0?!1:z;y=y===void 0?0:y;c=c===void 0?-Infinity:c;W=W===void 0?!1:W;var e=[],Q=_.tN(_.Wg("SMART_DOWNLOADS",void 0,"Smart downloads"));c=_.tN(BF$(y,c,x.length));y=void 0;K?y=x.length>0?rqL(x,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.B("kevlar_manual_downloads_above"),Q,c):W?{alertBannerViewModel:{heading:{content:D.localizedOptInBannerTitleText===void 0?"":D.localizedOptInBannerTitleText},body:{content:D.localizedPromptMessage===
void 0?"":D.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Wg("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.Wg("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:_.PKC}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:{backgroundPromoRenderer:{bodyText:_.tN(_.Wg("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"}}}:z&&(y={alertBannerViewModel:{heading:{content:D.localizedOptInBannerTitleText===void 0?"":D.localizedOptInBannerTitleText},body:{content:D.localizedOptInMessage===
void 0?"":D.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Wg("TURN_ON",void 0,"Turn on"),accessibilityText:_.Wg("TURN_ON",void 0,"Turn on"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:127983}},onTap:{innertubeCommand:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:127982}}}}}});D=_.tN(_.Wg("YOUR_DOWNLOADS",void 0,"Your downloads"));z=void 0;G.length>0?(z=void 0,_.B("kevlar_display_downloads_numbers")&&(z=_.tN(_.e7("VIDEO_COUNT",G.length))),z=rqL(G,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,D,z)):K||x.length||(z={backgroundPromoRenderer:{bodyText:_.tN(_.Wg("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}}}});y&&!_.B("kevlar_manual_downloads_above")&&e.push({richSectionRenderer:{content:y,loggingDirectives:{clientVeSpec:{uiType:139572}}}});z&&e.push({richSectionRenderer:{content:z,loggingDirectives:{clientVeSpec:{uiType:51721}}}});y&&_.B("kevlar_manual_downloads_above")&&e.push({richSectionRenderer:{content:y,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(G.length>0||K&&x.length>0)&&e.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.tN(_.Wg("DOWNLOADS_AVAILABILITY",
void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}},loggingDirectives:{clientVeSpec:{uiType:133683}}}}}});return{contents:e}};
_.mAE=function(x){return YyL(x,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.H0Q=function(x){return YyL(x,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
YyL=function(x,G){var D=[];x=rqL(x,G,!0);D.push({richSectionRenderer:{content:x}});return{contents:D}};
rqL=function(x,G,D,K,z){D=D===void 0?!1:D;var y="RESPONSIVE_SIZE_STANDARD";_.B("kevlar_modern_downloads_compact")?y="RESPONSIVE_SIZE_COMPACT":_.B("kevlar_modern_downloads_extra_compact")&&(y="RESPONSIVE_SIZE_EXTRA_COMPACT");x={isExpanded:D,contents:Bb(x),entitySelectorType:G,responsiveContainerConfiguration:{responsiveSize:y}};K&&(x.title=K);z&&(x.subtitle=z);D||(_.B("kevlar_smart_downloads_show_more_button")?(x.showMoreButton={buttonRenderer:{accessibility:{label:_.Wg("SHOW_MORE",void 0,"Show more")},
icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.tN(_.Wg("SHOW_MORE",void 0,"Show more"))}},x.showLessButton={buttonRenderer:{accessibility:{label:_.Wg("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.tN(_.Wg("SHOW_LESS",void 0,"Show less"))}}):(x.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.Wg("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}}}},x.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.Wg("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}}}},x.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.Wg("VIEW_ALL",void 0,"View all"),accessibilityText:_.Wg("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:JN("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:x}};
Bb=function(x){var G=[];x=_.l(x);for(var D=x.next();!D.done;D=x.next())if(D=D.value,Xph(D)){var K=G,z=K.push;var y=void 0;if(D==null?0:(y=D.videoEntity)==null?0:y.videoId){y=OA(_.wK().getState(),D.videoEntity.videoId);var c=_.wK().getState();var W=_.K3(D.videoEntity.videoId,"mainVideoEntity");c=!!_.L3(c.entities)[W];c={videoId:D.videoEntity.videoId,title:kO(D.videoEntity.title),shortBylineText:kO(D.channelEntity.title),thumbnail:D.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:c&&_.B("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:XRE(D.videoEntity.videoId,y,D.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.Wg("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};D.videoEntity.lengthSeconds&&(c.thumbnailOverlays=xZ3(D.videoEntity.lengthSeconds,y));c.isWatched=y>0;_.B("kevlar_modern_downloads_page")&&(c.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:D.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.Wg("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},c.badges=void 0);D=c}else D={};z.call(K,{richItemRenderer:{content:{videoRenderer:D},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(OgC(D)){K=G;z=K.push;var e=W=y=void 0,Q=void 0,p=void 0,V=void 0,L=void 0,r=void 0,H=void 0,O=void 0,A=void 0,g=void 0;c=D.mainPlaylistEntity.playlistId;var u=D==null?void 0:(g=D.mainPlaylistEntity)==null?void 0:(A=g.thumbnailStyleData)==null?void 0:(O=A[0])==null?void 0:(H=O.value)==null?void 0:(r=H.collageThumbnail)==
null?void 0:r.coverThumbnail;if(c&&u){r=ADV(c);!_.B("enable_offline_playlist_page")&&(D==null?0:(L=D.mainPlaylistEntity)==null?0:L.videos)&&(L=D==null?void 0:(V=D.mainPlaylistEntity)==null?void 0:(p=V.videos)==null?void 0:p[0],p=_.x_(L).entityId,p=JSON.parse(p).videoId,p!==void 0&&(V=OA(_.wK().getState(),p),r=_.fW(p,c,void 0,void 0,V)));p=[];if(D==null?0:(Q=D.mainPlaylistEntity)==null?0:(e=Q.videos)==null?0:e.length)p=[AzE(),Object.assign({},(W=Xod(D==null?void 0:D.mainPlaylistEntity.videos.length))!=
null?W:{})];D={playlistId:c,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:u}},navigationEndpoint:r,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:p,title:kO(D.mainPlaylistEntity.title),shortBylineText:kO(D==null?void 0:(y=D.channelEntity)==null?void 0:y.title),badges:[{metadataBadgeRenderer:{label:_.Wg("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.B("kevlar_modern_downloads_page")&&(D.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:$A$,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:c,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Wg("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},D.badges=void 0)}else D=void 0;z.call(K,{richItemRenderer:{content:{playlistRenderer:D},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return G};
BF$=function(x,G,D){x=x?F0P(x):"";G!==void 0&&isFinite(G)?G===0?G=_.Wg("UPDATING",void 0,"Updating..."):(G=hz3(new Date(G),new Date),G=_.Wg("UPDATED_TIME",{relative_time:G},"Updated "+G)):G="";var K="";x&&G&&(K=" \u2022 ");if(D&&_.B("kevlar_display_downloads_numbers")){D=_.e7("VIDEO_COUNT",D);if(x||G)K=" \u2022 ";return D+K+x+K+G}return x+K+G};
C3n=function(x){return YdD(x.entities).length};
_.I1Q=function(x,G){var D=JAD(x.responsiveSize),K;x=!((K=x.responsiveMap)==null||!K.some(function(z){return z.containerSize==="CONTAINER_SIZE_NARROW"&&z.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:G,sizing:D,enableFullBleedForSingleCol:!1,isCompactList:D==="COMPACT"&&x}};
jvP=function(x,G){return _.zm(x.entities,"votingEntity",G)};
O0Q=function(x){if(x){var G;return((G=_.Eo().resolve(_.P6(_.ib)))==null?0:G())?x.darkTheme:x.lightTheme}};
XNQ=function(x,G){if(x.simpleText)return Object.assign({},x,{simpleText:Sn(x.simpleText,G)});if(!x.runs)return x;for(var D=Object.assign({},x,{runs:[]}),K=0,z=_.l(x.runs),y=z.next();!y.done;y=z.next())if(y=y.value,y.text)if(K+y.text.length<=G)D.runs.push(y),K+=y.text.length;else return D.runs.push(Object.assign({},y,{text:Sn(y.text,G-K)})),D;return x};
Aqf=function(x,G){return _.zm(x.entities,"chipBarStateEntity",G)};
UAh=function(x,G){return _.zm(x.entities,"chipEntity",G)};
Syn=function(x,G,D,K){return function(){var z=Rdd.has(x.displayType)&&x.selected,y=z&&x.deselectCommand?x.deselectCommand:x.tapCommand;!y||z&&K||_.UI(y,{form:{element:G==null?void 0:G.value}});D==null||D()}};
nwn=function(x){switch(x){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""}};
i0d=function(x,G){return{triggeringElement:x,onDwellTriggeredFn:function(){var D={triggeringElement:x,loadVideoPreviewEventData:G},K=document.querySelector(".video-preview");K&&K.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:D}))},
onDwellEndFn:function(){var D=document.querySelector(".video-preview");D&&D.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
gwf=function(x,G){var D=_.Eo().resolve(_.P6(AAE)),K=function(){var z=G();return D&&z?i0d(x.value,z):null};
_.$9(function(){var z=K();D&&z&&Promise.resolve().then(function(){D.registerElement(z)});
_.Fq(function(){D&&z&&Promise.resolve().then(function(){D.unregisterElement(z)})})})};
dAh=function(x){var G=x.dataset.resizeObserverId;if(G)return G;G=""+u9f++;return x.dataset.resizeObserverId=G};
wNC=function(x,G){var D=dAh(x);rj.has(D)||rj.set(D,new Set);rj.get(D).add(G);sH.has(D)&&G(Object.assign({},{target:x},sH.get(D)))};
qy3=function(x){x=_.l(x);for(var G=x.next();!G.done;G=x.next()){G=G.value;var D=dAh(G.target),K=Object.assign({},{target:G.target},sH.get(D));if(K!=null&&K.contentRect?K.contentRect.width!==G.contentRect.width||K.contentRect.height!==G.contentRect.height:1)for(sH.set(D,{borderBoxSize:G.borderBoxSize,contentBoxSize:G.contentBoxSize,contentRect:G.contentRect,devicePixelContentBoxSize:G.devicePixelContentBoxSize}),D=_.l(rj.get(D)||[]),K=D.next();!K.done;K=D.next())K=K.value,K(G)}};
vwP=function(){return Y5?Y5:Y5=new NFf(qy3)};
JqL=function(x,G){var D=dAh(x);rj.has(D)&&(rj.get(D).delete(G),rj.get(D).size===0&&(rj.delete(D),sH.delete(D),Y5.unobserve(x),delete x.dataset.resizeObserverId));rj.size===0&&Y5&&(Y5.disconnect(),Y5=void 0)};
t0E=function(x,G){var D=_.Eo().resolve(kq);return f1E.map(function(K){return D.observe(x,G,K)})};
k9Q=function(x){var G=_.Eo().resolve(kq);x.forEach(function(D){G.unobserveByKey(D)})};
_.hdf=function(x,G){var D=Object.assign({},P3f,G);G=_.l(jAE());var K=G.next().value,z=G.next().value,y=function(c){var W=c.contentRect.height;if((c=c.contentRect.width)||W||D.canHaveZeroSize)K.width()===c&&K.height()===W||z(K,{height:W,width:c})};
_.FQ(function(){var c=x instanceof HTMLElement?x:x.value,W=Ewd(y,D.throttleMs),e=[];D.useVisibilityObserver&&(e=t0E(c,function(Q,p){requestAnimationFrame(function(){p==="visible"?(wNC(c,W),vwP().observe(c)):JqL(c,W)})}));
e.length||(wNC(c,W),vwP().observe(c));_.Fq(function(){e.length&&(k9Q(e),e.length=0);JqL(c,W)})});
return K};
GoP=function(x){var G=x.data;var D=x.callback;var K=x.enableSingleChipSelection;var z=x.disableChipsScrollAnimation;var y=_.Ni(),c=IE(!1),W=IE(0);x={};x=_.l(ys(G.autoselectedChipIndex!=null?(x[G.autoselectedChipIndex]=!0,x):{}));var e=x.next().value,Q=x.next().value,p=function(){var bO=y.value;return bO==null||bO.scrollLeft-1<=0},V=function(){var bO=y.value;
return bO==null?!1:bO.scrollLeft+1>=(bO==null?NaN:bO.scrollWidth)-(bO==null?NaN:bO.clientWidth)};
x=_.l(ys(p()));var L=x.next().value,r=x.next().value;x=_.l(ys(V()));var H=x.next().value,O=x.next().value;x=G.isHorizontallyScrollable;var A=function(bO){y.value!=null&&(_.Am("HTML_DIR")==="rtl"&&(bO=-bO),y.value.scrollBy({left:bO,behavior:z?"instant":"smooth"}))},g=function(){A(-320)},u=function(){A(320)},f=_.WH(function(bO){c.value=!0;
W.value=bO.clientX}),v=_.WH(function(bO){if(c.value){bO=bO.clientX;
var mE=bO-W.value;W.value=bO;var jf;(jf=y.value)==null||jf.scrollBy({left:-mE})}}),P=_.WH(function(){var bO=p(),mE=V();
bO!==L&&r(bO);mE!==H&&O(mE)});
t2("pointerup",function(){c.value&&(c.value=!1)});
var k={},cL={};return _.M("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},ka(G.title,function(){return _.M("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.M("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},G.title),xQD(G.overflowButton))}),_.M("div",{class:"ytChipsShelfViewModelChipsShelfContent"},ka(G.previousButton!=null,function(){var bO={};
return _.M("div",{class:_.cH("ytChipsShelfViewModelLeftArrowContainer",(bO.ytChipsShelfViewModelLeftArrowContainerIsHidden=L,bO))},xQD(G.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:g}}))}),_.M("div",{el:y,
"on:pointerdown":f,"on:pointermove":v,"on:scroll":P,class:_.cH("ytChipsShelfViewModelChipsScrollContainer",(k.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!x,k))},_.M("div",{class:_.cH("ytChipsShelfViewModelChipsContainer",(cL.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!x,cL.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!x&&!1,cL))},(G.contents||[]).map(function(bO,mE){return _.M("div",{class:"ytChipsShelfViewModelChipWrapper"},xQD(bO,
{chipViewModel:{callback:function(jf,$C){if(K){var OD={};Q((OD[mE]=$C,OD))}else OD={},Q(Object.assign({},e,(OD[mE]=$C,OD)));D==null||D(jf,$C,mE)},
disableDeselection:K,selected:!!e[mE]}}))}))),ka(G.nextButton!=null,function(){var bO={};
return _.M("div",{class:_.cH("ytChipsShelfViewModelRightArrowContainer",(bO.ytChipsShelfViewModelRightArrowContainerIsHidden=H,bO))},xQD(G.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:u}}))})))};
K2f=function(x,G,D,K,z){x=G?x.switchOffCommand:x.switchOnCommand;if(K&&z)DQP(x,D,z);else{var y,c;(y=_.XB({elementsCommand:x}))==null||(c=y.onclick)==null||c.call(y,D)}};
DQP=function(x,G,D){x=_.XB({elementsCommand:x,additionalCommandArgs:{commandController:{onSuccess:function(){D(!1)},
onServerError:function(){D(!1)}}}});
if(x==null?0:x.onclick)x.onclick(G),D(!0)};
a3D=function(x){if(x)return _.Y(x,zIL)};
TSD=function(x,G,D){if(G)return[oxh];switch(x){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[mI];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return D?[mI]:[yP3,mI];case "TRANSFER_STATE_PAUSED_BY_USER":return[l3C,mI];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[cPd,mI];default:return[oxh]}};
W2D=function(x,G,D,K){return TSD(x,G,K).map(function(z){var y=z.text,c=z.iconType,W=z.videoAction;z=z.playlistAction;y=y?{content:y}:void 0;c=c&&{sources:[{clientResource:{imageName:c}}]};var e=(0,_.YS.unsafeClone)(D);if(e){var Q=_.Y(e,_.zx),p=_.Y(e,_.oO);Q&&W?Q.action=W:p&&z&&(p.action=z)}return{title:y,leadingImage:c,rendererContext:e&&{commandContext:{onTap:{innertubeCommand:e}}}}})};
eI$=function(x){x=_.SU(x.rendererContext);var G;return(G=_.Y(x,_.oO))==null?void 0:G.playlistId};
ZKL=function(x){var G;return(G=x.listItems)==null?void 0:G.some(function(D){var K;return _.ns((K=_.Y(D,_.Wq))==null?void 0:K.rendererContext)})};
Q2Q=function(x){var G;return(G=x.listItems)==null?void 0:G.some(function(D){D=_.Y(D,_.Wq);return!!_.Y(D==null?void 0:D.leadingAccessory,M6f)})};
Hb=function(x){var G=_.Eo().resolve(_.P6(_.ib));return G!=null&&G()?x.darkThemeColorPalette:x.lightThemeColorPalette};
FD=function(x){return{primaryTextColor:$5(x,0),secondaryTextColor:$5(x,1),optionColor:$5(x,2),backgroundColor:$5(x,3),videoBackgroundColor:$5(x,4)}};
$5=function(x,G){if(x){switch(G){case 0:x=x.primaryTitleColor;break;case 1:x=x.secondaryTitleColor;break;case 2:x=x.surgeColor;break;case 3:x=x.section2Color;break;case 4:x=x.section3Color;break;default:return}if(x)return _.In(x)}};
pJd=function(x){return x?_.jT(x):""};
V6n=function(x){return(x==null?void 0:x.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
bKL=function(x,G){var D;return"linear-gradient(to bottom, "+((D=G==null?void 0:G.map(function(K){var z=x?K.darkThemeColor:K.lightThemeColor;return z?_.jT(z)+" "+((K==null?void 0:K.startLocation)||0)*100+"%":"transparent"}))==null?void 0:D.join(", "))+")"};
L2P=function(x,G,D,K,z){if(!((K==null?0:K.height)&&(K==null?0:K.width)))return{size:0};var y=K.width;K=K.height;if(z)return G==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||G==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&y>K?{size:312/ywE}:G==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(D!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||x!==1&&x!==2||G!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&G!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&G!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(G==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||G==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||K===y)switch(x){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(G==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||K>y)switch(x){case 1:case 3:return{size:240*oFL};default:return{size:360*oFL}}switch(x){case 1:case 2:return{size:1/ywE*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.BSf=function(x){if(!("matchMedia"in window))return _.iM(Error("Kh")),function(){return!1};
var G=window.matchMedia(x);x=_.l(_.eO(G.matches,void 0,"jLJc8e"));var D=x.next().value,K=x.next().value,z=function(y){K(y.matches)};
G.addEventListener?(G.addEventListener("change",z),_.Fq(function(){G.removeEventListener("change",z)})):G.addListener&&(G.addListener(z),_.Fq(function(){G.removeListener(z)}));
return D};
rPh=function(x){return x==="IMAGE_BANNER_STYLE_INSET"||x==="IMAGE_BANNER_STYLE_UNKNOWN"};
s2D=function(){if(!("matchMedia"in window))return _.iM(Error("Kh")),function(){return 0};
var x=CT(function(){return window.matchMedia("(max-width: 527.9px)")}),G=CT(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),D=CT(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),K=CT(function(){return window.matchMedia("(min-width: 1024px)")}),z=_.l(_.eO(x.matches,void 0,"og9kEc")),y=z.next().value,c=z.next().value;
z=_.l(_.eO(G.matches,void 0,"ybDWCb"));var W=z.next().value,e=z.next().value;z=_.l(_.eO(D.matches,void 0,"o0Gfh"));var Q=z.next().value,p=z.next().value;z=_.l(_.eO(K.matches,void 0,"yqUUgd"));var V=z.next().value,L=z.next().value,r=CT(function(){return function(g){c(g.matches)}}),H=CT(function(){return function(g){e(g.matches)}}),O=CT(function(){return function(g){p(g.matches)}}),A=CT(function(){return function(g){L(g.matches)}});
_.FQ(function(){x.addEventListener?(x.addEventListener("change",r),G.addEventListener("change",H),D.addEventListener("change",O),K.addEventListener("change",A)):x.addListener&&(x.addListener(r),G.addListener(H),D.addListener(O),K.addListener(A));_.Fq(function(){x.removeEventListener?(x.removeEventListener("change",r),G.removeEventListener("change",H),D.removeEventListener("change",O),K.removeEventListener("change",A)):x.removeListener&&(x.removeListener(r),G.removeListener(H),D.removeListener(O),
K.removeListener(A))})});
return function(){return y()?1:W()?2:Q()?3:V()?4:0}};
YSd=function(x){var G=0;x=_.l([x.title,x.metadata,x.actions,x.description,x.attribution]);for(var D=x.next();!D.done;D=x.next())D.value&&G++;return G};
mQE=function(x){return x===1||x===2?1:0};
$QO=function(x){var G,D=((G=_.Eo().resolve(_.P6(_.ib)))==null?0:G())&&x.data.darkThemeImage?x.data.darkThemeImage:x.data.image;G=_.M("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.M("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},D?_.M(_.wk,{data:D,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),HKQ(x.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));D=_.M(_.vq,{text:x.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var K=x.data;if(K.bodyText){var z=[];K=_.l(K.bodyText);for(var y=K.next();!y.done;y=K.next())z.push(_.M(_.vq,{text:y.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else z=_.M(_.xT,null);return _.M("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},G,D,z,HKQ(x.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.M(_.vq,{text:x.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.M(_.vq,{text:x.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
CJQ=function(x){x=(new F2L).parse(x);return(new yz).render(x).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(G){var D=G.split(":").map(Number),K=0,z=0;if(D.length===3)D=_.l(D),K=D.next().value,z=D.next().value,D=D.next().value;else if(D.length===2)D=_.l(D),z=D.next().value,D=D.next().value;else if(D.length===1)D=_.l(D).next().value;else throw Error("Lh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(K*3600+z*60+D)+'" role="button">'+G+"</span>"})};
I3n=function(x){x=_.l(x.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var G=x.next(),D={};!G.done;D={clickHandler$jscomp$4:void 0},G=x.next()){G=G.value;D.clickHandler$jscomp$4=function(z){z=Number(z.target.getAttribute("data-time"));if(isNaN(z))throw Error("Mh");var y;(y=_.Gx())==null||y.seekTo(z,!0)};
var K=function(z){return function(y){y.key!=="Enter"&&y.key!=="Space"||(0,z.clickHandler$jscomp$4)(y)}}(D);
G.setAttribute("tabindex","0");G.removeEventListener("click",D.clickHandler$jscomp$4);G.removeEventListener("keydown",K);G.addEventListener("click",D.clickHandler$jscomp$4);G.addEventListener("keydown",K)}};
j2L=function(){return _.M("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.M(C1,{percentWidth:100}),_.M(C1,{animationDelay:200}),_.M(C1,{animationDelay:400}),_.M(C1,{animationDelay:600}),_.M(C1,{animationDelay:800,percentWidth:60}),_.M("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.M(C1,{percentWidth:100}),_.M(C1,{animationDelay:200}),_.M(C1,{animationDelay:400}),_.M(C1,{animationDelay:600,percentWidth:50}))};
C1=function(x){return _.M("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(x.percentWidth===void 0?100:x.percentWidth)+"%"},_.M("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(x.animationDelay===void 0?0:x.animationDelay)+"ms"}))};
OK$=function(){var x=_.l(_.eO(function(){return""},void 0,"v2wS5e")),G=x.next().value;
return[function(){return G()()},
x.next().value]};
APC=function(x){x=x===void 0?{}:x;return{title:_.tN(x.localizedOptInBannerTitleText===void 0?"":x.localizedOptInBannerTitleText),titleLength:19,subtitle:_.tN(x.localizedOptInMessage===void 0?"":x.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.tN(_.Wg("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:_.tN(_.Wg("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:[XJQ]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
UQL=function(x,G){x=x?F0P(x):"";G!==void 0&&isFinite(G)?G===0?G=_.Wg("UPDATING",void 0,"Updating..."):(G=hz3(new Date(G),new Date),G=_.Wg("UPDATED_TIME",{relative_time:G},"Updated "+G)):G="";var D="";x&&G&&(D=" \u2022 ");return _.tN(x+D+G)};
nxL=function(x,G,D,K,z,y){G=G===void 0?0:G;var c=RIP[G],W=c.title,e=c.iconType,Q=c.topButtonRenderer,p=c.sectionClientVE;c=c.videoClientVE;var V;if(G!==1||x.length){D=[];x=_.l(x);for(K=x.next();!K.done;K=x.next()){var L=K.value;if(Xph(L))D.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:L.videoEntity.videoId,title:kO(L.videoEntity.title),shortBylineText:kO(L.channelEntity.title),thumbnail:L.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:L.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.Wg("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:c}}}}}});else if(OgC(L)){K=D;var r=K.push;var H=void 0,O=void 0,A=void 0,g=void 0,u=void 0,f=void 0,v=void 0,P=void 0,k=L.mainPlaylistEntity.playlistId,cL=L==null?void 0:(P=L.mainPlaylistEntity)==null?void 0:(v=P.thumbnailStyleData)==null?void 0:(f=v[0])==null?void 0:(u=f.value)==null?void 0:(g=u.collageThumbnail)==null?void 0:g.coverThumbnail;g=ADV(k);if(!_.B("enable_offline_playlist_page")&&
(L==null?0:(A=L.mainPlaylistEntity)==null?0:A.videos)){b:{A=L==null?void 0:(O=L.mainPlaylistEntity)==null?void 0:O.videos;O=_.wK().getState().entities;if(A!=null&&A.length&&O)for(A=_.l(A),u=A.next();!u.done;u=A.next())if(u=_.x_(u.value).entityId,(u=JSON.parse(u).videoId)&&r7h(O,u)==="TRANSFER_STATE_COMPLETE"){O=u;break b}O=""}O!==void 0&&(g=OA(_.wK().getState(),O),g=_.fW(O,k,void 0,void 0,g))}O=RrQ(_.Wg("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),ADV(k));L=k&&cL&&O?{playlistId:k,navigationEndpoint:g,
viewPlaylistText:O,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:cL}},title:kO(L.mainPlaylistEntity.title),shortBylineText:kO(L==null?void 0:(H=L.channelEntity)==null?void 0:H.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:SSh,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:k,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Wg("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:c}}}:
void 0;r.call(K,{gridPlaylistRenderer:L})}}c={gridRenderer:{items:D}};G===1&&(V=UQL(z,y))}else if(K){var bO=_.tN((r=D==null?void 0:D.localizedPromptMessage)!=null?r:"");c={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.tN(_.Wg("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.PKC}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.tN(_.Wg("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};V=UQL(z,y)}else bO=_.tN(_.Wg("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
c={};return{contents:[{shelfRenderer:{title:W,titleAnnotation:V,icon:{iconType:e},subtitle:bO,content:c,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:Q}]}}}}],loggingDirectives:{clientVeSpec:{uiType:p}}}};
iKf=function(x,G,D,K,z,y,c,W){D=D===void 0?{}:D;K=K===void 0?!1:K;z=z===void 0?!1:z;y=y===void 0?!1:y;c=c===void 0?0:c;W=W===void 0?-Infinity:W;if(!G.length&&!x.length&&!K)return z?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:L0Q(D)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.tN(_.Wg("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 e=[];x.length&&e.push(nxL(x,0));K?e.push(nxL(G,1,D,y,c,W)):z&&e.push({contents:[{statementBannerRenderer:APC(D)}]});(K&&G.length||x.length)&&e.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.tN(_.Wg("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 e.map(function(Q){return{itemSectionRenderer:Q}})};
Iy=function(x,G){if(typeof x!=="object")return null;x=_.l(Object.entries(x));for(var D=x.next();!D.done;D=x.next()){var K=_.l(D.value);D=K.next().value;K=K.next().value;if(D===G)return D;if(K=Iy(K,G))return D+"."+K}return null};
j8=function(x){var G=x.content;return(x=x.styleRuns)&&G?{runs:x.map(function(D){var K={text:G.slice(D.startIndex,D.startIndex+D.length)};D.fontColor&&(K.textColor=D.fontColor);return K})}:{simpleText:G}};
dQL=function(x,G,D,K){var z=gx$;K&&(x.quantity=K);if(!x.quantity||!x.maxQuantity)return{};K=x.minusButton;var y=x.plusButton,c,W,e,Q;return{value:x.quantity,maxValue:x.maxQuantity,onChangeCallback:function(p){z(x,p)},
minusLabel:(c=_.Y(K,ulV))==null?void 0:c.label,minimumReachedLabel:(W=_.Y(K,ulV))==null?void 0:W.limitReachedLabel,plusLabel:(e=_.Y(y,ulV))==null?void 0:e.label,maximumReachedLabel:(Q=_.Y(y,ulV))==null?void 0:Q.limitReachedLabel,disabled:G,onRemoveCommand:D}};
gx$=function(x,G){var D=x.quantityIncrementerEntityKey;if(D){var K={};K.quantity=G;_.dc(_.sg("quantityIncrementerEntity",D,K));x.onChangeCommand&&_.UI(x.onChangeCommand)}};
wJO=function(x){return _.B("kevlar_comments_clone_data_killswitch")?x:_.YS.unsafeClone(x)};
vxO=function(x,G){(x=qSD(x))&&(G?NSP.push({command:x,sourceData:{},commandContext:void 0}):_.Eo().resolve(_.hm).resolveCommand(x))};
qSD=function(x){return _.Y(x,_.IP)};
JPP=function(){var x=window.performance.timeOrigin+window.performance.now(),G=(new _.OH).setSeconds(x/1E9);return _.Y0(G,2,_.Yi(x%1E9),0)};
XD=function(x,G){var D=_.Y(_.Y(x,_.IP),f3D);D&&(G&&(D.serializedAdditionalMetadata=_.PY(G)),vxO(x,!0))};
t6V=function(x){switch(x){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"}};
kon=function(){return!!_.Am("ID_TOKEN")};
hIO=function(x){return x instanceof Error&&x.cause instanceof PJP&&x.cause.rpcErrorCode!==void 0?!ExQ.includes(x.cause.rpcErrorCode):!0};
GTE=function(){return _.Nh(x43,{authuser:""+(_.Am("SESSION_INDEX")||0)})};
Aj=function(x,G,D,K){D=D===void 0?"MINI_APP_SDK_API_UNSPECIFIED":D;K=K===void 0?"":K;var z=new _.LL;D={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:K,sdkApi:D};x instanceof Error&&(z.message=x.message,z.name=x.name,x.cause instanceof PJP&&x.cause.rpcErrorCode!==void 0&&(D.rpcErrorCode=x.cause.rpcErrorCode));var y;(y=G.onError)==null||y.call(G,{loggingError:z,metadata:D})};
KXL=function(x,G,D,K){switch(x){case "MINI_APP_SOURCE_GAMESNACKS":return new UH(G,D,K);default:return new D4Q(G,D,K)}};
zbn=function(x){switch(x){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"}};
at$=function(x){switch(x){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"}};
oEQ=function(x){switch(x){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"}};
yHn=function(){return Math.floor(Math.random()*4)+1};
ltd=function(x,G,D,K){x=_.l(Object.entries(x));for(var z=x.next(),y={};!z.done;y={message$jscomp$957:void 0},z=x.next()){var c=_.l(z.value);z=c.next().value;c=c.next().value;y.message$jscomp$957=c;G.push(setTimeout(function(W){return function(){K(!1);D(W.message$jscomp$957.text)}}(y),y.message$jscomp$957.delayMs));
Number(z)>0&&G.push(setTimeout(function(){K(!0)},y.message$jscomp$957.delayMs-400))}};
cH3=function(x,G){var D=D===void 0?XXh:D;_.B("mweb_fix_monitor_visibility_after_render")?x&&sI(function(){RnQ(x,G,D)}):sI(function(){RnQ(x,G,D)})};
WXh=function(x){var G=x.data;var D=x.uniqueId;x=x.overrides;var K,z=((K=G.timedAnimationData)==null?void 0:K.animationTiming)||[];return _.M("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.M(Hq,{settings:{uniqueId:D,timings:z,experimentEnabled:z.length>0,enabled:z.length>0}},TYQ(G.buttonRenderer,{buttonRenderer:{buttonOverrides:x}})))};
Qtd=function(x){ebn||(ebn=Zbh(new _.Ar(1,void 0,void 0,MkP),0));var G=ebn.format(Math.floor(x));G=_.XX==="be"||_.XX==="bg"||_.XX==="es"||_.XX==="et"||_.XX==="hu"||_.XX==="ka"||_.XX==="lv"||_.XX==="pl"||_.XX==="pt-PT"||_.XX==="sq"?G.replace(new RegExp("^(\\d)"+MkP.GROUP_SEP.replace(".","\\.")+"(\\d+("+MkP.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):G;return x>=1E3&&x<=9999&&G[1]==="."&&(_.XX==="sl"||_.XX==="it")?G.replace(".",""):G};
p3P=function(x,G){mw("ytd-button-renderer",{data:x,className:G?G.className:"",overrides:G==null?void 0:G.buttonOverrides},wO)};
LXn=function(x,G,D,K){if(x)return K=K||x.likeStatus,G?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:K==="LIKE",isDisabled:!x.likesAllowed,defaultIcon:{iconType:D},defaultText:K==="LIKE"?x.likeCountWithUnlikeText:x.likeCountText,toggledText:K==="LIKE"?x.likeCountText:x.likeCountWithLikeText,defaultNavigationEndpoint:VkD(x,"LIKE"),defaultServiceEndpoint:bbL(x,"LIKE"),toggledServiceEndpoint:bbL(x,"INDIFFERENT"),defaultTooltip:_.u7(x.likeCountTooltipText),toggledTooltip:_.u7(x.likeCountTooltipText),
targetId:x.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:K==="DISLIKE",isDisabled:!x.likesAllowed,defaultIcon:{iconType:D},defaultText:K==="DISLIKE"?x.dislikeCountWithUndislikeText:x.dislikeCountText,toggledText:K==="DISLIKE"?x.dislikeCountText:x.dislikeCountWithDislikeText,defaultNavigationEndpoint:VkD(x,"DISLIKE"),defaultServiceEndpoint:bbL(x,"DISLIKE"),toggledServiceEndpoint:bbL(x,"INDIFFERENT"),defaultTooltip:_.u7(x.dislikeCountTooltipText),
toggledTooltip:_.u7(x.dislikeCountTooltipText)}};
VkD=function(x,G){if(G==="LIKE")return x.likeCommand;if(G==="DISLIKE")return x.dislikeNavigationEndpoint};
bbL=function(x,G){var D;return(D=x.serviceEndpoints)==null?void 0:D.find(function(K){var z;return((z=_.Y(K,_.Ry))==null?void 0:z.status)===G})};
_.stO=function(x,G,D){return window.spf&&!_.B("web_disable_spfjs_client")?BYL(x,G,D):rHQ(x,G)};
BYL=function(x,G,D){var K=null,z=(new _.T1(function(y,c){var W={};if(G){W.method=G.method;var e=G.postParams||{};dq$(x,G)&&(e[_.Am("XSRF_FIELD_NAME")]=_.Am("XSRF_TOKEN"));W.postData=_.W0(e);G.type&&(W.type=G.type);e=G.headers}W.headers=Rpf(x,e);_.B("debug_forward_web_query_parameters")&&(x=_.gBn(x,window.location.search));W.experimental_headers=W.headers;W.onError=function(Q){Q.err&&Q.xhr&&(Q.err.params={url:Q.xhr.responseURL,response:Q.xhr.responseText.substr(0,64)});c(Q.err)};
W.onPartDone=function(Q){D&&D.call(null,Q.part)};
W.onDone=function(Q){var p=Y7L(Q.response,"xsrf_token");fT(window.location.href,x)&&p&&_.XQ("XSRF_TOKEN",p);if(p=Y7L(Q.response,"service_worker_killswitch"))_.XQ("SERVICE_WORKER_KILLSWITCH",p),ZSd();y(Q.response)};
K=spf.request(x,W)})).then(m4L);
z.thenCatch(function(y){var c=y instanceof _.S8,W=y&&y.hasOwnProperty("params")&&y.params.response?y.params.response:"";y instanceof Error&&(W?c?$JQ(y):W===')]}\'\n{"reload":"now"}'?$JQ(y):(HbE(y,x,W),$4L(y,W)?_.O9(y):_.I4(y)):$JQ(y));K&&K.abort()});
return z};
m4L=function(x){if(x.type==="multipart"){var G=x.timing;x=x.parts.reduce(function(D,K){Object.assign(D,K);return D},{});
x.timing=x.timing||{};Object.assign(x.timing,G);x.type="reduced"}return x};
rHQ=function(x,G){G=G===void 0?{}:G;var D=null,K=new _.T1(function(z,y){G.onFinish=function(c){if(c.readyState===XMLHttpRequest.DONE)if(c.status===200){if(c.responseType!=="json"){var W=c.response;W.substring(0,5)===")]}'\n"&&(W=W.substring(5));try{var e=JSON.parse(W)}catch(Q){e=Q}}else e=c.response;e instanceof Error?y(e):(W=Y7L(e,"xsrf_token"),fT(window.location.href,x)&&W&&_.XQ("XSRF_TOKEN",W),c=c.responseURL,window.performance&&window.performance.getEntriesByName?(W=window.performance.getEntriesByName(c).pop())?
c={responseStart:(0,_.kK)()-(W.responseEnd-W.responseStart)}:(Math.random()<.01&&(W=Error("Yh"),W.params=c,_.O9(W)),c={responseStart:-1}):c={responseStart:0},e.timing=e.timing||{},Object.assign(e.timing,c),z(e))}else y(Error("Xh`"+c.status))};
(D=_.Tz(x,G))||y(Error("Xh`"+D.status))});
K.thenCatch(function(z){z instanceof Error&&(HbE(z,x),$4L(z)&&(z.level="WARNING"))});
_.B("cancel_pending_navs")&&K.thenCatch(function(){D.abort()});
return K};
Y7L=function(x,G){var D=x[G],K=x.parts;x.type==="multipart"&&K&&(D=(x=K.find(function(z){return G in z}))&&x[G]);
return D};
HbE=function(x,G,D){var K=x.message||"";G={original:K,url:G};if(D)if(K=K.match(/position:?\s*(\d+)/)){K=K&&Number(K[1])?Number(K[1]):0;var z=Math.max(K-25,0);G.position=K;G.response=D.substring(z,K+25)}else G.response=D.substring(0,50);_.Xv(x,G);try{x.message="JSON parse error"}catch(y){}};
$4L=function(x,G){x=x.message||"";x=!!(x.indexOf("<")>=0||x.indexOf("end of ")>=0||x.indexOf("Unterminated string")>=0||x.indexOf("Unexpected EOF"));if(!x&&G)for(var D=G.length,K=!1,z=0;z<D;z++)if(K&&G[z]==="\\")z++;else if(G[z]==='"')K=!K;else if(G[z]==="<"&&!K){x=!0;break}return x};
FXC=function(){return document.documentElement.hasAttribute("dark")};
_.CWQ=function(x,G){if(x!=="GFEEDBACK"&&x!=="GUIDED_HELP")_.RE(Error("Zh`"+x));else{var D=_.Eo().resolve(_.P6(_.wG));if(D&&(D=D.getCurrentPage())&&D.getServiceTrackingParams&&(D=D.getServiceTrackingParams()))for(var K=0,z;z=D[K++];)if(z.service===x){if(x=z.params)for(D=0;K=x[D++];)G[K.key]=K.value;break}}};
_.ItL=function(x){var G=_.Ns();G&&(G=G.getPlayer())&&(G.pauseVideo(),x.playback_id=G.getVideoData().cpn,x.eid=G.getVideoData().eventId,Object.assign(x,G.getFeedbackProductData()))};
jtL=function(){var x={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.Am("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(x.enableAnonymousFeedback=!0);_.Am("SESSION_INDEX")&&(x.authuser=String(_.Am("SESSION_INDEX")));_.B("enable_pageid_for_feedback")&&_.Am("DELEGATED_SESSION_ID")&&(x.pageId=String(_.Am("DELEGATED_SESSION_ID")));return x};
_.uQ=function(x){_.B("enable_ypc_spinners")&&_.xO(x,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},x])};
_.dj=function(x){_.B("enable_ypc_spinners")&&_.xO(x,"yt-close-popup-action",["yt-loading-renderer"])};
Obf=function(x){return new Promise(function(G,D){_.OI({verifyCommand:{recaptchaToken:x.recaptchaResponse}},{commandController:{onSuccess:function(K,z){z||D("ChallengeService did not return a response.");var y;G({challengeCompleted:(y=z.verified)!=null?y:!1})},
onServerError:function(K,z){D(z)}}})})};
X3E=function(x,G,D,K){G({recaptchaResponse:K}).then(function(z){z.challengeCompleted?_.pL()?(D(3),_.Eo().resolve(_.hm).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:x}})):D(2):D(4)},function(){D(4)})};
AHE=function(x,G,D){_.Uf("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.Am("HL"),function(){var K;(K=window.grecaptcha)==null||K.ready(function(){var z=window.grecaptcha;z?(D(z.render(x,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:X3E.bind(null,x,Obf,G)})),G(1)):G(4)})})};
U4O=function(x,G){return function(){switch(G()){case 0:return x().captchaLoadingMessage;case 1:return x().challengeReason;case 3:return x().captchaSuccessfulMessage;case 2:return x().captchaCookieSetFailureMessage;case 4:return x().captchaFailedMessage;default:return x().challengeReason}}()};
_.wj=function(){if(!RbO){var x=document.querySelector("#player.skeleton");x&&(_.VF(x),RbO=!0)}};
_.nED=function(){return S73=ZF$()};
uNd=function(){return _.T(function(x){return ibf!==void 0?x.return():_.Z(x,gED(),0)})};
gED=function(){return _.T(function(x){if(x.nextAddress==1)return _.Z(x,QQQ(),2);S73=x.yieldResult;ibf=_.Fj.addLowPriorityJob(gED,5E3);_.c5(x)})};
JHn=function(x){var G=G===void 0?d4h:G;var D,K,z=(D=x.responseContext)==null?void 0:(K=D.mainAppWebResponseContext)==null?void 0:K.trackingParam;if(!z){G.increment("MISSING");var y,c,W,e,Q,p;_.O9(new _.LL("282054944_a",{gk5:!!((y=x.responseContext)==null?0:(c=y.mainAppWebResponseContext)==null?0:c.loggedOut),v9M:((W=x.responseContext)==null?void 0:W.mainAppWebResponseContext)===void 0,t1o:x.responseContext===void 0,pa5:(e=x.playabilityStatus)==null?void 0:e.contextParams,oLW:(((Q=x.streamingData)==
null?void 0:Q.formats)||[]).length>0,egv:(((p=x.streamingData)==null?void 0:p.adaptiveFormats)||[]).length>0,os:!!x.offlineState,cotn:x.cotn}));return 2}D="";try{D=w3L(z)}catch(r){return G.increment("C_ERROR"),_.I4(r),2}try{var V=_.q7d(D);var L=NYC(V)}catch(r){return G.increment("P_ERROR"),_.I4(r),2}L=_.hO(L,vEh,1,_.xa());z=[];L=_.l(L);for(V=L.next();!V.done;V=L.next())K=V.value,V=K.getPath(),D=(0,_.YS.getValueByKeys)(x,V.split(".")),D=String(D===void 0||D===null?"":D),K=K.getValue()||"",y=/[+\-\/_]/g,
D.replace(y,"")!==K.replace(y,"")&&(G.increment("MISMATCH"),_.B("ab_mis_log_err")&&(D=new _.LL("282054944_p",{mqM:V,g:String(D),e:String(K)}),_.I4(D)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(V)||(V.match(/enforcementMessageViewModel/i)?z.push(3):z.push(2)));if(z.length>0)return Math.max.apply(Math,_.B5(z));G.increment("SUCCESS");return 1};
kTd=function(x){var G=new qX;if(x.interpreterJavascript){var D=_.b3P(x.interpreterJavascript);D=U2(D).toString();var K=new ftL;_.Z_(K,6,D);_.GW(G,1,K,uq)}else x.interpreterUrl&&(D=_.CU(x.interpreterUrl),D=_.lH(D).toString(),K=new _.tkf,_.Z_(K,4,D),_.GW(G,2,K,uq));x.interpreterHash&&_.NX(G,3,x.interpreterHash,uq);x.program&&_.NX(G,4,x.program,uq);x.globalName&&_.NX(G,5,x.globalName,uq);x.clientExperimentsStateBlob&&_.NX(G,7,x.clientExperimentsStateBlob,uq);return G};
vb=function(x){var G={};x=_.l(x.split("&"));for(var D=x.next();!D.done;D=x.next())D=D.value.split("="),D.length===2&&(G[D[0]]=D[1]);return G};
PWf=function(x){return Number(x.t)||7200};
CPD=function(){if(_.B("bg_st_hr"))return"havuokmhhs-0";var x,G=((x=performance)==null?void 0:x.timeOrigin)||0;return"havuokmhhs-"+Math.floor(G)};
EEL=function(){return new Promise(function(x){var G=window.top;G.ntpevasrs!==void 0?x(new Jj(G.ntpevasrs)):(G.ntpqfbel===void 0&&(G.ntpqfbel=[]),G.ntpqfbel.push(function(D){x(new Jj(D))}))})};
hb3=function(x){var G=x.tIc.bind(x);_.Jv("yt.aba.att",G);x=x.dxa.bind(x);_.Jv("yt.aba.att2",x)};
Grf=function(x){switch(_.c0(x.input)){case _.qW(xwC):var G={};return G.encryptedVideoId=x.innerTubeRequest.externalVideoId,G}return{}};
KMD=function(x){switch(_.c0(x.input)){case _.qW(xwC):if(_.B("enable_att_for_transcript_request_on_web_client"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.qW(f1):if(_.B("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&x.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.qW(Dwf):var G,D;if(_.B("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&((D=_.Y((G=x.config)==null?void 0:G.command,
ZRO))==null?0:D.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.a$L=function(x){var G;if(x.playlistVideoRenderer&&((G=x.playlistVideoRenderer)==null?0:G.engagementBar))return zEd(x.playlistVideoRenderer.engagementBar);if(_.Y(x,tj)){var D;if(x=(D=_.Y(x,tj))==null?void 0:D.engagementBar)return zEd(x)}return""};
zEd=function(x){if(!x)return"";x=_.Y(x,_.okC);if(x==null||!x.actions)return"";x=_.l(x.actions);for(x=x.next();!x.done;x=x.next()){x=_.Y(x.value,_.y5$);var G=void 0;if((G=x)==null||!G.itemId)break;return x.itemId}return""};
_.l$f=function(x){var G;if(x.playlistVideoRenderer&&((G=x.playlistVideoRenderer)==null?0:G.videoId))return x.playlistVideoRenderer.videoId;if(_.Y(x,tj)){var D,K;if(x=(D=_.Y(x,tj))==null?void 0:(K=D.playlistItemData)==null?void 0:K.videoId)return x}return""};
_.c5L=function(x){var G;if(x.playlistVideoRenderer&&((G=x.playlistVideoRenderer)==null?0:G.voteCount))return x.playlistVideoRenderer.voteCount;if(_.Y(x,tj)){var D,K;if(x=(D=_.Y(x,tj))==null?void 0:(K=D.playlistItemData)==null?void 0:K.voteCount)return x}return 0};
_.k5=function(x,G){return _.zm(x.entities,"flowStateEntity",G)};
WML=function(x,G,D,K){var z=void 0;x=_.l(x[G.iconName]||[]);for(var y=x.next();!y.done;y=x.next()){y=y.value;var c=G.iconSize;var W=G.iconStyle;c=!c||c===y[2];var e=TZ3[y[0]];K&&K!==y[1]||!c||W&&W!==e?W=!1:z?(W=TZ3[y[0]],W=!!G.iconStyle||W==="youtube_outline",c=z.version<=y[1],W=(!!G.iconSize||y[2]===24)&&W&&c):W=!0;W&&(z={name:G.iconName,style:TZ3[y[0]],size:y[2],version:y[1],allowMirroring:!!y[3],url:D(G.iconName,y)})}return z};
eEL=function(x,G,D,K){return x+(""+TZ3[D[0]]+((K===void 0?0:K)?"_experimental":"")+"/"+G+"/v"+D[1]+"/")+(D[2]+"px.svg")};
Pb=function(x){return _.B("web_bookmark_playlist_save_icon")?"bookmark":x};
Z5V=function(x,G){return eEL("https://fonts.gstatic.com/s/i/",x,G)};
M3O=function(x,G){return eEL("https://fonts.gstatic.com/s/i/",x,G,!0)};
Q5n=function(x,G){return eEL("https://www.gstatic.com/youtube/img/icons/web/",x,G)};
p8D=function(x){var G=x.enabled;var D=x.itemPlaybackModel;var K=x.thumbnailElRef;var z=x.containerElRef;var y=x.options;var c;_.$9(function(){var W=z==null?void 0:z.value;var e,Q=(e=K())==null?void 0:e.value;e=D();var p=y();if(G&&e&&W&&Q&&(p==null?0:p.thumbnail)){var V={data:e,hostElement:W},L,r,H=_.B("web_explore_hub_on_hover")||_.B("web_client_explore_hub_on_hover")?[].concat(_.B5((L=p.thumbnailOverlays)!=null?L:[]),_.B5((r=e.overlays)!=null?r:[])):p.thumbnailOverlays||[],O,A;W={mediaRenderer:V,
lockupElement:W,thumbnailElement:Q,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.jn((O=e.inlinePlayerData)==null?void 0:O.onVisible),navigationEndpoint:_.jn((A=e.inlinePlayerData)==null?void 0:A.onSelect),thumbnail:p.thumbnail,thumbnailOverlays:H,accessibilityText:p.accessibilityText||""},thumbnailSize:p.thumbnailSize,enableRounding:p.enableRounding}}}else W=void 0;if(O=W){var g;(g=c)==null||EH(g);c=uA(O)}});
_.Fq(function(){var W;(W=c)==null||EH(W)})};
V33=function(x){x=atob(x);for(var G=[],D=0;D<x.length;D++)G.push(x.charCodeAt(D));return new Blob([new Uint8Array(G)],{type:"image/png"})};
LMD=function(x,G,D,K){K=K===void 0?"INSERTION_POSITION_UNSPECIFIED":K;return x({targetId:G},function(z){var y,c=(y=z.contents)!=null?y:[];y=D!=null?D:[];var W=b5$(c);switch(K){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},z,{contents:[].concat(_.B5(c.slice(0,W)),_.B5(y),_.B5(c.slice(W+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},z,{contents:[].concat(_.B5(y),_.B5(c))});case "INSERTION_POSITION_LAST":return Object.assign({},z,{contents:[].concat(_.B5(c),_.B5(y))});
default:return z}})};
r5O=function(x,G,D,K,z){z=z===void 0?"RELATIVE_INSERTION_POSITION_AFTER":z;return x({targetId:G},function(y){var c,W=(c=y.contents)!=null?c:[];c=BZh(W,D);if(c<0)return y;c=z==="RELATIVE_INSERTION_POSITION_BEFORE"?c:c+1;return Object.assign({},y,{contents:[].concat(_.B5(W.slice(0,c)),_.B5(K),_.B5(W.slice(c)))})})};
b5$=function(x){var G=x.findIndex(function(D){return _.Y(D,_.hj)});
return G>=0?G:x.length};
BZh=function(x,G){return x.findIndex(function(D){a:{D=_.l(Object.values(D));for(var K=D.next();!K.done;K=D.next())if((K=K.value)&&K.targetId){D=K.targetId;break a}D=""}return D===G})};
YzL=function(x,G,D){return x({targetId:G},function(K){var z,y=(z=K.contents)!=null?z:[];return Object.assign({},K,{contents:s5f(y,D)})})};
s5f=function(x,G){return x.filter(function(D){var K=G.includes;a:{D=_.l(Object.values(D));for(var z=D.next();!z.done;z=D.next())if((z=z.value)&&z.targetId){D=z.targetId;break a}D=""}return!K.call(G,D||"")})};
_.mwn=function(x,G){return{engagementPanelSectionListRenderer:{panelIdentifier:x,identifier:G,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
_.$w3=function(x){var G,D=(G=x.getOption("captions","tracklist",{includeAsr:!0}))!=null?G:[];return D=H5O(D,x)};
FMD=function(x){return x.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
H5O=function(x,G){G=FMD(G);if(G==null||!G.length)return x;var D=G.filter(function(c){return c});
G=x.filter(function(c){return c.languageCode.startsWith("en")});
D=_.l(D);for(var K=D.next();!K.done;K=D.next())if(K=K.value,G.length){var z=G[0],y=Object.assign({},z);z.languageCode!==K.languageCode&&(y.displayName=z.languageName+" >> "+K.languageName,y.translationLanguage=K,x.push(y))}return x};
CYQ=function(x,G,D){x=_.$w3(x);if(x.length)return D?x.find(function(K){if(typeof(K==null?void 0:K.translationLanguage)==="object"){var z;return((z=K.translationLanguage)==null?void 0:z.languageCode)===G}return!1}):x==null?void 0:x.find(function(K){return K.languageCode===G})};
I$D=function(x){return x.getOption("captions","tracklist",{includeAsr:!0})};
j5L=function(x){return x.getOption("captions","tracklist",{includeAsr:!0})};
O5$=function(x){var G=j5L(x);if(G==null?0:G.length)return G;x.loadModule("captions");return j5L(x)};
X8C=function(x){var G=x.getOption("captions","track");if(G)return G;x.loadModule("captions");return x.getOption("captions","track")};
Uwd=function(x){var G=O5$(x);if(G!=null&&G.length){var D=X8C(x),K;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.Wg("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(D==null?0:D.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.B5(G.map(function(z){return{listItemViewModel:{title:{content:z.displayName},
isSelected:z.displayName===(D==null?void 0:D.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:z.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.Wg("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!D.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!D.translationLanguage&&{selectionText:{content:(D==null?void 0:(K=D.translationLanguage)==null?void 0:K.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[A5O(x)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
A5O=function(x){var G=FMD(x);if(G==null||!G.length)throw Error("wi");var D=X8C(x);x=G.filter(function(K){return!K.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.B5(x.map(function(K){var z;return{listItemViewModel:{title:{content:K.languageName},isSelected:K.languageName===(D==null?void 0:(z=D.translationLanguage)==null?void 0:z.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:K.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
i5h=function(x){return new Promise(function(G,D){if(x===void 0)_.I4(Error("Ai"),"ERROR"),D(Error("Ai"));else{D=new _.REQ;var K=_.SzP();D=D.init();var z=_.nkn(_.Am("YPC_MB_URL"),!0);Promise.all([D,z]).then(function(){var y=payments.business.integration.ClientTokenFactory.createClientToken(x,K);G(y)})}})};
dw$=function(x,G,D,K,z,y,c){var W=_.Ss();D=D.replace(/-/g,"+").replace(/_/g,"/");var e=_.M5().get("hl"),Q=_.x1(_.io),p=G==null?void 0:G.element;p&&_.uQ(p);gkP(G,!0);_.uyL(Q,D,W.resolve,function(){p&&_.dj(p)},function(V){p&&_.dj(p);
W.reject(V)},e,K?function(V){K&&_.Rl(x,K,{backend_analytics:V})}:void 0,W.resolve,z,y,c);
return W.promise};
gkP=function(x,G){!(x=x==null?void 0:x.element)||x.tagName!=="YT-BUTTON-RENDERER"&&x.tagName!=="YTD-BUTTON-RENDERER"||(x.disabled=G)};
w8V=function(){var x=_.Wg("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.tN(x),actionButton:{buttonRenderer:pN$()}}},popupType:"TOAST"}};
qzh=function(){var x=_.Wg("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.tN(x),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
NZQ=function(x){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:x}]}}};
G0=function(x,G,D,K){var z;return _.T(function(y){if(y.nextAddress==1)return _.Kl(y,2),_.Z(y,x,4);if(y.nextAddress!=2)return(z=_.p3(G.getState().entities).length>0)?y.return({title:_.tN(_.Wg("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.tN(_.Wg("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:QvQ()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
y.return(V0f(D,K));_.lX(y);return y.return(V0f(D,K))})};
vkD=function(x,G){return G?G==="PPSV"||m7V(x,G):!1};
J5d=function(x){x.responseContext||(x.responseContext={});x.responseContext.maxAgeSeconds=0;return x};
K6=function(x){var G;return _.T(function(D){return D.nextAddress==1?_.Z(D,f$n(x,"service:topbar:fallback"),2):(G=D.yieldResult)&&_.DU(G)?D.return(J5d(_.DU(G))):D.return()})};
t3V=function(x){var G;return _.T(function(D){return D.nextAddress==1?_.Z(D,f$n(x,"service:downloads_settings:fallback"),2):(G=D.yieldResult)&&_.DU(G)?D.return(G):D.return()})};
f$n=function(x,G){var D;return _.T(function(K){if(K.nextAddress==1)return x?_.Z(K,x.get(G),2):K.return();D=K.yieldResult;return!D||!_.DU(D)||!isNaN(Number(D.data.expireTimestampMs))&&D.isExpired()?K.return():K.return(D)})};
krL=function(x){var G=_.Eo().resolve(z0).getState().entities;return x.playlistId?vkD(G,x.playlistId):!1};
PYf=function(x,G){var D;if(G==null?0:(D=G.requestTemplate)==null?0:D.panelId)x.panelId=G.requestTemplate.panelId;var K;if(G==null?0:(K=G.requestTemplate)==null?0:K.params)x.params=G.requestTemplate.params};
hEE=function(){if(Ek$)return Ek$();var x=!_.B("idb_response_store_auth_killswitch"),G={};Ek$=tv("yt-it-response-store",{objectStores:(G.ResponseStore={addedAtVersion:1},G),shared:!x,upgrade:function(D,K){K(1)&&(D=Up(D,"ResponseStore",{keyPath:["key","clientName"]}),Sl(D,"byExpiration","expireTimestampMs"),Sl(D,"byInterface","clientName"))},
version:1});return Ek$()};
xKf=function(x){return _.uI(hEE(),x)};
DK3=function(x,G){var D;return _.T(function(K){return K.nextAddress==1?_.Z(K,_.fL(),2):(D=K.yieldResult)?K.return(new G5h(x,G,D)):K.return()})};
KN$=function(x){var G=Object.keys(x)[0];if(G)return x.screenExit&&(G=G+";"+x.screenExit.screen),G};
zB$=function(x){var G=new Map;x=_.l(x);for(var D=x.next();!D.done;D=x.next())D=D.value,D!=null&&(G.has(D.taskType)||G.set(D.taskType,[]),G.get(D.taskType).push(D));return G};
ax3=function(x){return!isNaN(x)&&x>0};
oNL=function(x){x=[].concat(_.B5(x)).sort(function(D,K){return D-K});
var G=Math.floor(x.length/2);return x.length%2?x[G]:(x[G-1]+x[G])/2};
cLL=function(x,G){x=x===void 0?Wwf:x;G=G===void 0?{}:G;_.Jv("yt.logging.errors.log",_.I4);cnC();yLf(ph$(),G);window.onerror=x;lx3=TkD;window.addEventListener("unhandledrejection",function(D){if(D.reason instanceof Error){var K=D.reason;_.Xv(K,{source:"unhandledrejection"});K.name==="AbortError"&&(K.level="WARNING")}TkD(D.reason);D.preventDefault()})};
_.TwL=function(x){return x.a11y.ephemeralAction||null};
_.WNf=function(x){var G,D,K,z,y,c,W,e,Q,p,V,L,r,H,O,A,g,u,f,v,P,k,cL,bO,mE,jf,$C,OD,wn,n$,Fi,pf,UE,M0,cs,G8,T7,Wd,Fc,lO;return _.T(function(Bs){if(Bs.nextAddress==1)return _.Z(Bs,_.Tm(x,{mode:"readonly",enableRetries:!0},function(Xi){return Wk(Xi,"playbackData").then(function(uC){var Y8=uC.map(function(as){return as.transfer}).filter(function(as){return!!as}),fu=uC.map(function(as){return as.offlineVideoPolicy}).filter(function(as){return!!as}),g4=uC.filter(function(as){return!!as.key}).map(function(as){return _.K3(_.x_(as.key).entityId,
"downloadStatusEntity")});
Y8=Wk(Xi,"transfer",Y8);fu=Wk(Xi,"offlineVideoPolicy",fu);g4=Wk(Xi,"downloadStatusEntity",g4);var vs=Y8.then(function(as){as=as.reduce(function(d9,Lf){(Lf==null?0:Lf.offlineVideoStreams)&&d9.push.apply(d9,_.B5(Lf.offlineVideoStreams));return d9},[]).filter(function(d9){return!!d9});
return Wk(Xi,"offlineVideoStreams",as)});
return Uj.all([Y8,fu,vs,g4]).then(function(as){var d9=_.l(as);as=d9.next().value;var Lf=d9.next().value;var Lu=d9.next().value;d9=d9.next().value;return[uC,as,Lf,Lu,d9]})})}),2);
if(Bs.nextAddress!=3)return G=Bs.yieldResult,_.Z(Bs,_.Tm(x,{mode:"readonly",enableRetries:!0},function(Xi){return Wk(Xi,"mainDownloadsListEntity").then(function(uC){var Y8,fu;return(fu=(Y8=uC[0])==null?void 0:Y8.downloads)!=null?fu:[]})}),3);
D=Bs.yieldResult;K=_.l(G);z=K.next().value;y=K.next().value;c=K.next().value;W=K.next().value;e=K.next().value;Q=z;p=y;V=c;L=W;r=e;H={};O={};A={};g={};u={};f=[];v=_.l(p);for(P=v.next();!P.done;P=v.next())(k=P.value)&&(H[k.key]=k);cL=_.l(V);for(bO=cL.next();!bO.done;bO=cL.next())(mE=bO.value)&&(O[mE.key]=mE);jf=_.l(r);for($C=jf.next();!$C.done;$C=jf.next())(OD=$C.value)&&(A[OD.key]=OD);wn=_.l(L);for(n$=wn.next();!n$.done;n$=wn.next())(Fi=n$.value)&&(g[Fi.key]=Fi);pf=_.l(D);for(UE=pf.next();!UE.done;UE=
pf.next())M0=UE.value,cs=void 0,u[(cs=M0.videoItem)!=null?cs:""]=!0,M0.videoItem&&(T7=G8=void 0,Wd=(T7=(G8=_.x_(M0.videoItem))==null?void 0:G8.entityId)!=null?T7:"",f.push({externalVideoId:Wd}));Fc=Q.filter(function(Xi){if(!Xi||!Xi.key||!Xi.offlineVideoPolicy)return!1;Xi=_.x_(Xi.key).entityId;Xi=_.K3(Xi,"downloadStatusEntity");var uC;return!(Xi&&((uC=A[Xi])==null?void 0:uC.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
lO=Fc.map(function(Xi){var uC=H[Xi.transfer],Y8=[];if(uC==null?0:uC.offlineVideoStreams)for(var fu=_.l(uC.offlineVideoStreams),g4=fu.next();!g4.done;g4=fu.next())(g4=g[g4.value])&&Y8.push(g4);fu=O[Xi.offlineVideoPolicy];g4=u;var vs=Xi==null?void 0:Xi.playerResponseTimestamp,as=_.x_(fu.key).entityId;Xi=_.K3(as,"mainVideoEntity");if(fu.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var d9="OFFLINE_VIDEO_STATE_DISABLED";fu.expirationTimestamp&&Number(fu.expirationTimestamp)<Date.now()/1E3&&(d9="OFFLINE_VIDEO_STATE_EXPIRED")}else if(fu.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")d9="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(uC==null?void 0:uC.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":d9="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":d9="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":d9="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":d9="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":d9="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":d9="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:d9="OFFLINE_VIDEO_STATE_UNKNOWN"}if(d9==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(uC==null?void 0:uC.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":d9="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":d9="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":d9=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}as={id:as,videoState:d9};if(uC==null?0:uC.cotn)as.cotn=uC.cotn;if(uC==null?0:uC.maximumDownloadQuality)as.selectedVideoQuality=uC==null?void 0:uC.maximumDownloadQuality;if(uC==null?0:uC.lastProgressTimeMs)as.lastProgressTimeMs=uC.lastProgressTimeMs;vs&&(as.playerResponseSavedTimeMs=String(Number(vs)*1E3));uC=String;vs=0;Y8=_.l(Y8);for(d9=Y8.next();!d9.done;d9=Y8.next())if(d9=d9.value,d9.streamsProgress){d9=_.l(d9.streamsProgress);for(var Lf=d9.next();!Lf.done;Lf=
d9.next()){var Lu=void 0;vs+=Number((Lu=Lf.value.numBytesDownloaded)!=null?Lu:0)}}as.downloadedBytes=uC(vs);as.selectedOfflineMode=g4[Xi]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";fu.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(as.offlinePlaybackDisabledReason=fu.offlinePlaybackDisabledReason);return as});
return Bs.return({offlineVideos:lO,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:f}}})})};
eB$=function(){var x;return _.T(function(G){return G.nextAddress==1?_.Z(G,_.yy(),2):(x=G.yieldResult)?G.return(_.WNf(x)):G.return({state:"PES Unavailable"})})};
Q3f=function(){var x,G,D,K;return _.T(function(z){if(z.nextAddress==1)return _.Z(z,_.yy(),2);if(z.nextAddress!=3)return(x=z.yieldResult)?_.Z(z,ZIL(x),3):z.return({state:"PES Unavailable"});G=z.yieldResult;D={};K=G.reduce(function(y,c){y[c.key]=c;return y},D);
return z.return(MoP(K))})};
MoP=function(x){for(var G={},D=[],K=_.l(Object.keys(x)),z=K.next();!z.done;z=K.next()){var y=z.value;z=x[y];var c=void 0;if(((c=z)==null?void 0:c.entityType)==="mainVideoEntity"){delete x[y];var W=z.data;z={};if(W){var e=void 0;c=(e=W.videoId)!=null?e:"vid-"+y;y=x;z.video=W;delete z.video.formattedDescription;delete z.video.thumbnail;W.owner&&(e=y[W.owner],e==null?0:e.data)&&(delete y[e.key],z.video.owner=e.data,delete z.video.owner.avatar);if(W=W.downloadState)if(e=y[W],e==null?0:e.data)if(delete y[W],
W=e.data.playbackData)if(e=y[W],e!=null&&e.data){delete y[W];W=e.data;delete W.playerResponseJson;z.playbackData=W;if(W.transfer&&(e=y[W.transfer],e==null?0:e.data)){delete y[e.key];var Q=e.data;z.transfer=Q;e=[];Q=_.l(Q.offlineVideoStreams||[]);for(var p=Q.next();!p.done;p=Q.next())if(p=y[p.value])delete y[p.key],e.push(p.data);e&&(z.streams=e)}(W=W.offlineVideoPolicy)&&(W=y[W])&&W.data&&(delete y[W.key],z.offlineVideoPolicy=W.data)}G[c]=z}}else z&&z.entityType==="offlineOrchestrationActionWrapperEntity"&&
z.data&&(delete x[z.key],c=z.data,y=void 0,D.push({id:c.rootActionId,type:((y=c.actionProto)==null?void 0:y.actionType)||"",entity:z}))}G.wrapperEntities=D;Object.keys(x).length>0&&(G.unknownKeys=x);return G};
p4Q=function(){var x,G,D,K,z,y,c,W,e;return _.T(function(Q){if(Q.nextAddress==1)return x=!!(new _.Xj("")).expiringStorage_,K=!!((G=_.Df.crypto)==null?0:(D=G.subtle)==null?0:D.importKey),z=!!_.Df.BroadcastChannel,y=!!_.Df.navigator.locks,_.Z(Q,dp3(),2);c=Q.yieldResult;W=x&&K&&z&&y&&c;e={isSupported:W};if(W)return Q.return(e);e.missingBrowserFeatures=[];c||e.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");x||e.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
K||e.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");z||e.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");y||e.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return Q.return(e)})};
VoE=function(){var x;return!((x=ap?ap:null)==null||!x.window)};
_.LNV=function(x){if(_.IV()&&_.WEL("Chromium")>=120){var G=_.bIf().mediaSession;try{G.setActionHandler("enterpictureinpicture",function(){x()})}catch(D){}}};
BwV=function(x){for(var G=[],D=_.l(document.styleSheets),K=D.next(),z={};!K.done;z={node$jscomp$725:void 0},K=D.next())z.node$jscomp$725=K.value.ownerNode,z.node$jscomp$725&&(z.node$jscomp$725 instanceof HTMLStyleElement||z.node$jscomp$725 instanceof HTMLLinkElement)&&G.push(new Promise(function(y){return function(c){var W=y.node$jscomp$725.cloneNode(!0);W.onload=function(){c()};
W.onerror=function(){_.O9(Error("cj"));c()};
x.document.head.appendChild(W)}}(z)));
return Promise.all(G)};
j3n=function(x){var G=[_.Es(rLD),_.Es(s3$),_.Es(Y0f)];mKP(window.document.documentElement,x.document.documentElement,[_.Es(HIE),_.Es($KC),_.Es(FNO),_.Es(C6f),_.Es(IxC)]);mKP(window.document.body,x.document.body,G)};
mKP=function(x,G,D){x=_.l(x.attributes);for(var K=x.next();!K.done;K=x.next())if(K=K.value)try{_.iH(D,G,K.name,K.value)}catch(z){}};
X4L=function(x,G){x=new _.op(x.document.documentElement);x.start(OI3,G);return x};
ALV=function(x){var G=x.document.documentElement;G.addEventListener("click",function(D){mr3(G,D)});
G.addEventListener("touchstart",function(D){IRf(D)});
G.addEventListener("mousedown",function(D){IRf(D)})};
RBd=function(x,G,D,K){K=K===void 0?!1:K;G=new UKO(G||x,D||x);return{x:x.x+((K===void 0?0:K)?G.lengthX*-1:G.lengthX)*.2,y:x.y+((K===void 0?0:K)?G.lengthY*-1:G.lengthY)*.2}};
S0D=function(x){if(!x)return!1;var G=x.status==="OK"||x.status==="LIVE_STREAM_OFFLINE",D,K,z,y=(z=(D=x.errorScreen)==null?void 0:D.playerLegacyDesktopYpcTrailerRenderer)!=null?z:(K=x.errorScreen)==null?void 0:K.ypcTrailerRenderer;return!!G||!!y};
_.nNC=function(x,G){if(!x)return!1;var D,K=(D=x.errorScreen)==null?void 0:D.playerLegacyDesktopYpcOfferRenderer,z;G=!!(G==null?0:(z=G.playerOverlayRenderer)==null?0:z.gatedActionsOverlayRenderer);return!!S0D(x)||!!K||!!G};
uS$=function(x){return iI$(x,0,"gclid",x.search(gNn))>=0||iI$(x,0,"gad_source",x.search(gNn))>=0};
dKd=function(x){return new Promise(function(G){window.setTimeout(G,x)})};
w4n=function(x){var G={bicf:function(y){x.rKD=y},
blc:function(){return x.getLatestChallengeResponse()},
bcr:function(y){x.uUn.push(y)}},D=window.top;
D.ntpevasrs=G;if(D.ntpqfbel!==void 0)for(var K=_.l(D.ntpqfbel),z=K.next();!z.done;z=K.next())z=z.value,z(G);D.ntpqfbel=void 0};
q0d=function(x){return _.T(function(G){if(G.nextAddress==1)return _.Kl(G,2),_.Z(G,x.dKI(),4);if(G.nextAddress!=2)return _.iI(G,0);_.lX(G);_.c5(G)})};
Nw3=function(x){var G,D;(G=x.ytcsi)==null||(D=G.tick)==null||D.call(G,"pot_ist")};
vN$=function(x){if(x instanceof Error){var G=_.nT("yt.logging.errors.log");G&&G(x,"WARNING")}};
JLD=function(x){try{var G=JSON.parse(x);if(G.bgChallenge)return G}catch(D){}};
toL=function(){var x=window,G={networkStatusManagerPromise:_.Eo().resolve(new mqC(_.w$)),initialChallengeSli:_.B("wpo_att_sli")?new _.jYf("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};x=x===void 0?window:x;var D=x.ytAtR,K;G==null||(K=G.initialChallengeSli)==null||_.yS(K);if(D){if(D=JLD(D)){var z;G==null||(z=G.initialChallengeSli)==null||_.lh(z,"SUCCESS");fxh(D,G)}x.ytAtR=void 0}else x.ytAtRC=function(y){if(y=JLD(y)){var c;G==null||(c=G.initialChallengeSli)==null||
_.lh(c,"SUCCESS");fxh(y,G);x.ytAtRC=void 0}}};
ENO=function(){if(k5L)return k5L;try{var x=_.p4("IFRAME");_.C9(x,_.xS(P6E));x.sandbox.add("allow-same-origin");x.style.display="none";document.body.appendChild(x);return k5L=x}catch(G){x=new _.LL("Failed to create sandbox iframe"),_.I4(x)}};
hBE=function(x){var G,D;return(D=x==null?void 0:(G=x.contentWindow)==null?void 0:G.fetch)!=null?D:window.fetch};
xTn=function(x){var G,D;return(D=x==null?void 0:(G=x.contentWindow)==null?void 0:G.JSON.parse)!=null?D:JSON.parse};
GhL=function(x){var G,D;return(D=x==null?void 0:(G=x.contentWindow)==null?void 0:G.Request)!=null?D:window.Request};
zLL=function(){if(ASO()==="hidden")var x="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else ASO()==="visible"&&(x="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",DTC=null);x&&KQC(x)};
KQC=function(x){if(x==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||x==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(aWn===x)return;aWn=x}var G=9E4+Math.random()*2E3;if(x!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.xq()>G)&&ASO()==="visible"){G=-1;DTC&&(G=Math.round((0,_.kK)()-DTC));var D=String;var K=_.nT("_fact",window);K=K==null||K==-1?-1:Math.max(Date.now()-K,0);_.Fv("foregroundHeartbeat",{firstActivityMs:D(K),clientDocumentNonce:W5f,index:String(oHL),lastEventDeltaMs:String(G),trigger:x});
_.Jv("_fact",-1,window);oHL++;DTC=(0,_.kK)()}};
_.y4C=function(){try{return!!self.sessionStorage}catch(x){return!1}};
lW$=function(){var x=navigator;return new Promise(function(G,D){var K;(K=x.webkitTemporaryStorage)!=null&&K.queryUsageAndQuota?x.webkitTemporaryStorage.queryUsageAndQuota(function(z,y){G({usage:z,quota:y})},function(z){D(z)}):D(Error("lj"))})};
c4f=function(x,G){var D={errorSeverity:G.errorSeverity.toString(),wizFeatureFlags:Object.entries(G.featureFlags).join("\n")};lJC(G,D);G=G.errorSeverity;G===3?_.I4(x,"ERROR",void 0,void 0,void 0,D):G===2&&_.I4(x,"WARNING",void 0,void 0,void 0,D);_.B("cow_if_errors_in_popup")&&G===3&&x.message.indexOf("<If>")!==-1&&window.alert(x.message)};
TWC=function(x,G,D){x.componentType!==sX&&D instanceof HTMLElement&&G&&!_.B("cow_logging_in_component_wrapper")&&TLD(D,G,!0)};
WQf=function(x,G,D){G=G===void 0?{}:G;var K,z=(K=_.Y(x.commandMetadata,_.fC))==null?void 0:K.url;K=G.form||{};!D||K.element||K.skipDefaultElement||(G.form=G.form||{},G.form.element=D);if(z&&z!=="/service_ajax")return{type:0,command:x,form:G.form};if(_.B("kevlar_service_command_check")){if(_.Uu(_.Eo().resolve(_.Hi),x))return Object.assign({},{type:1,command:x},G)}else{var y;if((y=_.Y(x.commandMetadata,_.fC))==null?0:y.apiUrl)return Object.assign({},{type:1,command:x},G)}return{type:2,command:x,form:G.form}};
eLh=function(x){if(x.form){var G=x.form,D=Object.assign({},G);G=G.element;D=(delete D.element,D);if(G)return[_.KW(G,[x.command,D,x.commandController])]}return[]};
ZAh=function(x){if(x.form){var G=x.form,D=Object.assign({},G);G=G.element;D=(delete D.element,D);G&&_.zl(G,[x.command],G,D)}};
QBn=function(x,G,D){var K=new MQD(x,G),z=new c1(x,G,D);x={"/youtubei/v1/browse":new T0(x,G,D),"/youtubei/v1/player":K,"/youtubei/v1/navigation/resolve_url":new W1,"/youtubei/v1/next":z,"/youtubei/v1/guide":new eJ(D),"/youtubei/v1/search":new ZU(x,G,D),"/youtubei/v1/reel/reel_item_watch":new Mt(x,G,D),"/youtubei/v1/get_watch":new QS(K,z)};x["/youtubei/v1/account/account_menu"]=new p6;x["/youtubei/v1/notification/get_notification_menu"]=new VS;return x};
L6=function(){var x=_.Eo().resolve(bh);return Promise.resolve(pfV(x,_.Df.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
VQL=function(x){return x&&(x=_.B1(_.ttD(x)))?(new URLSearchParams(x)).get("service"):null};
Y1=function(x,G){_.x7(_.rv(),function(){_.Fs("adl")});
_.Eo().resolve(bAV)(G);x=x.root;x.loadData&&x.loadData(G);(G==null?0:G.response)?_.lh(A33(),"SUCCESS"):_.O9(new _.LL("Lifecycle: No response in data",_.Uo("IS_SHELL_LOAD"),G?G.page:"NO_PAGE",G?G.endpoint:"NO_ENDPOINT"));x.polymerController.$["page-manager"].lazyPrepareCriticalPages((G==null?void 0:G.page)||"",G.endpoint);var D,K;((K=_.Y(G==null?void 0:(D=G.endpoint)==null?void 0:D.commandMetadata,_.fC))==null?0:K.webPageType)&&_.wK().dispatch(_.s$(_.Y(G.endpoint.commandMetadata,_.fC).webPageType))};
LQC=function(){var x,G;return _.T(function(D){switch(D.nextAddress){case 1:x=window;if(!x.getDataPromise){D.jumpTo(2);break}_.Kl(D,3);return _.Z(D,x.getDataPromise(),5);case 5:return D.return(D.yieldResult);case 3:return _.lX(D),_.Z(D,L6(),6);case 6:return D.return(D.yieldResult);case 2:if(x.getInitialData)return G=x.getInitialData(),x.getInitialData=void 0,D.return(G);throw Error("nj`"+_.Df.location.href);}})};
r4C=function(){_.XQ("CSI_SERVICE_NAME","youtube");_.Hg({loadType:"cold"});_.B("kevlar_log_lcp")&&BW3(function(x){_.Fs("lcp",x.value)})};
sBO=function(){var x=_.uP(document.location.href,"enable");x&&x.indexOf("scraper")>-1&&_.XQ("ADD_SCRAPER_ATTRIBUTES",!0)};
FQd=function(x){var G=x.root;x=[YK3,mTV,_.mJ];_.B("web_feedback_endpoint_autolog_allowlist_killswitch")&&x.push(_.H1,HA$);$Td(function(D,K){return WQf(D,K,G)},function(D){if(!D.command)return[];
var K;((K=D.form)==null?0:K.element)?D.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},D.form,{endpoint:D.command})})):G.handleNavigate(D);return[]},x);
_.Eo().addProvider({provide:_.hm,useValue:_.y2.instance})};
IWf=function(){var x={},G={},D;for(D in CjC){var K=_.l(_.eO(CjC[D],void 0,"NBH2te"));x[D]=K.next().value;G[D]=K.next().value}return[x,function(z){for(var y in z){var c=void 0;(c=G[y])==null||c(z[y])}}]};
_.XfE=function(x,G){var D=_.YS.getValueByKeys(x,"contents","twoColumnWatchNextResults","results","results","contents"),K=_.YS.getValueByKeys(x,"contents","twoColumnWatchNextResults","playlist","playlist")||null,z=null,y=null;if(K)z=_.YS.getValueByKeys(K,"titleText"),y=_.YS.unsafeClone(_.YS.getValueByKeys(K,"longBylineText")),D="",y&&(D=_.u7(y)),y=_.gK(D);else if(D){D=_.l(D);for(var c=D.next();!c.done;c=D.next())c=c.value,c.videoPrimaryInfoRenderer&&(z=_.YS.getValueByKeys.apply(_.YS,[c].concat(_.B5(jBQ)))),
c.videoSecondaryInfoRenderer&&(y=_.YS.getValueByKeys.apply(_.YS,[c].concat(_.B5(OA3))))}else _.iM(Error("sj"));var W;x.currentVideoEndpoint?W=x.currentVideoEndpoint:_.iM(Error("tj"));var e;G&&(e=_.YS.getValueByKeys(G,"playabilityStatus","miniplayer","miniplayerRenderer"));x={miniplayerTitle:z,miniplayerSubtitle:y,watchEndpoint:W,playlistData:K};e&&(x.miniplayerRenderer=e);return x};
A4O=function(x){if(x)return _.$$(x)};
_.UTD=function(){return{isFullscreen:function(){throw Error("uj");},
toggleFullscreen:function(){throw Error("vj");},
exitFullscreen:function(){throw Error("wj");},
isAutonavEnabled:function(){throw Error("xj");},
setAutonavEnabled:function(){throw Error("yj");},
isAutoplaySetExplicitly:function(){throw Error("zj");}}};
RL$=function(x){return x.videoDuration?x.numTaps>1&&x.tapDirection!==0?_.$1(x.draggedTime/x.videoDuration,0,1):_.$1((x.playedTime||0)/x.videoDuration,0,1):0};
SKV=function(x){return x.videoDuration?x.isDragging||x.numTaps>1&&x.tapDirection!==0?_.$1(x.draggedTime/x.videoDuration,0,1):_.$1((x.playedTime||0)/x.videoDuration,0,1):0};
iAD=function(x){var G,D,K;return _.Y(x==null?void 0:(G=x.markersMap)==null?void 0:(D=G.find(function(z){return z.key==="HEATSEEKER"}))==null?void 0:(K=D.value)==null?void 0:K.heatmap,nHO)};
gH$=function(x){var G,D;return(D=(G=iAD(x))==null?void 0:G.heatMarkersDecorations)!=null?D:[]};
uzO=function(x){if(_.B("mweb_supported_chapters_killswitch"))return!0;var G;return!!(x==null?0:(G=x.markersMap)==null?0:G.find(function(D){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(D.key)}))};
_.dTO=function(x){var G=Object,D=G.assign,K;x={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(K=x==null?void 0:x.getPlayerState())!=null?K:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return D.call(G,{},{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},x,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
wfC=function(x){return function(G){var D=x(),K,z=(K=D.playerApi)==null?void 0:K.getPlayerState();G&&G!==D.playerState&&(G===1||G===2)&&D.setState({playerState:z})}};
NWh=function(x){return function(G){var D=x(),K=D.playerApi;K&&(G==null?void 0:G.type)==="newdata"&&(qKD&&(clearTimeout(qKD),qKD=void 0),_.B("web_shorts_use_progress_state_for_gapless")?(G=K==null?void 0:K.getProgressState(G==null?void 0:G.playertype),G=G.seekableEnd-G.seekableStart):G=K==null?void 0:K.getDuration(G==null?void 0:G.playertype),D.setState({playedTime:0,videoDuration:G}))}};
vHd=function(x){return function(G){var D=x(),K=D.playerApi;if(K){var z=K.getPresentingPlayerType();_.B("web_shorts_use_progress_state_for_gapless")?(K=K.getProgressState(z),K=K.seekableEnd-K.seekableStart):K=K.getDuration(z);D.setState({playedTime:G,videoDuration:K})}}};
tQQ=function(x){var G=x.element;var D=x.veType;var K=x.storedVisualElement===void 0?null:x.storedVisualElement;var z=x.elementIndex===void 0?0:x.elementIndex;x=x.clientYouTubeData;var y=_.CC();y!==J4n&&(fWP.clear(),J4n=y);if(G.visualElement&&fWP.has(G.visualElement))return null;if(K&&fWP.has(K))return G.visualElement=K,null;D=_.Wh(_.en(),{veType:D,elementIndex:z,clientYouTubeData:x});if(!D)return null;G.visualElement=D;fWP.add(D);return D};
_.Fm=function(x,G,D,K){D=D===void 0?null:D;K=K===void 0?XXh:K;var z=z===void 0?null:z;sI(function(){if(G){D instanceof Function&&(D=D());var y=tQQ({element:G,veType:x,storedVisualElement:D,clientYouTubeData:void 0});y&&(RnQ(G,z),K(y))}})};
Pjf=function(x){_.Fm(112394,x,function(){return khE},function(G){khE=G})};
xPC=function(x,G){if(!x)return[];var D,K,z;x=((D=x.markersMap)==null?void 0:(K=D.find(function(y){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(y.key)}))==null?void 0:(z=K.value)==null?void 0:z.chapters)||[];
!EHh(x)||(G==null?0:G.ignoreStub)||(x=[hLL()].concat(_.B5(x)));return x};
hLL=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
EHh=function(x){if(x.length===0)return!1;var G;return((G=_.Y(x[0],C6))==null?void 0:G.timeRangeStartMillis)!==0};
Ip=function(x){return x?x.timeRangeStartMillis||0:0};
DPf=function(x,G){if(x.isDragging&&G)return x=GM$(x,G),x===-1?hLL():xPC(G)[x]};
GM$=function(x,G){return x.isDragging&&G?xPC(G,{ignoreStub:!0}).findIndex(function(D,K,z){D=KCf(x);return zT3(D,z,K).scrubberHovering}):-1};
KCf=function(x){return Object.assign({},x,{videoDuration:x.videoDuration*1E3,playedTime:x.playedTime*1E3,draggedTime:x.draggedTime*1E3})};
zT3=function(x,G,D){var K=Ip(_.Y(G[D],C6));G=Ip(_.Y(G[D+1],C6))||x.videoDuration;D=x.isDragging;var z;if(z=x.isDragging)z=x.draggedTime,z=z!==null&&z>=K&&z<G;var y=x.playedTime;return y!==null&&y>=K&&y<G?{videoPosition:"active",isScrubbing:D,scrubberHovering:z}:x.playedTime<K?{videoPosition:"pending",isScrubbing:D,scrubberHovering:z}:{videoPosition:"seen",isScrubbing:D,scrubberHovering:z}};
aVP=function(x,G){return x.videoPosition==="seen"||(G===void 0?0:G)>0};
oIO=function(x,G,D){G=x/G.storyboardInterval;var K=xPC(D);if(!K.length)return-G*72;D=0;K=_.l(K);for(var z=K.next();!z.done;z=K.next())if(Ip(_.Y(z.value,C6))/1E3<x)D++;else break;return-(G*72)-D*56};
y0h=function(x){return x?x.width/x.columns:0};
lVD=function(x){return x.isHovering?x.hoveredTime:x.draggedTime};
c0d=function(x,G){x=x.draggedTime*1E3;return x>=G.visibleTimeRangeStartMillis&&x<=G.visibleTimeRangeEndMillis};
_.TIh=function(x){if(x===void 0||Number.isNaN(x))return"--:--";var G=Math.abs(Math.floor(x)),D=Math.floor(G/86400),K=Math.floor(G%86400/3600),z=Math.floor(G%3600/60);G=Math.floor(G%60);var y="";D>0&&(y+=D+":",K<10&&(y+="0"));if(D>0||K>0)y+=K+":",z<10&&(y+="0");y+=z+":";G<10&&(y+="0");y+=G;return x>=0?y:"-"+y};
WCf=function(x,G){return function(){var D=lVD(x());var K=G();var z=x().playerApi;if(z&&z.getNumberOfStoryboardLevels()!==0){var y=z.getStoryboardFrameIndex(D,1);y!==-1?K=z.getStoryboardFrame(y,1):(D=z.getStoryboardFrameIndex(D,0),z=z.getStoryboardFrame(D,0),K&&z&&(z.height*=3,z.width*=3),K=z)}else K=null;if(!K)return null;G()&&(K.width=90*K.columns,K.height=160*K.rows);return K}};
_.jJ=function(x){if(!x||x.getVideoData)return x};
eTh=function(){var x;return{playerApi:(x=_.Gx())!=null?x:void 0}};
_.pMO=function(x){function G($C){$C!==0||r?$C>50&&(r||!O)?(H(!1),A(!0)):$C<=50&&(r||O)&&(H(!1),A(!1)):H(!0)}
function D(){var $C;return _.T(function(OD){if(OD.nextAddress==1)return _.Z(OD,_.xL(),2);($C=OD.yieldResult)&&($C.isMuted()?H(!0):H(!1));_.c5(OD)})}
function K($C,OD,wn){var n$;return _.T(function(Fi){if(Fi.nextAddress==1)return _.Z(Fi,_.xL(),2);n$=Fi.yieldResult;OD&&n$?(n$.unMute(!0),!wn&&$C&&(Zp$($C,n$.getVolume()),u(n$.getVolume()))):n$&&(n$.mute(!0),!wn&&$C&&Zp$($C,0));_.c5(Fi)})}
function z($C){var OD,wn;return _.T(function(n$){if(n$.nextAddress==1)return _.Z(n$,_.xL(),2);OD=n$.yieldResult;wn=50;OD&&(wn=OD.getVolume(),OD.isMuted()?Zp$($C,0):Zp$($C,wn));u(wn);_.c5(n$)})}
var y=x.noSlider;var c=x.orientation;x=_.qi();var W=_.qi(),e=_.Ni(),Q=_.l(ys(!1)),p=Q.next().value,V=Q.next().value,L=_.l(ys(!1));Q=L.next().value;L=L.next().value;var r=Q,H=L;L=_.l(ys(!0));Q=L.next().value;L=L.next().value;var O=Q,A=L;Q=_.l(ys(50));var g=Q.next().value,u=Q.next().value,f=r?g+"% volume muted":g+"% volume";Q=c==="vertical_down";_.FQ(function(){function $C(){V(!0)}
function OD(){V(!1)}
y?(D(),G(r?0:100)):e&&e.value&&(e.value.addEventListener("focus",$C),e.value.addEventListener("focusout",OD),z(e.value).then(function(){G(Number(MgP(e.value)))}));
W&&W.value&&(W.value.addEventListener("focus",$C),W.value.addEventListener("focusout",OD));return function(){var wn;e==null||(wn=e.value)==null||wn.removeEventListener("focus",$C);var n$;e==null||(n$=e.value)==null||n$.removeEventListener("focusout",OD);W.value.removeEventListener("focus",$C);W.value.removeEventListener("focusout",OD)}});
var v=_.WH(function(){if(e&&e.value){var $C=Number(MgP(e.value));QwL($C);u($C);e.value.style.setProperty("--gradient-percent",$C+"%");G($C)}return!1});
L={};L=(L.ytdDesktopShortsVolumeControlsHost=!0,L.ytdDesktopShortsVolumeControlsHostVertical=Q,L.ytdDesktopShortsVolumeControlsHostExpanded=p,L);var P={},k=(P.ytdDesktopShortsVolumeControlsSliderContainer=!0,P.ytdDesktopShortsVolumeControlsSliderContainerExpanded=p,P.ytdDesktopShortsVolumeControlsSliderContainerVertical=Q,P.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=c==="vertical_down",P.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=p&&Q,P);c={};var cL=(c.ytdDesktopShortsVolumeControlsBackgroundScrim=
!0,c.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=y?!1:p,c);p={};p=(p.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=Q,p);c=_.WH(function(){V(!0)});
P=_.WH(function(){V(!1)});
var bO=_.WH(function(){if(e&&e.value||y)K(e.value,r,y),H(!r);return!1}),mE=_.B("web_shorts_keyboard_enable_mute_shortcut")?r?_.Wg("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):_.Wg("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):r?_.Wg("UNMUTE_VOLUME",void 0,"Unmute"):_.Wg("MUTE_VOLUME",void 0,"Mute"),jf={sources:[{clientResource:{imageName:r?_.B("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":O?_.B("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.B("web_shorts_modern_controls")?
"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]};
return _.M("desktop-shorts-volume-controls",{"on:pointerleave":P,class:_.cH(L),el:x},ka(!Q,function(){return _.M("div",{class:_.cH(cL)})}),_.M("div",{class:_.cH(p)},_.M("button",{"aria-label":mE,
title:mE,el:W,"on:click":bO,"on:pointerenter":c,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},jf?_.M(_.wk,{data:jf,alt:mE,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),ka(!y,function(){return _.M("div",{class:_.cH(k)},_.M("input",{"aria-label":_.Wg("VOLUME"),title:_.Wg("VOLUME"),el:e,"on:input":v,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":g,"aria-valuetext":f,"aria-valuemin":0,"aria-valuemax":100}))}))};
QwL=function(x){var G;_.T(function(D){if(D.nextAddress==1)return _.Z(D,_.xL(),2);if(G=D.yieldResult)G.unMute(!0),G.setVolume(x,!0);_.c5(D)})};
Zp$=function(x,G){x&&(x.value=""+G,x.style.setProperty("--gradient-percent",G+"%"))};
MgP=function(x){var G;return(G=x==null?void 0:x.value)!=null?G:0};
VgL=function(){var x;_.T(function(G){if(G.nextAddress==1)return _.Z(G,_.xL(),2);x=G.yieldResult;if(!x)return G.return();x.isMuted()?x.unMute(!0):x.mute(!0);_.c5(G)})};
bpP=function(x){var G=_.Eo().resolve(_.O$).getPlayerElement();G&&x&&(x===1?G.pause():G.play())};
LCD=function(x){_.Gl(x,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
BI3=function(x){_.Gl(x,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
swL=function(x){return _.mS(x.document.body,function(){return _.M(r0C,null)})};
Y1f=function(){var x=window.performance.getEntriesByType("navigation");return x?x.map(function(G){return G.type}).includes("reload"):!1};
OpL=function(){Xm(Xm(Xm(Xm(Xm(Xm(Xm(_.Eo().resolve(_.AR),_.mPC),_.HpQ),_.$Pn),_.FCL),_.Cef),_.IVD),_.jw3)};
XMQ=function(x,G){G=G===void 0?!1:G;var D,K,z,y;return _.T(function(c){if(c.nextAddress==1)return G||!_.B("kevlar_shorts_seedless_retry_initial_load")||(D=window,K=!(!D.getDataPromise&&!D.getInitialData),K)?_.Z(c,LQC(),2):(setTimeout(XMQ.bind(window,x,!0),1E3),c.return());if(c.nextAddress!=3)return z=c.yieldResult,_.Z(c,A03(z),3);y=c.yieldResult;Y1(x,y);_.c5(c)})};
A03=function(x){var G;if((G=x.response)==null||!G.replacementEndpoint)return _.aI(x);G=_.Eo().resolve(bh);x=x.response;_.Y(x.replacementEndpoint,_.MB)&&x.sequenceContinuation&&(_.Y(x.replacementEndpoint,_.MB).sequenceParams=x.sequenceContinuation);return U$(G,x.replacementEndpoint,{},_.Df.location.href,"shorts",function(){},function(){return!1})};
UPL=function(x){var G=_.wK(),D,K=_.Y((D=x.response)==null?void 0:D.frameworkUpdates,i_),z;D=_.Y((z=x.playerResponse)==null?void 0:z.frameworkUpdates,i_);var y;x=_.Y((y=x.reelWatchSequenceResponse)==null?void 0:y.frameworkUpdates,i_);K&&_.ck(K,G);D&&_.ck(D,G);x&&_.ck(x,G)};
RTh=function(x){var G;_.B("enable_redirect_linking_for_desktop_web_client")&&((G=window.location.hash)==null?0:G.includes("redirect_state"))&&x.url&&(x.url=x.url.toString()+window.location.hash)};
ipn=function(x){var G=_.Eo(),D=G.resolve(bh);G=G.resolve(_.S1P);x.endpoint&&(D=nIf(D,x.endpoint),D.content&&x.response&&_.Rp(G,x.response,D.content),D.player&&x.playerResponse&&_.Rp(G,x.playerResponse,D.player),D.reelSequence&&x.reelWatchSequenceResponse&&_.Rp(G,x.reelWatchSequenceResponse,D.reelSequence))};
SJ=function(x,G){UPL(G);var D;(G==null?0:G.url)&&((D=window.location.hash)==null?0:D.includes("redirect_state"))&&(RTh(G),(D=VQL(G.url))&&_.xO(x.root,"yt-initialize-third-party",[D,G]));ipn(G);D=_.Eo();var K=D.resolve(gIC);G.playerResponse&&D.resolve(uML).handleResponse(G.playerResponse);if(G.playerResponse){D=void 0;if(_.B("ab_v_vid_sig")&&G.endpoint){var z,y=(z=_.Y(G.endpoint,_.d5))!=null?z:_.Y(G.endpoint,_.MB);y&&(D=y.videoId)}dPO(K,G.playerResponse,D)}G.playerResponse&&dzQ(G.playerResponse)&&
_.B("web_enable_ab_rsp_cl")?uNd().then(function(){wME(K,G.playerResponse);Y1(x,G)}):Y1(x,G)};
NI3=function(x){if(x=x.root.data){var G=_.Eo().resolve(q1f);x.endpoint&&(x.response&&G.handleResponse(x.response,void 0,document.querySelector("ytd-app")),x.playerResponse&&G.handleResponse(x.playerResponse),x.reelWatchSequenceResponse&&G.handleResponse(x.reelWatchSequenceResponse))}};
vId=function(x){var G,D,K,z,y,c;return _.T(function(W){switch(W.nextAddress){case 1:G=window;if(!G.getDataPromise){W.jumpTo(2);break}_.Kl(W,3);return _.Z(W,G.getDataPromise(),5);case 5:D=W.yieldResult;SJ(x,D);_.iI(W,4);break;case 3:return _.lX(W),_.Z(W,L6(),6);case 6:K=W.yieldResult,Y1(x,K);case 4:return W.return();case 2:if(!_.B("sw_nav_preload_pbj")){W.jumpTo(7);break}G.fetchInitialData=function(){var e;return _.T(function(Q){if(Q.nextAddress==1)return _.Z(Q,L6(),2);e=Q.yieldResult;Y1(x,e);_.c5(Q)})};
if(G.getInitialData){G.loadInitialData=function(e){SJ(x,e)};
z=G.getInitialData();G.getInitialData=void 0;SJ(x,z);W.jumpTo(8);break}G.fetchInitialData=void 0;return _.Z(W,L6(),9);case 9:y=W.yieldResult,Y1(x,y);case 8:return W.return();case 7:G.getInitialData?(c=G.getInitialData(),G.getInitialData=void 0,SJ(x,c)):G.loadInitialData=function(e){SJ(x,e)},_.c5(W)}})};
J0V=function(x){var G=0;return function(){return G<x.length?{done:!1,value:x[G++]}:{done:!0}}};
fVP=typeof Object.defineProperties=="function"?Object.defineProperty:function(x,G,D){if(x==Array.prototype||x==Object.prototype)return x;x[G]=D.value;return x};
tgh=function(x){x=["object"==typeof globalThis&&globalThis,x,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var G=0;G<x.length;++G){var D=x[G];if(D&&D.Math==Math)return D}throw Error("a");};
_.Nq=tgh(this);n6=function(x,G){if(G)a:{var D=_.Nq;x=x.split(".");for(var K=0;K<x.length-1;K++){var z=x[K];if(!(z in D))break a;D=D[z]}x=x[x.length-1];K=D[x];G=G(K);G!=K&&G!=null&&fVP(D,x,{configurable:!0,writable:!0,value:G})}};
n6("Symbol",function(x){if(x)return x;var G=function(y,c){this.$jscomp$symbol$id_=y;fVP(this,"description",{configurable:!0,writable:!0,value:c})};
G.prototype.toString=function(){return this.$jscomp$symbol$id_};
var D="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",K=0,z=function(y){if(this instanceof z)throw new TypeError("b");return new G(D+(y||"")+"_"+K++,y)};
return z});
n6("Symbol.iterator",function(x){if(x)return x;x=Symbol("c");for(var G="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),D=0;D<G.length;D++){var K=_.Nq[G[D]];typeof K==="function"&&typeof K.prototype[x]!="function"&&fVP(K.prototype,x,{configurable:!0,writable:!0,value:function(){return kMP(J0V(this))}})}return x});
n6("Symbol.asyncIterator",function(x){return x?x:Symbol("d")});
var kMP=function(x){x={next:x};x[Symbol.iterator]=function(){return this};
return x},PeP=typeof Object.create=="function"?Object.create:function(x){var G=function(){};
G.prototype=x;return new G},EID=function(){function x(){function D(){}
new D;Reflect.construct(D,[],function(){});
return new D instanceof D}
if(typeof Reflect!="undefined"&&Reflect.construct){if(x())return Reflect.construct;var G=Reflect.construct;return function(D,K,z){D=G(D,K);z&&Reflect.setPrototypeOf(D,z.prototype);return D}}return function(D,K,z){z===void 0&&(z=D);
z=PeP(z.prototype||Object.prototype);return Function.prototype.apply.call(D,z,K)||z}}(),hTE;
if(typeof Object.setPrototypeOf=="function")hTE=Object.setPrototypeOf;else{var xfE;a:{var GiP={a:!0},DfE={};try{DfE.__proto__=GiP;xfE=DfE.a;break a}catch(x){}xfE=!1}hTE=xfE?function(x,G){x.__proto__=G;if(x.__proto__!==G)throw new TypeError("e`"+x);return x}:null}_.ih=hTE;
_.m=function(x,G){x.prototype=PeP(G.prototype);x.prototype.constructor=x;if(_.ih)(0,_.ih)(x,G);else for(var D in G)if(D!="prototype")if(Object.defineProperties){var K=Object.getOwnPropertyDescriptor(G,D);K&&Object.defineProperty(x,D,K)}else x[D]=G[D];x.superClass_=G.prototype};
_.l=function(x){var G=typeof Symbol!="undefined"&&Symbol.iterator&&x[Symbol.iterator];if(G)return G.call(x);if(typeof x.length=="number")return{next:J0V(x)};throw Error("f`"+String(x));};
f4=function(x){for(var G,D=[];!(G=x.next()).done;)D.push(G.value);return D};
_.B5=function(x){return x instanceof Array?x:f4(_.l(x))};
_.gv=function(x){return KTL(x,x)};
KTL=function(x,G){x.raw=G;Object.freeze&&(Object.freeze(x),Object.freeze(G));return x};
uh=function(x,G){return Object.prototype.hasOwnProperty.call(x,G)};
zNd=typeof Object.assign=="function"?Object.assign:function(x,G){for(var D=1;D<arguments.length;D++){var K=arguments[D];if(K)for(var z in K)uh(K,z)&&(x[z]=K[z])}return x};
n6("Object.assign",function(x){return x||zNd});
var anL=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},o6D=function(x){if(x.isRunning_)throw new TypeError("h");
x.isRunning_=!0};
anL.prototype.JSC$6750_next_=function(x){this.yieldResult=x};
var ydd=function(x,G){x.abruptCompletion_={exception:G,isException:!0};x.nextAddress=x.catchAddress_||x.finallyAddress_};
anL.prototype.return=function(x){this.abruptCompletion_={return:x};this.nextAddress=this.finallyAddress_};
_.Z=function(x,G,D){x.nextAddress=D;return{value:G}};
anL.prototype.jumpTo=function(x){this.nextAddress=x};
_.c5=function(x){x.nextAddress=0};
_.Kl=function(x,G,D){x.catchAddress_=G;D!=void 0&&(x.finallyAddress_=D)};
_.o0=function(x,G){x.catchAddress_=0;x.finallyAddress_=G||0};
_.iI=function(x,G,D){x.nextAddress=G;x.catchAddress_=D||0};
_.lX=function(x,G){x.catchAddress_=G||0;G=x.abruptCompletion_.exception;x.abruptCompletion_=null;return G};
_.zA=function(x,G,D,K){K?x.finallyContexts_[K]=x.abruptCompletion_:x.finallyContexts_=[x.abruptCompletion_];x.catchAddress_=G||0;x.finallyAddress_=D||0};
_.y6=function(x,G,D){D=x.finallyContexts_.splice(D||0)[0];(D=x.abruptCompletion_=x.abruptCompletion_||D)?D.isException?x.nextAddress=x.catchAddress_||x.finallyAddress_:D.jumpTo!=void 0&&x.finallyAddress_<D.jumpTo?(x.nextAddress=D.jumpTo,x.abruptCompletion_=null):x.nextAddress=x.finallyAddress_:x.nextAddress=G};
_.ln$=function(x){this.JSC$6755_context_=new anL;this.program_=x};
TtQ=function(x,G){o6D(x.JSC$6755_context_);var D=x.JSC$6755_context_.yieldAllIterator_;if(D)return cdO(x,"return"in D?D["return"]:function(K){return{value:K,done:!0}},G,x.JSC$6755_context_.return);
x.JSC$6755_context_.return(G);return dv(x)};
cdO=function(x,G,D,K){try{var z=G.call(x.JSC$6755_context_.yieldAllIterator_,D);if(!(z instanceof Object))throw new TypeError("g`"+z);if(!z.done)return x.JSC$6755_context_.isRunning_=!1,z;var y=z.value}catch(c){return x.JSC$6755_context_.yieldAllIterator_=null,ydd(x.JSC$6755_context_,c),dv(x)}x.JSC$6755_context_.yieldAllIterator_=null;K.call(x.JSC$6755_context_,y);return dv(x)};
dv=function(x){for(;x.JSC$6755_context_.nextAddress;)try{var G=x.program_(x.JSC$6755_context_);if(G)return x.JSC$6755_context_.isRunning_=!1,{value:G.value,done:!1}}catch(D){x.JSC$6755_context_.yieldResult=void 0,ydd(x.JSC$6755_context_,D)}x.JSC$6755_context_.isRunning_=!1;if(x.JSC$6755_context_.abruptCompletion_){G=x.JSC$6755_context_.abruptCompletion_;x.JSC$6755_context_.abruptCompletion_=null;if(G.isException)throw G.exception;return{value:G.return,done:!0}}return{value:void 0,done:!0}};
_.WTh=function(x){this.next=function(G){o6D(x.JSC$6755_context_);x.JSC$6755_context_.yieldAllIterator_?G=cdO(x,x.JSC$6755_context_.yieldAllIterator_.next,G,x.JSC$6755_context_.JSC$6750_next_):(x.JSC$6755_context_.JSC$6750_next_(G),G=dv(x));return G};
this.throw=function(G){o6D(x.JSC$6755_context_);x.JSC$6755_context_.yieldAllIterator_?G=cdO(x,x.JSC$6755_context_.yieldAllIterator_["throw"],G,x.JSC$6755_context_.JSC$6750_next_):(ydd(x.JSC$6755_context_,G),G=dv(x));return G};
this.return=function(G){return TtQ(x,G)};
this[Symbol.iterator]=function(){return this}};
eN$=function(x){function G(K){return x.next(K)}
function D(K){return x.throw(K)}
return new Promise(function(K,z){function y(c){c.done?K(c.value):Promise.resolve(c.value).then(G,D).then(y,z)}
y(x.next())})};
_.T=function(x){return eN$(new _.WTh(new _.ln$(x)))};
Nhf=function(x){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return x};
this.next=function(G){return Promise.resolve(x.next(G))};
this["throw"]=function(G){return new Promise(function(D,K){var z=x["throw"];z!==void 0?D(z.call(x,G)):(D=x["return"],D!==void 0&&D.call(x),K(new TypeError("i")))})};
x["return"]!==void 0&&(this["return"]=function(G){return Promise.resolve(x["return"](G))})};
_.rC=function(){for(var x=Number(this),G=[],D=x;D<arguments.length;D++)G[D-x]=arguments[D];return G};
n6("globalThis",function(x){return x||_.Nq});
n6("Reflect",function(x){return x?x:{}});
n6("Reflect.construct",function(){return EID});
n6("Reflect.setPrototypeOf",function(x){return x?x:_.ih?function(G,D){try{return(0,_.ih)(G,D),!0}catch(K){return!1}}:null});
n6("Promise",function(x){function G(){this.batch_=null}
function D(c){return c instanceof z?c:new z(function(W){W(c)})}
if(x&&(typeof _.Nq.PromiseRejectionEvent!=="undefined"||!_.Nq.Promise||_.Nq.Promise.toString().indexOf("[native code]")===-1))return x;G.prototype.asyncExecute=function(c){if(this.batch_==null){this.batch_=[];var W=this;this.asyncExecuteFunction(function(){W.executeBatch_()})}this.batch_.push(c)};
var K=_.Nq.setTimeout;G.prototype.asyncExecuteFunction=function(c){K(c,0)};
G.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var c=this.batch_;this.batch_=[];for(var W=0;W<c.length;++W){var e=c[W];c[W]=null;try{e()}catch(Q){this.asyncThrow_(Q)}}}this.batch_=null};
G.prototype.asyncThrow_=function(c){this.asyncExecuteFunction(function(){throw c;})};
var z=function(c){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var W=this.createResolveAndReject_();try{c(W.resolve,W.reject)}catch(e){W.reject(e)}};
z.prototype.createResolveAndReject_=function(){function c(Q){return function(p){e||(e=!0,Q.call(W,p))}}
var W=this,e=!1;return{resolve:c(this.resolveTo_),reject:c(this.JSC$6771_reject_)}};
z.prototype.resolveTo_=function(c){if(c===this)this.JSC$6771_reject_(new TypeError("j"));else if(c instanceof z)this.settleSameAsPromise_(c);else{a:switch(typeof c){case "object":var W=c!=null;break a;case "function":W=!0;break a;default:W=!1}W?this.resolveToNonPromiseObj_(c):this.fulfill_(c)}};
z.prototype.resolveToNonPromiseObj_=function(c){var W=void 0;try{W=c.then}catch(e){this.JSC$6771_reject_(e);return}typeof W=="function"?this.settleSameAsThenable_(W,c):this.fulfill_(c)};
z.prototype.JSC$6771_reject_=function(c){this.settle_(2,c)};
z.prototype.fulfill_=function(c){this.settle_(1,c)};
z.prototype.settle_=function(c,W){if(this.state_!=0)throw Error("k`"+c+"`"+W+"`"+this.state_);this.state_=c;this.result_=W;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
z.prototype.scheduleUnhandledRejectionCheck_=function(){var c=this;K(function(){if(c.notifyUnhandledRejection_()){var W=_.Nq.console;typeof W!=="undefined"&&W.error(c.result_)}},1)};
z.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var c=_.Nq.CustomEvent,W=_.Nq.Event,e=_.Nq.dispatchEvent;if(typeof e==="undefined")return!0;typeof c==="function"?c=new c("unhandledrejection",{cancelable:!0}):typeof W==="function"?c=new W("unhandledrejection",{cancelable:!0}):(c=_.Nq.document.createEvent("CustomEvent"),c.initCustomEvent("unhandledrejection",!1,!0,c));c.promise=this;c.reason=this.result_;return e(c)};
z.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var c=0;c<this.onSettledCallbacks_.length;++c)y.asyncExecute(this.onSettledCallbacks_[c]);this.onSettledCallbacks_=null}};
var y=new G;z.prototype.settleSameAsPromise_=function(c){var W=this.createResolveAndReject_();c.callWhenSettled_(W.resolve,W.reject)};
z.prototype.settleSameAsThenable_=function(c,W){var e=this.createResolveAndReject_();try{c.call(W,e.resolve,e.reject)}catch(Q){e.reject(Q)}};
z.prototype.then=function(c,W){function e(L,r){return typeof L=="function"?function(H){try{Q(L(H))}catch(O){p(O)}}:r}
var Q,p,V=new z(function(L,r){Q=L;p=r});
this.callWhenSettled_(e(c,Q),e(W,p));return V};
z.prototype.catch=function(c){return this.then(void 0,c)};
z.prototype.callWhenSettled_=function(c,W){function e(){switch(Q.state_){case 1:c(Q.result_);break;case 2:W(Q.result_);break;default:throw Error("l`"+Q.state_);}}
var Q=this;this.onSettledCallbacks_==null?y.asyncExecute(e):this.onSettledCallbacks_.push(e);this.isRejectionHandled_=!0};
z.resolve=D;z.reject=function(c){return new z(function(W,e){e(c)})};
z.race=function(c){return new z(function(W,e){for(var Q=_.l(c),p=Q.next();!p.done;p=Q.next())D(p.value).callWhenSettled_(W,e)})};
z.all=function(c){var W=_.l(c),e=W.next();return e.done?D([]):new z(function(Q,p){function V(H){return function(O){L[H]=O;r--;r==0&&Q(L)}}
var L=[],r=0;do L.push(void 0),r++,D(e.value).callWhenSettled_(V(L.length-1),p),e=W.next();while(!e.done)})};
return z});
var wv=function(x,G,D){if(x==null)throw new TypeError("m`"+D);if(G instanceof RegExp)throw new TypeError("n`"+D);return x+""};
n6("String.prototype.startsWith",function(x){return x?x:function(G,D){var K=wv(this,G,"startsWith"),z=K.length,y=G.length;D=Math.max(0,Math.min(D|0,K.length));for(var c=0;c<y&&D<z;)if(K[D++]!=G[c++])return!1;return c>=y}});
n6("Object.setPrototypeOf",function(x){return x||_.ih});
n6("Symbol.dispose",function(x){return x?x:Symbol("o")});
n6("SuppressedError",function(x){function G(D,K,z){if(!(this instanceof G))return new G(D,K,z);z=Error(z);"stack"in z&&(this.stack=z.stack);this.message=z.message;this.error=D;this.suppressed=K}
if(x)return x;_.m(G,Error);G.prototype.name="SuppressedError";return G});
var ZYV=function(x,G,D){x instanceof String&&(x=String(x));for(var K=x.length,z=0;z<K;z++){var y=x[z];if(G.call(D,y,z,x))return{i:z,v:y}}return{i:-1,v:void 0}};
n6("Array.prototype.find",function(x){return x?x:function(G,D){return ZYV(this,G,D).v}});
n6("WeakMap",function(x){function G(){}
function D(e){var Q=typeof e;return Q==="object"&&e!==null||Q==="function"}
function K(e){if(!uh(e,y)){var Q=new G;fVP(e,y,{value:Q})}}
function z(e){var Q=Object[e];Q&&(Object[e]=function(p){if(p instanceof G)return p;Object.isExtensible(p)&&K(p);return Q(p)})}
if(function(){if(!x||!Object.seal)return!1;try{var e=Object.seal({}),Q=Object.seal({}),p=new x([[e,2],[Q,3]]);if(p.get(e)!=2||p.get(Q)!=3)return!1;p.delete(e);p.set(Q,4);return!p.has(e)&&p.get(Q)==4}catch(V){return!1}}())return x;
var y="$jscomp_hidden_"+Math.random();z("freeze");z("preventExtensions");z("seal");var c=0,W=function(e){this.JSC$6778_id_=(c+=Math.random()+1).toString();if(e){e=_.l(e);for(var Q;!(Q=e.next()).done;)Q=Q.value,this.set(Q[0],Q[1])}};
W.prototype.set=function(e,Q){if(!D(e))throw Error("p");K(e);if(!uh(e,y))throw Error("q`"+e);e[y][this.JSC$6778_id_]=Q;return this};
W.prototype.get=function(e){return D(e)&&uh(e,y)?e[y][this.JSC$6778_id_]:void 0};
W.prototype.has=function(e){return D(e)&&uh(e,y)&&uh(e[y],this.JSC$6778_id_)};
W.prototype.delete=function(e){return D(e)&&uh(e,y)&&uh(e[y],this.JSC$6778_id_)?delete e[y][this.JSC$6778_id_]:!1};
return W});
n6("Map",function(x){if(function(){if(!x||typeof x!="function"||!x.prototype.entries||typeof Object.seal!="function")return!1;try{var W=Object.seal({x:4}),e=new x(_.l([[W,"s"]]));if(e.get(W)!="s"||e.size!=1||e.get({x:4})||e.set({x:4},"t")!=e||e.size!=2)return!1;var Q=e.entries(),p=Q.next();if(p.done||p.value[0]!=W||p.value[1]!="s")return!1;p=Q.next();return p.done||p.value[0].x!=4||p.value[1]!="t"||!Q.next().done?!1:!0}catch(V){return!1}}())return x;
var G=new WeakMap,D=function(W){this[0]={};this[1]=y();this.size=0;if(W){W=_.l(W);for(var e;!(e=W.next()).done;)e=e.value,this.set(e[0],e[1])}};
D.prototype.set=function(W,e){W=W===0?0:W;var Q=K(this,W);Q.list||(Q.list=this[0][Q.id]=[]);Q.entry?Q.entry.value=e:(Q.entry={next:this[1],previous:this[1].previous,head:this[1],key:W,value:e},Q.list.push(Q.entry),this[1].previous.next=Q.entry,this[1].previous=Q.entry,this.size++);return this};
D.prototype.delete=function(W){W=K(this,W);return W.entry&&W.list?(W.list.splice(W.index,1),W.list.length||delete this[0][W.id],W.entry.previous.next=W.entry.next,W.entry.next.previous=W.entry.previous,W.entry.head=null,this.size--,!0):!1};
D.prototype.clear=function(){this[0]={};this[1]=this[1].previous=y();this.size=0};
D.prototype.has=function(W){return!!K(this,W).entry};
D.prototype.get=function(W){return(W=K(this,W).entry)&&W.value};
D.prototype.entries=function(){return z(this,function(W){return[W.key,W.value]})};
D.prototype.keys=function(){return z(this,function(W){return W.key})};
D.prototype.values=function(){return z(this,function(W){return W.value})};
D.prototype.forEach=function(W,e){for(var Q=this.entries(),p;!(p=Q.next()).done;)p=p.value,W.call(e,p[1],p[0],this)};
D.prototype[Symbol.iterator]=D.prototype.entries;var K=function(W,e){var Q=e&&typeof e;Q=="object"||Q=="function"?G.has(e)?Q=G.get(e):(Q=""+ ++c,G.set(e,Q)):Q="p_"+e;var p=W[0][Q];if(p&&uh(W[0],Q))for(W=0;W<p.length;W++){var V=p[W];if(e!==e&&V.key!==V.key||e===V.key)return{id:Q,list:p,index:W,entry:V}}return{id:Q,list:p,index:-1,entry:void 0}},z=function(W,e){var Q=W[1];
return kMP(function(){if(Q){for(;Q.head!=W[1];)Q=Q.previous;for(;Q.next!=Q.head;)return Q=Q.next,{done:!1,value:e(Q)};Q=null}return{done:!0,value:void 0}})},y=function(){var W={};
return W.previous=W.next=W.head=W},c=0;
return D});
n6("Set",function(x){if(function(){if(!x||typeof x!="function"||!x.prototype.entries||typeof Object.seal!="function")return!1;try{var D=Object.seal({x:4}),K=new x(_.l([D]));if(!K.has(D)||K.size!=1||K.add(D)!=K||K.size!=1||K.add({x:4})!=K||K.size!=2)return!1;var z=K.entries(),y=z.next();if(y.done||y.value[0]!=D||y.value[1]!=D)return!1;y=z.next();return y.done||y.value[0]==D||y.value[0].x!=4||y.value[1]!=y.value[0]?!1:z.next().done}catch(c){return!1}}())return x;
var G=function(D){this.JSC$6792_map_=new Map;if(D){D=_.l(D);for(var K;!(K=D.next()).done;)this.add(K.value)}this.size=this.JSC$6792_map_.size};
G.prototype.add=function(D){D=D===0?0:D;this.JSC$6792_map_.set(D,D);this.size=this.JSC$6792_map_.size;return this};
G.prototype.delete=function(D){D=this.JSC$6792_map_.delete(D);this.size=this.JSC$6792_map_.size;return D};
G.prototype.clear=function(){this.JSC$6792_map_.clear();this.size=0};
G.prototype.has=function(D){return this.JSC$6792_map_.has(D)};
G.prototype.entries=function(){return this.JSC$6792_map_.entries()};
G.prototype.values=function(){return this.JSC$6792_map_.values()};
G.prototype.keys=G.prototype.values;G.prototype[Symbol.iterator]=G.prototype.values;G.prototype.forEach=function(D,K){var z=this;this.JSC$6792_map_.forEach(function(y){return D.call(K,y,y,z)})};
return G});
n6("Math.log2",function(x){return x?x:function(G){return Math.log(G)/Math.LN2}});
n6("Object.values",function(x){return x?x:function(G){var D=[],K;for(K in G)uh(G,K)&&D.push(G[K]);return D}});
n6("Object.is",function(x){return x?x:function(G,D){return G===D?G!==0||1/G===1/D:G!==G&&D!==D}});
n6("Array.prototype.includes",function(x){return x?x:function(G,D){var K=this;K instanceof String&&(K=String(K));var z=K.length;D=D||0;for(D<0&&(D=Math.max(D+z,0));D<z;D++){var y=K[D];if(y===G||Object.is(y,G))return!0}return!1}});
n6("String.prototype.includes",function(x){return x?x:function(G,D){return wv(this,G,"includes").indexOf(G,D||0)!==-1}});
n6("Array.from",function(x){return x?x:function(G,D,K){D=D!=null?D:function(W){return W};
var z=[],y=typeof Symbol!="undefined"&&Symbol.iterator&&G[Symbol.iterator];if(typeof y=="function"){G=y.call(G);for(var c=0;!(y=G.next()).done;)z.push(D.call(K,y.value,c++))}else for(y=G.length,c=0;c<y;c++)z.push(D.call(K,G[c],c));return z}});
n6("Object.entries",function(x){return x?x:function(G){var D=[],K;for(K in G)uh(G,K)&&D.push([K,G[K]]);return D}});
n6("Number.isFinite",function(x){return x?x:function(G){return typeof G!=="number"?!1:!isNaN(G)&&G!==Infinity&&G!==-Infinity}});
n6("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
n6("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
n6("Number.isInteger",function(x){return x?x:function(G){return Number.isFinite(G)?G===Math.floor(G):!1}});
n6("Number.isSafeInteger",function(x){return x?x:function(G){return Number.isInteger(G)&&Math.abs(G)<=Number.MAX_SAFE_INTEGER}});
n6("String.prototype.endsWith",function(x){return x?x:function(G,D){var K=wv(this,G,"endsWith");D===void 0&&(D=K.length);D=Math.max(0,Math.min(D|0,K.length));for(var z=G.length;z>0&&D>0;)if(K[--D]!=G[--z])return!1;return z<=0}});
var Md3=function(x,G){x instanceof String&&(x+="");var D=0,K=!1,z={next:function(){if(!K&&D<x.length){var y=D++;return{value:G(y,x[y]),done:!1}}K=!0;return{done:!0,value:void 0}}};
z[Symbol.iterator]=function(){return z};
return z};
n6("Array.prototype.entries",function(x){return x?x:function(){return Md3(this,function(G,D){return[G,D]})}});
n6("Math.trunc",function(x){return x?x:function(G){G=Number(G);if(isNaN(G)||G===Infinity||G===-Infinity||G===0)return G;var D=Math.floor(Math.abs(G));return G<0?-D:D}});
n6("Number.isNaN",function(x){return x?x:function(G){return typeof G==="number"&&isNaN(G)}});
n6("Array.prototype.keys",function(x){return x?x:function(){return Md3(this,function(G){return G})}});
n6("Array.prototype.values",function(x){return x?x:function(){return Md3(this,function(G,D){return D})}});
n6("Array.prototype.fill",function(x){return x?x:function(G,D,K){var z=this.length||0;D<0&&(D=Math.max(0,z+D));if(K==null||K>z)K=z;K=Number(K);K<0&&(K=Math.max(0,z+K));for(D=Number(D||0);D<K;D++)this[D]=G;return this}});
var qt=function(x){return x?x:Array.prototype.fill};
n6("Int8Array.prototype.fill",qt);n6("Uint8Array.prototype.fill",qt);n6("Uint8ClampedArray.prototype.fill",qt);n6("Int16Array.prototype.fill",qt);n6("Uint16Array.prototype.fill",qt);n6("Int32Array.prototype.fill",qt);n6("Uint32Array.prototype.fill",qt);n6("Float32Array.prototype.fill",qt);n6("Float64Array.prototype.fill",qt);
n6("Object.fromEntries",function(x){return x?x:function(G){var D={};if(!(Symbol.iterator in G))throw new TypeError("r`"+G);G=G[Symbol.iterator].call(G);for(var K=G.next();!K.done;K=G.next()){K=K.value;if(Object(K)!==K)throw new TypeError("s");D[K[0]]=K[1]}return D}});
n6("String.prototype.replaceAll",function(x){return x?x:function(G,D){if(G instanceof RegExp&&!G.global)throw new TypeError("t");return G instanceof RegExp?this.replace(G,D):this.replace(new RegExp(String(G).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),D)}});
n6("Object.getOwnPropertySymbols",function(x){return x?x:function(){return[]}});
n6("String.prototype.repeat",function(x){return x?x:function(G){var D=wv(this,null,"repeat");if(G<0||G>1342177279)throw new RangeError("u");G|=0;for(var K="";G;)if(G&1&&(K+=D),G>>>=1)D+=D;return K}});
n6("Array.prototype.findIndex",function(x){return x?x:function(G,D){return ZYV(this,G,D).i}});
n6("Array.prototype.flatMap",function(x){return x?x:function(G,D){var K=[];Array.prototype.forEach.call(this,function(z,y){z=G.call(D,z,y,this);Array.isArray(z)?K.push.apply(K,z):K.push(z)});
return K}});
n6("String.prototype.codePointAt",function(x){return x?x:function(G){var D=wv(this,null,"codePointAt"),K=D.length;G=Number(G)||0;if(G>=0&&G<K){G|=0;var z=D.charCodeAt(G);if(z<55296||z>56319||G+1===K)return z;G=D.charCodeAt(G+1);return G<56320||G>57343?z:(z-55296)*1024+G+9216}}});
n6("String.fromCodePoint",function(x){return x?x:function(G){for(var D="",K=0;K<arguments.length;K++){var z=Number(arguments[K]);if(z<0||z>1114111||z!==Math.floor(z))throw new RangeError("v`"+z);z<=65535?D+=String.fromCharCode(z):(z-=65536,D+=String.fromCharCode(z>>>10&1023|55296),D+=String.fromCharCode(z&1023|56320))}return D}});
n6("String.prototype.padStart",function(x){return x?x:function(G,D){var K=wv(this,null,"padStart");G-=K.length;D=D!==void 0?String(D):" ";return(G>0&&D?D.repeat(Math.ceil(G/D.length)).substring(0,G):"")+K}});
n6("Promise.prototype.finally",function(x){return x?x:function(G){return this.then(function(D){return Promise.resolve(G()).then(function(){return D})},function(D){return Promise.resolve(G()).then(function(){throw D;
})})}});
n6("Math.imul",function(x){return x?x:function(G,D){G=Number(G);D=Number(D);var K=G&65535,z=D&65535;return K*z+((G>>>16&65535)*z+K*(D>>>16&65535)<<16>>>0)|0}});
n6("Object.hasOwn",function(x){return x?x:function(G,D){return Object.prototype.hasOwnProperty.call(G,D)}});
n6("Math.sign",function(x){return x?x:function(G){G=Number(G);return G===0||isNaN(G)?G:G>0?1:-1}});
n6("Array.prototype.flat",function(x){return x?x:function(G){G=G===void 0?1:G;var D=[];Array.prototype.forEach.call(this,function(K){Array.isArray(K)&&G>0?(K=Array.prototype.flat.call(K,G-1),D.push.apply(D,K)):D.push(K)});
return D}});
n6("String.raw",function(x){return x?x:function(G,D){if(G==null)throw new TypeError("w");for(var K=G.raw,z=K.length,y="",c=0;c<z;++c)y+=K[c],c+1<z&&c+1<arguments.length&&(y+=String(arguments[c+1]));return y}});
n6("Reflect.ownKeys",function(x){return x?x:function(G){var D=[],K=Object.getOwnPropertyNames(G);G=Object.getOwnPropertySymbols(G);for(var z=0;z<K.length;z++)(K[z].substring(0,14)=="jscomp_symbol_"?G:D).push(K[z]);return D.concat(G)}});
n6("Object.getOwnPropertyDescriptors",function(x){return x?x:function(G){for(var D={},K=Reflect.ownKeys(G),z=0;z<K.length;z++)D[K[z]]=Object.getOwnPropertyDescriptor(G,K[z]);return D}});
n6("WeakSet",function(x){if(function(){if(!x||!Object.seal)return!1;try{var D=Object.seal({}),K=Object.seal({}),z=new x([D]);if(!z.has(D)||z.has(K))return!1;z.delete(D);z.add(K);return!z.has(D)&&z.has(K)}catch(y){return!1}}())return x;
var G=function(D){this.JSC$6799_map_=new WeakMap;if(D){D=_.l(D);for(var K;!(K=D.next()).done;)this.add(K.value)}};
G.prototype.add=function(D){this.JSC$6799_map_.set(D,!0);return this};
G.prototype.has=function(D){return this.JSC$6799_map_.has(D)};
G.prototype.delete=function(D){return this.JSC$6799_map_.delete(D)};
return G});
n6("Promise.allSettled",function(x){function G(K){return{status:"fulfilled",value:K}}
function D(K){return{status:"rejected",reason:K}}
return x?x:function(K){var z=this;K=Array.from(K,function(y){return z.resolve(y).then(G,D)});
return z.all(K)}});
n6("Number.parseInt",function(x){return x||parseInt});
_._DumpException=window._DumpException||function(x){throw x;};
window._DumpException=_._DumpException;var QUL,pEV,Nt,v1,Vd$,bYn,LTd,BtL,vY,rdn;QUL=QUL||{};_.Df=this||self;_.Jv=function(x,G,D){x=x.split(".");D=D||_.Df;for(var K;x.length&&(K=x.shift());)x.length||G===void 0?D[K]&&D[K]!==Object.prototype[K]?D=D[K]:D=D[K]={}:D[K]=G};
pEV=function(x){var G=_.nT("WIZ_global_data.oxN3nb");x=G&&G[x];return x!=null?x:!1};
Nt=_.Df._F_toggles||[];v1=function(){};
v1.get=function(){return null};
_.nT=function(x,G){x=x.split(".");G=G||_.Df;for(var D=0;D<x.length;D++)if(G=G[x[D]],G==null)return null;return G};
_.JR=function(x){x.instance_=void 0;x.getInstance=function(){return x.instance_?x.instance_:x.instance_=new x}};
_.WY=function(x){var G=typeof x;return G!="object"?G:x?Array.isArray(x)?"array":G:"null"};
_.PL=function(x){var G=_.WY(x);return G=="array"||G=="object"&&typeof x.length=="number"};
_.G7=function(x){var G=typeof x;return G=="object"&&x!=null||G=="function"};
_.Do=function(x){return Object.prototype.hasOwnProperty.call(x,Vd$)&&x[Vd$]||(x[Vd$]=++bYn)};
Vd$="closure_uid_"+(Math.random()*1E9>>>0);bYn=0;LTd=function(x,G,D){return x.call.apply(x.bind,arguments)};
BtL=function(x,G,D){if(!x)throw Error();if(arguments.length>2){var K=Array.prototype.slice.call(arguments,2);return function(){var z=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(z,K);return x.apply(G,z)}}return function(){return x.apply(G,arguments)}};
_.mW=function(x,G,D){_.mW=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?LTd:BtL;return _.mW.apply(null,arguments)};
_.Zq=function(x,G){var D=Array.prototype.slice.call(arguments,1);return function(){var K=D.slice();K.push.apply(K,arguments);return x.apply(this,K)}};
_.f6=function(){return Date.now()};
vY=function(x){return x};
_.tR=function(x,G){function D(){}
D.prototype=G.prototype;x.superClass_=G.prototype;x.prototype=new D;x.prototype.constructor=x;x.base=function(K,z,y){for(var c=Array(arguments.length-2),W=2;W<arguments.length;W++)c[W-2]=arguments[W];return G.prototype[z].apply(K,c)}};
rdn=function(x){return x};var sUE,YWV;_.q=function(x,G,D,K){var z=arguments.length,y=z<3?G:K===null?K=Object.getOwnPropertyDescriptor(G,D):K,c;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")y=Reflect.decorate(x,G,D,K);else for(var W=x.length-1;W>=0;W--)if(c=x[W])y=(z<3?c(y):z>3?c(G,D,y):c(G,D))||y;return z>3&&y&&Object.defineProperty(G,D,y),y};
_.N=function(x,G){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(x,G)};
sUE=function(x,G){if(G!==null&&G!==void 0){if(typeof G!=="object"&&typeof G!=="function")throw new TypeError("x");if(D===void 0){if(!Symbol.dispose)throw new TypeError("z");var D=G[Symbol.dispose]}if(typeof D!=="function")throw new TypeError("A");x.stack.push({value:G,dispose:D,async:!1})}return G};
YWV=function(x){function G(y){x.error=x.hasError?new SuppressedError(y,x.error,"An error was suppressed during disposal."):y;x.hasError=!0}
function D(){for(;K=x.stack.pop();)try{if(!K.async&&z===1)return z=0,x.stack.push(K),Promise.resolve().then(D);if(K.dispose){var y=K.dispose.call(K.value);if(K.async)return z|=2,Promise.resolve(y).then(D,function(c){G(c);return D()})}else z|=1}catch(c){G(c)}if(z===1)return x.hasError?Promise.reject(x.error):Promise.resolve();
if(x.hasError)throw x.error;}
var K,z=0;D()};_.tR(_.xC,Error);_.xC.prototype.name="CustomError";var mfE;var HYO=void 0,$fQ,FT$=typeof TextDecoder!=="undefined",KEh,DLd=typeof String.prototype.isWellFormed==="function",GdL=typeof TextEncoder!=="undefined";var Cch;_.rM=function(x){for(var G=[],D=0,K=0;K<x.length;K++){var z=x.charCodeAt(K);z<128?G[D++]=z:(z<2048?G[D++]=z>>6|192:((z&64512)==55296&&K+1<x.length&&(x.charCodeAt(K+1)&64512)==56320?(z=65536+((z&1023)<<10)+(x.charCodeAt(++K)&1023),G[D++]=z>>18|240,G[D++]=z>>12&63|128):G[D++]=z>>12|224,G[D++]=z>>6&63|128),G[D++]=z&63|128)}return G};
Cch=function(x){for(var G=[],D=0,K=0;D<x.length;){var z=x[D++];if(z<128)G[K++]=String.fromCharCode(z);else if(z>191&&z<224){var y=x[D++];G[K++]=String.fromCharCode((z&31)<<6|y&63)}else if(z>239&&z<365){y=x[D++];var c=x[D++],W=x[D++];z=((z&7)<<18|(y&63)<<12|(c&63)<<6|W&63)-65536;G[K++]=String.fromCharCode(55296+(z>>10));G[K++]=String.fromCharCode(56320+(z&1023))}else y=x[D++],c=x[D++],G[K++]=String.fromCharCode((z&15)<<12|(y&63)<<6|c&63)}return G.join("")};var Zf=String.prototype.trim?function(x){return x.trim()}:function(x){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(x)[1]},InV=/&/g,jUf=/</g,OY3=/>/g,XEd=/"/g,Adf=/'/g,UfL=/\x00/g,RNd=/[\x00&<>"']/;var SWh=!!(Nt[0]>>16&1),n6h=!!(Nt[0]>>17&1),iYL=!!(Nt[0]&2),g6f=!!(Nt[0]&4),uJn=!!(Nt[0]&32);var p$=SWh?n6h:pEV(610401301),dfC=SWh?iYL:pEV(513659523),wEP=SWh?g6f:pEV(568333945),KkQ=SWh?uJn:pEV(1331761403);var V3,qWf=_.Df.navigator;V3=qWf?qWf.userAgentData||null:null;var NO;_.uO=function(x,G){return Array.prototype.indexOf.call(x,G,void 0)};
_.uM=function(x,G,D){Array.prototype.forEach.call(x,G,D)};
_.k1=function(x,G,D){return Array.prototype.filter.call(x,G,D)};
_.Hu=function(x,G,D){return Array.prototype.map.call(x,G,D)};
NO=function(x,G,D){return Array.prototype.some.call(x,G,D)};
_.NVf=function(x,G,D){return Array.prototype.every.call(x,G,D)};var P1=function(x){P1[" "](x);return x};
P1[" "]=function(){};
var Ih=function(x,G){try{return P1(x[G]),!0}catch(D){}return!1},bTD=function(x,G,D,K){K=K?K(G):G;
return Object.prototype.hasOwnProperty.call(x,K)?x[K]:x[K]=D(G)};var NtP,NU,v6E,Jdd,td3,kiD,PvP,Pcn,E6Q,hN$,TFn,GtL,D8C,ogC,ysO,ls$;_.bIf=function(){return _.Df.navigator||null};
NtP=HL();_.E$=oCC();NU=rn("Edge");v6E=NU||_.E$;_.hR=rn("Gecko")&&!(_.WL(_.Q3(),"WebKit")&&!rn("Edge"))&&!(rn("Trident")||rn("MSIE"))&&!rn("Edge");_.xp=_.WL(_.Q3(),"WebKit")&&!rn("Edge");Jdd=_.xp&&rn("Mobile");_.fn3=_.MfL();td3=_.QVh();kiD=(AQ()?V3.platform==="Linux":rn("Linux"))||_.pL3();PvP=_.ePL();Pcn=Z$Q();E6Q=rn("iPad");hN$=rn("iPod");_.x83=_.UD();TFn=_.WL(_.Q3(),"KaiOS");GtL=function(){var x=_.Df.document;return x?x.documentMode:void 0};
a:{var K9n="",zwP=function(){var x=_.Q3();if(_.hR)return/rv:([^\);]+)(\)|;)/.exec(x);if(NU)return/Edge\/([\d\.]+)/.exec(x);if(_.E$)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(x);if(_.xp)return/WebKit\/(\S+)/.exec(x);if(NtP)return/(?:Version)[ \/]?(\S+)/.exec(x)}();
zwP&&(K9n=zwP?zwP[1]:"");if(_.E$){var asL=GtL();if(asL!=null&&asL>parseFloat(K9n)){D8C=String(asL);break a}}D8C=K9n}ogC=D8C;ysO={};_.GK=function(x){return bTD(ysO,x,function(){return _.ML(ogC,x)>=0})};
if(_.Df.document&&_.E$){var csn=GtL();ls$=csn?csn:parseInt(ogC,10)||void 0}else ls$=void 0;_.TaO=ls$;var LbD,B5E,W9L;_.Dh=C$();LbD=Z$Q()||rn("iPod");B5E=rn("iPad");W9L=_.lfC();_.Kr=_.IV();_.Xf=_.Xh()&&!_.UD();var ew$,zK,fBf,fOC,McV,ZnL;ew$={};zK=null;fBf=_.hR||_.xp||typeof _.Df.btoa=="function";_.PY=function(x,G){G===void 0&&(G=0);ZnL();G=ew$[G];for(var D=Array(Math.floor(x.length/3)),K=G[64]||"",z=0,y=0;z<x.length-2;z+=3){var c=x[z],W=x[z+1],e=x[z+2],Q=G[c>>2];c=G[(c&3)<<4|W>>4];W=G[(W&15)<<2|e>>6];e=G[e&63];D[y++]=Q+c+W+e}Q=0;e=K;switch(x.length-z){case 2:Q=x[z+1],e=G[(Q&15)<<2]||K;case 1:x=x[z],D[y]=G[x>>2]+G[(x&3)<<4|Q>>4]+e+K}return D.join("")};
fOC=function(x){var G="";McV(x,function(D){G+=String.fromCharCode(D)});
return G};
_.q7d=function(x){var G=[];McV(x,function(D){G.push(D)});
return G};
_.eZ=function(x){var G=x.length,D=G*3/4;D%3?D=Math.floor(D):_.Td("=.",x[G-1])&&(D=_.Td("=.",x[G-2])?D-2:D-1);var K=new Uint8Array(D),z=0;McV(x,function(y){K[z++]=y});
return z!==D?K.subarray(0,z):K};
McV=function(x,G){function D(e){for(;K<x.length;){var Q=x.charAt(K++),p=zK[Q];if(p!=null)return p;if(!_.y3(Q))throw Error("E`"+Q);}return e}
ZnL();for(var K=0;;){var z=D(-1),y=D(0),c=D(64),W=D(64);if(W===64&&z===-1)break;G(z<<2|y>>4);c!=64&&(G(y<<4&240|c>>2),W!=64&&G(c<<6&192|W))}};
ZnL=function(){if(!zK){zK={};for(var x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),G=["+/=","+/","-_=","-_.","-_"],D=0;D<5;D++){var K=x.concat(G[D].split(""));ew$[D]=K;for(var z=0;z<K.length;z++){var y=K[z];zK[y]===void 0&&(zK[y]=z)}}}};var RPQ=typeof Uint8Array!=="undefined",$LV=!_.E$&&typeof btoa==="function",FEL=/[-_.]/g,mLC={"-":"+",_:"/",".":"="},Rs={};var Ak,p7C;Ak=function(x,G){if(G!==Rs)throw Error("G");this.JSC$6830_value_=x;if(x!=null&&x.length===0)throw Error("F");};
_.SZ=function(){return QCL||(QCL=new Ak(null,Rs))};
p7C=function(x){return new Uint8Array(O_(x)||0)};
Ak.prototype.isEmpty=function(){return this.JSC$6830_value_==null};
Ak.prototype.sizeBytes=function(){var x=O_(this);return x?x.length:0};
var O_=function(x){if(Rs!==Rs)throw Error("G");var G=x.JSC$6830_value_;G=G==null||RPQ&&G!=null&&G instanceof Uint8Array?G:typeof G==="string"?CO3(G):null;return G==null?G:x.JSC$6830_value_=G},QCL;var jVf=void 0;var r9=typeof Symbol==="function"&&typeof Symbol()==="symbol",Vcf=bq("jas",void 0,!0),qk=bq(void 0,"0di"),Hd=bq(void 0,"1oa"),J6=bq(void 0,Symbol()),jsL=bq(void 0,"0ub"),XsL=bq(void 0,"0ubs"),R4L=bq(void 0,"0ubsb"),JkV=bq(void 0,"0actk"),db=bq("m_m","messagePrototypeMarker",!0),ui3=bq(void 0,"vps"),FhL=bq();var XLE,O$L,VY,bnC;XLE={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};O$L=Object.defineProperties;_.sE=r9?Vcf:"internalArrayState";bnC=[];Hs(bnC,7);VY=Object.freeze(bnC);var wb={},jZ={},L9O=function(x,G,D){this.iterable=x;this.mapper=G;this.thisArg=D};
L9O.prototype.next=function(){var x=this.iterable.next();x.done||(x.value=this.mapper.call(this.thisArg,x.value));return x};
L9O.prototype[Symbol.iterator]=function(){return this};
var BaL=Object.freeze({}),uq={};_.rsD=q0(function(x){return x!==null&&x!==void 0});var uhh=q0(function(x){return typeof x==="number"}),gCQ=q0(function(x){return typeof x==="string"}),dLQ=q0(function(x){return typeof x==="boolean"}),sCh=q0(function(x){return x!=null&&typeof x==="object"&&typeof x.then==="function"}),tOL=q0(function(x){return typeof x==="function"}),zC=q0(function(x){return!!x&&(typeof x==="object"||typeof x==="function")});var Jk=typeof _.Df.BigInt==="function"&&typeof _.Df.BigInt(0)==="bigint";var RT=q0(function(x){return Jk?x>=Y5L&&x<=m8$:x[0]==="-"?wLf(x,Hnn):wLf(x,$8O)}),Hnn=Number.MIN_SAFE_INTEGER.toString(),Y5L=Jk?BigInt(Number.MIN_SAFE_INTEGER):void 0,$8O=Number.MAX_SAFE_INTEGER.toString(),m8$=Jk?BigInt(Number.MAX_SAFE_INTEGER):void 0;var F9f=typeof Uint8Array.prototype.slice==="function",k8=0,Ps=0,fm;var Cf,XO,Qj,A6,kdf;Cf=typeof BigInt==="function"?BigInt.asIntN:void 0;_.Uc=typeof BigInt==="function"?BigInt.asUintN:void 0;XO=Number.isSafeInteger;Qj=Number.isFinite;A6=Math.trunc;kdf=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var d0d={};var Hud={},Cwf=function(){try{var x=function(){return EID(Map,[],this.constructor)};
_.m(x,Map);P1(new x);return!1}catch(G){return!0}}(),aX=function(){this.JSC$6850_map_=new Map};
_.a=aX.prototype;_.a.get=function(x){return this.JSC$6850_map_.get(x)};
_.a.set=function(x,G){this.JSC$6850_map_.set(x,G);this.size=this.JSC$6850_map_.size;return this};
_.a.delete=function(x){x=this.JSC$6850_map_.delete(x);this.size=this.JSC$6850_map_.size;return x};
_.a.clear=function(){this.JSC$6850_map_.clear();this.size=this.JSC$6850_map_.size};
_.a.has=function(x){return this.JSC$6850_map_.has(x)};
_.a.entries=function(){return this.JSC$6850_map_.entries()};
_.a.keys=function(){return this.JSC$6850_map_.keys()};
_.a.values=function(){return this.JSC$6850_map_.values()};
_.a.forEach=function(x,G){return this.JSC$6850_map_.forEach(x,G)};
aX.prototype[Symbol.iterator]=function(){return this.entries()};
var x0=function(){if(Cwf)return Object.setPrototypeOf(aX.prototype,Map.prototype),Object.defineProperties(aX.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),aX;var x=function(){return EID(Map,[],this.constructor)};
_.m(x,Map);return x}(),Nk=function(x,G,D,K){D=D===void 0?B9d:D;
K=K===void 0?B9d:K;var z=x0.call(this)||this;z.arrayState=x[_.sE]|0;z.valueCtor=G;z.keyToApi=D;z.valueToApi=z.valueCtor?ssV:K;for(var y=0;y<x.length;y++){var c=x[y],W=D(c[0],!1,!0),e=c[1];G?e===void 0&&(e=null):e=K(c[1],!1,!0,void 0,void 0,z.arrayState);x0.prototype.set.call(z,W,e)}return z};
_.m(Nk,x0);var Isn=function(x){if(x.arrayState&2)throw Error("K");};
_.a=Nk.prototype;_.a.clear=function(){Isn(this);x0.prototype.clear.call(this)};
_.a.delete=function(x){Isn(this);return x0.prototype.delete.call(this,this.keyToApi(x,!0,!1))};
_.a.entries=function(){if(this.valueCtor){var x=x0.prototype.keys.call(this);x=new L9O(x,YE3,this)}else x=x0.prototype.entries.call(this);return x};
_.a.values=function(){if(this.valueCtor){var x=x0.prototype.keys.call(this);x=new L9O(x,Nk.prototype.get,this)}else x=x0.prototype.values.call(this);return x};
_.a.forEach=function(x,G){this.valueCtor?x0.prototype.forEach.call(this,function(D,K,z){x.call(G,z.get(K),K,z)}):x0.prototype.forEach.call(this,x,G)};
_.a.set=function(x,G){Isn(this);x=this.keyToApi(x,!0,!1);return x==null?this:G==null?(x0.prototype.delete.call(this,x),this):x0.prototype.set.call(this,x,this.valueToApi(G,!0,!0,this.valueCtor,!1,this.arrayState))};
_.a.has=function(x){return x0.prototype.has.call(this,this.keyToApi(x,!1,!1))};
_.a.get=function(x){x=this.keyToApi(x,!1,!1);var G=x0.prototype.get.call(this,x);if(G!==void 0){var D=this.valueCtor;return D?(D=this.valueToApi(G,!1,!0,D,this.callToMutableOnAccess,this.arrayState),D!==G&&x0.prototype.set.call(this,x,D),D):G}};
Nk.prototype[Symbol.iterator]=function(){return this.entries()};
Nk.prototype.toJSON=void 0;var m0P;var RZh=function(){},t6=function(x,G){for(var D in x)!isNaN(D)&&G(x,+D,x[D])},SED=function(x){var G=new RZh;
t6(x,function(D,K,z){G[K]=z8(z)});
G.reviveUnknownFields=x.reviveUnknownFields;return G},Cqh={reviveIntoImmutable:!0};var U0L;var wsQ,qEO;var jCh,rh,Ww,pE,On$,Zh,Mi,X7E,Asf,Lr,U8L,BV,Yp,mH;jCh=_.tk(0);_.oX={};_.yW=function(x,G,D,K,z){G=rh(x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G,D,z);if(G!==null||K&&x.noLegacyNull!==jZ)return G};
rh=function(x,G,D,K){if(G===-1)return null;var z=G+(D?0:-1),y=x.length-1;if(!(y<1+(D?0:-1))){if(z>=y){var c=x[y];if(c!=null&&typeof c==="object"&&c.constructor===Object){D=c[G];var W=!0}else if(z===y)D=c;else return}else D=x[z];if(K&&D!=null){K=K(D);if(K==null)return K;if(!Object.is(K,D))return W?c[G]=K:x[z]=K,K}return D}};
_.Gu=function(x,G,D,K){Z7(x);var z=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;pm(z,z[_.sE]|0,G,D,K);return x};
_.lr=function(x,G,D){x=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return $0(x,x[_.sE]|0,G,D)!==void 0};
_.cV=function(x,G,D,K){var z=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return $0(z,z[_.sE]|0,G,pE(x,K,D))!==void 0};
_.xa=function(x){return x===BaL?2:4};
_.TK=function(x,G){x=_.yW(x,G,void 0,void 0,xk$);return x==null?_.SZ():x};
Ww=function(x,G,D,K){Z7(x);var z=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=z[_.sE]|0;if(K==null){var c=DkL(z);if(KfP(c,z,y,D)===G)c.set(D,0);else return x}else y=z4D(z,y,D,G);pm(z,y,G,K);return x};
_.WV=function(x,G,D,K){var z=x[_.sE]|0,y=w9(z);z=z4D(x,z,D,G,y);pm(x,z,G,K,y)};
pE=function(x,G,D){return _.eI(x,G)===D?D:-1};
_.eI=function(x,G){x=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return KfP(DkL(x),x,void 0,G,void 0)};
On$=function(x,G,D){var K=x[_.sE]|0,z=w9(K),y=rh(x,D,z);if(y!=null&&y[db]===wb){if(!OE(y))return cd(y),y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var c=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(y)&&(c=y);if(c){var W=c[_.sE]|0;W&2&&(c=aS(c,W))}c=z4(c,G,!0);c!==y&&pm(x,K,D,c,z);return c};
_.hv=function(x,G,D,K){var z=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=z[_.sE]|0;G=$0(z,y,G,D,K);if(G==null)return G;y=z[_.sE]|0;if(!OE(x,y)){var c=rk3(G);c!==G&&(cd(x)&&(z=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=z[_.sE]|0),G=c,y=pm(z,y,D,G,K),MH(z,y))}return G};
_.hO=function(x,G,D,K){var z=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return acV(x,z,z[_.sE]|0,G,D,K,!1,!0)};
_.GW=function(x,G,D,K){D=oiO(D);_.Gu(x,G,D,K);D&&!OE(D)&&MH(x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return x};
_.DB=function(x,G,D,K){K=oiO(K);Ww(x,G,D,K);K&&!OE(K)&&MH(x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return x};
Zh=function(x,G,D){Z7(x);var K=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=K[_.sE]|0;if(D==null)return pm(K,z,G),x;for(var y=D===VY?7:D[_.sE]|0,c=y,W=Bd(y),e=W||Object.isFrozen(D),Q=!0,p=!0,V=0;V<D.length;V++){var L=D[V];W||(L=OE(L),Q&&(Q=!L),p&&(p=L))}W||(y=Q?13:5,y=p?y&-4097:y|4096);e&&y===c||(D=z8(D),c=0,y=bU(y,z));y!==c&&Hs(D,y);z=pm(K,z,G,D);2&y||!(4096&y||16&y)||MH(K,z);return x};
Mi=function(x,G,D,K){lcn(x,G,D,K);return x};
X7E=function(x,G,D){lcn(x,G,pr,void 0,D,1,!0);return x};
_.VW=function(x,G,D){x=_.yW(x,G,void 0,D);G=typeof x;x=x==null?x:G==="bigint"?_.tk((0,_.Uc)(64,x)):_.bC(x)?G==="string"?_.WhL(x):_.ck3(x):void 0;return x};
_.br=function(x,G){var D=D===void 0?!1:D;var K;return(K=_.tfL(_.yW(x,G)))!=null?K:D};
_.GH=function(x,G,D){D=D===void 0?0:D;var K;return(K=_.mf(_.yW(x,G)))!=null?K:D};
Asf=function(x,G){var D=D===void 0?0:D;x=_.HY(_.yW(x,G));return x!=null?x:D};
Lr=function(x,G,D){D=D===void 0?jCh:D;var K;return(K=_.MZf(_.yW(x,G)))!=null?K:D};
U8L=function(x){var G=G===void 0?jCh:G;var D;return(D=_.VW(x,23))!=null?D:G};
BV=function(x,G){var D=D===void 0?0:D;var K;return(K=_.yW(x,G,void 0,void 0,_.T8))!=null?K:D};
_.rP=function(x,G,D,K){D=D===void 0?"":D;var z;return(z=_.gb(_.yW(x,G,K)))!=null?z:D};
_.sk=function(x,G){var D=D===void 0?0:D;var K;return(K=_.sc(_.yW(x,G)))!=null?K:D};
Yp=function(x,G){var D=D===void 0?"0":D;x=Zu$(_.yW(x,G),!0);return x!=null?x:D};
mH=function(x,G,D){return _.rP(x,pE(x,D,G))};
_.HV=function(x,G,D,K){return _.hv(x,G,pE(x,K,D),void 0)};
_.QF=function(x,G){return _.gb(_.yW(x,G,void 0,_.oX))};
_.aK=function(x,G,D){return _.Gu(x,G,fff(D))};
_.mb=function(x,G,D){return _.Y0(x,G,fff(D),!1)};
_.$p=function(x,G,D){return _.Gu(x,G,_.Yi(D))};
_.bV=function(x,G,D){return _.Gu(x,G,Oc(D))};
_.Z_=function(x,G,D){return _.Gu(x,G,iC(D))};
_.NX=function(x,G,D,K){return _.Y0(x,G,iC(D),"",K)};
_.xW=function(x,G,D){return _.Gu(x,G,D==null?D:_.rb(D))};
_.FV=function(x,G,D){return _.Y0(x,G,D==null?D:_.rb(D),0)};var jX=function(x,G,D){this.buffer=x;if(D&&!G)throw Error();this.JSC$6862_isImmutable=G};var RwL=function(x,G,D,K){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6865_start_=0;this.init(x,G,D,K)},Cr,ngh,inD,u7$,FfV,S5C;
_.a=RwL.prototype;_.a.init=function(x,G,D,K){var z=K===void 0?{}:K;K=z.aliasBytesFields===void 0?!1:z.aliasBytesFields;z=z.treatNewDataAsImmutable===void 0?!1:z.treatNewDataAsImmutable;this.aliasBytesFields=K;this.treatNewDataAsImmutable=z;x&&(x=c6L(x,this.treatNewDataAsImmutable),this.bytes_=x.buffer,this.bytesAreImmutable_=x.JSC$6862_isImmutable,this.JSC$6865_start_=G||0,this.end_=D!==void 0?this.JSC$6865_start_+D:this.bytes_.length,this.cursor_=this.JSC$6865_start_)};
_.a.free=function(){this.clear();S5C.length<100&&S5C.push(this)};
_.a.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6865_start_=0;this.aliasBytesFields=!1};
_.a.reset=function(){this.cursor_=this.JSC$6865_start_};
_.a.atEnd=function(){return this.cursor_==this.end_};
_.IX=function(x,G){var D=0,K=0,z=0,y=x.bytes_,c=x.cursor_;do{var W=y[c++];D|=(W&127)<<z;z+=7}while(z<32&&W&128);z>32&&(K|=(W&127)>>4);for(z=3;z<32&&W&128;z+=7)W=y[c++],K|=(W&127)<<z;Cr(x,c);if(W<128)return G(D>>>0,K>>>0);throw Error("X");};
Cr=function(x,G){x.cursor_=G;if(G>x.end_)throw Error("Y`"+G+"`"+x.end_);};
_.jI=function(x){var G=x.bytes_,D=x.cursor_,K=G[D++],z=K&127;if(K&128&&(K=G[D++],z|=(K&127)<<7,K&128&&(K=G[D++],z|=(K&127)<<14,K&128&&(K=G[D++],z|=(K&127)<<21,K&128&&(K=G[D++],z|=K<<28,K&128&&G[D++]&128&&G[D++]&128&&G[D++]&128&&G[D++]&128&&G[D++]&128)))))throw Error("X");Cr(x,D);return z};
_.Ok=function(x){var G=x.bytes_,D=x.cursor_,K=G[D],z=G[D+1],y=G[D+2];G=G[D+3];Cr(x,x.cursor_+4);return(K<<0|z<<8|y<<16|G<<24)>>>0};
ngh=function(x){var G=_.Ok(x);x=_.Ok(x);return vCE(G,x)};
inD=function(x){var G=_.Ok(x),D=_.Ok(x);x=(D>>31)*2+1;var K=D>>>20&2047;G=4294967296*(D&1048575)+G;return K==2047?G?NaN:x*Infinity:K==0?x*4.9E-324*G:x*Math.pow(2,K-1075)*(G+4503599627370496)};
_.ggf=function(x){for(var G=0,D=x.cursor_,K=D+10,z=x.bytes_;D<K;){var y=z[D++];G|=y;if((y&128)===0)return Cr(x,D),!!(G&127)}throw Error("X");};
u7$=function(x,G){if(G<0)throw Error("Z`"+G);var D=x.cursor_,K=D+G;if(K>x.end_)throw Error("Y`"+(x.end_-D)+"`"+G);x.cursor_=K;return D};
FfV=function(x,G){if(G==0)return _.SZ();var D=u7$(x,G);x.aliasBytesFields&&x.bytesAreImmutable_?D=x.bytes_.subarray(D,D+G):(x=x.bytes_,G=D+G,D=D===G?new Uint8Array(0):F9f?x.slice(D,G):new Uint8Array(x.subarray(D,G)));return D.length==0?_.SZ():new Ak(D,Rs)};
S5C=[];var w7n=function(x,G,D,K){if(S5C.length){var z=S5C.pop();z.init(x,G,D,K);x=z}else x=new RwL(x,G,D,K);this.decoder_=x;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;d8Q(this,K)},d8Q=function(x,G){G=G===void 0?{}:G;
x.discardUnknownFields=G.discardUnknownFields===void 0?!1:G.discardUnknownFields},jTE=function(x,G,D,K){if(q5f.length){var z=q5f.pop();
d8Q(z,K);z.decoder_.init(x,G,D,K);return z}return new w7n(x,G,D,K)},HfO,iU,Nad,q5f;
w7n.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;q5f.length<100&&q5f.push(this)};
w7n.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
HfO=function(x){if(x.decoder_.atEnd())return!1;x.fieldCursor_=x.decoder_.cursor_;var G=_.jI(x.decoder_)>>>0,D=G>>>3;G&=7;if(!(G>=0&&G<=5))throw Error("T`"+G+"`"+x.fieldCursor_);if(D<1)throw Error("U`"+D+"`"+x.fieldCursor_);x.nextField_=D;x.nextWireType_=G;return!0};
iU=function(x){switch(x.nextWireType_){case 0:x.nextWireType_!=0?iU(x):_.ggf(x.decoder_);break;case 1:x=x.decoder_;Cr(x,x.cursor_+8);break;case 2:if(x.nextWireType_!=2)iU(x);else{var G=_.jI(x.decoder_)>>>0;x=x.decoder_;Cr(x,x.cursor_+G)}break;case 5:x=x.decoder_;Cr(x,x.cursor_+4);break;case 3:G=x.nextField_;do{if(!HfO(x))throw Error("V");if(x.nextWireType_==4){if(x.nextField_!=G)throw Error("W");break}iU(x)}while(1);break;default:throw Error("T`"+x.nextWireType_+"`"+x.fieldCursor_);}};
Nad=function(x,G,D){var K=x.decoder_.end_,z=_.jI(x.decoder_)>>>0,y=x.decoder_.cursor_+z,c=y-K;c<=0&&(x.decoder_.end_=y,D(G,x,void 0,void 0,void 0),c=y-x.decoder_.cursor_);if(c)throw Error("S`"+z+"`"+(z-c));x.decoder_.cursor_=y;x.decoder_.end_=K};
_.vgD=function(x){var G=_.jI(x.decoder_)>>>0;x=x.decoder_;var D=u7$(x,G);x=x.bytes_;if(FT$){var K=x,z;(z=$fQ)||(z=$fQ=new TextDecoder("utf-8",{fatal:!0}));G=D+G;K=D===0&&G===K.length?K:K.subarray(D,G);try{var y=z.decode(K)}catch(Q){if(HYO===void 0){try{z.decode(new Uint8Array([128]))}catch(p){}try{z.decode(new Uint8Array([97])),HYO=!0}catch(p){HYO=!1}}!HYO&&($fQ=void 0);throw Q;}}else{y=D;G=y+G;D=[];for(var c=null,W,e;y<G;)W=x[y++],W<128?D.push(W):W<224?y>=G?Gd():(e=x[y++],W<194||(e&192)!==128?(y--,
Gd()):D.push((W&31)<<6|e&63)):W<240?y>=G-1?Gd():(e=x[y++],(e&192)!==128||W===224&&e<160||W===237&&e>=160||((z=x[y++])&192)!==128?(y--,Gd()):D.push((W&15)<<12|(e&63)<<6|z&63)):W<=244?y>=G-2?Gd():(e=x[y++],(e&192)!==128||(W<<28)+(e-144)>>30!==0||((z=x[y++])&192)!==128||((K=x[y++])&192)!==128?(y--,Gd()):(W=(W&7)<<18|(e&63)<<12|(z&63)<<6|K&63,W-=65536,D.push((W>>10&1023)+55296,(W&1023)+56320))):Gd(),D.length>=8192&&(c=xL$(c,D),D.length=0);y=xL$(c,D)}return y};
_.Js3=function(x){var G=_.jI(x.decoder_)>>>0;return FfV(x.decoder_,G)};
_.fsD=function(x,G,D){var K=_.jI(x.decoder_)>>>0;for(K=x.decoder_.cursor_+K;x.decoder_.cursor_<K;)D.push(G(x.decoder_))};
q5f=[];var tcQ=function(x,G){this.JSC$6872_lo=x>>>0;this.JSC$6872_hi=G>>>0},PwO=function(x){if(!x)return ktf||(ktf=new tcQ(0,0));
if(!/^\d+$/.test(x))return null;Kf(x);return new tcQ(k8,Ps)},ktf,wYL=function(x,G){this.JSC$6874_lo=x>>>0;
this.JSC$6874_hi=G>>>0},gi$=function(x){if(!x)return Egd||(Egd=new wYL(0,0));
if(!/^-?\d+$/.test(x))return null;Kf(x);return new wYL(k8,Ps)},Egd;var hwD=function(){this.JSC$6876_buffer_=[]},uOC,xaQ;
hwD.prototype.length=function(){return this.JSC$6876_buffer_.length};
hwD.prototype.end=function(){var x=this.JSC$6876_buffer_;this.JSC$6876_buffer_=[];return x};
uOC=function(x,G,D){for(;D>0||G>127;)x.JSC$6876_buffer_.push(G&127|128),G=(G>>>7|D<<25)>>>0,D>>>=7;x.JSC$6876_buffer_.push(G)};
xaQ=function(x,G){for(;G>127;)x.JSC$6876_buffer_.push(G&127|128),G>>>=7;x.JSC$6876_buffer_.push(G)};
_.qcf=function(x,G){if(G>=0)xaQ(x,G);else{for(var D=0;D<9;D++)x.JSC$6876_buffer_.push(G&127|128),G>>=7;x.JSC$6876_buffer_.push(1)}};
_.tg=function(x,G){x.JSC$6876_buffer_.push(G>>>0&255);x.JSC$6876_buffer_.push(G>>>8&255);x.JSC$6876_buffer_.push(G>>>16&255);x.JSC$6876_buffer_.push(G>>>24&255)};var Gvf,wh,vin,tx3;Gvf=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new hwD};
wh=function(x,G){G.length!==0&&(x.blocks_.push(G),x.totalLength_+=G.length)};
_.ZfD=function(x,G){_.Jg(x,G,2);G=x.encoder_.end();wh(x,G);G.push(x.totalLength_);return G};
_.MxE=function(x,G){var D=G.pop();for(D=x.totalLength_+x.encoder_.length()-D;D>127;)G.push(D&127|128),D>>>=7,x.totalLength_++;G.push(D);x.totalLength_++};
_.Jg=function(x,G,D){xaQ(x.encoder_,G*8+D)};
vin=function(x,G,D){if(D!=null){switch(typeof D){case "string":PwO(D)}_.Jg(x,G,1);switch(typeof D){case "number":x=x.encoder_;qDE(D);_.tg(x,k8);_.tg(x,Ps);break;case "bigint":D=BigInt.asUintN(64,D);D=new tcQ(Number(D&BigInt(4294967295)),Number(D>>BigInt(32)));x=x.encoder_;G=D.JSC$6872_hi;_.tg(x,D.JSC$6872_lo);_.tg(x,G);break;default:D=PwO(D),x=x.encoder_,G=D.JSC$6872_hi,_.tg(x,D.JSC$6872_lo),_.tg(x,G)}}};
tx3=function(x,G,D){_.Jg(x,G,2);xaQ(x.encoder_,D.length);wh(x,x.encoder_.end());wh(x,D)};var TbL,zgC,aaO,laE,cYL;TbL=Xc();_.Dan=Xc();_.K6h=Xc();zgC=Xc();aaO=Xc();_.oQC=Xc();_.XV=Xc();_.yYf=Xc();laE=Xc();cYL=Xc();_.TfV=Xc();_.W6$=Xc();_.SX=function(x,G,D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x,G,D)};
_.SX.prototype.toJSON=function(){return G4(this)};
_.SX.prototype.serialize=function(x){return JSON.stringify(G4(this,x))};
var KzV=function(x,G){if(G==null||G=="")return new x;G=JSON.parse(G);if(!Array.isArray(G))throw Error("$");return new x(ULC(G))};
_.SX.prototype.getExtension=function(x){Oun(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x.fieldIndex);Iod(this,x.fieldIndex);return x.ctor?x.isRepeated?x.getExtensionFn(this,x.ctor,x.fieldIndex,_.xa(),x.JSC$6887_hasMessageId):x.getExtensionFn(this,x.ctor,x.fieldIndex,x.JSC$6887_hasMessageId):x.isRepeated?x.getExtensionFn(this,x.fieldIndex,_.xa(),x.JSC$6887_hasMessageId):x.getExtensionFn(this,x.fieldIndex,x.defaultValue,x.JSC$6887_hasMessageId)};
_.SX.prototype.clone=function(){var x=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G=x[_.sE]|0;return yY(this,x,G)?oS(this,x,!0):new this.constructor(aS(x,G,!1))};
_.SX.prototype[db]=wb;_.SX.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var U_=function(x,G,D){this.$$binaryReaderFn=x;this.$$binaryWriterFn=G;x=vY(TbL);this.$$isMsg=!!x&&D===x||!1},bfO=WfE(function(x,G,D,K,z){if(x.nextWireType_!==2)return!1;
Nad(x,On$(G,K,D),z);return!0},QTh),LfO=WfE(function(x,G,D,K,z){if(x.nextWireType_!==2)return!1;
Nad(x,On$(G,K,D),z);return!0},QTh),uU=Symbol(),nm=Symbol(),mkh=Symbol(),XYh=Symbol(),CCP=Symbol(),pYL,Vxd;var xHP,egf,ZDP,MaD,QaO,pKn,VaO,bDV,L6P,BfC,rYn,YFf,maf,$an,F6h;xHP=function(x,G){var D=new Gvf;A63(x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,D,RS(uU,gh,dh,G));wh(D,D.encoder_.end());x=new Uint8Array(D.totalLength_);G=D.blocks_;for(var K=G.length,z=0,y=0;y<K;y++){var c=G[y];x.set(c,z);z+=c.length}D.blocks_=[x];return x};
egf=_.qH(function(x,G,D){if(x.nextWireType_!==1)return!1;_.NH(G,D,inD(x.decoder_));return!0},ifV,cYL);
ZDP=_.qH(function(x,G,D,K){if(x.nextWireType_!==1)return!1;_.WV(G,D,K,inD(x.decoder_));return!0},ifV,cYL);
MaD=_.qH(function(x,G,D,K){if(x.nextWireType_!==5)return!1;var z=_.Ok(x.decoder_);x=(z>>31)*2+1;var y=z>>>23&255;z&=8388607;_.WV(G,D,K,y==255?z?NaN:x*Infinity:y==0?x*1.401298464324817E-45*z:x*Math.pow(2,y-150)*(z+8388608));return!0},function(x,G,D){G=_.T8(G);
G!=null&&(_.Jg(x,D,5),x=x.encoder_,D=fm||(fm=new DataView(new ArrayBuffer(8))),D.setFloat32(0,+G,!0),Ps=0,k8=D.getUint32(0,!0),_.tg(x,k8))},laE);
_.Ae=_.qH(function(x,G,D){if(x.nextWireType_!==0)return!1;_.NH(G,D,_.IX(x.decoder_,xi));return!0},_.k0,_.XV);
QaO=_.qH(function(x,G,D){if(x.nextWireType_!==0)return!1;x=_.IX(x.decoder_,xi);_.NH(G,D,x===0?void 0:x);return!0},_.k0,_.XV);
pKn=_.qH(function(x,G,D,K){if(x.nextWireType_!==0)return!1;_.WV(G,D,K,_.IX(x.decoder_,xi));return!0},_.k0,_.XV);
_.Uk=_.qH(function(x,G,D){if(x.nextWireType_!==0)return!1;_.NH(G,D,_.jI(x.decoder_));return!0},Nbd,zgC);
VaO=_.qH(function(x,G,D){if(x.nextWireType_!==0)return!1;x=_.jI(x.decoder_);_.NH(G,D,x===0?void 0:x);return!0},Nbd,zgC);
bDV=_.qH(function(x,G,D,K){if(x.nextWireType_!==0)return!1;_.WV(G,D,K,_.jI(x.decoder_));return!0},Nbd,zgC);
L6P=_.qH(function(x,G,D){if(x.nextWireType_!==1)return!1;_.NH(G,D,ngh(x.decoder_));return!0},_.J6n,_.yYf);
BfC=_.ni$(function(x,G,D){if(x.nextWireType_!==1&&x.nextWireType_!==2)return!1;G=_.mz(G,G[_.sE]|0,D);x.nextWireType_==2?_.fsD(x,ngh,G):G.push(ngh(x.decoder_));return!0},function(x,G,D){G=_.Sc$(psn,G,!1);
if(G!=null)for(var K=0;K<G.length;K++)vin(x,D,G[K])},_.yYf);
_.SI=_.qH(function(x,G,D){if(x.nextWireType_!==0)return!1;_.NH(G,D,_.ggf(x.decoder_));return!0},_.fc$,_.Dan);
rYn=_.qH(function(x,G,D,K){if(x.nextWireType_!==0)return!1;_.WV(G,D,K,_.ggf(x.decoder_));return!0},_.fc$,_.Dan);
_.nr=_.qH(function(x,G,D){if(x.nextWireType_!==2)return!1;_.NH(G,D,_.vgD(x));return!0},_.k8L,_.K6h);
_.saQ=_.qH(function(x,G,D,K){if(x.nextWireType_!==2)return!1;_.WV(G,D,K,_.vgD(x));return!0},_.k8L,_.K6h);
YFf=_.ni$(function(x,G,D){if(x.nextWireType_!==2)return!1;x=_.vgD(x);_.mz(G,G[_.sE]|0,D).push(x);return!0},function(x,G,D){G=_.Sc$(_.gb,G,!0);
if(G!=null)for(var K=0;K<G.length;K++){var z=x,y=D,c=G[K];c!=null&&tx3(z,y,zPf(c))}},_.K6h);
maf=void 0;maf=maf===void 0?TbL:maf;_.ir=new U_(function(x,G,D,K,z){if(x.nextWireType_!==2)return!1;K=z4(void 0,K,!0);_.mz(G,G[_.sE]|0,D).push(K);Nad(x,K,z);return!0},function(x,G,D,K,z){if(Array.isArray(G))for(var y=0;y<G.length;y++)PCC(x,G[y],D,K,z)},maf);
_.gP=WfE(function(x,G,D,K,z,y){if(x.nextWireType_!==2)return!1;var c=G[_.sE]|0;z4D(G,c,y,D,w9(c));G=On$(G,K,D);Nad(x,G,z);return!0},PCC);
_.HDh=_.qH(function(x,G,D){if(x.nextWireType_!==2)return!1;_.NH(G,D,_.Js3(x));return!0},_.EiL,_.TfV);
$an=_.qH(function(x,G,D,K){if(x.nextWireType_!==2)return!1;_.WV(G,D,K,_.Js3(x));return!0},_.EiL,_.TfV);
F6h=_.qH(function(x,G,D,K){if(x.nextWireType_!==0)return!1;_.WV(G,D,K,_.jI(x.decoder_)>>>0);return!0},function(x,G,D){G=_.HY(G);
G!=null&&G!=null&&(_.Jg(x,D,0),xaQ(x.encoder_,G))},aaO);
_.ur=_.qH(function(x,G,D){if(x.nextWireType_!==0)return!1;_.NH(G,D,_.jI(x.decoder_));return!0},_.h43,_.W6$);var jaf=function(){var x=Ct3,G=IaC;this.fieldIndex=175237375;this.ctor=G;this.isRepeated=0;this.getExtensionFn=_.hv;this.defaultValue=void 0;this.JSC$6887_hasMessageId=x.messageId!=null?uq:void 0};
jaf.prototype.register=function(){P1(this)};var ODO=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(ODO,_.SX);var XKC=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(XKC,_.SX);var o0Q=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(o0Q,_.SX);var AYO=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(AYO,_.SX);var Uah=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Uah,_.SX);var Rgf=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Rgf,_.SX);var SFf=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(SFf,_.SX);SFf.prototype.getData=function(){return _.TK(this,2)};var nQD=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(nQD,_.SX);var iDE=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(iDE,_.SX);iDE.prototype.getStyle=function(){return _.hv(this,ODO,1)};var xY=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(xY,_.SX);xY.prototype.getPayloadCase=function(){return _.eI(this,K9)};
xY.prototype.getStyle=function(){return _.HV(this,iDE,6,K9)};
var gQD=function(){var x=new xY,G=new Uah;return _.DB(x,7,K9,G)},uYO=function(){var x=new xY,G=new Rgf;
return _.DB(x,8,K9,G)},K9=[1,
2,3,4,5,6,7,8];var da$=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(da$,_.SX);var wK3=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(wK3,_.SX);var qFL=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(qFL,_.SX);var NfQ=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(NfQ,_.SX);var vQV=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(vQV,_.SX);var JYd=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(JYd,_.SX);var faQ=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(faQ,_.SX);var taV=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(taV,_.SX);taV.prototype.getData=function(){return _.TK(this,2)};var kvP=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(kvP,_.SX);var a7$=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(a7$,_.SX);a7$.prototype.getPayloadCase=function(){return _.eI(this,dP)};
var dP=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var wP=function(x,G){x=Error.call(this,x);this.message=x.message;"stack"in x&&(this.stack=x.stack);this.code=G===void 0?2:G};
_.m(wP,Error);var PtE=Promise;var EQP=function(x){this.channelPromise=x};
EQP.prototype.send=function(x,G,D){this.channelPromise.then(function(K){K.send(x,G,D)})};var hgE=function(x,G){this.data=x;this.channel=G};
hgE.prototype.reply=function(x,G,D){this.channel.send(x,G,D)};var xRE=function(x){this.JSC$6953_port_=x};
xRE.prototype.send=function(x,G,D){D=D===void 0?[]:D;var K=new MessageChannel;Gwf(K.port1,G);this.JSC$6953_port_.postMessage(x,[K.port2].concat(D))};
var DRL=function(x,G){Gwf(x,G);return new xRE(x)},Gwf=function(x,G){G&&(x.onmessage=function(D){G(new hgE(D.data,DRL(D.ports[0])))})};var KlQ=function(x){this.verifier_=x},z6D=function(x){var G=Object.create(null);
(typeof x==="string"?[x]:x).forEach(function(D){if(D==="null")throw Error("ba");G[D]=!0});
return function(D){return G[D]===!0}};_.a8C=function(){if(!_.Df.addEventListener||!Object.defineProperty)return!1;var x=!1,G=Object.defineProperty({},"passive",{get:function(){x=!0}});
try{var D=function(){};
_.Df.addEventListener("test",D,G);_.Df.removeEventListener("test",D,G)}catch(K){}return x}();var osQ;_.qV=function(x){var G=x.destination;var D=x.iframe;var K=x.origin;var z=x.channelName===void 0?"ZNWN1d":x.channelName;var y=x.onMessage===void 0?void 0:x.onMessage;x=x.onEstablished===void 0?void 0:x.onEstablished;return osQ({destination:G,getSource:function(){return D.contentWindow},
originVerifier:K instanceof KlQ?K:typeof K==="function"?new KlQ(K):new KlQ(z6D(K)),channelName:z,onMessage:y,onEstablished:x})};
osQ=function(x){var G=x.destination;var D=x.getSource;var K=x.originVerifier;var z=x.token===void 0?void 0:x.token;var y=x.channelName;var c=x.onMessage===void 0?void 0:x.onMessage;var W=x.onEstablished===void 0?void 0:x.onEstablished;return new EQP(new PtE(function(e,Q){var p=function(V){V.source&&V.source===D()&&K.verifier_(V.origin)&&(V.data.n||V.data)===y&&(G.removeEventListener("message",p,!1),z&&V.data.t!==z?Q(Error("ca`"+y+"`"+z+"`"+V.data.t)):(e(DRL(V.ports[0],c)),W&&W(V)))};
G.addEventListener("message",p,!1)}))};var yhQ=function(x){try{x()}catch(G){K$(G)}};var chQ=function(x){var G=this;var D=x.getMessageType;var K=x.onUnregisteredMessage===void 0?function(){}:x.onUnregisteredMessage;
var z=x.onBeforeRegisteredMessage===void 0?function(){}:x.onBeforeRegisteredMessage;
x=x.onAfterRegisteredMessage===void 0?function(){}:x.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=D;this.onUnregisteredMessage_=K;this.onBeforeRegisteredMessage_=z;this.onAfterRegisteredMessage_=x;this.onMessage=function(y){return l8$(G,y)}};
chQ.prototype.register=function(x,G){this.registry_.set(x,G);return this};
var l8$=function(x,G){var D=x.getMessageType_(G.data),K=x.registry_.get(D);K?(yhQ(function(){return x.onBeforeRegisteredMessage_(G,D)}),yhQ(function(){return K(G)}),yhQ(function(){return x.onAfterRegisteredMessage_(G,D)})):yhQ(function(){return x.onUnregisteredMessage_(G,D)})};var Tmn=function(x){this.JSC$6970_channel_=x},e6L,ZQ$;
Tmn.prototype.send=function(x,G,D){this.JSC$6970_channel_.send(G4(x),G,D)};
_.Wl$=function(x,G){return function(D){var K=new x(D.data);return G(new hgE(K,D.channel))}};
e6L=function(x){return function(G){return x(new hgE(G.data,new Tmn(G.channel)))}};
ZQ$=function(x,G){return e6L(_.Wl$(x,G))};var MLd=function(x,G,D,K){this.registry=x;this.delegate=G;this.receiveMessageConstructor=D;this.createInitMessage=K;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},zUh=function(x){var G=new chQ({getMessageType:x.getPayloadCase});
return new MLd(G,new Tmn(_.qV({iframe:x.child,destination:window,origin:x.origin,channelName:x.channelName,onMessage:ZQ$(x.receiveMessageConstructor,G.onMessage)})),x.receiveMessageConstructor,x.createInitMessage)},QjL=function(x,G){x.createInitMessage=G};
MLd.prototype.send=function(x){if(!this.initialised)throw new wP("Attempted to send a message before initialisation.");this.delegate.send(x)};
var pjL=function(x,G){return _.T(function(D){if(!x.initialised)throw new wP("Attempted to send a message before initialisation.");return D.return(new Promise(function(K){x.delegate.send(G,ZQ$(x.receiveMessageConstructor,K))}))})};
MLd.prototype.init=function(){var x=this;return _.T(function(G){if(x.initialised)throw new wP("Attempted to initialise twice. The SDK can only be initialised once.");if(x.createInitMessage!==void 0){var D=x.delegate,K=D.send,z=x.createInitMessage;var y=new XKC;var c=[].concat(_.B5(x.features));y=_.s_(y,1,c,_.rb);K.call(D,z.call(x,y))}x.initialised=!0;_.c5(G)})};
var NV=function(x,G){if(x.initialised)throw new wP('Attempted to set up API "'+G+'" after initialisation. All APIs must be set up before initialising the SDK.');x.features.add(G);return x.registry};
_.Nq.Object.defineProperties(MLd.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var VLP=function(x){this.channel=x;this.registered=!1};
VLP.prototype.update=function(x){if(this.channel.isInitialised){if(!this.registered)throw new wP("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var G=new xY;var D=new AYO;D=_.aK(D,1,x);G=_.DB(G,2,K9,D);this.channel.send(G)}else this.register();this.JSC$6984_audioEnabled=x};
VLP.prototype.register=function(){NV(this.channel,1);this.registered=!0};
VLP.prototype.isAudioEnabled=function(){return this.JSC$6984_audioEnabled};var bQL=function(x){this.channel=x};
_.a=bQL.prototype;_.a.onFirstFrameReady=function(x){NV(this.channel,2).register(11,function(G){G=_.HV(G.data,da$,11,dP);if(!G)throw new wP("Unexpectedly nonexistent GameFirstFrameReadyEvent");x(_.rP(G,1))})};
_.a.onReady=function(x){NV(this.channel,2).register(4,function(G){G=_.HV(G.data,qFL,4,dP);if(!G)throw new wP("Unexpectedly nonexistent GameReadyEvent");x(_.rP(G,1))})};
_.a.onLevelComplete=function(x){NV(this.channel,2).register(5,function(G){G=_.HV(G.data,NfQ,5,dP);if(!G)throw new wP("Unexpectedly nonexistent LevelCompleteEvent");x(_.rP(G,1),_.GH(G,2))})};
_.a.onGameOver=function(x){NV(this.channel,2).register(6,function(G){G=_.HV(G.data,wK3,6,dP);if(!G)throw new wP("Unexpectedly nonexistent GameOverEvent");x(_.rP(G,1))})};
_.a.pause=function(){var x=this;if(!this.channel.isInitialised)return NV(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new wP("Using unregistered Game Feature: pause.");var G=gQD();return new Promise(function(D){return _.T(function(K){if(K.nextAddress==1)return _.Z(K,pjL(x.channel,G),2);D();_.c5(K)})})};
_.a.resume=function(){var x=this;if(!this.channel.isInitialised)return NV(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new wP("Using unregistered Game Feature: resume.");var G=uYO();return new Promise(function(D){return _.T(function(K){if(K.nextAddress==1)return _.Z(K,pjL(x.channel,G),2);D();_.c5(K)})})};var LlC=function(x){this.channel=x};
LlC.prototype.onReady=function(x){NV(this.channel,5).register(8,function(G){if(!_.HV(G.data,vQV,8,dP))throw new wP("Unexpectedly nonexistent PageReadyEvent");x()})};var Bm3=function(x){this.channel=x};
Bm3.prototype.onChange=function(x){NV(this.channel,3).register(7,function(G){G=_.HV(G.data,JYd,7,dP);if(!G)throw new wP("Unexpectedly nonexistent ScoreEvent");x(_.rP(G,1),_.GH(G,2))})};var rhP={load:function(){throw new wP("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new wP("Storage used, but storage.onSave() listener not set!");}},sjE=function(x){this.channel=x;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},Y6C=function(x){NV(x.channel,4).register(2,rhP.load).register(3,rhP.save);
x.initialSetupDone=!0};
sjE.prototype.onLoad=function(x){this.initialSetupDone||Y6C(this);this.loadRegistered||(this.loadRegistered=!0,NV(this.channel,4).register(2,function(G){var D,K,z;return _.T(function(y){if(y.nextAddress==1){D=_.HV(G.data,faQ,2,dP);if(!D)throw new wP("Unexpectedly nonexistent StorageLoad");K=_.rP(D,1);return _.Z(y,x(K),2)}z=y.yieldResult;var c=G.reply,W=new xY;var e=new SFf;e=_.Z_(e,1,K);e=_.Gu(e,2,_.nu(z,!1));W=_.DB(W,3,K9,e);c.call(G,W);_.c5(y)})}))};
sjE.prototype.onSave=function(x){this.initialSetupDone||Y6C(this);this.saveRegistered||(this.saveRegistered=!0,NV(this.channel,4).register(3,function(G){var D,K,z;return _.T(function(y){if(y.nextAddress==1){D=_.HV(G.data,taV,3,dP);if(!D)throw new wP("Unexpectedly nonexistent StorageSave");K=_.rP(D,1);z=p7C(D.getData());return _.Z(y,x(K,z),2)}var c=G.reply,W=new xY;var e=new nQD;e=_.Z_(e,1,K);W=_.DB(W,4,K9,e);c.call(G,W);_.c5(y)})}))};var mRn=function(x){this.channel=x};
mRn.prototype.update=function(x){if(!this.channel.features.has(6))throw new wP("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var G=new xY,D=new iDE;x=_.GW(D,1,x);G=_.DB(G,6,K9,x);this.channel.send(G)};
mRn.prototype.register=function(){NV(this.channel,6)};var HQD=function(x){this.channel=x;this.userActivityLoggingIntervalMs=0};
HQD.prototype.onUserActivity=function(x,G){this.userActivityLoggingIntervalMs=G;NV(this.channel,7).register(9,function(D){if(!_.HV(D.data,kvP,9,dP))throw new wP("Unexpectedly nonexistent ClickEvent");x()})};var $RQ=function(x){var G=this;this.channel=x;this.init=this.channel.init.bind(this.channel);this.page=new LlC(this.channel);this.game=new bQL(this.channel);this.audio=new VLP(this.channel);this.score=new Bm3(this.channel);this.storage=new sjE(this.channel);this.style=new mRn(this.channel);this.userActivity=new HQD(this.channel);QjL(this.channel,function(D){var K=new o0Q;D=_.GW(K,1,D);D=_.$p(D,3,G.userActivity.userActivityLoggingIntervalMs);K=G.audio.isAudioEnabled();K!==void 0&&_.aK(D,2,K);K=new xY;
return _.DB(K,5,K9,D)})};var FlO=function(){this.timedFunctionContext=0};
FlO.prototype.timeExecution=function(x,G){var D=this;return function(){var K=_.rC.apply(0,arguments);D.timedFunctionContext=x;return G.apply(null,_.B5(K))}};var Cff=function(){var x={};this.priorityTasks=(x[3]=[],x[2]=[],x[1]=[],x);this.isFlushing=!1},oh=function(x,G,D){var K=I83(x,D);
x.priorityTasks[D].push(G);K&&x.priorityTasks[D].length===1&&x.flush()},I83=function(x,G){return Object.keys(x.priorityTasks).map(function(D){return Number(D)}).filter(function(D){return!isNaN(D)&&D>G}).every(function(D){return x.priorityTasks[D].length===0})};
Cff.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(x){return x.length>0});)jjO(this,3),jjO(this,2),jjO(this,1)}catch(x){throw Object.values(this.priorityTasks).forEach(function(G){return void G.splice(0,G.length)}),x;
}finally{this.isFlushing=!1}}};
var jjO=function(x,G){for(;I83(x,G)&&x.priorityTasks[G].length>0;)x.priorityTasks[G][0](),x.priorityTasks[G].shift()};
_.Nq.Object.defineProperties(Cff.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(x){return x.length>0})}}});var eUf={};var OQV=globalThis.trustedTypes,l7n=OQV,ThQ;var aF=function(x){this.privateDoNotAccessOrElseWrappedResourceUrl=x};
aF.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var XjO=_.gv([""]),Ah3=KTL(["\x00"],["\\0"]),R6O=KTL(["\n"],["\\n"]),S6f=KTL(["\x00"],["\\u0000"]);cC(function(x){return x(XjO)})||cC(function(x){return x(Ah3)})||cC(function(x){return x(R6O)})||cC(function(x){return x(S6f)});var p9;_.TW=function(x,G){this.privateDoNotAccessOrElseWrappedUrl=G};
_.TW.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.nsd=WC("about:blank");p9=WC("about:invalid#zClosurez");var Zmh=function(x){this.isValid=x},iQC=new Zmh(function(x){return/^[^:]*([/?#]|$)/.test(x)}),gsE=Mc("data"),u0$=Mc("http"),dR3=Mc("https"),wjP=Mc("ftp"),q6O=Mc("mailto"),Nm$=Mc("intent"),vs3=Mc("vnd.youtube"),MXE=[gsE,
u0$,dR3,q6O,wjP,iQC],QSO=zW(function(){return typeof URL==="function"}),Jhn=["data:",
"http:","https:","mailto:","ftp:"],VXC=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var HC=function(x){this.privateDoNotAccessOrElseWrappedHtml=x};
HC.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var QED=zW(function(){return new HC(OQV?OQV.emptyHTML:"")});var f8V={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"},IF=function(x,G){var D=Error.call(this,x+" cannot be used with intent "+f8V[G]);this.message=D.message;"stack"in D&&(this.stack=D.stack);this.type=x;this.intent=G;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.m(IF,Error);_.X_=function(x){this.privateDoNotAccessOrElseWrappedScript=x};
_.X_.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var rgf=function(x){this.privateDoNotAccessOrElseWrappedAttributePrefix=x};
rgf.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var sSD="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var QPE=function(x){var G=_.nT("window.location.href");x==null&&(x='Unknown Error of type "null/undefined"');if(typeof x==="string")return{message:x,name:"Unknown error",lineNumber:"Not available",fileName:G,stack:"Not available"};var D=!1;try{var K=x.lineNumber||x.line||"Not available"}catch(c){K="Not available",D=!0}try{var z=x.fileName||x.filename||x.sourceURL||_.Df.$googDebugFname||G}catch(c){z="Not available",D=!0}G=tLO(x);if(!(!D&&x.lineNumber&&x.fileName&&x.stack&&x.message&&x.name)){D=x.message;
if(D==null){if(x.constructor&&x.constructor instanceof Function){if(x.constructor.name)D=x.constructor.name;else if(D=x.constructor,vV[D])D=vV[D];else{D=String(D);if(!vV[D]){var y=/function\s+([^\(]+)/m.exec(D);vV[D]=y?y[1]:"[Anonymous]"}D=vV[D]}D='Unknown Error of type "'+D+'"'}else D="Unknown Error of unknown type";typeof x.toString==="function"&&Object.prototype.toString!==x.toString&&(D+=": "+x.toString())}return{message:D,name:x.name||"UnknownError",lineNumber:K,fileName:z,stack:G||"Not available"}}return{message:x.message,
name:x.name,lineNumber:x.lineNumber,fileName:x.fileName,stack:G}},tLO=function(x,G){G||(G={});
G[kwD(x)]=!0;var D=x.stack||"",K=x.cause;K&&!G[kwD(K)]&&(D+="\nCaused by: ",K.stack&&K.stack.indexOf(K.toString())==0||(D+=typeof K==="string"?K:K.message+"\n"),D+=tLO(K,G));x=x.errors;if(Array.isArray(x)){K=1;var z;for(z=0;z<x.length&&!(K>4);z++)G[kwD(x[z])]||(D+="\nInner error "+K++ +": ",x[z].stack&&x[z].stack.indexOf(x[z].toString())==0||(D+=typeof x[z]==="string"?x[z]:x[z].message+"\n"),D+=tLO(x[z],G));z<x.length&&(D+="\n... "+(x.length-z)+" more inner errors")}return D},kwD=function(x){var G=
"";
typeof x.toString==="function"&&(G=""+x);return G+x.stack},vV={};var PfC,kT,ha,h6O,xmC,EsL,dM,RZ,DmV;PfC=function(x,G){for(var D=x.split("%s"),K="",z=Array.prototype.slice.call(arguments,1);z.length&&D.length>1;)K+=D.shift()+z.shift();return K+D.join("%s")};
_.gT=function(x){return encodeURIComponent(String(x))};
kT=function(x){return decodeURIComponent(x.replace(/\+/g," "))};
ha=function(x){RNd.test(x)&&(x.indexOf("&")!=-1&&(x=x.replace(InV,"&amp;")),x.indexOf("<")!=-1&&(x=x.replace(jUf,"&lt;")),x.indexOf(">")!=-1&&(x=x.replace(OY3,"&gt;")),x.indexOf('"')!=-1&&(x=x.replace(XEd,"&quot;")),x.indexOf("'")!=-1&&(x=x.replace(Adf,"&#39;")),x.indexOf("\x00")!=-1&&(x=x.replace(UfL,"&#0;")));return x};
h6O=function(x){var G={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var D=_.Df.document.createElement("div");return x.replace(EsL,function(K,z){var y=G[K];if(y)return y;z.charAt(0)=="#"&&(z=Number("0"+z.slice(1)),isNaN(z)||(y=String.fromCharCode(z)));y||(_.n9(D,$Y(K+" ")),y=D.firstChild.nodeValue.slice(0,-1));return G[K]=y})};
xmC=function(x){return x.replace(/&([^;]+);/g,function(G,D){switch(D){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return D.charAt(0)!="#"||(D=Number("0"+D.slice(1)),isNaN(D))?G:String.fromCharCode(D)}})};
EsL=/&([^;\s<&]+);?/g;_.npC=function(x){return String(x).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.GL$=String.prototype.repeat?function(x,G){return x.repeat(G)}:function(x,G){return Array(G+1).join(x)};
_.Je=function(x,G){if(!Number.isFinite(x))return String(x);x=String(x);var D=x.indexOf(".");D===-1&&(D=x.length);var K=x[0]==="-"?"-":"";K&&(x=x.substring(1));return K+(0,_.GL$)("0",Math.max(0,G-D))+x};
dM=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.f6()).toString(36)};
RZ=function(x){for(var G=0,D=0;D<x.length;++D)G=31*G+x.charCodeAt(D)>>>0;return G};
_.eq=function(x){return String(x).replace(/\-([a-z])/g,function(G,D){return D.toUpperCase()})};
_.Wy=function(x){return String(x).replace(/([A-Z])/g,"-$1").toLowerCase()};
DmV=function(x){return x.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(G,D,K){return D+K.toUpperCase()})};var Kof=function(){this.names=new Map};
Kof.prototype.getName=function(x){var G=this.names.get(x);if(G)return G;var D;G=(D=x.description)!=null?D:dM();this.names.set(x,G);return G};var z1$=function(x){var G=Error.call(this,x?x.length+" errors occurred during unsubscription:\n"+x.map(function(D,K){return K+1+") "+D.toString()}).join("\n  "):"");
this.message=G.message;"stack"in G&&(this.stack=G.stack);this.errors=x;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.m(z1$,Error);var vC=function(x){this.initialTeardown=x;this.closed=!1;this._teardowns=this._parentage=null};
_.a=vC.prototype;
_.a.unsubscribe=function(){if(!this.closed){this.closed=!0;var x=this._parentage;if(Array.isArray(x))for(var G=_.l(x),D=G.next();!D.done;D=G.next())D.value.remove(this);else x==null||x.remove(this);G=this.initialTeardown;if(Nc(G))try{G()}catch(y){var K=y instanceof z1$?y.errors:[y]}var z=this._teardowns;if(z)for(this._teardowns=null,G=_.l(z),D=G.next();!D.done;D=G.next()){D=D.value;try{Nc(D)?D():D.unsubscribe()}catch(y){D=void 0,K=(D=K)!=null?D:[],y instanceof z1$?K=[].concat(_.B5(K),_.B5(y.errors)):
K.push(y)}}if(K)throw new z1$(K);}};
_.a.add=function(x){if(x&&x!==this)if(this.closed)Nc(x)?x():x.unsubscribe();else{if(x instanceof vC){if(x.closed||x._hasParent(this))return;x._addParent(this)}var G;(this._teardowns=(G=this._teardowns)!=null?G:[]).push(x)}};
_.a._hasParent=function(x){var G=this._parentage;return G===x||Array.isArray(G)&&G.includes(x)};
_.a._addParent=function(x){var G=this._parentage;this._parentage=Array.isArray(G)?(G.push(x),G):G?[G,x]:x};
_.a._removeParent=function(x){var G=this._parentage;G===x?this._parentage=null:Array.isArray(G)&&qc(G,x)};
_.a.remove=function(x){var G=this._teardowns;G&&qc(G,x);x instanceof vC&&x._removeParent(this)};
var ajP=new vC;ajP.closed=!0;vC.JSC$7080_EMPTY=ajP;var $H$=function(){setTimeout.apply(null,_.B5(_.rC.apply(0,arguments)))};var fr=function(x){vC.call(this);this.JSC$7085_isStopped=!1;this.destination=x instanceof fr?x:new te(!x||Nc(x)?{next:x!=null?x:void 0}:x);HmE(x)&&x.add(this)};
_.m(fr,vC);fr.JSC$7080_EMPTY=vC.JSC$7080_EMPTY;fr.create=function(x,G,D){return new kp(x,G,D)};
_.a=fr.prototype;_.a.next=function(x){this.JSC$7085_isStopped||this._next(x)};
_.a.error=function(x){this.JSC$7085_isStopped||(this.JSC$7085_isStopped=!0,this._error(x))};
_.a.complete=function(){this.JSC$7085_isStopped||(this.JSC$7085_isStopped=!0,this._complete())};
_.a.unsubscribe=function(){this.closed||(this.JSC$7085_isStopped=!0,vC.prototype.unsubscribe.call(this))};
_.a._next=function(x){this.destination.next(x)};
_.a._error=function(x){this.destination.error(x);this.unsubscribe()};
_.a._complete=function(){this.destination.complete();this.unsubscribe()};
var te=function(x){this.partialObserver=x};
te.prototype.next=function(x){var G=this.partialObserver;if(G.next)try{G.next(x)}catch(D){f9(D)}};
te.prototype.error=function(x){var G=this.partialObserver;if(G.error)try{G.error(x)}catch(D){f9(D)}else f9(x)};
te.prototype.complete=function(){var x=this.partialObserver;if(x.complete)try{x.complete()}catch(G){f9(G)}};
var kp=function(x,G,D){fr.call(this);var K;Nc(x)||!x?K={next:x!=null?x:void 0,error:G!=null?G:void 0,complete:D!=null?D:void 0}:K=x;this.destination=new te(K)};
_.m(kp,fr);kp.JSC$7080_EMPTY=fr.JSC$7080_EMPTY;kp.create=fr.create;var xR=typeof Symbol==="function"&&Symbol.observable||"@@observable";var E2=function(x){x&&(this._subscribe=x)};
_.a=E2.prototype;_.a.lift=function(x){var G=new E2;G.source=this;G.operator=x;return G};
_.a.subscribe=function(x,G,D){x=x&&x instanceof fr||x&&Nc(x.next)&&Nc(x.error)&&Nc(x.complete)&&HmE(x)?x:new kp(x,G,D);G=this.operator;D=this.source;x.add(G?G.call(x,D):D?this._subscribe(x):this._trySubscribe(x));return x};
_.a._trySubscribe=function(x){try{return this._subscribe(x)}catch(G){x.error(G)}};
_.a.forEach=function(x,G){var D=this;G=CUC(G);return new G(function(K,z){var y=D.subscribe(function(c){try{x(c)}catch(W){z(W),y==null||y.unsubscribe()}},z,K)})};
_.a._subscribe=function(x){var G;return(G=this.source)==null?void 0:G.subscribe(x)};
E2.prototype[xR]=function(){return this};
E2.prototype.pipe=function(){var x=_.rC.apply(0,arguments);return x.length?Fzn(x)(this):this};
E2.create=function(x){return new E2(x)};var oe$=function(){var x=Error.call(this,"object unsubscribed");this.message=x.message;"stack"in x&&(this.stack=x.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.m(oe$,Error);var K2=function(){this.observers=[];this.hasError=this.JSC$7101_isStopped=this.closed=!1;this.thrownError=null};
_.m(K2,E2);_.a=K2.prototype;_.a.lift=function(x){var G=new PV(this,this);G.operator=x;return G};
_.a._throwIfClosed=function(){if(this.closed)throw new oe$;};
_.a.next=function(x){this._throwIfClosed();if(!this.JSC$7101_isStopped){var G=this.observers.slice();G=_.l(G);for(var D=G.next();!D.done;D=G.next())D.value.next(x)}};
_.a.error=function(x){this._throwIfClosed();if(!this.JSC$7101_isStopped){this.hasError=this.JSC$7101_isStopped=!0;this.thrownError=x;for(var G=this.observers;G.length;)G.shift().error(x)}};
_.a.complete=function(){this._throwIfClosed();if(!this.JSC$7101_isStopped){this.JSC$7101_isStopped=!0;for(var x=this.observers;x.length;)x.shift().complete()}};
_.a.unsubscribe=function(){this.JSC$7101_isStopped=this.closed=!0;this.observers=null};
_.a._trySubscribe=function(x){this._throwIfClosed();return E2.prototype._trySubscribe.call(this,x)};
_.a._subscribe=function(x){this._throwIfClosed();this._checkFinalizedStatuses(x);return this._innerSubscribe(x)};
_.a._innerSubscribe=function(x){var G=this,D=this.JSC$7101_isStopped,K=this.observers;return this.hasError||D?vC.JSC$7080_EMPTY:(K.push(x),new vC(function(){return qc(G.observers,x)}))};
_.a._checkFinalizedStatuses=function(x){var G=this.thrownError,D=this.JSC$7101_isStopped;this.hasError?x.error(G):D&&x.complete()};
K2.create=function(x,G){return new PV(x,G)};
var PV=function(x,G){K2.call(this);this.destination=x;this.source=G};
_.m(PV,K2);PV.create=K2.create;PV.prototype.next=function(x){var G,D;(G=this.destination)==null||(D=G.next)==null||D.call(G,x)};
PV.prototype.error=function(x){var G,D;(G=this.destination)==null||(D=G.error)==null||D.call(G,x)};
PV.prototype.complete=function(){var x,G;(x=this.destination)==null||(G=x.complete)==null||G.call(x)};
PV.prototype._subscribe=function(x){var G,D;return(D=(G=this.source)==null?void 0:G.subscribe(x))!=null?D:vC.JSC$7080_EMPTY};var Si=function(x){K2.call(this);this._value=x};
_.m(Si,K2);Si.create=K2.create;Si.prototype._subscribe=function(x){var G=K2.prototype._subscribe.call(this,x);!G.closed&&x.next(this._value);return G};
Si.prototype.getValue=function(){var x=this.thrownError,G=this._value;if(this.hasError)throw x;this._throwIfClosed();return G};
Si.prototype.next=function(x){K2.prototype.next.call(this,this._value=x)};
_.Nq.Object.defineProperties(Si.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var FF=new E2(function(x){return x.complete()});var h_=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var S_L=function(x){return x&&typeof x.length==="number"&&typeof x!=="function"};var ybD={now:function(){return(ybD.delegate||Date).now()},
delegate:void 0};var q1=function(x,G,D){x=x===void 0?Infinity:x;G=G===void 0?Infinity:G;D=D===void 0?ybD:D;K2.call(this);this.JSC$7123_bufferSize=x;this.windowTime=G;this.timestampProvider=D;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=G===Infinity;this.JSC$7123_bufferSize=Math.max(1,x);this.windowTime=Math.max(1,G)};
_.m(q1,K2);q1.create=K2.create;q1.prototype.next=function(x){var G=this.buffer,D=this.infiniteTimeWindow,K=this.timestampProvider,z=this.windowTime;this.JSC$7101_isStopped||(G.push(x),!D&&G.push(K.now()+z));ljh(this);K2.prototype.next.call(this,x)};
q1.prototype._subscribe=function(x){this._throwIfClosed();ljh(this);for(var G=this._innerSubscribe(x),D=this.infiniteTimeWindow,K=this.buffer.slice(),z=0;z<K.length&&!x.closed;z+=D?1:2)x.next(K[z]);this._checkFinalizedStatuses(x);return G};
var ljh=function(x){var G=x.JSC$7123_bufferSize,D=x.timestampProvider,K=x.buffer;x=x.infiniteTimeWindow;var z=(x?1:2)*G;G<Infinity&&z<K.length&&K.splice(0,K.length-z);if(!x){G=D.now();D=0;for(x=1;x<K.length&&K[x]<=G;x+=2)D=x;D&&K.splice(0,D+1)}};var Td3=function(x,G){G=G===void 0?cbL:G;this.schedulerActionCtor=x;this.now=G};
Td3.prototype.schedule=function(x,G,D){G=G===void 0?0:G;return(new this.schedulerActionCtor(this,x)).schedule(D,G)};
var cbL=ybD.now;var FuP=function(){var x=Error.call(this,"no elements in sequence");this.message=x.message;"stack"in x&&(this.stack=x.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.m(FuP,Error);var Q6=function(x,G,D,K,z){fr.call(this,x);this.onUnsubscribe=z;G&&(this._next=function(y){try{G(y)}catch(c){this.destination.error(c)}});
D&&(this._error=function(y){try{D(y)}catch(c){this.destination.error(c)}this.unsubscribe()});
K&&(this._complete=function(){try{K()}catch(y){this.destination.error(y)}this.unsubscribe()})};
_.m(Q6,fr);Q6.JSC$7080_EMPTY=fr.JSC$7080_EMPTY;Q6.create=fr.create;Q6.prototype.unsubscribe=function(){var x;this.closed||(x=this.onUnsubscribe)!=null&&x.call(this);fr.prototype.unsubscribe.call(this)};var d4=function(x,G){this.source=x;this.subjectFactory=G;this._subject=null;this._refCount=0;this._connection=null};
_.m(d4,E2);d4.create=E2.create;d4.prototype._subscribe=function(x){return Woh(this).subscribe(x)};
var Woh=function(x){var G=x._subject;if(!G||G.JSC$7101_isStopped)x._subject=x.subjectFactory();return x._subject};
d4.prototype._teardown=function(){this._refCount=0;var x=this._connection;this._subject=this._connection=null;x==null||x.unsubscribe()};
d4.prototype.connect=function(){var x=this,G=this._connection;if(!G){G=this._connection=new vC;var D=Woh(this);G.add(this.source.subscribe(new Q6(D,void 0,function(K){x._teardown();D.error(K)},function(){x._teardown();
D.complete()},function(){return x._teardown()})));
G.closed&&(this._connection=null,G=vC.JSC$7080_EMPTY)}return G};var tXf=Array.isArray;var PUQ=Array.isArray,e1V=Object,E0h=e1V.getPrototypeOf,hUL=e1V.prototype,xcd=e1V.keys;var ss=function(x,G,D){fr.call(this,x);this._next=G;this.shouldComplete=D};
_.m(ss,fr);ss.JSC$7080_EMPTY=fr.JSC$7080_EMPTY;ss.create=fr.create;ss.prototype._complete=function(){this.shouldComplete()?fr.prototype._complete.call(this):this.unsubscribe()};var lBn=["addListener","removeListener"],y_n=["addEventListener","removeEventListener"],TCn=["on","off"];var Ek=function(){vC.call(this)};
_.m(Ek,vC);Ek.JSC$7080_EMPTY=vC.JSC$7080_EMPTY;Ek.prototype.schedule=function(){return this};var Zcn=function(x,G){return setInterval.apply(null,[x,G].concat(_.B5(_.rC.apply(2,arguments))))};var he=function(x,G){vC.call(this);this.scheduler=x;this.work=G;this.pending=!1};
_.m(he,Ek);he.JSC$7080_EMPTY=Ek.JSC$7080_EMPTY;he.prototype.schedule=function(x,G){G=G===void 0?0:G;if(this.closed)return this;this.state=x;x=this.id;var D=this.scheduler;x!=null&&(this.id=MNL(this,x,G));this.pending=!0;this.delay=G;this.id=this.id||this.requestAsyncId(D,this.id,G);return this};
he.prototype.requestAsyncId=function(x,G,D){D=D===void 0?0:D;return Zcn(x.flush.bind(x,this),D)};
var MNL=function(x,G,D){D=D===void 0?0:D;if(D!=null&&x.delay===D&&x.pending===!1)return G;clearInterval(G)};
he.prototype.execute=function(x,G){if(this.closed)return Error("la");this.pending=!1;if(x=this._execute(x,G))return x;this.pending===!1&&this.id!=null&&(this.id=MNL(this,this.id,null))};
he.prototype._execute=function(x){var G=!1;try{this.work(x)}catch(K){G=!0;var D=!!K&&K||Error(K)}if(G)return this.unsubscribe(),D};
he.prototype.unsubscribe=function(){if(!this.closed){var x=this.id,G=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;qc(G,this);x!=null&&(this.id=MNL(this,x,null));this.delay=null;Ek.prototype.unsubscribe.call(this)}};var Q$C=function(x,G){G=G===void 0?cbL:G;Td3.call(this,x,G);this.actions=[];this.active=!1;this.scheduled=void 0};
_.m(Q$C,Td3);Q$C.prototype.flush=function(x){var G=this.actions;if(this.active)G.push(x);else{var D;this.active=!0;do if(D=x.execute(x.state,x.delay))break;while(x=G.shift());this.active=!1;if(D){for(;x=G.shift();)x.unsubscribe();throw D;}}};var Bu=new E2(J_);var WuL=Array.isArray;var x2=function(x,G){he.call(this,x,G);this.scheduler=x;this.work=G};
_.m(x2,he);x2.JSC$7080_EMPTY=he.JSC$7080_EMPTY;x2.prototype.schedule=function(x,G){G=G===void 0?0:G;if(G>0)return he.prototype.schedule.call(this,x,G);this.delay=G;this.state=x;this.scheduler.flush(this);return this};
x2.prototype.execute=function(x,G){return G>0||this.closed?he.prototype.execute.call(this,x,G):this._execute(x,G)};
x2.prototype.requestAsyncId=function(x,G,D){D=D===void 0?0:D;return D!=null&&D>0||D==null&&this.delay>0?he.prototype.requestAsyncId.call(this,x,G,D):x.flush(this)};var prf=function(){Q$C.apply(this,arguments)};
_.m(prf,Q$C);var JgD=new prf(x2);var VNL=function(){this.performanceMonitor=new FlO;this.queue=new Cff;this.internalSymbol=Symbol();this.debugNames=new Kof};
VNL.prototype.getOnBackgrounded=function(){return Bu};
_.Nq.Object.defineProperties(VNL.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var GE=function(x,G){G=Error.call(this,G?x+": "+G:String(x));this.message=G.message;"stack"in G&&(this.stack=G.stack);this.code=x;this.__proto__=GE.prototype;this.name=String(x)};
_.m(GE,Error);var r0=function(x){GE.call(this,1E3,'sfr:"'+x+'"');this.measurementStrategyFailureReason=x;this.__proto__=r0.prototype};
_.m(r0,GE);var sa=function(){GE.call(this,1003);this.__proto__=sa.prototype};
_.m(sa,GE);var DF=function(){GE.call(this,1009);this.__proto__=DF.prototype};
_.m(DF,GE);var bcE=function(){GE.call(this,1011);this.__proto__=bcE.prototype};
_.m(bcE,GE);var LoE=function(){GE.call(this,1007);this.__proto__=sa.prototype};
_.m(LoE,GE);var MY=function(x){GE.call(this,1004,String(x));this.inputObservableIndex=x;this.__proto__=MY.prototype};
_.m(MY,GE);var ilQ=function(x){GE.call(this,1010,x);this.__proto__=Qx.prototype};
_.m(ilQ,GE);var Qx=function(x){GE.call(this,1005,x);this.__proto__=Qx.prototype};
_.m(Qx,GE);var Bd$=function(x){var G=_.rC.apply(1,arguments),D=this;this.orderedFactories=[];this.orderedFactories.push(x);G.forEach(function(K){D.orderedFactories.push(K)})};
Bd$.prototype.isSupported=function(x){return this.orderedFactories.some(function(G){return G.isSupported(x)})};
Bd$.prototype.makeBeacon=function(x,G){for(var D=0;D<this.orderedFactories.length;D++)if(this.orderedFactories[D].isSupported(G))return this.orderedFactories[D].makeBeacon(x,G);throw new DF;};var Yaf=Symbol("ma"),rbL=Symbol("na"),Os=function(x,G){this.value=x;this.timeline=G},jz=function(x,G){if(G.timeline!==x.timeline)throw new LoE;
return x.value-G.value};
_.a=Os.prototype;_.a.equals=function(x){return jz(this,x)===0};
_.a.maximum=function(x){if(x.timeline!==this.timeline)throw new LoE;return this.value>=x.value?this:x};
_.a.round=function(){return new Os(Math.round(this.value),this.timeline)};
_.a.add=function(x){return new Os(this.value+x,this.timeline)};
_.a.toString=function(){return String(this.value)};var KX=function(x,G){this.context=x;this.JSC$7207_pinger=G};
KX.prototype.isSupported=function(x){return this.JSC$7207_pinger.isSupported(x)};
KX.prototype.makeBeacon=function(x,G){if(!this.isSupported(G))throw new DF;return new zE(this.context,this.JSC$7207_pinger,G!=null?G:void 0,x)};
var zE=function(x,G,D,K){var z=this;this.JSC$7213_pinger=G;this.properties=D;this.url=K;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var y;this.method=(y=D==null?void 0:D.beaconMethod)!=null?y:"GET";this.backgroundedSubscription=x.getOnBackgrounded().subscribe(function(){z.sendNow()})};
zE.prototype.deactivate=function(){this.internalIsPending=!1};
zE.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7213_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var x,G;this.JSC$7213_pinger.pingWithHeadersAndBody((x=this.properties)!=null?x:{},this.customHeaders,(G=this.body)!=null?G:"",this.url)}else this.JSC$7213_pinger.ping(this.url);this.internalIsPending=!1}catch(D){}else this.internalIsPending=!1};
zE.prototype.setHeader=function(x){this.customHeaders.set(x,void 0)};
_.Nq.Object.defineProperties(zE.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var YU3=function(){for(var x=_.l(_.rC.apply(0,arguments)),G=x.next();!G.done;G=x.next())if(G=G.value,G.available()){this.timeProvider=G;return}this.timeProvider=new s$C};
_.a=YU3.prototype;_.a.available=function(){return this.timeProvider.available()};
_.a.now=function(){return this.timeProvider.now()};
_.a.setTimeout=function(x,G){return this.timeProvider.setTimeout(x,G)};
_.a.clearTimeout=function(x){this.timeProvider.clearTimeout(x)};
_.a.interval=function(x,G){var D=this.intervalObservable(x).subscribe(G);return function(){return void D.unsubscribe()}};
_.a.intervalObservable=function(x){return this.timeProvider.intervalObservable(x)};
_.Nq.Object.defineProperties(YU3.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var s$C=function(){this.timeline=Symbol()};
_.a=s$C.prototype;_.a.available=function(){return!1};
_.a.now=function(){return new Os(0,this.timeline)};
_.a.setTimeout=function(){return 0};
_.a.clearTimeout=function(){};
_.a.interval=function(){return function(){}};
_.a.intervalObservable=function(){return Bu};var am=function(x,G){this.intrinsicFunctionNamespace=x;this.performanceMonitor=G};
_.a=am.prototype;_.a.setTimeout=function(x,G){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,x),G)};
_.a.clearTimeout=function(x){this.intrinsicFunctionNamespace.clearTimeout(x)};
_.a.interval=function(x,G){var D=this.intervalObservable(x).subscribe(G);return function(){return void D.unsubscribe()}};
_.a.intervalObservable=function(x){var G=this;return new E2(function(D){var K=0,z=G.intrinsicFunctionNamespace.setInterval(function(){D.next(K++)},x);
return function(){G.intrinsicFunctionNamespace.clearInterval(z)}})};
_.a.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var mmf=function(x,G){am.call(this,x,G);this.timeline=rbL};
_.m(mmf,am);mmf.prototype.now=function(){return new Os(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
mmf.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&am.prototype.available.call(this)};var Hc$=function(x,G){am.call(this,x,G);this.timeline=Yaf};
_.m(Hc$,am);Hc$.prototype.now=function(){return new Os(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
Hc$.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&am.prototype.available.call(this)};var FoO=function(x){this.context=x;if($mf===void 0)a:{var G,D,K=(G=x.global)==null?void 0:(D=G.document)==null?void 0:D.createElement("meta");if(K)try{K.httpEquiv="origin-trial";K.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";x.global.document.head.append(K);$mf=K;break a}catch(z){}$mf=void 0}},
$mf;
FoO.prototype.isSupported=function(x){return r_3(this.context)!==void 0&&!(x==null||!x.endOfSession)&&!om(this.context)&&!(x==null?0:x.attributionEnabled)&&!(x==null?0:x.customHeaders)&&!(x==null?0:x.customBody)};
FoO.prototype.makeBeacon=function(x,G){if(!this.isSupported(G))throw new DF;return new yd(this.context,x,G)};
var yd=function(x,G,D){this.context=x;this.properties=D;this.JSC$7240_urlWithoutToken=G;var K;this.beaconMethod=(K=D==null?void 0:D.beaconMethod)!=null?K:"GET";x=r_3(this.context);if(x===void 0)throw Error();this.fetchLater=x;CnL(this,IjQ(this))},CnL=function(x,G){x.beaconResult&&x.beaconResult.activated||(x.beaconAbort=new AbortController,x.beaconResult=x.fetchLater(G,{method:x.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:x.beaconAbort.signal,activateAfter:96E4}))},IjQ=function(x){x=x.JSC$7240_urlWithoutToken;
return(x.slice(-1)[0]==="&"?x:x+"&")+"flapi=1"};
yd.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
yd.prototype.sendNow=function(){};
yd.prototype.setHeader=function(){};
_.Nq.Object.defineProperties(yd.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7240_urlWithoutToken},
set:function(x){this.JSC$7240_urlWithoutToken=x;x=IjQ(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);CnL(this,x)}},
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 j$O=function(x){this.context=x};
j$O.prototype.isSupported=function(){return!om(this.context)&&!!this.context.global.fetch};
j$O.prototype.ping=function(){var x=this;return Cl.apply(null,_.B5(_.rC.apply(0,arguments).map(function(G){return DY(x.context.global.fetch(G,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(V6(function(D){return D.status===200}))}))).pipe(CHh(function(G){return G}),jFP())};
j$O.prototype.pingWithHeadersAndBody=function(x,G,D){for(var K=_.rC.apply(3,arguments),z=this,y=new Headers,c=_.l(G.entries()),W=c.next();!W.done;W=c.next()){var e=_.l(W.value);W=e.next().value;e=e.next().value;y.set(W,e)}var Q,p=(Q=x.keepAlive)!=null?Q:!1;Cl.apply(null,_.B5(K.map(function(V){return DY(z.context.global.fetch(V,Object.assign({},{method:String(x.beaconMethod),cache:"no-cache"},p?{keepalive:!0}:{},{mode:"no-cors",headers:y,body:D}))).pipe(V6(function(L){return L.status===200}))}))).pipe(CHh(function(V){return V}),
jFP())};var Ocd,Ewd;_.ld=function(){};
_.gn=function(x){return x};
Ocd=function(x){var G=G||0;return function(){return x.apply(this,Array.prototype.slice.call(arguments,0,G))}};
_.c_=function(x){var G=!1,D;return function(){G||(D=x(),G=!0);return D}};
_.TE=function(x,G){var D=0;return function(K){_.Df.clearTimeout(D);var z=arguments;D=_.Df.setTimeout(function(){x.apply(void 0,z)},G)}};
Ewd=function(x,G){var D=0,K=!1,z=[],y=function(){D=0;K&&(K=!1,c())},c=function(){D=_.Df.setTimeout(y,G);
var W=z;z=[];x.apply(void 0,W)};
return function(W){z=arguments;D?K=!0:c()}};var AbE=function(){return p$&&V3?V3.mobile:!XrV()&&(rn("iPod")||rn("iPhone")||rn("Android")||rn("IEMobile"))},XrV=function(){return p$&&V3?!V3.mobile&&(rn("iPad")||rn("Android")||rn("Silk")):rn("iPad")||rn("Android")&&!rn("Mobile")||rn("Silk")};var UmO;_.YS={};UmO="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.YS.add=function(x,G,D){if(x!==null&&G in x)throw Error("pa`"+G);x[G]=D};
_.YS.clear=function(x){for(var G in x)delete x[G]};
_.YS.clone=function(x){var G={},D;for(D in x)G[D]=x[D];return G};
_.YS.contains=function(x,G){return A_n(x,G)};
_.YS.containsKey=function(x,G){return x!==null&&G in x};
_.YS.containsValue=A_n;_.YS.create=S2d;_.YS.createImmutableView=function(x){var G=x;Object.isFrozen&&!Object.isFrozen(x)&&(G=Object.create(x),Object.freeze(G));return G};
_.YS.createSet=nYV;_.YS.equals=function(x,G){for(var D in x)if(!(D in G)||x[D]!==G[D])return!1;for(var K in G)if(!(K in x))return!1;return!0};
_.YS.every=function(x,G,D){for(var K in x)if(!G.call(D,x[K],K,x))return!1;return!0};
_.YS.extend=function(x,G){for(var D,K,z=1;z<arguments.length;z++){K=arguments[z];for(D in K)x[D]=K[D];for(var y=0;y<UmO.length;y++)D=UmO[y],Object.prototype.hasOwnProperty.call(K,D)&&(x[D]=K[D])}};
_.YS.filter=function(x,G,D){var K={},z;for(z in x)G.call(D,x[z],z,x)&&(K[z]=x[z]);return K};
_.YS.findKey=UcQ;_.YS.findValue=function(x,G,D){return(G=UcQ(x,G,D))&&x[G]};
_.YS.forEach=function(x,G,D){for(var K in x)G.call(D,x[K],K,x)};
_.YS.get=function(x,G,D){return x!==null&&G in x?x[G]:D};
_.YS.getAllPropertyNames=function(x,G,D){if(!x)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return XCE(x);for(var K={};x&&(x!==Object.prototype||G)&&(x!==Function.prototype||D);){for(var z=Object.getOwnPropertyNames(x),y=0;y<z.length;y++)K[z[y]]=!0;x=Object.getPrototypeOf(x)}return XCE(K)};
_.YS.getAnyKey=function(x){for(var G in x)return G};
_.YS.getAnyValue=function(x){for(var G in x)return x[G]};
_.YS.getCount=function(x){var G=0,D;for(D in x)G++;return G};
_.YS.getKeys=XCE;_.YS.getSuperClass=function(x){return(x=Object.getPrototypeOf(x.prototype))&&x.constructor};
_.YS.getValueByKeys=function(x,G){var D=_.PL(G),K=D?G:arguments;for(D=D?0:1;D<K.length;D++){if(x==null)return;x=x[K[D]]}return x};
_.YS.getValues=function(x){var G=[],D=0,K;for(K in x)G[D++]=x[K];return G};
_.YS.isEmpty=function(x){for(var G in x)return!1;return!0};
_.YS.isImmutableView=function(x){return!!Object.isFrozen&&Object.isFrozen(x)};
_.YS.map=function(x,G,D){var K={},z;for(z in x)K[z]=G.call(D,x[z],z,x);return K};
_.YS.remove=function(x,G){var D;(D=G in x)&&delete x[G];return D};
_.YS.set=function(x,G,D){x[G]=D};
_.YS.setIfUndefined=function(x,G,D){return G in x?x[G]:x[G]=D};
_.YS.setWithReturnValueIfNotSet=function(x,G,D){if(G in x)return x[G];D=D();return x[G]=D};
_.YS.some=function(x,G,D){for(var K in x)if(G.call(D,x[K],K,x))return!0;return!1};
_.YS.transpose=function(x){var G={},D;for(D in x)G[x[D]]=D;return G};
_.YS.unsafeClone=RoE;var W_=function(x,G,D,K,z){this.allowedElements=x;this.elementPolicies=G;this.allowedGlobalAttributes=D;this.globalAttributePolicies=K;this.globallyAllowedAttributePrefixes=z},R1L=function(x,G,D){D=x.elementPolicies.get(D);
return(D==null?0:D.has(G))?D.get(G):x.allowedGlobalAttributes.has(G)?{policyAction:1}:(D=x.globalAttributePolicies.get(G))?D:x.globallyAllowedAttributePrefixes&&[].concat(_.B5(x.globallyAllowedAttributePrefixes)).some(function(K){return G.indexOf(K)===0})?{policyAction:1}:{policyAction:0}};var SUV="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(" "),
neE=[["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}]])]],icn="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
geh=[["dir",{policyAction:3,conditions:zW(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:zW(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:zW(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:zW(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],u1n=new W_(new Set(SUV),new Map(neE),new Set(icn),new Map(geh)),dmh=new W_(new Set(SUV.concat(["BUTTON",
"INPUT"])),new Map(neE),new Set(zW(function(){return icn.concat(["class","id","name"])})),new Map(zW(function(){return geh.concat([["style",
{policyAction:1}]])})));var wrE,qUO,veL;wrE=function(x,G,D,K){this.JSC$7300_sanitizerTable=x;this.styleElementSanitizer=G;this.styleAttributeSanitizer=D;this.JSC$7300_resourceUrlPolicy=K;this.changes=[]};
_.NdE=function(x,G){var D=document.implementation.createHTMLDocument("");x=qUO(x,G,D);D=D.body;D.appendChild(x);D=(new XMLSerializer).serializeToString(D);D=D.slice(D.indexOf(">")+1,D.lastIndexOf("</"));return $Y(D)};
qUO=function(x,G,D){G=gYL(G,D);G=document.createTreeWalker(G,5,function(W){if(W.nodeType===3)W=1;else if(dc$(W))if(W=u_$(W),W===null)W=2;else{var e=x.JSC$7300_sanitizerTable;W=W!=="FORM"&&(e.allowedElements.has(W)||e.elementPolicies.has(W))?1:2}else W=2;return W});
for(var K=G.nextNode(),z=D.createDocumentFragment(),y=z;K!==null;){var c=void 0;if(K.nodeType===3)x.styleElementSanitizer&&y.nodeName==="STYLE"?(K=x.styleElementSanitizer(K.data),c=x.createTextNode(K)):c=x.createTextNode(K.data);else if(dc$(K))c=veL(x,K,D);else throw Error("da");y.appendChild(c);if(K=G.firstChild())y=c;else for(;!(K=G.nextSibling())&&(K=G.parentNode());)y=y.parentNode}return z};
wrE.prototype.createTextNode=function(x){return document.createTextNode(x)};
veL=function(x,G,D){var K,z=u_$(G);D=D.createElement(z);G=G.attributes;for(var y=_.l(G),c=y.next();!c.done;c=y.next()){var W=c.value;c=W.name;W=W.value;var e=R1L(x.JSC$7300_sanitizerTable,c,z);a:{if(K=e.conditions){K=_.l(K);for(var Q=K.next();!Q.done;Q=K.next()){var p=_.l(Q.value);Q=p.next().value;p=p.next().value;var V=void 0;if((Q=(V=G.getNamedItem(Q))==null?void 0:V.value)&&!p.has(Q)){K=!1;break a}}}K=!0}if(K)switch(e.policyAction){case 1:h1(D,c,W);break;case 2:e=_.pdD(W);W=e!==void 0&&Jhn.indexOf(e.toLowerCase())!==
-1?W:"about:invalid#zClosurez";h1(D,c,W);break;case 3:h1(D,c,W.toLowerCase());break;case 4:x.styleAttributeSanitizer?(W=x.styleAttributeSanitizer(W),h1(D,c,W)):h1(D,c,W);break;case 5:x.JSC$7300_resourceUrlPolicy?(e={type:2,attributeName:c,elementName:z},W=i9O(W),(W=x.JSC$7300_resourceUrlPolicy(W,e))&&h1(D,c,W.toString())):h1(D,c,W);break;case 6:if(x.JSC$7300_resourceUrlPolicy){e={type:2,attributeName:c,elementName:z};K=[];W=_.l(W.split(","));for(Q=W.next();!Q.done;Q=W.next())p=_.l(Q.value.trim().split(/\s+/,
2)),Q=p.next().value,p=p.next().value,K.push({url:Q,descriptor:p});W={parts:[]};K=_.l(K);for(Q=K.next();!Q.done;Q=K.next())Q=Q.value,p=i9O(Q.url),(p=x.JSC$7300_resourceUrlPolicy(p,e))&&W.parts.push({url:p.toString(),descriptor:Q.descriptor});h1(D,c,wCQ(W))}else h1(D,c,W)}}return D};
_.JbO=zW(function(){return new wrE(u1n)});
_.fjh=zW(function(){return new wrE(dmh)});var tN3=function(){this.calledBuild=!1;this.JSC$7312_sanitizerTable=u1n},kLV=function(){tN3.apply(this,arguments)};
_.m(kLV,tN3);kLV.prototype.build=function(){if(this.calledBuild)throw Error("ra");this.calledBuild=!0;return new wrE(this.JSC$7312_sanitizerTable,void 0,void 0,this.JSC$7312_resourceUrlPolicy)};var Pnf=/[^#]*/;var vu=function(x){try{return!!x&&x.location.href!=null&&Ih(x,"foo")}catch(G){return!1}},h1O=function(x){var G=EeQ;
if(G)for(var D in G)Object.prototype.hasOwnProperty.call(G,D)&&x(G[D],D,G)},xLu=function(){var x=[];
h1O(function(G){x.push(G)});
return x},EeQ={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"},Gds=_.c_(function(){return xLu()}),KEi=function(){var x=DL7("IFRAME"),
G={};
_.uM(Gds(),function(D){x.sandbox&&x.sandbox.supports&&x.sandbox.supports(D)&&(G[D]=!0)});
return G},DL7=function(x,G){G=G===void 0?document:G;
return G.createElement(String(x).toLowerCase())};var ew;_.$1=function(x,G,D){return Math.min(Math.max(x,G),D)};
ew=function(x,G,D){return x+D*(G-x)};_.$S=function(x,G){this.x=x!==void 0?x:0;this.y=G!==void 0?G:0};
_.a=_.$S.prototype;_.a.clone=function(){return new _.$S(this.x,this.y)};
_.a.equals=function(x){return x instanceof _.$S&&(this==x?!0:this&&x?this.x==x.x&&this.y==x.y:!1)};
_.a.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.a.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.a.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.a.translate=function(x,G){x instanceof _.$S?(this.x+=x.x,this.y+=x.y):(this.x+=Number(x),typeof G==="number"&&(this.y+=G));return this};
_.a.scale=function(x,G){this.x*=x;this.y*=typeof G==="number"?G:x;return this};_.cu=function(x,G){this.width=x;this.height=G};
_.a=_.cu.prototype;_.a.clone=function(){return new _.cu(this.width,this.height)};
_.a.area=function(){return this.width*this.height};
_.a.aspectRatio=function(){return this.width/this.height};
_.a.isEmpty=function(){return!this.area()};
_.a.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.a.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.a.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.a.scale=function(x,G){this.width*=x;this.height*=typeof G==="number"?G:x;return this};var A2=function(x,G){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=x===bz$&&G||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=zPZ};
A2.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var afu=function(x){return x instanceof A2&&x.constructor===A2&&x.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===zPZ?x.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},zPZ={},bz$={};
new A2(bz$,"");var ei,bP,M2,oC8,cQi,lf8,Fn,WE0,Z$k,eP0,bd,Mf0,rQZ,Bn8,LE9,sVs,YDs,mL8,H$i,S4V,$Ls,COJ,IfZ,FEs,ZF;ei=function(x){return x?new ZF(_.C2(x)):mfE||(mfE=new ZF)};
_.Ja=function(x,G){return typeof G==="string"?x.getElementById(G):G};
bP=function(x,G){return(G||document).getElementsByTagName(String(x))};
_.yQo=function(x){return oC8("yt-formatted-string","paper-input-input",x)};
M2=function(x,G,D,K){x=K||x;return(G=G&&G!="*"?String(G).toUpperCase():"")||D?x.querySelectorAll(G+(D?"."+D:"")):x.getElementsByTagName("*")};
oC8=function(x,G,D){var K=document,z=x&&x!="*"?String(x).toUpperCase():"";return z||G?(D||K).querySelector(z+(G?"."+G:"")):M2(K,x,G,D)[0]||null};
cQi=function(x,G){_.YS.forEach(G,function(D,K){K=="style"?x.style.cssText=D:K=="class"?x.className=D:K=="for"?x.htmlFor=D:lf8.hasOwnProperty(K)?x.setAttribute(lf8[K],D):_.zd(K,"aria-")||_.zd(K,"data-")?x.setAttribute(K,D):x[K]=D})};
lf8={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"};_.Tj=function(x){x=(x||window).document;x=x.compatMode=="CSS1Compat"?x.documentElement:x.body;return new _.cu(x.clientWidth,x.clientHeight)};
_.Tn0=function(x){var G=_.Qd(x);x=x.defaultView;return new _.$S(x.pageXOffset||G.scrollLeft,x.pageYOffset||G.scrollTop)};
_.Qd=function(x){return x.scrollingElement?x.scrollingElement:_.xp||x.compatMode!="CSS1Compat"?x.body||x.documentElement:x.documentElement};
Fn=function(x){return x?x.defaultView:window};
_.pX=function(x,G,D){return WE0(document,arguments)};
WE0=function(x,G){var D=G[1],K=eP0(x,String(G[0]));D&&(typeof D==="string"?K.className=D:Array.isArray(D)?K.className=D.join(" "):cQi(K,D));G.length>2&&Z$k(x,K,G,2);return K};
Z$k=function(x,G,D,K){function z(W){W&&G.appendChild(typeof W==="string"?x.createTextNode(W):W)}
for(;K<D.length;K++){var y=D[K];if(!_.PL(y)||_.G7(y)&&y.nodeType>0)z(y);else{a:{if(y&&typeof y.length=="number"){if(_.G7(y)){var c=typeof y.item=="function"||typeof y.item=="string";break a}if(typeof y==="function"){c=typeof y.item=="function";break a}}c=!1}_.uM(c?_.kC(y):y,z)}}};
_.p4=function(x){return eP0(document,x)};
eP0=function(x,G){G=String(G);x.contentType==="application/xhtml+xml"&&(G=G.toLowerCase());return x.createElement(G)};
_.Vd=function(){return document.createTextNode("\n")};
bd=function(x){if(x.nodeType!=1)return!1;switch(x.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};
Mf0=function(x,G){Z$k(_.C2(x),x,arguments,1)};
_.LX=function(x){for(var G;G=x.firstChild;)x.removeChild(G)};
_.B_=function(x,G){G.parentNode&&G.parentNode.insertBefore(x,G)};
_.rg=function(x,G){G.parentNode&&G.parentNode.insertBefore(x,G.nextSibling)};
_.VF=function(x){return x&&x.parentNode?x.parentNode.removeChild(x):null};
_.QVi=function(x,G){var D=G.parentNode;D&&D.replaceChild(x,G)};
_.pLJ=function(x){var G,D=x.parentNode;if(D&&D.nodeType!=11)if(x.removeNode)x.removeNode(!1);else{for(;G=x.firstChild;)D.insertBefore(G,x);_.VF(x)}};
_.sx=function(x){return x.children!=void 0?x.children:Array.prototype.filter.call(x.childNodes,function(G){return G.nodeType==1})};
_.b$s=function(x){return x.nextElementSibling!==void 0?x.nextElementSibling:_.Vfk(x.nextSibling,!0)};
_.Vfk=function(x,G){for(;x&&x.nodeType!=1;)x=G?x.nextSibling:x.previousSibling;return x};
_.fU=function(x){return _.G7(x)&&x.nodeType==1};
_.gM=function(x,G){if(!x||!G)return!1;if(x.contains&&G.nodeType==1)return x==G||x.contains(G);if(typeof x.compareDocumentPosition!="undefined")return x==G||!!(x.compareDocumentPosition(G)&16);for(;G&&x!=G;)G=G.parentNode;return G==x};
rQZ=function(x,G){if(x==G)return 0;if(x.compareDocumentPosition)return x.compareDocumentPosition(G)&2?1:-1;if("sourceIndex"in x||x.parentNode&&"sourceIndex"in x.parentNode){var D=x.nodeType==1,K=G.nodeType==1;if(D&&K)return x.sourceIndex-G.sourceIndex;var z=x.parentNode,y=G.parentNode;return z==y?LE9(x,G):!D&&_.gM(z,G)?-1*Bn8(x,G):!K&&_.gM(y,x)?Bn8(G,x):(D?x.sourceIndex:z.sourceIndex)-(K?G.sourceIndex:y.sourceIndex)}K=_.C2(x);D=K.createRange();D.selectNode(x);D.collapse(!0);x=K.createRange();x.selectNode(G);
x.collapse(!0);return D.compareBoundaryPoints(_.Df.Range.START_TO_END,x)};
Bn8=function(x,G){var D=x.parentNode;if(D==G)return-1;for(;G.parentNode!=D;)G=G.parentNode;return LE9(G,x)};
LE9=function(x,G){for(;G=G.previousSibling;)if(G==x)return-1;return 1};
sVs=function(x){var G,D=arguments.length;if(!D)return null;if(D==1)return arguments[0];var K=[],z=Infinity;for(G=0;G<D;G++){for(var y=[],c=arguments[G];c;)y.unshift(c),c=c.parentNode;K.push(y);z=Math.min(z,y.length)}y=null;for(G=0;G<z;G++){c=K[0][G];for(var W=1;W<D;W++)if(c!=K[W][G])return y;y=c}return y};
_.C2=function(x){return x.nodeType==9?x:x.ownerDocument||x.document};
YDs=function(x){return x.contentDocument||x.contentWindow.document};
_.Y2=function(x,G){if("textContent"in x)x.textContent=G;else if(x.nodeType==3)x.data=String(G);else if(x.firstChild&&x.firstChild.nodeType==3){for(;x.lastChild!=x.firstChild;)x.removeChild(x.lastChild);x.firstChild.data=String(G)}else _.LX(x),x.appendChild(_.C2(x).createTextNode(String(G)))};
mL8={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};H$i={IMG:" ",BR:"\n"};S4V=function(x){var G;x.tagName=="A"&&x.hasAttribute("href")||x.tagName=="INPUT"||x.tagName=="TEXTAREA"||x.tagName=="SELECT"||x.tagName=="BUTTON"?G=!x.disabled&&(!x.hasAttribute("tabindex")||$Ls(x)):G=x.hasAttribute("tabindex")&&$Ls(x);return G};
$Ls=function(x){x=x.tabIndex;return typeof x==="number"&&x>=0&&x<32768};
COJ=function(x){var G=[];FEs(x,G,!0);x=G.join("");x=x.replace(/ \xAD /g," ").replace(/\xAD/g,"");x=x.replace(/\u200B/g,"");x=x.replace(/ +/g," ");x!=" "&&(x=x.replace(/^\s*/,""));return x};
IfZ=function(x){var G=[];FEs(x,G,!1);return G.join("")};
FEs=function(x,G,D){if(!(x.nodeName in mL8))if(x.nodeType==3)D?G.push(String(x.nodeValue).replace(/(\r\n|\r|\n)/g,"")):G.push(x.nodeValue);else if(x.nodeName in H$i)G.push(H$i[x.nodeName]);else for(x=x.firstChild;x;)FEs(x,G,D),x=x.nextSibling};
_.jVo=function(x,G,D){if(!G&&!D)return null;var K=G?String(G).toUpperCase():null;return _.Xn(x,function(z){return(!K||z.nodeName==K)&&(!D||typeof z.className==="string"&&_.qL(z.className.split(/\s+/),D))},!0)};
_.Xn=function(x,G,D){x&&!D&&(x=x.parentNode);for(D=0;x;){if(G(x))return x;x=x.parentNode;D++}return null};
ZF=function(x){this.JSC$7337_document_=x||_.Df.document||document};
_.a=ZF.prototype;_.a.getElement=function(x){return _.Ja(this.JSC$7337_document_,x)};
_.a.$=ZF.prototype.getElement;_.a.getElementsByTagName=function(x,G){return(G||this.JSC$7337_document_).getElementsByTagName(String(x))};
_.a.getElementsByTagNameAndClass=function(x,G,D){return M2(this.JSC$7337_document_,x,G,D)};
_.a.$$=ZF.prototype.getElementsByTagNameAndClass;_.a.setProperties=cQi;_.a.JSC$7339_createDom=function(x,G,D){return WE0(this.JSC$7337_document_,arguments)};
_.a.createElement=function(x){return eP0(this.JSC$7337_document_,x)};
_.a.createTextNode=function(x){return this.JSC$7337_document_.createTextNode(String(x))};
_.a.getWindow=function(){return this.JSC$7337_document_.defaultView};
var Wu=function(x){return _.Tn0(x.JSC$7337_document_)};
_.a=ZF.prototype;_.a.appendChild=function(x,G){x.appendChild(G)};
_.a.append=Mf0;_.a.canHaveChildren=bd;_.a.removeNode=_.VF;_.a.getChildren=_.sx;_.a.contains=_.gM;_.a=D_.prototype;_.a.getWidth=function(){return this.right-this.left};
_.a.getHeight=function(){return this.bottom-this.top};
_.a.clone=function(){return new D_(this.top,this.right,this.bottom,this.left)};
_.a.contains=function(x){return this&&x?x instanceof D_?x.left>=this.left&&x.right<=this.right&&x.top>=this.top&&x.bottom<=this.bottom:x.x>=this.left&&x.x<=this.right&&x.y>=this.top&&x.y<=this.bottom:!1};
_.a.expand=function(x,G,D,K){_.G7(x)?(this.top-=x.top,this.right+=x.right,this.bottom+=x.bottom,this.left-=x.left):(this.top-=x,this.right+=Number(G),this.bottom+=Number(D),this.left-=Number(K));return this};
_.a.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};
_.a.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};
_.a.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};
_.a.translate=function(x,G){x instanceof _.$S?(this.left+=x.x,this.right+=x.x,this.top+=x.y,this.bottom+=x.y):(this.left+=x,this.right+=x,typeof G==="number"&&(this.top+=G,this.bottom+=G));return this};
_.a.scale=function(x,G){G=typeof G==="number"?G:x;this.left*=x;this.right*=x;this.top*=G;this.bottom*=G;return this};var mq=function(x,G,D,K){this.left=x;this.top=G;this.width=D;this.height=K};
_.a=mq.prototype;_.a.clone=function(){return new mq(this.left,this.top,this.width,this.height)};
_.a.boundingRect=function(x){var G=Math.max(this.left+this.width,x.left+x.width),D=Math.max(this.top+this.height,x.top+x.height);this.left=Math.min(this.left,x.left);this.top=Math.min(this.top,x.top);this.width=G-this.left;this.height=D-this.top};
_.a.contains=function(x){return x instanceof _.$S?x.x>=this.left&&x.x<=this.left+this.width&&x.y>=this.top&&x.y<=this.top+this.height:this.left<=x.left&&this.left+this.width>=x.left+x.width&&this.top<=x.top&&this.top+this.height>=x.top+x.height};
_.a.distance=function(x){var G=x.x<this.left?this.left-x.x:Math.max(x.x-(this.left+this.width),0);x=x.y<this.top?this.top-x.y:Math.max(x.y-(this.top+this.height),0);return Math.sqrt(G*G+x*x)};
_.a.getSize=function(){return new _.cu(this.width,this.height)};
_.a.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};
_.a.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};
_.a.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};
_.a.translate=function(x,G){x instanceof _.$S?(this.left+=x.x,this.top+=x.y):(this.left+=x,typeof G==="number"&&(this.top+=G));return this};
_.a.scale=function(x,G){G=typeof G==="number"?G:x;this.left*=x;this.width*=x;this.top*=G;this.height*=G;return this};var XLh,F$,e5V,$2,SDh,RPk,nCE,IUD,i$h,uhi;_.H_=function(x,G,D){if(typeof G==="string")(G=_.O$0(x,G))&&(x.style[G]=D);else for(var K in G){D=x;var z=G[K],y=_.O$0(D,K);y&&(D.style[y]=z)}};
XLh={};_.O$0=function(x,G){var D=XLh[G];if(!D){var K=_.eq(G);D=K;x.style[K]===void 0&&(K=(_.xp?"Webkit":_.hR?"Moz":null)+DmV(K),x.style[K]!==void 0&&(D=K));XLh[G]=D}return D};
_.MX=function(x,G){var D=_.C2(x);return D.defaultView&&D.defaultView.getComputedStyle&&(x=D.defaultView.getComputedStyle(x,null))?x[G]||x.getPropertyValue(G)||"":""};
_.iP=function(x,G){return _.MX(x,G)||(x.currentStyle?x.currentStyle[G]:null)||x.style&&x.style[G]};
_.AQk=function(x){return _.iP(x,"position")};
F$=function(x,G,D){if(G instanceof _.$S){var K=G.x;G=G.y}else K=G,G=D;x.style.left=$2(K,!1);x.style.top=$2(G,!1)};
e5V=function(x){try{return x.getBoundingClientRect()}catch(G){return{left:0,top:0,right:0,bottom:0}}};
_.ji=function(x){var G=_.C2(x),D=new _.$S(0,0);if(x==(G?_.C2(G):document).documentElement)return D;x=e5V(x);G=Wu(ei(G));D.x=x.left+G.x;D.y=x.top+G.y;return D};
_.UL8=function(x,G,D){if(G instanceof _.cu)D=G.height,G=G.width;else if(D==void 0)throw Error("sa");x.style.width=$2(G,!0);x.style.height=$2(D,!0)};
$2=function(x,G){typeof x=="number"&&(x=(G?Math.round(x):x)+"px");return x};
SDh=function(x){return RPk(x)};
RPk=function(x){var G=nCE;if(_.iP(x,"display")!="none")return G(x);var D=x.style,K=D.display,z=D.visibility,y=D.position;D.visibility="hidden";D.position="absolute";D.display="inline";x=G(x);D.display=K;D.position=y;D.visibility=z;return x};
nCE=function(x){var G=x.offsetWidth,D=x.offsetHeight,K=_.xp&&!G&&!D;return(G===void 0||K)&&x.getBoundingClientRect?(x=e5V(x),new _.cu(x.right-x.left,x.bottom-x.top)):new _.cu(G,D)};
IUD=function(x){var G=_.ji(x);x=RPk(x);return new mq(G.x,G.y,x.width,x.height)};
i$h=function(x,G){x=x.style;"opacity"in x?x.opacity=G:"MozOpacity"in x?x.MozOpacity=G:"filter"in x&&(x.filter=G===""?"":"alpha(opacity="+Number(G)*100+")")};
_.vZ=function(x,G){x.style.display=G?"":"none"};
_.gCk=function(x){return"rtl"==_.iP(x,"direction")};
uhi=function(x){var G=_.MX(x,"marginLeft"),D=_.MX(x,"marginRight"),K=_.MX(x,"marginTop");x=_.MX(x,"marginBottom");return new D_(parseFloat(K),parseFloat(D),parseFloat(x),parseFloat(G))};
_.dLk=function(x){var G=_.MX(x,"borderLeftWidth"),D=_.MX(x,"borderRightWidth"),K=_.MX(x,"borderTopWidth");x=_.MX(x,"borderBottomWidth");return new D_(parseFloat(K),parseFloat(D),parseFloat(x),parseFloat(G))};var CX=function(x){this.context=x};
CX.prototype.isSupported=function(x){return(x==null?0:x.attributionEnabled)||(x==null?void 0:x.beaconMethod)==="POST"||(x==null?0:x.customHeaders)||(x==null?0:x.customBody)||(x==null?0:x.keepAlive)?!1:!om(this.context)};
CX.prototype.ping=function(){var x=this;return ez(_.rC.apply(0,arguments).map(function(G){try{var D=x.context.global,K=!1;K=K===void 0?!1:K;D.google_image_requests||(D.google_image_requests=[]);var z=DL7("IMG",D.document);K&&(z.attributionSrc="");z.src=G;D.google_image_requests.push(z);return!0}catch(y){return!1}}).every(function(G){return G}))};
CX.prototype.pingWithHeadersAndBody=function(x,G,D){this.ping.apply(this,_.B5(_.rC.apply(3,arguments)))};var wLZ=function(x){this.context=x};
wLZ.prototype.isSupported=function(x){return qDh&&!om(this.context)&&NC$(this.context)!==void 0&&!(x==null?0:x.attributionEnabled)&&(x==null?void 0:x.beaconMethod)!=="POST"&&!(x==null?0:x.customHeaders)&&!(x==null?0:x.customBody)};
wLZ.prototype.makeBeacon=function(x,G){if(!this.isSupported(G))throw new DF;return new Im(this.context,x)};
var qDh=!1,Im=function(x,G){this.context=x;this.JSC$7358_urlWithoutToken=G;x=NC$(this.context);if(x===void 0)throw Error();this.wrappedBeacon=new x(Nnk(this),{})},Nnk=function(x){x=x.JSC$7358_urlWithoutToken;
return(x.slice(-1)[0]==="&"?x:x+"&")+"pbapi=1"};
Im.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
Im.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
Im.prototype.setHeader=function(){};
_.Nq.Object.defineProperties(Im.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7358_urlWithoutToken},
set:function(x){this.JSC$7358_urlWithoutToken=x;this.wrappedBeacon.setURL(Nnk(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(x){if(x!=="GET")throw new DF;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var vCh=function(x){this.context=x};
vCh.prototype.isSupported=function(x){if((x==null?0:x.attributionEnabled)||(x==null?void 0:x.beaconMethod)==="GET"||(x==null?0:x.customHeaders)||(x==null?0:x.customBody)||(x==null?0:x.keepAlive))return!1;var G;return!om(this.context)&&((G=this.context.global.navigator)==null?void 0:G.sendBeacon)!==void 0};
vCh.prototype.ping=function(){var x=this;return ez(_.rC.apply(0,arguments).map(function(G){var D;return(D=x.context.global.navigator)==null?void 0:D.sendBeacon(G)}).every(function(G){return G}))};
vCh.prototype.pingWithHeadersAndBody=function(x,G,D){this.ping.apply(this,_.B5(_.rC.apply(3,arguments)))};var yx=function(x){this.value=x},w0=function(x,G){return ez(x.value).pipe(ah(G))},f2=new yx(!1),rEE=new yx(!0);var AO=function(x){this.value=x;this.releasedSubject=new K2};
AO.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.Nq.Object.defineProperties(AO.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7371_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var zGL=["FRAME","IMG","IFRAME"],EYf=/^[01](px)?$/,KV3=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},D1$=function(){var x=new KV3;
x.crossDomainLoadedDefault=!0;x.pendingImagesBlockLoad=!0;return x};var JQo=function(x,G){var D=WVn(x);if(D)if(D.onCreativeLoad)D.onCreativeLoad(G);else{var K=G?[G]:[],z=function(y){for(var c=0;c<K.length;++c)try{K[c](1,y)}catch(W){}K={push:function(W){W(1,y)}}};
D.onCreativeLoad=function(y){K.push(y)};
D.setAttribute("data-creative-load-listener","");D.addEventListener("creativeLoad",function(y){z(y.detail)});
_.Df.addEventListener("message",function(y){T4C(D,z,y)})}};var jw=function(x,G){var D=this;this.global=x;this.parentContext=G;this.JSC$7382_onVisibilityChange=this.document?Cl(ez(!0),$R(this.document,"visibilitychange")).pipe(XF(this.parentContext.performanceMonitor,748),V6(function(){return D.getVisibilityState()}),nl()):ez("visible");
this.document?$R(this.document,"DOMContentLoaded").pipe(XF(this.parentContext.performanceMonitor,739),Sz(1)):ez(kWf("DOMContentLoaded"))},BML=function(x){return x.document!==null&&x.document.visibilityState!==void 0};
jw.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
jw.prototype.querySelector=function(x){return this.document?this.document.querySelector(x):null};
jw.prototype.querySelectorAll=function(x){return this.document?_.kC(this.document.querySelectorAll(x)):[]};
jw.prototype.elementFromPoint=function(x,G){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;x=this.document.elementFromPoint(x,G);return x===null?null:new AO(x)};
var cEn=function(x,G,D){D=D===void 0?!1:D;if(G.ref===void 0||!x.document)return ez(G).pipe(XF(x.parentContext.performanceMonitor,749));var K=new q1(1),z=function(){K.next(G)};
D||JQo(G.ref,z);aYO(G.ref,z);return K.pipe(XF(x.parentContext.performanceMonitor,749),Sz(1))};
_.Nq.Object.defineProperties(jw.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return Ih(this.global,"document")?this.global.document||null:null}}});var eGO=_.gv(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),ZlQ=_.gv(["./reach_worklet.js"]),MzQ=_.gv(["./reach_worklet.js"]),ffZ=_.gv(["./reach_worklet.html"]),tf0=_.gv(["./reach_worklet.js"]),kdZ=_.gv(["./reach_worklet.js"]);_.xS(ffZ);_.xS(tf0);_.xS(kdZ);var n2={left:0,top:0,width:0,height:0};var POu,ECq,hPJ,x0s,fT,D09,Kh8,zZJ,iI$,gNn,yk9,loJ;POu=function(x,G,D,K,z,y,c){var W="";x&&(W+=x+":");D&&(W+="//",G&&(W+=G+"@"),W+=D,K&&(W+=":"+K));z&&(W+=z);y&&(W+="?"+y);c&&(W+="#"+c);return W};
ECq=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.v6=function(x){return x.match(ECq)};
_.B1=function(x,G){return x?G?decodeURI(x):decodeURIComponent(x):x};
hPJ=function(x){x=_.v6(x)[1]||null;!x&&_.Df.self&&_.Df.self.location&&(x=_.Df.self.location.protocol.slice(0,-1));return x?x.toLowerCase():""};
_.Jm=function(x){return _.B1(_.v6(x)[3]||null,!0)};
_.c0=function(x){return _.B1(_.v6(x)[5]||null,!0)};
_.ttD=function(x){var G=x.indexOf("#");return G<0?null:x.slice(G+1)};
x0s=function(x){x=_.v6(x);return POu(x[1],x[2],x[3],x[4])};
_.G7Z=function(x){x=_.v6(x);return POu(x[1],null,x[3],x[4])};
_.Sq=function(x){x=_.v6(x);return POu(null,null,null,null,x[5],x[6],x[7])};
_.Np=function(x){var G=x.indexOf("#");return G<0?x:x.slice(0,G)};
fT=function(x,G){x=_.v6(x);G=_.v6(G);return x[3]==G[3]&&x[1]==G[1]&&x[4]==G[4]};
D09=function(x,G){if(x){x=x.split("&");for(var D=0;D<x.length;D++){var K=x[D].indexOf("="),z=null;if(K>=0){var y=x[D].substring(0,K);z=x[D].substring(K+1)}else y=x[D];G(y,z?kT(z):"")}}};
Kh8=function(x){var G=x.indexOf("#");G<0&&(G=x.length);var D=x.indexOf("?");if(D<0||D>G){D=G;var K=""}else K=x.substring(D+1,G);return[x.slice(0,D),K,x.slice(G)]};
zZJ=function(x,G){return G?x?x+"&"+G:G:x};
_.aoZ=function(x,G){if(!G)return x;x=Kh8(x);x[1]=zZJ(x[1],G);return x[0]+(x[1]?"?"+x[1]:"")+x[2]};
_.o8q=function(x,G,D){if(Array.isArray(G))for(var K=0;K<G.length;K++)_.o8q(x,String(G[K]),D);else G!=null&&D.push(x+(G===""?"":"="+_.gT(G)))};
_.W0=function(x){var G=[],D;for(D in x)_.o8q(D,x[D],G);return G.join("&")};
_.Nh=function(x,G){G=_.W0(G);return _.aoZ(x,G)};
_.Ox=function(x,G,D){D=D!=null?"="+_.gT(D):"";return _.aoZ(x,G+D)};
iI$=function(x,G,D,K){for(var z=D.length;(G=x.indexOf(D,G))>=0&&G<K;){var y=x.charCodeAt(G-1);if(y==38||y==63)if(y=x.charCodeAt(G+z),!y||y==61||y==38||y==35)return G;G+=z+1}return-1};
gNn=/#|$/;_.uP=function(x,G){var D=x.search(gNn),K=iI$(x,0,G,D);if(K<0)return null;var z=x.indexOf("&",K);if(z<0||z>D)z=D;K+=G.length+1;return kT(x.slice(K,z!==-1?z:0))};
yk9=/[?&]($|#)/;_.J$=function(x,G){for(var D=x.search(gNn),K=0,z,y=[];(z=iI$(x,K,G,D))>=0;)y.push(x.substring(K,z)),K=Math.min(x.indexOf("&",z)+1||D,D);y.push(x.slice(K));return y.join("").replace(yk9,"$1")};
_.U9=function(x,G,D){return _.Ox(_.J$(x,G),G,D)};
loJ=function(x){var G=Kh8(window.location.href),D=G[1],K=[];D&&D.split("&").forEach(function(z){var y=z.indexOf("=");y=y>=0?z.slice(0,y):z;x.hasOwnProperty(y)||K.push(z)});
G[1]=zZJ(K.join("&"),_.W0(x));return G[0]+(G[1]?"?"+G[1]:"")+G[2]};var U1L=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(U1L,_.SX);U1L.prototype.getVersion=function(){return _.rP(this,2)};var A1f=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(A1f,_.SX);var FVf=function(x,G){return _.Z_(x,2,G)},X5h=function(x,G){return _.Z_(x,3,G)};
A1f.prototype.getModel=function(){return _.rP(this,4)};
var IYQ=function(x,G){return _.Z_(x,4,G)},$1V=function(x,G){return _.Z_(x,5,G)},OlP=function(x,G){return _.Z_(x,9,G)},HlV=function(x,G){return Zh(x,10,G)},m1f=function(x,G){return _.aK(x,11,G)},CXh=function(x,G){return _.Z_(x,1,G)},j0O=function(x,G){return _.aK(x,7,G)};var s0n="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var JO=function(x,G,D,K){x=x===void 0?window:x;G=G===void 0?null:G;D=D===void 0?new FlO:D;K=K===void 0?Q0E():K;VNL.call(this);var z=this;this.global=x;this.debugChannel=G;this.performanceMonitor=D;this.onPageHide=mV(function(){return $R(z.global,"pagehide")}).pipe(XF(this.performanceMonitor,941));
this.onLoad=mV(function(){return $R(z.global,"load")}).pipe(XF(this.performanceMonitor,738),Sz(1));
this.onResize=mV(function(){return $R(z.global,"resize")}).pipe(XF(this.performanceMonitor,741));
this.onMessage=mV(function(){return $R(z.global,"message")}).pipe(XF(this.performanceMonitor,740));
this.document=new jw(this.global,this);this.timeProvider=new YU3(new Hc$(this.intrinsicFunctionNamespace,this.performanceMonitor),new mmf(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new Bd$(new FoO(this),new wLZ(this),new KX(this,new j$O(this)),new KX(this,new vCh(this)),new KX(this,new CX(this)))};
_.m(JO,VNL);var om=function(x){var G=x.global;return!!x.global.HTMLFencedFrameElement&&!!G.fence&&typeof G.fence.reportEvent==="function"};
_.a=JO.prototype;_.a.reportFencedFrameEvent=function(x){om(this)&&this.global.fence.reportEvent(x)};
_.a.getOnBackgrounded=function(){return this.onPageHide.pipe(XF(this.performanceMonitor,942),ah(this.queue),V6(function(){}))};
_.a.postMessage=function(x,G,D){D=D===void 0?[]:D;this.global.postMessage(x,G,D)};
_.a.getWidth=function(){return vu(this.global)?this.global.width:0};
_.a.getHeight=function(){return vu(this.global)?this.global.height:0};
_.a.isMobile=function(){return XrV()||AbE()};
var Ua=function(x,G){try{var D=LVh(G,x.global,x.isMobile());return{left:D.left,top:D.top,width:D.getWidth(),height:D.getHeight()}}catch(K){return n2}};
JO.prototype.validate=function(){var x=this.beaconFactory.isSupported()||om(this);return this.global&&this.timeProvider.available()&&x};
var J_C=function(x){return(x=SsL(x.global))?DY(x):null};
_.Nq.Object.defineProperties(JO.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(x){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!vu(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}}});_.ckJ=!_.E$&&!_.Xh();var sKQ=function(x){return x};var myP=function(x){return x.pipe(I0(function(G){var D=G.endOfSessionReason;var K;return((K=G.viewable)==null?void 0:K.extrapolateToNow().value)||D!=void 0}),Sz(1),Us())};var w5E=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},qsf=function(x){var G=x.sequenceNumber.toString(10).padStart(2,"0");
G=""+x.startTime+G;x.sequenceNumber<99&&x.sequenceNumber++;return G};var LWC=kY(kR(function(x){return x.endOfSessionReason===void 0}),V6(function(x){return Object.assign({},x,{timestamps:p2(x)})}),I0(function(x){var G=x.viewable;
x=x.timestamps;var D;return(D=G==null?void 0:G.extrapolateUsingTimestampMap(x).value)!=null?D:!1}),V6(function(x){var G=x.beaconFactory;
var D=x.timestampedExposureHistory;var K=x.timeOnScreen;var z=x.binaryContext;x=x.timestamps;if(G===void 0||D===void 0||K===void 0||z===void 0)return!1;if(K.extrapolateUsingTimestampMap(x).value.every(function(y){return y>=0}))return!0;
D=D.map(function(y){return y.timestamp+":"+y.value}).join(",");
K=L2({bin:z,tos:K},x);G.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+K+("&eh="+D)).sendNow();return!0}),kR(function(x){return!x}),Us());var vRD=function(x){return{id:x.pingId,mcvt:x.maxConsecutiveViewTime,p:x.creativePosition,asp:x.adSpeedPosition,tm:x.totalMeasurementTime,tu:x.totalUnviewedTime,mtos:x.maxTimeOnScreen,tos:x.timeOnScreen,v:x.binaryVersion,bin:x.binaryContext,avms:x.measurementStrategy,bs:x.browserSize,mc:x.maximumExposure,"if":x.crossDomainIframeState,vu:x.delayedImpressionJsState,app:x.inApp,mse:x.mraidError,mtop:x.mraidSituation,itpl:x.injectedTemplateId,adk:x.adKey,exk:x.awbidKey,rs:x.requestSource,la:x.isLargeAd,
cr:x.isContentRecommendationAd,uach:x.userAgentClientHints,vs:x.viewState,r:x.reasonCode,pay:x.hasCpmavUrl,co:x.clientPingOrderCounter,rst:x.adRenderStartTime,rpt:x.adRenderPeriodTime,isd:x.initialScrollDepth,lsd:x.loadedScrollDepth,context:x.errorContext,msg:x.errorMessage,stack:x.errorStack,name:x.errorName,ec:x.hasElementChanged,sfr:x.strategyFailureReasons,met:x.creativeSearchResult,wmsd:x.webMeasurementStartDiagnostic,pv:x.pageVisible,epv:x.eosPageVisible,pbe:x.inStatefulBeaconExperiment,fle:x.inFetchLaterBeaconExperiment,
vae:x.inViewableAttributionExperiment,spb:x.supportsPendingBeacon,sfl:x.supportsFetchLater,ffslot:x.isFencedFrameSlotTurtlex,reach:x.sharedStorageReachMode,io2:x.v2VisibilityBitVector,rxdbg:x.rxDebugger,omida:x.omidAppId,omidp:x.omidPartner,omidpv:x.omidPartnerVersion,omidor:x.omidOcclusionReasons,omidv:x.omidVersion,omids:x.omidSessionType,omidam:x.omidAccessMode,omidct:x.omidCreativeType,omidia:x.omidInApp,omiddc:x.omidDeviceCategory,omidlat:x.omidLastActivity,omiddit:x.omidDeviceIdleTime,qid:x.errorEscapedQueryId}};var YPP=function(x){var G=[];return x.pipe(V6(function(D){var K=D.beaconFactory,z=D.fetchBeaconFactory,y=D.timeOnScreen,c=D.timeOnScreenUrlPrefixes,W=D.payloadMapper,e=D.timeOnScreenPingId,Q=D.timeOnScreenReason,p=D.urlSerializer,V=D.viewable,L=D.hasImpressionFired,r=D.inStatefulBeaconExperiment,H=D.supportsPendingBeacon,O=D.supportsFetchLater,A=D.turtlexReportEventData;if(!D.geometryMeasurable||!L||D.maxTimeOnScreen===void 0||y===void 0||c===void 0||W===void 0||e===void 0||p===void 0||K===void 0)return!1;
if(D.isTurtlex){if(Q===void 0)return!1;c=D.reportFencedFrameEvent;if(!c)return!1;c({eventType:"active-view-time-on-screen",eventData:A!=null?A:"",destination:["buyer"]});return!0}if(!(r||O||Q))return!1;A=p2(D);var g;V=(g=V==null?void 0:V.extrapolateUsingTimestampMap(A).value)!=null?g:!1;g=p(Object.assign({},D,{pingId:e,viewState:V?4:3,reasonCode:Q!=null?Q:"u",payloadMapper:W,urlPrefixes:c}),A);if(r){for(;G.length>c.length;)D=void 0,(D=G.shift())==null||D.deactivate();g.forEach(function(f,v){v>=G.length?
G.push(K.makeBeacon(f)):G[v].url=f});
return H&&z&&Q!==void 0?(g.forEach(function(f){z.makeBeacon(f).sendNow()}),!0):Q!==void 0}if(H&&z&&Q!==void 0)return g.forEach(function(f){z.makeBeacon(f).sendNow()}),!0;
if(O&&z){for(;G.length>c.length;)H=void 0,(H=G.shift())==null||H.deactivate();var u=p(Object.assign({},D,{pingId:e,viewState:V?4:3,reasonCode:Q!=null?Q:"u",payloadMapper:W,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),A)[0];g.forEach(function(f,v){v>=G.length?G.push(K.makeBeacon(u,{endOfSession:!0})):G[v].url=u});
return Q!==void 0?(g.forEach(function(f){z.makeBeacon(f).sendNow()}),!0):Q!==void 0}return Q!==void 0?(g.forEach(function(f){K.makeBeacon(f).sendNow()}),!0):!1}),kR(function(D){return!D}),Us())};var H4$=kY(I0(function(x){return x.immediateUrlPrefixes!==void 0&&x.payloadMapper!==void 0&&x.urlSerializer!==void 0&&x.inferredPingId!==void 0&&x.beaconFactory!==void 0}),I0(function(x){return xYd(x)!==null}),ERE(function(x){return x.activeViewUnmeasurableEvent},function(x){return x.emit}),V6(function(x){if(x.isTurtlex){var G=x.reportFencedFrameEvent;
if(G){var D;G({eventType:"active-view-unmeasurable",eventData:(D=x.turtlexReportEventData)!=null?D:"",destination:["buyer"]})}}else{D=void 0;var K=xYd(x);if(K==="x"){var z,y=(z=x.geometricMeasurementErrors)!=null?z:x.contextValidationErrors;y&&(G=y.stack,D=y.message)}x.urlSerializer(Object.assign({},x,{urlPrefixes:x.immediateUrlPrefixes,payloadMapper:x.payloadMapper,pingId:x.inferredPingId,viewState:2,reasonCode:K,errorMessage:D,errorStack:G}),p2(x)).forEach(function(c){x.beaconFactory.makeBeacon(c).sendNow()})}}),
Sz(1),Us());var Gjf=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var b4$=kY(I0(function(x){return x.payloadMapper!==void 0&&x.immediateUrlPrefixes!==void 0&&x.urlSerializer!==void 0&&x.inferredPingId!==void 0&&x.beaconFactory!==void 0}),V6(function(x){return Object.assign({},x,{timestamps:p2(x)})}),I0(function(x){var G=x.viewable;
var D=x.hasImpressionFired;x=x.timestamps;var K;return!!D&&((K=G==null?void 0:G.extrapolateUsingTimestampMap(x).value)!=null?K:!1)}),ERE(function(x){return x.activeViewViewableEvent},function(x){return x.emit}),V6(function(x){var G=x.beaconFactory,D=x.turtlexReportEventData;
if(x.isTurtlex){var K=x.reportFencedFrameEvent;if(!K)return!1;K({eventType:"active-view-viewable",eventData:D!=null?D:"",destination:["buyer"]});return!0}D=x.urlSerializer(Object.assign({},x,{urlPrefixes:x.immediateUrlPrefixes,payloadMapper:x.payloadMapper,pingId:x.inferredPingId,viewState:4,reasonCode:"v"}),x.timestamps);(K=x.cpmavUrls)&&K.length>0&&x.viewUrlSerializer&&x.viewUrlSerializer(K,x).forEach(function(z){G.makeBeacon(z).sendNow()});
(K=x.viewableRelayUrls)&&K.length>0&&x.viewUrlSerializer&&x.viewUrlSerializer(K,x).forEach(function(z){G.makeBeacon(z).sendNow()});
D.forEach(function(z){G.makeBeacon(z,{attributionEnabled:x.isViewableAttributionEnabled}).sendNow()});
return!0}),kR(function(x){return!x}),Us());var qaf=V6(function(x){return[x.value.topWindowViewportExternalGeometry.width,x.value.topWindowViewportExternalGeometry.height]});var Rh=function(x,G){this.callback=x;this.options=G;this.intersectionObserverV2=this.intersectionObserverV1=null},H2n=function(x,G){G?x.intersectionObserverV2||(G=Object.assign({},x.options,{delay:100,
trackVisibility:!0}),x.intersectionObserverV2=new IntersectionObserver(x.callback,G)):x.intersectionObserverV1||(x.intersectionObserverV1=new IntersectionObserver(x.callback,x.options))},T9E=function(x,G){x=G?x.intersectionObserverV2:x.intersectionObserverV1;
if(!x)throw new bcE;return x};
Rh.prototype.observe=function(x,G){T9E(this,x).observe(G)};
Rh.prototype.unobserve=function(x,G){T9E(this,x).unobserve(G)};
Rh.prototype.disconnect=function(x){T9E(this,x).disconnect()};
Rh.prototype.takeRecords=function(x){return T9E(this,x).takeRecords()};var Oa={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:n2,topWindowViewportExternalGeometry:n2,measurementRequests:new K2,elementGeometrySourceName:"ns",elementGeometry:n2,intersectionGeometry:n2,viewportLocalAppOffset:{x:0,y:0}};var Xu3=iN(kY(V6(function(x){var G;return(G=x.exposureOverride)!=null?G:FFL(x)}),V6(function(x){return isFinite(x)?x:0}))),gSD=iN(kY(V6(function(x){var G;
return(G=x.exposureOverride)!=null?G:FFL(x)}),V6(function(x){return isFinite(x)?x:-1})));var X$=function(x,G){this.a=x;this.b=G;if(x.clock.timeline!==G.clock.timeline)throw Error();};
X$.prototype.equivalentTo=function(x){return x instanceof X$?this.a.equivalentTo(x.a)&&this.b.equivalentTo(x.b):!1};
X$.prototype.extrapolateToTime=function(x){var G=this.a.extrapolateToTime(x).value,D=this.b.extrapolateToTime(x).value;return{timestamp:x,value:[G,D]}};
_.Nq.Object.defineProperties(X$.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 x=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),G=this.a.lastMeasurement.timestamp.equals(x)?this.a.lastMeasurement.value:this.a.extrapolateToTime(x).value,D=this.b.lastMeasurement.timestamp.equals(x)?this.b.lastMeasurement.value:this.b.extrapolateToTime(x).value;return{timestamp:x,value:[G,D]}}}});var AZ=function(x,G){this.input=x;this.mapFunction=G;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
AZ.prototype.equivalentTo=function(x){return x instanceof AZ?this.input.equivalentTo(x.input)&&this.mapFunction===x.mapFunction:!1};
AZ.prototype.extrapolateToTime=function(x){x=this.input.extrapolateToTime(x);return{timestamp:x.timestamp,value:this.mapFunction(x.value)}};
_.Nq.Object.defineProperties(AZ.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var Ux=function(){};
Ux.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
Ux.prototype.extrapolateUsingTimestampMap=function(x){var G=this.clock.timeline,D,K=(D=x.get(G))!=null?D:this.clock.now();x.set(G,K);return this.extrapolateToTime(K)};
Ux.prototype.map=function(x){return new Whs(this,x)};
Ux.prototype.joinWith=function(x){return new eZu(this,x)};
var eZu=function(){X$.apply(this,arguments);this.map=Ux.prototype.map;this.joinWith=Ux.prototype.joinWith;this.extrapolateToNow=Ux.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Ux.prototype.extrapolateUsingTimestampMap};
_.m(eZu,X$);var Whs=function(){AZ.apply(this,arguments);this.map=Ux.prototype.map;this.joinWith=Ux.prototype.joinWith;this.extrapolateToNow=Ux.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Ux.prototype.extrapolateUsingTimestampMap};
_.m(Whs,AZ);var uN=function(x,G){this.lastMeasurement=G;this.extrapolateToNow=Ux.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Ux.prototype.extrapolateUsingTimestampMap;this.map=Ux.prototype.map;this.joinWith=Ux.prototype.joinWith;this.clock=x};
uN.prototype.equivalentTo=function(x){return x.active};
uN.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.Nq.Object.defineProperties(uN.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var wuO=V6(function(x){if(x.value.viewportGeometrySourceName==="omid"){if(x.value.elementGeometrySourceName==="nio")return"omio";if(x.value.elementGeometrySourceName==="geo")return"omgeo"}return x.value.elementGeometrySourceName==="geo"||x.value.elementGeometrySourceName==="nio"?x.value.viewportGeometrySourceName:x.value.elementGeometrySourceName});var I_D=kY(I0(function(x){return!isNaN(x)}),v5(function(x,G){return isNaN(x)?G:Math.min(x,G)},NaN),nl());var AOP=iN(kY(V6(function(x){return x.intersectionGeometry.width*x.intersectionGeometry.height/(x.exposedViewportLocalGeometry.width*x.exposedViewportLocalGeometry.height)}),V6(function(x){return isFinite(x)?Math.min(1,x):0})));var dYP=kY(iN(V6(function(x){x=x.exposureOverride?x.elementGeometry.width*x.elementGeometry.height*x.exposureOverride/(x.topWindowViewportExternalGeometry.width*x.topWindowViewportExternalGeometry.height):x.intersectionGeometry.width*x.intersectionGeometry.height/(x.topWindowViewportExternalGeometry.width*x.topWindowViewportExternalGeometry.height);return isFinite(x)?x:0})));var vS$=function(x,G){var D=this;this.timeProvider=x;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=G.pipe(nl()).subscribe(function(K){NY(D);D.measurementRequestObserver=K})},f_O=function(x,G){NY(x);
x.lastMeasurementRequest=x.timeProvider.setTimeout(function(){var D;return void((D=x.measurementRequestObserver)==null?void 0:D.next())},G)},NY=function(x){x.lastMeasurementRequest!==null&&x.timeProvider.clearTimeout(x.lastMeasurementRequest);
x.lastMeasurementRequest=null};
vS$.prototype.dispose=function(){NY(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var Zuu=function(){};var QKO=function(x,G){this.context=x;this.strategies=G};
_.m(QKO,Zuu);QKO.prototype.buildGeometrySource=function(x,G){var D=this.strategies.map(function(y){return y.buildGeometrySource(x,G)}),K=h53(D.map(function(y){return y.geometrySource})),z=K.capturedErrors.pipe(MZo());
return{geometrySource:K.chain.pipe(ah(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:z,strategyErrors:K.capturedErrors}].concat(_.B5(D.map(function(y){return y.additionalOutputs}))))}};
var MZo=function(){return v5(function(x,G){G instanceof r0?x.push(G.measurementStrategyFailureReason):x.push(-1);return x},[])};var VB3=function(x,G){this.context=x;this.poller=G};
_.m(VB3,Zuu);VB3.prototype.buildGeometrySource=function(x,G){var D=xyV(DyQ(this.context,this.poller),MiL(this.context,G.requestSource));return{geometrySource:ES3(x.measurableCreative.pipe(D),G.inApp),additionalOutputs:{}}};var pZD=function(x,G,D){D=D===void 0?B03(x,G):D;this.context=x;this.intersectionObserverStrategy=D};
_.m(pZD,Zuu);pZD.prototype.buildGeometrySource=function(x,G){var D=this.intersectionObserverStrategy(G.useV2);return{geometrySource:ES3(x.measurableCreative.pipe(D,rOh(this.context)),G.inApp),additionalOutputs:{}}};var Qsh=function(x,G,D){var K=K===void 0?Symbol():K;this.element=x;this.immediateUrls=G;this.timeOnScreenUrls=D;this.symbol=K};var qY=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),yEC=Object.freeze([1,.75,qY.exposureThreshold,qY.largeAdExposureThreshold,0]);var c8E=function(x,G){G=G===void 0?36E5:G;var D=D===void 0?!0:D;this.creatives=new K2;this.elementsToUnregister=new K2;this.elementMap=new Map;var K=new JO(window,null);K.beaconFactory=new KX(K,new CX(K));MBD(K,this.creatives,this.elementsToUnregister,x,G,D).subscribe()},eYL=function(x,G,D,K){if(!x.elementMap.has(G)){var z=new AO(G);
x.elementMap.set(G,z);x.creatives.next(new Qsh(z,D,K))}},Wtn=function(x,G){x.elementsToUnregister.next(G);
var D=x.elementMap.get(G);D!==void 0&&(D.release(),x.elementMap.delete(G))};var eS3=function(x){var G=x.url;x=x.uaDataValues;this.JSC$7487_url_=G;this.uaDataValues_=x;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var D=/[?&]([^&=]+)=([^&]*)/g;x=D.exec(G);)this.urlParamValues_[x[1]]=x[2]},ZtL=function(x){x=x.uaDataValues_;
if(!x)return"";var G=tO("uap",x.platform)+tO("uapv",x.platformVersion)+tO("uafv",x.uaFullVersion)+tO("uaa",x.architecture)+tO("uam",x.model)+tO("uab",x.bitness);x.fullVersionList&&(G+="&uafvl="+encodeURIComponent(x.fullVersionList.map(function(D){return encodeURIComponent(D.brand)+";"+encodeURIComponent(D.version)}).join("|")));
x.wow64!=null&&(G+="&uaw="+Number(x.wow64));return G.slice(1)};var Rm=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Rm,_.SX);Rm.prototype.getId=function(){return _.rP(this,1)};
Rm.prototype.setId=function(x){return _.NX(this,1,x)};var Sw=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Sw,_.SX);Sw.prototype.getSeconds=function(){return Lr(this,1)};
Sw.prototype.setSeconds=function(x){return _.Y0(this,1,Oc(x),"0")};_.OH=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(_.OH,_.SX);_.OH.prototype.getSeconds=function(){return Lr(this,1)};
_.OH.prototype.setSeconds=function(x){return _.Y0(this,1,Oc(x),"0")};
_.ps9=function(x){var G=Number(Yp(x,1));x=_.GH(x,2);return new Date(G*1E3+x/1E6)};var nX=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(nX,_.SX);nX.prototype.getUrl=function(){return _.rP(this,1)};
nX.prototype.setUrl=function(x){return _.NX(this,1,x)};
nX.prototype.getHeight=function(){return _.GH(this,2)};
nX.prototype.getWidth=function(){return _.GH(this,3)};var id=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(id,_.SX);id.prototype.getAspectRatio=function(){return BV(this,1)};
id.prototype.setAspectRatio=function(x){return _.Y0(this,1,_.cY(x),0)};
id.prototype.getDuration=function(){return _.hv(this,Sw,2)};var VZk=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(VZk,_.SX);var buJ=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(buJ,_.SX);var Lhu=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Lhu,_.SX);var B97=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(B97,_.SX);var rkJ=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(rkJ,_.SX);var sss=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(sss,_.SX);var YEJ=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(YEJ,_.SX);var m0Z=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(m0Z,_.SX);var Hu7=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Hu7,_.SX);var gg=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(gg,_.SX);var ud=[2,4,5,6,7];var $07=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m($07,_.SX);var pr=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(pr,_.SX);_.a=pr.prototype;_.a.getId=function(){return _.hv(this,Rm,1)};
_.a.setId=function(x){return _.GW(this,1,x)};
_.a.getName=function(){return _.rP(this,2)};
_.a.setDescription=function(x){return _.NX(this,3,x)};
_.a.getUrl=function(){return _.rP(this,8)};
_.a.setUrl=function(x){return _.NX(this,8,x)};
var dg=function(x){return _.hO(x,nX,10,_.xa())};
pr.prototype.getOwner=function(x){var G=_.Lm(this,40,_.gb,3,!0);iq(G,x);return G[x]};
pr.prototype.getVersion=function(){return Lr(this,45)};
var wg=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(wg,_.SX);_.Fh0=[0,QaO,VaO];_.Cqi=[0,QaO,VaO];var Io7=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Io7,_.SX);var q2=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(q2,_.SX);q2.prototype.getStatus=function(){return _.sk(this,1)};
q2.prototype.removeItem=function(x){return X7E(this,2,x)};var jss=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(jss,_.SX);jss.prototype.getName=function(){return _.rP(this,8)};var N2=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(N2,_.SX);N2.prototype.getCommand=function(){return _.sk(this,1)};
N2.prototype.getSource=function(){return _.hv(this,jss,2)};
N2.prototype.setVisible=function(x){return _.mb(this,5,x)};
N2.prototype.removeItem=function(x){return X7E(this,7,x)};var Ou9=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Ou9,_.SX);Ou9.prototype.getCommand=function(){return _.sk(this,1)};
Ou9.prototype.removeItem=function(x){return X7E(this,4,x)};
var Xs0=_.hg(Ou9);var v_=function(x,G,D){D=D===void 0?Error():D;var K=Error.call(this);this.message=K.message;"stack"in K&&(this.stack=K.stack);this.code=x;G+=":";D instanceof Error?(this.message=G+D.message,this.stack=D.stack||""):(this.message=G+String(D),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.m(v_,Error);_.Ya=function(){this.JSC$7545_disposed_=this.JSC$7545_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.Ya.prototype.JSC$7545_disposed_=!1;_.Ya.prototype.isDisposed=function(){return this.JSC$7545_disposed_};
_.Ya.prototype.dispose=function(){this.JSC$7545_disposed_||(this.JSC$7545_disposed_=!0,this.disposeInternal())};
_.Ya.prototype[Symbol.dispose]=function(){this.dispose()};
_.WZ=function(x,G){x.addOnDisposeCallback(_.Zq(_.kS,G))};
_.Ya.prototype.addOnDisposeCallback=function(x,G){this.JSC$7545_disposed_?G!==void 0?x.call(G):x():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),G&&(x=x.bind(G)),this.onDisposeCallbacks_.push(x))};
_.Ya.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var JZ=function(x){_.Ya.call(this);this.wpc=x};
_.m(JZ,_.Ya);JZ.prototype.dKI=function(){return this.wpc.f()};
JZ.prototype.rmh=function(x){return this.wpc.c(x)};
JZ.prototype.di=function(x){return this.wpc.m(jKf(x))};
JZ.prototype.i4=function(x){return this.wpc.mws(jKf(x))};
var Ea=function(x){_.Ya.call(this);var G=this;this.hf=x;this.yvW="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.wgh=void 0;this.vcI=this.hf.p;this.fcI=this.s71.bind(this);this.addOnDisposeCallback(function(){return void AkZ(G)})};
_.m(Ea,_.Ya);var U0s=function(x){var G;return _.T(function(D){if(D.nextAddress==1){if(!x.hf.wpc)throw new v_(30,"NWA");return x.ajo?D.return(x.ajo):_.Z(D,x.hf.wpc(),2)}G=D.yieldResult;x.ajo=new JZ(G);return D.return(x.ajo)})};
Ea.prototype.snapshot=function(x){return this.hf.s(Object.assign({},x.vA&&{c:x.vA},x.r4g&&{s:x.r4g},x.gAn!==void 0&&{p:x.gAn}))};
Ea.prototype.s71=function(x){this.hf.e(x)};
Ea.prototype.hNc=function(x,G){return this.hf.c(x,G,!1)};
var AkZ=function(x){x.wgh!==void 0&&(x.yvW.forEach(function(G){var D;(D=x.wgh)==null||D.removeEventListener(G,x.fcI)}),x.wgh=void 0)};
Ea.prototype.hZ1=function(){return this.hf.l()};var RZi,fX=function(){_.Ya.apply(this,arguments);this.k63=1;this[RZi]=this.dispose};
_.m(fX,_.Ya);fX.prototype.share=function(){if(this.isDisposed())throw Error("ta");this.k63++;return this};
fX.prototype.dispose=function(){--this.k63||_.Ya.prototype.dispose.call(this)};
RZi=Symbol.dispose;var PPf=function(x){this.rju=x;x.addNewEventMetric("/client_streamz/bg/frs",_.zH("mk"))};
PPf.prototype.record=function(x,G){this.rju.record("/client_streamz/bg/frs",x,G)};
var GCC=function(x){this.wAa=x;x.addNewEventMetric("/client_streamz/bg/wrl",_.zH("mn"),K4("ac"),K4("sc"),_.zH("rk"),_.zH("mk"))};
GCC.prototype.record=function(x,G,D,K,z,y){this.wAa.record("/client_streamz/bg/wrl",x,G,D,K,z,y)};
var hCO=function(x){this.tgV=x;x.addNewCounter("/client_streamz/bg/ec",_.zH("en"),_.zH("mk"))};
hCO.prototype.increment=function(x,G){this.tgV.JSC$7798_incrementCounter("/client_streamz/bg/ec",x,G)};
var xuL=function(x){this.jdh=x;x.addNewEventMetric("/client_streamz/bg/el",_.zH("en"),_.zH("mk"))};
xuL.prototype.record=function(x,G,D){this.jdh.record("/client_streamz/bg/el",x,G,D)};
var Ea$=function(x){this.sdf=x;x.addNewCounter("/client_streamz/bg/cec",K4("ec"),_.zH("mk"))};
Ea$.prototype.increment=function(x,G){this.sdf.JSC$7798_incrementCounter("/client_streamz/bg/cec",x,G)};
var Duh=function(x){this.dSI=x;x.addNewCounter("/client_streamz/bg/po/csc",K4("cs"),_.zH("mk"))};
Duh.prototype.increment=function(x,G){this.dSI.JSC$7798_incrementCounter("/client_streamz/bg/po/csc",x,G)};
var KG$=function(x){this.xSE=x;x.addNewCounter("/client_streamz/bg/po/ctav",_.zH("av"),_.zH("mk"))};
KG$.prototype.increment=function(x,G){this.xSE.JSC$7798_incrementCounter("/client_streamz/bg/po/ctav",x,G)};
var zFQ=function(x){this.bAf=x;x.addNewCounter("/client_streamz/bg/po/cwsc",_.zH("su"),_.zH("mk"))};
zFQ.prototype.increment=function(x,G){this.bAf.JSC$7798_incrementCounter("/client_streamz/bg/po/cwsc",x,G)};var ISC=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(ISC,_.SX);var C1L=function(x,G){return _.s_(x,3,G,PO$)};var SEE=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(SEE,_.SX);var n88=[1,2,3];var iu7=[0,n88,_.saQ,bDV,rYn];var g8Z=[0,_.ir,[0,egf,_.Ae]];var uiJ=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(uiJ,_.SX);var d07=[1,2,3];var wsk=[0,d07,pKn,ZDP,_.gP,g8Z];var qEq=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(qEq,_.SX);var N9s=[0,_.ir,iu7,wsk];var v8s=[0,_.nr];var Jks=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Jks,_.SX);var fok=[0,_.nr,-1,_.SI];var tZZ=[0,_.nr,-1,_.Uk,_.SI];var k79=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(k79,_.SX);var Pqi=[1,2,3];var E87=[0,Pqi,_.gP,fok,_.gP,tZZ,_.gP,v8s];var hZ9=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(hZ9,_.SX);hZ9.prototype.JSC$7618_serializeBinary=G4E([0,_.nr,E87,YFf,_.ir,N9s,L6P,BfC]);var xku=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(xku,_.SX);var KfZ=function(x){var G=new hZ9;G=_.Z_(G,1,x.JSC$7734_metricName);var D=G8i(x);G=_.s_(G,3,D,_.Sx);D=[];for(var K=[],z=_.l(x.cellMap.keys()),y=z.next();!y.done;y=z.next())K.push(y.value.split(","));for(z=0;z<K.length;z++){y=K[z];for(var c=x.cellType,W=x.getCells(y)||[],e=[],Q=0;Q<W.length;Q++){var p=W[Q],V=p&&p.cellValue;p=new uiJ;switch(c){case 3:V=Number(V);Number.isFinite(V)&&Ww(p,1,d07,Oc(V));break;case 2:Ww(p,2,d07,_.cY(Number(V)))}e.push(p)}c=e;for(W=0;W<c.length;W++){e=c[W];Q=new qEq;e=_.GW(Q,
2,e);Q=[];p=Dks(x);for(V=0;V<p.length;V++){var L=p[V],r=y[V],H=new SEE;switch(L){case 3:Ww(H,1,n88,iC(String(r)));break;case 2:L=Number(r);Number.isFinite(L)&&Ww(H,2,n88,_.Yi(L));break;case 1:Ww(H,3,n88,fff(r==="true"))}Q.push(H)}Zh(e,1,Q);D.push(e)}}Zh(G,4,D);return G};var z4E=function(x){if(!x)return"";if(/^about:(?:blank|srcdoc)$/.test(x))return window.origin||"";x.indexOf("blob:")===0&&(x=x.substring(5));x=x.split("#")[0].split("?")[0];x=x.toLowerCase();x.indexOf("//")==0&&(x=window.location.protocol+x);/^[\w\-]*:\/\//.test(x)||(x=window.location.href);var G=x.substring(x.indexOf("://")+3),D=G.indexOf("/");D!=-1&&(G=G.substring(0,D));D=x.substring(0,x.indexOf("://"));if(!D)throw Error("ua`"+x);if(D!=="http"&&D!=="https"&&D!=="chrome-extension"&&D!=="moz-extension"&&
D!=="file"&&D!=="android-app"&&D!=="chrome-search"&&D!=="chrome-untrusted"&&D!=="chrome"&&D!=="app"&&D!=="devtools")throw Error("va`"+D);x="";var K=G.indexOf(":");if(K!=-1){var z=G.substring(K+1);G=G.substring(0,K);if(D==="http"&&z!=="80"||D==="https"&&z!=="443")x=":"+z}return D+"://"+G+x};var oiq=function(x,G,D){var K=String(_.Df.location.href);return K&&x&&G?[G,acs(z4E(K),x,D||null)].join(" "):null},acs=function(x,G,D){var K=[],z=[];
if((Array.isArray(D)?2:1)==1)return z=[G,x],_.uM(K,function(W){z.push(W)}),y6s(z.join(" "));
var y=[],c=[];_.uM(D,function(W){c.push(W.key);y.push(W.value)});
D=Math.floor((new Date).getTime()/1E3);z=y.length==0?[D,G,x]:[y.join(":"),D,G,x];_.uM(K,function(W){z.push(W)});
x=y6s(z.join(" "));x=[D,x];c.length==0||x.push(c.join(""));return x.join("_")},y6s=function(x){var G=i4f();
G.update(x);return G.digestString().toLowerCase()};var tZ=function(x){this.JSC$7629_document_=x||{cookie:""}},lc9;
_.a=tZ.prototype;_.a.isEnabled=function(){if(!_.Df.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};
_.a.set=function(x,G,D){var K=!1;if(typeof D==="object"){var z=D.sameSite;K=D.secure||!1;var y=D.domain||void 0;var c=D.path||void 0;var W=D.maxAge}if(/[;=\s]/.test(x))throw Error("wa`"+x);if(/[;\r\n]/.test(G))throw Error("xa`"+G);W===void 0&&(W=-1);D=y?";domain="+y:"";c=c?";path="+c:"";K=K?";secure":"";W=W<0?"":W==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+W*1E3)).toUTCString();this.JSC$7629_document_.cookie=x+"="+G+D+c+W+K+(z!=null?";samesite="+z:"")};
_.a.get=function(x,G){for(var D=x+"=",K=(this.JSC$7629_document_.cookie||"").split(";"),z=0,y;z<K.length;z++){y=Zf(K[z]);if(y.lastIndexOf(D,0)==0)return y.slice(D.length);if(y==x)return""}return G};
_.a.remove=function(x,G,D){var K=this.containsKey(x);this.set(x,"",{maxAge:0,path:G,domain:D});return K};
_.a.getKeys=function(){return lc9(this).keys};
_.a.getValues=function(){return lc9(this).values};
_.a.isEmpty=function(){return!this.JSC$7629_document_.cookie};
_.a.getCount=function(){return this.JSC$7629_document_.cookie?(this.JSC$7629_document_.cookie||"").split(";").length:0};
_.a.containsKey=function(x){return this.get(x)!==void 0};
_.a.containsValue=function(x){for(var G=lc9(this).values,D=0;D<G.length;D++)if(G[D]==x)return!0;return!1};
_.a.clear=function(){for(var x=lc9(this).keys,G=x.length-1;G>=0;G--)this.remove(x[G])};
lc9=function(x){x=(x.JSC$7629_document_.cookie||"").split(";");for(var G=[],D=[],K,z,y=0;y<x.length;y++)z=Zf(x[y]),K=z.indexOf("="),K==-1?(G.push(""),D.push(z)):(G.push(z.substring(0,K)),D.push(z.substring(K+1)));return{keys:G,values:D}};
_.MU=new tZ(typeof document=="undefined"?null:document);var k2D=function(){var x=_.Df.__SAPISID||_.Df.__APISID||_.Df.__3PSAPISID||_.Df.__1PSAPISID||_.Df.__OVERRIDE_SID;if(x)return!0;typeof document!=="undefined"&&(x=new tZ(document),x=x.get("SAPISID")||x.get("APISID")||x.get("__Secure-3PAPISID")||x.get("__Secure-1PAPISID"));return!!x},c6s=function(x,G,D,K){(x=_.Df[x])||typeof document==="undefined"||(x=(new tZ(document)).get(G));
return x?oiq(x,D,K):null},dWP=function(x){var G=z4E(_.Df==null?void 0:_.Df.location.href),D=[];
if(k2D()){G=G.indexOf("https:")==0||G.indexOf("chrome-extension:")==0||G.indexOf("chrome-untrusted://new-tab-page")==0||G.indexOf("moz-extension:")==0;var K=G?_.Df.__SAPISID:_.Df.__APISID;K||typeof document==="undefined"||(K=new tZ(document),K=K.get(G?"SAPISID":"APISID")||K.get("__Secure-3PAPISID"));(K=K?oiq(K,G?"SAPISIDHASH":"APISIDHASH",x):null)&&D.push(K);G&&((G=c6s("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",x))&&D.push(G),(x=c6s("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",x))&&D.push(x))}return D.length==
0?null:D.join(" ")};var Tb0=function(){this.minSize=1024};
Tb0.prototype.compress=function(x){var G,D,K,z;return _.T(function(y){switch(y.nextAddress){case 1:return G=new CompressionStream("gzip"),D=(new Response(G.readable)).arrayBuffer(),K=G.writable.getWriter(),_.Z(y,K.write((new TextEncoder).encode(x)),2);case 2:return _.Z(y,K.close(),3);case 3:return z=Uint8Array,_.Z(y,D,4);case 4:return y.return(new z(y.yieldResult))}})};
Tb0.prototype.isSupported=function(x){return x<this.minSize?!1:typeof CompressionStream!=="undefined"};var Wfh=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Wfh,_.SX);var k2=function(x,G){this.intervalMs=x;this.callback=G;this.enabled=!1;this.nowFn=function(){return _.f6()};
this.lastTimeMs=this.nowFn()};
k2.prototype.setInterval=function(x){this.intervalMs=x;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
k2.prototype.start=function(){var x=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){x.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
k2.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
k2.prototype.tick=function(){var x=this;if(this.enabled){var G=Math.max(this.nowFn()-this.lastTimeMs,0);G<this.intervalMs*.8?this.timer=setTimeout(function(){x.tick()},this.intervalMs-G):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var e4E=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(e4E,_.SX);var ZfE=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(ZfE,_.SX);var Mxh=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Mxh,_.SX);Mxh.prototype.getTransmissionType=function(){return _.sk(this,1)};var wZV=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(wZV,_.SX);wZV.prototype.getVersion=function(){return _.rP(this,2)};var P_=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(P_,_.SX);var dyL=function(x){Zh(oK,1,x)};
P_.prototype.getModel=function(){return _.rP(this,6)};
var QTi=_.hg(P_);var pYs=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(pYs,_.SX);var gaC=["platform","platformVersion","architecture","model","uaFullVersion"],oK=new P_,ukh=null;var Vx7=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Vx7,_.SX);var bfq=function(x){return _.xW(x,1,1)};var Lfq=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x,4)};
_.m(Lfq,_.SX);_.Ex=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x,36)};
_.m(_.Ex,_.SX);_.Ex.prototype.getExperimentIds=function(){return _.hv(this,Wfh,16)};var Bbi=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x,19)};
_.m(Bbi,_.SX);Bbi.prototype.setLogSource=function(x){return _.xW(this,2,x)};
Bbi.prototype.setScheduler=function(x){return _.xW(this,10,x)};var sT7=function(x,G){this.isServiceWorkerScope=G=G===void 0?!1:G;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new Bbi;Number.isInteger(x)&&this.logRequest.setLogSource(x);G||(this.locale=document.documentElement.getAttribute("lang"));r6E(this,new Vx7)};
sT7.prototype.setLogSource=function(x){this.logRequest.setLogSource(x);return this};
var r6E=function(x,G){_.GW(x.logRequest,1,G);_.sk(G,1)||bfq(G);x.isServiceWorkerScope||(G=hZ(x),_.rP(G,5)||_.Z_(G,5,x.locale));x.uach&&(G=hZ(x),_.hv(G,P_,9)||_.GW(G,9,x.uach))},Yco=function(x,G){x.transmissionType=G},mki=function(x){var G=G===void 0?gaC:G;
var D=x.isServiceWorkerScope?void 0:Fn();D?qPL(D,G).then(function(K){x.uach=QTi(K!=null?K:"[]");K=hZ(x);_.GW(K,9,x.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},hZ=function(x){x=_.hv(x.logRequest,Vx7,1);
var G=_.hv(x,pYs,11);G||(G=new pYs,_.GW(x,11,G));return G};
sT7.prototype.build=function(x,G,D,K,z,y){G=G===void 0?0:G;D=D===void 0?0:D;K=K===void 0?null:K;z=z===void 0?0:z;y=y===void 0?0:y;if(!this.isServiceWorkerScope){var c=hZ(this);var W=new Mxh;W=_.xW(W,1,this.transmissionType);W=_.aK(W,2,this.isFinal);D=_.$p(W,3,D>0?D:void 0);D=_.$p(D,4,z>0?z:void 0);D=_.$p(D,5,y>0?y:void 0);z=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;y=z[_.sE]|0;D=OE(D,y)?D:yY(D,z,y)?oS(D,z):new D.constructor(aS(z,y,!0));_.GW(c,10,D)}c=this.logRequest.clone();D=Date.now().toString();
c=_.Gu(c,4,Oc(D));x=x.slice();x=Zh(c,3,x);K&&(c=new e4E,K=_.$p(c,13,K),c=new ZfE,K=_.GW(c,2,K),c=new Lfq,K=_.GW(c,1,K),K=_.xW(K,2,9),_.GW(x,18,K));G&&_.bV(x,14,G);return x};yF.prototype.currBackoffCount_=0;yF.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
yF.prototype.getValue=function(){return this.currValue_};
var Hfq=function(x){x.currBaseValue_=Math.min(x.maxValue_,x.currBaseValue_*x.backoffFactor_);x.currValue_=Math.min(x.maxValue_,x.currBaseValue_+(x.randomFactor_?Math.round(x.randomFactor_*(Math.random()-.5)*2*x.currBaseValue_):0));x.currBackoffCount_++};var Ct3=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x,8)};
_.m(Ct3,_.SX);var $k7=_.hg(Ct3);var IaC=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(IaC,_.SX);var xh;xh=new jaf;var G2=function(x){_.Ya.call(this);var G=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7707_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$7707_sendBeaconApiEnabled=!1;this.logSource=x.logSource;this.getAuthHeaderValue=
x.getAuthHeaderValue||function(){};
this.logRequestBuilder=new sT7(x.logSource,x.isServiceWorkerScope);this.network=x.network||null;this.productID=x.productID||null;this.clearcutUrl=x.urlOverride||null;this.sessionIndex=x.sessionIndex||null;this.disableAutomaticFlush=x.disableAutomaticFlush||!1;this.logger=null;this.withCredentials=!x.disableWithCredentials;this.isServiceWorkerScope=x.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!Fn()&&!!Fn().navigator&&Fn().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(Ffs())).searchParams&&!!(new URL(Ffs())).searchParams.set;var D=bfq(new Vx7);r6E(this.logRequestBuilder,D);this.flushBackoff=new yF(1E4,3E5,.1);x=CCZ(this,x.backgroundJobDeferrer);this.JSC$7707_flushTimer=new k2(this.flushBackoff.getValue(),x);this.backupTimer=new k2(6E5,x);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){Ick(G);
var K;(K=G.metalogService)==null||K.flush()}}),document.addEventListener("pagehide",function(){Ick(G);
var K;(K=G.metalogService)==null||K.flush()}))};
_.m(G2,_.Ya);var CCZ=function(x,G){return x.isBrowserSupported?G?function(){G().then(function(){x.flush()})}:function(){x.flush()}:function(){}};
G2.prototype.disposeInternal=function(){Ick(this);this.JSC$7707_flushTimer.stop();this.backupTimer.stop();_.Ya.prototype.disposeInternal.call(this)};
var jTh=function(x){x.clearcutUrl||(x.clearcutUrl=Ffs());try{return(new URL(x.clearcutUrl)).toString()}catch(G){return(new URL(x.clearcutUrl,Fn().location.origin)).toString()}};
G2.prototype.dispatch=function(x){if(x instanceof _.Ex)this.log(x);else try{var G=new _.Ex,D=x.serialize();var K=_.Z_(G,8,D);this.log(K)}catch(z){Dz(this,4,1)}};
var Dz=function(x,G,D){x.metalogService&&x.metalogService.increment(G,D)};
G2.prototype.log=function(x){Dz(this,2,1);if(this.isBrowserSupported){x=x.clone();var G=this.sequencePosition++;x=_.bV(x,21,G);this.componentId&&_.Z_(x,26,this.componentId);G=x;if(Zu$(_.yW(G,1))==null){var D=Date.now();D=Number.isFinite(D)?D.toString():"0";_.Gu(G,1,Oc(D))}_.eZ$(_.yW(G,15))!=null||_.bV(G,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(D=this.experimentIds.clone(),_.GW(G,16,D));Dz(this,1,1);G=this.pendingEvents.length-1E3+1;G>0&&(this.pendingEvents.splice(0,G),this.numLogsDroppedSinceLastFlush+=
G,Dz(this,3,G));this.pendingEvents.push(x);this.disableAutomaticFlush||this.JSC$7707_flushTimer.enabled||this.JSC$7707_flushTimer.start()}};
G2.prototype.flush=function(x,G){var D=this;if(this.pendingEvents.length===0)x&&x();else if(this.JSC$7707_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,Ofu(this);else{var K=Date.now();if(this.noFlushUntilMs>K&&this.startWaitingMs<K)G&&G("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?Yco(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var z=this.pendingEvents.length,
y=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),c=this.getAuthHeaderValue();if(c&&this.lastFailedAuth===c)G&&G("stale-auth-token");else{this.pendingEvents=[];this.JSC$7707_flushTimer.enabled&&this.JSC$7707_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;K=y.serialize();var W;this.JSC$7707_compressor&&this.JSC$7707_compressor.isSupported(K.length)&&
(W=this.JSC$7707_compressor.compress(K));var e=XYi(this,K,c),Q=function(L){D.flushBackoff.reset();D.JSC$7707_flushTimer.setInterval(D.flushBackoff.getValue());if(L){var r=null;try{var H=JSON.stringify(JSON.parse(L.replace(")]}'\n","")));r=$k7(H)}catch(O){}r&&(L=Number(Lr(r,1,_.tk("-1"))),L>0&&(D.startWaitingMs=Date.now(),D.noFlushUntilMs=D.startWaitingMs+L),Oun(r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,xh.fieldIndex),Iod(r,xh.fieldIndex),r=xh.ctor?xh.getExtensionFn(r,xh.ctor,xh.fieldIndex,
xh.JSC$6887_hasMessageId):xh.getExtensionFn(r,xh.fieldIndex,null,xh.JSC$6887_hasMessageId),r=r===null?void 0:r)&&(r=_.GH(r,1,-1),r!==-1&&(D.flushBackoff=new yF(r<1?1:r,3E5,.1),D.JSC$7707_flushTimer.setInterval(D.flushBackoff.getValue())))}x&&x();D.numRetriesSinceLastSuccessfulFlush=0},p=function(L,r){var H=_.hO(y,_.Ex,3,_.xa());
var O=Number(Lr(y,14));Hfq(D.flushBackoff);D.JSC$7707_flushTimer.setInterval(D.flushBackoff.getValue());L===401&&c&&(D.lastFailedAuth=c);O&&(D.numLogsDroppedSinceLastFlush+=O);r===void 0&&(r=D.isRetryable(L));r&&(D.pendingEvents=H.concat(D.pendingEvents),D.disableAutomaticFlush||D.JSC$7707_flushTimer.enabled||D.JSC$7707_flushTimer.start());Dz(D,7,1);G&&G("net-send-failed",L);++D.numRetriesSinceLastSuccessfulFlush},V=function(){D.network&&D.network.send(e,Q,p)};
W?W.then(function(L){Dz(D,5,z);e.requestHeaders["Content-Encoding"]="gzip";e.requestHeaders["Content-Type"]="application/binary";e.body=L;e.bodyType=2;V()},function(){Dz(D,6,z);
V()}):V()}}}};
var XYi=function(x,G,D){D=D===void 0?null:D;var K=K===void 0?x.withCredentials:K;var z={},y=new URL(jTh(x));D&&(z.Authorization=D);x.sessionIndex&&(z["X-Goog-AuthUser"]=x.sessionIndex,y.searchParams.set("authuser",x.sessionIndex));x.pageId&&(Object.defineProperty(z,"X-Goog-PageId",{value:x.pageId}),y.searchParams.set("pageId",x.pageId));return{url:y.toString(),body:G,bodyType:1,requestHeaders:z,requestType:"POST",withCredentials:K,timeoutMillis:x.timeoutMillis}},Ick=function(x){x.logRequestBuilder.isFinal=
!0;
x.flush();x.logRequestBuilder.isFinal=!1},Ofu=function(x){A6J(x,function(G,D){G=new URL(G);
G.searchParams.set("format","json");var K=!1;try{K=Fn().navigator.sendBeacon(G.toString(),D.serialize())}catch(z){}K||(x.isSendBeaconSupported=!1);return K})},A6J=function(x,G){if(x.pendingEvents.length!==0){var D=new URL(jTh(x));
D.searchParams.delete("format");var K=x.getAuthHeaderValue();K&&D.searchParams.set("auth",K);D.searchParams.set("authuser",x.sessionIndex||"0");for(K=0;K<10&&x.pendingEvents.length;++K){var z=x.pendingEvents.slice(0,32),y=x.logRequestBuilder.build(z,x.numLogsDroppedSinceLastFlush,x.numRetriesSinceLastSuccessfulFlush,x.productID,x.persistedLogRecoveredCount,x.persistedLogExpiredCount);if(!G(D.toString(),y)){++x.numRetriesSinceLastSuccessfulFlush;break}x.numLogsDroppedSinceLastFlush=0;x.numRetriesSinceLastSuccessfulFlush=
0;x.persistedLogRecoveredCount=0;x.persistedLogExpiredCount=0;x.pendingEvents=x.pendingEvents.slice(z.length)}x.JSC$7707_flushTimer.enabled&&x.JSC$7707_flushTimer.stop()}};
G2.prototype.isRetryable=function(x){return 500<=x&&x<600||x===401||x===0};
var Ffs=function(){return"https://play.google.com/log?format=json&hasfast=true"};var Uk9=function(){this.abortSupported=typeof AbortController!=="undefined"};
Uk9.prototype.send=function(x,G,D){var K=this,z,y,c,W,e,Q,p,V,L,r;return _.T(function(H){switch(H.nextAddress){case 1:return y=(z=K.abortSupported?new AbortController:void 0)?setTimeout(function(){z.abort()},x.timeoutMillis):void 0,_.Kl(H,2,3),c=Object.assign({},{method:x.requestType,
headers:Object.assign({},x.requestHeaders)},x.body&&{body:x.body},x.withCredentials&&{credentials:"include"},{signal:x.timeoutMillis&&z?z.signal:null}),_.Z(H,fetch(x.url,c),5);case 5:W=H.yieldResult;if(W.status!==200){(e=D)==null||e(W.status);H.jumpTo(3);break}if((Q=G)==null){H.jumpTo(7);break}return _.Z(H,W.text(),8);case 8:Q(H.yieldResult);case 7:case 3:_.zA(H);clearTimeout(y);_.y6(H,0);break;case 2:p=_.lX(H);switch((V=p)==null?void 0:V.name){case "AbortError":(L=D)==null||L(408);break;default:(r=
D)==null||r(400)}H.jumpTo(3)}})};
Uk9.prototype.getTransmissionType=function(){return 4};_.TH=function(x,G){G=G===void 0?"0":G;_.Ya.call(this);this.logSource=x;this.sessionIndex=G;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7725_clearExperimentIds=this.productID=null;this.JSC$7725_sendBeaconApiEnabled=!1;this.pageId=null};
_.m(_.TH,_.Ya);var lSQ=function(x,G){x.buildLabel=G;return x},yth=function(x,G){x.network=G;
return x},FGO=function(x,G){x.JSC$7725_clearExperimentIds=G},o93=function(x){x.JSC$7725_sendBeaconApiEnabled=!0;
return x};
_.TH.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.TH.prototype.build=function(){this.network||(this.network=new Uk9);var x=new G2({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:dWP,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.WZ(this,x);if(this.buildLabel){var G=this.buildLabel,D=hZ(x.logRequestBuilder);
_.Z_(D,7,G)}x.JSC$7707_compressor=new Tb0;this.componentId&&(x.componentId=this.componentId);this.productID&&(x.productID=this.productID);this.pageId&&(x.pageId=this.pageId);this.JSC$7725_clearExperimentIds&&((D=this.JSC$7725_clearExperimentIds)?(x.experimentIds||(x.experimentIds=new Wfh),G=x.experimentIds,D=D.serialize(),_.Z_(G,4,D)):x.experimentIds&&_.Gu(x.experimentIds,4));this.JSC$7725_sendBeaconApiEnabled&&(x.JSC$7707_sendBeaconApiEnabled=x.isSendBeaconSupported);mki(x.logRequestBuilder);this.network.setLogSource&&
this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(x);return x};var jfD=function(x,G,D,K,z,y,c){x=x===void 0?-1:x;G=G===void 0?"":G;D=D===void 0?"":D;K=K===void 0?!1:K;z=z===void 0?"":z;_.Ya.call(this);this.logSource=x;this.componentId=G;y?G=y:(x=new _.TH(x,"0"),x.componentId=G,_.WZ(this,x),D!==""&&(x.destinationUrl=D),K&&(x.serviceWorkerScopeEnabled=!0),z&&lSQ(x,z),c&&yth(x,c),G=x.build());this.JSC$7729_transport=G};
_.m(jfD,_.Ya);jfD.prototype.flush=function(x){x=x||[];if(x.length){for(var G=new xku,D=[],K=0;K<x.length;K++){var z=x[K],y=KfZ(z);D.push(y);z.clear()}Zh(G,1,D);this.JSC$7729_transport.dispatch(G);this.JSC$7729_transport.flush()}};var R40=function(x){this.cellValue=x};var Kw=function(x,G,D){this.JSC$7734_metricName=x;this.cellType=G;this.fields=D||[];this.cellMap=new Map},Dks=function(x){return x.fields.map(function(G){return G.fieldType})},G8i=function(x){return x.fields.map(function(G){return G.fieldName})};
_.a=Kw.prototype;_.a.addCell=function(x){var G=_.rC.apply(1,arguments),D=this.getCells(G);D?D.push(new R40(x)):this.JSC$7734_setCell(x,G)};
_.a.JSC$7734_setCell=function(x){var G=this.JSC$7734_getKey(_.rC.apply(1,arguments));this.cellMap.set(G,[new R40(x)])};
_.a.getCells=function(){var x=this.JSC$7734_getKey(_.rC.apply(0,arguments));return this.cellMap.has(x)?this.cellMap.get(x):void 0};
_.a.getCell=function(){var x=this.getCells(_.rC.apply(0,arguments));return x&&x.length?x[0]:void 0};
_.a.clear=function(){this.cellMap.clear()};
_.a.JSC$7734_getKey=function(){var x=_.rC.apply(0,arguments);return x?x.join(","):"key"};var Scu=function(x,G){Kw.call(this,x,3,G)};
_.m(Scu,Kw);Scu.prototype.JSC$7737_incrementCounterBy=function(x){var G=_.rC.apply(1,arguments),D=0,K=this.getCell(G);K&&(D=K.cellValue);this.JSC$7734_setCell(D+x,G)};var niu=function(x,G){Kw.call(this,x,2,G)};
_.m(niu,Kw);niu.prototype.record=function(x){this.addCell(x,_.rC.apply(1,arguments))};_.z2=function(x){this.id=x};
_.z2.prototype.toString=function(){return this.id};_.aY=function(x,G){this.type=x instanceof _.z2?String(x):x;this.currentTarget=this.target=G;this.defaultPrevented=this.propagationStopped_=!1};
_.aY.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.aY.prototype.preventDefault=function(){this.defaultPrevented=!0};_.oY=function(x,G){_.aY.call(this,x?x.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;x&&this.init(x,G)};
_.tR(_.oY,_.aY);
_.oY.prototype.init=function(x,G){var D=this.type=x.type,K=x.changedTouches&&x.changedTouches.length?x.changedTouches[0]:null;this.target=x.target||x.srcElement;this.currentTarget=G;G=x.relatedTarget;G||(D=="mouseover"?G=x.fromElement:D=="mouseout"&&(G=x.toElement));this.relatedTarget=G;K?(this.clientX=K.clientX!==void 0?K.clientX:K.pageX,this.clientY=K.clientY!==void 0?K.clientY:K.pageY,this.screenX=K.screenX||0,this.screenY=K.screenY||0):(this.offsetX=_.xp||x.offsetX!==void 0?x.offsetX:x.layerX,
this.offsetY=_.xp||x.offsetY!==void 0?x.offsetY:x.layerY,this.clientX=x.clientX!==void 0?x.clientX:x.pageX,this.clientY=x.clientY!==void 0?x.clientY:x.pageY,this.screenX=x.screenX||0,this.screenY=x.screenY||0);this.button=x.button;this.keyCode=x.keyCode||0;this.key=x.key||"";this.charCode=x.charCode||(D=="keypress"?x.keyCode:0);this.ctrlKey=x.ctrlKey;this.altKey=x.altKey;this.shiftKey=x.shiftKey;this.metaKey=x.metaKey;this.pointerId=x.pointerId||0;this.pointerType=x.pointerType;this.state=x.state;
this.timeStamp=x.timeStamp;this.event_=x;x.defaultPrevented&&_.oY.superClass_.preventDefault.call(this)};
_.oY.prototype.stopPropagation=function(){_.oY.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.oY.prototype.preventDefault=function(){_.oY.superClass_.preventDefault.call(this);var x=this.event_;x.preventDefault?x.preventDefault():x.returnValue=!1};var ifs="closure_listenable_"+(Math.random()*1E6|0),yZ=function(x){return!(!x||!x[ifs])};var giu=0;var uO8=function(x,G,D,K,z){this.listener=x;this.proxy=null;this.src=G;this.type=D;this.capture=!!K;this.handler=z;this.key=++giu;this.removed=this.callOnce=!1},dku=function(x){x.removed=!0;
x.listener=null;x.proxy=null;x.src=null;x.handler=null};lP.prototype.add=function(x,G,D,K,z){var y=x.toString();x=this.listeners[y];x||(x=this.listeners[y]=[],this.typeCount_++);var c=wYs(x,G,K,z);c>-1?(G=x[c],D||(G.callOnce=!1)):(G=new uO8(G,this.src,y,!!K,z),G.callOnce=D,x.push(G));return G};
lP.prototype.remove=function(x,G,D,K){x=x.toString();if(!(x in this.listeners))return!1;var z=this.listeners[x];G=wYs(z,G,D,K);return G>-1?(dku(z[G]),_.JQ(z,G),z.length==0&&(delete this.listeners[x],this.typeCount_--),!0):!1};
var qcZ=function(x,G){var D=G.type;if(!(D in x.listeners))return!1;var K=_.f$(x.listeners[D],G);K&&(dku(G),x.listeners[D].length==0&&(delete x.listeners[D],x.typeCount_--));return K};
lP.prototype.removeAll=function(x){x=x&&x.toString();var G=0,D;for(D in this.listeners)if(!x||D==x){for(var K=this.listeners[D],z=0;z<K.length;z++)++G,dku(K[z]);delete this.listeners[D];this.typeCount_--}return G};
lP.prototype.getListener=function(x,G,D,K){x=this.listeners[x.toString()];var z=-1;x&&(z=wYs(x,G,D,K));return z>-1?x[z]:null};
lP.prototype.hasListener=function(x,G){var D=x!==void 0,K=D?x.toString():"",z=G!==void 0;return _.YS.some(this.listeners,function(y){for(var c=0;c<y.length;++c)if(!(D&&y[c].type!=K||z&&y[c].capture!=G))return!0;return!1})};
var wYs=function(x,G,D,K){for(var z=0;z<x.length;++z){var y=x[z];if(!y.removed&&y.listener==G&&y.capture==!!D&&y.handler==K)return z}return-1};var Nb7,vi9,J69,txJ,k80,Q2,pz,h4J,PC8,Eis,lv,xHZ,fcu;Nb7="closure_lm_"+(Math.random()*1E6|0);vi9={};J69=0;_.Lz=function(x,G,D,K,z){if(K&&K.once)return Q2(x,G,D,K,z);if(Array.isArray(G)){for(var y=0;y<G.length;y++)_.Lz(x,G[y],D,K,z);return null}D=fcu(D);return yZ(x)?x.listen(G,D,_.G7(K)?!!K.capture:!!K,z):txJ(x,G,D,!1,K,z)};
txJ=function(x,G,D,K,z,y){if(!G)throw Error("za");var c=_.G7(z)?!!z.capture:!!z,W=lv(x);W||(x[Nb7]=W=new lP(x));D=W.add(G,D,K,c,y);if(D.proxy)return D;K=k80();D.proxy=K;K.src=x;K.listener=D;if(x.addEventListener)_.a8C||(z=c),z===void 0&&(z=!1),x.addEventListener(G.toString(),K,z);else if(x.attachEvent)x.attachEvent(PC8(G.toString()),K);else if(x.addListener&&x.removeListener)x.addListener(K);else throw Error("Aa");J69++;return D};
k80=function(){var x=Eis,G=function(D){return x.call(G.src,G.listener,D)};
return G};
Q2=function(x,G,D,K,z){if(Array.isArray(G)){for(var y=0;y<G.length;y++)Q2(x,G[y],D,K,z);return null}D=fcu(D);return yZ(x)?x.listenOnce(G,D,_.G7(K)?!!K.capture:!!K,z):txJ(x,G,D,!0,K,z)};
_.cA=function(x,G,D,K,z){if(Array.isArray(G))for(var y=0;y<G.length;y++)_.cA(x,G[y],D,K,z);else K=_.G7(K)?!!K.capture:!!K,D=fcu(D),yZ(x)?x.unlisten(G,D,K,z):x&&(x=lv(x))&&(G=x.getListener(G,D,K,z))&&pz(G)};
pz=function(x){if(typeof x==="number"||!x||x.removed)return!1;var G=x.src;if(yZ(G))return qcZ(G.eventTargetListeners_,x);var D=x.type,K=x.proxy;G.removeEventListener?G.removeEventListener(D,K,x.capture):G.detachEvent?G.detachEvent(PC8(D),K):G.addListener&&G.removeListener&&G.removeListener(K);J69--;(D=lv(G))?(qcZ(D,x),D.typeCount_==0&&(D.src=null,G[Nb7]=null)):dku(x);return!0};
h4J=function(x,G,D,K,z){D=fcu(D);K=!!K;return yZ(x)?x.getListener(G,D,K,z):x?(x=lv(x))?x.getListener(G,D,K,z):null:null};
PC8=function(x){return x in vi9?vi9[x]:vi9[x]="on"+x};
Eis=function(x,G){if(x.removed)x=!0;else{G=new _.oY(G,this);var D=x.listener,K=x.handler||x.src;x.callOnce&&pz(x);x=D.call(K,G)}return x};
lv=function(x){x=x[Nb7];return x instanceof lP?x:null};
xHZ="__closure_events_fn_"+(Math.random()*1E9>>>0);fcu=function(x){if(typeof x==="function")return x;x[xHZ]||(x[xHZ]=function(G){return x.handleEvent(G)});
return x[xHZ]};_.T2=function(){_.Ya.call(this);this.eventTargetListeners_=new lP(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.tR(_.T2,_.Ya);_.T2.prototype[ifs]=!0;_.a=_.T2.prototype;_.a.setParentEventTarget=function(x){this.parentEventTarget_=x};
_.a.addEventListener=function(x,G,D,K){_.Lz(this,x,G,D,K)};
_.a.removeEventListener=function(x,G,D,K){_.cA(this,x,G,D,K)};
_.a.dispatchEvent=function(x){var G,D=this.parentEventTarget_;if(D)for(G=[];D;D=D.parentEventTarget_)G.push(D);D=this.actualEventTarget_;var K=x.type||x;if(typeof x==="string")x=new _.aY(x,D);else if(x instanceof _.aY)x.target=x.target||D;else{var z=x;x=new _.aY(K,D);_.YS.extend(x,z)}z=!0;var y;if(G)for(y=G.length-1;!x.propagationStopped_&&y>=0;y--){var c=x.currentTarget=G[y];z=G4h(c,K,!0,x)&&z}x.propagationStopped_||(c=x.currentTarget=D,z=G4h(c,K,!0,x)&&z,x.propagationStopped_||(z=G4h(c,K,!1,x)&&
z));if(G)for(y=0;!x.propagationStopped_&&y<G.length;y++)c=x.currentTarget=G[y],z=G4h(c,K,!1,x)&&z;return z};
_.a.disposeInternal=function(){_.T2.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.a.listen=function(x,G,D,K){return this.eventTargetListeners_.add(String(x),G,!1,D,K)};
_.a.listenOnce=function(x,G,D,K){return this.eventTargetListeners_.add(String(x),G,!0,D,K)};
_.a.unlisten=function(x,G,D,K){return this.eventTargetListeners_.remove(String(x),G,D,K)};
_.a.removeAllListeners=function(x){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(x):0};
var G4h=function(x,G,D,K){G=x.eventTargetListeners_.listeners[String(G)];if(!G)return!0;G=G.concat();for(var z=!0,y=0;y<G.length;++y){var c=G[y];if(c&&!c.removed&&c.capture==D){var W=c.listener,e=c.handler||c.src;c.callOnce&&qcZ(x.eventTargetListeners_,c);z=W.call(e,K)!==!1&&z}}return z&&!K.defaultPrevented};
_.T2.prototype.getListener=function(x,G,D,K){return this.eventTargetListeners_.getListener(String(x),G,D,K)};
_.T2.prototype.hasListener=function(x,G){return this.eventTargetListeners_.hasListener(x!==void 0?String(x):void 0,G)};var WA=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(x){return x&&AsyncContext.Snapshot.wrap(x)}:function(x){return x};var DHu=function(x,G){this.create_=x;this.reset_=G;this.occupants_=0;this.JSC$7769_head_=null};
DHu.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var x=this.JSC$7769_head_;this.JSC$7769_head_=x.next;x.next=null}else x=this.create_();return x};
DHu.prototype.put=function(x){this.reset_(x);this.occupants_<100&&(this.occupants_++,x.next=this.JSC$7769_head_,this.JSC$7769_head_=x)};var Kzs=function(){this.workTail_=this.workHead_=null};
Kzs.prototype.add=function(x,G){var D=vaC.get();D.set(x,G);this.workTail_?this.workTail_.next=D:this.workHead_=D;this.workTail_=D};
Kzs.prototype.remove=function(){var x=null;this.workHead_&&(x=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),x.next=null);return x};
var vaC=new DHu(function(){return new zUi},function(x){return x.reset()}),zUi=function(){this.next=this.scope=this.fn=null};
zUi.prototype.set=function(x,G){this.fn=x;this.scope=G;this.next=null};
zUi.prototype.reset=function(){this.next=this.scope=this.fn=null};var a7u,JEd,NMf,o0k;JEd=!1;NMf=new Kzs;_.eH=function(x,G){a7u||o0k();JEd||(a7u(),JEd=!0);NMf.add(x,G)};
o0k=function(){var x=Promise.resolve(void 0);a7u=function(){x.then(fEE)}};var ygE=function(x){x.prototype.$goog_Thenable=!0},l79=function(x){if(!x)return!1;
try{return!!x.$goog_Thenable}catch(G){return!1}};var cgi,Thk,Wz7,Zmi,MXh,QSq,Lz0,sSE,$Hu,mHo,lx3;_.T1=function(x,G){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(x!=_.ld)try{var D=this;x.call(G,function(K){D.resolve_(2,K)},function(K){D.resolve_(3,K)})}catch(K){this.resolve_(3,K)}};
cgi=function(){this.next=this.context=this.JSC$7780_onRejected=this.JSC$7780_onFulfilled=this.child=null;this.always=!1};
cgi.prototype.reset=function(){this.context=this.JSC$7780_onRejected=this.JSC$7780_onFulfilled=this.child=null;this.always=!1};
Thk=new DHu(function(){return new cgi},function(x){x.reset()});
Wz7=function(x,G,D){var K=Thk.get();K.JSC$7780_onFulfilled=x;K.JSC$7780_onRejected=G;K.context=D;return K};
_.aI=function(x){if(x instanceof _.T1)return x;var G=new _.T1(_.ld);G.resolve_(2,x);return G};
_.rk=function(x){return new _.T1(function(G,D){D(x)})};
Zmi=function(x,G,D){eUZ(x,G,D,null)||_.eH(_.Zq(G,x))};
_.Zz=function(x){return new _.T1(function(G,D){var K=x.length,z=[];if(K)for(var y=function(Q,p){K--;z[Q]=p;K==0&&G(z)},c=function(Q){D(Q)},W,e=0;e<x.length;e++)W=x[e],Zmi(W,_.Zq(y,e),c);
else G(z)})};
MXh=function(x){return new _.T1(function(G){var D=x.length,K=[];if(D)for(var z=function(W,e,Q){D--;K[W]=e?{fulfilled:!0,value:Q}:{fulfilled:!1,reason:Q};D==0&&G(K)},y,c=0;c<x.length;c++)y=x[c],Zmi(y,_.Zq(z,c,!0),_.Zq(z,c,!1));
else G(K)})};
QSq=function(x){return new _.T1(function(G,D){var K=x.length,z=[];if(K)for(var y=function(Q){G(Q)},c=function(Q,p){K--;
z[Q]=p;K==0&&D(z)},W,e=0;e<x.length;e++)W=x[e],Zmi(W,y,_.Zq(c,e));
else G(void 0)})};
_.Ss=function(){var x,G,D=new _.T1(function(K,z){x=K;G=z});
return new pdE(D,x,G)};
_.T1.prototype.then=function(x,G,D){return VX8(this,WA(typeof x==="function"?x:null),WA(typeof G==="function"?G:null),D)};
ygE(_.T1);Lz0=function(x,G,D,K){bmi(x,Wz7(G||_.ld,D||null,K))};
_.M_=function(x,G){G=WA(G);G=Wz7(G,G);G.always=!0;bmi(x,G);return x};
_.T1.prototype.finally=function(x){var G=this;x=WA(x);return new Promise(function(D,K){Lz0(G,function(z){x();D(z)},function(z){x();
K(z)})})};
_.T1.prototype.thenCatch=function(x,G){return VX8(this,null,WA(x),G)};
_.T1.prototype.catch=_.T1.prototype.thenCatch;_.T1.prototype.cancel=function(x){if(this.state_==0){var G=new _.S8(x);_.eH(function(){Bhi(this,G)},this)}};
var Bhi=function(x,G){if(x.state_==0)if(x.parent_){var D=x.parent_;if(D.callbackEntries_){for(var K=0,z=null,y=null,c=D.callbackEntries_;c&&(c.always||(K++,c.child==x&&(z=c),!(z&&K>1)));c=c.next)z||(y=c);z&&(D.state_==0&&K==1?Bhi(D,G):(y?(K=y,K.next==D.callbackEntriesTail_&&(D.callbackEntriesTail_=K),K.next=K.next.next):rgZ(D),sSE(D,z,3,G)))}x.parent_=null}else x.resolve_(3,G)},bmi=function(x,G){x.callbackEntries_||x.state_!=2&&x.state_!=3||Y_9(x);
x.callbackEntriesTail_?x.callbackEntriesTail_.next=G:x.callbackEntries_=G;x.callbackEntriesTail_=G},VX8=function(x,G,D,K){var z=Wz7(null,null,null);
z.child=new _.T1(function(y,c){z.JSC$7780_onFulfilled=G?function(W){try{var e=G.call(K,W);y(e)}catch(Q){c(Q)}}:y;
z.JSC$7780_onRejected=D?function(W){try{var e=D.call(K,W);e===void 0&&W instanceof _.S8?c(W):y(e)}catch(Q){c(Q)}}:c});
z.child.parent_=x;bmi(x,z);return z.child};
_.T1.prototype.unblockAndFulfill_=function(x){this.state_=0;this.resolve_(2,x)};
_.T1.prototype.unblockAndReject_=function(x){this.state_=0;this.resolve_(3,x)};
_.T1.prototype.resolve_=function(x,G){this.state_==0&&(this===G&&(x=3,G=new TypeError("Ba")),this.state_=1,eUZ(G,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=G,this.state_=x,this.parent_=null,Y_9(this),x!=3||G instanceof _.S8||mHo(this,G)))};
var eUZ=function(x,G,D,K){if(x instanceof _.T1)return Lz0(x,G,D,K),!0;if(l79(x))return x.then(G,D,K),!0;if(_.G7(x))try{var z=x.then;if(typeof z==="function")return Hmh(x,z,G,D,K),!0}catch(y){return D.call(K,y),!0}return!1},Hmh=function(x,G,D,K,z){var y=!1,c=function(e){y||(y=!0,D.call(z,e))},W=function(e){y||(y=!0,K.call(z,e))};
try{G.call(x,c,W)}catch(e){W(e)}},Y_9=function(x){x.executing_||(x.executing_=!0,_.eH(x.executeCallbacks_,x))},rgZ=function(x){var G=null;
x.callbackEntries_&&(G=x.callbackEntries_,x.callbackEntries_=G.next,G.next=null);x.callbackEntries_||(x.callbackEntriesTail_=null);return G};
_.T1.prototype.executeCallbacks_=function(){for(var x;x=rgZ(this);)sSE(this,x,this.state_,this.result_);this.executing_=!1};
sSE=function(x,G,D,K){if(D==3&&G.JSC$7780_onRejected&&!G.always)for(;x&&x.hadUnhandledRejection_;x=x.parent_)x.hadUnhandledRejection_=!1;if(G.child)G.child.parent_=null,$Hu(G,D,K);else try{G.always?G.JSC$7780_onFulfilled.call(G.context):$Hu(G,D,K)}catch(z){lx3.call(null,z)}Thk.put(G)};
$Hu=function(x,G,D){G==2?x.JSC$7780_onFulfilled.call(x.context,D):x.JSC$7780_onRejected&&x.JSC$7780_onRejected.call(x.context,D)};
mHo=function(x,G){x.hadUnhandledRejection_=!0;_.eH(function(){x.hadUnhandledRejection_&&lx3.call(null,G)})};
lx3=K$;_.S8=function(x){_.xC.call(this,x)};
_.tR(_.S8,_.xC);_.S8.prototype.name="cancel";var pdE=function(x,G,D){this.promise=x;this.resolve=G;this.reject=D};var QZ;_.Pm=function(x,G){_.T2.call(this);this.JSC$7792_interval_=x||1;this.timerObject_=G||_.Df;this.boundTick_=(0,_.mW)(this.tick_,this);this.last_=_.f6()};
_.tR(_.Pm,_.T2);_.a=_.Pm.prototype;_.a.enabled=!1;_.a.JSC$7794_timer_=null;_.a.setInterval=function(x){this.JSC$7792_interval_=x;this.JSC$7794_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7794_timer_&&this.stop()};
_.a.tick_=function(){if(this.enabled){var x=_.f6()-this.last_;x>0&&x<this.JSC$7792_interval_*.8?this.JSC$7794_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7792_interval_-x):(this.JSC$7794_timer_&&(this.timerObject_.clearTimeout(this.JSC$7794_timer_),this.JSC$7794_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.a.start=function(){this.enabled=!0;this.JSC$7794_timer_||(this.JSC$7794_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7792_interval_),this.last_=_.f6())};
_.a.stop=function(){this.enabled=!1;this.JSC$7794_timer_&&(this.timerObject_.clearTimeout(this.JSC$7794_timer_),this.JSC$7794_timer_=null)};
_.a.disposeInternal=function(){_.Pm.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
QZ=function(x,G,D){if(typeof x==="function")D&&(x=(0,_.mW)(x,D));else if(x&&typeof x.handleEvent=="function")x=(0,_.mW)(x.handleEvent,x);else throw Error("Ca");return Number(G)>2147483647?-1:_.Df.setTimeout(x,G||0)};
_.Fz9=function(x){var G=null;return(new _.T1(function(D,K){G=QZ(function(){D(void 0)},x);
G==-1&&K(Error("Da"))})).thenCatch(function(D){_.Df.clearTimeout(G);
throw D;})};var eB=function(x){_.Ya.call(this);this.streamzLogger=x;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7798_flushTimer=new _.Pm(this.flushInterval);this.JSC$7798_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.WZ(this,this.JSC$7798_flushTimer)};
_.m(eB,_.Ya);eB.prototype.sendIsolatedPayload=function(x){this.shouldSendIsolatedPayload=x;this.invocationLimit=1};
var CU8=function(x){x.JSC$7798_flushTimer.enabled||x.JSC$7798_flushTimer.start();x.invocationCount++;x.invocationCount>=x.invocationLimit&&x.snapshotAndFlush()};
eB.prototype.snapshotAndFlush=function(){var x=this.metricMap.values();x=[].concat(_.B5(x)).filter(function(G){return G.cellMap.size});
x.length&&this.streamzLogger.flush(x,this.shouldSendIsolatedPayload);I78(x);this.invocationCount=0;this.JSC$7798_flushTimer.enabled&&this.JSC$7798_flushTimer.stop()};
eB.prototype.addNewCounter=function(x){var G=_.rC.apply(1,arguments);this.metricMap.has(x)||this.metricMap.set(x,new Scu(x,G))};
eB.prototype.addNewEventMetric=function(x){var G=_.rC.apply(1,arguments);this.metricMap.has(x)||this.metricMap.set(x,new niu(x,G))};
var jSs=function(x,G){return x.disabledMetrics.has(G)?void 0:x.metricMap.get(G)};
eB.prototype.JSC$7798_incrementCounter=function(x){this.JSC$7798_incrementCounterBy(x,1,_.rC.apply(1,arguments))};
eB.prototype.JSC$7798_incrementCounterBy=function(x,G){var D=_.rC.apply(2,arguments),K=jSs(this,x);K&&K instanceof Scu&&(K.JSC$7737_incrementCounterBy(G,D),CU8(this))};
eB.prototype.record=function(x,G){var D=_.rC.apply(2,arguments),K=jSs(this,x);K&&K instanceof niu&&(K.record(G,D),CU8(this))};
var I78=function(x){for(var G=0;G<x.length;G++)x[G].clear()};_.pw=function(x,G,D){D=D===void 0?{}:D;G=Error.call(this,G);this.message=G.message;"stack"in G&&(this.stack=G.stack);this.code=x;this.metadata=D;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.m(_.pw,Error);_.pw.prototype.toString=function(){var x="RpcError("+(tBn(this.code)||String(this.code))+")";this.message&&(x+=": "+this.message);return x};_.Om8=_.Df.JSON.parse;_.VZ=_.Df.JSON.stringify;_.Ym=_.Df.JSON.parse;_.Xd8=function(x){switch(x){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 Ags=function(x){switch(x){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var UHZ,RUk=function(){};
_.tR(RUk,_.kHn);RUk.prototype.createInstance=function(){return new XMLHttpRequest};
UHZ=new RUk;_.bv=function(x){_.T2.call(this);this.headers=new Map;this.JSC$7807_xmlHttpFactory_=x||null;this.JSC$7807_active_=!1;this.JSC$7807_xhr_=null;this.JSC$7807_lastUri_="";this.JSC$7807_lastErrorCode_=0;this.JSC$7807_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7807_timeoutId_=null;this.responseType_="";this.JSC$7807_withCredentials_=!1};
_.tR(_.bv,_.T2);var S_s=/^https?$/i,n0q=["POST","PUT"],im9=[],x_V=function(x,G,D,K,z,y,c){var W=new _.bv;im9.push(W);G&&W.listen("complete",G);W.listenOnce("ready",W.cleanupSend_);y&&(W.timeoutInterval_=Math.max(0,y));c&&(W.JSC$7807_withCredentials_=c);W.send(x,D,K,z)};
_.bv.prototype.cleanupSend_=function(){this.dispose();_.f$(im9,this)};
_.bv.prototype.send=function(x,G,D,K){if(this.JSC$7807_xhr_)throw Error("Ea`"+this.JSC$7807_lastUri_+"`"+x);G=G?G.toUpperCase():"GET";this.JSC$7807_lastUri_=x;this.JSC$7807_lastError_="";this.JSC$7807_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7807_active_=!0;this.JSC$7807_xhr_=this.createXhr();this.JSC$7807_xhr_.onreadystatechange=WA((0,_.mW)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7807_xhr_.open(G,String(x),!0),this.inOpen_=!1}catch(c){g0i(this,c);return}x=D||"";D=new Map(this.headers);
if(K)if(Object.getPrototypeOf(K)===Object.prototype)for(var z in K)D.set(z,K[z]);else if(typeof K.keys==="function"&&typeof K.get==="function"){z=_.l(K.keys());for(var y=z.next();!y.done;y=z.next())y=y.value,D.set(y,K.get(y))}else throw Error("Fa`"+String(K));K=Array.from(D.keys()).find(function(c){return"content-type"==c.toLowerCase()});
z=_.Df.FormData&&x instanceof _.Df.FormData;!_.qL(n0q,G)||K||z||D.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");G=_.l(D);for(K=G.next();!K.done;K=G.next())D=_.l(K.value),K=D.next().value,D=D.next().value,this.JSC$7807_xhr_.setRequestHeader(K,D);this.responseType_&&(this.JSC$7807_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7807_xhr_&&this.JSC$7807_xhr_.withCredentials!==this.JSC$7807_withCredentials_&&(this.JSC$7807_xhr_.withCredentials=this.JSC$7807_withCredentials_);
try{this.JSC$7807_timeoutId_&&(clearTimeout(this.JSC$7807_timeoutId_),this.JSC$7807_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7807_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7807_xhr_.send(x),this.inSend_=!1}catch(c){g0i(this,c)}};
_.bv.prototype.createXhr=function(){return this.JSC$7807_xmlHttpFactory_?this.JSC$7807_xmlHttpFactory_.createInstance():UHZ.createInstance()};
_.bv.prototype.timeout_=function(){typeof QUL!="undefined"&&this.JSC$7807_xhr_&&(this.JSC$7807_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7807_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var g0i=function(x,G){x.JSC$7807_active_=!1;x.JSC$7807_xhr_&&(x.inAbort_=!0,x.JSC$7807_xhr_.abort(),x.inAbort_=!1);x.JSC$7807_lastError_=G;x.JSC$7807_lastErrorCode_=5;ucs(x);dHJ(x)},ucs=function(x){x.errorDispatched_||(x.errorDispatched_=!0,x.dispatchEvent("complete"),x.dispatchEvent("error"))};
_.bv.prototype.abort=function(x){this.JSC$7807_xhr_&&this.JSC$7807_active_&&(this.JSC$7807_active_=!1,this.inAbort_=!0,this.JSC$7807_xhr_.abort(),this.inAbort_=!1,this.JSC$7807_lastErrorCode_=x||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),dHJ(this))};
_.bv.prototype.disposeInternal=function(){this.JSC$7807_xhr_&&(this.JSC$7807_active_&&(this.JSC$7807_active_=!1,this.inAbort_=!0,this.JSC$7807_xhr_.abort(),this.inAbort_=!1),dHJ(this,!0));_.bv.superClass_.disposeInternal.call(this)};
_.bv.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)wdo(this);else this.onReadyStateChangeEntryPoint_()};
_.bv.prototype.onReadyStateChangeEntryPoint_=function(){wdo(this)};
var wdo=function(x){if(x.JSC$7807_active_&&typeof QUL!="undefined")if(x.inSend_&&_.Lw(x)==4)setTimeout(x.onReadyStateChange_.bind(x),0);else if(x.dispatchEvent("readystatechange"),x.isComplete()){x.JSC$7807_active_=!1;try{if(x.isSuccess())x.dispatchEvent("complete"),x.dispatchEvent("success");else{x.JSC$7807_lastErrorCode_=6;try{var G=_.Lw(x)>2?x.JSC$7807_xhr_.statusText:""}catch(D){G=""}x.JSC$7807_lastError_=G+" ["+x.getStatus()+"]";ucs(x)}}finally{dHJ(x)}}},dHJ=function(x,G){if(x.JSC$7807_xhr_){x.JSC$7807_timeoutId_&&
(clearTimeout(x.JSC$7807_timeoutId_),x.JSC$7807_timeoutId_=null);
var D=x.JSC$7807_xhr_;x.JSC$7807_xhr_=null;G||x.dispatchEvent("ready");try{D.onreadystatechange=null}catch(K){}}};
_.bv.prototype.isActive=function(){return!!this.JSC$7807_xhr_};
_.bv.prototype.isComplete=function(){return _.Lw(this)==4};
_.bv.prototype.isSuccess=function(){var x=this.getStatus(),G;if(!(G=Ags(x))){if(x=x===0)x=hPJ(String(this.JSC$7807_lastUri_)),x=!S_s.test(x);G=x}return G};
_.Lw=function(x){return x.JSC$7807_xhr_?x.JSC$7807_xhr_.readyState:0};
_.a=_.bv.prototype;_.a.getStatus=function(){try{return _.Lw(this)>2?this.JSC$7807_xhr_.status:-1}catch(x){return-1}};
_.a.getResponseText=function(){try{return this.JSC$7807_xhr_?this.JSC$7807_xhr_.responseText:""}catch(x){return""}};
_.a.getResponse=function(){try{if(!this.JSC$7807_xhr_)return null;if("response"in this.JSC$7807_xhr_)return this.JSC$7807_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7807_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7807_xhr_)return this.JSC$7807_xhr_.mozResponseArrayBuffer}return null}catch(x){return null}};
_.a.getAllResponseHeaders=function(){return this.JSC$7807_xhr_&&_.Lw(this)>=2?this.JSC$7807_xhr_.getAllResponseHeaders()||"":""};
_.a.getLastError=function(){return typeof this.JSC$7807_lastError_==="string"?this.JSC$7807_lastError_:String(this.JSC$7807_lastError_)};var $uh=function(){};
$uh.prototype.send=function(x,G,D){G=G===void 0?function(){}:G;
D=D===void 0?function(){}:D;
x_V(x.url,function(K){K=K.target;K.isSuccess()?G(K.getResponseText()):D(K.getStatus())},x.requestType,x.body,x.requestHeaders,x.timeoutMillis,x.withCredentials)};
$uh.prototype.getTransmissionType=function(){return 1};var q_8=function(x,G){this.logger=x;this.event=G;this.startTime=ZE()};
q_8.prototype.done=function(){this.logger.lX(this.event,ZE()-this.startTime)};
var BA=function(){fX.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.m(BA,fX);var ri=function(x,G,D){var K=ZE();G=G();x.lX(D,ZE()-K);return G},XlD=function(){BA.apply(this,arguments)};
_.m(XlD,BA);_.a=XlD.prototype;_.a.m3F=function(){};
_.a.e5=function(){};
_.a.lX=function(){};
_.a.logError=function(){};
_.a.l8=function(){};
_.a.ybF=function(){};
_.a.aFI=function(){};
_.a.lFq=function(){};
_.a.l1g=function(){};
var Nho=function(x){BA.call(this);var G=this;this.logger=x;this.TEST_ONLY={qAd:function(){return G.logger},
getExperimentIds:function(){return G.logger.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void G.logger.dispose()})};
_.m(Nho,BA);_.a=Nho.prototype;_.a.update=function(x){this.logger.dispose();this.logger=x};
_.a.e5=function(x){this.logger.e5(x)};
_.a.lX=function(x,G){this.logger.lX(x,G)};
_.a.logError=function(x){this.logger.logError(x)};
_.a.l8=function(){this.logger.l8()};
_.a.ybF=function(x){this.logger.ybF(x)};
_.a.aFI=function(x){this.logger.aFI(x)};
_.a.lFq=function(x){this.logger.lFq(x)};
_.a.l1g=function(x){this.logger.l1g(x)};
_.a.m3F=function(x){this.logger.m3F(x)};
var v0o=function(x,G){_.Ya.call(this);var D=this;this.callback=x;this.isU=G;this.l6V=-G;this.addOnDisposeCallback(function(){return void clearTimeout(D.timer)})};
_.m(v0o,_.Ya);var JgE=function(x){if(x.timer===void 0){var G=Math.max(0,x.l6V+x.isU-ZE());x.timer=setTimeout(function(){try{x.callback()}finally{x.l6V=ZE(),x.timer=void 0}},G)}},f7q=function(x,G){BA.call(this);
this.metrics=x;this.kp=G};
_.m(f7q,BA);_.a=f7q.prototype;_.a.m3F=function(x){this.metrics.zUa.record(x,this.kp)};
_.a.e5=function(x){this.metrics.eventCount.increment(x,this.kp)};
_.a.lX=function(x,G){this.metrics.zRc.record(G,x,this.kp)};
_.a.logError=function(x){this.metrics.errorCount.increment(x,this.kp)};
_.a.ybF=function(x){this.metrics.yH5.increment(x,this.kp)};
_.a.aFI=function(x){this.metrics.nxa.increment(x,this.kp)};
_.a.lFq=function(x){this.metrics.l75.increment(x,this.kp)};
var My=function(x,G){G=G===void 0?[]:G;var D={kp:x.kp||"_",dBv:x.dBv||[],cbt:x.cbt|0,destinationUrl:x.destinationUrl,p5F:x.p5F||function(){},
xt:x.xt||function(y,c){return Oxd(y,c,D.p5F,D.destinationUrl)}},K=D.xt("49",D.dBv.concat(G));
f7q.call(this,aSP(K),D.kp);var z=this;this.TEST_ONLY={getExperimentIds:function(){return z.options.dBv.concat(z.sWF).sort(function(y,c){return y-c})}};
this.options=D;this.service=K;this.n93=!x.xt;this.flushDebouncer=new v0o(function(){return void z.service.snapshotAndFlush()},D.cbt);
this.addOnDisposeCallback(function(){z.flushDebouncer.dispose();z.n93&&z.service.dispose()});
(this.sWF=G.slice()).sort(_.z7)};
_.m(My,f7q);My.prototype.l1g=function(x){var G=this;x=x.slice();x.sort(_.z7);_.yJ(x,this.sWF)||(this.flushDebouncer.dispose(),this.n93&&this.service.dispose(),this.service=this.options.xt("49",this.options.dBv.concat(x)),this.flushDebouncer=new v0o(function(){return void G.service.snapshotAndFlush()},this.options.cbt),this.metrics=aSP(this.service),this.sWF=x)};
My.prototype.l8=function(){JgE(this.flushDebouncer)};var ftL=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(ftL,_.SX);_.tkf=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(_.tkf,_.SX);var qX=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x,0,qX.messageId)};
_.m(qX,_.SX);var tXZ=_.DH$(qX);qX.messageId="bfkj";var Uyd=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Uyd,_.SX);var k48=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(k48,_.SX);var PUk=_.hg(k48);_.Kt=function(){var x=this;this.promise=new Promise(function(G,D){x.resolve=G;x.reject=D})};_.sR=function(x){_.Ya.call(this);var G=this;this.aBI=Math.floor(Math.random()*200);this.slg=new k48;if("challenge"in x&&tXZ(x.challenge)){var D=_.rP(x.challenge,4,void 0,uq);var K=_.rP(x.challenge,5,void 0,uq);_.rP(x.challenge,7,void 0,uq)&&(this.slg=PUk(_.rP(x.challenge,7,void 0,uq)))}else D=x.program,K=x.globalName;this.addOnDisposeCallback(function(){var H,O,A;return _.T(function(g){if(g.nextAddress==1)return _.Z(g,G.a2g,2);H=g.yieldResult;O=H.vZ5;(A=O)==null||A();_.c5(g)})});
this.logger=AtP(x.f3||{},this.slg,x.rwW);_.WZ(this,this.logger);var z=new _.Kt;this.a2g=z.promise;this.logger.e5("t");var y=this.logger.share(),c=new q_8(y,"t"),W=function(H,O,A,g){if(!G.logger.isDisposed()){var u="k";O?u="h":A&&(u="u");u!=="k"?g!==0&&(G.logger.e5(u),G.logger.lX(u,H)):G.aBI<=0?(G.logger.e5(u),G.logger.lX(u,H),G.aBI=Math.floor(Math.random()*200)):G.aBI--}},e=function(H,O,A,g){Promise.resolve().then(function(){c.done();
y.l8();y.dispose();z.resolve({vl9:H,vZ5:O,hPu:A,oxV:g})})};
if(!_.Df[K])throw this.logger.logError(25),Error("Ga");if(!_.Df[K].a)throw this.logger.logError(26),Error("Ha");try{var Q=_.Df[K].a;K=[];for(var p=[],V=RCf(this.slg),L=0;L<V.length;L++)K.push(V[L]),p.push(1);var r=SPP(this.slg);for(V=0;V<r.length;V++)K.push(r[V]),p.push(2);this.auo=_.l(Q(D,e,!0,x.krU,W,[K,p],_.rP(this.slg,5))).next().value;this.vcI=z.promise.then(function(){})}catch(H){throw this.logger.logError(28),H;
}};
_.m(_.sR,_.Ya);_.sR.prototype.snapshot=function(x){if(this.isDisposed())throw Error("Ia");this.logger.e5("n");var G=this.logger.share();return this.a2g.then(function(D){var K=D.vl9;return new Promise(function(z){var y=new q_8(G,"n");K(function(c){y.done();G.m3F(c.length);G.l8();G.dispose();z(c)},[x.vA,
x.r4g,x.xGu,x.gAn])})})};
_.E0i=function(x,G){if(x.isDisposed())throw Error("Ia");x.logger.e5("n");var D=ri(x.logger,function(){return x.auo([G.vA,G.r4g,G.xGu,G.gAn])},"n");
x.logger.m3F(D.length);x.logger.l8();return D};
_.sR.prototype.s71=function(x){this.a2g.then(function(G){var D;(D=G.hPu)==null||D(x)})};
_.sR.prototype.hNc=function(x,G){return this.a2g.then(function(D){var K;return(K=D.oxV)==null?void 0:K(x,G,!1)})};
_.sR.prototype.hZ1=function(){return this.logger.share()};var hU0=function(){this.q4D={};this.fyq=null},xc7=function(){hU0.instance||(hU0.instance=new hU0);
return hU0.instance},Dco=function(x,G){return GW7(x,_.hv(G,ftL,1,uq),_.hv(G,_.tkf,2,uq),_.rP(G,3,void 0,uq))},GW7=function(x,G,D,K){if(!G&&!D)return Promise.resolve();
if(!K)return n9D(G,D);var z;(z=x.q4D)[K]||(z[K]=new Promise(function(y,c){n9D(G,D).then(function(){x.fyq=K;y()},function(W){delete x.q4D[K];
c(W)})}));
return x.q4D[K]};var KuJ=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(KuJ,_.SX);var zoZ=function(x,G){return _.NX(x,1,G)},aBh=function(x,G){return _.NX(x,2,G)};var Yh=function(x){_.Ya.call(this);var G=this;this.options=x;this.kd3=new _.Kt;this.vcI=this.kd3.promise;this.eG1=new _.Kt;this.j5n=1;this.x6F=new _.Kt;this.qKF=[];this.dsq=x.dsq||function(){};
this.logger=new Nho(AtP(x.f3||{}));oYZ(this,x.zD,x.vup,x.iLQ,x.j8M,Object.assign({},y_9,x.vJa||{}));this.addOnDisposeCallback(function(){return void lB9(G)})};
_.m(Yh,_.Ya);Yh.prototype.snapshot=function(x){var G=this;return _.T(function(D){switch(D.nextAddress){case 1:if(G.isDisposed())throw Error("Ia");if(G.gQ||G.zUf){D.jumpTo(2);break}return _.Z(D,G.eG1.promise,2);case 2:if(!G.gQ){D.jumpTo(4);break}return _.Z(D,G.gQ.snapshot(x),5);case 5:return D.return(D.yieldResult);case 4:throw G.zUf;}})};
var c_s=function(x){var G;return _.T(function(D){if(x.isDisposed())throw Error("Ia");(G=x.wE)!=null&&(G.endTimeMs=0,G.resolver(1));return _.Z(D,x.x6F.promise,0)})},lB9=function(x){x.zUf=Error("Ka");
x.eG1.resolve();na3(x.kd3.promise);x.kd3.reject(Error("Ka"));x.logger.dispose();Promise.all(x.qKF).then(function(){var D;return _.T(function(K){(D=x.gQ)==null||D.dispose();x.gQ=void 0;_.c5(K)})});
x.qKF=[];var G;(G=x.wE)!=null&&(G.endTimeMs=0,G.resolver(1));na3(x.x6F.promise);x.x6F.reject(Error("Ka"))};
Yh.prototype.s71=function(x){var G,D;(G=this.gQ)==null||(D=G.s71)==null||D.call(G,x)};
Yh.prototype.hNc=function(x,G){var D,K,z;return(z=(D=this.gQ)==null?void 0:(K=D.hNc)==null?void 0:K.call(D,x,G))!=null?z:Promise.resolve()};
var TC9=function(x,G){var D=x.dsq;x.dsq=function(){D();G()}},Wus=function(x,G){x.isDisposed()||(x.gQ=G,x.logger.update(G.hZ1()),x.eG1.resolve(),x.kd3.resolve(void 0),x.dsq())};
Yh.prototype.handleError=function(x){if(!this.isDisposed()){this.zUf=x;this.eG1.resolve();var G,D;(D=(G=this.options).lVv)==null||D.call(G,x)}};
var eoo=function(x,G){G&&(Promise.all(x.qKF).then(function(){return void G.dispose()}),x.qKF=[])},m5=function(x,G){x.j5n=G;
var D,K;(K=(D=x.options).dtv)==null||K.call(D,G)},Z9h=function(x){x.isDisposed()||(x.x6F.resolve(),x.x6F=new _.Kt)},oYZ=function(x,G,D,K,z,y){K=K===void 0?xc7():K;
z=z===void 0?Promise.resolve(void 0):z;var c,W,e,Q,p,V,L,r,H,O,A,g;_.T(function(u){switch(u.nextAddress){case 1:return _.Z(u,0,3);case 3:W=null;if(!c){u.jumpTo(6);break}m5(x,7);_.Kl(u,7);return _.Z(u,L4(c.snapshot({}),y.jKr,function(){return Promise.resolve("E:CTO")}),9);
case 9:W=u.yieldResult;_.iI(u,6);break;case 7:_.lX(u),W="E:UCE";case 6:e=void 0,Q=c?y.wXp:y.tOU,p=new yF(Q,y.jEI,y.sEU,y.rWW),V=1;case 10:if(!(V<=y.maxAttempts)){u.jumpTo(12);break}if(V===1){u.jumpTo(13);break}m5(x,0);x.wE=new Mr0(p.getValue(),y.eUE,y.nRI);return _.Z(u,x.wE.promise,14);case 14:L=u.yieldResult,x.wE=void 0,L===1?(V=1,p.reset()):Hfq(p);case 13:_.Kl(u,15);r=void 0;if(D){r=D;u.jumpTo(17);break}m5(x,5);H=K.fyq;return _.Z(u,L4(QFE(G,H,W),y.jSU,function(){return Promise.reject(Error("La"))}),
18);
case 18:r=u.yieldResult;case 17:return m5(x,3),_.Z(u,L4(Dco(K,r),y.dlU,function(){return Promise.reject(Error("Ma"))}),19);
case 19:return m5(x,8),_.Z(u,z,20);case 20:return O=new _.sR({challenge:r,f3:x.options.f3,krU:x.options.krU}),_.Z(u,L4(O.vcI,y.hSv,function(){return Promise.reject(Error("Na"))}),21);
case 21:e=O;u.jumpTo(12);break;case 15:A=_.lX(u),x.handleError(A),Z9h(x);case 11:V++;u.jumpTo(10);break;case 12:if(x.isDisposed()){u.jumpTo(5);break}e&&(D=void 0,eoo(x,c),c=e,Wus(x,e),Z9h(x));m5(x,2);x.wE=new Mr0(y.uyn,y.eUE,y.nRI);return _.Z(u,x.wE.promise,22);case 22:x.wE=void 0;if(x.isDisposed()){u.jumpTo(5);break}u.jumpTo(3);break;case 5:(g=c)==null||g.dispose(),_.c5(u)}})};
Yh.prototype.hZ1=function(){return this.logger.share()};
var y_9={uyn:432E5,eUE:3E5,nRI:10,jKr:1E4,jSU:3E4,dlU:3E4,hSv:6E4,tOU:1E3,wXp:6E4,jEI:6E5,sEU:.25,rWW:2,maxAttempts:10},Mr0=function(x,G,D){var K=this;this.endTimeMs=Date.now()+x;this.promise=new Promise(function(y){K.resolver=y});
var z=function(){var y=K.endTimeMs-Date.now();y<=D?K.resolver(0):setTimeout(z,Math.min(y,G))};
z()};var pC7,uq$=(pC7=Math.imul)!=null?pC7:function(x,G){return x*G|0},BZ=[196,
200,224,18],HA=function(x,G,D){D=D===void 0?[]:D;this.maxItems=x;this.nk=G===void 0?0:G;this.eb=D},Vrh=function(x){var G=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!G)return new HA(x);var D=G.split(",");if(D.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new HA(x);G=D.slice(1);G.length===1&&G[0]===""&&(G=[]);D=Number(D[0]);return isNaN(D)||D<0||D>G.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new HA(x)):new HA(x,D,G)};
HA.prototype.serialize=function(){return String(this.nk)+","+this.eb.join()};
HA.prototype.insert=function(x,G){var D=void 0;if(this.eb[this.nk]!==x){var K=this.eb.indexOf(x);K!==-1?(this.eb.splice(K,1),K<this.nk&&this.nk--,this.eb.splice(this.nk,0,x)):(D=this.eb[this.nk],this.eb[this.nk]=x)}this.nk=(this.nk+1)%this.maxItems;x=ixn("iU5q-!O9@$",this.serialize());D&&x&&G(D);return x};
var b98=function(x,G){this.logger=G;try{var D=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(K){D=!1}D&&(this.index=Vrh(x))},Luo=function(x,G,D,K,z){var y=x.index?ri(x.logger,function(){return NOC(x.index,wlP(G),D,K,z)},"W"):"u";
x.logger.lFq(y)},BCo=function(x,G,D){var K=_.l(x.index?ri(x.logger,function(){return v9C(wlP(G),D)},"R"):["u"]),z=K.next().value;
K=K.next().value;x.logger.aFI(z);return K};var r_J={toString:function(x){var G=[],D=0;x-=-2147483648;G[D++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(x%52);for(x=Math.floor(x/52);x>0;)G[D++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(x%62),x=Math.floor(x/62);return G.join("")}};var mc9=function(x){x=sFZ(x);for(var G=2654435769,D=2654435769,K=314159265,z=x.length,y=z,c=0,W=function(){G-=D;G-=K;G^=K>>>13;D-=K;D-=G;D^=G<<8;K-=G;K-=D;K^=D>>>13;G-=D;G-=K;G^=K>>>12;D-=K;D-=G;D^=G<<16;K-=G;K-=D;K^=D>>>5;G-=D;G-=K;G^=K>>>3;D-=K;D-=G;D^=G<<10;K-=G;K-=D;K^=D>>>15};y>=12;y-=12,c+=12)G+=Y2h(x,c),D+=Y2h(x,c+4),K+=Y2h(x,c+8),W();
K+=z;switch(y){case 11:K+=x[c+10]<<24;case 10:K+=x[c+9]<<16;case 9:K+=x[c+8]<<8;case 8:D+=x[c+7]<<24;case 7:D+=x[c+6]<<16;case 6:D+=x[c+5]<<8;case 5:D+=x[c+4];case 4:G+=x[c+3]<<24;case 3:G+=x[c+2]<<16;case 2:G+=x[c+1]<<8;case 1:G+=x[c]}W();return r_J.toString(K)},sFZ=function(x){for(var G=[],D=0;D<x.length;D++)G.push(x.charCodeAt(D));
return G},Y2h=function(x,G){return x[G]+(x[G+1]<<8)+(x[G+2]<<16)+(x[G+3]<<24)};var H9s,$h=function(x){_.Ya.call(this);this.logger=x;this.rGO=new _.Kt;this[H9s]=this.dispose};
_.m($h,_.Ya);var $cq=function(x,G){var D=setTimeout(function(){x.rGO.resolve()},G);
x.addOnDisposeCallback(function(){return void clearTimeout(D)})};
$h.prototype.i4=function(x,G){var D=this.di(x);G==null||G(D);return ri(this.logger,function(){return _.PY(D,2)},this.hWI)};
var FuZ=function(x,G,D,K){return ri(x.logger,function(){return D?x.i4(G,K):x.di(G,K)},x.mt)};
H9s=Symbol.dispose;var CHi=function(x,G,D,K){$h.call(this,x);this.ooh=G;this.kuh=D;this.mt="m";this.hWI="x";this.goV=0;$cq(this,K)};
_.m(CHi,$h);CHi.prototype.di=function(x,G){var D=this;this.logger.e5(this.mt);++this.goV>=this.kuh&&this.rGO.resolve();var K=x();x=ri(this.logger,function(){return D.ooh(K)},"C");
if(x===void 0)throw new v_(17,"YNJ:Undefined");if(!(x instanceof Uint8Array))throw new v_(18,"ODM:Invalid");G==null||G(x);return x};
var IB0=function(x,G,D){$h.call(this,x);this.rNh=G;this.mt="f";this.hWI="z";$cq(this,D)};
_.m(IB0,$h);IB0.prototype.di=function(){return this.rNh};
var jFZ=function(x,G,D){$h.call(this,x);this.brp=G;this.mt="w";this.hWI="z";$cq(this,D)};
_.m(jFZ,$h);jFZ.prototype.di=function(){var x=this;return ri(this.logger,function(){return _.eZ(x.brp)},"d")};
jFZ.prototype.i4=function(){return this.brp};
var O9J=function(x,G){$h.call(this,x);this.error=G;this.mt="e";this.hWI="y"};
_.m(O9J,$h);var XCh=function(x,G){var D=(G(x.error.message)+":"+G(x.error.stack)).substring(0,2048);G=D.length+1;D=Jt3(D);var K=new Uint8Array(4+D.length);K.set([42,G&127|128,G>>7,x.error.code]);K.set(D,4);return K};
O9J.prototype.di=function(){if(this.nzF)return this.nzF;this.nzF=XCh(this,function(x){return"_"+mc9(x)});
return XCh(this,function(x){return x})};
var A_9=function(x,G,D){$h.call(this,x);this.sAr=G;this.clientState=D;this.mt="S";this.hWI="q"};
_.m(A_9,$h);A_9.prototype.di=function(){var x=Math.floor(Date.now()/1E3),G=[Math.random()*255,Math.random()*255],D=G.concat([this.sAr&255,this.clientState],[x>>24&255,x>>16&255,x>>8&255,x&255]);x=new Uint8Array(2+D.length);x[0]=34;x[1]=D.length;x.set(D,2);D=x.subarray(2);for(var K=G=G.length;K<D.length;++K)D[K]^=D[K%G];this.logger.ybF(this.clientState);return x};var Uck={dqI:3E4,fyo:2E4},F6=function(x){_.Ya.call(this);var G=this;this.bj1=new _.Kt;this.odt=0;this.fk=void 0;this.state=2;this.hf=x.hf;this.zD=x.zD;this.vJa=Object.assign({},Uck,x.vJa||{});this.logger=x.hf.hZ1();var D;this.onError=(D=x.onError)!=null?D:function(){};
this.vWe=x.vWe||!1;if(Roh(x)){var K=this.hf;this.uPD=function(){return c_s(K).catch(function(c){c=G.reportError(new v_(G.sK?20:32,"TRG:Disposed",c));G.fk=c;var W;(W=G.sK)==null||W.dispose();G.sK=void 0;G.bj1.reject(c)})};
TC9(K,function(){return void S27(G)});
K.j5n===2&&S27(this)}else this.uPD=x.wwH,S27(this);var z=this.logger.share();z.e5("o");var y=new q_8(z,"o");this.bj1.promise.then(function(){y.done();z.l8();z.dispose()},function(){return void z.dispose()});
this.addOnDisposeCallback(function(){G.sK?(G.sK.dispose(),G.sK=void 0):G.fk?G.logger.l8():(G.fk=G.reportError(new v_(32,"TNP:Disposed")),G.logger.l8(),G.bj1.reject(G.fk))});
_.WZ(this,this.logger)};
_.m(F6,_.Ya);F6.prototype.dKI=function(){return this.bj1.promise};
var nYs=function(x,G){if(!(G instanceof v_))if(G instanceof _.pw){var D=Error(G.toString());D.stack=G.stack;G=new v_(11,"EBH:Error",D)}else G=new v_(12,"BSO:Unknown",G);return x.reportError(G)},S27=function(x){var G,D,K,z,y,c,W,e,Q,p,V,L,r,H,O;
return _.T(function(A){switch(A.nextAddress){case 1:G=void 0;x.odt++;D=new _.Kt;x.hf instanceof Yh&&x.hf.qKF.push(D.promise);if(!x.vWe){A.jumpTo(2);break}K=new _.Kt;setTimeout(function(){return void K.resolve()});
return _.Z(A,K.promise,2);case 2:return z=x.logger.share(),_.Kl(A,4,5),x.state=5,y={},c=[],_.Z(A,L4(x.hf.snapshot({vA:y,xGu:c}),x.vJa.fyo,function(){return Promise.reject(new v_(15,"MDA:Timeout"))}),7);
case 7:W=A.yieldResult;if(x.isDisposed())throw new v_(x.sK?20:32,"MDA:Disposed");e=c[0];x.state=6;return _.Z(A,L4(i9q(x.zD,W),x.vJa.dqI,function(){return Promise.reject(new v_(10,"BWB:Timeout"))}),8);
case 8:Q=A.yieldResult;if(x.isDisposed())throw new v_(x.sK?20:32,"BWB:Disposed");x.state=7;G=ri(z,function(){var u=gYs(x,Q,D,e);u.rGO.promise.then(function(){return void x.uPD()});
return u},"i");
case 5:_.zA(A);z.dispose();_.y6(A,6);break;case 4:p=_.lX(A);(V=G)==null||V.dispose();if(!x.fk){L=nYs(x,p);D.resolve();var g;if(g=x.hf instanceof Yh&&x.odt<2)a:if(p instanceof v_)g=p.code!==32&&p.code!==20&&p.code!==10;else{if(p instanceof _.pw)switch(p.code){case 2:case 13:case 14:case 4:break;default:g=!1;break a}g=!0}if(g)return r=(1+Math.random()*.25)*(x.sK?6E4:1E3),H=setTimeout(function(){return void x.uPD()},r),x.addOnDisposeCallback(function(){return void clearTimeout(H)}),A.return();
x.fk=L}z.logError(x.sK?13:14);x.bj1.reject(x.fk);return A.return();case 6:x.state=8,x.odt=0,(O=x.sK)==null||O.dispose(),x.sK=G,x.bj1.resolve(),_.c5(A)}})},gYs=function(x,G,D,K){var z=Asf(G,2)*1E3;
if(z<=0)throw new v_(31,"TTM:Invalid");if(_.rP(G,4))return new jFZ(x.logger,_.rP(G,4),z);if(!Asf(G,3))return new IB0(x.logger,p7C(_.TK(G,1)),z);if(!K)throw new v_(4,"PMD:Undefined");K=K(p7C(_.TK(G,1)));if(!(K instanceof Function))throw new v_(16,"APF:Failed");x.u0I=Math.floor((Date.now()+z)/1E3);x=new CHi(x.logger,K,Asf(G,3),z);x.addOnDisposeCallback(function(){return void D.resolve()});
return x};
F6.prototype.di=function(x){return u_u(this,Object.assign({},x),!1)};
F6.prototype.i4=function(x){return u_u(this,Object.assign({},x),!0)};
F6.prototype.rmh=function(x){if(x>150)return!1;try{return this.cache=new b98(x,this.logger),!0}catch(G){return this.reportError(new v_(22,"GBJ:init",G)),!1}};
F6.prototype.reportError=function(x){this.logger.logError(x.code);this.onError(x);return x};
var dcu=function(x,G){G=G instanceof v_?G:new v_(5,"TVD:error",G);return x.reportError(G)},u_u=function(x,G,D){try{if(x.isDisposed())throw new v_(21,"BNT:disposed");
if(!x.sK&&x.fk)throw x.fk;var K,z;return(z=(K=wCk(x,G,D))!=null?K:q2s(x,G,D))!=null?z:NCu(x,G,D)}catch(y){if(!G.em2)throw dcu(x,y);return vYJ(x,D,y)}},wCk=function(x,G,D){var K;
return(K=x.sK)==null?void 0:FuZ(K,function(){return J_8(x,G)},D,function(z){var y;
if(x.sK instanceof CHi&&((y=G.yn)==null?0:y.dHu))try{var c;(c=x.cache)==null||Luo(c,J_8(x,G),z,G.yn.rVF,x.u0I-120)}catch(W){x.reportError(new v_(24,"ELX:write",W))}})},q2s=function(x,G,D){var K;
if((K=G.yn)!=null&&K.gDl)try{var z,y=(z=x.cache)==null?void 0:BCo(z,J_8(x,G),G.yn.rVF);return y?D?ri(x.logger,function(){return _.PY(y,2)},"a"):y:void 0}catch(c){x.reportError(new v_(23,"RXO:read",c))}},NCu=function(x,G,D){var K={stack:[],
error:void 0,hasError:!1};try{if(!G.mE3)throw new v_(29,"SDF:notready");return FuZ(sUE(K,new A_9(x.logger,0,x.state)),function(){return J_8(x,G)},D)}catch(z){K.error=z,K.hasError=!0}finally{YWV(K)}},vYJ=function(x,G,D){var K={stack:[],
error:void 0,hasError:!1};try{var z=dcu(x,D);return FuZ(sUE(K,new O9J(x.logger,z)),function(){return[]},G)}catch(y){K.error=y,K.hasError=!0}finally{YWV(K)}},J_8=function(x,G){return G.n8g?G.n8g:G.vA?ri(x.logger,function(){return G.n8g=Jt3(G.vA)},"c"):[]},Roh=function(x){return q0(function(G){if(!zC(G))return!1;
for(var D=_.l(Object.entries(x)),K=D.next();!K.done;K=D.next()){var z=_.l(K.value);K=z.next().value;z=z.next().value;if(!(K in G)){if(z.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!z(G[K]))return!1}return!0})}({hf:function(x){return q0(function(G){return G instanceof x})}(Yh)},"");var fBZ=function(){var x=_.hr();this.JSC$7922_streamzService=x;x.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",DE("cookie_enabled"),DE("cookie_3p_enabled"),_.zH("browser"))};
fBZ.prototype.increment=function(x,G,D){this.JSC$7922_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",x,G,D)};
var olD=function(){var x=_.hr();this.JSC$7946_streamzService=x;x.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",K4("tick"),DE("from_st_cookie"))};
olD.prototype.increment=function(x,G){this.JSC$7946_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",x,G)};
var trs=function(){var x=_.hr();this.JSC$7952_streamzService=x;x.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.zH("status"))};
trs.prototype.increment=function(x){this.JSC$7952_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",x)};
var kWo=function(){var x=_.hr();this.JSC$7955_streamzService=x;x.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.zH("stage"),DE("is_using_ytd_player"),DE("has_expandable_tiles"))};
kWo.prototype.increment=function(x,G,D){this.JSC$7955_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",x,G,D)};
var PHJ=function(){var x=_.hr();this.JSC$7958_streamzService=x;x.addNewCounter("/client_streamz/youtube/web/response_signature",_.zH("check_status"))};
PHJ.prototype.increment=function(x){this.JSC$7958_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/web/response_signature",x)};
var EYo=function(){var x=_.hr();this.JSC$7961_streamzService=x;x.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.zH("sig"),K4("de"))};
EYo.prototype.increment=function(x,G){this.JSC$7961_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/web/e_sig_log",x,G)};
var ho7=function(){var x=_.hr();this.JSC$7964_streamzService=x;x.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.zH("sig"),K4("de"))};
ho7.prototype.increment=function(x,G){this.JSC$7964_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/web/e_sig_en",x,G)};
_.x1Z=function(){var x=_.hr();this.JSC$7967_streamzService=x;x.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.zH("action"))};
_.x1Z.prototype.increment=function(x){this.JSC$7967_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/web/enforcement_intent",x)};var Cw=window;var GAh=(new Date).getTime();var D1u=function(x){this.servicePromise_=x;x.then((0,_.mW)(function(){},this),function(){},this)},KVJ=function(x,G,D){x.servicePromise_.then(function(K){var z=K[G];
if(!z)throw Error("Oa`"+G);return z.apply(K,D)})},oRu=function(x,G,D){for(var K=Array(arguments.length-2),z=2;z<arguments.length;z++)K[z-2]=arguments[z];
z=zGs(x,G).then(function(y){return y.apply(null,K)},function(y){y=Error("Pa`"+G+"`"+x,{cause:y});
delete aYq[G];return _.rk(y)});
return new D1u(z)},aYq={},zGs=function(x,G){var D=aYq[G];
if(D)return D;D=(D=_.nT(G))?_.aI(D):(new _.T1(function(K,z){var y=(new ZF(document)).createElement("SCRIPT");y.async=!0;_.Sr(y,_.oF(afu(x)));y.onload=y.onreadystatechange=function(){y.readyState&&y.readyState!="loaded"&&y.readyState!="complete"||K()};
y.onerror=function(c){z(Error("Qa`"+G+"`"+x,{cause:c}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(y)})).then(function(){var K=_.nT(G);
if(!K)throw Error("Ra`"+G+"`"+x);return K});
return aYq[G]=D};var y1i={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},c1s=function(){var x=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=fSf(function(){return _.T(function(G){if(G.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?G.return(Promise.resolve()):_.Z(G,lYi(x),2);x.rsaForList.length>
0&&document.addEventListener("click",x.requestAccessForHelpPanel);_.c5(G)})});
this.requestAccessForHelpPanel=function(){if(!(x.rsaForPromises.length>0)){for(var G=_.l(x.rsaForList),D=G.next();!D.done;D=G.next()){D=D.value;try{x.rsaForPromises.push(document.requestStorageAccessFor(D))}catch(K){}}Promise.all(x.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){x.reset()})}}};
c1s.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var lYi=function(x){var G,D,K,z;return _.T(function(y){switch(y.nextAddress){case 1:G=_.l(Object.values(y1i)),D=G.next();case 2:if(D.done){y.jumpTo(0);break}K=D.value;_.Kl(y,5);return _.Z(y,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:K}),7);case 7:z=y.yieldResult;z.state!=="granted"&&x.rsaForList.push(K);_.iI(y,3);break;case 5:_.lX(y);y.jumpTo(0);break;case 3:D=G.next(),y.jumpTo(2)}})};(new c1s).initialize();var T48=function(x){this.JSC$7981_loader_=x};
T48.prototype.startHelp=function(x){KVJ(this.JSC$7981_loader_,"startHelp",arguments)};
T48.prototype.JSC$7983_loadChatSupport=function(x){KVJ(this.JSC$7981_loader_,"loadChatSupport",arguments)};
var eGq=function(x,G){G=G||{};x=oRu(WV9,"help.service.Lazy.create",x,{apiKey:G.apiKey||G.apiKey,asxUiUri:G.asxUiUri||G.asxUiUri,environment:G.environment||G.environment,flow:G.flow||G.flow,frdProductData:G.frdProductData||G.frdProductData,frdProductDataSerializedJspb:G.frdProductDataSerializedJspb||G.frdProductDataSerializedJspb,helpCenterPath:G.helpCenterPath||G.helpCenterPath,locale:G.locale||G.locale||"en-US".replace(/-/g,"_"),nonce:G.nonce||G.nonce,productData:G.productData||G.productData,receiverUri:G.receiverUri||
G.receiverUri,renderApiUri:G.renderApiUri||G.renderApiUri,theme:G.theme||G.theme,window:G.window||G.window});return new T48(x)},WV9=new A2(bz$,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var Zlk=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Zlk,_.SX);var Mzk=_.hg(Zlk);_.Q0h=new function(x,G,D,K){this.configType=x;this.flagName=D;this.defaultValue=K;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 Vzh=function(){this.retriever=_.Eo().resolve(p5E)};sP(Node);sP(Element);var bls=sP(HTMLElement);sP(SVGElement);var LVi,B4Z,OR,r19;LVi=function(x){return typeof x.className=="string"?x.className:x.getAttribute&&x.getAttribute("class")||""};
B4Z=function(x){return x.classList?x.classList:LVi(x).match(/\S+/g)||[]};
_.IY=function(x,G){typeof x.className=="string"?x.className=G:x.setAttribute&&x.setAttribute("class",G)};
_.jH=function(x,G){return x.classList?x.classList.contains(G):_.qL(B4Z(x),G)};
_.qJ=function(x,G){if(x.classList)x.classList.add(G);else if(!_.jH(x,G)){var D=LVi(x);_.IY(x,D+(D.length>0?" "+G:G))}};
OR=function(x,G){if(x.classList)Array.prototype.forEach.call(G,function(z){_.qJ(x,z)});
else{var D={};Array.prototype.forEach.call(B4Z(x),function(z){D[z]=!0});
Array.prototype.forEach.call(G,function(z){D[z]=!0});
G="";for(var K in D)G+=G.length>0?" "+K:K;_.IY(x,G)}};
_.dk=function(x,G){x.classList?x.classList.remove(G):_.jH(x,G)&&_.IY(x,Array.prototype.filter.call(B4Z(x),function(D){return D!=G}).join(" "))};
r19=function(x,G){x.classList?Array.prototype.forEach.call(G,function(D){_.dk(x,D)}):_.IY(x,Array.prototype.filter.call(B4Z(x),function(D){return!_.qL(G,D)}).join(" "))};var s09=function(x){this.logger=this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=x.document},Hls=function(x,G){YsZ(x);
var D=document.createElement("div"),K;(K=G.parentNode)==null||K.insertBefore(D,G);D.tabIndex=0;D.id="fc-focus-trap-pre-div";D=document.createElement("div");var z;(z=G.parentNode)==null||z.insertBefore(D,G.nextSibling);D.tabIndex=0;D.id="fc-focus-trap-post-div";var y=m1Z(x,G),c=m1Z(x,G,!0);y&&c&&(x.focusChangeHandler=function(){var W=x.document.activeElement;if(W)if(_.gM(G,W))x.previouslyFocusedElement=W;else if(W===x.document.activeElement)switch(x.previouslyFocusedElement){case y:c.focus();x.previouslyFocusedElement=
c;break;default:y.focus(),x.previouslyFocusedElement=y}},x.document.addEventListener("focus",x.focusChangeHandler,!0),x.document.addEventListener("focusin",x.focusChangeHandler))},YsZ=function(x){x.focusChangeHandler&&(document.removeEventListener("focus",x.focusChangeHandler,!0),document.removeEventListener("focusin",x.focusChangeHandler),x.focusChangeHandler=null);
var G;(G=document.getElementById("fc-focus-trap-pre-div"))==null||G.remove();var D;(D=document.getElementById("fc-focus-trap-post-div"))==null||D.remove()},$1s=function(x,G,D,K,z){D=D===void 0?!0:D;
var y;z=(y=z===void 0?null:z)!=null?y:m1Z(x,G,K===void 0?!1:K);z!==null&&(z.focus(),D&&Hls(x,G))};
s09.prototype.disableButton=function(x,G){G=G===void 0?null:G;x.disabled=!0;G&&_.qJ(x,G)};
var m1Z=function(x,G,D){D=D===void 0?!1:D;if(S4V(G)&&!D)return G;var K=D?[].slice.call(G.children,0).reverse():G.children;K=_.l(K);for(var z=K.next();!z.done;z=K.next())if(z=z.value,bls(z)&&(z=m1Z(x,z,D)))return z;return S4V(G)&&D?G:null};var FVZ=function(x){this.originalBodyOverflow="";this.JSC$8007_domHelper=ei(x)};_.tR(_.HZ,_.Ya);_.a=_.HZ.prototype;_.a.JSC$8010_id_=0;_.a.disposeInternal=function(){_.HZ.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$8008_listener_;delete this.handler_};
_.a.start=function(x){this.stop();this.JSC$8010_id_=QZ(this.callback_,x!==void 0?x:this.JSC$8008_interval_)};
_.a.stop=function(){this.isActive()&&_.Df.clearTimeout(this.JSC$8010_id_);this.JSC$8010_id_=0};
_.a.fire=function(){this.stop();this.JSC$8010_doAction_()};
_.a.isActive=function(){return this.JSC$8010_id_!=0};
_.a.JSC$8010_doAction_=function(){this.JSC$8010_id_=0;this.JSC$8008_listener_&&this.JSC$8008_listener_.call(this.handler_)};_.Ev=function(x){_.Ya.call(this);this.handler_=x;this.JSC$8011_keys_={}};
_.tR(_.Ev,_.Ya);var CXi=[];_.Ev.prototype.listen=function(x,G,D,K){Array.isArray(G)||(G&&(CXi[0]=G.toString()),G=CXi);for(var z=0;z<G.length;z++){var y=_.Lz(x,G[z],D||this.handleEvent,K||!1,this.handler_||this);if(!y)break;this.JSC$8011_keys_[y.key]=y}return this};
_.Ev.prototype.listenOnce=function(x,G,D,K){return IYk(this,x,G,D,K)};
var IYk=function(x,G,D,K,z,y){if(Array.isArray(D))for(var c=0;c<D.length;c++)IYk(x,G,D[c],K,z,y);else{G=Q2(G,D,K||x.handleEvent,z,y||x.handler_||x);if(!G)return x;x.JSC$8011_keys_[G.key]=G}return x};
_.Ev.prototype.unlisten=function(x,G,D,K,z){if(Array.isArray(G))for(var y=0;y<G.length;y++)this.unlisten(x,G[y],D,K,z);else if(x=h4J(x,G,D||this.handleEvent,_.G7(K)?!!K.capture:!!K,z||this.handler_||this))pz(x),delete this.JSC$8011_keys_[x.key];return this};
_.Ev.prototype.removeAll=function(){_.YS.forEach(this.JSC$8011_keys_,function(x,G){this.JSC$8011_keys_.hasOwnProperty(G)&&pz(x)},this);
this.JSC$8011_keys_={}};
_.Ev.prototype.disposeInternal=function(){_.Ev.superClass_.disposeInternal.call(this);this.removeAll()};
_.Ev.prototype.handleEvent=function(){throw Error("Sa");};var X6=function(){_.Ya.call(this);this.services_={}};
_.tR(X6,_.Ya);_.a=X6.prototype;_.a.logger=null;_.a.connect=function(x){x&&x()};
_.a.isConnected=function(){return!0};
_.a.registerService=function(x,G,D){this.services_[x]={callback:G,objectPayload:!!D}};
_.a.getService=function(x,G){var D=this.services_[x];return D?D:this.defaultService_?{callback:_.Zq(this.defaultService_,x),objectPayload:_.G7(G)}:null};
var j0q=function(x,G){if(G&&typeof x==="string")try{return JSON.parse(x)}catch(D){return null}else if(!G&&typeof x!=="string")return(0,_.VZ)(x);return x};
X6.prototype.disposeInternal=function(){X6.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 A3=function(x,G){this.sequence_=[];this.onCancelFunction_=x;this.defaultScope_=G||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};
A3.prototype.cancel=function(x){if(this.fired_)this.result_ instanceof A3&&this.result_.cancel();else{if(this.parent_){var G=this.parent_;delete this.parent_;x?G.cancel(x):(G.branches_--,G.branches_<=0&&G.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new UR(this))}};
A3.prototype.continue_=function(x,G){this.blocked_=!1;OlZ(this,x,G)};
var OlZ=function(x,G,D){x.fired_=!0;x.result_=D;x.hadError_=!G;X5i(x)},U10=function(x){if(x.fired_){if(!x.silentlyCanceled_)throw new A1o(x);
x.silentlyCanceled_=!1}};
A3.prototype.callback=function(x){U10(this);OlZ(this,!0,x)};
A3.prototype.errback=function(x){U10(this);OlZ(this,!1,x)};
var RGZ=function(x,G,D){RY(x,G,null,D)};
A3.prototype.finally=function(x){var G=this;return new Promise(function(D,K){RY(G,function(z){x();D(z)},function(z){x();
K(z)})})};
var RY=function(x,G,D,K){var z=x.fired_;z||(G===D?G=D=WA(G):(G=WA(G),D=WA(D)));x.sequence_.push([G,D,K]);z&&X5i(x)};
A3.prototype.then=function(x,G,D){var K,z,y=new _.T1(function(c,W){z=c;K=W});
RY(this,z,function(c){c instanceof UR?y.cancel():K(c);return Sss},this);
return y.then(x,G,D)};
ygE(A3);var nRu=function(x,G){G instanceof A3?RGZ(x,(0,_.mW)(G.branch,G)):RGZ(x,function(){return G})};
A3.prototype.branch=function(x){var G=new A3;RY(this,G.callback,G.errback,G);x&&(G.parent_=this,this.branches_++);return G};
A3.prototype.isError=function(x){return x instanceof Error};
var ilk=function(x){return NO(x.sequence_,function(G){return typeof G[1]==="function"})},Sss={},X5i=function(x){if(x.unhandledErrorId_&&x.fired_&&ilk(x)){var G=x.unhandledErrorId_,D=gR7[G];
D&&(_.Df.clearTimeout(D.JSC$8028_id_),delete gR7[G]);x.unhandledErrorId_=0}x.parent_&&(x.parent_.branches_--,delete x.parent_);G=x.result_;for(var K=D=!1;x.sequence_.length&&!x.blocked_;){var z=x.sequence_.shift(),y=z[0],c=z[1];z=z[2];if(y=x.hadError_?c:y)try{var W=y.call(z||x.defaultScope_,G);W===Sss&&(W=void 0);W!==void 0&&(x.hadError_=x.hadError_&&(W==G||x.isError(W)),x.result_=G=W);if(l79(G)||typeof _.Df.Promise==="function"&&G instanceof _.Df.Promise)K=!0,x.blocked_=!0}catch(e){G=e,x.hadError_=
!0,ilk(x)||(D=!0)}}x.result_=G;K&&(W=(0,_.mW)(x.continue_,x,!0),K=(0,_.mW)(x.continue_,x,!1),G instanceof A3?(RY(G,W,K),G.blocking_=!0):G.then(W,K));D&&(G=new uF8(G),gR7[G.JSC$8028_id_]=G,x.unhandledErrorId_=G.JSC$8028_id_)},A1o=function(){_.xC.call(this)};
_.tR(A1o,_.xC);A1o.prototype.message="Deferred has already fired";A1o.prototype.name="AlreadyCalledError";var UR=function(){_.xC.call(this)};
_.tR(UR,_.xC);UR.prototype.message="Deferred was canceled";UR.prototype.name="CanceledError";var uF8=function(x){this.JSC$8028_id_=_.Df.setTimeout((0,_.mW)(this.throwError,this),0);this.JSC$8028_error_=x};
uF8.prototype.throwError=function(){delete gR7[this.JSC$8028_id_];throw this.JSC$8028_error_;};
var gR7={};var d18={1:"NativeMessagingTransport"},w5h=["pu","lru","pru","lpu","ppu"],N4i=function(){for(var x=10,G=qsZ,D=G.length,K="";x-- >0;)K+=G.charAt(Math.floor(Math.random()*D));return K},qsZ="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var SH=function(x){_.Ya.call(this);this.JSC$8031_domHelper_=x||ei()};
_.tR(SH,_.Ya);SH.prototype.transportType=0;SH.prototype.getWindow=function(){return this.JSC$8031_domHelper_.getWindow()};
SH.prototype.getName=function(){return d18[String(this.transportType)]||""};var nw=function(x,G,D,K,z){SH.call(this,D);this.JSC$8034_channel_=x;this.protocolVersion_=z||2;this.peerHostname_=G||"*";this.JSC$8034_eventHandler_=new _.Ev(this);this.maybeAttemptToConnectTimer_=new _.Pm(100,this.getWindow());this.oneSidedHandshake_=!!K;this.setupAckReceived_=new A3;this.setupAckSent_=new A3;this.JSC$8034_connected_=new A3;this.endpointId_=N4i();this.peerEndpointId_=null;this.oneSidedHandshake_?vRE(this.JSC$8034_channel_)==1?nRu(this.JSC$8034_connected_,this.setupAckReceived_):
nRu(this.JSC$8034_connected_,this.setupAckSent_):(nRu(this.JSC$8034_connected_,this.setupAckReceived_),this.protocolVersion_==2&&nRu(this.JSC$8034_connected_,this.setupAckSent_));RGZ(this.JSC$8034_connected_,this.notifyConnected_,this);this.JSC$8034_connected_.callback(!0);this.JSC$8034_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.tR(nw,SH);nw.prototype.peerProtocolVersion_=null;nw.prototype.initialized_=!1;nw.prototype.transportType=1;var J1s={};nw.prototype.sendTimerId_=0;
var kA9=function(x){var G=x.event_.data;if(typeof G!=="string")return!1;var D=G.indexOf("|"),K=G.indexOf(":");if(D==-1||K==-1)return!1;var z=G.substring(0,D);D=G.substring(D+1,K);G=G.substring(K+1);if(K=iv[z])return K.xpcDeliver(D,G,x.event_.origin),!0;K=fYi(G)[0];for(var y in iv){var c=iv[y];if(vRE(c)==1&&!c.isConnected()&&D=="tp"&&(K=="SETUP"||K=="SETUP_NTPV2")&&tzu(c,x.event_.origin))return delete iv[c.name],c.name=z,iv[z]=c,c.xpcDeliver(D,G),!0}return!1},PXE=function(x){x.protocolVersion_!=2||
x.peerProtocolVersion_!=null&&x.peerProtocolVersion_!=2||x.send("tp","SETUP_NTPV2,"+x.endpointId_);
x.peerProtocolVersion_!=null&&x.peerProtocolVersion_!=1||x.send("tp","SETUP")},ERh=function(x,G){if(x.protocolVersion_!=2||x.peerProtocolVersion_!=null&&x.peerProtocolVersion_!=2||G!=2){if(x.peerProtocolVersion_!=null&&x.peerProtocolVersion_!=1||G!=1)return;
x.send("tp","SETUP_ACK")}else x.send("tp","SETUP_ACK_NTPV2");x.setupAckSent_.fired_||x.setupAckSent_.callback(!0)},hGE=function(x,G){G>x.peerProtocolVersion_&&(x.peerProtocolVersion_=G);
x.peerProtocolVersion_==1&&(x.setupAckSent_.fired_||x.oneSidedHandshake_||x.setupAckSent_.callback(!0),x.peerEndpointId_=null)};
_.a=nw.prototype;_.a.connect=function(){var x=this.getWindow(),G=_.Do(x),D=J1s[G];typeof D!=="number"&&(D=0);D==0&&_.Lz(x.postMessage?x:x.document,"message",kA9,!1,nw);J1s[G]=D+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.a.maybeAttemptToConnect_=function(){var x=vRE(this.JSC$8034_channel_)==0;this.oneSidedHandshake_&&x||this.JSC$8034_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),PXE(this))};
_.a.send=function(x,G){var D=this.JSC$8034_channel_.peerWindowObject_;D&&(this.send=function(K,z){var y=this,c=this.JSC$8034_channel_.name;this.sendTimerId_=QZ(function(){y.sendTimerId_=0;try{var W=D.postMessage?D:D.document;W.postMessage&&W.postMessage(c+"|"+K+":"+z,y.peerHostname_)}catch(e){}},0)},this.send(x,G))};
_.a.notifyConnected_=function(){var x=this.JSC$8034_channel_,G=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;x.isConnected()||x.connectionDelay_&&x.connectionDelay_.isActive()||(x.state_=2,_.kS(x.connectionDelay_),G!==void 0?(x.connectionDelay_=new _.HZ(x.connectCb_,G),x.connectionDelay_.start()):(x.connectionDelay_=null,x.connectCb_()))};
_.a.disposeInternal=function(){if(this.initialized_){var x=this.getWindow(),G=_.Do(x),D=J1s[G];J1s[G]=D-1;D==1&&_.cA(x.postMessage?x:x.document,"message",kA9,!1,nw)}this.sendTimerId_&&(_.Df.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.kS(this.JSC$8034_eventHandler_);delete this.JSC$8034_eventHandler_;_.kS(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$8034_connected_.cancel();delete this.JSC$8034_connected_;delete this.send;nw.superClass_.disposeInternal.call(this)};
var fYi=function(x){x=x.split(",");x[1]=x[1]||null;return x};_.gi=function(x){if(x.getValues&&typeof x.getValues=="function")return x.getValues();if(typeof Map!=="undefined"&&x instanceof Map||typeof Set!=="undefined"&&x instanceof Set)return Array.from(x.values());if(typeof x==="string")return x.split("");if(_.PL(x)){for(var G=[],D=x.length,K=0;K<D;K++)G.push(x[K]);return G}return _.YS.getValues(x)};
_.xY7=function(x){if(x.getKeys&&typeof x.getKeys=="function")return x.getKeys();if(!x.getValues||typeof x.getValues!="function"){if(typeof Map!=="undefined"&&x instanceof Map)return Array.from(x.keys());if(!(typeof Set!=="undefined"&&x instanceof Set)){if(_.PL(x)||typeof x==="string"){var G=[];x=x.length;for(var D=0;D<x;D++)G.push(D);return G}return _.YS.getKeys(x)}}};
_.Gjo=function(x,G,D){if(x.forEach&&typeof x.forEach=="function")x.forEach(G,D);else if(_.PL(x)||typeof x==="string")Array.prototype.forEach.call(x,G,D);else for(var K=_.xY7(x),z=_.gi(x),y=z.length,c=0;c<y;c++)G.call(D,z[c],K&&K[c],x)};var TVh,J3,t3,l_s,DY9,z58,KF9,yOs,a_J;
_.w5=function(x,G){this.JSC$8039_domain_=this.userInfo_=this.scheme_="";this.JSC$8039_port_=null;this.fragment_=this.JSC$8039_path_="";this.JSC$8039_ignoreCase_=!1;var D;x instanceof _.w5?(this.JSC$8039_ignoreCase_=G!==void 0?G:x.JSC$8039_ignoreCase_,_.uv(this,x.scheme_),this.userInfo_=x.userInfo_,_.di(this,x.JSC$8039_domain_),_.wi(this,x.JSC$8039_port_),_.q_(this,x.getPath()),_.N_(this,x.JSC$8039_queryData_.clone()),_.vA(this,x.fragment_)):x&&(D=_.v6(String(x)))?(this.JSC$8039_ignoreCase_=!!G,_.uv(this,
D[1]||"",!0),this.userInfo_=J3(D[2]||""),_.di(this,D[3]||"",!0),_.wi(this,D[4]),_.q_(this,D[5]||"",!0),_.N_(this,D[6]||"",!0),_.vA(this,D[7]||"",!0)):(this.JSC$8039_ignoreCase_=!!G,this.JSC$8039_queryData_=new _.fw(null,this.JSC$8039_ignoreCase_))};
_.w5.prototype.toString=function(){var x=[],G=this.scheme_;G&&x.push(t3(G,DY9,!0),":");var D=this.JSC$8039_domain_;if(D||G=="file")x.push("//"),(G=this.userInfo_)&&x.push(t3(G,DY9,!0),"@"),x.push(_.gT(D).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),D=this.JSC$8039_port_,D!=null&&x.push(":",String(D));if(D=this.getPath())this.JSC$8039_domain_&&D.charAt(0)!="/"&&x.push("/"),x.push(t3(D,D.charAt(0)=="/"?KF9:z58,!0));(D=this.JSC$8039_queryData_.toString())&&x.push("?",D);(D=this.fragment_)&&x.push("#",t3(D,
a_J));return x.join("")};
_.w5.prototype.resolve=function(x){var G=this.clone(),D=!!x.scheme_;D?_.uv(G,x.scheme_):D=!!x.userInfo_;D?G.userInfo_=x.userInfo_:D=!!x.JSC$8039_domain_;D?_.di(G,x.JSC$8039_domain_):D=x.JSC$8039_port_!=null;var K=x.getPath();if(D)_.wi(G,x.JSC$8039_port_);else if(D=!!x.JSC$8039_path_){if(K.charAt(0)!="/")if(this.JSC$8039_domain_&&!this.JSC$8039_path_)K="/"+K;else{var z=G.getPath().lastIndexOf("/");z!=-1&&(K=G.getPath().slice(0,z+1)+K)}z=K;if(z==".."||z==".")K="";else if(_.Td(z,"./")||_.Td(z,"/.")){K=
_.zd(z,"/");z=z.split("/");for(var y=[],c=0;c<z.length;){var W=z[c++];W=="."?K&&c==z.length&&y.push(""):W==".."?((y.length>1||y.length==1&&y[0]!="")&&y.pop(),K&&c==z.length&&y.push("")):(y.push(W),K=!0)}K=y.join("/")}else K=z}D?_.q_(G,K):D=x.JSC$8039_queryData_.toString()!=="";D?_.N_(G,x.JSC$8039_queryData_.clone()):D=!!x.fragment_;D&&_.vA(G,x.fragment_);return G};
_.w5.prototype.clone=function(){return new _.w5(this)};
_.uv=function(x,G,D){x.scheme_=D?J3(G,!0):G;x.scheme_&&(x.scheme_=x.scheme_.replace(/:$/,""));return x};
_.di=function(x,G,D){x.JSC$8039_domain_=D?J3(G,!0):G;return x};
_.wi=function(x,G){if(G){G=Number(G);if(isNaN(G)||G<0)throw Error("Ta`"+G);x.JSC$8039_port_=G}else x.JSC$8039_port_=null;return x};
_.w5.prototype.getPath=function(){return this.JSC$8039_path_};
_.q_=function(x,G,D){x.JSC$8039_path_=D?J3(G,!0):G;return x};
_.N_=function(x,G,D){G instanceof _.fw?(x.JSC$8039_queryData_=G,oSi(x.JSC$8039_queryData_,x.JSC$8039_ignoreCase_)):(D||(G=t3(G,yOs)),x.JSC$8039_queryData_=new _.fw(G,x.JSC$8039_ignoreCase_));return x};
_.Ny=function(x,G,D){x.JSC$8039_queryData_.set(G,D);return x};
_.qy=function(x,G){return x.JSC$8039_queryData_.get(G)};
_.vA=function(x,G,D){x.fragment_=D?J3(G):G;return x};
_.kh=function(x){_.Ny(x,"zx",dM());return x};
_.wM=function(x,G){return x instanceof _.w5?x.clone():new _.w5(x,G)};
TVh=function(x,G){x instanceof _.w5||(x=_.wM(x));G instanceof _.w5||(G=_.wM(G));return x.resolve(G)};
J3=function(x,G){return x?G?decodeURI(x.replace(/%25/g,"%2525")):decodeURIComponent(x):""};
t3=function(x,G,D){return typeof x==="string"?(x=encodeURI(x).replace(G,l_s),D&&(x=x.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),x):null};
l_s=function(x){x=x.charCodeAt(0);return"%"+(x>>4&15).toString(16)+(x&15).toString(16)};
DY9=/[#\/\?@]/g;z58=/[#\?:]/g;KF9=/[#\?]/g;yOs=/[#\?@]/g;a_J=/#/g;_.fw=function(x,G){this.count_=this.keyMap_=null;this.encodedQuery_=x||null;this.JSC$8040_ignoreCase_=!!G};
_.PA=function(x){x.keyMap_||(x.keyMap_=new Map,x.count_=0,x.encodedQuery_&&D09(x.encodedQuery_,function(G,D){x.add(kT(G),D)}))};
_.a=_.fw.prototype;_.a.getCount=function(){_.PA(this);return this.count_};
_.a.add=function(x,G){_.PA(this);this.encodedQuery_=null;x=ER(this,x);var D=this.keyMap_.get(x);D||this.keyMap_.set(x,D=[]);D.push(G);this.count_+=1;return this};
_.a.remove=function(x){_.PA(this);x=ER(this,x);return this.keyMap_.has(x)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(x).length,this.keyMap_.delete(x)):!1};
_.a.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.a.isEmpty=function(){_.PA(this);return this.count_==0};
_.a.containsKey=function(x){_.PA(this);x=ER(this,x);return this.keyMap_.has(x)};
_.a.containsValue=function(x){var G=this.getValues();return _.qL(G,x)};
_.a.forEach=function(x,G){_.PA(this);this.keyMap_.forEach(function(D,K){D.forEach(function(z){x.call(G,z,K,this)},this)},this)};
_.a.getKeys=function(){_.PA(this);for(var x=Array.from(this.keyMap_.values()),G=Array.from(this.keyMap_.keys()),D=[],K=0;K<G.length;K++)for(var z=x[K],y=0;y<z.length;y++)D.push(G[K]);return D};
_.a.getValues=function(x){_.PA(this);var G=[];if(typeof x==="string")this.containsKey(x)&&(G=G.concat(this.keyMap_.get(ER(this,x))));else{x=Array.from(this.keyMap_.values());for(var D=0;D<x.length;D++)G=G.concat(x[D])}return G};
_.a.set=function(x,G){_.PA(this);this.encodedQuery_=null;x=ER(this,x);this.containsKey(x)&&(this.count_-=this.keyMap_.get(x).length);this.keyMap_.set(x,[G]);this.count_+=1;return this};
_.a.get=function(x,G){if(!x)return G;x=this.getValues(x);return x.length>0?String(x[0]):G};
_.cOE=function(x,G,D){x.remove(G);D.length>0&&(x.encodedQuery_=null,x.keyMap_.set(ER(x,G),_.kC(D)),x.count_+=D.length)};
_.fw.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var x=[],G=Array.from(this.keyMap_.keys()),D=0;D<G.length;D++){var K=G[D],z=_.gT(K);K=this.getValues(K);for(var y=0;y<K.length;y++){var c=z;K[y]!==""&&(c+="="+_.gT(K[y]));x.push(c)}}return this.encodedQuery_=x.join("&")};
_.fw.prototype.clone=function(){var x=new _.fw;x.encodedQuery_=this.encodedQuery_;this.keyMap_&&(x.keyMap_=new Map(this.keyMap_),x.count_=this.count_);return x};
var ER=function(x,G){G=String(G);x.JSC$8040_ignoreCase_&&(G=G.toLowerCase());return G},oSi=function(x,G){G&&!x.JSC$8040_ignoreCase_&&(_.PA(x),x.encodedQuery_=null,x.keyMap_.forEach(function(D,K){var z=K.toLowerCase();
K!=z&&(this.remove(K),_.cOE(this,z,D))},x));
x.JSC$8040_ignoreCase_=G};
_.fw.prototype.extend=function(x){for(var G=0;G<arguments.length;G++)_.Gjo(arguments[G],function(D,K){this.add(K,D)},this)};var h3=function(x,G){X6.call(this);for(var D=0,K;K=w5h[D];D++)if(K in x&&!/^https?:\/\//.test(x[K]))throw Error("Va`"+x[K]+"`"+K);this.cfg_=x;this.name=this.cfg_.cn||N4i();this.JSC$8035_domHelper_=G||ei();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.Ev(this);x.lpu=x.lpu||x0s(this.JSC$8035_domHelper_.getWindow().location.href)+"/robots.txt";x.ppu=x.ppu||x0s(x.pu||"")+"/robots.txt";iv[this.name]=this;h4J(window,"unload",T0Z)||Q2(window,"unload",T0Z)};
_.tR(h3,X6);var WFh=RegExp("^%*tp$"),e5s=RegExp("^%+tp$");_.a=h3.prototype;_.a.connectionDelay_=null;_.a.peerWindowDeferred_=null;_.a.transport_=null;_.a.state_=1;_.a.isConnected=function(){return this.state_==2};
_.a.peerWindowObject_=null;_.a.iframeElement_=null;_.a.connect=function(x){this.connectCb_=x||_.ld;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?RGZ(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.a.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$8035_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var x=this.iframeElement_.contentWindow;x||(x=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=x}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$8035_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new nw(this,this.cfg_.ph,this.JSC$8035_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()()};
_.a.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.kS(this.transport_);this.connectCb_=this.transport_=null;_.kS(this.connectionDelay_);this.connectionDelay_=null};
_.a.send=function(x,G){if(this.isConnected()){try{var D=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(z){D=!1}if(D){_.G7(G)&&(G=(0,_.VZ)(G));D=this.transport_;var K=D.send;WFh.test(x)&&(x="%"+x);x=x.replace(/[%:|]/g,encodeURIComponent);K.call(D,x,G)}else this.close()}};
_.a.xpcDeliver=function(x,G,D){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.mW)(this.xpcDeliver,this,x,G,D));else if(tzu(this,D)&&!this.isDisposed()&&this.state_!=3)if(x&&x!="tp")this.isConnected()&&(x=x.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),x=e5s.test(x)?x.substring(1):x,x=this.getService(x,G))&&(G=j0q(G,x.objectPayload),G!=null&&x.callback(G));else switch(x=this.transport_,D=fYi(G),G=D[1],D[0]){case "SETUP_ACK":hGE(x,1);x.setupAckReceived_.fired_||x.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":x.protocolVersion_==2&&(hGE(x,2),x.setupAckReceived_.fired_||x.setupAckReceived_.callback(!0));break;case "SETUP":hGE(x,1);ERh(x,1);break;case "SETUP_NTPV2":x.protocolVersion_==2&&(D=x.peerProtocolVersion_,hGE(x,2),ERh(x,2),D!=1&&x.peerEndpointId_==null||x.peerEndpointId_==G||PXE(x),x.peerEndpointId_=G)}};
var vRE=function(x){var G=x.cfg_.role;return typeof G==="number"?G:window.parent==x.peerWindowObject_?1:0},tzu=function(x,G){var D=x.cfg_.ph;
return _.y3(G==null?"":String(G))||_.y3(D==null?"":String(D))||G==x.cfg_.ph};
h3.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete iv[this.name];_.kS(this.peerLoadHandler_);delete this.peerLoadHandler_;h3.superClass_.disposeInternal.call(this)};
var T0Z=function(){for(var x in iv)_.kS(iv[x])},iv={};var Mi0=function(x,G){this.JSC$8049_win=x;this.allowAdsHttpEndpoint=G;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$8049_domHelper=ei(x);this.scrollManager=new FVZ(x);this.accessibilityManager=new s09(x);Z2E(this)},Z2E=function(x){var G=function(){x.allowAdsPopup&&x.allowAdsPopup.style.setProperty("display","none","important");
x.wallElement.style.setProperty("display","","important");YsZ(x.accessibilityManager);$1s(x.accessibilityManager,x.wallElement.querySelector(".fc-dialog-container"),!1,!1,x.wallElement.querySelector(".fc-button-whitelist"));var z=x.scrollManager;z.JSC$8007_domHelper.JSC$7337_document_.body.style.overflow=z.originalBodyOverflow};
x.allowAdsPopup=x.JSC$8049_domHelper.JSC$7339_createDom("DIV",{"class":"fc-whitelist-root"});x.allowAdsPopup.style.setProperty("display","none","important");x.JSC$8049_domHelper.appendChild(x.JSC$8049_domHelper.JSC$7337_document_.body,x.allowAdsPopup);var D=x.JSC$8049_domHelper.JSC$7339_createDom("DIV",{"class":"fc-dialog-overlay"});x.JSC$8049_domHelper.appendChild(x.allowAdsPopup,D);var K=x.JSC$8049_domHelper.JSC$7339_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:G});x.JSC$8049_domHelper.appendChild(x.allowAdsPopup,
K);D=x.JSC$8049_domHelper.JSC$7339_createDom("IFRAME");D.className="fc-whitelist-dialog";D.frameBorder="0";D.id="fc-whitelist-iframe";D.tabIndex="0";_.C9(D,x.allowAdsHttpEndpoint);x.JSC$8049_domHelper.appendChild(K,D);K={};K.pu=_.lH(x.allowAdsHttpEndpoint).toString();K.tp=1;K.cn="fc-whitelist-channel";K.ifrid=D.id;K.osh=!0;x.allowAdsCrossPageChannel=new h3(K);x.allowAdsCrossPageChannel.registerService("close",G);x.allowAdsCrossPageChannel.registerService("refresh",function(){x.JSC$8049_win.location.reload()});
x.allowAdsCrossPageChannel.registerService("resize",function(z){if(z){var y=x.allowAdsPopup.querySelector(".fc-whitelist-dialog");z.width&&y.style.setProperty("width",z.width,"important");z.height&&y.style.setProperty("height",z.height,"important")}},!0);
x.allowAdsCrossPageChannel.connect()};
Mi0.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$8049_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var xJ=window,GX=document,QhE=xJ.location,puJ=function(){},Vi7=/\[native code\]/,Ki=function(x,G,D){return x[G]=x[G]||D},b2k=function(x){x=x.sort();
for(var G=[],D=void 0,K=0;K<x.length;K++){var z=x[K];z!=D&&G.push(z);D=z}return G},zX=function(){var x;
if((x=Object.create)&&Vi7.test(x))x=x(null);else{x={};for(var G in x)x[G]=void 0}return x},a6=Ki(xJ,"gapi",{});var o6={};o6=Ki(xJ,"___jsl",zX());Ki(o6,"I",0);Ki(o6,"hel",10);var LF0=function(){var x=QhE.href;if(o6.dpo)var G=o6.h;else{G=o6.h;var D=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),K=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(x=x&&(D.exec(x)||K.exec(x)))try{G=decodeURIComponent(x[2])}catch(z){}}return G},B0J=function(x){var G=Ki(o6,"PQ",[]);
o6.PQ=[];var D=G.length;if(D===0)x();else for(var K=0,z=function(){++K===D&&x()},y=0;y<D;y++)G[y](z)},rOi=function(x){return Ki(Ki(o6,"H",zX()),x,zX())};var yH=function(x){this.JSC$8051_obj_=x};
yH.prototype.value=function(){return this.JSC$8051_obj_};
yH.prototype.getWidth=function(){return this.JSC$8051_obj_.width};
yH.prototype.getHeight=function(){return this.JSC$8051_obj_.height};
yH.prototype.getStyle=function(){return this.JSC$8051_obj_.style};var shs=function(x){this.JSC$8054_obj_=x||{}};
_.a=shs.prototype;_.a.value=function(){return this.JSC$8054_obj_};
_.a.setUrl=function(x){this.JSC$8054_obj_.url=x;return this};
_.a.getUrl=function(){return this.JSC$8054_obj_.url};
_.a.getStyle=function(){return this.JSC$8054_obj_.style};
_.a.setId=function(x){this.JSC$8054_obj_.id=x;return this};
_.a.getId=function(){return this.JSC$8054_obj_.id};
_.a.getContext=function(){return this.JSC$8054_obj_.context};
var YaZ=function(x){x.JSC$8054_obj_.attributes=x.JSC$8054_obj_.attributes||{};return new yH(x.JSC$8054_obj_.attributes)};var mYE=function(){shs.apply(this,arguments)};
_.m(mYE,shs);var H29=Ki(o6,"perf",zX());Ki(H29,"g",zX());var $YJ=Ki(H29,"i",zX());Ki(H29,"r",[]);zX();zX();var CNq=function(x,G,D){G&&G.length>0&&(G=FF0(G),D&&D.length>0&&(G+="___"+FF0(D)),G.length>28&&(G=G.substr(0,28)+(G.length-28)),D=G,G=Ki($YJ,"_p",zX()),Ki(G,D,zX())[x]=(new Date).getTime(),G=H29.r,typeof G==="function"?G(x,"_p",D):G.push([x,"_p",D]))},FF0=function(x){return x.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var I_E=zX(),jhZ=[],ll=function(x){throw Error("Ya`"+x);};
jhZ.push(["jsl",function(x){for(var G in x)if(Object.prototype.hasOwnProperty.call(x,G)){var D=x[G];typeof D=="object"?o6[G]=Ki(o6,G,[]).concat(D):Ki(o6,G,D)}if(G=x.u)x=Ki(o6,"us",[]),x.push(G),(G=/^https:(.*)$/.exec(G))&&x.push("http:"+G[1])}]);
var O2u=/^(\/[a-zA-Z0-9_\-]+)+$/,XuJ=[/\/amp\//,/\/amp$/,/^\/amp$/],AOZ=/^[a-zA-Z0-9\-_\.,!]+$/,UYi=/^gapi\.loaded_[0-9]+$/,R5J=/^[a-zA-Z0-9,._-]+$/,gSE=function(x,G,D,K,z){var y=x.split(";"),c=y.shift(),W=I_E[c],e=null;W?e=W(y,G,D,K):ll("no hint processor for: "+c);e||ll("failed to generate load url");G=e;D=G.match(SaZ);(K=G.match(nS9))&&K.length===1&&i2i.test(G)&&D&&D.length===1||ll("failed sanity: "+x);try{x="?";if(z&&z.length>0){Ku(z);var Q=z.join(",");e=e+"?le="+Q;x="&"}if(o6.rol){var p=o6.ol;
p&&p.length&&(e=""+e+x+"ol="+p.length)}}catch(V){}return e},wuq=function(x,G,D,K){x=unZ(x);
UYi.test(D)||ll("invalid_callback");G=dYZ(G);K=K&&K.length?dYZ(K):null;var z=function(y){return encodeURIComponent(y).replace(/%2C/g,",")};
return[encodeURIComponent(x.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",z(x.version),"/m=",z(G),K?"/exm="+z(K):"","/rt=j/sv=1/d=1/ed=1",x.activeMods?"/am="+z(x.activeMods):"",x.resourceSig?"/rs="+z(x.resourceSig):"",x.zcms?"/t="+z(x.zcms):"","/cb=",z(D)].join("")},unZ=function(x){x.charAt(0)!=="/"&&ll("relative path");
for(var G=x.substring(1).split("/"),D=[];G.length;){x=G.shift();if(!x.length||x.indexOf(".")==0)ll("empty/relative directory");else if(x.indexOf("=")>0){G.unshift(x);break}D.push(x)}x={};for(var K=0,z=G.length;K<z;++K){var y=G[K].split("="),c=decodeURIComponent(y[0]),W=decodeURIComponent(y[1]);y.length==2&&c&&W&&(x[c]=x[c]||W)}G="/"+D.join("/");O2u.test(G)||ll("invalid_prefix");D=0;for(K=XuJ.length;D<K;++D)XuJ[D].test(G)&&ll("invalid_prefix");D=qaZ(x,"k",!0);K=qaZ(x,"am");z=qaZ(x,"rs");x=qaZ(x,"t");
return{pathPrefix:G,version:D,activeMods:K,resourceSig:z,zcms:x}},dYZ=function(x){for(var G=[],D=0,K=x.length;D<K;++D){var z=x[D].replace(/\./g,"_").replace(/-/g,"_");
R5J.test(z)&&G.push(z)}return G.join(",")},qaZ=function(x,G,D){x=x[G];
!x&&D&&ll("missing: "+G);if(x){if(AOZ.test(x))return x;ll("invalid: "+G)}return null},i2i=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,nS9=/\/cb=/g,SaZ=/\/\//g;
I_E.m=function(x,G,D,K){(x=x[0])||ll("missing_hint");return"https://apis.google.com"+wuq(x,G,D,K)};
var N0h=decodeURI("%73cript"),vSu=/^[-+_0-9\/A-Za-z]+={0,2}$/,JOE=function(x,G){for(var D=[],K=0;K<x.length;++K){var z=x[K],y;if(y=z){a:{for(y=0;y<G.length;y++)if(G[y]===z)break a;y=-1}y=y<0}y&&D.push(z)}return D},f_q=function(){var x=o6.nonce;
return x!==void 0?x&&x===String(x)&&x.match(vSu)?x:o6.nonce=null:GX.querySelector?(x=GX.querySelector("script[nonce]"))?(x=x.nonce||x.getAttribute("nonce")||"",x&&x===String(x)&&x.match(vSu)?o6.nonce=x:o6.nonce=null):null:null},PNZ=function(x){if(GX.readyState!="loading")tih(x);
else{var G=f_q(),D="";G!==null&&(D=' nonce="'+G+'"');x="<"+N0h+' src="'+encodeURI(x)+'"'+D+"></"+N0h+">";GX.write(kjZ?kjZ.createHTML(x):x)}},tih=function(x){var G=GX.createElement(N0h);
G.setAttribute("src",kjZ?kjZ.createScriptURL(x):x);x=f_q();x!==null&&G.setAttribute("nonce",x);G.async="true";(x=GX.getElementsByTagName(N0h)[0])?x.parentNode.insertBefore(G,x):(GX.head||GX.body||GX.documentElement).appendChild(G)},h5J=function(x,G,D){ESJ(function(){var K=G===LF0()?Ki(a6,"_",zX()):zX();
K=Ki(rOi(G),"_",K);x(K)},D)},TqL=function(x,G){var D=G||{};
typeof G=="function"&&(D={},D.callback=G);var K=(G=D)&&G._c;if(K)for(var z=0;z<jhZ.length;z++){var y=jhZ[z][0],c=jhZ[z][1];c&&Object.prototype.hasOwnProperty.call(K,y)&&c(K[y],x,G)}G=[];x?G=x.split(":"):D.features&&(G=D.features);if(!(x=D.h)&&(x=LF0(),!x))throw Error("Za");xys(G||[],D,x)},xys=function(x,G,D){x=b2k(x)||[];
var K=G.callback,z=G.config,y=G.timeout,c=G.ontimeout,W=G.onerror,e=void 0;typeof W=="function"&&(e=W);var Q=null,p=!1;if(y&&!c||!y&&c)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";W=Ki(rOi(D),"r",[]).sort();var V=Ki(rOi(D),"L",[]).sort(),L=o6.le||[],r=[].concat(W),H=function(f,v){if(p)return 0;xJ.clearTimeout(Q);V.push.apply(V,O);var P=((a6||{}).config||{}).update;P?P(z):z&&Ki(o6,"cu",[]).push(z);if(v){CNq("me0",f,r);try{h5J(v,D,e)}finally{CNq("me1",f,r)}}return 1};
y>0&&(Q=xJ.setTimeout(function(){p=!0;c()},y));
var O=JOE(x,V);if(O.length){O=JOE(x,W);var A=Ki(o6,"CP",[]),g=A.length;A[g]=function(f){if(!f)return 0;CNq("ml1",O,r);var v=function(k){A[g]=null;H(O,f)&&B0J(function(){K&&K();k()})},P=function(){var k=A[g+1];
k&&k()};
g>0&&A[g-1]?A[g]=function(){v(P)}:v(P)};
if(O.length){var u="loaded_"+o6.I++;a6[u]=function(f){A[g](f);a6[u]=null};
x=gSE(D,O,"gapi."+u,W,L);W.push.apply(W,O);CNq("ml0",O,r);G.sync||xJ.___gapisync?PNZ(x):tih(x)}else A[g](puJ)}else H(O)&&K&&K()},GHu;
var Dyk=null,KWZ=_.Df.trustedTypes;if(KWZ&&KWZ.createPolicy){try{Dyk=KWZ.createPolicy("goog#gapi",{createHTML:rdn,createScript:rdn,createScriptURL:rdn})}catch(x){_.Df.console&&_.Df.console.error(x.message)}GHu=Dyk}else GHu=Dyk;var kjZ=GHu,ESJ=function(x,G){if(o6.hee&&o6.hel>0)try{return x()}catch(D){G&&G(D),o6.hel--,TqL("debug_error",function(){try{window.___jsl.hefn(D)}catch(K){throw D;}})}else try{return x()}catch(D){throw G&&G(D),D;
}},zCE=a6.load;
zCE&&Ki(o6,"ol",[]).push(zCE);a6.load=function(x,G){return ESJ(function(){return TqL(x,G)})};var C4;var aEE=function(x,G){this.serviceId_=x;this.moduleId_=G||null};
aEE.prototype.toString=function(){return this.serviceId_};
aEE.prototype.getModuleId=function(){return this.moduleId_};var zeO=new aEE("MpJwZc","MpJwZc");var oqf=new _.z2("a"),agC=function(x,G,D){_.aY.call(this,x,G);this.node=G;this.kind=D};
_.m(agC,_.aY);var oau=function(){this.JSC$8067_keys_={};this.urlPrefix_="";this.JSC$8067_queryData_={}};
oau.prototype.toString=function(){var x=this.urlPrefix_+yE8(this),G=_.W0(this.JSC$8067_queryData_),D="";G!=""&&(D="?"+G);return x+D};
var lE7=function(x){x=c$(x,"md");return!!x&&x!=="0"},yE8=function(x){var G=[],D=(0,_.mW)(function(K){this.JSC$8067_keys_[K]!==void 0&&G.push(K+"="+this.JSC$8067_keys_[K])},x);
lE7(x)?(D("md"),D("k"),D("ck"),D("am"),D("rs"),D("gssmodulesetproto"),D("slk"),D("dti")):(D("sdch"),D("k"),D("ck"),D("am"),D("rt"),"d"in x.JSC$8067_keys_||TX(x,"d","0"),D("d"),D("exm"),D("excm"),(x.JSC$8067_keys_.excm||x.JSC$8067_keys_.exm)&&G.push("ed=1"),D("im"),D("dg"),D("sm"),c$(x,"br")!="1"&&c$(x,"br")!="0"||D("br"),D("br-d"),c$(x,"rb")=="1"&&D("rb"),c$(x,"zs")!=="0"&&D("zs"),cE9(x)!==""&&D("wt"),D("gssmodulesetproto"),D("ujg"),D("sp"),D("rs"),D("cb"),D("ee"),D("slk"),D("dti"),D("m"));return G.join("/")},
c$=function(x,G){return x.JSC$8067_keys_[G]?x.JSC$8067_keys_[G]:null},TX=function(x,G,D){D?x.JSC$8067_keys_[G]=D:delete x.JSC$8067_keys_[G]},TMs=function(x,G){x.urlPrefix_=G},WW9=function(x,G){G&&G.length>0?(G.sort(),TX(x,"exm",G.join(","))):TX(x,"exm",null)},eCZ=function(x,G){G&&G.length>0?(G.sort(),TX(x,"excm",G.join(","))):TX(x,"excm",null)},Z4q=function(x){return(x=c$(x,"m"))?x.split(","):[]},cE9=function(x){switch(c$(x,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},MBE=function(x,G){var D=Object.keys(G).filter(function(K){return!!Object.keys(G[K]).length}).map(function(K){var z=Object.keys(G[K]);
z.length>1&&z.sort();return K+":"+z.join(",")});
D.sort();TX(x,"ee",D.join(";"))},qoC=function(x){var G=c$(x,"ee");
if(!G)return{};x={};G=_.l(G.split(";"));for(var D=G.next();!D.done;D=G.next()){var K=_.l(D.value.split(":"));D=K.next().value;K=K.next().value;x[D]={};K=_.l(K.split(","));for(var z=K.next();!z.done;z=K.next())x[D][z.value]=!0}return x},QKq=function(x){delete x.JSC$8067_keys_.m;
delete x.JSC$8067_keys_.exm;delete x.JSC$8067_keys_.ed};
oau.prototype.clone=function(){var x=new oau;x.JSC$8067_keys_=Object.assign({},this.JSC$8067_keys_);x.urlPrefix_=this.urlPrefix_;x.JSC$8067_queryData_=Object.assign({},this.JSC$8067_queryData_);return x};
var NT$=function(x,G){G=G===void 0?!0:G;var D=pZE(x),K=new oau,z=_.v6(D)[5];_.YS.forEach(VBJ,function(c){var W=z.match("/"+c+"=([^/]+)");W&&TX(K,c,W[1])});
var y="";y=x.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";TMs(K,x.substr(0,x.indexOf(y)+y.length));if(!G)return K;(x=_.v6(D)[6]||null)&&D09(x,function(c,W){K.JSC$8067_queryData_[c]=W});
return K},uQh=function(x){x=_.c0(pZE(x));
return x===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(x)?/\/k=/.test(x):!1},pZE=function(x){return x.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?x.substr(65):x},VBJ={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",MASKED_MODS:"mm",RESPONSE_TYPE:"rt",INCLUDE_DEPS:"d",EXCLUDED_DEPS:"ed",SPEC_VERSION:"sv",DEOBFUSCATION_VERSION:"deob",CALLBACK:"cb",SIGNATURE:"rs",SDCH:"sdch",INSERT_MARKERS:"im",DEPENDENCY_GRAPH:"dg",ENABLE_BROTLI_ENCODING:"br",ENABLE_BROTLI_DICTIONARY_ENCODING:"br-d",ENABLE_RBROTLI_ENCODING:"rb",ZSTD_LEVEL:"zs",WRAP_IN_TRY:"wt",EXTRA_EDGES:"ee",SOURCE_MAP:"sm",METADATA:"md",GSS_MODULE_SET_PROTO:"gssmodulesetproto",
USE_JS_GRAPH_FOR_COMBINED_REQUESTS:"ujg",USE_INSTALL_CSS_PROTO:"sp",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},b4u=RegExp("^loaded_(g|h)?[_\\d]+$");_.W$=function(x){this.JSC$8079_id_=x;this.opts={}};
_.W$.prototype.JSC$8081_setLabel=function(x){this.label_=x||void 0;return this};
_.W$.prototype.addUploadMetadata=function(x,G){var D=this.opts.data||{};D[x]=G;this.opts.data=D;return this};
var LW8=function(x){var G=_.YS.filter(x.opts,function(D){return D!==null});
G=_.YS.isEmpty(G)?null:G;x=[x.JSC$8079_id_,x.label_,G];G=b$V(x);return x=x.slice(0,G+1)};
_.W$.prototype.toString=function(){var x=LW8(this);return"("+_.Hu(x,function(G){return JSON.stringify(G)}).join(",")+")"};
_.W$.prototype.getId=function(){return this.JSC$8079_id_};
_.W$.prototype.getOptions=function(){return _.YS.clone(this.opts)};var eu=function(){_.W$.call(this,"image-search")};
_.m(eu,_.W$);eu.prototype.setSize=function(x){this.opts.imgsz=x;return this};
eu.prototype.JSC$8081_setLabel=function(x){_.W$.prototype.JSC$8081_setLabel.call(this,x);return this};
eu.prototype.addUploadMetadata=function(x,G){_.W$.prototype.addUploadMetadata.call(this,x,G);return this};var ZC=function(){_.W$.call(this,"maps")};
_.m(ZC,_.W$);ZC.prototype.setZoom=function(x){this.opts.zoom=x;return this};
ZC.prototype.JSC$8081_setLabel=function(x){_.W$.prototype.JSC$8081_setLabel.call(this,x);return this};
ZC.prototype.addUploadMetadata=function(x,G){_.W$.prototype.addUploadMetadata.call(this,x,G);return this};_.M9=function(){_.W$.call(this,"photos")};
_.m(_.M9,_.W$);_.M9.prototype.JSC$8081_setLabel=function(x){_.W$.prototype.JSC$8081_setLabel.call(this,x);return this};
_.M9.prototype.addUploadMetadata=function(x,G){_.W$.prototype.addUploadMetadata.call(this,x,G);return this};var QH=function(){_.W$.call(this,"url")};
_.m(QH,_.W$);var BMs=function(){var x=new QH;x.opts.type="video";x.opts.site="youtube.com";return x};
QH.prototype.JSC$8081_setLabel=function(x){_.W$.prototype.JSC$8081_setLabel.call(this,x);return this};
QH.prototype.addUploadMetadata=function(x,G){_.W$.prototype.addUploadMetadata.call(this,x,G);return this};var pi=function(){_.W$.call(this,"video-search")};
_.m(pi,_.W$);var rEh=function(){var x=new pi;x.opts.site="youtube.com";return x};
pi.prototype.JSC$8081_setLabel=function(x){_.W$.prototype.JSC$8081_setLabel.call(this,x);return this};
pi.prototype.addUploadMetadata=function(x,G){_.W$.prototype.addUploadMetadata.call(this,x,G);return this};var sKk=function(){_.W$.call(this,"web")};
_.m(sKk,_.W$);sKk.prototype.JSC$8081_setLabel=function(x){_.W$.prototype.JSC$8081_setLabel.call(this,x);return this};
sKk.prototype.addUploadMetadata=function(x,G){_.W$.prototype.addUploadMetadata.call(this,x,G);return this};var VH=function(){this.items_=[];this.opts={}},YPZ=function(x){switch(x){case "image-search":return new eu;
case "maps":return new ZC;case "photos":return new _.M9;case "url":return new QH;case "video-search":return new pi;case "web":return new sKk}return new _.W$(x)};
VH.prototype.addView=function(x){this.items_.push(typeof x==="string"?YPZ(x):x);return this};
var myZ=function(x){return"("+_.Hu(x.items_,function(G){return G.toString()}).join(",")+")"};
VH.prototype.toString=function(){return myZ(this)};
VH.prototype.getViews=function(x,G){G=G===void 0?[]:G;for(var D=this.items_,K=0;K<D.length;K++){var z=D[K];z instanceof VH?z.getViews(x,G):z.getId()==x&&G.push(z)}return G};
VH.prototype.getOptions=function(){return _.YS.clone(this.opts)};var SB=function(x){this.basePickerUrl_=x||"https://docs.google.com/picker";this.nav_=new VH};
SB.prototype.nav_=null;SB.prototype.addView=function(x){this.nav_.addView(x);return this};
SB.prototype.getBaseUrl=function(){return this.basePickerUrl_};
SB.prototype.getViews=function(x){return this.nav_.getViews(x)};
_.H4u=function(x,G){x.callback_=G;return x};var $yh=new Map;$yh.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");$yh.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");$yh.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var FWs=new Set;FWs.add("application/vnd.google-apps.kix");FWs.add("application/vnd.google-apps.ritz");FWs.add("application/vnd.google-apps.punch");var ga8=function(x,G,D){var K=D&&_.rP(D,1);D=CPE(D);var z=x[0].getId();switch(_.sk(z,2)){case 13:return IEZ(x,G,K,D);case 3:return jKo(x,G,K,D);case 10:return O4s(x,G,K,D);case 27:return O4s(x,G,K,D);case 12:return XZq(x,G);case 2:return AE0(x,G,K,D);case 5:return Uy7(x,G,K,D);case 9:return RCZ(x,G,K,D);case 6:return SPZ(x,G,K,D);case 25:return naJ(x,G,K,D);case 1:return _.lr(x[0],VZk,26)?i4Z(x,G,K,D):O4s(x,G,K,D);default:return{}}},SPZ=function(x,G,D,K){x=x.map(function(z){return{id:z.getId().getId(),
serviceId:"youtube",name:z.getName(),description:_.rP(z,3),type:bl(z),lastEditedUtc:_.ps9(_.hv(z,_.OH,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:z.getUrl(),embedUrl:_.rP(z,13),thumbnails:Li(dg(z))}});
return{action:G,docs:x,viewToken:K,view:D||"youtube",v2Translated:!0}},AE0=function(x,G,D,K){var z=x.map(function(y){var c=y.getId().getId(),W=_.rP(y,7),e=y.getName(),Q=bl(y),p=_.ps9(_.hv(y,_.OH,12)).getTime(),V=y.getUrl(),L=Number(U8L(y)),r=_.rP(y,3),H=_.rP(y,11),O=Li(dg(y));
var A=_.hv(y,wg,21);A=_.br(A,1);var g=_.hv(y,wg,21);g=_.rP(g,10);var u=_.rP(y,13);var f=_.hv(y,wg,21);f=_.br(f,9);var v=_.hv(y,wg,21);v=_.rP(v,11);c={id:c,serviceId:"docs",mimeType:W,name:e,type:Q,lastEditedUtc:p,url:V,sizeBytes:L,description:r,iconUrl:H,thumbnails:O,isShared:A,downloadUrl:g,embedUrl:u,copyable:f,resourceKey:v};W=_.hv(y,wg,21);_.br(W,12)&&(c.uploadState="success",c.isNew=!0);W=_.hv(y,wg,21);_.lr(W,id,3)&&(y=_.hv(y,wg,21),y=_.hv(y,id,3),_.lr(y,Sw,2)&&(W=AE(y.getDuration().getSeconds()),
e=y.getDuration(),e=_.GH(e,2),c.duration=W+e/1E9),c.aspectRatio=y.getAspectRatio());return c});
return{action:G,docs:z,viewToken:K,view:D||"all",extraUserInputs:uki(x),v2Translated:!0}},Uy7=function(x,G,D,K){x=x.map(function(z){var y=_.hv(z,$07,15);
y=_.hv(y,nX,1);Mi(z,10,nX,y);return{id:z.getId().getId(),serviceId:"web",mimeType:_.rP(z,7),name:z.getName(),type:bl(z),url:z.getUrl(),description:_.rP(z,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Li(dg(z))}});
return{action:G,docs:x,viewToken:K,view:D||"image-search",v2Translated:!0}},RCZ=function(x,G,D,K){x=x.map(function(z){return{serviceId:"url",
name:dg(z)[0].getUrl().split("/").pop(),type:bl(z),mimeType:_.rP(z,7),url:z.getUrl(),description:_.rP(z,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Li(dg(z))}});
return{action:G,docs:x,viewToken:K,view:D||"url",v2Translated:!0}},i4Z=function(x,G,D,K){x=x.map(function(z){return{id:z.getId().getId(),
serviceId:"picasa",name:z.getName(),type:bl(z),description:_.rP(z,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Li(dg(z))}});
return{action:G,docs:x,viewToken:K,view:D||"webcam",v2Translated:!0}},O4s=function(x,G,D,K){return{action:G,
docs:x.map(dy0),viewToken:K,view:wZs(D||"upload",x),extraUserInputs:uki(x),v2Translated:!0}},wZs=function(x,G){return G.some(function(D){var K;
return((K=_.hv(D,gg,30))==null?void 0:_.sk(K,3))===9})?x+"/gmailphotos":x},jKo=function(x,G,D,K){var z=x.map(function(y){var c={id:y.getId().getId(),
serviceId:"picasa",mimeType:_.rP(y,7),name:y.getName(),type:bl(y),lastEditedUtc:_.ps9(_.hv(y,_.OH,12)).getTime(),url:y.getUrl(),sizeBytes:Number(U8L(y)),description:_.rP(y,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Li(dg(y)),mediaKey:y.getId().getId(),parentId:_.rP(y,4)},W,e=(W=_.hv(y,B97,18))==null?void 0:_.hv(W,Lhu,3);e&&(c.latitude=BV(e,1),c.longitude=BV(e,2));var Q;y=(Q=_.hv(y,B97,18))==null?void 0:Lr(Q,6);Q=y!=null?AE(y):void 0;Q&&(c.version=
Q);return c});
return{action:G,docs:z,viewToken:K,view:D||"photos",extraUserInputs:uki(x),v2Translated:!0}},IEZ=function(x,G,D,K){x=x.map(function(z){return{id:z.getId().getId(),
serviceId:"et",name:dg(z)[0].getUrl().split("/").pop(),description:_.rP(z,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Li(dg(z),"etjpg")}});
return{action:G,docs:x,viewToken:K,view:D||"et",v2Translated:!0}},naJ=function(x,G,D,K){x=x.map(function(z){var y=z.getId().getId(),c=K["2"];
return{id:y,serviceId:c.type!=="gmail_themes"&&c.parent==="6226252643674576769"?"picasa":"static_themes",name:z.getName(),mimeType:_.rP(z,7),type:bl(z),description:_.rP(z,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:z.getUrl(),embedUrl:z.getUrl(),thumbnails:Li(dg(z))}});
return{action:G,docs:x,viewToken:K,view:D||"photos",v2Translated:!0}},XZq=function(x,G){x=x.map(function(D){var K=_.hv(D,buJ,27);
K=_.Lm(K,1,_.gb,_.xa())[0];return{id:D.getId().getId(),serviceId:"contacts",mimeType:_.rP(D,7),name:D.getName(),description:_.rP(D,3),url:"mailto:"+K,thumbnail:[{url:_.rP(D,11)}],email:K}});
return{action:G,docs:x,view:"contacts",v2Translated:!0}},CPE=function(x){if(!x)return{};
var G=_.rP(x,3);G=G&&JSON.parse(G)||{};return{0:_.rP(x,1),1:_.rP(x,2),2:G}},Li=function(x,G){G=G===void 0?"":G;
if(!x.length)return null;G=="etjpg"&&(x=x.filter(function(D){return D.getUrl().includes("w1200-h300")}));
return x.map(function(D){return{url:D.getUrl(),height:D.getHeight(),width:D.getWidth(),type:G}})},uki=function(x){return{isAttachment:x.some(function(G){return _.br(G,31)})}},dy0=function(x){var G,D={id:(G=x.getId())==null?void 0:G.getId(),
serviceId:qP0(x),mimeType:_.rP(x,7),name:x.getName(),type:bl(x),sizeBytes:Number(U8L(x)),description:_.rP(x,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Li(dg(x)),isNew:!0};if(G=_.hv(x,gg,30)){D.dataUrl=_.rP(G,1)||null;a:{var K=_.hv(x,gg,30);switch(_.sk(K,3)){case 9:K=_.HV(K,m0Z,2,ud);K={remoteRefs:K&&_.rP(K,1)};break a;case 10:case 15:K=_.HV(K,YEJ,4,ud);var z=dg(x);K={photo_id:K&&_.rP(K,1),media_key:x.getId().getId(),media_type:_.sk(x,6)===1?1:2,image_url:z&&
z[0].getUrl(),width:z&&String(z[0].getWidth()),height:z&&String(z[0].getHeight())};break a}K=null}D.uploadMetadata=K;D.uploadId=_.rP(G,9)||null;D.uploadState=NMZ(G)||null}(K=G&&_.HV(G,YEJ,4,ud))&&(D.id=_.rP(K,1));(K=G&&_.HV(G,Hu7,5,ud))&&(D.contentId=_.rP(K,1));(K=G&&_.HV(G,rkJ,7,ud))&&(D.contentId=_.rP(K,1));(K=G&&_.HV(G,sss,6,ud))&&(D.contentId=_.rP(K,1));(G==null?void 0:_.sk(G,3))===1&&(D.mediaKey=x.getId().getId());return D},qP0=function(x){var G;
switch(((G=_.hv(x,gg,30))==null?void 0:_.sk(G,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},bl=function(x){switch(_.sk(x,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 _.rP(x,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},NMZ=function(x){switch(x==null?void 0:_.sk(x,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 tB9,va8,JE7,fEh;_.B$=function(x,G){var D=G||{};G=D.document||document;var K=_.lH(x).toString(),z=(new ZF(G)).createElement("SCRIPT"),y={script_:z,timeout_:void 0},c=new A3(va8,y),W=null,e=D.timeout!=null?D.timeout:5E3;e>0&&(W=window.setTimeout(function(){JE7(z,!0);c.errback(new fEh(1,"Timeout reached for loading script "+K))},e),y.timeout_=W);
z.onload=z.onreadystatechange=function(){z.readyState&&z.readyState!="loaded"&&z.readyState!="complete"||(JE7(z,D.cleanupWhenDone||!1,W),c.callback(null))};
z.onerror=function(){JE7(z,!0,W);c.errback(new fEh(0,"Error while loading script "+K))};
y=D.attributes||{};_.YS.extend(y,{type:"text/javascript",charset:"UTF-8"});cQi(z,y);_.Sr(z,x);tB9(G).appendChild(z);return c};
tB9=function(x){var G=bP("HEAD",x);return G&&G.length!==0?G[0]:x.documentElement};
va8=function(){if(this&&this.script_){var x=this.script_;x&&x.tagName=="SCRIPT"&&JE7(x,!0,this.timeout_)}};
JE7=function(x,G,D){D!=null&&_.Df.clearTimeout(D);x.onload=function(){};
x.onerror=function(){};
x.onreadystatechange=function(){};
G&&window.setTimeout(function(){_.VF(x)},0)};
fEh=function(x,G){var D="Jsloader error (code #"+x+")";G&&(D+=": "+G);_.xC.call(this,D);this.code=x};
_.tR(fEh,_.xC);var kH9=_.gv(["https://apis.google.com/js/api.js"]),PPo=_.xS(kH9),GC8=function(x,G){var D=!1,K=Eau(x,G).then(function(y){D=!0;return y}),z=_.Fz9(5E3).then(function(){return D?Eau(x,G):hCq(G).then(function(y){return xu0(y,x)})});
return QSq([K,z])},Eau=function(x,G){return Dui(G).then(function(D){return xu0(D,x)})},xu0=function(x,G){var D=_.zd(G,"gapi.")?G.slice(5):G;
return x[D]?_.aI(x[D]):new _.T1(function(K,z){var y=QZ(function(){z(Error("bb"))},3E4);
x.load(G,{callback:function(){_.Df.clearTimeout(y);K(x[D])},
onerror:function(c){_.Df.clearTimeout(y);z(c)}})})},Dui=function(x){return x.gapi&&x.gapi.load?_.aI(x.gapi):hCq(x)},hCq=function(x){return _.B$(PPo,{document:x.document}).then(function(){return x.gapi})},KGu=function(){};
KGu.prototype.load=function(x,G){G=G===void 0?window:G;var D=Date.now();return GC8(x,G).then(function(K){var z=Date.now();return{library:K,loadStartMs:D,loadEndMs:z}},function(K){throw K instanceof Error?K:Error(String(K));
})};var WSV=function(){_.Ya.call(this);this.gapiLoader_=new KGu;this.origin_=null;this.gapiPickerIframeResolver_=_.Ss();this.gapiIframesResolver_=_.Ss();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.m(WSV,_.Ya);var zFk=function(x,G){var D=_.nT("gapi.iframes",G);return D?(x=Date.now(),_.aI({library:D,loadStartMs:x,loadEndMs:x})):x.gapiLoader_.load("gapi.iframes",G)},aSZ=function(x,G,D,K,z,y){var c=!1;
c=c===void 0?!1:c;zFk(x,Fn(G.ownerDocument)).then(function(W){var e=W.library;x.gapiIframesResolver_.resolve(e);W=x.gapiPickerIframeResolver_;var Q=W.resolve,p=c;p=p===void 0?!1:p;var V={};V["host-message-handler"]=D;x.hostMessageHandlerInternal_=V;var L=_.wM(K);L=_.wM(L);L=_.wi(_.di(_.uv(new _.w5,L.scheme_),L.JSC$8039_domain_),L.JSC$8039_port_).toString();x.origin_=L;L=(new mYE).setUrl(K);L.JSC$8054_obj_.where=G;L.JSC$8054_obj_.allowPost=p;L.JSC$8054_obj_.messageHandlers=V;p=_.nT("makeWhiteListIframesFilter",
e)([x.origin_]);L.JSC$8054_obj_.messageHandlersFilter=p;z!=null&&L.setId(z);y!=null&&(L.JSC$8054_obj_.rpctoken=y);p=YaZ(L);p.JSC$8051_obj_.style={display:"block","min-width":"100%",width:"1px"};p.JSC$8051_obj_.height="100%";YaZ(L).value().allow="camera 'src' "+x.origin_;e=e.getContext().openChild(L.value());Q.call(W,e)},function(W){x.gapiIframesResolver_.reject(W);
x.gapiPickerIframeResolver_.reject(W)});
return x.gapiPickerIframeResolver_.promise},o9J=function(x,G){return _.Zz([x.gapiIframesResolver_.promise,
x.gapiPickerIframeResolver_.promise]).then(function(D){var K=_.l(D);D=K.next().value;return(K=K.next().value)?K.send("picker-message-handler",G,void 0,_.nT("makeWhiteListIframesFilter",D)([x.origin_])):_.rk(Error("cb"))})};
WSV.prototype.disposeInternal=function(){yti(this);_.Ya.prototype.disposeInternal.call(this)};
var yti=function(x){x.gapiPickerIframeResolver_.promise.then(function(G){G&&(G.unregister("host-message-handler"),delete x.hostMessageHandlerInternal_["host-message-handler"])})};var lSk=function(){this.nextId=0};var TOE=function(x,G){switch(x.action){case "select-contacts":x=cts(x.contacts);break;case "visibility":x=x.visible;var D=new N2;x=_.FV(D,1,7).setVisible(x);D={};D["iframe-command"]=x.serialize();x=D;break;default:x=null}return x?o9J(G,x):_.aI()},cts=function(x){if(!x||x.length==0)return null;
var G=new N2;_.FV(G,1,11);var D=new lSk;x.forEach(function(K){if(K.email){var z=new pr;z=_.NX(z,2,K.name?K.name:K.email);var y=new buJ;K=_.y6L(y,1,_.Sx,K.email,_.gb);K=_.GW(z,27,K);z=K.setId;y=(new Rm).setId(":"+(D.nextId++).toString(36));y=_.FV(y,2,12);K=z.call(K,y)}else K=null;K&&Mi(G,7,pr,K)});
x={};x["iframe-command"]=G.serialize();return x};_.WGk=function(){if(td3){var x=/Windows NT ([0-9.]+)/;return(x=x.exec(_.Q3()))?x[1]:"0"}return _.fn3?(x=/1[0|1][_.][0-9_.]+/,(x=x.exec(_.Q3()))?x[0].replace(/_/g,"."):"10"):PvP?(x=/Android\s+([^\);]+)(\)|;)/,(x=x.exec(_.Q3()))?x[1]:""):Pcn||E6Q||hN$?(x=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(x=x.exec(_.Q3()))?x[1].replace(/_/g,"."):""):""}();var rq;rq=function(x){return(x=x.exec(_.Q3()))?x[1]:""};
_.eFZ=function(){if(_.Dh)return rq(/Firefox\/([0-9.]+)/);if(_.E$||NU||NtP)return ogC;if(_.Kr){if(_.UD()||_.MfL()){var x=rq(/CriOS\/([0-9.]+)/);if(x)return x}return rq(/Chrome\/([0-9.]+)/)}if(_.Xf&&!_.UD())return rq(/Version\/([0-9.]+)/);if(LbD||B5E){if(x=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.Q3()))return x[1]+"."+x[2]}else if(W9L)return(x=rq(/Android\s+([0-9.]+)/))?x:rq(/Version\/([0-9.]+)/);return""}();var ZxJ=function(){};
_.JR(ZxJ);ZxJ.prototype.nextId_=0;_.st=function(x){return":"+(x.nextId_++).toString(36)};var YJ=function(x){_.T2.call(this);this.JSC$8149_dom_=x||ei();this.JSC$8149_id_=null;this.inDocument_=!1;this.JSC$8149_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.tR(YJ,_.T2);YJ.prototype.idGenerator_=ZxJ.getInstance();YJ.prototype.getId=function(){return this.JSC$8149_id_||(this.JSC$8149_id_=_.st(this.idGenerator_))};
YJ.prototype.setId=function(x){this.parent_&&this.parent_.childIndex_&&(_.YS.remove(this.parent_.childIndex_,this.JSC$8149_id_),_.YS.add(this.parent_.childIndex_,x,this));this.JSC$8149_id_=x};
YJ.prototype.getElement=function(){return this.JSC$8149_element_};
var mR=function(x){x.googUiComponentHandler_||(x.googUiComponentHandler_=new _.Ev(x));return x.googUiComponentHandler_},MO0=function(x,G){if(x==G)throw Error("db");
var D;if(D=G&&x.parent_&&x.JSC$8149_id_){D=x.parent_;var K=x.JSC$8149_id_;D=D.childIndex_&&K?_.YS.get(D.childIndex_,K)||null:null}if(D&&x.parent_!=G)throw Error("db");x.parent_=G;YJ.superClass_.setParentEventTarget.call(x,G)};
YJ.prototype.setParentEventTarget=function(x){if(this.parent_&&this.parent_!=x)throw Error("eb");YJ.superClass_.setParentEventTarget.call(this,x)};
YJ.prototype.JSC$8151_createDom=function(){this.JSC$8149_element_=this.JSC$8149_dom_.createElement("DIV")};
YJ.prototype.render=function(x){Qfo(this,x)};
var Qfo=function(x,G,D){if(x.inDocument_)throw Error("fb");x.JSC$8149_element_||x.JSC$8151_createDom();G?G.insertBefore(x.JSC$8149_element_,D||null):x.JSC$8149_dom_.JSC$7337_document_.body.appendChild(x.JSC$8149_element_);x.parent_&&!x.parent_.inDocument_||x.enterDocument()};
_.a=YJ.prototype;_.a.decorate=function(x){if(this.inDocument_)throw Error("fb");if(x&&this.canDecorate(x)){this.wasDecorated_=!0;var G=_.C2(x);this.JSC$8149_dom_&&this.JSC$8149_dom_.JSC$7337_document_==G||(this.JSC$8149_dom_=ei(x));this.decorateInternal(x);this.enterDocument()}else throw Error("gb");};
_.a.canDecorate=function(){return!0};
_.a.decorateInternal=function(x){this.JSC$8149_element_=x};
_.a.enterDocument=function(){this.inDocument_=!0;pl0(this,function(x){!x.inDocument_&&x.getElement()&&x.enterDocument()})};
_.a.exitDocument=function(){pl0(this,function(x){x.inDocument_&&x.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.a.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);pl0(this,function(x){x.dispose()});
!this.wasDecorated_&&this.JSC$8149_element_&&_.VF(this.JSC$8149_element_);this.parent_=this.model_=this.JSC$8149_element_=this.childIndex_=this.children_=null;YJ.superClass_.disposeInternal.call(this)};
_.a.getModel=function(){return this.model_};
_.a.addChild=function(x,G){var D=this.children_?this.children_.length:0;if(x.inDocument_&&(G||!this.inDocument_))throw Error("fb");if(D<0||D>(this.children_?this.children_.length:0))throw Error("hb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);x.parent_==this?(_.YS.set(this.childIndex_,x.getId(),x),_.f$(this.children_,x)):_.YS.add(this.childIndex_,x.getId(),x);MO0(x,this);_.BnC(this.children_,D,0,x);x.inDocument_&&this.inDocument_&&x.parent_==this?(G=this.getContentElement(),
(G.childNodes[D]||null)!=x.getElement()&&(x.getElement().parentElement==G&&G.removeChild(x.getElement()),D=G.childNodes[D]||null,G.insertBefore(x.getElement(),D))):G?(this.JSC$8149_element_||this.JSC$8151_createDom(),D=this.children_?this.children_[D+1]||null:null,Qfo(x,this.getContentElement(),D?D.JSC$8149_element_:null)):this.inDocument_&&!x.inDocument_&&x.JSC$8149_element_&&x.JSC$8149_element_.parentNode&&x.JSC$8149_element_.parentNode.nodeType==1&&x.enterDocument()};
_.a.getContentElement=function(){return this.JSC$8149_element_};
var pl0=function(x,G){x.children_&&x.children_.forEach(G,void 0)};
YJ.prototype.removeChild=function(x,G){if(x){var D=typeof x==="string"?x:x.getId();x=this.childIndex_&&D?_.YS.get(this.childIndex_,D)||null:null;D&&x&&(_.YS.remove(this.childIndex_,D),_.f$(this.children_,x),G&&(x.exitDocument(),x.JSC$8149_element_&&_.VF(x.JSC$8149_element_)),MO0(x,null))}if(!x)throw Error("ib");return x};_.tR(DhO,UP);_.tR(KSf,UP);var VO9;var bxh=function(x,G){G?x.setAttribute("role",G):x.removeAttribute("role")},H$=function(x,G,D){Array.isArray(D)&&(D=D.join(" "));
var K="aria-"+G;D===""||D==void 0?(VO9||(D={},VO9=(D.atomic=!1,D.autocomplete="none",D.dropeffect="none",D.haspopup=!1,D.live="off",D.multiline=!1,D.multiselectable=!1,D.orientation="vertical",D.readonly=!1,D.relevant="additions text",D.required=!1,D.sort="none",D.busy=!1,D.disabled=!1,D.hidden=!1,D.invalid="false",D)),D=VO9,G in D?x.setAttribute(K,D[G]):x.removeAttribute(K)):x.setAttribute(K,D)};var LGo;_.$J=function(x,G,D){_.T2.call(this);this.target=x;this.handle=G||x;this.limits=D||new mq(NaN,NaN,NaN,NaN);this.JSC$8154_document_=_.C2(x);this.JSC$8154_eventHandler_=new _.Ev(this);_.WZ(this,this.JSC$8154_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;_.Lz(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=LGo};
_.tR(_.$J,_.T2);LGo=_.Df.document&&_.Df.document.documentElement&&!!_.Df.document.documentElement.setCapture&&!!_.Df.document.releaseCapture;_.BO9=function(x,G){x.hysteresisDistanceSquared_=Math.pow(G,2)};
_.a=_.$J.prototype;_.a.setEnabled=function(x){this.enabled_=x};
_.a.disposeInternal=function(){_.$J.superClass_.disposeInternal.call(this);_.cA(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$8154_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8154_document_.releaseCapture();this.handle=this.target=null};
_.a.startDrag=function(x){var G=x.type=="mousedown";if(!this.enabled_||this.dragging_||G&&(x.event_.button!=0||_.fn3&&x.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new Fu("start",this,x.clientX,x.clientY,x)))this.dragging_=!0,G&&x.preventDefault();else return;else G&&x.preventDefault();G=this.JSC$8154_document_;var D=G.documentElement,K=!this.useSetCapture_;this.JSC$8154_eventHandler_.listen(G,["touchmove","mousemove"],this.handleMove_,
{capture:K,passive:!1});this.JSC$8154_eventHandler_.listen(G,["touchend","mouseup"],this.endDrag,K);this.useSetCapture_?(D.setCapture(!1),this.JSC$8154_eventHandler_.listen(D,"losecapture",this.endDrag)):this.JSC$8154_eventHandler_.listen(Fn(G),"blur",this.endDrag);this.scrollTarget_&&this.JSC$8154_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,K);this.clientX=this.startX=x.clientX;this.clientY=this.startY=x.clientY;this.screenX=x.screenX;this.screenY=x.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=Wu(ei(this.JSC$8154_document_))}};
_.a.endDrag=function(x,G){this.JSC$8154_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8154_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new Fu("end",this,x.clientX,x.clientY,x,rtZ(this,this.deltaX),sf8(this,this.deltaY),G||x.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.a.handleMove_=function(x){if(this.enabled_){var G=x.clientX-this.clientX,D=x.clientY-this.clientY;this.clientX=x.clientX;this.clientY=x.clientY;this.screenX=x.screenX;this.screenY=x.screenY;if(!this.dragging_){var K=this.startX-this.clientX,z=this.startY-this.clientY;if(K*K+z*z>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new Fu("start",this,x.clientX,x.clientY,x)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(x);return}}D=YXZ(this,G,D);G=D.x;D=D.y;this.dragging_&&this.dispatchEvent(new Fu("beforedrag",
this,x.clientX,x.clientY,x,G,D))&&(mus(this,x,G,D),x.preventDefault())}};
var YXZ=function(x,G,D){var K=Wu(ei(x.JSC$8154_document_));G+=K.x-x.pageScroll.x;D+=K.y-x.pageScroll.y;x.pageScroll=K;x.deltaX+=G;x.deltaY+=D;return new _.$S(rtZ(x,x.deltaX),sf8(x,x.deltaY))};
_.$J.prototype.onScroll_=function(x){var G=YXZ(this,0,0);x.clientX=this.clientX;x.clientY=this.clientY;mus(this,x,G.x,G.y)};
var mus=function(x,G,D,K){x.target.style.left=D+"px";x.target.style.top=K+"px";x.dispatchEvent(new Fu("drag",x,G.clientX,G.clientY,G,D,K))},rtZ=function(x,G){var D=x.limits;
x=isNaN(D.left)?null:D.left;D=isNaN(D.width)?0:D.width;return Math.min(x!=null?x+D:Infinity,Math.max(x!=null?x:-Infinity,G))},sf8=function(x,G){var D=x.limits;
x=isNaN(D.top)?null:D.top;D=isNaN(D.height)?0:D.height;return Math.min(x!=null?x+D:Infinity,Math.max(x!=null?x:-Infinity,G))};
_.$J.prototype.isDragging=function(){return this.dragging_};
var Fu=function(x,G,D,K,z,y,c){_.aY.call(this,x);this.clientX=D;this.clientY=K;this.browserEvent=z;this.left=y!==void 0?y:G.deltaX;this.top=c!==void 0?c:G.deltaY};
_.tR(Fu,_.aY);var Ci=function(x){this.JSC$8161_map_=new Map;var G=arguments.length;if(G>1){if(G%2)throw Error("oa");for(var D=0;D<G;D+=2)this.set(arguments[D],arguments[D+1])}else x&&this.addAll(x)};
_.a=Ci.prototype;_.a.getCount=function(){return this.JSC$8161_map_.size};
_.a.getValues=function(){return Array.from(this.JSC$8161_map_.values())};
_.a.getKeys=function(){return Array.from(this.JSC$8161_map_.keys())};
_.a.containsKey=function(x){return this.JSC$8161_map_.has(x)};
_.a.containsValue=function(x){return this.getValues().some(function(G){return G==x})};
_.a.equals=function(x,G){var D=this;G=G===void 0?function(K,z){return K===z}:G;
return this===x?!0:this.JSC$8161_map_.size!=x.getCount()?!1:this.getKeys().every(function(K){return G(D.JSC$8161_map_.get(K),x.get(K))})};
_.a.isEmpty=function(){return this.JSC$8161_map_.size==0};
_.a.clear=function(){this.JSC$8161_map_.clear()};
_.a.remove=function(x){return this.JSC$8161_map_.delete(x)};
_.a.get=function(x,G){return this.JSC$8161_map_.has(x)?this.JSC$8161_map_.get(x):G};
_.a.set=function(x,G){this.JSC$8161_map_.set(x,G);return this};
_.a.addAll=function(x){if(x instanceof Ci){x=_.l(x.JSC$8161_map_);for(var G=x.next();!G.done;G=x.next()){var D=_.l(G.value);G=D.next().value;D=D.next().value;this.JSC$8161_map_.set(G,D)}}else if(x)for(x=_.l(Object.entries(x)),G=x.next();!G.done;G=x.next())D=_.l(G.value),G=D.next().value,D=D.next().value,this.JSC$8161_map_.set(G,D)};
_.a.forEach=function(x,G){var D=this;G=G===void 0?this:G;this.JSC$8161_map_.forEach(function(K,z){return x.call(G,K,z,D)})};
_.a.clone=function(){return new Ci(this)};(function(){for(var x=["ms","moz","webkit","o"],G,D=0;G=x[D]&&!_.Df.requestAnimationFrame;++D)_.Df.requestAnimationFrame=_.Df[G+"RequestAnimationFrame"],_.Df.cancelAnimationFrame=_.Df[G+"CancelAnimationFrame"]||_.Df[G+"CancelRequestAnimationFrame"];if(!_.Df.requestAnimationFrame){var K=0;_.Df.requestAnimationFrame=function(z){var y=(new Date).getTime(),c=Math.max(0,16-(y-K));K=y+c;return _.Df.setTimeout(function(){z(y+c)},c)};
_.Df.cancelAnimationFrame||(_.Df.cancelAnimationFrame=function(z){clearTimeout(z)})}})();
var Hx9=[[],[]],$ui=0,FGq=!1,C1s=0,jfE=function(x,G){var D=C1s++,K={measureTask:{id:D,fn:x.measure,context:G},mutateTask:{id:D,fn:x.mutate,context:G},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(K.args||(K.args=[]),K.args.length=0,K.args.push.apply(K.args,arguments),K.args.push(K.state)):K.args&&K.args.length!=0?(K.args[0]=K.state,K.args.length=1):K.args=[K.state];K.isScheduled||(K.isScheduled=!0,Hx9[$ui].push(K));FGq||(FGq=!0,window.requestAnimationFrame(IS8))}},IS8=
function(){FGq=!1;
var x=Hx9[$ui],G=x.length;$ui=($ui+1)%2;for(var D,K=0;K<G;++K){D=x[K];var z=D.measureTask;D.isScheduled=!1;z.fn&&z.fn.apply(z.context,D.args)}for(K=0;K<G;++K)D=x[K],z=D.mutateTask,D.isScheduled=!1,z.fn&&z.fn.apply(z.context,D.args),D.state={};x.length=0};var Ox7=_.gv(["about:blank"]),XlE=_.gv(["javascript:undefined"]),AtZ=_.xS(Ox7);_.lH(AtZ);var Uui=_.xS(XlE);_.lH(Uui);var I6=function(x){_.T2.call(this);this.JSC$8167_element_=x;this.listenKeyIn_=_.Lz(this.JSC$8167_element_,"focus",this,!0);this.listenKeyOut_=_.Lz(this.JSC$8167_element_,"blur",this,!0)};
_.tR(I6,_.T2);I6.prototype.handleEvent=function(x){var G=new _.oY(x.event_);G.type=x.type=="focusin"||x.type=="focus"?"focusin":"focusout";this.dispatchEvent(G)};
I6.prototype.disposeInternal=function(){I6.superClass_.disposeInternal.call(this);pz(this.listenKeyIn_);pz(this.listenKeyOut_);delete this.JSC$8167_element_};var RFZ=function(x,G){this.JSC$8170_element_=x;this.JSC$8170_dom_=G};var ju=function(x,G){YJ.call(this,G);this.useIframeMask_=!!x;this.lastFocus_=null;this.resizeBackgroundTask_=jfE({mutate:this.resizeBackground_},this);jfE({mutate:this.updateModalAndBackground_},this)};
_.tR(ju,YJ);_.a=ju.prototype;_.a.focusHandler_=null;_.a.visible_=!1;_.a.bgEl_=null;_.a.bgIframeEl_=null;_.a.tabCatcherElement_=null;_.a.backwardTabWrapInProgress_=!1;_.a.getCssClass=function(){return"goog-modalpopup"};
_.a.getBackgroundElement=function(){return this.bgEl_};
_.a.JSC$8151_createDom=function(){ju.superClass_.JSC$8151_createDom.call(this);var x=this.getElement(),G=Zf(this.getCssClass()).split(" ");OR(x,G);x.tabIndex=0;_.vZ(x,!1);SXE(this);n9E(this)};
var SXE=function(x){if(x.useIframeMask_&&!x.bgIframeEl_){var G=x.JSC$8149_dom_.JSC$7339_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.C9(G,AtZ);x.bgIframeEl_=G;x.bgIframeEl_.className=x.getCssClass()+"-bg";_.vZ(x.bgIframeEl_,!1);i$h(x.bgIframeEl_,0)}x.bgEl_||(x.bgEl_=x.JSC$8149_dom_.JSC$7339_createDom("DIV",x.getCssClass()+"-bg"),_.vZ(x.bgEl_,!1))},n9E=function(x){x.tabCatcherElement_||(x.tabCatcherElement_=x.JSC$8149_dom_.createElement("SPAN"),_.vZ(x.tabCatcherElement_,
!1),x.tabCatcherElement_.tabIndex=0,x.tabCatcherElement_.style.position="absolute")};
_.a=ju.prototype;_.a.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.a.canDecorate=function(x){return!!x&&x.tagName=="DIV"};
_.a.decorateInternal=function(x){ju.superClass_.decorateInternal.call(this,x);x=Zf(this.getCssClass()).split(" ");OR(this.getElement(),x);SXE(this);n9E(this);this.getElement().tabIndex=0;_.vZ(this.getElement(),!1)};
_.a.enterDocument=function(){this.bgIframeEl_&&_.B_(this.bgIframeEl_,this.getElement());_.B_(this.bgEl_,this.getElement());ju.superClass_.enterDocument.call(this);_.rg(this.tabCatcherElement_,this.getElement());this.focusHandler_=new I6(this.JSC$8149_dom_.JSC$7337_document_);mR(this).listen(this.focusHandler_,"focusin",this.onFocus);ix9(this,!1)};
_.a.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.kS(this.focusHandler_);ju.superClass_.exitDocument.call(this);_.VF(this.bgIframeEl_);_.VF(this.bgEl_);_.VF(this.tabCatcherElement_)};
_.a.setVisible=function(x){if(x!=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_&&ix9(this,x),x){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$8149_dom_.JSC$7337_document_.activeElement}catch(z){}this.updateModalAndBackground_();mR(this).listen(this.JSC$8149_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$8149_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);g9k(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)Q2(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){mR(this).unlisten(this.JSC$8149_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$8149_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)Q2(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var G=this.JSC$8149_dom_,D=G.JSC$7337_document_.body,K=G.JSC$7337_document_.activeElement||D;if(!this.lastFocus_||this.lastFocus_==D){this.lastFocus_=null;break a}(K==D||G.contains(this.getElement(),K))&&this.lastFocus_.focus()}catch(z){}this.lastFocus_=
null}}};
var ix9=function(x,G){x.modalAriaVisibilityHelper_||(x.modalAriaVisibilityHelper_=new RFZ(x.JSC$8149_element_,x.JSC$8149_dom_));x=x.modalAriaVisibilityHelper_;if(G){x.hiddenElements_||(x.hiddenElements_=[]);G=x.JSC$8170_dom_.getChildren(x.JSC$8170_dom_.JSC$7337_document_.body);for(var D=0;D<G.length;D++){var K=G[D],z;if(z=K!=x.JSC$8170_element_)z=K.getAttribute("aria-hidden"),z=!(z==null||z==void 0?0:String(z));z&&(H$(K,"hidden",!0),x.hiddenElements_.push(K))}}else if(x.hiddenElements_){for(G=0;G<
x.hiddenElements_.length;G++)x.hiddenElements_[G].removeAttribute("aria-hidden");x.hiddenElements_=null}};
ju.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var g9k=function(x,G){x.bgIframeEl_&&_.vZ(x.bgIframeEl_,G);x.bgEl_&&_.vZ(x.bgEl_,G);_.vZ(x.getElement(),G);_.vZ(x.tabCatcherElement_,G)};
_.a=ju.prototype;_.a.onShow=function(){this.dispatchEvent("show")};
_.a.onHide=function(){g9k(this,!1);this.dispatchEvent("hide")};
_.a.isVisible=function(){return this.visible_};
_.a.focus=function(){this.focusElement_()};
_.a.resizeBackground_=function(){this.bgIframeEl_&&_.vZ(this.bgIframeEl_,!1);this.bgEl_&&_.vZ(this.bgEl_,!1);var x=this.JSC$8149_dom_.JSC$7337_document_;var G=_.Tj(Fn(this.JSC$8149_dom_.JSC$7337_document_)||window);var D=Math.max(G.width,Math.max(x.body.scrollWidth,x.documentElement.scrollWidth));x=Math.max(G.height,Math.max(x.body.scrollHeight,x.documentElement.scrollHeight));this.bgIframeEl_&&(_.vZ(this.bgIframeEl_,!0),_.UL8(this.bgIframeEl_,D,x));this.bgEl_&&(_.vZ(this.bgEl_,!0),_.UL8(this.bgEl_,
D,x))};
_.a.reposition=function(){var x;if(_.AQk(this.getElement())=="fixed")var G=x=0;else G=Wu(this.JSC$8149_dom_),x=G.x,G=G.y;var D=SDh(this.getElement());var K=_.Tj(Fn(this.JSC$8149_dom_.JSC$7337_document_)||window);x=Math.max(x+K.width/2-D.width/2,0);G=Math.max(G+K.height/2-D.height/2,0);F$(this.getElement(),x,G);F$(this.tabCatcherElement_,x,G)};
_.a.onFocus=function(x){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():x.target==this.tabCatcherElement_&&QZ(this.focusElement_,0,this)};
_.a.focusElement_=function(){try{this.getElement().focus()}catch(x){}};
_.a.disposeInternal=function(){_.kS(this.popupShowTransition_);this.popupShowTransition_=null;_.kS(this.popupHideTransition_);this.popupHideTransition_=null;_.kS(this.bgShowTransition_);this.bgShowTransition_=null;_.kS(this.bgHideTransition_);this.bgHideTransition_=null;ju.superClass_.disposeInternal.call(this)};var RK=function(x,G,D){ju.call(this,G,D);this.JSC$8180_class_=x||"modal-dialog";this.buttons_=(new Ot).addButton(uqu,!0).addButton(duq,!1,!0)};
_.tR(RK,ju);_.a=RK.prototype;_.a.escapeToCancel_=!0;_.a.hasTitleCloseButton_=!0;_.a.modal_=!0;_.a.draggable_=!0;_.a.backgroundElementOpacity_=.5;_.a.title_="";_.a.JSC$8182_dragger_=null;_.a.JSC$8182_disposeOnHide_=!1;_.a.titleEl_=null;_.a.titleTextEl_=null;_.a.titleTextId_=null;_.a.titleCloseEl_=null;_.a.contentEl_=null;_.a.buttonEl_=null;_.a.getCssClass=function(){return this.JSC$8180_class_};
_.a.setTitle=function(x){this.title_=x;this.titleTextEl_&&_.Y2(this.titleTextEl_,x)};
_.a.getTitle=function(){return this.title_};
_.a.getContent=function(){return""};
_.a.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var wlZ=function(x){x.getElement()||x.render();return x.getElement()};
RK.prototype.getBackgroundElement=function(){this.getElement()||this.render();return RK.superClass_.getBackgroundElement.call(this)};
var qXh=function(x,G){x.backgroundElementOpacity_=G;x.getElement()&&(G=x.getBackgroundElement())&&i$h(G,x.backgroundElementOpacity_)};
RK.prototype.setDraggable=function(x){this.draggable_=x;NO8(this,x&&this.inDocument_)};
RK.prototype.JSC$8182_handleDrag=function(){};
var NO8=function(x,G){var D=Zf(x.JSC$8180_class_+"-title-draggable").split(" ");x.getElement()&&(G?OR(x.titleEl_,D):r19(x.titleEl_,D));G&&!x.JSC$8182_dragger_?(G=new _.$J(x.getElement(),x.titleEl_),x.JSC$8182_dragger_=G,OR(x.titleEl_,D),_.Lz(x.JSC$8182_dragger_,"start",x.setDraggerLimits_,!1,x),_.Lz(x.JSC$8182_dragger_,"drag",x.JSC$8182_handleDrag,!1,x)):!G&&x.JSC$8182_dragger_&&(x.JSC$8182_dragger_.dispose(),x.JSC$8182_dragger_=null)};
_.a=RK.prototype;
_.a.JSC$8151_createDom=function(){RK.superClass_.JSC$8151_createDom.call(this);var x=this.getElement(),G=this.JSC$8149_dom_;this.titleTextId_=this.getId();var D=this.getId()+".contentEl";this.titleEl_=G.JSC$7339_createDom("DIV",this.JSC$8180_class_+"-title",this.titleTextEl_=G.JSC$7339_createDom("SPAN",{className:this.JSC$8180_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=G.JSC$7339_createDom("SPAN",this.JSC$8180_class_+"-title-close"));Mf0(x,this.titleEl_,this.contentEl_=
G.JSC$7339_createDom("DIV",{className:this.JSC$8180_class_+"-content",id:D}),this.buttonEl_=G.JSC$7339_createDom("DIV",this.JSC$8180_class_+"-buttons"));bxh(this.titleTextEl_,"heading");bxh(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;H$(this.titleCloseEl_,"label","Close");bxh(x,"dialog");H$(x,"labelledby",this.titleTextId_||"");_.vZ(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(x=this.buttons_,x.JSC$8183_element_=this.buttonEl_,x.render());_.vZ(this.buttonEl_,!!this.buttons_);
qXh(this,this.backgroundElementOpacity_)};
_.a.decorateInternal=function(x){RK.superClass_.decorateInternal.call(this,x);x=this.getElement();var G=this.JSC$8180_class_+"-content";this.contentEl_=M2(document,null,G,x)[0];this.contentEl_||(this.contentEl_=this.JSC$8149_dom_.JSC$7339_createDom("DIV",G),x.appendChild(this.contentEl_));G=this.JSC$8180_class_+"-title";var D=this.JSC$8180_class_+"-title-text",K=this.JSC$8180_class_+"-title-close";(this.titleEl_=M2(document,null,G,x)[0])?(this.titleTextEl_=M2(document,null,D,this.titleEl_)[0],this.titleCloseEl_=
M2(document,null,K,this.titleEl_)[0]):(this.titleEl_=this.JSC$8149_dom_.JSC$7339_createDom("DIV",G),x.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=COJ(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.pX("SPAN",{className:D,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;H$(x,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$8149_dom_.JSC$7339_createDom("SPAN",
K),this.titleEl_.appendChild(this.titleCloseEl_));_.vZ(this.titleCloseEl_,this.hasTitleCloseButton_);G=this.JSC$8180_class_+"-buttons";(this.buttonEl_=M2(document,null,G,x)[0])?(this.buttons_=new Ot(this.JSC$8149_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$8149_dom_.JSC$7339_createDom("DIV",G),x.appendChild(this.buttonEl_),this.buttons_&&(x=this.buttons_,x.JSC$8183_element_=this.buttonEl_,x.render()),_.vZ(this.buttonEl_,!!this.buttons_));qXh(this,this.backgroundElementOpacity_)};
_.a.enterDocument=function(){RK.superClass_.enterDocument.call(this);mR(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);mR(this).listen(this.buttonEl_,"click",this.onButtonClick_);NO8(this,this.draggable_);mR(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var x=this.getElement();bxh(x,"dialog");this.titleTextEl_.id!==""&&H$(x,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){x=this.JSC$8149_dom_;
var G=this.getBackgroundElement();x.removeNode(this.bgIframeEl_);x.removeNode(G)}this.isVisible()&&ix9(this,!1)}};
_.a.exitDocument=function(){this.isVisible()&&this.setVisible(!1);NO8(this,!1);RK.superClass_.exitDocument.call(this)};
_.a.setVisible=function(x){x!=this.isVisible()&&(this.inDocument_||this.render(),RK.superClass_.setVisible.call(this,x))};
_.a.onShow=function(){RK.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.a.onHide=function(){RK.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8182_disposeOnHide_&&this.dispose()};
_.a.setDraggerLimits_=function(){var x=this.JSC$8149_dom_.JSC$7337_document_,G=_.Tj(Fn(x)||window),D=Math.max(x.body.scrollWidth,G.width);x=Math.max(x.body.scrollHeight,G.height);var K=SDh(this.getElement());_.AQk(this.getElement())=="fixed"?this.JSC$8182_dragger_.limits=new mq(0,0,Math.max(0,G.width-K.width),Math.max(0,G.height-K.height)):this.JSC$8182_dragger_.limits=new mq(0,0,D-K.width,x-K.height)};
_.a.onTitleCloseClick_=function(){v98(this)};
var v98=function(x){if(x.hasTitleCloseButton_){var G=x.buttons_,D=G&&G.cancelButton_;D?(G=G.get(D),x.dispatchEvent(new Xu(D,G))&&x.setVisible(!1)):x.setVisible(!1)}},JtJ=function(x){x.hasTitleCloseButton_=!1;
x.titleCloseEl_&&_.vZ(x.titleCloseEl_,x.hasTitleCloseButton_)};
RK.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;RK.superClass_.disposeInternal.call(this)};
RK.prototype.onButtonClick_=function(x){a:{for(x=x.target;x!=null&&x!=this.buttonEl_;){if(x.tagName=="BUTTON")break a;x=x.parentNode}x=null}if(x&&!x.disabled){x=x.name;var G=this.buttons_.get(x);this.dispatchEvent(new Xu(x,G))&&this.setVisible(!1)}};
RK.prototype.onKey_=function(x){var G=!1,D=!1,K=this.buttons_,z=x.target;if(x.type=="keydown")if(this.escapeToCancel_&&x.keyCode==27){var y=K&&K.cancelButton_;z=z.tagName=="SELECT"&&!z.disabled;y&&!z?(D=!0,G=K.get(y),G=this.dispatchEvent(new Xu(y,G))):z||(G=!0)}else{if(x.keyCode==9&&x.shiftKey&&z==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(p){}QZ(this.resetBackwardTabWrap_,0,this)}}else if(x.keyCode==13){if(z.tagName=="BUTTON"&&!z.disabled)y=z.name;
else if(z==this.titleCloseEl_)v98(this);else if(K){var c=K.defaultButton_,W;if(W=c)a:{W=bP("BUTTON",K.JSC$8183_element_);for(var e,Q=0;e=W[Q];Q++)if(e.name==c||e.id==c){W=e;break a}W=null}z=(z.tagName=="TEXTAREA"||z.tagName=="SELECT"||z.tagName=="A")&&!z.disabled;!W||W.disabled||z||(y=c)}y&&K&&(D=!0,G=this.dispatchEvent(new Xu(y,String(K.get(y)))))}else z!=this.titleCloseEl_||x.keyCode!=32&&x.key!=" "||v98(this);if(G||D)x.stopPropagation(),x.preventDefault();G&&this.setVisible(!1)};
var Xu=function(x,G){this.type="dialogselect";this.key=x;this.caption=G};
_.tR(Xu,_.aY);var Ot=function(x){Ci.call(this);x||ei();this.cancelButton_=this.JSC$8183_element_=this.defaultButton_=null};
_.tR(Ot,Ci);_.a=Ot.prototype;_.a.clear=function(){Ci.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.a.set=function(x,G,D,K){Ci.prototype.set.call(this,x,G);D&&(this.defaultButton_=x);K&&(this.cancelButton_=x);return this};
_.a.addButton=function(x,G,D){return this.set(x.key,x.caption,G,D)};
_.a.render=function(){if(this.JSC$8183_element_){_.n9(this.JSC$8183_element_,QED);var x=ei(this.JSC$8183_element_);this.forEach(function(G,D){G=x.JSC$7339_createDom("BUTTON",{name:D},G);D==this.defaultButton_&&(G.className="goog-buttonset-default");this.JSC$8183_element_.appendChild(G)},this)}};
_.a.decorate=function(x){if(x&&x.nodeType==1){this.JSC$8183_element_=x;x=bP("BUTTON",this.JSC$8183_element_);for(var G,D,K,z=0;G=x[z];z++)if(D=G.name||G.id,K=COJ(G)||G.value,D){var y=z==0;this.set(D,K,y,G.name=="cancel");y&&_.qJ(G,"goog-buttonset-default")}}};
_.a.getElement=function(){return this.JSC$8183_element_};
var uqu={key:"ok",caption:"OK"},duq={key:"cancel",caption:"Cancel"},fSo={key:"yes",caption:"Yes"},tOs={key:"no",caption:"No"},kCq={key:"save",caption:"Save"},P1q={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new Ot).addButton(uqu,!0,!0),(new Ot).addButton(uqu,!0).addButton(duq,!1,!0),(new Ot).addButton(fSo,!0).addButton(tOs,!1,!0),(new Ot).addButton(fSo).addButton(tOs,!0).addButton(duq,!1,!0),(new Ot).addButton(P1q).addButton(kCq).addButton(duq,!0,!0));_.tR(zRC,RK);_.tR(ayL,SB);var E97=_.gv(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),hFJ=_.gv(["//apis.google.com/js/rpc.js"]),MR$=_.xS(E97),ZTf=_.xS(hFJ),ymL=null;var n4=function(x,G){_.T2.call(this);this.JSC$8192_element_=x;x=_.fU(this.JSC$8192_element_)?this.JSC$8192_element_:this.JSC$8192_element_?this.JSC$8192_element_.body:null;this.isRtl_=!!x&&_.gCk(x);this.listenKey_=_.Lz(this.JSC$8192_element_,_.hR?"DOMMouseScroll":"mousewheel",this,G)};
_.tR(n4,_.T2);n4.prototype.handleEvent=function(x){var G=0,D=0,K=x.event_;K.type=="mousewheel"?(x=xh7(-K.wheelDelta),K.wheelDeltaX!==void 0?(G=xh7(-K.wheelDeltaX),D=xh7(-K.wheelDeltaY)):D=x):(x=K.detail,x>100?x=3:x<-100&&(x=-3),K.axis!==void 0&&K.axis===K.HORIZONTAL_AXIS?G=x:D=x);typeof this.maxDeltaX_==="number"&&(G=_.$1(G,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(D=_.$1(D,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(G=-G);G=new GZq(x,K,G,D);this.dispatchEvent(G)};
var xh7=function(x){return _.xp&&(_.fn3||kiD)&&x%40!=0?x:x/40};
n4.prototype.disposeInternal=function(){n4.superClass_.disposeInternal.call(this);pz(this.listenKey_);this.listenKey_=null};
var GZq=function(x,G,D,K){_.oY.call(this,G);this.type="mousewheel";this.detail=x;this.deltaX=D;this.deltaY=K};
_.tR(GZq,_.oY);_.x1=function(x){var G="instance_";if(x.instance_&&x.hasOwnProperty(G))return x.instance_;G=new x;return x.instance_=G};var eRL;var Dhq=_.gv(["https://about:blank"]),KSo=_.gv(['javascript:""']),zR8=_.gv(["about:blank"]);_.tR(JE,zRC);_.a=JE.prototype;_.a.JSC$8200_url_="";_.a.JSC$8200_iframe_=null;_.a.iframeLoaded_=!1;_.a.loadedFired_=!1;_.a.callback_=function(){};
_.a.enterDocument=function(){JE.superClass_.enterDocument.call(this);TTn(this.getBackgroundElement(),mR(this))};
_.a.render=function(x){var G=this;JE.superClass_.render.call(this,x);this.useGapi_?zFk(this.iframeManager_,window).then(function(){return ays(G)}).then(null,function(){G.callback_({action:"error"})}):oTJ(this)};
var ays=function(x){var G=x.JSC$8149_dom_.JSC$7339_createDom("div",["picker-dialog-content","picker-frame"]);_.vZ(G,!1);x.getContentElement().appendChild(G);return aSZ(x.iframeManager_,G,function(D){var K=Xs0(D["iframe-command"]);switch(K.getCommand()){case 1:D=x.callback_;K=_.hv(K,q2,2);var z="";switch(K.getStatus()){case 2:z="cancel";break;case 1:z="picked";break;case 3:z="error"}var y=_.hO(K,pr,2,_.xa(BaL));K=y.length===0?{action:z}:ga8(y,z,_.hv(K,Io7,7));D.call(x,K);x.setVisible(!1);break;case 4:JtJ(x);
x.callback_({action:"loaded"});break;case 7:case 8:D=x.callback_;a:{z=K.getCommand();y=_.hv(K,q2,2);switch(z){case 7:z="uploadScheduled";break;case 8:z="uploadStateChange";break;default:K={};break a}K=_.hO(y,pr,2,_.xa(BaL));if(K.length===0)K={action:z};else{var c=_.hv(y,Io7,7);y=c&&_.rP(c,1);c=CPE(c);K=O4s(K,z,y,c)}}D.call(x,K)}},x.JSC$8200_url_,x.targetId_,x.rpcToken_).then(function(D){x.JSC$8200_iframe_=D.getIframeEl();
ym0(x);_.vZ(x.JSC$8200_iframe_.parentElement,!0);_.qJ(x.getElement(),"picker-dialog");ly8(x);return D})},oTJ=function(x){x.JSC$8200_iframe_=x.JSC$8149_dom_.JSC$7339_createDom("IFRAME",{id:x.targetId_,
name:x.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.C9(x.JSC$8200_iframe_,cm7(x));_.qJ(x.getElement(),"picker-dialog");x.getContentElement().appendChild(x.JSC$8200_iframe_);mR(x).listen(x.JSC$8200_iframe_,"load",function(){return void ym0(x)});
x.JSC$8200_iframe_.src=x.JSC$8200_url_;ly8(x)},WSs=function(x){TT9(x,(0,_.mW)(function(G){G.setAuthToken(this.targetId_,this.rpcToken_)},x))},ly8=function(x){var G=_.qy(_.wM(x.JSC$8200_url_),"title");
G&&x.setTitle(G)},cm7=function(x){return _.WEL("Internet Explorer")>=7&&_.zd(x.JSC$8200_url_,"https")?_.xS(Dhq):_.E$?_.xS(KSo):_.xS(zR8)},ym0=function(x){WSs(x);
x.iframeLoaded_=!0;x.JSC$8200_iframe_.tabIndex=0;x.isVisible()&&x.focus()};
JE.prototype.handleKeydown_=function(x){x.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),x.stopPropagation(),x.preventDefault())};
var TT9=function(x,G){var D=x.JSC$8198_gadgetsDomHelper_;lyC(function(){G(D.getWindow().gadgets.rpc)},D)};
JE.prototype.setUrl=function(x){x=_.Ny(new _.w5(x),"rpcService",this.targetId_);_.Ny(x,"rpctoken",this.rpcToken_);_.vA(x,"rpctoken="+this.rpcToken_);_.uv(x,"https");this.JSC$8200_url_=x.toString();this.JSC$8200_iframe_&&(this.JSC$8200_iframe_.src=this.JSC$8200_url_)};
var eRs=function(x,G){x.callback_=G;TT9(x,(0,_.mW)(function(D){D.register(this.targetId_,(0,_.mW)(this.handlePickerAction_,this))},x))};
JE.prototype.handlePickerAction_=function(x){var G=x.action;G=="loaded"&&(this.loadedFired_=!0,ZTZ(this,new KSf(this.isVisible())),MRu(this),JtJ(this),mR(this).unlisten(this.JSC$8149_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8200_iframe_.tabIndex=0);G!="picked"&&G!="cancel"||this.setVisible(!1);this.callback_(x)};
var MRu=function(x){x.JSC$8200_appId_&&ZTZ(x,new DhO(x.JSC$8200_appId_,window.location.protocol+"//"+window.location.host))};
JE.prototype.setRelayUrl=function(x){TT9(this,(0,_.mW)(function(G){G.setRelayUrl(this.targetId_,x)},this))};
var ZTZ=function(x,G){x.useGapi_&&TOE(G,x.iframeManager_).then(null,function(){x.callback_({action:"error"})});
TT9(x,(0,_.mW)(function(D){D.call(this.targetId_,"picker",null,G)},x))};
JE.prototype.resizePicker_=function(){var x=Fn(this.JSC$8149_dom_.JSC$7337_document_)||window;if(_.qy(_.wM(this.JSC$8200_url_),"ignoreLimits")=="true")x=new _.cu(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.qy(_.wM(this.JSC$8200_url_),"shadeDialog")=="true"){var G=wlZ(this);G=uhi(G);var D=_.Tj(x);x=D.width-80;D=D.height-40;G&&(x-=G.left?G.left:0,x-=G.right?G.right:0,D-=G.top?G.top:0,D-=G.bottom?G.bottom:0);x=new _.cu(x>0?x:0,D>0?D:0)}else(G=this.preferredDialogWidth_)?(G=Math.max(320,
Math.min(1051,G)),(D=this.preferredDialogHeight_)||(D=_.Tj(x).height*.85),D=Math.max(480,Math.min(650,D))):(G=_.Tj(x),D=G.width*.618,D=D<G.height?Math.round(Math.max(480,Math.min(650,D*.85))):Math.round(Math.max(480,Math.min(650,G.height*.85))),G=Math.round(D/.618)),x=_.Tj(x),G=Math.min(G,Math.max(x.width,320)),D=Math.min(D,Math.max(x.height,480)),x=new _.cu(G,D);_.UL8(this.getContentElement(),x);this.reposition()};
JE.prototype.reposition=function(){if(_.qy(_.wM(this.JSC$8200_url_),"shadeDialog")=="true"){var x=SDh(this.getElement()),G=_.Tj(this.JSC$8149_dom_.getWindow());x=Math.floor(G.width/2-x.width/2);G=wlZ(this);if(G=uhi(G)){var D=G.left?G.left:0;D+=G.right?G.right:0;x=Math.floor(x-D/2)}x=x>0?x:0;G=Wu(this.JSC$8149_dom_).y;F$(this.getElement(),x,G)}else JE.superClass_.reposition.call(this)};
JE.prototype.setVisible=function(x){if(x!=this.isVisible()&&this.autoSizeDialog_){var G=this.JSC$8149_dom_.getWindow();x?(this.resizePicker_(),mR(this).listen(G,"resize",this.resizePicker_),this.iframeLoaded_||mR(this).listen(G,"keydown",this.handleKeydown_)):(mR(this).unlisten(G,"resize",this.resizePicker_),this.iframeLoaded_||mR(this).unlisten(G,"keydown",this.handleKeydown_))}JE.superClass_.setVisible.call(this,x);ZTZ(this,new KSf(x))};
JE.prototype.focus=function(){JE.superClass_.focus.call(this);if(this.JSC$8200_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8200_iframe_.focus()}catch(x){}};var YA=function(x,G){G=G===void 0?JE:G;SB.call(this,x);this.pickerConstructor=G;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(x=window.location.origin)||(x=window.location.protocol+"//"+window.location.host);x&&this.urlParamMap_.set("origin",x);this.postProcessors_=[]};
_.m(YA,ayL);YA.prototype.JSC$8205_disposeOnHide_=!1;
YA.prototype.build=function(){this.JSC$8106_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$8106_appId_);this.getRelayUrl()||this.setRelayUrl(_.q_(_.vA(_.N_(_.wM(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("jb");var x=new this.pickerConstructor(QEE(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);x.JSC$8182_disposeOnHide_=this.JSC$8205_disposeOnHide_;
x.JSC$8200_appId_=this.JSC$8106_appId_;x.loadedFired_&&MRu(x);eRs(x,this.callback_);return x};
var p6Z=function(x){x.urlParamMap_.set("multiselectEnabled","true");return x};
YA.prototype.getHeight=function(){return this.dialogHeight_};
YA.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
YA.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
YA.prototype.getWidth=function(){return this.dialogWidth_};
var VRJ=function(x){x.JSC$8205_disposeOnHide_=void 0;return x};
YA.prototype.setRelayUrl=function(x){this.urlParamMap_.set("parent",x);return this};
var bTE=function(x,G){x.urlParamMap_.set("selectButtonLabel",G);return x};
YA.prototype.setSize=function(x,G){this.dialogWidth_=x;this.dialogHeight_=G;return this};
YA.prototype.setTitle=function(x){this.urlParamMap_.set("title",x);return this};
var QEE=function(x){x.postProcessors_.length&&x.urlParamMap_.set("pp",JSON.stringify(x.postProcessors_));x.urlParamMap_.set("nav",myZ(x.nav_));var G=new _.w5(x.getBaseUrl());x.urlParamMap_.forEach(function(D,K){_.Ny(G,K,D)});
return G};var rmZ=function(x,G){x.name!==void 0?(this.name=x.name,this.code=LSo[x.name]):(this.code=x=x.code,this.name=BTu(x));_.xC.call(this,PfC("%s %s",this.name,G))};
_.tR(rmZ,_.xC);var BTu=function(x){var G=_.YS.findKey(LSo,function(D){return x==D});
if(G===void 0)throw Error("lb`"+x);return G},Ax={},LSo=(Ax.AbortError=3,Ax.EncodingError=5,Ax.InvalidModificationError=9,Ax.InvalidStateError=7,Ax.NotFoundError=1,Ax.NotReadableError=4,Ax.NoModificationAllowedError=6,Ax.PathExistsError=12,Ax.QuotaExceededError=10,Ax.SecurityError=2,Ax.SyntaxError=8,Ax.TypeMismatchError=11,Ax);var sEs=function(x,G){_.aY.call(this,x.type,G);this.event_=x};
_.tR(sEs,_.aY);var Yos=function(x,G,D){D===void 0&&(D=x.size);return x.slice?x.slice(G,D):null};var VR3=new WeakMap,p6P=function(x,G){x=[x];for(var D=G.length-1;D>=0;--D)x.push(typeof G[D],G[D]);return x.join("\v")};_.LSf(function(){if(!_.Df.Blob)return!1;var x=new Uint8Array(100);try{var G=new Blob([x])}catch(D){return!1}return G.size!=100?!1:!0});
var mhE=_.LSf(function(){if(!_.Df.Blob)return!1;var x=new Uint8Array(100);try{var G=new Blob([x])}catch(D){return!1}return Yos(G,0,1)===null?!1:!0});_.Df.U3bHHf!=null||(_.Df.U3bHHf=0);_.Df.U3bHHf++;var BT$={};var PZ=void 0;var sEL=Symbol("tb");var RRn=GC("WizInjectionContext_Dispatcher");var jE$=GC("WizInjectionContext_RootElement");var X6P=GC("WizInjectionContext_AppContext"),OTd=GC("WizInjectionContext_ModelRootElement"),Am$=GC("WizInjectionContext_RendererData"),Uh3=GC("WizInjectionContext_InjectingConstructor"),IyD=GC("WizInjectionContext_AsyncDeps"),SoE={};var w6$=!1;var JmO={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:dfC,enableLazyTsx:wEP,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,disableSoyJsRenderEvents:!1,legacyTriggerSoyRendererEvents:!1};var Kx=Object.assign({},{attributes:{},handleError:function(x){throw x;}},JmO);var HTs=Symbol("xb"),Rx3=Symbol("yb"),gK$=Symbol("zb"),nKL=Symbol("Ab"),JvL=q0(function(x){return zC(x)&&HTs in x});var xU3=Symbol("Bb"),Ut={},ET3=(Ut[xU3]=!0,Ut.debugName="[component]",Ut.getComponentStack=function(){for(var x=[],G=this;G;)Gzh(G)&&x.push(G.debugName),G=G.parent;return x},Ut.registerSignal=function(){},Ut.registerEffect=function(){},Ut);var af=null,y9=!1,yvE=1,TC=Symbol("Cb"),px={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 R6=Symbol("Db"),Su=Symbol("Eb"),cl=Symbol("Fb"),QAf=Object.assign({},px,{value:R6,dirty:!0,error:null,equal:DUQ,kind:"computed",producerMustRecompute:function(x){return x.value===R6||x.value===Su},
producerRecomputeValue:function(x){if(x.value===Su)throw Error("da");var G=x.value;x.value=Su;var D=exO(x),K=!1;try{var z=x.computation();of(null);K=G!==R6&&G!==cl&&z!==cl&&x.equal(G,z)}catch(y){z=cl,x.error=y}finally{ZLn(x,D)}K?x.value=G:(x.value=z,x.version++)}});var LdO=function(){throw Error();};var rvh=null,V_C=Object.assign({},px,{equal:DUQ,value:void 0,kind:"signal"});Object.assign({},px,{value:R6,dirty:!0,error:null,equal:DUQ,kind:"linkedSignal",producerMustRecompute:function(x){return x.value===R6||x.value===Su},
producerRecomputeValue:function(x){if(x.value===Su)throw Error("da");var G=x.value;x.value=Su;var D=exO(x);try{var K=x.source();var z=x.computation(K,G===R6||G===cl?void 0:{source:x.sourceValue,value:G});x.sourceValue=K}catch(y){z=cl,x.error=y}finally{ZLn(x,D)}G!==R6&&z!==cl&&x.equal(G,z)?x.value=G:(x.value=z,x.version++)}});Object.assign({},px,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(x){x.schedule!==null&&x.schedule(x.ref)},
hasRun:!1,cleanupFn:function(){}});var YjL=Symbol("Gb"),ZS=Symbol("Hb");var Mu=Array.isArray;var X0$;var $hi={},UUd=OL$(Object.assign({},{consumerAllowSignalWrites:!0},$hi)),Mh=OL$(Object.assign({},{consumerAllowSignalWrites:!0},$hi));var Lx=0,ni=function(){this.queue=new Set};
ni.prototype.remove=function(x){this.queue.delete(x)};
ni.prototype.clear=function(){this.queue.clear()};
var FS8=function(){ni.apply(this,arguments)};
_.m(FS8,ni);FS8.prototype.schedule=function(x){this.queue.add(x)};
FS8.prototype.flush=function(){if(this.queue.size)for(var x=_.l(this.queue),G=x.next();!G.done;G=x.next()){G=G.value;this.queue.delete(G);try{G.run()}catch(D){CMq(D)}}};
var IyE=new FS8,il=function(){ni.apply(this,arguments)};
_.m(il,ni);var jEu=function(){il.apply(this,arguments)};
_.m(jEu,il);jEu.prototype.schedule=function(x){x.hasRun?this.queue.add(x):x.run()};
jEu.prototype.flush=function(){if(this.queue.size){var x=this.queue;this.queue=new Set;fbD(x)}};
var Sjf=new jEu,OT7=function(){il.apply(this,arguments)};
_.m(OT7,il);OT7.prototype.schedule=function(x){var G=this;return _.T(function(D){if(D.nextAddress==1)return x.hasRun?D.jumpTo(2):_.Z(D,Promise.resolve(),3);if(D.nextAddress!=2)return x.run(),D.return();G.queue.add(x);_.c5(D)})};
OT7.prototype.flush=function(){var x=this;return _.T(function(G){if(G.nextAddress==1)return x.queue.size?_.Z(G,Promise.resolve(),2):G.return();fbD(x.queue);_.c5(G)})};
var ufP=new OT7,X6Z=function(){il.apply(this,arguments)};
_.m(X6Z,il);X6Z.prototype.schedule=function(x){this.queue.add(x)};
X6Z.prototype.flush=function(){this.queue.size&&fbD(this.queue)};
var iLO=new X6Z,NxO=[Sjf,IyE,iLO,ufP],Amu=[Sjf,iLO,ufP],w0d=[];rvh=function(){vKd();for(var x=_.l(w0d),G=x.next();!G.done;G=x.next())G=G.value,G()};
var CMq=K$;var sX=Symbol("Mb");var rO=null,EKV,hxD=null,xOQ;var gq={},UhJ=Object.assign({},px,(gq[HTs]=!0,gq.effectType=Rx3,gq.isResettableContext=!0,gq.producerNode=void 0,gq.hasRun=!1,gq.effectFn=null,gq.consumerIsAlwaysLive=!0,gq.consumerAllowSignalWrites=!0,gq.consumerMarkedDirty=dUn,gq.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(y9)throw Error("Nb");this.dirty=!1;if(!this.hasRun||lbE(this)){this.hasRun=!0;CMO(this);var x=EP(this),G=exO(this);tRd("effectRun",this.debugName);try{Hl(this.effectFn,this.componentStack)}catch(D){throw Kx.enableContextBasedComponentStacks&&
mG(D),D;}finally{kZ3("effectRun",this.debugName),ZLn(this,G),EP(x)}}}},gq.componentStack=void 0,gq.debugName="[effect]",gq[Symbol.dispose]=function(){KdC(this);
if(l1(this))for(var x=0;x<this.producerNode.length;x++)zxE(this.producerNode[x],this.producerIndexOfThis[x]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);x=_.l(Amu);for(var G=x.next();!G.done;G=x.next())G.value.remove(this);FSC(this)},gq));var Kn$=Object.assign({},UhJ,{effectType:gK$});var zHQ=Symbol("Ob");var avL=Object.assign({},UhJ,{effectType:Rx3});var ujO=new Set("allowfullscreen allowtransparency async autofocus autoplay checked controls default defer disabled disableremoteplayback formnovalidate hidden inert ismap itemscope jsshadow jsslot loop multiple muted nomodule novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var ht=Symbol("Pb");var W6=function(){},bM=function(x){this.props=x;
this.__unmounted=!1};
bM.prototype.didPatch=function(){};
bM.prototype.didMount=function(){};
bM.prototype.didUnmount=function(){};
bM.prototype.didUpdate=function(){};var lvD={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,id:10,
ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,playsinline:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,valign:1,value:1,width:1,wrap:1},yuQ={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}]}},IhE={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},WnD=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],T$d={"*":{async:1,dir:0,loading:2,target:3}};var RR9=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,ul={},ZUn=(ul[1]=null,ul[2]=function(x,G){return G instanceof HC?F_(G):p9.toString()},ul[3]=function(x,G){return er(G)?_.ZB(G):RR9.test(String(G))?String(G):p9.toString()},ul[4]=function(x,G){return G instanceof aF?_.lH(G):p9.toString()},ul[5]=function(x,G){return String(G)},ul[7]=null,ul[8]=null,ul[10]=null,ul);var Pbf=Symbol("Rb");var F0P=function(x){var G=Soh,D=x,K="",z="",y=1;x<0&&(x=-x);if(x===Infinity)x=(Infinity*Math.sign(D)).toString();else{for(var c=0;c<nTE.length;c++){var W=nTE[c];y=G[W];if(x>=y||y<=1&&x>.1*y){K=W;break}}K?(K+="B",z=" "):y=1;x=Math.round(D/y*10)/10+z+K}return x},nTE="Y Z E P T G M K  m u n".split(" "),Soh={"":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};_.iTq=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 aE={};RegExp.prototype.hasOwnProperty("sticky");var qpV=function(x){x=String(x);for(var G=function(K,z,y){for(var c=Math.min(z.length-y,K.length),W=0;W<c;W++){var e=z[y+W];if(K[W]!==("A"<=e&&e<="Z"?e.toLowerCase():e))return!1}return!0},D=0;(D=x.indexOf("<",D))!=-1;){if(G("\x3c/script",x,D)||G("\x3c!--",x,D))return"zSoyz";
D+=1}return x};var UX={default:"__default"};var B$O=Object.prototype.hasOwnProperty;pSE.prototype=Object.create(null);var fE=YpD();var fx=null;var UOQ=function(x){this.created=[];this.deleted=[];this.node=x};var RHQ=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var x=this,G=x;x;)G=x,x=x.parentNode;return G};var HUQ=function(x,G){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=x;this.key=G;this.text=void 0};var i1=null,gO=null,SO=null,dO=null,jWE=[],Ivh=FnL,vl=[],Jt=[],keO=function(x){return Sp3(function(G,D,K){SO=gO=G;gO=null;D(K);CpP(null);gO=SO;SO=SO.parentNode;return G},x)}(),tnn=function(x){return Sp3(function(G,D,K){var z={nextSibling:G};
gO=z;D(K);SO&&CpP(G.nextSibling);return z===gO?null:gO},x)}();var tt=[],iU$=0;var k9=new pSE;var Y$=new pSE;var gTs=YpD(),wSf=gTs[UX.default],N$D=gTs.style,dO3=["focusin","focusout"];var Igf=function(){},bEf=function(){},UiD=function(){},OEn=function(){};var EX=Symbol("Xb");var EWL,Ppf=kuO;var yD=Symbol("Yb");var ZEf={};var A2n=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(" ")),
Xwf=new Set(["a","font","script","style","title"]);var QD={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var pT=null,VD=function(x,G){bM.call(this,x);var D=this;this.functionComponent=G;this.hooks=[];this.hookCounter=0;this.disposeEffects=Cx(function(K){D.effectContext=K;_.Fq(function(){s4$(D,D.el)})},Kx.alwaysTrackContexts||!!PZ)};
_.m(VD,bM);VD.prototype.render=function(x){var G=pT;pT=this;this.hookCounter=0;var D=of(Mh),K=EP(this.effectContext);try{return tRd("render",this.componentName),this.functionComponent(x)}finally{kZ3("render",this.componentName),EP(K),of(D),pT=G}};
_.Nq.Object.defineProperties(VD.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return kzQ(this.functionComponent)}}});var Reh=Symbol("lc"),FvO=function(x,G,D){this.kind=x;this.props=G;this.children=D};
_.m(FvO,W6);FvO.prototype.render=function(){return $iO(this.kind,this.props,this.children)};
FvO.prototype.getChildren=function(){return this.children};var nqP=[];LdO=function(x){throw Error("sb`"+x.debugName);};
(function(){var x=fx;fx=function(G){x==null||x(G);iEV(G)}})();var uQi=void 0,dhs={},w6u=new WeakMap,gqL={getComponent:function(x){if(x.hasAttribute("ng-version"))return dhs;if(!x.__wizComponent)return null;x=x.__wizComponent;w6u.set(x.propsAndState,x);return x.propsAndState},
getDirectiveMetadata:function(x){if(x===dhs)return{framework:"wiz",name:"<Root>",props:{}};x=w6u.get(x);if(!x)throw Error("mc");return{framework:"wiz",name:x.name,props:Object.fromEntries(Object.keys(x.props).map(function(G){return[G,G]}))}},
"\u0275setProfiler":function(x){var G;(G=uQi)==null||G();uQi=qjh(function(){x(2)})},
isSignal:function(x){return typeof x==="function"&&x[TC]!==void 0}};_.b.debugName="RlDudd";var dif={nonNullableCondIsNull:function(){return Error("qc")}};var fgL=function(){this.map=new Map};
fgL.prototype.push=function(x,G){var D=this.map;D.has(x)&&(this.multi||(this.multi=new Map),this.multi.set(G,D.get(x)));D.set(x,G)};
fgL.prototype.pop=function(x){var G=this.map,D=G.get(x),K;D!==void 0&&((K=this.multi)==null?0:K.has(D))?(G.set(x,this.multi.get(D)),this.multi.delete(D)):G.delete(x);return D};_.LT.debugName="nsTGHd";_.B6.debugName="tbhMcf";_.rT.debugName="zyMFzb";_.so.debugName="vI1rtf";var heV={LOG_NULL_EL_REF_VALUE:function(){return Error("rc")},
OUT_OF_ORDER_HOOK_CALL:function(x){return Error("sc`"+x)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("tc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("uc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("vc")},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(x,G){return Error("wc`"+x+"`"+G)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(x){return Error("xc`"+x)},
USE_ELEMENT_NOT_ASSIGNED:function(x){return Error("yc`"+String(x))}};EWL=CVL;var K7L=Symbol("zc");Bu3({beforeRender:function(x){var G=EP(x.effectContext);try{var D;((D=x.__syncEffects)==null?0:D.length)&&aPQ(x.__syncEffects)}finally{EP(G)}},
didPatch:function(x){var G=EP(x.effectContext);try{var D;((D=x.__syncEffects)==null?0:D.length)&&aPQ(x.__syncEffects)}finally{EP(G)}},
didUnmount:function(x){var G;((G=x.hooks)==null?0:G.length)&&x.hooks.forEach(zpQ)}});var qo8,NTu,vTs;qo8=_.Df.window;_.Oo=(qo8==null?void 0:(NTu=qo8.yt)==null?void 0:NTu.config_)||(qo8==null?void 0:(vTs=qo8.ytcfg)==null?void 0:vTs.data_)||{};_.Jv("yt.config_",_.Oo);var Jmq={},cUd=[];_.LL=function(x){var G=_.rC.apply(1,arguments);var D=Error.call(this,x);this.message=D.message;"stack"in D&&(this.stack=D.stack);this.args=[].concat(_.B5(G));Object.setPrototypeOf(this,this.constructor.prototype)};
_.m(_.LL,Error);var cxP=function(x,G,D){this.actionName=x;this.optionalAction=G===void 0?!1:G;this.args=D===void 0?null:D;this.returnValue=[]};_.J=function(x){this.name=x};_.Sm=new _.J("signalAction");var B1C=/^[\w.]*$/,MSP={q:!0,search_query:!0},Zoh=String(epL);var dq;dq=Symbol("Ac");_.wq=function(x){this.name=x};
_.wq.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var rUO=function(x){this.key=x},mqC=function(x){this.deferredKey=x},Yv$=function(){var x=this;
this.providers=new Map;this.JSC$8413_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(x.providers)}}};
Yv$.prototype.addProvider=function(x){this.providers.set(x.provide,x);var G=this.JSC$8413_deferred.get(x.provide);if(G)try{G.resolver(this.resolve(x.provide))}catch(D){G.rejector(D)}};
Yv$.prototype.resolve=function(x){return x instanceof mqC?fyZ(this,x):x instanceof rUO?tR7(this,x.key,[],!0):tR7(this,x,[])};
var fyZ=function(x,G){G=G.deferredKey;if(x.JSC$8413_deferred.has(G))return x.JSC$8413_deferred.get(G).promise;var D={};D.promise=new Promise(function(K,z){D.resolver=K;D.rejector=z});
x.JSC$8413_deferred.set(G,D);return D.promise},tR7=function(x,G,D,K){K=K===void 0?!1:K;
if(D.indexOf(G)>-1)throw Error("Bc`"+G);if(x.cachedValues.has(G))return x.cachedValues.get(G);if(!x.providers.has(G)){if(K)return;throw Error("Cc`"+G);}K=x.providers.get(G);D.push(G);if(K.useValue!==void 0)var z=K.useValue;else if(K.useFactory)z=K[dq]?kZJ(x,K[dq],D):[],z=K.useFactory.apply(K,_.B5(z));else if(K.useClass){z=K.useClass;var y=z[dq]?kZJ(x,z[dq],D):[];z=new (Function.prototype.bind.apply(z,[null].concat(_.B5(y))))}else throw Error("Dc`"+G);D.pop();K.skipCache||x.cachedValues.set(G,z);return z},
kZJ=function(x,G,D){return G?G.map(function(K){return K instanceof rUO?tR7(x,K.key,D,!0):tR7(x,K,D)}):[]};var sNL;var nE=new _.wq("ENDPOINT_HANDLER_TOKEN");_.iV=new _.J("urlEndpoint");var PMJ=function(){this.data=[];this.cachedPackedInt52=-1};
PMJ.prototype.set=function(x,G){G=G===void 0?!0:G;0<=x&&x<52&&Number.isInteger(x)&&this.data[x]!==G&&(this.data[x]=G,this.cachedPackedInt52=-1)};
PMJ.prototype.get=function(x){return!!this.data[x]};
var ETJ=function(x){x.cachedPackedInt52===-1&&(x.cachedPackedInt52=x.data.reduce(function(G,D,K){return G+(D?Math.pow(2,K):0)},0));
return x.cachedPackedInt52};var ioP=function(x){var G=hRJ;x=x===void 0?_.nT("yt.ads.biscotti.lastId_")||"":x;var D=Object,K=D.assign,z={};z.dt=GAh;z.flash="0";a:{try{var y=G.JSC$8419_win_.top.location.href}catch(bO){y=2;break a}y=y?y===G.doc_.location.href?0:1:2}z=(z.frm=y,z);try{z.u_tz=-(new Date).getTimezoneOffset();var c=c===void 0?Cw:c;try{var W=c.history.length}catch(bO){W=0}z.u_his=W;var e;z.u_h=(e=Cw.screen)==null?void 0:e.height;var Q;z.u_w=(Q=Cw.screen)==null?void 0:Q.width;var p;z.u_ah=(p=Cw.screen)==null?void 0:p.availHeight;
var V;z.u_aw=(V=Cw.screen)==null?void 0:V.availWidth;var L;z.u_cd=(L=Cw.screen)==null?void 0:L.colorDepth}catch(bO){}W=G.JSC$8419_win_;try{var r=W.screenX;var H=W.screenY}catch(bO){}try{var O=W.outerWidth;var A=W.outerHeight}catch(bO){}try{var g=W.innerWidth;var u=W.innerHeight}catch(bO){}try{var f=W.screenLeft;var v=W.screenTop}catch(bO){}try{g=W.innerWidth,u=W.innerHeight}catch(bO){}try{var P=W.screen.availWidth;var k=W.screen.availTop}catch(bO){}r=[f,v,r,H,P,k,O,A,g,u];H=blL(!1,G.JSC$8419_win_.top);
O={};var cL=cL===void 0?_.Df:cL;A=new PMJ;"SVGElement"in cL&&"createElementNS"in cL.document&&A.set(0);g=KEi();g["allow-top-navigation-by-user-activation"]&&A.set(1);g["allow-popups-to-escape-sandbox"]&&A.set(2);cL.crypto&&cL.crypto.subtle&&A.set(3);"TextDecoder"in cL&&"TextEncoder"in cL&&A.set(4);cL=ETJ(A);G=(O.bc=cL,O.bih=H.height,O.biw=H.width,O.brdim=r.join(),O.vis=KWf(G.doc_),O.wgl=!!Cw.WebGLRenderingContext,O);D=K.call(D,z,G);D.ca_type="image";x&&(D.bid=x);return D},hRJ=new function(){var x=
window.document;
this.JSC$8419_win_=window;this.doc_=x};
_.Jv("yt.ads_.signals_.getAdSignalsString",function(x){return QNV(ioP(x))});_.f6();navigator.userAgent.indexOf(" (CrKey ");var IPC="XMLHttpRequest"in _.Df?function(){return new XMLHttpRequest}:null;var xUJ="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),Gzi=[].concat(_.B5(xUJ),["client_dev_set_cookie"]);var nBV={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"},Xm$="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(_.B5(xUJ)),fPP=!1,UqQ=_.gBn,N1d=SvL;var VnL=[{messageFn:function(x){return"Cannot read property '"+x.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(x){return"Cannot call '"+x.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(x){return x.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var DUk={messageWeights:[],callbackWeights:[{callback:EBV,weight:500},{callback:hpE,weight:500}]};var Kd8=function(){this.callbackWeights=[];this.messageWeights=[]},zxh,ph$=function(){if(!zxh){var x=zxh=new Kd8;
x.messageWeights.length=0;x.callbackWeights.length=0;yLf(x,DUk)}return zxh},yLf=function(x,G){G.messageWeights&&x.messageWeights.push.apply(x.messageWeights,G.messageWeights);
G.callbackWeights&&x.callbackWeights.push.apply(x.callbackWeights,G.callbackWeights)};_.tR(_.e_,_.Ya);_.e_.prototype.subscribe=function(x,G,D){var K=this.topics_[x];K||(K=this.topics_[x]=[]);var z=this.JSC$8443_key_;this.subscriptions_[z]=x;this.subscriptions_[z+1]=G;this.subscriptions_[z+2]=D;this.JSC$8443_key_=z+3;K.push(z);return z};
var abh=function(x){var G=rnD,D=!1,K=G.subscribe("handleError",function(z){D||(D=!0,this.unsubscribeByKey(K),x.apply(void 0,arguments))},G)};
_.e_.prototype.unsubscribe=function(x,G,D){if(x=this.topics_[x]){var K=this.subscriptions_;if(x=x.find(function(z){return K[z+1]==G&&K[z+2]==D}))return this.unsubscribeByKey(x)}return!1};
_.e_.prototype.unsubscribeByKey=function(x){var G=this.subscriptions_[x];if(G){var D=this.topics_[G];this.publishDepth_!=0?(this.pendingKeys_.push(x),this.subscriptions_[x+1]=function(){}):(D&&_.f$(D,x),delete this.subscriptions_[x],delete this.subscriptions_[x+1],delete this.subscriptions_[x+2])}return!!G};
_.e_.prototype.publish=function(x,G){var D=this.topics_[x];if(D){var K=Array(arguments.length-1),z=arguments.length,y;for(y=1;y<z;y++)K[y-1]=arguments[y];if(this.async_)for(y=0;y<D.length;y++)z=D[y],oK0(this.subscriptions_[z+1],this.subscriptions_[z+2],K);else{this.publishDepth_++;try{for(y=0,z=D.length;y<z&&!this.isDisposed();y++){var c=D[y];this.subscriptions_[c+1].apply(this.subscriptions_[c+2],K)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;D=this.pendingKeys_.pop();)this.unsubscribeByKey(D)}}return y!=
0}return!1};
var oK0=function(x,G,D){_.eH(function(){x.apply(G,D)})};
_.e_.prototype.clear=function(x){if(x){var G=this.topics_[x];G&&(G.forEach(this.unsubscribeByKey,this),delete this.topics_[x])}else this.subscriptions_.length=0,this.topics_={}};
_.e_.prototype.getCount=function(x){if(x){var G=this.topics_[x];return G?G.length:0}x=0;for(G in this.topics_)x+=this.getCount(G);return x};
_.e_.prototype.disposeInternal=function(){_.e_.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var rnD=new _.e_;var Dv=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Dv,_.SX);Dv.prototype.getColdHashData=function(){return _.rP(this,3)};
Dv.prototype.getHotHashData=function(){return _.rP(this,5)};
Dv.prototype.setHotHashData=function(x){return _.Z_(this,5,x)};var ZWE=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(ZWE,_.SX);var uwP=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(uwP,_.SX);_.a=uwP.prototype;_.a.getDeviceId=function(){return _.rP(this,6)};
_.a.getExperimentIds=function(x){var G=_.Lm(this,9,_.mf,3,!0);iq(G,x);return G[x]};
_.a.getPlayerType=function(){return _.sk(this,36)};
_.a.setHomeGroupInfo=function(x){return _.GW(this,81,x)};
_.a.clearLocationPlayabilityToken=function(){return _.Gu(this,89)};var Zg=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Zg,_.SX);Zg.prototype.setKey=function(x){return _.Z_(this,1,x)};
Zg.prototype.getValue=function(){return mH(this,2,wDL)};
var wDL=[2,3,4,5,6];var yvh=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(yvh,_.SX);yvh.prototype.setTrackingParams=function(x){return _.Gu(this,1,_.nu(x,!1))};var dvL=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(dvL,_.SX);var pgV=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(pgV,_.SX);pgV.prototype.getExperimentIds=function(x){var G=_.Lm(this,5,_.HY,3,!0);iq(G,x);return G[x]};var Vh=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Vh,_.SX);Vh.prototype.getToken=function(){return _.QF(this,2)};
Vh.prototype.setToken=function(x){return _.Z_(this,2,x)};var Qh=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Qh,_.SX);Qh.prototype.setSafetyMode=function(x){return _.xW(this,5,x)};var em=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(em,_.SX);em.prototype.setClient=function(x){return _.GW(this,1,x)};var QIE={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 M7$;_.rA=function(){var x=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.Df.addEventListener("beforeinstallprompt",function(G){G.preventDefault();x.deferredInstallPrompt=G});
_.Df.addEventListener("appinstalled",function(){x.appInstalledEventFired=!0},{once:!0})};
M7$=function(){if(!_.Df.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.Df.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.Df.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.Df.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.Df.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(x){return"WEB_DISPLAY_MODE_UNKNOWN"}};var Lsh=function(){this.syncHeaders=!0},BB$=function(x){var G={},D=[];
"USER_SESSION_ID"in _.Oo&&D.push({key:"u",value:_.Am("USER_SESSION_ID")});if(D=dWP(D))G.Authorization=D,D=x=x==null?void 0:x.sessionIndex,D===void 0&&(D=Number(_.Am("SESSION_INDEX",0)),D=isNaN(D)?0:D),_.B("voice_search_auth_header_removal")||(G["X-Goog-AuthUser"]=D.toString()),"INNERTUBE_HOST_OVERRIDE"in _.Oo||(G["X-Origin"]=window.location.origin),x===void 0&&"DELEGATED_SESSION_ID"in _.Oo&&(G["X-Goog-PageId"]=_.Am("DELEGATED_SESSION_ID"));return G};var lbh={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var q9=_.nT("ytglobal.prefsUserPrefsPrefs_")||{},cvi;_.Jv("ytglobal.prefsUserPrefsPrefs_",q9);_.N9=function(){this.cookieName=_.Am("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.Am("ALT_PREF_COOKIE_DOMAIN","youtube.com");var x=_.MU.get(this.cookieName,void 0);x&&this.parse(x)};
_.M5=function(){cvi||(cvi=new _.N9);return cvi};
_.N9.prototype.get=function(x,G){Txu(x);Wdk(x);x=q9[x]!==void 0?q9[x].toString():null;return x!=null?x:G?G:""};
_.N9.prototype.set=function(x,G){Txu(x);Wdk(x);if(G==null)throw Error("Gc");q9[x]=G.toString()};
_.N9.prototype.getFlag=function(x){return!!((exq("f"+(Math.floor(x/31)+1))||0)&1<<x%31)};
_.Qg=function(x,G,D){x="f"+(Math.floor(G/31)+1);G=1<<G%31;var K=exq(x)||0;K=D?K|G:K&~G;K===0?delete q9[x]:(D=K.toString(16),q9[x]=D.toString())};
_.N9.prototype.remove=function(x){Txu(x);Wdk(x);delete q9[x]};
_.N9.prototype.save=function(){var x=!0;_.B("web_secure_pref_cookie_killswitch")&&(x=!1);_.QR(this.cookieName,this.dump(),63072E3,this.cookieDomain,x)};
_.N9.prototype.clear=function(){_.YS.clear(q9)};
_.N9.prototype.dump=function(){var x=[],G;for(G in q9)q9.hasOwnProperty(G)&&x.push(G+"="+encodeURIComponent(String(q9[G])));return x.join("&")};
var Wdk=function(x){if(/^f([1-9][0-9]*)$/.test(x))throw Error("Hc`"+x);},Txu=function(x){if(!/^\w+$/.test(x))throw Error("Ic`"+x);
},exq=function(x){x=q9[x]!==void 0?q9[x].toString():null;
return x!=null&&/^[A-Fa-f0-9]+$/.test(x)?parseInt(x,16):null};
_.N9.prototype.parse=function(x){x=decodeURIComponent(x).split("&");for(var G=0;G<x.length;G++){var D=x[G].split("="),K=D[0];(D=D[1])&&(q9[K]=D.toString())}};var luf={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"},V7E={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},bWL={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},T53={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var hn;_.v$=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.Bw=function(x,G,D){return x.addJob(G,0,D)};
_.v$.prototype.addLowPriorityJob=function(x,G){return this.addJob(x,1,G)};
_.eU=function(x,G,D){return x.addJob(G,2,D)};
_.Vs=function(x,G,D){return x.addJob(G,3,D)};
_.x7=function(x,G,D){return x.addJob(G,4,D)};
hn=function(x){var G=_.nT("yt.scheduler.instance.addImmediateJob");G?G(x):x()};
_.v$.prototype.debounce=function(x,G,D){var K=this,z=0,y=function(){z&&K.cancelJob(z);z=K.addJob(x,G,D);K.cancelDebouncedJobMap.set(y,z)};
return y};
_.v$.prototype.cancelThrottle=function(x){(x=this.cancelThrottledJobMap.get(x))&&x()};var Jx=function(){_.v$.apply(this,arguments)};
_.m(Jx,_.v$);_.rv=function(){Jx.instance||(Jx.instance=new Jx);return Jx.instance};
Jx.prototype.addJob=function(x,G,D){D!==void 0&&Number.isNaN(Number(D))&&(D=void 0);var K=_.nT("yt.scheduler.instance.addJob");return K?K(x,G,D):D===void 0?(x(),NaN):_.oA(x,D||0)};
Jx.prototype.cancelJob=function(x){if(x===void 0||!Number.isNaN(Number(x))){var G=_.nT("yt.scheduler.instance.cancelJob");G?G(x):_.lI(x)}};
Jx.prototype.start=function(){var x=_.nT("yt.scheduler.instance.start");x&&x()};
Jx.prototype.pause=function(){var x=_.nT("yt.scheduler.instance.pause");x&&x()};
_.Fj=_.rv();_.B0.prototype.set=function(x,G){G===void 0?this.mechanism.remove(x):this.mechanism.set(x,(0,_.VZ)(G))};
_.B0.prototype.get=function(x){try{var G=this.mechanism.get(x)}catch(D){return}if(G!==null)try{return JSON.parse(G)}catch(D){throw"Storage: Invalid value was encountered";}};
_.B0.prototype.remove=function(x){this.mechanism.remove(x)};var fi=function(x){this.mechanism=x};
_.tR(fi,_.B0);var ZL9=function(x){this.data=x},M_E=function(x){return x===void 0||x instanceof ZL9?x:new ZL9(x)};
fi.prototype.set=function(x,G){fi.superClass_.set.call(this,x,M_E(G))};
fi.prototype.getWrapper=function(x){x=fi.superClass_.get.call(this,x);if(x===void 0||x instanceof Object)return x;throw"Storage: Invalid value was encountered";};
fi.prototype.get=function(x){if(x=this.getWrapper(x)){if(x=x.data,x===void 0)throw"Storage: Invalid value was encountered";}else x=void 0;return x};_.tR(rx,fi);_.QAZ=function(x){var G=x.creation;x=x.expiration;return!!x&&x<_.f6()||!!G&&G>_.f6()};
rx.prototype.set=function(x,G,D){if(G=M_E(G)){if(D){if(D<_.f6()){rx.prototype.remove.call(this,x);return}G.expiration=D}G.creation=_.f6()}rx.superClass_.set.call(this,x,G)};
rx.prototype.getWrapper=function(x,G){var D=rx.superClass_.getWrapper.call(this,x);if(D)if(!G&&_.QAZ(D))rx.prototype.remove.call(this,x);else return D};var tx=function(){};
tx.prototype.next=function(){return kJ};
var kJ={done:!0,value:void 0},P$=function(x){return{value:x,done:!1}};
tx.prototype.__iterator__=function(){return this};
_.p07=function(x){if(x instanceof tx)return x;if(typeof x.__iterator__=="function")return x.__iterator__(!1);if(_.PL(x)){var G=0,D=new tx;D.next=function(){for(;;){if(G>=x.length)return kJ;if(G in x)return P$(x[G++]);G++}};
return D}throw Error("Jc");};var V_8=function(x){if(x instanceof Et||x instanceof hx||x instanceof xG)return x;if(typeof x.next=="function")return new Et(function(){return x});
if(typeof x[Symbol.iterator]=="function")return new Et(function(){return x[Symbol.iterator]()});
if(typeof x.__iterator__=="function")return new Et(function(){return x.__iterator__()});
throw Error("Kc");},Et=function(x){this.func_=x};
Et.prototype.__iterator__=function(){return new hx(this.func_())};
Et.prototype[Symbol.iterator]=function(){return new xG(this.func_())};
Et.prototype.toEs6=function(){return new xG(this.func_())};
var hx=function(x){this.JSC$8527_iter_=x};
_.m(hx,tx);hx.prototype.next=function(){return this.JSC$8527_iter_.next()};
hx.prototype[Symbol.iterator]=function(){return new xG(this.JSC$8527_iter_)};
hx.prototype.toEs6=function(){return new xG(this.JSC$8527_iter_)};
var xG=function(x){Et.call(this,function(){return x});
this.JSC$8530_iter_=x};
_.m(xG,Et);xG.prototype.next=function(){return this.JSC$8530_iter_.next()};var bLh=function(){};var Gs=function(){};
_.tR(Gs,bLh);Gs.prototype.getCount=function(){for(var x=0,G=_.l(this),D=G.next();!D.done;D=G.next())x++;return x};
Gs.prototype[Symbol.iterator]=function(){return V_8(this.__iterator__(!0)).toEs6()};
Gs.prototype.clear=function(){var x=Array.from(this);x=_.l(x);for(var G=x.next();!G.done;G=x.next())this.remove(G.value)};_.tR(sj,Gs);_.a=sj.prototype;_.a.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var x=this.storage_;if(x)try{x.setItem("__sak","1");x.removeItem("__sak");var G=!0}catch(D){G=D instanceof DOMException&&(D.name==="QuotaExceededError"||D.code===22||D.code===1014||D.name==="NS_ERROR_DOM_QUOTA_REACHED")&&x&&x.length!==0}else G=!1;this.cachedIsStorageAvailable_=G}return this.cachedIsStorageAvailable_};
_.a.set=function(x,G){Dr(this);try{this.storage_.setItem(x,G)}catch(D){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.a.get=function(x){Dr(this);x=this.storage_.getItem(x);if(typeof x!=="string"&&x!==null)throw"Storage mechanism: Invalid value was encountered";return x};
_.a.remove=function(x){Dr(this);this.storage_.removeItem(x)};
_.a.getCount=function(){Dr(this);return this.storage_.length};
_.a.__iterator__=function(x){Dr(this);var G=0,D=this.storage_,K=new tx;K.next=function(){if(G>=D.length)return kJ;var z=D.key(G++);if(x)return P$(z);z=D.getItem(z);if(typeof z!=="string")throw"Storage mechanism: Invalid value was encountered";return P$(z)};
return K};
_.a.clear=function(){Dr(this);this.storage_.clear()};
_.a.key=function(x){Dr(this);return this.storage_.key(x)};
var Dr=function(x){if(x.storage_==null)throw Error("Lc");x.isAvailable()||K$(Error("Lc"))};_.tR(ec3,sj);_.tR(ZCD,sj);_.tR(YK,Gs);YK.prototype.set=function(x,G){this.mechanism_.set(this.JSC$8545_prefix_+x,G)};
YK.prototype.get=function(x){return this.mechanism_.get(this.JSC$8545_prefix_+x)};
YK.prototype.remove=function(x){this.mechanism_.remove(this.JSC$8545_prefix_+x)};
YK.prototype.__iterator__=function(x){var G=this.mechanism_[Symbol.iterator](),D=this,K=new tx;K.next=function(){var z=G.next();if(z.done)return z;for(z=z.value;z.slice(0,D.JSC$8545_prefix_.length)!=D.JSC$8545_prefix_;){z=G.next();if(z.done)return z;z=z.value}return P$(x?z.slice(D.JSC$8545_prefix_.length):D.mechanism_.get(z))};
return K};_.Xj=function(x){this.expiringStorage_=(x=_.MqP(x))?new rx(x):null;this.JSC$8549_domain_=document.domain||window.location.hostname};
_.Xj.prototype.set=function(x,G,D,K){D=D||31104E3;this.remove(x);if(this.expiringStorage_)try{this.expiringStorage_.set(x,G,Date.now()+D*1E3);return}catch(y){}var z="";if(K)try{z=escape((0,_.VZ)(G))}catch(y){return}else z=escape(G);_.QR(x,z,D,this.JSC$8549_domain_)};
_.Xj.prototype.get=function(x,G){var D=void 0,K=!this.expiringStorage_;if(!K)try{D=this.expiringStorage_.get(x)}catch(z){K=!0}if(K&&(D=_.MU.get(x,void 0))&&(D=unescape(D),G))try{D=JSON.parse(D)}catch(z){this.remove(x),D=void 0}return D};
_.Xj.prototype.remove=function(x){this.expiringStorage_&&this.expiringStorage_.remove(x);_.auf(x,"/",this.JSC$8549_domain_)};
_.Xj.prototype.getCreationTime=function(x){return this.expiringStorage_&&(x=(this.expiringStorage_.getWrapper(x)||{}).creation,typeof x==="number")?x:null};var py$=function(){var x;return function(){x||(x=new _.Xj("ytidb"));return x}}();var bCL;_.H0=[];bCL=!1;var nmh=LbD||B5E;var Ky={},Ldq=(Ky.AUTH_INVALID="No user identifier specified.",Ky.EXPLICIT_ABORT="Transaction was explicitly aborted.",Ky.IDB_NOT_SUPPORTED="IndexedDB is not supported.",Ky.MISSING_INDEX="Index not created.",Ky.MISSING_OBJECT_STORES="Object stores not created.",Ky.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",Ky.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",Ky.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",Ky.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",Ky.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",Ky.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",Ky.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",Ky),zs={},BxZ=(zs.AUTH_INVALID="ERROR",zs.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",zs.EXPLICIT_ABORT="IGNORED",
zs.IDB_NOT_SUPPORTED="ERROR",zs.MISSING_INDEX="WARNING",zs.MISSING_OBJECT_STORES="ERROR",zs.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",zs.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",zs.QUOTA_EXCEEDED="WARNING",zs.QUOTA_MAYBE_EXCEEDED="WARNING",zs.UNKNOWN_ABORT="WARNING",zs.INCOMPATIBLE_DB_VERSION="WARNING",zs),ab={},rvi=(ab.AUTH_INVALID=!1,ab.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,ab.EXPLICIT_ABORT=!1,ab.IDB_NOT_SUPPORTED=!1,ab.MISSING_INDEX=!1,ab.MISSING_OBJECT_STORES=!1,ab.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,ab.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,ab.QUOTA_EXCEEDED=!1,ab.QUOTA_MAYBE_EXCEEDED=!0,ab.UNKNOWN_ABORT=!0,ab.INCOMPATIBLE_DB_VERSION=!1,ab),Oj=function(x,G,D,K,z){G=G===void 0?{}:G;D=D===void 0?Ldq[x]:D;K=K===void 0?BxZ[x]:K;z=z===void 0?rvi[x]:z;_.LL.call(this,D,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:x},G));this.type=x;this.message=D;this.level=K;this.retryable=z;Object.setPrototypeOf(this,Oj.prototype)};
_.m(Oj,_.LL);var sAo=function(x,G){Oj.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:G,foundObjectStores:x},Ldq.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,sAo.prototype)};
_.m(sAo,Oj);var sZO=function(x,G){var D=Error.call(this);this.message=D.message;"stack"in D&&(this.stack=D.stack);this.index=x;this.objectStore=G;Object.setPrototypeOf(this,sZO.prototype)};
_.m(sZO,Error);var YfQ=["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 RA=function(x){this.executor=x},Uj=function(x){var G=this;
this.state={status:"PENDING"};this.JSC$8577_onFulfilled=[];this.JSC$8577_onRejected=[];x=x.executor;var D=function(z){if(G.state.status==="PENDING"){G.state={status:"FULFILLED",value:z};z=_.l(G.JSC$8577_onFulfilled);for(var y=z.next();!y.done;y=z.next())y=y.value,y()}},K=function(z){if(G.state.status==="PENDING"){G.state={status:"REJECTED",
reason:z};z=_.l(G.JSC$8577_onRejected);for(var y=z.next();!y.done;y=z.next())y=y.value,y()}};
try{x(D,K)}catch(z){K(z)}};
Uj.all=function(x){return new Uj(new RA(function(G,D){var K=[],z=x.length;z===0&&G(K);for(var y={i$jscomp$461:0};y.i$jscomp$461<x.length;y={i$jscomp$461:y.i$jscomp$461},++y.i$jscomp$461)Uj.resolve(x[y.i$jscomp$461]).then(function(c){return function(W){K[c.i$jscomp$461]=W;z--;z===0&&G(K)}}(y)).catch(function(c){D(c)})}))};
Uj.resolve=function(x){return new Uj(new RA(function(G,D){x instanceof Uj?x.then(G,D):G(x)}))};
Uj.reject=function(x){return new Uj(new RA(function(G,D){D(x)}))};
Uj.prototype.then=function(x,G){var D=this,K=x!=null?x:$pO,z=G!=null?G:HCC;return new Uj(new RA(function(y,c){D.state.status==="PENDING"?(D.JSC$8577_onFulfilled.push(function(){Yjs(D,D,K,y,c)}),D.JSC$8577_onRejected.push(function(){mUE(D,D,z,y,c)})):D.state.status==="FULFILLED"?Yjs(D,D,K,y,c):D.state.status==="REJECTED"&&mUE(D,D,z,y,c)}))};
Uj.prototype.catch=function(x){return this.then(void 0,x)};
var Yjs=function(x,G,D,K,z){try{if(x.state.status!=="FULFILLED")throw Error("Oc");var y=D(x.state.value);y instanceof Uj?HLE(x,G,y,K,z):K(y)}catch(c){z(c)}},mUE=function(x,G,D,K,z){try{if(x.state.status!=="REJECTED")throw Error("Pc");
var y=D(x.state.reason);y instanceof Uj?HLE(x,G,y,K,z):K(y)}catch(c){z(c)}},HLE=function(x,G,D,K,z){G===D?z(new TypeError("Qc")):D.then(function(y){y instanceof Uj?HLE(x,G,y,K,z):K(y)},function(y){z(y)})};var ob;ob=window;_.kK=ob.ytcsi&&ob.ytcsi.now?ob.ytcsi.now:ob.performance&&ob.performance.timing&&ob.performance.now&&ob.performance.timing.navigationStart?function(){return ob.performance.timing.navigationStart+ob.performance.now()}:function(){return(new Date).getTime()};var nL=function(x,G){this.JSC$8589_wrapped=x;this.options=G;this.transactionCount=0;this.startedMs=Math.round((0,_.kK)());this.hasUnknownAbortedTransaction=!1},CIs,Ibu,cR,X0u;
nL.prototype.add=function(x,G,D){return _.dx(this,[x],{mode:"readwrite",enableRetries:!0},function(K){return K.objectStore(x).add(G,D)})};
nL.prototype.clear=function(x){return _.dx(this,[x],{mode:"readwrite",enableRetries:!0},function(G){return G.objectStore(x).clear()})};
nL.prototype.close=function(){this.JSC$8589_wrapped.close();var x;((x=this.options)==null?0:x.closed)&&this.options.closed()};
nL.prototype.count=function(x,G){return _.dx(this,[x],{mode:"readonly",enableRetries:!0},function(D){return D.objectStore(x).count(G)})};
var Up=function(x,G,D){x=x.JSC$8589_wrapped.createObjectStore(G,D);return new yN(x)};
nL.prototype.delete=function(x,G){return _.dx(this,[x],{mode:"readwrite",enableRetries:!0},function(D){return D.objectStore(x).delete(G)})};
var $UZ=function(x,G){return _.dx(x,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(D){return D.objectStore("ResponseStore").index("byInterface").delete(G)})};
nL.prototype.get=function(x,G){return _.dx(this,[x],{mode:"readonly",enableRetries:!0},function(D){return D.objectStore(x).get(G)})};
nL.prototype.getAll=function(x,G,D){return _.dx(this,[x],{mode:"readonly",enableRetries:!0},function(K){return K.objectStore(x).getAll(G,D)})};
nL.prototype.put=function(x,G,D){return _.dx(this,[x],{mode:"readwrite",enableRetries:!0},function(K){return K.objectStore(x).put(G,D)})};
nL.prototype.objectStoreNames=function(){return Array.from(this.JSC$8589_wrapped.objectStoreNames)};
_.dx=function(x,G,D,K){var z,y,c,W,e,Q,p,V,L,r,H,O;return _.T(function(A){switch(A.nextAddress){case 1:var g={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof D==="string"?g.mode=D:Object.assign(g,D);z=g;x.transactionCount++;y=z.enableRetries?3:1;c=0;case 2:if(W){A.jumpTo(4);break}c++;e=Math.round((0,_.kK)());_.Kl(A,5);Q=x.JSC$8589_wrapped.transaction(G,z.mode);g=new jZ3(Q);g=Fds(g,K);return _.Z(A,g,7);case 7:return p=A.yieldResult,V=Math.round((0,_.kK)()),CIs(x,e,V,c,void 0,
G.join(),z),A.return(p);case 5:L=_.lX(A);r=Math.round((0,_.kK)());H=mp3(L,x.JSC$8589_wrapped.name,G.join(),x.JSC$8589_wrapped.version);if((O=H instanceof Oj&&!H.retryable)||c>=y)CIs(x,e,r,c,H,G.join(),z),W=H;A.jumpTo(2);break;case 4:return A.return(Promise.reject(W))}})};
CIs=function(x,G,D,K,z,y,c){G=D-G;z?(z instanceof Oj&&(z.type==="QUOTA_EXCEEDED"||z.type==="QUOTA_MAYBE_EXCEEDED")&&Ff("QUOTA_EXCEEDED",{dbName:IA(x.JSC$8589_wrapped.name),objectStoreNames:y,transactionCount:x.transactionCount,transactionMode:c.mode}),z instanceof Oj&&z.type==="UNKNOWN_ABORT"&&(D-=x.startedMs,D<0&&D>=2147483648&&(D=0),Ff("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:y,transactionDuration:G,transactionCount:x.transactionCount,dbDuration:D}),x.hasUnknownAbortedTransaction=!0),
Ibu(x,!1,K,y,G,c.tag),_.$K(z)):Ibu(x,!0,K,y,G,c.tag)};
Ibu=function(x,G,D,K,z,y){Ff("TRANSACTION_ENDED",{objectStoreNames:K,connectionHasUnknownAbortedTransaction:x.hasUnknownAbortedTransaction,duration:z,isSuccessful:G,tryCount:D,tag:y===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":y})};
nL.prototype.getVersion=function(){return this.JSC$8589_wrapped.version};
nL.prototype.getName=function(){return this.JSC$8589_wrapped.name};
var yN=function(x){this.JSC$8604_wrapped=x};
yN.prototype.add=function(x,G){return S_(this.JSC$8604_wrapped.add(x,G))};
yN.prototype.autoIncrement=function(){return this.JSC$8604_wrapped.autoIncrement};
yN.prototype.clear=function(){return S_(this.JSC$8604_wrapped.clear()).then(function(){})};
var Sl=function(x,G,D){x.JSC$8604_wrapped.createIndex(G,D,{unique:!1})};
yN.prototype.count=function(x){return S_(this.JSC$8604_wrapped.count(x))};
var jAh=function(x,G){return qU(x,{query:G},function(D){return D.delete().then(function(){return D.continue()})}).then(function(){})};
yN.prototype.delete=function(x){return x instanceof IDBKeyRange?jAh(this,x):S_(this.JSC$8604_wrapped.delete(x))};
yN.prototype.get=function(x){return S_(this.JSC$8604_wrapped.get(x))};
yN.prototype.getAll=function(x,G){return"getAll"in IDBObjectStore.prototype?S_(this.JSC$8604_wrapped.getAll(x,G)):OLu(this,x,G)};
var OLu=function(x,G,D){var K=[];return qU(x,{query:G},function(z){if(!(D!==void 0&&K.length>=D))return K.push(z.getValue()),z.continue()}).then(function(){return K})};
yN.prototype.index=function(x){try{return new lG(this.JSC$8604_wrapped.index(x))}catch(G){if(G instanceof Error&&G.name==="NotFoundError")throw new sZO(x,this.JSC$8604_wrapped.name);throw G;}};
yN.prototype.getName=function(){return this.JSC$8604_wrapped.name};
yN.prototype.keyPath=function(){return this.JSC$8604_wrapped.keyPath};
yN.prototype.put=function(x,G){return S_(this.JSC$8604_wrapped.put(x,G))};
var qU=function(x,G,D){x=x.JSC$8604_wrapped.openCursor(G.query,G.direction);return X0u(x).then(function(K){return IuV(K,D)})},jZ3=function(x){var G=this;
this.JSC$8612_wrapped=x;this.objectStoreCache=new Map;this.JSC$8612_aborted=!1;this.done=new Promise(function(D,K){G.JSC$8612_wrapped.addEventListener("complete",function(){D()});
G.JSC$8612_wrapped.addEventListener("error",function(z){z.currentTarget===z.target&&K(G.JSC$8612_wrapped.error)});
G.JSC$8612_wrapped.addEventListener("abort",function(){var z=G.JSC$8612_wrapped.error;if(z)K(z);else if(!G.JSC$8612_aborted){z=Oj;for(var y=G.JSC$8612_wrapped.objectStoreNames,c=[],W=0;W<y.length;W++){var e=y.item(W);if(e===null)throw Error("Rc");c.push(e)}z=new z("UNKNOWN_ABORT",{objectStoreNames:c.join(),dbName:G.JSC$8612_wrapped.db.name,mode:G.JSC$8612_wrapped.mode});K(z)}})})},Fds=function(x,G){var D=new Promise(function(K,z){try{G(x).then(function(y){K(y)}).catch(z)}catch(y){z(y),x.abort()}});
return Promise.all([D,x.done]).then(function(K){return _.l(K).next().value})};
jZ3.prototype.abort=function(){this.JSC$8612_wrapped.abort();this.JSC$8612_aborted=!0;throw new Oj("EXPLICIT_ABORT");};
jZ3.prototype.objectStore=function(x){x=this.JSC$8612_wrapped.objectStore(x);var G=this.objectStoreCache.get(x);G||(G=new yN(x),this.objectStoreCache.set(x,G));return G};
var lG=function(x){this.JSC$8614_wrapped=x};
lG.prototype.count=function(x){return S_(this.JSC$8614_wrapped.count(x))};
lG.prototype.delete=function(x){return _.P0(this,{query:x},function(G){return G.delete().then(function(){return G.continue()})})};
lG.prototype.get=function(x){return S_(this.JSC$8614_wrapped.get(x))};
lG.prototype.getAll=function(x,G){return"getAll"in IDBIndex.prototype?S_(this.JSC$8614_wrapped.getAll(x,G)):AvJ(this,x,G)};
var AvJ=function(x,G,D){var K=[];return _.P0(x,{query:G},function(z){if(!(D!==void 0&&K.length>=D))return K.push(z.getValue()),z.continue()}).then(function(){return K})};
lG.prototype.keyPath=function(){return this.JSC$8614_wrapped.keyPath};
lG.prototype.unique=function(){return this.JSC$8614_wrapped.unique};
_.P0=function(x,G,D){x=x.JSC$8614_wrapped.openCursor(G.query===void 0?null:G.query,G.direction===void 0?"next":G.direction);return X0u(x).then(function(K){return IuV(K,D)})};
cR=function(x,G){this.request=x;this.cursor=G};
X0u=function(x){return S_(x).then(function(G){return G?new cR(x,G):null})};
cR.prototype.continue=function(x){this.cursor.continue(x);return X0u(this.request)};
cR.prototype.delete=function(){return S_(this.cursor.delete()).then(function(){})};
cR.prototype.getValue=function(){return this.cursor.value};
cR.prototype.update=function(x){return S_(this.cursor.update(x))};var Ts=function(x,G){this.name=x;this.options=G;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},UU7;
Ts.prototype.openDb=function(x,G,D){D=D===void 0?{}:D;return Xyf(x,G,D)};
Ts.prototype.delete=function(x){x=x===void 0?{}:x;return _.gx(this.name,x)};
UU7=function(x,G){return new Oj("INCOMPATIBLE_DB_VERSION",{dbName:x.name,oldVersion:x.options.version,newVersion:G})};
_.uI=function(x,G){if(!G)throw Av("openWithToken",IA(x.name));return x.open()};
Ts.prototype.open=function(){var x=this;if(!this.isCompatible)throw UU7(this);if(this.connectionPromise)return this.connectionPromise;var G,D=function(){x.connectionPromise===G&&(x.connectionPromise=void 0)},K={blocking:function(y){y.close()},
closed:D,terminated:D,upgrade:this.options.upgrade},z=function(){var y,c,W,e,Q,p,V,L,r,H;return _.T(function(O){switch(O.nextAddress){case 1:return c=(y=Error().stack)!=null?y:"",_.Kl(O,2),_.Z(O,x.openDb(x.name,x.options.version,K),4);case 4:for(var A=W=O.yieldResult,g=x.options,u=[],f=_.l(Object.keys(g.objectStores)),v=f.next();!v.done;v=f.next()){v=v.value;var P=g.objectStores[v],k=P.removedAtVersion===void 0?Number.MAX_VALUE:P.removedAtVersion;!(A.JSC$8589_wrapped.version>=P.addedAtVersion)||A.JSC$8589_wrapped.version>=
k||A.JSC$8589_wrapped.objectStoreNames.contains(v)||u.push(v)}e=u;if(e.length===0){O.jumpTo(5);break}Q=Object.keys(x.options.objectStores);p=W.objectStoreNames();if(x.timesReopenedToFixMissingObjectStore<_.Gz("ytidb_reopen_db_retries",0))return x.timesReopenedToFixMissingObjectStore++,W.close(),_.$K(new Oj("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:x.name,expectedObjectStores:Q,foundObjectStores:p})),O.return(z());if(!(x.timesDeletedToFixMissingObjectStore<_.Gz("ytidb_remake_db_retries",1))){O.jumpTo(6);
break}x.timesDeletedToFixMissingObjectStore++;return _.Z(O,x.delete(),7);case 7:return _.$K(new Oj("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:x.name,expectedObjectStores:Q,foundObjectStores:p})),O.return(z());case 6:throw new sAo(p,Q);case 5:return O.return(W);case 2:V=_.lX(O);if(V instanceof DOMException?V.name!=="VersionError":"DOMError"in self&&V instanceof DOMError?V.name!=="VersionError":!(V instanceof Object&&"message"in V)||V.message!=="An attempt was made to open a database using a lower version than the existing version."){O.jumpTo(8);
break}return _.Z(O,x.openDb(x.name,void 0,Object.assign({},K,{upgrade:void 0})),9);case 9:L=O.yieldResult;r=L.getVersion();if(x.options.version!==void 0&&r>x.options.version+1)throw L.close(),x.isCompatible=!1,UU7(x,r);return O.return(L);case 8:throw D(),V instanceof Error&&!_.B("ytidb_async_stack_killswitch")&&(V.stack=V.stack+"\n"+c.substring(c.indexOf("\n")+1)),mp3(V,x.name,"",(H=x.options.version)!=null?H:-1);}})};
return this.connectionPromise=G=z()};var A$L=new Ts("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(x,G){G(1)&&Up(x,"databases",{keyPath:"actualName"})}});var uxV,iCn=new function(){}(new function(){});new _.Kt;var RxJ=function(x,G){Ts.call(this,x,G);this.options=G;CL(x)};
_.m(RxJ,Ts);var PxE=function(x,G){var D;return function(){D||(D=new RxJ(x,G));return D}};
RxJ.prototype.openDb=function(x,G,D){D=D===void 0?{}:D;return(this.options.shared?vmQ:N5V)(x,G,Object.assign({},D))};
RxJ.prototype.delete=function(x){x=x===void 0?{}:x;return(this.options.shared?kyf:J$f)(this.name,x)};var SjZ={},EmO=tv("ytGcfConfig",{objectStores:(SjZ.coldConfigStore={addedAtVersion:1},SjZ.hotConfigStore={addedAtVersion:1},SjZ),shared:!1,upgrade:function(x,G){G(1)&&(Sl(Up(x,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),Sl(Up(x,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var nK0=function(){_.Ya.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var x=_.nT("yt.gcf.config.hotUpdateCallbacks");x?(this.localHotConfigJobQueue=[].concat(_.B5(x)),this.sharedHotConfigJobQueue=x):(this.sharedHotConfigJobQueue=[],_.Jv("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.m(nK0,_.Ya);nK0.prototype.disposeInternal=function(){for(var x=_.l(this.localHotConfigJobQueue),G=x.next();!G.done;G=x.next()){var D=this.sharedHotConfigJobQueue;G=D.indexOf(G.value);G>=0&&D.splice(G,1)}this.localHotConfigJobQueue.length=0;_.Ya.prototype.disposeInternal.call(this)};var ru=function(){var x=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new nK0;this.TEST_ONLY={initializeConfigDb:function(){x.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return x.coldGlobalConfigGroup},
setHotConfigGroup:function(G){iLq(x,G)},
setHotHashData:function(G){x.setHotHashData(G)},
setColdConfigGroup:function(G){gKu(x,G)},
getColdHashData:function(){return x.coldHashData},
getHotHashData:function(){return x.hotHashData},
getHotConfigGroup:function(){return x.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return ufZ()},
getExportedHotConfigGroup:function(){return WR()},
getExportedColdHashData:function(){return _.nT("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.nT("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){dU9(x)},
resetInstance:function(){x.setHotHashData(void 0);w07(x);delete ru.instance},
setDebounceTimer:function(G){x.debounceTimer=G},
getDebounceTimer:function(){return x.debounceTimer}}},qji=function(){if(!ru.instance){var x=new ru;
ru.instance=x}return ru.instance},Jvs=function(x){var G;
_.T(function(D){if(D.nextAddress==1)return _.B("start_client_gcf")||_.B("delete_gcf_config_db")?_.B("start_client_gcf")?_.Z(D,_.fL(),3):D.jumpTo(2):D.return();D.nextAddress!=2&&((G=D.yieldResult)&&_.bI()&&!_.B("delete_gcf_config_db")?(x.isConfigDbInitialized=!0,dU9(x)):(Nxq(x),vK7(x)));return _.B("delete_gcf_config_db")?_.Z(D,z9h(),0):D.jumpTo(0)})},aJD=function(){var x;
return(x=WR())!=null?x:_.Am("RAW_HOT_CONFIG_GROUP")},fbE=function(x){var G,D,K,z,y,c;
return _.T(function(W){switch(W.nextAddress){case 1:if(x.hotGlobalConfigGroup)return W.return(WR());if(!x.isConfigDbInitialized)return G=Av("getHotConfig IDB not initialized"),_.iM(G),W.return(Promise.reject(G));D=v0();K=_.Am("TIME_CREATED_MS");if(!D){z=Av("getHotConfig token error");_.iM(z);W.jumpTo(2);break}return _.Z(W,Ksd(D),3);case 3:if((y=W.yieldResult)&&y.timestamp>K)return iLq(x,y.config),x.setHotHashData(y.hashData),W.return(WR());case 2:vK7(x);if(!(D&&x.hotGlobalConfigGroup&&x.hotHashData)){W.jumpTo(4);
break}return _.Z(W,x5n(x.hotGlobalConfigGroup,x.hotHashData,D,K),4);case 4:return x.hotGlobalConfigGroup?W.return(WR()):(c=new _.LL("Config not available in ytConfig"),_.iM(c),W.return(Promise.reject(c)))}})},kzk=function(x){var G,D,K,z,y,c;
return _.T(function(W){switch(W.nextAddress){case 1:if(x.coldGlobalConfigGroup)return W.return(ufZ());if(!x.isConfigDbInitialized)return G=Av("getColdConfig IDB not initialized"),_.iM(G),W.return(Promise.reject(G));D=v0();K=_.Am("TIME_CREATED_MS");if(!D){z=Av("getColdConfig");_.iM(z);W.jumpTo(2);break}return _.Z(W,D5f(D),3);case 3:if((y=W.yieldResult)&&y.timestamp>K)return gKu(x,y.config),t_i(x,y.configData),w07(x,y.hashData),W.return(ufZ());case 2:Nxq(x);if(!(D&&x.coldGlobalConfigGroup&&x.coldHashData&&
x.configData)){W.jumpTo(4);break}return _.Z(W,Gl$(x.coldGlobalConfigGroup,x.coldHashData,x.configData,D,K),4);case 4:return x.coldGlobalConfigGroup?W.return(ufZ()):(c=new _.LL("Config not available in ytConfig"),_.iM(c),W.return(Promise.reject(c)))}})},dU9=function(x){if(!x.hotGlobalConfigGroup||!x.coldGlobalConfigGroup){if(!v0()){var G=Av("scheduleGetConfigs");
_.iM(G)}x.initJob||(x.initJob=_.Fj.addLowPriorityJob(function(){return _.T(function(D){switch(D.nextAddress){case 1:return _.Kl(D,2),_.Z(D,fbE(x),4);case 4:_.iI(D,3);break;case 2:_.lX(D);case 3:return _.Kl(D,5),_.Z(D,kzk(x),7);case 7:_.iI(D,6);break;case 5:_.lX(D);case 6:x.initJob&&(x.initJob=0),_.c5(D)}})},100))}},xJd=function(x,G,D){var K,z,y;
return _.T(function(c){switch(c.nextAddress){case 1:if(!_.B("start_client_gcf")){c.jumpTo(0);break}D&&iLq(x,D);x.setHotHashData(G);K=v0();if(!K){c.jumpTo(3);break}if(D){c.jumpTo(4);break}return _.Z(c,Ksd(K),5);case 5:z=c.yieldResult,D=(y=z)==null?void 0:y.config;case 4:return _.Z(c,x5n(D,G,K),3);case 3:if(D)for(var W=D,e=_.l(x.configUpdateService.sharedHotConfigJobQueue),Q=e.next();!Q.done;Q=e.next())Q=Q.value,Q(W);_.c5(c)}})},GeC=function(x,G,D){var K,z,y,c;
return _.T(function(W){if(W.nextAddress==1){if(!_.B("start_client_gcf"))return W.jumpTo(0);w07(x,G);return(K=v0())?D?W.jumpTo(4):_.Z(W,D5f(K),5):W.jumpTo(0)}W.nextAddress!=4&&(z=W.yieldResult,D=(y=z)==null?void 0:y.config);if(!D)return W.jumpTo(0);c=D.configData;return _.Z(W,Gl$(D,G,c,K),0)})},sIP=function(){var x=qji(),G=(0,_.kK)()-x.debounceTimer;
if(!(x.debounceTimer!==0&&G<_.Gz("send_config_hash_timer"))){G=_.nT("yt.gcf.config.coldConfigData");var D=_.nT("yt.gcf.config.hotHashData"),K=_.nT("yt.gcf.config.coldHashData");G&&D&&K&&(x.debounceTimer=(0,_.kK)());return{coldConfigData:G,hotHashData:D,coldHashData:K}}},Nxq=function(x){gKu(x,_.Am("RAW_COLD_CONFIG_GROUP"));
w07(x,_.Am("SERIALIZED_COLD_HASH_DATA"));var G;t_i(x,(G=x.coldGlobalConfigGroup)==null?void 0:G.configData)},vK7=function(x){iLq(x,_.Am("RAW_HOT_CONFIG_GROUP"));
x.setHotHashData(_.Am("SERIALIZED_HOT_HASH_DATA"))},iLq=function(x,G){x.hotGlobalConfigGroup=G;
_.Jv("yt.gcf.config.hotConfigGroup",x.hotGlobalConfigGroup||null)},gKu=function(x,G){x.coldGlobalConfigGroup=G;
_.Jv("yt.gcf.config.coldConfigGroup",x.coldGlobalConfigGroup||null)};
ru.prototype.setHotHashData=function(x){this.hotHashData=x;_.Jv("yt.gcf.config.hotHashData",this.hotHashData||null)};
var w07=function(x,G){x.coldHashData=G;_.Jv("yt.gcf.config.coldHashData",x.coldHashData||null)},t_i=function(x,G){x.configData=G;
_.Jv("yt.gcf.config.coldConfigData",x.configData||null)},WR=function(){return _.nT("yt.gcf.config.hotConfigGroup")},ufZ=function(){return _.nT("yt.gcf.config.coldConfigGroup")};var yu={},PIs=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";yu.assign=function(x){for(var G=Array.prototype.slice.call(arguments,1);G.length;){var D=G.shift();if(D){if(typeof D!=="object")throw new TypeError("Uc`"+D);for(var K in D)Object.prototype.hasOwnProperty.call(D,K)&&(x[K]=D[K])}}return x};
yu.shrinkBuf=function(x,G){if(x.length===G)return x;if(x.subarray)return x.subarray(0,G);x.length=G;return x};
var EKs={arraySet:function(x,G,D,K,z){if(G.subarray&&x.subarray)x.set(G.subarray(D,D+K),z);else for(var y=0;y<K;y++)x[z+y]=G[D+y]},
flattenChunks:function(x){var G,D;var K=D=0;for(G=x.length;K<G;K++)D+=x[K].length;var z=new Uint8Array(D);K=D=0;for(G=x.length;K<G;K++){var y=x[K];z.set(y,D);D+=y.length}return z}},hxE={arraySet:function(x,G,D,K,z){for(var y=0;y<K;y++)x[z+y]=G[D+y]},
flattenChunks:function(x){return[].concat.apply([],x)}};
yu.setTyped=function(){PIs?(yu.Buf8=Uint8Array,yu.Buf16=Uint16Array,yu.Buf32=Int32Array,yu.assign(yu,EKs)):(yu.Buf8=Array,yu.Buf16=Array,yu.Buf32=Array,yu.assign(yu,hxE))};
yu.setTyped();var xOk=!0;try{new Uint8Array(1)}catch(x){xOk=!1}
var K8D=function(x){var G,D,K=x.length,z=0;for(G=0;G<K;G++){var y=x.charCodeAt(G);if((y&64512)===55296&&G+1<K){var c=x.charCodeAt(G+1);(c&64512)===56320&&(y=65536+(y-55296<<10)+(c-56320),G++)}z+=y<128?1:y<2048?2:y<65536?3:4}var W=new yu.Buf8(z);for(G=D=0;D<z;G++)y=x.charCodeAt(G),(y&64512)===55296&&G+1<K&&(c=x.charCodeAt(G+1),(c&64512)===56320&&(y=65536+(y-55296<<10)+(c-56320),G++)),y<128?W[D++]=y:(y<2048?W[D++]=192|y>>>6:(y<65536?W[D++]=224|y>>>12:(W[D++]=240|y>>>18,W[D++]=128|y>>>12&63),W[D++]=
128|y>>>6&63),W[D++]=128|y&63);return W};var qOL={};qOL=function(x,G,D,K){var z=x&65535|0;x=x>>>16&65535|0;for(var y;D!==0;){y=D>2E3?2E3:D;D-=y;do z=z+G[K++]|0,x=x+z|0;while(--y);z%=65521;x%=65521}return z|x<<16|0};for(var sp={},eY,Gus=[],DO0=0;DO0<256;DO0++){eY=DO0;for(var Knu=0;Knu<8;Knu++)eY=eY&1?3988292384^eY>>>1:eY>>>1;Gus[DO0]=eY}sp=function(x,G,D,K){D=K+D;for(x^=-1;K<D;K++)x=x>>>8^Gus[(x^G[K])&255];return x^-1};var Zv={};Zv={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 Xgh=[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],U5L=[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],DWd=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],d5D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Vu=Array(576);KU(Vu);var bp=Array(60);KU(bp);var WS=Array(512);KU(WS);var cS=Array(256);KU(cS);var ANV=Array(29);KU(ANV);var R9$=Array(30);KU(R9$);var h9C,xWL,Gm3,EOh=!1;var $W;
$W=[new HS(0,0,0,0,function(x,G){var D=65535;for(D>x.pending_buf_size-5&&(D=x.pending_buf_size-5);;){if(x.lookahead<=1){YW(x);if(x.lookahead===0&&G===0)return 1;if(x.lookahead===0)break}x.strstart+=x.lookahead;x.lookahead=0;var K=x.block_start+D;if(x.strstart===0||x.strstart>=K)if(x.lookahead=x.strstart-K,x.strstart=K,LU(x,!1),x.strm.avail_out===0)return 1;if(x.strstart-x.block_start>=x.w_size-262&&(LU(x,!1),x.strm.avail_out===0))return 1}x.insert=0;if(G===4)return LU(x,!0),x.strm.avail_out===0?3:
4;x.strstart>x.block_start&&LU(x,!1);return 1}),
new HS(4,4,8,4,NBh),new HS(4,5,16,8,NBh),new HS(4,6,32,32,NBh),new HS(4,4,16,16,mn),new HS(8,16,32,32,mn),new HS(8,16,128,128,mn),new HS(8,32,128,256,mn),new HS(32,128,258,1024,mn),new HS(32,258,258,4096,mn)];var P0$={};P0$=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 zDL=Object.prototype.toString;
kld.prototype.push=function(x,G){var D=this.strm,K=this.options.chunkSize;if(this.ended)return!1;var z=G===~~G?G:G===!0?4:0;typeof x==="string"?D.input=K8D(x):zDL.call(x)==="[object ArrayBuffer]"?D.input=new Uint8Array(x):D.input=x;D.next_in=0;D.avail_in=D.input.length;do{D.avail_out===0&&(D.output=new yu.Buf8(K),D.next_out=0,D.avail_out=K);x=t7E(D,z);if(x!==1&&x!==0)return zHk(this,x),this.ended=!0,!1;if(D.avail_out===0||D.avail_in===0&&(z===4||z===2))if(this.options.to==="string"){var y=yu.shrinkBuf(D.output,
D.next_out);G=y;y=y.length;if(y<65537&&(G.subarray&&xOk||!G.subarray))G=String.fromCharCode.apply(null,yu.shrinkBuf(G,y));else{for(var c="",W=0;W<y;W++)c+=String.fromCharCode(G[W]);G=c}this.chunks.push(G)}else G=yu.shrinkBuf(D.output,D.next_out),this.chunks.push(G)}while((D.avail_in>0||D.avail_out===0)&&x!==1);if(z===4)return(D=this.strm)&&D.state?(K=D.state.status,K!==42&&K!==69&&K!==73&&K!==91&&K!==103&&K!==113&&K!==666?x=MO(D,-2):(D.state=null,x=K===113?MO(D,-3):0)):x=-2,zHk(this,x),this.ended=
!0,x===0;z===2&&(zHk(this,0),D.avail_out=0);return!0};
var zHk=function(x,G){G===0&&(x.result=x.options.to==="string"?x.chunks.join(""):yu.flattenChunks(x.chunks));x.chunks=[];x.err=G;x.msg=x.strm.msg};var avs=typeof TextEncoder!=="undefined"?new TextEncoder:null,Ard=avs?function(x){return avs.encode(x)}:function(x){x=_.rM(x);
for(var G=new Uint8Array(x.length),D=0;D<G.length;D++)G[D]=x[D];return G};var zrh={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},oGD={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var Zr=function(x,G){this.version=x;this.args=G};
Zr.prototype.serialize=function(){return{version:this.version,args:this.args}};var crh=function(x,G){this.topic=x;this.dataClass=G};
crh.prototype.toString=function(){return this.topic};var oW8=_.nT("ytPubsub2Pubsub2Instance")||new _.e_;_.e_.prototype.subscribe=_.e_.prototype.subscribe;_.e_.prototype.unsubscribeByKey=_.e_.prototype.unsubscribeByKey;_.e_.prototype.publish=_.e_.prototype.publish;_.e_.prototype.clear=_.e_.prototype.clear;_.Jv("ytPubsub2Pubsub2Instance",oW8);var l23=_.nT("ytPubsub2Pubsub2SubscribedKeys")||{};_.Jv("ytPubsub2Pubsub2SubscribedKeys",l23);var W8n=_.nT("ytPubsub2Pubsub2TopicToKeys")||{};_.Jv("ytPubsub2Pubsub2TopicToKeys",W8n);
var TKD=_.nT("ytPubsub2Pubsub2IsAsync")||{};_.Jv("ytPubsub2Pubsub2IsAsync",TKD);_.Jv("ytPubsub2Pubsub2SkipSubKey",null);var rrL=void 0,L8C=void 0;var I2L=_.Gz("max_body_size_to_compress",5E5),j_f=_.Gz("min_body_size_to_compress",500),IW=!0,SAf=0,jl=0,RD3=_.Gz("compression_performance_threshold_lr",250),n_3=_.Gz("slow_compressions_before_abandon_count",4),mW3=!1,H3V=new Map,Xkd=1,O3P=!0;_.tR(Op,uXd);Op.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 yuk=function(x,G,D){D||(D=0);var K=x.W_;if(typeof G==="string")for(var z=0;z<16;z++)K[z]=G.charCodeAt(D)<<24|G.charCodeAt(D+1)<<16|G.charCodeAt(D+2)<<8|G.charCodeAt(D+3),D+=4;else for(z=0;z<16;z++)K[z]=G[D]<<24|G[D+1]<<16|G[D+2]<<8|G[D+3],D+=4;for(G=16;G<80;G++)D=K[G-3]^K[G-8]^K[G-14]^K[G-16],K[G]=(D<<1|D>>>31)&4294967295;G=x.chain_[0];D=x.chain_[1];z=x.chain_[2];for(var y=x.chain_[3],c=x.chain_[4],W,e,Q=0;Q<80;Q++)Q<40?Q<20?(W=y^D&(z^y),e=1518500249):(W=D^z^y,e=1859775393):Q<60?(W=D&z|y&(D|z),
e=2400959708):(W=D^z^y,e=3395469782),W=(G<<5|G>>>27)+W+c+e+K[Q]&4294967295,c=y,y=z,z=(D<<30|D>>>2)&4294967295,D=G,G=W;x.chain_[0]=x.chain_[0]+G&4294967295;x.chain_[1]=x.chain_[1]+D&4294967295;x.chain_[2]=x.chain_[2]+z&4294967295;x.chain_[3]=x.chain_[3]+y&4294967295;x.chain_[4]=x.chain_[4]+c&4294967295};
Op.prototype.update=function(x,G){if(x!=null){G===void 0&&(G=x.length);for(var D=G-this.blockSize,K=0,z=this.buf_,y=this.inbuf_;K<G;){if(y==0)for(;K<=D;)yuk(this,x,K),K+=this.blockSize;if(typeof x==="string")for(;K<G;){if(z[y]=x.charCodeAt(K),++y,++K,y==this.blockSize){yuk(this,z);y=0;break}}else for(;K<G;)if(z[y]=x[K],++y,++K,y==this.blockSize){yuk(this,z);y=0;break}}this.inbuf_=y;this.total_+=G}};
Op.prototype.digest=function(){var x=[],G=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var D=this.blockSize-1;D>=56;D--)this.buf_[D]=G&255,G/=256;yuk(this,this.buf_);for(D=G=0;D<5;D++)for(var K=24;K>=0;K-=8)x[G]=this.chain_[D]>>K&255,++G;return x};var qA$;var QN=function(x){var G=this;this.bypassDbTokenDependency=this.initialized=!1;this.potentialEsfErrorCounter=this.intervalJob=0;this.handleError=function(){};
this.handleWarning=function(){};
this.now=Date.now;this.disableYtIdbTransactions=!1;this.TEST_ONLY={setDbToken:function(p){G.databaseToken=p},
triggerThrottle:function(){G.throttledSend()},
cancelThrottle:function(){G.cancelThrottledSend()},
immediateSend:function(p){return _.T(function(V){return _.Z(V,G.immediateSend(p),0)})},
requestWithinAgeLimit:function(p,V){return G.requestWithinAgeLimit(p,V)},
retryQueuedRequests:function(){G.retryQueuedRequests()}};
var D;this.throttleTimeout=(D=x.throttleTimeout)!=null?D:100;var K;this.retryMaxAttempts=(K=x.retryMaxAttempts)!=null?K:1;var z;this.requestAgeLimitMs=(z=x.requestAgeLimitMs)!=null?z:2592E6;var y;this.queuedRequestAgeLimitMs=(y=x.queuedRequestAgeLimitMs)!=null?y:12E4;var c;this.retryDelayMs=(c=x.retryDelayMs)!=null?c:5E3;var W;this.databaseToken=(W=x.databaseToken)!=null?W:void 0;this.enableCleaning=!!x.enableCleaning;var e;this.cleaningRate=(e=x.cleaningRate)!=null?e:.1;var Q;this.potentialEsfErrorLimit=
(Q=x.potentialEsfErrorLimit)!=null?Q:10;x.handleError&&(this.handleError=x.handleError);x.handleWarning&&(this.handleWarning=x.handleWarning);x.disableYtIdbTransactions&&(this.disableYtIdbTransactions=x.disableYtIdbTransactions);x.bypassDbTokenDependency&&(this.bypassDbTokenDependency=x.bypassDbTokenDependency);this.getBooleanFlag=x.getBooleanFlag;this.jobManager=x.jobManager;this.logsStore=x.logsStore;this.networkManager=x.networkManager;this.sendFn=x.sendFn;this.onlineEvent=x.onlineEvent;this.offlineEvent=
x.offlineEvent;Ml(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&lvE(this)},lvE=function(x){Ml(x)&&!x.disableYtIdbTransactions&&(x.initialized=!0,x.enableCleaning&&Math.random()<=x.cleaningRate&&x.logsStore.cleanLogsStore(x.databaseToken),x.retryQueuedRequests(),x.networkManager.isNetworkAvailable()&&x.throttledSend(),x.networkManager.listen(x.onlineEvent,x.throttledSend.bind(x)),x.networkManager.listen(x.offlineEvent,x.cancelThrottledSend.bind(x)))};
_.a=QN.prototype;_.a.writeThenSend=function(x,G){var D=this;G=G===void 0?{}:G;if(Ml(this)&&this.initialized){var K={url:x,options:G,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(K,this.databaseToken).then(function(z){K.id=z;D.networkManager.isNetworkAvailable()&&D.immediateSend(K)}).catch(function(z){D.immediateSend(K);
cuq(D,z)})}else this.sendFn(x,G)};
_.a.sendThenWrite=function(x,G,D){var K=this;G=G===void 0?{}:G;if(Ml(this)&&this.initialized){var z={url:x,options:G,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(z.skipRetry=D);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!z.skipRetry){if(!z.skipRetry){var y=G.onError?G.onError:function(){};
G.onError=function(c,W){return _.T(function(e){if(e.nextAddress==1)return _.Z(e,K.logsStore.set(z,K.databaseToken).catch(function(Q){cuq(K,Q)}),2);
y(c,W);_.c5(e)})}}this.sendFn(x,G,z.skipRetry)}else this.logsStore.set(z,this.databaseToken).catch(function(c){K.sendFn(x,G,z.skipRetry);
cuq(K,c)})}else this.sendFn(x,G,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&D)};
_.a.sendAndWrite=function(x,G){var D=this;G=G===void 0?{}:G;if(Ml(this)&&this.initialized){var K={url:x,options:G,timestamp:this.now(),status:"NEW",sendCount:0},z=!1,y=G.onSuccess?G.onSuccess:function(){};
K.options.onSuccess=function(c,W){K.id!==void 0?D.logsStore.deleteRequest(K.id,D.databaseToken):z=!0;D.networkManager.networkStatusHint&&D.getBooleanFlag&&D.getBooleanFlag("vss_network_hint")&&D.networkManager.networkStatusHint(!0);y(c,W)};
this.sendFn(K.url,K.options,void 0,!0);this.logsStore.set(K,this.databaseToken).then(function(c){K.id=c;z&&D.logsStore.deleteRequest(K.id,D.databaseToken)}).catch(function(c){cuq(D,c)})}else this.sendFn(x,G,void 0,!0)};
_.a.throttledSend=function(){var x=this;if(!Ml(this))throw Error("Xc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var G;return _.T(function(D){if(D.nextAddress==1)return _.Z(D,x.logsStore.getMostRecentByStatus("NEW",x.databaseToken),2);if(D.nextAddress!=3)return G=D.yieldResult,G?_.Z(D,x.immediateSend(G),3):(x.cancelThrottledSend(),D.return());x.intervalJob&&(x.intervalJob=0,x.throttledSend());_.c5(D)})},this.throttleTimeout))};
_.a.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.a.immediateSend=function(x){var G=this,D;return _.T(function(K){switch(K.nextAddress){case 1:if(!Ml(G))throw Error("Yc");if(x.id===void 0){K.jumpTo(2);break}return _.Z(K,G.logsStore.markAsQueued(x.id,G.databaseToken),3);case 3:(D=K.yieldResult)||G.handleWarning(Error("Zc"));case 2:if(G.requestWithinAgeLimit(x,G.requestAgeLimitMs)){K.jumpTo(4);break}G.handleWarning(Error("$c"));if(x.id===void 0){K.jumpTo(5);break}return _.Z(K,G.logsStore.deleteRequest(x.id,G.databaseToken),5);case 5:return K.return();
case 4:x.skipRetry||(x=T$7(G,x));if(!x){K.jumpTo(0);break}if(!x.skipRetry||x.id===void 0){K.jumpTo(8);break}return _.Z(K,G.logsStore.deleteRequest(x.id,G.databaseToken),8);case 8:G.sendFn(x.url,x.options,!!x.skipRetry),_.c5(K)}})};
var T$7=function(x,G){if(!Ml(x))throw Error("ad");var D=G.options.onError?G.options.onError:function(){};
G.options.onError=function(z,y){var c,W,e,Q;return _.T(function(p){switch(p.nextAddress){case 1:c=t5L(y);(W=km3(y))&&x.getBooleanFlag&&x.getBooleanFlag("web_enable_error_204")&&x.handleError(Error("bd"),G.url,y);if(!(x.getBooleanFlag&&x.getBooleanFlag("nwl_consider_error_code")&&c||x.getBooleanFlag&&!x.getBooleanFlag("nwl_consider_error_code")&&x.potentialEsfErrorCounter<=x.potentialEsfErrorLimit)){p.jumpTo(2);break}if(!x.networkManager.sendNetworkCheckRequest){p.jumpTo(3);break}return _.Z(p,x.networkManager.sendNetworkCheckRequest(),
3);case 3:if(x.networkManager.isNetworkAvailable()){p.jumpTo(2);break}D(z,y);if(!x.getBooleanFlag||!x.getBooleanFlag("nwl_consider_error_code")||((e=G)==null?void 0:e.id)===void 0){p.jumpTo(6);break}return _.Z(p,x.logsStore.resetRequest(G.id,x.databaseToken,!1),6);case 6:return p.return();case 2:if(x.getBooleanFlag&&x.getBooleanFlag("nwl_consider_error_code")&&!c&&x.potentialEsfErrorCounter>x.potentialEsfErrorLimit)return p.return();x.potentialEsfErrorCounter++;if(((Q=G)==null?void 0:Q.id)===void 0){p.jumpTo(8);
break}return G.sendCount<x.retryMaxAttempts?_.Z(p,x.logsStore.resetRequest(G.id,x.databaseToken,!0,W?!1:void 0),12):_.Z(p,x.logsStore.deleteRequest(G.id,x.databaseToken),8);case 12:x.jobManager.addLowPriorityJob(function(){x.networkManager.isNetworkAvailable()&&x.throttledSend()},x.retryDelayMs);
case 8:D(z,y),_.c5(p)}})};
var K=G.options.onSuccess?G.options.onSuccess:function(){};
G.options.onSuccess=function(z,y){var c;return _.T(function(W){if(W.nextAddress==1)return((c=G)==null?void 0:c.id)===void 0?W.jumpTo(2):_.Z(W,x.logsStore.deleteRequest(G.id,x.databaseToken),2);x.networkManager.networkStatusHint&&x.getBooleanFlag&&x.getBooleanFlag("vss_network_hint")&&x.networkManager.networkStatusHint(!0);K(z,y);_.c5(W)})};
return G};
QN.prototype.requestWithinAgeLimit=function(x,G){x=x.timestamp;return this.now()-x>=G?!1:!0};
QN.prototype.retryQueuedRequests=function(){var x=this;if(!Ml(this))throw Error("cd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(G){G&&!x.requestWithinAgeLimit(G,x.queuedRequestAgeLimitMs)?x.jobManager.addLowPriorityJob(function(){return _.T(function(D){if(D.nextAddress==1)return G.id===void 0?D.jumpTo(2):_.Z(D,x.logsStore.resetRequest(G.id,x.databaseToken),2);x.retryQueuedRequests();_.c5(D)})}):x.networkManager.isNetworkAvailable()&&x.throttledSend()})};
var cuq=function(x,G){x.writeError&&!x.networkManager.isNetworkAvailable()?x.writeError(G):x.handleError(G)},Ml=function(x){return!!x.databaseToken||x.bypassDbTokenDependency};var P7D;var zfQ={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,
miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,
shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520};var WnE={},ySh=tv("ServiceWorkerLogsDatabase",{objectStores:(WnE.SWHealthLog={addedAtVersion:1},WnE),shared:!0,upgrade:function(x,G){G(1)&&Sl(Up(x,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var Qnh={},MTO=0;var LgD;var py=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},qO=function(){if(!py.instance){var x=_.nT("yt.networkRequestMonitor.instance")||new py;
_.Jv("yt.networkRequestMonitor.instance",x);py.instance=x}return py.instance};
py.prototype.requestComplete=function(x,G){G&&(this.anyRequestHasSucceeded=!0);x=this.removeParams(x);this.requestMap.get(x)||this.requestMap.set(x,G)};
py.prototype.isEndpointCFR=function(x){x=this.removeParams(x);return(x=this.requestMap.get(x))?!1:x===!1&&this.anyRequestHasSucceeded?!0:null};
py.prototype.removeParams=function(x){return x.split("?")[0]};
py.prototype.removeParams=py.prototype.removeParams;py.prototype.isEndpointCFR=py.prototype.isEndpointCFR;py.prototype.requestComplete=py.prototype.requestComplete;py.getInstance=qO;var VN=function(x){_.T2.call(this);var G=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=x!=null?x:{addLowPriorityJob:function(z,y){return setTimeout(z,y)},
cancelJob:function(z){clearTimeout(z)}};
var D,K;this.isOnline=(K=(D=window.navigator)==null?void 0:D.onLine)!=null?K:!0;this.onNavigatorChange=function(){return _.T(function(z){return _.Z(z,eHi(G),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||ZU9(this)};
_.m(VN,_.T2);VN.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete VN.instance};
VN.prototype.isNetworkAvailable=function(){return this.isOnline};
var ZU9=function(x){x.pollingJob=x.jobManager.addLowPriorityJob(function(){var G;return _.T(function(D){if(D.nextAddress==1)return x.isOnline?((G=window.navigator)==null?0:G.onLine)?D.jumpTo(3):_.Z(D,eHi(x),3):_.Z(D,eHi(x),3);ZU9(x);_.c5(D)})},3E4)},eHi=function(x,G){return x.networkRequestPromise?x.networkRequestPromise:x.networkRequestPromise=new Promise(function(D){var K,z,y,c;
return _.T(function(W){switch(W.nextAddress){case 1:return K=window.AbortController?new window.AbortController:void 0,y=(z=K)==null?void 0:z.signal,c=!1,_.Kl(W,2,3),K&&(x.abortTimeoutKey=x.jobManager.addLowPriorityJob(function(){K.abort()},G||2E4)),_.Z(W,fetch("/generate_204",{method:"HEAD",
signal:y}),5);case 5:c=!0;case 3:_.zA(W);x.networkRequestPromise=void 0;x.abortTimeoutKey&&(x.jobManager.cancelJob(x.abortTimeoutKey),x.abortTimeoutKey=0);c!==x.isOnline&&(x.isOnline=c,x.isOnline?x.dispatchEvent("networkstatus-online"):x.dispatchEvent("networkstatus-offline"));D(c);_.y6(W,0);break;case 2:_.lX(W),c=!1,W.jumpTo(3)}})})};var bG=function(){_.T2.call(this);var x=this;this.shouldFlushErrors=!1;VN.instance||(VN.instance=new VN(_.Fj));this.sharedNetworkStatusManager=VN.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(x.shouldFlushErrors&&_.B("offline_error_handling")){var G=BAf().get("errors",!0);if(G){for(var D in G)if(G[D]){var K=new _.LL(D,"sent via offline_errors");K.name=G[D].name;K.stack=G[D].stack;K.level=G[D].level;_.RE(K)}BAf().set("errors",{},2592E3,!0)}}})};
_.m(bG,_.T2);var Mli=function(){if(!bG.instance){var x=_.nT("yt.networkStatusManager.instance")||new bG;_.Jv("yt.networkStatusManager.instance",x);bG.instance=x}return bG.instance};
_.a=bG.prototype;_.a.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.a.networkStatusHint=function(x){this.sharedNetworkStatusManager.isOnline=x};
_.a.getWindowStatus=function(){var x=window.navigator.onLine;return x===void 0?!0:x};
_.a.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.a.listen=function(x,G){return this.sharedNetworkStatusManager.listen(x,G)};
_.a.sendNetworkCheckRequest=function(x){x=eHi(this.sharedNetworkStatusManager,x);x.then(function(G){_.B("use_cfr_monitor")&&qO().requestComplete("generate_204",G)});
return x};
bG.prototype.sendNetworkCheckRequest=bG.prototype.sendNetworkCheckRequest;bG.prototype.listen=bG.prototype.listen;bG.prototype.enableErrorFlushing=bG.prototype.enableErrorFlushing;bG.prototype.getWindowStatus=bG.prototype.getWindowStatus;bG.prototype.networkStatusHint=bG.prototype.networkStatusHint;bG.prototype.isNetworkAvailable=bG.prototype.isNetworkAvailable;bG.getInstance=Mli;_.w$=function(x){x=x===void 0?{}:x;_.T2.call(this);var G=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=Mli();var D=_.nT("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);D&&(x.rateLimit?(this.rateLimit=x.rateLimit,D("networkstatus-online",function(){QWZ(G,"publicytnetworkstatus-online")}),D("networkstatus-offline",function(){QWZ(G,"publicytnetworkstatus-offline")})):(D("networkstatus-online",function(){G.dispatchEvent("publicytnetworkstatus-online")}),D("networkstatus-offline",
function(){G.dispatchEvent("publicytnetworkstatus-offline")})))};
_.m(_.w$,_.T2);_.w$.prototype.isNetworkAvailable=function(){var x=_.nT("yt.networkStatusManager.instance.isNetworkAvailable");return x?x.bind(this.nsmInstance)():!0};
_.w$.prototype.networkStatusHint=function(x){var G=_.nT("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);G&&G(x)};
_.w$.prototype.sendNetworkCheckRequest=function(x){var G=this,D;return _.T(function(K){D=_.nT("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(G.nsmInstance);return _.B("skip_network_check_if_cfr")&&qO().isEndpointCFR("generate_204")?K.return(new Promise(function(z){var y;G.networkStatusHint(((y=window.navigator)==null?void 0:y.onLine)||!0);z(G.isNetworkAvailable())})):D?K.return(D(x)):K.return(!0)})};
var QWZ=function(x,G){x.rateLimit?x.lastJobTime?(_.Fj.cancelJob(x.schedulerJob),x.schedulerJob=_.Fj.addLowPriorityJob(function(){x.lastPublicSignalSent!==G&&(x.dispatchEvent(G),x.lastPublicSignalSent=G,x.lastJobTime=(0,_.kK)())},x.rateLimit-((0,_.kK)()-x.lastJobTime))):(x.dispatchEvent(G),x.lastPublicSignalSent=G,x.lastJobTime=(0,_.kK)()):x.dispatchEvent(G)};var Htf,Ly=function(){QN.call(this,{logsStore:{cleanLogsStore:aDf,deleteRequest:zSC,getMostRecentByStatus:GUf,markAsQueued:DBL,resetRequest:KgO,set:xBh},networkManager:_.$BQ(),handleError:function(x,G,D){var K,z=D==null?void 0:(K=D.error)==null?void 0:K.code;if(z===400||z===415){var y;x=new _.LL(x.message,G,D==null?void 0:(y=D.error)==null?void 0:y.code);_.iM(x,void 0,void 0,void 0,!0)}else _.RE(x)},
handleWarning:_.iM,sendFn:Y4V,now:_.kK,writeError:rSh,jobManager:_.rv(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.Gz("potential_esf_error_limit",10),getBooleanFlag:_.B,disableYtIdbTransactions:!(_.bI()&&_.Fgd())});this.initializationPromise=new _.Kt;_.B("networkless_immediately_drop_all_requests")&&oA$();kyf("LogsDatabaseV2")};
_.m(Ly,QN);_.VlZ=function(){var x=_.nT("yt.networklessRequestController.instance");x||(x=new Ly,_.Jv("yt.networklessRequestController.instance",x),_.B("networkless_logging")&&_.fL().then(function(G){x.databaseToken=G;lvE(x);x.initializationPromise.resolve();x.enableCleaning&&Math.random()<=x.cleaningRate&&x.databaseToken&&cSC(x.databaseToken);_.B("networkless_immediately_drop_sw_health_store")&&pSh(x)}));
return x};
Ly.prototype.writeThenSend=function(x,G){G||(G={});G=mBd(x,G);_.bI()||(this.initialized=!1);QN.prototype.writeThenSend.call(this,x,G)};
Ly.prototype.sendThenWrite=function(x,G,D){G||(G={});G=mBd(x,G);_.bI()||(this.initialized=!1);QN.prototype.sendThenWrite.call(this,x,G,D)};
Ly.prototype.sendAndWrite=function(x,G){G||(G={});G=mBd(x,G);_.bI()||(this.initialized=!1);QN.prototype.sendAndWrite.call(this,x,G)};
Ly.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var pSh=function(x){var G;_.T(function(D){if(!x.databaseToken)throw G=Av("clearSWHealthLogsDb"),G;return D.return(TAf(x.databaseToken).catch(function(K){x.handleError(K)}))})};_.IDh=!1;_.CoQ=_.Df.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.IDh};_.Jv("ytNetworklessLoggingInitializationOptions",_.CoQ);var mv=function(x){var G=this;this.config_=null;x?this.config_=x:aqC()&&(this.config_=_.Ej());_.Bw(_.Fj,function(){f23(G)},5E3)};
mv.prototype.isReady=function(){!this.config_&&aqC()&&(this.config_=_.Ej());return!!this.config_};
var JrD=function(x,G,D,K){!_.Am("VISITOR_DATA")&&G!=="visitor_id"&&Math.random()<.01&&_.iM(new _.LL("Missing VISITOR_DATA when sending innertube request.",G,D,K));if(!x.isReady()){var z=new _.LL("innertube xhrclient not ready",G,D,K);_.RE(z);throw z;}var y={headers:K.headers||{},method:"POST",postParams:D,postBody:K.postBody,postBodyFormat:K.postBodyFormat||"JSON",onTimeout:function(){K.onTimeout()},
onFetchTimeout:K.onTimeout,onSuccess:function(V,L){if(K.onSuccess)K.onSuccess(L)},
onFetchSuccess:function(V){if(K.onSuccess)K.onSuccess(V)},
onError:function(V,L){if(K.onError)K.onError(L)},
onFetchError:function(V){if(K.onError)K.onError(V)},
timeout:K.timeout,withCredentials:!0,compress:K.compress};y.headers["Content-Type"]||(y.headers["Content-Type"]="application/json");var c="";(z=x.config_.innertubeHostOverride)&&(c=z);var W=x.config_.innertubeUseThirdPartyAuth||!1,e=_.rNO(W,c,K);Object.assign(y.headers,e);y.headers.Authorization&&!c&&W&&(y.headers["x-origin"]=window.location.origin);var Q=_.qh(c+("/youtubei/"+x.config_.innertubeApiVersion+"/"+G),{alt:"json"}),p=function(V){V=V===void 0?!1:V;var L;if(K.retry&&c!="www.youtube-nocookie.com"&&
(V||_.B("skip_ls_gel_retry")||y.headers["Content-Type"]!=="application/json"||(L=NKO(G,D,e,W)),L)){var r=y.onSuccess,H=y.onFetchSuccess;y.onSuccess=function(g,u){v_f(L);r(g,u)};
D.onFetchSuccess=function(g,u){v_f(L);H(g,u)}}try{if(V&&K.retry&&!K.networklessOptions.bypassNetworkless)y.method="POST",K.networklessOptions.writeThenSend?_.VlZ().writeThenSend(Q,y):_.VlZ().sendAndWrite(Q,y);
else if(K.compress){var O=!K.networklessOptions.writeThenSend;if(y.postBody){var A=y.postBody;typeof A!=="string"&&(A=JSON.stringify(y.postBody));UWh(Q,A,y,_.Tz,O)}else UWh(Q,JSON.stringify(y.postParams),y,uKQ,O)}else _.B("web_all_payloads_via_jspb")?_.Tz(Q,y):uKQ(Q,y)}catch(g){if(g.name==="InvalidAccessError")L&&(v_f(L),L=0),_.iM(Error("dd"));else throw g;}L&&_.Bw(_.Fj,function(){f23(x)},5E3)};
_.jnn()?dp3().then(function(V){p(V)}):p(!1)};var Axf=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Axf,_.SX);var bUZ=0,XiQ=_.xp?"webkit":_.hR?"moz":_.E$?"ms":NtP?"o":"";_.Jv("ytDomDomGetNextId",_.nT("ytDomDomGetNextId")||function(){return++bUZ});var Ln0={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},kW=function(x){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(x=
x||window.event){this.event=x;for(var G in x)G in Ln0||(this[G]=x[G]);this.scale=x.scale;this.rotation=x.rotation;var D=x.target||x.srcElement;D&&D.nodeType==3&&(D=D.parentNode);this.target=D;var K=x.relatedTarget;if(K)try{K=K.nodeName?K:null}catch(z){K=null}else this.type=="mouseover"?K=x.fromElement:this.type=="mouseout"&&(K=x.toElement);this.relatedTarget=K;this.clientX=x.clientX!=void 0?x.clientX:x.pageX;this.clientY=x.clientY!=void 0?x.clientY:x.pageY;this.keyCode=x.keyCode?x.keyCode:x.which;
this.charCode=x.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=x.altKey;this.ctrlKey=x.ctrlKey;this.shiftKey=x.shiftKey;this.metaKey=x.metaKey;this.pageX_=x.pageX;this.pageY_=x.pageY}}catch(z){}},B$q=function(x){if(document.body&&document.documentElement){var G=document.body.scrollTop+document.documentElement.scrollTop;
x.pageX_=x.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);x.pageY_=x.clientY+G}};
kW.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
kW.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
kW.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var tu=_.Df.ytEventsEventsListeners||{};_.Jv("ytEventsEventsListeners",tu);var itO=_.Df.ytEventsEventsCounter||{count:0};_.Jv("ytEventsEventsCounter",itO);var gAL=_.c_(function(){var x=!1;try{var G=Object.defineProperty({},"capture",{get:function(){x=!0}});
window.addEventListener("test",null,G)}catch(D){}return x});_.tR(Ep,_.Ya);Ep.prototype.onMouseMove_=function(x){x.pageX_===void 0&&B$q(x);var G=x.pageX_;x.pageY_===void 0&&B$q(x);this.position_=new _.$S(G,x.pageY_)};
Ep.prototype.checkPosition_=function(){if(this.position_){var x=(0,_.kK)();if(this.previousTime_!=0){var G=this.previousPosition_,D=this.position_,K=G.x-D.x;G=G.y-D.y;K=Math.sqrt(K*K+G*G)/(x-this.previousTime_);this.cycles_[this.index_]=Math.abs((K-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(D=G=0;D<4;D++)G+=this.cycles_[D]||0;G>=3&&this.callback_();this.previousVelocity_=K}this.previousTime_=x;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
Ep.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.u5$(this.mouseListenerKey_)};var NAC={};var h$E=new _.J("rawColdConfigGroup");var ErQ=new _.J("rawHotConfigGroup");var ru0=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(ru0,_.SX);var X$C=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(X$C,_.SX);var LE=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x,500)};
_.m(LE,_.SX);LE.prototype.getPayloadCase=function(){return _.eI(this,sW7)};
LE.prototype.getContext=function(){return _.hv(this,X$C,33)};
var sW7=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520];var vrE=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(vrE,_.SX);var ron=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(ron,_.SX);ron.prototype.setVideoId=function(x){return Ww(this,1,sef,iC(x))};
ron.prototype.getPlaylistId=function(){return _.QF(this,pE(this,sef,2))};
var sef=[1,2];var grV=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(grV,_.SX);grV.prototype.getContext=function(){return _.hv(this,em,1)};
grV.prototype.getTier=function(){return _.sk(this,7)};var YpE,Dg,KE;YpE=_.Df.ytPubsubPubsubInstance||new _.e_;Dg=_.Df.ytPubsubPubsubSubscribedKeys||{};KE=_.Df.ytPubsubPubsubTopicToKeys||{};_.vA3=_.Df.ytPubsubPubsubIsSynchronous||{};_.e_.prototype.subscribe=_.e_.prototype.subscribe;_.e_.prototype.unsubscribeByKey=_.e_.prototype.unsubscribeByKey;_.e_.prototype.publish=_.e_.prototype.publish;_.e_.prototype.clear=_.e_.prototype.clear;_.Jv("ytPubsubPubsubInstance",YpE);_.Jv("ytPubsubPubsubTopicToKeys",KE);_.Jv("ytPubsubPubsubIsSynchronous",_.vA3);
_.Jv("ytPubsubPubsubSubscribedKeys",Dg);var a4=window;var BR=_.B("web_enable_lifecycle_monitoring")&&Poh()!==0,mOu=_.B("web_enable_lifecycle_monitoring");var $Os=function(x){var G=this;var D=D===void 0?0:D;var K=K===void 0?_.rv():K;this.JSC$8811_defaultPriority=D;this.scheduler=K;this.completedResolver=new _.Kt;this.scheduledPayloads=x;for(x={i$jscomp$485:0};x.i$jscomp$485<this.scheduledPayloads.length;x={payload$jscomp$18:void 0,i$jscomp$485:x.i$jscomp$485},x.i$jscomp$485++)x.payload$jscomp$18=this.scheduledPayloads[x.i$jscomp$485],D=function(z){return function(){z.payload$jscomp$18.job();G.scheduledPayloads[z.i$jscomp$485].processed=!0;G.scheduledPayloads.every(function(y){return y.processed===
!0})&&G.completedResolver.resolve()}}(x),K=this.scheduler.addJob(D,HUk(this,x.payload$jscomp$18)),this.scheduledPayloads[x.i$jscomp$485]=Object.assign({},x.payload$jscomp$18,{job:D,
jobId:K})};
$Os.prototype.flushJobs=function(){var x=this,G=Array.from(this.scheduledPayloads.keys()).sort(function(K,z){return HUk(x,x.scheduledPayloads[z])-HUk(x,x.scheduledPayloads[K])});
G=_.l(G);for(var D=G.next();!D.done;D=G.next())D=this.scheduledPayloads[D.value],D.jobId===void 0||D.processed||(this.scheduler.cancelJob(D.jobId),this.scheduler.addJob(D.job,10))};
$Os.prototype.cancel=function(){for(var x=_.l(this.scheduledPayloads),G=x.next();!G.done;G=x.next())G=G.value,G.jobId===void 0||G.processed||this.scheduler.cancelJob(G.jobId),G.processed=!0;this.completedResolver.resolve()};
var HUk=function(x,G){var D;return(D=G.priority)!=null?D:x.JSC$8811_defaultPriority};var rU=function(x){this.state=x;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};BR&&EAV(this.state)};
rU.prototype.install=function(x){this.plugins.push(x);return this};
rU.prototype.uninstall=function(){var x=this;_.rC.apply(0,arguments).forEach(function(G){G=x.plugins.indexOf(G);G>-1&&x.plugins.splice(G,1)})};
rU.prototype.transition=function(x,G){var D=this;BR&&hSf(this.state);var K=this.transitions.find(function(y){return Array.isArray(y.from)?y.from.find(function(c){return c===D.state&&y.to===x}):y.from===D.state&&y.to===x});
if(K){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);Fns(this,x,G);this.state=x;BR&&EAV(this.state);K=K.action.bind(this);var z=this.plugins.filter(function(y){return y[x]}).map(function(y){return y[x]});
K(CpZ(this,z),G)}else throw Error("ed`"+this.state+"`"+x);};
var CpZ=function(x,G){var D=G.filter(function(z){return Ivi(x,z)===10}),K=G.filter(function(z){return Ivi(x,z)!==10});
return x.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var z=_.rC.apply(0,arguments);return _.T(function(y){if(y.nextAddress==1)return _.Z(y,x.runImmediateJobsAsync.apply(x,[D].concat(_.B5(z))),2);x.setJobSetWithScheduledJobs.apply(x,[K].concat(_.B5(z)));_.c5(y)})}:function(){var z=_.rC.apply(0,arguments);
x.runImmediateJobsSync.apply(x,[D].concat(_.B5(z)));x.setJobSetWithScheduledJobs.apply(x,[K].concat(_.B5(z)))}};
rU.prototype.runImmediateJobsSync=function(x){var G=_.rC.apply(1,arguments);_.rv();for(var D=_.l(x),K=D.next(),z={};!K.done;z={lifecycle$jscomp$2:void 0},K=D.next())z.lifecycle$jscomp$2=K.value,hn(function(y){return function(){jWh(y.lifecycle$jscomp$2.name);Gaf(function(){return y.lifecycle$jscomp$2.callback.apply(y.lifecycle$jscomp$2,_.B5(G))});
sq(y.lifecycle$jscomp$2.name)}}(z))};
rU.prototype.runImmediateJobsAsync=function(x){var G=_.rC.apply(1,arguments),D,K,z,y;return _.T(function(c){c.nextAddress==1&&(_.rv(),D=_.l(x),K=D.next(),z={});if(c.nextAddress!=3){if(K.done)return c.jumpTo(0);z.lifecycle$jscomp$3=K.value;z.asyncJobCompletion=void 0;y=function(W){return function(){jWh(W.lifecycle$jscomp$3.name);var e=Gaf(function(){return W.lifecycle$jscomp$3.callback.apply(W.lifecycle$jscomp$3,_.B5(G))});
sCh(e)?W.asyncJobCompletion=_.B("web_lifecycle_error_handling_killswitch")?e.then(function(){sq(W.lifecycle$jscomp$3.name)}):e.then(function(){sq(W.lifecycle$jscomp$3.name)},function(Q){xvf(Q);
sq(W.lifecycle$jscomp$3.name)}):sq(W.lifecycle$jscomp$3.name)}}(z);
hn(y);return z.asyncJobCompletion?_.Z(c,z.asyncJobCompletion,3):c.jumpTo(3)}z={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};K=D.next();return c.jumpTo(2)})};
rU.prototype.setJobSetWithScheduledJobs=function(x){var G=_.rC.apply(1,arguments),D=this,K=x.map(function(z){return{job:function(){jWh(z.name);Gaf(function(){return z.callback.apply(z,_.B5(G))});
sq(z.name)},
priority:Ivi(D,z)}});
K.length&&(this.jobSet=new $Os(K))};
var Ivi=function(x,G){var D,K;return(K=(D=x.overridePriority)!=null?D:G.priority)!=null?K:0},jWh=function(x){BR&&x&&EAV(x)},sq=function(x){BR&&x&&hSf(x)},Fns=function(x,G,D){mOu&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+x.constructor.name+"] '"+x.state+"' to '"+G+"'"),console.log("with message: ",D),console.groupEnd())};
_.Nq.Object.defineProperties(rU.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var OUi=function(x){rU.call(this,x===void 0?"none":x);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(){}}]},XSi;
_.m(OUi,rU);OUi.prototype.runApplicationNavigationBegin=function(x,G){var D=this;this.navigationTimer=_.Bw(_.Fj,function(){D.currentState==="application_navigating"&&D.transition("none")},5E3);
x(G==null?void 0:G.event)};
OUi.prototype.runApplicationNavigationEnd=function(x,G){this.navigationTimer&&(_.Fj.cancelJob(this.navigationTimer),this.navigationTimer=null);x(G==null?void 0:G.event)};
_.PDL=function(){XSi||(XSi=new OUi);return XSi};var kaQ=[];_.Jv("yt.logging.transport.getScrapedGelPayloads",function(){return kaQ});var o4=function(){var x=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return x.totalEntries}}};
o4.prototype.storePayload=function(x,G){x=DvQ(x);this.store[x]?this.store[x].push(G):(this.memoizedKeySequences={},this.store[x]=[G]);this.totalEntries++;_.B("more_accurate_gel_parser")&&(G=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(G));return x};
o4.prototype.smartExtractMatchingEntries=function(x){if(!x.keys.length)return[];for(var G=Auh(this,x.keys.splice(0,1)[0]),D=[],K=0;K<G.length;K++)this.store[G[K]]&&x.sizeLimit&&(this.store[G[K]].length<=x.sizeLimit?(D.push.apply(D,_.B5(this.store[G[K]])),delete this.store[G[K]]):D.push.apply(D,_.B5(this.store[G[K]].splice(0,x.sizeLimit))));this.totalEntries-=D.length;(x==null?0:x.sizeLimit)&&D.length<(x==null?void 0:x.sizeLimit)&&(x.sizeLimit-=D.length,D.push.apply(D,_.B5(this.smartExtractMatchingEntries(x))));
return D};
o4.prototype.extractMatchingEntries=function(x){x=Auh(this,x);for(var G=[],D=0;D<x.length;D++)this.store[x[D]]&&(G.push.apply(G,_.B5(this.store[x[D]])),delete this.store[x[D]]);this.totalEntries-=G.length;return G};
o4.prototype.getSequenceCount=function(x){x=Auh(this,x);for(var G=0,D=0;D<x.length;D++){var K=void 0;G+=((K=this.store[x[D]])==null?void 0:K.length)||0}return G};
var Auh=function(x,G){var D=DvQ(G);if(x.memoizedKeySequences[D])return x.memoizedKeySequences[D];var K=Object.keys(x.store)||[];if(K.length<=1&&DvQ(G)===K[0])return K;for(var z=[],y=0;y<K.length;y++){var c=K[y].split("/");if(UOk(G.auth,c[0])){var W=G.isJspb;UOk(W===void 0?"undefined":W?"true":"false",c[1])&&UOk(G.cttAuthInfo,c[2])&&(W=G.tier,W=W===void 0?"undefined":JSON.stringify(W),UOk(W,c[3])&&z.push(K[y]))}}return x.memoizedKeySequences[D]=z},UOk=function(x,G){return x===void 0||x==="undefined"?
!0:x===G};
o4.prototype.getSequenceCount=o4.prototype.getSequenceCount;o4.prototype.extractMatchingEntries=o4.prototype.extractMatchingEntries;o4.prototype.smartExtractMatchingEntries=o4.prototype.smartExtractMatchingEntries;o4.prototype.storePayload=o4.prototype.storePayload;var O7f,I6L,XDL,cw,RHk,KwD,DJD,CDn,Fyh,pD3,jeO,f6h,mv3;O7f=_.Gz("initial_gel_batch_timeout",2E3);I6L=_.Gz("gel_queue_timeout_max_ms",6E4);XDL=_.Gz("gel_min_batch_size",5);cw=void 0;RHk=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
KwD=new RHk;DJD=new RHk;CDn=new RHk;Fyh=new RHk;jeO=!0;f6h=1;_.Jof=new Map;mv3=_.Df.ytLoggingTransportTokensToCttTargetIds_||{};_.Jv("ytLoggingTransportTokensToCttTargetIds_",mv3);var YYn=_.Df.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.Jv("ytLoggingTransportTokensToJspbCttTargetIds_",YYn);var lV={};var s9=_.Df.ytLoggingGelSequenceIdObj_||{};_.Jv("ytLoggingGelSequenceIdObj_",s9);var ynn=[];var LwL=new Set,efQ=0,YIf=0,sPC=0,Mnh=[],ZzL=[],mJd=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var n$P=function(){};
n$P.prototype.getUrl=function(x,G){G=G===void 0?!1:G;return x.hasOwnProperty("shareEndpoint")?null:_.Cb$(x,null,G)};
var $rP=function(x,G,D){x={endpoint:G,actions:[]};D=(D.path?D.path[0]:D.target).icon||"";G=D.indexOf(":");G>0&&(D=D.substr(G+1));D&&x.actions.push(D);return x};var UJL=/Command$/,An3=/Endpoint$/,jPV=new Map;var SpJ,nW8;SpJ=1;_.gu=function(){this.actionRoutingMap=new Map};
_.gu.prototype.triggerAction=function(x){var G=new cxP(x,!1,_.rC.apply(1,arguments));this.handleAction(G);return G.returnValue};
_.gu.prototype.triggerOptionalAction=function(x){var G=new cxP(x,!0,_.rC.apply(1,arguments));this.handleAction(G);return G.returnValue};
_.YG=function(x,G,D){G.forEach(function(K){var z=XhE(K);z&&x.triggerOptionalAction(z,K,D,void 0)})};
_.gu.prototype.handleAction=function(x){var G=this.actionRoutingMap.get(x.actionName);G&&nW8(x,G);x.optionalAction||x.returnValue.length!==0||(x=new _.LL("Unhandled action",x.actionName),_.iM(x))};
nW8=function(x,G){G.forEach(function(D){var K=null;D?K=D.apply(null,x.args):(D=Error("fd"),D.params=x.actionName,_.RE(D));x.returnValue.push(K)})};
_.uV=function(x,G,D){D||(D=SpJ++);for(var K=_.l(Object.keys(G)),z=K.next();!z.done;z=K.next()){z=z.value;var y=x.actionRoutingMap.get(z);y||(y=new Map,x.actionRoutingMap.set(z,y));x.registerActionHandler(D,z,G[z],y)}return D};
_.gu.prototype.registerActionHandler=function(x,G,D,K){K.set(x,_.SR(D))};
_.du=function(x,G,D){G=_.l(Object.keys(G));for(var K=G.next();!K.done;K=G.next())(K=x.actionRoutingMap.get(K.value))&&K.delete(D)};
_.JR(_.gu);var uBQ=function(x,G){var D=_.gu.getInstance();_.FQ(function(){var K={},z=_.uV(D,(K[x]=G,K));_.Fq(function(){var y={};_.du(D,(y[x]="",y),z)})})};EWL=CVL;var Ds3=new Set(["For","If","Match","Watch"]),iUu={},gWu=(iUu[UX.default]=function(){return vWf},iUu.style=function(){return vWf},iUu),ujq;
for(ujq in gWu)Kx.attributes[ujq]=gWu[ujq](Kx.attributes[ujq]);var kq=new _.wq("VISIBILITY_OBSERVER");var eaf={retrieve:function(x){return this.id.\u0275prov.token===x.\u0275prov.token?this.contextValue:this?mhD(this,this.id):sEL}};var dOJ=function(x,G,D){if(x!==vw)return!1;x=keO(document.createElement("div"),function(){var K=GZ(!1);try{D[0]()}finally{GZ(K)}});
x=Array.from(x.childNodes);x.length===1&&(x=x[0]);return x};var wSZ=function(x){x=x.clone();QKq(x);TX(x,"dg",null);TX(x,"d","0");WW9(x,null);eCZ(x,null);return x},qps=!0,N$E=function(x,G,D){var K=D===void 0?{}:D;
D=K.cssRowKey===void 0?void 0:K.cssRowKey;var z=K.combinedSignature===void 0?void 0:K.combinedSignature;var y=K.extraEdges===void 0?void 0:K.extraEdges;K=K.callback===void 0?void 0:K.callback;TX(x,"m",G.join(","));y&&MBE(x,y);D&&(TX(x,"ck",D),z?TX(x,"rs",z):qps&&(qps=!1));if(K){if(K!=null&&!b4u.test(K))throw Error("ab`"+K);TX(x,"cb",K)}x=x.toString();_.zd(x,"/")&&(x=x0s(document.location.href)+x);return _.oF(x)};var Juq=function(x){return vWo(x).then(function(G){return JSON.parse(G.responseText)})},vWo=function(x){var G={},D=G.xmlHttpFactory?G.xmlHttpFactory.createInstance():UHZ.createInstance();
return(new _.T1(function(K,z){var y;try{D.open("GET",x,!0)}catch(e){z(new mL("Error opening XHR: "+e.message,x,D))}D.onreadystatechange=function(){if(D.readyState==4){_.Df.clearTimeout(y);var e;!(e=Ags(D.status))&&(e=D.status===0)&&(e=hPJ(x),e=!(e=="http"||e=="https"||e==""));e?K(D):z(new fvk(D.status,x,D))}};
D.onerror=function(){z(new mL("Network error",x,D))};
if(G.headers)for(var c in G.headers){var W=G.headers[c];W!=null&&D.setRequestHeader(c,W)}G.withCredentials&&(D.withCredentials=G.withCredentials);G.responseType&&(D.responseType=G.responseType);G.mimeType&&D.overrideMimeType(G.mimeType);G.timeoutMs>0&&(y=_.Df.setTimeout(function(){D.onreadystatechange=function(){};
D.abort();z(new tlo(x,D))},G.timeoutMs));
try{D.send(null)}catch(e){D.onreadystatechange=function(){},_.Df.clearTimeout(y),z(new mL("Error sending XHR: "+e.message,x,D))}})).thenCatch(function(K){K instanceof _.S8&&D.abort();
throw K;})},mL=function(x,G,D){_.xC.call(this,x+", url="+G);
this.url=G;this.xhr=D};
_.tR(mL,_.xC);mL.prototype.name="XhrError";var fvk=function(x,G,D){mL.call(this,"Request Failed, status="+x,G,D);this.status=x};
_.tR(fvk,mL);fvk.prototype.name="XhrHttpError";var tlo=function(x,G){mL.call(this,"Request timed out",x,G)};
_.tR(tlo,mL);tlo.prototype.name="XhrTimeoutError";v1=v1||{};var HR=function(){_.Ya.call(this)};
_.tR(HR,_.Ya);HR.prototype.initialize=function(){};var kuq=function(x,G){this.fn_=x;this.handler_=G};
kuq.prototype.execute=function(x){this.fn_&&(this.fn_.call(this.handler_||null,x),this.fn_=this.handler_=null)};
kuq.prototype.abort=function(){this.handler_=this.fn_=null};var $G=function(x,G){_.Ya.call(this);this.deps_=x;this.JSC$8938_id_=G;this.onloadCallbacks_=[];this.JSC$8938_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.tR($G,_.Ya);$G.prototype.moduleConstructor_=HR;$G.prototype.module_=null;$G.prototype.getId=function(){return this.JSC$8938_id_};
$G.prototype.registerCallback=function(x,G){return Ppo(this.onloadCallbacks_,x,G)};
var EWs=function(x,G){Ppo(x.JSC$8938_onErrorCallbacks_,G)},Ppo=function(x,G,D){G=new kuq(G,D);
x.push(G);return G};
$G.prototype.isLoaded=function(){return!!this.module_};
$G.prototype.onLoad=function(x){var G=new this.moduleConstructor_;G.initialize(x());this.module_=G;G=(G=hHh(this.earlyOnloadCallbacks_,x()))||hHh(this.onloadCallbacks_,x());G||(this.JSC$8938_onErrorCallbacks_.length=0);return G};
$G.prototype.onError=function(x){(x=hHh(this.JSC$8938_onErrorCallbacks_,x))&&K$(Error("ld`"+x));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var hHh=function(x,G){for(var D=[],K=0;K<x.length;K++)try{x[K].execute(G)}catch(z){K$(z),D.push(z)}x.length=0;return D.length?D:null};
$G.prototype.disposeInternal=function(){$G.superClass_.disposeInternal.call(this);_.kS(this.module_)};var xiZ,oqo,zeq,ag8,Diq,Kvq,Wv9,c2Z,Tuo;
_.Cy=function(x,G,D,K,z){K=K===void 0?!1:K;z=z===void 0?!1:z;var y=y===void 0?!0:y;this.scsReferenceUrl_=NT$(_.lH(x).toString(),y);this.cssRowKey_=G;this.combinedSignature_=D;this.useNegativeLoading_=K;this.requestedModuleMap_={};this.JSC$8941_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(x=c$(this.scsReferenceUrl_,"excm"))?x.split(","):[];this.shouldScanForCss_=z;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;vTL();this.logger=null;_.FC(this,Z4q(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
xiZ=function(x,G){if(G.href||G.getAttribute("data-href"))if(G=G.href||G.getAttribute("data-href"),uQh(G)&&!NT$(G).urlPrefix_.endsWith("_/js/")){G=Z4q(NT$(G));G=_.l(G);for(var D=G.next();!D.done;D=G.next())D=D.value,x.loadedCssModuleList_.includes(D)||x.loadedCssModuleList_.push(D)}};
_.Cy.prototype.JSC$8943_loadModules=function(x,G,D){var K=D===void 0?{}:D;D=K.extraEdges;var z=K.onError;var y=K.onSuccess;K=K.forceReload;this.JSC$8941_moduleInfoMap_=G;if(!x)throw Error("md");if(this.shouldScanForCss_){G=_.l(document.getElementsByTagName("style"));for(var c=G.next();!c.done;c=G.next())xiZ(this,c.value);G=_.l(document.getElementsByTagName("link"));for(c=G.next();!c.done;c=G.next())xiZ(this,c.value)}G1h(this,Diq(this,x),D,z,y,K)};
var G1h=function(x,G,D,K,z,y){K=K===void 0?function(){}:K;
z=z===void 0?function(){}:z;
y=y===void 0?!1:y;Kvq(x,G,function(c,W,e){e=e===void 0?W:e;x.enableFallbackFetch&&y?x.loadWithFetch(c,W,K,z,e):x.load(c,W,K,z,e,D)},D)||K(-1)};
_.Cy.prototype.loadWithFetch=function(){_.T(function(){throw Error("nd");})};
_.Cy.prototype.maybeSetAdditionalFields=function(){};
oqo=function(x,G,D){if(x.useNegativeLoading_){var K=x.scsReferenceUrl_;x={cssRowKey:x.cssRowKey_,combinedSignature:x.combinedSignature_,extraEdges:D,requestedModuleIds:zeq(x),requestedCssModuleIds:ag8(x)};var z=x===void 0?{}:x;x=z.requestedModuleIds===void 0?[]:z.requestedModuleIds;D=z.requestedCssModuleIds===void 0?[]:z.requestedCssModuleIds;var y=z.cssRowKey===void 0?void 0:z.cssRowKey;var c=z.combinedSignature===void 0?void 0:z.combinedSignature;var W=z.extraEdges===void 0?void 0:z.extraEdges;
z=z.callback===void 0?void 0:z.callback;K=wSZ(K);TX(K,"d","1");WW9(K,x);eCZ(K,D);G=N$E(K,G,{cssRowKey:y,combinedSignature:c,extraEdges:W,callback:z})}else K=x.scsReferenceUrl_,x={cssRowKey:x.cssRowKey_,combinedSignature:x.combinedSignature_,requestedModuleIds:zeq(x),requestedCssModuleIds:ag8(x)},W=x===void 0?{}:x,x=W.requestedCssModuleIds===void 0?[]:W.requestedCssModuleIds,D=W.cssRowKey===void 0?void 0:W.cssRowKey,y=W.combinedSignature===void 0?void 0:W.combinedSignature,c=W.extraEdges===void 0?
void 0:W.extraEdges,W=W.callback===void 0?void 0:W.callback,K=wSZ(K),eCZ(K,x),G=N$E(K,G,{cssRowKey:D,combinedSignature:y,extraEdges:c,callback:W});return G};
_.FC=function(x,G){for(var D=!1,K=[],z=0;z<G.length;++z){var y=G[z];x.requestedModuleMap_[y]||(x.requestedModuleMap_[y]=!0,x.requestedModuleList_.push(y),D=!0,K.push(y))}D&&(x.requestedModuleListSorted_=!1)};
_.Ib=function(x,G){for(var D=[],K=0;K<G.length;++K){var z=G[K];x.requestedModuleMap_[z]&&(delete x.requestedModuleMap_[z],_.f$(x.requestedModuleList_,z),D.push(z))}};
_.Cy.prototype.load=function(x,G,D,K,z){z=z===void 0?G:z;_.lH(x);var y=this.useCors_,c=this.corsMode_,W=this.fetchPriority,e=_.p4("SCRIPT");_.Sr(e,x);y&&(e.crossOrigin=c);e.async=!1;W&&e.setAttribute("fetchpriority",W);_.FC(this,G);_.y27(this,x,e,G,D,K,z)};
_.y27=function(x,G,D,K,z,y,c){c=c===void 0?K:c;x.lastScript_=D;x.insertPos.insertBefore(D,x.insertPos.firstChild);_.lg7(D,K,function(){D.parentElement.removeChild(D);x.lastScript_==D&&(x.lastScript_=null);var W=new Set;K.map(function(Q){return W.add(Q)});
for(var e in x.JSC$8941_moduleInfoMap_)x.JSC$8941_moduleInfoMap_[e].isLoaded()&&W.add(e);Array.from(W);y()},function(W){D.parentElement.removeChild(D);
x.lastScript_==D&&(x.lastScript_=null);_.Ib(x,W);x.pendingModuleGraphUpdate_?x.pendingModuleGraphUpdate_.then(function(){z(-1,G)}):z(-1,G)},c)};
_.lg7=function(x,G,D,K,z){z=z===void 0?G:z;var y=G.length,c=function(){y=0;x.onload=null;x.onerror=null;W=function(){}},W=function(){c();
var Q=z.filter(function(p){return!jB().getModuleInfo(p).isLoaded()});
Q.length!==0?K(Q,"Response was successful but was missing module(s) "+Q+"."):D()},e=function(){y--;
y==0&&W()};
G.forEach(function(Q){Q=jB().getModuleInfo(Q);Q.isLoaded()?e():(Ppo(Q.earlyOnloadCallbacks_,e),EWs(Q,e))});
x.onload=function(){return W()};
x.onerror=function(){c();K(G)}};
zeq=function(x){x.requestedModuleListSorted_||(x.requestedModuleListSorted_=!0,x.requestedModuleList_.sort());return x.requestedModuleList_};
ag8=function(x){x=x.loadedCssModuleList_;x.sort();return x};
Diq=function(x,G){return G.filter(function(D){return!x.requestedModuleMap_[D]})};
Kvq=function(x,G,D,K){if(x.pendingModuleGraphUpdate_)return x.pendingModuleGraphUpdate_.then(function(){Kvq(x,G,D,K)}),!0;
if(!x.useNegativeLoading_){var z=[],y=Object.assign({},x.requestedModuleMap_);c2Z(x,G,function(p){z.push(p.getId())},K,function(p){return!p.isLoaded()},y);
G=z}for(y=0;y<G.length;){for(var c=G.length-y,W=y==0?G:G.slice(y,G.length),e=oqo(x,W,K),Q=_.lH(e).toString();Q.length>x.urlMaxLength;)if(c>1)c-=Math.ceil((Q.length-x.urlMaxLength)/6),c=Math.max(c,1),W=G.slice(y,y+c),e=oqo(x,W,K),Q=_.lH(e).toString();else return x.useNegativeLoading_?(x.useNegativeLoading_=!1,x.pendingModuleGraphUpdate_=Tuo(x).then(function(p){Wv9(x,p,K)}),Kvq(x,G.slice(y),D,K)):!1;
y+=c;x.useNegativeLoading_?D(e,W):D(e,W,y===G.length?G:[])}return!0};
Wv9=function(x,G,D){jB().setAllModuleInfoString((G||{}).moduleGraph);c2Z(x,zeq(x),function(K){_.FC(x,[K.getId()])},D);
x.pendingModuleGraphUpdate_=null};
c2Z=function(x,G,D,K,z,y){y=y===void 0?{}:y;var c=jB();G=_.l(G);for(var W=G.next();!W.done;W=G.next()){W=W.value;var e=c.getModuleInfo(W);if(!(y[W]||z&&!z(e))){y[W]=!0;var Q=e.deps_||[];if(K){var p=[];K[W]&&(p=Object.keys(K[W]));Q=Q.concat(p)}c2Z(x,Q,D,K,z,y);D(e)}}};
Tuo=function(x){x=x.scsReferenceUrl_.clone();QKq(x);TX(x,"dg",null);TX(x,"md","1");return Juq(x.toString())};var QlD=new Uint8Array(123);var ees=[];var ZEo=function(){this.JSC$8061_loader_=null};
_.a=ZEo.prototype;_.a.setBatchModeEnabled=function(){};
_.a.setAllModuleInfoString=function(){};
_.a.addExtraEdge=function(){throw Error("od");};
_.a.removeExtraEdge=function(){throw Error("pd");};
_.a.getModuleContext=function(){return null};
_.a.isActive=function(){return!1};
_.a.isUserActive=function(){return!1};
_.a.registerCallback=function(){};var jY=function(x,G,D,K,z){var y=Error.call(this);this.message=y.message;"stack"in y&&(this.stack=y.stack);this.name="ModuleLoadFailure";this.type=x;this.status=G;this.requestedModuleIds=D;this.url=K;this.cause=z;this.message=this.toString()};
_.m(jY,Error);jY.prototype.toString=function(){return Mms(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var Mms=function(x){switch(x.type){case jY.JSC$8953_Type.UNAUTHORIZED:return"Unauthorized";case jY.JSC$8953_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case jY.JSC$8953_Type.TIMEOUT:return"Timed out";case jY.JSC$8953_Type.OLD_CODE_GONE:return"Out of date module id";case jY.JSC$8953_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+x.type}};
v1.ModuleLoadFailure=jY;v1.ModuleLoadFailure.JSC$8953_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var Oq=function(){this.moduleIds_=this.JSC$8061_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$8956_extraEdges_={};this.JSC$8956_callbackMap_={};this.JSC$8956_currentlyLoadingModule_=this.baseModuleInfo_=new $G([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new A3;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.tR(Oq,ZEo);var Q49=function(x,G){_.xC.call(this,"Error loading "+x+": "+G)};
_.tR(Q49,_.xC);Oq.prototype.setBatchModeEnabled=function(x){this.batchModeEnabled_=x};
Oq.prototype.setAllModuleInfoString=function(x,G){if(!(this instanceof Oq))this.setAllModuleInfoString(x,G);else if(typeof x==="string"){if(x.startsWith("d$")){x=x.substring(2);for(var D=[],K=0,z=x.indexOf("/"),y=0,c=!1,W=0;;){var e=c?x.substring(y):x.substring(y,z);if(e.length===0)K++,y="sy"+K.toString(36),e=[];else{var Q=e.indexOf(":");if(Q<0)y=e,e=[];else if(Q===e.length-1)y=e.substring(0,Q),e=Array(D[W-1]);else{y=e.substring(0,Q);e=e.substring(Q+1).split(",");Q=W;for(var p=0;p<e.length;p++)Q-=
e[p].length===0?1:Number(e[p]),e[p]=D[Q]}Q=0;if(y.length===0)Q=1;else if(y.charAt(0)==="+"||y.charAt(0)==="-")Q=Number(y);Q!==0&&(K+=Q,y="sy"+K.toString(36))}D.push(y);pws(this,y,e);if(c)break;y=z+1;z=x.indexOf("/",y);z===-1&&(c=!0);W++}this.moduleIds_=D}else if(x.startsWith("p$"))Vmu(this,x);else{x=x.split("/");D=[];for(K=0;K<x.length;K++){W=x[K].split(":");z=W[0];c=[];if(W[1])for(c=W[1].split(","),W=0;W<c.length;W++)c[W]=D[parseInt(c[W],36)];D.push(z);pws(this,z,c)}this.moduleIds_=D}G&&G.length?
(_.ED(this.loadingModuleIds_,G),this.lastInitialModuleId_=_.RV(G)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$8956_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$8956_currentlyLoadingModule_=null,(G=this.baseModuleInfo_.onLoad((0,_.mW)(this.getModuleContext,this)))&&G.length&&bEo(this,new v1.ModuleLoadFailure(v1.ModuleLoadFailure.JSC$8953_Type.INIT_ERROR,void 0,void 0,void 0,G[0])),XC(this))}};
var Vmu=function(x,G){var D=G.substring(2);for(G=0;G<64;G++)QlD["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(G)]=G;var K={buf:D,pos:0};h2(K);var z=h2(K),y=h2(K)+1;G=Array(z);var c=Array(z),W=Array(z);y=Array(y);var e=0,Q=0,p=K.pos,V=K.buf.indexOf("|",K.pos);K.pos=V+1;for(V=0;V<z;V++){var L=h2(K),r=L&2,H=L&1;L>>>=2;H?(e+=L>>>1^-(L&1),L="sy"+e.toString(36)):(H=p,p+=L,L=D.substring(H,p));G[V]=L;r&&(y[Q++]=L)}y[Q]="";K.pos++;Q=z&-2;D=z&1;for(e=0;e<Q;e+=2)p=pHn(K),W[e]=
p&7,W[e+1]=p>>>3&7;D&&(D=pHn(K),W[Q]=D&7);K.pos++;for(Q=0;Q<z;Q++)W[Q]===7&&(W[Q]=h2(K));K.pos++;for(D=Q=0;D<z;D++){e=W[D];p=e===0?ees:Array(e);c[D]=p;V=Q;for(r=0;r<e;r++)V-=h2(K),p[r]=y[V];y[Q]===G[D]&&Q++}for(K=0;K<G.length;K++)pws(x,G[K],c[K]);x.moduleIds_=G};
_.a=Oq.prototype;_.a.getModuleInfo=function(x){return this.moduleInfoMap[x]};
_.a.addExtraEdge=function(x,G){var D=this.getModuleInfo(x);D&&D.isLoaded()?this.load(G):(this.JSC$8956_extraEdges_[x]||(this.JSC$8956_extraEdges_[x]={}),this.JSC$8956_extraEdges_[x][G]=!0)};
_.a.removeExtraEdge=function(x,G){if(this.JSC$8956_extraEdges_[x]){delete this.JSC$8956_extraEdges_[x][G];for(var D in this.JSC$8956_extraEdges_[x])return;delete this.JSC$8956_extraEdges_[x]}};
_.a.isActive=function(){return this.loadingModuleIds_.length>0};
_.a.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var XC=function(x){var G=x.lastActive_,D=x.isActive();D!=G&&(x.executeCallbacks_(D?"active":"idle"),x.lastActive_=D);G=x.isUserActive();G!=x.userLastActive_&&(x.executeCallbacks_(G?"userActive":"userIdle"),x.userLastActive_=G)},pws=function(x,G,D){x.moduleInfoMap[G]?(x=x.moduleInfoMap[G].deps_,x!=D&&x.splice.apply(x,[0,
x.length].concat(_.B5(D)))):x.moduleInfoMap[G]=new $G(D,G)},BuJ=function(x,G,D){var K=[];
Ku(G,K);G=[];for(var z={},y=0;y<K.length;y++){var c=K[y],W=x.getModuleInfo(c);if(!W)throw Error("qd`"+c);var e=new A3;z[c]=e;W.isLoaded()?e.callback(null):(LvZ(x,c,W,!!D,e),x.isModuleLoading(c)||G.push(c))}G.length>0&&(x.loadingModuleIds_.length===0?x.loadModules_(G):(x.requestedModuleIdsQueue_.push(G),XC(x)));return z},LvZ=function(x,G,D,K,z){D.registerCallback(z.callback,z);
EWs(D,function(y){z.errback(new Q49(G,y))});
x.isModuleLoading(G)?K&&(r2q(x,G),XC(x)):K&&r2q(x,G)};
Oq.prototype.loadModules_=function(x,G,D){var K=this;G||(this.consecutiveFailures_=0);var z=s4u(this,x);this.loadingModuleIds_=z;this.requestedLoadingModuleIds_=this.batchModeEnabled_?x:_.kC(z);XC(this);if(z.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,z);if(Object.keys(this.JSC$8956_extraEdges_).length>0&&!this.JSC$8061_loader_.supportsExtraEdges)throw Error("rd");x=(0,_.mW)(this.JSC$8061_loader_.JSC$8943_loadModules,this.JSC$8061_loader_,_.kC(z),this.moduleInfoMap,{extraEdges:this.JSC$8956_extraEdges_,
forceReload:!!D,onError:function(y,c){var W=K.requestedLoadingModuleIds_;y=y!=null?y:void 0;K.consecutiveFailures_++;var e=_.kC(z);K.requestedLoadingModuleIds_=W;z.forEach(_.Zq(_.f$,K.requestedModuleIds_),K);y==401?(bEo(K,new v1.ModuleLoadFailure(v1.ModuleLoadFailure.JSC$8953_Type.UNAUTHORIZED,y)),K.requestedModuleIdsQueue_.length=0):y==410?(Y9h(K,new v1.ModuleLoadFailure(v1.ModuleLoadFailure.JSC$8953_Type.OLD_CODE_GONE,y)),mio(K)):K.consecutiveFailures_>=3?(Y9h(K,new v1.ModuleLoadFailure(v1.ModuleLoadFailure.JSC$8953_Type.CONSECUTIVE_FAILURES,
y,e,c)),mio(K)):K.loadModules_(K.requestedLoadingModuleIds_,!0,y==8001||!1)},
onTimeout:(0,_.mW)(this.handleLoadTimeout_,this)});(G=Math.pow(this.consecutiveFailures_,2)*5E3)?_.Df.setTimeout(x,G):x()}};
var s4u=function(x,G){G=G.filter(function(z){return x.moduleInfoMap[z].isLoaded()?(_.Df.setTimeout(function(){return Error("sd`"+z)},0),!1):!0});
for(var D=[],K=0;K<G.length;K++)D=D.concat(HEJ(x,G[K]));Ku(D);return!x.batchModeEnabled_&&D.length>1?(G=D.shift(),x.requestedModuleIdsQueue_=D.map(function(z){return[z]}).concat(x.requestedModuleIdsQueue_),[G]):D},HEJ=function(x,G){var D=_.YS.createSet(x.requestedModuleIds_),K=[];
D[G]||K.push(G);G=[G];for(var z=0;z<G.length;z++)for(var y=x.getModuleInfo(G[z]).deps_,c=y.length-1;c>=0;c--){var W=y[c];x.getModuleInfo(W).isLoaded()||D[W]||(K.push(W),G.push(W))}K.reverse();Ku(K);return K};
Oq.prototype.JSC$8951_setLoaded=function(){if(this.JSC$8956_currentlyLoadingModule_){var x=this.JSC$8956_currentlyLoadingModule_.getId(),G=[];if(this.JSC$8956_extraEdges_[x]){for(var D=_.l(Object.keys(this.JSC$8956_extraEdges_[x])),K=D.next();!K.done;K=D.next()){K=K.value;var z=this.getModuleInfo(K);z&&!z.isLoaded()&&(this.removeExtraEdge(x,K),G.push(K))}this.loadMultiple(G)}this.isDisposed()||((G=this.moduleInfoMap[x].onLoad((0,_.mW)(this.getModuleContext,this)))&&G.length&&bEo(this,new v1.ModuleLoadFailure(v1.ModuleLoadFailure.JSC$8953_Type.INIT_ERROR,
void 0,void 0,void 0,G[0])),_.f$(this.userInitiatedLoadingModuleIds_,x),_.f$(this.loadingModuleIds_,x),this.loadingModuleIds_.length===0&&mio(this),this.lastInitialModuleId_&&x==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),XC(this),this.JSC$8956_currentlyLoadingModule_=null)}};
Oq.prototype.isModuleLoading=function(x){if(_.qL(this.loadingModuleIds_,x))return!0;for(var G=0;G<this.requestedModuleIdsQueue_.length;G++)if(_.qL(this.requestedModuleIdsQueue_[G],x))return!0;return!1};
Oq.prototype.load=function(x,G){return BuJ(this,[x],G)[x]};
Oq.prototype.loadMultiple=function(x){return BuJ(this,x)};
var r2q=function(x,G){_.qL(x.userInitiatedLoadingModuleIds_,G)||x.userInitiatedLoadingModuleIds_.push(G)};
Oq.prototype.beforeLoadModuleCode=function(x){var G=this;this.JSC$8956_currentlyLoadingModule_&&this.JSC$8956_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$8951_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[x]&&$iq(this,this.moduleInfoMap[x].deps_||[],function(D){D.module_=new HR;_.f$(G.loadingModuleIds_,D.getId())},function(D){return!D.isLoaded()});
this.JSC$8956_currentlyLoadingModule_=this.getModuleInfo(x)};
Oq.prototype.handleLoadTimeout_=function(){Y9h(this,new v1.ModuleLoadFailure(v1.ModuleLoadFailure.JSC$8953_Type.TIMEOUT));mio(this)};
var Y9h=function(x,G){x.requestedLoadingModuleIds_.length>1?x.requestedModuleIdsQueue_=x.requestedLoadingModuleIds_.map(function(D){return[D]}).concat(x.requestedModuleIdsQueue_):bEo(x,G)},bEo=function(x,G){var D=x.requestedLoadingModuleIds_;
x.loadingModuleIds_.length=0;for(var K=[],z=0;z<x.requestedModuleIdsQueue_.length;z++){var y=x.requestedModuleIdsQueue_[z].filter(function(e){var Q=HEJ(this,e);return NO(D,function(p){return _.qL(Q,p)})},x);
_.ED(K,y)}for(z=0;z<D.length;z++)_.vL(K,D[z]);for(z=0;z<K.length;z++){for(y=0;y<x.requestedModuleIdsQueue_.length;y++)_.f$(x.requestedModuleIdsQueue_[y],K[z]);_.f$(x.userInitiatedLoadingModuleIds_,K[z])}if(z=x.JSC$8956_callbackMap_.error)for(y=0;y<z.length;y++)for(var c=z[y],W=0;W<K.length;W++)c("error",K[W],G);for(K=0;K<D.length;K++)if(x.moduleInfoMap[D[K]])x.moduleInfoMap[D[K]].onError(G);x.requestedLoadingModuleIds_.length=0;XC(x)},mio=function(x){for(;x.requestedModuleIdsQueue_.length;){var G=
x.requestedModuleIdsQueue_.shift().filter(function(D){return!this.getModuleInfo(D).isLoaded()},x);
if(G.length>0){x.loadModules_(G);return}}XC(x)};
Oq.prototype.registerCallback=function(x,G){Array.isArray(x)||(x=[x]);for(var D=0;D<x.length;D++){var K=x[D],z=G,y=this.JSC$8956_callbackMap_;y[K]||(y[K]=[]);y[K].push(z)}};
Oq.prototype.executeCallbacks_=function(x){for(var G=this.JSC$8956_callbackMap_[x],D=0;G&&D<G.length;D++)G[D](x)};
var $iq=function(x,G,D,K,z){K=K===void 0?function(){return!0}:K;
z=z===void 0?{}:z;G=_.l(G);for(var y=G.next();!y.done;y=G.next()){y=y.value;var c=x.getModuleInfo(y);!z[y]&&K(c)&&(z[y]=!0,$iq(x,c.deps_||[],D,K,z),D(c))}};
Oq.prototype.dispose=function(){_.Pu(_.YS.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$8956_callbackMap_={};this.isDisposed_=!0};
Oq.prototype.isDisposed=function(){return this.isDisposed_};
_.IK=function(){return new Oq};var Fvq=[5E3,2E4],CVs=function(){this.JSC$8061_loader_=null;this.JSC$8964_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$8964_queue_=[];this.JSC$8964_extraEdges_=Object.create(null);this.JSC$8964_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.m(CVs,ZEo);_.a=CVs.prototype;_.a.setAllModuleInfoString=function(){this.JSC$8964_currentlyLoadingModule_&&this.JSC$8964_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$8951_setLoaded()};
_.a.getModuleInfo=function(x){var G=this.JSC$8964_moduleInfoMap_[x];G||(G=new $G([],x),this.JSC$8964_moduleInfoMap_[x]=G);return G};
_.a.addExtraEdge=function(x,G){this.getModuleInfo(x).isLoaded()?this.load(G):(this.JSC$8964_extraEdges_[x]||(this.JSC$8964_extraEdges_[x]={}),this.JSC$8964_extraEdges_[x][G]=!0)};
_.a.removeExtraEdge=function(x,G){if(this.JSC$8964_extraEdges_[x]){delete this.JSC$8964_extraEdges_[x][G];for(var D in this.JSC$8964_extraEdges_[x])return;delete this.JSC$8964_extraEdges_[x]}};
_.a.isModuleLoading=function(x){return!!this.loadingModules_[x]};
_.a.load=function(x){Igo(this,[x]);return j4s(this,x)};
_.a.loadMultiple=function(x){var G=this,D=Object.create(null),K=[];x.forEach(function(z){D[z]||(D[z]=j4s(G,z),K.push(z))});
Igo(this,K);return D};
_.a.beforeLoadModuleCode=function(x){var G;((G=this.JSC$8964_currentlyLoadingModule_)==null?void 0:G.getId())==="synthetic_module_overhead"&&this.JSC$8951_setLoaded();var D,K;OE9(this,(K=(D=this.JSC$8964_moduleInfoMap_[x])==null?void 0:D.deps_)!=null?K:[],function(z){z.module_=new HR},function(z){return!z.isLoaded()});
this.JSC$8964_currentlyLoadingModule_=this.getModuleInfo(x)};
_.a.JSC$8951_setLoaded=function(){if(this.JSC$8964_currentlyLoadingModule_){var x=this.JSC$8964_currentlyLoadingModule_.getId(),G=[];if(this.JSC$8964_extraEdges_[x]){for(var D=_.l(Object.keys(this.JSC$8964_extraEdges_[x])),K=D.next();!K.done;K=D.next())K=K.value,this.getModuleInfo(K).isLoaded()||(this.removeExtraEdge(x,K),G.push(K));this.loadMultiple(G)}this.JSC$8964_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$8964_currentlyLoadingModule_=null;(!this.isModuleLoading(x)&&/^sy[0-9a-z]{0,4}$/.test(x)||x==="synthetic_module_overhead")&&delete this.JSC$8964_moduleInfoMap_[x];this.unsetModulesAsLoading(x)}};
_.a.setModulesAsLoading=function(){var x=this;_.rC.apply(0,arguments).forEach(function(G){x.loadingModules_[G]=!0})};
_.a.unsetModulesAsLoading=function(){var x=this;_.rC.apply(0,arguments).forEach(function(G){delete x.loadingModules_[G]})};
var j4s=function(x,G){return new _.T1(function(D,K){var z=x.getModuleInfo(G);z.isLoaded()?D(null):(z.registerCallback(function(){D(null)}),EWs(z,function(y){var c="Error loading "+G+": "+y;
y instanceof v1.ModuleLoadFailure&&y.url&&(c=c+", requested url: "+y.url.toString());K(Error(c))}))})},Igo=function(x,G){G=G.filter(function(D){return!x.isModuleLoading(D)&&!x.getModuleInfo(D).isLoaded()});
G.length>0&&(x.setModulesAsLoading.apply(x,_.B5(G)),x.JSC$8964_queue_.push(G),XwZ(x))},XwZ=function(x){for(var G={};x.activeLoads_<Infinity&&x.JSC$8964_queue_.length>0;G={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})G.ids$jscomp$36=x.JSC$8964_queue_.shift().filter(function(D){return!x.getModuleInfo(D).isLoaded()}),G.ids$jscomp$36.length>0&&(x.activeLoads_++,G.finishLoad=function(D){return function(){x.activeLoads_--;
XwZ(x);D.finishLoad=function(){}}}(G),_.Zz(G.ids$jscomp$36.map(function(D){return j4s(x,D)})).then(function(D){return function(){(0,D.finishLoad)()}}(G)),G.attempt$jscomp$6=0,G.load$jscomp$1=function(D){return function(){if(Object.keys(x.JSC$8964_extraEdges_).length>0&&!x.JSC$8061_loader_.supportsExtraEdges)throw Error("rd");
x.JSC$8061_loader_.JSC$8943_loadModules(D.ids$jscomp$36,x.JSC$8964_moduleInfoMap_,{extraEdges:x.JSC$8964_extraEdges_,onError:function(K,z){var y=Fvq[D.attempt$jscomp$6++];y!==void 0?setTimeout(function(){(0,D.load$jscomp$1)()},y):(x.unsetModulesAsLoading.apply(x,_.B5(D.ids$jscomp$36)),(0,D.finishLoad)(),D.ids$jscomp$36.forEach(function(c){c=x.getModuleInfo(c);
if(!c.isLoaded())c.onError(new v1.ModuleLoadFailure(v1.ModuleLoadFailure.JSC$8953_Type.CONSECUTIVE_FAILURES,K,D.ids$jscomp$36,z))}))}})}}(G),(0,G.load$jscomp$1)())},OE9=function(x,G,D,K,z){K=K===void 0?function(){return!0}:K;
z=z===void 0?{}:z;G=_.l(G);for(var y=G.next();!y.done;y=G.next()){y=y.value;var c=x.getModuleInfo(y);!z[y]&&K(c)&&(z[y]=!0,OE9(x,c.deps_||[],D,K,z),D(c))}};var A29=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var bHQ=Symbol("ud");window.JSCompiler_renameProperty=function(x){return x};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var UiE=!A29||HTMLElement.es5Shimmed||_.Df.Reflect===void 0||_.Df.customElements===void 0||_.Df.customElements.polyfillWrapFlushCallback||!1,Rei,UoL=function(){var x=HTMLElement;if(UiE)return x;if(Rei!==void 0)return Rei;var G=_.Df.Reflect,D=function(){return G.construct(x,[],this.constructor)};
D.prototype=x.prototype;D.prototype.constructor=D;D.es5Shimmed=!0;Object.setPrototypeOf(D,x);return Rei=D},S97=!1;UiE||S97||(S97=!0,_.Df.HTMLElement=UoL());/*

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 Yuh=/(url\()([^)]*)(\))/g,raf=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,slC,xB;var Ov=!window.ShadyDOM||!window.ShadyDOM.inUse,nqZ=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),iEs=!window.customElements.polyfillWrapFlushCallback,gqs;if(gqs=Ov&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var uvZ=new CSSStyleSheet;uvZ.replaceSync("");var diZ=document.createElement("div");diZ.attachShadow({mode:"open"});diZ.shadowRoot.adoptedStyleSheets=[uvZ];gqs=diZ.shadowRoot.adoptedStyleSheets[0]===uvZ}catch(x){gqs=!1}
var wwh=gqs,q9o=window.Polymer&&window.Polymer.rootPath||HHd(document.baseURI||window.location.href),Mq=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,UFh=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,RN=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Nus=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,jS=window.Polymer&&window.Polymer.legacyOptimizations||!1,Uv=window.Polymer&&window.Polymer.legacyWarnings||!1,vqu=window.Polymer&&window.Polymer.syncInitialRender||
!1,po=window.Polymer&&window.Polymer.legacyUndefined||!1,J2E=window.Polymer&&window.Polymer.orderedComputed||!1,AD=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Uq=window.Polymer&&window.Polymer.fastDomIf||!1,Rb=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,fgs=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,tmZ=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var SY={},k1k={},bg=function(){return HTMLElement.apply(this,arguments)||this};
_.m(bg,HTMLElement);bg.import=function(x,G){return x?(x=SY[x]||k1k[x.toLowerCase()])&&G?x.querySelector(G):x:null};
bg.prototype.attributeChangedCallback=function(x,G,D){G!==D&&this.register()};
bg.prototype.register=function(x){if(x=x||this.id){if(RN&&(SY[x]||k1k[x.toLowerCase()])!==void 0)throw SY[x]=k1k[x.toLowerCase()]=null,Error("vd`"+x);this.id=x;SY[x]=k1k[x.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.Nq.Object.defineProperties(bg.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var x=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;x=_.GR(this.getAttribute("assetpath")||"",x.baseURI);this.__assetpath=HHd(x)}return this.__assetpath}}});
_.Nq.Object.defineProperties(bg,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
bg["import"]=bg.import;bg.prototype.modules=SY;customElements.define("dom-module",bg);var PVE=0,Fj3=0,DP=[],Eqi=0,$sV=!1,hes=document.createTextNode(""),xqk,Co;(new window.MutationObserver(C_f)).observe(hes,{characterData:!0});_.ny={after:function(x){return{run:function(G){return window.setTimeout(G,x)},
cancel:function(G){window.clearTimeout(G)}}},
run:function(x,G){return window.setTimeout(x,G)},
cancel:function(x){window.clearTimeout(x)}};
_.Bh={run:function(x){return window.requestAnimationFrame(x)},
cancel:function(x){window.cancelAnimationFrame(x)}};
xqk={run:function(x){return window.requestIdleCallback?window.requestIdleCallback(x):window.setTimeout(x,16)},
cancel:function(x){window.cancelIdleCallback?window.cancelIdleCallback(x):window.clearTimeout(x)}};
Co={run:function(x){$sV||($sV=!0,hes.textContent=Eqi++);DP.push(x);return PVE++},
cancel:function(x){var G=x-Fj3;if(G>=0){if(!DP[G])throw Error("wd`"+x);DP[G]=null}}};var GRs=0,iG=function(x){var G=x.__mixinApplications;G||(G=new WeakMap,x.__mixinApplications=G);var D=GRs++;return function(K){var z=K.__mixinSet;if(z&&z[D])return K;var y=G,c=y.get(K);c||(c=x(K),y.set(K,c),K=Object.create(c.__mixinSet||z||null),K[D]=!0,c.__mixinSet=K);return c}};_.ZP=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(x){return ShadyDOM.patch(x)}:function(x){return x};var Dqs=iG(function(x){var G=function(){var D=x.call(this)||this;D.__dataEnabled=!1;D.__dataReady=!1;D.__dataInvalid=!1;D.__data={};D.__dataPending=null;D.__dataOld=null;D.__dataInstanceProps=null;D.__dataCounter=0;D.__serializing=!1;D._initializeProperties();return D};
_.m(G,x);G.createProperties=function(D){var K=this.prototype,z;for(z in D)z in K||K._createPropertyAccessor(z)};
G.attributeNameForProperty=function(D){return D.toLowerCase()};
G.typeForProperty=function(){};
G.prototype._createPropertyAccessor=function(D,K){this._addPropertyToAttributeMap(D);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[D]||(this.__dataHasAccessor[D]=!0,this._definePropertyAccessor(D,K))};
G.prototype._addPropertyToAttributeMap=function(D){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var K=this.__dataAttributes[D];K||(K=this.constructor.attributeNameForProperty(D),this.__dataAttributes[K]=D);return K};
G.prototype._definePropertyAccessor=function(D,K){Object.defineProperty(this,D,{get:function(){return this.__data[D]},
set:K?function(){}:function(z){this._setPendingProperty(D,z,!0)&&this._invalidateProperties()}})};
G.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
G.prototype._initializeProperties=function(){for(var D in this.__dataHasAccessor)this.hasOwnProperty(D)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[D]=this[D],delete this[D])};
G.prototype._initializeInstanceProperties=function(D){Object.assign(this,D)};
G.prototype._setProperty=function(D,K){this._setPendingProperty(D,K)&&this._invalidateProperties()};
G.prototype._getProperty=function(D){return this.__data[D]};
G.prototype._setPendingProperty=function(D,K){var z=this.__data[D],y=this._shouldPropertyChange(D,K,z);y&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||D in this.__dataOld||(this.__dataOld[D]=z),this.__data[D]=K,this.__dataPending[D]=K);return y};
G.prototype._isPropertyPending=function(D){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(D))};
G.prototype._invalidateProperties=function(){var D=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Co.run(function(){D.__dataInvalid&&(D.__dataInvalid=!1,D._flushProperties())}))};
G.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
G.prototype._flushProperties=function(){this.__dataCounter++;var D=this.__data,K=this.__dataPending,z=this.__dataOld;this._shouldPropertiesChange(D,K,z)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(D,K,z));this.__dataCounter--};
G.prototype._shouldPropertiesChange=function(D,K){return!!K};
G.prototype._propertiesChanged=function(){};
G.prototype._shouldPropertyChange=function(D,K,z){return z!==K&&(z===z||K===K)};
G.prototype.attributeChangedCallback=function(D,K,z,y){K!==z&&this._attributeToProperty(D,z);x.prototype.attributeChangedCallback&&x.prototype.attributeChangedCallback.call(this,D,K,z,y)};
G.prototype._attributeToProperty=function(D,K,z){if(!this.__serializing){var y=this.__dataAttributes;D=y&&y[D]||D;this[D]=this._deserializeValue(K,z||this.constructor.typeForProperty(D))}};
G.prototype._propertyToAttribute=function(D,K,z){this.__serializing=!0;z=arguments.length<3?this[D]:z;this._valueToNodeAttribute(this,z,K||this.constructor.attributeNameForProperty(D));this.__serializing=!1};
G.prototype._valueToNodeAttribute=function(D,K,z){K=this._serializeValue(K);if(z==="class"||z==="name"||z==="slot")D=(0,_.ZP)(D);K===void 0?D.removeAttribute(z):D.setAttribute(z,K===""&&window.trustedTypes?window.trustedTypes.emptyScript:K)};
G.prototype._serializeValue=function(D){switch(typeof D){case "boolean":return D?"":void 0;default:return D!=null?D.toString():void 0}};
G.prototype._deserializeValue=function(D,K){switch(K){case Boolean:return D!==null;case Number:return Number(D);default:return D}};
return G});var K70=0,IXf=[];var zpk=iG(function(x){function G(y){y=Object.getPrototypeOf(y);return y.prototype instanceof z?y:null}
function D(y){if(!y.hasOwnProperty("__ownProperties")){var c=null;if(y.hasOwnProperty("properties")){var W=y.properties;if(W){c={};for(var e in W){var Q=W[e];c[e]=typeof Q==="function"?{type:Q}:Q}}}y.__ownProperties=c}return y.__ownProperties}
var K=Dqs(x),z=function(){return K.apply(this,arguments)||this};
_.m(z,K);z.finalize=function(){if(!this.hasOwnProperty("__finalized")){var y=G(this);y&&y.finalize();this.__finalized=!0;this._finalizeClass()}};
z._finalizeClass=function(){var y=D(this);y&&this.createProperties(y)};
z.typeForProperty=function(y){return(y=this._properties[y])&&y.type};
z.prototype._initializeProperties=function(){K70++;this.constructor.finalize();K.prototype._initializeProperties.call(this)};
z.prototype.connectedCallback=function(){K.prototype.connectedCallback&&K.prototype.connectedCallback.call(this);this._enableProperties()};
z.prototype.disconnectedCallback=function(){K.prototype.disconnectedCallback&&K.prototype.disconnectedCallback.call(this)};
_.Nq.Object.defineProperties(z,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var y=this;if(!this.hasOwnProperty("__observedAttributes")){jl$(this.prototype);var c=this._properties;this.__observedAttributes=c?Object.keys(c).map(function(W){return y.prototype._addPropertyToAttributeMap(W)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var y=G(this);this.__properties=Object.assign({},y&&y._properties,D(this))}return this.__properties}}});
return z});var OHD={},XHD=/-[a-z]/g,AaC=/([A-Z])/g;for(var aPk={},oB9=HTMLElement.prototype;oB9;){for(var yU7=Object.getOwnPropertyNames(oB9),lPs=0;lPs<yU7.length;lPs++)aPk[yU7[lPs]]=!0;oB9=Object.getPrototypeOf(oB9)}var cU7=window.trustedTypes?function(x){return trustedTypes.isHTML(x)||trustedTypes.isScript(x)||trustedTypes.isScriptURL(x)}:function(){return!1},T1s=iG(function(x){var G=Dqs(x);
x=function(){return G.apply(this,arguments)||this};
_.m(x,G);x.createPropertiesForAttributes=function(){for(var D=this.observedAttributes,K=0;K<D.length;K++)this.prototype._createPropertyAccessor(Ko(D[K]))};
x.attributeNameForProperty=function(D){return zR(D)};
x.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);G.prototype._initializeProperties.call(this)};
x.prototype._initializeProtoProperties=function(D){for(var K in D)this._setProperty(K,D[K])};
x.prototype._ensureAttribute=function(D,K){this.hasAttribute(D)||this._valueToNodeAttribute(this,K,D)};
x.prototype._serializeValue=function(D){switch(typeof D){case "object":if(D instanceof Date)return D.toString();if(D){if(cU7(D))return D;try{return JSON.stringify(D)}catch(K){return""}}default:return G.prototype._serializeValue.call(this,D)}};
x.prototype._deserializeValue=function(D,K){switch(K){case Object:try{var z=JSON.parse(D)}catch(y){z=D}break;case Array:try{z=JSON.parse(D)}catch(y){z=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+D)}break;case Date:z=isNaN(D)?String(D):Number(D);z=new Date(z);break;default:z=G.prototype._deserializeValue.call(this,D,K)}return z};
x.prototype._definePropertyAccessor=function(D,K){if(!aPk[D]){var z=this[D];z!==void 0&&(this.__data?this._setPendingProperty(D,z):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[D]=z))}G.prototype._definePropertyAccessor.call(this,D,K)};
x.prototype._hasAccessor=function(D){return this.__dataHasAccessor&&this.__dataHasAccessor[D]};
x.prototype._isPropertyPending=function(D){return!!(this.__dataPending&&D in this.__dataPending)};
return x});var W7Z={"dom-if":!0,"dom-repeat":!0},eps=!1,Zoi=!1,MSZ=function(){var x=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(G){return G}});
return function(G,D,K){D=D.getAttribute(K);x&&K.startsWith("on-")?G.setAttribute(K,x.createScript(D,K)):G.setAttribute(K,D)}}(),QNs=iG(function(x){var G=function(){return x.apply(this,arguments)||this};
_.m(G,x);G._parseTemplate=function(D,K){if(!D._templateInfo){var z=D._templateInfo={};z.nodeInfoList=[];z.nestedTemplate=!!K;z.stripWhiteSpace=K&&K.stripWhiteSpace||D.hasAttribute&&D.hasAttribute("strip-whitespace");this._parseTemplateContent(D,z,{parent:null})}return D._templateInfo};
G._parseTemplateContent=function(D,K,z){return this._parseTemplateNode(D.content,K,z)};
G._parseTemplateNode=function(D,K,z){var y=!1;D.localName!="template"||D.hasAttribute("preserve-content")?D.localName==="slot"&&(K.hasInsertionPoint=!0):y=this._parseTemplateNestedTemplate(D,K,z)||y;if(!eps){eps=!0;var c=document.createElement("textarea");c.placeholder="a";Zoi=c.placeholder===c.textContent}Zoi&&D.localName==="textarea"&&D.placeholder&&D.placeholder===D.textContent&&(D.textContent=null);D.firstChild&&this._parseTemplateChildNodes(D,K,z);D.hasAttributes&&D.hasAttributes()&&(y=this._parseTemplateNodeAttributes(D,
K,z)||y);return y||z.noted};
G._parseTemplateChildNodes=function(D,K,z){if(D.localName!=="script"&&D.localName!=="style")for(var y=D.firstChild,c=0,W;y;y=W){if(y.localName=="template"){var e=y.getAttribute("is");if(e&&W7Z[e])for(W=y,W.removeAttribute("is"),y=W.ownerDocument.createElement(e),W.parentNode.replaceChild(y,W),y.appendChild(W);W.attributes.length;)e=W.attributes[0].name,MSZ(y,W,e),W.removeAttribute(e)}W=y.nextSibling;if(y.nodeType===Node.TEXT_NODE){for(e=W;e&&e.nodeType===Node.TEXT_NODE;)y.textContent+=e.textContent,
W=e.nextSibling,D.removeChild(e),e=W;if(K.stripWhiteSpace&&!y.textContent.trim()){D.removeChild(y);continue}}e={parentIndex:c,parentInfo:z};this._parseTemplateNode(y,K,e)&&(e.infoIndex=K.nodeInfoList.push(e)-1);y.parentNode&&c++}};
G._parseTemplateNestedTemplate=function(D,K,z){K=this._parseTemplate(D,K);(K.content=D.content.ownerDocument.createDocumentFragment()).appendChild(D.content);z.templateInfo=K;return!0};
G._parseTemplateNodeAttributes=function(D,K,z){for(var y=!1,c=Array.from(D.attributes),W=c.length-1,e;e=c[W];W--)y=this._parseTemplateNodeAttribute(D,K,z,e.name,e.value)||y;return y};
G._parseTemplateNodeAttribute=function(D,K,z,y,c){return y.slice(0,3)==="on-"?(D.removeAttribute(y),z.events=z.events||[],z.events.push({name:y.slice(3),value:c}),!0):y==="id"?(z.id=c,!0):!1};
G._contentForTemplate=function(D){var K=D._templateInfo;return K&&K.content||D.content};
G.prototype._stampTemplate=function(D,K){D&&!D.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(D);K=K||this.constructor._parseTemplate(D);var z=K.nodeInfoList;D=document.importNode(K.content||D.content,!0);D.__noInsertionPoint=!K.hasInsertionPoint;var y=D.nodeList=Array(z.length);D.$={};for(var c=0,W=z.length,e=void 0;c<W&&(e=z[c]);c++){var Q=y[c]=UsE(D,e);e.id&&(D.$[e.id]=Q);var p=Q,V=e,L=K;V.templateInfo&&(p._templateInfo=V.templateInfo,p._parentTemplateInfo=
L);if(e.events&&e.events.length)for(p=0,V=e.events,L=void 0;p<V.length&&(L=V[p]);p++)this._addMethodEventListenerToNode(Q,L.name,L.value,this)}return D};
G.prototype._addMethodEventListenerToNode=function(D,K,z,y){z=RaE(y||D,z);this._addEventListenerToNode(D,K,z);return z};
G.prototype._addEventListenerToNode=function(D,K,z){D.addEventListener(K,z)};
G.prototype._removeEventListenerFromNode=function(D,K,z){D.removeEventListener(K,z)};
return G});var Wm=0,Qr=[],pmi={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},VSi=/[A-Z]/,boi=function(x,G,D,K,z){var y=z?oN(x):x;if(G=G[y])for(y=0;y<G.length;y++){var c=G[y];if(c.info.lastRun!==Wm&&(!z||ds3(x,c.trigger))){c.info.lastRun=Wm;c=c.info;for(var W=D,e=K,Q=0,p=W.length-1,V=-1;Q<=p;){var L=Q+p>>1,r=e.get(W[L].methodInfo)-e.get(c.methodInfo);if(r<0)Q=L+1;else if(r>0)p=L-1;else{V=L;break}}V<
0&&(V=p+1);W.splice(V,0,c)}}},KYO=[],L7k=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"),uG=iG(function(x){var G=QNs(T1s(x));
x=function(){var D=G.call(this)||this;D.__isPropertyEffectsClient=!0;return D};
_.m(x,G);x.prototype._initializeProperties=function(){G.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};
x.prototype._registerHost=function(){if(gU.length){var D=gU[gU.length-1];D._enqueueClient(this);this.__dataHost=D}};
x.prototype._initializeProtoProperties=function(D){this.__data=Object.create(D);this.__dataPending=Object.create(D);this.__dataOld={}};
x.prototype._initializeInstanceProperties=function(D){var K=this.__readOnly,z;for(z in D)K&&K[z]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[z]=this.__dataPending[z]=D[z])};
x.prototype._addPropertyEffect=function(D,K,z){this._createPropertyAccessor(D,K=="__readOnly");var y=u8d(this,K,!0)[D];y||(y=this[K][D]=[]);y.push(z)};
x.prototype._removePropertyEffect=function(D,K,z){D=u8d(this,K,!0)[D];z=D.indexOf(z);z>=0&&D.splice(z,1)};
x.prototype._hasPropertyEffect=function(D,K){K=this[K];return!(!K||!K[D])};
x.prototype._hasReadOnlyEffect=function(D){return this._hasPropertyEffect(D,"__readOnly")};
x.prototype._hasNotifyEffect=function(D){return this._hasPropertyEffect(D,"__notifyEffects")};
x.prototype._hasReflectEffect=function(D){return this._hasPropertyEffect(D,"__reflectEffects")};
x.prototype._hasComputedEffect=function(D){return this._hasPropertyEffect(D,"__computeEffects")};
x.prototype._setPendingPropertyOrPath=function(D,K,z,y){if(y||oN(Array.isArray(D)?D[0]:D)!==D){if(!y&&(y=TR(this,D),D=g7O(this,D,K),!D||!G.prototype._shouldPropertyChange.call(this,D,K,y)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(D,K,z)){if(z=this.__dataLinkedPaths)for(var c in z)y=z[c],yr(c,D)?(y=lg(c,y,D),this._setPendingPropertyOrPath(y,K,!0,!0)):yr(y,D)&&(y=lg(y,c,D),this._setPendingPropertyOrPath(y,K,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[D])return this._setPendingProperty(D,
K,z);this[D]=K}return!1};
x.prototype._setUnmanagedPropertyToNode=function(D,K,z){if(z!==D[K]||typeof z=="object")K==="className"&&(D=(0,_.ZP)(D)),D[K]=z};
x.prototype._setPendingProperty=function(D,K,z){var y=this.__dataHasPaths&&aN(D);if(this._shouldPropertyChange(D,K,(y?this.__dataTemp:this.__data)[D])){this.__dataPending||(this.__dataPending={},this.__dataOld={});D in this.__dataOld||(this.__dataOld[D]=this.__data[D]);y?this.__dataTemp[D]=K:this.__data[D]=K;this.__dataPending[D]=K;if(y||this.__notifyEffects&&this.__notifyEffects[D])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[D]=z;return!0}return!1};
x.prototype._setProperty=function(D,K){this._setPendingProperty(D,K,!0)&&this._invalidateProperties()};
x.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
x.prototype._enqueueClient=function(D){this.__dataPendingClients=this.__dataPendingClients||[];D!==this&&this.__dataPendingClients.push(D)};
x.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
x.prototype.__enableOrFlushClients=function(){var D=this.__dataPendingClients;if(D){this.__dataPendingClients=null;for(var K=0;K<D.length;K++){var z=D[K];z.__dataEnabled?z.__dataPending&&z._flushProperties():z._enableProperties()}}};
x.prototype._readyClients=function(){this.__enableOrFlushClients()};
x.prototype.setProperties=function(D,K){for(var z in D)!K&&this.__readOnly&&this.__readOnly[z]||this._setPendingPropertyOrPath(z,D[z],!0);this._invalidateProperties()};
x.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
x.prototype._propertiesChanged=function(D,K,z){D=this.__dataHasPaths;this.__dataHasPaths=!1;var y;if(y=this.__computeEffects)if(J2E){Wm++;var c=fXC(this),W=[],e;for(e in K)boi(e,y,W,c,D);for(;e=W.shift();)kY3(this,"",K,z,e)&&boi(e.methodInfo,y,W,c,D);Object.assign(z,this.__dataOld);Object.assign(K,this.__dataPending);this.__dataPending=null}else for(c=K;eS(this,y,c,z,D);)Object.assign(z,this.__dataOld),Object.assign(K,this.__dataPending),c=this.__dataPending,this.__dataPending=null;y=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(K,z,D);this._flushClients();eS(this,this.__reflectEffects,K,z,D);eS(this,this.__observeEffects,K,z,D);if(y){c=this.__notifyEffects;W=Wm++;for(var Q in y)if(y[Q]){if(e=c){var p=c;e=W;var V=Q,L=K,r=z,H=D,O=!1,A=H?oN(V):V;if(p=p[A]){A=0;for(var g=p.length,u=void 0;A<g&&(u=p[A]);A++)u.info&&u.info.lastRun===e||H&&!ds3(V,u.trigger)||(u.info&&(u.info.lastRun=e),u.fn(this,V,L,r,u.info,H,void 0),O=!0)}e=O}if(e)var f=!0;else{if(e=D)e=Q,V=K,L=oN(e),L!==
e?(L=zR(L)+"-changed",qu3(this,L,V[e],e),e=!0):e=!1;e&&(f=!0)}}var v;f&&(v=this.__dataHost)&&v._invalidateProperties&&v._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
x.prototype._propagatePropertyChanges=function(D,K,z){this.__propagateEffects&&eS(this,this.__propagateEffects,D,K,z);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,D,K,z)};
x.prototype._runEffectsForTemplate=function(D,K,z,y){var c=this,W=function(e,Q){eS(c,D.propertyEffects,e,z,Q,D.nodeList);for(var p=D.firstChild;p;p=p.nextSibling)c._runEffectsForTemplate(p,e,z,Q)};
D.runEffects?D.runEffects(W,K,y):W(K,y)};
x.prototype.linkPaths=function(D,K){D=cm(D);K=cm(K);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[D]=K};
x.prototype.unlinkPaths=function(D){D=cm(D);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[D]};
x.prototype.notifySplices=function(D,K){var z={path:""};D=TR(this,D,z);ycC(this,D,z.path,K)};
x.prototype.get=function(D,K){return TR(K||this,D)};
x.prototype.set=function(D,K,z){z?g7O(z,D,K):this.__readOnly&&this.__readOnly[D]||this._setPendingPropertyOrPath(D,K,!0)&&this._invalidateProperties()};
x.prototype.push=function(D){var K=_.rC.apply(1,arguments),z={path:""},y=TR(this,D,z),c=y.length,W=y.push.apply(y,_.B5(K));K.length&&Vr(this,y,z.path,c,K.length,[]);return W};
x.prototype.pop=function(D){var K={path:""};D=TR(this,D,K);var z=!!D.length,y=D.pop();z&&Vr(this,D,K.path,D.length,0,[y]);return y};
x.prototype.splice=function(D,K,z){var y=_.rC.apply(3,arguments),c={path:""},W=TR(this,D,c);K<0?K=W.length-Math.floor(-K):K&&(K=Math.floor(K));var e=arguments.length===2?W.splice(K):W.splice.apply(W,[K,z].concat(_.B5(y)));(y.length||e.length)&&Vr(this,W,c.path,K,y.length,e);return e};
x.prototype.shift=function(D){var K={path:""};D=TR(this,D,K);var z=!!D.length,y=D.shift();z&&Vr(this,D,K.path,0,0,[y]);return y};
x.prototype.unshift=function(D){var K=_.rC.apply(1,arguments),z={path:""},y=TR(this,D,z),c=y.unshift.apply(y,_.B5(K));K.length&&Vr(this,y,z.path,0,K.length,[]);return c};
x.prototype.notifyPath=function(D,K){if(arguments.length==1){var z={path:""};K=TR(this,D,z);z=z.path}else z=Array.isArray(D)?cm(D):D;this._setPendingPropertyOrPath(z,K,!0,!0)&&this._invalidateProperties()};
x.prototype._createReadOnlyProperty=function(D,K){this._addPropertyEffect(D,"__readOnly");K&&(this["_set"+(D[0].toUpperCase()+D.substring(1))]=function(z){this._setProperty(D,z)})};
x.prototype._createPropertyObserver=function(D,K,z){var y={property:D,method:K,dynamicFn:!!z};this._addPropertyEffect(D,"__observeEffects",{fn:wHV,info:y,trigger:{name:D}});z&&this._addPropertyEffect(K,"__observeEffects",{fn:wHV,info:y,trigger:{name:K}})};
x.prototype._createMethodObserver=function(D,K){var z=awE(D);if(!z)throw Error("xd`"+D);Gx$(this,z,"__observeEffects",tsP,null,K)};
x.prototype._createNotifyingProperty=function(D){this._addPropertyEffect(D,"__notifyEffects",{fn:NGD,info:{eventName:zR(D)+"-changed",property:D}})};
x.prototype._createReflectedProperty=function(D){var K=this.constructor.attributeNameForProperty(D);K[0]==="-"?console.warn("Property "+D+" cannot be reflected to attribute "+K+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(D,"__reflectEffects",{fn:v7f,info:{attrName:K}})};
x.prototype._createComputedProperty=function(D,K,z){var y=awE(K);if(!y)throw Error("yd`"+K);K=Gx$(this,y,"__computeEffects",kY3,D,z);u8d(this,"__computeInfo")[D]=K};
x.prototype._marshalArgs=function(D,K,z){for(var y=this.__data,c=[],W=0,e=D.length;W<e;W++){var Q=D[W],p=Q.name,V=Q.structured,L=Q.wildcard,r=Q.value;Q.literal||(L?(Q=yr(p,K),V=oLV(y,z,Q?K:p),r={path:Q?K:p,value:V,base:Q?TR(y,p):V}):r=V?oLV(y,z,p):y[p]);if(po&&!this._overrideLegacyUndefined&&r===void 0&&D.length>1)return Qr;c[W]=r}return c};
x.addPropertyEffect=function(D,K,z){this.prototype._addPropertyEffect(D,K,z)};
x.createPropertyObserver=function(D,K,z){this.prototype._createPropertyObserver(D,K,z)};
x.createMethodObserver=function(D,K){this.prototype._createMethodObserver(D,K)};
x.createNotifyingProperty=function(D){this.prototype._createNotifyingProperty(D)};
x.createReadOnlyProperty=function(D,K){this.prototype._createReadOnlyProperty(D,K)};
x.createReflectedProperty=function(D){this.prototype._createReflectedProperty(D)};
x.createComputedProperty=function(D,K,z){this.prototype._createComputedProperty(D,K,z)};
x.bindTemplate=function(D){return this.prototype._bindTemplate(D)};
x.prototype._bindTemplate=function(D,K){var z=this.constructor._parseTemplate(D),y=this.__preBoundTemplateInfo==z;if(!y)for(var c in z.propertyEffects)this._createPropertyAccessor(c);K?(z=Object.create(z),z.wasPreBound=y,this.__templateInfo?(D=D._parentTemplateInfo||this.__templateInfo,K=D.lastChild,z.parent=D,D.lastChild=z,(z.previousSibling=K)?K.nextSibling=z:D.firstChild=z):this.__templateInfo=z):this.__preBoundTemplateInfo=z;return z};
x._addTemplatePropertyEffect=function(D,K,z){(D.hostProps=D.hostProps||{})[K]=!0;D=D.propertyEffects=D.propertyEffects||{};(D[K]=D[K]||[]).push(z)};
x.prototype._stampTemplate=function(D,K){K=K||this._bindTemplate(D,!0);gU.push(this);D=G.prototype._stampTemplate.call(this,D,K);gU.pop();K.nodeList=D.nodeList;if(!K.wasPreBound)for(var z=K.childNodes=[],y=D.firstChild;y;y=y.nextSibling)z.push(y);D.templateInfo=K;z=K.nodeList;y=K.nodeInfoList;if(y.length)for(var c=0;c<y.length;c++){var W=z[c],e=y[c].bindings;if(e)for(var Q=0;Q<e.length;Q++){var p=e[Q],V=W,L=p;if(L.isCompound){for(var r=V.__dataCompoundStorage||(V.__dataCompoundStorage={}),H=L.parts,
O=Array(H.length),A=0;A<H.length;A++)O[A]=H[A].literal;H=L.target;r[H]=O;L.literal&&L.kind=="property"&&(H==="className"&&(V=(0,_.ZP)(V)),V[H]=L.literal)}xFO(W,this,p)}W.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(K,this.__data,null,!1),this._flushClients());return D};
x.prototype._removeBoundDom=function(D){D=D.templateInfo;var K=D.previousSibling,z=D.nextSibling,y=D.parent;K?K.nextSibling=z:y&&(y.firstChild=z);z?z.previousSibling=K:y&&(y.lastChild=K);D.nextSibling=D.previousSibling=null;D=D.childNodes;for(K=0;K<D.length;K++)z=D[K],(0,_.ZP)((0,_.ZP)(z).parentNode).removeChild(z)};
x._parseTemplateNode=function(D,K,z){var y=G._parseTemplateNode.call(this,D,K,z);if(D.nodeType===Node.TEXT_NODE){var c=this._parseBindings(D.textContent,K);c&&(D.textContent=DFO(c)||" ",haD(this,K,z,"text","textContent",c),y=!0)}return y};
x._parseTemplateNodeAttribute=function(D,K,z,y,c){var W=this._parseBindings(c,K);if(W){c=y;var e="property";VSi.test(y)?e="attribute":y[y.length-1]=="$"&&(y=y.slice(0,-1),e="attribute");var Q=DFO(W);Q&&e=="attribute"&&(y=="class"&&D.hasAttribute("class")&&(Q+=" "+D.getAttribute(y)),D.setAttribute(y,Q));e=="attribute"&&c=="disable-upgrade$"&&D.setAttribute(y,"");D.localName==="input"&&c==="value"&&D.setAttribute(c,"");D.removeAttribute(c);e==="property"&&(y=Ko(y));haD(this,K,z,e,y,W,Q);return!0}return G._parseTemplateNodeAttribute.call(this,
D,K,z,y,c)};
x._parseTemplateNestedTemplate=function(D,K,z){var y=G._parseTemplateNestedTemplate.call(this,D,K,z),c=D.parentNode,W=z.templateInfo,e=c.localName==="dom-if",Q=c.localName==="dom-repeat";AD&&(e||Q)&&(c.removeChild(D),z=z.parentInfo,z.templateInfo=W,z.noted=!0,y=!1);D=W.hostProps;if(Uq&&e)D&&(K.hostProps=Object.assign(K.hostProps||{},D),AD||(z.parentInfo.noted=!0));else for(var p in D)haD(this,K,z,"property","_host_"+p,[{mode:"{",source:p,dependencies:[p],hostProp:!0}]);return y};
x._parseBindings=function(D,K){for(var z=[],y=0,c;(c=L7k.exec(D))!==null;){c.index>y&&z.push({literal:D.slice(y,c.index)});y=c[1][0];var W=!!c[2];c=c[3].trim();var e=!1,Q="",p=-1;y=="{"&&(p=c.indexOf("::"))>0&&(Q=c.substring(p+2),c=c.substring(0,p),e=!0);p=awE(c);var V=[];if(p){var L=p,r=L.args;L=L.methodName;for(var H=0;H<r.length;H++){var O=r[H];O.literal||V.push(O)}if((r=K.dynamicFns)&&r[L]||p.static)V.push(L),p.dynamicFn=!0}else V.push(c);z.push({source:c,mode:y,negate:W,customEvent:e,signature:p,
dependencies:V,event:Q});y=L7k.lastIndex}y&&y<D.length&&(D=D.substring(y))&&z.push({literal:D});return z.length?z:null};
x._evaluateBinding=function(D,K,z,y,c,W){D=K.signature?tsP(D,z,y,c,K.signature):z!=K.source?TR(D,K.source):W&&aN(z)?TR(D,z):D.__data[z];K.negate&&(D=!D);return D};
_.Nq.Object.defineProperties(x.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return pmi}}});
return x}),gU=[];var B18=window.ShadyCSS&&window.ShadyCSS.cssBuild,dU=iG(function(x){function G(K,z,y,c){if(!B18){for(var W=z.content.querySelectorAll("style"),e=eMn(z),Q=Zsn(y),p=z.content.firstElementChild,V=0;V<Q.length;V++){var L=Q[V];L.textContent=K._processStyleText(L.textContent,c);z.content.insertBefore(L,p)}for(p=Q=0;p<e.length;p++)V=e[p],L=W[Q],L!==V?(V=V.cloneNode(!0),L.parentNode.insertBefore(V,L)):Q++,V.textContent=K._processStyleText(V.textContent,c)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(z,
y);if(tmZ&&B18&&wwh&&(z=z.content.querySelectorAll("style"))){var r="";Array.from(z).forEach(function(H){r+=H.textContent;H.parentNode.removeChild(H)});
K._styleSheet=new CSSStyleSheet;K._styleSheet.replaceSync(r)}}
var D=zpk(uG(x));x=function(){return D.call(this)||this};
_.m(x,D);x._finalizeClass=function(){D._finalizeClass.call(this);var K;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(K=this.__ownObservers)&&this.createObservers(K,this._properties);this._prepareTemplate()};
x._prepareTemplate=function(){var K=this.template;K&&(typeof K==="string"?(console.error("template getter must return HTMLTemplateElement"),K=null):jS||(K=K.cloneNode(!0)));this.prototype._template=K};
x.createProperties=function(K){for(var z in K){var y=this.prototype,c=z,W=K[z],e=K;W.computed&&(W.readOnly=!0);W.computed&&(y._hasReadOnlyEffect(c)?console.warn("Cannot redefine computed property '"+c+"'."):y._createComputedProperty(c,W.computed,e));W.readOnly&&!y._hasReadOnlyEffect(c)?y._createReadOnlyProperty(c,!W.computed):W.readOnly===!1&&y._hasReadOnlyEffect(c)&&console.warn("Cannot make readOnly property '"+c+"' non-readOnly.");W.reflectToAttribute&&!y._hasReflectEffect(c)?y._createReflectedProperty(c):
W.reflectToAttribute===!1&&y._hasReflectEffect(c)&&console.warn("Cannot make reflected property '"+c+"' non-reflected.");W.notify&&!y._hasNotifyEffect(c)?y._createNotifyingProperty(c):W.notify===!1&&y._hasNotifyEffect(c)&&console.warn("Cannot make notify property '"+c+"' non-notify.");W.observer&&y._createPropertyObserver(c,W.observer,e[W.observer]);y._addPropertyToAttributeMap(c)}};
x.createObservers=function(K,z){for(var y=this.prototype,c=0;c<K.length;c++)y._createMethodObserver(K[c],z)};
x.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);D.prototype._initializeProperties.call(this);this.rootPath=q9o;this.importPath=this.constructor.importPath;var K=this.constructor;if(!K.hasOwnProperty("__propertyDefaults")){K.__propertyDefaults=null;var z=K._properties,y;for(y in z){var c=z[y];"value"in c&&(K.__propertyDefaults=K.__propertyDefaults||{},K.__propertyDefaults[y]=c)}}if(K=K.__propertyDefaults)for(var W in K)z=K[W],
this._canApplyPropertyDefault(W)&&(z=typeof z.value=="function"?z.value.call(this):z.value,this._hasAccessor(W)?this._setPendingProperty(W,z,!0):this[W]=z)};
x.prototype._canApplyPropertyDefault=function(K){return!this.hasOwnProperty(K)};
x._processStyleText=function(K,z){return msL(K,z)};
x._finalizeTemplate=function(K){var z=this.prototype._template;if(z&&!z.__polymerFinalized){z.__polymerFinalized=!0;var y=this.importPath;y=y?_.GR(y):"";G(this,z,K,y);this.prototype._bindTemplate(z)}};
x.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);D.prototype.connectedCallback.call(this)};
x.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);D.prototype.ready.call(this)};
x.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));D.prototype._readyClients.call(this)};
x.prototype._attachDom=function(K){var z=(0,_.ZP)(this);if(z.attachShadow)return K?(z.shadowRoot||(z.attachShadow({mode:"open",shadyUpgradeFragment:K}),z.shadowRoot.appendChild(K),this.constructor._styleSheet&&(z.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),vqu&&window.ShadyDOM&&window.ShadyDOM.flushInitial(z.shadowRoot),z.shadowRoot):null;throw Error("Ad");};
x.prototype.updateStyles=function(K){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,K)};
x.prototype.resolveUrl=function(K,z){!z&&this.importPath&&(z=_.GR(this.importPath));return _.GR(K,z)};
x._parseTemplateContent=function(K,z,y){z.dynamicFns=z.dynamicFns||this._properties;return D._parseTemplateContent.call(this,K,z,y)};
x._addTemplatePropertyEffect=function(K,z,y){!Uv||z in this._properties||y.info.part.signature&&y.info.part.signature.static||y.info.part.hostProp||K.nestedTemplate||console.warn("Property '"+z+"' used in template but not declared in 'properties'; attribute will not be observed.");return D._addTemplatePropertyEffect.call(this,K,z,y)};
_.Nq.Object.defineProperties(x,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var K=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof K==="function"&&(K=K());if(K===void 0){if(K=this.hasOwnProperty("is")){K=this.is;var z=null;if(K&&(!RN||Nus)&&(z=bg.import(K,"template"),RN&&!z))throw Error("zd`"+K);K=z}K=K||Object.getPrototypeOf(this.prototype).constructor.template}this._template=K}return this._template},
set:function(K){this._template=K}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var K=this.importMeta;K?this._importPath=HHd(K.url):this._importPath=(K=bg.import(this.is))&&K.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return x});var rUq=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(x){return x}}),Blf=function(x,G){sNs(x,G);
this.value=G.reduce(function(D,K,z){return D+rcC(K)+x[z+1]},x[0]).toString()},sNs;
Blf.prototype.toString=function(){return this.value};
_.Yvu=function(x){var G=_.rC.apply(1,arguments);sNs(x,G);var D=document.createElement("template");G=G.reduce(function(K,z,y){if(z instanceof HTMLTemplateElement)z=z.innerHTML;else if(z instanceof Blf)z=rcC(z);else throw Error("Cd`"+z);return K+z+x[y+1]},x[0]);
rUq&&(G=rUq.createHTML(G));D.innerHTML=G;return D};
sNs=function(x,G){if(!Array.isArray(x)||!Array.isArray(x.raw)||G.length!==x.length-1)throw new TypeError("Dd");};var wU=dU(HTMLElement);var mq8=iG(function(x){var G=dU(x);x=function(){var D=G.call(this)||this;D.__lastItems=null;D.__lastMulti=null;D.__selectedMap=null;return D};
_.m(x,G);x.prototype.__updateSelection=function(D,K){var z=K.path;z=="items"?(K=K.base||[],z=this.__lastItems,D!==this.__lastMulti&&this.clearSelection(),z&&(z=LYC(K,z),this.__applySplices(z)),this.__lastItems=K,this.__lastMulti=D):K.path=="items.splices"?this.__applySplices(K.value.indexSplices):(D=z.slice(6),K=parseInt(D,10),D.indexOf(".")<0&&D==K&&this.__deselectChangedIdx(K))};
x.prototype.__applySplices=function(D){for(var K=this,z=this.__selectedMap,y={},c=0;c<D.length;y={s$jscomp$108:void 0},c++){y.s$jscomp$108=D[c];z.forEach(function(p){return function(V,L){V<p.s$jscomp$108.index||(V>=p.s$jscomp$108.index+p.s$jscomp$108.removed.length?z.set(L,V+p.s$jscomp$108.addedCount-p.s$jscomp$108.removed.length):z.set(L,-1))}}(y));
for(var W=0;W<y.s$jscomp$108.addedCount;W++){var e=y.s$jscomp$108.index+W;z.has(this.items[e])&&z.set(this.items[e],e)}}this.__updateLinks();var Q=0;z.forEach(function(p,V){p<0?(K.multi?K.splice("selected",Q,1):K.selected=K.selectedItem=null,z.delete(V)):Q++})};
x.prototype.__updateLinks=function(){var D=this;this.__dataLinkedPaths={};if(this.multi){var K=0;this.__selectedMap.forEach(function(z){z>=0&&D.linkPaths("items."+z,"selected."+K++)})}else this.__selectedMap.forEach(function(z){D.linkPaths("selected","items."+z);
D.linkPaths("selectedItem","items."+z)})};
x.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
x.prototype.isSelected=function(D){return this.__selectedMap.has(D)};
x.prototype.isIndexSelected=function(D){return this.isSelected(this.items[D])};
x.prototype.__deselectChangedIdx=function(D){var K=this,z=this.__selectedIndexForItemIndex(D);if(z>=0){var y=0;this.__selectedMap.forEach(function(c,W){z==y++&&K.deselect(W)})}};
x.prototype.__selectedIndexForItemIndex=function(D){if(D=this.__dataLinkedPaths["items."+D])return parseInt(D.slice(9),10)};
x.prototype.deselect=function(D){var K=this.__selectedMap.get(D);if(K>=0){this.__selectedMap.delete(D);var z;this.multi&&(z=this.__selectedIndexForItemIndex(K));this.__updateLinks();this.multi?this.splice("selected",z,1):this.selected=this.selectedItem=null}};
x.prototype.deselectIndex=function(D){this.deselect(this.items[D])};
x.prototype.select=function(D){this.selectIndex(this.items.indexOf(D))};
x.prototype.selectIndex=function(D){var K=this.items[D];this.isSelected(K)?this.toggle&&this.deselectIndex(D):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(K,D),this.__updateLinks(),this.multi?this.push("selected",K):this.selected=this.selectedItem=K)};
_.Nq.Object.defineProperties(x,{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 x}),Hoh=mq8(wU),ql=function(){return Hoh.apply(this,arguments)||this};
_.m(ql,Hoh);_.Nq.Object.defineProperties(ql,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(ql.is,ql);var $qZ=window.Polymer;window.Polymer=function(x){return window.Polymer._polymerFn(x)};
$qZ&&Object.assign(Polymer,$qZ);Polymer._polymerFn=function(){throw Error("Ed");};/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
Polymer.ResolveUrl={resolveCss:msL,resolveUrl:_.GR,pathFromUrl:HHd};Polymer.DomModule=bg;Polymer.Async={timeOut:_.ny,animationFrame:_.Bh,idlePeriod:xqk,microTask:Co};Polymer.dedupingMixin=iG;Polymer.wrap=_.ZP;Polymer.PropertiesChanged=Dqs;Polymer.telemetry={instanceCount:K70,incrementInstanceCount:function(){K70++},
registrations:IXf,register:jl$,dumpRegistrations:function(){IXf.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=zpk;Polymer.CaseMap={dashToCamelCase:Ko,camelToDashCase:zR};Polymer.PropertyAccessors=T1s;Polymer.TemplateStamp=QNs;Polymer.Path={isPath:aN,root:oN,isAncestor:SuO,isDescendant:yr,translate:lg,matches:n7E,normalize:cm,split:iHQ,get:TR,set:g7O,isDeep:aN};Polymer.Settings={useShadow:Ov,useNativeCSSProperties:nqZ,useNativeCustomElements:iEs,get rootPath(){return q9o},setRootPath:function(x){q9o=x},
get sanitizeDOMValue(){return Mq},setSanitizeDOMValue:function(x){Mq=x},
get passiveTouchGestures(){return UFh},setPassiveTouchGestures:function(x){UFh=x},
get strictTemplatePolicy(){return RN},setStrictTemplatePolicy:function(x){RN=x},
get allowTemplateFromDomModule(){return Nus},setAllowTemplateFromDomModule:function(x){Nus=x},
get legacyOptimizations(){return jS},setLegacyOptimizations:function(x){jS=x},
get syncInitialRender(){return vqu},setSyncInitialRender:function(x){vqu=x},
get legacyUndefined(){return po},setLegacyUndefined:function(x){po=x},
get legacyWarnings(){return Uv},setLegacyWarnings:function(x){Uv=x},
get orderedComputed(){return J2E},setOrderedComputed:function(x){J2E=x},
get fastDomIf(){return Uq},setFastDomIf:function(x){Uq=x},
get removeNestedTemplates(){return AD},setRemoveNestedTemplates:function(x){AD=x},
get suppressTemplateNotifications(){return Rb},setSuppressTemplateNotifications:Rb};Polymer.rootPath!==void 0&&(q9o=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(Mq=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(UFh=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(RN=Polymer.strictTemplatePolicy);Nus=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(jS=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(vqu=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(po=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(Uv=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(J2E=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(Uq=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(AD=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(Rb=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return Mq},
set:function(x){Mq=x}});Polymer.PropertyEffects=uG;Polymer.StyleGather={stylesFromModules:TlQ,stylesFromModule:ccL,stylesFromTemplate:eMn,stylesFromModuleImports:Zsn,cssFromModules:QOO,cssFromModule:MUL,cssFromTemplate:pq$,cssFromModuleImports:function(x){return(x=bg.import(x))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(x):""}};Polymer.ElementMixin=dU;Polymer.updateStyles=function(x){window.ShadyCSS&&window.ShadyCSS.styleDocument(x)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:LYC};Polymer.html=_.Yvu;Polymer.htmlLiteral=function(x){return new Blf(x,_.rC.apply(1,arguments))};Polymer.Element=wU;Polymer.ArraySelectorMixin=mq8;Polymer.ArraySelector=ql;var F70=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Cgu=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,G03=/@media\s(.*)/;var Hsh=null,mFn=window.HTMLImports&&window.HTMLImports.whenReady||null,$FC;var IP8=null,Nl=null,vR=function(){this.customStyles=[];this.enqueued=!1;FYV(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},jNJ=function(x){!x.enqueued&&Nl&&(x.enqueued=!0,FYV(Nl))};
vR.prototype.addCustomStyle=function(x){x.__seenByShadyCSS||(x.__seenByShadyCSS=!0,this.customStyles.push(x),jNJ(this))};
vR.prototype.getStyleForCustomStyle=function(x){if(x.__shadyCSSCachedStyle)return x.__shadyCSSCachedStyle;var G;x.getStyle?G=x.getStyle():G=x;return G};
vR.prototype.processStyles=function(){for(var x=this.customStyles,G=0;G<x.length;G++){var D=x[G];if(!D.__shadyCSSCachedStyle){var K=this.getStyleForCustomStyle(D);K&&(K=K.__appliedElement||K,IP8&&IP8(K),D.__shadyCSSCachedStyle=K)}}return x};
vR.prototype.addCustomStyle=vR.prototype.addCustomStyle;vR.prototype.getStyleForCustomStyle=vR.prototype.getStyleForCustomStyle;vR.prototype.processStyles=vR.prototype.processStyles;Object.defineProperties(vR.prototype,{transformCallback:{get:function(){return IP8},
set:function(x){IP8=x}},
validateCallback:{get:function(){return Nl},
set:function(x){var G=!1;Nl||(G=!0);Nl=x;G&&jNJ(this)}}});var IwO=!(window.ShadyDOM&&window.ShadyDOM.inUse),CAd,qq;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(qq=window.ShadyCSS.cssBuild);var Oos=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?CAd=window.ShadyCSS.nativeCss:window.ShadyCSS?(jOQ(window.ShadyCSS),window.ShadyCSS=void 0):jOQ(window.WebComponents&&window.WebComponents.flags);var E5f=CAd;var Xmu=new vR;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(x,G){Xmu.processStyles();sOP(x,G)},
styleElement:function(){Xmu.processStyles()},
styleDocument:function(x){Xmu.processStyles();sOP(document.body,x)},
getComputedStyleValue:function(x,G){return Yg3(x,G)},
flushCustomStyles:function(){},
nativeCss:E5f,nativeShadow:IwO,cssBuild:qq,disableRuntime:Oos});window.ShadyCSS.CustomStyleInterface=Xmu;var AU8=window.ShadyCSS.CustomStyleInterface,JD=function(){var x=HTMLElement.call(this)||this;x._style=null;AU8.addCustomStyle(x);return x};
_.m(JD,HTMLElement);JD.prototype.getStyle=function(){if(this._style)return this._style;var x=this.querySelector("style");if(!x)return null;this._style=x;var G=x.getAttribute("include");G&&(x.removeAttribute("include"),x.textContent=QOO(G)+x.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
JD.prototype.getStyle=JD.prototype.getStyle;window.customElements.define("custom-style",JD);Polymer.CustomStyle=JD;var fy=function(){this._timer=this._callback=this._asyncModule=null},tD,RpZ;
fy.prototype.setConfig=function(x,G){var D=this;this._asyncModule=x;this._callback=G;this._timer=this._asyncModule.run(function(){D._timer=null;tD.delete(D);D._callback()})};
fy.prototype.cancel=function(){this.isActive()&&(Uqk(this),tD.delete(this))};
var Uqk=function(x){x.isActive()&&(x._asyncModule.cancel(x._timer),x._timer=null)};
fy.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
fy.prototype.isActive=function(){return this._timer!=null};
_.kG=function(x,G,D){x instanceof fy?Uqk(x):x=new fy;x.setConfig(G,D);return x};
tD=new Set;_.PR=function(x){tD.add(x)};
RpZ=function(){var x=!!tD.size;tD.forEach(function(G){try{G.flush()}catch(D){setTimeout(function(){throw D;})}});
return x};var XqC=typeof document.head.style.touchAction==="string",OsQ=["mousedown","mousemove","mouseup","click"],dF3=[0,1,4,2],Svs;try{Svs=(new MouseEvent("test",{buttons:1})).buttons===1}catch(x){Svs=!1}var u4d=Svs,AcL=!1;(function(){try{var x=Object.defineProperty({},"passive",{get:function(){AcL=!0}});
window.addEventListener("test",null,x);window.removeEventListener("test",null,x)}catch(G){}})();
var SgC=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),nLQ=[],nBs={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},xXV={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},isL=function(x){var G=x.sourceCapabilities;if(!G||G.firesTouchEvents)if(x.__polymerGesturesHandled={skip:!0},x.type==="click"){G=!1;for(var D=vLE(x),K=0;K<D.length;K++){if(D[K].nodeType===Node.ELEMENT_NODE)if(D[K].localName==="label")nLQ.push(D[K]);
else if(nBs[D[K].localName]){var z=D[K];var y=Array.prototype.slice.call(z.labels||[]);if(!y.length){y=[];try{var c=z.getRootNode();if(z.id){var W=c.querySelectorAll("label[for = '"+z.id+"']");for(z=0;z<W.length;z++)y.push(W[z])}}catch(e){}}for(z=0;z<y.length;z++)G=G||nLQ.indexOf(y[z])>-1}if(D[K]===ioZ)return}G||(x.preventDefault(),x.stopPropagation())}},ioZ=null,Eq=null,fw3=0,tUh=0,Jcd=-1,kxh=!1;
document.addEventListener("touchend",function(x){Eq||gLL(!0);ioZ=vLE(x)[0];Eq=_.kG(Eq,_.ny.after(2500),function(){gLL();Eq=ioZ=null})},AcL?{passive:!0}:!1);
var vLE=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(x){return x.composedPath&&x.composedPath()||[]},m7={},sv=[];
PAP({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){r1(this.info)},
mousedown:function(x){if(Bm(x)){var G=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(x),D=this;qgD(this.info,function(K){Bm(K)||(IN("up",G,K),r1(D.info))},function(K){Bm(K)&&IN("up",G,K);
r1(D.info)});
IN("down",G,x)}},
touchstart:function(x){IN("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(x),x.changedTouches[0],x)},
touchend:function(x){IN("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(x),x.changedTouches[0],x)}});
PAP({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(x){this.moves.length>2&&this.moves.shift();this.moves.push(x)},
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;r1(this.info)},
mousedown:function(x){if(Bm(x)){var G=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(x),D=this,K=function(z){var y=z.clientX,c=z.clientY;ELh(D.info,y,c)&&(D.info.state=D.info.started?z.type==="mouseup"?"end":"track":"start",D.info.state==="start"&&YB("tap"),D.info.addMove({x:y,y:c}),Bm(z)||(D.info.state="end",r1(D.info)),G&&hML(D.info,G,z),D.info.started=!0)};
qgD(this.info,K,function(z){D.info.started&&K(z);r1(D.info)});
this.info.x=x.clientX;this.info.y=x.clientY}},
touchstart:function(x){x=x.changedTouches[0];this.info.x=x.clientX;this.info.y=x.clientY},
touchmove:function(x){var G=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(x);x=x.changedTouches[0];var D=x.clientX,K=x.clientY;ELh(this.info,D,K)&&(this.info.state==="start"&&YB("tap"),this.info.addMove({x:D,y:K}),hML(this.info,G,x),this.info.state="track",this.info.started=!0)},
touchend:function(x){var G=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(x);x=x.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:x.clientX,y:x.clientY}),hML(this.info,G,x))}});
PAP({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(x){Bm(x)&&(this.info.x=x.clientX,this.info.y=x.clientY)},
click:function(x){Bm(x)&&GFV(this.info,x)},
touchstart:function(x){x=x.changedTouches[0];this.info.x=x.clientX;this.info.y=x.clientY},
touchend:function(x){GFV(this.info,x.changedTouches[0],x)}});var gB9=iG(function(x){var G=function(){return x.apply(this,arguments)||this};
_.m(G,x);G.prototype._addEventListenerToNode=function(D,K,z){Hm(D,K,z)||x.prototype._addEventListenerToNode.call(this,D,K,z)};
G.prototype._removeEventListenerFromNode=function(D,K,z){$B(D,K,z)||x.prototype._removeEventListenerFromNode.call(this,D,K,z)};
return G});var hD=iG(function(x){var G=function(){return x.apply(this,arguments)||this};
_.m(G,x);G.prototype._shouldPropertyChange=function(D,K,z){return DXC(this,D,K,z,!0)};
return G}),uKk=iG(function(x){var G=function(){return x.apply(this,arguments)||this};
_.m(G,x);G.prototype._shouldPropertyChange=function(D,K,z){return DXC(this,D,K,z,this.mutableData)};
_.Nq.Object.defineProperties(G,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return G});
hD._mutablePropertyChange=DXC;var KIf=!1;var dqu=gB9(uKk(uG(HTMLElement))),xy=function(){var x=dqu.call(this)||this;if(RN)throw Error("Fd");x.root=null;x.$=null;x.__children=null;return x};
_.m(xy,dqu);_.a=xy.prototype;_.a.attributeChangedCallback=function(){this.mutableData=!0};
_.a.connectedCallback=function(){z_$()||(this.style.display="none");this.render()};
_.a.disconnectedCallback=function(){this.__removeChildren()};
_.a.__insertChildren=function(){(0,_.ZP)((0,_.ZP)(this).parentNode).insertBefore(this.root,this)};
_.a.__removeChildren=function(){if(this.__children)for(var x=0;x<this.__children.length;x++)this.root.appendChild(this.__children[x])};
_.a.render=function(){var x=this;if(!this.__children){var G=G||this.querySelector("template");if(!G){var D=new MutationObserver(function(){if(G=x.querySelector("template"))D.disconnect(),x.render();else throw Error("Gd");});
D.observe(this,{childList:!0});return}this.root=this._stampTemplate(G);this.$=this.root.$;this.__children=[];for(var K=this.root.firstChild;K;K=K.nextSibling)this.__children[this.__children.length]=K;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.Nq.Object.defineProperties(xy,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",xy);Polymer.Debouncer=fy;Polymer.Gestures={gestures:m7,recognizers:sv,deepTargetFind:Nlh,addListener:Hm,removeListener:$B,register:PAP,setTouchAction:_.FK,prevent:YB,resetMouseCanceller:function(){Eq&&Eq.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:Hm,remove:$B};Polymer.GestureEventListeners=gB9;Polymer.MutableData=hD;Polymer.OptionalMutableData=uKk;Polymer.DomBind=xy;_.GI=function(){do{var x=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var G=RpZ()}while(x||G)};var akn=null;o5D.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:o5D,writable:!0}});var M8D=uG(o5D),Z13=hD(M8D),wm9=uG(function(){}),XK=function(x){var G=wm9.call(this)||this;
G._configureProperties(x);G.root=G._stampTemplate(G.__dataHost);var D=[];G.children=D;for(var K=G.root.firstChild;K;K=K.nextSibling)D.push(K),K.__templatizeInstance=G;G.__templatizeOwner&&G.__templatizeOwner.__hideTemplateChildren__&&G._showHideChildren(!0);D=G.__templatizeOptions;(x&&D.instanceProps||!D.instanceProps)&&G._enableProperties();return G};
_.m(XK,wm9);_.a=XK.prototype;_.a._configureProperties=function(x){if(this.__templatizeOptions.forwardHostProp)for(var G in this.__hostProps)this._setPendingProperty(G,this.__dataHost["_host_"+G]);for(var D in x)this._setPendingProperty(D,x[D])};
_.a.forwardHostProp=function(x,G){this._setPendingPropertyOrPath(x,G,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.a._addEventListenerToNode=function(x,G,D){var K=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(x,G,function(y){y.model=K;D(y)});
else{var z=this.__dataHost.__dataHost;z&&z._addEventListenerToNode(x,G,D)}};
_.a._showHideChildren=function(x){lkC(x,this.children)};
_.a._setUnmanagedPropertyToNode=function(x,G,D){x.__hideTemplateChildren__&&x.nodeType==Node.TEXT_NODE&&G=="textContent"?x.__polymerTextContent__=D:wm9.prototype._setUnmanagedPropertyToNode.call(this,x,G,D)};
_.a.dispatchEvent=function(){return!0};
_.Nq.Object.defineProperties(XK.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var x=this.__parentModel;if(!x){var G;x=this;do x=x.__dataHost.__dataHost;while((G=x.__templatizeOptions)&&!G.parentModel);this.__parentModel=x}return x}}});
var TjV=hD(XK);var DK=function(){var x=wU.call(this)||this;x.__renderDebouncer=null;x._lastIf=!1;x.__hideTemplateChildren__=!1;return x};
_.m(DK,wU);_.a=DK.prototype;_.a.__debounceRender=function(){var x=this;this.__renderDebouncer=_.kG(this.__renderDebouncer,Co,function(){return x.__render()});
_.PR(this.__renderDebouncer)};
_.a.disconnectedCallback=function(){wU.prototype.disconnectedCallback.call(this);var x=(0,_.ZP)(this).parentNode;x&&(x.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.ZP)(x).host)||this.__teardownInstance()};
_.a.connectedCallback=function(){wU.prototype.connectedCallback.call(this);z_$()||(this.style.display="none");this.if&&this.__debounceRender()};
_.a.__ensureTemplate=function(){var x=this;if(!this.__template){var G=this._templateInfo?this:(0,_.ZP)(this).querySelector("template");if(!G){var D=new MutationObserver(function(){if((0,_.ZP)(x).querySelector("template"))D.disconnect(),x.__render();else throw Error("Jd");});
D.observe(this,{childList:!0});return!1}this.__template=G}return!0};
_.a.__ensureInstance=function(){var x=(0,_.ZP)(this).parentNode;if(this.__hasInstance()){var G=this.__getInstanceNodes();if(G&&G.length&&(0,_.ZP)(this).previousSibling!==G[G.length-1])for(var D=0,K=void 0;D<G.length&&(K=G[D]);D++)(0,_.ZP)(x).insertBefore(K,this)}else{if(!x||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(x)}return!0};
_.a.render=function(){_.GI()};
_.a.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();Rb&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.a.__hasInstance=function(){};
_.a.__getInstanceNodes=function(){};
_.a.__createAndInsertInstance=function(){};
_.a.__teardownInstance=function(){};
_.a._showHideChildren=function(){};
_.Nq.Object.defineProperties(DK,{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:DK.prototype.__debounceRender},restamp:{type:Boolean,observer:DK.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var qvs=function(){var x=DK.call(this)||this;x.__instance=null;x.__syncInfo=null;return x};
_.m(qvs,DK);_.a=qvs.prototype;_.a.__hasInstance=function(){return!!this.__instance};
_.a.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.a.__createAndInsertInstance=function(x){var G=this,D=this.__dataHost||this;if(RN&&!this.__dataHost)throw Error("Hd");var K=D._bindTemplate(this.__template,!0);K.runEffects=function(z,y,c){var W=G.__syncInfo;if(G.if)W&&(G.__syncInfo=null,G._showHideChildren(),y=Object.assign(W.changedProps,y)),z(y,c);else if(G.__instance)if(W||(W=G.__syncInfo={runEffects:z,changedProps:{}}),c)for(var e in y)z=oN(e),W.changedProps[z]=G.__dataHost[z];else Object.assign(W.changedProps,y)};
this.__instance=D._stampTemplate(this.__template,K);(0,_.ZP)(x).insertBefore(this.__instance,this)};
_.a.__syncHostProperties=function(){var x=this.__syncInfo;x&&(this.__syncInfo=null,x.runEffects(x.changedProps,!1))};
_.a.__teardownInstance=function(){var x=this.__dataHost||this;this.__instance&&(x._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.a._showHideChildren=function(){var x=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==x&&(this.__instance.__hidden=x,lkC(x,this.__instance.templateInfo.childNodes));x||this.__syncHostProperties()};
var N17=function(){var x=DK.call(this)||this;x.__ctor=null;x.__instance=null;x.__invalidProps=null;return x};
_.m(N17,DK);_.a=N17.prototype;_.a.__hasInstance=function(){return!!this.__instance};
_.a.__getInstanceNodes=function(){return this.__instance.children};
_.a.__createAndInsertInstance=function(x){this.__ctor||(this.__ctor=AU(this.__template,this,{mutableData:!0,forwardHostProp:function(G,D){this.__instance&&(this.if?this.__instance.forwardHostProp(G,D):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[oN(G)]=!0))}}));
this.__instance=new this.__ctor;(0,_.ZP)(x).insertBefore(this.__instance.root,this)};
_.a.__teardownInstance=function(){if(this.__instance){var x=this.__instance.children;if(x&&x.length){var G=(0,_.ZP)(x[0]).parentNode;if(G){G=(0,_.ZP)(G);for(var D=0,K=void 0;D<x.length&&(K=x[D]);D++)G.removeChild(K)}}this.__instance=this.__invalidProps=null}};
_.a.__syncHostProperties=function(){var x=this.__invalidProps;if(x){this.__invalidProps=null;for(var G in x)this.__instance._setPendingProperty(G,this.__dataHost[G]);this.__instance._flushProperties()}};
_.a._showHideChildren=function(){var x=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==x&&(this.__instance.__hidden=x,this.__instance._showHideChildren(x));x||this.__syncHostProperties()};
_.sY=Uq?qvs:N17;customElements.define(_.sY.is,_.sY);Polymer.enqueueDebouncer=_.PR;Polymer.flush=_.GI;Polymer.Templatize={templatize:AU,modelForElement:Bjf};Polymer.TemplateInstanceBase=XK;Polymer.DomIf=_.sY;var vB8=uKk(wU),rc=function(){var x=vB8.call(this)||this;x.__instances=[];x.__renderDebouncer=null;x.__itemsIdxToInstIdx={};x.__chunkCount=null;x.__renderStartTime=null;x.__itemsArrayChanged=!1;x.__shouldMeasureChunk=!1;x.__shouldContinueChunking=!1;x.__chunkingId=0;x.__sortFn=null;x.__filterFn=null;x.__observePaths=null;x.__ctor=null;x.__isDetached=!0;x.template=null;return x};
_.m(rc,vB8);_.a=rc.prototype;_.a.disconnectedCallback=function(){vB8.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var x=0;x<this.__instances.length;x++)this.__detachInstance(x);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.a.connectedCallback=function(){vB8.prototype.connectedCallback.call(this);z_$()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var x=(0,_.ZP)((0,_.ZP)(this).parentNode),G=0;G<this.__instances.length;G++)this.__attachInstance(G,x);this.__chunkingId&&this.__render()}};
_.a.__ensureTemplatized=function(){var x=this;if(!this.__ctor){var G=this.template=this._templateInfo?this:this.querySelector("template");if(!G){var D=new MutationObserver(function(){if(x.querySelector("template"))D.disconnect(),x.__render();else throw Error("Kd");});
D.observe(this,{childList:!0});return!1}var K={};K[this.as]=!0;K[this.indexAs]=!0;K[this.itemsIndexAs]=!0;this.__ctor=AU(G,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:K,forwardHostProp:function(z,y){for(var c=this.__instances,W=0,e=void 0;W<c.length&&(e=c[W]);W++)e.forwardHostProp(z,y)},
notifyInstanceProp:function(z,y,c){n7E(this.as,y)&&(z=z[this.itemsIndexAs],y==this.as&&(this.items[z]=c),y=lg(this.as,"items."+z,y),this.notifyPath(y,c))}})}return!0};
_.a.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.a.__functionFromPropertyValue=function(x){if(typeof x==="string"){var G=this.__getMethodHost();return function(){return G[x].apply(G,arguments)}}return x};
_.a.__sortChanged=function(x){this.__sortFn=this.__functionFromPropertyValue(x);this.items&&this.__debounceRender(this.__render)};
_.a.__filterChanged=function(x){this.__filterFn=this.__functionFromPropertyValue(x);this.items&&this.__debounceRender(this.__render)};
_.a.__computeFrameTime=function(x){return Math.ceil(1E3/x)};
_.a.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.a.__handleObservedPaths=function(x){if(this.__sortFn||this.__filterFn)if(!x)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var G=this.__observePaths,D=0;D<G.length;D++)x.indexOf(G[D])===0&&this.__debounceRender(this.__render,this.delay)};
_.a.__itemsChanged=function(x){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(x.path,x.value)||(x.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.a.__debounceRender=function(x,G){G=G===void 0?0:G;this.__renderDebouncer=_.kG(this.__renderDebouncer,G>0?_.ny.after(G):Co,x.bind(this));_.PR(this.__renderDebouncer)};
_.a.render=function(){this.__debounceRender(this.__render);_.GI()};
_.a.__render=function(){var x=this;if(this.__ensureTemplatized()){var G=this.items||[],D=this.__sortAndFilterItems(G),K=this.__calculateLimit(D.length);this.__updateInstances(G,K,D);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){x.__chunkingId=null;x.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);Rb&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.a.__sortAndFilterItems=function(x){for(var G=this,D=Array(x.length),K=0;K<x.length;K++)D[K]=K;this.__filterFn&&(D=D.filter(function(z,y,c){return G.__filterFn(x[z],y,c)}));
this.__sortFn&&D.sort(function(z,y){return G.__sortFn(x[z],x[y])});
return D};
_.a.__calculateLimit=function(x){var G=x,D=this.__instances.length;if(this.initialCount){var K;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(G=Math.min(x,this.initialCount),this.__chunkCount=(K=Math.max(G-D,0))||1):(K=Math.min(Math.max(x-D,0),this.__chunkCount),G=Math.min(D+K,x));this.__shouldMeasureChunk=K===this.__chunkCount;this.__shouldContinueChunking=G<x;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return G};
_.a.__continueChunking=function(){if(this.__shouldMeasureChunk){var x=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/x*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.a.__updateInstances=function(x,G,D){var K=this.__itemsIdxToInstIdx={},z;for(z=0;z<G;z++){var y=this.__instances[z],c=D[z],W=x[c];K[c]=z;y?(y._setPendingProperty(this.as,W),y._setPendingProperty(this.indexAs,z),y._setPendingProperty(this.itemsIndexAs,c),y._flushProperties()):this.__insertInstance(W,z,c)}for(x=this.__instances.length-1;x>=z;x--)this.__detachAndRemoveInstance(x)};
_.a.__detachInstance=function(x){x=this.__instances[x];for(var G=(0,_.ZP)(x.root),D=0;D<x.children.length;D++)G.appendChild(x.children[D]);return x};
_.a.__attachInstance=function(x,G){G.insertBefore(this.__instances[x].root,this)};
_.a.__detachAndRemoveInstance=function(x){this.__detachInstance(x);this.__instances.splice(x,1)};
_.a.__stampInstance=function(x,G,D){var K={};K[this.as]=x;K[this.indexAs]=G;K[this.itemsIndexAs]=D;return new this.__ctor(K)};
_.a.__insertInstance=function(x,G,D){x=this.__stampInstance(x,G,D);D=(D=this.__instances[G+1])?D.children[0]:this;(0,_.ZP)((0,_.ZP)(this).parentNode).insertBefore(x.root,D);return this.__instances[G]=x};
_.a._showHideChildren=function(x){for(var G=0;G<this.__instances.length;G++)this.__instances[G]._showHideChildren(x)};
_.a.__handleItemPath=function(x,G){var D=x.slice(6),K=D.indexOf(".");x=K<0?D:D.substring(0,K);if(x==parseInt(x,10)){D=K<0?"":D.substring(K+1);this.__handleObservedPaths(D);if(x=this.__instances[this.__itemsIdxToInstIdx[x]])x._setPendingPropertyOrPath(this.as+(D?"."+D:""),G,!1,!0),x._flushProperties();return!0}};
_.a.itemForElement=function(x){return(x=this.modelForElement(x))&&x[this.as]};
_.a.indexForElement=function(x){return(x=this.modelForElement(x))&&x[this.indexAs]};
_.a.modelForElement=function(x){return Bjf(this.template,x)};
_.Nq.Object.defineProperties(rc,{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:rc.prototype.__sortChanged},filter:{type:Function,observer:rc.prototype.__filterChanged},observe:{type:String,observer:rc.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!Rb,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.*)"]}}});
rc.prototype._setRenderedItemCount=function(){};
customElements.define(rc.is,rc);Polymer.DomRepeat=rc;var JUZ=function(x,G){var D=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=x;this.callback=G;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){D._schedule()};
this.connect();this._schedule()},fPZ=function(x){var G=(0,_.ZP)(x);
if(SS(x))return G.assignedNodes({flatten:!0});x=[];for(var D=0;D<G.childNodes.length;D++){var K=G.childNodes[D];SS(K)?x.push.apply(x,_.B5((0,_.ZP)(K).assignedNodes({flatten:!0}))):x.push(K)}return x};
_.a=JUZ.prototype;_.a.connect=function(){var x=this;SS(this._target)?this._listenSlots([this._target]):(0,_.ZP)(this._target).children&&(this._listenSlots((0,_.ZP)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(G){x._processMutations(G)}):(this._nativeChildrenObserver=new MutationObserver(function(G){x._processMutations(G)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.a.disconnect=function(){SS(this._target)?this._unlistenSlots([this._target]):(0,_.ZP)(this._target).children&&(this._unlistenSlots((0,_.ZP)(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};
_.a._schedule=function(){var x=this;this._scheduled||(this._scheduled=!0,Co.run(function(){return x.flush()}))};
_.a._processMutations=function(x){this._processSlotMutations(x);this.flush()};
_.a._processSlotMutations=function(x){if(x)for(var G=0;G<x.length;G++){var D=x[G];D.addedNodes&&this._listenSlots(D.addedNodes);D.removedNodes&&this._unlistenSlots(D.removedNodes)}};
_.a.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 x={target:this._target,addedNodes:[],removedNodes:[]},G=fPZ(this._target),D=LYC(G,this._effectiveNodes),K=0,z=void 0;K<D.length&&(z=D[K]);K++)for(var y=0,c=void 0;y<z.removed.length&&(c=z.removed[y]);y++)x.removedNodes.push(c);
K=0;for(z=void 0;K<D.length&&(z=D[K]);K++)for(y=z.index;y<z.index+z.addedCount;y++)x.addedNodes.push(G[y]);this._effectiveNodes=G;G=!1;if(x.addedNodes.length||x.removedNodes.length)G=!0,this.callback.call(this._target,x);return G};
_.a._listenSlots=function(x){for(var G=0;G<x.length;G++){var D=x[G];SS(D)&&D.addEventListener("slotchange",this._boundSchedule)}};
_.a._unlistenSlots=function(x){for(var G=0;G<x.length;G++){var D=x[G];SS(D)&&D.removeEventListener("slotchange",this._boundSchedule)}};var KZ=Element.prototype,tS8=KZ.matches||KZ.matchesSelector||KZ.mozMatchesSelector||KZ.msMatchesSelector||KZ.oMatchesSelector||KZ.webkitMatchesSelector,kRh=function(x,G){return tS8.call(x,G)},no=function(x){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(x);
this.node=x},xpE;
_.a=no.prototype;_.a.observeNodes=function(x){return new JUZ(this.node,x)};
_.a.unobserveNodes=function(x){x.disconnect()};
_.a.notifyObserver=function(){};
_.a.deepContains=function(x){if((0,_.ZP)(this.node).contains(x))return!0;var G=x;for(x=x.ownerDocument;G&&G!==x&&G!==this.node;)G=(0,_.ZP)(G).parentNode||(0,_.ZP)(G).host;return G===this.node};
_.a.getOwnerRoot=function(){return(0,_.ZP)(this.node).getRootNode()};
_.a.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.ZP)(this.node).assignedNodes({flatten:!0}):[]};
_.a.getDestinationInsertionPoints=function(){for(var x=[],G=(0,_.ZP)(this.node).assignedSlot;G;)x.push(G),G=(0,_.ZP)(G).assignedSlot;return x};
_.a.importNode=function(x,G){return(0,_.ZP)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(x,G)};
_.a.getEffectiveChildNodes=function(){return fPZ(this.node)};
_.a.queryDistributedElements=function(x){for(var G=this.getEffectiveChildNodes(),D=[],K=0,z=G.length,y=void 0;K<z&&(y=G[K]);K++)y.nodeType===Node.ELEMENT_NODE&&kRh(y,x)&&D.push(y);return D};
_.Nq.Object.defineProperties(no.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var x=this.node;return x._activeElement!==void 0?x._activeElement:x.activeElement}}});
var zI=function(x){this.event=x};
_.Nq.Object.defineProperties(zI.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 Pgq=no;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var EBs=window.ShadyDOM.Wrapper,hph=function(){return EBs.apply(this,arguments)||this};
_.m(hph,EBs);Object.getOwnPropertyNames(no.prototype).forEach(function(x){x!="activeElement"&&x!="constructor"&&(hph.prototype[x]=no.prototype[x])});
syn(hph.prototype,["classList"]);Pgq=hph;Object.defineProperties(zI.prototype,{localTarget:{get:function(){var x=this.event.currentTarget;x=x&&_.By(x).getOwnerRoot();for(var G=this.path,D=0;D<G.length;D++){var K=G[D];if(_.By(K).getOwnerRoot()===x)return K}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else rj3(),syn(no.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),YHL();xpE=Pgq;_.By=function(x){x=x||document;if(x instanceof Pgq)return x;if(x instanceof zI)return x;var G=x.__domApi;G||(x instanceof Event?G=new zI(x):G=new Pgq(x),x.__domApi=G);return G};var Gyu=/:host\(:dir\((ltr|rtl)\)\)/g,Dp7=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,KbE=/:dir\((?:ltr|rtl)\)/,zcZ=!(!window.ShadyDOM||!window.ShadyDOM.inUse),g1=[],ac=null,ig="",auZ=iG(function(x){zcZ||ac||(ig=document.documentElement.getAttribute("dir"),ac=new MutationObserver(mXd),ac.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var G=T1s(x);x=function(){var D=G.call(this)||this;D.__autoDirOptOut=!1;return D};
_.m(x,G);x._processStyleText=function(D,K){D=G._processStyleText.call(this,D,K);!zcZ&&KbE.test(D)&&(D=this._replaceDirInCssText(D),this.__activateDir=!0);return D};
x._replaceDirInCssText=function(D){D=D.replace(Gyu,':host([dir="$1"])');return D=D.replace(Dp7,':host([dir="$2"]) $1')};
x.prototype.ready=function(){G.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
x.prototype.connectedCallback=function(){G.prototype.connectedCallback&&G.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(ac&&ac.takeRecords().length&&mXd(),g1.push(this),this.__autoDirOptOut||this.setAttribute("dir",ig))};
x.prototype.disconnectedCallback=function(){G.prototype.disconnectedCallback&&G.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var D=g1.indexOf(this);D>-1&&g1.splice(D,1)}};
x.__activateDir=!1;return x});var omZ=function(x){for(;x;){var G=Object.getOwnPropertyDescriptor(x,"observedAttributes");if(G)return G.get;x=Object.getPrototypeOf(x.prototype).constructor}return function(){return[]}};
iG(function(x){var G=dU(x),D=omZ(G);x=function(){return G.call(this)||this};
_.m(x,G);x.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:G.prototype._initializeProperties.call(this)};
x.prototype._enableProperties=function(){this.__isUpgradeDisabled||G.prototype._enableProperties.call(this)};
x.prototype._canApplyPropertyDefault=function(K){return G.prototype._canApplyPropertyDefault.call(this,K)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(K))};
x.prototype.attributeChangedCallback=function(K,z,y,c){K=="disable-upgrade"?this.__isUpgradeDisabled&&y==null&&(G.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.ZP)(this).isConnected&&G.prototype.connectedCallback.call(this)):G.prototype.attributeChangedCallback.call(this,K,z,y,c)};
x.prototype.connectedCallback=function(){this.__isUpgradeDisabled||G.prototype.connectedCallback.call(this)};
x.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||G.prototype.disconnectedCallback.call(this)};
_.Nq.Object.defineProperties(x,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return D.call(this).concat("disable-upgrade")}}});
return x});var ug=!1,$Xf=[],d1=[];var jyd=window.ShadyDOM,O1Q=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",AjP):document.readyState==="interactive"||document.readyState==="complete"?AjP():window.addEventListener("DOMContentLoaded",AjP);var SHL=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=""},UXL=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,R_P=/@import[^;]*;/gim,wbE=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,qHf=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,Nj$=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,v5L=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,uDO=/^@[^\s]*keyframes/,
g5h=/\s+/g;var JjC={};var kFD=Promise.resolve();var y$J=new Set;var luo=/;\s*/m,c$u=/^\s*(initial)|(inherit)\s*$/,T5J=/\s*!important/,WbZ=function(){this._map={}};
WbZ.prototype.set=function(x,G){x=x.trim();this._map[x]={properties:G,dependants:{}}};
WbZ.prototype.get=function(x){x=x.trim();return this._map[x]||null};
var ecJ=null,oc=function(){this._measureElement=this._currentElement=null;this._map=new WbZ};
_.a=oc.prototype;_.a.detectMixin=function(x){x=Cgu.test(x)||F70.test(x);Cgu.lastIndex=0;F70.lastIndex=0;return x};
_.a.transformTemplate=function(x,G){if(x._gatheredStyle===void 0){var D=[];for(var K=x.content.querySelectorAll("style"),z=0;z<K.length;z++){var y=K[z];if(y.hasAttribute("shady-unscoped")){if(!IwO){var c=y.textContent;if(!y$J.has(c)){y$J.add(c);var W=document.createElement("style");W.setAttribute("shady-unscoped","");W.textContent=c;document.head.appendChild(W)}y.parentNode.removeChild(y)}}else D.push(y.textContent),y.parentNode.removeChild(y)}(D=D.join("").trim())?(K=document.createElement("style"),
K.textContent=D,x.content.insertBefore(K,x.content.firstChild),D=K):D=null;x._gatheredStyle=D}return(x=x._gatheredStyle)?this.JSC$9174_transformStyle(x,G):null};
_.a.JSC$9174_transformStyle=function(x,G){G=G===void 0?"":G;var D=xtP(x);this.transformRules(D,G);x.textContent=h_O(D);return D};
_.a.transformCustomStyle=function(x){var G=this,D=xtP(x);DtV(D,function(K){K.selector===":root"&&(K.selector="html");G.transformRule(K)});
x.textContent=h_O(D);return D};
_.a.transformRules=function(x,G){var D=this;this._currentElement=G;DtV(x,function(K){D.transformRule(K)});
this._currentElement=null};
_.a.transformRule=function(x){x.cssText=ZCE(this,x.parsedCssText,x);x.selector===":root"&&(x.selector=":host > *")};
var ZCE=function(x,G,D){G=G.replace(F70,function(K,z,y,c){return x._produceCssProperties(K,z,y,c,D)});
return x._consumeCssProperties(G,D)};
_.a=oc.prototype;_.a._getInitialValueForProperty=function(x){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(x)};
_.a._fallbacksFromPreviousRules=function(x){for(var G=this,D=x;D.parent;)D=D.parent;var K={},z=!1;DtV(D,function(y){(z=z||y===x)||y.selector===x.selector&&Object.assign(K,G._cssTextToMap(y.parsedCssText))});
return K};
_.a._consumeCssProperties=function(x,G){for(var D;D=Cgu.exec(x);){var K=D[0],z=D[1];D=D.index;var y=D+K.indexOf("@apply"),c=D+K.length;K=x.slice(0,y);x=x.slice(c);y=G?this._fallbacksFromPreviousRules(G):{};Object.assign(y,this._cssTextToMap(K));z=this._atApplyToCssProperties(z,y);x=K+z+x;Cgu.lastIndex=D+z.length}return x};
_.a._atApplyToCssProperties=function(x,G){x=x.replace(luo,"");var D=[],K=this._map.get(x);K||(this._map.set(x,{}),K=this._map.get(x));if(K){this._currentElement&&(K.dependants[this._currentElement]=!0);var z,y=K.properties;for(z in y){var c=G&&G[z];K=[z,": var(",x,"_-_",z];c&&K.push(",",c.replace(T5J,""));K.push(")");T5J.test(y[z])&&K.push(" !important");D.push(K.join(""))}}return D.join("; ")};
_.a._replaceInitialOrInherit=function(x,G){var D=c$u.exec(G);D&&(G=D[1]?this._getInitialValueForProperty(x):"apply-shim-inherit");return G};
_.a._cssTextToMap=function(x,G){G=G===void 0?!1:G;x=x.split(";");for(var D,K,z={},y=0;y<x.length;y++)if(D=x[y])K=D.split(":"),K.length>1&&(D=K[0].trim(),K=K.slice(1).join(":"),G&&(K=this._replaceInitialOrInherit(D,K)),z[D]=K);return z};
_.a._invalidateMixinEntry=function(x){if(ecJ)for(var G in x.dependants)G!==this._currentElement&&ecJ(G)};
_.a._produceCssProperties=function(x,G,D,K,z){var y=this;D&&KJO(D,function(H,O){O&&y._map.get(O)&&(K="@apply "+O+";")});
if(!K)return x;var c=this._consumeCssProperties(""+K,z);z=x.slice(0,x.indexOf("--"));var W=c=this._cssTextToMap(c,!0),e=this._map.get(G),Q=e&&e.properties;Q?W=Object.assign(Object.create(Q),c):this._map.set(G,W);var p=[],V,L=!1;for(V in W){var r=c[V];r===void 0&&(r="initial");!Q||V in Q||(L=!0);p.push(G+"_-_"+V+": "+r)}L&&this._invalidateMixinEntry(e);e&&(e.properties=W);D&&(z=x+";"+z);return z+p.join("; ")+";"};
oc.prototype.detectMixin=oc.prototype.detectMixin;oc.prototype.transformStyle=oc.prototype.JSC$9174_transformStyle;oc.prototype.transformCustomStyle=oc.prototype.transformCustomStyle;oc.prototype.transformRules=oc.prototype.transformRules;oc.prototype.transformRule=oc.prototype.transformRule;oc.prototype.transformTemplate=oc.prototype.transformTemplate;oc.prototype._separator="_-_";Object.defineProperty(oc.prototype,"invalidCallback",{get:function(){return ecJ},
set:function(x){ecJ=x}});var yl=new oc,MqZ=function(){this.customStyleInterface=null;yl.invalidCallback=fkD},lF=function(x){!x.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(x.customStyleInterface=window.ShadyCSS.CustomStyleInterface,x.customStyleInterface.transformCallback=function(G){yl.transformCustomStyle(G)},x.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){x.customStyleInterface.enqueued&&x.flushCustomStyles()})})};
_.a=MqZ.prototype;_.a.prepareTemplate=function(x,G){lF(this);ztO(x)===""&&(JjC[G]=x,G=yl.transformTemplate(x,G),x._styleAst=G)};
_.a.flushCustomStyles=function(){lF(this);if(this.customStyleInterface){var x=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var G=0;G<x.length;G++){var D=this.customStyleInterface.getStyleForCustomStyle(x[G]);D&&yl.transformCustomStyle(D)}this.customStyleInterface.enqueued=!1}}};
_.a.styleSubtree=function(x,G){lF(this);G&&sOP(x,G);if(x.shadowRoot)for(this.styleElement(x),x=x.shadowRoot.children||x.shadowRoot.childNodes,G=0;G<x.length;G++)this.styleSubtree(x[G]);else for(x=x.children||x.childNodes,G=0;G<x.length;G++)this.styleSubtree(x[G])};
_.a.styleElement=function(x){lF(this);var G=x.localName,D;G?G.indexOf("-")>-1?D=G:D=x.getAttribute&&x.getAttribute("is")||"":D=x.is;G=JjC[D];if(!(G&&ztO(G)!==""||!G||t8h(G))){if(t8h(G)||G._applyShimValidatingVersion!==G._applyShimNextVersion)this.prepareTemplate(G,D),PQn(G);if(x=x.shadowRoot)if(x=x.querySelector("style"))x.__cssRules=G._styleAst,x.textContent=h_O(G._styleAst)}};
_.a.styleDocument=function(x){lF(this);this.styleSubtree(document.body,x)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var ce=new MqZ,QZi=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(x,G){ce.flushCustomStyles();ce.prepareTemplate(x,G)},
prepareTemplateStyles:function(x,G,D){window.ShadyCSS.prepareTemplate(x,G,D)},
prepareTemplateDom:function(){},
styleSubtree:function(x,G){ce.flushCustomStyles();ce.styleSubtree(x,G)},
styleElement:function(x){ce.flushCustomStyles();ce.styleElement(x)},
styleDocument:function(x){ce.flushCustomStyles();ce.styleDocument(x)},
getComputedStyleValue:function(x,G){return Yg3(x,G)},
flushCustomStyles:function(){ce.flushCustomStyles()},
nativeCss:E5f,nativeShadow:IwO,cssBuild:qq,disableRuntime:Oos};QZi&&(window.ShadyCSS.CustomStyleInterface=QZi)}window.ShadyCSS.ApplyShim=yl;var pyu;pyu=window.ShadyCSS;_.TI=iG(function(x){x=gB9(dU(x));var G=B18?x:auZ(x),D=omZ(G),K={x:"pan-x",y:"pan-y",none:"none",all:"auto"};x=function(){return G.call(this)||this};
_.m(x,G);x.prototype.created=function(){};
x.prototype.__attributeReaction=function(z,y,c){(this.__dataAttributes&&this.__dataAttributes[z]||z==="disable-upgrade")&&this.attributeChangedCallback(z,y,c,null)};
x.prototype.setAttribute=function(z,y){if(fgs&&!this._legacyForceObservedAttributes){var c=this.getAttribute(z);G.prototype.setAttribute.call(this,z,y);this.__attributeReaction(z,c,String(y))}else G.prototype.setAttribute.call(this,z,y)};
x.prototype.removeAttribute=function(z){if(fgs&&!this._legacyForceObservedAttributes){var y=this.getAttribute(z);G.prototype.removeAttribute.call(this,z);this.__attributeReaction(z,y,null)}else G.prototype.removeAttribute.call(this,z)};
x.prototype._enableProperties=function(){this.__isUpgradeDisabled||G.prototype._enableProperties.call(this)};
x.prototype._canApplyPropertyDefault=function(z){return G.prototype._canApplyPropertyDefault.call(this,z)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(z))};
x.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(G.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
x.prototype.attached=function(){};
x.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(G.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
x.prototype.detached=function(){};
x.prototype.attributeChangedCallback=function(z,y,c,W){y!==c&&(z=="disable-upgrade"?this.__isUpgradeDisabled&&c==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.ZP)(this).isConnected&&this.connectedCallback()):(G.prototype.attributeChangedCallback.call(this,z,y,c,W),this.attributeChanged(z,y,c)))};
x.prototype.attributeChanged=function(){};
x.prototype._initializeProperties=function(){if(jS&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var z=Object.getPrototypeOf(this);z.hasOwnProperty("__hasRegisterFinished")||(this._registered(),z.__hasRegisterFinished=!0);G.prototype._initializeProperties.call(this);this.root=this;this.created();fgs&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
x.prototype._takeAttributes=function(){for(var z=this.attributes,y=0,c=z.length;y<c;y++){var W=z[y];this.__attributeReaction(W.name,null,W.value)}};
x.prototype._registered=function(){};
x.prototype.ready=function(){this._ensureAttributes();G.prototype.ready.call(this)};
x.prototype._ensureAttributes=function(){};
x.prototype._applyListeners=function(){};
x.prototype.serialize=function(z){return this._serializeValue(z)};
x.prototype.deserialize=function(z,y){return this._deserializeValue(z,y)};
x.prototype.reflectPropertyToAttribute=function(z,y,c){this._propertyToAttribute(z,y,c)};
x.prototype.serializeValueToAttribute=function(z,y,c){this._valueToNodeAttribute(c||this,z,y)};
x.prototype.extend=function(z,y){if(!z||!y)return z||y;for(var c=Object.getOwnPropertyNames(y),W=0,e=void 0;W<c.length&&(e=c[W]);W++){var Q=Object.getOwnPropertyDescriptor(y,e);Q&&Object.defineProperty(z,e,Q)}return z};
x.prototype.mixin=function(z,y){for(var c in y)z[c]=y[c];return z};
x.prototype.chainObject=function(z,y){z&&y&&z!==y&&(z.__proto__=y);return z};
x.prototype.instanceTemplate=function(z){z=this.constructor._contentForTemplate(z);return document.importNode(z,!0)};
x.prototype.fire=function(z,y,c){c=c||{};y=y===null||y===void 0?{}:y;z=new Event(z,{bubbles:c.bubbles===void 0?!0:c.bubbles,cancelable:!!c.cancelable,composed:c.composed===void 0?!0:c.composed});z.detail=y;(0,_.ZP)(c.node||this).dispatchEvent(z);return z};
x.prototype.listen=function(z,y,c){z=z||this;var W=this.__boundListeners||(this.__boundListeners=new WeakMap),e=W.get(z);e||(e={},W.set(z,e));W=y+c;e[W]||(e[W]=this._addMethodEventListenerToNode(z,y,c,this))};
x.prototype.unlisten=function(z,y,c){z=z||this;var W=this.__boundListeners&&this.__boundListeners.get(z);c=y+c;var e=W&&W[c];e&&(this._removeEventListenerFromNode(z,y,e),W[c]=null)};
x.prototype.setScrollDirection=function(z,y){_.FK(y||this,K[z]||"auto")};
x.prototype.$$=function(z){return this.root.querySelector(z)};
x.prototype.distributeContent=function(){var z=_.By(this);window.ShadyDOM&&z.shadowRoot&&ShadyDOM.flush()};
x.prototype.getEffectiveChildNodes=function(){return _.By(this).getEffectiveChildNodes()};
x.prototype.queryDistributedElements=function(z){return _.By(this).queryDistributedElements(z)};
x.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(z){return z.nodeType===Node.ELEMENT_NODE})};
x.prototype.getEffectiveTextContent=function(){for(var z=this.getEffectiveChildNodes(),y=[],c=0,W;W=z[c];c++)W.nodeType!==Node.COMMENT_NODE&&y.push(W.textContent);return y.join("")};
x.prototype.queryEffectiveChildren=function(z){return(z=this.queryDistributedElements(z))&&z[0]};
x.prototype.queryAllEffectiveChildren=function(z){return this.queryDistributedElements(z)};
x.prototype.getContentChildNodes=function(z){return(z=this.root.querySelector(z||"slot"))?_.By(z).getDistributedNodes():[]};
x.prototype.getContentChildren=function(z){return this.getContentChildNodes(z).filter(function(y){return y.nodeType===Node.ELEMENT_NODE})};
x.prototype.isLightDescendant=function(z){return this!==z&&(0,_.ZP)(this).contains(z)&&(0,_.ZP)(this).getRootNode()===(0,_.ZP)(z).getRootNode()};
x.prototype.isLocalDescendant=function(z){return this.root===(0,_.ZP)(z).getRootNode()};
x.prototype.scopeSubtree=function(z,y){return Xbh(z,y===void 0?!1:y)};
x.prototype.getComputedStyleValue=function(z){return pyu.getComputedStyleValue(this,z)};
x.prototype.debounce=function(z,y,c){this._debouncers=this._debouncers||{};return this._debouncers[z]=_.kG(this._debouncers[z],c>0?_.ny.after(c):Co,y.bind(this))};
x.prototype.isDebouncerActive=function(z){this._debouncers=this._debouncers||{};z=this._debouncers[z];return!(!z||!z.isActive())};
x.prototype.flushDebouncer=function(z){this._debouncers=this._debouncers||{};(z=this._debouncers[z])&&z.flush()};
x.prototype.cancelDebouncer=function(z){this._debouncers=this._debouncers||{};(z=this._debouncers[z])&&z.cancel()};
x.prototype.async=function(z,y){return y>0?_.ny.run(z.bind(this),y):~Co.run(z.bind(this))};
x.prototype.cancelAsync=function(z){z<0?Co.cancel(~z):_.ny.cancel(z)};
x.prototype.create=function(z,y){z=document.createElement(z);if(y)if(z.setProperties)z.setProperties(y);else for(var c in y)z[c]=y[c];return z};
x.prototype.elementMatches=function(z,y){return kRh(y||this,z)};
x.prototype.toggleAttribute=function(z,y){var c=this;arguments.length===3&&(c=arguments[2]);arguments.length==1&&(y=!c.hasAttribute(z));if(y)return(0,_.ZP)(c).setAttribute(z,""),!0;(0,_.ZP)(c).removeAttribute(z);return!1};
x.prototype.toggleClass=function(z,y,c){c=c||this;arguments.length==1&&(y=!c.classList.contains(z));y?c.classList.add(z):c.classList.remove(z)};
x.prototype.transform=function(z,y){y=y||this;y.style.webkitTransform=z;y.style.transform=z};
x.prototype.translate3d=function(z,y,c,W){this.transform("translate3d("+z+","+y+","+c+")",W||this)};
x.prototype.arrayDelete=function(z,y){if(Array.isArray(z)){if(y=z.indexOf(y),y>=0)return z.splice(y,1)}else if(y=TR(this,z).indexOf(y),y>=0)return this.splice(z,y,1);return null};
x.prototype._logger=function(z,y){Array.isArray(y)&&y.length===1&&Array.isArray(y[0])&&(y=y[0]);switch(z){case "log":case "warn":case "error":console[z].apply(console,_.B5(y))}};
x.prototype._log=function(){this._logger("log",_.rC.apply(0,arguments))};
x.prototype._warn=function(){this._logger("warn",_.rC.apply(0,arguments))};
x.prototype._error=function(){this._logger("error",_.rC.apply(0,arguments))};
x.prototype._logf=function(z){return["[%s::%s]",this.is,z].concat(_.B5(_.rC.apply(1,arguments)))};
_.Nq.Object.defineProperties(x.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var z=(0,_.ZP)(this).getRootNode();return z instanceof DocumentFragment?z.host:z}}});
_.Nq.Object.defineProperties(x,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return fgs&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],jl$(this.prototype)),this.__observedAttributes):D.call(this).concat("disable-upgrade")}}});
x.prototype.is="";return x});Polymer.FlattenedNodesObserver=JUZ;Polymer.DomApi=xpE;Polymer.EventApi=zI;Polymer.dom=_.By;Polymer.dom.matchesSelector=kRh;Polymer.dom.flush=_.GI;Polymer.dom.addDebouncer=_.PR;Polymer.DirMixin=auZ;Polymer.RenderStatus={beforeNextRender:_.IkC,afterNextRender:_.w1,flush:function(){for(;$Xf.length||d1.length;)H1V($Xf),H1V(d1);ug=!1}};Polymer.LegacyElementMixin=_.TI;var VqZ;VqZ=hD._mutablePropertyChange;var bC0={properties:{mutableData:Boolean},_shouldPropertyChange:function(x,G,D){return VqZ(this,x,G,D,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(x,G,D){return VqZ(this,x,G,D,!0)}};
Polymer.OptionalMutableDataBehavior=bC0;var aUP={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},TvO={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},cRd=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},TvO),LbE=(0,_.TI)(HTMLElement),ddE=function(x,G){x||console.warn("Polymer.Class requires `info` argument");G=G?G(LbE):LbE;G=WJE(x,G,x.behaviors);G.is=G.prototype.is=
x.is;return G};Polymer.Class=ddE;Polymer.mixinBehaviors=function(x,G){return WJE({},(0,_.TI)(G),x)};
Polymer.GenerateClassFromInfo=WJE;_.BD=function(x){var G=typeof x==="function"?x:_.BD.Class(x);x._legacyForceObservedAttributes&&(G.prototype._legacyForceObservedAttributes=x._legacyForceObservedAttributes);customElements.define(G.is,G);return G};
_.BD.Class=ddE;Polymer._polymerFn=_.BD;var B5h=window.onLegacyPolymerFunctionDefinedCallback;B5h&&B5h();var qJC={templatize:function(x,G){this._templatizerTemplate=x;this.ctor=AU(x,this,{mutableData:!!G,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(x){return new this.ctor(x)},
modelForElement:function(x){return Bjf(this._templatizerTemplate,x)}};Polymer.Templatizer=qJC;_.We=(0,_.TI)(HTMLElement).prototype;Polymer.Base=_.We;var Z63=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.vm=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.m(_.vm,PolymerFakeBaseClass);var JU=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.m(JU,PolymerFakeBaseClass);var MJL=Symbol("Ld"),Y$V=[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 r$q=r$q||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},sZq;(function(x){function G(v,P,k){var cL=f.get(v);if(!cL){if(!k)return;cL=new g;f.set(v,cL)}v=cL.get(P);if(!v){if(!k)return;v=new g;cL.set(P,v)}return v}
function D(v,P,k){if(K(v,P,k))return!0;P=L(P);return P!==null?D(v,P,k):!1}
function K(v,P,k){P=G(P,k,!1);return P===void 0?!1:!!P.has(v)}
function z(v,P,k){if(K(v,P,k))return y(v,P,k);P=L(P);if(P!==null)return z(v,P,k)}
function y(v,P,k){P=G(P,k,!1);if(P!==void 0)return P.get(v)}
function c(v,P){var k=W(v,P);v=L(v);if(v===null)return k;var cL=c(v,P);if(cL.length<=0)return k;if(k.length<=0)return cL;P=new u;v=[];k=_.l(k);for(var bO=k.next();!bO.done;bO=k.next())bO=bO.value,P.has(bO)||(P.add(bO),v.push(bO));k=_.l(cL);for(cL=k.next();!cL.done;cL=k.next())cL=cL.value,P.has(cL)||(P.add(cL),v.push(cL));return v}
function W(v,P){v=G(v,P,!1);var k=[];v&&v.forEach(function(cL,bO){return k.push(bO)});
return k}
function e(v){return v===void 0}
function Q(v){return typeof v==="object"?v!==null:typeof v==="function"}
function p(v){return typeof v==="function"}
function V(v){return typeof v==="symbol"?v:String(v)}
function L(v){var P=Object.getPrototypeOf(v);if(typeof v!=="function"||v===A||P!==A)return P;var k=Object.getPrototypeOf(v.prototype);if(k==null||k===Object.prototype)return P;k=k.constructor;return typeof k!=="function"||k===v?P:k}
function r(){function v(){this._keys=[];this._values=[];this._cache=P}
var P={};v.prototype={get size(){return this._keys.length},has:function(k){return k===this._cache?!0:this._find(k)>=0?(this._cache=k,!0):!1},
get:function(k){var cL=this._find(k);if(cL>=0)return this._cache=k,this._values[cL]},
set:function(k,cL){this.delete(k);this._keys.push(k);this._values.push(cL);this._cache=k;return this},
delete:function(k){k=this._find(k);return k>=0?(this._keys.splice(k,1),this._values.splice(k,1),this._cache=P,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=P},
forEach:function(k){for(var cL=this.size,bO=0;bO<cL;++bO){var mE=this._keys[bO],jf=this._values[bO];this._cache=mE;k.call(this,jf,mE,this)}},
_find:function(k){for(var cL=this._keys,bO=cL.length,mE=0;mE<bO;++mE)if(cL[mE]===k)return mE;return-1}};
return v}
function H(){function v(){this._map=new g}
v.prototype={get size(){return this._map.length},has:function(P){return this._map.has(P)},
add:function(P){this._map.set(P,P);return this},
delete:function(P){return this._map.delete(P)},
clear:function(){this._map.clear()},
forEach:function(P,k){this._map.forEach(P,k)}};
return v}
function O(){function v(){this._key=k()}
function P(OD,wn){for(var n$=0;n$<wn;++n$)OD[n$]=Math.random()*255|0}
function k(){do{if(bO)var OD=bO.randomBytes(16);else typeof Uint8Array==="function"?(OD=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(OD):P(OD,16)):(OD=Array(16),P(OD,16));OD[6]=OD[6]&79|64;OD[8]=OD[8]&191|128;for(var wn="",n$=0;n$<16;++n$){var Fi=OD[n$];if(n$===4||n$===6||n$===8)wn+="-";Fi<16&&(wn+="0");wn+=Fi.toString(16).toLowerCase()}OD="@@WeakMap@@"+wn}while(mE.call(jf,OD));jf[OD]=!0;return OD}
function cL(OD,wn){if(!mE.call(OD,$C)){if(!wn)return;Object.defineProperty(OD,$C,{value:Object.create(null)})}return OD[$C]}
var bO=typeof global!=="undefined"&&typeof r$q==="object"&&typeof require==="function"&&require("crypto"),mE=Object.prototype.hasOwnProperty,jf={},$C=k();v.prototype={has:function(OD){return(OD=cL(OD,!1))?this._key in OD:!1},
get:function(OD){if(OD=cL(OD,!1))return OD[this._key]},
set:function(OD,wn){cL(OD,!0)[this._key]=wn;return this},
delete:function(OD){return(OD=cL(OD,!1))&&this._key in OD?delete OD[this._key]:!1},
clear:function(){this._key=k()}};
return v}
var A=Object.getPrototypeOf(Function),g=typeof Map==="function"?Map:r(),u=typeof Set==="function"?Set:H(),f=new (typeof WeakMap==="function"?WeakMap:O());x.decorate=function(v,P,k,cL){if(e(cL)){if(e(k)){if(!Array.isArray(v))throw new TypeError;if(!p(P))throw new TypeError;for(k=v.length-1;k>=0;--k)if(cL=(0,v[k])(P),!e(cL)){if(!p(cL))throw new TypeError;P=cL}return P}if(!Array.isArray(v))throw new TypeError;if(!Q(P))throw new TypeError;k=V(k);for(cL=v.length-1;cL>=0;--cL)(0,v[cL])(P,k)}else{if(Array.isArray(v))if(Q(P)){if(e(k))throw new TypeError;
if(!Q(cL))throw new TypeError;}else throw new TypeError;else throw new TypeError;k=V(k);for(var bO=v.length-1;bO>=0;--bO){var mE=(0,v[bO])(P,k,cL);if(!e(mE)){if(!Q(mE))throw new TypeError;cL=mE}}return cL}};
x.metadata=function(v,P){return function(k,cL){if(e(cL)){if(!p(k))throw new TypeError;G(k,void 0,!0).set(v,P)}else{if(!Q(k))throw new TypeError;cL=V(cL);G(k,cL,!0).set(v,P)}}};
x.defineMetadata=function(v,P){var k;if(Q(P))e(k)||(k=V(k));else throw new TypeError;G(P,k,!0).set("parameters",v)};
x.hasMetadata=function(v,P,k){if(Q(P))e(k)||(k=V(k));else throw new TypeError;return D(v,P,k)};
x.hasOwnMetadata=function(v,P,k){if(Q(P))e(k)||(k=V(k));else throw new TypeError;return K(v,P,k)};
x.getMetadata=function(v,P,k){if(Q(P))e(k)||(k=V(k));else throw new TypeError;return z(v,P,k)};
x.getOwnMetadata=function(v,P,k){if(Q(P))e(k)||(k=V(k));else throw new TypeError;return y(v,P,k)};
x.getMetadataKeys=function(v,P){if(Q(v))e(P)||(P=V(P));else throw new TypeError;return c(v,P)};
x.getOwnMetadataKeys=function(v,P){if(Q(v))e(P)||(P=V(P));else throw new TypeError;return W(v,P)};
x.deleteMetadata=function(v,P,k){if(Q(P))e(k)||(k=V(k));else throw new TypeError;var cL=G(P,k,!1);if(!e(cL)){if(!cL.delete(v))return!1;if(cL.size>0)return!0;v=f.get(P);v.delete(k);if(v.size>0)return!0;f.delete(P);return!0}};
(function(v){if(typeof v.Reflect!=="undefined"){if(v.Reflect!==x)for(var P in x)v.Reflect[P]=x[P]}else v.Reflect=x})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(sZq||(sZq={}));var $CQ=self;var Yfk=[0,_.Uk,_.nr,_.Uk];var mpJ=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(mpJ,_.SX);var HC8=_.Pd(mpJ,[0,_.HDh,_.ir,Yfk,_.nr,_.ur]);_.tR(_.fo,_.Ya);_.a=_.fo.prototype;_.a.start=function(){this.stop();this.usingListeners_=!1;var x=$pq(this),G=Fb7(this);x&&!G&&this.JSC$9217_win_.mozRequestAnimationFrame?(this.JSC$9217_id_=_.Lz(this.JSC$9217_win_,"MozBeforePaint",this.callback_),this.JSC$9217_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9217_id_=x&&G?x.call(this.JSC$9217_win_,this.callback_):this.JSC$9217_win_.setTimeout(Ocd(this.callback_),20)};
_.a.stop=function(){if(this.isActive()){var x=$pq(this),G=Fb7(this);x&&!G&&this.JSC$9217_win_.mozRequestAnimationFrame?pz(this.JSC$9217_id_):x&&G?G.call(this.JSC$9217_win_,this.JSC$9217_id_):this.JSC$9217_win_.clearTimeout(this.JSC$9217_id_)}this.JSC$9217_id_=null};
_.a.fire=function(){this.stop();this.JSC$9219_doAction_()};
_.a.isActive=function(){return this.JSC$9217_id_!=null};
_.a.JSC$9219_doAction_=function(){this.usingListeners_&&this.JSC$9217_id_&&pz(this.JSC$9217_id_);this.JSC$9217_id_=null;this.JSC$9217_listener_.call(this.handler_,_.f6())};
_.a.disposeInternal=function(){this.stop();_.fo.superClass_.disposeInternal.call(this)};
var $pq=function(x){x=x.JSC$9217_win_;return x.requestAnimationFrame||x.webkitRequestAnimationFrame||x.mozRequestAnimationFrame||x.oRequestAnimationFrame||x.msRequestAnimationFrame||null},Fb7=function(x){x=x.JSC$9217_win_;
return x.cancelAnimationFrame||x.cancelRequestAnimationFrame||x.webkitCancelRequestAnimationFrame||x.mozCancelRequestAnimationFrame||x.oCancelRequestAnimationFrame||x.msCancelRequestAnimationFrame||null};_.Jc=function(x,G,D){_.Ya.call(this);this.JSC$9220_listener_=D!=null?x.bind(D):x;this.JSC$9220_interval_=G;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9220_timer_=null};
_.m(_.Jc,_.Ya);_.a=_.Jc.prototype;_.a.fire=function(x){this.args_=arguments;this.JSC$9220_timer_||this.pauseCount_?this.shouldFire_=!0:CxZ(this)};
_.a.stop=function(){this.JSC$9220_timer_&&(_.Df.clearTimeout(this.JSC$9220_timer_),this.JSC$9220_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.a.pause=function(){this.pauseCount_++};
_.a.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9220_timer_||(this.shouldFire_=!1,CxZ(this))};
_.a.disposeInternal=function(){_.Ya.prototype.disposeInternal.call(this);this.stop()};
var CxZ=function(x){x.JSC$9220_timer_=QZ(function(){x.JSC$9220_timer_=null;x.shouldFire_&&!x.pauseCount_&&(x.shouldFire_=!1,CxZ(x))},x.JSC$9220_interval_);
var G=x.args_;x.args_=null;x.JSC$9220_listener_.apply(null,G)};var Ius=function(x,G){this.childIterator_=x[_.Df.Symbol.iterator]();this.mapFn_=G};
Ius.prototype[Symbol.iterator]=function(){return this};
Ius.prototype.next=function(){var x=this.childIterator_.next();return{value:x.done?void 0:this.mapFn_.call(void 0,x.value),done:x.done}};
var jZJ=function(x,G){return new Ius(x,G)};var OCZ={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 DnP=function(x){var G=XyZ(x);if(!G)throw Error("Pd`"+x);return G},XyZ=function(x){var G={};
x=String(x);var D=x.charAt(0)=="#"?x:"#"+x;if(A$0.test(D))return G.hex=kDL(D),G.type="hex",G;D=oXh(x);return D.length?(G.hex=qCn(D[0],D[1],D[2]),G.type="rgb",G):OCZ&&(x=OCZ[x.toLowerCase()])?(G.hex=x,G.type="named",G):null},Ups=/#(.)(.)(.)/,kDL=function(x){if(!A$0.test(x))throw Error("Rd`"+x);
x.length==4&&(x=x.replace(Ups,"#$1$1$2$2$3$3"));return x.toLowerCase()},KBP=function(x){x=kDL(x);
x=parseInt(x.slice(1),16);return[x>>16,x>>8&255,x&255]},qCn=function(x,G,D){x=Number(x);
G=Number(G);D=Number(D);if(x!=(x&255)||G!=(G&255)||D!=(D&255))throw Error("Sd`"+x+"`"+G+"`"+D);G=x<<16|G<<8|D;return x<16?"#"+(16777216|G).toString(16).slice(1):"#"+G.toString(16)},A$0=/^#(?:[0-9a-f]{3}){1,2}$/i,Rck=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,oXh=function(x){var G=x.match(Rck);
if(G){x=Number(G[1]);var D=Number(G[2]);G=Number(G[3]);if(x>=0&&x<=255&&D>=0&&D<=255&&G>=0&&G<=255)return[x,D,G]}return[]};var SfJ={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},bQ=SfJ;bQ=SfJ;var YZf,nmi,iC9;YZf=function(x,G){switch(G){case 1:return x%4!=0||x%100==0&&x%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
nmi=function(x,G,D,K,z){x=new Date(x,G,D);z=z||0;return x.valueOf()+(((K!==void 0?K:3)-z+7)%7-((x.getDay()+6)%7-z+7)%7)*864E5};
_.ej=function(x,G,D){typeof x==="number"?(this.date=iC9(x,G||0,D||1),gm8(this,D||1)):_.G7(x)?(this.date=iC9(x.getFullYear(),x.getMonth(),x.getDate()),gm8(this,x.getDate())):(this.date=new Date(_.f6()),x=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),gm8(this,x))};
iC9=function(x,G,D){G=new Date(x,G,D);x>=0&&x<100&&G.setFullYear(G.getFullYear()-1900);return G};
_.a=_.ej.prototype;_.a.firstDayOfWeek_=bQ.FIRSTDAYOFWEEK;_.a.firstWeekCutOffDay_=bQ.FIRSTWEEKCUTOFFDAY;_.a.clone=function(){var x=new _.ej(this.date);x.firstDayOfWeek_=this.firstDayOfWeek_;x.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return x};
_.a.getFullYear=function(){return this.date.getFullYear()};
_.a.getYear=function(){return this.getFullYear()};
_.a.getMonth=function(){return this.date.getMonth()};
_.a.getDate=function(){return this.date.getDate()};
_.a.getTime=function(){return this.date.getTime()};
_.a.getDay=function(){return this.date.getDay()};
_.a.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.a.getUTCMonth=function(){return this.date.getUTCMonth()};
_.a.getUTCDate=function(){return this.date.getUTCDate()};
_.a.getUTCDay=function(){return this.date.getDay()};
_.a.getUTCHours=function(){return this.date.getUTCHours()};
_.a.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.a.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.a.set=function(x){this.date=new Date(x.getFullYear(),x.getMonth(),x.getDate())};
_.a.setFullYear=function(x){this.date.setFullYear(x)};
_.a.setYear=function(x){this.setFullYear(x)};
_.a.setMonth=function(x){this.date.setMonth(x)};
_.a.setDate=function(x){this.date.setDate(x)};
_.a.setTime=function(x){this.date.setTime(x)};
_.a.setUTCFullYear=function(x){this.date.setUTCFullYear(x)};
_.a.setUTCMonth=function(x){this.date.setUTCMonth(x)};
_.a.setUTCDate=function(x){this.date.setUTCDate(x)};
_.a.add=function(x){if(x.years||x.months){var G=this.getMonth()+x.months+x.years*12,D=this.getYear()+Math.floor(G/12);G%=12;G<0&&(G+=12);var K=Math.min(YZf(D,G),this.getDate());this.setDate(1);this.setFullYear(D);this.setMonth(G);this.setDate(K)}x.days&&(D=this.getYear(),G=D>=0&&D<=99?-1900:0,x=new Date((new Date(D,this.getMonth(),this.getDate(),12)).getTime()+x.days*864E5),this.setDate(1),this.setFullYear(x.getFullYear()+G),this.setMonth(x.getMonth()),this.setDate(x.getDate()),gm8(this,x.getDate()))};
_.a.JSC$9233_toIsoString=function(x){var G=this.getFullYear(),D=G<0?"-":G>=1E4?"+":"";return[D+_.Je(Math.abs(G),D?6:4),_.Je(this.getMonth()+1,2),_.Je(this.getDate(),2)].join(x?"-":"")};
_.a.equals=function(x){return!(!x||this.getYear()!=x.getYear()||this.getMonth()!=x.getMonth()||this.getDate()!=x.getDate())};
_.a.toString=function(){return this.JSC$9233_toIsoString()};
var gm8=function(x,G){x.getDate()!=G&&x.date.setUTCHours(x.date.getUTCHours()+(x.getDate()<G?1:-1))};
_.ej.prototype.valueOf=function(){return this.date.valueOf()};var MM=function(x,G,D,K,z){this.reversed=!!G;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!D;x&&ZK(this,x,K);this.depth=z!=void 0?z:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.tR(MM,tx);var ZK=function(x,G,D,K){if(x.node=G)x.tagType=typeof D==="number"?D:x.node.nodeType!=1?0:x.reversed?-1:1;typeof K==="number"&&(x.depth=K)};
_.a=MM.prototype;_.a.JSC$9248_copyFrom=function(x){this.node=x.node;this.tagType=x.tagType;this.depth=x.depth;this.reversed=x.reversed;this.constrained=x.constrained};
_.a.clone=function(){return new MM(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.a.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return kJ;var x=this.node;var G=this.reversed?-1:1;if(this.tagType==G){var D=this.reversed?x.lastChild:x.firstChild;D?ZK(this,D):ZK(this,x,G*-1)}else(D=this.reversed?x.previousSibling:x.nextSibling)?ZK(this,D):ZK(this,x.parentNode,G*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(x=this.node)?P$(x):kJ};
_.a.equals=function(x){return x.node==this.node&&(!this.node||x.tagType==this.tagType)};
_.a.splice=function(x){var G=this.node,D=this.reversed?1:-1;this.tagType==D&&(this.tagType=D*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;MM.prototype.next.call(this);this.reversed=!this.reversed;D=_.PL(arguments[0])?arguments[0]:arguments;for(var K=D.length-1;K>=0;K--)_.rg(D[K],G);_.VF(G)};var uxs=function(){},Ql=function(x){for(var G=[],D=x.getTextRangeCount(),K=0;K<D;K++)G.push(x.getTextRange(K));
return G};
uxs.prototype.isReversed=function(){return!1};
uxs.prototype.getWindow=function(){return Fn(_.C2(this.JSC$9250_getStartNode()))};
var dpJ=function(x,G){MM.call(this,x,G,!0)};
_.tR(dpJ,MM);var pZ=function(x,G,D,K,z){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!z;if(x){this.startNode_=x;this.startOffset_=G;this.endNode_=D;this.endOffset_=K;if(x.nodeType==1&&x.tagName!="BR")if(x=x.childNodes,G=x[G])this.startNode_=G,this.startOffset_=0;else{x.length&&(this.startNode_=_.RV(x));var y=!0}D.nodeType==1&&((this.endNode_=D.childNodes[K])?this.endOffset_=0:this.endNode_=D)}MM.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);y&&this.next()};
_.tR(pZ,dpJ);_.a=pZ.prototype;_.a.JSC$9256_getStartNode=function(){return this.startNode_};
_.a.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)};
_.a.next=function(){return this.isLast()?kJ:pZ.superClass_.next.call(this)};
_.a.JSC$9248_copyFrom=function(x){this.startNode_=x.startNode_;this.endNode_=x.endNode_;this.startOffset_=x.startOffset_;this.endOffset_=x.endOffset_;this.isReversed_=x.isReversed_;pZ.superClass_.JSC$9248_copyFrom.call(this,x)};
_.a.clone=function(){var x=new pZ(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);x.JSC$9248_copyFrom(this);return x};var wyi=function(){};
wyi.prototype.__iterator__=function(){return new pZ(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Vl=function(x){this.range_=x};
_.tR(Vl,wyi);var qfh=function(x){var G=_.C2(x).createRange();if(x.nodeType==3)G.setStart(x,0),G.setEnd(x,x.length);else if(bd(x)||x.nodeType==3){for(var D,K=x;(D=K.firstChild)&&(bd(D)||D.nodeType==3);)K=D;G.setStart(K,0);for(K=x;(D=K.lastChild)&&(bd(D)||D.nodeType==3);)K=D;G.setEnd(K,K.nodeType==1?K.childNodes.length:K.length)}else D=x.parentNode,x=Array.prototype.indexOf.call(D.childNodes,x),G.setStart(D,x),G.setEnd(D,x+1);return G},N5s=function(x,G,D,K){var z=_.C2(x).createRange();
z.setStart(x,G);z.setEnd(D,K);return z};
_.a=Vl.prototype;_.a.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.a.getContainer=function(){return this.range_.commonAncestorContainer};
_.a.compareBrowserRangeEndpoints=function(x,G,D){return this.range_.compareBoundaryPoints(D==1?G==1?_.Df.Range.START_TO_START:_.Df.Range.START_TO_END:G==1?_.Df.Range.END_TO_START:_.Df.Range.END_TO_END,x)};
_.a.isCollapsed=function(){return this.range_.collapsed};
_.a.select=function(x){this.selectInternal(Fn(_.C2(this.range_.startContainer)).getSelection(),x)};
_.a.selectInternal=function(x){x.removeAllRanges();x.addRange(this.range_)};
_.a.insertNode=function(x,G){var D=this.range_.cloneRange();D.collapse(G);D.insertNode(x);D.detach();return x};
_.a.collapse=function(x){this.range_.collapse(x)};_.tR(tU,Vl);tU.prototype.selectInternal=function(x,G){!G||this.isCollapsed()?tU.superClass_.selectInternal.call(this,x,G):(x.collapse(this.range_.endContainer,this.range_.endOffset),x.extend(this.range_.startContainer,this.range_.startOffset))};_.tR(kB,Vl);kB.prototype.compareBrowserRangeEndpoints=function(x,G,D){return kB.superClass_.compareBrowserRangeEndpoints.call(this,x,G,D)};
kB.prototype.selectInternal=function(x,G){G?x.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):x.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var vmk=function(x){return _.xp?new kB(x):_.hR?new tU(x):new Vl(x)};var bF=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},J$Z;
_.tR(bF,uxs);J$Z=function(x,G){var D=new bF;D.browserRangeWrapper_=x;D.isReversed_=!!G;return D};
_.fu8=function(x){x=_.xp?new kB(qfh(x)):_.hR?new tU(qfh(x)):new Vl(qfh(x));return J$Z(x)};
_.LZ=function(x,G,D,K){var z=new bF;z.isReversed_=tqu(x,G,D,K);if(_.fU(x)&&!bd(x)){var y=x.parentNode;G=Array.prototype.indexOf.call(y.childNodes,x);x=y}_.fU(D)&&!bd(D)&&(y=D.parentNode,K=Array.prototype.indexOf.call(y.childNodes,D),D=y);z.isReversed_?(z.startNode_=D,z.startOffset_=K,z.endNode_=x,z.endOffset_=G):(z.startNode_=x,z.startOffset_=G,z.endNode_=D,z.endOffset_=K);return z};
_.a=bF.prototype;_.a.clone=function(){var x=new bF;x.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();x.startNode_=this.startNode_;x.startOffset_=this.startOffset_;x.endNode_=this.endNode_;x.endOffset_=this.endOffset_;x.isReversed_=this.isReversed_;return x};
_.a.JSC$9250_getType=function(){return"text"};
_.a.getBrowserRangeObject=function(){return Be(this).range_};
_.a.getTextRangeCount=function(){return 1};
_.a.getTextRange=function(){return this};
var Be=function(x){var G;if(!(G=x.browserRangeWrapper_)){G=x.JSC$9250_getStartNode();var D=x.JSC$9250_getStartOffset(),K=x.JSC$9250_getEndNode(),z=x.JSC$9250_getEndOffset();G=_.xp?new kB(N5s(G,D,K,z)):_.hR?new tU(N5s(G,D,K,z)):new Vl(N5s(G,D,K,z));G=x.browserRangeWrapper_=G}return G};
_.a=bF.prototype;_.a.getContainer=function(){return Be(this).getContainer()};
_.a.JSC$9250_getStartNode=function(){return this.startNode_||(this.startNode_=Be(this).range_.startContainer)};
_.a.JSC$9250_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=Be(this).range_.startOffset};
_.a.JSC$9250_getEndNode=function(){return this.endNode_||(this.endNode_=Be(this).range_.endContainer)};
_.a.JSC$9250_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=Be(this).range_.endOffset};
_.a.isReversed=function(){return this.isReversed_};
_.a.JSC$9250_containsRange=function(x,G){if(x.JSC$9250_getType()=="text"){var D=Be(this);x=Be(x);G=G&&!x.isCollapsed();x=x.range_;D=G?D.compareBrowserRangeEndpoints(x,0,1)>=0&&D.compareBrowserRangeEndpoints(x,1,0)<=0:D.compareBrowserRangeEndpoints(x,0,0)>=0&&D.compareBrowserRangeEndpoints(x,1,1)<=0}else D=!1;return D};
_.a.isCollapsed=function(){return Be(this).isCollapsed()};
_.a.JSC$9250_getText=function(){return Be(this).range_.toString()};
_.a.__iterator__=function(){return new pZ(this.JSC$9250_getStartNode(),this.JSC$9250_getStartOffset(),this.JSC$9250_getEndNode(),this.JSC$9250_getEndOffset())};
_.a.select=function(){Be(this).select(this.isReversed_)};
_.a.JSC$9250_removeContents=function(){var x=Be(this).range_;x.extractContents();if(x.startContainer.hasChildNodes()&&(x=x.startContainer.childNodes[x.startOffset])){var G=x.previousSibling;IfZ(x)==""&&_.VF(x);G&&IfZ(G)==""&&_.VF(G)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.a.insertNode=function(x,G){x=Be(this).insertNode(x,G);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return x};
_.a.collapse=function(x){x=this.isReversed()?!x:x;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(x);x?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var kyZ=function(){};
_.tR(kyZ,uxs);kyZ.prototype.JSC$9250_containsRange=function(x,G){var D=Ql(this);x=Ql(x);return(G?NO:_.NVf)(x,function(K){return NO(D,function(z){return z.JSC$9250_containsRange(K,G)})})};
kyZ.prototype.insertNode=function(x,G){G?_.B_(x,this.JSC$9250_getStartNode()):_.rg(x,this.JSC$9250_getEndNode());return x};var Pxh,Emq=ei().JSC$7337_document_.documentElement;Pxh=Emq.requestFullscreen?"fullscreenchange":Emq.webkitRequestFullscreen?"webkitfullscreenchange":Emq.mozRequestFullScreen?"mozfullscreenchange":Emq.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var hc7=function(){var x=ei().JSC$7337_document_;return!!(x.webkitIsFullScreen||x.mozFullScreen||x.msFullscreenElement||x.fullscreenElement)};var rr=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.tR(rr,kyZ);_.a=rr.prototype;_.a.clone=function(){var x=new rr;x.browserRanges_=_.kC(this.browserRanges_);return x};
_.a.JSC$9250_getType=function(){return"mutli"};
_.a.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.a.getTextRangeCount=function(){return this.browserRanges_.length};
_.a.getTextRange=function(x){this.ranges_[x]||(this.ranges_[x]=J$Z(vmk(this.browserRanges_[x])));return this.ranges_[x]};
_.a.getContainer=function(){if(!this.container_){for(var x=[],G=this.getTextRangeCount(),D=0;D<G;D++)x.push(this.getTextRange(D).getContainer());this.container_=sVs.apply(null,x)}return this.container_};
var sB=function(x){x.sortedRanges_||(x.sortedRanges_=Ql(x),x.sortedRanges_.sort(function(G,D){var K=G.JSC$9250_getStartNode();G=G.JSC$9250_getStartOffset();var z=D.JSC$9250_getStartNode();D=D.JSC$9250_getStartOffset();return K==z&&G==D?0:tqu(K,G,z,D)?1:-1}));
return x.sortedRanges_};
_.a=rr.prototype;_.a.JSC$9250_getStartNode=function(){return sB(this)[0].JSC$9250_getStartNode()};
_.a.JSC$9250_getStartOffset=function(){return sB(this)[0].JSC$9250_getStartOffset()};
_.a.JSC$9250_getEndNode=function(){return _.RV(sB(this)).JSC$9250_getEndNode()};
_.a.JSC$9250_getEndOffset=function(){return _.RV(sB(this)).JSC$9250_getEndOffset()};
_.a.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.a.JSC$9250_getText=function(){return Ql(this).map(function(x){return x.JSC$9250_getText()}).join("")};
_.a.__iterator__=function(){return new Yy(this)};
_.a.select=function(){var x=this.getWindow().getSelection();x.removeAllRanges();for(var G=this.getTextRangeCount(),D=0;D<G;D++)x.addRange(this.getTextRange(D).getBrowserRangeObject())};
_.a.JSC$9250_removeContents=function(){Ql(this).forEach(function(x){x.JSC$9250_removeContents()})};
_.a.collapse=function(x){if(!this.isCollapsed()){var G=x?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;G.collapse(x);this.ranges_=[G];this.sortedRanges_=[G];this.browserRanges_=[G.getBrowserRangeObject()]}};
var Yy=function(x){this.iterators_=null;this.currentIdx_=0;x&&(this.iterators_=sB(x).map(function(G){return _.p07(G)}));
MM.call(this,x?this.JSC$9256_getStartNode():null,!1,!0)};
_.tR(Yy,dpJ);_.a=Yy.prototype;_.a.JSC$9256_getStartNode=function(){return this.iterators_[0].JSC$9256_getStartNode()};
_.a.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.a.next=function(){for(;this.currentIdx_<this.iterators_.length;){var x=this.iterators_[this.currentIdx_],G=x.next();if(G.done)this.currentIdx_++;else return ZK(this,x.node,x.tagType,x.depth),G}return kJ};
_.a.JSC$9248_copyFrom=function(x){this.iterators_=_.kC(x.iterators_);Yy.superClass_.JSC$9248_copyFrom.call(this,x)};
_.a.clone=function(){var x=new Yy(null);x.JSC$9248_copyFrom(this);return x};var x59,tqu;_.Zk=function(){var x=window.getSelection();return x&&x59(x)};
x59=function(x){var G=!1;if(x.createRange)try{var D=x.createRange()}catch(z){return null}else if(x.rangeCount){if(x.rangeCount>1){D=new rr;G=x.rangeCount;for(var K=0;K<G;K++)D.browserRanges_.push(x.getRangeAt(K));return D}D=x.getRangeAt(0);G=tqu(x.anchorNode,x.anchorOffset,x.focusNode,x.focusOffset)}else return null;return J$Z(vmk(D),G)};
_.mK=function(x,G){return _.LZ(x,G,x,G)};
_.He=function(x,G,D,K){return _.LZ(x,G,D,K)};
tqu=function(x,G,D,K){if(x==D)return K<G;var z;if(x.nodeType==1&&G)if(z=x.childNodes[G])x=z,G=0;else if(_.gM(x,D))return!0;if(D.nodeType==1&&K)if(z=D.childNodes[K])D=z,K=0;else if(_.gM(D,x))return!1;return(rQZ(x,D)||G-K)>0};var $y=function(){_.T2.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.mW)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.mW)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.mW)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.mW)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.mW)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.mW)(this.dispatchProgressEvent_,this)};
_.tR($y,_.T2);$y.prototype.abort=function(){try{this.reader_.abort()}catch(x){throw new rmZ(x,"aborting read");}};
$y.prototype.getError=function(){return this.reader_.error&&new rmZ(this.reader_.error,"reading file")};
$y.prototype.dispatchProgressEvent_=function(x){this.dispatchEvent(new sEs(x,this))};
$y.prototype.disposeInternal=function(){$y.superClass_.disposeInternal.call(this);delete this.reader_};
var D5Z=function(x){var G=new $y,D=Glu(G);G.reader_.readAsArrayBuffer(x);return D},Ks7=function(x){var G=new $y,D=Glu(G);
G.reader_.readAsDataURL(x);return D},Glu=function(x){var G=new A3;
x.listen("loadend",_.Zq(function(D,K){var z=K.reader_.result,y=K.getError();z==null||y?D.errback(y):D.callback(z);K.dispose()},G,x));
return G};var Fb=function(){_.T2.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9290_eventHandler_=new _.Ev(this);this.JSC$9290_isInitialized_=!1};
_.tR(Fb,_.T2);var z9i=new _.z2("d"),aq8=new _.z2("beforedragstart"),oOq=new _.z2("dragstart"),yNZ=new _.z2("beforedragmove"),lqu=new _.z2("dragmove"),cN7=new _.z2("beforedragend"),TBq=new _.z2("dragend"),Wsh=new _.z2("e");Fb.prototype.isDragging=function(){return!!this.JSC$9290_dragger_};
var e9u=function(x,G){G.dlgGrowthDirection_=0;G.dlgDragHoverClass_=void 0;G.dlgDragPermission=0;x.dragLists_.push(G)},ZWh=function(x,G){x.getHandleForDragItem_=G};
Fb.prototype.init=function(){if(!this.JSC$9290_isInitialized_){for(var x=this.dragLists_.length,G=0;G<x;G++)for(var D=_.sx(this.dragLists_[G]),K=D.length,z=0;z<K;++z){var y=D[z],c=this.getHandleForDragItem_(y),W=_.Do(c);this.dragItemForHandle_[W]=y;this.dragItemHoverClasses_&&(this.JSC$9290_eventHandler_.listen(y,"mouseover",this.handleDragItemMouseover_),this.JSC$9290_eventHandler_.listen(y,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9290_eventHandler_.listen(c,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9290_eventHandler_.listen(c,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(y);this.JSC$9290_eventHandler_.listen(c,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9290_isInitialized_=!0}};
Fb.prototype.disposeInternal=function(){this.JSC$9290_eventHandler_.dispose();for(var x=this.dragLists_.length,G=0;G<x;G++){var D=this.dragLists_[G];D.dlgGrowthDirection_=void 0;D.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;M7u(this);Fb.superClass_.disposeInternal.call(this)};
var QIh=function(x,G){for(var D=x.dragLists_.length,K=0;K<D;K++){var z=x.dragLists_[K];z.dlgBounds_=IUD(z)}D=x.dragItems_.length;for(K=0;K<D;K++)z=x.dragItems_[K],z!=G&&(z.dlgBounds_=IUD(z))};
_.a=Fb.prototype;
_.a.handlePotentialDragStart_=function(x){var G=_.Do(x.currentTarget);G=this.dragItemForHandle_[G];if(G.parentElement.dlgDragPermission!=2){this.currDragItem_=G;a:{G=this.currDragItem_;for(var D=G.cloneNode(!0),K=bP("TEXTAREA",G),z=bP("TEXTAREA",D),y=0;y<K.length;y++)z[y].value=K[y].value;switch(G.tagName){case "TR":G=_.pX("TABLE",null,_.pX("TBODY",null,D));break a;case "TD":case "TH":G=_.pX("TABLE",null,_.pX("TBODY",null,_.pX("TR",null,D)));break a;case "TEXTAREA":D.value=G.value;default:G=D;break a}G=
void 0}this.draggerEl_=G;this.draggerElClasses_&&OR(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.C2(this.currDragItem_).body.appendChild(this.draggerEl_);D=_.ji(this.currDragItem_);G=this.draggerEl_;K=_.ji(G);if(D instanceof _.$S){var c=D.y;D=D.x}F$(G,G.offsetLeft+(D-K.x),G.offsetTop+(Number(c)-K.y));this.JSC$9290_dragger_=new _.$J(this.draggerEl_);_.BO9(this.JSC$9290_dragger_,this.hysteresisDistance_);
_.Lz(this.JSC$9290_dragger_,"start",this.handleDragStart_,!1,this);_.Lz(this.JSC$9290_dragger_,"end",this.handleDragEnd_,!1,this);_.Lz(this.JSC$9290_dragger_,"earlycancel",this.JSC$9292_cleanup_,!1,this);this.dispatchEvent(new CZ(z9i,this,x,this.currDragItem_,this.draggerEl_,this.JSC$9290_dragger_));this.JSC$9290_dragger_.startDrag(x)}};
_.a.handleDragStart_=function(x){if(this.dispatchEvent(new CZ(aq8,this,x.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.b$s(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?OR(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var G=RPk(this.draggerEl_);this.draggerEl_.halfWidth=G.width/2;this.draggerEl_.halfHeight=G.height/2;G=this.draggerEl_.getBoundingClientRect();
var D=x.clientY,K=rtZ(this.JSC$9290_dragger_,x.clientX);if(K>G.right){var z=this.currDragItem_.getBoundingClientRect();this.JSC$9290_dragger_.deltaX=K-(K-z.left)/z.width*G.width}D=sf8(this.JSC$9290_dragger_,D);D>G.bottom&&(this.JSC$9290_dragger_.deltaY+=D-G.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";QIh(this,this.currDragItem_);this.currDragItem_.style.display="";_.Lz(this.JSC$9290_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new CZ(oOq,
this,x.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9290_dragger_))}else x.preventDefault(),this.JSC$9292_cleanup_()};
_.a.handleDragMove_=function(x){var G=_.ji(this.draggerEl_);G=new _.$S(G.x+this.draggerEl_.halfWidth,G.y+this.draggerEl_.halfHeight);a:{var D=null;if(this.currDragItem_.style.display!="none"){D=this.currDragItem_.parentNode;var K=IUD(D);if(pgs(G,K))break a}K=this.dragLists_.length;for(var z=0;z<K;z++){var y=this.dragLists_[z];if(y!=D&&pgs(G,y.dlgBounds_)){D=y;break a}}D=null}if(D){if(D==null)throw Error("Td");K=0;z=!1;y=void 0;switch(D.dlgGrowthDirection_){case 0:K=G.y;var c=V7h;var W=bWs;break;case 4:z=
!0;case 2:K=G.x;c=Lsi;W=bWs;break;case 5:z=!0;case 3:K=G.x,c=BBu,W=rNq}for(var e=null,Q,p=_.sx(D),V=p.length,L=0;L<V;L++){var r=p[L];if(r!=this.currDragItem_){var H=c(r.dlgBounds_);if(z){var O=sIZ(r,G);y===void 0&&(y=O);W(K,H)&&(Q==void 0||O<y||O==y&&(W(H,Q)||H==Q))&&(e=r,Q=H);O<y&&(y=O)}else W(K,H)&&(Q==void 0||W(H,Q))&&(e=r,Q=H)}}c=e!==null&&sIZ(e,G)>y?null:e}else c=null;if(!this.dispatchEvent(new CZ(yNZ,this,x,this.currDragItem_,this.draggerEl_,this.JSC$9290_dragger_,G,D,c)))return!1;if(D&&D.dlgDragPermission!=
1)this.currDragItem_.parentNode==D&&_.b$s(this.currDragItem_)==c||D.insertBefore(this.currDragItem_,c),this.currDragItem_.style.display="",D.dlgDragHoverClass_&&_.qJ(D,D.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",W=this.dragLists_.length,Q=0;Q<W;Q++)K=this.dragLists_[Q],K.dlgDragHoverClass_&&_.dk(K,K.dlgDragHoverClass_);D!=this.currHoverList_&&(this.currHoverList_=D,QIh(this,this.currDragItem_));this.dispatchEvent(new CZ(lqu,this,x,this.currDragItem_,this.draggerEl_,this.JSC$9290_dragger_,
G,D,c));return!1};
_.a.JSC$9292_cleanup_=function(){M7u(this);this.JSC$9290_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var x=this.dragLists_.length,G=0;G<x;G++)this.dragLists_[G].dlgBounds_=null;x=this.dragItems_.length;for(G=0;G<x;G++)this.dragItems_[G].dlgBounds_=null};
_.a.handleDragEnd_=function(x){if(!this.dispatchEvent(new CZ(cN7,this,x,this.currDragItem_,this.draggerEl_,this.JSC$9290_dragger_)))return!1;M7u(this);this.dispatchEvent(new CZ(TBq,this,x,this.currDragItem_,this.draggerEl_,this.JSC$9290_dragger_));this.JSC$9292_cleanup_();return!0};
var M7u=function(x){_.kS(x.JSC$9290_dragger_);var G=x.draggerEl_&&x.draggerEl_.parentElement;x.draggerEl_&&_.VF(x.draggerEl_);x.currDragItem_&&x.currDragItem_.style.display=="none"&&(x.origList_.insertBefore(x.currDragItem_,x.origNextItem_),x.currDragItem_.style.display="");x.currDragItemClasses_&&x.currDragItem_?r19(x.currDragItem_,x.currDragItemClasses_||[]):x.currDragItem_&&(x.currDragItem_.style.visibility="");for(var D=x.dragLists_.length,K=0;K<D;K++){var z=x.dragLists_[K];z.dlgDragHoverClass_&&
_.dk(z,z.dlgDragHoverClass_)}G&&x.dispatchEvent(new CZ(Wsh,x,null,x.currDragItem_,x.draggerEl_,x.JSC$9290_dragger_))};
_.a=Fb.prototype;_.a.getHandleForDragItem_=function(x){return x};
_.a.handleDragItemMouseover_=function(x){OR(x.currentTarget,this.dragItemHoverClasses_||[])};
_.a.handleDragItemMouseout_=function(x){r19(x.currentTarget,this.dragItemHoverClasses_||[])};
_.a.handleDragItemHandleMouseover_=function(x){OR(x.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.a.handleDragItemHandleMouseout_=function(x){r19(x.currentTarget,this.dragItemHandleHoverClasses_||[])};
var pgs=function(x,G){return x.x>G.left&&x.x<G.left+G.width&&x.y>G.top&&x.y<G.top+G.height},sIZ=function(x,G){x=x.dlgBounds_;
return Math.abs(G.y-(x.top+(x.height-1)/2))},V7h=function(x){return x.top+x.height-1},Lsi=function(x){return x.left+x.width-1},BBu=function(x){return x.left||0},bWs=function(x,G){return x<G},rNq=function(x,G){return x>G},CZ=function(x,G,D,K,z,y){_.aY.call(this,x);
this.event=D;this.currDragItem=K;this.draggerEl=z;this.JSC$9294_dragger=y};
_.tR(CZ,_.aY);_.tR(hU,_.Ya);var YOq=new _.$S(0,0);hU.prototype.JSC$9298_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
hU.prototype.JSC$9298_onMouseMove=function(x){var G=this.containerIsActuallyContent_?YOq:Wu(ei(this.containerNode_)),D=this.horizontalScrolling_?this.calculateScrollDelta(x.clientX+G.x,this.scrollBounds_.left,this.scrollBounds_.width):0,K=this.calculateScrollDelta(x.clientY+G.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=D;this.scrollDelta_.y=K;!(D=!D&&!K)&&(D=this.constrainScroll_)&&(D=x.clientX+G.x,x=x.clientY+G.y,G=this.containerBounds_,D=!(G.left<=D&&G.left+G.width>=
D&&G.top<=x&&G.top+G.height>=x));D?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
hU.prototype.calculateScrollDelta=function(x,G,D){var K=0;x<G?K=-8:x>G+D&&(K=8);return K};
hU.prototype.disposeInternal=function(){hU.superClass_.disposeInternal.call(this);this.JSC$9296_eventHandler_.dispose();this.scrollTimer_.dispose()};var m5J={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"}}},Ic=m5J;Ic=m5J;var jj={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 HWu=function(){},S5=function(x){if(typeof x=="number"){var G=new HWu;
G.standardOffset_=x;var D=x;if(D==0)D="Etc/GMT";else{var K=["Etc/GMT",D<0?"-":"+"];D=Math.abs(D);K.push(Math.floor(D/60)%100);D%=60;D!=0&&K.push(":",_.Je(D,2));D=K.join("")}G.timeZoneId_=D;D=x;D==0?D="UTC":(K=["UTC",D<0?"+":"-"],D=Math.abs(D),K.push(Math.floor(D/60)%100),D%=60,D!=0&&K.push(":",D),D=K.join(""));x=$59(x);G.tzNames_=[D,D];G.tzNamesExt_={STD_LONG_NAME_GMT:x,STD_GENERIC_LOCATION:x};G.transitions_=[];return G}G=new HWu;G.timeZoneId_=x.id;G.standardOffset_=-x.std_offset;G.tzNames_=x.names;
G.tzNamesExt_=x.names_ext;G.transitions_=x.transitions;return G},$59=function(x){var G=["GMT"];
G.push(x<=0?"+":"-");x=Math.abs(x);G.push(_.Je(Math.floor(x/60)%100,2),":",_.Je(x%60,2));return G.join("")},Fsi=function(x,G){G=Date.UTC(G.getUTCFullYear(),G.getUTCMonth(),G.getUTCDate(),G.getUTCHours(),G.getUTCMinutes())/36E5;
for(var D=0;D<x.transitions_.length&&G>=x.transitions_[D];)D+=2;return D==0?0:x.transitions_[D-1]},C0q=function(x,G){x=x.standardOffset_-Fsi(x,G);
return x===-1440?0:x};var n3=function(x,G){this.patternParts_=[];this.JSC$9309_dateTimeSymbols_=G||bQ;typeof x=="number"?IqJ(this,x):jIJ(this,x)},OWu=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],OB=function(x){return x.getHours?x.getHours():0},jIJ=function(x,G){for(NeC&&(G=G.replace(/\u200f/g,""));G;){for(var D=G,K=0;K<OWu.length;++K){var z=G.match(OWu[K]);
if(z){var y=z[0];G=G.substring(y.length);K==0&&(y=="''"?y="'":(y=y.substring(1,z[1]=="'"?y.length-1:y.length),y=y.replace(/''/g,"'")));x.patternParts_.push({text:y,type:K});break}}if(D===G)throw Error("Ud`"+G);}};
n3.prototype.format=function(x,G){if(!x)throw Error("Vd");var D=G?(x.getTimezoneOffset()-C0q(G,x))*6E4:0,K=D?new Date(x.getTime()+D):x,z=K;G&&K.getTimezoneOffset()!=x.getTimezoneOffset()&&(K=new Date(K.getTime()+(K.getTimezoneOffset()-x.getTimezoneOffset())*6E4),z=new Date(x.getTime()+(D+(D>0?-864E5:864E5))));D=[];for(var y=0;y<this.patternParts_.length;++y){var c=this.patternParts_[y].text;1==this.patternParts_[y].type?D.push(Xgi(this,c,x,K,z,G)):D.push(c)}return D.join("")};
var IqJ=function(x,G){if(G<4)var D=x.JSC$9309_dateTimeSymbols_.DATEFORMATS[G];else if(G<8)D=x.JSC$9309_dateTimeSymbols_.TIMEFORMATS[G-4];else if(G<12)D=x.JSC$9309_dateTimeSymbols_.DATETIMEFORMATS[G-8],D=D.replace("{1}",x.JSC$9309_dateTimeSymbols_.DATEFORMATS[G-8]),D=D.replace("{0}",x.JSC$9309_dateTimeSymbols_.TIMEFORMATS[G-8]);else if(G===12)D=x.JSC$9309_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(G===13)D=x.JSC$9309_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{IqJ(x,10);return}jIJ(x,D)},Xb=function(x,G){G=String(G);
x=x.JSC$9309_dateTimeSymbols_||bQ;if(x.ZERODIGIT!==void 0&&!qVL){for(var D=[],K=0;K<G.length;K++){var z=G.charCodeAt(K);D.push(48<=z&&z<=57?String.fromCharCode(x.ZERODIGIT+z-48):G.charAt(K))}G=D.join("")}return G},qVL=!1,NeC=!1,U5s=function(x,G,D,K){D=D.getFullYear();
D<=0&&K&&(D=1-D);return Xb(x,ANs(D,G))},ANs=function(x,G){G==2&&(x%=100);
x<0&&G++;return _.Je(x,G)},Ay=function(x){if(!(x.getHours&&x.getSeconds&&x.getMinutes))throw Error("Wd");
},R9u=function(x,G){Ay(G);
G=OB(G);return x.JSC$9309_dateTimeSymbols_.AMPMS[G>=12&&G<24?1:0]},Xgi=function(x,G,D,K,z,y){var c=G.length;
switch(G.charAt(0)){case "G":return D=K.getFullYear()>0?1:0,c>=4?x.JSC$9309_dateTimeSymbols_.ERANAMES[D]:x.JSC$9309_dateTimeSymbols_.ERAS[D];case "y":return U5s(x,c,K,!0);case "Y":return D=(new Date(nmi(K.getFullYear(),K.getMonth(),K.getDate(),x.JSC$9309_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,x.JSC$9309_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),c==2&&(D%=100),Xb(x,ANs(D,c));case "u":return U5s(x,c,K,!1);case "M":a:switch(D=K.getMonth(),c){case 5:c=x.JSC$9309_dateTimeSymbols_.NARROWMONTHS[D];break a;
case 4:c=x.JSC$9309_dateTimeSymbols_.MONTHS[D];break a;case 3:c=x.JSC$9309_dateTimeSymbols_.SHORTMONTHS[D];break a;default:c=Xb(x,_.Je(D+1,c))}return c;case "k":return Ay(z),Xb(x,_.Je(OB(z)||24,c));case "S":return Xb(x,(z.getMilliseconds()/1E3).toFixed(Math.min(3,c)).slice(2)+(c>3?_.Je(0,c-3):""));case "E":return D=K.getDay(),c>=4?x.JSC$9309_dateTimeSymbols_.WEEKDAYS[D]:x.JSC$9309_dateTimeSymbols_.SHORTWEEKDAYS[D];case "a":return R9u(x,z);case "b":return R9u(x,z);case "B":return R9u(x,z);case "h":return Ay(z),
Xb(x,_.Je(OB(z)%12||12,c));case "K":return Ay(z),Xb(x,_.Je(OB(z)%12,c));case "H":return Ay(z),Xb(x,_.Je(OB(z),c));case "c":a:switch(D=K.getDay(),c){case 5:c=x.JSC$9309_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[D];break a;case 4:c=x.JSC$9309_dateTimeSymbols_.STANDALONEWEEKDAYS[D];break a;case 3:c=x.JSC$9309_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[D];break a;default:c=Xb(x,_.Je(D,1))}return c;case "L":a:switch(D=K.getMonth(),c){case 5:c=x.JSC$9309_dateTimeSymbols_.STANDALONENARROWMONTHS[D];break a;
case 4:c=x.JSC$9309_dateTimeSymbols_.STANDALONEMONTHS[D];break a;case 3:c=x.JSC$9309_dateTimeSymbols_.STANDALONESHORTMONTHS[D];break a;default:c=Xb(x,_.Je(D+1,c))}return c;case "Q":return D=Math.floor(K.getMonth()/3),c<4?x.JSC$9309_dateTimeSymbols_.SHORTQUARTERS[D]:x.JSC$9309_dateTimeSymbols_.QUARTERS[D];case "d":return Xb(x,_.Je(K.getDate(),c));case "m":return Ay(z),Xb(x,_.Je(z.getMinutes?z.getMinutes():0,c));case "s":return Ay(z),Xb(x,_.Je(z.getSeconds(),c));case "v":return(y||S5(D.getTimezoneOffset())).timeZoneId_;
case "V":return x=y||S5(D.getTimezoneOffset()),c<=2?x.timeZoneId_:Fsi(x,D)>0?x.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?x.tzNamesExt_.DST_GENERIC_LOCATION:x.tzNamesExt_.DST_GENERIC_LOCATION:x.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?x.tzNamesExt_.STD_GENERIC_LOCATION:x.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return D=nmi(z.getFullYear(),z.getMonth(),z.getDate(),x.JSC$9309_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,x.JSC$9309_dateTimeSymbols_.FIRSTDAYOFWEEK),Xb(x,_.Je(Math.floor(Math.round((D-(new Date((new Date(D)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,c));case "z":return x=y||S5(D.getTimezoneOffset()),c<4?x.tzNames_[Fsi(x,D)>0?2:0]:x.tzNames_[Fsi(x,D)>0?3:1];case "Z":return G=y||S5(D.getTimezoneOffset()),c<4?(c=-C0q(G,D),x=[c<0?"-":"+"],c=Math.abs(c),x.push(_.Je(Math.floor(c/60)%100,2),_.Je(c%60,2)),c=x.join("")):c=Xb(x,$59(C0q(G,D))),c;default:return""}};var SO8=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,nOZ=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,t4P=function(x){this.patternParts_=[];this.JSC$9318_dateTimeSymbols_=bQ;if(typeof x=="number"){x>11&&(x=10);if(x<4)var G=this.JSC$9318_dateTimeSymbols_.DATEFORMATS[x];else x<8?G=this.JSC$9318_dateTimeSymbols_.TIMEFORMATS[x-4]:(G=this.JSC$9318_dateTimeSymbols_.DATETIMEFORMATS[x-8],G=G.replace("{1}",this.JSC$9318_dateTimeSymbols_.DATEFORMATS[x-8]),G=G.replace("{0}",this.JSC$9318_dateTimeSymbols_.TIMEFORMATS[x-
8]));iWh(this,G)}else iWh(this,x)},iWh=function(x,G){for(var D=!1,K="",z=0;z<G.length;z++){var y=G.charAt(z);
if(SO8.test(y))for(K.length>0&&(x.patternParts_.push({text:K,count:0,abutStart:!1,numeric:!1}),K=""),x.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});z<G.length-1&&G.charAt(z+1)==" ";)z++;else if(D)y=="'"?z+1<G.length&&G.charAt(z+1)=="'"?(K+="'",z++):D=!1:K+=y;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(y)>=0){K.length>0&&(x.patternParts_.push({text:K,count:0,abutStart:!1,numeric:!1}),K="");for(var c=G.charAt(z),W=z+1;W<G.length&&G.charAt(W)==c;)W++;c=W-z;c<=0?W=!1:(W="MydhHmsSDkK".indexOf(y),
W=W>0||W==0&&c<3);x.patternParts_.push({text:y,count:c,abutStart:!1,numeric:W});z+=c-1}else y=="'"?z+1<G.length&&G.charAt(z+1)=="'"?(K+="'",z++):D=!0:K+=y}K.length>0&&x.patternParts_.push({text:K,count:0,abutStart:!1,numeric:!1});G=!1;for(D=0;D<x.patternParts_.length;D++)x.patternParts_[D].numeric?!G&&D+1<x.patternParts_.length&&x.patternParts_[D+1].numeric&&(G=!0,x.patternParts_[D].abutStart=!0):G=!1};
t4P.prototype.parse=function(x,G,D){var K=!1,z=!1;D&&(K=D.predictive||!1,z=D.validate||!1);if(K)for(D=0;D<this.patternParts_.length;D++){var y=this.patternParts_[D];if(y.count>0&&("abBhHkKm".indexOf(y.text.charAt(0))<0||y.count>2||y.abutStart))throw Error("Xd`"+y.text.charAt(0));}y=new gOs;D=[0];y.dayPeriodIndex=-1;for(var c=0;c<this.patternParts_.length&&!(K&&D[0]>=x.length);c++){if(this.patternParts_[c].count==0){a:{var W=x;var e=D,Q=this.patternParts_[c],p=K;if(Q.text.match(SO8)!=null){if(Q=e[0],
ush(W,e),e[0]>Q){W=!0;break a}}else{if(W.indexOf(Q.text,e[0])==e[0]){e[0]+=Q.text.length;W=!0;break a}if(p&&Q.text.indexOf(W.substring(e[0]))==0){e[0]+=W.length-e[0];W=!0;break a}}W=!1}if(W)continue;return 0}if(this.patternParts_[c].abutStart){a:{e=x;Q=D;p=c;var V=Q[0],L=0;for(W=p;W<this.patternParts_.length;W++){var r=this.patternParts_[W],H=r.count;if(H===0)break;if(W==p&&(H-=L,L++,H==0)){W=0;break a}var O=W>p&&r.numeric,A=Q[0];if(!d5E(this,e,Q,r,H,y,!1)||O&&Q[0]-A<H)W=p-1,Q[0]=V}W-=p}if(W<=0)return 0;
c+=W-1}else if(!d5E(this,x,D,this.patternParts_[c],0,y,K))return 0}a:{x=z;if(G==null)throw Error("Yd");y.era!=void 0&&y.year!=void 0&&y.era==0&&y.year>0&&(y.year=-(y.year-1));y.year!=void 0&&G.setFullYear(y.year);K=G.getDate();G.setDate(1);y.month!=void 0&&G.setMonth(y.month);y.day!=void 0?G.setDate(y.day):(z=YZf(G.getFullYear(),G.getMonth()),G.setDate(K>z?z:K));typeof G.setHours==="function"&&(y.hours==void 0&&(y.hours=G.getHours()),y.hours<12&&(y.ampm!=void 0&&y.ampm>0?y.hours+=12:y.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(y.dayPeriodName)||["night1","night2"].includes(y.dayPeriodName)&&y.hours>=6)&&(y.hours+=12)),G.setHours(y.hours));typeof G.setMinutes==="function"&&y.minutes!=void 0&&G.setMinutes(y.minutes);typeof G.setSeconds==="function"&&y.seconds!=void 0&&G.setSeconds(y.seconds);typeof G.setMilliseconds==="function"&&y.milliseconds!=void 0&&G.setMilliseconds(y.milliseconds);if(x&&(y.year&&y.year!=G.getFullYear()||y.month&&y.month!=
G.getMonth()||y.day&&y.day!=G.getDate()||y.hours&&y.hours>=24||y.minutes&&y.minutes>=60||y.seconds&&y.seconds>=60||y.milliseconds&&y.milliseconds>=1E3))G=!1;else{y.tzOffset!=void 0&&G.setTime(G.getTime()+(y.tzOffset-G.getTimezoneOffset())*60*1E3);y.ambiguousYear&&(x=new Date,x.setFullYear(x.getFullYear()-80),G.getTime()<x.getTime()&&G.setFullYear(x.getFullYear()+100));if(y.dayOfWeek!=void 0)if(y.day==void 0)y=(7+y.dayOfWeek-G.getDay())%7,y>3&&(y-=7),x=G.getMonth(),G.setDate(G.getDate()+y),G.getMonth()!=
x&&G.setDate(G.getDate()+(y>0?-7:7));else if(y.dayOfWeek!=G.getDay()){G=!1;break a}G=!0}}return G?D[0]:0};
var d5E=function(x,G,D,K,z,y,c){ush(G,D);if(K.numeric&&z>0&&D[0]+z>G.length)return!1;switch(K.text.charAt(0)){case "G":return UB(G,D,[x.JSC$9318_dateTimeSymbols_.ERAS],function(W){return y.era=W}),!0;
case "M":case "L":return wgZ(x,G,D,z,K,y);case "E":return UB(G,D,[x.JSC$9318_dateTimeSymbols_.WEEKDAYS,x.JSC$9318_dateTimeSymbols_.SHORTWEEKDAYS],function(W){return y.dayOfWeek=W});
case "B":case "b":return z=[],x=[[].concat(x.JSC$9318_dateTimeSymbols_.AMPMS)],z.push("isAm"),z.push("isPm"),G=UB(G,D,x,function(W){return y.dayPeriodIndex=W},c),y.dayPeriodName=z[y.dayPeriodIndex],c?G:!0;
case "a":return G=UB(G,D,[x.JSC$9318_dateTimeSymbols_.AMPMS],function(W){return y.ampm=W},c),c?G:!0;
case "y":return qO0(x,G,D,K,z,y);case "Q":return UB(G,D,[x.JSC$9318_dateTimeSymbols_.QUARTERS,x.JSC$9318_dateTimeSymbols_.SHORTQUARTERS],function(W){y.month=W*3;y.day=1});
case "d":return Rc(x,G,D,K,z,function(W){y.day=W}),!0;
case "S":return NBi(x,G,D,z,y);case "h":case "K":case "H":case "k":return G=Rc(x,G,D,K,z,function(W){y.hours=K.text.charAt(0)==="h"&&W===12?0:W},c),c?G:!0;
case "m":return G=Rc(x,G,D,K,z,function(W){y.minutes=W},c),c?G:!0;
case "s":return Rc(x,G,D,K,z,function(W){y.seconds=W}),!0;
case "z":case "Z":case "v":return vO8(x,G,D,y);default:return!1}},qO0=function(x,G,D,K,z,y){var c=D[0];
z=Sj(x,G,D,z);z===null&&(z=Sj(x,G,D,0,!0));if(z===null)return!1;z>=0&&D[0]-c==2&&K.count==2?(x=z,G=(new Date).getFullYear()-80,D=G%100,y.ambiguousYear=x==D,x+=Math.floor(G/100)*100+(x<D?100:0),y.year=x):y.year=z;return!0},wgZ=function(x,G,D,K,z,y){return z.numeric&&Rc(x,G,D,z,K,function(c){y.month=c-1})?!0:UB(G,D,[x.JSC$9318_dateTimeSymbols_.MONTHS,
x.JSC$9318_dateTimeSymbols_.STANDALONEMONTHS,x.JSC$9318_dateTimeSymbols_.SHORTMONTHS,x.JSC$9318_dateTimeSymbols_.STANDALONESHORTMONTHS],function(c){y.month=c})},NBi=function(x,G,D,K,z){var y=D[0];
x=Sj(x,G,D,K);if(x===null)return!1;D=D[0]-y;z.milliseconds=D<3?x*Math.pow(10,3-D):Math.round(x/Math.pow(10,D-3));return!0},vO8=function(x,G,D,K){G.indexOf("GMT",D[0])==D[0]&&(D[0]+=3);
if(D[0]>=G.length)return K.tzOffset=0,!0;var z=D[0],y=Sj(x,G,D,0,!0);if(y===null)return!1;if(D[0]<G.length&&G.charAt(D[0])==":"){var c=y*60;D[0]++;y=Sj(x,G,D,0);if(y===null)return!1;c+=y}else c=y,c=c<24&&D[0]-z<=3?c*60:c%100+c/100*60;K.tzOffset=-c;return!0},Rc=function(x,G,D,K,z,y,c){c=c||!1;
var W=D[0];x=Sj(x,G,D,z);if(x===null)return!1;if(c&&D[0]-W<K.count){if(D[0]<G.length)return!1;x*=Math.pow(10,K.count-(D[0]-W))}y(x);return!0},UB=function(x,G,D,K,z){z=z||!1;
for(var y,c=0;c<D.length;c++){y=G;for(var W=D[c],e=z,Q=0,p=null,V=x.substring(y[0]).toLowerCase(),L=0;L<W.length;L++){var r=W[L].toLowerCase();if(e&&r.indexOf(V)==0){Q=V.length;p=L;break}W[L].length>Q&&V.indexOf(r)==0&&(Q=W[L].length,p=L)}p!==null&&(y[0]+=Q);y=p;if(y!==null)return K(y),!0}return!1},ush=function(x,G){(x=x.substring(G[0]).match(nOZ))&&(G[0]+=x[0].length)},Sj=function(x,G,D,K,z){G=K>0?G.substring(0,D[0]+K):G;
z=z||!1;if(x.JSC$9318_dateTimeSymbols_.ZERODIGIT){K=[];for(var y=D[0];y<G.length;y++){var c=G.charCodeAt(y)-x.JSC$9318_dateTimeSymbols_.ZERODIGIT;K.push(0<=c&&c<=9?String.fromCharCode(c+48):G.charAt(y))}G=K.join("")}else G=G.substring(D[0]);x=G.match(new RegExp("^"+(z?"[+-]?":"")+"\\d+"));if(!x)return null;D[0]+=x[0].length;return parseInt(x[0],10)},gOs=function(){};
gOs.prototype.ambiguousYear=!1;_.JNq={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 fqE={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"},t7h=fqE,kl7=fqE;kl7=t7h=fqE;var EOi,nZ,gr,Zbh,iF,P0u;
_.Ar=function(x,G,D,K){var z;if(z=G){a:if(G&&G.length===3){for(z=0;z<3;z++){var y=G[z];if(y<"A"||y>"Z"&&y<"a"||y>"z"){z=!1;break a}}z=!0}else z=!1;z=!z}if(z)throw new TypeError("Zd");this.intlCurrencyCode_=G?G.toUpperCase():null;this.currencyStyle_=D||0;this.overrideNumberFormatSymbols_=K||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_=nZ(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof x==="number")switch(x){case 1:iF(this,nZ(this).DECIMAL_PATTERN);break;case 2:iF(this,nZ(this).SCIENTIFIC_PATTERN);break;case 3:iF(this,nZ(this).PERCENT_PATTERN);break;case 4:x=nZ(this).CURRENCY_PATTERN;G=["0"];if(D=
jj[gr(this)]){D=D[0]&7;if(D>0)for(G.push("."),K=0;K<D;K++)G.push("0");x=x.replace(/0.00/g,G.join(""))}iF(this,x);break;case 5:P0u(this,1);break;case 6:P0u(this,2);break;default:throw Error("be");}else iF(this,x)};
EOi=!1;nZ=function(x){return x.overrideNumberFormatSymbols_||(EOi?kl7:t7h)};
gr=function(x){return x.intlCurrencyCode_||nZ(x).DEF_CURRENCY_CODE};
Zbh=function(x,G){if(G>308)throw Error("ae`"+G);x.maximumFractionDigits_=G;return x};
iF=function(x,G){var D=[0];x.positivePrefix_=h98(x,G,D);for(var K=D[0],z=-1,y=0,c=0,W=0,e=-1,Q=G.length,p=!0;D[0]<Q&&p;D[0]++)switch(G.charAt(D[0])){case "#":c>0?W++:y++;e>=0&&z<0&&e++;break;case "0":if(W>0)throw Error("he`"+G);c++;e>=0&&z<0&&e++;break;case ",":e>0&&x.groupingArray_.push(e);e=0;break;case ".":if(z>=0)throw Error("ie`"+G);z=y+c+W;break;case "E":if(x.useExponentialNotation_)throw Error("je`"+G);x.useExponentialNotation_=!0;x.minExponentDigits_=0;D[0]+1<Q&&G.charAt(D[0]+1)=="+"&&(D[0]++,
x.useSignForPositiveExponent_=!0);for(;D[0]+1<Q&&G.charAt(D[0]+1)=="0";)D[0]++,x.minExponentDigits_++;if(y+c<1||x.minExponentDigits_<1)throw Error("ke`"+G);p=!1;break;default:D[0]--,p=!1}c==0&&y>0&&z>=0&&(c=z,c==0&&c++,W=y-c,y=c-1,c=1);if(z<0&&W>0||z>=0&&(z<y||z>y+c)||e==0)throw Error("le`"+G);W=y+c+W;x.maximumFractionDigits_=z>=0?W-z:0;z>=0&&(x.minimumFractionDigits_=y+c-z,x.minimumFractionDigits_<0&&(x.minimumFractionDigits_=0));x.minimumIntegerDigits_=(z>=0?z:W)-y;x.useExponentialNotation_&&(x.maximumIntegerDigits_=
y+x.minimumIntegerDigits_,x.maximumFractionDigits_==0&&x.minimumIntegerDigits_==0&&(x.minimumIntegerDigits_=1));x.groupingArray_.push(Math.max(0,e));x.decimalSeparatorAlwaysShown_=z==0||z==W;K=D[0]-K;x.positiveSuffix_=h98(x,G,D);D[0]<G.length&&G.charAt(D[0])==";"?(D[0]++,x.multiplier_!=1&&(x.negativePercentSignExpected_=!0),x.negativePrefix_=h98(x,G,D),D[0]+=K,x.negativeSuffix_=h98(x,G,D)):(x.negativePrefix_+=x.positivePrefix_,x.negativeSuffix_+=x.positiveSuffix_)};
P0u=function(x,G){x.compactStyle_=G;iF(x,nZ(x).DECIMAL_PATTERN);x.minimumFractionDigits_=0;Zbh(x,2);if(x.minimumFractionDigits_>0)throw Error("$d");x.significantDigits_=2};
_.Ar.prototype.parse=function(x,G){G=G||[0];if(this.compactStyle_!==0)throw Error("ce");x=x.replace(/ |\u202f/g,"\u00a0");var D=x.indexOf(this.positivePrefix_,G[0])==G[0],K=x.indexOf(this.negativePrefix_,G[0])==G[0];D&&K&&(this.positivePrefix_.length>this.negativePrefix_.length?K=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(D=!1));D?G[0]+=this.positivePrefix_.length:K&&(G[0]+=this.negativePrefix_.length);if(x.indexOf(nZ(this).INFINITY,G[0])==G[0]){G[0]+=nZ(this).INFINITY.length;var z=
Infinity}else{z=x;var y=!1,c=!1,W=!1,e=-1,Q=1,p=nZ(this).DECIMAL_SEP,V=nZ(this).GROUP_SEP,L=nZ(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("de");V=V.replace(/\u202f/g,"\u00a0");for(var r="";G[0]<z.length;G[0]++){var H=z.charAt(G[0]),O=xW0(this,H);if(O>=0&&O<=9)r+=O,W=!0;else if(H==p.charAt(0)){if(y||c)break;r+=".";y=!0}else if(H==V.charAt(0)&&("\u00a0"!=V.charAt(0)||G[0]+1<z.length&&xW0(this,z.charAt(G[0]+1))>=0)){if(y||c)break}else if(H==L.charAt(0)){if(c)break;r+="E";c=!0;e=G[0]}else if(H==
"+"||H=="-"){if(W&&e!=G[0]-1)break;r+=H}else if(this.multiplier_==1&&H==nZ(this).PERCENT.charAt(0)){if(Q!=1)break;Q=100;if(W){G[0]++;break}}else if(this.multiplier_==1&&H==nZ(this).PERMILL.charAt(0)){if(Q!=1)break;Q=1E3;if(W){G[0]++;break}}else break}this.multiplier_!=1&&(Q=this.multiplier_);z=parseFloat(r)/Q}if(D){if(x.indexOf(this.positiveSuffix_,G[0])!=G[0])return NaN;G[0]+=this.positiveSuffix_.length}else if(K){if(x.indexOf(this.negativeSuffix_,G[0])!=G[0])return NaN;G[0]+=this.negativeSuffix_.length}return K?
-z:z};
_.Ar.prototype.format=function(x){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ee");if(isNaN(x))return nZ(this).NAN;var G=[];var D=x;if(this.compactStyle_==0)D=uF;else{D=Math.abs(D);var K=GmJ(this,D<=1?0:DW7(D)).divisorBase;D=GmJ(this,K+DW7(K8E(this,dr(D,-K)).intValue))}x=dr(x,-D.divisorBase);(K=x<0||x==0&&1/x<0)?D.negative_prefix?G.push(D.negative_prefix):(G.push(D.prefix),G.push(this.negativePrefix_)):(G.push(D.prefix),G.push(this.positivePrefix_));if(isFinite(x))if(x*=
K?-1:1,x*=this.multiplier_,this.useExponentialNotation_){var z=x;if(z==0)zDs(this,z,this.minimumIntegerDigits_,G),a28(this,0,G);else{var y=Math.floor(Math.log(z)/Math.log(10)+2E-15);z=dr(z,-y);var c=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(c=y%this.maximumIntegerDigits_,c<0&&(c=this.maximumIntegerDigits_+c),z=dr(z,c),y-=c,c=1):this.minimumIntegerDigits_<1?(y++,z=dr(z,-1)):(y-=this.minimumIntegerDigits_-1,z=dr(z,this.minimumIntegerDigits_-
1));zDs(this,z,c,G);a28(this,y,G)}}else zDs(this,x,this.minimumIntegerDigits_,G);else G.push(nZ(this).INFINITY);K?D.negative_suffix?G.push(D.negative_suffix):(isFinite(x)&&G.push(D.suffix),G.push(this.negativeSuffix_)):(isFinite(x)&&G.push(D.suffix),G.push(this.positiveSuffix_));return G.join("")};
var K8E=function(x,G){var D=dr(G,x.maximumFractionDigits_);x.significantDigits_>0&&(D=o_i(D,x.significantDigits_,x.maximumFractionDigits_));D=Math.round(D);if(isFinite(D)){var K=Math.floor(dr(D,-x.maximumFractionDigits_));D=Math.floor(D-dr(K,x.maximumFractionDigits_));if(D<0||D>=dr(1,x.maximumFractionDigits_))K=Math.round(G),D=0}else K=G,D=0;return{intValue:K,fracValue:D}},zDs=function(x,G,D,K){if(x.minimumFractionDigits_>x.maximumFractionDigits_)throw Error("ee");
K||(K=[]);G=K8E(x,G);var z=G.intValue,y=G.fracValue,c=x.minimumFractionDigits_>0||y>0||!1;G=x.minimumFractionDigits_;c&&(G=x.minimumFractionDigits_);for(var W="",e=z;e>1E20;)W="0"+W,e=Math.round(dr(e,-1));W=e+W;var Q=nZ(x).DECIMAL_SEP;e=nZ(x).ZERO_DIGIT.codePointAt(0);var p=W.length,V=0;if(z>0||D>0){for(z=p;z<D;z++)K.push(String.fromCodePoint(e));if(x.groupingArray_.length>=2)for(D=1;D<x.groupingArray_.length;D++)V+=x.groupingArray_[D];D=p-V;if(D>0){z=x.groupingArray_;V=p=0;for(var L,r=nZ(x).GROUP_SEP,
H=W.length,O=0;O<H;O++)if(K.push(String.fromCodePoint(e+Number(W.charAt(O)))),H-O>1)if(L=z[V],O<D){var A=D-O;(L===1||L>0&&A%L===1)&&K.push(r)}else V<z.length&&(O===D?V+=1:L===O-D-p+1&&(K.push(r),p+=L,V+=1))}else{D=W;W=x.groupingArray_;z=nZ(x).GROUP_SEP;L=D.length;r=[];for(p=W.length-1;p>=0&&L>0;p--){V=W[p];for(H=0;H<V&&L-H-1>=0;H++)r.push(String.fromCodePoint(e+Number(D.charAt(L-H-1))));L-=V;L>0&&r.push(z)}K.push.apply(K,r.reverse())}}else c||K.push(String.fromCodePoint(e));(x.decimalSeparatorAlwaysShown_||
c)&&K.push(Q);y=String(y);c=y.split("e+");c.length==2&&(y=String(o_i(parseFloat(c[0]),x.significantDigits_,1)),y=y.replace(".",""),y+=(0,_.GL$)("0",parseInt(c[1],10)-y.length+1));x.maximumFractionDigits_+1>y.length&&(y="1"+(0,_.GL$)("0",x.maximumFractionDigits_-y.length)+y);for(x=y.length;y.charAt(x-1)=="0"&&x>G+1;)x--;for(G=1;G<x;G++)K.push(String.fromCodePoint(e+Number(y.charAt(G))))},a28=function(x,G,D){D.push(nZ(x).EXP_SYMBOL);
G<0?(G=-G,D.push(nZ(x).MINUS_SIGN)):x.useSignForPositiveExponent_&&D.push(nZ(x).PLUS_SIGN);G=""+G;for(var K=nZ(x).ZERO_DIGIT,z=G.length;z<x.minExponentDigits_;z++)D.push(K);x=K.codePointAt(0)-yri;for(K=0;K<G.length;K++)D.push(String.fromCodePoint(x+G.codePointAt(K)))},xW0=function(x,G){G=G.codePointAt(0);
if(48<=G&&G<58)return G-48;x=nZ(x).ZERO_DIGIT.codePointAt(0);return x<=G&&G<x+10?G-x:-1},yri="0".codePointAt(0),h98=function(x,G,D){for(var K="",z=!1,y=G.length;D[0]<y;D[0]++){var c=G.charAt(D[0]);
if(c=="'")D[0]+1<y&&G.charAt(D[0]+1)=="'"?(D[0]++,K+="'"):z=!z;else if(z)K+=c;else switch(c){case "#":case "0":case ",":case ".":case ";":return K;case "\u00a4":if(D[0]+1<y&&G.charAt(D[0]+1)=="\u00a4")D[0]++,K+=gr(x);else switch(x.currencyStyle_){case 0:c=gr(x);K+=c in jj?jj[c][1]:c;break;case 2:c=gr(x);var W=jj[c];K+=W?c==W[1]?c:c+" "+W[1]:c;break;case 1:c=gr(x),K+=c in jj?jj[c][2]:c}break;case "%":if(!x.negativePercentSignExpected_&&x.multiplier_!=1)throw Error("fe");if(x.negativePercentSignExpected_&&
x.multiplier_!=100)throw Error("ge");x.multiplier_=100;x.negativePercentSignExpected_=!1;K+=nZ(x).PERCENT;break;case "\u2030":if(!x.negativePercentSignExpected_&&x.multiplier_!=1)throw Error("fe");if(x.negativePercentSignExpected_&&x.multiplier_!=1E3)throw Error("ge");x.multiplier_=1E3;x.negativePercentSignExpected_=!1;K+=nZ(x).PERMILL;break;default:K+=c}}return K},uF={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},GmJ=function(x,G){x=x.compactStyle_==1?Ic.COMPACT_DECIMAL_SHORT_PATTERN:Ic.COMPACT_DECIMAL_LONG_PATTERN;x==null&&(x=Ic.COMPACT_DECIMAL_SHORT_PATTERN);if(G<3)return uF;G=Math.min(14,G);var D=x[dr(1,G)];for(--G;!D&&G>=3;)D=x[dr(1,G)],G--;if(!D)return uF;D=D.other;var K=x="",z=D.indexOf(";");z>=0&&(D=D.substring(0,z),z=D.substring(z+1))&&(K=/([^0]*)(0+)(.*)/.exec(z),x=K[1],K=K[3]);return D&&D!="0"?(D=/([^0]*)(0+)(.*)/.exec(D))?{divisorBase:G+
1-(D[2].length-1),negative_prefix:x,negative_suffix:K,prefix:D[1],suffix:D[3]}:uF:uF},DW7=function(x){if(!isFinite(x))return x>0?x:0;
for(var G=0;(x/=10)>=1;)G++;return G},dr=function(x,G){if(!x||!isFinite(x)||G==0)return x;
x=String(x).split("e");return parseFloat(x[0]+"e"+(parseInt(x[1]||0,10)+G))},l2J=function(x,G){return x&&isFinite(x)?dr(Math.round(dr(x,G)),-G):x},o_i=function(x,G,D){if(!x)return x;
G=G-DW7(x)-1;return G<-D?l2J(x,-D):l2J(x,G)};var cri=function(x){return x%10==1&&x%100!=11?"one":x%10==2&&x%100!=12?"two":x%10==3&&x%100!=13?"few":"other"},TKE=cri;
TKE=cri;var W89;W89=function(x,G){var D=x|0;if(void 0===G){G=Math;var K=G.min,z=x+"",y=z.indexOf(".");G=K.call(G,y===-1?0:z.length-y-1,3)}K=Math.pow(10,G);x={v:G,f:(x*K|0)%K};return D==1&&x.v==0?"one":"other"};
_.i7=W89;_.i7=W89;var eD7,Z3k,M50,pki,V5i;_.Q_o=function(x){this.JSC$9361_pattern_=x;this.parsedPattern_=this.literals_=this.initialLiterals_=null;x=t7h;var G=Ic;if(eD7!==x||Z3k!==G)eD7=x,Z3k=G,M50=new _.Ar(1);this.numberFormatter_=M50};
eD7=null;Z3k=null;M50=null;pki=RegExp("'([{}#].*?)'","g");V5i=RegExp("''","g");
_.Q_o.prototype.format=function(x){if(this.JSC$9361_pattern_){this.initialLiterals_=[];var G=b3Z(this,this.JSC$9361_pattern_);this.parsedPattern_=L88(this,G);this.JSC$9361_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.kC(this.initialLiterals_),G=[],BKs(this,this.parsedPattern_,x,!1,G),x=G.join("");this.literals_.length>0;)x=x.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else x="";return x};
var BKs=function(x,G,D,K,z){for(var y=0;y<G.length;y++)switch(G[y].type){case 4:z.push(G[y].value);break;case 3:var c=G[y].value;var W=x,e=z,Q=D[c];Q===void 0?e.push("Undefined parameter - "+c):(W.literals_.push(Q),e.push(W.buildPlaceholder_(W.literals_)));break;case 2:c=G[y].value;W=x;e=D;Q=K;var p=z,V=c.argumentIndex;e[V]===void 0?p.push("Undefined parameter - "+V):(V=c[e[V]],V===void 0&&(V=c.other),BKs(W,V,e,Q,p));break;case 0:c=G[y].value;rrs(x,c,D,_.i7,K,z);break;case 1:c=G[y].value,rrs(x,c,
D,TKE,K,z)}},rrs=function(x,G,D,K,z,y){var c=G.argumentIndex,W=G.argumentOffset,e=+D[c];
isNaN(e)?y.push("Undefined or invalid parameter - "+c):(W=e-W,c=G[D[c]],c===void 0&&(K=K(Math.abs(W)),c=G[K],c===void 0&&(c=G.other)),G=[],BKs(x,c,D,z,G),D=G.join(""),z?y.push(D):(x=x.numberFormatter_.format(W),y.push(D.replace(/#/g,x))))},b3Z=function(x,G){var D=x.initialLiterals_,K=x.buildPlaceholder_.bind(x);
G=G.replace(V5i,function(){D.push("'");return K(D)});
return G=G.replace(pki,function(z,y){D.push(y);return K(D)})},s_8=function(x){var G=0,D=[],K=[],z=/[{}]/g;
z.lastIndex=0;for(var y;y=z.exec(x);){var c=y.index;y[0]=="}"?(D.pop(),D.length==0&&(y={type:1},y.value=x.substring(G,c),K.push(y),G=c+1)):(D.length==0&&(G=x.substring(G,c),G!=""&&K.push({type:0,value:G}),G=c+1),D.push("{"))}x=x.substring(G);x!=""&&K.push({type:0,value:x});return K},YAo=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,mWJ=/^\s*(\w+)\s*,\s*selectordinal\s*,/,H3s=/^\s*(\w+)\s*,\s*select\s*,/,L88=function(x,G){var D=[];
G=s_8(G);for(var K=0;K<G.length;K++){var z={};if(0==G[K].type)z.type=4,z.value=G[K].value;else if(1==G[K].type){var y=G[K].value;switch(YAo.test(y)?0:mWJ.test(y)?1:H3s.test(y)?2:/^\s*\w+\s*/.test(y)?3:5){case 2:z.type=2;z.value=$Wo(x,G[K].value);break;case 0:z.type=0;z.value=F8Z(x,G[K].value);break;case 1:z.type=1;z.value=C7Z(x,G[K].value);break;case 3:z.type=3,z.value=G[K].value}}D.push(z)}return D},$Wo=function(x,G){var D="";
G=G.replace(H3s,function(W,e){D=e;return""});
var K={};K.argumentIndex=D;G=s_8(G);for(var z=0;z<G.length;){var y=G[z].value;z++;var c=void 0;1==G[z].type&&(c=L88(x,G[z].value));K[y.replace(/\s/g,"")]=c;z++}return K},F8Z=function(x,G){var D="",K=0;
G=G.replace(YAo,function(e,Q,p){D=Q;p&&(K=parseInt(p,10));return""});
var z={};z.argumentIndex=D;z.argumentOffset=K;G=s_8(G);for(var y=0;y<G.length;){var c=G[y].value;y++;var W=void 0;1==G[y].type&&(W=L88(x,G[y].value));z[c.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=W;y++}return z},C7Z=function(x,G){var D="";
G=G.replace(mWJ,function(W,e){D=e;return""});
var K={};K.argumentIndex=D;K.argumentOffset=0;G=s_8(G);for(var z=0;z<G.length;){var y=G[z].value;z++;var c=void 0;1==G[z].type&&(c=L88(x,G[z].value));K[y.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=c;z++}return K};
_.Q_o.prototype.buildPlaceholder_=function(x){return"\ufddf_"+(x.length-1).toString(10)+"_"};var I2s;
I2s={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 fiO=function(){this.rdtfSymbols_=j_Z||I2s;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
fiO.prototype.format=function(x,G){a:{G=O3Z(this,G);switch(this.style_){case 2:if(G.NARROW!=void 0){G=G.NARROW;break a}case 1:if(G.SHORT!=void 0){G=G.SHORT;break a}default:G=G.LONG;break a}G=void 0}if(!this.alwaysNumeric_&&G&&G.R&&G.R[""+x])x=G.R[""+x];else if(G){var D=Math.abs(x);x=(new _.Q_o("{N,plural,"+(x>0||x==0&&1/x==Infinity?G.F:G.P)+"}")).format({N:D})}else x="";return x};
var O3Z=function(x,G){switch(G){default:case 0:return x.rdtfSymbols_.YEAR;case 1:return x.rdtfSymbols_.QUARTER;case 2:return x.rdtfSymbols_.MONTH;case 3:return x.rdtfSymbols_.WEEK;case 4:return x.rdtfSymbols_.DAY;case 5:return x.rdtfSymbols_.HOUR;case 6:return x.rdtfSymbols_.MINUTE;case 7:return x.rdtfSymbols_.SECOND}};var Xk7=function(x,G,D,K,z,y,c,W){this.x0=x;this.y0=G;this.x1=D;this.y1=K;this.x2=z;this.y2=y;this.x3=c;this.y3=W};
Xk7.prototype.clone=function(){return new Xk7(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
Xk7.prototype.equals=function(x){return this.x0==x.x0&&this.y0==x.y0&&this.x1==x.x1&&this.y1==x.y1&&this.x2==x.x2&&this.y2==x.y2&&this.x3==x.x3&&this.y3==x.y3};
var Ar7=function(x,G){if(G==0)return x.x0;if(G==1)return x.x3;var D=ew(x.x0,x.x1,G),K=ew(x.x1,x.x2,G);x=ew(x.x2,x.x3,G);D=ew(D,K,G);K=ew(K,x,G);return ew(D,K,G)},UWi=function(x,G){var D=(G-x.x0)/(x.x3-x.x0);
if(D<=0)return 0;if(D>=1)return 1;for(var K=0,z=1,y=0,c=0;c<8;c++){y=Ar7(x,D);var W=(Ar7(x,D+1E-6)-y)/1E-6;if(Math.abs(y-G)<1E-6)return D;if(Math.abs(W)<1E-6)break;else y<G?K=D:z=D,D-=(y-G)/W}for(c=0;Math.abs(y-G)>1E-6&&c<8;c++)y<G?(K=D,D=(D+z)/2):(z=D,D=(D+K)/2),y=Ar7(x,D);return D};var wr=function(){_.T2.call(this);this.JSC$9382_name_="closure_frame"+RDJ++;this.iframesForDisposal_=[];SAo[this.JSC$9382_name_]=this},qM;
_.tR(wr,_.T2);var SAo={},RDJ=0,n_J=function(x,G){var D=ei(x);_.Gjo(G,function(K,z){Array.isArray(K)||(K=[K]);_.uM(K,function(y){y=D.JSC$7339_createDom("INPUT",{type:"hidden",name:z,value:y});x.appendChild(y)})})};
_.a=wr.prototype;_.a.JSC$9384_form_=null;_.a.JSC$9384_iframe_=null;_.a.iframeName_=null;_.a.nextIframeId_=0;_.a.JSC$9384_active_=!1;_.a.complete_=!1;_.a.success_=!1;_.a.lastContent_=null;_.a.JSC$9384_lastErrorCode_=0;_.a.iframeDisposalTimer_=null;
_.a.send=function(x,G,D,K){if(this.JSC$9384_active_)throw Error("me");x=new _.w5(x);G=G?G.toUpperCase():"GET";D&&_.kh(x);qM||(qM=_.pX("FORM"),qM.acceptCharset="utf-8",D=qM.style,D.position="absolute",D.visibility="hidden",D.top=D.left="-10px",D.width=D.height="10px",D.overflow="hidden",document.body.appendChild(qM));this.JSC$9384_form_=qM;G=="GET"&&n_J(this.JSC$9384_form_,x.JSC$8039_queryData_);K&&n_J(this.JSC$9384_form_,K);D=x.toString();D=kCO(D);K=this.JSC$9384_form_;D=_.YY(WC(D));D!==void 0&&(K.action=
D);this.JSC$9384_form_.method=G;i3s(this);g_i(this)};
_.a.abort=function(x){if(this.JSC$9384_active_){var G=NM(this);if(G)if(yZ(G))G.removeAllListeners(void 0);else if(G=lv(G)){var D=0,K;for(K in G.listeners)for(var z=G.listeners[K].concat(),y=0;y<z.length;++y)pz(z[y])&&++D}this.success_=this.JSC$9384_active_=this.complete_=!1;this.JSC$9384_lastErrorCode_=x||7;this.dispatchEvent("abort");uX7(this)}};
_.a.disposeInternal=function(){this.JSC$9384_active_&&this.abort();wr.superClass_.disposeInternal.call(this);this.JSC$9384_iframe_&&dWZ(this);g_i(this);this.JSC$9384_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9384_form_=null;this.JSC$9384_lastErrorCode_=0;delete SAo[this.JSC$9382_name_]};
_.a.isComplete=function(){return this.complete_};
_.a.isSuccess=function(){return this.success_};
_.a.isActive=function(){return this.JSC$9384_active_};
_.a.getResponseText=function(){return this.lastContent_};
_.a.getLastError=function(){return _.Xd8(this.JSC$9384_lastErrorCode_)};
var i3s=function(x){x.JSC$9384_active_=!0;x.complete_=!1;x.JSC$9384_lastErrorCode_=0;x.iframeName_=x.JSC$9382_name_+"_"+(x.nextIframeId_++).toString(36);x.JSC$9384_iframe_=ei(x.JSC$9384_form_).JSC$7339_createDom("IFRAME",{name:x.iframeName_,id:x.iframeName_});var G=x.JSC$9384_iframe_.style;G.visibility="hidden";G.width=G.height="10px";G.display="none";_.xp?G.marginTop=G.marginLeft="-10px":(G.position="absolute",G.top=G.left="-10px");ei(x.JSC$9384_form_).JSC$7337_document_.body.appendChild(x.JSC$9384_iframe_);
G=x.iframeName_+"_inner";var D=YDs(x.JSC$9384_iframe_);if(document.baseURI){var K=ha(G);K='<head><base href="'+ha(document.baseURI)+'"></head><body><iframe id="'+K+'" name="'+K+'"></iframe>';K=$Y(K)}else K=ha(G),K=$Y('<body><iframe id="'+K+'" name="'+K+'"></iframe>');D.write(F_(K));_.Lz(D.getElementById(G),"load",x.onIframeLoaded_,!1,x);K=bP("TEXTAREA",x.JSC$9384_form_);for(var z=0,y=K.length;z<y;z++){var c=K[z].value;IfZ(K[z])!=c&&(_.Y2(K[z],c),K[z].value=c)}K=D.importNode(x.JSC$9384_form_,!0);K.target=
G;K.action=x.JSC$9384_form_.action;D.body.appendChild(K);z=bP("SELECT",x.JSC$9384_form_);y=bP("SELECT",K);c=0;for(var W=z.length;c<W;c++)for(var e=bP("OPTION",z[c]),Q=bP("OPTION",y[c]),p=0,V=e.length;p<V;p++)Q[p].selected=e[p].selected;z=bP("INPUT",x.JSC$9384_form_);y=bP("INPUT",K);c=0;for(W=z.length;c<W;c++)if(z[c].type=="file"&&z[c].value!=y[c].value){x.JSC$9384_form_.target=G;K=x.JSC$9384_form_;break}try{x.errorHandled_=!1,K.submit(),D.close(),_.hR&&setTimeout(x.testForFirefoxSilentError_.bind(x),
250)}catch(L){_.cA(D.getElementById(G),"load",x.onIframeLoaded_,!1,x),D.close(),ve(x,2)}};
wr.prototype.onIframeLoaded_=function(){_.cA(NM(this),"load",this.onIframeLoaded_,!1,this);try{var x=this.JSC$9384_iframe_?YDs(NM(this)):null;this.complete_=!0;this.JSC$9384_active_=!1;try{var G=x.body;this.lastContent_=G.textContent||G.innerText}catch(z){var D=1}var K;D||typeof this.errorChecker_!="function"||(K=this.errorChecker_(x))&&(D=4);D?ve(this,D):(this.success_=!0,this.JSC$9384_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),uX7(this))}catch(z){ve(this,1)}};
var ve=function(x,G){x.errorHandled_||(x.success_=!1,x.JSC$9384_active_=!1,x.complete_=!0,x.JSC$9384_lastErrorCode_=G,x.dispatchEvent("complete"),x.dispatchEvent("error"),uX7(x),x.errorHandled_=!0)},uX7=function(x){dWZ(x);
g_i(x);x.JSC$9384_form_=null;x.dispatchEvent("ready")},dWZ=function(x){var G=x.JSC$9384_iframe_;
G&&(G.onreadystatechange=null,G.onload=null,G.onerror=null,x.iframesForDisposal_.push(G));x.iframeDisposalTimer_&&(clearTimeout(x.iframeDisposalTimer_),x.iframeDisposalTimer_=null);_.hR?x.iframeDisposalTimer_=setTimeout(x.disposeIframes_.bind(x),2E3):x.disposeIframes_();x.JSC$9384_iframe_=null;x.iframeName_=null};
wr.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var x=this.iframesForDisposal_.pop();_.VF(x)}};
var g_i=function(x){x.JSC$9384_form_&&x.JSC$9384_form_==qM&&_.LX(x.JSC$9384_form_)},NM=function(x){return x.JSC$9384_iframe_?YDs(x.JSC$9384_iframe_).getElementById(x.iframeName_+"_inner"):null};
wr.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9384_active_){var x=this.JSC$9384_iframe_?YDs(NM(this)):null;x&&!Ih(x,"documentUri")?(_.cA(NM(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?ve(this,3):ve(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.Jy=function(x){return x=="\r"||x=="\n"||x==" "||x=="\t"};var wku;_.fZ=function(x){this.errorMessage_=null;this.result_=[];this.JSC$9386_buffer_="";this.stack_=[];this.JSC$9386_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!x||!x.deliverMessageAsRawString)};
wku={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};_.fZ.prototype.isInputValid=function(){return this.streamState_!=3};
_.fZ.prototype.done=function(){return this.streamState_===2};
var ty=function(x,G,D){x.streamState_=3;x.errorMessage_="The stream is broken @"+x.JSC$9386_pos_+"/"+D+". With input:\n"+G;throw Error(x.errorMessage_);};
_.fZ.prototype.acceptsBinaryInput=function(){return!1};
_.fZ.prototype.parse=function(x){function G(){for(;L<x.length;)if(_.Jy(x[L]))L++,y.JSC$9386_pos_++;else break;return L<Q}
function D(){for(var H;;){H=x[L++];if(!H)break;y.JSC$9386_pos_++;switch(y.state_){case e.INIT:H==="{"?y.state_=e.OBJECT_OPEN:H==="["?y.state_=e.ARRAY_OPEN:_.Jy(H)||ty(y,x,L);continue;case e.KEY_START:case e.OBJECT_OPEN:if(_.Jy(H))continue;if(y.state_===e.KEY_START)c.push(e.KEY_END);else if(H==="}"){z("{}");y.state_=K();continue}else c.push(e.OBJECT_END);H==='"'?y.state_=e.STRING:ty(y,x,L);continue;case e.KEY_END:case e.OBJECT_END:if(_.Jy(H))continue;H===":"?(y.state_===e.OBJECT_END&&(c.push(e.OBJECT_END),
y.depth_++),y.state_=e.VALUE):H==="}"?(y.depth_--,z(),y.state_=K()):H===","?(y.state_===e.OBJECT_END&&c.push(e.OBJECT_END),y.state_=e.KEY_START):ty(y,x,L);continue;case e.ARRAY_OPEN:case e.VALUE:if(_.Jy(H))continue;if(y.state_===e.ARRAY_OPEN)if(y.depth_++,y.state_=e.VALUE,H==="]"){y.depth_--;if(y.depth_===0){y.state_=e.ARRAY_END;return}z("[]");y.state_=K();continue}else c.push(e.ARRAY_END);H==='"'?y.state_=e.STRING:H==="{"?y.state_=e.OBJECT_OPEN:H==="["?y.state_=e.ARRAY_OPEN:H==="t"?y.state_=e.TRUE1:
H==="f"?y.state_=e.FALSE1:H==="n"?y.state_=e.NULL1:H!=="-"&&("0123456789".indexOf(H)!==-1?y.state_=e.NUM_DIGIT:ty(y,x,L));continue;case e.ARRAY_END:if(H===",")c.push(e.ARRAY_END),y.state_=e.VALUE,y.depth_===1&&(V=L);else if(H==="]"){y.depth_--;if(y.depth_===0)return;z();y.state_=K()}else if(_.Jy(H))continue;else ty(y,x,L);continue;case e.STRING:var O=L;a:for(;;){for(;y.unicodeCount_>0;)if(H=x[L++],y.unicodeCount_===4?y.unicodeCount_=0:y.unicodeCount_++,!H)break a;if(H==='"'&&!y.slashed_){y.state_=
K();break}if(H==="\\"&&!y.slashed_&&(y.slashed_=!0,H=x[L++],!H))break;if(y.slashed_)if(y.slashed_=!1,H==="u"&&(y.unicodeCount_=1),H=x[L++])continue;else break;W.lastIndex=L;H=W.exec(x);if(!H){L=x.length+1;break}L=H.index+1;H=x[H.index];if(!H)break}y.JSC$9386_pos_+=L-O;continue;case e.TRUE1:if(!H)continue;H==="r"?y.state_=e.TRUE2:ty(y,x,L);continue;case e.TRUE2:if(!H)continue;H==="u"?y.state_=e.TRUE3:ty(y,x,L);continue;case e.TRUE3:if(!H)continue;H==="e"?y.state_=K():ty(y,x,L);continue;case e.FALSE1:if(!H)continue;
H==="a"?y.state_=e.FALSE2:ty(y,x,L);continue;case e.FALSE2:if(!H)continue;H==="l"?y.state_=e.FALSE3:ty(y,x,L);continue;case e.FALSE3:if(!H)continue;H==="s"?y.state_=e.FALSE4:ty(y,x,L);continue;case e.FALSE4:if(!H)continue;H==="e"?y.state_=K():ty(y,x,L);continue;case e.NULL1:if(!H)continue;H==="u"?y.state_=e.NULL2:ty(y,x,L);continue;case e.NULL2:if(!H)continue;H==="l"?y.state_=e.NULL3:ty(y,x,L);continue;case e.NULL3:if(!H)continue;H==="l"?y.state_=K():ty(y,x,L);continue;case e.NUM_DECIMAL_POINT:H===
"."?y.state_=e.NUM_DIGIT:ty(y,x,L);continue;case e.NUM_DIGIT:if("0123456789.eE+-".indexOf(H)!==-1)continue;else L--,y.JSC$9386_pos_--,y.state_=K();continue;default:ty(y,x,L)}}}
function K(){var H=c.pop();return H!=null?H:e.VALUE}
function z(H){y.depth_>1||(H||(H=V===-1?y.JSC$9386_buffer_+x.substring(p,L):x.substring(V,L)),y.deliverMessageAsRawString_?y.result_.push(H):y.result_.push(JSON.parse(H)),V=L)}
for(var y=this,c=y.stack_,W=y.stringInputPattern_,e=wku,Q=x.length,p=0,V=-1,L=0;L<Q;)switch(y.streamState_){case 3:return ty(y,x,L),null;case 2:return G()&&ty(y,x,L),null;case 0:if(G()){var r=x[L++];y.JSC$9386_pos_++;if(r==="["){y.streamState_=1;p=L;y.state_=e.ARRAY_OPEN;continue}else ty(y,x,L)}return null;case 1:return D(),y.depth_===0&&y.state_==e.ARRAY_END?(y.streamState_=2,y.JSC$9386_buffer_=x.substring(L)):y.JSC$9386_buffer_=V===-1?y.JSC$9386_buffer_+x.substring(p):x.substring(V),y.result_.length>
0?(r=y.result_,y.result_=[],r):null}return null};_.tR(_.xm,rx);Gy.prototype.getValue=function(){return this.JSC$9394_value_};
Gy.prototype.clone=function(){return new Gy(this.JSC$9394_key_,this.JSC$9394_value_)};var ky=function(x){this.nodes_=[];if(x)a:{if(x instanceof ky){var G=x.getKeys();x=x.getValues();if(this.getCount()<=0){for(var D=this.nodes_,K=0;K<G.length;K++)D.push(new Gy(G[K],x[K]));break a}}else G=_.YS.getKeys(x),x=_.YS.getValues(x);for(D=0;D<G.length;D++)this.insert(G[D],x[D])}};
_.a=ky.prototype;_.a.insert=function(x,G){var D=this.nodes_;D.push(new Gy(x,G));x=D.length-1;G=this.nodes_;for(D=G[x];x>0;){var K=x-1>>1;if(G[K].JSC$9394_key_>D.JSC$9394_key_)G[x]=G[K],x=K;else break}G[x]=D};
_.a.remove=function(){var x=this.nodes_,G=x.length,D=x[0];if(!(G<=0)){if(G==1)x.length=0;else{x[0]=x.pop();x=0;G=this.nodes_;for(var K=G.length,z=G[x];x<K>>1;){var y=x*2+1,c=x*2+2;y=c<K&&G[c].JSC$9394_key_<G[y].JSC$9394_key_?c:y;if(G[y].JSC$9394_key_>z.JSC$9394_key_)break;G[x]=G[y];x=y}G[x]=z}return D.getValue()}};
_.a.peek=function(){var x=this.nodes_;if(x.length!=0)return x[0].getValue()};
_.a.getValues=function(){for(var x=this.nodes_,G=[],D=x.length,K=0;K<D;K++)G.push(x[K].getValue());return G};
_.a.getKeys=function(){for(var x=this.nodes_,G=[],D=x.length,K=0;K<D;K++)G.push(x[K].JSC$9394_key_);return G};
_.a.containsValue=function(x){return this.nodes_.some(function(G){return G.getValue()==x})};
_.a.containsKey=function(x){return this.nodes_.some(function(G){return G.JSC$9394_key_==x})};
_.a.clone=function(){return new ky(this)};
_.a.getCount=function(){return this.nodes_.length};
_.a.isEmpty=function(){return this.nodes_.length===0};
_.a.clear=function(){this.nodes_.length=0};_.Pe=function(x,G){this.JSC$9400_map_={};this.JSC$9400_keys_=[];this.version_=this.size=0;var D=arguments.length;if(D>1){if(D%2)throw Error("oa");for(var K=0;K<D;K+=2)this.set(arguments[K],arguments[K+1])}else x&&this.addAll(x)};
_.a=_.Pe.prototype;_.a.getCount=function(){return this.size};
_.a.getValues=function(){EB(this);for(var x=[],G=0;G<this.JSC$9400_keys_.length;G++)x.push(this.JSC$9400_map_[this.JSC$9400_keys_[G]]);return x};
_.a.getKeys=function(){EB(this);return this.JSC$9400_keys_.concat()};
_.a.containsKey=function(x){return this.has(x)};
_.a.has=function(x){return hy(this.JSC$9400_map_,x)};
_.a.containsValue=function(x){for(var G=0;G<this.JSC$9400_keys_.length;G++){var D=this.JSC$9400_keys_[G];if(hy(this.JSC$9400_map_,D)&&this.JSC$9400_map_[D]==x)return!0}return!1};
_.a.equals=function(x,G){if(this===x)return!0;if(this.size!=x.getCount())return!1;G=G||qAu;EB(this);for(var D,K=0;D=this.JSC$9400_keys_[K];K++)if(!G(this.get(D),x.get(D)))return!1;return!0};
var qAu=function(x,G){return x===G};
_.Pe.prototype.isEmpty=function(){return this.size==0};
_.Pe.prototype.clear=function(){this.JSC$9400_map_={};this.version_=this.size=this.JSC$9400_keys_.length=0};
_.Pe.prototype.remove=function(x){return this.delete(x)};
_.Pe.prototype.delete=function(x){return hy(this.JSC$9400_map_,x)?(delete this.JSC$9400_map_[x],--this.size,this.version_++,this.JSC$9400_keys_.length>2*this.size&&EB(this),!0):!1};
var EB=function(x){if(x.size!=x.JSC$9400_keys_.length){for(var G=0,D=0;G<x.JSC$9400_keys_.length;){var K=x.JSC$9400_keys_[G];hy(x.JSC$9400_map_,K)&&(x.JSC$9400_keys_[D++]=K);G++}x.JSC$9400_keys_.length=D}if(x.size!=x.JSC$9400_keys_.length){G={};for(K=D=0;D<x.JSC$9400_keys_.length;){var z=x.JSC$9400_keys_[D];hy(G,z)||(x.JSC$9400_keys_[K++]=z,G[z]=1);D++}x.JSC$9400_keys_.length=K}};
_.a=_.Pe.prototype;_.a.get=function(x,G){return hy(this.JSC$9400_map_,x)?this.JSC$9400_map_[x]:G};
_.a.set=function(x,G){hy(this.JSC$9400_map_,x)||(this.size+=1,this.JSC$9400_keys_.push(x),this.version_++);this.JSC$9400_map_[x]=G};
_.a.addAll=function(x){if(x instanceof _.Pe)for(var G=x.getKeys(),D=0;D<G.length;D++)this.set(G[D],x.get(G[D]));else for(G in x)this.set(G,x[G])};
_.a.forEach=function(x,G){for(var D=this.getKeys(),K=0;K<D.length;K++){var z=D[K],y=this.get(z);x.call(G,y,z,this)}};
_.a.clone=function(){return new _.Pe(this)};
_.a.transpose=function(){for(var x=new _.Pe,G=0;G<this.JSC$9400_keys_.length;G++){var D=this.JSC$9400_keys_[G];x.set(this.JSC$9400_map_[D],D)}return x};
_.a.keys=function(){return V_8(this.__iterator__(!0)).toEs6()};
_.a.values=function(){return V_8(this.__iterator__(!1)).toEs6()};
_.a.entries=function(){var x=this;return jZJ(this.keys(),function(G){return[G,x.get(G)]})};
_.a.__iterator__=function(x){EB(this);var G=0,D=this.version_,K=this,z=new tx;z.next=function(){if(D!=K.version_)throw Error("ne");if(G>=K.JSC$9400_keys_.length)return kJ;var y=K.JSC$9400_keys_[G++];return P$(x?y:K.JSC$9400_map_[y])};
return z};
var hy=function(x,G){return Object.prototype.hasOwnProperty.call(x,G)};var v_o=function(){this.JSC$9403_map_=new _.Pe;this.JSC$9403_head_=new NKq("");this.JSC$9403_head_.next=this.JSC$9403_head_.prev=this.JSC$9403_head_},JrE=function(x,G){if(G=x.JSC$9403_map_.get(G))G.remove(),x.insert_(G);
return G};
_.a=v_o.prototype;_.a.get=function(x,G){return(x=JrE(this,x))?x.value:G};
_.a.set=function(x,G){var D=JrE(this,x);D?D.value=G:(D=new NKq(x,G),this.JSC$9403_map_.set(x,D),this.insert_(D))};
_.a.peek=function(){return this.JSC$9403_head_.next.value};
_.a.shift=function(){return f2J(this,this.JSC$9403_head_.next)};
_.a.pop=function(){return f2J(this,this.JSC$9403_head_.prev)};
_.a.remove=function(x){return(x=this.JSC$9403_map_.get(x))?(this.removeNode(x),!0):!1};
_.a.removeNode=function(x){x.remove();this.JSC$9403_map_.remove(x.key)};
_.a.getCount=function(){return this.JSC$9403_map_.getCount()};
_.a.isEmpty=function(){return this.JSC$9403_map_.isEmpty()};
_.a.getKeys=function(){return this.map(function(x,G){return G})};
_.a.getValues=function(){return this.map(function(x){return x})};
_.a.contains=function(x){return this.some(function(G){return G==x})};
_.a.containsKey=function(x){return this.JSC$9403_map_.containsKey(x)};
_.a.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9403_head_.prev)};
_.a.forEach=function(x,G){for(var D=this.JSC$9403_head_.next;D!=this.JSC$9403_head_;D=D.next)x.call(G,D.value,D.key,this)};
_.a.map=function(x,G){for(var D=[],K=this.JSC$9403_head_.next;K!=this.JSC$9403_head_;K=K.next)D.push(x.call(G,K.value,K.key,this));return D};
_.a.some=function(x,G){for(var D=this.JSC$9403_head_.next;D!=this.JSC$9403_head_;D=D.next)if(x.call(G,D.value,D.key,this))return!0;return!1};
_.a.every=function(x,G){for(var D=this.JSC$9403_head_.next;D!=this.JSC$9403_head_;D=D.next)if(!x.call(G,D.value,D.key,this))return!1;return!0};
_.a.insert_=function(x){x.next=this.JSC$9403_head_.next;x.prev=this.JSC$9403_head_;this.JSC$9403_head_.next=x;for(x.next.prev=x;this.getCount()>100;)this.removeNode(this.JSC$9403_head_.prev)};
var f2J=function(x,G){x.JSC$9403_head_!=G&&x.removeNode(G);return G.value},NKq=function(x,G){this.key=x;
this.value=G};
NKq.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var t50=function(){ky.apply(this,arguments)};
_.m(t50,ky);t50.prototype.enqueue=function(x,G){this.insert(x,G)};var kmJ=function(){var x=Error();x.name="SecurityError";throw x;},zOD=function(){return{get opener(){return null},
get closed(){return!0},get location(){kmJ()},get document(){kmJ()},postMessage:function(){},
close:function(){},
focus:function(){}}};var jpQ={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 ARP={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 P7E={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(ARP).join("|");var E_Z=function(){function x(W){W.substr(-1)!==";"&&(W+=";");return c(W)}
for(var G=Object.keys(P7E).sort(X1L),D=Object.keys(ARP).sort(X1L),K=0,z=0;K<D.length;K++)G[z]===D[K]?(D[K]+=";?",z++):D[K]+=";";var y=new RegExp("&(?:"+D.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),c=UtP();return function(W){return String(W).replace(y,x)}}();/*

 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 hDo={};var xBi=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"),GUo=/[\\&]/,DB0=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),Kgq=RegExp('[&<>"]',"g"),zS8=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),aDZ=function(x){return x.charCodeAt(0)===92?x.charAt(1):E_Z(x)},oAu=function(x){return GUo.test(x)?x.replace(DB0,aDZ):x},ySi=function(x){try{var G,D="";
if(typeof z!=="string"){var K=z;var z=";/?:@&=+$,-_.!~*'()#"}typeof K==="undefined"&&(K=!0);var y,c=hDo[z];if(c)var W=c;else{c=hDo[z]=[];for(y=0;y<128;y++){var e=String.fromCharCode(y);/^[0-9a-z]$/i.test(e)?c.push(e):c.push("%"+("0"+y.toString(16).toUpperCase()).slice(-2))}for(y=0;y<z.length;y++)c[z.charCodeAt(y)]=z[y];W=c}var Q=0;for(G=x.length;Q<G;Q++){var p=x.charCodeAt(Q);if(K&&p===37&&Q+2<G&&/^[0-9a-f]{2}$/i.test(x.slice(Q+1,Q+3)))D+=x.slice(Q,Q+3),Q+=2;else if(p<128)D+=W[p];else if(p>=55296&&
p<=57343){if(p>=55296&&p<=56319&&Q+1<G){var V=x.charCodeAt(Q+1);if(V>=56320&&V<=57343){D+=encodeURIComponent(x[Q]+x[Q+1]);Q++;continue}}D+="%EF%BF%BD"}else D+=encodeURIComponent(x[Q])}return D}catch(L){return x}},lDq=function(x){switch(x){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return x}},xo=function(x,G){return Kgq.test(x)?G?x.replace(zS8,lDq):x.replace(Kgq,lDq):x};/*

 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 Gb;if(String.fromCodePoint)Gb=function(x){try{return String.fromCodePoint(x)}catch(G){if(G instanceof RangeError)return String.fromCharCode(65533);throw G;}};
else{var cS8=String.fromCharCode,TAo=Math.floor;Gb=function(){var x=[],G=-1,D=arguments.length;if(!D)return"";for(var K="";++G<D;){var z=Number(arguments[G]);if(!isFinite(z)||z<0||z>1114111||TAo(z)!==z)return String.fromCharCode(65533);if(z<=65535)x.push(z);else{z-=65536;var y=(z>>10)+55296;z=z%1024+56320;x.push(y,z)}if(G+1===D||x.length>16384)K+=cS8.apply(null,x),x.length=0}return K}};var Wg8=function(x){this.root=this.current=x;this.entering=!0};
Wg8.prototype.next=function(){var x=this.current,G=this.entering;if(x===null)return null;a:switch(x._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 D=!0;break a;default:D=!1}G&&D?x._firstChild?(this.current=x._firstChild,this.entering=!0):this.entering=!1:x===this.root?this.current=null:x._next===null?(this.current=
x._parent,this.entering=!1):(this.current=x._next,this.entering=!0);return{entering:G,node:x}};
var oZ=function(x,G){this._type=x;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=G;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};
oZ.prototype.appendChild=function(x){Dm(x);x._parent=this;this._lastChild?(this._lastChild._next=x,x._prev=this._lastChild):this._firstChild=x;this._lastChild=x};
var Dm=function(x){x._prev?x._prev._next=x._next:x._parent&&(x._parent._firstChild=x._next);x._next?x._next._prev=x._prev:x._parent&&(x._parent._lastChild=x._prev);x._parent=null;x._next=null;x._prev=null},eSJ=function(x,G){Dm(G);
G._next=x._next;G._next&&(G._next._prev=G);G._prev=x;x._next=G;G._parent=x._parent;G._next||(G._parent._lastChild=G)};
oZ.prototype.insertBefore=function(x){Dm(x);x._prev=this._prev;x._prev&&(x._prev._next=x);x._next=this;this._prev=x;x._parent=this._parent;x._prev||(x._parent._firstChild=x)};
_.Nq.Object.defineProperties(oZ.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(x){this._literal=x}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(x){this._destination=x}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(x){this._title=x}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(x){this._info=x}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(x){this._level=x}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(x){this._listData.type=x}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(x){this._listData.tight=x}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(x){this._listData.start=x}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(x){this._onEnter=x}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(x){this._onExit=x}}});var Rth=/[ \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,
S$h={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 Zts=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]/),
MTq=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),Qni=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),pis=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),VTs=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),bth=/`+/,LgE=/^`+/,BAZ=/\.\.\./g,rSi=/--+/g,sns=/^<([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])?)*)>/,
Y4s=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,mB7=/^ *(?:\n *)?/,HtZ=/^[ \t\n\x0b\x0c\x0d]/,$Bk=/[ \t\n\x0b\x0c\x0d]+/g,Fg7=/^\s/,Cok=/ *$/,IDi=/^ */,jn9=/^ *(?:\n|$)/,Ot0=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),Xik=/^[^\n`\[\]\\!<&*_'"]+/m,Kg=function(x){var G=new oZ("text");G._literal=x;return G},zb=function(x){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=x||{}};
zb.prototype.match=function(x){x=x.exec(this.subject.slice(this.pos));if(x===null)return null;this.pos+=x.index+x[0].length;return x[0]};
zb.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var a8=function(x){x.match(mB7);return!0},ASq=function(x,G,D){var K=0;
var z=x.pos;if(G===39||G===34)K++,x.pos++;else for(;x.peek()===G;)K++,x.pos++;if(K===0)K=null;else{var y=z===0?"\n":x.subject.charAt(z-1);var c=x.peek();c=c===-1?"\n":Gb(c);var W=Fg7.test(c);c=Zts.test(c);var e=Fg7.test(y);var Q=Zts.test(y);y=!W&&!(c&&!e&&!Q);W=!e&&!(Q&&!W&&!c);G===95?(e=y&&(!W||Q),c=W&&(!y||c)):(e=G===39||G===34?y&&!W:y,c=W);x.pos=z;K={numdelims:K,can_open:e,can_close:c}}if(!K)return!1;z=K.numdelims;c=x.pos;x.pos+=z;c=G===39?"\u2019":G===34?"\u201c":x.subject.slice(c,x.pos);c=Kg(c);
D.appendChild(c);x.delimiters={cc:G,numdelims:z,origdelims:z,node:c,previous:x.delimiters,next:null,can_open:K.can_open,can_close:K.can_close};x.delimiters.previous!==null&&(x.delimiters.previous.next=x.delimiters);return!0},UB7=function(x,G){G.previous!==null&&(G.previous.next=G.next);
G.next===null?x.delimiters=G.previous:G.next.previous=G.previous},RSs=function(x,G){var D,K,z=[],y=!1;
z[95]=G;z[42]=G;z[39]=G;z[34]=G;for(D=x.delimiters;D!==null&&D.previous!==G;)D=D.previous;for(;D!==null;){var c=D.cc;if(D.can_close){var W=D.previous;for(K=!1;W!==null&&W!==G&&W!==z[c];){y=(D.can_open||W.can_close)&&(W.origdelims+D.origdelims)%3===0;if(W.cc===D.cc&&W.can_open&&!y){K=!0;break}W=W.previous}var e=D;if(c===42||c===95)if(K){var Q=D.numdelims>=2&&W.numdelims>=2?2:1;var p=W.node;var V=D.node;W.numdelims-=Q;D.numdelims-=Q;p._literal=p._literal.slice(0,p._literal.length-Q);V._literal=V._literal.slice(0,
V._literal.length-Q);var L=new oZ(Q===1?"emph":"strong");for(Q=p._next;Q&&Q!==V;){var r=Q._next;Dm(Q);L.appendChild(Q);Q=r}eSJ(p,L);Q=W;r=D;Q.next!==r&&(Q.next=r,r.previous=Q);W.numdelims===0&&(Dm(p),UB7(x,W));D.numdelims===0&&(Dm(V),W=D.next,UB7(x,D),D=W)}else D=D.next;else c===39?(D.node._literal="\u2019",K&&(W.node._literal="\u2018"),D=D.next):c===34&&(D.node._literal="\u201d",K&&(W.node.literal="\u201c"),D=D.next);K||y||(z[c]=e.previous,e.can_open||UB7(x,e))}else D=D.next}for(;x.delimiters!==
null&&x.delimiters!==G;)UB7(x,x.delimiters)},S4s=function(x){x=x.match(MTq);
return x===null?null:oAu(x.substr(1,x.length-2))},nAq=function(x){var G=x.match(Qni);
if(G===null){G=x.pos;for(var D=0,K;(K=x.peek())!==-1;)if(K===92)x.pos+=1,x.peek()!==-1&&(x.pos+=1);else if(K===40)x.pos+=1,D+=1;else if(K===41)if(D<1)break;else x.pos+=1,--D;else if(HtZ.exec(Gb(K))!==null)break;else x.pos+=1;G=x.subject.substr(G,x.pos-G);return ySi(oAu(G))}return ySi(oAu(G.substr(1,G.length-2)))},itq=function(x){x=x.match(Ot0);
return x===null||x.length>1001?0:x.length},gA0=function(x,G,D,K){x.brackets!==null&&(x.brackets.bracketAfter=!0);
x.brackets={node:G,previous:x.brackets,previousDelimiter:x.delimiters,index:D,image:K,active:!0}},u5u=function(x,G){var D;
return(D=x.match(Xik))?(x.options.smart?G.appendChild(Kg(D.replace(BAZ,"\u2026").replace(rSi,function(K){var z=0,y=0;K.length%3===0?y=K.length/3:K.length%2===0?z=K.length/2:K.length%3===2?(z=1,y=(K.length-2)/3):(z=2,y=(K.length-4)/3);K="";var c;for(c=0;c<y;c++)K+="\u2014";for(c=0;c<z;c++)K+="\u2013";return K}))):G.appendChild(Kg(D)),!0):!1},dBi=function(x,G,D){x.subject=G;
x.pos=0;G=x.pos;var K=itq(x);if(K===0)return 0;var z=x.subject.substr(0,K);if(x.peek()===58)x.pos++;else return x.pos=G,0;a8(x);K=nAq(x);if(K===null||K.length===0)return x.pos=G,0;var y=x.pos;a8(x);var c=S4s(x);c===null&&(c="",x.pos=y);var W=!0;x.match(jn9)===null&&(c===""?W=!1:(c="",x.pos=y,W=x.match(jn9)!==null));if(!W)return x.pos=G,0;z=n1L(z);if(z==="")return x.pos=G,0;D[z]||(D[z]={destination:K,title:c});return x.pos-G},wi8=function(x,G){var D,K=x.peek();
if(K===-1)return!1;switch(K){case 10:x.pos+=1;if((D=G._lastChild)&&D.type==="text"&&D._literal[D._literal.length-1]===" "){var z=D._literal[D._literal.length-2]===" ";D._literal=D._literal.replace(Cok,"");G.appendChild(new oZ(z?"linebreak":"softbreak"))}else G.appendChild(new oZ("softbreak"));x.match(IDi);D=!0;break;case 92:D=x.subject;x.pos+=1;x.peek()===10?(x.pos+=1,D=new oZ("linebreak"),G.appendChild(D)):pis.test(D.charAt(x.pos))?(G.appendChild(Kg(D.charAt(x.pos))),x.pos+=1):G.appendChild(Kg("\\"));
D=!0;break;case 96:a:if(D=x.match(LgE),D===null)D=!1;else{z=x.pos;for(var y;(y=x.match(bth))!==null;)if(y===D){y=new oZ("code");y._literal=x.subject.slice(z,x.pos-D.length).trim().replace($Bk," ");G.appendChild(y);D=!0;break a}x.pos=z;G.appendChild(Kg(D));D=!0}break;case 42:case 95:D=ASq(x,K,G);break;case 39:case 34:D=x.options.smart&&ASq(x,K,G);break;case 91:D=x.pos;x.pos+=1;z=Kg("[");G.appendChild(z);gA0(x,z,D,!1);D=!0;break;case 33:D=x.pos;x.pos+=1;x.peek()===91?(x.pos+=1,z=Kg("!["),G.appendChild(z),
gA0(x,z,D+1,!0)):G.appendChild(Kg("!"));D=!0;break;case 93:var c,W=!1,e;x.pos+=1;var Q=x.pos;z=x.brackets;if(z===null)G.appendChild(Kg("]"));else if(z.active){D=z.image;var p=x.pos;x.peek()===40&&(x.pos++,a8(x)&&(y=nAq(x))!==null&&a8(x)&&(HtZ.test(x.subject.charAt(x.pos-1))&&(c=S4s(x)),1)&&a8(x)&&x.peek()===41?(x.pos+=1,W=!0):x.pos=p);if(!W){var V=x.pos,L=itq(x);L>2?e=x.subject.slice(V,V+L):z.bracketAfter||(e=x.subject.slice(z.index,Q));L===0&&(x.pos=p);e&&(e=x.refmap[n1L(e)])&&(y=e.destination,c=
e.title,W=!0)}if(W){Q=new oZ(D?"image":"link");Q._destination=y;Q._title=c||"";for(y=z.node._next;y;)c=y._next,Dm(y),Q.appendChild(y),y=c;G.appendChild(Q);RSs(x,z.previousDelimiter);x.brackets=x.brackets.previous;Dm(z.node);if(!D)for(z=x.brackets;z!==null;)z.image||(z.active=!1),z=z.previous}else x.brackets=x.brackets.previous,x.pos=Q,G.appendChild(Kg("]"))}else G.appendChild(Kg("]")),x.brackets=x.brackets.previous;D=!0;break;case 60:(D=x.match(sns))?(D=D.slice(1,D.length-1),z=new oZ("link"),z._destination=
ySi("mailto:"+D),z._title="",z.appendChild(Kg(D)),G.appendChild(z),D=!0):(D=x.match(Y4s))?(D=D.slice(1,D.length-1),z=new oZ("link"),z._destination=ySi(D),z._title="",z.appendChild(Kg(D)),G.appendChild(z),D=!0):D=!1;D||(D=x.match(xBi),D===null?D=!1:(z=new oZ("html_inline"),z._literal=D,G.appendChild(z),D=!0));break;case 38:(D=x.match(VTs))?(G.appendChild(Kg(E_Z(D))),D=!0):D=!1;break;default:D=u5u(x,G)}D||(x.pos+=1,G.appendChild(Kg(Gb(K))));return!0};
zb.prototype.parseInlines=function(x){this.subject=x._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;wi8(this,x););x._string_content=null;RSs(this,null)};
zb.prototype.parse=zb.prototype.parseInlines;var q49=[/./,/^<(?: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")],NA8=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],vAJ=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,JS9=/^[#`~*+_=<>0-9-\|]|\|/,fDE=/[^ \t\f\v\r\n]/,tTE=/^[*+-]/,kUk=/^(\d{1,9})([.)])/,Poi=/^#{1,6}(?:[ \t]+|$)/,EAs=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,hSo=/^(?:`{3,}|~{3,})(?= *$)/,xvZ=/^(?:=+|-+)[ \t]*$/,GaZ=/\r\n|\n|\r/,g1f=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,um$=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,Dvk={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(x){return x!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(x,G){for(x=G._firstChild;x;){if(i6h(x)&&x._next){G._listData.tight=!1;break}for(var D=x._firstChild;D;){if(i6h(D)&&(x._next||D._next)){G._listData.tight=!1;break}D=D._next}x=x._next}},
canContain:function(x){return x==="item"},
acceptsLines:!1},block_quote:{continue:function(x){var G=x.currentLine;if(x.indented||KC(G,x.nextNonspace)!==62)return 1;o8(x);ya(x,1,!1);Du(KC(G,x.offset))&&ya(x,1,!0);return 0},
finalize:function(){},
canContain:function(x){return x!=="item"},
acceptsLines:!1},item:{continue:function(x,G){if(x.blank){if(G._firstChild==null)return 1;o8(x)}else if(x.indent>=G._listData.markerOffset+G._listData.padding)ya(x,G._listData.markerOffset+G._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(x){return x!=="item"&&!dtf(x)},
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(x,G){var D=x.currentLine,K=x.indent;if(G._isFenced){if((K=K<=3&&D.charAt(x.nextNonspace)===G._fenceChar&&D.slice(x.nextNonspace).match(hSo))&&K[0].length>=G._fenceLength)return x.finalize(G,x.lineNumber),2;for(G=G._fenceOffset;G>0&&Du(KC(D,x.offset));)ya(x,1,!0),G--}else if(K>=4)ya(x,4,!0);else if(x.blank)o8(x);else return 1;return 0},
finalize:function(x,G){if(G._isFenced){var D=G._string_content,K=D.indexOf("\n");x=D.slice(0,K);D=D.slice(K+1);G.info=oAu(x.trim());G._literal=D}else G._literal=G._string_content.replace(/(\n *)+$/,"\n");G._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(x,G){return!x.blank||G._htmlBlockType!==6&&G._htmlBlockType!==7?0:1},
finalize:function(x,G){G._literal=G._string_content.replace(/(\n *)+$/,"");G._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(x){return x.blank?1:0},
finalize:function(x,G){for(var D,K=!1;KC(G._string_content,0)===91&&(D=dBi(x.inlineParser,G._string_content,x.refmap));)G._string_content=G._string_content.slice(D),K=!0;K&&!fDE.test(G._string_content)&&Dm(G)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(x){return aZ(x.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(x){return x=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(x,G){if(!G._rowIsDelimiter){x=G._isHeader?"th":"td";for(var D=G._parent._tableColumns,K=G._string_content,z=0,y="",c,W=G._sourcepos[0][0];z<K.length;){switch(K[z]){case "|":c&&(c._string_content=y.trim(),y="",c=null,D--,D<=0&&(z=K.length));break;default:if(!c){c=new oZ(x,[[W,z],[W,z]]);var e=G._parent._columnAlignment,Q=G._parent._tableColumns-D;e&&Q<=e.length&&Q>=0&&(c._alignment=e[Q]);G.appendChild(c)}y+=K[z];c._sourcepos[1][1]=z}z++}c&&(c._string_content=y.trim());G._string_content=
""}},
canContain:function(x){return x!=="row"},
acceptsLines:!1}},Ky9=[function(x){if(x.indented||KC(x.currentLine,x.nextNonspace)!==62)return 0;o8(x);ya(x,1,!1);Du(KC(x.currentLine,x.offset))&&ya(x,1,!0);lK(x);x.addChild("block_quote",x.nextNonspace);return 1},
function(x){var G;if(!x.indented&&(G=x.currentLine.slice(x.nextNonspace).match(Poi))){o8(x);ya(x,G[0].length,!1);lK(x);var D=x.addChild("heading",x.nextNonspace);D.level=G[0].trim().length;D._string_content=x.currentLine.slice(x.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");ya(x,x.currentLine.length-x.offset);return 2}return 0},
function(x){var G;if(!x.indented&&(G=x.currentLine.slice(x.nextNonspace).match(EAs))){var D=G[0].length;lK(x);var K=x.addChild("code_block",x.nextNonspace);K._isFenced=!0;K._fenceLength=D;K._fenceChar=G[0][0];K._fenceOffset=x.indent;o8(x);ya(x,D,!1);return 2}return 0},
function(x,G){if(!x.indented&&KC(x.currentLine,x.nextNonspace)===60){var D=x.currentLine.slice(x.nextNonspace),K;for(K=1;K<=7;K++)if(q49[K].test(D)&&(K<7||G.type!=="paragraph"))return lK(x),x.addChild("html_block",x.offset)._htmlBlockType=K,2}return 0},
function(x,G){var D;if(!x.indented&&G.type==="paragraph"&&(D=x.currentLine.slice(x.nextNonspace).match(xvZ))){lK(x);var K=new oZ("heading",G.sourcepos);K.level=D[0][0]==="="?1:2;K._string_content=G._string_content;eSJ(G,K);Dm(G);x.tip=K;ya(x,x.currentLine.length-x.offset,!1);return 2}return 0},
function(x){return!x.indented&&vAJ.test(x.currentLine.slice(x.nextNonspace))?(lK(x),x.addChild("thematic_break",x.nextNonspace),ya(x,x.currentLine.length-x.offset,!1),2):0},
function(x,G){var D,K;if(!(K=x.indented&&G.type!=="list")){a:{var z=G,y=x.currentLine.slice(x.nextNonspace);K={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:x.indent};if(D=y.match(tTE))K.type="bullet",K.bulletChar=D[0][0];else{if(!(D=y.match(kUk))||z.type==="paragraph"&&D[1]!=="1"){D=null;break a}K.type="ordered";K.start=parseInt(D[1],10);K.delimiter=D[2]}var c=KC(x.currentLine,x.nextNonspace+D[0].length);if(c!==-1&&c!==9&&c!==32||z.type==="paragraph"&&!x.currentLine.slice(x.nextNonspace+
D[0].length).match(fDE))D=null;else{o8(x);ya(x,D[0].length,!0);z=x.column;y=x.offset;do ya(x,1,!0),c=KC(x.currentLine,x.offset);while(x.column-z<5&&Du(c));c=KC(x.currentLine,x.offset)===-1;var W=x.column-z;W>=5||W<1||c?(K.padding=D[0].length+1,x.column=z,x.offset=y,Du(KC(x.currentLine,x.offset))&&ya(x,1,!0)):K.padding=D[0].length+W;D=K}}K=!D}if(K)return 0;lK(x);(K=x.tip.type!=="list")||(G=G._listData,K=!(G.type===D.type&&G.delimiter===D.delimiter&&G.bulletChar===D.bulletChar));K&&(G=x.addChild("list",
x.nextNonspace),G._listData=D);G=x.addChild("item",x.nextNonspace);G._listData=D;return 1},
function(x){var G;return((G=x.options.shouldParseIndentAsCodeBlock)!=null?G:1)&&x.indented&&x.tip.type!=="paragraph"&&!x.blank?(ya(x,4,!0),lK(x),x.addChild("code_block",x.offset),2):0},
function(x,G){var D=aZ(x.currentLine),K=aZ(x.lookahead);if(D!==0&&K<0&&Math.abs(D)==Math.abs(K)&&!dtf(G.type)){lK(x);G=x.addChild("table",x.nextNonspace);G._tableRows=1;G._tableColumns=Math.abs(D);D=x.lookahead;if(um$.test(D)){K=[];for(var z=0,y=!1,c=0,W=void 0;z<D.length;){var e=c>=3;switch(D[z]){case "-":c++;break;case "|":y&&(K.push(W),W=void 0,c=0);y=!0;break;case ":":W||e||(W="left"),!W&&e&&(W="right"),W==="left"&&e&&(W="center")}z++}D=K}else D=void 0;G._columnAlignment=D;G=x.addChild("row",
x.nextNonspace);G._isHeader=!0;ya(x,x.currentLine.length-x.offset,!1);G._string_content=x.currentLine;return 1}return 0},
function(x,G){if(G.type=="table"&&aZ(x.currentLine)!==0){lK(x);var D=G;G=x.addChild("row",x.nextNonspace);aZ(x.currentLine)<0?G._rowIsDelimiter=!0:D._tableRows+=1;ya(x,x.currentLine.length-x.offset,!1);G._string_content=x.currentLine;return 2}return 0}],F2L=function(){var x={shouldParseIndentAsCodeBlock:!1};
x=x===void 0?{}:x;this.lastMatchedContainer=this.doc=w1E();this.refmap={};this.lastLineLength=0;this.inlineParser=new zb(x);this.options=x;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=Dvk;this.blockStarts=Ky9},z$h=function(x){x.partiallyConsumedTab&&(x.offset+=1,x.tip._string_content+=" ".repeat(4-x.column%
4));
x.tip._string_content+=x.currentLine.slice(x.offset)+"\n"};
F2L.prototype.addChild=function(x,G){for(;!this.blocks[this.tip.type].canContain(x);)this.finalize(this.tip,this.lineNumber-1);x=new oZ(x,[[this.lineNumber,G+1],[0,0]]);x._string_content="";this.tip.appendChild(x);return this.tip=x};
var lK=function(x){if(!x.allClosed){for(;x.oldtip!==x.lastMatchedContainer;){var G=x.oldtip._parent;x.finalize(x.oldtip,x.lineNumber-1);x.oldtip=G}x.allClosed=!0}},ya=function(x,G,D){for(var K=x.currentLine,z,y;G>0&&(y=K[x.offset]);)y==="\t"?(z=4-x.column%4,D?(x.partiallyConsumedTab=z>G,z=z>G?G:z,x.column+=z,x.offset+=x.partiallyConsumedTab?0:1,G-=z):(x.partiallyConsumedTab=!1,x.column+=z,x.offset+=1,--G)):(x.partiallyConsumedTab=!1,x.offset+=1,x.column+=1,--G)},o8=function(x){x.offset=x.nextNonspace;
x.column=x.nextNonspaceColumn;x.partiallyConsumedTab=!1},a6E=function(x){for(var G=x.currentLine,D=x.offset,K=x.column,z;(z=G.charAt(D))!=="";)if(z===" ")D++,K++;
else if(z==="\t")D++,K+=4-K%4;else break;x.blank=z==="\n"||z==="\r"||z==="";x.nextNonspace=D;x.nextNonspaceColumn=K;x.indent=x.nextNonspaceColumn-x.column;x.indented=x.indent>=4};
F2L.prototype.finalize=function(x,G){var D=x._parent;x._open=!1;x.sourcepos[1]=[G,this.lastLineLength];this.blocks[x.type].finalize(this,x);this.tip=D};
F2L.prototype.parse=function(x){this.tip=this.doc=w1E();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!x)return this.doc;this.options.time&&console.time("preparing input");var G=x.split(GaZ),D=G.length;x.charCodeAt(x.length-1)===10&&--D;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(x=0;x<D;x++)a:{var K=void 0,z=G[x],y=G[x+1],c=!0,W=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;z.indexOf("\x00")!==-1&&(z=z.replace(/\0/g,"\ufffd"));this.currentLine=z;for(this.lookahead=y;(K=W._lastChild)&&K._open;){W=K;a6E(this);switch(this.blocks[W.type].continue(this,W)){case 0:break;case 1:c=!1;break;case 2:this.lastLineLength=z.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!c){W=W._parent;break}}this.allClosed=W===this.oldtip;this.lastMatchedContainer=
W;K=W.type!=="paragraph"&&Dvk[W.type].acceptsLines;y=this.blockStarts;for(c=y.length;!K;){a6E(this);if(!this.indented&&!JS9.test(z.slice(this.nextNonspace))){o8(this);break}for(var e=0;e<c;){var Q=y[e](this,W);if(Q===1){W=this.tip;break}else if(Q===2){W=this.tip;K=!0;break}else e++}if(e===c){o8(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){lK(this);this.blank&&W.lastChild&&(W.lastChild._lastLineBlank=!0);K=W.type;y=this.blank&&!(K==="block_quote"||K==="code_block"&&W._isFenced||
K==="item"&&!W._firstChild&&W.sourcepos[0][0]===this.lineNumber);for(c=W;c;)c._lastLineBlank=y,c=c._parent;this.blocks[K].acceptsLines?(z$h(this),K==="html_block"&&W._htmlBlockType>=1&&W._htmlBlockType<=5&&NA8[W._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(W,this.lineNumber)):this.offset<z.length&&!this.blank&&(this.addChild("paragraph",this.offset),o8(this),z$h(this))}else z$h(this);this.lastLineLength=z.length}for(;this.tip;)this.finalize(this.tip,D);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");z=new Wg8(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;D=z.next();)G=D.node,x=G.type,D.entering||x!=="paragraph"&&x!=="heading"&&x!=="th"&&x!="td"||this.inlineParser.parse(G);this.options.time&&console.timeEnd("inline parsing");return this.doc};q$C.prototype.render=function(x){x=new Wg8(x);var G;this.buffer="";for(this.lastOut="\n";G=x.next();){var D=G.node.type;if(this[D])this[D](G.node,G.entering)}return this.buffer};
q$C.prototype.out=function(x){cp(this,x)};
var cp=function(x,G){x.buffer+=G;x.lastOut=G};
q$C.prototype.cr=function(){this.lastOut!=="\n"&&cp(this,"\n")};var or9=/^javascript:|vbscript:|file:|data:/i,you=/^data:image\/(?:png|gif|jpeg|webp)/i,l6s=function(x){return or9.test(x)&&!you.test(x)};
yz.prototype=Object.create(q$C.prototype);_.a=yz.prototype;_.a.text=function(x){this.out(x.literal)};
_.a.html_inline=function(x){this.options.safe?cp(this,"\x3c!-- raw HTML omitted --\x3e"):cp(this,x.literal)};
_.a.html_block=function(x){this.cr();this.options.safe?cp(this,"\x3c!-- raw HTML omitted --\x3e"):cp(this,x.literal);this.cr()};
_.a.softbreak=function(){cp(this,this.options.softbreak)};
_.a.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.a.link=function(x,G){var D=this.attrs(x);G?(this.options.safe&&l6s(x.destination)||D.push(["href",xo(x.destination,!0)]),x.title&&D.push(["title",xo(x.title,!0)]),this.tag("a",D)):this.tag("/a")};
_.a.image=function(x,G){G?(this.disableTags===0&&(this.options.safe&&l6s(x.destination)?cp(this,'<img src="" alt="'):cp(this,'<img src="'+xo(x.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(x.title&&cp(this,'" title="'+xo(x.title,!0)),cp(this,'" />')))};
_.a.emph=function(x,G){this.tag(G?"em":"/em")};
_.a.strong=function(x,G){this.tag(G?"strong":"/strong")};
_.a.paragraph=function(x,G){var D=x.parent.parent;x=this.attrs(x);D!==null&&D.type==="list"&&D.listTight||(G?(this.cr(),this.tag("p",x)):(this.tag("/p"),this.cr()))};
_.a.heading=function(x,G){var D="h"+x.level;x=this.attrs(x);G?(this.cr(),this.tag(D,x)):(this.tag("/"+D),this.cr())};
_.a.code=function(x){this.tag("code");this.out(x.literal);this.tag("/code")};
_.a.code_block=function(x){var G=x.info?x.info.split(/\s+/):[],D=this.attrs(x);G.length>0&&G[0].length>0&&D.push(["class","language-"+xo(G[0],!0)]);this.cr();this.tag("pre");this.tag("code",D);this.out(x.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.a.thematic_break=function(x){x=this.attrs(x);this.cr();this.tag("hr",x,!0);this.cr()};
_.a.block_quote=function(x,G){x=this.attrs(x);G?(this.cr(),this.tag("blockquote",x)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.a.list=function(x,G){var D=x.listType==="bullet"?"ul":"ol",K=this.attrs(x);G?(x=x.listStart,x!==null&&x!==1&&K.push(["start",x.toString()]),this.cr(),this.tag(D,K)):(this.cr(),this.tag("/"+D));this.cr()};
_.a.item=function(x,G){x=this.attrs(x);G?this.tag("li",x):(this.tag("/li"),this.cr())};
_.a.custom_inline=function(x,G){G&&x.onEnter?cp(this,x.onEnter):!G&&x.onExit&&cp(this,x.onExit)};
_.a.custom_block=function(x,G){this.cr();G&&x.onEnter?cp(this,x.onEnter):!G&&x.onExit&&cp(this,x.onExit);this.cr()};
_.a.table=function(x,G){x=this.attrs(x);G?(this.cr(),this.tag("table",x)):(this.tag("/table"),this.cr())};
_.a.row=function(x,G){x._rowIsDelimiter||(x=this.attrs(x),G?this.tag("tr",x):this.tag("/tr"))};
_.a.td=function(x,G){var D=this.attrs(x);x._alignment&&D.push(["align",x._alignment]);G?this.tag("td",D):this.tag("/td")};
_.a.th=function(x,G){var D=this.attrs(x);x._alignment&&D.push(["align",x._alignment]);G?this.tag("th",D):this.tag("/th")};
_.a.out=function(x){cp(this,xo(x,!1))};
_.a.tag=function(x,G,D){if(!(this.disableTags>0)){this.buffer+="<"+x;if(G&&G.length>0){x=0;for(var K;(K=G[x])!==void 0;)this.buffer+=" "+K[0]+'="'+K[1]+'"',x++}D&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.a.attrs=function(x){var G=[];this.options.sourcepos&&(x=x.sourcepos)&&G.push(["data-sourcepos",String(x[0][0])+":"+String(x[0][1])+"-"+String(x[1][0])+":"+String(x[1][1])]);return G};
yz.prototype.text=yz.prototype.text;yz.prototype.html_inline=yz.prototype.html_inline;yz.prototype.html_block=yz.prototype.html_block;yz.prototype.softbreak=yz.prototype.softbreak;yz.prototype.linebreak=yz.prototype.linebreak;yz.prototype.link=yz.prototype.link;yz.prototype.image=yz.prototype.image;yz.prototype.emph=yz.prototype.emph;yz.prototype.strong=yz.prototype.strong;yz.prototype.paragraph=yz.prototype.paragraph;yz.prototype.heading=yz.prototype.heading;yz.prototype.code=yz.prototype.code;
yz.prototype.code_block=yz.prototype.code_block;yz.prototype.thematic_break=yz.prototype.thematic_break;yz.prototype.block_quote=yz.prototype.block_quote;yz.prototype.list=yz.prototype.list;yz.prototype.item=yz.prototype.item;yz.prototype.custom_inline=yz.prototype.custom_inline;yz.prototype.custom_block=yz.prototype.custom_block;yz.prototype.table=yz.prototype.table;yz.prototype.row=yz.prototype.row;yz.prototype.td=yz.prototype.td;yz.prototype.th=yz.prototype.th;yz.prototype.out=yz.prototype.out;
yz.prototype.tag=yz.prototype.tag;yz.prototype.attrs=yz.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 cos,Tck,aZO;(function(){function x(X,C){return X<C?-1:X>C?1:X>=C?0:NaN}
function G(X){return function(C,S){return x(X(C),S)}}
function D(){for(var X=0,C=arguments.length,S={},t;X<C;++X){if(!(t=arguments[X]+"")||t in S)throw Error("pe`"+t);S[t]=[]}return new K(S)}
function K(X){this._=X}
function z(X,C){return X.trim().split(/^|\s+/).map(function(S){var t="",aV=S.indexOf(".");aV>=0&&(t=S.slice(aV+1),S=S.slice(0,aV));if(S&&!C.hasOwnProperty(S))throw Error("qe`"+S);return{type:S,name:t}})}
function y(X,C,S){for(var t=0,aV=X.length;t<aV;++t)if(X[t].name===C){X[t]=Z6j;X=X.slice(0,t).concat(X.slice(t+1));break}S!=null&&X.push({name:C,value:S});return X}
function c(X){var C=X,S=C.indexOf(":");S>=0&&(C=X.slice(0,S))!=="xmlns"&&(X=X.slice(S+1));return n1.hasOwnProperty(C)?{space:n1[C],local:X}:X}
function W(X){return function(){var C=this.ownerDocument,S=this.namespaceURI;return S==="http://www.w3.org/1999/xhtml"&&C.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?C.createElement(X):C.createElementNS(S,X)}}
function e(X){return function(){return this.ownerDocument.createElementNS(X.space,X.local)}}
function Q(X){X=c(X);return(X.local?e:W)(X)}
function p(){}
function V(X){return X==null?p:function(){return this.querySelector(X)}}
function L(X){return Array(X.length)}
function r(X,C){this.ownerDocument=X.ownerDocument;this.namespaceURI=X.namespaceURI;this._next=null;this._parent=X;this.__data__=C}
function H(X){return function(){return X}}
function O(X,C,S,t,aV,ef){for(var L$=0,Fh,hQ=C.length,tQ=ef.length;L$<tQ;++L$)(Fh=C[L$])?(Fh.__data__=ef[L$],t[L$]=Fh):S[L$]=new r(X,ef[L$]);for(;L$<hQ;++L$)if(Fh=C[L$])aV[L$]=Fh}
function A(X,C,S,t,aV,ef,L$){var Fh,hQ,tQ={},x8=C.length,lq=ef.length,N0=Array(x8),Mk;for(Fh=0;Fh<x8;++Fh)if(hQ=C[Fh])N0[Fh]=Mk="$"+L$.call(hQ,hQ.__data__,Fh,C),Mk in tQ?aV[Fh]=hQ:tQ[Mk]=hQ;for(Fh=0;Fh<lq;++Fh)Mk="$"+L$.call(X,ef[Fh],Fh,ef),(hQ=tQ[Mk])?(t[Fh]=hQ,hQ.__data__=ef[Fh],tQ[Mk]=null):S[Fh]=new r(X,ef[Fh]);for(Fh=0;Fh<x8;++Fh)(hQ=C[Fh])&&tQ[N0[Fh]]===hQ&&(aV[Fh]=hQ)}
function g(X,C){return X<C?-1:X>C?1:X>=C?0:NaN}
function u(X){return function(){this.removeAttribute(X)}}
function f(X){return function(){this.removeAttributeNS(X.space,X.local)}}
function v(X,C){return function(){this.setAttribute(X,C)}}
function P(X,C){return function(){this.setAttributeNS(X.space,X.local,C)}}
function k(X,C){return function(){var S=C.apply(this,arguments);S==null?this.removeAttribute(X):this.setAttribute(X,S)}}
function cL(X,C){return function(){var S=C.apply(this,arguments);S==null?this.removeAttributeNS(X.space,X.local):this.setAttributeNS(X.space,X.local,S)}}
function bO(X){return function(){this.style.removeProperty(X)}}
function mE(X,C,S){return function(){this.style.setProperty(X,C,S)}}
function jf(X,C,S){return function(){var t=C.apply(this,arguments);t==null?this.style.removeProperty(X):this.style.setProperty(X,t,S)}}
function $C(X,C){return X.style.getPropertyValue(C)||(X.ownerDocument&&X.ownerDocument.defaultView||X.document&&X||X.defaultView).getComputedStyle(X,null).getPropertyValue(C)}
function OD(X){return function(){delete this[X]}}
function wn(X,C){return function(){this[X]=C}}
function n$(X,C){return function(){var S=C.apply(this,arguments);S==null?delete this[X]:this[X]=S}}
function Fi(){this.textContent=""}
function pf(X){return function(){this.textContent=X}}
function UE(X){return function(){var C=X.apply(this,arguments);this.textContent=C==null?"":C}}
function M0(){this.innerHTML=""}
function cs(X){return function(){this.innerHTML=X}}
function G8(X){return function(){var C=X.apply(this,arguments);this.innerHTML=C==null?"":C}}
function T7(){return null}
function Wd(){var X=this.parentNode;X&&X.removeChild(this)}
function Fc(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function lO(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function Bs(X,C,S){X=Xi(X,C,S);return function(t){var aV=t.relatedTarget;aV&&(aV===this||aV.compareDocumentPosition(this)&8)||X.call(this,t)}}
function Xi(X,C,S){return function(){X.call(this,this.__data__,C,S)}}
function uC(X){return X.trim().split(/^|\s+/).map(function(C){var S="",t=C.indexOf(".");t>=0&&(S=C.slice(t+1),C=C.slice(0,t));return{type:C,name:S}})}
function Y8(X){return function(){var C=this.__on;if(C){for(var S=0,t=-1,aV=C.length,ef;S<aV;++S)(ef=C[S],X.type&&ef.type!==X.type||ef.name!==X.name)?C[++t]=ef:this.removeEventListener(ef.type,ef.listener,ef.capture);++t?C.length=t:delete this.__on}}}
function fu(X,C,S){var t=JDZ.hasOwnProperty(X.type)?Bs:Xi;return function(aV,ef,L$){aV=this.__on;var Fh;ef=t(C,ef,L$);if(aV){L$=0;for(var hQ=aV.length;L$<hQ;++L$)if((Fh=aV[L$]).type===X.type&&Fh.name===X.name){this.removeEventListener(Fh.type,Fh.listener,Fh.capture);this.addEventListener(Fh.type,Fh.listener=ef,Fh.capture=S);Fh.value=C;return}}this.addEventListener(X.type,ef,S);Fh={type:X.type,name:X.name,value:C,listener:ef,capture:S};aV?aV.push(Fh):this.__on=[Fh]}}
function g4(X,C,S){var t=X.ownerDocument&&X.ownerDocument.defaultView||X.document&&X||X.defaultView,aV=t.CustomEvent;typeof aV==="function"?aV=new aV(C,S):(aV=t.document.createEvent("Event"),S?(aV.initEvent(C,S.bubbles,S.cancelable),aV.detail=S.detail):aV.initEvent(C,!1,!1));X.dispatchEvent(aV)}
function vs(X,C){return function(){return g4(this,X,C)}}
function as(X,C){return function(){return g4(this,X,C.apply(this,arguments))}}
function d9(X,C){this._groups=X;this._parents=C}
function Lf(){return new d9([[document.documentElement]],MJk)}
function Lu(){this._="@"+(++Qpx).toString(36)}
function Cu(X,C,S){X.prototype=C.prototype=S;S.constructor=X}
function ex(X,C){X=Object.create(X.prototype);for(var S in C)X[S]=C[S];return X}
function y$(){}
function yj(X){var C;X=(X+"").trim().toLowerCase();return(C=p1k.exec(X))?(C=parseInt(C[1],16),new Ec(C>>8&15|C>>4&240,C>>4&15|C&240,(C&15)<<4|C&15,1)):(C=VJk.exec(X))?bX(parseInt(C[1],16)):(C=b6Y.exec(X))?new Ec(C[1],C[2],C[3],1):(C=LJ4.exec(X))?new Ec(C[1]*255/100,C[2]*255/100,C[3]*255/100,1):(C=Bvf.exec(X))?l0(C[1],C[2],C[3],C[4]):(C=rR6.exec(X))?l0(C[1]*255/100,C[2]*255/100,C[3]*255/100,C[4]):(C=spx.exec(X))?TZ(C[1],C[2]/100,C[3]/100,1):(C=Y$T.exec(X))?TZ(C[1],C[2]/100,C[3]/100,C[4]):frs.hasOwnProperty(X)?
bX(frs[X]):X==="transparent"?new Ec(NaN,NaN,NaN,0):null}
function bX(X){return new Ec(X>>16&255,X>>8&255,X&255,1)}
function l0(X,C,S,t){t<=0&&(X=C=S=NaN);return new Ec(X,C,S,t)}
function g9(X){X instanceof y$||(X=yj(X));if(!X)return new Ec;X=X.rgb();return new Ec(X.r,X.g,X.b,X.opacity)}
function FO(X,C,S,t){return arguments.length===1?g9(X):new Ec(X,C,S,t==null?1:t)}
function Ec(X,C,S,t){this.r=+X;this.g=+C;this.b=+S;this.opacity=+t}
function h6(X){X=Math.max(0,Math.min(255,Math.round(X)||0));return(X<16?"0":"")+X.toString(16)}
function TZ(X,C,S,t){t<=0?X=C=S=NaN:S<=0||S>=1?X=C=NaN:C<=0&&(X=NaN);return new aA(X,C,S,t)}
function uX(X){if(X instanceof aA)return new aA(X.h,X.s,X.l,X.opacity);X instanceof y$||(X=yj(X));if(!X)return new aA;if(X instanceof aA)return X;X=X.rgb();var C=X.r/255,S=X.g/255,t=X.b/255,aV=Math.min(C,S,t),ef=Math.max(C,S,t),L$=NaN,Fh=ef-aV,hQ=(ef+aV)/2;Fh?(L$=C===ef?(S-t)/Fh+(S<t)*6:S===ef?(t-C)/Fh+2:(C-S)/Fh+4,Fh/=hQ<.5?ef+aV:2-ef-aV,L$*=60):Fh=hQ>0&&hQ<1?0:L$;return new aA(L$,Fh,hQ,X.opacity)}
function RW(X,C,S,t){return arguments.length===1?uX(X):new aA(X,C,S,t==null?1:t)}
function aA(X,C,S,t){this.h=+X;this.s=+C;this.l=+S;this.opacity=+t}
function PC(X,C,S){return(X<60?C+(S-C)*X/60:X<180?S:X<240?C+(S-C)*(240-X)/60:C)*255}
function zy(X){if(X instanceof sD)return new sD(X.l,X.a,X.b,X.opacity);if(X instanceof VJ){if(isNaN(X.h))return new sD(X.l,0,0,X.opacity);var C=X.h*tYk;return new sD(X.l,Math.cos(C)*X.c,Math.sin(C)*X.c,X.opacity)}X instanceof Ec||(X=g9(X));var S=aT(X.r),t=aT(X.g),aV=aT(X.b);C=Sf(.2225045*S+.7168786*t+.0606169*aV);if(S===t&&t===aV)var ef=S=C;else ef=Sf((.4360747*S+.3850649*t+.1430804*aV)/.96422),S=Sf((.0139322*S+.0971045*t+.7141733*aV)/.82521);return new sD(116*C-16,500*(ef-C),200*(C-S),X.opacity)}
function sD(X,C,S,t){this.l=+X;this.a=+C;this.b=+S;this.opacity=+t}
function Sf(X){return X>mtC?Math.pow(X,1/3):X/ks0+PGq}
function dn(X){return X>DT?X*X*X:ks0*(X-PGq)}
function Ws(X){return 255*(X<=.0031308?12.92*X:1.055*Math.pow(X,1/2.4)-.055)}
function aT(X){return(X/=255)<=.04045?X/12.92:Math.pow((X+.055)/1.055,2.4)}
function Cm(X){if(X instanceof VJ)return new VJ(X.h,X.c,X.l,X.opacity);X instanceof sD||(X=zy(X));if(X.a===0&&X.b===0)return new VJ(NaN,0,X.l,X.opacity);var C=Math.atan2(X.b,X.a)*EGs;return new VJ(C<0?C+360:C,Math.sqrt(X.a*X.a+X.b*X.b),X.l,X.opacity)}
function Zc(X,C,S,t){return arguments.length===1?Cm(X):new VJ(X,C,S,t==null?1:t)}
function VJ(X,C,S,t){this.h=+X;this.c=+C;this.l=+S;this.opacity=+t}
function QJ(X,C,S,t){if(arguments.length===1){var aV=X;if(aV instanceof BY)aV=new BY(aV.h,aV.s,aV.l,aV.opacity);else{aV instanceof Ec||(aV=g9(aV));var ef=aV.g/255,L$=aV.b/255,Fh=(hr8*L$+aV.r/255*-1.7884503806-3.5172982438*ef)/(hr8+-1.7884503806-3.5172982438);L$-=Fh;var hQ=(1.97294*(ef-Fh)- -.29227*L$)/-.90649;L$=(ef=Math.sqrt(hQ*hQ+L$*L$)/(1.97294*Fh*(1-Fh)))?Math.atan2(hQ,L$)*EGs-120:NaN;aV=new BY(L$<0?L$+360:L$,ef,Fh,aV.opacity)}}else aV=new BY(X,C,S,t==null?1:t);return aV}
function BY(X,C,S,t){this.h=+X;this.s=+C;this.l=+S;this.opacity=+t}
function eX(X,C,S,t,aV){var ef=X*X,L$=ef*X;return((1-3*X+3*ef-L$)*C+(4-6*ef+3*L$)*S+(1+3*X+3*ef-3*L$)*t+L$*aV)/6}
function os(X){return function(){return X}}
function bH(X,C){return function(S){return X+S*C}}
function Vx(X,C,S){return X=Math.pow(X,S),C=Math.pow(C,S)-X,S=1/S,function(t){return Math.pow(X+t*C,S)}}
function Ag(X,C){var S=C-X;return S?bH(X,S>180||S<-180?S-360*Math.round(S/360):S):os(isNaN(X)?C:X)}
function Ll(X){return(X=+X)===1?lp:function(C,S){return S-C?Vx(C,S,X):os(isNaN(C)?S:C)}}
function lp(X,C){var S=C-X;return S?bH(X,S):os(isNaN(X)?C:X)}
function Qy(X){return function(C){var S=C.length,t=Array(S),aV=Array(S),ef=Array(S),L$;for(L$=0;L$<S;++L$){var Fh=FO(C[L$]);t[L$]=Fh.r||0;aV[L$]=Fh.g||0;ef[L$]=Fh.b||0}t=X(t);aV=X(aV);ef=X(ef);Fh.opacity=1;return function(hQ){Fh.r=t(hQ);Fh.g=aV(hQ);Fh.b=ef(hQ);return Fh+""}}}
function NL(X,C){return X=+X,C-=X,function(S){return X+C*S}}
function lC(X){return function(){return X}}
function lU(X){return function(C){return X(C)+""}}
function nf(X,C){var S=$Md.lastIndex=FKV.lastIndex=0,t,aV,ef,L$=-1,Fh=[],hQ=[];X+="";for(C+="";(t=$Md.exec(X))&&(aV=FKV.exec(C));)(ef=aV.index)>S&&(ef=C.slice(S,ef),Fh[L$]?Fh[L$]+=ef:Fh[++L$]=ef),(t=t[0])===(aV=aV[0])?Fh[L$]?Fh[L$]+=aV:Fh[++L$]=aV:(Fh[++L$]=null,hQ.push({i:L$,x:NL(t,aV)})),S=FKV.lastIndex;S<C.length&&(ef=C.slice(S),Fh[L$]?Fh[L$]+=ef:Fh[++L$]=ef);return Fh.length<2?hQ[0]?lU(hQ[0].x):lC(C):(C=hQ.length,function(tQ){for(var x8=0,lq;x8<C;++x8)Fh[(lq=hQ[x8]).i]=lq.x(tQ);return Fh.join("")})}
function H5(X,C,S,t,aV,ef){var L$,Fh,hQ;if(L$=Math.sqrt(X*X+C*C))X/=L$,C/=L$;if(hQ=X*S+C*t)S-=X*hQ,t-=C*hQ;if(Fh=Math.sqrt(S*S+t*t))S/=Fh,t/=Fh,hQ/=Fh;X*t<C*S&&(X=-X,C=-C,hQ=-hQ,L$=-L$);return{translateX:aV,translateY:ef,rotate:Math.atan2(C,X)*xMZ,skewX:Math.atan(hQ)*xMZ,scaleX:L$,scaleY:Fh}}
function fl(X,C,S,t){function aV(tQ){return tQ.length?tQ.pop()+" ":""}
function ef(tQ,x8,lq,N0,Mk,QY){tQ!==lq||x8!==N0?(Mk=Mk.push("translate(",null,C,null,S),QY.push({i:Mk-4,x:NL(tQ,lq)},{i:Mk-2,x:NL(x8,N0)})):(lq||N0)&&Mk.push("translate("+lq+C+N0+S)}
function L$(tQ,x8,lq,N0){tQ!==x8?(tQ-x8>180?x8+=360:x8-tQ>180&&(tQ+=360),N0.push({i:lq.push(aV(lq)+"rotate(",null,t)-2,x:NL(tQ,x8)})):x8&&lq.push(aV(lq)+"rotate("+x8+t)}
function Fh(tQ,x8,lq,N0){tQ!==x8?N0.push({i:lq.push(aV(lq)+"skewX(",null,t)-2,x:NL(tQ,x8)}):x8&&lq.push(aV(lq)+"skewX("+x8+t)}
function hQ(tQ,x8,lq,N0,Mk,QY){tQ!==lq||x8!==N0?(Mk=Mk.push(aV(Mk)+"scale(",null,",",null,")"),QY.push({i:Mk-4,x:NL(tQ,lq)},{i:Mk-2,x:NL(x8,N0)})):lq===1&&N0===1||Mk.push(aV(Mk)+"scale("+lq+","+N0+")")}
return function(tQ,x8){var lq=[],N0=[];tQ=X(tQ);x8=X(x8);ef(tQ.translateX,tQ.translateY,x8.translateX,x8.translateY,lq,N0);L$(tQ.rotate,x8.rotate,lq,N0);Fh(tQ.skewX,x8.skewX,lq,N0);hQ(tQ.scaleX,tQ.scaleY,x8.scaleX,x8.scaleY,lq,N0);tQ=x8=null;return function(Mk){for(var QY=-1,dC=N0.length,BC;++QY<dC;)lq[(BC=N0[QY]).i]=BC.x(Mk);return lq.join("")}}}
function IS(X){return function(C,S){var t=X((C=RW(C)).h,(S=RW(S)).h),aV=lp(C.s,S.s),ef=lp(C.l,S.l),L$=lp(C.opacity,S.opacity);return function(Fh){C.h=t(Fh);C.s=aV(Fh);C.l=ef(Fh);C.opacity=L$(Fh);return C+""}}}
function MV(X){return function(C,S){var t=X((C=Zc(C)).h,(S=Zc(S)).h),aV=lp(C.c,S.c),ef=lp(C.l,S.l),L$=lp(C.opacity,S.opacity);return function(Fh){C.h=t(Fh);C.c=aV(Fh);C.l=ef(Fh);C.opacity=L$(Fh);return C+""}}}
function QW(X){return function t(S){function aV(ef,L$){var Fh=X((ef=QJ(ef)).h,(L$=QJ(L$)).h),hQ=lp(ef.s,L$.s),tQ=lp(ef.l,L$.l),x8=lp(ef.opacity,L$.opacity);return function(lq){ef.h=Fh(lq);ef.s=hQ(lq);ef.l=tQ(Math.pow(lq,S));ef.opacity=x8(lq);return ef+""}}
S=+S;aV.gamma=t;return aV}(1)}
function eb(){return OL||(GIs(dk$),OL=nI.now()+ctL)}
function dk$(){OL=0}
function Z9(){this._call=this._time=this._next=null}
function S6(X,C,S){var t=new Z9;t.restart(X,C,S);return t}
function nK(){OL=(TOD=nI.now())+ctL;Kv=i6=0;try{eb();++Kv;for(var X=WGQ,C;X;)(C=OL-X._time)>=0&&X._call.call(null,C),X=X._next;--Kv}finally{Kv=0;X=WGQ;for(var S=Infinity;X;)if(X._call){S>X._time&&(S=X._time);var t=X;X=X._next}else C=X._next,X._next=null,X=t?t._next=C:WGQ=C;gw=t;iJ(S);OL=0}}
function WYh(){var X=nI.now(),C=X-TOD;C>1E3&&(ctL-=C,TOD=X)}
function iJ(X){Kv||(i6&&(i6=clearTimeout(i6)),X-OL>24?(X<Infinity&&(i6=setTimeout(nK,X-nI.now()-ctL)),u6&&(u6=clearInterval(u6))):(u6||(TOD=nI.now(),u6=setInterval(WYh,1E3)),Kv=1,GIs(nK)))}
function DM9(X,C,S){var t=new Z9;C=C==null?0:+C;t.restart(function(aV){t.stop();X(aV+C)},C,S);
return t}
function CFL(X,C,S,t,aV,ef){var L$=X.__transition;if(!L$)X.__transition={};else if(S in L$)return;H6f(X,S,{name:C,index:t,group:aV,on:$t4,tween:FJc,time:ef.time,delay:ef.delay,duration:ef.duration,ease:ef.ease,timer:null,state:0})}
function IKC(X,C){X=DC(X,C);if(X.state>0)throw Error("re");return X}
function Xo(X,C){X=DC(X,C);if(X.state>2)throw Error("se");return X}
function DC(X,C){X=X.__transition;if(!X||!(X=X[C]))throw Error("te");return X}
function H6f(X,C,S){function t(hQ){var tQ,x8;if(S.state!==1)return ef();for(N0 in L$){var lq=L$[N0];if(lq.name===S.name){if(lq.state===3)return DM9(t);lq.state===4?(lq.state=6,lq.timer.stop(),lq.on.call("interrupt",X,X.__data__,lq.index,lq.group),delete L$[N0]):+N0<C&&(lq.state=6,lq.timer.stop(),delete L$[N0])}}DM9(function(){S.state===3&&(S.state=4,S.timer.restart(aV,S.delay,S.time),aV(hQ))});
S.state=2;S.on.call("start",X,X.__data__,S.index,S.group);if(S.state===2){S.state=3;Fh=Array(x8=S.tween.length);var N0=0;for(tQ=-1;N0<x8;++N0)if(lq=S.tween[N0].value.call(X,X.__data__,S.index,S.group))Fh[++tQ]=lq;Fh.length=tQ+1}}
function aV(hQ){hQ=hQ<S.duration?S.ease.call(null,hQ/S.duration):(S.timer.restart(ef),S.state=5,1);for(var tQ=-1,x8=Fh.length;++tQ<x8;)Fh[tQ].call(null,hQ);S.state===5&&(S.on.call("end",X,X.__data__,S.index,S.group),ef())}
function ef(){S.state=6;S.timer.stop();delete L$[C];for(var hQ in L$)return;delete X.__transition}
var L$=X.__transition,Fh;L$[C]=S;S.timer=S6(function(hQ){S.state=1;S.timer.restart(t,S.delay,S.time);S.delay<=hQ&&t(hQ-S.delay)},0,S.time)}
function Chc(X,C){var S,t;return function(){var aV=Xo(this,X),ef=aV.tween;if(ef!==S){t=S=ef;ef=0;for(var L$=t.length;ef<L$;++ef)if(t[ef].name===C){t=t.slice();t.splice(ef,1);break}}aV.tween=t}}
function IUc(X,C,S){var t,aV;if(typeof S!=="function")throw Error();return function(){var ef=Xo(this,X),L$=ef.tween;if(L$!==t){aV=(t=L$).slice();L$={name:C,value:S};for(var Fh=0,hQ=aV.length;Fh<hQ;++Fh)if(aV[Fh].name===C){aV[Fh]=L$;break}Fh===hQ&&aV.push(L$)}ef.tween=aV}}
function jcQ(X,C,S){var t=X._id;X.each(function(){var aV=Xo(this,t);(aV.value||(aV.value={}))[C]=S.apply(this,arguments)});
return function(aV){return DC(aV,t).value[C]}}
function KKu(X,C){var S;return(typeof C==="number"?NL:C instanceof yj?zqE:(S=yj(C))?(C=S,zqE):nf)(X,C)}
function jp6(X){return function(){this.removeAttribute(X)}}
function O6C(X){return function(){this.removeAttributeNS(X.space,X.local)}}
function X1k(X,C,S){var t,aV;return function(){var ef=this.getAttribute(X);return ef===S?null:ef===t?aV:aV=C(t=ef,S)}}
function AR4(X,C,S){var t,aV;return function(){var ef=this.getAttributeNS(X.space,X.local);return ef===S?null:ef===t?aV:aV=C(t=ef,S)}}
function Ut4(X,C,S){var t,aV,ef;return function(){var L$=S(this);if(L$==null)return void this.removeAttribute(X);var Fh=this.getAttribute(X);return Fh===L$?null:Fh===t&&L$===aV?ef:ef=C(t=Fh,aV=L$)}}
function RtO(X,C,S){var t,aV,ef;return function(){var L$=S(this);if(L$==null)return void this.removeAttributeNS(X.space,X.local);var Fh=this.getAttributeNS(X.space,X.local);return Fh===L$?null:Fh===t&&L$===aV?ef:ef=C(t=Fh,aV=L$)}}
function S$O(X,C){function S(){var t=this,aV=C.apply(t,arguments);return aV&&function(ef){t.setAttributeNS(X.space,X.local,aV(ef))}}
S._value=C;return S}
function n1Y(X,C){function S(){var t=this,aV=C.apply(t,arguments);return aV&&function(ef){t.setAttribute(X,aV(ef))}}
S._value=C;return S}
function i6O(X,C){return function(){IKC(this,X).delay=+C.apply(this,arguments)}}
function g1c(X,C){return C=+C,function(){IKC(this,X).delay=C}}
function umf(X,C){return function(){Xo(this,X).duration=+C.apply(this,arguments)}}
function dtc(X,C){return C=+C,function(){Xo(this,X).duration=C}}
function w1f(X,C){if(typeof C!=="function")throw Error();return function(){Xo(this,X).ease=C}}
function q$i(X){return(X+"").trim().split(/^|\s+/).every(function(C){var S=C.indexOf(".");S>=0&&(C=C.slice(0,S));return!C||C==="start"})}
function Nvc(X,C,S){var t,aV,ef=q$i(C)?IKC:Xo;return function(){var L$=ef(this,X),Fh=L$.on;if(Fh!==t)(aV=(t=Fh).copy()).on(C,S);L$.on=aV}}
function v1f(X){return function(){var C=this.parentNode,S;for(S in this.__transition)if(+S!==X)return;C&&C.removeChild(this)}}
function JRc(X,C){var S,t,aV;return function(){var ef=$C(this,X),L$=(this.style.removeProperty(X),$C(this,X));return ef===L$?null:ef===S&&L$===t?aV:aV=C(S=ef,t=L$)}}
function fU8(X){return function(){this.style.removeProperty(X)}}
function tJf(X,C,S){var t,aV;return function(){var ef=$C(this,X);return ef===S?null:ef===t?aV:aV=C(t=ef,S)}}
function k0j(X,C,S){var t,aV,ef;return function(){var L$=$C(this,X),Fh=S(this);Fh==null&&(Fh=(this.style.removeProperty(X),$C(this,X)));return L$===Fh?null:L$===t&&Fh===aV?ef:ef=C(t=L$,aV=Fh)}}
function Phj(X,C,S){function t(){var aV=this,ef=C.apply(aV,arguments);return ef&&function(L$){aV.style.setProperty(X,ef(L$),S)}}
t._value=C;return t}
function E1j(X){return function(){this.textContent=X}}
function ht6(X){return function(){var C=X(this);this.textContent=C==null?"":C}}
function zS(X,C,S,t){this._groups=X;this._parents=C;this._name=S;this._id=t}
function OZ3(X){return{type:X}}
function Xe3(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function eFf(){}
function aKZ(X,C){var S=new eFf;if(X instanceof eFf)X.each(function(L$,Fh){S.set(Fh,L$)});
else if(Array.isArray(X)){var t=-1,aV=X.length,ef;if(C==null)for(;++t<aV;)S.set(t,X[t]);else for(;++t<aV;)S.set(C(ef=X[t],t,X),ef)}else if(X)for(t in X)S.set(t,X[t]);return S}
function Zx3(){}
function oyi(X){return function(C){for(var S={},t=0;t<X.length;t++)S[X[t]]=C[t]||"";return S}}
function xV6(X,C){var S=oyi(X);return function(t,aV){return C(S(t),aV,X)}}
function GKf(X){var C=Object.create(null),S=[];X.forEach(function(t){for(var aV in t)aV in C||S.push(C[aV]=aV)});
return S}
function yyq(X){function C(L$,Fh){function hQ(){if(QY)return AyL;if(dC)return dC=!1,lK9;var up,hE=lq,Bg;if(L$.charCodeAt(hE)===34){for(;lq++<x8&&L$.charCodeAt(lq)!==34||L$.charCodeAt(++lq)===34;);(up=lq)>=x8?QY=!0:(Bg=L$.charCodeAt(lq++))===10?dC=!0:Bg===13&&(dC=!0,L$.charCodeAt(lq)===10&&++lq);return L$.slice(hE+1,up-1).replace(/""/g,'"')}for(;lq<x8;){if((Bg=L$.charCodeAt(up=lq++))===10)dC=!0;else if(Bg===13)dC=!0,L$.charCodeAt(lq)===10&&++lq;else if(Bg!==ef)continue;return L$.slice(hE,up)}return QY=
!0,L$.slice(hE,x8)}
var tQ=[],x8=L$.length,lq=0,N0=0,Mk,QY=x8<=0,dC=!1;L$.charCodeAt(x8-1)===10&&--x8;for(L$.charCodeAt(x8-1)===13&&--x8;(Mk=hQ())!==AyL;){for(var BC=[];Mk!==lK9&&Mk!==AyL;)BC.push(Mk),Mk=hQ();Fh&&(BC=Fh(BC,N0++))==null||tQ.push(BC)}return tQ}
function S(L$){return L$.map(t).join(X)}
function t(L$){return L$==null?"":aV.test(L$)?'"'+L$.replace(/"/g,'""')+'"':L$}
var aV=new RegExp('["'+X+"\n\r]"),ef=X.charCodeAt(0);return{parse:function(L$,Fh){var hQ,tQ;L$=C(L$,function(x8,lq){if(hQ)return hQ(x8,lq-1);tQ=x8;hQ=Fh?xV6(x8,Fh):oyi(x8)});
L$.columns=tQ||[];return L$},
parseRows:C,format:function(L$,Fh){Fh==null&&(Fh=GKf(L$));return[Fh.map(t).join(X)].concat(L$.map(function(hQ){return Fh.map(function(tQ){return t(hQ[tQ])}).join(X)})).join("\n")},
formatRows:function(L$){return L$.map(S).join("\n")}}}
function DVk(X){if(!X.ok)throw Error("ue`"+X.status+"`"+X.statusText);return X.text()}
function cys(X){return function(C,S,t){arguments.length===2&&typeof S==="function"&&(t=S,S=void 0);return fetch(C,S).then(DVk).then(function(aV){return X(aV,t)})}}
function TrE(X,C,S,t){if(isNaN(C)||isNaN(S))return X;var aV,ef=X._root;t={data:t};var L$=X._x0,Fh=X._y0,hQ=X._x1,tQ=X._y1,x8,lq,N0,Mk,QY;if(!ef)return X._root=t,X;for(;ef.length;)if((N0=C>=(x8=(L$+hQ)/2))?L$=x8:hQ=x8,(Mk=S>=(lq=(Fh+tQ)/2))?Fh=lq:tQ=lq,aV=ef,!(ef=ef[QY=Mk<<1|N0]))return aV[QY]=t,X;var dC=+X._x.call(null,ef.data);var BC=+X._y.call(null,ef.data);if(C===dC&&S===BC)return t.next=ef,aV?aV[QY]=t:X._root=t,X;do aV=aV?aV[QY]=Array(4):X._root=Array(4),(N0=C>=(x8=(L$+hQ)/2))?L$=x8:hQ=x8,(Mk=
S>=(lq=(Fh+tQ)/2))?Fh=lq:tQ=lq;while((QY=Mk<<1|N0)===(N0=(BC>=lq)<<1|dC>=x8));return aV[N0]=ef,aV[QY]=t,X}
function hS(X,C,S,t,aV){this.node=X;this.x0=C;this.y0=S;this.x1=t;this.y1=aV}
function KHf(X){return X[0]}
function z0k(X){return X[1]}
function UMD(X,C,S,t,aV,ef){this._x=X;this._y=C;this._x0=S;this._y0=t;this._x1=aV;this._y1=ef;this._root=void 0}
function WKE(X){for(var C={data:X.data},S=C;X=X.next;)S=S.next={data:X.data};return C}
function MOL(X,C){if((C=(X=C?X.toExponential(C-1):X.toExponential()).indexOf("e"))<0)return null;var S=X.slice(0,C);return[S.length>1?S[0]+S.slice(2):S,+X.slice(C+1)]}
function ahi(X){return X=MOL(Math.abs(X)),X?X[1]:NaN}
function opx(X,C){return function(S,t){for(var aV=S.length,ef=[],L$=0,Fh=X[0],hQ=0;aV>0&&Fh>0;){hQ+Fh+1>t&&(Fh=Math.max(1,t-hQ));ef.push(S.substring(aV-=Fh,aV+Fh));if((hQ+=Fh+1)>t)break;Fh=X[L$=(L$+1)%X.length]}return ef.reverse().join(C)}}
function ye6(X){return function(C){return C.replace(/[0-9]/g,function(S){return X[+S]})}}
function RqC(X){return new SBC(X)}
function SBC(X){if(!(C=lhb.exec(X)))throw Error("ve`"+X);var C;this.fill=C[1]||" ";this.align=C[2]||">";this.sign=C[3]||"-";this.symbol=C[4]||"";this.zero=!!C[5];this.width=C[6]&&+C[6];this.comma=!!C[7];this.precision=C[8]&&+C[8].slice(1);this.trim=!!C[9];this.type=C[10]||""}
function eqo(X,C){C=MOL(X,C);if(!C)return X+"";X=C[0];C=C[1];return C<0?"0."+Array(-C).join("0")+X:X.length>C+1?X.slice(0,C+1)+"."+X.slice(C+1):X+Array(C-X.length+2).join("0")}
function ZZ9(X){return X}
function ce8(X){function C(Fh){function hQ(vd){var Tu=Bg,IT=aO,T4,D7;if(hE==="c")IT=x9(vd)+IT,vd="";else{vd=+vd;var Vj=vd<0;vd=x9(Math.abs(vd),BC);if(up){var qu=vd.length,Hw=1,d$=-1;a:for(;Hw<qu;++Hw)switch(vd[Hw]){case ".":d$=T4=Hw;break;case "0":d$===0&&(d$=Hw);T4=Hw;break;default:if(!+vd[Hw])break a;d$>0&&(d$=0)}vd=d$>0?vd.slice(0,d$)+vd.slice(T4+1):vd}Vj&&+vd===0&&(Vj=!1);Tu=(Vj?lq==="("?lq:"-":lq==="-"||lq==="("?"":lq)+Tu;IT=(hE==="s"?Mjs[8+Qc7/3]:"")+IT+(Vj&&lq==="("?")":"");if(bN)for(Vj=-1,
T4=vd.length;++Vj<T4;)if(D7=vd.charCodeAt(Vj),48>D7||D7>57){IT=(D7===46?aV+vd.slice(Vj+1):vd.slice(Vj))+IT;vd=vd.slice(0,Vj);break}}dC&&!Mk&&(vd=S(vd,Infinity));D7=Tu.length+vd.length+IT.length;Vj=D7<QY?Array(QY-D7+1).join(tQ):"";dC&&Mk&&(vd=S(Vj+vd,Vj.length?QY-IT.length:Infinity),Vj="");switch(x8){case "<":vd=Tu+vd+IT+Vj;break;case "=":vd=Tu+Vj+vd+IT;break;case "^":vd=Vj.slice(0,D7=Vj.length>>1)+Tu+vd+IT+Vj.slice(D7);break;default:vd=Vj+Tu+vd+IT}return ef(vd)}
Fh=RqC(Fh);var tQ=Fh.fill,x8=Fh.align,lq=Fh.sign,N0=Fh.symbol,Mk=Fh.zero,QY=Fh.width,dC=Fh.comma,BC=Fh.precision,up=Fh.trim,hE=Fh.type;hE==="n"?(dC=!0,hE="g"):peZ[hE]||(BC==null&&(BC=12),up=!0,hE="g");if(Mk||tQ==="0"&&x8==="=")Mk=!0,tQ="0",x8="=";var Bg=N0==="$"?t[0]:N0==="#"&&/[boxX]/.test(hE)?"0"+hE.toLowerCase():"",aO=N0==="$"?t[1]:/[%p]/.test(hE)?L$:"",x9=peZ[hE],bN=/[defgprs%]/.test(hE);BC=BC==null?6:/[gprs]/.test(hE)?Math.max(1,Math.min(21,BC)):Math.max(0,Math.min(20,BC));hQ.toString=function(){return Fh+
""};
return hQ}
var S=X.grouping&&X.thousands?opx(X.grouping,X.thousands):ZZ9,t=X.currency,aV=X.decimal,ef=X.numerals?ye6(X.numerals):ZZ9,L$=X.percent||"%";return{format:C,formatPrefix:function(Fh,hQ){var tQ=C((Fh=RqC(Fh),Fh.type="f",Fh));Fh=Math.max(-8,Math.min(8,Math.floor(ahi(hQ)/3)))*3;var x8=Math.pow(10,-Fh),lq=Mjs[8+Fh/3];return function(N0){return tQ(x8*N0)+lq}}}}
function RX(){this.reset()}
function Vju(X,C,S){var t=X.s=C+S,aV=t-C;X.t=C-(t-aV)+(S-aV)}
function Qff(X){return X>1?iQ:X<-1?-iQ:Math.asin(X)}
function TPx(){}
function bZE(X){var C=X[0];X=X[1];var S=gj(X);return[S*gj(C),S*FX(C),FX(X)]}
function LKZ(X,C){return[X[1]*C[2]-X[2]*C[1],X[2]*C[0]-X[0]*C[2],X[0]*C[1]-X[1]*C[0]]}
function Bri(X){var C=plL(X[0]*X[0]+X[1]*X[1]+X[2]*X[2]);X[0]/=C;X[1]/=C;X[2]/=C}
function WHf(){var X=[],C;return{point:function(S,t){C.push([S,t])},
lineStart:function(){X.push(C=[])},
lineEnd:TPx,rejoin:function(){X.length>1&&X.push(X.pop().concat(X.shift()))},
result:function(){var S=X;X=[];C=null;return S}}}
function VOn(X,C,S,t){this.x=X;this.z=C;this.o=S;this.e=t;this.v=!1;this.n=this.p=null}
function e0T(X,C,S,t,aV){var ef=[],L$=[];X.forEach(function(lq){if(!((N0=lq.length-1)<=0)){var N0,Mk=lq[0],QY=lq[N0],dC=Mk;if(aJ(dC[0]-QY[0])<1E-6&&aJ(dC[1]-QY[1])<1E-6){aV.lineStart();for(Fh=0;Fh<N0;++Fh)aV.point((Mk=lq[Fh])[0],Mk[1]);aV.lineEnd()}else ef.push(N0=new VOn(Mk,lq,null,!0)),L$.push(N0.o=new VOn(Mk,null,N0,!1)),ef.push(N0=new VOn(QY,lq,null,!1)),L$.push(N0.o=new VOn(QY,null,N0,!0))}});
if(ef.length){L$.sort(C);rys(ef);rys(L$);var Fh=0;for(X=L$.length;Fh<X;++Fh)L$[Fh].e=S=!S;S=ef[0];for(var hQ;;){for(var tQ=S,x8=!0;tQ.v;)if((tQ=tQ.n)===S)return;C=tQ.z;aV.lineStart();do{tQ.v=tQ.o.v=!0;if(tQ.e){if(x8)for(Fh=0,X=C.length;Fh<X;++Fh)aV.point((hQ=C[Fh])[0],hQ[1]);else t(tQ.x,tQ.n.x,1,aV);tQ=tQ.n}else{if(x8)for(C=tQ.p.z,Fh=C.length-1;Fh>=0;--Fh)aV.point((hQ=C[Fh])[0],hQ[1]);else t(tQ.x,tQ.p.x,-1,aV);tQ=tQ.p}tQ=tQ.o;C=tQ.z;x8=!x8}while(!tQ.v);aV.lineEnd()}}}
function rys(X){if(C=X.length){for(var C,S=0,t=X[0],aV;++S<C;)t.n=aV=X[S],aV.p=t,t=aV;t.n=aV=X[0];aV.p=t}}
function Zrf(X){return X.length>1}
function MIC(X,C){return((X=X.x)[0]<0?X[1]-iQ-1E-6:iQ-X[1])-((C=C.x)[0]<0?C[1]-iQ-1E-6:iQ-C[1])}
function nyD(){}
function scJ(X){return function(C,S){var t=gj(C),aV=gj(S);t=X(t*aV);return[t*aV*FX(C),t*FX(S)]}}
function dw(X){return function(C,S){var t=plL(C*C+S*S),aV=X(t),ef=FX(aV);aV=gj(aV);return[YB0(C*ef,t*aV),Qff(t&&S*ef/t)]}}
function QXf(X){var C=0,S=X.children,t=S&&S.length;if(t)for(;--t>=0;)C+=S[t].value;else C=1;X.value=C}
function mMk(X,C){var S=new ww(X);X=+X.value&&(S.value=X.value);var t,aV=[S],ef,L$,Fh,hQ;for(C==null&&(C=pV4);t=aV.pop();)if(X&&(t.value=+t.data.value),(L$=C(t.data))&&(hQ=L$.length))for(t.children=Array(hQ),Fh=hQ-1;Fh>=0;--Fh)aV.push(ef=t.children[Fh]=new ww(L$[Fh])),ef.parent=t,ef.depth=t.depth+1;return S.eachBefore(VIj)}
function pV4(X){return X.children}
function br4(X){X.data=X.data.data}
function VIj(X){var C=0;do X.height=C;while((X=X.parent)&&X.height<++C)}
function ww(X){this.data=X;this.depth=this.height=0;this.parent=null}
function pC(X,C,S,t){function aV(ef){return X(ef=new Date(+ef)),ef}
aV.floor=aV;aV.ceil=function(ef){return X(ef=new Date(ef-1)),C(ef,1),X(ef),ef};
aV.round=function(ef){var L$=aV(ef),Fh=aV.ceil(ef);return ef-L$<Fh-ef?L$:Fh};
aV.offset=function(ef,L$){return C(ef=new Date(+ef),L$==null?1:Math.floor(L$)),ef};
aV.range=function(ef,L$,Fh){var hQ=[],tQ;ef=aV.ceil(ef);Fh=Fh==null?1:Math.floor(Fh);if(!(ef<L$&&Fh>0))return hQ;do hQ.push(tQ=new Date(+ef)),C(ef,Fh),X(ef);while(tQ<ef&&ef<L$);return hQ};
aV.filter=function(ef){return pC(function(L$){if(L$>=L$)for(;X(L$),!ef(L$);)L$.setTime(L$-1)},function(L$,Fh){if(L$>=L$)if(Fh<0)for(;++Fh<=0;)for(;C(L$,-1),!ef(L$););
else for(;--Fh>=0;)for(;C(L$,1),!ef(L$););})};
S&&(aV.count=function(ef,L$){iZO.setTime(+ef);gyf.setTime(+L$);X(iZO);X(gyf);return Math.floor(S(iZO,gyf))},aV.every=function(ef){ef=Math.floor(ef);
return isFinite(ef)&&ef>0?ef>1?aV.filter(t?function(L$){return t(L$)%ef===0}:function(L$){return aV.count(0,L$)%ef===0}):aV:null});
return aV}
function A9(X){return pC(function(C){C.setDate(C.getDate()-(C.getDay()+7-X)%7);C.setHours(0,0,0,0)},function(C,S){C.setDate(C.getDate()+S*7)},function(C,S){return(S-C-(S.getTimezoneOffset()-C.getTimezoneOffset())*6E4)/6048E5})}
function UL(X){return pC(function(C){C.setUTCDate(C.getUTCDate()-(C.getUTCDay()+7-X)%7);C.setUTCHours(0,0,0,0)},function(C,S){C.setUTCDate(C.getUTCDate()+S*7)},function(C,S){return(S-C)/6048E5})}
function LHb(X){if(0<=X.y&&X.y<100){var C=new Date(-1,X.m,X.d,X.H,X.M,X.S,X.L);C.setFullYear(X.y);return C}return new Date(X.y,X.m,X.d,X.H,X.M,X.S,X.L)}
function bxE(X){if(0<=X.y&&X.y<100){var C=new Date(Date.UTC(-1,X.m,X.d,X.H,X.M,X.S,X.L));C.setUTCFullYear(X.y);return C}return new Date(Date.UTC(X.y,X.m,X.d,X.H,X.M,X.S,X.L))}
function qK(X){return{y:X,m:0,d:1,H:0,M:0,S:0,L:0}}
function BPf(X){function C(IT,T4){return function(D7){var Vj=[],qu=-1,Hw=0,d$=IT.length,eR,rH;for(D7 instanceof Date||(D7=new Date(+D7));++qu<d$;)if(IT.charCodeAt(qu)===37){Vj.push(IT.slice(Hw,qu));(Hw=HZi[eR=IT.charAt(++qu)])!=null?eR=IT.charAt(++qu):Hw=eR==="e"?" ":"0";if(rH=T4[eR])eR=rH(D7,Hw);Vj.push(eR);Hw=qu+1}Vj.push(IT.slice(Hw,qu));return Vj.join("")}}
function S(IT,T4){return function(D7){var Vj=qK(1900);if(t(Vj,IT,D7,0)!=D7.length)return null;if("Q"in Vj)return new Date(Vj.Q);"p"in Vj&&(Vj.H=Vj.H%12+Vj.p*12);if("V"in Vj){if(Vj.V<1||Vj.V>53)return null;"w"in Vj||(Vj.w=1);if("Z"in Vj){D7=bxE(qK(Vj.y));var qu=D7.getUTCDay();D7=qu>4||qu===0?ubQ.ceil(D7):ubQ(D7);D7=$M7.offset(D7,(Vj.V-1)*7);Vj.y=D7.getUTCFullYear();Vj.m=D7.getUTCMonth();Vj.d=D7.getUTCDate()+(Vj.w+6)%7}else D7=T4(qK(Vj.y)),qu=D7.getDay(),D7=qu>4||qu===0?dM$.ceil(D7):dM$(D7),D7=FKs.offset(D7,
(Vj.V-1)*7),Vj.y=D7.getFullYear(),Vj.m=D7.getMonth(),Vj.d=D7.getDate()+(Vj.w+6)%7}else if("W"in Vj||"U"in Vj)"w"in Vj||(Vj.w="u"in Vj?Vj.u%7:"W"in Vj?1:0),qu="Z"in Vj?bxE(qK(Vj.y)).getUTCDay():T4(qK(Vj.y)).getDay(),Vj.m=0,Vj.d="W"in Vj?(Vj.w+6)%7+Vj.W*7-(qu+5)%7:Vj.w+Vj.U*7-(qu+6)%7;return"Z"in Vj?(Vj.H+=Vj.Z/100|0,Vj.M+=Vj.Z%100,bxE(Vj)):T4(Vj)}}
function t(IT,T4,D7,Vj){for(var qu=0,Hw=T4.length,d$=D7.length,eR;qu<Hw;){if(Vj>=d$)return-1;eR=T4.charCodeAt(qu++);if(eR===37){if(eR=T4.charAt(qu++),eR=Tu[eR in HZi?T4.charAt(qu++):eR],!eR||(Vj=eR(IT,D7,Vj))<0)return-1}else if(eR!=D7.charCodeAt(Vj++))return-1}return Vj}
var aV=X.dateTime,ef=X.date,L$=X.time,Fh=X.periods,hQ=X.days,tQ=X.shortDays,x8=X.months,lq=X.shortMonths,N0=NK(Fh),Mk=v4(Fh),QY=NK(hQ),dC=v4(hQ),BC=NK(tQ),up=v4(tQ),hE=NK(x8),Bg=v4(x8),aO=NK(lq),x9=v4(lq),bN={a:function(IT){return tQ[IT.getDay()]},
A:function(IT){return hQ[IT.getDay()]},
b:function(IT){return lq[IT.getMonth()]},
B:function(IT){return x8[IT.getMonth()]},
c:null,d:CFs,e:CFs,f:ref,H:sXc,I:Ykf,j:mVf,L:IK8,m:Hrj,M:$V4,p:function(IT){return Fh[+(IT.getHours()>=12)]},
Q:jck,s:OZJ,S:FHc,u:Cr8,U:Ihf,V:jXT,w:OrC,W:XVc,x:null,X:null,y:Aef,Y:UVT,Z:R0k,"%":XeJ},vd={a:function(IT){return tQ[IT.getUTCDay()]},
A:function(IT){return hQ[IT.getUTCDay()]},
b:function(IT){return lq[IT.getUTCMonth()]},
B:function(IT){return x8[IT.getUTCMonth()]},
c:null,d:Ays,e:Ays,f:Skf,H:npi,I:irx,j:gpc,L:UME,m:uVb,M:dVf,p:function(IT){return Fh[+(IT.getUTCHours()>=12)]},
Q:jck,s:OZJ,S:wVY,u:qkb,U:NPi,V:vpj,w:Jec,W:fhY,x:null,X:null,y:tIf,Y:kKC,Z:Pr6,"%":XeJ},Tu={a:function(IT,T4,D7){return(T4=BC.exec(T4.slice(D7)))?(IT.w=up[T4[0].toLowerCase()],D7+T4[0].length):-1},
A:function(IT,T4,D7){return(T4=QY.exec(T4.slice(D7)))?(IT.w=dC[T4[0].toLowerCase()],D7+T4[0].length):-1},
b:function(IT,T4,D7){return(T4=aO.exec(T4.slice(D7)))?(IT.m=x9[T4[0].toLowerCase()],D7+T4[0].length):-1},
B:function(IT,T4,D7){return(T4=hE.exec(T4.slice(D7)))?(IT.m=Bg[T4[0].toLowerCase()],D7+T4[0].length):-1},
c:function(IT,T4,D7){return t(IT,aV,T4,D7)},
d:Rq8,e:Rq8,f:Ep4,H:SB8,I:SB8,j:h0Y,L:x2c,m:GEi,M:D2Y,p:function(IT,T4,D7){return(T4=N0.exec(T4.slice(D7)))?(IT.p=Mk[T4[0].toLowerCase()],D7+T4[0].length):-1},
Q:Kqb,s:zsc,S:aF8,u:o2j,U:yZO,V:lFj,w:cZf,W:Tg6,x:function(IT,T4,D7){return t(IT,ef,T4,D7)},
X:function(IT,T4,D7){return t(IT,L$,T4,D7)},
y:WqC,Y:esj,Z:ZXO,"%":MwO};bN.x=C(ef,bN);bN.X=C(L$,bN);bN.c=C(aV,bN);vd.x=C(ef,vd);vd.X=C(L$,vd);vd.c=C(aV,vd);return{format:function(IT){var T4=C(IT,bN);T4.toString=function(){return IT};
return T4},
parse:function(IT){var T4=S(IT,LHb);T4.toString=function(){return IT};
return T4},
utcFormat:function(IT){var T4=C(IT,vd);T4.toString=function(){return IT};
return T4},
utcParse:function(IT){var T4=S(IT,bxE);T4.toString=function(){return IT};
return T4}}}
function Bl(X,C,S){var t=X<0?"-":"";X=(t?-X:X)+"";var aV=X.length;return t+(aV<S?Array(S-aV+1).join(C)+X:X)}
function Qm4(X){return X.replace(p_b,"\\$&")}
function NK(X){return new RegExp("^(?:"+X.map(Qm4).join("|")+")","i")}
function v4(X){for(var C={},S=-1,t=X.length;++S<t;)C[X[S].toLowerCase()]=S;return C}
function cZf(X,C,S){return(C=rB.exec(C.slice(S,S+1)))?(X.w=+C[0],S+C[0].length):-1}
function o2j(X,C,S){return(C=rB.exec(C.slice(S,S+1)))?(X.u=+C[0],S+C[0].length):-1}
function yZO(X,C,S){return(C=rB.exec(C.slice(S,S+2)))?(X.U=+C[0],S+C[0].length):-1}
function lFj(X,C,S){return(C=rB.exec(C.slice(S,S+2)))?(X.V=+C[0],S+C[0].length):-1}
function Tg6(X,C,S){return(C=rB.exec(C.slice(S,S+2)))?(X.W=+C[0],S+C[0].length):-1}
function esj(X,C,S){return(C=rB.exec(C.slice(S,S+4)))?(X.y=+C[0],S+C[0].length):-1}
function WqC(X,C,S){return(C=rB.exec(C.slice(S,S+2)))?(X.y=+C[0]+(+C[0]>68?1900:2E3),S+C[0].length):-1}
function ZXO(X,C,S){return(C=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(C.slice(S,S+6)))?(X.Z=C[1]?0:-(C[2]+(C[3]||"00")),S+C[0].length):-1}
function GEi(X,C,S){return(C=rB.exec(C.slice(S,S+2)))?(X.m=C[0]-1,S+C[0].length):-1}
function Rq8(X,C,S){return(C=rB.exec(C.slice(S,S+2)))?(X.d=+C[0],S+C[0].length):-1}
function h0Y(X,C,S){return(C=rB.exec(C.slice(S,S+3)))?(X.m=0,X.d=+C[0],S+C[0].length):-1}
function SB8(X,C,S){return(C=rB.exec(C.slice(S,S+2)))?(X.H=+C[0],S+C[0].length):-1}
function D2Y(X,C,S){return(C=rB.exec(C.slice(S,S+2)))?(X.M=+C[0],S+C[0].length):-1}
function aF8(X,C,S){return(C=rB.exec(C.slice(S,S+2)))?(X.S=+C[0],S+C[0].length):-1}
function x2c(X,C,S){return(C=rB.exec(C.slice(S,S+3)))?(X.L=+C[0],S+C[0].length):-1}
function Ep4(X,C,S){return(C=rB.exec(C.slice(S,S+6)))?(X.L=Math.floor(C[0]/1E3),S+C[0].length):-1}
function MwO(X,C,S){return(X=Vw4.exec(C.slice(S,S+1)))?S+X[0].length:-1}
function Kqb(X,C,S){return(C=rB.exec(C.slice(S)))?(X.Q=+C[0],S+C[0].length):-1}
function zsc(X,C,S){return(C=rB.exec(C.slice(S)))?(X.Q=+C[0]*1E3,S+C[0].length):-1}
function CFs(X,C){return Bl(X.getDate(),C,2)}
function sXc(X,C){return Bl(X.getHours(),C,2)}
function Ykf(X,C){return Bl(X.getHours()%12||12,C,2)}
function mVf(X,C){return Bl(1+FKs.count(zB(X),X),C,3)}
function IK8(X,C){return Bl(X.getMilliseconds(),C,3)}
function ref(X,C){return IK8(X,C)+"000"}
function Hrj(X,C){return Bl(X.getMonth()+1,C,2)}
function $V4(X,C){return Bl(X.getMinutes(),C,2)}
function FHc(X,C){return Bl(X.getSeconds(),C,2)}
function Cr8(X){X=X.getDay();return X===0?7:X}
function Ihf(X,C){return Bl(bXf.count(zB(X),X),C,2)}
function jXT(X,C){var S=X.getDay();X=S>=4||S===0?wef(X):wef.ceil(X);return Bl(wef.count(zB(X),X)+(zB(X).getDay()===4),C,2)}
function OrC(X){return X.getDay()}
function XVc(X,C){return Bl(dM$.count(zB(X),X),C,2)}
function Aef(X,C){return Bl(X.getFullYear()%100,C,2)}
function UVT(X,C){return Bl(X.getFullYear()%1E4,C,4)}
function R0k(X){X=X.getTimezoneOffset();return(X>0?"-":(X*=-1,"+"))+Bl(X/60|0,"0",2)+Bl(X%60,"0",2)}
function Ays(X,C){return Bl(X.getUTCDate(),C,2)}
function npi(X,C){return Bl(X.getUTCHours(),C,2)}
function irx(X,C){return Bl(X.getUTCHours()%12||12,C,2)}
function gpc(X,C){return Bl(1+$M7.count(a7(X),X),C,3)}
function UME(X,C){return Bl(X.getUTCMilliseconds(),C,3)}
function Skf(X,C){return UME(X,C)+"000"}
function uVb(X,C){return Bl(X.getUTCMonth()+1,C,2)}
function dVf(X,C){return Bl(X.getUTCMinutes(),C,2)}
function wVY(X,C){return Bl(X.getUTCSeconds(),C,2)}
function qkb(X){X=X.getUTCDay();return X===0?7:X}
function NPi(X,C){return Bl(LqT.count(a7(X),X),C,2)}
function vpj(X,C){var S=X.getUTCDay();X=S>=4||S===0?qBQ(X):qBQ.ceil(X);return Bl(qBQ.count(a7(X),X)+(a7(X).getUTCDay()===4),C,2)}
function Jec(X){return X.getUTCDay()}
function fhY(X,C){return Bl(ubQ.count(a7(X),X),C,2)}
function tIf(X,C){return Bl(X.getUTCFullYear()%100,C,2)}
function kKC(X,C){return Bl(X.getUTCFullYear()%1E4,C,4)}
function Pr6(){return"+0000"}
function XeJ(){return"%"}
function jck(X){return+X}
function OZJ(X){return Math.floor(+X/1E3)}
function a0(X){for(var C=X.length/6|0,S=Array(C),t=0;t<C;)S[t]="#"+X.slice(t*6,++t*6);return S}
function Nu(X){return Bgb(X[X.length-1])}
function LGf(X){var C=X.length;return function(S){return X[Math.max(0,Math.min(C-1,Math.floor(S*C)))]}}
function nyE(X){this._context=X}
function iZq(X){this._curve=X}
function gyo(X,C,S){var t=X._x1-X._x0;C-=X._x1;var aV=(X._y1-X._y0)/(t||C<0&&-0);X=(S-X._y1)/(C||t<0&&-0);return((aV<0?-1:1)+(X<0?-1:1))*Math.min(Math.abs(aV),Math.abs(X),.5*Math.abs((aV*C+X*t)/(t+C)))||0}
function ubk(X,C){var S=X._x1-X._x0;return S?(3*(X._y1-X._y0)/S-C)/2:C}
function Nrh(X,C,S){var t=X._x0,aV=X._x1,ef=X._y1,L$=(aV-t)/3;X._context.bezierCurveTo(t+L$,X._y0+L$*C,aV-L$,ef-L$*S,aV,ef)}
function vyP(X){this._context=X}
function dMu(X){this._context=X}
function JL(X,C,S){this.k=X;this.x=C;this.y=S}
(function(X){X.length===1&&(X=G(X));return{left:function(C,S,t,aV){t==null&&(t=0);aV==null&&(aV=C.length);for(;t<aV;){var ef=t+aV>>>1;X(C[ef],S)<0?t=ef+1:aV=ef}return t},
right:function(C,S,t,aV){t==null&&(t=0);aV==null&&(aV=C.length);for(;t<aV;){var ef=t+aV>>>1;X(C[ef],S)>0?aV=ef:t=ef+1}return t}}})(x);
var Z6j={value:function(){}};
K.prototype=D.prototype={constructor:K,on:function(X,C){var S=this._,t=z(X+"",S),aV,ef=-1,L$=t.length;if(arguments.length<2)for(;++ef<L$;){var Fh;if(Fh=aV=(X=t[ef]).type){a:{Fh=S[aV];for(var hQ=0,tQ=Fh.length;hQ<tQ;++hQ)if((aV=Fh[hQ]).name===X.name){aV=aV.value;break a}aV=void 0}Fh=aV}if(Fh)return aV}else{if(C!=null&&typeof C!=="function")throw Error("we`"+C);for(;++ef<L$;)if(aV=(X=t[ef]).type)S[aV]=y(S[aV],X.name,C);else if(C==null)for(aV in S)S[aV]=y(S[aV],X.name,null);return this}},
copy:function(){var X={},C=this._,S;for(S in C)X[S]=C[S].slice();return new K(X)},
call:function(X,C){if((aV=arguments.length-2)>0)for(var S=Array(aV),t=0,aV,ef;t<aV;++t)S[t]=arguments[t+2];if(!this._.hasOwnProperty(X))throw Error("qe`"+X);ef=this._[X];t=0;for(aV=ef.length;t<aV;++t)ef[t].value.apply(C,S)},
apply:function(X,C,S){if(!this._.hasOwnProperty(X))throw Error("qe`"+X);X=this._[X];for(var t=0,aV=X.length;t<aV;++t)X[t].value.apply(C,S)}};
var n1={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/"},weZ=function(X){return function(){return this.matches(X)}};
if(typeof document!=="undefined"){var fI=document.documentElement;if(!fI.matches){var rZO=fI.webkitMatchesSelector||fI.msMatchesSelector||fI.mozMatchesSelector||fI.oMatchesSelector;weZ=function(X){return function(){return rZO.call(this,X)}}}}var qBk=weZ;
r.prototype={constructor:r,appendChild:function(X){return this._parent.insertBefore(X,this._next)},
insertBefore:function(X,C){return this._parent.insertBefore(X,C)},
querySelector:function(X){return this._parent.querySelector(X)},
querySelectorAll:function(X){return this._parent.querySelectorAll(X)}};
var JDZ={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(JDZ={mouseenter:"mouseover",mouseleave:"mouseout"}));var MJk=[null];d9.prototype=Lf.prototype={constructor:d9,select:function(X){typeof X!=="function"&&(X=V(X));for(var C=this._groups,S=C.length,t=Array(S),aV=0;aV<S;++aV)for(var ef=C[aV],L$=ef.length,Fh=t[aV]=Array(L$),hQ,tQ,x8=0;x8<L$;++x8)(hQ=ef[x8])&&(tQ=X.call(hQ,hQ.__data__,x8,ef))&&("__data__"in hQ&&(tQ.__data__=hQ.__data__),Fh[x8]=tQ);return new d9(t,this._parents)},
filter:function(X){typeof X!=="function"&&(X=qBk(X));for(var C=this._groups,S=C.length,t=Array(S),aV=0;aV<S;++aV)for(var ef=C[aV],L$=ef.length,Fh=t[aV]=[],hQ,tQ=0;tQ<L$;++tQ)(hQ=ef[tQ])&&X.call(hQ,hQ.__data__,tQ,ef)&&Fh.push(hQ);return new d9(t,this._parents)},
data:function(X,C){if(!X)return Mk=Array(this.size()),tQ=-1,this.each(function(hE){Mk[++tQ]=hE}),Mk;
var S=C?A:O,t=this._parents,aV=this._groups;typeof X!=="function"&&(X=H(X));for(var ef=aV.length,L$=Array(ef),Fh=Array(ef),hQ=Array(ef),tQ=0;tQ<ef;++tQ){var x8=t[tQ],lq=aV[tQ],N0=lq.length,Mk=X.call(x8,x8&&x8.__data__,tQ,t),QY=Mk.length,dC=Fh[tQ]=Array(QY),BC=L$[tQ]=Array(QY);N0=hQ[tQ]=Array(N0);S(x8,lq,dC,BC,N0,Mk,C);lq=x8=0;for(var up;x8<QY;++x8)if(N0=dC[x8]){for(x8>=lq&&(lq=x8+1);!(up=BC[lq])&&++lq<QY;);N0._next=up||null}}L$=new d9(L$,t);L$._enter=Fh;L$._exit=hQ;return L$},
exit:function(){return new d9(this._exit||this._groups.map(L),this._parents)},
merge:function(X){var C=this._groups;X=X._groups;for(var S=C.length,t=Math.min(S,X.length),aV=Array(S),ef=0;ef<t;++ef)for(var L$=C[ef],Fh=X[ef],hQ=L$.length,tQ=aV[ef]=Array(hQ),x8,lq=0;lq<hQ;++lq)if(x8=L$[lq]||Fh[lq])tQ[lq]=x8;for(;ef<S;++ef)aV[ef]=C[ef];return new d9(aV,this._parents)},
order:function(){for(var X=this._groups,C=-1,S=X.length;++C<S;)for(var t=X[C],aV=t.length-1,ef=t[aV],L$;--aV>=0;)if(L$=t[aV])ef&&ef!==L$.nextSibling&&ef.parentNode.insertBefore(L$,ef),ef=L$;return this},
sort:function(X){function C(lq,N0){return lq&&N0?X(lq.__data__,N0.__data__):!lq-!N0}
X||(X=g);for(var S=this._groups,t=S.length,aV=Array(t),ef=0;ef<t;++ef){for(var L$=S[ef],Fh=L$.length,hQ=aV[ef]=Array(Fh),tQ,x8=0;x8<Fh;++x8)if(tQ=L$[x8])hQ[x8]=tQ;hQ.sort(C)}return(new d9(aV,this._parents)).order()},
call:function(){var X=arguments[0];arguments[0]=this;X.apply(null,arguments);return this},
nodes:function(){var X=Array(this.size()),C=-1;this.each(function(){X[++C]=this});
return X},
node:function(){for(var X=this._groups,C=0,S=X.length;C<S;++C)for(var t=X[C],aV=0,ef=t.length;aV<ef;++aV){var L$=t[aV];if(L$)return L$}return null},
size:function(){var X=0;this.each(function(){++X});
return X},
empty:function(){return!this.node()},
each:function(X){for(var C=this._groups,S=0,t=C.length;S<t;++S)for(var aV=C[S],ef=0,L$=aV.length,Fh;ef<L$;++ef)(Fh=aV[ef])&&X.call(Fh,Fh.__data__,ef,aV);return this},
attr:function(X,C){var S=c(X);if(arguments.length<2){var t=this.node();return S.local?t.getAttributeNS(S.space,S.local):t.getAttribute(S)}return this.each((C==null?S.local?f:u:typeof C==="function"?S.local?cL:k:S.local?P:v)(S,C))},
style:function(X,C,S){return arguments.length>1?this.each((C==null?bO:typeof C==="function"?jf:mE)(X,C,S==null?"":S)):$C(this.node(),X)},
property:function(X,C){return arguments.length>1?this.each((C==null?OD:typeof C==="function"?n$:wn)(X,C)):this.node()[X]},
text:function(X){return arguments.length?this.each(X==null?Fi:(typeof X==="function"?UE:pf)(X)):this.node().textContent},
html:function(X){return arguments.length?this.each(X==null?M0:(typeof X==="function"?G8:cs)(X)):this.node().innerHTML},
append:function(X){var C=typeof X==="function"?X:Q(X);return this.select(function(){return this.appendChild(C.apply(this,arguments))})},
insert:function(X,C){var S=typeof X==="function"?X:Q(X),t=C==null?T7:typeof C==="function"?C:V(C);return this.select(function(){return this.insertBefore(S.apply(this,arguments),t.apply(this,arguments)||null)})},
remove:function(){return this.each(Wd)},
clone:function(X){return this.select(X?lO:Fc)},
datum:function(X){return arguments.length?this.property("__data__",X):this.node().__data__},
on:function(X,C,S){var t=uC(X+""),aV=t.length,ef;if(arguments.length<2){var L$=this.node().__on;if(L$)for(var Fh=0,hQ=L$.length,tQ;Fh<hQ;++Fh){var x8=0;for(tQ=L$[Fh];x8<aV;++x8)if((ef=t[x8]).type===tQ.type&&ef.name===tQ.name)return tQ.value}}else{L$=C?fu:Y8;S==null&&(S=!1);for(x8=0;x8<aV;++x8)this.each(L$(t[x8],C,S));return this}},
dispatch:function(X,C){return this.each((typeof C==="function"?as:vs)(X,C))}};
var Qpx=0;Lu.prototype=function(){return new Lu}.prototype={constructor:Lu,
get:function(X){for(var C=this._;!(C in X);)if(!(X=X.parentNode))return;return X[C]},
set:function(X,C){return X[this._]=C},
remove:function(X){return this._ in X&&delete X[this._]},
toString:function(){return this._}};
var o7=1/.7,p1k=/^#([0-9a-f]{3})$/,VJk=/^#([0-9a-f]{6})$/,b6Y=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),LJ4=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Bvf=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),rR6=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*\\)$"),
spx=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Y$T=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*\\)$"),frs={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};
Cu(y$,yj,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
Cu(Ec,FO,ex(y$,{brighter:function(X){X=X==null?o7:Math.pow(o7,X);return new Ec(this.r*X,this.g*X,this.b*X,this.opacity)},
darker:function(X){X=X==null?.7:Math.pow(.7,X);return new Ec(this.r*X,this.g*X,this.b*X,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"#"+h6(this.r)+h6(this.g)+h6(this.b)},
toString:function(){var X=this.opacity;X=isNaN(X)?1:Math.max(0,Math.min(1,X));return(X===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))+(X===1?")":", "+X+")")}}));
Cu(aA,RW,ex(y$,{brighter:function(X){X=X==null?o7:Math.pow(o7,X);return new aA(this.h,this.s,this.l*X,this.opacity)},
darker:function(X){X=X==null?.7:Math.pow(.7,X);return new aA(this.h,this.s,this.l*X,this.opacity)},
rgb:function(){var X=this.h%360+(this.h<0)*360,C=this.l,S=C+(C<.5?C:1-C)*(isNaN(X)||isNaN(this.s)?0:this.s);C=2*C-S;return new Ec(PC(X>=240?X-240:X+120,C,S),PC(X,C,S),PC(X<120?X+240:X-120,C,S),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 tYk=Math.PI/180,EGs=180/Math.PI,PGq=4/29,DT=6/29,ks0=3*DT*DT,mtC=DT*DT*DT;Cu(sD,function(X,C,S,t){return arguments.length===1?zy(X):new sD(X,C,S,t==null?1:t)},ex(y$,{brighter:function(X){return new sD(this.l+18*(X==null?1:X),this.a,this.b,this.opacity)},
darker:function(X){return new sD(this.l-18*(X==null?1:X),this.a,this.b,this.opacity)},
rgb:function(){var X=(this.l+16)/116,C=isNaN(this.a)?X:X+this.a/500,S=isNaN(this.b)?X:X-this.b/200;C=.96422*dn(C);X=1*dn(X);S=.82521*dn(S);return new Ec(Ws(3.1338561*C-1.6168667*X-.4906146*S),Ws(-.9787684*C+1.9161415*X+.033454*S),Ws(.0719453*C-.2289914*X+1.4052427*S),this.opacity)}}));
Cu(VJ,Zc,ex(y$,{brighter:function(X){return new VJ(this.h,this.c,this.l+18*(X==null?1:X),this.opacity)},
darker:function(X){return new VJ(this.h,this.c,this.l-18*(X==null?1:X),this.opacity)},
rgb:function(){return zy(this).rgb()}}));
var hr8=1.78277*-.29227-.1347134789;Cu(BY,QJ,ex(y$,{brighter:function(X){X=X==null?o7:Math.pow(o7,X);return new BY(this.h,this.s,this.l*X,this.opacity)},
darker:function(X){X=X==null?.7:Math.pow(.7,X);return new BY(this.h,this.s,this.l*X,this.opacity)},
rgb:function(){var X=isNaN(this.h)?0:(this.h+120)*tYk,C=+this.l,S=isNaN(this.s)?0:this.s*C*(1-C),t=Math.cos(X);X=Math.sin(X);return new Ec(255*(C+S*(-.14861*t+1.78277*X)),255*(C+S*(-.29227*t+-.90649*X)),255*(C+1.97294*t*S),this.opacity)}}));
var zqE=function S(C){function t(ef,L$){var Fh=aV((ef=FO(ef)).r,(L$=FO(L$)).r),hQ=aV(ef.g,L$.g),tQ=aV(ef.b,L$.b),x8=lp(ef.opacity,L$.opacity);return function(lq){ef.r=Fh(lq);ef.g=hQ(lq);ef.b=tQ(lq);ef.opacity=x8(lq);return ef+""}}
var aV=Ll(C);t.gamma=S;return t}(1),Bgb=Qy(function(C){var S=C.length-1;
return function(t){var aV=t<=0?t=0:t>=1?(t=1,S-1):Math.floor(t*S),ef=C[aV],L$=C[aV+1];return eX((t-aV/S)*S,aV>0?C[aV-1]:2*ef-L$,ef,L$,aV<S-1?C[aV+2]:2*L$-ef)}});
Qy(function(C){var S=C.length;return function(t){var aV=Math.floor(((t%=1)<0?++t:t)*S);return eX((t-aV/S)*S,C[(aV+S-1)%S],C[aV%S],C[(aV+1)%S],C[(aV+2)%S])}});
var $Md=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,FKV=new RegExp($Md.source,"g"),xMZ=180/Math.PI,JyL={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},tL,fKL,Nri,BOn,smC=fl(function(C){if(C==="none")return JyL;tL||(tL=document.createElement("DIV"),fKL=document.documentElement,Nri=document.defaultView);tL.style.transform=C;C=Nri.getComputedStyle(fKL.appendChild(tL),null).getPropertyValue("transform");fKL.removeChild(tL);C=C.slice(7,-1).split(",");return H5(+C[0],+C[1],+C[2],+C[3],
+C[4],+C[5])},"px, ","px)","deg)"),Yxb=fl(function(C){if(C==null)return JyL;
BOn||(BOn=document.createElementNS("http://www.w3.org/2000/svg","g"));BOn.setAttribute("transform",C);if(!(C=BOn.transform.baseVal.consolidate()))return JyL;C=C.matrix;return H5(C.a,C.b,C.c,C.d,C.e,C.f)},", ",")",")");
IS(Ag);IS(lp);MV(Ag);MV(lp);QW(Ag);var tjf=QW(lp),Kv=0,i6=0,u6=0,WGQ,gw,TOD=0,OL=0,ctL=0,nI=typeof performance==="object"&&performance.now?performance:Date,GIs=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(C){setTimeout(C,17)};
Z9.prototype=S6.prototype={constructor:Z9,restart:function(C,S,t){if(typeof C!=="function")throw new TypeError("xe");t=(t==null?eb():+t)+(S==null?0:+S);this._next||gw===this||(gw?gw._next=this:WGQ=this,gw=this);this._call=C;this._time=t;iJ()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,iJ())}};
var $t4=D("start","end","interrupt"),FJc=[],m2k=Lf.prototype.constructor,vyZ=0,y8=Lf.prototype;zS.prototype=function(C){return Lf().transition(C)}.prototype={constructor:zS,
select:function(C){var S=this._name,t=this._id;typeof C!=="function"&&(C=V(C));for(var aV=this._groups,ef=aV.length,L$=Array(ef),Fh=0;Fh<ef;++Fh)for(var hQ=aV[Fh],tQ=hQ.length,x8=L$[Fh]=Array(tQ),lq,N0,Mk=0;Mk<tQ;++Mk)(lq=hQ[Mk])&&(N0=C.call(lq,lq.__data__,Mk,hQ))&&("__data__"in lq&&(N0.__data__=lq.__data__),x8[Mk]=N0,CFL(x8[Mk],S,t,Mk,x8,DC(lq,t)));return new zS(L$,this._parents,S,t)},
filter:function(C){typeof C!=="function"&&(C=qBk(C));for(var S=this._groups,t=S.length,aV=Array(t),ef=0;ef<t;++ef)for(var L$=S[ef],Fh=L$.length,hQ=aV[ef]=[],tQ,x8=0;x8<Fh;++x8)(tQ=L$[x8])&&C.call(tQ,tQ.__data__,x8,L$)&&hQ.push(tQ);return new zS(aV,this._parents,this._name,this._id)},
merge:function(C){if(C._id!==this._id)throw Error();var S=this._groups;C=C._groups;for(var t=S.length,aV=Math.min(t,C.length),ef=Array(t),L$=0;L$<aV;++L$)for(var Fh=S[L$],hQ=C[L$],tQ=Fh.length,x8=ef[L$]=Array(tQ),lq,N0=0;N0<tQ;++N0)if(lq=Fh[N0]||hQ[N0])x8[N0]=lq;for(;L$<t;++L$)ef[L$]=S[L$];return new zS(ef,this._parents,this._name,this._id)},
selection:function(){return new m2k(this._groups,this._parents)},
transition:function(){for(var C=this._name,S=this._id,t=++vyZ,aV=this._groups,ef=aV.length,L$=0;L$<ef;++L$)for(var Fh=aV[L$],hQ=Fh.length,tQ,x8=0;x8<hQ;++x8)if(tQ=Fh[x8]){var lq=DC(tQ,S);CFL(tQ,C,t,x8,Fh,{time:lq.time+lq.delay+lq.duration,delay:0,duration:lq.duration,ease:lq.ease})}return new zS(aV,this._parents,C,t)},
call:y8.call,nodes:y8.nodes,node:y8.node,size:y8.size,empty:y8.empty,each:y8.each,on:function(C,S){var t=this._id;return arguments.length<2?DC(this.node(),t).on.on(C):this.each(Nvc(t,C,S))},
attr:function(C,S){var t=c(C),aV=t==="transform"?Yxb:KKu;return this.attrTween(C,typeof S==="function"?(t.local?RtO:Ut4)(t,aV,jcQ(this,"attr."+C,S)):S==null?(t.local?O6C:jp6)(t):(t.local?AR4:X1k)(t,aV,S+""))},
attrTween:function(C,S){var t="attr."+C;if(arguments.length<2)return(t=this.tween(t))&&t._value;if(S==null)return this.tween(t,null);if(typeof S!=="function")throw Error();var aV=c(C);return this.tween(t,(aV.local?S$O:n1Y)(aV,S))},
style:function(C,S,t){var aV=C==="transform"?smC:KKu;return S==null?this.styleTween(C,JRc(C,aV)).on("end.style."+C,fU8(C)):this.styleTween(C,typeof S==="function"?k0j(C,aV,jcQ(this,"style."+C,S)):tJf(C,aV,S+""),t)},
styleTween:function(C,S,t){var aV="style."+C;if(arguments.length<2)return(aV=this.tween(aV))&&aV._value;if(S==null)return this.tween(aV,null);if(typeof S!=="function")throw Error();return this.tween(aV,Phj(C,S,t==null?"":t))},
text:function(C){return this.tween("text",typeof C==="function"?ht6(jcQ(this,"text",C)):E1j(C==null?"":C+""))},
remove:function(){return this.on("end.remove",v1f(this._id))},
tween:function(C,S){var t=this._id;if(arguments.length<2){t=DC(this.node(),t).tween;for(var aV=0,ef=t.length,L$;aV<ef;++aV)if((L$=t[aV]).name===C)return L$.value;return null}return this.each((S==null?Chc:IUc)(t,C,S))},
delay:function(C){var S=this._id;return arguments.length?this.each((typeof C==="function"?i6O:g1c)(S,C)):DC(this.node(),S).delay},
duration:function(C){var S=this._id;return arguments.length?this.each((typeof C==="function"?umf:dtc)(S,C)):DC(this.node(),S).duration},
ease:function(C){var S=this._id;return arguments.length?this.each(w1f(S,C)):DC(this.node(),S).ease}};
var kI$={time:null,delay:0,duration:250,ease:function(C){return((C*=2)<=1?C*C*C:(C-=2)*C*C+2)/2}};
Lf.prototype.transition=function(C){var S;if(C instanceof zS){var t=C._id;C=C._name}else t=++vyZ,(S=kI$).time=eb(),C=C==null?null:C+"";for(var aV=this._groups,ef=aV.length,L$=0;L$<ef;++L$)for(var Fh=aV[L$],hQ=Fh.length,tQ,x8=0;x8<hQ;++x8)if(tQ=Fh[x8]){var lq=tQ,N0=C,Mk=t,QY=x8,dC=Fh,BC;if(!(BC=S))a:{BC=void 0;for(var up=t;!(BC=tQ.__transition)||!(BC=BC[up]);)if(!(tQ=tQ.parentNode)){BC=(kI$.time=eb(),kI$);break a}}CFL(lq,N0,Mk,QY,dC,BC)}return new zS(aV,this._parents,C,t)};
["e","w"].map(OZ3);["n","s"].map(OZ3);"n e s w nw ne se sw".split(" ").map(OZ3);Xe3.prototype=function(){return new Xe3}.prototype={constructor:Xe3,
moveTo:function(C,S){this._+="M"+(this._x0=this._x1=+C)+","+(this._y0=this._y1=+S)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(C,S){this._+="L"+(this._x1=+C)+","+(this._y1=+S)},
bezierCurveTo:function(C,S,t,aV,ef,L$){this._+="C"+ +C+","+ +S+","+ +t+","+ +aV+","+(this._x1=+ef)+","+(this._y1=+L$)},
rect:function(C,S,t,aV){this._+="M"+(this._x0=this._x1=+C)+","+(this._y0=this._y1=+S)+"h"+ +t+"v"+ +aV+"h"+-t+"Z"},
toString:function(){return this._}};
eFf.prototype=aKZ.prototype={constructor:eFf,has:function(C){return" "+C in this},
get:function(C){return this[" "+C]},
set:function(C,S){this[" "+C]=S;return this},
remove:function(C){C=" "+C;return C in this&&delete this[C]},
clear:function(){for(var C in this)C[0]===" "&&delete this[C]},
keys:function(){var C=[],S;for(S in this)S[0]===" "&&C.push(S.slice(1));return C},
values:function(){var C=[],S;for(S in this)S[0]===" "&&C.push(this[S]);return C},
entries:function(){var C=[],S;for(S in this)S[0]===" "&&C.push({key:S.slice(1),value:this[S]});return C},
size:function(){var C=0,S;for(S in this)S[0]===" "&&++C;return C},
empty:function(){for(var C in this)if(C[0]===" ")return!1;return!0},
each:function(C){for(var S in this)S[0]===" "&&C(this[S],S.slice(1),this)}};
var Rq=aKZ.prototype;Zx3.prototype=function(C,S){var t=new Zx3;if(C instanceof Zx3)C.each(function(L$){t.add(L$)});
else if(C){var aV=-1,ef=C.length;if(S==null)for(;++aV<ef;)t.add(C[aV]);else for(;++aV<ef;)t.add(S(C[aV],aV,C))}return t}.prototype={constructor:Zx3,
has:Rq.has,add:function(C){this[" "+C]=C;return this},
remove:Rq.remove,clear:Rq.clear,values:Rq.keys,size:Rq.size,empty:Rq.empty,each:Rq.each};var lK9={},AyL={},HXi=yyq(",").parse,$26=yyq("\t").parse;cys(HXi);cys($26);var xr=function(C,S,t){S=new UMD(S==null?KHf:S,t==null?z0k:t,NaN,NaN,NaN,NaN);return C==null?S:S.addAll(C)}.prototype=UMD.prototype;
xr.copy=function(){var C=new UMD(this._x,this._y,this._x0,this._y0,this._x1,this._y1),S=this._root,t,aV;if(!S)return C;if(!S.length)return C._root=WKE(S),C;for(t=[{source:S,target:C._root=Array(4)}];S=t.pop();)for(var ef=0;ef<4;++ef)if(aV=S.source[ef])aV.length?t.push({source:aV,target:S.target[ef]=Array(4)}):S.target[ef]=WKE(aV);return C};
xr.add=function(C){var S=+this._x.call(null,C),t=+this._y.call(null,C);return TrE(this.cover(S,t),S,t,C)};
xr.addAll=function(C){var S,t,aV=C.length,ef,L$,Fh=Array(aV),hQ=Array(aV),tQ=Infinity,x8=Infinity,lq=-Infinity,N0=-Infinity;for(t=0;t<aV;++t)isNaN(ef=+this._x.call(null,S=C[t]))||isNaN(L$=+this._y.call(null,S))||(Fh[t]=ef,hQ[t]=L$,ef<tQ&&(tQ=ef),ef>lq&&(lq=ef),L$<x8&&(x8=L$),L$>N0&&(N0=L$));lq<tQ&&(tQ=this._x0,lq=this._x1);N0<x8&&(x8=this._y0,N0=this._y1);this.cover(tQ,x8).cover(lq,N0);for(t=0;t<aV;++t)TrE(this,Fh[t],hQ[t],C[t]);return this};
xr.cover=function(C,S){if(isNaN(C=+C)||isNaN(S=+S))return this;var t=this._x0,aV=this._y0,ef=this._x1,L$=this._y1;if(isNaN(t))ef=(t=Math.floor(C))+1,L$=(aV=Math.floor(S))+1;else if(t>C||C>ef||aV>S||S>L$){var Fh=ef-t,hQ=this._root,tQ;switch(tQ=(S<(aV+L$)/2)<<1|C<(t+ef)/2){case 0:do{var x8=Array(4);x8[tQ]=hQ;hQ=x8}while(Fh*=2,ef=t+Fh,L$=aV+Fh,C>ef||S>L$);break;case 1:do x8=Array(4),x8[tQ]=hQ,hQ=x8;while(Fh*=2,t=ef-Fh,L$=aV+Fh,t>C||S>L$);break;case 2:do x8=Array(4),x8[tQ]=hQ,hQ=x8;while(Fh*=2,ef=t+Fh,
aV=L$-Fh,C>ef||aV>S);break;case 3:do x8=Array(4),x8[tQ]=hQ,hQ=x8;while(Fh*=2,t=ef-Fh,aV=L$-Fh,t>C||aV>S)}this._root&&this._root.length&&(this._root=hQ)}else return this;this._x0=t;this._y0=aV;this._x1=ef;this._y1=L$;return this};
xr.data=function(){var C=[];this.visit(function(S){if(!S.length){do C.push(S.data);while(S=S.next)}});
return C};
xr.extent=function(C){return arguments.length?this.cover(+C[0][0],+C[0][1]).cover(+C[1][0],+C[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
xr.find=function(C,S,t){var aV=this._x0,ef=this._y0,L$,Fh,hQ,tQ,x8=this._x1,lq=this._y1,N0=[],Mk=this._root,QY;Mk&&N0.push(new hS(Mk,aV,ef,x8,lq));t==null?t=Infinity:(aV=C-t,ef=S-t,x8=C+t,lq=S+t,t*=t);for(;QY=N0.pop();)if(!(!(Mk=QY.node)||(L$=QY.x0)>x8||(Fh=QY.y0)>lq||(hQ=QY.x1)<aV||(tQ=QY.y1)<ef))if(Mk.length){QY=(L$+hQ)/2;var dC=(Fh+tQ)/2;N0.push(new hS(Mk[3],QY,dC,hQ,tQ),new hS(Mk[2],L$,dC,QY,tQ),new hS(Mk[1],QY,Fh,hQ,dC),new hS(Mk[0],L$,Fh,QY,dC));if(Mk=(S>=dC)<<1|C>=QY)QY=N0[N0.length-1],N0[N0.length-
1]=N0[N0.length-1-Mk],N0[N0.length-1-Mk]=QY}else if(QY=C-+this._x.call(null,Mk.data),dC=S-+this._y.call(null,Mk.data),QY=QY*QY+dC*dC,QY<t){var BC=Math.sqrt(t=QY);aV=C-BC;ef=S-BC;x8=C+BC;lq=S+BC;BC=Mk.data}return BC};
xr.remove=function(C){if(isNaN(tQ=+this._x.call(null,C))||isNaN(x8=+this._y.call(null,C)))return this;var S,t=this._root,aV,ef=this._x0,L$=this._y0,Fh=this._x1,hQ=this._y1,tQ,x8,lq,N0,Mk,QY,dC;if(!t)return this;if(t.length)for(;;){(Mk=tQ>=(lq=(ef+Fh)/2))?ef=lq:Fh=lq;(QY=x8>=(N0=(L$+hQ)/2))?L$=N0:hQ=N0;if(!(S=t,t=t[dC=QY<<1|Mk]))return this;if(!t.length)break;if(S[dC+1&3]||S[dC+2&3]||S[dC+3&3]){var BC=S;var up=dC}}for(;t.data!==C;)if(!(aV=t,t=t.next))return this;(C=t.next)&&delete t.next;if(aV)return C?
aV.next=C:delete aV.next,this;if(!S)return this._root=C,this;C?S[dC]=C:delete S[dC];(t=S[0]||S[1]||S[2]||S[3])&&t===(S[3]||S[2]||S[1]||S[0])&&!t.length&&(BC?BC[up]=t:this._root=t);return this};
xr.removeAll=function(C){for(var S=0,t=C.length;S<t;++S)this.remove(C[S]);return this};
xr.root=function(){return this._root};
xr.size=function(){var C=0;this.visit(function(S){if(!S.length){do++C;while(S=S.next)}});
return C};
xr.visit=function(C){var S=[],t,aV=this._root,ef,L$,Fh,hQ,tQ;for(aV&&S.push(new hS(aV,this._x0,this._y0,this._x1,this._y1));t=S.pop();)if(!C(aV=t.node,L$=t.x0,Fh=t.y0,hQ=t.x1,tQ=t.y1)&&aV.length){t=(L$+hQ)/2;var x8=(Fh+tQ)/2;(ef=aV[3])&&S.push(new hS(ef,t,x8,hQ,tQ));(ef=aV[2])&&S.push(new hS(ef,L$,x8,t,tQ));(ef=aV[1])&&S.push(new hS(ef,t,Fh,hQ,x8));(ef=aV[0])&&S.push(new hS(ef,L$,Fh,t,x8))}};
xr.visitAfter=function(C){var S=[],t=[],aV;for(this._root&&S.push(new hS(this._root,this._x0,this._y0,this._x1,this._y1));aV=S.pop();){var ef=aV.node;if(ef.length){var L$,Fh=aV.x0,hQ=aV.y0,tQ=aV.x1,x8=aV.y1,lq=(Fh+tQ)/2,N0=(hQ+x8)/2;(L$=ef[0])&&S.push(new hS(L$,Fh,hQ,lq,N0));(L$=ef[1])&&S.push(new hS(L$,lq,hQ,tQ,N0));(L$=ef[2])&&S.push(new hS(L$,Fh,N0,lq,x8));(L$=ef[3])&&S.push(new hS(L$,lq,N0,tQ,x8))}t.push(aV)}for(;aV=t.pop();)C(aV.node,aV.x0,aV.y0,aV.x1,aV.y1);return this};
xr.x=function(C){return arguments.length?(this._x=C,this):this._x};
xr.y=function(C){return arguments.length?(this._y=C,this):this._y};
var lhb=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;RqC.prototype=SBC.prototype;SBC.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 Qc7,peZ={"%":function(C,S){return(C*100).toFixed(S)},
b:function(C){return Math.round(C).toString(2)},
c:function(C){return C+""},
d:function(C){return Math.round(C).toString(10)},
e:function(C,S){return C.toExponential(S)},
f:function(C,S){return C.toFixed(S)},
g:function(C,S){return C.toPrecision(S)},
o:function(C){return Math.round(C).toString(8)},
p:function(C,S){return eqo(C*100,S)},
r:eqo,s:function(C,S){var t=MOL(C,S);if(!t)return C+"";var aV=t[0];t=t[1];t=t-(Qc7=Math.max(-8,Math.min(8,Math.floor(t/3)))*3)+1;var ef=aV.length;return t===ef?aV:t>ef?aV+Array(t-ef+1).join("0"):t>0?aV.slice(0,t)+"."+aV.slice(t):"0."+Array(1-t).join("0")+MOL(C,Math.max(0,S+t-1))[0]},
X:function(C){return Math.round(C).toString(16).toUpperCase()},
x:function(C){return Math.round(C).toString(16)}},Mjs="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),Fq4;
(function(C){return Fq4=ce8(C)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});RX.prototype={constructor:RX,reset:function(){this.s=this.t=0},
add:function(C){Vju(rtf,C,this.t);Vju(this,rtf.s,this.s);this.s?this.t+=rtf.t:this.s=rtf.t},
valueOf:function(){return this.s}};
var rtf=new RX,$q=Math.PI,iQ=$q/2,Jy0=$q/4,Cdj=$q*2,PFh=$q/180,aJ=Math.abs,EyC=Math.atan,YB0=Math.atan2,gj=Math.cos,FX=Math.sin,plL=Math.sqrt;new RX;new RX;new RX;var hqh=new RX;(function(C,S,t,aV){return function(ef){function L$(x9,bN){C(x9,bN)&&ef.point(x9,bN)}
function Fh(x9,bN){Mk.point(x9,bN)}
function hQ(){aO.point=Fh;Mk.lineStart()}
function tQ(){aO.point=L$;Mk.lineEnd()}
function x8(x9,bN){Bg.push([x9,bN]);dC.point(x9,bN)}
function lq(){dC.lineStart();Bg=[]}
function N0(){x8(Bg[0][0],Bg[0][1]);dC.lineEnd();var x9=dC.clean(),bN=QY.result(),vd=bN.length,Tu;Bg.pop();up.push(Bg);Bg=null;if(vd)if(x9&1){if(vd=bN[0],(bN=vd.length-1)>0){BC||(ef.polygonStart(),BC=!0);ef.lineStart();for(x9=0;x9<bN;++x9)ef.point((Tu=vd[x9])[0],Tu[1]);ef.lineEnd()}}else vd>1&&x9&2&&bN.push(bN.pop().concat(bN.shift())),hE.push(bN.filter(Zrf))}
var Mk=S(ef),QY=WHf(),dC=S(QY),BC=!1,up,hE,Bg,aO={point:L$,lineStart:hQ,lineEnd:tQ,polygonStart:function(){aO.point=x8;aO.lineStart=lq;aO.lineEnd=N0;hE=[];up=[]},
polygonEnd:function(){aO.point=L$;aO.lineStart=hQ;aO.lineEnd=tQ;var x9=hE,bN=x9.length;var vd=-1;for(var Tu=0,IT,T4;++vd<bN;)Tu+=x9[vd].length;for(IT=Array(Tu);--bN>=0;)for(T4=x9[bN],vd=T4.length;--vd>=0;)IT[--Tu]=T4[vd];hE=IT;x9=up;bN=aV[0];Tu=aV[1];var D7=FX(Tu);vd=[FX(bN),-gj(bN),0];T4=IT=0;hqh.reset();D7===1?Tu=iQ+1E-6:D7===-1&&(Tu=-iQ-1E-6);D7=0;for(var Vj=x9.length;D7<Vj;++D7)if(Hw=(qu=x9[D7]).length){var qu,Hw,d$=qu[Hw-1],eR=d$[0],rH=d$[1]/2+Jy0,sfC=FX(rH),fK0=gj(rH);for(rH=0;rH<Hw;++rH,eR=
x7$,sfC=tjZ,fK0=kN,d$=YXP){var YXP=qu[rH],x7$=YXP[0];kN=YXP[1]/2+Jy0;var tjZ=FX(kN),kN=gj(kN),l5=x7$-eR,GbQ=l5>=0?1:-1,D7L=GbQ*l5,muV=D7L>$q;sfC*=tjZ;hqh.add(YB0(sfC*GbQ*FX(D7L),fK0*kN+sfC*gj(D7L)));IT+=muV?l5+GbQ*Cdj:l5;muV^eR>=bN^x7$>=bN&&(d$=LKZ(bZE(d$),bZE(YXP)),Bri(d$),eR=LKZ(vd,d$),Bri(eR),eR=(muV^l5>=0?-1:1)*Qff(eR[2]),Tu>eR||Tu===eR&&(d$[0]||d$[1]))&&(T4+=muV^l5>=0?1:-1)}}x9=(IT<-1E-6||IT<1E-6&&hqh<-1E-6)^T4&1;hE.length?(BC||(ef.polygonStart(),BC=!0),e0T(hE,MIC,x9,t,ef)):x9&&(BC||(ef.polygonStart(),
BC=!0),ef.lineStart(),t(null,null,1,ef),ef.lineEnd());BC&&(ef.polygonEnd(),BC=!1);hE=up=null},
sphere:function(){ef.polygonStart();ef.lineStart();t(null,null,1,ef);ef.lineEnd();ef.polygonEnd()}};
return aO}})(function(){return!0},function(C){var S=NaN,t=NaN,aV=NaN,ef;
return{lineStart:function(){C.lineStart();ef=1},
point:function(L$,Fh){var hQ=L$>0?$q:-$q,tQ=aJ(L$-S);if(aJ(tQ-$q)<1E-6)C.point(S,t=(t+Fh)/2>0?iQ:-iQ),C.point(aV,t),C.lineEnd(),C.lineStart(),C.point(hQ,t),C.point(L$,t),ef=0;else if(aV!==hQ&&tQ>=$q){aJ(S-aV)<1E-6&&(S-=aV*1E-6);aJ(L$-hQ)<1E-6&&(L$-=hQ*1E-6);tQ=S;var x8=t,lq=L$,N0,Mk,QY=FX(tQ-lq);t=aJ(QY)>1E-6?EyC((FX(x8)*(Mk=gj(Fh))*FX(lq)-FX(Fh)*(N0=gj(x8))*FX(tQ))/(N0*Mk*QY)):(x8+Fh)/2;C.point(aV,t);C.lineEnd();C.lineStart();C.point(hQ,t);ef=0}C.point(S=L$,t=Fh);aV=hQ},
lineEnd:function(){C.lineEnd();S=t=NaN},
clean:function(){return 2-ef}}},function(C,S,t,aV){C==null?(t*=iQ,aV.point(-$q,t),aV.point(0,t),aV.point($q,t),aV.point($q,0),aV.point($q,-t),aV.point(0,-t),aV.point(-$q,-t),aV.point(-$q,0),aV.point(-$q,t)):aJ(C[0]-S[0])>1E-6?(C=C[0]<S[0]?$q:-$q,t=t*C/2,aV.point(-C,t),aV.point(0,t),aV.point(C,t)):aV.point(S[0],S[1])},[-$q,
-iQ]);new RX;new RX;new RX;new RX;nyD.prototype={constructor:nyD,point:function(C,S){this.stream.point(C,S)},
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()}};
gj(30*PFh);(function(C){return function(S){var t=new nyD,aV;for(aV in C)t[aV]=C[aV];t.stream=S;return t}})({point:function(C,S){this.stream.point(C*PFh,S*PFh)}});
scJ(function(C){return plL(2/(1+C))}).invert=dw(function(C){return 2*Qff(C/2)});
scJ(function(C){return(C=C>1?0:C<-1?$q:Math.acos(C))&&C/FX(C)}).invert=dw(function(C){return C});
plL(3);dw(EyC);dw(Qff);dw(function(C){return 2*EyC(C)});
ww.prototype=mMk.prototype={constructor:ww,count:function(){return this.eachAfter(QXf)},
each:function(C){var S,t=[this],aV;do{var ef=t.reverse();for(t=[];S=ef.pop();)if(C(S),S=S.children){var L$=0;for(aV=S.length;L$<aV;++L$)t.push(S[L$])}}while(t.length);return this},
eachAfter:function(C){for(var S,t=[this],aV=[],ef,L$;S=t.pop();)if(aV.push(S),S=S.children)for(ef=0,L$=S.length;ef<L$;++ef)t.push(S[ef]);for(;S=aV.pop();)C(S);return this},
eachBefore:function(C){for(var S,t=[this],aV;S=t.pop();)if(C(S),S=S.children)for(aV=S.length-1;aV>=0;--aV)t.push(S[aV]);return this},
sum:function(C){return this.eachAfter(function(S){for(var t=+C(S.data)||0,aV=S.children,ef=aV&&aV.length;--ef>=0;)t+=aV[ef].value;S.value=t})},
sort:function(C){return this.eachBefore(function(S){S.children&&S.children.sort(C)})},
path:function(C){var S=this;var t=S;var aV=C;if(t!==aV){var ef=t.ancestors(),L$=aV.ancestors(),Fh=null;t=ef.pop();for(aV=L$.pop();t===aV;)Fh=t,t=ef.pop(),aV=L$.pop();t=Fh}for(aV=[S];S!==t;)S=S.parent,aV.push(S);for(S=aV.length;C!==t;)aV.splice(S,0,C),C=C.parent;return aV},
ancestors:function(){for(var C=this,S=[C];C=C.parent;)S.push(C);return S},
links:function(){var C=this,S=[];C.each(function(t){t!==C&&S.push({source:t.parent,target:t})});
return S},
copy:function(){return mMk(this).eachBefore(br4)}};
(function(C,S){this._=C;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=S}).prototype=Object.create(ww.prototype);
var iZO=new Date,gyf=new Date,kIu=pC(function(){},function(C,S){C.setTime(+C+S)},function(C,S){return S-C});
kIu.every=function(C){C=Math.floor(C);return isFinite(C)&&C>0?C>1?pC(function(S){S.setTime(Math.floor(S/C)*C)},function(S,t){S.setTime(+S+t*C)},function(S,t){return(t-S)/C}):kIu:null};
pC(function(C){C.setTime(Math.floor(C/1E3)*1E3)},function(C,S){C.setTime(+C+S*1E3)},function(C,S){return(S-C)/1E3},function(C){return C.getUTCSeconds()});
pC(function(C){C.setTime(Math.floor(C/6E4)*6E4)},function(C,S){C.setTime(+C+S*6E4)},function(C,S){return(S-C)/6E4},function(C){return C.getMinutes()});
pC(function(C){var S=C.getTimezoneOffset()*6E4%36E5;S<0&&(S+=36E5);C.setTime(Math.floor((+C-S)/36E5)*36E5+S)},function(C,S){C.setTime(+C+S*36E5)},function(C,S){return(S-C)/36E5},function(C){return C.getHours()});
var FKs=pC(function(C){C.setHours(0,0,0,0)},function(C,S){C.setDate(C.getDate()+S)},function(C,S){return(S-C-(S.getTimezoneOffset()-C.getTimezoneOffset())*6E4)/864E5},function(C){return C.getDate()-1}),bXf=A9(0),dM$=A9(1);
A9(2);A9(3);var wef=A9(4);A9(5);A9(6);pC(function(C){C.setDate(1);C.setHours(0,0,0,0)},function(C,S){C.setMonth(C.getMonth()+S)},function(C,S){return S.getMonth()-C.getMonth()+(S.getFullYear()-C.getFullYear())*12},function(C){return C.getMonth()});
var zB=pC(function(C){C.setMonth(0,1);C.setHours(0,0,0,0)},function(C,S){C.setFullYear(C.getFullYear()+S)},function(C,S){return S.getFullYear()-C.getFullYear()},function(C){return C.getFullYear()});
zB.every=function(C){return isFinite(C=Math.floor(C))&&C>0?pC(function(S){S.setFullYear(Math.floor(S.getFullYear()/C)*C);S.setMonth(0,1);S.setHours(0,0,0,0)},function(S,t){S.setFullYear(S.getFullYear()+t*C)}):null};
pC(function(C){C.setUTCSeconds(0,0)},function(C,S){C.setTime(+C+S*6E4)},function(C,S){return(S-C)/6E4},function(C){return C.getUTCMinutes()});
pC(function(C){C.setUTCMinutes(0,0,0)},function(C,S){C.setTime(+C+S*36E5)},function(C,S){return(S-C)/36E5},function(C){return C.getUTCHours()});
var $M7=pC(function(C){C.setUTCHours(0,0,0,0)},function(C,S){C.setUTCDate(C.getUTCDate()+S)},function(C,S){return(S-C)/864E5},function(C){return C.getUTCDate()-1}),LqT=UL(0),ubQ=UL(1);
UL(2);UL(3);var qBQ=UL(4);UL(5);UL(6);pC(function(C){C.setUTCDate(1);C.setUTCHours(0,0,0,0)},function(C,S){C.setUTCMonth(C.getUTCMonth()+S)},function(C,S){return S.getUTCMonth()-C.getUTCMonth()+(S.getUTCFullYear()-C.getUTCFullYear())*12},function(C){return C.getUTCMonth()});
var a7=pC(function(C){C.setUTCMonth(0,1);C.setUTCHours(0,0,0,0)},function(C,S){C.setUTCFullYear(C.getUTCFullYear()+S)},function(C,S){return S.getUTCFullYear()-C.getUTCFullYear()},function(C){return C.getUTCFullYear()});
a7.every=function(C){return isFinite(C=Math.floor(C))&&C>0?pC(function(S){S.setUTCFullYear(Math.floor(S.getUTCFullYear()/C)*C);S.setUTCMonth(0,1);S.setUTCHours(0,0,0,0)},function(S,t){S.setUTCFullYear(S.getUTCFullYear()+t*C)}):null};
var HZi={"-":"",_:" ",0:"0"},rB=/^\s*\d+/,Vw4=/^%/,p_b=/[\\^$*+?|[\]().{}]/g,Hxn;(function(C){Hxn=BPf(C);cos=Hxn.utcFormat;Tck=Hxn.utcParse;return Hxn})({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||cos("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||Tck("%Y-%m-%dT%H:%M:%S.%LZ");a0("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
a0("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");a0("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");a0("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");a0("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");a0("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");a0("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
a0("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");a0("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");a0("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");a0("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");a0("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var IFc=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(a0);Nu(IFc);var jmO=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(a0);Nu(jmO);var OXi=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(a0);Nu(OXi);var X_f=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(a0);
Nu(X_f);var AZY=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(a0);Nu(AZY);var U2k=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(a0);Nu(U2k);var RsC=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(a0);Nu(RsC);var Sxk=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(a0);Nu(Sxk);var n2c=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(a0);Nu(n2c);var iXf=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(a0);Nu(iXf);var g2j=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(a0);Nu(g2j);var u$b=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(a0);Nu(u$b);var d2O=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(a0);Nu(d2O);var w_4=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(a0);Nu(w_4);var qxO=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(a0);Nu(qxO);var Ngc=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(a0);Nu(Ngc);var v2T=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(a0);Nu(v2T);var JZb=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(a0);Nu(JZb);var fFk=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(a0);Nu(fFk);var tw4=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(a0);Nu(tw4);var kE6=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(a0);Nu(kE6);var PdY=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(a0);Nu(PdY);var E2x=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(a0);Nu(E2x);var hsc=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(a0);Nu(hsc);var x_T=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(a0);Nu(x_T);var G2c=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(a0);Nu(G2c);var D_c=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(a0);Nu(D_c);tjf(QJ(300,.5,0),QJ(-240,.5,1));tjf(QJ(-100,.75,.35),QJ(80,1.5,.8));tjf(QJ(260,.75,.35),QJ(80,1.5,.8));QJ();FO();LGf(a0("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
LGf(a0("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
LGf(a0("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
LGf(a0("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
nyE.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(C,S){C=+C;S=+S;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(C,S):this._context.moveTo(C,S);break;case 1:this._point=2;default:this._context.lineTo(C,S)}}};
(function(C){function S(t){return new iZq(C(t))}
S._curve=C;return S})(function(C){return new nyE(C)});
iZq.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(C,S){this._curve.point(S*Math.sin(C),S*-Math.cos(C))}};
vyP.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:Nrh(this,this._t0,ubk(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(C,S){var t=NaN;C=+C;S=+S;if(C!==this._x1||S!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(C,S):this._context.moveTo(C,S);break;case 1:this._point=2;break;case 2:this._point=3;Nrh(this,ubk(this,t=gyo(this,C,S)),t);break;default:Nrh(this,this._t0,t=gyo(this,C,S))}this._x0=this._x1;this._x1=C;this._y0=this._y1;this._y1=S;this._t0=t}}};
(function(C){this._context=new dMu(C)}.prototype=Object.create(vyP.prototype)).point=function(C,S){vyP.prototype.point.call(this,S,C)};
dMu.prototype={moveTo:function(C,S){this._context.moveTo(S,C)},
closePath:function(){this._context.closePath()},
lineTo:function(C,S){this._context.lineTo(S,C)},
bezierCurveTo:function(C,S,t,aV,ef,L$){this._context.bezierCurveTo(S,C,aV,t,L$,ef)}};
JL.prototype={constructor:JL,scale:function(C){return C===1?this:new JL(this.k*C,this.x,this.y)},
translate:function(C,S){return C===0&S===0?this:new JL(this.k,this.x+this.k*C,this.y+this.k*S)},
apply:function(C){return[C[0]*this.k+this.x,C[1]*this.k+this.y]},
invert:function(C){return[(C[0]-this.x)/this.k,(C[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new JL(1,0,0);aZO=yj;n1.svg=n1.svg;n1.xhtml=n1.xhtml;n1.xlink=n1.xlink;n1.xml=n1.xml;n1.xmlns=n1.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 WyJ="hammer_"+(Math.random()*1E6|0),e$q=function(){var x=document||document;if(!x[WyJ]){var G=function(){(function(D,K,z,y){function c(sD,Sf,dn){return setTimeout(L(sD,dn),Sf)}
function W(sD,Sf,dn){return Array.isArray(sD)?(e(sD,dn[Sf],dn),!0):!1}
function e(sD,Sf,dn){var Ws;if(sD)if(sD.forEach)sD.forEach(Sf,dn);else if(sD.length!==y){var aT=0;for(Ws=sD.length;aT<Ws;aT++)Sf.call(dn,sD[aT],aT,sD)}else for(aT in sD)sD.hasOwnProperty(aT)&&Sf.call(dn,sD[aT],aT,sD)}
function Q(sD,Sf,dn){for(var Ws=Object.keys(Sf),aT=0,Cm=Ws.length;aT<Cm;aT++)if(!dn||dn&&sD[Ws[aT]]===y)sD[Ws[aT]]=Sf[Ws[aT]];return sD}
function p(sD,Sf){return Q(sD,Sf,!0)}
function V(sD,Sf,dn){Sf=Sf.prototype;var Ws=sD.prototype=Object.create(Sf);Ws.constructor=sD;Ws._super=Sf;dn&&Q(Ws,dn)}
function L(sD,Sf){return function(){return sD.apply(Sf,arguments)}}
function r(sD,Sf){return typeof sD=="function"?sD.apply(Sf?Sf[0]||y:y,Sf):sD}
function H(sD,Sf,dn){e(A(Sf),function(Ws){sD.addEventListener(Ws,dn,!1)})}
function O(sD,Sf,dn){e(A(Sf),function(Ws){sD.removeEventListener(Ws,dn,!1)})}
function A(sD){return sD.trim().split(/\s+/g)}
function g(sD,Sf,dn){if(sD.indexOf&&!dn)return sD.indexOf(Sf);for(var Ws=0,aT=sD.length;Ws<aT;Ws++)if(dn&&sD[Ws][dn]==Sf||!dn&&sD[Ws]===Sf)return Ws;return-1}
function u(sD,Sf,dn){for(var Ws=[],aT=[],Cm=0,Zc=sD.length;Cm<Zc;Cm++){var VJ=Sf?sD[Cm][Sf]:sD[Cm];g(aT,VJ)<0&&Ws.push(sD[Cm]);aT[Cm]=VJ}dn&&(Ws=Sf?Ws.sort(function(QJ,BY){return QJ[Sf]>BY[Sf]}):Ws.sort());
return Ws}
function f(sD,Sf){for(var dn,Ws=Sf[0].toUpperCase()+Sf.slice(1),aT=0,Cm=as.length;aT<Cm;aT++)if(dn=(dn=as[aT])?dn+Ws:Sf,dn in sD)return dn;return y}
function v(sD,Sf){var dn=this;this.manager=sD;this.callback=Sf;this.element=sD.element;this.target=sD.options.inputTarget;this.domHandler=function(Ws){r(sD.options.enable,[sD])&&dn.handler(Ws)};
this.evEl&&H(this.element,this.evEl,this.domHandler);this.evTarget&&H(this.target,this.evTarget,this.domHandler);this.evWin&&H(D,this.evWin,this.domHandler)}
function P(sD){var Sf;bX?Sf=wn:l0?Sf=n$:yj?Sf=Fi:Sf=OD;return new Sf(sD,k)}
function k(sD,Sf,dn){var Ws=dn.pointers.length,aT=dn.changedPointers.length,Cm=Sf&1&&Ws-aT===0;dn.isFirst=!!Cm;dn.isFinal=!!(Sf&12&&Ws-aT===0);Cm&&(sD.session={});dn.eventType=Sf;Sf=sD.session;Ws=dn.pointers;aT=Ws.length;Sf.firstInput||(Sf.firstInput=cL(dn));aT>1&&!Sf.firstMultiple?Sf.firstMultiple=cL(dn):aT===1&&(Sf.firstMultiple=!1);Cm=Sf.firstInput;var Zc=(aT=Sf.firstMultiple)?aT.center:Cm.center,VJ=dn.center=bO(Ws);dn.timeStamp=Cu();dn.deltaTime=dn.timeStamp-Cm.timeStamp;dn.angle=$C(Zc,VJ);dn.distance=
jf(Zc,VJ);Cm=dn.center;Zc=Sf.offsetDelta||{};VJ=Sf.prevDelta||{};var QJ=Sf.prevInput||{};if(dn.eventType===1||QJ.eventType===4)VJ=Sf.prevDelta={x:QJ.deltaX||0,y:QJ.deltaY||0},Zc=Sf.offsetDelta={x:Cm.x,y:Cm.y};dn.deltaX=VJ.x+(Cm.x-Zc.x);dn.deltaY=VJ.y+(Cm.y-Zc.y);dn.offsetDirection=mE(dn.deltaX,dn.deltaY);aT?(Cm=aT.pointers,Cm=jf(Ws[0],Ws[1],FO)/jf(Cm[0],Cm[1],FO)):Cm=1;dn.scale=Cm;aT?(aT=aT.pointers,Ws=$C(Ws[1],Ws[0],FO)-$C(aT[1],aT[0],FO)):Ws=0;dn.rotation=Ws;Zc=Sf.lastInterval||dn;Ws=dn.timeStamp-
Zc.timeStamp;dn.eventType!=8&&(Ws>25||Zc.velocity===y)?(Cm=Zc.deltaX-dn.deltaX,Zc=Zc.deltaY-dn.deltaY,VJ=Cm/Ws||0,QJ=Zc/Ws||0,Ws=VJ,aT=QJ,VJ=Lu(VJ)>Lu(QJ)?VJ:QJ,Cm=mE(Cm,Zc),Sf.lastInterval=dn):(VJ=Zc.velocity,Ws=Zc.velocityX,aT=Zc.velocityY,Cm=Zc.direction);dn.velocity=VJ;dn.velocityX=Ws;dn.velocityY=aT;dn.direction=Cm;Sf=sD.element;a:{for(Ws=dn.srcEvent.target;Ws;){if(Ws==Sf){Ws=!0;break a}Ws=Ws.parentNode}Ws=!1}Ws&&(Sf=dn.srcEvent.target);dn.target=Sf;sD.emit("hammer.input",dn);sD.recognize(dn);
sD.session.prevInput=dn}
function cL(sD){for(var Sf=[],dn=0;dn<sD.pointers.length;dn++)Sf[dn]={clientX:Lf(sD.pointers[dn].clientX),clientY:Lf(sD.pointers[dn].clientY)};return{timeStamp:Cu(),pointers:Sf,center:bO(Sf),deltaX:sD.deltaX,deltaY:sD.deltaY}}
function bO(sD){var Sf=sD.length;if(Sf===1)return{x:Lf(sD[0].clientX),y:Lf(sD[0].clientY)};for(var dn=0,Ws=0,aT=0;aT<Sf;aT++)dn+=sD[aT].clientX,Ws+=sD[aT].clientY;return{x:Lf(dn/Sf),y:Lf(Ws/Sf)}}
function mE(sD,Sf){return sD===Sf?1:Lu(sD)>=Lu(Sf)?sD>0?2:4:Sf>0?8:16}
function jf(sD,Sf,dn){dn||(dn=g9);var Ws=Sf[dn[0]]-sD[dn[0]];sD=Sf[dn[1]]-sD[dn[1]];return Math.sqrt(Ws*Ws+sD*sD)}
function $C(sD,Sf,dn){dn||(dn=g9);return Math.atan2(Sf[dn[1]]-sD[dn[1]],Sf[dn[0]]-sD[dn[0]])*180/Math.PI}
function OD(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;v.apply(this,arguments)}
function wn(){this.evEl=uX;this.evWin=RW;v.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function n$(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};v.apply(this,arguments)}
function Fi(){v.apply(this,arguments);var sD=L(this.handler,this);this.touch=new n$(this.manager,sD);this.mouse=new OD(this.manager,sD)}
function pf(sD,Sf){this.manager=sD;this.set(Sf)}
function UE(sD){if(sD.indexOf("none")>-1)return"none";var Sf=sD.indexOf("pan-x")>-1,dn=sD.indexOf("pan-y")>-1;return Sf&&dn?"pan-x pan-y":Sf||dn?Sf?"pan-x":"pan-y":sD.indexOf("manipulation")>-1?"manipulation":"auto"}
function M0(sD){this.id=ex++;this.manager=null;this.options=p(sD||{},this.defaults);sD=this.options.enable;this.options.enable=sD===y?!0:sD;this.state=1;this.simultaneous={};this.requireFail=[]}
function cs(sD){return sD==16?"down":sD==8?"up":sD==2?"left":sD==4?"right":""}
function G8(sD,Sf){return(Sf=Sf.manager)?Sf.get(sD):sD}
function T7(){M0.apply(this,arguments)}
function Wd(){T7.apply(this,arguments);this.pY=this.pX=null}
function Fc(){T7.apply(this,arguments)}
function lO(){M0.apply(this,arguments);this._input=this._timer=null}
function Bs(){T7.apply(this,arguments)}
function Xi(){T7.apply(this,arguments)}
function uC(){M0.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function Y8(sD,Sf){Sf=Sf||{};var dn=Sf.recognizers;Sf.recognizers=dn===y?Y8.defaults.preset:dn;return new fu(sD,Sf)}
function fu(sD,Sf){Sf=Sf||{};this.options=p(Sf,Y8.defaults);this.options.inputTarget=this.options.inputTarget||sD;this.handlers={};this.session={};this.recognizers=[];this.element=sD;this.input=P(this);this.touchAction=new pf(this,this.options.touchAction);g4(this,!0);e(Sf.recognizers,function(dn){var Ws=this.add(new dn[0](dn[1]));dn[2]&&Ws.recognizeWith(dn[2]);dn[3]&&Ws.requireFailure(dn[2])},this)}
function g4(sD,Sf){var dn=sD.element;e(sD.options.cssProps,function(Ws,aT){dn.style[f(dn.style,aT)]=Sf?Ws:""})}
function vs(sD,Sf){var dn=K.createEvent("Event");dn.initEvent(sD,!0,!0);dn.gesture=Sf;Sf.target.dispatchEvent(dn)}
var as=" webkit moz MS ms o".split(" "),d9=K.createElement("div"),Lf=Math.round,Lu=Math.abs,Cu=Date.now,ex=1,y$=/mobile|tablet|ip(ad|hone|od)|android/i,yj="ontouchstart"in D,bX=f(D,"PointerEvent")!==y,l0=yj&&y$.test(navigator.userAgent),g9=["x","y"],FO=["clientX","clientY"];v.prototype={handler:function(){},
destroy:function(){this.evEl&&O(this.element,this.evEl,this.domHandler);this.evTarget&&O(this.target,this.evTarget,this.domHandler);this.evWin&&O(D,this.evWin,this.domHandler)}};
var Ec={mousedown:1,mousemove:2,mouseup:4};V(OD,v,{handler:function(sD){var Sf=Ec[sD.type];Sf&1&&sD.button===0&&(this.pressed=!0);Sf&2&&sD.which!==1&&(Sf=4);this.pressed&&this.allow&&(Sf&4&&(this.pressed=!1),this.callback(this.manager,Sf,{pointers:[sD],changedPointers:[sD],pointerType:"mouse",srcEvent:sD}))}});
var h6={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},TZ={2:"touch",3:"pen",4:"mouse",5:"kinect"},uX="pointerdown",RW="pointermove pointerup pointercancel";D.MSPointerEvent&&(uX="MSPointerDown",RW="MSPointerMove MSPointerUp MSPointerCancel");V(wn,v,{handler:function(sD){var Sf=this.store,dn=!1,Ws=sD.type.toLowerCase().replace("ms","");Ws=h6[Ws];var aT=TZ[sD.pointerType]||sD.pointerType;Ws&1&&(sD.button===0||aT=="touch")?Sf.push(sD):Ws&12&&(dn=!0);var Cm=g(Sf,sD.pointerId,"pointerId");
Cm<0||(Sf[Cm]=sD,this.callback(this.manager,Ws,{pointers:Sf,changedPointers:[sD],pointerType:aT,srcEvent:sD}),dn&&Sf.splice(Cm,1))}});
var aA={touchstart:1,touchmove:2,touchend:4,touchcancel:8};V(n$,v,{handler:function(sD){var Sf=aA[sD.type];var dn=Array.prototype.slice.call(sD.touches,0);var Ws=this.targetIds;if(Sf&3&&dn.length===1)Ws[dn[0].identifier]=!0,Ws=[dn,dn];else{var aT,Cm=Array.prototype.slice.call(sD.targetTouches,0),Zc=Array.prototype.slice.call(sD.changedTouches,0),VJ=[];if(Sf===1)for(dn=0,aT=Cm.length;dn<aT;dn++)Ws[Cm[dn].identifier]=!0;dn=0;for(aT=Zc.length;dn<aT;dn++)Ws[Zc[dn].identifier]&&VJ.push(Zc[dn]),Sf&12&&
delete Ws[Zc[dn].identifier];Ws=VJ.length?[u(Cm.concat(VJ),"identifier",!0),VJ]:void 0}Ws&&this.callback(this.manager,Sf,{pointers:Ws[0],changedPointers:Ws[1],pointerType:"touch",srcEvent:sD})}});
V(Fi,v,{handler:function(sD,Sf,dn){var Ws=dn.pointerType=="mouse";if(dn.pointerType=="touch")this.mouse.allow=!1;else if(Ws&&!this.mouse.allow)return;Sf&12&&(this.mouse.allow=!0);this.callback(sD,Sf,dn)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var PC=f(d9.style,"touchAction"),zy=PC!==y;pf.prototype={set:function(sD){sD=="compute"&&(sD=this.compute());zy&&(this.manager.element.style[PC]=sD);this.actions=sD.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var sD=[];e(this.manager.recognizers,function(Sf){r(Sf.options.enable,[Sf])&&(sD=sD.concat(Sf.getTouchAction()))});
return UE(sD.join(" "))},
preventDefaults:function(sD){if(!zy){var Sf=sD.srcEvent;sD=sD.offsetDirection;if(this.manager.session.prevented)Sf.preventDefault();else{var dn=this.actions,Ws=dn.indexOf("none")>-1,aT=dn.indexOf("pan-y")>-1;dn=dn.indexOf("pan-x")>-1;if(Ws||aT&&dn||aT&&sD&6||dn&&sD&24)return this.preventSrc(Sf)}}},
preventSrc:function(sD){this.manager.session.prevented=!0;sD.preventDefault()}};
M0.prototype={defaults:{},set:function(sD){Q(this.options,sD);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(sD){if(W(sD,"recognizeWith",this))return this;var Sf=this.simultaneous;sD=G8(sD,this);Sf[sD.id]||(Sf[sD.id]=sD,sD.recognizeWith(this));return this},
dropRecognizeWith:function(sD){if(W(sD,"dropRecognizeWith",this))return this;sD=G8(sD,this);delete this.simultaneous[sD.id];return this},
requireFailure:function(sD){if(W(sD,"requireFailure",this))return this;var Sf=this.requireFail;sD=G8(sD,this);g(Sf,sD)===-1&&(Sf.push(sD),sD.requireFailure(this));return this},
dropRequireFailure:function(sD){if(W(sD,"dropRequireFailure",this))return this;sD=G8(sD,this);sD=g(this.requireFail,sD);sD>-1&&this.requireFail.splice(sD,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(sD){return!!this.simultaneous[sD.id]},
emit:function(sD){function Sf(aT){dn.manager.emit(dn.options.event+(aT?Ws&16?"cancel":Ws&8?"end":Ws&4?"move":Ws&2?"start":"":""),sD)}
var dn=this,Ws=this.state;Ws<8&&Sf(!0);Sf();Ws>=8&&Sf(!0)},
tryEmit:function(sD){if(this.canEmit())return this.emit(sD);this.state=32},
canEmit:function(){for(var sD=0;sD<this.requireFail.length;sD++)if(!(this.requireFail[sD].state&33))return!1;return!0},
recognize:function(sD){sD=Q({},sD);r(this.options.enable,[this,sD])?(this.state&56&&(this.state=1),this.state=this.process(sD),this.state&30&&this.tryEmit(sD)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
V(T7,M0,{defaults:{pointers:1},attrTest:function(sD){var Sf=this.options.pointers;return Sf===0||sD.pointers.length===Sf},
process:function(sD){var Sf=this.state,dn=sD.eventType,Ws=Sf&6;sD=this.attrTest(sD);return Ws&&(dn&8||!sD)?Sf|16:Ws||sD?dn&4?Sf|8:Sf&2?Sf|4:2:32}});
V(Wd,T7,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var sD=this.options.direction;if(sD===30)return["none"];var Sf=[];sD&6&&Sf.push("pan-y");sD&24&&Sf.push("pan-x");return Sf},
directionTest:function(sD){var Sf=this.options,dn=!0,Ws=sD.distance,aT=sD.direction,Cm=sD.deltaX,Zc=sD.deltaY;aT&Sf.direction||(Sf.direction&6?(aT=Cm===0?1:Cm<0?2:4,dn=Cm!=this.pX,Ws=Math.abs(sD.deltaX)):(aT=Zc===0?1:Zc<0?8:16,dn=Zc!=this.pY,Ws=Math.abs(sD.deltaY)));sD.direction=aT;return dn&&Ws>Sf.threshold&&aT&Sf.direction},
attrTest:function(sD){return T7.prototype.attrTest.call(this,sD)&&(this.state&2||!(this.state&2)&&this.directionTest(sD))},
emit:function(sD){this.pX=sD.deltaX;this.pY=sD.deltaY;var Sf=cs(sD.direction);Sf&&this.manager.emit(this.options.event+Sf,sD);this._super.emit.call(this,sD)}});
V(Fc,T7,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(sD){return this._super.attrTest.call(this,sD)&&(Math.abs(sD.scale-1)>this.options.threshold||this.state&2)},
emit:function(sD){this._super.emit.call(this,sD);sD.scale!==1&&this.manager.emit(this.options.event+(sD.scale<1?"in":"out"),sD)}});
V(lO,M0,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(sD){var Sf=this.options,dn=sD.pointers.length===Sf.pointers,Ws=sD.distance<Sf.threshold,aT=sD.deltaTime>Sf.time;this._input=sD;if(!Ws||!dn||sD.eventType&12&&!aT)this.reset();else if(sD.eventType&1)this.reset(),this._timer=c(function(){this.state=8;this.tryEmit()},Sf.time,this);
else if(sD.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(sD){this.state===8&&(sD&&sD.eventType&4?this.manager.emit(this.options.event+"up",sD):(this._input.timeStamp=Cu(),this.manager.emit(this.options.event,this._input)))}});
V(Bs,T7,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(sD){return this._super.attrTest.call(this,sD)&&(Math.abs(sD.rotation)>this.options.threshold||this.state&2)}});
V(Xi,T7,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return Wd.prototype.getTouchAction.call(this)},
attrTest:function(sD){var Sf=this.options.direction;if(Sf&30)var dn=sD.velocity;else Sf&6?dn=sD.velocityX:Sf&24&&(dn=sD.velocityY);return this._super.attrTest.call(this,sD)&&Sf&sD.direction&&Lu(dn)>this.options.velocity&&sD.eventType&4},
emit:function(sD){var Sf=cs(sD.direction);Sf&&this.manager.emit(this.options.event+Sf,sD);this.manager.emit(this.options.event,sD)}});
V(uC,M0,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(sD){var Sf=this.options,dn=sD.pointers.length===Sf.pointers,Ws=sD.distance<Sf.threshold,aT=sD.deltaTime<Sf.time;this.reset();if(sD.eventType&1&&this.count===0)return this.failTimeout();if(Ws&&aT&&dn){if(sD.eventType!=4)return this.failTimeout();dn=this.pTime?sD.timeStamp-this.pTime<Sf.interval:!0;Ws=!this.pCenter||jf(this.pCenter,sD.center)<Sf.posThreshold;this.pTime=sD.timeStamp;this.pCenter=sD.center;Ws&&dn?this.count+=1:this.count=1;this._input=sD;if(this.count%Sf.taps===0)return this.hasRequireFailures()?
(this._timer=c(function(){this.state=8;this.tryEmit()},Sf.interval,this),2):8}return 32},
failTimeout:function(){this._timer=c(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))}});
Y8.VERSION="2.0.2";Y8.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[Bs,{enable:!1}],[Fc,{enable:!1},["rotate"]],[Xi,{direction:6}],[Wd,{direction:6},["swipe"]],[uC],[uC,{event:"doubletap",taps:2},["tap"]],[lO]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};fu.prototype={set:function(sD){Q(this.options,sD);return this},
stop:function(sD){this.session.stopped=sD?2:1},
recognize:function(sD){var Sf=this.session;if(!Sf.stopped){this.touchAction.preventDefaults(sD);var dn=this.recognizers,Ws=Sf.curRecognizer;if(!Ws||Ws&&Ws.state&8)Ws=Sf.curRecognizer=null;for(var aT=0,Cm=dn.length;aT<Cm;aT++){var Zc=dn[aT];Sf.stopped===2||Ws&&Zc!=Ws&&!Zc.canRecognizeWith(Ws)?Zc.reset():Zc.recognize(sD);!Ws&&Zc.state&14&&(Ws=Sf.curRecognizer=Zc)}}},
get:function(sD){if(sD instanceof M0)return sD;for(var Sf=this.recognizers,dn=0;dn<Sf.length;dn++)if(Sf[dn].options.event==sD)return Sf[dn];return null},
add:function(sD){if(W(sD,"add",this))return this;var Sf=this.get(sD.options.event);Sf&&this.remove(Sf);this.recognizers.push(sD);sD.manager=this;this.touchAction.update();return sD},
remove:function(sD){if(W(sD,"remove",this))return this;var Sf=this.recognizers;sD=this.get(sD);Sf.splice(g(Sf,sD),1);this.touchAction.update();return this},
on:function(sD,Sf){var dn=this.handlers;e(A(sD),function(Ws){dn[Ws]=dn[Ws]||[];dn[Ws].push(Sf)});
return this},
off:function(sD,Sf){var dn=this.handlers;e(A(sD),function(Ws){Sf?dn[Ws].splice(g(dn[Ws],Sf),1):delete dn[Ws]});
return this},
emit:function(sD,Sf){this.options.domEvents&&vs(sD,Sf);var dn=this.handlers[sD]&&this.handlers[sD].slice();if(dn&&dn.length){Sf.type=sD;Sf.preventDefault=function(){Sf.srcEvent.preventDefault()};
sD=0;for(var Ws=dn.length;sD<Ws;sD++)dn[sD](Sf)}},
destroy:function(){this.element&&g4(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
Q(Y8,{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:fu,Input:v,TouchAction:pf,Recognizer:M0,AttrRecognizer:T7,Tap:uC,Pan:Wd,Swipe:Xi,Pinch:Fc,Rotate:Bs,Press:lO,on:H,off:O,each:e,merge:p,extend:Q,inherit:V,bindFn:L,prefixed:f});
D[z]=Y8})(window,document,"Hammer");
return window.Hammer}.call({});
G.DOCUMENT=x;x[WyJ]=G}return x[WyJ]};/*

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

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

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

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 jV,qIE,Nkh;jV=Element.prototype;qIE=jV.matches||jV.matchesSelector||jV.mozMatchesSelector||jV.msMatchesSelector||jV.oMatchesSelector||jV.webkitMatchesSelector;Nkh=function(){};
_.Jnh=function(x){var G=v$i,D=[];return G._collectTabbableNodes(x,D)?G._sortByTabIndex(D):D};
_.a=Nkh.prototype;_.a._normalizedTabIndex=function(x){return(qIE.call(x,"input, select, textarea, button, object")?qIE.call(x,":not([disabled])"):qIE.call(x,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(x=x.getAttribute("tabindex")||0,Number(x)):-1};
_.a._collectTabbableNodes=function(x,G){if(x.nodeType!==Node.ELEMENT_NODE||!this._isVisible(x))return!1;var D=this._normalizedTabIndex(x),K=D>0;D>=0&&G.push(x);if(x.localName==="content"||x.localName==="slot")D=_.By(x).getDistributedNodes();else{var z;D=((z=_.By(x).shadowRoot)!=null?z:_.By(x.root||x)).children}for(x=0;x<D.length;x++)K=this._collectTabbableNodes(D[x],G)||K;return K};
_.a._isVisible=function(x){var G=x.style;return G.visibility!=="hidden"&&G.display!=="none"?(G=window.getComputedStyle(x),G.visibility!=="hidden"&&G.display!=="none"):!1};
_.a._sortByTabIndex=function(x){var G=x.length;if(G<2)return x;var D=Math.ceil(G/2);G=this._sortByTabIndex(x.slice(0,D));x=this._sortByTabIndex(x.slice(D));return this._mergeSortByTabIndex(G,x)};
_.a._mergeSortByTabIndex=function(x,G){for(var D=[];x.length>0&&G.length>0;)this._hasLowerTabOrder(x[0],G[0])?D.push(G.shift()):D.push(x.shift());return D.concat(x,G)};
_.a._hasLowerTabOrder=function(x,G){x=Math.max(x.tabIndex,0);G=Math.max(G.tabIndex,0);return x===0||G===0?G>x:x>G};
var v$i=new Nkh;var fJZ;var tn9;_.BD({_template:function(){if(tn9!==void 0)return tn9;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;fJZ===void 0&&(fJZ=document.createElement("template"));var K=fJZ;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return tn9=x},
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&&_.By(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.By(this.parentNode).removeChild(this)},
_onTransitionend:function(x){x&&x.target===this&&this.complete()},
_openedChanged:function(x){x?this.prepare():(x=window.getComputedStyle(this),x.transitionDuration!=="0s"&&x.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 Od=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;Hm(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)};
Od.prototype._bringOverlayAtIndexToFront=function(x){var G=this._overlays[x];if(G){var D=this._overlays.length-1,K=this._overlays[D];K&&this._shouldBeBehindOverlay(G,K)&&D--;if(!(x>=D)){K=Math.max(this._getZ(_.keq(this)),this._minimumZ);for(this._getZ(G)<=K&&this._applyOverlayZ(G,K);x<D;)this._overlays[x]=this._overlays[x+1],x++;this._overlays[D]=G}}};
Od.prototype.addOverlay=function(x){var G=this._overlays.indexOf(x);if(G>=0)this._bringOverlayAtIndexToFront(G);else{G=this._overlays.length;var D=this._overlays[G-1],K=Math.max(this._getZ(D),this._minimumZ),z=this._getZ(x);D&&this._shouldBeBehindOverlay(x,D)&&(this._applyOverlayZ(D,K),G--,K=Math.max(this._getZ(this._overlays[G-1]),this._minimumZ));z<=K&&this._applyOverlayZ(x,K);this._overlays.splice(G,0,x)}this.trackBackdrop()};
Od.prototype.removeOverlay=function(x){x=this._overlays.indexOf(x);x!==-1&&(this._overlays.splice(x,1),this.trackBackdrop())};
_.keq=function(x){return x._overlays[x._overlays.length-1]};
_.a=Od.prototype;_.a.trackBackdrop=function(){var x=this._overlayWithBackdrop();if(x||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(x)-1,this.backdropElement.opened=!!x,this.backdropElement.prepare()};
_.a._overlayWithBackdrop=function(){for(var x=this._overlays.length-1;x>=0;x--)if(this._overlays[x].withBackdrop)return this._overlays[x]};
_.a._getZ=function(x){var G=this._minimumZ;if(x){var D,K,z=Number(((D=x.hostElement)!=null?D:x).style.zIndex||window.getComputedStyle((K=x.hostElement)!=null?K:x).zIndex);z===z&&(G=z)}return G};
_.a._setZ=function(x,G){var D;((D=x.hostElement)!=null?D:x).style.zIndex=G};
_.a._applyOverlayZ=function(x,G){this._setZ(x,G+2)};
_.a._overlayInPath=function(x){x=x||[];for(var G=0;G<x.length;G++){var D=void 0;if(((D=x[G].polymerController)!=null?D:x[G])._manager===this)return x[G]}};
_.a._onCaptureClick=function(x){var G=this._overlays.length-1;if(G!==-1)for(var D=_.By(x).path,K,z;(K=this._overlays[G])&&this._overlayInPath(D)!==((z=K.hostElement)!=null?z:K);)if(K._onCaptureClick(x),K.allowClickThrough)G--;else break};
_.a._onCaptureFocus=function(x){var G=_.keq(this);G&&G._onCaptureFocus(x)};
_.a._onCaptureKeyDown=function(x){var G=_.keq(this);G&&(_.Tb.keyboardEventMatchesKeys(x,"esc")?G._onCaptureEsc(x):_.Tb.keyboardEventMatchesKeys(x,"tab")&&G._onCaptureTab(x))};
_.a._shouldBeBehindOverlay=function(x,G){return!x.alwaysOnTop&&G.alwaysOnTop&&!G.contains(x)};
_.Nq.Object.defineProperties(Od.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 x=document.activeElement;x&&x instanceof Element!==!1||(x=document.body);for(;x.root&&_.By(x.root).activeElement;)x=_.By(x.root).activeElement;return x}}});
_.Xa=new Od;var FqP=0,Cd3=0,IFD=null,jmh=[],r5=["wheel","mousewheel","DOMMouseScroll"],OXC;_.B("web_no_lock_on_touchstart_killswitch")&&(r5.push("touchstart"),r5.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;_.A7={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:_.Xa},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var x;return this._focusedChild||_.By((x=this.hostElement)!=null?x:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var x;return _.Jnh((x=this.hostElement)!=null?x: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 x;this._observer=_.By((x=this.hostElement)!=null?x:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var x;_.By((x=this.hostElement)!=null?x:this).unobserveNodes(this._observer)}this._observer=null;for(var G in this.__rafs)this.__rafs[G]!==null&&cancelAnimationFrame(this.__rafs[G]);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(x){this.fire("iron-overlay-canceled",x,{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 x;((x=this.hostElement)!=null?x:this).style.outline="none";var G;((G=this.hostElement)!=null?G:this).style.display="none"}},
_openedChanged:function(x){if(x){var G;((G=this.hostElement)!=null?G:this).removeAttribute("aria-hidden")}else{var D;((D=this.hostElement)!=null?D: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 x;if(this.withBackdrop&&!((x=this.hostElement)!=null?x:this).hasAttribute("tabindex")){var G;((G=this.hostElement)!=null?G:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var D;((D=this.hostElement)!=null?D: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 x;((x=this.hostElement)!=null?x:this).style.display="none";var G;((G=this.hostElement)!=null?G:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var x,G;((x=this.hostElement)!=null?x:this).style.transition=((G=this.hostElement)!=null?G:this).style.webkitTransition="none";var D,K;((D=this.hostElement)!=null?D:this).style.transform=((K=this.hostElement)!=null?K:this).style.webkitTransform="none";var z;((z=this.hostElement)!=null?z:this).style.display=""},
_finishPositioning:function(){var x;((x=this.hostElement)!=null?x:this).style.display="none";this.scrollTop=this.scrollTop;var G,D;((G=this.hostElement)!=null?G:this).style.transition=((D=this.hostElement)!=null?D:this).style.webkitTransition="";var K,z;((K=this.hostElement)!=null?K:this).style.transform=((z=this.hostElement)!=null?z:this).style.webkitTransform="";var y;((y=this.hostElement)!=null?y:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var x=this._manager.deepActiveElement,G;if(!(G=x===document.body))a:{for(;x;x=x.assignedSlot||x.parentNode||x.host)if(x===this){G=!0;break a}G=!1}G&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(x){this.noCancelOnOutsideClick||this.cancel(x)},
_onCaptureFocus:function(x){if(this.withBackdrop){var G=_.By(x).path;G.indexOf(this)===-1?(x.stopPropagation(),this._applyFocus()):this._focusedChild=G[0]}},
_onCaptureEsc:function(x){this.noCancelOnEscKey||this.cancel(x)},
_onCaptureTab:function(x){if(this.withBackdrop){this.__ensureFirstLastFocusables();var G=x.shiftKey,D=G?this.__firstFocusableNode:this.__lastFocusableNode;G=G?this.__lastFocusableNode:this.__firstFocusableNode;if(D===G)D=!0;else{var K=this._manager.deepActiveElement;D=K===D||K===this}D&&(x.preventDefault(),this._focusedChild=G,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 x=this._focusableNodes;this.__firstFocusableNode=x[0];this.__lastFocusableNode=x[x.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(x,G){var D=this.__rafs;D[x]!==null&&cancelAnimationFrame(D[x]);D[x]=requestAnimationFrame(function(){D[x]=null;G.call(this)}.bind(this))},
__updateScrollObservers:function(x,G,D){x&&G&&this.__isValidScrollAction(D)?(D==="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),OXC=_._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()):(x=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),x!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(x,1),OXC=_._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(Ov)for(var x=this;x;)x.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&x.host&&this.__rootNodes.push(x),x=x.host||x.assignedSlot||x.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(G){G.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(x){x.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(x){return x==="lock"||x==="refit"||x==="cancel"},
__onCaptureScroll:function(x){if(!(this.__isAnimating||_.By(x).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(x)}},
__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)}};
_.Ud=[whZ,_.Lg,_.A7];_.BD({_template:function(){if(uBk!==void 0)return uBk;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;g$h===void 0&&(g$h=document.createElement("template"));var K=g$h;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return uBk=x},
is:"tp-yt-iron-dropdown",behaviors:[_.Wp,_.Tb,_.Ud,jeq],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 x=_.By(this.$.content).getDistributedNodes(),G=0,D=x.length;G<D;G++)if(x[G].nodeType===Node.ELEMENT_NODE)return x[G]},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(),_.A7._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.A7._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.A7._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var x=this.containedElement,G=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),D=0;D<G.length;D++)G[D].node=x;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(x){this._readied&&(x?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var x=this.focusTarget||this.containedElement;x&&this.opened&&!this.noAutoFocus?x.focus():_.A7._applyFocus.apply(this,arguments)}});var PbZ;var E$Z;/*

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 hfs=new _.Qa({type:"iconset"});
_.BD({_template:function(){if(E$Z!==void 0)return E$Z;var x=document.createElement("template");_.F(x,"\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");x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;PbZ===void 0&&(PbZ=document.createElement("template"));
var K=PbZ;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return E$Z=x},
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(x){x=(x||"").split(":");this._iconName=x.pop();this._iconsetName=x.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&&_.By(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=hfs.byKey(this._iconsetName)){var x=this._iconset.applyIcon(this,this._iconName,this.theme);x&&x.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,_.By(this.root).appendChild(this._img)}});var xsi;var GYo;_.BD({_template:function(){if(GYo!==void 0)return GYo;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);
var G=x.content,D=G.insertBefore;xsi===void 0&&(xsi=document.createElement("template"));var K=xsi;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return GYo=x},
is:"tp-yt-iron-input",behaviors:[_.Va],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(){_.I8.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.By(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.By(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 x=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":x=/[0-9.,e-]/}return x},_bindValueChanged:function(x,G){G&&(x===void 0?G.value=null:x!==G.value&&(this.inputElement.value=x),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:x}))},
_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(x){var G=x.keyCode==19||x.keyCode==20||x.keyCode==45||x.keyCode==46||x.keyCode==144||x.keyCode==145||x.keyCode>32&&x.keyCode<41||x.keyCode>111&&x.keyCode<124;return!(x.keyCode==8||x.keyCode==9||x.keyCode==13||x.keyCode==27)&&!(x.charCode==0&&G)},
_onKeypress:function(x){if(this.allowedPattern||this.inputElement.type==="number"){var G=this._patternRegExp;if(G&&!(x.metaKey||x.ctrlKey||x.altKey)){this._patternAlreadyChecked=!0;var D=String.fromCharCode(x.charCode);this._isPrintable(x)&&!G.test(D)&&(x.preventDefault(),this._announceInvalidCharacter("Invalid character "+D+" not entered."))}}},
_checkPatternValidity:function(){var x=this._patternRegExp;if(!x)return!0;for(var G=0;G<this.inputElement.value.length;G++)if(!x.test(this.inputElement.value[G]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var x=this.inputElement.checkValidity();x&&(this.required&&this.bindValue===""?x=!1:this.hasValidator()&&(x=_.Va.validate.call(this,this.bindValue)));this.invalid=!x;this.fire("iron-input-validate");return x},
_announceInvalidCharacter:function(x){this.fire("iron-announce",{text:x})},
_computeValue:function(x){return x}});var DsJ;var Kj0;var zak=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),aXs=zak&&zak[1]>=8;
_.BD({_template:function(){if(Kj0!==void 0)return Kj0;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;DsJ===void 0&&(DsJ=document.createElement("template"));var K=DsJ;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return Kj0=x},
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:[qJC,_.Lg,_.I6s,bC0],_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 _.By(_.By(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var x=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,x-this._physicalCount)},set _virtualStart(x){x=this._clamp(x,0,this._maxVirtualStart);this.grid&&(x-=x%this._itemsPerRow);this._virtualStartVal=x},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(x){x%=this._physicalCount;x<0&&(x=this._physicalCount+x);this.grid&&(x-=x%this._itemsPerRow);this._physicalStartVal=x},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(x){this._physicalCountVal=x},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 x=this._firstVisibleIndexVal;if(x==null){var G=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
x=this._iterateItems(function(D,K){G+=this._getPhysicalSizeIncrement(D);if(G>this._scrollPosition)return this.grid?K-K%this._itemsPerRow:K;if(this.grid&&this._virtualCount-1===K)return K-K%this._itemsPerRow})||0}return x},
get lastVisibleIndex(){var x=this._lastVisibleIndexVal;if(x==null){if(this.grid)x=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var G=this._physicalTop+this._scrollOffset;this._iterateItems(function(D,K){G<this._scrollBottom&&(x=K);G+=this._getPhysicalSizeIncrement(D)})}this._lastVisibleIndexVal=x}return x},
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,_.Bh);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(x){this.style.webkitOverflowScrolling=x===this?"touch":"";this.style.overflowY=x===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.Bh)},
updateViewportBoundaries:function(){var x=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(x["padding-top"],10);this._isRTL=x.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var x=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),G=x-this._scrollPosition,D=G>=0;this._scrollPosition=x;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(G)>this._physicalSize&&this._physicalSize>0?(G-=this._scrollOffset,D=Math.round(G/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=D,this._physicalStart+=D,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(x=this._getReusables(D),D?(this._physicalTop=x.physicalTop,this._virtualStart+=x.indexes.length,this._physicalStart+=x.indexes.length):(this._virtualStart=this._virtualStart-x.indexes.length,this._physicalStart=this._physicalStart-x.indexes.length),this._update(x.indexes,D?null:x.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),Co))},
_getReusables:function(x){var G=[],D=this._hiddenContentSize*this._ratio,K=this._virtualStart,z=this._virtualEnd,y=this._physicalCount,c=this._physicalTop+this._scrollOffset;var W=this._physicalBottom+this._scrollOffset;var e=this._scrollPosition,Q=this._scrollBottom;if(x){var p=this._physicalStart;W=e-c}else p=this._physicalEnd,W-=Q;for(;;){var V=this._getPhysicalSizeIncrement(p);W-=V;if(G.length>=y||W<=D)break;if(x){if(z+G.length+1>=this._virtualCount)break;if(c+V>=e-this._scrollOffset)break;G.push(p);
c+=V;p=(p+1)%y}else{if(K-G.length<=0)break;if(c+this._physicalSize-V<=Q)break;G.push(p);c-=V;p=p===0?y-1:p-1}}return{indexes:G,physicalTop:c-this._scrollOffset}},
_update:function(x,G){if(!(x&&x.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(x);this._updateMetrics(x);if(G)for(;G.length;)x=G.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(x);this._positionItems();this._updateScrollerSize()}},
_createPool:function(x){this._ensureTemplatized();var G,D=Array(x);for(G=0;G<x;G++){var K=this.stamp(null);D[G]=K.root.querySelector("*");this._itemsParent.appendChild(K.root)}return D},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(x){x=this._clamp(this._physicalCount+x,3,this._virtualCount-this._virtualStart);x=this._convertIndexToCompleteRow(x);if(this.grid){var G=x%this._itemsPerRow;G&&x-G<=this._physicalCount&&(x+=this._itemsPerRow);x-=G}x-=this._physicalCount;G=Math.round(this._physicalCount*.5);if(!(x<0)){if(x>0){G=window.performance.now();[].push.apply(this._physicalItems,this._createPool(x));for(var D=0;D<x;D++)this._physicalSizes.push(0);this._physicalCount+=x;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=x);this._update();this._templateCost=(window.performance.now()-G)/x;G=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||G===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,G)),xqk):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,G),Co))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var x=this._getReusables(!0);this._physicalTop=x.physicalTop;this._virtualStart+=x.indexes.length;this._physicalStart+=x.indexes.length;this._update(x.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 x={__key__:!0};x[this.as]=!0;x[this.indexAs]=!0;x[this.selectedAs]=!0;x.tabIndex=!0;this._instanceProps=x;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(x,G){typeof G!=="undefined"&&(this.notifyResize(),_.GI(),x&&this._updateGridMetrics())},
_itemsChanged:function(x){if(x.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,
_.Bh);else if(x.path==="items.splices"){this._adjustVirtualIndex(x.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(x.value.indexSplices.some(function(D){return D.addedCount>0||D.removed.length>0})){var G=this._getActiveElement();
this.contains(G)&&G.blur()}x=x.value.indexSplices.some(function(D){return D.index+D.addedCount>=this._virtualStart&&D.index<=this._virtualEnd},this);
this._isClientFull()&&!x||this._debounce("_render",this._render,_.Bh)}else x.path!=="items.length"&&this._forwardItemPath(x.path,x.value)},
_forwardItemPath:function(x,G){x=x.slice(6);var D=x.indexOf(".");D===-1&&(D=x.length);var K,z=this.modelForElement(this._offscreenFocusedItem),y=parseInt(x.substring(0,D),10);if(K=this._isIndexRendered(y)){var c=this._getPhysicalIndex(y);var W=this.modelForElement(this._physicalItems[c])}else z&&(W=z);W&&W[this.indexAs]===y&&(x=x.substring(D+1),x=this.as+(x?"."+x:""),W._setPendingPropertyOrPath(x,G,!1,!0),W._flushProperties&&W._flushProperties(),K&&(this._updateMetrics([c]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(x){x.forEach(function(G){G.removed.forEach(this._removeItem,this);G.index<this._virtualStart&&(G=Math.max(G.addedCount-G.removed.length,G.index-this._virtualStart),this._virtualStart+=G,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=G))},this)},
_removeItem:function(x){this.$.selector.deselect(x);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===x&&this._removeFocusedItem()},
_iterateItems:function(x,G){var D,K;if(arguments.length===2&&G)for(K=0;K<G.length;K++){var z=G[K];var y=this._computeVidx(z);if((D=x.call(this,z,y))!=null)return D}else{z=this._physicalStart;for(y=this._virtualStart;z<this._physicalCount;z++,y++)if((D=x.call(this,z,y))!=null)return D;for(z=0;z<this._physicalStart;z++,y++)if((D=x.call(this,z,y))!=null)return D}},
_computeVidx:function(x){return x>=this._physicalStart?this._virtualStart+(x-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+x},
_assignModels:function(x){this._iterateItems(function(G,D){var K=this._physicalItems[G],z=this.items&&this.items[D];if(z!=null){var y=this.modelForElement(K);y.__key__=null;this._forwardProperty(y,this.as,z);this._forwardProperty(y,this.selectedAs,this.$.selector.isSelected(z));this._forwardProperty(y,this.indexAs,D);this._forwardProperty(y,"tabIndex",this._focusedVirtualIndex===D?0:-1);this._physicalIndexForKey[y.__key__]=G;y._flushProperties&&y._flushProperties(!0);K.removeAttribute("hidden")}else K.setAttribute("hidden",
"")},x)},
_updateMetrics:function(x){_.GI();var G=0,D=0,K=this._physicalAverageCount,z=this._physicalAverage;this._iterateItems(function(y){D+=this._physicalSizes[y];this._physicalSizes[y]=this._physicalItems[y].offsetHeight;G+=this._physicalSizes[y];this._physicalAverageCount+=this._physicalSizes[y]?1:0},x);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(D=this._itemsPerRow===1?D:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+G-D,this._itemsPerRow=1);this._physicalAverageCount!==K&&(this._physicalAverage=Math.round((z*K+G)/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 x=this._physicalTop;if(this.grid){var G=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(D,K){var z=Math.floor(K%this._itemsPerRow*this._itemWidth+G);this._isRTL&&(z*=-1);this.translate3d(z+"px",x+"px",0,this._physicalItems[D]);this._shouldRenderNextRow(K)&&(x+=this._rowHeight)})}else this._iterateItems(function(D){this.translate3d(0,x+"px",0,this._physicalItems[D]);
x+=this._physicalSizes[D]})},
_getPhysicalSizeIncrement:function(x){return this.grid?this._computeVidx(x)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[x]},
_shouldRenderNextRow:function(x){return x%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var x=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(x!==0){this._physicalTop=this._physicalTop-x;var G=this._scrollPosition;!aXs&&G>0&&this._resetScrollPosition(G-x)}},
_resetScrollPosition:function(x){this.scrollTarget&&x>=0&&(this._scrollPosition=this._scrollTop=x)},
_updateScrollerSize:function(x){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((x=(x=(x=x||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(x){return this.scrollToIndex(this.items.indexOf(x))},
scrollToIndex:function(x){if(!(typeof x!=="number"||x<0||x>this.items.length-1)&&(_.GI(),this._physicalCount!==0)){x=this._clamp(x,0,this._virtualCount-1);if(!this._isIndexRendered(x)||x>=this._maxVirtualStart)this._virtualStart=this.grid?x-this._itemsPerRow*2:x-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var G=this._physicalStart,D=this._virtualStart,K=0,z=this._hiddenContentSize;D<x&&
K<=z;)K+=this._getPhysicalSizeIncrement(G),G=(G+1)%this._physicalCount,D++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+K);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)},_.Bh)},
selectItem:function(x){return this.selectIndex(this.items.indexOf(x))},
selectIndex:function(x){if(!(x<0||x>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(x)){var G=this.modelForElement(this._physicalItems[this._getPhysicalIndex(x)]);G&&(G[this.selectedAs]=!0);this.updateSizeForIndex(x)}this.$.selector.selectIndex(x)}},
deselectItem:function(x){return this.deselectIndex(this.items.indexOf(x))},
deselectIndex:function(x){x<0||x>=this._virtualCount||(this._isIndexRendered(x)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(x)])[this.selectedAs]=!1,this.updateSizeForIndex(x)),this.$.selector.deselectIndex(x))},
toggleSelectionForItem:function(x){return this.toggleSelectionForIndex(this.items.indexOf(x))},
toggleSelectionForIndex:function(x){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(x):this.$.selector.isSelected(this.items[x]))?this.deselectIndex(x):this.selectIndex(x)},
clearSelection:function(){this._iterateItems(function(x){this.modelForElement(this._physicalItems[x])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(x){(x?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(x){var G=this.modelForElement(x.target);if(G){var D=_.By(x).path[0];x=this._getActiveElement();var K=this._physicalItems[this._getPhysicalIndex(G[this.indexAs])];if(D.localName!=="input"&&D.localName!=="button"&&D.localName!=="select"){D=G.tabIndex;G.tabIndex=-100;var z=x?x.tabIndex:-1;G.tabIndex=D;x&&K!==x&&K.contains(x)&&z!==-100||this.toggleSelectionForItem(G[this.as])}}},
_multiSelectionChanged:function(x){this.clearSelection();this.$.selector.multi=x},
updateSizeForItem:function(x){return this.updateSizeForIndex(this.items.indexOf(x))},
updateSizeForIndex:function(x){if(!this._isIndexRendered(x))return null;this._updateMetrics([this._getPhysicalIndex(x)]);this._positionItems();return null},
_manageFocus:function(){var x=this._focusedVirtualIndex;x>=0&&x<this._virtualCount?this._isIndexRendered(x)?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(x){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(x/this._itemsPerRow)*this._itemsPerRow:x},
_isIndexRendered:function(x){return x>=this._virtualStart&&x<=this._virtualEnd},
_isIndexVisible:function(x){return x>=this.firstVisibleIndex&&x<=this.lastVisibleIndex},
_getPhysicalIndex:function(x){return(this._physicalStart+(x-this._virtualStart))%this._physicalCount},
focusItem:function(x){this._focusPhysicalItem(x)},
_focusPhysicalItem:function(x){if(!(x<0||x>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(x)||this.scrollToIndex(x);var G=this._physicalItems[this._getPhysicalIndex(x)],D=this.modelForElement(G),K;D.tabIndex=-100;G.tabIndex===-100&&(K=G);K||(K=_.By(G).querySelector('[tabindex="-100"]'));D.tabIndex=0;this._focusedVirtualIndex=x;K&&K.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 x=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var G=this.stamp(null);this._focusBackfillItem=G.root.querySelector("*");this._itemsParent.appendChild(G.root)}this._offscreenFocusedItem=this._physicalItems[x];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[x]=this._focusBackfillItem;this._focusedPhysicalIndex=x;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var x=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),G=this._physicalItems[x];if(G){var D=this.modelForElement(G),K=this.modelForElement(this._offscreenFocusedItem);D[this.as]===K[this.as]?(this._focusBackfillItem=G,D.tabIndex=-1,this._physicalItems[x]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(x){x=this.modelForElement(x.target);var G=this.modelForElement(this._focusedItem),D=this._offscreenFocusedItem!==null,K=this._focusedVirtualIndex;x&&(G===x?this._isIndexVisible(K)||this.scrollToIndex(K):(this._restoreFocusedItem(),G&&(G.tabIndex=-1),x.tabIndex=0,this._focusedVirtualIndex=K=x[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(K),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],D&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(x){switch(x.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&x.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&&x.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(x)}},
_clamp:function(x,G,D){return Math.min(D,Math.max(G,x))},
_debounce:function(x,G,D){this._debouncers=this._debouncers||{};this._debouncers[x]=_.kG(this._debouncers[x],D,G.bind(this));_.PR(this._debouncers[x])},
_forwardProperty:function(x,G,D){x._setPendingProperty(G,D)},
_forwardHostPropV2:function(x,G){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(D){D&&this.modelForElement(D).forwardHostProp(x,G)},this)},
_notifyInstancePropV2:function(x,G,D){n7E(this.as,G)&&(x=x[this.indexAs],G==this.as&&(this.items[x]=D),this.notifyPath(lg(this.as,"items."+x,G),D))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(x,G,D){G.indexOf(this.as+".")===0&&this.notifyPath("items."+x.__key__+"."+G.slice(this.as.length+1),D)},
_forwardParentPath:function(x,G){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(D){D&&this.modelForElement(D).notifyPath(x,G)},this)},
_forwardParentProp:function(x,G){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(D){D&&(this.modelForElement(D)[x]=G)},this)},
_getActiveElement:function(){var x=this._itemsParent.node.domHost;return _.By(x?x.root:document).activeElement},
_scrollTargetChanged:function(x,G){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(G)if(x==="document")this.scrollTarget=this._doc;else if(typeof x==="string"){var D,K;this.scrollTarget=(G=(K=(D=this.domHost)==null?void 0:D.polymerController)!=null?K:this.domHost)&&G.$?G.$[x]:_.By(this.ownerDocument).querySelector("#"+x)}else this._isValidScrollTarget()&&(this._oldScrollTarget=x,this._toggleScrollListener(this._shouldHaveListener,x))}});var o7i;var yaJ;var lX9=function(x,G,D,K){x-=D;G-=K;return Math.sqrt(x*x+G*G)},cau=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
X_E.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var AZL=function(x){x.maxRadius=0;x.mouseDownStart=0;x.mouseUpStart=0;x.xStart=0;x.yStart=0;x.xEnd=0;x.yEnd=0;x.containerMetrics=new X_E(x.element)};
U2L.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var x=cau()-this.mouseDownStart;this.mouseUpStart&&(x-=this.mouseUpElapsed);return x},get mouseUpElapsed(){return this.mouseUpStart?cau()-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 x=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(x*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-x/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 x=this.radius/(this.containerMetrics.size/2);var G=this.xNow-this.containerMetrics.width/2;var D=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+G+"px, "+D+"px)";this.waveContainer.style.transform="translate3d("+G+"px, "+D+"px, 0)";this.wave.style.webkitTransform="scale("+x+","+x+")";this.wave.style.transform="scale3d("+x+","+x+",1)"},
downAction:function(x){var G=this.containerMetrics.width/2,D=this.containerMetrics.height/2;AZL(this);this.mouseDownStart=cau();this.center?(this.xStart=G,this.yStart=D):(this.xStart=x?x.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=x?x.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=G,this.yEnd=D);x=this.containerMetrics;G=this.xStart;D=this.yStart;this.maxRadius=Math.max(lX9(G,D,0,0),lX9(G,D,
x.width,0),lX9(G,D,0,x.height),lX9(G,D,x.width,x.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=cau())},
remove:function(){_.By(_.By(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.BD({_template:function(){if(yaJ!==void 0)return yaJ;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;o7i===void 0&&(o7i=document.createElement("template"));var K=o7i;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return yaJ=x},
is:"tp-yt-paper-ripple",behaviors:[_.Tb],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(){_.By(this).parentNode.nodeType==11?this.keyEventTarget=_.By(this).getOwnerRoot().host:this.keyEventTarget=_.By(this).parentNode;var x=this.keyEventTarget;this.listen(x,"up","uiUpAction");this.listen(x,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(x){x.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var x=0;x<this.ripples.length;++x)if(!this.ripples[x].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(x){this.noink||this.downAction(x)},
downAction:function(x){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(x),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(x){this.noink||this.upAction(x)},
upAction:function(x){this.holdDown||(this.ripples.forEach(function(G){G.upAction(x)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var x=0;x<this.ripples.length;++x){var G=this.ripples[x];G.isOpacityFullyDecayed&&!G.isRestingAtMaxRadius&&this.removeRipple(G)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var x=new U2L(this);_.By(this.$.waves).appendChild(x.waveContainer);this.$.background.style.backgroundColor=x.color;this.ripples.push(x);this._setAnimating(!0);return x},
removeRipple:function(x){var G=this.ripples.indexOf(x);G<0||(this.ripples.splice(G,1),x.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var x;for(x=0;x<this.ripples.length;++x){var G=this.ripples[x];G.draw();this.$.background.style.opacity=G.outerOpacity;G.isOpacityFullyDecayed&&!G.isRestingAtMaxRadius&&this.removeRipple(G)}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(x,G){G!==void 0&&(x?this.downAction():this.upAction())}});var R8={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(x){eV._downHandler.call(this,x);this.pressed&&this.ensureRipple(x)},
ensureRipple:function(x){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var G=this._rippleContainer||this.root;G&&_.By(G).appendChild(this._ripple);if(x){G=_.By(this._rippleContainer||this);var D=_.By(x).rootTarget;G.deepContains(D)&&this._ripple.uiDownAction(x)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(x){this.hasRipple()&&(this._ripple.noink=x)}};var TGi={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 x=1;this.disabled?x=0:this.active||this.pressed?x=4:this.receivedFocusFromKeyboard&&(x=3);this._setElevation(x)},
_computeKeyboardClass:function(x){this.toggleClass("keyboard-focus",x)},
_spaceKeyDownHandler:function(x){eV._spaceKeyDownHandler.call(this,x);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(x){eV._spaceKeyUpHandler.call(this,x);this.hasRipple()&&this._ripple.uiUpAction()}},Wjs=[b70,
_.Wp,R8,TGi];_.eaZ={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(x){x&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=x)},
_createRipple:function(){var x=R8._createRipple();x.id="ink";x.setAttribute("center","");x.classList.add("circle");return x}};
_.ZH7=[b70,_.Wp,R8,_.eaZ];_.Mss=[_.ZH7,ro9,{_checkedChanged:function(){Bco._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){R8._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var QlE;var pH9;var Vss=function(){};
_.a=Vss.prototype;_.a.registered=function(){};
_.a.addOwnKeyBinding=function(){};
_.a.removeOwnKeyBindings=function(){};
_.a.keyboardEventMatchesKeys=function(){};
_.a._collectKeyBindings=function(){};
_.a._prepKeyBindings=function(){};
_.a._addKeyBinding=function(){};
_.a._resetKeyEventListeners=function(){};
_.a._listenKeyEventListeners=function(){};
_.a._unlistenKeyEventListeners=function(){};
_.a._onKeyBindingEvent=function(){};
_.a._triggerKeyHandler=function(){};
_.a._tapHandler=function(){};
_.a._focusChanged=function(){};
_.a._detectKeyboardFocus=function(){};
_.a._userActivate=function(){};
_.a._upHandler=function(){};
_.a._asyncClick=function(){};
_.a._pressedChanged=function(){};
_.a._ariaActiveAttributeChanged=function(){};
_.a._activeChanged=function(){};
_.a._controlStateChanged=function(){};
_.a._changedButtonState=function(){};
_.a._focusBlurHandler=function(){};
_.a._disabledChanged=function(){};
_.a._changedControlState=function(){};
_.a._buttonStateChanged=function(){};
_.a._downHandler=function(){};
_.a.ensureRipple=function(){};
_.a.getRipple=function(){};
_.a.hasRipple=function(){};
_.a._createRipple=function(){};
_.a._noinkChanged=function(){};
_.a._computeKeyboardClass=function(){};
_.a._spaceKeyDownHandler=function(){};
_.a._spaceKeyUpHandler=function(){};
_.a._setPressed=function(){};
_.a._setPointerDown=function(){};
_.a._setReceivedFocusFromKeyboard=function(){};
_.a._setFocused=function(){};
_.a._setElevation=function(){};
Vss=_.BD({_template:function(){if(pH9!==void 0)return pH9;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);
var G=x.content,D=G.insertBefore;QlE===void 0&&(QlE=document.createElement("template"));var K=QlE;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return pH9=x},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[Wjs],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?TGi._calculateElevation.apply(this):this._setElevation(0)}});var bHk;var LjZ;var BGZ={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(x){_.B("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(x)},
_onDialogClickWrapped:function(x){_.B("dialog_behavior_no_tap_killswitch")||this._onDialogClick(x)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(x,G){G&&(x?(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(x){this.closingReason=this.closingReason||{};this.closingReason.confirmed=x},
_onDialogClick:function(x){for(var G=_.By(x).path,D=0,K,z=G.indexOf((K=this.hostElement)!=null?K:this);D<z;D++)if(K=G[D],K.hasAttribute&&(K.hasAttribute("dialog-dismiss")||K.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(K.hasAttribute("dialog-confirm"));this.close();x.stopPropagation();break}}},raZ=[_.Ud,
BGZ];var sl8=document.createElement("template");_.F(sl8,'<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(sl8.content);var Yui=document.createElement("template");_.F(Yui,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(Yui.content);_.BD({_template:function(){if(LjZ!==void 0)return LjZ;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);
var G=x.content,D=G.insertBefore;bHk===void 0&&(bHk=document.createElement("template"));var K=bHk;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return LjZ=x},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[raZ,jeq],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 mss;var HH7;_.BD({_template:function(){if(HH7!==void 0)return HH7;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;mss===void 0&&(mss=document.createElement("template"));var K=mss;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return HH7=x},
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 x,G,D;if(((x=window.ShadyDOM)==null?void 0:x.noPatch)!==!0&&((G=window.ShadyDOM)==null?void 0:G.noPatch)!=="on-demand"||((D=this.__shady_parentNode)==null?void 0:D.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(BGZ)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var $ss=_.gv(['<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>']),FjJ=_.Yvu($ss);FjJ.setAttribute("style","display: none;");document.head.appendChild(FjJ.content);var C_o;var IXo;var jlu;var OHE;_.BD({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[Bp],configure:function(x){var G=x.node,D=G.getBoundingClientRect().height;return this._effect=new KeyframeEffect(G,[{height:D/2+"px"},{height:D+"px"}],this.timingFromConfig(x))}});
_.BD({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[Bp],configure:function(x){var G=x.node,D=G.getBoundingClientRect().width;return this._effect=new KeyframeEffect(G,[{width:D/2+"px"},{width:D+"px"}],this.timingFromConfig(x))}});
_.BD({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[Bp],configure:function(x){var G=x.node,D=G.getBoundingClientRect().width;return this._effect=new KeyframeEffect(G,[{width:D+"px"},{width:D-D/20+"px"}],this.timingFromConfig(x))}});
_.BD({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[Bp],configure:function(x){var G=x.node,D=G.getBoundingClientRect().height;this.setPrefixedProperty(G,"transformOrigin","0 0");return this._effect=new KeyframeEffect(G,[{height:D+"px",transform:"translateY(0)"},{height:D/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(x))}});var SV={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},XHE=function(){};
_.a=XHE.prototype;_.a.registered=function(){};
_.a.addOwnKeyBinding=function(){};
_.a.removeOwnKeyBindings=function(){};
_.a.keyboardEventMatchesKeys=function(){};
_.a._collectKeyBindings=function(){};
_.a._prepKeyBindings=function(){};
_.a._addKeyBinding=function(){};
_.a._resetKeyEventListeners=function(){};
_.a._listenKeyEventListeners=function(){};
_.a._unlistenKeyEventListeners=function(){};
_.a._onKeyBindingEvent=function(){};
_.a._triggerKeyHandler=function(){};
_.a._focusBlurHandler=function(){};
_.a._changedControlState=function(){};
_.a._setFocused=function(){};
XHE=_.BD({_template:function(){if(OHE!==void 0)return OHE;var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-menu-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_menu_button.tp.yt.paper.menu.button.css.js--\x3e<div id="trigger" on-tap="toggle" class="style-scope tp-yt-paper-menu-button">\n  <slot name="dropdown-trigger" class="style-scope tp-yt-paper-menu-button"></slot>\n</div>\n\n<tp-yt-iron-dropdown id="dropdown" opened="{{opened}}" horizontal-align="[[horizontalAlign]]" vertical-align="[[verticalAlign]]" dynamic-align="[[dynamicAlign]]" horizontal-offset="[[horizontalOffset]]" vertical-offset="[[verticalOffset]]" no-overlap="[[noOverlap]]" open-animation-config="[[openAnimationConfig]]" close-animation-config="[[closeAnimationConfig]]" no-animations="[[noAnimations]]" focus-target="[[_dropdownContent]]" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-overlay-canceled="__onIronOverlayCanceled" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" fit-into="[[fitInto]]" class="style-scope tp-yt-paper-menu-button">\n  <div slot="dropdown-content" class="dropdown-content style-scope tp-yt-paper-menu-button">\n    <slot id="content" name="dropdown-content" class="style-scope tp-yt-paper-menu-button"></slot>\n  </div>\n</tp-yt-iron-dropdown>\n');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;jlu===void 0&&(jlu=document.createElement("template"));var K=jlu;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return OHE=x},
is:"tp-yt-paper-menu-button",behaviors:[_.Tb,_.Wp],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:SV.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:SV.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:SV.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-shrink-height-animation",timing:{duration:200,easing:"ease-in"}}]}},
allowOutsideScroll:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_dropdownContent:{type:Object},fitInto:{type:Object}},hostAttributes:{role:"group","aria-haspopup":"true"},listeners:{"iron-activate":"_onIronActivate","iron-select":"_onIronSelect"},get contentElement(){for(var x=_.By(this.$.content).getDistributedNodes(),G=0,D=x.length;G<D;G++)if(x[G].nodeType===Node.ELEMENT_NODE)return x[G]},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(x,G){x?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):G!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(x){_.Wp._disabledChanged.apply(this,arguments);x&&this.opened&&this.close()},
__onIronOverlayCanceled:function(x){var G=this.$.trigger;_.By(x.detail).path.indexOf(G)>-1&&x.preventDefault()}});
Object.keys(SV).forEach(function(x){XHE[x]=SV[x]});var Aa8=_.Zm.IronButtonState,Ush=(0,_.TI)(HTMLElement);
_.BD({_template:function(){if(IXo!==void 0)return IXo;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;C_o===void 0&&(C_o=document.createElement("template"));var K=C_o;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return IXo=x},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[Aa8,_.Wp,R8,_.M7,_.Va],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(x){var G=(0,_.ZP)(this);G.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:x});G.shadowRoot.appendChild(x);return Ush.prototype._attachDom.call(this,x)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var x=this.contentElement;x&&x.selectedItem&&this._setSelectedItem(x.selectedItem)},
get contentElement(){for(var x=_.By(this.$.content).getDistributedNodes(),G=0,D=x.length;G<D;G++)if(x[G].nodeType===Node.ELEMENT_NODE)return x[G]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(x){this._setSelectedItem(x.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(x){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(x)===this&&this.open()},
_selectedItemChanged:function(x){var G="";x?G=x.label||x.getAttribute("label")||x.textContent.trim():G="";this.value=G;this._setSelectedItemLabel(G)},
_computeMenuVerticalOffset:function(x,G){return G?G:x?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var x=this.opened?"true":"false",G=this.contentElement;G&&G.setAttribute("aria-expanded",x)},
_computeLabelClass:function(x,G,D){var K="label";if(x)D&&(K+=" label-is-hidden");else if(D||G)K+=" label-is-floating";return K},
_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 Rah;var Suq;_.BD({is:"tp-yt-paper-icon-button",_template:function(){if(Suq!==void 0)return Suq;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;Rah===void 0&&(Rah=document.createElement("template"));var K=Rah;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return Suq=x},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.ZH7],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(x,G){var D=this.getAttribute("aria-label");D&&G!=D||this.setAttribute("aria-label",x)}});var n7h;var iHk;_.iK=[b70,_.Wp,{hostAttributes:{role:"option",tabindex:"0"}}];_.BD({_template:function(){if(iHk!==void 0)return iHk;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;n7h===void 0&&(n7h=document.createElement("template"));var K=n7h;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return iHk=x},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.iK]});var g7q;var u87;var dsJ={attached:function(){this.fire("addon-attached")},
update:function(){}};var wHs=1,quJ=1,NGE=1,v7Z=[_.Wp,_.Tb,{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();!wU&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(x,G){x?x=x+" "+G:x=G;return x},
_onAddonAttached:function(x){x=_.By(x).rootTarget;if(x.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,x.id);else{var G="paper-input-add-on-"+quJ++;x.id=G;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,G)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(x){_.Wp._focusBlurHandler.call(this,x);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var x=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",x);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(x){try{var G=this.inputElement.selectionStart;this.value=x;this.inputElement.selectionStart=G;this.inputElement.selectionEnd=G}catch(D){this.value=x}},
_computeAlwaysFloatLabel:function(x,G){return G||x},
_updateAriaLabelledBy:function(){var x=_.By(this.root).querySelector("label");if(x){if(x.id)var G=x.id;else G="paper-input-label-"+wHs++,x.id=G;this._ariaLabelledBy=G}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+NGE++)},
_onChange:function(x){this.shadowRoot&&this.fire(x.type,{sourceEvent:x},{node:this,bubbles:x.bubbles,cancelable:x.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var x=document.activeElement;x instanceof HTMLElement&&x!==document.body&&x!==document.documentElement||this._focusableElement.focus()}}}];var Jak;var fX8;_.BD({_template:function(){if(fX8!==void 0)return fX8;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;Jak===void 0&&(Jak=document.createElement("template"));var K=Jak;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return fX8=x},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[dsJ],properties:{_charCounterStr:{type:String,value:"0"}},update:function(x){if(x.inputElement){x.value=x.value||"";var G=x.value.toString().length.toString();x.inputElement.hasAttribute("maxlength")&&(G+="/"+x.inputElement.getAttribute("maxlength"));this._charCounterStr=G}}});var tsZ;var kYJ;_.BD({_template:function(){if(kYJ!==void 0)return kYJ;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;tsZ===void 0&&(tsZ=document.createElement("template"));var K=tsZ;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return kYJ=x},
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 Ko(this.attrForValue)},get _inputElement(){return _.By(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(x){this._addons||(this._addons=[]);x=x.target;this._addons.indexOf(x)===-1&&(this._addons.push(x),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(x){this._handleValueAndAutoValidate(x.target)},
_onValueChanged:function(x){var G=x.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,G.value===void 0||G.value===""))return;this._handleValueAndAutoValidate(x.target)},
_handleValue:function(x){var G=this._inputElementValue;G||G===0||x.type==="number"&&!x.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:x,value:G,invalid:this.invalid})},
_handleValueAndAutoValidate:function(x){this.autoValidate&&x&&(this.invalid=!(x.validate?x.validate(this._inputElementValue):x.checkValidity()));this._handleValue(x)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(x){if(this._addons)for(var G,D=0;G=this._addons[D];D++)G.update(x)},
_computeInputContentClass:function(x,G,D,K,z){var y="input-content";x?(z&&(y+=" label-is-hidden"),K&&!this.noUnfloatedLabelError&&(y+=" is-invalid")):(x=this.querySelector("label"),G||z?(y+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",K?y+=" is-invalid":D&&(y+=" label-is-highlighted")):(x&&(this.$.labelAndInputContainer.style.position="relative"),K&&!this.noUnfloatedLabelError&&(y+=" is-invalid")));D&&(y+=" focused");return y},
_computeUnderlineClass:function(x,G){var D="underline";G?D+=" is-invalid":x&&(D+=" is-highlighted");return D},
_computeAddOnContentClass:function(x,G){var D="add-on-content";G?D+=" is-invalid":x&&(D+=" is-highlighted");return D}});var P_k;var E7s;_.BD({_template:function(){if(E7s!==void 0)return E7s;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;P_k===void 0&&(P_k=document.createElement("template"));var K=P_k;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return E7s=x},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[dsJ],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(x){this._setInvalid(x.invalid)}});_.BD({is:"tp-yt-paper-input",_template:function(){if(u87!==void 0)return u87;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;g7q===void 0&&(g7q=document.createElement("template"));var K=g7q;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return u87=x},
behaviors:[v7Z,_.M7],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 haE;var xFq;_.BD({_template:function(){if(xFq!==void 0)return xFq;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=
x.content,D=G.insertBefore;haE===void 0&&(haE=document.createElement("template"));var K=haE;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return xFq=x},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.iK]});var Gxu;var DFq;_.BD({_template:function(){if(DFq!==void 0)return DFq;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);
var G=x.content,D=G.insertBefore;Gxu===void 0&&(Gxu=document.createElement("template"));var K=Gxu;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return DFq=x},
is:"tp-yt-paper-item-body"});var KYq;var zM8;var awh=function(){};
_.a=awh.prototype;_.a.indexOf=function(){};
_.a.selectPrevious=function(){};
_.a.selectNext=function(){};
_.a.selectIndex=function(){};
_.a.forceSynchronousItemUpdate=function(){};
_.a._checkFallback=function(){};
_.a._addListener=function(){};
_.a._removeListener=function(){};
_.a._activateEventChanged=function(){};
_.a._updateItems=function(){};
_.a._selectSelected=function(){};
_.a._filterItem=function(){};
_.a._valueToItem=function(){};
_.a._valueToIndex=function(){};
_.a._indexToValue=function(){};
_.a._valueForItem=function(){};
_.a._observeItems=function(){};
_.a._itemActivate=function(){};
_.a.multiChanged=function(){};
_.a._updateAttrForSelected=function(){};
_.a._updateSelected=function(){};
_.a._selectMulti=function(){};
_.a._selectionChange=function(){};
_.a._toggleSelected=function(){};
_.a._valuesToItems=function(){};
_.a.registered=function(){};
_.a.addOwnKeyBinding=function(){};
_.a.removeOwnKeyBindings=function(){};
_.a.keyboardEventMatchesKeys=function(){};
_.a._collectKeyBindings=function(){};
_.a._prepKeyBindings=function(){};
_.a._addKeyBinding=function(){};
_.a._resetKeyEventListeners=function(){};
_.a._listenKeyEventListeners=function(){};
_.a._unlistenKeyEventListeners=function(){};
_.a._onKeyBindingEvent=function(){};
_.a._triggerKeyHandler=function(){};
_.a.select=function(){};
_.a._resetTabindices=function(){};
_.a._updateMultiselectable=function(){};
_.a._focusWithKeyboardEvent=function(){};
_.a._clearSearchText=function(){};
_.a._focusPrevious=function(){};
_.a._focusNext=function(){};
_.a._applySelection=function(){};
_.a._focusedItemChanged=function(){};
_.a._onIronItemsChanged=function(){};
_.a._onShiftTabDown=function(){};
_.a._onFocus=function(){};
_.a._onUpKey=function(){};
_.a._onDownKey=function(){};
_.a._onEscKey=function(){};
_.a._onKeydown=function(){};
_.a._activateHandler=function(){};
_.a._disabledChanged=function(){};
_.a._setSelectedItem=function(){};
_.a._setItems=function(){};
_.a._setSelectedItems=function(){};
_.a._setFocusedItem=function(){};
awh=_.BD({_template:function(){if(zM8!==void 0)return zM8;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);
var G=x.content,D=G.insertBefore;KYq===void 0&&(KYq=document.createElement("template"));var K=KYq;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return zM8=x},
is:"tp-yt-paper-listbox",behaviors:[H7J],hostAttributes:{role:"listbox"}});var oLs;var yc8;var lws={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(x,G){return[x||G?"active":"",G?"cooldown":""].join(" ")},
__activeChanged:function(x,G){this.__setAriaHidden(!x);this.__coolingDown=!x&&G},
__altChanged:function(x){this.setAttribute("aria-label",x||"loading")},
__setAriaHidden:function(x){x?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.BD({_template:function(){if(yc8!==void 0)return yc8;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;oLs===void 0&&(oLs=document.createElement("template"));var K=oLs;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return yc8=x},
is:"tp-yt-paper-spinner",behaviors:[lws]});var ccs;var Tlk;_.BD({_template:function(){if(Tlk!==void 0)return Tlk;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;ccs===void 0&&(ccs=document.createElement("template"));var K=ccs;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return Tlk=x},
is:"tp-yt-paper-spinner-lite",behaviors:[lws]});var WYi;var eM9;_.BD({_template:function(){if(eM9!==void 0)return eM9;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;WYi===void 0&&(WYi=document.createElement("template"));var K=WYi;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return eM9=x},
is:"tp-yt-paper-tab",behaviors:[_.Wp,_.Zm.IronButtonState,R8],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 x=_.By(this).parentNode;return!!x&&!!x.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(x){if(this.link){var G=this.queryEffectiveChildren("a");G&&x.target!==G&&G.click()}}});var Zs9;var MU0;var QOq=_.gv(['<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>']),pqu=_.Yvu(QOq);document.head.appendChild(pqu.content);_.BD({_template:function(){if(MU0!==void 0)return MU0;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;Zs9===void 0&&(Zs9=document.createElement("template"));var K=Zs9;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return MU0=x},
is:"tp-yt-paper-tabs",behaviors:[_.Lg,_.Fyi],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(x){_.By(this).querySelectorAll("tp-yt-paper-tab").forEach(x?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(x){x.setAttribute("noink","")},
_removeNoinkAttribute:function(x){x.removeAttribute("noink")},
_computeScrollButtonClass:function(x,G,D,K){return!G||D?"hidden":x?K?"hidden":"not-visible":""},
_computeTabsContentClass:function(x,G){var D="tabs-content";x&&(D+=" scrollable");if(!x||G)D+=" fit-container";return D},
_computeSelectionBarClass:function(x,G){var D="selection-bar";x?D+=" hidden":G&&(D+=" align-bottom");return D},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(x){return""+x},
_onIronSelect:function(x){this._tabChanged(x.detail.item,this._previousTab);this._previousTab=x.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();_.bK._activateHandler.apply(this,arguments)},
_scheduleActivation:function(x,G){this._pendingActivationItem=x;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,G)},
_delayedActivationHandler:function(){var x=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;x.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(x){x.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(x,G){this.scrollable&&this._affectScroll(G&&-G.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(x){this.$.tabsContainer.scrollLeft+=x;x=this.$.tabsContainer.scrollLeft;this._leftHidden=x===0||this.hideScrollButtons;this._rightHidden=x===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(x,G){if(x){var D=this.$.tabsContent.getBoundingClientRect(),K=D.width,z=x.getBoundingClientRect();D=z.left-D.left;this._pos={width:this._calcPercent(z.width,K),left:this._calcPercent(D,K)};if(this.noSlide||G==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var y=G.getBoundingClientRect();G=this.items.indexOf(G);x=this.items.indexOf(x);this.$.selectionBar.classList.add("expand");
x=G<x;this._isRTL&&(x=!x);x?this._positionBar(this._calcPercent(z.left+z.width-y.left,K)-5,this._left):this._positionBar(this._calcPercent(y.left+y.width-z.left,K)-5,this._calcPercent(D,K)+5);this.scrollable&&this._scrollToSelectedIfNeeded(z.width,D)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(x,G){G-=this.$.tabsContainer.scrollLeft;G<0?this.$.tabsContainer.scrollLeft+=G:(G+=x-this.$.tabsContainer.offsetWidth,G>0&&(this.$.tabsContainer.scrollLeft+=G))},
_calcPercent:function(x,G){return 100*x/G},
_positionBar:function(x,G){x=x||0;G=G||0;this._width=x;this._left=G;this.transform("translateX("+G+"%) scaleX("+x/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var x=this.$.selectionBar.classList;x.contains("expand")?(x.remove("expand"),x.add("contract"),this._positionBar(this._pos.width,this._pos.left)):x.contains("contract")&&x.remove("contract")}});var VUh;var bsu;_.BD({_template:function(){if(bsu!==void 0)return bsu;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;VUh===void 0&&(VUh=document.createElement("template"));var K=VUh;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return bsu=x},
is:"tp-yt-paper-textarea",behaviors:[v7Z,_.M7],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(x){this.$.input.textarea.selectionStart=x},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(x){this.$.input.textarea.selectionEnd=x},_ariaLabelledByChanged:function(x){this._focusableElement.setAttribute("aria-labelledby",x)},
_ariaDescribedByChanged:function(x){this._focusableElement.setAttribute("aria-describedby",x)},
get _focusableElement(){return this.inputElement.textarea}});var LY8;var Blo;/*

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 rc8=function(){};
_.a=rc8.prototype;_.a.addOwnKeyBinding=function(){};
_.a.removeOwnKeyBindings=function(){};
_.a.keyboardEventMatchesKeys=function(){};
_.a._collectKeyBindings=function(){};
_.a._prepKeyBindings=function(){};
_.a._addKeyBinding=function(){};
_.a._resetKeyEventListeners=function(){};
_.a._listenKeyEventListeners=function(){};
_.a._unlistenKeyEventListeners=function(){};
_.a._onKeyBindingEvent=function(){};
_.a._triggerKeyHandler=function(){};
_.a._tapHandler=function(){};
_.a._focusChanged=function(){};
_.a._detectKeyboardFocus=function(){};
_.a._userActivate=function(){};
_.a._upHandler=function(){};
_.a._spaceKeyDownHandler=function(){};
_.a._spaceKeyUpHandler=function(){};
_.a._asyncClick=function(){};
_.a._pressedChanged=function(){};
_.a._ariaActiveAttributeChanged=function(){};
_.a._activeChanged=function(){};
_.a._controlStateChanged=function(){};
_.a._changedButtonState=function(){};
_.a._focusBlurHandler=function(){};
_.a._disabledChanged=function(){};
_.a._changedControlState=function(){};
_.a._downHandler=function(){};
_.a.ensureRipple=function(){};
_.a.getRipple=function(){};
_.a.hasRipple=function(){};
_.a._noinkChanged=function(){};
_.a._focusedChanged=function(){};
_.a.registered=function(){};
_.a._invalidChanged=function(){};
_.a.hasValidator=function(){};
_.a.validate=function(){};
_.a._getValidity=function(){};
_.a._requiredChanged=function(){};
_.a._valueChanged=function(){};
_.a._checkedChanged=function(){};
_.a._buttonStateChanged=function(){};
_.a._setPressed=function(){};
_.a._setPointerDown=function(){};
_.a._setReceivedFocusFromKeyboard=function(){};
_.a._setFocused=function(){};
rc8=_.BD({is:"tp-yt-paper-toggle-button",_template:function(){if(Blo!==void 0)return Blo;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;LY8===void 0&&(LY8=document.createElement("template"));var K=LY8;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return Blo=x},
behaviors:[_.Mss],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");_.w1(this,function(){_.FK(this,"pan-y")})},
_ontrack:function(x){x=x.detail;x.state==="start"?this._trackStart(x):x.state==="track"?this._trackMove(x):x.state==="end"&&this._trackEnd(x)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(x){x=x.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+x:x)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+x:x));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 x=R8._createRipple();x.id="ink";x.setAttribute("recenters","");x.classList.add("circle","toggle-ink");return x}});var sOZ;var YgJ;_.BD({_template:function(){if(YgJ!==void 0)return YgJ;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;sOZ===void 0&&(sOZ=document.createElement("template"));var K=sOZ;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return YgJ=x},
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 x=_.By(this).parentNode,G=_.By(this).getOwnerRoot(),D;this.for?D=_.By(G).querySelector("#"+this.for):D=x.nodeType==Node.DOCUMENT_FRAGMENT_NODE?G.host:x;return D},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(x){x==="entry"?this.show():x==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.By(this).textContent.trim()===""){for(var x=!0,G=_.By(this).getEffectiveChildNodes(),D=0;D<G.length;D++)if(G[D].textContent.trim()!==""){x=!1;break}if(x)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 x=this.offset;this.marginTop!=14&&this.offset==14&&(x=this.marginTop);var G=this.offsetParent.getBoundingClientRect(),D=this._target.getBoundingClientRect(),K=this.getBoundingClientRect(),z=(D.width-K.width)/2,y=(D.height-K.height)/2,c=D.left-G.left,W=D.top-G.top;switch(this.position){case "top":var e=c+z;var Q=W-K.height-x;break;case "bottom":e=c+z;Q=W+D.height+x;break;case "left":e=c-K.width-x;Q=W+y;break;case "right":e=c+D.width+
x,Q=W+y}this.fitToVisibleBounds?(G.left+e+K.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,e)+"px",this.style.right="auto"),G.top+Q+K.height>window.innerHeight?(this.style.bottom=G.height+"px",this.style.top="auto"):(this.style.top=Math.max(-G.top,Q)+"px",this.style.bottom="auto")):(this.style.left=e+"px",this.style.top=Q+"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(x){x!==500&&this.updateStyles({"--paper-tooltip-delay-in":x+"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(x){if(x==="entry"&&this.animationEntry!=="")return this.animationEntry;if(x==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[x]&&typeof this.animationConfig[x][0].name==="string"){if(this.animationConfig[x][0].timing&&this.animationConfig[x][0].timing.delay&&this.animationConfig[x][0].timing.delay!==0){var G=this.animationConfig[x][0].timing.delay;x==="entry"?this.updateStyles({"--paper-tooltip-delay-in":G+"ms"}):x==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":G+
"ms"})}return this.animationConfig[x][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 mF9=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(mF9,_.SX);var Hsi=_.Pd(mF9,[0,_.ur]);var gH=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(gH,_.SX);var $F8=[3,4],FYs=[5,6];var CA7=[0,$F8,FYs,_.Fh0,-1,_.gP,_.Cqi,-1,$an,F6h];var Iwq=_.Pd(gH,CA7),jOk=_.E_(CA7);var Osk=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Osk,_.SX);var Xq8=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Xq8,_.SX);var Acs=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Acs,_.SX);var UFi=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(UFi,_.SX);var RM7=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(RM7,_.SX);var uK=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(uK,_.SX);uK.prototype.getSource=function(){return _.sk(this,1)};
uK.prototype.getMessage=function(){return _.rP(this,4)};
uK.prototype.getData=function(){return _.hv(this,RM7,8)};var Sg8=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Sg8,_.SX);var dH=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(dH,_.SX);var wH=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(wH,_.SX);var q7=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(q7,_.SX);q7.prototype.getUrl=function(){return _.rP(this,1)};
q7.prototype.setUrl=function(x){return _.Z_(this,1,x)};
q7.prototype.hasUrl=function(){return _.gb(_.yW(this,1))!=null};var nLk=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(nLk,_.SX);var iss=[3];var gLs=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(gLs,_.SX);var N7=function(x){var G=new gLs;return _.xW(G,2,x)};
gLs.prototype.getLanguage=function(){return mH(this,4,vp)};
var u47=function(x){var G=N7(1);return _.DB(G,6,vp,x)},vp=[3,
4,5,6];var dFJ=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(dFJ,_.SX);var J7=function(x){var G=new dFJ;return _.xW(G,1,x)},fg=function(x,G){return _.DB(x,2,wqq,G)},wqq=[2,
3,4,5];var qgE=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(qgE,_.SX);var t7=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(t7,_.SX);var Nli=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Nli,_.SX);var vLh=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(vLh,_.SX);var Jc7=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Jc7,_.SX);var fwJ=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(fwJ,_.SX);var tUi=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(tUi,_.SX);var ko=function(x){return _.hv(x,wH,5)};var kxi=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(kxi,_.SX);kxi.prototype.getValue=function(){return Lr(this,1)};var PAZ=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(PAZ,_.SX);var Pp=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Pp,_.SX);Pp.prototype.getMetadata=function(){return _.HV(this,Jc7,7,Ed)};
Pp.prototype.hasMetadata=function(){return _.cV(this,Jc7,7,Ed)};
var ELi=_.DH$(Pp),Ed=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var h7=function(x){this.JSC$9926_name_=x;this.files_=[];this.directories_=[];this.directoryMap_={}};
h7.prototype.getName=function(){return this.JSC$9926_name_};var Gc=function(x,G){this.callback_=G;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new h7("");hM0(this,x,this.rootDirectory_);xV(this)},hM0=function(x,G,D){for(var K=0;K<G.length;K++){var z=G[K];
z.isFile?(x.fileOps_++,z.file((0,_.mW)(x.handleFileSuccess_,x,D),(0,_.mW)(x.handleFileError_,x))):x.unscannedDirectories_.push(new xXs(z,D))}},xV=function(x){if(x.unscannedDirectories_.length>0&&x.directoryOps_<5&&!x.hasError_){x.directoryOps_++;
var G=x.unscannedDirectories_.shift(),D=G.entry,K=new h7(D.name);G=G.parent;G.directoryMap_[K.getName()]=K;G.directories_.push(K);D=D.createReader();D.readEntries((0,_.mW)(x.handleDirectorySuccess_,x,D,K),(0,_.mW)(x.handleDirectoryError_,x))}x.directoryOps_!=0||x.fileOps_!=0||x.unscannedDirectories_.length!=0&&!x.hasError_||x.callback_(x.rootDirectory_.files_,x.rootDirectory_.directories_,x.hasError_)};
Gc.prototype.handleDirectorySuccess_=function(x,G,D){hM0(this,D,G);D.length==0?(this.directoryOps_--,xV(this)):x.readEntries((0,_.mW)(this.handleDirectorySuccess_,this,x,G),(0,_.mW)(this.handleDirectoryError_,this))};
Gc.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;xV(this)};
Gc.prototype.handleFileSuccess_=function(x,G){x.files_.push(G);this.fileOps_--;xV(this)};
Gc.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;xV(this)};
var xXs=function(x,G){this.entry=x;this.parent=G};var Di=function(x){_.T2.call(this);_.Lz(x,"drop",this.onObjectsDropped_,!1,this);_.Lz(x,"dragenter",this.onFilesDragged_,!1,this);_.Lz(x,"dragover",this.onFilesDragged_,!1,this);_.Lz(x,"dragleave",this.onDragLeave_,!1,this);_.Lz(x,"dragend",this.onDragLeave_,!1,this)};
_.tR(Di,_.T2);var GFs=function(x,G){_.aY.call(this,"f");this.files=x;this.directories=G};
_.tR(GFs,_.aY);var DX8=function(){_.aY.call(this,"h")};
_.tR(DX8,_.aY);var KIo=function(){_.aY.call(this,"i")};
_.tR(KIo,_.aY);var z_u=function(){_.aY.call(this,"g")};
_.tR(z_u,_.aY);Di.prototype.onObjectsDropped_=function(x){var G=this;x.preventDefault();var D=x.event_.dataTransfer;if((x=D&&D.items)&&x.length>0&&x[0].webkitGetAsEntry){D=[];for(var K=[],z=0;z<x.length;z++){var y=x[z].webkitGetAsEntry();y?D.push(y):K.push(x[z])}new Gc(D,function(c,W,e){e?G.dispatchEvent(new z_u("Error occurred while reading from the file system.")):G.dispatchEvent(new GFs(c,W,K))})}else(x=D&&D.files)&&this.dispatchEvent(new GFs(Array.from(x),[]))};
Di.prototype.onFilesDragged_=function(x){x.type==="dragenter"&&this.dispatchEvent(new DX8);x.preventDefault()};
Di.prototype.onDragLeave_=function(){this.dispatchEvent(new KIo)};var ak9=function(x,G){this.JSC$9949_name_=x;this.inputElement_=G};
ak9.prototype.getName=function(){return this.JSC$9949_name_};
ak9.prototype.getInputElement=function(){return this.inputElement_};var KB=function(x,G,D){G=G===void 0?"single_file":G;D=D===void 0?[]:D;_.T2.call(this);this.overlayTarget_=x;this.parentOverlay_=x!=null?x.parentNode:_.p4("scotty-overlay-parent");this.selectorType_=G;this.acceptTypes_=D;this.overlay_=o5E(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.m(KB,_.T2);
var o5E=function(x,G,D,K){var z=document.createElement("input");z.setAttribute("type","file");z.setAttribute("name","Filedata");_.Lz(z,"change",x.onFilesSelected_,!1,x);D==="multiple_file"&&(z.multiple="true");D==="single_directory"&&(z.webkitdirectory="true");K.length>0&&z.setAttribute("accept",K.join(","));z.style.position="absolute";z.style.overflow="hidden";z.style.height="0px";z.style.width="0px";z.style.opacity="0";z.setAttribute("aria-hidden","true");z.setAttribute("tabIndex",-1);if(x.overlayTarget_!=
null)return z.style.height=G.offsetHeight+"px",z.style.width=G.offsetWidth+"px",x.parentOverlay_&&(x.parentOverlay_.style.position="relative"),_.rg(z,G),F$(z,new _.$S(G.offsetLeft,G.offsetTop)),z;x.parentOverlay_.appendChild(z);return z};
KB.prototype.click=function(){this.overlay_.click()};
KB.prototype.onFilesSelected_=function(x){a:{try{var G=(new XMLHttpRequest).upload!==void 0;break a}catch(Q){}G=!1}if(G){var D;x=Array.from((D=x.target.files)!=null?D:[]);D=[];if(this.selectorType_==="single_directory"&&(_.xp||NU||_.hR)){D=new h7("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(G=0;G<x.length;G++)for(var K=x[G],z=K.webkitRelativePath.split("/"),y=D,c=0;c<z.length;c++){var W=z[c];if(c==z.length-1){W!="."&&y.files_.push(K);break}var e=y.directoryMap_[W];e==void 0&&(W=
e=new h7(W),y.directoryMap_[W.getName()]=W,y.directories_.push(W));y=e}D=D.directories_}this.dispatchEvent(new yjJ(x,D,null))}else x=x.target.value,x.match(/^c:\\fakepath\\/i)&&(x=x.substring(12)),this.dispatchEvent(new yjJ([],[],new ak9(x,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=o5E(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var yjJ=function(x,G){_.aY.call(this,"j");this.files=x;this.directories=G};
_.m(yjJ,_.aY);var lk8=function(x){this.uploadUrl_=x};var cjq=function(){_.T2.call(this)};
_.tR(cjq,_.T2);var zc=function(x){_.aY.call(this,x)};
_.tR(zc,_.aY);var aL=function(x){_.aY.call(this,x)};
_.tR(aL,_.aY);var Tjs=function(x,G,D,K,z){_.T2.call(this);D=document.createElement("form");D.setAttribute("method",G);D.setAttribute("enctype","multipart/form-data");D.setAttribute("encoding","multipart/form-data");G=document.createElement("input");G.setAttribute("type","hidden");G.setAttribute("name","metadata");G.setAttribute("value",z);D.appendChild(G);D.appendChild(K);this.JSC$9966_form_=D;x=new _.w5(x);_.Ny(x,"upload_protocol","multipart");this.JSC$9966_url_=x.toString();this.JSC$9966_request_=new wr;this.state_=
"Ready";this.JSC$9966_errorDescription_=null;this.JSC$9966_eventHandler_=new _.Ev(this);_.WZ(this,this.JSC$9966_eventHandler_);this.JSC$9966_eventHandler_.listen(this.JSC$9966_request_,"success",this.onTransferSuccess_);this.JSC$9966_eventHandler_.listen(this.JSC$9966_request_,"error",this.onTransferError_)};
_.m(Tjs,cjq);_.a=Tjs.prototype;_.a.run=function(){this.state_="Transferring";var x=this.JSC$9966_request_,G=this.JSC$9966_form_;if(x.JSC$9384_active_)throw Error("me");var D=new _.w5(this.JSC$9966_url_||G.action);x.JSC$9384_form_=G;G=x.JSC$9384_form_;D=_.YY(D.toString());D!==void 0&&(G.action=D);i3s(x)};
_.a.getResponseCode=function(){return null};
_.a.getResponseText=function(){return this.JSC$9966_request_&&this.JSC$9966_request_.getResponseText()||null};
_.a.JSC$25868_getErrorDescription=function(){return this.JSC$9966_errorDescription_};
_.a.cancel=function(){this.JSC$9966_request_&&this.JSC$9966_request_.abort();this.state_="Cancelled";this.dispatchEvent(new zc("o"))};
_.a.pause=function(){};
_.a.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new zc("l"))};
_.a.onTransferError_=function(){this.JSC$9966_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new zc("n"))};var oL=function(){_.bv.call(this)};
_.m(oL,_.bv);oL.prototype.createXhr=function(){var x=_.bv.prototype.createXhr.call(this);x.upload&&(x.upload.onprogress=(0,_.mW)(this.onProgress_,this));return x};
oL.prototype.onProgress_=function(x){this.dispatchEvent(x)};var WIZ=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},Z1J=function(x,G){var D=x.attempt_+1;
if(x.maxAttempts_>0&&D>x.maxAttempts_)return!1;D==0?G():x.delayCallId_=QZ(function(){x.delayCallId_=null;G()},e_E(x),x);
x.attempt_=D;return!0};
WIZ.prototype.reset=function(){this.delayCallId_&&_.Df.clearTimeout(this.delayCallId_);this.attempt_=-1};
var e_E=function(x){var G=250*Math.pow(2,x.attempt_);x.maxDelayMs_>=0&&(G=Math.min(G,x.maxDelayMs_));return G};var SxL=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var yn=function(){_.T2.call(this);this.JSC$9976_request_=this.state_=null;this.JSC$9976_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$9976_bytesTransferred_=0;this.retryIterator_=new WIZ;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$9976_errorDescription_=null;this.JSC$9976_eventHandler_=new _.Ev(this);_.WZ(this,this.JSC$9976_eventHandler_);this.JSC$9976_url_=this.blob_=null;this.JSC$9976_method_=void 0;this.chunkSize_=this.JSC$9976_metadata_=
this.JSC$9976_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$9976_responseText_=this.JSC$9976_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.tR(yn,cjq);_.a=yn.prototype;_.a.run=function(){lz(this)};
_.a.getResponseCode=function(){return this.JSC$9976_responseCode_};
_.a.getResponseText=function(){return this.JSC$9976_responseText_};
_.a.JSC$25868_getErrorDescription=function(){return this.JSC$9976_errorDescription_};
_.a.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$9976_eventHandler_.removeAll();this.JSC$9976_request_&&this.JSC$9976_request_.abort();this.retryIterator_.reset();var x=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(x==="Upload"||x==="Query")x=new oL,x.JSC$7807_withCredentials_=this.JSC$9976_withCredentials_,x.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$9976_bytesTransferred_=
0;this.dispatchEvent(new zc("o"))}};
_.a.pause=function(){this.pauseRequested_=!0};
var lz=function(x){var G=x.state_;x.pauseRequested_?(x.pauseRequested_=!1,x.stateAfterUnpausing_=G,x.state_="Paused"):Z1J(x.retryIterator_,function(){switch(x.state_){case "Start":x.JSC$9976_request_=new oL;var D=_.YS.clone(x.JSC$9976_headers_);x.blob_.size!=null&&(D["Content-Length"]=x.blob_.size);D=n2D(D);D["X-Goog-Upload-Protocol"]="resumable";D["X-Goog-Upload-Command"]="start";x.JSC$9976_eventHandler_.removeAll();x.JSC$9976_eventHandler_.listen(x.JSC$9976_request_,"complete",x.onStartComplete_);
x.JSC$9976_request_.JSC$7807_withCredentials_=x.JSC$9976_withCredentials_;x.JSC$9976_request_.send(x.JSC$9976_url_,x.JSC$9976_method_,x.JSC$9976_metadata_,D);x.lastCommandResponseCode_=null;x.dispatchEvent(new aL("q"));break;case "Upload":D=x.transferHandle_.uploadUrl_;var K=x.blob_.size;if(mhE()){var z=x.chunkSize_;var y=x.offset_+z>=K;K=Yos(x.blob_,x.offset_,y?K:x.offset_+z)}else x.offset_=0,K=x.blob_,y=!0;x.JSC$9976_request_=new oL;x.JSC$9976_request_.JSC$7807_withCredentials_=x.JSC$9976_withCredentials_;
x.JSC$9976_eventHandler_.removeAll();x.JSC$9976_eventHandler_.listen(x.JSC$9976_request_,"progress",x.onUploadProgress_);z=(0,_.mW)(x.JSC$9978_onUploadComplete_,x,x.offset_+K.size,y);x.JSC$9976_eventHandler_.listen(x.JSC$9976_request_,"complete",z);x.lastCommandResponseCode_=null;x.dispatchEvent(new aL("q"));y=Object.assign({},x.JSC$9976_headers_||{},{"X-Goog-Upload-Command":"upload"+(y?", finalize":""),"X-Goog-Upload-Offset":x.offset_});x.JSC$9976_request_.send(D,"POST",K,y);break;case "Query":x.JSC$9976_request_=
new oL;x.JSC$9976_eventHandler_.removeAll();x.JSC$9976_eventHandler_.listen(x.JSC$9976_request_,"complete",x.onQueryComplete_);D=Object.assign({},x.JSC$9976_headers_||{},{"X-Goog-Upload-Command":"query"});x.JSC$9976_request_.send(x.transferHandle_.uploadUrl_,"POST","",D);x.lastCommandResponseCode_=null;x.dispatchEvent(new aL("q"));break;default:throw Error("bf");}})||co(x,"Transfer encountered too many consecutive failures.")},co=function(x,G){x.state_="Error";
x.JSC$9976_errorDescription_=G;x.dispatchEvent(new zc("n"))};
yn.prototype.onStartComplete_=function(x){var G=x.target;this.lastCommandResponseCode_=G.getStatus();this.dispatchEvent(new aL("r"));if(M8E(G))QyZ(this,G);else if(pbZ(G)){x=tE(x.target.getAllResponseHeaders());for(var D in x)_.zd(D.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new zc("m"));D=sf(x,"X-Goog-Upload-URL");x=(x=sf(x,"X-Goog-Upload-Chunk-Granularity"))?parseInt(x,10):1;D===void 0||isNaN(x)||x<=0?co(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
x)*x,this.transferHandle_=new lk8(D),this.dispatchEvent(new zc("p")),this.state_="Upload",this.retryIterator_.reset(),lz(this))}else lz(this)};
yn.prototype.onUploadProgress_=function(x){this.JSC$9976_bytesTransferred_=this.offset_+x.loaded;this.dispatchEvent(new zc("k"))};
yn.prototype.JSC$9978_onUploadComplete_=function(x,G,D){var K=this,z,y;return _.T(function(c){switch(c.nextAddress){case 1:z=D.target;K.lastCommandResponseCode_=z.getStatus();K.dispatchEvent(new aL("r"));if(V8h(z)||z.getStatus()==404)return K.JSC$9976_bytesTransferred_=x,QyZ(K,z),c.return();if(pbZ(z)){c.jumpTo(2);break}if(!(y=K.detectCorruptedBlobEnabled_)){c.jumpTo(3);break}return _.Z(c,b17(K),4);case 4:y=c.yieldResult;case 3:if(y)return co(K,"Blob has been modified or corrupted."),c.return();K.requireUploadRequestModification_=
z.getStatus()==400;K.state_="Query";lz(K);return c.return();case 2:if(G)return co(K,"Got a non-final success response after issuing a finalize command."),c.return();K.JSC$9976_bytesTransferred_=x;K.offset_=x;K.retryIterator_.reset();lz(K);return c.return()}})};
yn.prototype.onQueryComplete_=function(x){var G=x.target;this.lastCommandResponseCode_=G.getStatus();this.dispatchEvent(new aL("r"));M8E(G)?(G.getStatus()===200&&(this.JSC$9976_bytesTransferred_=this.blob_.size),QyZ(this,G)):pbZ(G)?(x=tE(x.target.getAllResponseHeaders()),x=parseInt(sf(x,"X-Goog-Upload-Size-Received"),10),isNaN(x)?co(this,"Server did not respond with current offset."):x<this.offset_?co(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
x+"."):this.requireUploadRequestModification_&&this.offset_===x?co(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<x&&this.retryIterator_.reset(),this.offset_=this.JSC$9976_bytesTransferred_=x,this.state_="Upload",lz(this))):lz(this)};
var QyZ=function(x,G){x.JSC$9976_responseCode_=G.getStatus();var D=tE(G.getAllResponseHeaders());iXE(D);x.JSC$9976_responseText_=G.getResponseText();x.state_="Response received";x.dispatchEvent(new zc("l"))},pbZ=function(x){var G=x.getStatus();
x=tE(x.getAllResponseHeaders());x=sf(x,"X-Goog-Upload-Status");return G===200&&x==="active"},V8h=function(x){x=tE(x.getAllResponseHeaders());
return sf(x,"X-Goog-Upload-Status")==="final"},M8E=function(x){if(V8h(x))return!0;
x=x.getStatus();return x>=400&&x<500},b17=function(x){var G;
return _.T(function(D){if(D.nextAddress==1){if(!x.blob_||x.originalBlobSize_<=0)return D.return(!1);if(x.blob_.size!==x.originalBlobSize_)return D.return(!0);_.Kl(D,2);if(G=Yos(x.blob_,0,1)){var K=new $y,z=Glu(K);K.reader_.readAsBinaryString(G);D=_.Z(D,z,4)}else D=D.return(!0);return D}if(D.nextAddress!=2)return D.return(x.blob_.size!==x.originalBlobSize_);_.lX(D);return D.return(!0)})};var LIs=function(x,G,D,K,z,y){_.T2.call(this);this.payload_=K;this.JSC$9979_url_=x;this.JSC$9979_method_=G;this.JSC$9979_headers_=D;this.JSC$9979_metadata_=z;this.encoding_=y||"binary";x=new _.ej;this.boundary_="uploader-"+dM()+"-"+x.JSC$9233_toIsoString();this.JSC$9979_responseText_=this.JSC$9979_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$9979_errorDescription_=null;this.JSC$9979_eventHandler_=new _.Ev(this);_.WZ(this,this.JSC$9979_eventHandler_)};
_.m(LIs,cjq);_.a=LIs.prototype;
_.a.run=function(){var x=_.YS.clone(this.JSC$9979_headers_);this.payload_.length!=null&&(x["Content-Length"]=this.payload_.length);x=n2D(x);x["X-Goog-Upload-Protocol"]="multipart";x["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new oL;this.JSC$9979_eventHandler_.removeAll();this.JSC$9979_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$9979_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$9979_url_,this.JSC$9979_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$9979_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",x)};
_.a.getResponseCode=function(){return this.JSC$9979_responseCode_};
_.a.getResponseText=function(){return this.JSC$9979_responseText_};
_.a.JSC$25868_getErrorDescription=function(){return this.JSC$9979_errorDescription_};
_.a.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$9979_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new zc("o")))};
_.a.pause=function(){};
_.a.onTransferProgress_=function(){this.dispatchEvent(new zc("k"))};
_.a.onTransferComplete_=function(x){var G=x.target.getStatus();G===void 0||G===-1?(this.JSC$9979_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new zc("n"))):(this.JSC$9979_responseCode_=G,x=x.target,G=tE(x.getAllResponseHeaders()),iXE(G),this.JSC$9979_responseText_=x.getResponseText(),this.state_="Complete",this.dispatchEvent(new zc("l")))};_.BjZ=function(x,G,D,K){K=K===void 0?!1:K;if(D instanceof ak9)return new Tjs(x,"POST",G,D.getInputElement(),"");if(typeof D==="string"||D instanceof String)return new LIs(x,"POST",G,D,"");var z=new yn(void 0);z.JSC$9976_url_=x;z.JSC$9976_method_="POST";z.JSC$9976_headers_=G;z.blob_=D;z.originalBlobSize_=D.size;z.JSC$9976_metadata_="";K&&(z.JSC$9976_withCredentials_=K);z.state_="Start";return z};var Tc=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Tc,_.SX);_.a=Tc.prototype;_.a.getEnableSsEngine=function(){return _.br(this,2)};
_.a.getEnableAwr=function(){return _.br(this,3)};
_.a.getAlohaAutoGaRollout=function(){return _.br(this,5)};
_.a.getEnableConfigurator=function(){return _.br(this,6)};
_.a.getEnableMweb=function(){return _.br(this,7)};
var sy9=function(){var x=rjJ();return _.mb(x,7,!0)};
Tc.prototype.getEnableCtlConsentCheckbox=function(){return _.br(this,8)};
Tc.prototype.getEnableIframe=function(){return _.br(this,9)};
var rjJ=function(){var x=new Tc;x=_.mb(x,5,!0);x=_.mb(x,2,!0);x=_.mb(x,4,!1);x=_.mb(x,8,!0);return _.mb(x,9,!0)};
Tc.prototype.getEnableScreenshotNudge=function(){return _.br(this,10)};
var YH0=function(){var x=sy9();return _.mb(x,10,!0)};
Tc.prototype.getEnableWebStartupConfigEndpoint=function(){return _.br(this,11)};
Tc.prototype.getEnableJunkNudge=function(){return _.br(this,12)};
var D_D=function(){var x=YH0();return _.mb(x,12,!0)};
_.a=Tc.prototype;_.a.getEnableConfiguratorLocale=function(){return _.br(this,13)};
_.a.getEnableTinyNoPointer=function(){return _.br(this,14)};
_.a.getEnableSupportSessionLogging=function(){return _.br(this,15)};
_.a.getEnableFileUploadForScreenshot=function(){return _.br(this,16)};
_.a.getEnableDirectDeflectionForSingleCategory=function(){return _.br(this,17)};
_.a.getEnableImageSanitization=function(){return _.br(this,18)};
_.a.getEnableAlohaBinarySplit=function(){return _.br(this,19)};
_.a.getEnableDbFeedbackIntents=function(){return _.br(this,20)};
_.a.getEnableMarkMandatoryFieldsWithRequired=function(){return _.br(this,21)};
_.a.getEnableFeedbackCategoryCustomUi=function(){return _.br(this,22)};
_.a.getEnableRealtimeCtl=function(){return _.br(this,23)};var G2f=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(G2f,_.SX);var g23=[/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 d2h="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 w_P=_.gv(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),qxh=_.gv(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var v2V,fFL;var mX7,H1s;
mX7=function(x,G,D){x.timeOfStartCall=(new Date).getTime();var K=D||_.Df,z=K.document,y=x.nonce||_.O2(K.document);y&&!x.nonce&&(x.nonce=y);if(x.flow=="help"){var c=_.nT("document.location.href",K);!x.helpCenterContext&&c&&(x.helpCenterContext=c.substring(0,1200));c=!0;if(G&&JSON&&JSON.stringify){var W=JSON.stringify(G);(c=W.length<=1200)&&(x.psdJson=W)}c||(G={invalidPsd:!0})}G=[x,G,D];K.GOOGLE_FEEDBACK_START_ARGUMENTS=G;D=x.feedbackServerUri||"//www.google.com/tools/feedback";if(c=K.GOOGLE_FEEDBACK_START)c.apply(K,G);
else{K=D+"/load.js?";for(var e in x)G=x[e],G==null||_.G7(G)||(K+=encodeURIComponent(e)+"="+encodeURIComponent(G)+"&");x=ei(z).createElement("SCRIPT");y&&x.setAttribute("nonce",y);_.Sr(x,_.oF(K));z.body.appendChild(x)}};
H1s=function(x,G,D,K){var z,y;_.T(function(c){z=D||_.Df;var W=x.serverEnvironment==="DEV",e=D||_.Df;e=x.nonce||_.O2(e.document);W={integrationKeys:{productId:x.productId,feedbackBucket:x.bucket,triggerId:x.triggerId},callbacks:{onClose:x.callback,onLoad:x.onLoadCallback},formContent:{locale:x.locale,disableScreenshot:x.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:x.abuseLink,additionalDataConsent:x.additionalDataConsent},initializationData:{isLocalServer:W,nonce:e,useNightlyRelease:W,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:x.feedbackServerUri,colorScheme:x.colorScheme},extraData:{productVersion:x.productVersion,authUser:x.authuser,configuratorId:x.configuratorId,customZIndex:x.customZIndex,tinyNoPointer:x.tinyNoPointer,
allowNonLoggedInFeedback:x.allowNonLoggedInFeedback,enableAnonymousFeedback:x.enableAnonymousFeedback}};G&&(e=new Map(Object.entries(G)),W.extraData.productSpecificData=e);y=W;return _.Z(c,E2f(y,K,z),0)})};
_.$Xo=function(x,G,D){try{if(x.flow==="help"){var K=x.helpCenterPath.replace(/^\//,"");_.jr(D||window,"https://support.google.com/"+K)}else x.flow==="submit"?mX7(x,G,D):K5f(x.productId,x.feedbackServerUri).then(function(z){z=_.hv(z,Tc,1);var y=!Jdd||(z==null?void 0:z.getEnableMweb()),c=!x.tinyNoPointer||(z==null?void 0:z.getEnableTinyNoPointer());!z||z.getAlohaAutoGaRollout()&&y&&c?H1s(x,G,D,z):mX7(x,G,D)},function(z){z&&z.name!=="DuplicateFormError"&&mX7(x,G,D)})}catch(z){H1s(x,G,D,null)}};
_.Jv("userfeedback.api.startFeedback",_.$Xo);var zyf=/https?:\/\/\S+\.\S+/,azV=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],ohd=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var w3L=function(x){var G=x.split(""),D=[-263237435,15,G,function(K,z,y){var c=z.length;y.forEach(function(W,e,Q){this.push(Q[e]=z[(z.indexOf(W)-z.indexOf(this[e])+e+c--)%z.length])},K.split(""))},
function(K,z){K=(K%z.length+z.length)%z.length;z.splice(-K).reverse().forEach(function(y){z.unshift(y)})},
"response",function(){for(var K=64,z=[];++K-z.length-32;){switch(K){case 58:K-=14;case 91:case 92:case 93:continue;case 123:K=47;case 94:case 95:case 96:continue;case 46:K=95}z.push(String.fromCharCode(K))}return z},
null,12,1540023973,65941107,null,G,function(K,z){for(K=(K%z.length+z.length)%z.length;K--;)z.unshift(z.pop())},
695603893,function(K){for(var z=K.length;z;)K.push(K.splice(--z,1)[0])},
"'[;'[(",function(K,z){K.push(z)},
null,function(K,z,y,c,W){return z(y,c,W)},
"continuation",G,function(K,z){if(K.length!=0){z=(z%K.length+K.length)%K.length;var y=K[0];K[0]=K[z];K[z]=y}},
function(){for(var K=64,z=[];++K-z.length-32;){switch(K){case 91:K=44;continue;case 123:K=65;break;case 65:K-=18;continue;case 58:K=96;continue;case 46:K=95}z.push(String.fromCharCode(K))}return z},
'"),/]];'];D[7]=D;D[11]=D;D[18]=D;try{(((0,D[15])(D[21]),D[22])(D[11],D[9]),D[22])(D[new Date("1970-01-01T04:30:12.000+04:30")/1E3],D[1]),((0,D[22])(D[11],D[23]),D[4])(D[10],D[18]),(0,D[20])(D[21],D[14])<<(0,D[17])(D[18],D[1]),(0,D[4])(D[8],D[21]),(0,D[19])((0,D[19])((0,D[17])(D[7],D[9]),D[3],D[20],(0,D[6])(),D[2]),D[3],D[5],(0,D[15])(),D[2])}catch(K){return"aTlOUOubTO4AP____8P_"+x}return G.join("")};_.FIo=new _.J("runAttestationCommand");var CQs=new _.J("verifyCommand");_.Wo=new _.J("accessibilityContext");var Ik8=new _.J("accessibilityData");var jy7=new _.J("profileCardCommand");var lT3=new _.J("signInEndpoint");var yB3=new _.J("signOutEndpoint");var Xbi;_.O1k=new _.J("accountItemSectionRenderer");Xbi=new _.J("accountItemRenderer");_.AjZ=new _.J("saveCommandToSessionStorageAction");var UXs=new _.J("crossAccountChannelTransferEndpoint");var zjf=new _.J("getAccountMenuEndpoint");_.apO=new _.J("getAccountSwitcherEndpoint");var Ki3=new _.J("getAccountsListEndpoint");var R_Z=new _.J("getAccountsListInnertubeEndpoint");_.e1=new _.J("addToToastAction");var SH0=new _.J("hideEnclosingAction");_.Zi=new _.J("replaceEnclosingAction");var n5J=new _.J("buttonRefreshAction");var i1k=new _.J("adsControlFlowOpportunityReceivedCommand");var g5i=new _.J("openAdAllowlistInstructionCommand");var uDq=new _.J("videoMastheadAdPrimaryVideoRenderer");var dXZ=new _.J("displayAdRenderer");var iFf=new _.J("instreamVideoAdRenderer");_.wbh=new _.J("inFeedAdLayoutRenderer");var qHo=new _.J("sequenceItemInPlayerAdLayoutRenderer");_.Nju=new _.J("adSlotRenderer");var v50=new _.J("adAvatarViewModel");var Jj8=new _.J("adBadgeViewModel");var fkE=new _.J("adButtonViewModel");var M6=new _.J("adImageViewModel");var Q1D=new _.J("reelsAdCardButtonedViewModel");var t8i=new _.J("reelsPlayerOverlayLayoutViewModel");var kFE=new _.J("showSchedulingPanelCommand");var PQ9=new _.J("backstageCommentsRenderer");var E5Z=new _.J("backstageImageRenderer");var h_q=new _.J("backstagePostRenderer");var xtZ=new _.J("postRenderer");var G0J=new _.J("sharedPostRenderer");var Dts=new _.J("createBackstagePostEndpoint");var KJq=new _.J("getPostVideoPreviewEndpoint");var ztq=new _.J("updateBackstagePostEndpoint");var aUZ=new _.J("filterChipTransformCommand");var o1J=new _.J("insertRichSectionCommand");var mTV=new _.J("talkToRecsDeselectCommand");var yRo=new _.J("talkToRecsNextCommand");var YK3=new _.J("talkToRecsSelectCommand");var lU9=new _.J("talkToRecsUpdateTextCommand");_.TU=new _.J("browseEndpoint");_.cR7=new _.J("confirmDialogEndpoint");var Tvq=new _.J("expandOnHoverCardRenderer");var WJh=new _.J("lumiereShelfDetailsRenderer");var et8=new _.J("revealBusinessEmailCommand");var Z6J=new _.J("validateChannelHandleCommand");var MJ0=new _.J("channelCreationFormEndpoint");var QpZ=new _.J("aboutChannelViewModel");var p10=new _.J("channelThumbnailWithLinkRenderer");var VJ0=new _.J("channelCreationServiceEndpoint");var b6s=new _.J("updateChannelPageSettingsEndpoint");var Qn=function(x){this.delegate=x},pB=function(){Qn.apply(this,arguments)};
_.m(pB,Qn);_.Nq.Object.defineProperties(pB.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(x){this.delegate.entityMetadata=x}}});var LJZ=function(){pB.apply(this,arguments)};
_.m(LJZ,pB);LJZ.prototype.getAssociations=function(){return[]};var rfO=new _.J("webThumbnailDetailsExtensionData");var GGO=new _.J("commandContext");var Bvu=new _.J("addVideoLinkAction");var rRk=new _.J("createPollAction");var spZ=new _.J("hideIdentityChipAction");var Y$s=new _.J("openUpdateCommentDialogAction");var Vn=new _.J("updateBackstagePollAction");var mtq=new _.J("updateCommentVoteAction");var H6u=new _.J("commentThreadRenderer");var $tZ=function(){pB.apply(this,arguments)};
_.m($tZ,pB);$tZ.prototype.getAssociations=function(){return[]};_.FJE=new _.J("commentDialogRenderer");var Cho=new _.J("updateCommentsSettingsEndpoint");var IUE=new _.J("commentViewModel");var jpk=new _.J("triStateButtonViewModel");var O6q=new _.J("voiceReplyContainerViewModel");_.oI=new _.J("commandExecutorCommand");var FB=new _.J("emoji");var X10=new _.J("updateCreatorChannelInnertubeCommand");_.ARZ=new _.J("appendContinuationItemsAction");_.UtZ=new _.J("changeEngagementPanelVisibilityAction");_.Il=new _.J("continuationCommand");var Rti=new _.J("listMutationCommand");_.bz=new _.J("openPopupAction");var S$i=new _.J("persistSubscriptionsDisplayPreferencesCommand");var Nvo;_.n1s=new _.J("playlistRemoveVideosAction");_.i6i=new _.J("updatePlaylistAction");_.g1o=new _.J("addToPlaylistCommand");_.umu=new _.J("endPlaylistCommand");_.dto=new _.J("recoverPlaylistCommand");_.w1h=new _.J("refreshPlaylistCommand");_.q$8=new _.J("refreshFormCommand");Nvo=new _.J("openOnePickAddVideoModalCommand");_.WiL=new _.J("reloadContinuationItemsCommand");_.v1h=new _.J("scrollToEngagementPanelCommand");var JRo=new _.J("selectCountryCommand");var fU7=new _.J("showReloadUiCommand");var tJh=new _.J("undoFeedbackAction");var k0J=new _.J("updateButtonAction");var PhJ=new _.J("updateSubscribeButtonAction");var E1J=new _.J("updateToggleAction");var htk=new _.J("webNativeShareCommand");_.fC=new _.J("webCommandMetadata");_.LB=new _.J("webHandleServiceEndpointExtension");var ZqE=new _.J("webNavigationEndpointData");var xVk=new _.J("copyLinkCommand");var GKu=new _.J("playlistVotingRefreshPopupCommand");var DV0=new _.J("selectChipCommand");var KHh=new _.J("setCookieCommand");var z00=new _.J("setLocalStorageCommand");var ah8=new _.J("setPrefStorageEntryCommand");var ce7;_.opZ=new _.J("settingsUpdateCheckboxCommand");_.yek=new _.J("settingsUpdateTextCommand");_.lh9=new _.J("settingsUpdateOptionsCommand");ce7=new _.J("settingsUpdateSwitchCommand");_.TPZ=new _.J("settingsUpdateConnectedAppRendererCommand");var WHh=new _.J("updateTextInputFormFieldRendererCommand");var e0s=new _.J("updateToggleButtonStateCommand");var Zrh=new _.J("updateUrlParamCommand");var MIq=new _.J("webSubmitFormCommand");var QXh=new _.J("channelSwitcherPageRenderer"),pVZ=new _.J("updateChannelSwitcherPageAction");_.hj=new _.J("continuationItemRenderer");_.Bo=new _.J("richItemRenderer");var VIJ=new _.J("richSectionRenderer");_.brZ=new _.J("richShelfRenderer");_.LH9=new _.J("metadataBadgeRenderer");_.BPh=new _.J("multiPageMenuNotificationSectionRenderer");_.reh=new _.J("playlistLoopButtonStateRenderer");var sXE=new _.J("claimLegacyYoutubeChannelEndpoint");var Ykh=new _.J("getNotificationMenuEndpoint");var mVh=new _.J("getSearchInVideoCommand");_.HrJ=new _.J("getTranscriptEndpoint");_.cg=new _.J("signalServiceEndpoint");var $VZ=new _.J("verifyAgeEndpoint");var vEh=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(vEh,_.SX);vEh.prototype.getPath=function(){return _.rP(this,1)};
vEh.prototype.getValue=function(){return _.rP(this,2)};var FHE=[0,_.nr,-1];var Cr7=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Cr7,_.SX);var NYC=_.Pd(Cr7,[0,_.ir,FHE]);var Ihh=new _.J("dismissalEndpoint");var jXs=new _.J("elementsCommand");_.IP=new _.J("innertubeCommand");var Orq=new _.J("multipleInlinePlaybackCommand");var P$V=new _.J("loggingDirectives");var XVo=new _.J("acknowledgeChannelTouStrikeCommand");var Aeu=function(){pB.apply(this,arguments)};
_.m(Aeu,pB);Aeu.prototype.getAssociations=function(){return[]};var UVs=function(){pB.apply(this,arguments)};
_.m(UVs,pB);UVs.prototype.getAssociations=function(){return[]};var i_=new _.J("entityBatchUpdate");_.R00=new _.J("entityUpdateCommand");var Sku=function(){pB.apply(this,arguments)};
_.m(Sku,pB);Sku.prototype.getAssociations=function(){var x=[];this.delegate.alternateChannel&&x.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&x.push.apply(x,_.B5(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&x.push(this.delegate.oneofChannelEntity);return[].concat(_.B5(new Set(x)))};var np8=function(){pB.apply(this,arguments)};
_.m(np8,pB);np8.prototype.getAssociations=function(){var x=[];this.delegate.entryCollection&&x.push(this.delegate.entryCollection);return[].concat(_.B5(new Set(x)))};
var irZ=function(){pB.apply(this,arguments)};
_.m(irZ,pB);irZ.prototype.getAssociations=function(){var x=[];this.delegate.parentPlaylist&&x.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var G=_.l(this.delegate.entries),D=G.next();!D.done;D=G.next())x.push.apply(x,_.B5((new gpE(D.value)).getAssociations()));return[].concat(_.B5(new Set(x)))};
var gpE=function(){Qn.apply(this,arguments)};
_.m(gpE,Qn);gpE.prototype.getAssociations=function(){var x=[];this.delegate.video&&x.push(this.delegate.video);return[].concat(_.B5(new Set(x)))};var uV9=function(){pB.apply(this,arguments)};
_.m(uV9,pB);uV9.prototype.getAssociations=function(){var x=[];this.delegate.descriptionEntity&&x.push(this.delegate.descriptionEntity);this.delegate.creators&&x.push.apply(x,_.B5(this.delegate.creators));this.delegate.theBiggestFan&&x.push(this.delegate.theBiggestFan);return[].concat(_.B5(new Set(x)))};
var dVh=function(){pB.apply(this,arguments)};
_.m(dVh,pB);dVh.prototype.getAssociations=function(){return[]};var wVs=new _.J("fantasyRosterViewModel");var qk9=new _.J("addFollowUpSurveyCommand");var NP8=new _.J("getSurveyCommand");var vpJ=new _.J("ratingSurveyOptionRenderer");_.H1=new _.J("feedbackEndpoint");var Jeo=new _.J("reportHistoryTableCellRenderer"),fhs=new _.J("reportHistoryTableTextCellRenderer"),tIu=new _.J("reportHistoryTableReasonCellRenderer");_.kKq=new _.J("flagEndpoint");var Prk=new _.J("getFlowCommand");var EpZ=new _.J("submitFormWithValidationFlowCommand");var h0s=function(){pB.apply(this,arguments)};
_.m(h0s,pB);h0s.prototype.getAssociations=function(){return[]};var x2E=new _.J("flowFormState");var GE8=new _.J("gameCardRenderer");var D2s=new _.J("accountLinkingStateChangedCommand");var Kq9=function(){pB.apply(this,arguments)};
_.m(Kq9,pB);Kq9.prototype.getAssociations=function(){return[]};var zso=new _.J("changeMiniAppPlayStateCommand");var aF7=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(aF7,_.SX);var re=[1,2,3];var o2J=[0,re,rYn,_.saQ,MaD];var yZi=_.Pd(aF7,o2J),lFJ=_.E_(o2J);var cZh=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(cZh,_.SX);var Tgk=[0,_.Ae,_.nr];var Wqq=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Wqq,_.SX);var esJ=[0,_.nr,_.Ae,-1];var ZXi=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(ZXi,_.SX);var Mwi=function(x,G){return _.xW(x,3,G)};var QmZ=_.E_([0,1,Tgk,_.ur,esJ]);var p_9=new _.J("miniAppScoreChallengeViewModel");var VwZ=new _.J("miniGameCardViewModel");var bXu=new _.J("teaserCardViewModel");var Lqs=function(){pB.apply(this,arguments)};
_.m(Lqs,pB);Lqs.prototype.getAssociations=function(){return[]};_.Bg9=new _.J("feedbackItemRenderer");var rZi=function(){pB.apply(this,arguments)};
_.m(rZi,pB);rZi.prototype.getAssociations=function(){return[]};_.smq=new _.J("playerInterstitialRenderer");var Yx9=new _.J("getKidsBlocklistPickerCommand");_.m20=new _.J("updateKidsBlacklistEndpoint");_.Ry=new _.J("likeEndpoint");var HX8,$2k,FqZ;HX8=new _.J("addChatItemAction");$2k=new _.J("removeChatItemAction");FqZ=new _.J("markChatItemAsDeletedAction");_.CdJ=new _.J("setLiveChatCollapsedStateAction");var IFE=function(){pB.apply(this,arguments)};
_.m(IFE,pB);IFE.prototype.getAssociations=function(){return[]};var jmi=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(jmi,_.SX);var OX8=_.Pd(jmi,[0,1,_.Ae]);var X_h=new _.J("liveChatEndpoint");var AZs=new _.J("liveChatItemContextMenuEndpoint");var U20=new _.J("liveChatReplayEndpoint");_.Rsq=new _.J("emojiPickerRenderer");var Sx0=new _.J("liveChatAuthorBadgeViewModel");var n2E=new _.J("deleteLiveChatMessageCommand");var iXh=new _.J("liveChatActionEndpoint");var g2J=new _.J("createLiveChatPollEndpoint");var u$9=new _.J("manageLiveChatUserEndpoint");var d2i=new _.J("moderateLiveChatEndpoint");_.w_Z=new _.J("sendLiveChatMessageEndpoint");var qxi=new _.J("sendLiveChatVoteEndpoint");var NgE=new _.J("clearLocationCommand");var v2s=new _.J("resolveLocationCommand");var JZ9=new _.J("interactionLoggingCommandMetadata");var HPd=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(HPd,_.SX);var mNn=function(x,G){return _.aK(x,1,G)};var fF0=[0,_.SI];var YGC=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(YGC,_.SX);var szE=function(x,G){return Mi(x,1,HPd,G)};YGC.prototype.JSC$10071_serializeBinary=G4E([0,_.ir,fF0]);var F5Q={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 twZ={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"},
kEk={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 nCD={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK"};_.nXV=new _.J("logFlowLoggingEventCommand");_.ZJ=new _.J("loggingContext");var Pds=new _.J("captionLanguageSelectActionCommand");var E2Z=new _.J("showCaptionLanguageSelectActionCommand");var hsE=new _.J("dismissDialogEndpoint");var x_s=new _.J("hideItemSectionVideosByIdCommand");var G2o=new _.J("showMiniplayerCommand");var D_E=function(){pB.apply(this,arguments)};
_.m(D_E,pB);D_E.prototype.getAssociations=function(){return[]};var K5Z=function(){pB.apply(this,arguments)};
_.m(K5Z,pB);K5Z.prototype.getAssociations=function(){return[]};var zyo=function(){pB.apply(this,arguments)};
_.m(zyo,pB);zyo.prototype.getAssociations=function(){return[]};var azs=function(){pB.apply(this,arguments)};
_.m(azs,pB);azs.prototype.getAssociations=function(){var x=[];this.delegate.downloadsList&&x.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&x.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&x.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&x.push(this.delegate.refresh);return[].concat(_.B5(new Set(x)))};var oh7=function(){pB.apply(this,arguments)};
_.m(oh7,pB);oh7.prototype.getAssociations=function(){var x=[];this.delegate.refresh&&x.push(this.delegate.refresh);if(this.delegate.downloads)for(var G=_.l(this.delegate.downloads),D=G.next();!D.done;D=G.next())x.push.apply(x,_.B5((new y39(D.value)).getAssociations()));return[].concat(_.B5(new Set(x)))};
var y39=function(){Qn.apply(this,arguments)};
_.m(y39,Qn);y39.prototype.getAssociations=function(){var x=[];this.delegate.video&&x.push(this.delegate.video);this.delegate.playlist&&x.push(this.delegate.playlist);this.delegate.videoItem&&x.push(this.delegate.videoItem);this.delegate.playlistItem&&x.push(this.delegate.playlistItem);return[].concat(_.B5(new Set(x)))};var lz7=function(){pB.apply(this,arguments)};
_.m(lz7,pB);lz7.prototype.getAssociations=function(){var x=[];this.delegate.localImageEntities&&x.push.apply(x,_.B5(this.delegate.localImageEntities));return[].concat(_.B5(new Set(x)))};var c3i=function(){pB.apply(this,arguments)};
_.m(c3i,pB);c3i.prototype.getAssociations=function(){var x=[];this.delegate.playbackData&&x.push(this.delegate.playbackData);this.delegate.localImageEntities&&x.push.apply(x,_.B5(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&x.push(this.delegate.videoDownloadContextEntity);return[].concat(_.B5(new Set(x)))};var Ti8=function(){pB.apply(this,arguments)};
_.m(Ti8,pB);Ti8.prototype.getAssociations=function(){return[]};var W5o=function(){pB.apply(this,arguments)};
_.m(W5o,pB);W5o.prototype.getAssociations=function(){var x=[];this.delegate.fakeChildren&&x.push.apply(x,_.B5(this.delegate.fakeChildren));return[].concat(_.B5(new Set(x)))};var eyJ=function(){pB.apply(this,arguments)};
_.m(eyJ,pB);eyJ.prototype.getAssociations=function(){var x=[];this.delegate.video&&x.push(this.delegate.video);this.delegate.playbackData&&x.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&x.push(this.delegate.offlineVideoPolicy);return[].concat(_.B5(new Set(x)))};var Zw7=function(){pB.apply(this,arguments)};
_.m(Zw7,pB);Zw7.prototype.getAssociations=function(){return[]};var MHs=function(){pB.apply(this,arguments)};
_.m(MHs,pB);MHs.prototype.getAssociations=function(){var x=[];this.delegate.channelOwner&&x.push(this.delegate.channelOwner);this.delegate.videos&&x.push.apply(x,_.B5(this.delegate.videos));this.delegate.collaboratorChannels&&x.push.apply(x,_.B5(this.delegate.collaboratorChannels));this.delegate.downloadState&&x.push(this.delegate.downloadState);this.delegate.refresh&&x.push(this.delegate.refresh);return[].concat(_.B5(new Set(x)))};var QYZ=function(){pB.apply(this,arguments)};
_.m(QYZ,pB);QYZ.prototype.getAssociations=function(){var x=[];this.delegate.video&&x.push(this.delegate.video);this.delegate.channelContributor&&x.push(this.delegate.channelContributor);return[].concat(_.B5(new Set(x)))};var pAu=function(){Qn.apply(this,arguments)};
_.m(pAu,Qn);pAu.prototype.getAssociations=function(){var x=[];this.delegate.recommendedVideoMetadata&&x.push.apply(x,_.B5((new VHq(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.B5(new Set(x)))};
var VHq=function(){Qn.apply(this,arguments)};
_.m(VHq,Qn);VHq.prototype.getAssociations=function(){var x=[];this.delegate.localImageEntities&&x.push.apply(x,_.B5(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&x.push(this.delegate.videoDownloadContextEntity);return[].concat(_.B5(new Set(x)))};var bws=function(){Qn.apply(this,arguments)};
_.m(bws,Qn);bws.prototype.getAssociations=function(){var x=[];this.delegate.playbackPosition&&x.push(this.delegate.playbackPosition);return[].concat(_.B5(new Set(x)))};var L5h=function(){pB.apply(this,arguments)};
_.m(L5h,pB);L5h.prototype.getAssociations=function(){var x=[];this.delegate.owner&&x.push(this.delegate.owner);this.delegate.downloadState&&x.push(this.delegate.downloadState);this.delegate.userState&&x.push.apply(x,_.B5((new bws(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&x.push.apply(x,_.B5((new pAu(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.B5(new Set(x)))};var Bi9=function(){pB.apply(this,arguments)};
_.m(Bi9,pB);Bi9.prototype.getAssociations=function(){var x=[];this.delegate.userChannelDetails&&x.push(this.delegate.userChannelDetails);return[].concat(_.B5(new Set(x)))};var r3s=function(){pB.apply(this,arguments)};
_.m(r3s,pB);r3s.prototype.getAssociations=function(){var x=[];this.delegate.channelOwner&&x.push(this.delegate.channelOwner);this.delegate.playbackPosition&&x.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&x.push.apply(x,_.B5(this.delegate.localImageEntities));this.delegate.downloadStatus&&x.push(this.delegate.downloadStatus);return[].concat(_.B5(new Set(x)))};var tVP=new _.J("downloadsPageSmartDownloadsOptInBannerParams");var sYZ=function(){pB.apply(this,arguments)};
_.m(sYZ,pB);sYZ.prototype.getAssociations=function(){return[]};var YRE=function(){pB.apply(this,arguments)};
_.m(YRE,pB);YRE.prototype.getAssociations=function(){return[]};var m_k=function(){pB.apply(this,arguments)};
_.m(m_k,pB);m_k.prototype.getAssociations=function(){return[]};var Hw7=function(){pB.apply(this,arguments)};
_.m(Hw7,pB);Hw7.prototype.getAssociations=function(){return[]};var $_Z=function(){pB.apply(this,arguments)};
_.m($_Z,pB);$_Z.prototype.getAssociations=function(){return[]};var F5k=function(){pB.apply(this,arguments)};
_.m(F5k,pB);F5k.prototype.getAssociations=function(){return[]};var Cvq=function(){pB.apply(this,arguments)};
_.m(Cvq,pB);Cvq.prototype.getAssociations=function(){return[]};var Iz7=function(){pB.apply(this,arguments)};
_.m(Iz7,pB);Iz7.prototype.getAssociations=function(){return[]};var jYo=function(){pB.apply(this,arguments)};
_.m(jYo,pB);jYo.prototype.getAssociations=function(){return[]};_.mY=new _.J("dislikeButtonViewModel");_.YL=new _.J("likeButtonViewModel");var Ow9=new _.J("videoSummaryContentViewModel");var XAZ=new _.J("videoSummaryParagraphViewModel");var A3J=new _.J("changeTimelyActionVisibilityCommand");var U_q=new _.J("hideEngagementPanelEndpoint");var Ryk=new _.J("refreshPanelEndpoint");var SRu=new _.J("scrollToSectionEndpoint");var nhZ=new _.J("seekToVideoTimestampCommand");_.mJ=new _.J("showEngagementPanelEndpoint");var iwh=new _.J("showTransientPlayerScrimOverlayCommand");var ghs=new _.J("toggleEngagementPanelCommand");_.u6h=new _.J("createBroadcastCommand");var d_Z=new _.J("metadataUpdateCommand");var wA0=function(){pB.apply(this,arguments)};
_.m(wA0,pB);wA0.prototype.getAssociations=function(){return[]};var qR9=function(){pB.apply(this,arguments)};
_.m(qR9,pB);qR9.prototype.getAssociations=function(){return[]};var Nih=function(){pB.apply(this,arguments)};
_.m(Nih,pB);Nih.prototype.getAssociations=function(){return[]};_.vh7=new _.J("merchandiseShelfRenderer");var J3k=new _.J("gridMovieRenderer");_.fzs=new _.J("movieRenderer");var tHi=function(){pB.apply(this,arguments)};
_.m(tHi,pB);tHi.prototype.getAssociations=function(){var x=[];this.delegate.trackDownloadMetadatas&&x.push.apply(x,_.B5(this.delegate.trackDownloadMetadatas));return[].concat(_.B5(new Set(x)))};var k2E=function(){pB.apply(this,arguments)};
_.m(k2E,pB);
k2E.prototype.getAssociations=function(){var x=[];this.delegate.downloadedTracks&&x.push.apply(x,_.B5(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&x.push.apply(x,_.B5(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&x.push.apply(x,_.B5(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&x.push.apply(x,_.B5(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&x.push.apply(x,_.B5(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
x.push.apply(x,_.B5(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&x.push.apply(x,_.B5(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&x.push.apply(x,_.B5(this.delegate.metadataOnlyTracks));return[].concat(_.B5(new Set(x)))};var PvZ=function(){pB.apply(this,arguments)};
_.m(PvZ,pB);PvZ.prototype.getAssociations=function(){var x=[];this.delegate.trackDownloadMetadatas&&x.push.apply(x,_.B5(this.delegate.trackDownloadMetadatas));return[].concat(_.B5(new Set(x)))};var EhZ=function(){pB.apply(this,arguments)};
_.m(EhZ,pB);EhZ.prototype.getAssociations=function(){var x=[];this.delegate.playbackData&&x.push(this.delegate.playbackData);this.delegate.localImageEntities&&x.push.apply(x,_.B5(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&x.push(this.delegate.videoDownloadContextEntity);return[].concat(_.B5(new Set(x)))};var hyk=function(){pB.apply(this,arguments)};
_.m(hyk,pB);
hyk.prototype.getAssociations=function(){var x=[];this.delegate.musicLibraryStatusEntity&&x.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&x.push.apply(x,_.B5(this.delegate.primaryArtists));this.delegate.details&&x.push(this.delegate.details);this.delegate.userDetails&&x.push(this.delegate.userDetails);this.delegate.tracks&&x.push.apply(x,_.B5(this.delegate.tracks));this.delegate.share&&x.push(this.delegate.share);this.delegate.downloadMetadata&&x.push(this.delegate.downloadMetadata);this.delegate.refresh&&
x.push(this.delegate.refresh);return[].concat(_.B5(new Set(x)))};
var x9J=function(){pB.apply(this,arguments)};
_.m(x9J,pB);x9J.prototype.getAssociations=function(){var x=[];this.delegate.albumRelease&&x.push(this.delegate.albumRelease);this.delegate.tracks&&x.push.apply(x,_.B5(this.delegate.tracks));return[].concat(_.B5(new Set(x)))};
var GXZ=function(){pB.apply(this,arguments)};
_.m(GXZ,pB);GXZ.prototype.getAssociations=function(){var x=[];this.delegate.albumRelease&&x.push(this.delegate.albumRelease);return[].concat(_.B5(new Set(x)))};var D9E=function(){pB.apply(this,arguments)};
_.m(D9E,pB);D9E.prototype.getAssociations=function(){var x=[];this.delegate.details&&x.push(this.delegate.details);this.delegate.userDetails&&x.push(this.delegate.userDetails);return[].concat(_.B5(new Set(x)))};
var KRs=function(){pB.apply(this,arguments)};
_.m(KRs,pB);KRs.prototype.getAssociations=function(){var x=[];this.delegate.parentArtist&&x.push(this.delegate.parentArtist);return[].concat(_.B5(new Set(x)))};
var zA8=function(){pB.apply(this,arguments)};
_.m(zA8,pB);zA8.prototype.getAssociations=function(){var x=[];this.delegate.parentArtist&&x.push(this.delegate.parentArtist);return[].concat(_.B5(new Set(x)))};var aCJ=function(){pB.apply(this,arguments)};
_.m(aCJ,pB);aCJ.prototype.getAssociations=function(){return[]};var oJZ=function(){pB.apply(this,arguments)};
_.m(oJZ,pB);oJZ.prototype.getAssociations=function(){return[]};var yxi=function(){pB.apply(this,arguments)};
_.m(yxi,pB);
yxi.prototype.getAssociations=function(){var x=[];this.delegate.tracks&&x.push.apply(x,_.B5(this.delegate.tracks));this.delegate.refresh&&x.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&x.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&x.push(this.delegate.details);this.delegate.downloadMetadata&&x.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&x.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&x.push(this.delegate.userDetails);this.delegate.entryCollection&&
x.push(this.delegate.entryCollection);this.delegate.share&&x.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&x.push.apply(x,_.B5((new lCZ(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.B5(new Set(x)))};
var lCZ=function(){Qn.apply(this,arguments)};
_.m(lCZ,Qn);lCZ.prototype.getAssociations=function(){var x=[];this.delegate.creatorEntity&&x.push(this.delegate.creatorEntity);return[].concat(_.B5(new Set(x)))};var cxZ=function(){pB.apply(this,arguments)};
_.m(cxZ,pB);cxZ.prototype.getAssociations=function(){return[]};var Tqs=function(){pB.apply(this,arguments)};
_.m(Tqs,pB);
Tqs.prototype.getAssociations=function(){var x=[];this.delegate.musicLibraryStatusEntity&&x.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&x.push.apply(x,_.B5(this.delegate.artists));this.delegate.audioModeVersion&&x.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&x.push(this.delegate.videoModeVersion);this.delegate.userDetails&&x.push(this.delegate.userDetails);this.delegate.details&&x.push(this.delegate.details);this.delegate.albumRelease&&x.push(this.delegate.albumRelease);this.delegate.share&&
x.push(this.delegate.share);this.delegate.libraryEdit&&x.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&x.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&x.push(this.delegate.playbackPosition);this.delegate.lyrics&&x.push(this.delegate.lyrics);return[].concat(_.B5(new Set(x)))};
var WRq=function(){pB.apply(this,arguments)};
_.m(WRq,pB);WRq.prototype.getAssociations=function(){var x=[];this.delegate.parentTrack&&x.push(this.delegate.parentTrack);return[].concat(_.B5(new Set(x)))};
var eAs=function(){pB.apply(this,arguments)};
_.m(eAs,pB);eAs.prototype.getAssociations=function(){var x=[];this.delegate.parentTrack&&x.push(this.delegate.parentTrack);return[].concat(_.B5(new Set(x)))};var tj=new _.J("musicResponsiveListItemRenderer");var QgL=new _.J("addToPlaylistEndpoint");var Ziq=new _.J("captionPickerEndpoint");var Mus=new _.J("suggestStats");var Q6h=new _.J("backstageImageUploadEndpoint");var p$Z=new _.J("createBackstagePostDialogEndpoint");_.Vu7=new _.J("createCommentReplyDialogEndpoint");_.biZ=new _.J("updateCommentDialogEndpoint");_.LR8=new _.J("updateCommentReplyDialogEndpoint");var Bq9=new _.J("menuEndpoint");var TXP=new _.J("modalEndpoint");var rx8=new _.J("playlistEditorEndpoint");var s68=new _.J("copyTextEndpoint");var Yt9,m9q;Yt9=new _.J("shareEndpoint");m9q=new _.J("shareEntityEndpoint");_.HiE=new _.J("shareEntityServiceEndpoint");_.Fcd=new _.J("userFeedbackEndpoint");_.d5=new _.J("watchEndpoint");var kPn=new _.J("watchPlaylistEndpoint");var $9J=new _.J("addUpcomingEventReminderEndpoint");_.sV=new _.J("getCommentsFromInboxCommand");var FR0=new _.J("notificationOptOutEndpoint");var Clo=new _.J("recordNotificationInteractionsEndpoint");var ICi=new _.J("removeUpcomingEventReminderEndpoint");var ZRO=new _.J("getDownloadActionCommand");_.j6q=new _.J("offlineOrchestrationActionCommand");var Oiq=function(){pB.apply(this,arguments)};
_.m(Oiq,pB);Oiq.prototype.getAssociations=function(){return[]};var X$8=function(){pB.apply(this,arguments)};
_.m(X$8,pB);X$8.prototype.getAssociations=function(){return[]};var AxZ=function(){pB.apply(this,arguments)};
_.m(AxZ,pB);AxZ.prototype.getAssociations=function(){return[]};var U9h=function(){pB.apply(this,arguments)};
_.m(U9h,pB);U9h.prototype.getAssociations=function(){return[]};var RAh=function(){pB.apply(this,arguments)};
_.m(RAh,pB);RAh.prototype.getAssociations=function(){var x=[];this.delegate.transfer&&x.push(this.delegate.transfer);this.delegate.adsPlaybackData&&x.push.apply(x,_.B5(this.delegate.adsPlaybackData));this.delegate.drmLicense&&x.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&x.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&x.push(this.delegate.videoDownloadContextEntity);return[].concat(_.B5(new Set(x)))};var StZ=function(){pB.apply(this,arguments)};
_.m(StZ,pB);StZ.prototype.getAssociations=function(){return[]};var nJk=function(){pB.apply(this,arguments)};
_.m(nJk,pB);nJk.prototype.getAssociations=function(){var x=[];this.delegate.offlineVideoStreams&&x.push.apply(x,_.B5(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&x.push.apply(x,_.B5(this.delegate.captionTrack));return[].concat(_.B5(new Set(x)))};var iiq=function(){pB.apply(this,arguments)};
_.m(iiq,pB);iiq.prototype.getAssociations=function(){return[]};var gJo=new _.J("showMoreDrawerCommand");var uu7=new _.J("updateEngagementPanelContentCommand");var d9u=new _.J("getPdgBuyFlowCommand");var w$7=new _.J("liveChatPurchaseMessageEndpoint");var qt7=new _.J("openSuperStickerBuyFlowCommand");var Nqs=new _.J("updatePdgFeatureEnablementCommand");var vJs=function(){pB.apply(this,arguments)};
_.m(vJs,pB);vJs.prototype.getAssociations=function(){return[]};var Jx7=function(){pB.apply(this,arguments)};
_.m(Jx7,pB);Jx7.prototype.getAssociations=function(){return[]};_.fCE=new _.J("pdgCommentChipRenderer");_.tuo=new _.J("permissionRoleBottomBarRenderer");_.kXs=new _.J("updatePermissionRoleCommand");var Pl7=new _.J("prefetchWatchCommand");var EJZ=new _.J("updatePlayerErrorMessageCommand");var oDd=new _.J("toggleCaptionsVisibilityCommand");_.hA0=new _.J("quickActionsViewModel");var xlZ=new _.J("playerResponse");var GsZ=new _.J("playlistRenderer");_.DlZ=new _.J("playlistVideoListRenderer");_.YV=new _.J("playlistEditEndpoint");var KLs=new _.J("createImagePollCommand");var zri=new _.J("createQuizCommand");var arq=new _.J("quizRenderer");var oGE=new _.J("uploadedVideoRenderer");var yDu=new _.J("decorateMessageEndpoint");var lr8=new _.J("lpOfferCardOptionViewModel");var cDE=new _.J("sfvAudioItemPlaybackCommand");var TUZ=function(){pB.apply(this,arguments)};
_.m(TUZ,pB);TUZ.prototype.getAssociations=function(){return[]};_.mP=new _.J("reelNonVideoContentEndpoint");_.MB=new _.J("reelWatchEndpoint");_.Ho=new _.J("reelItemRenderer");_.WL9=new _.J("reelMetapanelViewModel");_.ero=new _.J("reelNonVideoContentRenderer");_.Zyh=new _.J("reelPlayerOverlayRenderer");var MYZ=new _.J("shortsLockupViewModel");var QbE=new _.J("sponsorButtonViewModel");var pRu=new _.J("reelItemWatchResponse");var VYq=new _.J("textBadgeRenderer");_.$V=new _.J("buttonRenderer");_.Fg=new _.J("toggleButtonRenderer");var zIL=new _.J("switchButtonViewModel");_.bys=new _.J("confirmDialogRenderer");var LL8;LL8=new _.J("menuRenderer");_.BU9=new _.J("menuFlexibleItemRenderer");var rDs=new _.J("pollRenderer");_.sb9=new _.J("backgroundPromoRenderer");var ml0;_.YqJ=new _.J("chipCloudRenderer");ml0=new _.J("chipCloudChipRenderer");var HyZ=new _.J("dropdownRenderer");var $lJ=new _.J("gridVideoRenderer");_.FLZ=new _.J("itemSectionRenderer");_.CG7=new _.J("messageRenderer");var Ir7=new _.J("sortFilterHeaderRenderer");_.CB=new _.J("videoRenderer");var jb8=new _.J("resolveUrlCommandMetadata");var Oys=function(){pB.apply(this,arguments)};
_.m(Oys,pB);Oys.prototype.getAssociations=function(){return[]};_.XRh=new _.J("getAnswerCommand");_.Wi=new _.J("searchEndpoint");var ADs=new _.J("genAiRichTextViewModel");var ejD=new _.J("overviewAnswerViewModel");var Uls=new _.J("addToPlaylistServiceEndpoint");var Rrk=new _.J("clearSearchHistoryEndpoint");var SqZ=new _.J("clearWatchHistoryEndpoint");var nGh=new _.J("webSerializedServiceEndpointExtension");_.iy0=new _.J("createCommentEndpoint");var gG9=new _.J("createCommentReplyEndpoint");var uCh=new _.J("performCommentActionEndpoint");var dls=new _.J("updateCommentEndpoint");var wRZ=new _.J("updateCommentReplyEndpoint");_.IL=new _.J("createPlaylistServiceEndpoint");var qqs=new _.J("deletePlaylistEndpoint");var NUZ=new _.J("deleteVideoEndpoint");var Mtf=new _.J("getReportFormEndpoint");var vGZ=new _.J("modifyChannelNotificationPreferenceEndpoint");var IT$;_.oO=new _.J("offlinePlaylistEndpoint");IT$={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 j73;_.zx=new _.J("offlineVideoEndpoint");j73={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 PFi=new _.J("pingingEndpoint");_.Ey8=new _.J("selectActiveIdentityEndpoint");var hqi=new _.J("setSettingEndpoint");var HA$=new _.J("undoFeedbackEndpoint");var x7u=new _.J("unsubscribeEndpoint");_.Gbk=new _.J("updatedMetadataEndpoint");var D70=function(){pB.apply(this,arguments)};
_.m(D70,pB);D70.prototype.getAssociations=function(){return[]};_.KUs=new _.J("updateLocalAppSettingCommand");var zis=new _.J("saveImageToDeviceEndpoint");var am9=new _.J("shareImageCommand");var ooq=new _.J("sharingProviderDataCommand");var y7k=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(y7k,_.SX);var lmZ=[0,_.nr,-1];y7k.prototype.JSC$10272_serializeBinary=G4E(lmZ);var c79=_.E_(lmZ);var THo=new _.J("userMentionSuggestionRenderer");var WUs=new _.J("liveChatTunnelCommand");var eiu=new _.J("showSponsorshipsGiftOfferDialogCommand");var ZgZ=new _.J("sponsorshipsScrollableShelfViewModel");var MVi=new _.J("updateUpcomingEventReminderButtonStateCommand");var Q8q=new _.J("upcomingEventReminderButtonStateRenderer");var pph=new _.J("subscribeEndpoint");var VVi=new _.J("registerTasksCommand");var bg0=new _.J("showDialogCommand");_.Tx=new _.J("showSheetCommand");var LU9=new _.J("showSnackbarCommand");var BHi=function(){pB.apply(this,arguments)};
_.m(BHi,pB);BHi.prototype.getAssociations=function(){return[]};var r7i=function(){pB.apply(this,arguments)};
_.m(r7i,pB);r7i.prototype.getAssociations=function(){return[]};_.gl=new _.J("avatarViewModel");var s89=new _.J("badgeViewModel");_.Ls=new _.J("buttonViewModel");_.j1=new _.J("chipViewModel");var M6f=new _.J("collectionThumbnailViewModel");var YdE=new _.J("contentPreviewImageViewModel");var m7s=new _.J("decoratedAvatarViewModel");var f0P=new _.J("downloadButtonViewModel");_.okC=new _.J("engagementBarViewModel");_.Hgs=new _.J("imageBannerViewModel");var W$3=new _.J("lockupContentMetadataRowExtension");var $70=new _.J("lockupMetadataViewModel");_.FUJ=new _.J("lockupViewModel");var CKZ=new _.J("avatarStackViewModel");var Im0=function(){pB.apply(this,arguments)};
_.m(Im0,pB);Im0.prototype.getAssociations=function(){return[]};_.j88=new _.J("pageHeaderViewModel");var Og8=new _.J("snackbarViewModel");var Xpi=new _.J("thumbnailHoverOverlayToggleActionsViewModel");_.Bq=new _.J("toggleButtonViewModel");var A7q=function(){pB.apply(this,arguments)};
_.m(A7q,pB);A7q.prototype.getAssociations=function(){return[]};_.y5$=new _.J("votingViewModel");var U7h=new _.J("sectionHeaderViewModel");var RiZ=new _.J("notifyDropdownOptionSelectedCommand");var sin=new _.J("listViewModel");_.Wq=new _.J("listItemViewModel");var Sd9=new _.J("dialogHeaderViewModel");var no9=function(){pB.apply(this,arguments)};
_.m(no9,pB);no9.prototype.getAssociations=function(){return[]};var igu=function(){pB.apply(this,arguments)};
_.m(igu,pB);igu.prototype.getAssociations=function(){return[]};var goi=function(){pB.apply(this,arguments)};
_.m(goi,pB);goi.prototype.getAssociations=function(){return[]};_.uaZ=new _.J("transcriptSubmitCaptionCorrectionCommand");var d7q=function(){pB.apply(this,arguments)};
_.m(d7q,pB);d7q.prototype.getAssociations=function(){return[]};var EXh=new _.J("unpluggedStringRunImage");var wpo=new _.J("tabViewModel");var qds=new _.J("tabbedViewModel");var NHs=function(){pB.apply(this,arguments)};
_.m(NHs,pB);NHs.prototype.getAssociations=function(){return[]};_.voJ=new _.J("updateDescriptionAction");var J70=new _.J("updateToggleButtonTextAction");_.fmq=new _.J("autoplaySwitchButtonRenderer");var C6;_.tVZ=new _.J("multiMarkersPlayerBarRenderer");C6=new _.J("chapterRenderer");var kbu=new _.J("heatMarkerRenderer");var nHO=new _.J("heatmapRenderer");var PK8=new _.J("smartSkipPlayerScrimOverlayRenderer");var Eo0=new _.J("timedMarkerDecorationRenderer");var f3D=new _.J("postWebToNativeMessageCommand");var hi9=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(hi9,_.SX);var x6E=_.Pd(hi9,[0,_.nr,-2]);var Gcs=new _.J("whitelistEditEndpoint");var D6q=new _.J("clearUrlParamCommand");var KPE=new _.J("commerceActionCommand");_.zzk=new _.J("getPaymentInstrumentsParamsCommand");var aiZ=new _.J("getPaymentsClientTokenCommand");var oV8=new _.J("googlePaymentBillingCommand");var yz7=new _.J("googlePaymentPurchaseManagerCommand");_.lis=new _.J("logGtmCommand");var czq=new _.J("updateCardItemOnClickCommand");_.Te7=new _.J("ypcPauseSubscriptionCommand");_.WPs=new _.J("ypcResumeSubscriptionCommand");var ezE=function(){pB.apply(this,arguments)};
_.m(ezE,pB);ezE.prototype.getAssociations=function(){return[]};var ZBJ=function(){pB.apply(this,arguments)};
_.m(ZBJ,pB);ZBJ.prototype.getAssociations=function(){return[]};var M17=function(){pB.apply(this,arguments)};
_.m(M17,pB);M17.prototype.getAssociations=function(){return[]};var QLk=function(){pB.apply(this,arguments)};
_.m(QLk,pB);QLk.prototype.getAssociations=function(){return[]};var po0=function(){pB.apply(this,arguments)};
_.m(po0,pB);po0.prototype.getAssociations=function(){return[]};var JwL=new _.J("ypcOffersEndpoint");var V1Z=new _.J("cardItemRenderer"),bBq=new _.J("cardItemTextRenderer");var LPs=new _.J("commerceCartItemQuantityPickerRenderer");var Beh=new _.J("linkCardRenderer");var ulV=new _.J("quantityIncrementerButtonViewModel");var rzE=new _.J("quantityIncrementerViewModel");var sL7=new _.J("themedImageViewModel");_.YVh=new _.J("ypcCancelRecurrenceEndpoint");var m6E=new _.J("ypcCompleteTransactionEndpoint");_.HBE=new _.J("ypcGetCartEndpoint");_.hc=new _.J("ypcGetOffersEndpoint");_.OV=new _.J("ypcHandleTransactionEndpoint");var $6i=new _.J("ypcLogWalletAnalyticDataEndpoint");_.FPs=new _.J("ypcRedeemCodeEndpoint");var Czs=new _.J("ypcUpdateFopEndpoint");fg(J7(1),N7(4));DRL((new MessageChannel).port2);var Ii7=function(){this.register=new Map},Izd=function(x,G,D){x=x+"_"+G;
Xg.register.has(x)?D=Xg.register.get(x):(D=D(),Xg.register.set(x,D));return D},jLJ=function(x){x=_.l(x.register.values());
for(var G=x.next();!G.done;G=x.next())_.lh(G.value,"ABORTED")};
Ii7.prototype.clear=function(){jLJ(this);this.register.clear()};
var Xg=new Ii7;var c3h=Date.now().toString();var W5f,OBZ=_.Df.ytLoggingDocDocumentNonce_;OBZ||(OBZ=Hy(16),_.Jv("ytLoggingDocDocumentNonce_",OBZ));W5f=OBZ;var L5E={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 Xo7;Xo7=1;_.$m=function(x){this.veData=x};
_.V2=function(x){return new _.$m({trackingParams:x})};
_.BH=function(x,G,D,K,z,y){var c=Xo7++;return new _.$m({veType:x,veCounter:c,elementIndex:D,dataElement:G,youtubeData:K,jspbYoutubeData:z,loggingDirectives:y})};
_.a=_.$m.prototype;
_.a.getAsJson=function(){var x={};this.veData.trackingParams!==void 0?x.trackingParams=this.veData.trackingParams:(x.veType=this.veData.veType,this.veData.veCounter!==void 0&&(x.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(x.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(x.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(x.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(x.isCounterfactual=!0);
return x};
_.a.getAsJspb=function(){var x=new yvh;this.veData.trackingParams!==void 0?x.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.$p(x,2,this.veData.veType),this.veData.veCounter!==void 0&&_.$p(x,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.$p(x,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.aK(x,5,!0));if(this.veData.dataElement!==void 0){var G=this.veData.dataElement.getAsJspb();_.GW(x,7,G)}this.veData.youtubeData!==void 0&&_.GW(x,8,this.veData.jspbYoutubeData);
return x};
_.a.toString=function(){return JSON.stringify(this.getAsJson())};
_.a.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.a.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.Jv("yt_logging_screen.getRootVeType",pA$);_.Jv("yt_logging_screen.getCurrentCsn",_.CC);_.Jv("yt_logging_screen.getCttAuthInfo",IZ);_.Jv("yt_logging_screen.setCurrentScreen",_.jq);var Azh=function(){this.events=new Map},U6s=function(x){var G=[];
x=_.l(x.events.values());for(var D=x.next();!D.done;D=x.next())G.push(D.value);return G};
Azh.prototype.clear=function(){this.events.clear()};var SVo=function(){this.logTransport=new RzE;this.loggedEventRegister=new Azh;this.unloggedEventRegister=new Azh;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10329_flushTimer=new _.Pm(this.flushInterval);this.JSC$10329_flushTimer.listen("tick",this.flush,!1,this)};
SVo.prototype.flush=function(){if(this.eventsCount){var x={loggedEvents:U6s(this.loggedEventRegister),unloggedEvents:U6s(this.unloggedEventRegister)};if(_.B("export_player_version_to_ytconfig")){var G;(G=_.Am("PLAYER_CLIENT_VERSION"))?(G=G.split("-")[0].replace(/\./g,""),G=isNaN(Number(G))?"0":G):G="";var D=_.Am("PLAYER_CLIENT_VERSION");if(D){D=D.split("-");var K="";D.length>1&&(K=D[D.length-1]);D=lzd(K.startsWith("canary_experiment")?"canary":K.startsWith("canary_control")?"control":"none")}else D=
"CLIENT_CANARY_STATE_UNKNOWN";x.dimensions={playerClientVersion:G,playerCanaryState:D}}this.logTransport.flush(x);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10329_flushTimer.enabled&&this.JSC$10329_flushTimer.stop()}};
var nV9=function(x){Az==null&&(Az=new SVo);var G=Az;var D=G.loggedEventRegister;x.dimensions=x.dimensions||{};x.dimensions.csn=_.CC()||"";var K=sYf(x.dimensions).join(";");if(x.records!=null)if(D.events.has(K)){var z;(z=D.events.get(K).records)==null||z.push.apply(z,_.B5(x.records))}else D.events.set(K,x);G.JSC$10329_flushTimer.enabled||G.JSC$10329_flushTimer.start();G.eventsCount++;G.eventsCount>=100&&G.flush()};var RzE=function(){};
RzE.prototype.flush=function(x,G){_.B("enable_client_sli_logging")&&_.Fv("sliEventBatch",x,{sendIsolatedPayload:!!G})};var Az;var gVi;gVi=function(x){var G=iBh;x=x===void 0?{}:x;G=G.name;var D=CvO("SUCCESS");nV9({dimensions:x,records:[{name:G,state:"SLI_STATE_END",status:D}]})};
_.jYf=function(x,G,D,K){this.name=x;this.sliId=G;this.timeoutMs=D;this.statusOnTimeout=K;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.jYf.prototype.getId=function(){return this.sliId};
_.yS=function(x,G){G=G===void 0?{}:G;x.ongoing||(x.ongoing=!0,x.dimensions=G,x.logSliId=SYE(),nV9({dimensions:x.dimensions,records:[{name:x.name,state:"SLI_STATE_START",sliId:x.logSliId}]}),x.timeoutMs>0&&(x.timeoutHandle=setTimeout(function(){_.lh(x,x.statusOnTimeout)},x.timeoutMs)))};
_.lh=function(x,G){x.ongoing&&(x.timeoutMs>0&&clearTimeout(x.timeoutHandle),x.ongoing=!1,G={dimensions:x.dimensions,records:[{name:x.name,status:CvO(G),state:"SLI_STATE_END",sliId:x.logSliId}]},Xg.register.delete(x.name+"_"+x.sliId),nV9(G))};var iBh=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var ugZ=function(){pB.apply(this,arguments)};
_.m(ugZ,pB);ugZ.prototype.getAssociations=function(){return[]};var iq$=new _.J("highlightTextDecoratorColorMapExtension");var SNO=new _.J("styleRunColorMapExtension");var nhf=_.gv(["data-"]),u6E={};var wAL={};var UV=function(x){this.wrappedPromise_=x===void 0?null:x;this.state_=0;this.JSC$10361_value_=null};
UV.prototype.then=function(x,G,D){return this.wrappedPromise_?this.wrappedPromise_.then(x,G,D):this.state_===1&&x?(x=x.call(D,this.JSC$10361_value_))&&typeof x.then==="function"?x:_.RL(x):this.state_===2&&G?(x=G.call(D,this.JSC$10361_value_))&&typeof x.then==="function"?x:_.d69(x):this};
UV.prototype.getValue=function(){return this.JSC$10361_value_};
UV.prototype.isRejected=function(){return this.state_==2};
ygE(UV);_.d69=function(x){var G=new UV;x=x===void 0?null:x;G.state_=2;G.JSC$10361_value_=x===void 0?null:x;return G};
_.RL=function(x){var G=new UV;x=x===void 0?null:x;G.state_=1;G.JSC$10361_value_=x===void 0?null:x;return G};var zAC="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var wo9=["load","abort","error"],S1=function(x,G,D){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10381_maxAspectRatio_=x;this.disableAnimation_=G===void 0?!1:G;this.disableExifRotation_=D===void 0?!1:D;this.JSC$10381_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10381_reject_=this.resolve_=null};
S1.prototype.transform=function(x){var G=this;this.mime_=x.type;RY(Ks7(x),this.dataUrlRead_,this.readError_,this);RY(D5Z(x.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(D,K){G.resolve_=D;G.JSC$10381_reject_=K})};
S1.prototype.dataUrlRead_=function(x){this.dataUrl_=x;this.angle_!=null&&qVs(this)};
S1.prototype.exifRead_=function(x){if(this.disableExifRotation_)this.angle_=0;else{a:if(x=new DataView(x),x.byteLength<2||x.getUint16(0)!==65496)x=-2;else{for(var G=2,D=x.byteLength;G<D;){var K=x.getUint16(G),z=x.getUint16(G+2);if(K===65505){G+=4;K=x.getUint32(G);z=x.getUint16(G+4);if(K!==1165519206||z!==0)break;G+=6;K=x.getUint16(G)===18761;G+=x.getUint32(G+4,K);z=x.getUint16(G,K);G+=2;for(var y=0;y<z;y++){if(x.getUint16(G,K)===274){G+=8;x=x.getUint16(G,K);break a}G+=12}}else if(K>>8!==255)break;
else G+=z+2}x=-1}switch(x){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&&qVs(this)};
S1.prototype.readError_=function(){this.JSC$10381_reject_()};
var qVs=function(x){Q2(x.JSC$10381_image_,wo9,x.completeTransform_,!1,x);x.JSC$10381_image_.src=_.V$(x.dataUrl_).toString();x.JSC$10381_image_.src!=p9.toString()&&x.JSC$10381_image_.src.substr(0,11)==="data:image/"||x.JSC$10381_reject_()};
S1.prototype.completeTransform_=function(){if(this.JSC$10381_image_.src!=p9.toString()){var x=_.V$(this.dataUrl_),G=this.JSC$10381_image_.naturalHeight?this.JSC$10381_image_.naturalWidth/this.JSC$10381_image_.naturalHeight:null;this.invalidAspectRatio=G>this.JSC$10381_maxAspectRatio_||G<1/this.JSC$10381_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var D=this.JSC$10381_image_.naturalWidth,K=this.JSC$10381_image_.naturalHeight,z=G=0,y=this.JSC$10381_image_.naturalHeight?this.JSC$10381_image_.naturalWidth/
this.JSC$10381_image_.naturalHeight:null;y>this.JSC$10381_maxAspectRatio_?(D=this.JSC$10381_maxAspectRatio_*K,G=(D-this.JSC$10381_image_.naturalWidth)/2,this.cropped=!0):y<1/this.JSC$10381_maxAspectRatio_?(K=this.JSC$10381_maxAspectRatio_*D,z=(K-this.JSC$10381_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)y=D,D=K,K=y,y=G,G=z,z=y;switch(this.angle_){case 90:z-=D;break;case 180:G-=D;z-=K;break;case 270:G-=
K}this.cropped||this.angle_%360!==0?(x=document.createElement("canvas"),x.width=D||1,x.height=K||1,this.JSC$10381_image_.naturalWidth&&this.JSC$10381_image_.naturalHeight&&(D=x.getContext("2d"),D.rotate(Math.PI/180*this.angle_),D.drawImage(this.JSC$10381_image_,G,z,this.JSC$10381_image_.naturalWidth,this.JSC$10381_image_.naturalHeight)),this.transformedData=_.V$(x.toDataURL(this.mime_))):this.transformedData=x}else this.transformedData=x;this.resolve_(this)}};var nB=function(x,G){_.aY.call(this,x);this.value=G};
_.m(nB,_.aY);
var iz=function(x,G,D,K,z,y,c){c=c===void 0?!1:c;_.T2.call(this);var W=this;this.JSC$10386_url_=x;this.channelId_=G;this.maxFileSizeMb_=D;this.JSC$10386_maxAspectRatio_=K;this.dropZoneEl_=z;this.rejectInvalidAspectRatio_=c;this.selectButtonEl_=y;this.JSC$10386_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new Di(this.dropZoneEl_);this.selectOverlay_=new KB(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10386_image_=this.transfer_=null;this.handler_=new _.Ev(this);_.WZ(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(y,"click",function(){W.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.m(iz,_.T2);iz.prototype.disposeInternal=function(){for(var x=this.selectButtonEl_.nextSibling;x&&x.parentNode&&x.tagName=="INPUT";)x.parentNode.removeChild(x),x=this.selectButtonEl_.nextSibling;this.cancel();_.T2.prototype.disposeInternal.call(this)};
iz.prototype.uploadPromise=function(){if(this.JSC$10386_image_==null)return null;this.uploadPromise_||Ne8(this);return this.uploadPromise_};
iz.prototype.cancel=function(){vV8(this);this.JSC$10386_image_=null};
var vV8=function(x){x.transfer_&&x.transfer_.cancel();x.transfer_=null;x.uploadPromise_=null;x.resolve_=null;x.JSC$10386_reject_=null},Ne8=function(x){vV8(x);
x.transfer_=_.BjZ(x.JSC$10386_url_,{"X-YouTube-ChannelId":x.channelId_},x.JSC$10386_image_);x.handler_.listenOnce(x.transfer_,"l",x.JSC$10388_onUploadComplete_);x.handler_.listenOnce(x.transfer_,"n",x.onUploadError_);x.transfer_.run();x.uploadPromise_=new Promise(function(G,D){x.resolve_=G;x.JSC$10386_reject_=D})};
_.a=iz.prototype;_.a.onChange_=function(x){x.files.length&&(this.JSC$10386_image_=x.files[0],this.JSC$10386_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10386_image_=null,this.dispatchEvent(new nB("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(Ne8(this),(new S1(this.JSC$10386_maxAspectRatio_)).transform(this.JSC$10386_image_).then((0,_.mW)(this.onPreview_,this),(0,_.mW)(this.onPreviewError_,this))))};
_.a.onPreview_=function(x){if(x.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10386_image_=null),this.dispatchEvent(new nB("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;x.cropped&&this.dispatchEvent(new nB("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new nB("yt.comments.ImageUploadOverlay.CHANGE_EVENT",x.transformedData))};
_.a.onPreviewError_=function(){this.JSC$10386_image_=null;this.dispatchEvent(new nB("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.a.onHover_=function(x){x.stopPropagation();x.preventDefault();if(x.type==="dragover")x=!0;else if(x.type==="dragleave")x=!1;else return;this.dispatchEvent(new nB("yt.comments.ImageUploadOverlay.HOVER_EVENT",x))};
_.a.JSC$10388_onUploadComplete_=function(){var x=(0,_.Om8)(this.transfer_.getResponseText());this.resolve_(x.encryptedBlobId)};
_.a.onUploadError_=function(){this.JSC$10386_reject_();vV8(this)};var Jzs=function(x){x=x||{};var G={},D={};this.url=x.url||"";this.args=x.args||_.YS.clone(G);this.assets=x.assets||{};this.attrs=x.attrs||_.YS.clone(D);this.fallback=x.fallback||null;this.fallbackMessage=x.fallbackMessage||null;this.html5=!!x.html5;this.disable=x.disable||{};this.loaded=!!x.loaded;this.messages=x.messages||{}};
Jzs.prototype.clone=function(){var x=new Jzs,G;for(G in this)if(this.hasOwnProperty(G)){var D=this[G];x[G]=_.WY(D)=="object"?_.YS.clone(D):D}return x};var fiq,t1Z,kci,f1,EV7,hzJ,xZJ,G$J,DZs,Ka8,zm9,aOo,oPJ,yiu,lOZ,ciZ,TQZ,WaE,emh,ZJ0,MKJ,Qri,pGo,VK9,bJJ,Laq,BQE,ri7,sr8,Dwf,Y3s,mZ7,HJs,$ZZ,FaZ,CaZ,IOE,jr8,OJ8,XGZ,Ai9,UZs,RmJ,S3o,nPZ,iJs,gPq,up8,dZo,wGo,q3s,NQk,vPJ,Jis,fO8,tKZ,ge,k$7,Paq,EPs,hmh,xz9,GPZ,Dzo,K3Z,zJ7,aHZ,otu,yGs,lHi,cGZ,T29,W3s,eJi,ZFu,xwC,M$s,QQk,pPJ,V$J,bFJ,L3q,B2J,rG8,sQZ,Yek,mz7,HFs,$z8,F37,Ckq,IHk,jQ7,OFs,XPk,AGi,Uzq,RJs,Seo,nt8,iFZ;fiq=["account/accounts_list"];t1Z=["acknowledge_channel_tou_strike"];kci=["notification/add_upcoming_event_reminder"];
_.Pzh=["att/get"];f1=["browse","music/browse","unplugged/browse"];EV7=["channel/claim_legacy_youtube_channel"];hzJ=["history/clear_search_history"];xZJ=["history/clear_watch_history"];G$J=["comment/perform_comment_action"];DZs=["comment/get_comment_replies"];Ka8=["ypc/commerce_action"];zm9=["backstage/create_post"];aOo=["live/create_broadcast"];oPJ=["channel/create_channel"];yiu=["comment/create_comment_reply"];lOZ=["comment/create_comment"];ciZ=["live_chat/create_poll"];TQZ=["playlist/create"];
WaE=["decorate_message"];emh=["live_chat/delete_message"];ZJ0=["playlist/delete"];MKJ=["video/delete"];Qri=["like/dislike"];pGo=["dismissal/dismiss"];VK9=["flag/flag"];bJJ=["flow"];Laq=["account/account_menu"];BQE=["playlist/get_add_to_playlist"];ri7=["get_answer"];sr8=["channel/get_channel_creation_form"];Dwf=["offline/get_download_action"];Y3s=["kids/get_kids_blocklist_picker"];mZ7=["live_chat/get_item_context_menu"];HJs=["live_chat/get_live_chat_message_buy_flow"];$ZZ=["live_chat/get_live_chat_replay"];
FaZ=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];CaZ=["live_chat/get_live_chat_super_sticker_buy_flow"];IOE=["notification/get_notification_menu"];jr8=["playlist/get_settings_editor"];OJ8=["backstage/get_post_video_preview"];XGZ=["account/get_profile_card"];Ai9=["share/get_share_panel"];UZs=["share/get_sharing_provider_data"];RmJ=["get_survey"];S3o=["notification/get_unseen_count"];nPZ=["get_user_mention_suggestions"];iJs=["get_watch"];gPq=["guide"];
up8=["feedback"];dZo=["kids/update_blacklist"];wGo=["like/like"];q3s=["live_chat/live_chat_action"];NQk=["live_chat/manage_user"];vPJ=["video_manager/metadata_update"];Jis=["live_chat/moderate"];fO8=["notification/modify_channel_preference"];tKZ=["notification/opt_out"];ge=["get_panel","get_posts_by_host_panel"];k$7=["player"];Paq=["browse/edit_playlist"];EPs=["notification/record_interactions"];hmh=["reel/reel_item_watch"];xz9=["reel/reel_watch_sequence"];GPZ=["like/removelike"];Dzo=["notification/remove_upcoming_event_reminder"];
K3Z=["flag/get_form"];zJ7=["miniapp/report_value"];aHZ=["navigation/resolve_url"];otu=["channel/reveal_business_email"];yGs=["in_video/search"];lHi=["search","sfv/search","unplugged/search"];cGZ=["live_chat/send_message"];T29=["live_chat/send_live_chat_vote"];W3s=["account/set_setting"];eJi=["submit_caption_correction"];ZFu=["subscription/subscribe"];xwC=["get_transcript"];M$s=["resolve_location","unplugged/resolve_location"];QQk=["subscription/unsubscribe"];pPJ=["backstage/update_post"];V$J=["channel_edit/update_channel_page_settings"];
bFJ=["comment/update_comment_reply"];L3q=["comment/update_comment"];B2J=["comment/update_comments_settings"];rG8=["creator/update_creator_channel"];sQZ=["pdg/update_enablement"];Yek=["updated_metadata"];mz7=["channel_edit/validate_channel_handle"];HFs=["verify_age"];$z8=["next","unplugged/watch_next"];F37=["whitelist/edit"];Ckq=["ypc/cancel_recurrence"];IHk=["ypc/complete_transaction"];jQ7=["ypc/get_cart"];OFs=["ypc/get_fix_instrument_params"];XPk=["ypc/get_offers"];AGi=["ypc/get_payment_instruments_params"];
Uzq=["ypc/handle_transaction"];RJs=["ypc/log_payment_server_analytics"];Seo=["ypc/pause_subscription"];nt8=["ypc/redeem_code"];iFZ=["ypc/resume_subscription"];var gtJ=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,
160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,
74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,
107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,
184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,
74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,222932,213915,225216,251244,258251,218674,251266,258250,251265,251245,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,
147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,
50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,233634,265810,194770,195350,195349,194771,166382,37671,
49953,220669,249229,213774,204572,191389,253830,253831,253832,253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,
170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,261210,210815,246127,245256,244950,
191925,167637,234545,197196,214295,110386,221054,113746,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,253789,253787,
253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,190190,225739,31961,26388,23811,5E4,126250,
96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,
8197,168501,156512,161613,156509,208274,161612,161614,262801,266131,266132,262800,262799,262802,262798,82039];var Tl=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.Jv("yt.msgs_",Tl);var uz=new _.wq("ACTION_ROUTER_TOKEN");_.de=function(){this.autonavState_=_.B("kevlar_is_pupi_enabled")?2:p$f()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.de.prototype.getState=function(){return this.autonavState_};
_.de.prototype.pause=function(x){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=x):this.autonavState_==1&&(this.disabledAutonavPauseReason_=x)};
_.de.prototype.setState=function(x,G,D){G&&(this.autoplayChangedByUser=!0);G=this.autonavState_===3||x===3;this.autonavState_!=x&&(this.autonavState_=x,x!=3&&_.Vud(x==2),x=_.B("kevlar_is_pupi_enabled")?D||G:!0,_.gu.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,x,D))};
_.de.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.JR(_.de);var we=function(){this.hasRun=!1};var q6={},j6O=(q6.auto_search="LATENCY_ACTION_AUTO_SEARCH",q6.ad_to_ad="LATENCY_ACTION_AD_TO_AD",q6.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",q6.app_startup="LATENCY_ACTION_APP_STARTUP",q6.browse="LATENCY_ACTION_BROWSE",q6.cast_splash="LATENCY_ACTION_CAST_SPLASH",q6.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",q6.channels="LATENCY_ACTION_CHANNELS",q6.chips="LATENCY_ACTION_CHIPS",q6.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",q6.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
q6.editor="LATENCY_ACTION_EDITOR",q6.embed="LATENCY_ACTION_EMBED",q6.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",q6.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",q6.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",q6.explore="LATENCY_ACTION_EXPLORE",q6.favorites="LATENCY_ACTION_FAVORITES",q6.home="LATENCY_ACTION_HOME",q6.inboarding="LATENCY_ACTION_INBOARDING",q6.landing="LATENCY_ACTION_LANDING",q6.library="LATENCY_ACTION_LIBRARY",q6.live=
"LATENCY_ACTION_LIVE",q6.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",q6.management="LATENCY_ACTION_MANAGEMENT",q6.mini_app="LATENCY_ACTION_MINI_APP_PLAY",q6.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",q6.onboarding="LATENCY_ACTION_ONBOARDING",q6.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",q6.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",q6.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",q6.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
q6.prebuffer="LATENCY_ACTION_PREBUFFER",q6.prefetch="LATENCY_ACTION_PREFETCH",q6.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",q6.profile_switcher="LATENCY_ACTION_LOGIN",q6.projects="LATENCY_ACTION_PROJECTS",q6.reel_watch="LATENCY_ACTION_REEL_WATCH",q6.results="LATENCY_ACTION_RESULTS",q6.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",q6.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",q6.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",q6.review="LATENCY_ACTION_REVIEW",q6.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",q6.search_ui="LATENCY_ACTION_SEARCH_UI",q6.search_suggest="LATENCY_ACTION_SUGGEST",q6.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",q6.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",q6.seek="LATENCY_ACTION_PLAYER_SEEK",q6.settings="LATENCY_ACTION_SETTINGS",q6.store="LATENCY_ACTION_STORE",q6.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",q6.tenx="LATENCY_ACTION_TENX",q6.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",q6.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
q6.watch="LATENCY_ACTION_WATCH",q6.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",q6["watch,watch7"]="LATENCY_ACTION_WATCH",q6["watch,watch7_html5"]="LATENCY_ACTION_WATCH",q6["watch,watch7ad"]="LATENCY_ACTION_WATCH",q6["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",q6.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",q6.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",q6.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",q6.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",q6.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",q6.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",q6.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",q6.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",q6);var kXL=function(x,G){Zr.call(this,1,arguments);this.timer=G};
_.m(kXL,Zr);var tuf=new crh("aft-recorded",kXL);var U9E=_.Df.ytLoggingGelSequenceIdObj_||{};_.Jv("ytLoggingGelSequenceIdObj_",U9E);var N6=_.Df.ytLoggingLatencyUsageStats_||{};_.Jv("ytLoggingLatencyUsageStats_",N6);var vo=function(){this.cleanupJob=0},nJQ=function(){vo.instance||(vo.instance=new vo);
return vo.instance};
_.a=vo.prototype;_.a.baseline=function(x,G,D){Jz(this,"baseline_"+x)||_.Fv("latencyActionBaselined",{clientActionNonce:x},{timestamp:G,cttAuthInfo:D})};
_.a.tick=function(x,G,D,K){Jz(this,"tick_"+x+"_"+G)||_.Fv("latencyActionTicked",{tickName:x,clientActionNonce:G},{timestamp:D,cttAuthInfo:K})};
_.a.info=function(x,G,D){var K=Object.keys(x).join("");Jz(this,"info_"+K+"_"+G)||(x=Object.assign({},x),x.clientActionNonce=G,_.Fv("latencyActionInfo",x,{cttAuthInfo:D}))};
_.a.jspbInfo=function(x,G,D){for(var K="",z=0;z<G4(x).length;z++)G4(x)[z]!==void 0&&(K=z===0?K.concat(""+z):K.concat("_"+z));Jz(this,"info_"+K+"_"+G)||(_.Z_(x,2,G),G={cttAuthInfo:D},D=_.B("jspb_sparse_encoded_pivot")?new LE([{}]):new LE,_.DB(D,7,sW7,x),RAE("latencyActionInfo",D,G))};
_.a.span=function(x,G,D){var K=Object.keys(x).join("");Jz(this,"span_"+K+"_"+G)||(x.clientActionNonce=G,_.Fv("latencyActionSpan",x,{cttAuthInfo:D}))};
var Jz=function(x,G){N6[G]=N6[G]||{count:0};var D=N6[G];D.count++;D.time=(0,_.kK)();x.cleanupJob||(x.cleanupJob=_.Bw(_.Fj,function(){var K=(0,_.kK)(),z;for(z in N6)N6[z]&&K-N6[z].time>6E4&&delete N6[z];x&&(x.cleanupJob=0)},5E3));
return D.count>5?(D.count===6&&Math.random()*1E5<1&&(D=new _.LL("CSI data exceeded logging limit with key",G.split("_")),G.indexOf("plev")>=0||_.O9(D)),!0):!1};var uHZ,dzk;uHZ=window;dzk=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.Vg=uHZ.performance||uHZ.mozPerformance||uHZ.msPerformance||uHZ.webkitPerformance||new dzk;var fCD=!1,gJf=!1,Pld=(0,_.mW)(_.Vg.clearResourceTimings||_.Vg.webkitClearResourceTimings||_.Vg.mozClearResourceTimings||_.Vg.msClearResourceTimings||_.Vg.oClearResourceTimings||_.ld,_.Vg);var wPo=window;wPo.ytcsi&&(wPo.ytcsi.infoGel=_.Hg,wPo.ytcsi.tick=_.Fs);var cDD=function(x){Zr.call(this,1,arguments);this.csn=x};
_.m(cDD,Zr);var M5L=new crh("screen-created",cDD),Hyf=[],lrC=mlL,$l3=0,Xs=new Map,TUf=new Map,WLn=new Map;var F4=Symbol("tf"),q5=new WeakMap;var fB=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},MJ=function(){fB.instance||(fB.instance=new fB);
return fB.instance};
_.a=fB.prototype;_.a.setClient=function(x){this.client=x};
_.a.JSC$10467_newScreen=function(){this.clear();this.csn=_.CC()};
_.a.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.a.reportShown=function(x,G,D){var K=this.JSC$10467_getTrackingParams(x),z=x.visualElement?x.visualElement:K;G=this.shownElements.has(z);var y=this.visibleState.get(z);this.shownElements.add(z);this.visibleState.set(z,!0);x.impressionLog&&!G&&x.impressionLog();if(K||x.visualElement)if(D=qe0(this,x,D))if(z=N2h(this,x),tz(this,x)||z){K=x.visualElement?x.visualElement:_.V2(K);var c=x.interactionLoggingClientData;z||G?tz(this,x)&4?y||LLC(this.client,D,K,c):tz(this,x)&1&&!G&&pR$(this.client,D,K,c):pR$(this.client,
D,K,c)}};
_.a.reportHidden=function(x,G,D){var K=this.JSC$10467_getTrackingParams(x),z=x.visualElement?x.visualElement:K;G=this.hiddenElements.has(z);var y=this.visibleState.get(z);this.hiddenElements.add(z);this.visibleState.set(z,!1);if(y===!1)return!0;if(!K&&!x.visualElement)return!1;D=qe0(this,x,D);if(!D||!tz(this,x)&&N2h(this,x))return!1;K=x.visualElement?x.visualElement:_.V2(K);tz(this,x)&8?BUn(this.client,D,K):tz(this,x)&2&&!G&&(x=this.client,G=OO({cttAuthInfo:IZ(D)||void 0},D),K={csn:D,ve:K.getAsJson(),
eventType:2},D==="UNDEFINED_CSN"?UO("visualElementHidden",G,K):x?Yq("visualElementHidden",K,x,G):_.Fv("visualElementHidden",K,G));return!0};
_.a.JSC$10467_getTrackingParams=function(x){var G=this.getData(x),D,K;if(_.B("il_use_view_model_logging_context")&&(G==null?0:(D=G.context)==null?0:(K=D.loggingContext)==null?0:K.loggingDirectives))return G.context.loggingContext.loggingDirectives.trackingParams||"";var z,y;if(G==null?0:(z=G.rendererContext)==null?0:(y=z.loggingContext)==null?0:y.loggingDirectives)return G.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(G==null?0:G.loggingDirectives)return G.loggingDirectives.trackingParams||
"";var c;return((c=x.veContainer)==null?0:c.trackingParams)?x.veContainer.trackingParams:(G==null?void 0:G.trackingParams)||""};
_.a.JSC$10467_elementShouldLogGesture=function(x,G){x=this.getData(x);return!!((Math.floor(Number(x&&x.loggingDirectives&&x.loggingDirectives.gestures&&x.loggingDirectives.gestures.types||""))||0)&G)};
_.a.JSC$10467_getNearestParentVe=function(x){var G=this.JSC$10467_getTrackingParams(x);return x.visualElement?x.visualElement:G?_.V2(G):x.parentElement?this.JSC$10467_getNearestParentVe(x.parentElement):null};
var qe0=function(x,G,D){var K=_.CC(D);return x.csn===null||K===x.csn||D?K:(x=new _.LL("VisibilityLogger called before newScreen",{caller:G.tagName,previous_csn:x.csn,current_csn:K}),_.O9(x),null)};
fB.prototype.getData=function(x){var G,D=x.data||((G=x.props)==null?void 0:G.data);if(!D&&_.B("enable_wiz_always_try_logging_info_map")){var K;D=(K=N5(x))==null?void 0:K[F4]}else if(x.isWebComponentWrapper){var z;D=(z=N5(x))==null?void 0:z[F4]}return D};
var N2h=function(x,G){var D;return!((D=x.getData(G))==null||!D.loggingDirectives)},tz=function(x,G){x=x.getData(G);
return Math.floor(Number(x&&x.loggingDirectives&&x.loggingDirectives.visibility&&x.loggingDirectives.visibility.types||""))||1};var kV;kV=function(){};
_.Te=function(){kV.instance||(kV.instance=new kV);return kV.instance};
kV.prototype.setClient=function(x){_.SR(MJ().setClient).bind(MJ())(x)};
_.vts=function(){_.Te();_.SR(MJ().JSC$10467_newScreen).bind(MJ())()};
kV.prototype.clear=function(){_.SR(MJ().clear).bind(MJ())()};
kV.prototype.reportShown=function(x,G,D){_.SR(MJ().reportShown).bind(MJ())(x,G,D)};
kV.prototype.reportHidden=function(x,G,D){return _.SR(MJ().reportHidden).bind(MJ())(x,G,D)};
var AJQ=function(x,G){return _.SR(MJ().JSC$10467_getTrackingParams).bind(MJ())(G)},M9d=function(x,G){return _.SR(MJ().JSC$10467_getNearestParentVe).bind(MJ())(G)};var Po,JGq;Po=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};
_.en=function(){Po.instance||(Po.instance=new Po);return Po.instance};
Po.prototype.setClient=function(x){this.client=x};
JGq=function(x,G,D){D=D===void 0?{}:D;_.SR(function(){var K,z,y,c=((K=_.Y(G==null?void 0:G.commandMetadata,_.fC))==null?void 0:K.rootVe)||((z=_.Y(G==null?void 0:G.commandMetadata,JZ9))==null?void 0:(y=z.screenVisualElement)==null?void 0:y.uiType);if(c){K=_.Y(G==null?void 0:G.commandMetadata,jb8);if(K==null?0:K.parentTrackingParams){var W=_.V2(K.parentTrackingParams);if(K.parentCsn)var e=K.parentCsn}else D.clickedVisualElement?W=D.clickedVisualElement:G.clickTrackingParams&&(W=_.V2(G.clickTrackingParams));
a:{K=_.Y(G,_.d5);z=_.Y(G,kPn);if(K){if(z=bif(K,"VIDEO")){K={token:z,videoId:K.videoId};break a}}else if(z&&(K=bif(z,"PLAYLIST"))){K={token:K,playlistId:z.playlistId};break a}K=void 0}D=Object.assign({},{cttAuthInfo:K,parentCsn:e},D);if(_.B("expectation_logging")){var Q;D.loggingExpectations=((Q=_.Y(G==null?void 0:G.commandMetadata,JZ9))==null?void 0:Q.loggingExpectations)||void 0}_.EV(x,c,W,D)}else _.O9(new _.LL("Error: Trying to create a new screen without a rootVeType",G))})()};
_.EV=function(x,G,D,K){K=K===void 0?{}:K;_.SR(function(){gtJ.includes(G)||(_.O9(new _.LL("createClientScreen() called with a non-page VE",G)),G=83769);K.isHistoryNavigation||(x.forwardHistoryStack=[],x.backHistoryStack.push({rootVe:G,key:K.key||""}));x.graftQueue=[];x.stateChangedQueue=[];K.dataPromises?fH7(x,G,D,K):t$7(x,G,D,K)})()};
_.kP9=function(x,G,D){D=D===void 0?0:D;_.SR(function(){G.then(function(K){x.pendingScreenCreation.has(D)&&x.pendingScreenFn&&x.pendingScreenFn();var z=_.CC(D),y=_.Fx(D);if(z&&y){var c;(K==null?0:(c=K.response)==null?0:c.trackingParams)&&AN(x.client,z,y,_.V2(K.response.trackingParams));var W;(K==null?0:(W=K.playerResponse)==null?0:W.trackingParams)&&AN(x.client,z,y,_.V2(K.playerResponse.trackingParams))}})})()};
Po.prototype.graftServerVe=function(x,G,D){var K=this;return _.SR(function(){var z=_.V2(x);_.hz(K,z,G,D);return z})()};
_.Qzf=function(x,G,D,K){return _.B("enable_client_ve_spec")&&G.clientVeSpec?(G=_.BH(G.clientVeSpec.uiType,void 0,G.clientVeSpec.elementIndex,G.clientVeSpec.clientYoutubeData,void 0,G),_.hz(x,G,D,K)?G:null):G.trackingParams?x.graftServerVe(G.trackingParams,D,K):null};
_.Wh=function(x,G,D,K){return _.SR(function(){if(!G.veType)return _.jm(new _.LL("Error: Trying to graft a client VE without a veType.")),null;if(G.visibilityTypes){var z=G.visibilityTypes.reduce(function(y,c){return y|c});
z={visibility:{types:String(z)}}}z=_.BH(G.veType,G.visualElement,G.elementIndex,G.clientYouTubeData,void 0,z);return _.hz(x,z,D,K)?z:null})()};
_.hz=function(x,G,D,K){K=K===void 0?0:K;return _.SR(function(){if(x.pendingScreenCreation.has(K))return x.graftQueue.push([G,D]),!0;var z=_.CC(K),y=D||_.Fx(K);if(z&&y){if(_.B("combine_ve_grafts")){var c=x.cachedVisualElements.get(y.toString());c?c.push(G):(x.cachedRootVisualElements.set(y.toString(),y),x.cachedVisualElements.set(y.toString(),[G]));x.attachTimeout||(x.attachTimeout=_.Bw(_.Fj,function(){Pks(x,z)},1200))}else AN(x.client,z,y,G);
return!0}return!1})()};
_.xP=function(x,G,D){D=D===void 0?0:D;var K=x.recurringGrafts.get(D)||new Map;if(_.B("smarter_ve_dedupping"))for(var z=Array.from(K.keys()),y=0;y<z.length;y++){var c=void 0,W=void 0;var e=G;var Q=z[y];Q.isClientVe()&&e.isClientVe()?(c=e.getAsJson(),W=Q.getAsJson(),e=c.veType!==W.veType||c.elementIndex!==W.elementIndex||c.dataElement!==W.dataElement||e.getLoggingDirectives()!==Q.getLoggingDirectives()?!1:!0):e=Q.veData.trackingParams!==void 0&&e.veData.trackingParams!==void 0?((W=e.veData)==null?void 0:
W.trackingParams)===((c=Q.veData)==null?void 0:c.trackingParams):!1;if(e)return}else if(K.has(G))return;K.set(G,void 0);x.recurringGrafts.set(D,K);_.CC(D)==="UNDEFINED_CSN"||x.pendingScreenCreation.has(D)||_.hz(x,G,void 0,D)};
_.G$=function(x,G,D,K){K=_.CC(K===void 0?0:K);if(!K)return!1;sbn(x.client,K,G,D);return!0};
_.DO=function(x,G,D,K){if(!G)return!1;K=_.CC(K===void 0?0:K);if(!K)return!1;sbn(x.client,K,_.V2(G),D);return!0};
_.X8=function(x,G){var D=G.getScreenLayer&&G.getScreenLayer();if(G.visualElement)return _.G$(x,G.visualElement,void 0,D);G=AJQ(_.Te(),G);return _.DO(x,G,void 0,D)};
Po.prototype.clickCommand=function(x,G,D){return _.DO(this,x.clickTrackingParams,G,D===void 0?0:D)};
Po.prototype.stateChanged=function(x,G,D){this.visualElementStateChanged(_.V2(x),G,D===void 0?0:D)};
Po.prototype.visualElementStateChanged=function(x,G,D){D=D===void 0?0:D;D===0&&this.pendingScreenCreation.has(D)?this.stateChangedQueue.push([x,G]):this.logStateChanged(x,G,D)};
Po.prototype.logStateChanged=function(x,G,D){D=D===void 0?0:D;var K=_.CC(D);x=x||_.Fx(D);return K&&x?(Yq3(this.client,K,x,G),!0):!1};
var fH7=function(x,G,D,K){K=K===void 0?{}:K;x.pendingScreenCreation.add(K.layer||0);x.pendingScreenFn=function(){t$7(x,G,D,K);var c=_.Fx(K.layer);if(c){for(var W=_.l(x.graftQueue),e=W.next();!e.done;e=W.next())e=e.value,_.hz(x,e[0],e[1]||c,K.layer);c=_.l(x.stateChangedQueue);for(W=c.next();!W.done;W=c.next())W=W.value,x.logStateChanged(W[0],W[1])}};
D||_.CC(K.layer)||x.pendingScreenFn();if(K.dataPromises)for(var z=_.l(K.dataPromises),y=z.next();!y.done;y=z.next())_.kP9(x,y.value,K.layer);else _.I4(Error("uf"))},t$7=function(x,G,D,K){K=K===void 0?{}:K;
var z=void 0;K.layer||(K.layer=0);z=K.parentLayer!==void 0?K.parentLayer:K.layer;var y=_.CC(z);z=_.Fx(z);var c=D||z,W;c&&(K.parentCsn!==void 0?W={clientScreenNonce:K.parentCsn,visualElement:c}:y&&y!=="UNDEFINED_CSN"&&(W={clientScreenNonce:y,visualElement:c}));var e,Q=_.Am("EVENT_ID");y==="UNDEFINED_CSN"&&Q&&(e={servletData:{serializedServletEventId:Q}});_.B("combine_ve_grafts")&&y&&Pks(x,y);_.B("no_client_ve_attach_unless_shown")&&c&&y&&QbD(c,y);try{var p=_.erf(x.client,G,W,K.csnToClone,K.cttAuthInfo,
e,K.implicitGestureType,void 0,K.loggingExpectations)}catch(r){_.Xv(r,{rootVeType:G,rootVe:z,parentVisualElement:D,currentCsn:y,parentEl:W,csnToClone:K.csnToClone});_.I4(r);return}_.jq(p,G,K.layer,K.cttAuthInfo);y&&y!=="UNDEFINED_CSN"&&z&&!Bin(y)&&BUn(x.client,y,z,!0);x.backHistoryStack[x.backHistoryStack.length-1]&&!x.backHistoryStack[x.backHistoryStack.length-1].csn&&(x.backHistoryStack[x.backHistoryStack.length-1].csn=p||"");_.Hg({clientScreenNonce:p});_.vts();var V=_.Fx(K.layer);y&&y!=="UNDEFINED_CSN"&&
V&&(_.B("web_mark_root_visible")||_.B("music_web_mark_root_visible"))&&_.nW(p,V);x.pendingScreenCreation.delete(K.layer||0);x.pendingScreenFn=void 0;var L;(L=x.recurringGrafts.get(K.layer))==null||L.forEach(function(r,H){r?_.hz(x,H,r,K.layer):V&&_.hz(x,H,V,K.layer)});
EtJ(x)},EtJ=function(x){for(var G=0;G<x.afterNewScreenOneOffJobs.length;G++){var D=x.afterNewScreenOneOffJobs[G];
try{D()}catch(K){_.I4(K)}}for(G=x.afterNewScreenOneOffJobs.length=0;G<x.afterNewScreenRecurringJobs.length;G++){D=x.afterNewScreenRecurringJobs[G];try{D()}catch(K){_.I4(K)}}},Pks=function(x,G){if(G===void 0)for(var D=bwV(),K=0;K<D.length;K++)D[K]!==void 0&&Pks(x,D[K]);
else x.cachedVisualElements.forEach(function(z,y){(y=x.cachedRootVisualElements.get(y))&&ZyE(x.client,G,y,z)}),x.cachedVisualElements.clear(),x.cachedRootVisualElements.clear(),x.attachTimeout=void 0};var KJ=function(x){x=x===void 0?{layer:0}:x;this.hasRun=!1;this.createScreenConfig=x;x={};this.gnt=(x.response=!1,x.playerResponse=!1,x)};
_.m(KJ,we);KJ.prototype.validate=function(x){return!(!x.data||!x.data.response&&!x.data.playerResponse)};
KJ.prototype.handle=function(x){var G=_.en(),D=this.createScreenConfig.layer;x.data.response&&x.data.response.trackingParams&&!this.gnt.response&&(G.graftServerVe(x.data.response.trackingParams,void 0,D),this.gnt.response=!0);x.data.playerResponse&&x.data.playerResponse.trackingParams&&!this.gnt.playerResponse&&(G.graftServerVe(x.data.playerResponse.trackingParams,void 0,D),this.gnt.playerResponse=!0)};var z$=function(){this.eR=_.Ss();this.eM=[];this.lM3=0};
z$.prototype.processChunk=function(x){if(x){for(var G=_.l(this.eM),D=G.next();!D.done;D=G.next())D=D.value,D.validate(x)&&(D.handle(x),D.hasRun=!0);_.Fs("np"+this.lM3);this.lM3++}};var $Td,GSE;_.y2=function(x,G,D,K,z,y,c){c=c===void 0?[]:c;this.buildCommandPayload=x;this.navigate=G;this.handleServiceRequest=D;this.sendAction=K;this.JSC$10506_screenManager=z;this.commandResolverMap=y;this.autoLogResolverAllowlist=c;this.pendingCommands=new Set};
$Td=function(x,G,D){var K=eLh,z=ZAh,y=_.en(),c=hJu;D=D===void 0?[]:D;_.y2.instance=new _.y2(x,G,K,z,y,c,D)};
GSE=function(x,G,D){if(!x.commandResolverMap)return!1;var K=OyL(G,x.commandResolverMap);return K?((x.autoLogResolverAllowlist.some(function(z){return!!_.Y(G,z)})||(D==null?0:D.forceClickLogging))&&xCq(x,G,D),K instanceof Promise?K.then(function(z){z.resolve(G,D)}):K.resolve(G,D),!0):!1};
_.y2.prototype.resolveCommand=function(x,G){var D=this,K=DCi(x);if(GSE(this,x,G))return!0;if(K)return Kes(this,x,G);if(!this.buildCommandPayload)return CGd(x,"Unhandled command by buildCommandPayload"),!1;var z=this.buildCommandPayload(x,G);if(G==null?0:G.commandController)z.commandController=G.commandController;if(z.type===0){if(!this.navigate)return Ird(x,"navigate"),!1;if(!zl9(z.command))return CGd(x,"Page requests need to specify a url"),!1;_.B("logging_avoid_blocking_during_navigation")&&_.PDL().transition("application_navigating");
x=this.navigate(z)||[];MXh(x).then(function(){D.pendingCommands.delete(z.command)});
return!0}if(z.type===1){if(!this.handleServiceRequest)return Ird(x,"handleServiceRequest"),!1;(G==null?0:G.forceClickLogging)&&xCq(this,z.command,G);x=this.handleServiceRequest(z);MXh(x).then(function(){D.pendingCommands.delete(z.command)});
return!0}if(z.type===2){if(!this.sendAction)return Ird(x,"sendAction"),!1;xCq(this,z.command,G);this.sendAction(z);return!0}return!1};
var xCq=function(x,G,D){if((D==null||!D.disableClickTracking)&&x.JSC$10506_screenManager)if(G.clickTrackingParams&&_.B("log_click_with_layer_from_element_in_command_handler")){var K;D=D==null?void 0:(K=D.form)==null?void 0:K.element;x.JSC$10506_screenManager.clickCommand(G,null,D&&D.getScreenLayer&&D.getScreenLayer())}else G.clickTrackingParams?x.JSC$10506_screenManager.clickCommand(G):!_.B("disable_clicked_visual_element_in_command_handler")&&(D==null?0:D.clickedVisualElement)&&_.G$(x.JSC$10506_screenManager,
D.clickedVisualElement)},DCi=function(x){var G=!!_.Y(x,_.oI),D;
x=((D=_.Y(x,_.cg))==null?void 0:D.signal)==="CLIENT_SIGNAL";return G||x},Kes=function(x,G,D){var K=_.Y(G,_.oI);
if(K)var z=(K==null?void 0:K.commands)||[];else{var y;if(((y=_.Y(G,_.cg))==null?void 0:y.signal)==="CLIENT_SIGNAL"){var c;z=((c=_.Y(G,_.cg))==null?void 0:c.actions)||[]}}if(z){G=_.l(z);for(z=G.next();!z.done;z=G.next()){z=z.value;try{x.resolveCommand(z,D)}catch(W){W instanceof Error&&_.I4(W)}}return!0}CGd(G,"Could not handle the meta command");return!1},zl9=function(x){var G;
return!((G=_.Y(x==null?void 0:x.commandMetadata,_.fC))==null||!G.url)};var ar=function(){we.apply(this,arguments)};
_.m(ar,we);ar.prototype.validate=function(x){var G,D;return!this.hasRun&&!!((G=x.data.response)==null?0:(D=G.onResponseReceivedEndpoints)==null?0:D.length)};
ar.prototype.handle=function(x){var G=_.y2.instance;x=_.l(x.data.response.onResponseReceivedEndpoints);for(var D=x.next();!D.done;D=x.next())G.resolveCommand(D.value)};var aNs,obq,yXZ;
aNs=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=_.aI();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.or=function(){obq||(obq=new aNs);return obq};
yXZ=function(){var x=_.or();x.miniplayerButtonActivation=!1;x.userActivation=!1;x.playlistWatchPageActivation=!1;x.productDetailsPageActivation=!1;x.miniAppPageActivation=!1;x.playablesDestPageActivation=!1;x.lockupActivation=!1;x.showMiniplayerCommandActivation=!1;x.playlistSuggestionsShelfActivation=!1;x.mediaSessionPipActivation=!1;x.watchPipActivation=!1;x.watchWhileActivation=!1;x.shortsPipActivation=!1};
_.lNq=function(){var x=_.or(),G=x.mediaSessionPipActivation,D=x.watchPipActivation,K=x.watchWhileActivation,z=x.playlistWatchPageActivation,y=x.lockupActivation,c=x.showMiniplayerCommandActivation,W=x.navigatingAwayFromWatchDeletedVideo,e=x.shortsPipActivation,Q=x.playlistSuggestionsShelfActivation,p=x.productDetailsPageActivation,V=x.miniAppPageActivation,L=x.playablesDestPageActivation;return!x.miniplayerButtonActivation&&!z&&!Q&&!p&&!V&&!L&&!y&&!c&&!G&&!D&&!K&&!e||W};var W0f;_.yM=JN("FEwhat_to_watch","/",3854);_.edE=JN("FEdownloads","/feed/downloads",42352);W0f=JN("FEmusic_offline","browse/FEmusic_offline",42352);var dK=function(x,G){G=G===void 0?[]:G;var D=D===void 0?[]:D;G=z0L.apply(null,[ahC.apply(null,_.B5(G))].concat(_.B5(D)));this.store=ced(x,void 0,G)};
dK.prototype.getState=function(){return this.store.getState()};
dK.prototype.dispatch=function(x){return this.store.dispatch(x)};
dK.prototype.subscribe=function(x){return this.store.subscribe(x)};
dK.prototype.replaceReducer=function(x){return this.store.replaceReducer(x)};
dK.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.la=function(x,G,D){var K=G(x.getState());return x.subscribe(function(){var z=G(x.getState());if(z!==K){var y=K;K=z;D(z,y)}})};var sc3;_.cq=function(x,G,D){return _.EO({type:"REPLACE_ENTITY",payload:{entityPayload:D,entityType:x,key:G}})};
sc3=function(x){return _.EO({type:"REPLACE_ENTITIES",payload:x})};
_.sg=function(x,G,D,K){return _.EO({type:"UPDATE_ENTITY",payload:{entityPayload:D,entityType:x,key:G,mergeOption:K}})};var NUf=function(x){var G=this;x=x===void 0?[]:x;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;x.forEach(function(D){G.append(D)})};
_.a=NUf.prototype;_.a.getLength=function(){return this.totalLength};
_.a.append=function(x){var G=this.arrays.length===0?!1:(G=this.arrays[this.arrays.length-1])&&G.buffer===x.buffer&&G.byteOffset+G.length===x.byteOffset;G?(G=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(G.buffer,G.byteOffset,G.length+x.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(x);this.totalLength+=x.length};
_.a.split=function(x){for(var G=new NUf,D=new NUf,K=_.l(this.arrays),z=K.next();!z.done;z=K.next())z=z.value,x>=z.length?(G.append(z),x-=z.length):x?(G.append(new Uint8Array(z.buffer,z.byteOffset,x)),D.append(new Uint8Array(z.buffer,z.byteOffset+x,z.length-x)),x=0):D.append(z);return{headView:G,tailView:D}};
_.a.extract=function(x,G){return this.split(x).tailView.split(G).headView};
_.a.isFocused=function(x){return x>=this.arrayPos&&x<this.arrayPos+this.arrays[this.arrayIdx].length};
_.a.focus=function(x){if(!this.isFocused(x))for(x<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=x&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var cXs=function(x,G){x.focus(G);return x.arrays[x.arrayIdx][G-x.arrayPos]};(function(){var x=function(K){return new Uint8Array(K)},G=function(K){for(var z=new Uint8Array(K.length),y=0;y<K.length;y++)z[y]=K[y];
return z},D=new Uint8Array([1]);
return D.length===1&&D[0]===1?x:G})();
var iyL=Array(1024),nGE=window.TextDecoder?new TextDecoder:void 0,uCE=window.TextEncoder?new TextEncoder:void 0;var qqL=function(x){this.arrayView=x;this.pos=0;this.pendingTagAndType=-1},hN=function(x){var G=cXs(x.arrayView,x.pos);
++x.pos;if(G<128)return G;for(var D=G&127,K=1;G>=128;)G=cXs(x.arrayView,x.pos),++x.pos,K*=128,D+=(G&127)*K;return D},vGf=function(x,G){var D=x.pendingTagAndType;
for(x.pendingTagAndType=-1;x.pos+1<=x.arrayView.totalLength;){D<0&&(D=hN(x));var K=D>>3,z=D&7;if(K===G)return!0;if(K>G){x.pendingTagAndType=D;break}D=-1;switch(z){case 0:hN(x);break;case 1:x.pos+=8;break;case 2:K=hN(x);x.pos+=K;break;case 5:x.pos+=4}}return!1};var frV=function(){this.pos=0;this.submessagePosStack=[];this.buf=wRP(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},D2=function(x,G){G=x.pos+G;
if(!(x.buf.length>=G)){for(var D=x.buf.length*2;D<G;)D*=2;x.buf=wRP(D,x.buf.subarray(0,x.pos));x.view=new DataView(x.buf.buffer,x.buf.byteOffset,x.buf.byteLength)}},Gm=function(x,G){if(G>268435455){D2(x,4);
for(var D=G&1073741823,K=0;K<4;K++)x.view.setUint8(x.pos,D&127|128),D>>=7,x.pos+=1;G=Math.floor(G/268435456)}for(D2(x,4);G>127;)x.view.setUint8(x.pos,G&127|128),G>>=7,x.pos+=1;x.view.setUint8(x.pos,G);x.pos+=1};for(var tYQ={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,
fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,
mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,
musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,suggestedFeedbackChipStateEntity:485,
transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},JDf={},TVi=_.l(Object.entries(tYQ)),Weo=TVi.next();!Weo.done;Weo=TVi.next()){var elJ=_.l(Weo.value),Zhu=elJ.next().value,MM9=elJ.next().value,QJE=Zhu,px0=MM9;px0&&(JDf[px0]=QJE)};var PGO=function(x,G){x=x===void 0?{}:x;switch(G.type){case "ENTITY_LOADED":return G.payload.reduce(function(K,z){var y,c=(y=z.options)==null?void 0:y.persistenceOption;if(c&&c!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&c!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return K;if(!z.entityKey)return _.I4(Error("wf")),K;if(z.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!z.payload)return z=new _.LL("REPLACE entity mutation is missing a payload",{entityKey:z.entityKey}),_.I4(z),K;var W=(0,_.YS.getAnyKey)(z.payload);
return hrC(K,W,z.entityKey,z.payload[W])}if(z.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{z=z.entityKey;try{var e=_.x_(z).entityType;W=hrC(K,e,z);break a}catch(V){if(V instanceof Error){z=new _.LL("Failed to deserialize entity key",{entityKey:z,originalMessage:V.message});_.I4(z);W=K;break a}throw V;}W=void 0}return W}if(z.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!z.payload)return z=new _.LL("UPDATE entity mutation is missing a payload",{entityKey:z.entityKey}),_.I4(z),K;W=(0,_.YS.getAnyKey)(z.payload);
var Q,p;return xMf(K,W,z.entityKey,z.payload[W],(Q=z.fieldMask)==null?void 0:(p=Q.mergeOptions)==null?void 0:p.repeatedFieldsMergeOption)}return K},x);
case "REPLACE_ENTITY":var D=G.payload;return hrC(x,D.entityType,D.key,D.entityPayload);case "REPLACE_ENTITIES":return Object.keys(G.payload).reduce(function(K,z){var y=G.payload[z];return Object.keys(y).reduce(function(c,W){return hrC(c,z,W,y[W])},K)},x);
case "UPDATE_ENTITY":return D=G.payload,xMf(x,D.entityType,D.key,D.entityPayload,D.mergeOption);default:return x}};var GIV;var VMq=!1,cG,T$,WG,eK,ZO,bho=function(x){_.Ya.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!VMq){var G,D=new Uint8Array(256),K=new Uint8Array(256);var z=1;for(G=0;G<256;G++)D[z]=G,K[G]=z,z^=z<<1^(z>>7&&283);cG=new Uint8Array(256);T$=a_(256);WG=a_(256);eK=a_(256);ZO=a_(256);for(var y=0;y<256;y++){z=y?K[255^D[y]]:0;z^=z<<1^z<<2^z<<3^z<<4;z=z&255^z>>>8^99;cG[y]=z;G=z<<1^(z>>7&&283);var c=G^z;T$[y]=G<<24|z<<16|z<<8|c;WG[y]=c<<24|T$[y]>>>8;eK[y]=z<<24|WG[y]>>>
8;ZO[y]=z<<24|eK[y]>>>8}VMq=!0}z=a_(44);for(D=0;D<4;D++)z[D]=x[4*D]<<24|x[4*D+1]<<16|x[4*D+2]<<8|x[4*D+3];for(K=1;D<44;D++)x=z[D-1],D%4||(x=(cG[x>>16&255]^K)<<24|cG[x>>8&255]<<16|cG[x&255]<<8|cG[x>>>24],K=K<<1^(K>>7&&283)),z[D]=z[D-4]^x;this.key=z};
_.m(bho,_.Ya);
bho.prototype.encrypt=function(x){var G=x.length;x=new Uint8Array(x.buffer.slice(x.byteOffset,x.byteOffset+G));for(var D=this.cipherBlock,K=0;K<G&&this.blockOffset<16;)x[K++]^=D[this.blockOffset++];for(var z=G-(G-K)%16;K<z;)LeZ(this),x[K++]^=D[0],x[K++]^=D[1],x[K++]^=D[2],x[K++]^=D[3],x[K++]^=D[4],x[K++]^=D[5],x[K++]^=D[6],x[K++]^=D[7],x[K++]^=D[8],x[K++]^=D[9],x[K++]^=D[10],x[K++]^=D[11],x[K++]^=D[12],x[K++]^=D[13],x[K++]^=D[14],x[K++]^=D[15];if(K<G)for(LeZ(this),this.blockOffset=0;K<G;)x[K++]^=
D[this.blockOffset++];return x};
var BVZ=function(x,G){for(var D=0;D<4;D++)x.counter[D]=G[D*4]<<24|G[D*4+1]<<16|G[D*4+2]<<8|G[D*4+3];x.blockOffset=16},LeZ=function(x){for(var G=x.key,D=x.counter[0]^G[0],K=x.counter[1]^G[1],z=x.counter[2]^G[2],y=x.counter[3]^G[3],c=3;c>=0&&!(x.counter[c]=-~x.counter[c]);c--);
for(var W,e,Q=4;Q<40;)c=T$[D>>>24]^WG[K>>16&255]^eK[z>>8&255]^ZO[y&255]^G[Q++],W=T$[K>>>24]^WG[z>>16&255]^eK[y>>8&255]^ZO[D&255]^G[Q++],e=T$[z>>>24]^WG[y>>16&255]^eK[D>>8&255]^ZO[K&255]^G[Q++],y=T$[y>>>24]^WG[D>>16&255]^eK[K>>8&255]^ZO[z&255]^G[Q++],D=c,K=W,z=e;x=x.cipherBlock;c=G[40];x[0]=cG[D>>>24]^c>>>24;x[1]=cG[K>>16&255]^c>>16&255;x[2]=cG[z>>8&255]^c>>8&255;x[3]=cG[y&255]^c&255;c=G[41];x[4]=cG[K>>>24]^c>>>24;x[5]=cG[z>>16&255]^c>>16&255;x[6]=cG[y>>8&255]^c>>8&255;x[7]=cG[D&255]^c&255;c=G[42];
x[8]=cG[z>>>24]^c>>>24;x[9]=cG[y>>16&255]^c>>16&255;x[10]=cG[D>>8&255]^c>>8&255;x[11]=cG[K&255]^c&255;c=G[43];x[12]=cG[y>>>24]^c>>>24;x[13]=cG[D>>16&255]^c>>16&255;x[14]=cG[K>>8&255]^c>>8&255;x[15]=cG[z&255]^c&255};var rXs=!1;(function(){var x=function(K){return new Uint8Array(K)},G=function(K){for(var z=new Uint8Array(K.length),y=0;y<K.length;y++)z[y]=K[y];
return z},D=new Uint8Array([1]);
return D.length===1&&D[0]===1?x:G})();
var MZ;var sJi=function(x){this.JSC$10574_aesKey=x};
sJi.prototype.encrypt=function(x,G){var D=this,K,z;return _.T(function(y){if(y.nextAddress==1){a:{if(!rXs&&!NU){if(MZ){var c=MZ;break a}MZ=(c=window.crypto)==null?void 0:c.subtle;var W,e,Q;if(((W=MZ)==null?0:W.importKey)&&((e=MZ)==null?0:e.sign)&&((Q=MZ)==null?0:Q.encrypt)){c=MZ;break a}MZ=void 0}c=void 0}K=c;if(!K)return y.return(YCE(D,x,G));_.Kl(y,3);return _.Z(y,mC0(D,x,G,K),5)}if(y.nextAddress!=3)return y.return(y.yieldResult);z=_.lX(y);_.O9(z);rXs=!0;return y.return(YCE(D,x,G))})};
var mC0=function(x,G,D,K){var z,y;return _.T(function(c){switch(c.nextAddress){case 1:if(x.cryptoKey){c.jumpTo(2);break}return _.Z(c,K.importKey("raw",x.JSC$10574_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:x.cryptoKey=c.yieldResult;case 2:return z={name:"AES-CTR",counter:D,length:128},_.Z(c,K.encrypt(z,x.cryptoKey,G),4);case 4:return y=c.yieldResult,c.return(new Uint8Array(y))}})},YCE=function(x,G,D){x.encryptorPolyfill||(x.encryptorPolyfill=new bho(x.JSC$10574_aesKey));
BVZ(x.encryptorPolyfill,D);return x.encryptorPolyfill.encrypt(G)},HhE=function(x){this.JSC$10578_aesKey=x};
HhE.prototype.encrypt=function(x,G){this.encryptor||(this.encryptor=new bho(this.JSC$10578_aesKey));BVZ(this.encryptor,G);return this.encryptor.encrypt(x)};var $Ck={},zqD=tv("yt-idb-pref-storage",{objectStores:($Ck.prefs={addedAtVersion:1},$Ck),shared:!1,upgrade:function(x,G){G(1)&&Sl(Up(x,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.QM=function(x){this.token=x};
_.QM.getInstance=function(){return _.T(function(x){return x.return(new Promise(function(G){_.fL().then(function(D){D?(_.QM.instance||(_.QM.instance=new _.QM(D)),G(_.QM.instance)):G(void 0)})}))})};
_.QM.prototype.get=function(x){var G=this,D,K,z;return _.T(function(y){if(y.nextAddress==1)return _.Z(y,aKf(G.token),2);if(y.nextAddress!=3)return D=y.yieldResult,_.Z(y,D.get("prefs",x),3);K=y.yieldResult;if(!K)return y.return();z=(0,_.kK)();return K.expirationTimestampMs<=z?y.return():y.return(K.value)})};
_.QM.prototype.set=function(x,G,D){D=D===void 0?31536E3:D;var K=this,z,y,c;return _.T(function(W){if(W.nextAddress==1)return z=(0,_.kK)(),y={key:x,value:G,expirationTimestampMs:z+D*1E3},_.Z(W,aKf(K.token),2);c=W.yieldResult;return _.Z(W,c.put("prefs",y),0)})};
_.QM.prototype.remove=function(x){var G=this,D;return _.T(function(K){if(K.nextAddress==1)return _.Z(K,aKf(G.token),2);D=K.yieldResult;return _.Z(K,D.delete("prefs",x),0)})};var pJ={},Feq=(pJ.INVALID_ENCODER_VERSION="Invalid encoder version",pJ.KEY_CREATION_FAILED="Failed to create encoder key",pJ.UNKNOWN_DECODE_ERROR="Failed to decode PES data",pJ.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",pJ.WRONG_DATA_TYPE="Encoder cannot process the data type",pJ),o_=function(x,G){G=G===void 0?{}:G;_.LL.call(this,Feq[x],Object.assign({},{name:"PESEncoderError",type:x},G));this.type=x;this.level="WARNING";Object.setPrototypeOf(this,o_.prototype)};
_.m(o_,_.LL);var C9q=function(){},INh=function(x,G,D){try{return x.encodeImpl(G,D)}catch(K){cyL(K,yyO)}},jJs=function(x,G,D){var K;
return _.T(function(z){if(z.nextAddress==1)return _.Kl(z,2),_.Z(z,x.decodeAsyncImpl(G,D),4);if(z.nextAddress!=2)return z.return(z.yieldResult);K=_.lX(z);cyL(K,lKn);_.c5(z)})};
C9q.prototype.decodeAsyncImpl=function(x,G){return Promise.resolve(this.decodeImpl(x,G))};var VM=function(x,G){this.aesEncryptor=x;this.aesEncryptorAsync=G};
_.m(VM,C9q);VM.prototype.encodeImpl=function(x,G){G=TrD(G);x=(new TextEncoder).encode(JSON.stringify(x));return this.aesEncryptor.encrypt(x,G)};
VM.prototype.decodeImpl=function(x,G){if(!(x instanceof Uint8Array))throw oyh(1);var D=new TextDecoder;G=TrD(G);x=this.aesEncryptor.encrypt(x,G);return JSON.parse(D.decode(x))};
VM.prototype.decodeAsyncImpl=function(x,G){var D=this,K,z,y;return _.T(function(c){if(c.nextAddress==1){if(!(x instanceof Uint8Array))throw oyh(1);K=new TextDecoder;z=TrD(G);return _.Z(c,D.aesEncryptorAsync.encrypt(x,z),2)}y=c.yieldResult;return c.return(JSON.parse(K.decode(y)))})};var WKD={accountLinkStatusEntity:Kq9,booleanEntity:Aeu,buttonEntity:d7q,captionTrack:Oiq,channelHandle:LJZ,chipEntity:BHi,commerceAcquisitionClientPayloadEntity:ezE,commerceCartListEntity:ZBJ,contextNoteFeedEntityPayload:$tZ,continuationTokenEntity:Zw7,downloadQualityPickerEntity:D_E,downloadsPageRefreshTokenEntity:zyo,downloadsPageViewConfigurationEntity:sYZ,downloadStatusEntity:K5Z,dismissState:r7i,sfvAudioItemCurrentlyPlayingEntity:TUZ,emojiFountainDataEntity:igu,emojiCustomizationSetEntity:no9,
fakeChannel:Sku,fakePlaylist:np8,fakePlaylistEntryCollection:irZ,fakeVideo:uV9,fakeVideoDescription:dVh,featuredProductsEntity:wA0,flowStateEntity:h0s,iconBadgeEntity:M17,interstitialInteractionStateEntity:rZi,likeButtonAnimationEntity:YRE,liveChatPollStateEntity:IFE,liveViewerLeaderboardChatEntryPointStateEntity:vJs,liveViewerLeaderboardPointsEntity:Jx7,liveReactionsDataEntity:goi,logoEntity:Lqs,macroMarkerEntity:m_k,mainDownloadsLibraryEntity:azs,mainDownloadsListEntity:oh7,mainPlaylistDownloadStateEntity:lz7,
mainPlaylistEntity:MHs,mainPlaylistVideoEntity:QYZ,mainVideoDownloadStateEntity:c3i,mainVideoEntity:L5h,markersEngagementPanelSyncEntity:Hw7,markersVisibilityOverrideEntity:$_Z,musicAlbumReleaseDetail:x9J,musicAlbumReleaseDownloadMetadataEntity:tHi,musicAlbumRelease:hyk,musicAlbumReleaseUserDetail:GXZ,musicArtistDetail:KRs,musicArtist:D9E,musicArtistUserDetail:zA8,musicDownloadsLibraryEntity:k2E,musicLibraryEdit:aCJ,musicLibraryStatusEntity:oJZ,musicPlaylist:yxi,musicPlaylistDownloadMetadataEntity:PvZ,
musicShare:cxZ,musicTrackDetail:WRq,musicTrackDownloadMetadataEntity:EhZ,musicTrack:Tqs,musicTrackUserDetail:eAs,offlineOrchestrationActionWrapperEntity:X$8,offlineVideoPolicy:AxZ,offlineVideoStreams:U9h,offlineabilityEntity:Ti8,orchestrationWebSamplingEntity:W5o,pageHeaderEntity:Im0,pdpStateEntity:QLk,pinnedProductEntity:qR9,playbackData:RAh,playerStateEntity:F5k,quantityIncrementerEntity:po0,refresh:StZ,saveToPlaylistListEntity:Oys,selectedChipIndexEntityPayload:Cvq,settingEntity:D70,stringEntity:UVs,
suggestedFeedbackChipStateEntity:Iz7,transfer:nJk,trendingOfferEntity:Nih,videoDownloadContextEntity:iiq,videoOverviewAsyncDataEntity:ugZ,videoPlaybackPositionEntity:NHs,votingEntity:A7q,ytMainChannelEntity:Bi9,youchatPendingResponseEntity:jYo,ytMainDownloadedVideoEntity:eyJ,ytMainVideoEntity:r3s};var Oh9,AXq,Wk,LKf,Brh,SCZ,ihs,nbq,Rlk;Oh9=function(x,G){this.JSC$10597_wrapped=x;this.JSC$10597_encoderRegistry=G;this.changedKeys={}};
AXq=function(x,G){a:{x=Xxu(x.JSC$10597_encoderRegistry,G.version);try{var D=x.decodeImpl(G.data,G.key);break a}catch(K){cyL(K,lKn)}D=void 0}return D};
_.UCu=function(x,G,D){return x.JSC$10597_wrapped.objectStore("EntityStore").get(G).then(function(K){if(K){if(D&&K.entityType!==D)throw Error("xf");return AXq(x,K)}})};
Wk=function(x,G,D){return D?(D=D.map(function(K){return _.UCu(x,K,G)}),Uj.all(D)):x.JSC$10597_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(G)).then(function(K){return K.map(function(z){return AXq(x,z)})})};
_.bZD=function(x,G,D){var K=ksL(G),z=Xxu(x.JSC$10597_encoderRegistry,1),y=Object.assign({},G);return x.JSC$10597_wrapped.objectStore("EntityStore").get(K).then(function(c){if(c){if(c.entityType!==D)throw Error("xf");y.entityMetadata||(c=AXq(x,c),y.entityMetadata=c.entityMetadata)}}).then(function(){var c={key:K,
entityType:D,data:INh(z,y,K),version:1};return Uj.all([x.JSC$10597_wrapped.objectStore("EntityStore").put(c),Rlk(x,y,D)])}).then(function(){SCZ(x,K,D);
return K})};
LKf=function(x,G){var D=_.x_(G).entityType;return Uj.all([x.JSC$10597_wrapped.objectStore("EntityStore").delete(G),nbq(x,G)]).then(function(){SCZ(x,G,D)})};
Brh=function(x,G,D,K){var z=Xxu(x.JSC$10597_encoderRegistry,1);return _.UCu(x,G,K).then(function(y){if(y){y=SqP(y,D);var c={key:G,entityType:K,data:INh(z,y,G),version:1};return Uj.all([x.JSC$10597_wrapped.objectStore("EntityStore").put(c),Rlk(x,y,K)])}}).then(function(){SCZ(x,G,K);
return G})};
SCZ=function(x,G,D){var K=x.changedKeys[D];K||(K=new Set,x.changedKeys[D]=K);K.add(G)};
ihs=function(x,G,D){var K=ksL(G);D=eqf(D);if(!D)return Uj.resolve([]);D=new D(G);x=x.JSC$10597_wrapped.objectStore("EntityAssociationStore");G=[];D=_.l(D.getAssociations());for(var z=D.next();!z.done;z=D.next())G.push(x.put({parentEntityKey:K,childEntityKey:z.value}));return Uj.all(G).then(function(y){return y.map(function(c){return c[1]})})};
nbq=function(x,G){return x.JSC$10597_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(G))};
Rlk=function(x,G,D){var K=ksL(G);return nbq(x,K).then(function(){return ihs(x,G,D)})};var gbZ=function(){};
_.m(gbZ,C9q);gbZ.prototype.encodeImpl=function(x){return x};
gbZ.prototype.decodeImpl=function(x){if(x instanceof Uint8Array)throw oyh(0);return x};var Qcd=function(){this.cacheMap={};this.cacheMap[0]=new gbZ;if(!_.B("aes_pes_encoder_killswitch")){var x=this.cacheMap;try{var G=_.VR();var D=TrD(G);var K=new VM(new HhE(D),new sJi(D))}catch(z){throw x=z instanceof Error?new o_("KEY_CREATION_FAILED",{originalMessage:z.message}):new o_("KEY_CREATION_FAILED"),_.I4(x),x;}x[1]=K}},Xxu=function(x,G){G=G===void 0?0:G;
x=x.cacheMap[G];if(!x)throw G=new o_("INVALID_ENCODER_VERSION",{encoderVersion:G}),_.I4(G),G;return x};var l7=function(x,G){_.Ya.call(this);this.token=x;this.JSC$10611_encoderRegistry=G;this.observers=[];x=new _.Df.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.VR());x.onmessage=this.handleMessage.bind(this);this.channel=x};
_.m(l7,_.Ya);_.Tm=function(x,G,D){var K,z,y,c;return _.T(function(W){if(W.nextAddress==1)return _.Z(W,KK$(x.token),2);if(W.nextAddress!=3)return K=W.yieldResult,_.Z(W,_.dx(K,["EntityStore","EntityAssociationStore"],G,function(e){z=new Oh9(e,x.JSC$10611_encoderRegistry);return D(z)}),3);
y=W.yieldResult;z&&(c=z.changedKeys,Object.keys(c).length>0&&(x.channel.postMessage(c),ut8(x,c)));return W.return(y)})};
l7.prototype.observe=function(x){var G=this;this.observers.push(x);return function(){var D=G.observers.indexOf(x);D>=0&&G.observers.splice(D,1)}};
var ZIL=function(x){var G;return _.T(function(D){if(D.nextAddress==1)return _.Z(D,_.Tm(x,{mode:"readonly",enableRetries:!0},function(K){return K.JSC$10597_wrapped.objectStore("EntityStore").getAll()}),2);
G=D.yieldResult;return D.return(Promise.all(G.filter(function(K){return!!K}).map(function(K){var z,y;
return _.T(function(c){if(c.nextAddress==1){z=K.key;y=K.entityType;var W=jJs(Xxu(x.JSC$10611_encoderRegistry,K.version),K.data,K.key);return _.Z(c,W,2)}return c.return({key:z,entityType:y,data:c.yieldResult})})})))})};
l7.prototype.handleMessage=function(x){ut8(this,x.data)};
var ut8=function(x,G){x=_.l(x.observers);for(var D=x.next();!D.done;D=x.next())D=D.value,D(G)};
l7.prototype.disposeInternal=function(){this.channel.close()};
var ZZn;var ba,wxs,fmO,ppE;ba={};_.dCs=(ba.mainVideoEntity="mainVideoEntityActionMetadata",ba.mainPlaylistEntity="mainPlaylistEntityActionMetadata",ba.musicTrack="musicTrackEntityActionMetadata",ba.musicPlaylist="musicPlaylistEntityActionMetadata",ba);wxs=new _.wq("DOWNLOADS_ENTITY_TYPE_MAP");fmO=_.K3("","downloadsPageViewConfigurationEntity");ppE=_.K3("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.PKC=_.K3("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.K3("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.K3("SMART_DOWNLOADS_ENABLED","settingEntity");_.K3("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var HZh=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var c7n=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var non={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var LJ,RzD,j_Z,MkP;LJ=window;_.XX=LJ.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.JzV=LJ.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.i7;RzD=LJ.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||bQ;j_Z=LJ.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||I2s;_.qC9=LJ.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.JNq;MkP=LJ.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||kl7;S5({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 kch=SVf(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(x){return x}}}),UNh=SVf(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(x){return x}}}),ugP=new Map;var EVd=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],vVC;var NVo=function(x){return _.EO({type:"SET_EPHEMERAL_ACTION",payload:x})};var vbk={ephemeralAction:null};var JXh={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var BQD={sharedUi:function(x,G){x=x===void 0?JXh:x;switch(G.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},x,{animatedThumbnailEnabled:G.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},x,{inlinePreviewEnabled:G.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},x,{currentPageType:G.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},x,{currentPageSubType:G.payload});default:return x}},
a11y:cy({ephemeralAction:function(x,G){x=x===void 0?vbk.ephemeralAction:x;switch(G.type){case "SET_EPHEMERAL_ACTION":return G.payload;default:return x}}})};var ZJL=cy({isLeaderTab:function(x,G){x=x===void 0?!0:x;switch(G.type){case "SET_IS_LEADER_TAB":var D,K;return(K=G==null?void 0:(D=G.payload)==null?void 0:D.isLeaderTab)!=null?K:x;default:return x}}});var fN8=function(x){return _.EO({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:x}})};var LaO=cy({isDesktopSmallWidth:function(x,G){switch(G.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return G.payload.isDesktopSmallWidth;default:return x===void 0?!1:x}},
isShortsActive:function(x,G){switch(G.type){case "SET_IS_SHORTS_ACTIVE":return G.payload.isShortsActive;default:return x===void 0?!1:x}},
isWatchWhileMode:function(x,G){switch(G.type){case "SET_IS_WATCH_WHILE_MODE":return G.payload.isWatchWhileMode;default:return x===void 0?!1:x}},
playerState:function(x,G){switch(G.type){case "SET_PLAYER_STATE":return G.payload.playerState;default:return x===void 0?-1:x}},
isFullscreen:function(x,G){switch(G.type){case "SET_IS_FULLSCREEN":return G.payload.isFullscreen;default:return x===void 0?!1:x}},
isSmallScreenSqueezeback:function(x,G){switch(G.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return G.payload.isSmallScreenSqueezeback;default:return x===void 0?!1:x}},
isShortsPipActive:function(x,G){switch(G.type){case "SET_IS_SHORTS_PIP_ACTIVE":return G.payload.isShortsPipActive;default:return x===void 0?!1:x}},
isPlaybackStarted:function(x,G){switch(G.type){case "SET_IS_PLAYBACK_STARTED":return G.payload.isPlaybackStarted;default:return x===void 0?!1:x}}});var zmn={playlistId:"",inviteLinkURL:""};var tMi={};var emE=cy({continuationCommand:function(x,G){x=x===void 0?tMi:x;switch(G.type){case "SET_CONTINUATION_COMMAND":return G.payload.continuationCommand;default:return x}}});var srC=function(){return function(x){return function(G){var D=x(G);_.xO(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[G],!0);return D}}};var kSJ,rBn;kSJ=new _.Kt;_.k7=new _.wq("WATCH_PLAYER_PROMISE_TOKEN");_.P9Z=new _.Kt;_.Eb8=new _.wq("SHORTS_PLAYER_PROMISE_TOKEN");rBn=new _.wq("");var Y3V=function(){return function(x){return function(G){G.type==="ENTITY_LOADED"&&_.Eo().resolve(_.k7).then(function(D){var K;(K=D.dispatchReduxAction)==null||K.call(D,G)});
return x(G)}}};var oP3={currentFormId:"",commandsMap:{}};var hlk={};var MK3=cy({additionalContext:function(x,G){switch(G.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var D;return(D=G.payload)!=null?D:"";default:return x===void 0?"":x}},
impersonatedChannelUrl:function(x,G){switch(G.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var D;return(D=G.payload)!=null?D:"";default:return x===void 0?"":x}},
selectedVideoIds:function(x,G){x=x===void 0?hlk:x;switch(G.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var D={};return Object.assign({},x,(D[G.payload]=!0,D));case "VIDEO_UNSELECTED":return G=G.payload,x=Object.assign({},x),delete x[G],x;default:return x}}});var Qrh=cy({parentClickTrackingParams:function(x,G){switch(G.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return G.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return x===void 0?"":x}}});var xEE=function(x){return _.EO({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:x})};var Gk0={};var pGf=cy({stepStates:function(x,G){x=x===void 0?Gk0:x;switch(G.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var D=x,K=G.payload,z,y,c;x={};G={selectionStates:Object.assign({},(c=(z=D[K.stepId])==null?void 0:z.selectionStates)!=null?c:{},(x[K.token]={isSelected:K.isSelected},x)),userQuery:(y=D[K.stepId])==null?void 0:y.userQuery};z={};return Object.assign({},D,(z[K.stepId]=G,z));case "TALK_TO_RECS_UPDATE_USER_QUERY":return z=x,y=G.payload,c={selectionStates:Object.assign({},
(K=(D=z[y.stepId])==null?void 0:D.selectionStates)!=null?K:{}),userQuery:{userQuery:y.userQuery,token:y.userQueryToken}},D={},Object.assign({},z,(D[y.stepId]=c,D));default:return x}}});var DEq,K1Z,aei;DEq=function(x){return _.EO({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:x})};
K1Z=function(x){return _.EO({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:x})};
_.s$=function(x){return _.EO({type:"SET_CURRENT_PAGE_TYPE",payload:x})};
_.zK7=function(x){return _.EO({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:x})};
aei=function(x){return _.EO({type:"SET_CHIP_BAR_IS_STICKY",payload:x})};var lOP={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"};_.olE=function(x){return _.EO({type:"SET_PLAYER_STATE",payload:{playerState:x}})};var yp7=[],leh={width:0,height:0};var VKn=cy({isTheaterMode:function(x,G){x=x===void 0?_.B("kevlar_disable_theater_mode_persistence")?!1:_.Uo("START_IN_THEATER_MODE"):x;switch(G.type){case "SET_IS_THEATER_MODE":return G.payload.isTheaterMode;default:return x}},
isWatchActive:function(x,G){switch(G.type){case "SET_IS_WATCH_ACTIVE":return G.payload.isWatchActive;default:return x===void 0?!1:x}},
isLearningJourneyActive:function(x,G){switch(G.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return G.payload.isLearningJourneyActive;default:return x===void 0?!1:x}},
isWatchFullscreen:function(x,G){switch(G.type){case "SET_IS_WATCH_FULLSCREEN":return G.payload.isWatchFullscreen;default:return x===void 0?!1:x}},
isWatchNarrowWidth:function(x,G){switch(G.type){case "SET_IS_WATCH_NARROW_WIDTH":return G.payload.isWatchNarrowWidth;default:return x===void 0?!1:x}},
isWatchRetroMode:function(x,G){switch(G.type){case "SET_IS_WATCH_RETRO_MODE":return G.payload.isWatchRetroMode;default:return x===void 0?!1:x}},
isLiveChatCollapsed:function(x,G){switch(G.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return G.payload.isLiveChatCollapsed;default:return x===void 0?!1:x}},
openEngagementPanels:function(x,G){x=x===void 0?yp7:x;var D=[].concat(_.B5(x));switch(G.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return D.push(G.payload.panelToAdd),D;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return D.splice(D.indexOf(G.payload.panelToRemove),1),D;default:return x}},
playerState:function(x,G){switch(G.type){case "SET_PLAYER_STATE":return G.payload.playerState;default:return x===void 0?-1:x}},
watchScrollTop:function(x,G){switch(G.type){case "SET_WATCH_SCROLL_TOP":return G.payload.watchScrollTop;default:return x===void 0?0:x}},
watchWindowSize:function(x,G){x=x===void 0?leh:x;switch(G.type){case "SET_WATCH_WINDOW_SIZE":return G.payload.watchWindowSize;default:return x}}});var cpu={feedbackTokens:[]};var bJ3=cy({surveyFeedbackData:function(x,G){x=x===void 0?cpu:x;switch(G.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return G.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},x,G.payload);default:return x}}});var TQP={};var HJL=void 0;_.B("web_enable_redux_store_on_demand")||(HJL=mZd());var TE8=function(x,G,D){var K=this;this.listId=x;this.JSC$10745_updateCallback=G;this.isOfflineVideoCallback=D;_.wK().subscribe(function(){K.handleUpdate()})};
TE8.prototype.getPlaylistData=function(){var x=_.wK().getState().entities;if(this.listId&&this.listId!=="PPSV"){var G=$7L(x,this.listId,!0),D=_.K3(this.listId,"mainPlaylistEntity"),K,z;x=x==null?void 0:(K=x.mainPlaylistEntity)==null?void 0:(z=K[D])==null?void 0:z.title;return $ZP(G,x,this.listId)}G=_.THf(GcV(x));x=_.THf(_.Bk(x));return $ZP(G.concat(x))};
TE8.prototype.getPlaylistId=function(){return this.listId};
TE8.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10745_updateCallback(this.listId,this.getPlaylistData(),{})};var BG=function(x,G,D,K){K=K===void 0?[]:K;this.JSC$10748_playlistNetworkManager=x;this.listId=G;this.JSC$10748_updateCallback=D;this.videoIds=K;this.pendingUpdates=[];this.currentIndex=0};
BG.prototype.JSC$10748_setCurrentIndex=function(x){this.currentIndex=x};
BG.prototype.setListId=function(x){this.listId=x};
var W1k=function(x,G){x.currentCreateRequest&&x.currentCreateRequest.cancel(G);x.currentUpdateRequest&&x.currentUpdateRequest.cancel(G);x.currentRefreshRequest&&x.currentRefreshRequest.cancel(G)};
BG.prototype.delete=function(){W1k(this,"PROXY DELETED")};
BG.prototype.addVideos=function(x,G,D){var K=this;D!==void 0?this.videoIds.splice.apply(this.videoIds,[D,0].concat(_.B5(x))):this.videoIds.push.apply(this.videoIds,_.B5(x));this.listId||this.currentCreateRequest?(x.forEach(function(z,y){z={addedVideoId:z,action:"ACTION_ADD_VIDEO"};D&&(z.addedVideoPosition=D+y);K.pendingUpdates.push(z)}),rQ(this)):eKZ(this,G.onCreateListCommand)};
var ZS7=function(x,G,D,K,z){YDL(x.videoIds,G,D);G>x.currentIndex&&D<=x.currentIndex?x.JSC$10748_setCurrentIndex(x.currentIndex+1):G===x.currentIndex?x.JSC$10748_setCurrentIndex(D):G<x.currentIndex&&D>=x.currentIndex&&x.JSC$10748_setCurrentIndex(x.currentIndex-1);x.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:K,movedSetVideoIdPredecessor:z});rQ(x)},eKZ=function(x,G){W1k(x,"OBSOLETE");
x.currentCreateRequest=Myq(x.JSC$10748_playlistNetworkManager,G,x.videoIds);_.M_(x.currentCreateRequest,function(){x.currentCreateRequest=void 0}).then(function(D){x.setListId(D.playlistId);
x.pendingUpdates.length>0?rQ(x):QGs(x)})},rQ=function(x){if(x.pendingUpdates.length!==0&&(x.currentRefreshRequest&&x.currentRefreshRequest.cancel("OBSOLETE"),!x.currentUpdateRequest&&!x.currentCreateRequest)){var G=x.pendingUpdates.splice(0,x.pendingUpdates.length);
x.currentUpdateRequest=x.JSC$10748_playlistNetworkManager.updatePlaylist(x.listId,G);_.M_(x.currentUpdateRequest,function(){x.currentUpdateRequest=void 0}).then(function(){x.pendingUpdates.length>0?rQ(x):QGs(x)}).thenCatch(function(){x.pendingUpdates.unshift.apply(x.pendingUpdates,_.B5(G))})}},QGs=function(x){x.currentRefreshRequest=_.pTi(x.JSC$10748_playlistNetworkManager,x.listId,x.currentIndex,x.videoIds[x.currentIndex]);
_.M_(x.currentRefreshRequest,function(){x.currentRefreshRequest=void 0}).then(function(G){x.JSC$10748_updateCallback(G.playlistId,G.playlistPanelRenderer,G.autoplayRenderer)})};
BG.prototype.size=function(){return this.videoIds.length};var VyZ=function(x,G,D,K){K=K===void 0?[]:K;BG.call(this,x,G,D,K);this.JSC$10748_playlistNetworkManager=x;this.listId=G;this.JSC$10748_updateCallback=D;this.videoIds=K};
_.m(VyZ,BG);_.s3=function(x,G,D,K,z,y,c){z=z===void 0?[]:z;c=c===void 0?tZ:c;BG.call(this,x,G,D,z);this.JSC$10748_playlistNetworkManager=x;this.listId=G;this.JSC$10748_updateCallback=D;this.onAuthChange=K;this.videoIds=z;this.storage=y;this.cookieReader=c;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.x7(_.Fj,this.checkLoggedInStatusChange.bind(this),1E3)};
_.m(_.s3,BG);_.a=_.s3.prototype;_.a.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.x7(_.Fj,this.checkLoggedInStatusChange.bind(this),1E3)};
_.a.JSC$10748_setCurrentIndex=function(x){BG.prototype.JSC$10748_setCurrentIndex.call(this,x);this.store()};
_.a.delete=function(){_.Fj.cancelJob(this.queueSapisIdJob);BG.prototype.delete.call(this)};
_.a.setListId=function(x){BG.prototype.setListId.call(this,x);this.store()};
_.a.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var bSh=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],L17=["playerResponse","videoDetails"],BE7=["response","currentVideoEndpoint","watchEndpoint","videoId"],rpu=["response","currentVideoEndpoint","watchEndpoint","playlistId"],sGk=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],YnZ=["response","contents","twoColumnWatchNextResults","playlist","playlist"],mEE=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
HSs=["response","contents","twoColumnWatchNextResults"];var YP={},OJC=(YP.WEB_UNPLUGGED="^unplugged/",YP.WEB_UNPLUGGED_ONBOARDING="^unplugged/",YP.WEB_UNPLUGGED_OPS="^unplugged/",YP.WEB_UNPLUGGED_PUBLIC="^unplugged/",YP.WEB_CREATOR="^creator/",YP.WEB_KIDS="^kids/",YP.WEB_EXPERIMENTS="^experiments/",YP.WEB_MUSIC="^music/",YP.WEB_REMIX="^music/",YP.WEB_MUSIC_EMBEDDED_PLAYER="^music/",YP.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",YP);var MMn,Myq;MMn=function(x,G){this.networkManager=x;this.innertubeTransportService=G};
Myq=function(x,G,D){if(!_.Y(G,_.IL))return _.rk(Error("Bf"));_.Y(G,_.IL).videoIds=D;D={create_playlist_title:_.Wg("QUEUE",void 0,"Queue")};return IOD(_.Rl(x.innertubeTransportService,G,D),FaP)};
_.pTi=function(x,G,D,K){G={videoId:K,playlistId:G,playlistIndex:D};D=_.qW($z8);return IOD(_.ma(x.innertubeTransportService,G,D),jrC)};
MMn.prototype.updatePlaylist=function(x,G){return IOD(_.Rl(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:x,actions:G}}),Caf)};var $Eu=function(x){this.storage=x},F1E;
$Eu.prototype.store=function(x,G){G=G===void 0?0:G;if(this.storage&&x.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",x),this.storage.set("TLPQindex",String(G)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(D){}};
$Eu.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
$Eu.prototype.getPlaylistId=function(){if(!this.storage)return null;var x=null;try{x=this.storage.get("TLPQplaylist")}catch(G){}return x};var Rm3=["navigationEndpoint","watchEndpoint","videoId"],UZV=["nextButtonVideo","watchEndpoint","videoId"];_.mg=new _.wq("NETWORK_TOKEN");_.wG=new _.wq("PAGE_TOKEN");_.HG=new _.wq("PLAYLIST_TOKEN");var C4E;C4E=new _.wq("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.Hi=new _.wq("INNERTUBE_TRANSPORT_TOKEN");var IeE,$P,OSE,XT8,UEE,RKE;IeE=new Set(["ci","cr","carml"]);$P=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10795_parkedJobs=new Map;this.parkedProcessors=new Map};
_.Fp=function(){$P.instance||($P.instance=new $P);return $P.instance};
$P.prototype.onAny=function(x){return _.jGs(this,x,2)};
$P.prototype.parkOrScheduleJob=function(x,G,D,K,z){_.CJ(this,D)?_.rv().addJob(x,G,K):(z&&(x=OSE(x),XT8(this,x,G,D,z)),z=this.JSC$10795_parkedJobs.get(D),z||(this.JSC$10795_parkedJobs.set(D,[]),z=this.JSC$10795_parkedJobs.get(D)),z.push({job:x,priority:G,delay:K}))};
$P.prototype.addListener=function(x,G,D){D&&(G=OSE(G),XT8(this,G,0,x,D));D=this.parkedProcessors.get(x);D||(this.parkedProcessors.set(x,[]),D=this.parkedProcessors.get(x));D.push(G)};
$P.prototype.processSignal=function(x){if(!_.CJ(this,x)){this.inProgressSignals.add(x);var G=this.JSC$10795_parkedJobs.get(x);if(G){G=_.l(G);for(var D=G.next();!D.done;D=G.next())D=D.value,_.rv().addJob(D.job,D.priority,D.delay);this.JSC$10795_parkedJobs.delete(x)}if(G=this.parkedProcessors.get(x)){G=_.l(G);for(D=G.next();!D.done;D=G.next())D=D.value,D();this.parkedProcessors.delete(x)}this.signals.push(x);this.inProgressSignals.delete(x)}};
_.CJ=function(x,G){return IeE.has(G)||_.Uo("IS_HOMEPAGE_COLD")||_.Uo("IS_RESULTS_PAGE_COLD")||_.Uo("IS_WATCH_PAGE_COLD")?x.signals.indexOf(G)>=0:!0};
OSE=function(x){var G=!1;return function(){G||(G=!0,x())}};
XT8=function(x,G,D,K,z){if(ApJ.has(K))_.rv().addJob(G,D,z);else{var y=x.compoundSignals.get(K);y&&_.rv().addJob(function(){_.CJ(x,K)||(y.isTimeoutConditionSatisfied?_.rv().addJob(G,D):y.timeoutConditionObservers.push(function(){_.rv().addJob(G,D)}))},D,z)}};
_.jGs=function(x,G,D){if(G.length>1){var K=[],z=Object.create(null);G=_.l(G);for(var y=G.next();!y.done;y=G.next())y=y.value,z[y]||(K.push(y),z[y]=!0);G=K}if(G.length===1)return G[0];y=G;K="";z=D===2?"|":"&";y.sort();y=_.l(y);for(var c=y.next();!c.done;c=y.next())K+=c.value+z;if(!x.compoundSignals.get(K)){z=0;y=[];c=_.l(G);for(var W=c.next();!W.done;W=c.next())W=W.value,z++,_.CJ(x,W)||y.push(W);(D=D===2)&&z>y.length||!D&&!y.length?x.signals.push(K):UEE(x,K,D,G,y)}return K};
UEE=function(x,G,D,K,z){var y=z.length,c=function(){D||--y===0?x.processSignal(G):RKE(x,G)};
z=_.l(z);for(var W=z.next();!W.done;W=z.next())x.addListener(W.value,c);x.compoundSignals.set(G,{signals:K,isOnAny:D,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});RKE(x,G)};
RKE=function(x,G){if(!_.CJ(x,G)){var D=x.compoundSignals.get(G);if(D&&!D.isTimeoutConditionSatisfied){for(var K=!1,z=0,y=0,c=_.l(D.signals),W=c.next();!W.done;W=c.next()){var e=W.value;W=!_.CJ(x,e);ApJ.has(e)?K=!0:(e=x.compoundSignals.get(e))?W&&!e.isTimeoutConditionSatisfied&&(y++,D.isInitialized||e.timeoutConditionObservers.push(function(){RKE(x,G)})):W&&z++}D.isInitialized=!0;
D.isOnAny?K&&(D.isTimeoutConditionSatisfied=!0):z===0&&y===0&&(D.isTimeoutConditionSatisfied=!0);if(D.isTimeoutConditionSatisfied)for(D=_.l(D.timeoutConditionObservers),K=D.next();!K.done;K=D.next())K=K.value,K()}}};
$P.prototype.processSignal=$P.prototype.processSignal;$P.prototype.parkOrScheduleJob=$P.prototype.parkOrScheduleJob;$P.prototype.onAny=$P.prototype.onAny;_.Jv("ytsignals.getInstance",_.Fp);$P.prototype.onAny=$P.prototype.onAny;$P.prototype.parkOrScheduleJob=$P.prototype.parkOrScheduleJob;$P.prototype.processSignal=$P.prototype.processSignal;var ApJ=new Set(["eop","eocs","dl","pcl"]);_.O$=new _.wq("MINIPLAYER_SERVICE");var Ir,SnJ,nlo;Ir=function(x,G,D){var K=_.gu.getInstance();if(!F1E){var z=new ZCD;var y=void 0,c=_.Am("ID_TOKEN");c&&z.isAvailable()&&(y=new YK(z,"yt-queue"+c));F1E=new $Eu(y)}z=F1E;y=_.Fp();this.JSC$10802_actionRouter=K;this.pageManager=x;this.playlistManager=G;this.JSC$10802_playlistNetworkManager=D;this.storage=z;this.signals=y;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.jK=function(){if(!SnJ){var x=_.Eo(),G=x.resolve(_.P6(_.wG)),D=x.resolve(_.P6(_.mg)),K=x.resolve(_.P6(_.HG));x=x.resolve(_.Hi);SnJ=new Ir(G,K,new MMn(D,x))}return SnJ};
nlo=function(x,G,D){if(D){var K;if(((K=x.responsePlaylistData)==null?void 0:K.playlistId)!==D)return}x.responsePlaylistData&&(D=dZf(G,x.responsePlaylistData),x.responsePlaylistData=(0,_.YS.unsafeClone)(x.responsePlaylistData),q3L(x.responsePlaylistData,D));D=x.temporaryItems.findIndex(function(z){return z.videoId===G});
D>-1&&x.temporaryItems.splice(D,1);_.O3(x,_.Xp(x,x.response?x.response.autoplayRenderer:void 0))};
_.iSk=function(x,G){if(x.responsePlaylistData){var D=wGf(G,x.responsePlaylistData);q3L(x.responsePlaylistData,D);if(x.queueProxy){var K=x.queueProxy;D<0||(K.videoIds.splice(D,1),D<K.currentIndex&&K.JSC$10748_setCurrentIndex(K.currentIndex-1),K.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:G}),rQ(K))}}_.O3(x,_.Xp(x,x.response?x.response.autoplayRenderer:void 0))};
Ir.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.O3(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
Ir.prototype.setPlaylistData=function(x,G,D){this.temporaryItems=[];this.listId=x;this.responsePlaylistData=G;_.O3(this,_.Xp(this,D))};
var gli=function(x){return(x==null?0:x.playlistId)?x.playlistId:"PPSV"},uL8=function(x){return x&&x.playlistId?x.playlistId==="PPSV"?!0:m7V(_.wK().getState().entities,x.playlistId):!1};
Ir.prototype.isPlayingOfflineVideo=function(){return this.response?uL8(this.response):!1};
Ir.prototype.closeMiniplayer=function(x){var G=this.queueProxy&&this.queueProxy.size()<=1,D=_.Eo().resolve(_.O$);if(!this.queueProxy||G)this.queueProxy&&this.clearQueue(),D.close(!0);else{D.pipController.getWindow()&&window.focus();G=this.responsePlaylistData;var K=this.temporaryItems.length+(G&&G.contents?G.contents.length:0);G=_.Wg("QUEUE_CLEARED_UNPLURALIZED")||_.e7("QUEUE_CLEARED",K);G=_.vk(G);D=_.Wg("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");K=_.Wg("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.e7("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",K);var z=_.Wg("MINIPLAYER_CLOSE",void 0,"Close"),y=_.Wg("CANCEL",void 0,"Cancel");_.YG(this.JSC$10802_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.gK(D),dialogMessages:[_.gK(K)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.gK(z),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
G]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.gK(y)}}}}}}],x)}};
_.Xp=function(x,G){var D={},K=x.response;D.autoplayRenderer=G;if(!x.responsePlaylistData&&!x.temporaryItems.length)return!K||!K.hasRelatedVideoData&&_.B("kevlar_prefetch_data_augments_network_data")||(D.playerData={rvs:K.relatedVideoArgs,endScreenRenderer:K.endScreenRenderer}),D;D.playerData={};if(x.index===void 0)return _.I4(Error("Df")),D;D.panel=x.responsePlaylistData?(0,_.YS.unsafeClone)(x.responsePlaylistData):{titleText:_.gK(_.Wg("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
G=D.panel;if(G.contents)for(var z=_.l(x.temporaryItems),y=z.next();!y.done;y=z.next())G.contents.push({playlistPanelVideoRenderer:y.value});x.queueProxy&&K&&K.playingVideo&&K.playingVideoId&&!upC(K.playingVideoId,D.panel)&&(G=K.playingVideo,z=D.panel,y=x.index,z.contents&&z.contents.splice(y===void 0?0:y,0,{playlistPanelVideoRenderer:G}));K&&K.playingVideoId&&(G=x.index,z=D.panel,G=!z.contents||G>=z.contents.length?void 0:z.contents[G].playlistPanelVideoRenderer,G&&G.videoId===K.playingVideoId||(G=
dZf(K.playingVideoId,D.panel),x.index=G!==-1?G:x.index?x.index-1:0));G=gPO(x.index+1,D.panel);z=void 0;x.index>0&&(z=gPO(x.index-1,D.panel));if(z||G)D.autoplayRenderer=S3f(G,z,D.autoplayRenderer);!G&&(K==null?0:K.relatedVideoArgs)&&(D.playerData.rvs=K.relatedVideoArgs);K=K?K.playlistIndexOffset:0;x.queueProxy?JiL(D.panel,x.index,K,iJV,!0,!0,!0):JiL(D.panel,x.index,K);D.playerData.playlistPanelRenderer=D.panel;return D};
Ir.prototype.openToast=function(x){_.Eo().resolve(_.O$).openToast(x,_.Wg("ADDED_TO_QUEUE",void 0,"Added to queue"))};
Ir.prototype.isMiniplayerActive=function(){return _.Eo().resolve(_.O$).isMiniplayerActive()};
_.O3=function(x,G){x.playlistManager.setAutoplayRenderer(G.autoplayRenderer||null);x.playlistManager.setPlaylistData(G.panel||null);G.playerData&&x.playlistManager.setPlayerPlaybackControlData(G.playerData)};var tKP="#";var dE8={},wTq={},qnk={},NE9={},vl9={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:(dE8.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",dE8),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:(wTq.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",wTq),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:(qnk.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",qnk),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:(NE9.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",NE9),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 jQd=[{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:vl9},{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:vl9}}];var B23;_.DD=[[["ZTE0a3hodHlvd3Vqa2luZCM=","ZHB3dXJlM2JwdmFsdWUjcWhl"],"RU5UX0tJTkRfU1RBUlQjaG10eDQ0M2s2cGdhQURfUExBQ0VN"]];
B23=[[["MDJtcHJpbWFyeSN6Y2g4N2s0cHk=",null,null],[null,["bGt0bTd6cnowcmdxeXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIj","cGUjMXg5bmwzeTM0NXNhc3R5bGUtc2Nv"],null],["YWQjNnYwaHRkb3p1cmQ3bWFzdGhlYWQt",["aC1ncmlkLXJlbmRlcmVyI2pzd3BvM3lwM3JnYnl0ZC1yaWM="],null],[null,["aC1ncmlkLXJlbmRlcmVyI2UzZmY4cGU2amVybXl0ZC1yaWM=","cGUjOWozbnBiY2psOXR2c3R5bGUtc2Nv"],null],[null,["cHJvbW8tcmVuZGVyZXIjanZhcWc5cDFrZmZ5dGQtYmFubmVyLQ==","cGUjaWc2aWdtYTd4aW5uc3R5bGUtc2Nv"],null],[null,["LWFkLXNsb3QtcmVuZGVyZXIjamZ1bXlocTM4ZTgyeXRk"],
null]],[["LWFkcyNzNmhtdWNwc3RpbmdwbGF5ZXI=",null,null]]];_.GU=["c3ZmM3cwcmdsb2JhbENhbGxiYWNrcyMzbHhkag==","b3JtYWxpdHlEZXRlY3RlZCN3bmc0aXpnMnQ2emZvbkFibg==","b25BZFNraXAjeGpyaXhkNjFnbjYw","YXdfcGxheWVyX3Jlc3BvbnNlIzlkaDA4MWI0MmNwbHI=","enJnYWRTbG90cyNpbHZvb2czOGc="];_.Ai="c3ZmM3cwcmdsb2JhbENhbGxiYWNrcyMzbHhkag== b3JtYWxpdHlEZXRlY3RlZCN3bmc0aXpnMnQ2emZvbkFibg== b25BZFNraXAjeGpyaXhkNjFnbjYw YXdfcGxheWVyX3Jlc3BvbnNlIzlkaDA4MWI0MmNwbHI= X2tzI2o2cmM4cWh3OGk0d2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBz YWJfc2FfZWYjb256OGo4aG8zcDF1 enJnYWRTbG90cyNpbHZvb2czOGc=".split(" ");var U3;U3=function(x,G,D){this.xE3=x;this.isAsync=G;this.i83=D};
_.wPf=[new U3("b.f_",!1,0),new U3("j.s_",!1,2),new U3("r.s_",!1,4),new U3("e.h_",!1,6),new U3("i.s_",!0,8),new U3("s.t_",!1,10),new U3("p.h_",!1,12),new U3("s.i_",!1,14),new U3("f.i_",!1,16),new U3("a.b_",!1,18),new U3("a.o_",!1),new U3("g.o_",!1,22),new U3("p.i_",!1,24),new U3("p.m_",!1),new U3("n.k_",!0,20),new U3("i.f_",!1),new U3("a.s_",!0),new U3("m.c_",!1),new U3("n.h_",!1,26),new U3("o.p_",!1),new U3("m.p_",!0,28),new U3("o.a_",!1),new U3("d.p_",!1),new U3("e.i_",!1)].reduce(function(x,G){x[G.xE3]=
G;return x},{});var JpZ=function(){};
JpZ.prototype.flush=function(x,G){x=x===void 0?[]:x;G=G===void 0?!1:G;if(_.B("enable_client_streamz_web")){x=_.l(x);for(var D=x.next();!D.done;D=x.next())D=KfZ(D.value),this.rootSpec&&_.GW(D,2,this.rootSpec),D={serializedIncrementBatch:_.PY(D.JSC$7618_serializeBinary())},_.Fv("streamzIncremented",D,{sendIsolatedPayload:G})}};
var hmE=function(){};
_.m(hmE,JpZ);var fe7=function(x){var G=new k79;var D=new Jks;D=_.Z_(D,1,"botguard");x=_.Z_(D,2,x);this.rootSpec=_.DB(G,1,Pqi,x)};
_.m(fe7,JpZ);var EA,ty8=new Map;var mzd,GPP,T2n,zJd,yGV,bF3,$zC,pP3;mzd=2;GPP=2;T2n=2;zJd=2;yGV=2;bF3=2;$zC=2;pP3=new ho7;var P4Z,Elk,hK9;P4Z=function(){this.ongoingFlowNonces=new Map};
_.on=function(){Elk||(Elk=new P4Z);return Elk};
_.zU=function(x,G,D){return{eventType:{flowEventNamespace:x,flowEventType:G},metadata:D,statusCode:void 0,csn:void 0,can:void 0}};
_.N2E=function(x,G){var D=_.on(),K=hK9(D,G,!0);_.an(D,x,G,K)};
_.an=function(x,G,D,K){x={flowNonce:K||hK9(x,D),flowType:D,flowEventType:G.eventType};G.metadata&&(x.flowMetadata=G.metadata);G.statusCode!==void 0&&(x.flowEventStatus=G.statusCode);G.csn&&(x.csn=G.csn);G.can&&(x.can=G.can);_.Fv("flowEvent",x,void 0)};
hK9=function(x,G,D){D=D===void 0?!1:D;var K=x.ongoingFlowNonces.get(G);if(!K||D)K=Hy(16),x.ongoingFlowNonces.set(G,K);return K};_.xdi=new EYo;var t$d={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING_JOURNEY_WATCH:"learning_journey_watch"};var Rr=function(x,G,D,K,z,y,c){D=D===void 0?!1:D;K=K===void 0?!1:K;y=y===void 0?_.jK():y;this.hasRun=!1;this.k5t=x;this.lB9=G;this.b0h=D;this.fromHistory=K;this.previousVideoId=z;this.zIa=y;this.tempData=c;this.xju=new _.x1Z};
_.m(Rr,we);Rr.prototype.validate=function(x){return!(!x.data.playerResponse||x.data.page!=="watch"&&x.data.page!=="learning_journey_watch"&&x.data.page!=="shorts"||this.hasRun)};
Rr.prototype.handle=function(x){var G=this,D=_.Y(x.endpoint,_.d5),K=_.Y(x.endpoint,_.MB);if(_.B("kevlar_continue_playback_without_player_response")&&(D==null?0:D.videoId)&&this.previousVideoId&&(D==null?void 0:D.videoId)===this.previousVideoId&&(D==null?0:D.continuePlayback)&&!this.fromHistory)this.k5t.resolve();else{var z={};D?z.watch_endpoint=D:K&&(z.watch_endpoint=K,K.endTimeSeconds&&(z.end=K.endTimeSeconds));x.data.page==="watch"?(x.data.filler||this.b0h||(_.CW("cfg"),_.gu.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(z,Gp7(this,x.endpoint)),_.B("enable_masthead_quartile_ping_fix")&&Object.assign(z,Ddh(this)),Object.assign(z,void 0),x.data.forceExternalPlaylist&&(z.external_list=!0)):x.data.page==="shorts"?_.gu.getInstance().triggerAction("yt-start-loading-shorts"):x.data.page==="learning_journey_watch"&&_.gu.getInstance().triggerAction("yt-start-loading-learning-journey");if(D=this.lB9()){try{D.loadVideoWithPlayerResponse(x.data.playerResponse,z),D.getPlayerPromise().then(this.k5t.resolve)}catch(y){_.I4(y),
this.k5t.resolve()}this.hasRun=!0;D.getPlayerPromise().then(function(y){y.addEventListener("onAbnormalityDetected",function(){var c=x.data.playerResponse,W=y.getVideoData().cpn;$zC=0;_.kkE=W;if(W=dzQ(c))G.xju.increment("IN_PLAYER"),_.y7(5),_.B("ab_st_vid_ks")?y.pauseVideo(!0):y.stopVideo(),c.playabilityStatus=Object.assign({},c.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:W}}),c.videoDetails=void 0,_.gu.getInstance().triggerOptionalAction("yt-updated-playability-status",
c.playabilityStatus)})})}else _.O9(Error("Gf"))}};
var Gp7=function(x,G){var D=_.Y(G,_.d5);if(G&&D&&D.playlistId&&D.videoId&&(x=x.zIa,x.queueProxy?(x=x.queueProxy,D=x.listId===D.playlistId?x.attributionData.get(D.videoId):void 0):D=void 0,D))return{queue_info:D}},Ddh=function(x){var G;
if((G=x.tempData)==null?0:G.adpings)return{adpings:x.tempData.adpings}};var SK=function(x,G,D){this.hasRun=!1;this.fkv=x;this.dFu=G;this.i0Y=D};
_.m(SK,we);SK.prototype.validate=function(x){return!!_.YS.getValueByKeys.apply(null,[x.data].concat(_.B5(HSs)))};
SK.prototype.handle=function(x){var G=this;this.fkv.promise.then(function(){var D=x.data;var K=_.YS.getValueByKeys.apply(null,[D].concat(_.B5(bSh))),z=_.YS.getValueByKeys.apply(null,[D].concat(_.B5(YnZ))),y=_.YS.getValueByKeys.apply(null,[D].concat(_.B5(BE7)));var c=(c=_.YS.getValueByKeys.apply(null,[D].concat(_.B5(L17))))?{videoId:c.videoId,thumbnail:c.thumbnail,title:c.title?_.gK(c.title):void 0,shortBylineText:c.author?_.gK(c.author):void 0}:void 0;var W=void 0;_.B("web_get_playlist_id_from_current_endpoint_ks")||
(W=_.YS.getValueByKeys.apply(null,[D].concat(_.B5(rpu))));var e=_.YS.getValueByKeys.apply(null,[D].concat(_.B5(mEE))),Q=_.YS.getValueByKeys.apply(null,[D].concat(_.B5(sGk))),p=!!e||!!Q&&!!Q.results&&Q.results.length>0,V=0;z&&z.currentIndex&&z.localCurrentIndex&&(V=z.currentIndex-z.localCurrentIndex);z&&z.playlistId&&(W=z.playlistId);D={rawResponse:D,autoplayRenderer:K,hasRelatedVideoData:p,playingVideo:c,playingVideoId:y,playlistPanelRenderer:z,playlistId:W,playlistIndex:z&&z.currentIndex,relatedVideoArgs:e,
endScreenRenderer:Q,playlistIndexOffset:V};a:{K=G.i0Y;z=G.dFu;K.response=D;if(uL8(D))K.downloadPlaylistProxy&&K.downloadPlaylistProxy.getPlaylistId()===gli(D)||(K.downloadPlaylistProxy=new TE8(gli(D),K.setPlaylistData.bind(K),K.isPlayingOfflineVideo.bind(K))),K.responsePlaylistData=K.downloadPlaylistProxy.getPlaylistData(),K.listId=gli(D),K.index=0;else if(D.playlistPanelRenderer&&D.playlistId&&D.autoplayRenderer)D.playlistId.startsWith("TLPQ")?K.queueProxy?K.listId===D.playlistId?(K.index=D.playlistIndex,
K.responsePlaylistData=D.playlistPanelRenderer,K.queueProxy.JSC$10748_setCurrentIndex(K.index)):D.playingVideoId&&K.index!==void 0&&z.clientParams.autoSaveToQueue&&(K.index+=1,K.queueProxy.JSC$10748_setCurrentIndex(K.index),K.queueProxy.addVideos([D.playingVideoId],{},K.index)):(K.queueProxy=new _.s3(K.JSC$10802_playlistNetworkManager,D.playlistId,K.setPlaylistData.bind(K),K.clearQueue.bind(K),_.NQQ(D.playlistPanelRenderer),K.storage),K.responsePlaylistData=D.playlistPanelRenderer,K.listId=D.playlistId,
K.index=D.playlistIndex):(K.index=D.playlistIndex,K.listId!==D.playlistId&&K.clearQueue(),K.responsePlaylistData=D.playlistPanelRenderer,K.listId=D.playlistId,K.playlistProxy=new VyZ(K.JSC$10802_playlistNetworkManager,D.playlistId,K.setPlaylistData.bind(K),_.NQQ(D.playlistPanelRenderer)));else if(!K.queueProxy)K.responsePlaylistData=void 0;else if(D.playingVideoId&&z.clientParams.autoSaveToQueue){if(K.index===void 0){_.I4(Error("Cf"));K.clearQueue();break a}K.queueProxy.videoIds.includes(D.playingVideoId)||
(K.index+=1,K.queueProxy.JSC$10748_setCurrentIndex(K.index),K.queueProxy.addVideos([D.playingVideoId],{},K.index))}_.O3(K,_.Xp(K,K.response.autoplayRenderer))}})};var Kpk=function(x,G){G=G===void 0?_.jK():G;z$.call(this);this.eM.push(new SK(this.eR,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},G));this.eM.push(new Rr(this.eR,x,!1,!1));_.B("web_response_commands_chunk_processor")&&this.eM.push(new ar)};
_.m(Kpk,z$);Kpk.prototype.processChunk=function(x){x&&x.data.player===void 0&&this.eR.resolve();z$.prototype.processChunk.call(this,x)};var nJ=function(x,G){x=x===void 0?{layer:0}:x;this.hasRun=!1;this.createScreenConfig=x;this.bwV=G};
_.m(nJ,we);nJ.prototype.validate=function(x){return!(this.hasRun||!x.endpoint)};
nJ.prototype.handle=function(x){var G=_.en(),D,K,z=(K=_.Y((D=x.endpoint)==null?void 0:D.commandMetadata,_.fC))==null?void 0:K.rootVe;this.bwV&&z?_.EV(G,z,this.bwV,this.createScreenConfig):JGq(G,x.endpoint,this.createScreenConfig);this.hasRun=!0};var ia=function(x,G){this.hasRun=!1;this.mjI=x;this.previousVideoId=G};
_.m(ia,we);ia.prototype.validate=function(x){return _.B("kevlar_continue_playback_without_player_response")&&(x=_.Y(x.endpoint,_.d5),(x==null?0:x.videoId)&&this.previousVideoId&&(x==null?void 0:x.videoId)===this.previousVideoId&&(x==null?0:x.continuePlayback))?!1:this.mjI.lM3===0};
ia.prototype.handle=function(x){_.gu.getInstance().triggerAction("yt-stop-old-player",x.data,!0)};var z2Z=function(x){x=x===void 0?{layer:0}:x;z$.call(this);this.eM.push(new ia(this));this.eM.push(new nJ(x));this.eM.push(new KJ(x))};
_.m(z2Z,z$);var aQh=function(){this.hasRun=this.hasRun=!1};
_.m(aQh,we);aQh.prototype.validate=function(x){return!this.hasRun&&!(!x.data.csn||!x.data.rootVe)};
aQh.prototype.handle=function(x){this.hasRun=!0;_.jq(x.data.csn,x.data.rootVe,3)};var on9=function(){we.apply(this,arguments)};
_.m(on9,we);on9.prototype.validate=function(x){return!!x.data.preconnect};
on9.prototype.handle=function(x){_.Fs("bc");x=_.l(x.data.preconnect);for(var G=x.next();!G.done;G=x.next())G=G.value,(new Image).src=G};var yMh=function(x,G,D){D=D===void 0?{layer:0}:D;z$.call(this);this.eM.push(new Rr(this.eR,x));this.eM.push(new nJ(D));this.eM.push(new KJ(D))};
_.m(yMh,z$);var lQi=function(x,G,D,K,z){D=D===void 0?{layer:0}:D;K=K===void 0?_.jK():K;z$.call(this);var y=!!G&&!!G.clientParams&&!!G.clientParams.miniplayer;y&&this.eM.push(new aQh);this.eM.push(new SK(this.eR,G,K));this.eM.push(new on9);var c,W;this.eM.push(new Rr(this.eR,x,y,!((c=G.clientParams)==null||!c.fromHistory),(W=G.clientParams)==null?void 0:W.previousVideoId,K,G.tempData));var e;this.eM.push(new ia(this,(e=G.clientParams)==null?void 0:e.previousVideoId));var Q;(Q=G.clientParams)!=null&&Q.fromHistory||
(D.layer||(D=Object.assign({},D,{layer:y?3:0})),this.eM.push(new nJ(D,z)),this.eM.push(new KJ(D)));_.B("web_response_commands_chunk_processor")&&this.eM.push(new ar)};
_.m(lQi,z$);var gQ,Wpq;gQ={};
_.cMo=(gQ["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},gQ["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},gQ["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},gQ["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},gQ["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},gQ["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},gQ["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},gQ);_.ua=new _.Xj("yt-edu");_.T8i=function(){this.JSC$10903_eduDisplayedThisLoad_={}};
Wpq=function(x){var G=_.T8i.getInstance();var D=_.Gz("kevlar_tooltip_impression_cap");G=D&&parseInt(_.ua.get(x+"-impression")||0,10)>=D||_.ua.get(x+"-dismissed")?!1:(D=_.cMo[x])&&!G.JSC$10903_eduDisplayedThisLoad_[D.setKey||x]&&(D.titleText&&_.Wg(D.titleText)||D.bodyText&&_.Wg(D.bodyText))?!0:!1;if(!G)return null;G=_.cMo[x];if(!G)return null;D=G.bodyText?_.Wg(G.bodyText):void 0;var K=G.titleText?_.Wg(G.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:G.position,popup:{bubbleHintRenderer:{text:K?
_.gK(K):void 0,detailsText:D?_.gK(D):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.gK(_.Wg("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:x}}]}}}}}}}},{eduImpressionAction:{key:x}}]};
_.JR(_.T8i);var vtV=!1;for(var e2q="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),ZMJ=[],dQ=6;dQ>=1;dQ--)ZMJ.push({columnCount:dQ,query:dQ==1?0:dQ*2*107-4+32,className:"grid-"+dQ+"-columns",width:dQ*2*107+"px"});_.Qdh=function(x){this.actionRouter_=x=x===void 0?_.gu.getInstance():x;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.MeZ(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.MeZ=function(x){var G=x.miniGuideVisible_?72:0,D=x.documentWidth_-(x.guidePersistentAndVisible_?240:G);return ZMJ.find(function(K){return D>K.query})};
_.JR(_.Qdh);var pt8=function(){var x=this;this.JSC$10915_keyboardInUse=!1;document.addEventListener("keydown",function(){x.onKeydown()});
document.addEventListener("mousedown",function(){x.JSC$10915_keyboardInUse=!1})},VeE;
pt8.prototype.isKeyBoardInUse=function(){return this.JSC$10915_keyboardInUse};
pt8.prototype.onKeydown=function(){this.JSC$10915_keyboardInUse=!0};var bM9,NZ;_.wQ=new _.Xj("yt-mentions");_.qZ=function(){};
bM9=function(x,G){return NZ(G,"drag-to-reorder-edu-displayed")};
NZ=function(x,G,D,K,z,y){D=D===void 0?"OPEN_POPUP_POSITION_TOP":D;if(G){if(_.wQ.get(G))return;_.wQ.set(G,!0,K)}if(z&&y!==void 0){G=Number(_.wQ.get(z)||0);if(G>=y)return;_.wQ.set(z,G+1)}return[{openPopupAction:{popupType:"HINT",position:D,popup:{bubbleHintRenderer:{detailsText:x,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.JR(_.qZ);var LpJ,B80,rMo;LpJ=function(x,G,D,K){this.JSC$10925_taskManager_=x;this.onFulfilled_=typeof G==="function"?G:null;this.onRejected_=typeof D==="function"?D:null;this.JSC$10925_context_=K};
B80=function(x,G){x.onFulfilled_&&_.eU(x.JSC$10925_taskManager_,function(){x.onFulfilled_.call(x.JSC$10925_context_,G)})};
rMo=function(x,G){x.onRejected_&&_.eU(x.JSC$10925_taskManager_,function(){x.onRejected_.call(x.JSC$10925_context_,G)})};
_.vG=function(x){this.JSC$10928_taskManager_=x;this.callbacks_=[]};
_.vG.prototype.then=function(x,G,D){this.callbacks_.push(new LpJ(this.JSC$10928_taskManager_,x,G,D));return this};
_.vG.prototype.onSuccess=function(x){this.callbacks_.forEach(function(G){B80(G,x)})};
_.vG.prototype.onFailure=function(x){this.callbacks_.forEach(function(G){rMo(G,x)})};
_.vG.prototype.cancel=function(){this.callbacks_.length=0};
ygE(_.vG);_.PkV=null;_.su=new _.wq("ACTIVITY_TOKEN");var Ji=function(x,G){this.serviceId=new aEE(x,G)};
Ji.prototype.toString=function(){return this.serviceId.toString()};var sdk=function(){this.internalMap={}};
_.a=sdk.prototype;_.a.contains=function(x){return Object.prototype.hasOwnProperty.call(this.internalMap,x)};
_.a.get=function(x){if(this.contains(x))return this.internalMap[x]};
_.a.set=function(x,G){this.internalMap[x]=G};
_.a.getKeys=function(){return Object.keys(this.internalMap)};
_.a.remove=function(x){delete this.internalMap[x]};var fJ=function(){this.mappings=new sdk;this.errorCallbacks=new Set};
fJ.prototype.getModuleId=function(x){return x.serviceId.getModuleId()};
fJ.prototype.get=function(x){var G=this.mappings.get(x.toString());return YJ7(this,G,x)};
fJ.prototype.getMultipleAsync=function(){var x=_.rC.apply(0,arguments),G=this,D=x.map(function(e){return G.getModuleId(e)}),K=x.map(function(e){return G.mappings.get(e.toString())}).filter(function(e){return e});
if(K.length===x.length)return _.aI(K.map(function(e,Q){return YJ7(G,e,x[Q])}));
var z=jB().loadMultiple(D);K=_.Zz(D.map(function(e){return z[e]}));
var y=document.hidden,c=-1,W=_.Gz("get_async_timeout_ms",-1);W>-1&&(c=setTimeout(function(){_.O9(new _.LL("Module timeout.",D,y,document.hidden))},W));
return _.M_(K.then(function(){return x.map(function(e){return YJ7(G,G.mappings.get(e.toString()),e)})}).thenCatch(function(e){for(var Q=_.l(G.errorCallbacks),p=Q.next();!p.done;p=Q.next())p=p.value,p(e);
throw e;}),function(){clearTimeout(c)})};
fJ.prototype.registerService=function(x,G){this.mappings.set(x.toString(),{type:"mapping",value:G});return x};
var YJ7=function(x,G,D){switch(G.type){case "mapping":return G.value;case "factory":return G=G.value(),x.mappings.set(D.toString(),{type:"mapping",value:G}),G;default:return _.oT(G)}};
fJ.prototype.onLoadError=function(x){var G=this;this.errorCallbacks.add(x);return function(){G.errorCallbacks.delete(x)}};
_.ti=new fJ;var DCh=/^[a-zA-Z0-9_\-]{11}$/;var KeV=_.c_(function(){var x,G;return(G=(x=window).matchMedia)==null?void 0:G.call(x,"(prefers-reduced-motion: reduce)").matches});var mdE=_.c_(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 x=_.nT("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");x||(x=_.p4("VIDEO"),_.Jv("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
x));return!!(x&&x.canPlayType&&x.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var cXV=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var kP;kP=function(){this.tokenJars={};if(this.cookiesEnabled=_.pL()){var x=_.MU.get("CONSISTENCY",void 0);x&&HMu(this,{encryptedTokenJarContents:x})}};
_.Wef=function(){kP.instance||(kP.instance=new kP);return kP.instance};
kP.prototype.handleResponse=function(x,G){if(!G)throw Error("Mf");var D,K;G=((D=G.innerTubeRequest.context)==null?void 0:(K=D.request)==null?void 0:K.consistencyTokenJars)||[];var z;(x=(z=x.responseContext)==null?void 0:z.consistencyTokenJar)&&this.replace(G,x)};
kP.prototype.replace=function(x,G){x=_.l(x);for(var D=x.next();!D.done;D=x.next())delete this.tokenJars[D.value.encryptedTokenJarContents];HMu(this,G)};
var HMu=function(x,G){if(G.encryptedTokenJarContents&&(x.tokenJars[G.encryptedTokenJarContents]=G,typeof G.expirationSeconds==="string")){var D=Number(G.expirationSeconds);setTimeout(function(){delete x.tokenJars[G.encryptedTokenJarContents]},D*1E3);
x.cookiesEnabled&&_.QR("CONSISTENCY",G.encryptedTokenJarContents,D,void 0,!0)}};var $d8,PG;$d8=window.location.hostname.split(".").slice(-2).join(".");_.s4=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var x=_.Am("LOCATION_PLAYABILITY_TOKEN");_.Am("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=Fpi(this))&&(x=this.localStorage.get("yt-location-playability-token"));x&&(this.locationPlayabilityToken=x,this.mostRecentPosition=void 0)};
_.s4.getInstance=function(){PG=_.nT("yt.clientLocationService.instance");PG||(PG=new _.s4,_.Jv("yt.clientLocationService.instance",PG));return PG};
_.s4.prototype.setLocationOnInnerTubeContext=function(x){x.client||(x.client={});if(this.mostRecentPosition)x.client.locationInfo||(x.client.locationInfo={}),x.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),x.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),x.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),x.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)x.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.s4.prototype.handleResponse=function(x){var G;x=(G=x.responseContext)==null?void 0:G.locationPlayabilityToken;x!==void 0&&(this.locationPlayabilityToken=x,this.mostRecentPosition=void 0,_.Am("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=Fpi(this))&&this.localStorage.set("yt-location-playability-token",x,15552E3):_.QR("YT_CL",JSON.stringify({loctok:x}),15552E3,$d8,!0))};
var Fpi=function(x){return x.localStorage===void 0?new _.Xj("yt-client-location"):x.localStorage};
_.s4.prototype.clearLocationPlayabilityToken=function(x){x==="TVHTML5"?(this.localStorage=Fpi(this))&&this.localStorage.remove("yt-location-playability-token"):_.auf("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.s4.prototype.getCurrentPositionFromGeolocation=function(){var x=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Nf"));var G=!1,D=1E4;_.Am("INNERTUBE_CLIENT_NAME")==="MWEB"&&(G=!0,D=15E3);return new Promise(function(K,z){navigator.geolocation.getCurrentPosition(function(y){x.mostRecentPosition=y;K(y)},function(y){z(y)},{enableHighAccuracy:G,
maximumAge:0,timeout:D})})};
_.s4.prototype.createUnpluggedLocationInfo=function(x){var G={};x=x.coords;if(x==null?0:x.latitude)G.latitudeE7=Math.floor(x.latitude*1E7);if(x==null?0:x.longitude)G.longitudeE7=Math.floor(x.longitude*1E7);if(x==null?0:x.accuracy)G.locationRadiusMeters=Math.round(x.accuracy);return G};
_.s4.prototype.createLocationInfo=function(x){var G={};x=x.coords;if(x==null?0:x.latitude)G.latitudeE7=Math.floor(x.latitude*1E7);if(x==null?0:x.longitude)G.longitudeE7=Math.floor(x.longitude*1E7);return G};var Cm0=function(){};
_.a=Cm0.prototype;
_.a.JSC$10995_getRequest=function(x,G,D){G=G===void 0?{}:G;D=D===void 0?lbh:D;var K=G;if(this.isNavigationCommand()){var z,y=(z=_.Y(x==null?void 0:x.commandMetadata,_.fC))==null?void 0:z.url;K=_.el3(x.clickTrackingParams,!0,!1,y,this.JSC$10995_getClientScreen(K))}else K=_.el3(x.clickTrackingParams,!1,this.includeCsn);K={context:K};if(z=this.getExtension(x))return this.JSC$10995_buildRequest(K,z,G),z=this.getApiUrl(x),y=Object.assign({},{command:x},this.getRequestConfig(x,G)),K={input:z,requestShell:g5(z),
innerTubeRequest:K,config:y},K.config.authStrategy?K.config.authStrategy.identity=D:K.config.authStrategy={identity:D},(x=this.JSC$10995_getRequestKey(x,G))&&!K.config.requestKey&&(K.config.requestKey=x),K;x=new _.LL("Error: Failed to create Request from Command.",x);_.I4(x)};
_.a.getApiUrl=function(x){var G=_.qW(this.getApiPaths(x)),D;(x=(D=_.Y(x.commandMetadata,_.fC))==null?void 0:D.apiUrl)&&(G=x);return fzV(J3Q(G))};
_.a.isNavigationCommand=function(){return!1};
_.a.JSC$10995_getClientScreen=function(){};
_.a.JSC$10995_getRequestKey=function(){};
_.a.getRequestConfig=function(){};
_.Nq.Object.defineProperties(Cm0.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var E3=function(){};
_.m(E3,Cm0);E3.prototype.JSC$11002_getStoreKey=function(){};
E3.prototype.JSC$10995_getRequestKey=function(x,G){G=G===void 0?{}:G;return this.JSC$11002_getStoreKey(x,G)};var jdq;_.hi=function(x,G,D){var K=D&&D>0?D:0;D=K?Date.now()+K*1E3:0;if((K=K?(0,_.IQo)():jdq())&&window.JSON){typeof G!=="string"&&(G=JSON.stringify(G,void 0));try{K.set(x,G,D)}catch(z){K.remove(x)}}};
_.xt=function(x){var G=jdq(),D=(0,_.IQo)();if(!G&&!D||!window.JSON)return null;try{var K=G.get(x)}catch(z){}if(typeof K!=="string")try{K=D.get(x)}catch(z){}if(typeof K!=="string")return null;try{K=JSON.parse(K,void 0)}catch(z){}return K};
_.GP=function(x){try{var G=jdq(),D=(0,_.IQo)();G&&G.remove(x);D&&D.remove(x)}catch(K){}};
_.IQo=_.c_(function(){try{var x=new ec3;var G=x.isAvailable()?x:null}catch(D){return null}return G?new _.xm(G):null});
jdq=_.c_(function(){var x=new ZCD;return x.isAvailable()?new _.xm(x):null});var z0=new _.wq("ENTITY_STATE_TOKEN"),DH=new _.wq("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var OMJ=XMLHttpRequest.prototype.fetch,XtZ=OMJ&&OMJ.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!NU?!0:!1;var KF=function(x){this.JSC$11007_storeWithEntities=x};
_.m(KF,E3);_.a=KF.prototype;_.a.getApiPaths=function(){return k$7};
_.a.getExtension=function(x){return _.Y(x,_.d5)||_.Y(x,_.MB)||_.Y(x,Pl7)};
_.a.isNavigationCommand=function(){return!0};
_.a.JSC$11002_getStoreKey=function(x){if((_.B("kevlar_cache_on_ttl_player")||_.B("mweb_enable_shorts_innertube_player_prefetch")||_.B("mweb_use_new_history_manager")||_.B("web_shorts_prefetch_service_enabled"))&&(x=this.getExtension(x))&&x.videoId){var G={videoId:x.videoId};x.playlistId&&(G.playlistId=x.playlistId);x.playerParams&&(G.params=x.playerParams);return _.ux("player",G)}};
_.a.JSC$10995_getClientScreen=function(x){var G;return((G=x.contentPlaybackContext)==null?void 0:G.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.a.JSC$10995_buildRequest=function(x,G,D){if(_.B("enable_interstitial_entity_check")){var K=this.JSC$11007_storeWithEntities;if(G.videoId)for(var z=_.l(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),y=z.next();!y.done;y=z.next()){y=y.value;var c;var W=void 0,e=void 0,Q=G.videoId,p=y;(c=K)?(Q=_.K3(Q+p,"interstitialInteractionStateEntity"),c=(W=(e=_.zm(c.getState().entities,"interstitialInteractionStateEntity",Q))==null?void 0:e.primaryButtonClicked)!=null?W:!1):c=!1;if(c)switch(y){case "CONTENT_CHECK_REQUIRED":G.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":G.racyCheckOk=!0}}}G.videoId&&(x.videoId=G.videoId);G.playlistId&&(x.playlistId=G.playlistId);G.index!==void 0&&(x.playlistIndex=G.index+1);G.playerParams&&(x.params=G.playerParams);"startTimeSeconds"in G&&G.startTimeSeconds&&(_.B("enable_player_request_builder_start_time_floor")?x.startTimeSecs=Math.floor(G.startTimeSeconds):x.startTimeSecs=G.startTimeSeconds);D.contentPlaybackContext&&(x.playbackContext={contentPlaybackContext:D.contentPlaybackContext});D.prefetchPlaybackContext&&
(x.playbackContext=Object.assign({},x.playbackContext,{prefetchPlaybackContext:D.prefetchPlaybackContext}),x.context.request||(x.context.request={}),x.context.request.isPrefetch=!0);x.playbackContext||(x.playbackContext={});K=mdE();x.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!K,supportXhr:XtZ};D.overrideMutedAtStart&&(x.overrideMutedAtStart=D.overrideMutedAtStart);x.racyCheckOk=!!G.racyCheckOk;x.contentCheckOk=!!G.contentCheckOk;!_.B("captions_prefs_killswitch")&&(D=(D=_.xt("yt-player-caption-language-preferences"))?
D:[],D==null?0:D.length)&&(x.captionParams={viewerSelectedCaptionLangs:D})};
_.a.getRequestConfig=function(x){x=this.JSC$11002_getStoreKey(x);var G;x&&(G={storeStrategy:{storeKey:x}});_.B("web_log_player_watch_next_ticks")&&(G=G||{},G.requestTick="ps_s",G.responseTick="ps_r");return G};
KF[dq]=[z0];var zP=function(){};
_.m(zP,E3);_.a=zP.prototype;_.a.getApiPaths=function(){return $z8};
_.a.getExtension=function(x){return _.Y(x,_.d5)};
_.a.isNavigationCommand=function(){return!0};
_.a.JSC$11002_getStoreKey=function(x){if((x=this.getExtension(x))&&x.videoId){var G={videoId:x.videoId};x.playlistId&&(G.playlistId=x.playlistId);x.index&&(G.index=x.index);x.params&&(G.params=x.params);return _.ux("next",G)}};
_.a.JSC$10995_getClientScreen=function(x){var G;return((G=x.contentPlaybackContext)==null?void 0:G.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.a.JSC$10995_buildRequest=function(x,G,D){G.videoId&&(x.videoId=G.videoId);G.playlistId&&(x.playlistId=G.playlistId);G.params&&(x.params=G.params);G.index!==void 0&&(x.playlistIndex=G.index);x.racyCheckOk=!(!D.racyCheckOk&&!G.racyCheckOk);x.contentCheckOk=!!G.contentCheckOk;D.contentPlaybackContext&&(x.autonavState=D.contentPlaybackContext.autonavState,x.playbackContext={vis:D.contentPlaybackContext.vis,lactMilliseconds:D.contentPlaybackContext.lactMilliseconds});D.prefetchPlaybackContext&&(x.context.request||
(x.context.request={}),x.context.request.isPrefetch=!0);_.B("captions_hats_killswitch")||(G=_.M5().getFlag(65),G=G!=null?!G:!1,D=!!_.xt("yt-player-sticky-caption"),x.captionsRequested=G&&D)};
_.a.getRequestConfig=function(x){x=this.JSC$11002_getStoreKey(x);var G;x&&(G={storeStrategy:{storeKey:x}});_.B("web_log_player_watch_next_ticks")&&(G=G||{},G.requestTick="wn_s",G.responseTick="wn_r");return G};
var aQ=function(){};
_.m(aQ,E3);aQ.prototype.getApiPaths=function(){return $z8};
aQ.prototype.getExtension=function(x){return _.Y(x,_.Il)};
aQ.prototype.JSC$10995_buildRequest=function(x,G){G.token&&(x.continuation=G.token)};var oQ=function(x,G){this.playerRequestBuilder=x;this.watchNextRequestBuilder=G};
_.m(oQ,E3);oQ.prototype.getApiPaths=function(){return iJs};
oQ.prototype.getExtension=function(x){return _.Y(x,_.d5)};
oQ.prototype.isNavigationCommand=function(){return!0};
oQ.prototype.JSC$10995_buildRequest=function(x,G,D){x.playerRequest={};this.playerRequestBuilder.JSC$10995_buildRequest(x.playerRequest,G,D);_.B("web_streaming_watch")&&(x.watchNextRequest={},this.watchNextRequestBuilder.JSC$10995_buildRequest(x.watchNextRequest,G,D))};
oQ[dq]=[KF,zP];var AMq;_.yb=new _.wq("SHORTS_CONTROLLER_TOKEN");AMq=new _.wq("SHORTS_STATE_STORE_TOKEN");var lk=function(x,G){var D=_.rC.apply(2,arguments);x=x===void 0?0:x;_.LL.call(this,G,D);this.errorType=x;Object.setPrototypeOf(this,this.constructor.prototype)};
_.m(lk,_.LL);var Uds,R2E,nno,pfV,U$,nIf,ddh,u2s,fQi,N8s,qJ8;Uds=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(x){return x+"="}).join("|"));
R2E=RegExp(".*\\?.*playnext=1.*");_.cP=function(x,G,D,K){this.watchEndpointMap=x;this.reelWatchEndpointMap=G;this.innerTubeTransportService=D;this.fetchPbj=K};
nno=function(x,G,D){var K=_.Eo().resolve(_.P6(SJs));_.cP.instance=new _.cP(x,G,D,K)};
_.iMq=function(x,G){var D=_.Gz("web_pbj_log_warning_rate",0);D=D>0&&Math.random()<D;var K;if((K=_.Y(G.commandMetadata,_.fC))==null||!K.rootVe)return D&&_.O9(Error("Pf")),!1;var z;K=(z=_.Y(G.commandMetadata,_.fC))==null?void 0:z.url;if(!K)return D&&_.O9(Error("Qf")),!1;if(R2E.test(K))return!0;if(Uds.test(K))return D&&_.O9(Error("Rf`"+K)),!1;if(_.Y(G,_.d5)){if(!(x.watchEndpointMap.watchNext&&x.watchEndpointMap.player||_.B("kevlar_fetch_initial_data_op_watch_client")))return D&&_.O9(Error("If")),!1;
x=_.Gz("web_pbj_log_warning_rate",0);x=x>0&&Math.random()<x;_.Y(G,_.d5)?xCO(G)?G=!0:(x&&_.O9(Error("Jf")),G=!1):(x&&_.O9(Error("If")),G=!1);return G}if(_.Y(G,_.MB))return GSD(G);if(_.Y(G,_.mP))return!0;x=_.Uu(x.innerTubeTransportService,G);!x&&D&&_.I4(Error("Sf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(G)});return x};
pfV=function(x,G,D,K,z,y){G={url:G};if(D==null?0:D.itct)G.parentTrackingParams=D.itct;var c=_.qW(aHZ);return _.ma(x.innerTubeTransportService,G,c).then(function(W){(W=W.endpoint)||(W=_.yM);(D==null?0:D.itct)&&W&&!W.trackingParams&&(W.trackingParams=D.itct);var e=eT(W);return U$(x,W,D,K,e,z,y)})};
U$=function(x,G,D,K,z,y,c,W){W=W===void 0?{}:W;if(x.fetchPbj&&!_.iMq(x,G)&&!_.B("force_one_platform")){W=x.fetchPbj(G);var e=_.aI(W.then(function(v){if(!v)throw Error("Tf");c(e)||y(G,v);return v}));
return e}var Q,p,V={rootVe:(Q=_.Y(G.commandMetadata,_.fC))==null?void 0:Q.rootVe,url:(p=_.Y(G.commandMetadata,_.fC))==null?void 0:p.url,endpoint:G,page:z};if(_.Y(G,_.d5)){var L,r={contentPlaybackContext:_.V7(D,(L=_.Y(G.commandMetadata,_.fC))==null?void 0:L.url,K)},H=_.Ss();_.B("web_streaming_watch")&&window.TextDecoderStream?(W=gns(x.innerTubeTransportService,G,r,function(v){!V.response&&v.content&&(V.response=v.content);!V.playerResponse&&v.player&&(V.playerResponse=v.player);y(G,V)}),Q=tHh(G),Q.length&&
(V.preconnect=Q,y(G,V)),u2s(W,H,V).catch(function(v){v instanceof lk&&v.errorType===2&&ddh(x,G,r,V,y,c,H)})):ddh(x,G,r,V,y,c,H);
return H.promise}if(_.Y(G,_.MB)){var O;if(((O=_.Y(G,_.MB))==null?void 0:O.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var A=_.Ss();_.wt7(_.Eo().resolve(_.yb),G).then(function(v){qJ8(x,D,K,z,y,A,v)});
return A.promise}W=_.aI();var g;Q={contentPlaybackContext:_.V7(D,(g=_.Y(G.commandMetadata,_.fC))==null?void 0:g.url,K)};(g=x.reelWatchEndpointMap.player)&&(g=g().JSC$10995_getRequest(G,Q))&&(W=_.ma(x.innerTubeTransportService,g.innerTubeRequest,g.input,G.clickTrackingParams,g.config));g=_.aI();(p=x.reelWatchEndpointMap.reelItemWatch)&&(p=p().JSC$10995_getRequest(G))&&(g=_.ma(x.innerTubeTransportService,p.innerTubeRequest,p.input,G.clickTrackingParams,p.config));p=_.aI();(L=x.reelWatchEndpointMap.reelWatchSequence)&&
_.Y(G,_.MB).sequenceParams&&(Q=L().JSC$10995_getRequest(G,Q))&&(p=_.ma(x.innerTubeTransportService,Q.innerTubeRequest,Q.input,G.clickTrackingParams,Q.config));Q=_.aI(V);L=_.Ss();N8s(G,Q,W,g,p,y,c,L);return L.promise}var u;if(_.Y(G,kPn)&&((u=_.Y(G.commandMetadata,_.fC))==null?0:u.url))return W=TVh(_.wM(Fn().location.href),_.wM(_.Y(G.commandMetadata,_.fC).url)).toString(),pfV(x,W,D,K,y,function(){return!1});
if(_.Y(G,_.mP))return y(G,V),_.aI(V);if(_.Uu(x.innerTubeTransportService,G)){W=Object.assign({},{tempData:D,disableCache:D.disableCache},W);var f=_.Rl(x.innerTubeTransportService,G,W).then(function(v){V.response=v;c(f)||y(G,V);return V});
return f}return _.aI(V)};
_.JM8=function(x,G,D,K){if(_.Y(G,_.d5)||_.Y(G,_.MB)&&(_.B("mweb_enable_shorts_innertube_player_prefetch")||_.B("kevlar_enable_shorts_prefetch_in_sequence"))||_.Y(G,Pl7)&&_.B("web_enable_prefetching_videos_on_home")){var z,y={contentPlaybackContext:_.V7(D,(z=_.Y(G.commandMetadata,_.fC))==null?void 0:z.url,K),prefetchPlaybackContext:aNL(D)},c,W,e;if(((c=_.Y(G,_.d5))==null?void 0:(W=c.watchEndpointSupportedPrefetchConfig)==null?void 0:(e=W.prefetchHintConfig)==null?void 0:e.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(D=
x.watchEndpointMap.watchNext)if(y=D().JSC$10995_getRequest(G,y))return Promise.resolve(_.ma(x.innerTubeTransportService,y.innerTubeRequest,y.input,void 0,y.config).then(function(V){return V}))}else if(_.Y(G,_.MB)&&_.B("web_prefetch_riw_for_next_video")){if(D=x.reelWatchEndpointMap.reelItemWatch)if((D=D().JSC$10995_getRequest(G,y))&&_.ma(x.innerTubeTransportService,D.innerTubeRequest,D.input,void 0,D.config).then(function(V){return V}),D=x.reelWatchEndpointMap.player)if(y=D().JSC$10995_getRequest(G,
y))return Promise.resolve(_.ma(x.innerTubeTransportService,y.innerTubeRequest,y.input,void 0,y.config).then(function(V){return V}))}else if(D=x.watchEndpointMap.player)if(y=D().JSC$10995_getRequest(G,y))return Promise.resolve(_.ma(x.innerTubeTransportService,y.innerTubeRequest,y.input,void 0,y.config).then(function(V){return V}))}else if(_.Uu(x.innerTubeTransportService,G)){var Q={tempData:D},p=vnZ(x.innerTubeTransportService,G);
return p?new Promise(function(V,L){var r,H;return _.T(function(O){if(O.nextAddress==1)return _.Z(O,p,2);if(O.nextAddress!=4)return r=O.yieldResult,r.JSC$11002_getStoreKey(G,Q)?_.Z(O,_.Rl(x.innerTubeTransportService,G,Q),4):(L(new _.LL("Prefetching request builder with no store key.",G)),O.jumpTo(0));H=O.yieldResult;V(H);_.c5(O)})}):Promise.reject(new _.LL("Prefetching unregistered request builder.",G))}return Promise.reject(new _.LL("No request builder available to prefetch endpoint.",G))};
nIf=function(x,G){var D,K,z;if(_.Y(G,_.d5)){var y=x.watchEndpointMap.watchNext;y&&(D=y());(x=x.watchEndpointMap.player)&&(K=x())}else if(_.Y(G,_.MB))(y=x.reelWatchEndpointMap.reelItemWatch)&&(D=y()),(y=x.reelWatchEndpointMap.player)&&(K=y()),(x=x.reelWatchEndpointMap.reelWatchSequence)&&(z=x());else{a:{x=v3Q(G,x.innerTubeTransportService.endpointMap);if(x!==void 0)if(typeof x.then==="function")_.I4(new _.LL("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",G));else break a;
x=void 0}x&&(D=x)}var c,W,e;return{content:(c=D)==null?void 0:c.JSC$11002_getStoreKey(G),player:(W=K)==null?void 0:W.JSC$11002_getStoreKey(G),reelSequence:(e=z)==null?void 0:e.JSC$11002_getStoreKey(G)}};
ddh=function(x,G,D,K,z,y,c){var W=_.aI(),e=x.watchEndpointMap.player;_.B("web_streaming_player")&&(e=pt(oQ));e&&(e=e().JSC$10995_getRequest(G,D))&&(W=_.ma(x.innerTubeTransportService,e.innerTubeRequest,e.input,G.clickTrackingParams,e.config));e=_.aI();var Q=x.watchEndpointMap.watchNext;Q&&(D=Q().JSC$10995_getRequest(G,D))&&(e=_.ma(x.innerTubeTransportService,D.innerTubeRequest,D.input,G.clickTrackingParams,D.config));x=_.aI(K);fQi(G,x,W,e,z,y,c)};
u2s=function(x,G,D){return _.T(function(K){if(K.nextAddress==1)return _.Z(K,x,2);G.resolve(D);_.c5(K)})};
fQi=function(x,G,D,K,z,y,c){var W,e,Q,p,V;_.T(function(L){switch(L.nextAddress){case 1:return _.Z(L,G,2);case 2:W=L.yieldResult;if(y(c.promise))return c.resolve(W),L.return();z(x,W);e=tHh(x);if(!e.length){L.jumpTo(3);break}return _.Z(L,G,4);case 4:W.preconnect=e,z(x,W);case 3:return _.Kl(L,5),_.Z(L,D,7);case 7:Q=L.yieldResult;_.iI(L,6);break;case 5:return p=_.lX(L),c.reject(p),L.return();case 6:if(Q===void 0)return W.reload=!0,z(x,W),c.resolve(W),L.return();if(y(c.promise))return c.resolve(W),L.return();
W.playerResponse=Q;z(x,W);_.Kl(L,8);return _.Z(L,K,10);case 10:V=L.yieldResult;_.iI(L,9);break;case 8:_.lX(L);case 9:if(V===void 0)return W.response={responseContext:{}},c.resolve(W),L.return();if(y(c.promise))return c.resolve(W),L.return();W.response=V;z(x,W);c.resolve(W);_.c5(L)}})};
N8s=function(x,G,D,K,z,y,c,W){var e,Q,p,V,L,r;_.T(function(H){switch(H.nextAddress){case 1:return _.Z(H,G,2);case 2:e=H.yieldResult;if(c(W.promise))return W.resolve(e),H.return();y(x,e);Q=tHh(x);if(!Q.length){H.jumpTo(3);break}return _.Z(H,G,4);case 4:e.preconnect=Q,y(x,e);case 3:return _.Kl(H,5),_.Z(H,D,7);case 7:p=H.yieldResult;_.iI(H,6);break;case 5:return V=_.lX(H),W.reject(V),H.return();case 6:if(p===void 0)return e.reload=!0,y(x,e),W.resolve(e),H.return();if(c(W.promise))return W.resolve(e),
H.return();e.playerResponse=p;y(x,e);_.Kl(H,8);return _.Z(H,K,10);case 10:L=H.yieldResult;_.iI(H,9);break;case 8:_.lX(H);case 9:if(L===void 0)return e.response={responseContext:{}},W.resolve(e),H.return();if(c(W.promise))return W.resolve(e),H.return();e.response=L;y(x,e);_.Kl(H,11);return _.Z(H,z,13);case 13:r=H.yieldResult;_.iI(H,12);break;case 11:_.lX(H);case 12:if(c(W.promise))return W.resolve(e),H.return();e.reelWatchSequenceResponse=r;y(x,e);W.resolve(e);_.c5(H)}})};
qJ8=function(x,G,D,K,z,y,c){var W,e,Q,p,V,L;_.T(function(r){if((W=c)==null||!W.replacementEndpoint)return y.reject(),r.return();e=c.replacementEndpoint;(Q=_.Y(e,_.MB))?(c.sequenceContinuation&&(Q.sequenceParams=c.sequenceContinuation),p=_.Eo().resolve(_.yb),V=Q.sequenceParams,tes(p,e)&&delete Q.sequenceParams,L=U$(x,e,G,D,K,z,function(){return!1}),L.then(function(H){return _.T(function(O){if(O.nextAddress==1)return kp0(p,{reelWatchEndpoint:{sequenceParams:V}},H),_.Z(O,0,2);
y.resolve(H);_.c5(O)})})):y.reject();
_.c5(r)})};_.PmZ=function(x){if(x.validatedFragments_.length==0)return null;if(!x.mergedPrefetchedData_){for(var G=[],D=_.l(x.validatedFragments_),K=D.next();!K.done;K=D.next()){K=_.l(x.fragmentConfiguration_[K.value].graftedKeys);for(var z=K.next();!z.done;z=K.next())(z=x.prefetchedData_[z.value].trackingParams)&&G.push(z)}x.mergedPrefetchedData_={};Object.assign(x.mergedPrefetchedData_,x.prefetchedData_,{clientSideGrafts:G})}return x.mergedPrefetchedData_};var En8;_.TP=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
En8=function(x,G,D){if(_.Et3(G))return x.prefetchCache_.get(_.hJ$(G,D))};_.WP=new _.wq("NAVIGATION_TOKEN");var h2h=function(x){var G=this;var D=D===void 0?QJD():D;var K=K===void 0?_.Eo().resolve(_.WP):K;this.onePickCommand=x;this.JSC$11105_playlistNetworkManager=D;this.navigationManager=K;this.videoPickerBuilder=_.Zh$("yt-addtoplaylist");_.H4u(VRJ(bTE(p6Z(this.videoPickerBuilder.setTitle(x.modalTitle).setSize(1E3).addView(rEh()).addView(BMs())).addView("youtube"),x.selectButtonLabel)),function(z){G.handleAction(z)})};
h2h.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
h2h.prototype.handleAction=function(x){var G=this;if(x&&this.onePickCommand.listId&&x.action==="picked"&&x.docs){var D=[];x.docs.forEach(function(K){D.push({addedVideoId:K.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$11105_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,D).then(function(){_.B("playlist_add_video_hard_reload_killswitch")?G.navigationManager.reload():xgs(G.navigationManager)})}};var GgZ=function(){if(this.constructor===GgZ)throw new TypeError("Uf");};
_.a=GgZ.prototype;_.a.dispose=function(){};
_.a.disconnect=function(){};
_.a.reconnect=function(){};
_.a.observe=function(x,G,D){return{element:x,option:D}};
_.a.unobserveByKey=function(){};var pxL=function(x,G){G=G===void 0?0:G;GgZ.call(this);this.viewroot=x;this.defaultPrescanHeight=G;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),x?{root:x,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.m(pxL,GgZ);_.a=pxL.prototype;_.a.dispose=function(){this.disconnect();this.handlers.clear()};
_.a.disconnect=function(x){this.isConnected=!1;this.pauseObservingUntilReconnect=x===void 0?!1:x;this.observer.disconnect();x=_.l(this.prescanObservers.values());for(var G=x.next();!G.done;G=x.next())G.value.disconnect()};
_.a.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var x=_.l(this.handlers),G=x.next();!G.done;G=x.next()){var D=_.l(G.value);G=D.next().value;var K=D.next().value;D=!1;K=_.l(K.keys());for(var z=K.next();!z.done;z=K.next())if((z=z.value)&&z.state==="prescan"){D=!0;break}D&&Dgs(this,G).observe(G);this.observer.observe(G)}}};
_.a.handleObserveEvent=function(x){x=_.l(x);for(var G=x.next();!G.done;G=x.next()){G=G.value;var D=this.handlers.get(G.target);if(D){var K=G.isIntersecting;D=_.l(D);for(var z=D.next();!z.done;z=D.next()){var y=_.l(z.value);z=y.next().value;y=y.next().value;z&&(z.state==="visible"&&K||z.state==="hidden"&&!K)&&(y(G.target,z.state),z.calledOnce&&this.unobserveByKey({element:G.target,option:z}))}}}};
_.a.handlePrescanEvent=function(x){x=_.l(x);for(var G=x.next();!G.done;G=x.next()){G=G.value;var D=this.handlers.get(G.target);if(D&&G.isIntersecting){D=_.l(D);for(var K=D.next();!K.done;K=D.next()){var z=_.l(K.value);K=z.next().value;z=z.next().value;K&&K.state==="prescan"&&(z(G.target,K.state),K.calledOnce&&this.unobserveByKey({element:G.target,option:K}))}}}};
_.a.observe=function(x,G,D){var K=(K=this.handlers.get(x))&&K.has(D)?{element:x,option:D}:void 0;if(K)return K;K={element:x,option:D};this.handlers.has(x)||this.handlers.set(x,new Map);var z=this.handlers.get(x);z&&!z.has(D)&&z.set(D,G);this.pauseObservingUntilReconnect||(D.state==="prescan"&&Dgs(this,x).observe(x),this.observer.observe(x));return K};
_.a.unobserveByKey=function(x){var G=this.handlers.get(x.element);if(G&&G.has(x.option)){G.delete(x.option);if(x&&x.option.state==="prescan")for(var D=_.l(this.prescanObservers.values()),K=D.next();!K.done;K=D.next())K.value.unobserve(x.element);G.size===0&&(this.handlers.delete(x.element),this.observer.unobserve(x.element))}};
var Dgs=function(x,G){var D=x.defaultPrescanHeight;G.hasAttribute("prescan-height")&&(G=Number(G.getAttribute("prescan-height")),isNaN(G)||(D=G));if(x.prescanObservers.has(D))return x.prescanObservers.get(D);G="-0.1px -0.1px "+D+"px -0.1px";G=new IntersectionObserver(x.handlePrescanEvent.bind(x),x.viewroot?{root:x.viewroot,rootMargin:G}:{rootMargin:G});x.prescanObservers.set(D,G);return G};var KZE=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],zQh=function(){var x,G=this;this.JSC$11122_actionRouter=x=x===void 0?_.gu.getInstance():x;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return G.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return G.visibilityObservedElementHandlerKeys}}},aIs,yKs,TRu;
zQh.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.B("kevlar_use_vimio_behavior")&&_.Am("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=VMO())};
zQh.prototype.dispose=function(){this.visibilityMonitor&&_.cA(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
zQh.prototype.handleVisibilityRefreshed=function(){for(var x=_.l(this.targetMap.entries()),G=x.next();!G.done;G=x.next()){var D=_.l(G.value);G=D.next().value;D=D.next().value;_.ocZ(this,G,D)}};
_.cKZ=function(x,G,D){yKs(x,D);var K=_.lI7(x,G);K.element=D;x.targetedElements.set(D,G);_.ocZ(x,G,K)};
yKs=function(x,G){var D=x.targetedElements.get(G);if(D){var K=x.targetMap.get(D);K&&(delete K.element,x.targetMap.set(D,K));x.targetedElements.delete(G);x.visibilityObserver&&x.visibilityObservedElementHandlerKeys&&(D=x.visibilityObservedElementHandlerKeys.get(G))&&(x.visibilityObserver.unobserveByKey(D),x.visibilityObservedElementHandlerKeys.delete(G))}};
_.ocZ=function(x,G,D){var K=D.action,z=D.element;z&&K&&(KZE.includes(G)||_.Am("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||x.visibilityMonitor&&x.visibilityMonitor.isNodeVisible(z)?TRu(x,G,D):x.visibilityObserver&&(x.visibilityObservedElementHandlerKeys||(x.visibilityObservedElementHandlerKeys=new WeakMap),K=x.visibilityObserver.observe(z,function(){TRu(x,G,D);x.visibilityObservedElementHandlerKeys.delete(z)},{calledOnce:!0,
state:"visible"}),x.visibilityObservedElementHandlerKeys.set(z,K)))};
TRu=function(x,G,D){var K=D.action;(D=D.element)&&K&&(_.YG(x.JSC$11122_actionRouter,[K],D),x.targetMap.delete(G),x.targetedElements.delete(D),x.triggeredTargets.add(G))};
_.lI7=function(x,G){var D=x.targetMap.get(G);D||(D={},x.targetMap.set(G,D));return D};
_.e$=function(){aIs||(aIs=new zQh);return aIs};var WZZ=document.createElement("div");WZZ.style.touchAction="pan-down";var bhf=WZZ.style.touchAction==="pan-down";var eQJ,Zji;eQJ=function(){this.hammerFn=e$q();this.JSC$11130_screenManager=_.en();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.BH(83615);_.xP(this.JSC$11130_screenManager,this.ve);Lef()};
_.ZH=function(){Zji||(Zji=new eQJ);return Zji};
eQJ.prototype.registerTouchEvents=function(x,G,D){var K=_.rC.apply(3,arguments),z=this.hammerFn(x,{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}]]});D&&z.set({touchAction:D});this.nodeManagerMapping.set(x,z);var y=
BVf(G);K=_.l(K);for(var c=K.next();!c.done;c=K.next()){c=c.value;if(c.includes("swipe")||c.includes("pinch")||c.includes("pan"))c.includes("swipe")?z.get("swipe").set({enable:!0,direction:y,velocity:.2}):c.includes("pinch")?z.get("pinch").set({enable:!0}):c.includes("pan")&&(z.get("pan").set({enable:!0,direction:y}),z.get("swipe").set({enable:!0,direction:y,velocity:.2}),z.get("swipe").recognizeWith("pan"));MGh(this,x,z,c)}};
var MGh=function(x,G,D,K){D.on(K,function(z){if(K.includes("pinch"))x.lastPinchTime=Date.now();else if(K.includes("swipe")&&Date.now()-x.lastPinchTime<400)return;z.pointerType!=="mouse"&&(z=K==="doubletap"?{coordinates:z.center}:K.includes("pan")?z:K.includes("swipe")?{target:z.target}:{},G.dispatchEvent(new CustomEvent(K,{bubbles:!0,composed:!0,detail:z})))})};
eQJ.prototype.unregisterTouchEvents=function(x){var G=_.rC.apply(1,arguments),D=this.nodeManagerMapping.get(x);if(D){G=_.l(G);for(var K=G.next();!K.done;K=G.next())D.off(K.value);this.nodeManagerMapping.delete(x);x.style.touchAction="unset"}};var QHi=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var rXV=null;var p2J=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},gbf=function(){p2J.instance||(p2J.instance=new p2J);
return p2J.instance},utC=function(x){var G=x.networkEvents;
x.networkEvents=[];return _.B("enable_network_monitoring")?G:[]};var VGi;VGi={};_.bj9=tv("yt-serviceworker-metadata",{objectStores:(VGi.auth={addedAtVersion:1},VGi["resource-manifest-assets"]={addedAtVersion:2},VGi),shared:!0,upgrade:function(x,G){G(1)&&Up(x,"resource-manifest-assets");G(2)&&Up(x,"auth")},
version:2});var FeO=self.location.origin+"/";C9O([/\.css$/,/\.js$/,/\.ico$/,/\/ytmweb\/_\/js\//,/\/ytmweb\/_\/ss\//,/\/kabuki\/_\/js\//,/\/kabuki\/_\/ss\//,/\/ytmainappweb\/_\/js\//,/\/ytmainappweb\/_\/ss\//,/\/ytmusicweb\/_\/js\//,/\/ytmusicweb\/_\/ss\//,/\/music_integrations\/_\/js\//,/\/music_integrations\/_\/ss\//]);C9O([/purge_shell=1/]);var LZ7=void 0;LZ7=LZ7===void 0?[]:LZ7;for(var BR0=[],rK9=_.l(Gzi),sHi=rK9.next();!sHi.done;sHi=rK9.next())BR0.push({key:sHi.value});for(var Yb8=_.l(LZ7),mgi=Yb8.next();!mgi.done;mgi=Yb8.next())BR0.push(mgi.value);var Hjk,$A=_.Df==null?void 0:(Hjk=_.Df.performance)==null?void 0:Hjk.memory,Ohn=!1,dCV={},UC$={},F5={},Ct=navigator;var Mz=function(x){this.JSC$11174_expiringStorage=new rx(x)};
Mz.prototype.set=function(x,G,D){D=D!==void 0?Date.now()+D:void 0;this.JSC$11174_expiringStorage.set(x,G,D)};
Mz.prototype.get=function(x){return this.JSC$11174_expiringStorage.get(x)};
Mz.prototype.remove=function(x){this.JSC$11174_expiringStorage.remove(x)};var kS3=_.gv(["https://www.youtube.com/",""]),P9f=_.gv(["https://studio.youtube.com/",""]),DEO="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",hlQ=null,ypd;var $gs=_.gv(["https://www.youtube.com/iframe_api"]),Qb=function(){this.playerResolver_=_.Ss();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.ld;this.playbackDurationSeconds_=0},FZo=function(x){var G=function(){return window.YT&&typeof window.YT.ready==="function"};
if(G())return _.aI(window.YT);var D=_.Ss(),K=_.p4("SCRIPT");K.onload=K.onreadystatechange=function(){K.readyState&&K.readyState!="loaded"&&K.readyState!="complete"||(K.onload=_.ld,K.onreadystatechange=_.ld,K.onerror=_.ld,G()?D.resolve(window.YT):D.reject(new _.LL("Failed to load the iframe player library","script.onload",K.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
K.onerror=function(z){K.onload=_.ld;K.onreadystatechange=_.ld;K.onerror=_.ld;D.reject(new _.LL("Failed to load the iframe player library","script.onerror",z&&z.target&&z.target.src))};
_.Sr(K,_.xS($gs));x.insertBefore(K,x.firstChild);return D.promise},CuE=function(x,G,D){var K,z;
_.T(function(y){switch(y.nextAddress){case 1:return x.playbackEndedCallback_=D,_.Kl(y,2),_.Z(y,FZo(G.parentElement||null),4);case 4:K=y.yieldResult;_.iI(y,3);break;case 2:return z=_.lX(y),z instanceof _.LL&&z.args&&z.args[0]=="script.onerror"?_.O9(z):_.I4(z),y.return();case 3:K.ready(function(){return new K.Player(G,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:x.onPlayerReady_.bind(x),onStateChange:x.onPlayerStateChange_.bind(x),
onCueRangeExit:x.onCueRangeExit_.bind(x)}})}),_.c5(y)}})};
_.a=Qb.prototype;_.a.getPlayerPromise=function(){return this.playerPromise_};
_.a.onPlayerReady_=function(x){this.playerResolver_.resolve(x.target)};
_.a.onPlayerStateChange_=function(x){if(x.data==YT.PlayerState.PLAYING){x=x.target;var G=x.getCurrentTime();x.addCueRange("playback",G,G+this.playbackDurationSeconds_)}};
_.a.onCueRangeExit_=function(x){x.data=="playback"&&(x.target.stopVideo(),this.playbackEndedCallback_())};
_.a.stopVideo=function(){this.playerPromise_.then(function(x){x.stopVideo()})};
var II7=function(x){x.playerVars_&&x.playerPromise_.then(function(G){typeof G.cueVideoByPlayerVars!="function"?_.O9(new _.LL("vmh: player API not ready","cueVideoByPlayerVars",typeof G.cueVideoByPlayerVars)):G.cueVideoByPlayerVars(x.playerVars_)})};
Qb.prototype.playVideo=function(){var x=this;this.playerVars_&&this.playerPromise_.then(function(G){typeof G.loadVideoByPlayerVars!="function"?(G=new _.LL("vmh: player API not ready","loadVideoByPlayerVars",typeof G.loadVideoByPlayerVars),_.I4(G)):G.loadVideoByPlayerVars(x.playerVars_)})};
var jHk=function(x,G,D,K,z){G&&(D===void 0&&(D=0),K===void 0&&(K=0),x.playbackDurationSeconds_=K/1E3,x.playerVars_={adformat:"17_8",videoId:G,suggestedQuality:"hd720",startSeconds:D/1E3,player_params:z})};
Qb.prototype.mute=function(){this.playerPromise_.then(function(x){x.mute()})};
Qb.prototype.unMute=function(){this.playerPromise_.then(function(x){x.unMute()})};var Ojk=function(x,G){var D=A$();x||(x="unknown");G||(G="unknown");x="MAIN_APP_WEB_PAGE_TYPE_"+x.toUpperCase();x in twZ||(x="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");G="MAIN_APP_WEB_REQUEST_TYPE_"+G.toUpperCase();G in kEk||(G="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.yS(D,{mainAppWeb:{pageType:x,requestType:G,isShellLoad:_.Uo("IS_SHELL_LOAD",!1)}})},X29={start:function(){_.yS(XAP(),{mainAppWeb:_.Rn()})},
success:function(){_.lh(XAP(),"SUCCESS")},
failure:function(){_.lh(XAP(),"FAILURE")},
cancelled:function(){_.lh(XAP(),"CANCELLED")}};var AK9,Ug8,QGL;AK9=_.gv(["/sw.js"]);Ug8=_.gv(["/sw.js?0"]);_.RQZ=_.xS(AK9);QGL=_.xS(Ug8);var Sbo=function(){var x=Error.apply(this,arguments);this.message=x.message;"stack"in x&&(this.stack=x.stack)};
_.m(Sbo,Error);_.io.prototype.load=function(x){this.megabloxUrl_=_.Am("YPC_MB_URL");_.Uf(this.megabloxUrl_,(0,_.mW)(function(){x&&x()},this))};
_.uyL=function(x,G,D,K,z,y,c,W,e,Q,p){_.Vyf(e);x.load((0,_.mW)(function(){try{var V=y?y:_.Am("HL"),L=_.Am("SESSION_INDEX");_.WRO("client",function(){eGq("59",{helpCenterPath:"/youtube",locale:V,window:window}).JSC$7983_loadChatSupport({authuser:String(L)})})}catch(r){throw ST(10,p,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),z&&z(r),_.I4(r),r;
}ncJ(this,G,D,K,z,y,c,W,e,Q,p)},x))};
_.io.prototype.openFixFlowDialog=function(x,G,D,K){this.load((0,_.mW)(function(){try{ijs(this,_.nT("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(x).withIntegratorCallback(G).load(D,K)}catch(z){throw _.I4(z),z;}},this))};
var ijs=function(x,G,D,K){var z=G.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.B("enable_window_constrained_buy_flow_dialog")&&(z=z.usingPopupStyle(_.nT("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));K&&(z=z.usingCloseCallback(K));G.bootstrap.fromPaymentsUrl(x.megabloxUrl_);x=G.bootstrap.asMashupMode(z);D=D?D:_.Am("HL");x.usingGaiaIndex(_.Am("SESSION_INDEX")).usingLocale(D).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.B("enable_google_payments_buyflow_material2_style_web")?
x.usingStyle(":m2;pc=#444;ac=#065fd4"):x.usingStyle(":md;pc=#444;ac=#065fd4");return x},ncJ=function(x,G,D,K,z,y,c,W,e,Q,p){try{var V=_.nT("payments.business.integration");
if(!V)throw new Sbo("payments.business.integration is undefined");var L=V.standaloneContextAuthId.forUserId(),r=W;_.B("enable_setting_app_inert_when_buy_flow_opens")&&(r=W?function(){L1d(!1);W()}:function(){L1d(!1)});
var H=ijs(x,V,y,r);c&&H.usingServerAnalyticsEventHandler(c);var O=H.inStandaloneContext(L).buyFlow(function(A){if(A&&(!A.integratorData||A.integratorData===""||A.error))if(A.error!=null)if(String(A.error)==="-1")_.bSE(e);else{var g=String(A.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";ST(10,p,g,A.debugCode);_.nt(g,e,A.debugCode);g=new _.LL("PAYMENT_ERROR_MESSAGE::"+A.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+
A.internalErrorDetails);_.I4(g)}else ST(10,p,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.nt("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",e,"EMPTY_INTEGRATOR_DATA"),_.I4(Error("Zf"));D&&(L1d(!1),D(A))}).withEncryptedParameters(G);
Q&&O.withClientParameters(Cch(_.q7d(Q)));O.load(function(){ST(24,p);_.II("ttc",void 0,"commerce_transaction");xlP("commerce_transaction");K&&(L1d(!0),K())},function(A){if(A==null?0:A.debugCode)var g=A==null?void 0:A.debugCode;
else if(!A||(A==null?0:A.debugCode))g="EMPTY_LOAD_FAILURE_ERROR",_.I4(Error(g));else{g="EMPTY_LOAD_FAILURE_DEBUG_CODE";var u=new _.LL("LOAD_FAILURE:"+A.message," DEBUG_CODE:"+g);_.I4(u)}ST(10,p,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",g);_.nt("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",e,g);_.I4(A);z&&z(A)})}catch(A){throw A instanceof Sbo&&(ST(10,p,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),z&&z(A)),_.I4(A),A;
}};var gcu;gcu=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.nkn=function(x,G){G=G===void 0?!1:G;x=gcu.test(x)?_.oF(x):null;!G&&window.payments||!x?(x=_.Ss(),G=x.promise,x.resolve()):G=_.B$(x,{attributes:{"data-payments-main":"",id:"payment-lib"}});return G};var uTk;uTk=_.gv(["//www.googletagmanager.com/gtm.js?id=",""]);_.pF=function(x,G){_.Ja(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:G}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.Am("GL")}),G=_.p4("SCRIPT"),G.async=!0,_.Sr(G,_.xS(uTk,x)),G.id="gtm",x=document.getElementsByTagName("script"),x.length==0?document.head.appendChild(G):(x=x[0],x.parentNode.insertBefore(G,x)))};
_.Vb=function(x){if(x=JSON.parse(x))window.dataLayer=window.dataLayer||[],window.dataLayer.push(x)};var dgE,w28;dgE=_.gv(["https://clients2.google.com/gr/gr_sync.js"]);_.REQ=function(){};
_.REQ.prototype.init=function(){if(w28()){var x=_.Ss();x.resolve();return x.promise}return _.B$(_.xS(dgE)).then(function(){if(!w28())throw Error("$f");},function(){throw Error("ag");
})};
_.SzP=function(){if(!w28())return"";var x=window.google.gr;x.init({async:{schedule:"sync"},merchantId:"youtube"});x.start();x=x.finish();return x==null?"":x};
w28=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.n=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.m(_.n,PolymerFakeBaseClassWithoutHtml);_.WD=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.m(_.WD,PolymerFakeBaseClassWithoutHtml);var BEd=window.ShadyDOM;var Gpd,hKn,KpQ,z2P,onn,yME,bk,tS;Gpd=_.B("enable_shadydom_free_scoped_query_methods");hKn=_.B("enable_shadydom_free_scoped_node_methods");KpQ=_.B("enable_shadydom_free_scoped_readonly_properties_batch_one");z2P=_.B("enable_shadydom_free_parent_node");onn=_.B("enable_shadydom_free_children");yME=_.B("enable_shadydom_free_last_child");bk=window.ShadyDOM;_.D6=bk&&bk.noPatch&&bk.wrap?bk.wrap:bk?function(x){return bk.patch(x)}:function(x){return x};
tS=function(x){if(x instanceof ShadowRoot)this.host=(0,_.D6)(x.host),this.root=x;else if(x.$$){this.host=(0,_.D6)(x);var G;this.root=(G=x.root)!=null?G:this.host}else if(x.polymerController){this.host=(0,_.D6)(x);var D;this.root=(D=this.host.shadowRoot)!=null?D:this.host}else this.root=this.host=(0,_.D6)(x)};
xdh();DdE();lQh();cMf();aQE();var qbs={querySelector:function(x,G){G=sGQ(G,wA(x));x=_.qB(x);return NB(x).prototype.querySelector.call(x,G)},
querySelectorAll:function(x,G){G=sGQ(G,wA(x));x=_.qB(x);return NB(x).prototype.querySelectorAll.call(x,G)}},NRo={appendChild:function(x,G){var D=wA(x),K=_.dA(G);
return _.P4P(_.qB(x),D?_.JS(G,D,K):G)},
cloneNode:function(x,G){var D=_.dA(x);x=_.qB(x);G=NB(x).prototype.cloneNode.call(x,G);return D?ft(G,D):G},
contains:function(x,G){var D=wA(x),K=_.dA(G);return D!==K?!1:ElQ(x,G)},
insertBefore:function(x,G,D){var K=wA(x),z=_.dA(G);x=_.qB(x);G=K?_.JS(G,K,z):G;return NB(x).prototype.insertBefore.call(x,G,D)},
removeChild:function(x,G){var D=wA(x);x=_.qB(x);G=D?ft(G,D):G;return NB(x).prototype.removeChild.call(x,G)},
replaceChild:function(x,G,D){var K=wA(x),z=_.dA(G);G=K?_.JS(G,K,z):z?ft(G,z):G;D=K?ft(D,K):D;x=_.qB(x);return NB(x).prototype.replaceChild.call(x,G,D)},
getRootNode:function(x,G){G=G===void 0?{composed:!0}:G;var D;if(((D=G)!=null?D:{}).composed)x=Ap3(x);else{G=x;for(x=mED(x);x;)G=x,x=$E$(x);x=G}return x}},WpO=KpQ?{firstChild:NEn,
nextSibling:dEC,previousSibling:qnQ,firstElementChild:vln,lastElementChild:fed,nextElementSibling:uLC,previousElementSibling:wTO,childNodes:tyC}:{};z2P&&(WpO.parentNode=glh);onn&&(WpO.children=kkD);yME&&(WpO.lastChild=Jpf);Gpd&&T8h(qbs);hKn&&T8h(NRo);e2O();var ZM3=function(x){this.node=x instanceof ShadowRoot?x.host:x};
Mef();QdE();var bMn=new WeakMap;var B8L=Symbol("ud");var HM$=new Set(["tap","track","down","up"]),$dC=_.B("pbcm_fi_query_decorators");var LF=function(){return _.WD.apply(this,arguments)||this};
_.m(LF,_.WD);_.a=LF.prototype;_.a.getState=function(){return this.store.getState()};
_.a.dispatch=function(x){this.store.dispatch(x)};
_.a.beforeRegister=function(){if(this&&typeof this==="object"){var x;var G=!!this.useSignals||!((x=this.polymerController)==null||!x.useSignals)}else G=!1;if(!G&&this.properties)for(G=_.l(Object.keys(this.properties)),x=G.next();!x.done;x=G.next()){var D=x.value;x=this.properties[D];if(x.selector){if(x.computed)throw Error("gg");D=["reduxPropertiesRecomputeTrigger",'"'+D+'"'].concat(_.B5(x.selectorArgs||[])).join(",");x.computed="recomputeReduxSelector("+D+")"}}};
_.a.attached=function(){var x=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){x.reduxPropertiesRecomputeTrigger++}));
_.B("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.a.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.a.recomputeReduxSelector=function(x,G){var D=_.rC.apply(2,arguments),K=this.properties[G].selector;if(!K)throw Error("eg`"+G);return K.apply(null,[this.store.getState()].concat(_.B5(D)))};
_.a.select=function(x){var G=_.rC.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return x.apply(null,[this.store.getState()].concat(_.B5(G)))};
_.Nq.Object.defineProperties(LF.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("fg");}}});
LF.prototype.recomputeReduxSelector=LF.prototype.recomputeReduxSelector;_.q([_.R(),_.N("design:type",Number)],LF.prototype,"reduxPropertiesRecomputeTrigger",void 0);LF=_.q([_.e2()],LF);var BP=[],jdO={},my=function(){return JU.apply(this,arguments)||this};
_.m(my,JU);my.prototype._addPropertyEffect=function(x,G,D){if(G==="__observeEffects"&&D){var K,z=(K=D.info.method)!=null?K:D.info.methodName;if(z){var y=this[z];this[z]=function(){BP.push(z);try{y==null||y.apply(this,arguments)}finally{BP.pop()}}}}_.We._addPropertyEffect.apply(this,[x,
G,D])};
my.prototype._setPendingProperty=function(x,G,D){if(BP.length){var K=BP[BP.length-1],z;(z=jdO[this.is])!=null&&z.has(K)||(OM3(this.is,K),_.Fv("polymerPropertyChangedInObserver",{componentName:this.is,observerName:K}))}return _.We._setPendingProperty.apply(this,[x,G,D])};
my=_.q([p1L()],my);var Xtf=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),UdV,Qf={};_.B("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=Qf);var bD=function(){return _.WD.apply(this,arguments)||this};
_.m(bD,_.WD);bD.prototype._setUnmanagedPropertyToNode=function(x,G,D){x.loggingStatus&&(x.loggingStatus.isDeclarativeExternal=!0);if(D!==x[G]||typeof D==="object")x[G]=D;x.is&&x.polymerController&&x.polymerController!==x&&p7(x.is,G,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");x.loggingStatus&&(x.loggingStatus.isDeclarativeExternal=!1)};
bD=_.q([_.e2()],bD);AMO()&&(XK.prototype._setUnmanagedPropertyToNode=(new bD)._setUnmanagedPropertyToNode);_.teL={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(x){},set polymerController(x){}}]};var Yr=function(){var x=JU.apply(this,arguments)||this;x.json=function(){};
return x};
_.m(Yr,JU);Yr.prototype.equals=function(x,G){return x===G};
Yr.prototype.isEmpty=function(x){return!x||_.PL(x)&&x.length===0};
Yr=_.q([p1L()],Yr);var vch=function(x){x=ZXh(x);Fa.call(this,x)};
_.m(vch,Fa);vch.prototype.addProvider=function(x){x=x.key?x:ZXh([x])[0];var G=this.keyIdToIndex.get(x.key.id);if(G){if(gnL(x,this.providers[G]))throw Error("hg`"+x.key.displayName);}else Fa.prototype.addProvider.call(this,x)};
var JKJ=new vch([]);var fIu=!1;var vnP={};fIu||(N8L(),fIu=!0);
vnP.InjectBehavior={initializeInjection:function(){var x=this.provide;try{if((x=x!=null?x:[])&&x.length>0)for(var G=ZXh(x),D=_.l(G),K=D.next();!K.done;K=D.next())JKJ.addProvider(K.value);var z=new Set;u2L(this.behaviors||[],z);G={};for(var y=_.l(z),c=y.next();!c.done;c=y.next()){var W=c.value;W.inject&&Object.assign(G,W.inject)}this.inject&&Object.assign(G,this.inject);for(var e=_.l(Object.keys(G)),Q=e.next();!Q.done;Q=e.next()){var p=Q.value,V=G[p];try{this[p]=JKJ.resolve(V)}catch(L){throw L;}}}catch(L){throw Error(L.message);
}}};var fQh;var kpL=/\bclass\b/.test(function(){}.toString()),h2E=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var tGu=function(x){this.wasDefined=!0;Array.isArray(x)||x instanceof Array?(this.JSC$11303_getImpl=x[0],this.JSC$11303_setImpl=x[1]):this.JSC$11303_getImpl=x};
_.a=tGu.prototype;_.a.getWithPath=function(x){return DgV(this.JSC$11303_getImpl(),x)};
_.a.setWithPath=function(x,G){var D=this;if(x.length)throw Error("ig");if(!this.JSC$11303_setImpl)throw Error("jg");b1(function(){D.JSC$11303_setImpl(G)})};
_.a.notifyPath=function(){throw Error("kg");};
_.a.notifySplices=function(){throw Error("lg");};
_.a.getChangeRecordSignal=function(x,G){var D=this;if(x.length)throw Error("mg");return function(){var K=D.getWithPath(x);return{path:G!=null?G:"",base:K,value:K}}};
_.a.getSplicesSignal=function(){throw Error("ng");};
_.a.getPathMutationSignal=function(){throw Error("og");};
_.a.pop=function(){throw Error("pg");};
_.a.push=function(){throw Error("qg");};
_.a.splice=function(){throw Error("rg");};
_.a.unshift=function(){throw Error("sg");};var r2=function(x){var G=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(x)||x instanceof Array?(this.JSC$11308_getImpl=x[0],this.JSC$11308_setImpl=x[1]):this.JSC$11308_getImpl=x;this.wasDefined=!1;Wl(function(){G.wasDefined=G.JSC$11308_getImpl()!==void 0})};
r2.prototype.getWithPath=function(x){return DgV(this.JSC$11308_getImpl(),x)};
r2.prototype.setWithPath=function(x,G){var D=this;if(x[x.length-1]!=="*"&&x[x.length-1]!=="splices"){if(x.length===0){if(!this.JSC$11308_setImpl)throw Error("tg");this.wasDefined||(this.wasDefined=G!==void 0);b1(function(){D.JSC$11308_setImpl(G)})}else{for(var K=Wl(function(){return D.getWithPath([])}),z=0;z<x.length-1;z++){if(!K)return;
K=K[x[z]]}z=x[x.length-1];K&&(K[z]=G);this.wasDefined||(this.wasDefined=x.length>1||G!==void 0)}kg7(this,x,{pathComponents:x,value:G})}};
r2.prototype.notifyPath=function(x,G){x.length===0?G&&this.setWithPath(x,G.value):kg7(this,x,{pathComponents:x,value:G==null?void 0:G.value,fallbackWhenUndefined:G==null?void 0:G.value})};
var kg7=function(x,G,D,K){if(x.setMutationSignal){var z=++x.mutationIndex,y=[x.observedPath],c=x.observedPath,W;G.length===0&&(W=c);for(var e=0;e<G.length;e++){var Q=c.subPaths[G[e]];if(!Q)break;y.push(Q);c=Q;e===G.length-1&&(W=Q)}for(G=!1;y.length;)c=y.shift(),c.data={index:z,mutation:D,spliceMutationIndex:K},G||(G=c===W),G&&y.push.apply(y,_.B5(Object.values(c.subPaths)));b1(function(){x.setMutationSignal(z)})}};
r2.prototype.notifySplices=function(x,G){var D=this,K=Wl(function(){return D.getWithPath(x)}),z=[].concat(_.B5(x),["splices"]);
kg7(this,z,{pathComponents:z,value:{indexSplices:G}});if(K==null?0:K.length)G=this.mutationIndex,z=[].concat(_.B5(x),["length"]),kg7(this,z,{pathComponents:z,value:K.length},G)};
var Pus=function(x,G,D,K,z,y){x.notifySplices(D,[{index:K,addedCount:z,removed:y,object:G,type:"splice"}])},EcZ=function(x,G){x=x.observedPath;
for(var D=0;D<G.length;D++){var K=G[D],z=x.subPaths[K];z||(z={pathComponents:G.slice(0,D+1),subPaths:{}},x.subPaths[K]=z);x=z}},xDs=function(x,G,D){EcZ(x,G);
if(!x.getMutationSignal){var K=_.l(_.eO(x.mutationIndex,void 0,"HavCgf"));x.getMutationSignal=K.next().value;x.setMutationSignal=K.next().value}var z=x.getMutationSignal;return _.V9(function(){z();return D(hQq(x,G))},void 0,"BYaPo")};
r2.prototype.getChangeRecordSignal=function(x,G){var D=this,K=this.mutationIndex,z;return xDs(this,x,function(y){if(y&&y.index>K){var c=y.mutation;K=y.index;z=void 0}y=Wl(function(){return D.getWithPath(x)});
if(c){var W=c.pathComponents[c.pathComponents.length-1],e=[].concat(_.B5(c.pathComponents));if(W==="splices"||W==="length")return{base:y,path:(G?[G].concat(_.B5(e)):e).join("."),value:c.value};var Q=x.length>e.length?x:e,p;return{base:y!=null?y:c.fallbackWhenUndefined,path:(G?[G].concat(_.B5(Q)):Q).join("."),value:(p=Wl(function(){return D.getWithPath(Q)}))!=null?p:c.fallbackWhenUndefined}}z||(z={base:y,
path:(G?[G].concat(_.B5(x)):x).join("."),value:y});return z})};
r2.prototype.getSplicesSignal=function(x){var G=this.mutationIndex,D;return xDs(this,x,function(K){if(K&&K.index>G&&K.spliceMutationIndex!==G){var z=K.mutation;G=K.index;D=void 0}return z&&z.pathComponents[z.pathComponents.length-1]==="splices"?D=K=z.value:D})};
r2.prototype.getPathMutationSignal=function(x){var G=this;EcZ(this,x);if(!this.getMutationSignal){var D=_.l(_.eO(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=D.next().value;this.setMutationSignal=D.next().value}var K=this.getMutationSignal,z=this.mutationIndex,y;return _.V9(function(){K();var c=hQq(G,x);if(c&&c.index>z&&c.mutation&&KZD(c.mutation.pathComponents,x)){var W=c.mutation;z=c.index}if(!y||z!==y.index){var e,Q;c=(Q=Wl(function(){return G.getWithPath(x)}))!=null?Q:(e=W)==null?
void 0:e.fallbackWhenUndefined;
y={index:z,value:c}}return y},void 0,"Aumsyf")};
var hQq=function(x,G){x=x.observedPath;G=_.l(G);for(var D=G.next();!D.done;D=G.next())x=x.subPaths[D.value];return x.data};
r2.prototype.pop=function(x){var G=this,D=Wl(function(){return G.getWithPath(x)});
if(!(D instanceof Array))throw Error("ug");var K=D.length>0,z=D.pop();K&&Pus(this,D,x,D.length,0,[z]);return z};
r2.prototype.push=function(x){var G=_.rC.apply(1,arguments),D=this,K=Wl(function(){return D.getWithPath(x)});
if(!(K instanceof Array))throw Error("vg");var z=K.length,y=K.push.apply(K,_.B5(G));G.length&&Pus(this,K,x,z,G.length,[]);return y};
r2.prototype.splice=function(x,G,D){var K=_.rC.apply(3,arguments),z=this,y=Wl(function(){return z.getWithPath(x)});
if(!(y instanceof Array))throw Error("wg");G<0?G=y.length-Math.floor(-G):G&&(G=Math.floor(G));var c=y.splice.apply(y,[G,D].concat(_.B5(K)));(K.length||c.length)&&Pus(this,y,x,G,K.length,c);return c};
r2.prototype.unshift=function(x){var G=_.rC.apply(1,arguments),D=this,K=Wl(function(){return D.getWithPath(x)});
if(!(K instanceof Array))throw Error("xg");var z=K.unshift.apply(K,_.B5(G));G.length&&Pus(this,K,x,0,G.length,[]);return z};var GnE=!0,DDs=!1,id$=!1,KxZ=!1,se=!1,zV0=0;KxZ=!1;zV0=0;GnE=!0;se=DDs=id$=!1;var Yt=function(x,G,D){this.model=x;this.unknownSignalResolver=G;this.options=D;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];G=_.l(eQ3());x=G.next().value;G=G.next().value;this.owner=x;this.disposeImpl=G};
Yt.prototype.dispose=function(){if(!this.isDisposed){for(var x=_.l(this.childSignalProxies),G=x.next();!G.done;G=x.next())G.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var a99=function(x,G){x=EP(x.owner);try{G()}finally{EP(x)}};
Yt.prototype.effect=function(x){a99(this,function(){_.jO(x)})};
var ods=function(x,G){x.options!=null||(x.options={});var D;(D=x.options).immutableProps!=null||(D.immutableProps=new Set);x.options.immutableProps.add(G)},nc3=function(x,G){G=""+G;
yWZ(x,G);var D,K;if((D=x.options)==null?0:(K=D.immutableProps)==null?0:K.has(G))return!0;var z;if((z=x.model.__signalCache)==null?0:z.has(G))D=x.model.__signalCache.get(G),Array.isArray(D)&&ods(x,G);var y,c,W;return(W=(y=x.options)==null?void 0:(c=y.immutableProps)==null?void 0:c.has(G))!=null?W:!1},l90=function(x,G){var D;
x.unknownSignalResolver&&(D=x.unknownSignalResolver(G));var K,z;((K=x.options)==null?0:(z=K.immutableProps)==null?0:z.has(G))?D!=null||(D=new tGu(_.eO(x.model[G],void 0,"bgwlkd"))):D!=null||(D=new r2(_.eO(x.model[G],void 0,"V1hou")));var y=x.model.hostElement;Object.defineProperty(x.model,G,{get:function(){SJL(y,G);return D.getWithPath([])},
set:function(c){Vf(y,G);x.setWithPath([G],c)},
configurable:!0});return D},yWZ=function(x,G){var D,K,z;
((D=x.model.__signalCache)==null||!D.has(G))&&((K=x.options)==null?0:(z=K.externalSignalProps)==null?0:z.has(G))&&x.model[G]},C7=function(x,G){G=""+G;
var D=x.signalCache[G];if(D!==void 0)return D;D=!1;yWZ(x,G);var K;if((K=x.model.__signalCache)==null?0:K.has(G))if(D=x.model.__signalCache.get(G),Array.isArray(D))D=!0,ods(x,G);else return x.signalCache[G]=x.model.__signalCache.get(G).signal,x.signalCache[G];var z,y;K=(y=(z=x.options)==null?void 0:z.reactivityMode)!=null?y:0;var c,W;if(!((c=x.options)==null?0:(W=c.reactiveProps)==null?0:W.has(G))&&!D&&K===1)throw Error("yg`"+G);z=D?cWJ(x,G):l90(x,G);return x.signalCache[G]=z},cWJ=function(x,G){var D=
Object.getOwnPropertyDescriptor(x.model.constructor.prototype,G),K=function(){return x.model[G]};
return new tGu(D&&D.get&&!D.set?K:[K,function(z){x.model[G]=z}])};
Yt.prototype.getWithPath=function(x){var G=_.l(x);x=G.next().value;G=f4(G);SJL(this.model.hostElement,""+x);return C7(this,x).getWithPath(G)};
Yt.prototype.setWithPath=function(x,G){if(x.length){Vf(this.model.hostElement,x.join("."));var D=_.l(x);x=D.next().value;D=f4(D);C7(this,x).setWithPath(D,G)}};
Yt.prototype.getPathMutationSignal=function(x){var G=_.l(x);x=G.next().value;G=f4(G);return C7(this,x).getPathMutationSignal(G)};
Yt.prototype.notifyPath=function(x,G){var D=_.l(x);x=D.next().value;D=f4(D);C7(this,x).notifyPath(D,G)};
var T_s=function(x,G){if(G.type==="literal")return function(){return{rootWasDefined:!0,value:G.value}};
var D=$r(G.path),K=_.l(D),z=K.next().value;K=f4(K);var y,c;if(G.type==="path"&&(D.length===1||((y=x.options)==null?0:(c=y.immutableProps)==null?0:c.has(z))))return function(){var V=x.getWithPath(D.slice(0,1)),L=DgV(V,D.slice(1));V=V!==void 0;se&&(V=C7(x,D[0]).wasDefined);return{rootWasDefined:V,value:L}};
var W=C7(x,z);if(G.type==="path"){var e=W.getPathMutationSignal(K);return function(){var V=se?W.wasDefined:OX(x.owner,function(){return W.getWithPath([])})!==void 0;
var L,r=(L=e())==null?void 0:L.value;return{rootWasDefined:V,value:r}}}if(G.type==="splices"){var Q=W.getSplicesSignal(K);
return function(){var V=Q();return{rootWasDefined:se?W.wasDefined:V!==void 0,value:V}}}var p=W.getChangeRecordSignal(K,""+z);
return function(){var V=p();return{rootWasDefined:se?W.wasDefined:V!==void 0,value:V}}},cKP=function(x,G,D){var K=D.map(function(W){return T_s(x,W)}),z=D.length===0,y=[],c=D.length!==1||D[0].type!=="path"?!1:!0;
x.effect(function(){for(var W=K.length,e=[],Q=!!y.length,p=0;p<W;p++){var V=K[p](),L=V.rootWasDefined;V=V.value;z||(z=L);e[p]=V;c&&(e[p+W]=Q?y[p]:e[p],y[p]=V)}z&&OX(x.owner,function(){return void G.apply(null,_.B5(e))})})},zQE=function(x,G,D,K,z){var y=C7(x,G);
z!==void 0&&y.setWithPath([],z);cKP(x,function(){var c=_.rC.apply(0,arguments);Vf(x.model.hostElement,G,!0);y.setWithPath([],D.apply(null,_.B5(c)))},K)};
Yt.prototype.arrayPush=function(x){var G=_.rC.apply(1,arguments),D=_.l(x),K=D.next().value;D=f4(D);K=C7(this,K);return K.push.apply(K,[D].concat(_.B5(G)))};
Yt.prototype.arraySplice=function(x,G,D){var K=_.rC.apply(3,arguments),z=_.l(x),y=z.next().value;z=f4(z);y=C7(this,y);return y.splice.apply(y,[z,G,D].concat(_.B5(K)))};
Yt.prototype.arrayUnshift=function(x){var G=_.rC.apply(1,arguments),D=_.l(x),K=D.next().value;D=f4(D);K=C7(this,K);return K.unshift.apply(K,[D].concat(_.B5(G)))};
Yt.prototype.notifySplices=function(x,G){var D=_.l(x);x=D.next().value;D=f4(D);C7(this,x).notifySplices(D,G)};var bjn=/([^\s]+?)\(([\s\S]*)\)/,QHh=/\.([^.]+)$/,BRL=/\\,/g,Zjh=/&comma;/g,MGE=/\\(.)/g,LZd=[],p23={"*":"wildcard",splices:"splices"};var jHQ=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"),$gV=/[A-Z]/,Wxi=["class","hidden","id","on-dom-change"],X2n=new Set([].concat(_.B5(Wxi),
["if","notify-dom-change","restamp"])),AKn=new Set([].concat(_.B5(Wxi),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),UgC=new Set(["restamp"]);var jqL=new Set(["className","id"]);var gc$=Symbol(),JK3=window;var GnD=window;var l9L=0,zVL=0,Ie=[],yWP=0,Kxf=!1,odL=document.createTextNode("");(new window.MutationObserver(a9n)).observe(odL,{characterData:!0});var OY=new Map,j2=0,eVZ=function(x){this.mappedHandleId=x},T_V=function(x,G,D,K){this.mappedHandleId=x;
var z=this;this.mappedHandleId=x;this.callback=G;this.waitTime=D;this.schedulerPriority=K;this.handleId=_.Fj.addJob(function(){z.callback();OY.delete(z.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.m(T_V,eVZ);T_V.prototype.cancel=function(){_.Fj.cancelJob(this.handleId);OY.delete(this.mappedHandleId)};
var Wxh=function(x,G){this.mappedHandleId=x;var D=this;this.mappedHandleId=x;this.callback=G;this.handleId=cW3(function(){D.callback();OY.delete(D.mappedHandleId)})};
_.m(Wxh,eVZ);Wxh.prototype.cancel=function(){var x=this.handleId-zVL;x<0||Ie.length<=x||(Ie[x]=null);OY.delete(this.mappedHandleId)};var QDE=function(){};
QDE.prototype.cancel=function(){this.jobHandle!==void 0&&(eVf(this.jobHandle),this.jobHandle=void 0)};
QDE.prototype.run=function(x,G,D){var K=this;this.cancel();this.callback=x;this.jobHandle=_.Xw(function(){x();K.callback=void 0},G,D)};
QDE.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var Zdn=new WeakMap;var Zd9=iG(function(x){for(var G=x,D=0;D<3;D++)G=Object.getPrototypeOf(G);delete G.prototype.connectedCallback;var K=function(){return x.apply(this,arguments)||this};
_.m(K,x);K.prototype._attachDom=function(z){if(!z)return null;var y=(0,_.D6)(this.hostElement);y.attachShadow({mode:"open",shadyUpgradeFragment:z});y.shadowRoot.appendChild(z);return y.shadowRoot};
K.prototype._takeAttributes=function(){for(var z=this.hostElement.attributes,y=0;y<z.length;y++){var c=z[y],W=void 0,e=void 0;(e=(W=this).__attributeReaction)==null||e.call(W,c.name,null,c.value)}};
K.prototype._readyClients=function(){x.prototype._readyClients.call(this);this.root=this};
K.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);x.prototype.connectedCallback.call(this)};
_.Nq.Object.defineProperties(K,{template:{configurable:!0,enumerable:!0,get:function(){return K.prototype._template}}});
return K}),MbZ=iG(function(x){var G=function(){return x.apply(this,arguments)||this};
_.m(G,x);G.prototype.created=function(){if(this.__notifyEffects)for(var D=_.l(Object.values(this.__notifyEffects)),K=D.next();!K.done;K=D.next()){K=_.l(K.value);for(var z=K.next();!z.done;z=K.next())z.value.fn=LxL}if(this.__reflectEffects)for(D=_.l(Object.values(this.__reflectEffects)),K=D.next();!K.done;K=D.next())for(K=_.l(K.value),z=K.next();!z.done;z=K.next())z.value.fn=B_V};
G.prototype._addEventListenerToNode=function(D,K,z){D=UY(D);Hm(D,K,z)||x.prototype._addEventListenerToNode.call(this,D,K,z)};
G.prototype._removeEventListenerFromNode=function(D,K,z){D=UY(D);$B(D,K,z)||x.prototype._removeEventListenerFromNode.call(this,D,K,z)};
G.prototype._propertiesChanged=function(D,K,z){if(this.__dataToNotify&&this.__notifyEffects)for(var y=_.l(Object.keys(this.__dataToNotify)),c=y.next();!c.done;c=y.next()){c=c.value;var W=bd3(c);this.__notifyEffects[W]||delete this.__dataToNotify[c]}else this.__dataToNotify=null;x.prototype._propertiesChanged.call(this,D,K,z)};
G.prototype.fire=function(D,K,z){K=K===void 0?{}:K;var y;return _.h$(UY((y=z==null?void 0:z.node)!=null?y:this),D,K,z)};
G.prototype._ensureAttribute=function(D,K){var z=UY(this);z.hasAttribute(D)||Fw(z,K,D)};
G.prototype.isLightDescendant=function(D){var K=UY(this);return UY(K)!==D&&_.kA(K).contains(D)&&_.kA(K).getRootNode()===_.kA(D).getRootNode()};
return G});
_.Wp.ready=function(){var x;((x=this.hostElement)!=null?x:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var G;((G=this.hostElement)!=null?G:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.Lg._subscribeIronResize=function(x){var G;((G=x.hostElement)!=null?G:x).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.Lg._unsubscribeIronResize=function(x){var G;((G=x.hostElement)!=null?G:x).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var YhL=[Array,Boolean,Date,Number,Object,String],S2=function(x,G,D,K){this.polySiInfo=x;this.polySiParams=G;this.polySiContext=D;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;K||this instanceof HTMLElement&&(K=this);if(!K)throw Error("Fg");this.allowedProps=G.allowedProps;this.hostElement=K;this.is=x.is;this.upgradeDisabled=!!G.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");x=new Set(G.reactiveSchemas.filter(function(z){return z.type!==
"observe"}).map(function(z){return z.propertyKey}));
this.signalProxy=new Yt(this,void 0,{reactiveProps:x,reactivityMode:G.reactivityMode});this.__dataHasAccessor={};G=_.l(G.reactiveSchemas);for(x=G.next();!x.done;x=G.next())x=x.value,x.type==="signal"&&(this.__dataHasAccessor[x.propertyKey]=!0);this.upgradeDisabled||QDh(this)};
S2.prototype.getExtraMethodsToForward=function(){return[]};
var QDh=function(x){x.polySiContext.didRegister||(x.registered(),x.polySiContext.didRegister=!0);x.polySiContext.finalizedTemplate||(x.polySiContext.finalizedTemplate={},x.polySiParams.templateGetter&&(x.polySiContext.finalizedTemplate.processedTemplate=DDL(x.polySiParams.templateGetter,x.polySiParams.is)));pO0(x);var G=x.hostElement;G.loggingStatus!=null||(G.loggingStatus={});G.loggingStatus.isInitializing=!0;Wl(function(){return void x.created()});
G.loggingStatus.isInitializing=!1;x.isPolySiElementConnected&&Vbi(x)},Vbi=function(x){x.didCallReady||(Wl(function(){return void x.ready()}),x.didCallReady=!0);
x.isAttached=!0;x.attached()};
_.a=S2.prototype;_.a.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||Vbi(this)};
_.a.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.a.attributeChangedCallback=function(x,G,D){if(this.upgradeDisabled)x==="disable-upgrade"&&D===null&&(this.upgradeDisabled=!1,QDh(this));else if(G!==D){var K=_.eq(x),z=this.polySiContext.typesForSignals[K];if(z&&(!this.reflecting||_.B("polysi_attribute_changed_serializing_killswitch"))){switch(z){case Object:try{var y=JSON.parse(D)}catch(W){y=D}break;case Array:try{y=JSON.parse(D)}catch(W){y=null}break;case Date:y=isNaN(D)?String(D):Number(D);y=new Date(y);break;case Boolean:y=D!==null;break;case Number:y=
Number(D);break;default:y=D}this[K]=y}K=_.l(this.polySiParams.behaviors);for(z=K.next();!z.done;z=K.next())y=void 0,(y=z.value.attributeChanged)==null||y.call(this,x,G,D);var c;(c=this.attributeChanged)==null||c.call(this,x,G,D)}};
_.a.attributeChangedCallbackWrapper=function(x,G,D){this.attributeChangedCallback(x,G,D)};
_.a.setPropertiesFromInitialAttributeValues=function(){for(var x=0;x<this.hostElement.attributes.length;x++){var G=this.hostElement.attributes[x];(G.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(G.name))&&this.attributeChangedCallback(G.name,null,G.value)}};
_.a.created=function(){this.provide=this.polySiParams.provide;var x;(x=this.initializeInjection)==null||x.call(this);x=_.l(this.polySiParams.reactiveSchemas);for(var G=x.next();!G.done;G=x.next())G=G.value,G.type==="signal"&&(this.mutablePropNames.add(G.propertyKey),C7(this.signalProxy,G.propertyKey));sDQ(this,this.polySiInfo,this.polySiParams.behaviors);x=_.l(this.polySiParams.reactiveSchemas);for(G=x.next();!G.done;G=x.next())G=G.value,G.type==="signal"&&G.value!==void 0&&(this.signalProxy.model[G.propertyKey]=
typeof G.value==="function"?G.value.call(this):G.value);if(this.polySiParams.signalProperties)for(x=_.l(this.polySiParams.signalProperties),G=x.next();!G.done;G=x.next()){G=G.value;var D=void 0;((D=this.__signalCache)==null?0:D.has(G))||(this.signalProxy.model[G]=void 0)}KxZ||bdJ(this);rWE(this);x=_.l(this.polySiParams.behaviors);for(G=x.next();!G.done;G=x.next())D=void 0,(D=G.value.created)==null||D.call(this);var K;(K=this.polySiInfo.created)==null||K.call(this)};
_.a.registered=function(){var x=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var G=Object.getPrototypeOf(this);G.addReactiveSchema=function(W){x.polySiParams.reactiveSchemas.push(W)};
for(var D=_.l(this.polySiParams.behaviors),K=D.next();!K.done;K=D.next()){var z=void 0;(z=K.value.beforeRegister)==null||z.call(G)}var y;(y=this.polySiInfo.beforeRegister)==null||y.call(G);G.addReactiveSchema=HdO;D=_.l(this.polySiParams.behaviors);for(K=D.next();!K.done;K=D.next())z=void 0,(z=K.value.registered)==null||z.call(G);var c;(c=this.polySiInfo.registered)==null||c.call(G)};
_.a.ready=function(){var x;(x=this.beforeReady)==null||x.call(this);KxZ&&bdJ(this);var G;if(x=(G=this.polySiContext.finalizedTemplate)==null?void 0:G.processedTemplate){x=xDL(x.template,x.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:x.hasInsertionPoint,thisCtx:this});G=x.nodesById;x=x.root;var D=this.hostElement;var K=K===void 0?!1:K;D=(0,_.D6)(D);if(!D.attachShadow)throw Error("Ad");if(!D.shadowRoot||K)D.attachShadow({mode:"open",shadyUpgradeFragment:x}),D.shadowRoot.appendChild(x);
this.root=D.shadowRoot;this.$=G}Lx0(this);K=_.l(this.polySiParams.behaviors);for(G=K.next();!G.done;G=K.next())x=void 0,(x=G.value.ready)==null||x.call(this);var z;(z=this.polySiInfo.ready)==null||z.call(this)};
_.a.attached=function(){for(var x=_.l(this.polySiParams.behaviors),G=x.next();!G.done;G=x.next()){var D=void 0;(D=G.value.attached)==null||D.call(this)}var K;(K=this.polySiInfo.attached)==null||K.call(this)};
_.a.detached=function(){for(var x=_.l(this.polySiParams.behaviors),G=x.next();!G.done;G=x.next()){var D=void 0;(D=G.value.detached)==null||D.call(this)}var K;(K=this.polySiInfo.detached)==null||K.call(this)};
var pO0=function(x){for(var G=_.l(x.polySiParams.behaviors),D=G.next();!D.done;D=G.next())if(D=D.value,D.listeners)for(var K in D.listeners)hQO(x,x.hostElement,K,D.listeners[K]);if(x.polySiInfo.listeners)for(var z in x.polySiInfo.listeners)hQO(x,x.hostElement,z,x.polySiInfo.listeners[z])},hQO=function(x,G,D,K,z){x=GgP(x,K,z);
Hm(G,D,x)||G.addEventListener(D,x);return x},bdJ=function(x){for(var G=_.l(x.polySiParams.reactiveSchemas),D=G.next();!D.done;D=G.next())D=D.value,D.type==="compute"||D.type==="computeWithMethod"?aIL(x.signalProxy,D,x):D.type==="redux"?lId(x.signalProxy,D,x.store):D.type==="signal"&&D.readOnly&&yKV(x.signalProxy,D)},Lx0=function(x){for(var G=_.l(x.polySiParams.reactiveSchemas),D=G.next(),K={};!D.done;K={schema$jscomp$12:void 0},D=G.next())K.schema$jscomp$12=D.value,K.schema$jscomp$12.type==="notify"?
TR$(x.signalProxy,K.schema$jscomp$12,x.hostElement):K.schema$jscomp$12.type==="observe"?WZP(x.signalProxy,K.schema$jscomp$12,x):K.schema$jscomp$12.type==="reflect"&&x.signalProxy.effect(function(y){return function(){var c=x.signalProxy.getWithPath([y.schema$jscomp$12.propertyKey]);
x.reflecting=!0;sHh(x.hostElement,y.schema$jscomp$12.propertyKey,c,!0);x.reflecting=!1}}(K));
if(x.reflectedAttributes)for(G=_.l(Object.entries(x.reflectedAttributes)),K=G.next(),D={};!K.done;D={key$jscomp$880:void 0,value$jscomp$8824:void 0},K=G.next()){var z=_.l(K.value);K=z.next().value;z=z.next().value;D.key$jscomp$880=K;D.value$jscomp$8824=z;x.signalProxy.effect(function(y){return function(){x.reflecting=!0;sHh(x.hostElement,y.key$jscomp$880,(0,y.value$jscomp$8824)(),!0);x.reflecting=!1}}(D))}};
_.a=S2.prototype;_.a._setPendingProperty=function(x,G){this.set(x,G);return!1};
_.a._enableProperties=function(){};
_.a._setPendingPropertyOrPath=function(x,G){this.notifyPath(x,G);return!1};
_.a._addPropertyEffect=function(){};
_.a._stampTemplate=function(){throw Error("Gg");};
_.a.fire=function(x,G,D){G=G===void 0?{}:G;D=D===void 0?{}:D;var K,z,y={bubbles:(K=D.bubbles)!=null?K:!0,cancelable:!!D.cancelable,composed:(z=D.composed)!=null?z:!0},c;return _.h$($Df((c=D.node)!=null?c:this.hostElement),x,G,y)};
_.a.get=function(x,G){var D=$r(x);return G?DgV(G,D):x==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(D)};
_.a.linkPaths=function(){};
_.a.listen=function(x,G,D){x=$Df(x);this.boundListeners!=null||(this.boundListeners=new WeakMap);var K=this.boundListeners.get(x);K||(K={},this.boundListeners.set(x,K));var z=G+D;K[z]||(K[z]=hQO(this,x,G,D))};
_.a.notifyPath=function(x,G){this.signalProxy.notifyPath($r(x),arguments.length===2?{value:G}:void 0)};
_.a.canNotifyPath=function(x){return this.mutablePropNames.has(x)&&!nc3(this.signalProxy,x)};
_.a.notifySplices=function(x,G){this.signalProxy.notifySplices($r(x),G)};
_.a.pop=function(x){var G=this.signalProxy;x=$r(x);var D=_.l(x);x=D.next().value;D=f4(D);return C7(G,x).pop(D)};
_.a.push=function(x){var G=_.rC.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[$r(x)].concat(_.B5(G)))};
_.a.set=function(x,G,D){if(D)throw Error("Hg");x==="hidden"?this.hostElement.hidden=!!G:this.signalProxy.setWithPath($r(x),G)};
_.a.setProperties=function(x){x=_.l(Object.entries(x));for(var G=x.next();!G.done;G=x.next()){var D=_.l(G.value);G=D.next().value;D=D.next().value;this[G]=D}};
_.a.splice=function(x,G,D){var K=_.rC.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[$r(x),G,D].concat(_.B5(K)))};
_.a.unlinkPaths=function(){};
_.a.unlisten=function(x,G,D){x=$Df(x);if(this.boundListeners){var K=this.boundListeners.get(x);if(K){D=G+D;var z=K[D];z&&($B(x,G,z)||x.removeEventListener(G,z),delete K[D])}}};
_.a.unshift=function(x){var G=_.rC.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[$r(x)].concat(_.B5(G)))};
_.Nq.Object.defineProperties(S2.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 ndP=[Array,Boolean,Date,Number,Object,String];var ur3=!1;var m3=function(){var x=HTMLElement.apply(this,arguments)||this;x.restamp=!1;x.notifyDomChange=!1;x.JSC$11416_didCallConnected=!1;x.JSC$11416_renderDebouncer=null;x.disableTemplateUpdateSignalImpl=n7()?void 0:_.eO(!1,void 0,"zLXz1e");var G;x.getDisableTemplateUpdate=(G=x.disableTemplateUpdateSignalImpl)==null?void 0:G[0];var D;x.setDisableTemplateUpdate=(D=x.disableTemplateUpdateSignalImpl)==null?void 0:D[1];return x};
_.m(m3,HTMLElement);var B_s=function(x){x.conditionSignalImpl!=null||(x.conditionSignalImpl=new r2(_.eO(!1,void 0,"wcuOQ")));return x.conditionSignalImpl};
_.a=m3.prototype;_.a.showHideChildren=function(x){rWh(this,x,this.if)};
_.a.attributeChangedCallback=function(x,G,D){if(this.JSC$11416_didCallConnected)throw Error("Lg`"+x);x==="notify-dom-change"?this.notifyDomChange=D!==null:x==="restamp"&&(this.restamp=D!==null)};
_.a.debounceRender=function(){this.JSC$11416_renderDebouncer=_.kG(this.JSC$11416_renderDebouncer,Co,this.JSC$11416_renderImpl.bind(this));_.PR(this.JSC$11416_renderDebouncer)};
_.a.disconnectedCallback=function(){var x=(0,_.D6)(this).parentNode;(!x||x.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in x&&!x.host)&&sDk(this)};
_.a.connectedCallback=function(){var x=this;this.JSC$11416_didCallConnected=!0;GnE?dDd():this.style.display="none";this.parentSignalProxy.effect(function(){B_s(x).getWithPath([]);x.debounceRender()})};
_.a.render=function(){_.GI()};
_.a.JSC$11416_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var x=this.if;if(x){a:{var G=(0,_.D6)(this).parentNode;if(this.hasInstance()){var D=this.instance.children;if((D==null?0:D.length)&&(0,_.D6)(this).previousSibling!==D[D.length-1])for(var K=0;K<D.length;K++)(0,_.D6)(G).insertBefore(D[K],this)}else{if(!G){G=!1;break a}Yh0(this,G)}G=!0}if(!G)return}else this.restamp&&sDk(this);rWh(this,!1,x);x&&mDi(this);DDs&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.a.hasInstance=function(){return!!this.instance};
var Yh0=function(x,G){var D=x.parentSignalProxy;if(n7()){var K=_.l(_.eO(!0,void 0,"wXzgnc"));var z=K.next().value;K=K.next().value;D=x.parentSignalProxy}else{var y;var c=new Yt((y=Hdq(x))!=null?y:{},function(e){var Q=C7(x.parentSignalProxy,e).getChangeRecordSignal([]);e=_.eO(void 0,void 0,"mryEkc");var p=new r2(e);c.effect(function(){if(x.getDisableTemplateUpdate&&!x.getDisableTemplateUpdate()){var V=Q();p.notifyPath($r(V.path),{value:V.value})}});
return p});
x.parentSignalProxy.childSignalProxies.push(c);var W=D=c}D=xDL(x.templateInfo,x.templateInfo.nodeInfoList,D,{eventListenerHost:x.eventListenerHost,hasInsertionPoint:x.templateInfo.hasInsertionPoint,thisCtx:x.eventListenerHost,enabledSignal:n7()?z:void 0,getModel:function(){return Hdq(x)}}).root;
x.instance={root:D,children:[],hidden:!1,signalProxy:W,getTemplateUpdatesEnabled:z,setTemplateUpdatesEnabled:K};W=_.l(D.childNodes);for(z=W.next();!z.done;z=W.next())x.instance.children.push(z.value);(0,_.D6)(G).insertBefore(x.instance.root,x)},Hdq=function(x){if((x=x.parentSignalProxy.model)&&!x.hostElement){var G={},D;
for(D in x)x.hasOwnProperty(D)&&(G[D]=x[D]);return G}},sDk=function(x){if(x.instance){var G=x.instance.children;
if(G.length){var D=(0,_.D6)(G[0]).parentNode;if(D){D=(0,_.D6)(D);for(var K=0;K<G.length;K++)D.removeChild(G[K])}}n7()?x.instance.setTemplateUpdatesEnabled(!1):x.instance.signalProxy.dispose();x.instance=void 0}},rWh=function(x,G,D){G=G||!D;
x.instance&&x.instance.hidden!==G&&(x.instance.hidden=G,gd$(G,x.instance.children))},mDi=function(x){if(n7()){var G=x.instance;
G&&OX(x.parentSignalProxy.owner,function(){return!G.getTemplateUpdatesEnabled()})&&G.setTemplateUpdatesEnabled(!0)}else x.setDisableTemplateUpdate(!1)};
_.Nq.Object.defineProperties(m3.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var x=this;return OX(this.parentSignalProxy.owner,function(){return B_s(x).getWithPath([])})},
set:function(x){x||(n7()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));B_s(this).setWithPath([],!!x)}}});
_.Nq.Object.defineProperties(m3,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",m3);var $Do=[],HP=function(){var x=HTMLElement.apply(this,arguments)||this;x.as="item";x.indexAs="index";x.itemsIndexAs="itemsIndex";x.targetFramerate=20;x.notifyDomChange=!1;x.isDetached=!1;x.JSC$11423_renderDebouncer=null;x.instances=[];x.chunkingId=null;x.chunkCount=null;x.shouldMeasureChunk=!1;x.shouldContinueChunking=!1;x.renderStartTime=null;x.JSC$11423_didCallConnected=!1;return x};
_.m(HP,HTMLElement);var Fxo=function(x){x.itemSignalImpl!=null||(x.itemSignalImpl=new r2(_.eO($Do,void 0,"YBrqgf")));return x.itemSignalImpl},C2o=function(x,G){Array.isArray(G)||(G=$Do);
Fxo(x).setWithPath([],G)};
_.a=HP.prototype;_.a.showHideChildren=function(x){for(var G=_.l(this.instances),D=G.next();!D.done;D=G.next())gd$(x,D.value.children)};
_.a.notifyPath=function(x,G){x=$r(x);x[0]==="items"&&(x.length===1?C2o(this,G):Fxo(this).setWithPath(x.slice(1),G))};
_.a.canNotifyPath=function(x){return x==="items"};
_.a.attributeChangedCallback=function(x,G,D){if(this.JSC$11423_didCallConnected)throw Error("Mg`"+x);x==="as"?this.as=D:x==="index-as"?this.indexAs=D:x==="items-index-as"?this.itemsIndexAs=D:x==="initial-count"?this.initialCount=Number(D):x==="notify-dom-change"?this.notifyDomChange=D!==null:x==="target-framerate"&&(this.targetFramerate=Number(D))};
_.a.disconnectedCallback=function(){this.isDetached=!0;for(var x=0;x<this.instances.length;x++)I98(this,x);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.a.connectedCallback=function(){var x=this,G=Fxo(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var z=G(),y=$r(z.path);if(y[0]===void 0||y[0]==="splices"||y[0]==="length")x.debounceRender();else{var c=y[0];if(c=x.instances[typeof c==="string"?Math.floor(Number(c)):c])y=[x.as].concat(_.B5(y.slice(1))),c.signalProxy.notifyPath(y,z)}});
this.JSC$11423_didCallConnected=!0;GnE?dDd():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var D=(0,_.D6)((0,_.D6)(this).parentNode),K=0;K<this.instances.length;K++)D.insertBefore(this.instances[K].root,this);this.chunkingId&&this.render()}};
_.a.debounceRender=function(){this.JSC$11423_renderDebouncer=_.kG(this.JSC$11423_renderDebouncer,Co,this.JSC$11423_renderImpl.bind(this));_.PR(this.JSC$11423_renderDebouncer)};
_.a.render=function(){this.debounceRender();_.GI()};
_.a.JSC$11423_renderImpl=function(){var x=this,G=this.items,D=jD8(this,G.length);Odo(this,G,D);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){x.chunkingId=null;if(x.shouldMeasureChunk){var K=performance.now()-x.renderStartTime;x.chunkCount=Math.round(Math.ceil(1E3/x.targetFramerate)/K*x.chunkCount)||1}x.shouldContinueChunking&&x.debounceRender()}));
DDs&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
var jD8=function(x,G){var D=G,K=x.instances.length;if(x.initialCount){if(x.chunkCount){var z=Math.min(Math.max(G-K,0),x.chunkCount);D=Math.min(K+z,G)}else D=Math.min(G,x.initialCount),z=Math.max(D-K,0),x.chunkCount=z||1;x.shouldMeasureChunk=z===x.chunkCount;x.shouldContinueChunking=D<G;x.renderStartTime=performance.now()}return D},Odo=function(x,G,D){for(var K=0;K<D;K++){var z=x.instances[K],y=G[K];
z?(z.signalProxy.setWithPath([x.as],y),z.signalProxy.setWithPath([x.indexAs],K)):XO7(x,y,K)}for(G=x.instances.length-1;G>=K;G--)D=x,z=G,I98(D,z),_.l(D.instances.splice(z,1)).next().value.signalProxy.dispose()},I98=function(x,G){x=x.instances[G];
G=(0,_.D6)(x.root);for(var D=0;D<x.children.length;D++)G.appendChild(x.children[D])},XO7=function(x,G,D){var K={};
G=Object.assign({},AWi(x),(K[x.as]=G,K[x.indexAs]=D,K[x.itemsIndexAs]=D,K));var z=new Yt(G,function(c){if(c!==x.as&&c!==x.indexAs){if(c===x.itemsIndexAs)return C7(z,x.indexAs);var W=C7(x.parentSignalProxy,c).getChangeRecordSignal([]);c=_.eO(void 0,void 0,"Mu2Bwb");var e=new r2(c);z.effect(function(){var Q=W();e.notifyPath($r(Q.path),{value:Q.value})});
return e}});
x.parentSignalProxy.childSignalProxies.push(z);K=xDL(x.templateInfo,x.templateInfo.nodeInfoList,z,{eventListenerHost:x.eventListenerHost,getModel:function(){var c={};return Object.assign({},AWi(x),(c[x.as]=z.model[x.as],c[x.indexAs]=z.model[x.indexAs],c[x.itemsIndexAs]=z.model[x.indexAs],c))},
hasInsertionPoint:x.templateInfo.hasInsertionPoint,thisCtx:x.eventListenerHost,methodInvocationRequirement:zV0,enabledSignal:x.stampingEnabled}).root;G={root:K,children:[],signalProxy:z};K=_.l(K.childNodes);for(var y=K.next();!y.done;y=K.next())G.children.push(y.value);K=(K=x.instances[D+1])?K.children[0]:x;(0,_.D6)((0,_.D6)(x).parentNode).insertBefore(G.root,K);x.instances[D]=G},AWi=function(x){if((x=x.parentSignalProxy.model)&&!x.hostElement){var G={},D;
for(D in x)x.hasOwnProperty(D)&&(G[D]=x[D]);return G}};
HP.prototype.itemForElement=function(x){var G=this,D=this.instances.find(function(K){return K.children.includes(x)});
if(D)return OX(this.parentSignalProxy.owner,function(){return D.signalProxy.getWithPath([G.as])})};
HP.prototype.indexForElement=function(x){var G=this.instances.findIndex(function(D){return D.children.includes(x)});
return G>=0?G:void 0};
_.Nq.Object.defineProperties(HP.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var x=this;return OX(this.parentSignalProxy.owner,function(){return Fxo(x).getWithPath([])})},
set:function(x){C2o(this,x)}},
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}}});
_.Nq.Object.defineProperties(HP,{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",HP);var UD8,RVh;_.$t=new _.wq("STATE_STORE_TOKEN");UD8=new _.wq("SELECT_TOKEN");RVh=new _.wq("DISPATCH_TOKEN");var f9Q={getSelectFn:function(){var x;return(x=_.Eo().resolve(_.P6(UD8)))!=null?x:wOL},
getDispatchFn:function(){var x;return(x=_.Eo().resolve(_.P6(RVh)))!=null?x:_.iD().dispatch.bind(_.iD())},
getAppStore:function(){return _.Eo().resolve(_.$t)}},qhE,JWL=!1;var P2$=void 0;var ShZ=function(){};
ShZ.prototype.hasAttribute=function(x){if(x==="dir")return!1;if(x==="disable-upgrade"){var G,D;return(D=(G=this.hostElement)==null?void 0:G.hasAttribute("disable-upgrade"))!=null?D:!1}throw Error("Ng`"+x);};
ShZ.prototype.attributeChangedCallbackWrapper=function(x,G,D){if(x==="disable-upgrade"&&this.__isUpgradeDisabled&&D===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var K;((K=this.hostElement)!=null?K:this).isConnected&&this.connectedCallback()}else G===D||this.__isReflecting||this.attributeChangedCallback(x,G,D)};
ShZ.prototype.getExtraMethodsToForward=function(){for(var x=this,G=[],D=_.l(ndZ),K=D.next(),z={};!K.done;z={tagName$jscomp$52:void 0,name$jscomp$531:void 0},K=D.next())z.name$jscomp$531=K.value,K=void 0,z.name$jscomp$531==="_setPendingProperty"?(z.tagName$jscomp$52=this.hostElement.tagName.toLowerCase(),K=function(y){return function(c,W,e){p7(y.tagName$jscomp$52,c,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return x._setPendingProperty(c,W,e)}}(z)):K=function(y){return function(){return x[y.name$jscomp$531].apply(x,
_.B5(_.rC.apply(0,arguments)))}}(z),G.push([z.name$jscomp$531,
K]);return G};
for(var DSL=MbZ(Zd9((0,_.TI)(ShZ))),oMh=["disabled","disable-upgrade"],idu=(0,_.TI)(function(){}),gdu=new Set(Object.getOwnPropertyNames(idu.prototype)),W_V=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.B5(gdu))),lLh=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),ndZ=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),urJ=new Set([].concat(_.B5(lLh),_.B5(ndZ),_.B5(gdu))),dD7=_.l(urJ),wOs=dD7.next();!wOs.done;wOs=dD7.next())Xtf.add(wOs.value);var TyD={created:function(){rWE(this);this.initializeInjection()}};var ByQ=!1,to=window.ShadyDOM,CyL=["appendChild","insertBefore","removeChild","replaceChild"],F_f=[Node];to&&F_f.push(to.Wrapper);var USh,Ru$,iNO={};var EY=new Set,kr="",gMO="";var PD,ho=new Set;var tCh=new Set("context didCallReady is info params signalProxy".split(" ")),PyV="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),EMP="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var qhh=cy({entities:EGV}),N_i=new dK(qhh);var FH=function(){return _.WD.apply(this,arguments)||this};
_.m(FH,_.WD);_.Nq.Object.defineProperties(FH.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return N_i}}});
FH=_.q([_.e2()],FH);_.CF=[LF.prototype,FH.prototype];_.IQ={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var x=this,G={};setTimeout(function(){var D;return _.h$((D=x.hostElement)!=null?D:x,"yt-live-chat-add-tooltip-target",G)},0);
this.handler_=G.handler},
detached:function(){if(this.handler_){var x;this.handler_.removeElementFromSupportingTooltips((x=this.hostElement)!=null?x:this)}this.handler_=null}}};_.oP=new _.wq("ICON_MANAGER_TOKEN");var vd7=[48,20,18,16,15,13,12],Bp$=new Map,MED=new Set,WB3=new Set,ZeD=new Set,Tpd=new Set,e8D=new Set,pFQ=new Promise(function(x){var G=!1,D=!1,K=!1,z=[],y=function(c){if("detail"in c)if(c=c.detail,c.name==="yt-icons")QMf(c),G=!0;else if(c.name==="yt-sys-icons")QMf(c),D=!0;else{var W;((W=c.name)==null?0:W.includes("yt-sys-icons"))&&c.size!==24&&(QMf(c,!0),z.push(c.size),z.length===vd7.length&&(K=!0))}G&&D&&K&&(window.removeEventListener("iron-iconset-added",y),x())};
window.addEventListener("iron-iconset-added",y)}),ben=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"]]);_.j$={};_.j$.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.u7,computeHref_:function(x,G){G=G===void 0?!1:G;if(!x||x.commandExecutorCommand)return null;var D=izE(x,G);return G||D!==null?D?_.B("enable_polymer_resin")?_.V$(D).toString():D:null:(_.O9(new _.LL("computeHref was null",this.is,x)),null)},
computeOptionalHref_:function(x){return this.computeHref_(x,!0)},
computeNofollow_:function(x){return x?IJf(x)?"nofollow":null:null},
computeIcon_:function(x){return x&&x.iconType?_.aP(x.iconType):""},
resolveCommand:function(x,G,D){G=G===void 0?{}:G;return _.lb(x,this.hostElement,G,D===void 0?!1:D)}};var f9k,Oe;_.JW0={};f9k=null;
Oe={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_=VMO(this.viewroot));_.Xw(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var x=this;this.unobserve_();if(_.B("kevlar_vimio_use_shared_monitor"))Hef(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 G=[];this.visibilityOptionVisible_&&G.push(this.visibilityObserver.observe(this.hostElement,function(){return x.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&G.push(this.visibilityObserver.observe(this.hostElement,function(){return x.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&G.push(this.visibilityObserver.observe(this.hostElement,function(){return x.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=G}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){rJd(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 x=_.Xn(this.parentNode,function(D){var K,z=(K=D.polymerController)!=null?K:D;return!!z.getVisibilityObserverForChild&&z.getVisibilityObserverForChild()},!0);
if(x){var G;this.localVisibilityObserver_=((G=x.polymerController)!=null?G:x).getVisibilityObserverForChild()}else f9k||(f9k=VMO()),this.localVisibilityObserver_=f9k;return this.localVisibilityObserver_},visibilityCallback:function(x){x?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.B("kevlar_use_vimio_behavior")||(Oe={});Oe&&!_.B("kevlar_use_vimio_behavior")&&(delete Oe.attached,delete Oe.detached);_.JW0.YtVisibilityObserverBehavior=[Oe];var tbs={};tbs.YtVisualElementBehavior=[_.JW0.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.B("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.B("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var x=this.getScreenLayer&&this.getScreenLayer(),G=this.getVisibilityLogger();G&&G.reportShown(this,void 0,x)}},
onHidden:function(){if(_.B("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.B("kevlar_vimio_use_shared_monitor")){var x=this.getScreenLayer&&this.getScreenLayer(),G=this.getVisibilityLogger();G&&G.reportHidden(this,void 0,x)}},
getVisibilityLogger:function(){return _.B("kevlar_use_vimio_behavior")?_.Te():null},
shouldSkipLogging:function(){if(_.Am("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var x=this.getParentRenderer&&this.getParentRenderer();if(!x)return!1;var G,D=(G=x.polymerController)!=null?G:x;if(!D.data)return!1;x=this.data.trackingParams;x=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:x;var K;G=(K=D.data)==null?void 0:K.trackingParams;var z,y;G=((z=D.data)==null?0:z.loggingDirectives)?(y=D.data)==null?void 0:y.loggingDirectives.trackingParams:G;return x&&G&&x===
G}}];var C$D=new Map,bb;var ZP3=function(x){this.layer=x},$L=function(x){return x.layer!==void 0?x.layer:x.parent?$L(x.parent):x.layer=0};var Unh;_.h={};Unh=0;_.h.YtRendererBehavior=[_.j$.YtComponentBehavior,tbs.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_:_.B("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var x,G;(G=(x=this.monitorScrollElement)!=null?x:this.hostElement)==null||G.removeEventListener("scroll",_.ae(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();$nd(this.hostElement);yKs(_.e$(),this.hostElement);q5.delete(this.hostElement)},
registerRenderer:function(x){var G;((G=x.polymerController)!=null?G:x).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(x),this.markDirty())},
unregisterRenderer_:function(x){this.useVimio_||(this.childCache_.delete(x),this.markDirty())},
attached:function(){var x=this,G=this.getParentRenderer();if(G){var D,K,z;(K=(D=(z=G.polymerController)!=null?z:G).registerRenderer)==null||K.call(D,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var y,c;(c=(y=this.monitorScrollElement)!=null?y:this.hostElement)==null||c.addEventListener("scroll",_.ae(this,this.onScroll))}_.Fj.addJob(function(){IZd(x.hostElement)},8);
D=new ZP3(this.screenLayer||void 0);(G=N5(G))&&G.layerNode&&(D.parent=G.layerNode);G={};FLf(this.hostElement,(G.isRenderer=!0,G.layerNode=D,G[F4]=this.data,G))},
getParentRenderer:function(){for(var x=this.hostElement.parentNode,G,D;x&&((G=N5(x))==null||!G.isRenderer)&&!((D=x.polymerController)!=null?D:x).isRenderer_;)x=x.parentNode||x.host;return x},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.B("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.Uo("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.B("debug_web_ve_data")&&this.data.trackingParams){var x="";try{x=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(D){_.I4(D)}if(x){var G=Gy$(x,1);G!==void 0&&(this.hostElement.dataset.veIndex=String(G));x=Gy$(x,2);
x!==void 0&&(this.hostElement.dataset.ve=String(x))}}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,_.B("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.V2(this.data.loggingDirectives.trackingParams)),this.visualElement=_.Wh(_.en(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var x=this.data.targetId;_.cKZ(_.e$(),x,this.hostElement)}else yKs(_.e$(),this.hostElement)},
onScroll:function(){var x=Date.now();x-this.lastHandledScroll_<50||(this.lastHandledScroll_=x,this.markDirty())},
markDirty:function(){_.B("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():R8V(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var x=this.getParentRenderer();if(x&&(x=N5(x))&&x.layerNode)return $L(x.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.B5(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var x=0;x<this.data.impressionEndpoints.length;x++)this.sendImpression(this.data.impressionEndpoints[x]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(x){x.clickTrackingParams&&delete x.clickTrackingParams;var G,D;(x==null?0:(G=x.commandMetadata)==null?0:(D=G.webCommandMetadata)==null?0:D.sendPost)?_.KW(this.hostElement,[x,{impression:!0}]):_.zl(this.hostElement,[x],this.hostElement)},
logExplicitClick:function(x){var G=_.CC(this.getScreenLayer());if(G){var D,K=(D=x.polymerController)!=null?D:x;x=K.visualElement;K=K.trackingParams||K.clickTrackingParams;!x&&K&&(x=_.V2(K));x&&_.u0(G,x)}}}];var kn9={},XH=function(){return _.WD.apply(this,arguments)||this};
_.m(XH,_.WD);XH.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
XH.prototype.onPdgItemBehaviorClick=XH.prototype.onPdgItemBehaviorClick;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],XH.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],XH.prototype,"data",void 0);_.q([_.oe("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],XH.prototype,"onPdgItemBehaviorClick",null);XH=_.q([_.e2()],XH);kn9.YtPdgLiveChatItemBehavior=[XH.prototype,_.h.YtRendererBehavior];var P2u;var Edk;_.AG={};_.AG.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var Ue=function(){var x=JU.apply(this,arguments)||this;x.switchTemplateAtRegistration=!1;return x};
_.m(Ue,JU);Ue.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||gXf(this),_.pOL(this,"doRender"),this.doRender())};
Ue.prototype.debounceRender=function(){this.templatingFn&&_.Ao(this,"doRender",this.doRender)};
Ue.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.I4(Error("Xg"))};
Ue.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
Ue=_.q([p1L()],Ue);var hVs=Ue;var xSZ=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,RQ={},qm3=(RQ[1]={filterString:null,isUnwrappable:null,unwrap:null},RQ[2]={filterString:function(x,G,D){return ha(D)},
isUnwrappable:function(x){return x instanceof HC},
unwrap:function(x){return F_(x)}},RQ[3]={filterString:function(x,G,D){return xSZ.test(D)?D:p9.toString()},
isUnwrappable:function(x){return er(x)},
unwrap:function(x){return _.ZB(x)}},RQ[4]={filterString:function(){return p9.toString()},
isUnwrappable:function(x){return x instanceof aF},
unwrap:function(x){return _.lH(x).toString()}},RQ[5]={filterString:function(x,G,D){return D},
isUnwrappable:function(x){return typeof x==="string"},
unwrap:function(x){return x.toString()}},RQ[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(x){return x instanceof _.X_},
unwrap:function(x){return U2(x)}},RQ[8]={filterString:function(x,G,D){D=String(D).toLowerCase();
return eHh(x,G,D)?D:"zClosurez"},
isUnwrappable:null,unwrap:null},RQ[10]={filterString:null,isUnwrappable:null,unwrap:null},RQ);fE[UX["default"]]=vX3;var JJf=[];var aRE=tEO("A"),o3d=tEO("BUTTON"),Vm=tEO("DIV"),yIn=tEO("LABEL");(function(){var x=fx;fx=function(G){x==null||x(G);sI(function(){for(var D=0;D<G.length;D++)fZd(G[D])})}})();var S$=function(){var x=_.WD.apply(this,arguments)||this;x.hasUnmounted=!1;return x};
_.m(S$,_.WD);_.a=S$.prototype;_.a.beforeRegister=function(){var x=this.doIdomRender;this.templatingFn?_.I4(Error("Wg")):(this.templatingFn=x,this.switchTemplateAtRegistration=!0,wFL(this))};
_.a.attached=function(){};
_.a.detached=function(){fZd(this.hostElement)};
_.a.renderIdom=function(){throw Error("Zg");};
_.a.doIdomRender=function(){var x=this;keO(this.hostElement,function(){x.renderIdom()})};
S$=_.q([_.e2()],S$);var GQ7=[hVs.prototype,S$.prototype];var DS0,K_8=function(){return DS0!==void 0?DS0:DS0=document.createElement("template")};
document.head.appendChild(K_8().content);var zuq;var aLh,oMi=function(){return aLh!==void 0?aLh:aLh=document.createElement("template")};
document.head.appendChild(oMi().content);var y9u;var lLi=document.head,c9Z=lLi.appendChild,TyE;if(y9u===void 0){var W_s=document.createElement("template");_.F(W_s,"\x3c!--css-build:shady--\x3e");W_s.content.insertBefore(oMi().content.cloneNode(!0),W_s.content.firstChild);y9u=W_s}TyE=y9u;c9Z.call(lLi,TyE.content);var eu8,ZNZ=function(){return eu8!==void 0?eu8:eu8=document.createElement("template")};
document.head.appendChild(ZNZ().content);var MC7;var QqZ=document.head,pUJ=QqZ.appendChild,VC8;if(MC7===void 0){var bNZ=document.createElement("template");_.F(bNZ,"\x3c!--css-build:shady--\x3e");bNZ.content.insertBefore(ZNZ().content.cloneNode(!0),bNZ.content.firstChild);MC7=bNZ}VC8=MC7;pUJ.call(QqZ,VC8.content);var L_0=document.head,Byk=L_0.appendChild,r9h;if(zuq===void 0){var sqZ=document.createElement("template");_.F(sqZ,"\x3c!--css-build:shady--\x3e");sqZ.content.insertBefore(K_8().content.cloneNode(!0),sqZ.content.firstChild);zuq=sqZ}r9h=zuq;Byk.call(L_0,r9h.content);var YLJ,mS0=function(){return YLJ!==void 0?YLJ:YLJ=document.createElement("template")};
document.head.appendChild(mS0().content);var HNs;_.ib=new _.wq("DARK_THEME_TOKEN");var uED=new _.J("accessibilityProperties");var guV=new _.J("layoutProperties");var dG$=new _.J("imageType");var $Ss={};if("ytAttributedStringLinkHoverColor"in $Ss)throw Error("bh`ytAttributedStringLinkHoverColor");(function(x,G){$Ss[x]="value"in G&&"unit"in G?xG3(x,G):function(D){try{return G(D)}catch(K){throw Error("$g`"+x+"`"+K.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var F_Z=function(x){var G=this;this.holdTime=x===void 0?500:x;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(D){var K=new CustomEvent("LONG_PRESS"),z;(z=D.changedTouches[0].target)==null||z.dispatchEvent(K)};
this.ontouchstart=function(D){G.longPressTimeout=_.Vs(_.Fj,function(){G.onlongpress(D);G.longPressOccurred=!0},G.holdTime)};
this.ontouchmove=function(){_.Fj.cancelJob(G.longPressTimeout);G.longPressTimeout=NaN;G.longPressOccurred=!1;G.moveOccurred=!0};
this.ontouchend=function(D){if(G.longPressTimeout&&!G.longPressOccurred&&!G.moveOccurred){var K;(K=D.changedTouches[0].target)==null||K.dispatchEvent(new Event("click"))}_.Fj.cancelJob(G.longPressTimeout);G.longPressTimeout=NaN;G.longPressOccurred=!1;G.moveOccurred=!1}};var rF$=function(x,G){F_Z.call(this,G);var D=this;this.callback=x;this.onlongpress=function(K){var z;(z=D.callback)==null||z.call(D,K)}};
_.m(rF$,F_Z);var sxn=function(x,G){var D=Object.assign({},G);x=_.l(new Map([["ontouchstart",x.ontouchstart],["ontouchend",x.ontouchend],["ontouchmove",x.ontouchmove]]));for(var K=x.next(),z={};!K.done;z={eventName$jscomp$85:void 0,eventHandler$jscomp$1:void 0},K=x.next()){var y=_.l(K.value);K=y.next().value;y=y.next().value;z.eventName$jscomp$85=K;z.eventHandler$jscomp$1=y;G[z.eventName$jscomp$85]=function(c){return function(W){var e;(e=D[c.eventName$jscomp$85])==null||e.call(D,W);(0,c.eventHandler$jscomp$1)(W)}}(z)}};_.hm=new _.wq("COMMAND_HANDLER_TOKEN");var DGE=new _.J("parallelCommand");var alO=new _.J("performOnceCommand");var zn$=new _.J("serialCommand");var ouC=void 0;var Cys=function(){this.data=[]};
Cys.prototype.push=function(x){this.data.push(x)};var Eg={};_.eO(Eg,void 0,"sgPmTd");_.eO(null,void 0,"jypsq");var NSP=new Cys;var MD3=[gsE,u0$,dR3,q6O,wjP,iQC,Nm$,vs3];var nuf=new _.J("bracketTextDecorator");var nz=new _.J("highlightTextDecorator");_.ub=new _.wq("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var XXh=function(){},IL0;
(IL0=window.requestIdleCallback)==null||IL0.bind(window);var UGV={calledOnce:!1,state:"visible"},AFL={calledOnce:!1,state:"hidden"};var jqs=new _.wq("ICON_WIZ_COMPONENT_TOKEN");_.Qm=_.Nv(function(x){var G=x.icon;var D=x.active;var K=x.className;var z=x.style;var y=x.dataSelected;var c=x.dataDisabled;var W=x.role;var e=x.animateIcon;var Q=x.themeOverride;var p=x.ariaHidden;var V=x.ariaExpanded;var L=x.ariaLabel;var r=x.id;var H=x.size;var O=x.iconFilter;return _.M(_.b,{cond:G,then:function(){var A=_.Eo().resolve(jqs);return _.M(A,{icon:G,dataSelected:y,dataDisabled:c,animateIcon:e,themeOverride:Q,ariaExpanded:V,id:r,active:D,size:H,role:W,className:K,ariaHidden:p,ariaLabel:L,
style:function(){return z!=null&&z()||H==null||!H()?z==null?void 0:z():"width: "+(H==null?void 0:H())+"px;height: "+((H==null?void 0:H())+"px;")},
iconFilter:O})}})},"b");
_.Qm.idomCompat=!0;var zkf=window.devicePixelRatio||1;var lMf=new Map([["yt_outline_bag_black_24","bag"]]);var nF=function(x){var G=this;this.margin=.1;this.whenInViewportWithMargin=x;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){G.requestScan()});
window.addEventListener("touchend",function(){G.requestScan()});
window.addEventListener("updateui",function(){G.requestScan()});
var D=new _.Jc((0,_.mW)(this.requestScan,this),100);window.addEventListener("scroll",function(){D.fire()},!0);
window.addEventListener("resize",(0,_.mW)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){G.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.mW)(this.requestScan,this))};
nF.prototype.observe=function(x){this.observationTargets.includes(x)||this.observationTargets.push(x)};
nF.prototype.unobserve=function(x){this.observationTargets=this.observationTargets.filter(function(G){return G!==x})};
nF.prototype.requestScan=function(){var x=this;this.scanRequested||(sI(function(){ONZ(x)}),this.scanRequested=!0)};
var ONZ=function(x){var G=(1+x.margin)*(document.documentElement.clientHeight||window.innerHeight);x.observationTargets=x.observationTargets.filter(function(D){var K=D.getBoundingClientRect();(K=G>K.top&&!!K.height)&&x.whenInViewportWithMargin(D);return!K&&D.parentNode});
x.scanRequested=!1};
nF.prototype.disconnect=function(){this.observationTargets=[]};var XUh,USi;XUh=_.l(_.eO(Z_V(),void 0,"O3X2wd"));_.A9h=XUh.next().value;USi=XUh.next().value;window.addEventListener("resize",function(){USi(Z_V())});var Ruu={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},SLJ=void 0,nME=window.innerWidth,iNq=window.innerHeight;window.addEventListener("resize",function(){SLJ=void 0});var gMq;if("IntersectionObserver"in window)gMq=pBO();else{if(SLJ===void 0){var uos;uos="matchMedia"in window?window.matchMedia(Ruu.landscape+","+Ruu.portrait).matches:void 0;SLJ=uos!==void 0?uos:nME>=930&&iNq>=550||nME>=550&&iNq>=930}gMq=SLJ?{observe:function(x){sI(function(){var G;(G=x.onViewportEntered)==null||G.call(x)})},
unobserve:function(){}}:new nF(function(x){sI(function(){var G;
(G=x.onViewportEntered)==null||G.call(x)})})}var MWD=gMq;var dSu=_.Nv(function(x){var G=!1,D=_.qi(function(K){_.Fq(function(){G=!0;K.onload=null})});
_.$9(function(){var K,z=(K=x.data)==null?void 0:K.call(x),y,c=(y=x.getSrc)==null?void 0:y.call(x).cb,W;K=(W=x.config)==null?void 0:W.call(x);if(W=D.value)if(y=function(Q,p){if(!G)return c?c(Q,p):Q},L4L(W,K),_.B("web_image_dont_reload_same_src")&&b_V(W,z,y))_.B("web_image_dont_reload_same_src_simulate_load")&&W.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var e;VWO(W,z||null,y,K,(e=x.lazy)==null?void 0:e.call(x))}});
return _.M("img",{el:D})},"c");
dSu.idomCompat=!0;_.wk=_.Nv(function(x){var G=function(){var D,K=x.data(),z,y,c,W,e,Q,p,V,L,r,H,O,A,g,u,f,v,P,k,cL,bO,mE,jf,$C,OD,wn,n$;var Fi={contentMode:(z=x.contentMode)==null?void 0:z.call(x),loadedClass:(y=x.loadedClass)==null?void 0:y.call(x),isPreloaded:(c=x.isPreloaded)==null?void 0:c.call(x),notifyOnLoaded:(W=x.notifyOnLoaded)==null?void 0:W.call(x),notifyOnUnloaded:(e=x.notifyOnUnloaded)==null?void 0:e.call(x),preferredThumbnail:(Q=x.preferredThumbnail)==null?void 0:Q.call(x),preserveHeight:(p=x.preserveHeight)==
null?void 0:p.call(x),preserveWidth:(V=x.preserveWidth)==null?void 0:V.call(x),objectPosition:(L=x.objectPosition)==null?void 0:L.call(x),targetWidth:(r=x.targetWidth)==null?void 0:r.call(x),targetHeight:(H=x.targetHeight)==null?void 0:H.call(x),shouldShowPlaceholder:(O=x.shouldShowPlaceholder)==null?void 0:O.call(x),useWidth:(A=x.useWidth)==null?void 0:A.call(x),alt:(g=x.alt)==null?void 0:g.call(x),className:(u=x.className)==null?void 0:u.call(x),onerror:x.onerror,onload:x.onload,style$:((f=x.style$)==
null?void 0:f.call(x))||((v=x.style)==null?void 0:v.call(x)),color:(P=x.color)==null?void 0:P.call(x),width:(k=x.width)==null?void 0:k.call(x),height:(cL=x.height)==null?void 0:cL.call(x),"aria-hidden$":(wn=(bO=x["aria-hidden$"])==null?void 0:bO.call(x))!=null?wn:(mE=x.ariaHidden)==null?void 0:mE.call(x),draggable:(jf=x.draggable)==null?void 0:jf.call(x),"data-disabled$":(n$=($C=x["data-disabled$"])==null?void 0:$C.call(x))!=null?n$:(OD=x.dataDisabled)==null?void 0:OD.call(x)};return s9V(K,Fi,(D=
x.hideOn404)==null?void 0:D.call(x))};
return _.M(_.so,null,_.M(_.B6,{when:function(){var D;return((D=G())==null?void 0:D.type)==="image"}},function(){return _.M(dSu,{data:function(){return G().image},
getSrc:{cb:function(D,K){var z=G().image.sources,y=G().config.isPreloaded,c=G().config.useWidth,W=G().config.targetWidth,e=G().config.targetHeight,Q=G().config.preferredThumbnail;return _.aMf(K,z,y,c,W,e,Q)||""}},
config:function(){var D=G().config,K;for(K in D)D[K]===void 0&&delete D[K];return D},
lazy:x.renderLazy})}),_.M(_.B6,{when:function(){var D;
return((D=G())==null?void 0:D.type)==="icon"}},function(){return _.M(_.Qm,{icon:function(){return G().iconName},
role:function(){return G().config.role},
className:function(){return G().config.className},
style:function(){return G().config.style$+";width: "+(G().config.width+"px;height: ")+(G().config.height+"px;color: ")+(G().config.color+";")},
ariaLabel:function(){return G().config["aria-label$"]},
ariaHidden:function(){return G().config["aria-hidden$"]},
dataDisabled:function(){return G().config["data-disabled$"]}})}))},"d");
_.wk.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var wUZ=function(x){return function(G){return _.M(ZHd,null,function(){var D=G.data(),K=_.If(G.config);return _.M(vw,null,function(){return void x(D,K)})})}}($o$),moV=_.Nv(function(x){var G=function(K){var z,y=_.NJ(function(L){z=Cx(function(){for(var r=_.l(p()),H=r.next();!H.done;H=r.next()){H=F4d(H.value);
H=typeof H==="string"?document.createTextNode(H):H;if(!(H instanceof Node)){r=new _.LL("Part is not a node",H,typeof H);_.I4(r);break}L.appendChild(H)}})}),c=vh(function(){return qNL(K())},{isEqual:Y8C}),W=_.wc(x.config),e=function(){var L,r=c();
return!((L=W())==null||!L.ariaLabel)||!(r.commandRuns&&r.commandRuns.length!==0||r.paragraphStyleRuns&&r.paragraphStyleRuns.length!==0)},Q=vh(W,{isEqual:IMC}),p=function(){var L=wXP(c(),Q());
vuP(L,Q());return c().content?Eu$(c().content,L).parts:[]},V=!0;
_.$9(function(){c();Q();if(V)V=!1;else{var L=p();Promise.resolve().then(function(){var r=y.value;if(r){r.innerText="";var H;(H=z)==null||H();z=_.mS(r,function(){return _.M(CEP,{parts:L})})}})}});
return _.M("span",{el:y,class:function(){return c()&&FAD(c(),W())},
dir:function(){var L;return((L=W())==null?0:L.userInput)?"auto":void 0},
"aria-label":function(){var L;return e()?(L=W())==null?void 0:L.ariaLabel:void 0},
role:function(){return e()?"text":void 0}})},D;
return((D=x.config)==null?0:D.renderedFromFormattedString)?G(x.text):_.M(_.b,{cond:x.text,then:G})},"e");
moV.idomCompat=!0;_.vq=_.Nv(function(x){var G=_.wc(x.text),D=j9V(x);x.renderedFromFormattedString!==void 0&&(D.renderedFromFormattedString=!0);return _.B("attr_string_reactive")?_.M(moV,{text:G,config:D}):_.M(_.b,{cond:function(){var K;return G()&&((K=qNL(G()))==null?void 0:K.content)},
then:function(){return _.M(wUZ,{data:x.text,config:D})},
debugInstance:"Apcuac"})},"f");
_.vq.idomCompat=!0;var XBD=function(x,G,D){G=G===void 0?"unknown":G;D=D===void 0?{}:D;_.LL.call(this,x+" ("+G+")",Object.assign({},{name:"YtWcwError",tagName:G},D));Object.setPrototypeOf(this,this.constructor.prototype)};
_.m(XBD,_.LL);_.i_d=new WeakMap;_.njf=!1;var S8L,gjf,RkL;_.ik=Symbol("dh");_.fz=Symbol("eh");S8L=Symbol("fh");gjf=new Set(Object.getOwnPropertyNames(Element.prototype));RkL=Symbol("gh");var qLE=_.Nv(function(x){return _.M("yt-attributed-string",{"aria-label":x.ariaLabel,hidden:x.hidden,id:x.id,class:x.className,"force-default-style":x.forceDefaultStyle},_.M(_.vq,{text:x.data,ariaLabel:x.ariaLabel,ellipsisTruncate:x.ellipsisTruncate,isOverlay:x.isOverlay,linkInheritColor:x.linkInheritColor,noPreWrap:x.noPreWrap,noWrap:x.noWrap,userInput:x.userInput,noEndpoints:x.noEndpoints,headerRuns:x.headerRuns}))},"g");
_.B("web_wiz_attributed_string")&&_.tn(qLE,"yt-attributed-string",{props:{ariaHidden:_.ik,ariaLabel:_.ik,className:_.ik,ellipsisTruncate:_.ik,isOverlay:_.ik,linkInheritColor:_.ik,noEndpoints:_.ik,noStyleRuns:_.ik,noLinkColor:_.ik,noPreWrap:_.ik,noWrap:_.ik,skipOnClick:_.ik,userInput:_.ik,headerRuns:_.ik,id:_.ik,data:_.ik,hidden:_.ik,forceDefaultStyle:_.ik,text:_.fz,stopPropagation:_.fz,disableUpgrade:_.fz,disable:_.fz,slot:_.fz}});var g2=function(){return _.n.apply(this,arguments)||this};
_.m(g2,_.n);g2.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},$o$(this.data,this.config))};
_.q([_.I(GQ7),_.N("design:type",Object)],g2.prototype,"ytIdomTemplatingBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],g2.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],g2.prototype,"ariaLabel",void 0);_.q([_.R(),_.N("design:type",Boolean)],g2.prototype,"disable",void 0);_.q([_.R(),_.N("design:type",Boolean)],g2.prototype,"ellipsisTruncate",void 0);_.q([_.R(),_.N("design:type",Boolean)],g2.prototype,"isOverlay",void 0);
_.q([_.R(),_.N("design:type",Boolean)],g2.prototype,"linkInheritColor",void 0);_.q([_.R(),_.N("design:type",Boolean)],g2.prototype,"noPreWrap",void 0);_.q([_.R(),_.N("design:type",Boolean)],g2.prototype,"noWrap",void 0);_.q([_.R(),_.N("design:type",Boolean)],g2.prototype,"userInput",void 0);_.q([_.R(),_.N("design:type",Boolean)],g2.prototype,"noEndpoints",void 0);_.q([_.R(),_.N("design:type",Array)],g2.prototype,"headerRuns",void 0);
g2=_.q([_.HD({is:"yt-attributed-string",disableElementRegistration:!0})],g2);
_.B("web_wiz_attributed_string")||_.w(g2,"yt-attributed-string",function(){if(HNs===void 0){var x=document.createElement("template");_.F(x,"\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");x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);
x.content.insertBefore(mS0().content.cloneNode(!0),x.content.firstChild);HNs=x}x=HNs;return x},{mode:2});var Nyo,vMh,Jfd;Nyo=function(){this.firstThumbnailLoaded=!1};
_.J97=function(){vMh||(vMh=new Nyo);return vMh};
Jfd=function(x){var G=_.J97();G.firstThumbnailLoaded||(G.firstThumbnailLoaded=!0,_.Fs("ftl",x))};
Nyo.prototype.reset=function(){this.firstThumbnailLoaded=!1};var dod=0,vjD=new WeakMap,q8V=0,EI=new Set;var fLZ,tCi=function(){return fLZ!==void 0?fLZ:fLZ=document.createElement("template")};
document.head.appendChild(tCi().content);var kQE;var PE$,hkC,uk;_.GY=_.Df.caches;uk=function(){};
uk.prototype.open=function(x){return _.GY.open(Pys(x))};
uk.prototype.has=function(x){return _.GY.has(Pys(x))};
uk.prototype.delete=function(x){return _.GY.delete(Pys(x))};
uk.prototype.match=function(x,G){var D=this,K,z,y,c,W,e;return _.T(function(Q){switch(Q.nextAddress){case 1:return _.Z(Q,D.keys(),2);case 2:K=Q.yieldResult,z=_.l(K),y=z.next();case 3:if(y.done){Q.jumpTo(5);break}c=y.value;return _.Z(Q,D.open(c),6);case 6:return W=Q.yieldResult,_.Z(Q,W.match(x,G),7);case 7:if(e=Q.yieldResult)return Q.return(e);y=z.next();Q.jumpTo(3);break;case 5:return Q.return()}})};
var xIL=function(){};
_.m(xIL,uk);var Pys=function(x){if(x.includes(":"))throw Error("jh`"+x);return x+":"+_.VR("CacheStorage get")};
xIL.prototype.keys=function(){var x,G,D,K,z,y,c,W,e;return _.T(function(Q){if(Q.nextAddress==1)return x=[],G=_.VR("CacheStorage keys"),_.Z(Q,_.GY.keys(),2);D=Q.yieldResult;K=_.l(D);for(z=K.next();!z.done;z=K.next())y=z.value,c=_.kqP(y),W=c.originalName,e=c.datasyncId,e===G&&x.push(W);return Q.return(x)})};var d2=function(){var x=_.n.apply(this,arguments)||this;x.objectURL=null;x.loadTime=Infinity;return x};
_.m(d2,_.n);_.a=d2.prototype;_.a.renderIdom=function(){tWD(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("mh");this.setConfig();this.config&&BJ$(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.a.objectFitToContentMode=function(x){switch(x){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.a.logThumbnailFailureVe=function(){var x=_.BH(197497);_.hz(_.en(),x);var G=_.CC();G&&x&&G&&_.i0(G,[x])};
_.a.loadImageFromCacheIfExists=function(x){var G=this,D=x.target;(D==null?0:D.src)&&DIf(D.src).then(function(K){G.objectURL=_.L9(K).toString();G.setSrc(D,G.objectURL)}).catch(function(){})};
_.a.onError=function(x){var G=this;if(_.B("web_use_cache_for_image_fallback")){var D=x.target;D&&DIf(D.src).then(function(K){G.objectURL=_.L9(K).toString();G.setSrc(D,G.objectURL)}).catch(function(){_.B("kevlar_woffle_log_thumbnail_failure_ve")&&G.logThumbnailFailureVe();
_.B("kevlar_woffle_fallback_image")&&G.setSrc(D,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.a.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.a.setConfig=function(){var x=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(G){x.loadImageFromCacheIfExists(G);x.revokeObjectURL();fMf(x.hostElement)},
onerror:function(G){x.onError(G)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.B("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.a.setSrc=function(x,G){G&&(x.src=G)};
_.q([_.I(GQ7),_.N("design:type",Object)],d2.prototype,"ytIdomTemplatingBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],d2.prototype,"data",void 0);_.q([_.R(),_.N("design:type",String)],d2.prototype,"alt",void 0);_.q([_.R(),_.N("design:type",Boolean)],d2.prototype,"ftlEligible",void 0);_.q([_.R(),_.N("design:type",Number)],d2.prototype,"height",void 0);_.q([_.R(),_.N("design:type",Boolean)],d2.prototype,"notifyOnLoaded",void 0);
_.q([_.R(),_.N("design:type",Boolean)],d2.prototype,"notifyOnUnloaded",void 0);_.q([_.R(),_.N("design:type",String)],d2.prototype,"objectFit",void 0);_.q([_.R(),_.N("design:type",String)],d2.prototype,"objectPosition",void 0);_.q([_.R(),_.N("design:type",String)],d2.prototype,"preferredThumbnail",void 0);_.q([_.R(),_.N("design:type",Boolean)],d2.prototype,"preserveHeight",void 0);_.q([_.R(),_.N("design:type",Boolean)],d2.prototype,"preserveWidth",void 0);
_.q([_.R({value:!0}),_.N("design:type",Boolean)],d2.prototype,"useWidth",void 0);_.q([_.R({value:function(){return!_.Uo("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.N("design:type",Boolean)],d2.prototype,"shouldRenderLazy",void 0);_.q([_.R(),_.N("design:type",Number)],d2.prototype,"width",void 0);d2=_.q([_.HD({is:"yt-image",disableElementRegistration:!0})],d2);
_.w(d2,"yt-image",function(){if(kQE===void 0){var x=document.createElement("template");_.F(x,"\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");x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);x.content.insertBefore(tCi().content.cloneNode(!0),x.content.firstChild);
kQE=x}x=kQE;return x},{mode:2});var w2=function(){return _.n.apply(this,arguments)||this};
_.m(w2,_.n);w2.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var x=_.jn(this.data.onVisibleCommand);x&&this.ytComponentBehavior.resolveCommand(x)}};
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],w2.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],w2.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.AG.YtVisibilityBehavior),_.N("design:type",Object)],w2.prototype,"ytVisibilityBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],w2.prototype,"data",void 0);w2=_.q([_.HD({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],w2);
_.w(w2,"yt-bumper-user-edu-content-view-model",function(){if(Edk===void 0){var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;P2u===void 0&&(P2u=document.createElement("template"));var K=P2u;D.call(G,K.content.cloneNode(!0),x.content.firstChild);Edk=x}x=Edk;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var EMZ;var huE,xnJ=function(){if(huE!==void 0)return huE;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;EMZ===void 0&&(EMZ=document.createElement("template"));var K=EMZ;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return huE=x};var GD7;_.qz={};GD7=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"]);_.qz.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var x=this.getContext_();return x?x.getTaskManager():_.Fj},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var x=_.h$(this.hostElement,"yt-get-context-provider",{});x.detail&&x.detail.contextProvider?this.cachedProviderNode_=x.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return GD7.has(this.hostElement.localName)},
getNetworkManager:function(){var x=this.getContext_();if(x)return x.getNetworkManager()}};var ldd,DnZ,z88,KBZ;_.Nz=function(x){var G=DnZ.get(x);if(G&&(G=G.pop()))return KBZ++,G;z88++;try{var D=document.createElement(x)}catch(K){throw new _.LL("ElementPool failed to create element",x,K.message);}return D};
ldd=function(x){var G=x.is;if(G){var D=DnZ.get(G);D||(D=[],DnZ.set(G,D));var K=_.Am("ELEMENT_POOL_CONFIG")||{};D.length>=(K[G]!==void 0?K[G]:_.Am("ELEMENT_POOL_DEFAULT_CAP",0))||D.push(x)}else _.O9(new _.LL("Element pool should only handle custom elements:",x.nodeName))};
DnZ=new Map;z88=0;KBZ=0;var DX=new WeakMap,yCh=new WeakMap;var oXi;_.vP=function(x,G,D){D=D===void 0?_.rv():D;this.JSC$11686_defaultPriority=x;this.signal=G;this.scheduler=D;this.nextJobDescriptor=0;this.JSC$11686_parkedJobs=[];this.scheduledJobs=new Map};
_.JG=function(x,G){if(G){var D=_.Fp();x.signal&&!_.CJ(D,x.signal)?(D.addListener(x.signal,function(){x.processSignal()}),x.JSC$11686_parkedJobs.push({job:G,
priority:void 0})):aZq(x,G)}};
oXi=function(x,G){if(G!==x.JSC$11686_defaultPriority){x.JSC$11686_defaultPriority=G;for(var D=_.l(x.scheduledJobs.values()),K=D.next();!K.done;K=D.next())K=K.value,x.scheduler.cancelJob(K.jobId),K.jobId=x.scheduler.addJob(K.jobWrapper,G)}};
_.vP.prototype.flushJobs=function(){oXi(this,10);this.processSignal()};
_.vP.prototype.cancel=function(){for(var x=_.l(this.scheduledJobs),G=x.next();!G.done;G=x.next()){var D=_.l(G.value);G=D.next().value;D=D.next().value;this.scheduler.cancelJob(D.jobId);this.scheduledJobs.delete(G)}this.JSC$11686_parkedJobs=[]};
_.vP.prototype.processSignal=function(){for(var x=_.l(this.JSC$11686_parkedJobs),G=x.next();!G.done;G=x.next())G=G.value,aZq(this,G.job,G.priority);this.JSC$11686_parkedJobs=[]};
var aZq=function(x,G,D){D=D||x.JSC$11686_defaultPriority;if(D===10)hn(G);else{var K=x.nextJobDescriptor++,z=function(){G();x.scheduledJobs.delete(K)},y=x.scheduler.addJob(z,D);
x.scheduledJobs.set(K,{jobWrapper:z,jobId:y,priority:D})}};_.E9(ehL);var Z8f={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};Bu3({beforeVisit:function(x){if(EY.has(x.type)){var G;(G=x.props).idomKey!=null||(G.idomKey=x.type)}else x.type.TAG_NAME&&(kr=x.type.TAG_NAME)},
afterRender:function(x,G){var D;kr=(D=G==null?void 0:G.type)!=null?D:""},
didPatch:function(){kr=""}});var yJh;_.fF={};yJh={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.fF.YtRendererstamperBehavior=[_.qz.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 x in this.stampDom){var G=this.stampDom[x];G&&G.id&&this.addReactiveSchema({type:"observe",method:{methodName:zhQ(G.id),args:[{type:"wildcard",path:x}]}})}else{(x=(this.constructor.generatedFrom||this).observers)||(x=[]);for(G in this.stampDom){var D=this.stampDom[G];D&&D.id&&x.push(zhQ(D.id)+"("+G+".*)")}this.constructor.generatedFrom.observers=x}},
addStampDomObserverFns_:function(){for(var x in this.stampDom){var G=this.stampDom[x];G.id?(this[zhQ(G.id)]=this.rendererStamperObserver_.bind(this,x,G.id),this.hasDataPath_[x]=!1):(G=new _.LL("Bad rendererstamper config",this.is+":"+x),_.I4(G))}},
rendererStamperObserver_:function(x,G,D){if(D.path==x){if(D.value===void 0&&!this.hasDataPath_[x])return;this.hasDataPath_[x]=D.value!==void 0}this.rendererStamperApplyChangeRecord_(x,G,D)},
rendererStamperApplyChangeRecord_:function(x,G,D){var K=this.renderJobsMap_[G],z=null;x==D.path?(D=D.value,_.PL(D)||(D=D===void 0||D===null?[]:[D]),x=this.stampDom[x],x.mapping&&(z=this.stampDomArray_.bind(this,D,G,x.mapping,x.reuseComponents,x.events,x.stamperStableList)),K&&K.cancel(),D=x.usePageScheduler?this.getTaskManager():void 0,K||x.initialRenderPriority==void 0)?x.renderPriority==void 0||K||(K=new _.vP(x.renderPriority,x.waitForSignal,D),this.renderJobsMap_[G]=K):(K=new _.vP(x.initialRenderPriority,
x.waitForSignal,D),this.renderJobsMap_[G]=K,z=function(y,c){y();oXi(c,10)}.bind(this,z,K)):z=x+".splices"==D.path?this.stampDomArraySplices_.bind(this,x,G,D.value):this.forwardRendererStamperChanges_.bind(this,x,G,D);
K?_.JG(K,z):z()},
forwardRendererStamperChanges_:function(x,G,D){var K=D.path.slice(x.length+1),z=this.getStampContainer_(G),y=K.indexOf("."),c=K.substring(0,y),W=!1,e=0,Q=parseInt(c,0);if(c[0]=="#"){W=parseInt(c.substring(1),0);Q=this.get(x);var p=this.get([x,c]);Q[W]==p?e=W:e=Q.indexOf(p);W=!0}else isNaN(Q)||(e=Q,W=!0);W&&(K=K.substring(c.length+1),y=K.indexOf("."));c=_.By(z).children[e];var V;if(z=(V=c==null?void 0:c.polymerController)!=null?V:c)K="data"+K.slice(y),typeof z.notifyPath!=="function"?_.O9(new _.LL("notifyPath missing",
this.is+": "+x+", "+G)):D.value?z.notifyPath(K,D.value):z.notifyPath(K)},
stampDomArraySplices_:function(x,G,D){if(D&&D.indexSplices){var K=this.getStampContainer_(G);if(K){for(var z=_.By(K),y=ofE(this.stampDom[x].reuseComponents),c=D.indexSplices.length,W=0;W<c;W++){for(var e=D.indexSplices[W],Q=z.children[e.index],p=e.removed.length;p>0;p--)Q&&Q.parentElement&&(_.By(Q.parentElement).removeChild(Q),y&&ldd(Q),Q=z.children[e.index]);p=this.stampDom[x].mapping;for(var V=e.index+e.addedCount,L=document.createDocumentFragment(),r=y,H=e.index;H<V;H++){var O=e.object[H],A=Kmf(p,
O);if(A){var g=p[A];O=O[A];A=this.getComponentName_(g,O);var u=Q?DX.has(Q):!1;r&&Q&&Q.is==A&&u?(A=Q,this.telemetry_.reuse++,Q=Q.nextElementSibling):r&&Q&&u?(A=this.createComponent_(g,O,y),u=_.By(Q).nextElementSibling,z.insertBefore(A,u),T7d(this.is,z,Q,y),Q=u):(r=!1,A=this.createComponent_(g,O,y),L.appendChild(A));this.deferRenderStamperBinding_(A,g,O)}else g=new _.LL("Unimplemented type",x,G,K.tagName,Object.keys(O)[0]),_.I4(g)}z.insertBefore(L,Q)}this.flushRenderStamperComponentBindings_();this.stampDom[x].events&&
_.h$(this.hostElement,"yt-rendererstamper-finished",{container:K})}else x=new _.LL("Container object not found",G,this.hostElement?this.hostElement.is:""),_.I4(x)}},
stampDomArray_:function(x,G,D,K,z,y){var c=this.getStampContainer_(G);if(c)if(G=_.By(c),K=ofE(K),x){var W=0,e=0,Q;if(y=y===void 0?_.Uo("STAMPER_STABLE_LIST",!1):y||!1)for(Q=G.firstElementChild;Q&&!DX.has(Q)&&x.length>e;){y=x[e];var p=Kmf(D,y);if(p){if(this.getComponentName_(D[p],y[p])!=Q.is){var V=this.createComponent_(D[p],y[p],K),L=_.By(Q).nextElementSibling;L?G.insertBefore(V,L):G.appendChild(V);T7d(this.is,G,Q,K);Q=V}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(Q,D[p],y[p]);W++;
e++;Q=_.By(Q).nextElementSibling}else e++}WmE(this.is,G,W,K);W=Q;if(x.length>e){y=document.createDocumentFragment();for(p=x.length;e<p;e++)if(V=x[e],L=Kmf(D,V))Q=this.createComponent_(D[L],V[L],K),this.deferRenderStamperBinding_(Q,D[L],V[L]),y.appendChild(Q);W&&_.By(W).parentNode&&Q&&!DX.has(Q)?G.insertBefore(y,W):G.appendChild(y)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();z&&_.h$(this.hostElement,"yt-rendererstamper-finished",{container:c})}else WmE(this.is,G,0,
K);else x=new _.LL("Container object not found",G,this.hostElement?this.hostElement.is:""),_.I4(x)},
getStampContainer_:function(x){return this.$&&this.$[x]||_.kA(this.hostElement).querySelector("#"+x)},
getComponentName_:function(x,G){return typeof x==="string"?x:x.matcher?x.matcher.call(this,G):x.component},
createComponent_:function(x,G,D){x=this.getComponentName_(x,G);try{var K=ho.has(x)||EY.has(x);if(D&&!K){var z=_.Nz(x);try{_.K7(z)}catch(y){D="Failed to clear styles for "+x+".",y.message&&(D+=" Original error: "+y.message),_.O9(new _.LL(D))}}else z=document.createElement(x)}catch(y){return z="YtRendererStamperBehavior failed to create "+x+".",y.message&&(z+=" Original description: "+y.message),y.message="YtRendererStamperBehavior failed to create element",_.Xv(y,z),yJh.hasOwnProperty(x)?_.O9(y):_.I4(y),
document.createElement("SPAN")}this.telemetry_.create++;return z},
deferRenderStamperBinding_:function(x,G,D){this.deferredBindingTasks_.push({component:x,typeOrConfig:G,data:D})},
flushRenderStamperComponentBindings_:function(){for(var x=0,G=this.deferredBindingTasks_.length;x<G;x++){var D=this.deferredBindingTasks_[x];if(!D)break;var K=void 0,z=void 0,y=void 0,c=void 0,W=D.component,e=D.typeOrConfig;D=D.data;var Q=(c=W.polymerController)!=null?c:W;c=W.loggingStatus;try{c&&(c.isRendererStamper=!0);if(typeof e!=="string"){for(y in e.attributes)e.attributes[y]===!0?W.setAttribute(y,""):e.attributes[y]===!1?W.removeAttribute(y):W.setAttribute(y,e.attributes[y]);for(z in e.params)Q[z]=
e.params[z],W!==Q&&p7(W.localName,z,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(K in e.properties){var p=e.properties[K];if(p){var V=adf(p);Q[K]=this.get(V);W!==Q&&p7(W.localName,K,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(K==="on-tap"||K==="on-click"){var L=this.get(V);W.addEventListener("click",L);yCh.set(W,{property:K,listener:{type:"element",eventName:"click",handler:L}})}}else{var r=new _.LL("Undefined property binding",K);_.I4(r)}}}if(e.classListBinding){var H=adf(e.classListBinding),
O=H?this[H]:null;if(O)for(K=0;K<O.length;K++)_.E4(W,O[K],!0)}Q.data=D}finally{c&&(c.isRendererStamper=!1)}if(K=DX.get(W))W.hidden=!1,DX.delete(W),_.Fj.cancelJob(K)}this.deferredBindingTasks_.length=0}}];_.tG={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(x){for(var G=_.gu.getInstance(),D=_.l(Object.keys(x)),K=D.next();!K.done;K=D.next()){var z=K.value;K=x[z];if(this&&this[K]){var y=G.actionRoutingMap.get(z);y||(y=new Map,G.actionRoutingMap.set(z,y));G.registerActionHandler(this,z,this[K].bind(this),y)}else z=Error("gd"),z.params=K,_.RE(z)}},
unregisterActionMap:function(x){_.du(_.gu.getInstance(),x,this)}}]};var al=new Map([["FACE_HAPPY",{name:"animated_face_happy_light",nameDarkTheme:"animated_face_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_HAPPY",totalFrames:121,lazyLoad:!1}],["FACE_MEH",{name:"animated_face_meh_light",nameDarkTheme:"animated_face_meh_dark",
path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_meh.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_meh.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_MEH",totalFrames:121,lazyLoad:!1}],["FACE_SAD",{name:"animated_face_sad_light",nameDarkTheme:"animated_face_sad_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_sad.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_sad.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_SAD",totalFrames:121,lazyLoad:!1}],["FACE_UNHAPPY",{name:"animated_face_unhappy_light",nameDarkTheme:"animated_face_unhappy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_unhappy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_unhappy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_UNHAPPY",totalFrames:121,
lazyLoad:!1}],["FACE_VERY_HAPPY",{name:"animated_face_very_happy_light",nameDarkTheme:"animated_face_very_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_very_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_very_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_VERY_HAPPY",totalFrames:121,lazyLoad:!1}],["LIKE",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v4.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v4.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",
pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:79,lazyLoad:!1}]]);var zY;var ol=new Map;var H8n=window.matchMedia("(forced-colors: active)").matches;var lZk;var cJs;var IdC=new _.wq("LOTTIE_LOADER_TOKEN");_.tn(_.Nv(function(x){return _.M("ytd-lottie-player",{id:x.id,hidden:x.hidden,class:x.className,"aria-label":x.ariaLabel,style:"display: block;"},_.M(_.l_,{data:x.data,animationName:function(){var G;return((G=x.data().animationConfig)==null?void 0:G.name)||""},
animationRef:function(){return x.data().animationRef}}))},"h"),"ytd-lottie-player",{props:{data:_.ik,
id:_.ik,hidden:_.ik,className:_.ik,ariaLabel:_.ik}});var kt=function(){var x=_.n.apply(this,arguments)||this;x.animationRef={};return x};
_.m(kt,_.n);_.a=kt.prototype;
_.a.handlePropertyChange=function(){var x=this.animatedIcon,G=this.active,D=this.isDarkTheme;if(x){var K=this.previousActive!==G;this.previousActive=G;this.animationRef.lottieEl?K&&this.toggleAnimation(G,x.totalFrames):G?this.initializeAnimationAsToggled(x.lottiePlayerProps,x.totalFrames):this.initializeAnimationAsUntoggled(x.lottiePlayerProps);x.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=x.type;this.lottiePlayerProps=this.computeLottiePlayerProps(x,D)}};
_.a.computeLottiePlayerProps=function(x,G){var D=this.deepCloneLottiePlayerProps(x);G?(G=x.nameDarkTheme,x=x.pathDarkTheme):(G=x.name,x=x.path);D.animationConfig.name=G;(G=ol.get(x))?D.animationConfig.animationData=G:D.animationConfig.path=x;return D};
_.a.initializeAnimationAsToggled=function(x,G){x.animationConfig.initialSegment=[G-1,G]};
_.a.initializeAnimationAsUntoggled=function(x){x.animationConfig.initialSegment=void 0};
_.a.toggleAnimation=function(x,G){if(x){var D;(D=this.animationRef.lottieEl)==null||D.playSegments([0,G],!0)}else{var K;(K=this.animationRef.lottieEl)==null||K.playSegments([0,1],!0)}};
_.a.deepCloneLottiePlayerProps=function(x){var G=Object.assign({},x.lottiePlayerProps.animationConfig);x=Object.assign({},x.lottiePlayerProps);x.animationConfig=G;return x};
kt.prototype.handlePropertyChange=kt.prototype.handlePropertyChange;_.q([_.R(),_.N("design:type",Object)],kt.prototype,"animatedIcon",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],kt.prototype,"active",void 0);_.q([_.R(),_.N("design:type",Boolean)],kt.prototype,"isDarkTheme",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],kt.prototype,"animatedIconType",void 0);_.q([_.R(),_.N("design:type",Boolean)],kt.prototype,"previousActive",void 0);
_.q([_.R(),_.N("design:type",Object)],kt.prototype,"lottiePlayerProps",void 0);_.q([_.R(),_.N("design:type",Object)],kt.prototype,"animationRef",void 0);_.q([_.yf("animatedIcon","active","isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kt.prototype,"handlePropertyChange",null);kt=_.q([_.HD({is:"yt-animated-icon",disableElementRegistration:!0})],kt);
_.w(kt,"yt-animated-icon",function(){if(cJs===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;lZk===void 0&&(lZk=document.createElement("template"));var K=lZk;D.call(G,K.content.cloneNode(!0),x.content.firstChild);cJs=x}x=cJs;return x},{mode:2});var Tp7;var WBJ;var XcP=_.Nv(function(x){var G=_.Ni(),D=CT(function(){return{value:null}});
_.Fq(function(){var z;(z=D.value)==null||z.cancel()});
var K=_.V9(x.data,{equals:function(z,y){return z.iconName===y.iconName&&z.iconStyle===y.iconStyle&&z.iconSize===y.iconSize&&z.iconSetName===y.iconSetName&&z.iconSelected===y.iconSelected}},"aoiXAb");
_.$9(function(){var z,y=(z=x.options)==null?void 0:z.call(x);O8P(G,D,K(),y)});
return _.M("span",{class:"yt-icon-shape",el:G})},"i");
XcP.idomCompat=!0;var TZ3=["youtube_fill","youtube_outline"];var e8E=new _.Qa({type:"iconset",value:void 0}),PP=function(){var x=_.n.apply(this,arguments)||this;x.isDarkTheme=document.documentElement.hasAttribute("dark");x.iconName="";x.iconsetName="yt-icons";x.iconset=null;x.missingIconSet=!1;x.iconType=null;x.iconShapeDataSignal=_.eO(void 0,void 0,"RQ9kUb");x.renderingOptionsSignal=_.eO({iconWidth:"100%",iconHeight:"100%",iconFilter:x.iconFilter},void 0,"qtx8Ef");x.wizHasRendered=!1;x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return x};
_.m(PP,_.n);PP.prototype.onDarkModeToggledAction=function(x){x!==this.isDarkTheme&&(this.isDarkTheme=x)};
PP.prototype.handlePropertyChange=function(){var x=this,G,D,K,z,y,c,W,e,Q,p,V,L,r,H,O,A,g;return _.T(function(u){switch(u.nextAddress){case 1:if(G=!x.icon&&!x.iconName||!x.isAttached)return u.return();D=x;K=D.icon;z=D.size;y=D.defaultToFilled;c=D.active;W=D.targetContainer;x.toggleContainerClass(W);_.B("kevlar_use_wil_icons")&&K&&(e=cJL(K),x.iconType=e.length?e[1]:null);if(K){u.jumpTo(2);break}x.iconsetName="";x.iconName="";return _.Z(u,x.renderIcon(W,K),3);case 3:return u.return();case 2:Q=PP.computeIcon(K);
p=cJL(Q);p.length&&(x.iconsetName=p[0],x.iconName=p[1]);if(!_.B("kevlar_use_wil_icons")){u.jumpTo(4);break}V=PP;L=V.getIconShapeData;r=x.iconType;H=x.active;O=x.defaultToFilled;A=x.size;g=x.iconsetName;return _.Z(u,PP.getIconManager(),6);case 6:return _.Z(u,L.call(V,r,H,O,A,g,u.yieldResult),5);case 5:x.iconShapeData=u.yieldResult;case 4:if(x.shouldRenderIconShape(W)){u.jumpTo(7);break}return _.Z(u,x.determineIconSet(Q,c,y,z,W),7);case 7:return _.Z(u,x.renderIcon(W,K),0)}})};
PP.prototype.toggleContainerClass=function(x){x?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
PP.computeIcon=function(x){return!_.B("default_to_innertube_icon")||x.indexOf(":")>0?x:_.aP(x)};
_.a=PP.prototype;_.a.determineIconSet=function(x,G,D,K){var z=this;return _.T(function(y){return y.nextAddress==1?_.B("kevlar_system_icons")||_.Am("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.Am("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.Z(y,z.switchToYtSysIconset(x,G,D,K),3):y.jumpTo(2):y.nextAddress!=2?y.return():_.Z(y,z.useYtSysIconsetForMissingIcons(x,G,D,K),0)})};
_.a.switchToYtSysIconset=function(x,G,D,K){var z=this,y,c,W,e,Q,p,V;return _.T(function(L){switch(L.nextAddress){case 1:if(!x||z.iconsetName!=="yt-icons"&&z.iconsetName!=="yt-sys-icons"){L.jumpTo(0);break}y=cJL(x);c=y[1];c=_.LBf(c);_.B("enable_polymer_icons_replace_underscores_dash")&&c.includes("_filled")&&(c=c.replace(/_filled/g,"-filled"));return _.Z(L,ze(c,!0),3);case 3:return W=L.yieldResult,_.Z(L,ze(c,!1),4);case 4:if((e=L.yieldResult)||G&&W)z.iconsetName="yt-sys-icons";z.iconName=z.getIconName(c,
G,D,e,W);if(K===24){L.jumpTo(0);break}Q="yt-sys-icons"+K+":"+z.iconName;return _.Z(L,ze(Q,!1,!0),6);case 6:return p=L.yieldResult,_.Z(L,ze(Q,!0,!0),7);case 7:V=L.yieldResult;z.iconName=z.getIconName(c,G,D,p,V);if(!G&&p||G&&V)z.iconsetName="yt-sys-icons"+K;_.c5(L)}})};
_.a.getIconName=function(x,G,D,K,z){x.includes("-filled")&&(x=x.replace("-filled",""));return z&&(G||D)?x+"-filled":x};
_.a.useYtSysIconsetForMissingIcons=function(x,G,D,K){var z=this,y,c;return _.T(function(W){if(W.nextAddress==1)return z.iconsetName!=="yt-icons"?W.jumpTo(0):_.Z(W,ze(z.iconName,!1,!1,!0),3);if(W.nextAddress!=4)return y=W.yieldResult,_.Z(W,ze(z.iconName,!1),4);c=W.yieldResult;if(y||!c)return W.jumpTo(0);z.iconsetName="yt-sys-icons";return _.Z(W,z.switchToYtSysIconset(x,G,D,K),0)})};
_.a.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
PP.getIconManager=function(){return _.T(function(x){try{return x.return(_.Eo().resolve(_.oP))}catch(G){return x.return(new Promise(function(D){_.Fp().parkOrScheduleJob(function(){D(_.Eo().resolve(_.oP))},2,"ci")}))}})};
PP.getIconShapeData=function(x,G,D,K,z,y){K=K===void 0?24:K;if(x){x=x.toLowerCase();var c=x.endsWith("_filled")||x.endsWith("-filled");G={iconName:x,iconStyle:(G===void 0?0:G)||(D===void 0?0:D)||c?"youtube_fill":"youtube_outline",iconSize:K,iconSetName:z===void 0?"yt-icons":z};D=!!y.resolveIcon(G);D||(G.iconSize=void 0,D=!!y.resolveIcon(G));!D&&c&&(G.iconName=x.substring(0,x.length-7),G.iconSize=K,D=!!y.resolveIcon(G),D||(G.iconSize=void 0,D=!!y.resolveIcon(G)));D||(G.iconStyle=void 0,D=!!y.resolveIcon(G));
D||_.O9(new _.LL("Icon not supported",{iconName:G.iconName,iconStyle:G.iconStyle,iconSize:G.iconSize,iconType:x}));return D?G:void 0}};
_.a=PP.prototype;_.a.shouldRenderIconShape=function(x){if(!_.B("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;x=this.getContainer(x);return!$IP(x,this.icon)};
_.a.renderIcon=function(x,G){var D=this,K,z,y,c,W,e,Q,p;return _.T(function(V){switch(V.nextAddress){case 1:if(G&&D.icon!==G)return V.return();K=D.getContainer(x);z=$IP(K,D.icon);if(D.shouldRenderIconShape(x)&&D.iconType)return D.applyIconShape(z,K),V.return();D.removeIconShape();if(!K)return V.return();D.iconName===""&&D.iconset&&K&&(D.removeStaticIcon(D.iconset,K),z&&D.removeAnimatedIcon(K));if(D.iconName===""&&D.iconset||!D.iconsetName||!e8E)return V.return();D.iconset=e8E.byKey(D.iconsetName);
if(!D.iconset)return D.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.ae(D,D.onIconsetAdded)),V.return();D.missingIconSet&&(D.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.ae(D,D.onIconsetAdded)));c=(y=z||D.isAnimatedIcon?mId(D.icon):void 0)&&!y.lazyLoad;e=y&&((W=y)==null?void 0:W.lazyLoad)&&(y.lottiePlayerProps.animationConfig.animationData?!0:ol.get(D.isDarkTheme?y.pathDarkTheme:y.path)?!0:!1);if(c||e)return D.applyAnimatedIcon(K,y,D.iconset),V.return();if(e||
(Q=y)==null||!Q.lazyLoad){V.jumpTo(2);break}p=C8d(y,D.isDarkTheme);D.applyStaticIcon(D.iconset,K,D.iconName,x,z);return _.Z(V,p,3);case 3:return _.Z(V,D.renderIcon(D.targetContainer,D.icon),4);case 4:return V.return();case 2:D.applyStaticIcon(D.iconset,K,D.iconName,x,z),_.c5(V)}})};
_.a.getContainer=function(x){var G,D=(G=Ap3(this.hostElement))==null?void 0:G.host;G=!!D&&!!D.polymerController;if(!x||G)return x?this.getTargetContainer(x,D):this.hostElement};
_.a.getTargetContainer=function(x,G){var D=_.kA(G).querySelector("#"+x);D||(x=new _.LL("yt-icon container missing",G.is,x),_.I4(x));return D};
_.a.applyStaticIcon=function(x,G,D,K,z){z&&this.removeAnimatedIcon(G);this.removeIconShape();z=z&&!!this.iconType&&!!this.iconShapeData&&_.B("kevlar_use_wil_icons");try{z?this.applyIconShape(!1,G):x.applyIcon(G,D)}catch(y){this.handleError(y,K,G)}};
_.a.applyIconShape=function(x,G){this.iconset&&G&&(this.removeStaticIcon(this.iconset,G),x&&this.removeAnimatedIcon(G));x={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var D=_.l(this.iconShapeDataSignal);G=D.next().value;D=D.next().value;var K=_.l(this.renderingOptionsSignal),z=K.next().value;K=K.next().value;D(this.iconShapeData);K(x);if(!this.wizHasRendered)for(this.wizHasRendered=!0,x=_.l(ACf(G,z)).next().value;x.firstChild;)_.kA(this.hostElement).appendChild(x.firstChild)};
_.a.removeIconShape=function(){if(_.B("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.a.removeStaticIcon=function(x,G){x.removeIcon(G)};
_.a.applyAnimatedIcon=function(x,G,D){this.removeStaticIcon(D,x);this.removeIconShape();var K;D=this.animatedIconElement&&((K=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:K.type)===G.type;if(this.animatedIconElement&&D){this.animatedIconElement.polymerController.animatedIcon=G;var z;((z=this.animatedIconElement)==null?void 0:z.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(x),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=G,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.B("kevlar_use_wil_icons")?x.insertBefore(this.animatedIconElement,x.childNodes[0]):(x=_.kA(x),x.insertBefore(this.animatedIconElement,x.childNodes[0]))};
_.a.removeAnimatedIcon=function(x){_.B("kevlar_use_wil_icons")?this.animatedIconElement&&x.contains(this.animatedIconElement)&&x.removeChild(this.animatedIconElement):(x=_.kA(x),this.animatedIconElement&&x.contains(this.animatedIconElement)&&x.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.a.handleError=function(x,G,D){_.Xv(x,this.iconName,G,D);G=$IP(D,this.icon);var K=!1;window.location.href.includes("JpymaW6Lh2w")?K=!0:D._svgIcon&&(D=(D=D._svgIcon.parentNode)?D.tagName:"unknown",_.Xv(x,D),D==="YT-ICON"&&x.name==="NotFoundError"?K=!0:x.name==="NotFoundError"&&G&&(K=!0));K?_.O9(x):_.I4(x)};
_.Nq.Object.defineProperties(PP,{template:{configurable:!0,enumerable:!0,get:function(){if(WBJ===void 0){var x=document.createElement("template");_.F(x,"\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");x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;
Tp7===void 0&&(Tp7=document.createElement("template"));var K=Tp7;D.call(G,K.content.cloneNode(!0),x.content.firstChild);WBJ=x}x=WBJ;return x}}});
PP.prototype.handlePropertyChange=PP.prototype.handlePropertyChange;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],PP.prototype,"actionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",String)],PP.prototype,"icon",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],PP.prototype,"active",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],PP.prototype,"defaultToFilled",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],PP.prototype,"isAnimatedIcon",void 0);
_.q([_.R({value:24}),_.N("design:type",Number)],PP.prototype,"size",void 0);_.q([_.R({value:""}),_.N("design:type",String)],PP.prototype,"targetContainer",void 0);_.q([_.R(),_.N("design:type",Object)],PP.prototype,"animatedIconElement",void 0);_.q([_.R(),_.N("design:type",Object)],PP.prototype,"isDarkTheme",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],PP.prototype,"ariaHidden",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],PP.prototype,"ariaLabel",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],PP.prototype,"role",void 0);_.q([_.R(),_.N("design:type",String)],PP.prototype,"style",void 0);_.q([_.R(),_.N("design:type",String)],PP.prototype,"iconFilter",void 0);_.q([_.yf("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],PP.prototype,"handlePropertyChange",null);
PP=_.q([_.HD({is:"yt-icon",noInjection:!0})],PP);var ZeE;var MEE=function(){var x=document.body,G=x.appendChild;if(ZeE===void 0){var D=document.createElement("template");_.F(D,'\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>');
ZeE=D}D=ZeE;G.call(x,D.content)};
document.body?MEE():window.addEventListener("DOMContentLoaded",MEE);var QMZ,pFk=function(){return QMZ!==void 0?QMZ:QMZ=document.createElement("template")};
document.head.appendChild(pFk().content);var VE8,be9=function(){return VE8!==void 0?VE8:VE8=document.createElement("template")};
document.head.appendChild(be9().content);var LBZ;_.Ee=new _.wq("KEY_MANAGER_TOKEN");var i8f={duration:1E3,easing:"ease",fill:"forwards"};_.E9(nfO);var ueV={duration:1E3,easing:"ease",fill:"forwards"},sM8=_.Nv(function(x){var G=_.qi(),D=void 0,K=function(){var z,y;return qp((z=x.character)==null?void 0:z.call(x))||qp((y=x.previousCharacter)==null?void 0:y.call(x))};
_.$9(function(){if(x.marginMultiplier()){var z;(z=D)==null||z.cancel();if(K()){var y;z=((y=x.previousCharacter)==null?0:y.call(x))?Number(x.previousCharacter())+10:x.rollUp()?0:30;var c;if((c=x.shouldAnimate)==null||!c.call(x)){var W,e;z-=gfL((W=x.character)==null?void 0:W.call(x),(e=x.previousCharacter)==null?void 0:e.call(x),x.rollUp(),z)}}else{z=x.rollUp()?0:2;var Q;(Q=x.shouldAnimate)!=null&&Q.call(x)||(y=z,c=x.rollUp()?-1:1,z=y-c)}G.value.style.marginTop="-"+z*x.marginMultiplier()+"px";var p;
if((p=x.shouldAnimate)==null?0:p.call(x)){var V,L;D=dIO(G.value,(V=x.character)==null?void 0:V.call(x),(L=x.previousCharacter)==null?void 0:L.call(x),x.rollUp(),z,K(),x.marginMultiplier())}else{var r;G.value.style.display=((r=x.character)==null?0:r.call(x))?"":"none"}}});
return _.M("animated-rolling-character",{el:G,class:"animated-rolling-character-wiz"},_.M(_.b,{cond:K,then:function(){return _.M(Bpu,null)},
else:function(){return _.M(rJ7,{character:x.character})}}))},"j");
sM8.idomCompat=!0;var wcV=_.B("web_enable_sink_animated_rolling_character_and_number")?sM8:nfO,Yms=_.B("web_enable_sink_animated_rolling_character_and_number")?sM8:_.TY(nfO),Bpu=_.Nv(function(){for(var x=[],G=1;G<30;G++)x.push(_.M("div",null,G%10));return _.M(_.xT,null,_.M("div",null,"\u00a0"),x,_.M("div",null,"\u00a0"))},"k"),rJ7=_.Nv(function(x){var G=x.character;
return _.M(_.xT,null,_.M("div",null,"\u00a0"),_.M(_.b,{cond:function(){return!(G==null?0:G())||_.y3(G==null?void 0:G())},
then:function(){return _.M("div",null,"\u00a0")},
else:function(){return _.M("div",null,G)}}),_.M("div",null,"\u00a0"))},"l");_.E9(qQ3);var mni=_.Nv(function(x){var G=void 0,D=void 0,K=function(){var y;return((y=x.fontSizeMultiplier)==null?0:y.call(x))?x.heightPx()*x.fontSizeMultiplier():x.heightPx()},z=_.V9(function(){if(!x.numberText())return[];
var y,c,W=((y=x.forceRollUp)==null?void 0:y.call(x))||!D||!((c=x.numberValue)==null?0:c.call(x))||D<x.numberValue(),e,Q=x.numberText();y=K();c=!((e=x.shouldAnimate)==null||!e.call(x));e=[];var p=0,V=0,L=(G?G.replace(/\D/g,"").length:0)-(Q?Q.replace(/\D/g,"").length:0),r=G?G.split(/(\d)/).filter(Boolean):[];for(Q=Q.split(/(\d)/).filter(Boolean);L<0;){var H=Q[V];e.push({character:H,rollUp:W,marginMultiplier:y,shouldAnimate:c});V++;qp(H)&&L++}for(;p<L;)H=r[p],e.push({previousCharacter:H,rollUp:W,marginMultiplier:y,
shouldAnimate:c}),p++,qp(H)||L++;for(;V<Q.length;)L=Q[V],H=r[p],qp(L)===qp(H)?(V++,p++):qp(L)?(p++,L=void 0):qp(H)&&(V++,H=void 0),e.push({character:L,previousCharacter:H,rollUp:W,marginMultiplier:y,shouldAnimate:c});G=x.numberText();var O;D=(O=x.numberValue)==null?void 0:O.call(x);return e},void 0,"B9AmNd");
return _.M("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:function(){return x.numberText()?["height: "+K()+"px;","line-height: "+x.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.M(_.LT,{each:z,keyBy:"INDEX"},function(y){return _.M(Yms,{character:function(){return y().character},
previousCharacter:function(){return y().previousCharacter},
marginMultiplier:function(){return y().marginMultiplier},
rollUp:function(){return y().rollUp},
shouldAnimate:function(){return y().shouldAnimate}})}))},"m");
mni.idomCompat=!0;_.zWf=_.B("web_enable_sink_animated_rolling_character_and_number")?mni:qQ3;_.HeZ=_.B("web_enable_sink_animated_rolling_character_and_number")?mni:_.TY(qQ3);_.hG=_.Nv(function(x){var G=_.qi(x.ref),D=x.aTagConfig?x.aTagConfig:_.V9(function(){var K,z,y,c,W,e;var Q=(e=_.jn((c=x.command)==null?void 0:c.call(x)))!=null?e:(W=x.command)==null?void 0:W.call(x);return _.XB({innertubeCommand:Q,skipOnClick:(K=x.skipOnClick)==null?void 0:K.call(x),stopPropagation:(z=x.dangerousStopPropagation)==null?void 0:z.call(x),defaultTarget:(y=x.target)==null?void 0:y.call(x)})||{}},void 0,"gnrRge");
_.$9(function(){G.value._data=D()._data;G.value.params=D().params});
return _.M("a",{el:G,href:function(){return D().href$},
rel:function(){return D().rel$},
class:function(){var K,z;return(z=D().className)!=null?z:(K=x.className)==null?void 0:K.call(x)},
style:function(){var K;if((K=x.style)==null?0:K.call(x))return x.style();var z;return((z=x.disabled)==null?0:z.call(x))?"pointer-events:none":""},
"aria-haspopup":function(){return!!D()["aria-haspopup$"]},
"force-new-state":es(function(){return D()["force-new-state$"]}),
title:es(function(){var K,z;return(z=D().title$)!=null?z:(K=x.title)==null?void 0:K.call(x)}),
role:es(function(){return D().role$}),
target:es(function(){return D().target$}),
dir:es(function(){var K;return((K=x.dir)==null?0:K.call(x))?x.dir():D().dir}),
tabindex:function(){var K;return D().tabindex$?Number(D().tabindex$):(K=x.tabIndex)==null?void 0:K.call(x)},
"aria-hidden":function(){var K,z;return(z=D()["aria-hidden$"])!=null?z:(K=x.ariaHidden)==null?void 0:K.call(x)},
"aria-label":function(){var K,z;return(z=D()["aria-label$"])!=null?z:(K=x.ariaLabel)==null?void 0:K.call(x)},
"aria-current":x.ariaCurrent,"aria-labelledby":x.ariaLabelledby,"aria-describedby":x.ariaDescribedby,"aria-selected":x.ariaSelected,"tab-identifier":x.tabIdentifier,"on:pointerdown":_.WH(function(K){var z,y;return void((y=(z=D()).onpointerdown)==null?void 0:y.call(z,K))}),
"on:click":_.WH(function(K){var z,y;return void((y=(z=D()).onclick)==null?void 0:y.call(z,K))})},x.children)},"n");var $n7=function(x,G){this.fillAnimation=new Animation(N7E(x),document.timeline);this.strokeAnimation=new Animation(vf$(G),document.timeline)};
$n7.prototype.play=function(){var x,G;(G=(x=this.fillAnimation).play)==null||G.call(x);var D,K;(K=(D=this.strokeAnimation).play)==null||K.call(D)};
$n7.prototype.cancel=function(){var x,G;(G=(x=this.fillAnimation).cancel)==null||G.call(x);var D,K;(K=(D=this.strokeAnimation).cancel)==null||K.call(D)};_.b_=_.Nv(function(x){var G=x.model;var D=x.pointerDownEvent;var K=x.pointerUpEvent;var z=x.pointerLeaveEvent;x=_.qi();var y=_.Ms({"border-radius":function(){return G().borderRadius}}),c=_.qi(),W=_.qi(),e=_.l(_.ZX(function(){return(K==null?0:K())||(z==null?0:z())?!1:!(D==null||!D())||!1})),Q=e.next().value,p=e.next().value,V=void 0,L=function(){!V&&W.value&&c.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(V=new $n7(W.value,c.value));
var u;(u=V)==null||u.play()},r=function(){var u;
(u=V)==null||u.cancel()},H=function(){var u;
(u=V)==null||u.cancel()};
_.$9(function(){(K==null?0:K())&&L()});
_.$9(function(){(D==null?0:D())&&r()});
_.$9(function(){(z==null?0:z())&&H()});
e=_.WH(function(){L();p(!1)});
var O=_.WH(function(){r();p(!0)}),A=_.WH(function(){H();
p(!1)});
_.Fq(function(){if(V){var u;(u=V)==null||u.cancel();V=void 0}});
var g={};Q=_.ym("yt-spec-touch-feedback-shape",function(){return JCh(G().color)},(g["yt-spec-touch-feedback-shape--focused"]=function(){return!!G().focused&&!G().disabled},g["yt-spec-touch-feedback-shape--circular"]=function(){return!!G().circular},g["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!G().isExtended},g["yt-spec-touch-feedback-shape--down"]=Q,g["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!G().triggerEvents},g));
return _.M("yt-touch-feedback-shape",{style:_.Ms({"border-radius":"inherit"})},_.M("div",{el:x,class:Q,style:_.Ms({"margin-top":function(){return G().customTopExtend?"-"+G().customTopExtend+"px":void 0}}),
"on:mousedown":O,"on:mouseup":e,"on:pointerleave":A,"on:touchstart":O,"on:touchend":e,"aria-hidden":!0},_.M("div",{class:"yt-spec-touch-feedback-shape__stroke",style:y,el:c}),_.M("div",{class:"yt-spec-touch-feedback-shape__fill",style:y,el:W})))},"o");
_.b_.idomCompat=!0;var FBZ={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 xb=_.Q3();xb=xb.toLowerCase();if(_.Td(xb,"android")){var C$E=xb.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);C$E&&parseFloat(C$E[1])<100||xb.match("("+Object.keys(FBZ).join("|")+")")};var IZ7=_.Nv(function(x){return _.M(_.b,{cond:x.aTagConfig,then:function(G){return _.M(_.hG,{aTagConfig:G,disabled:x.disabled,className:x.className,style:x.style,title:x.title,ariaLabel:x.ariaLabel,ariaCurrent:function(){var D,K;return((D=x.toggleable)==null?void 0:D.call(x))&&((K=x.toggled)==null?void 0:K.call(x))}},x.children)},
else:function(){return _.M("button",{"on:click":_.WH(function(G){var D;return(D=x.onClick)==null?void 0:D.call(x,G)}),
class:x.className,title:x.title,style:x.style,disabled:x.disabled,"aria-pressed":function(){var G,D;return((G=x.toggleable)==null?0:G.call(x))?!((D=x.toggled)==null||!D.call(x)):void 0},
"aria-label":x.ariaLabel,"aria-disabled":x.visiblyDisabled,"aria-hidden":x.ariaHidden,tabindex:x.tabIndex},x.children)}})},"p"),Oe0=_.Nv(function(x){var G=x.data;
var D=x.hasIconLeading;var K=x.hasIconLeadingTrailing;var z=x.hasIconTrailing;var y=x.iconButton;var c=x.iconClassName;var W=x.secondaryIconClassName;var e=x.icon;var Q=x.secondaryIcon;var p=x.textContentClassName;return _.M(GS,{className:"",style:"display: inherit; justify-content: center"},_.M(_.b,{debugInstance:"V4z1Uc",cond:function(){return e&&(D()||K()||(y==null?void 0:y()))},
then:function(){return _.M(GS,null,_.M("div",{class:c,"aria-hidden":"true"},e==null?void 0:e()))}}),_.M(_.b,{debugInstance:"ok3btb",
cond:function(){return(G().buttonText||G().animatedTextProps||G().formattedButtonText)&&!(y==null?0:y())},
then:function(){return _.M(GS,null,_.M(jMi,{className:p,iconPosition:function(){return G().iconPosition},
text:function(){return G().buttonText},
oneOffCustomTextWrap:function(){return G().oneOffCustomTextWrap},
formattedButtonText:function(){return G().formattedButtonText},
animatedTextProps:function(){return G().animatedTextProps}}))}}),_.M(_.b,{debugInstance:"DO5Rz",
cond:z,then:function(){return _.M(GS,null,_.M("div",{class:c},e==null?void 0:e()))}}),_.M(_.b,{debugInstance:"bnojSc",
cond:K,then:function(){return _.M(GS,null,_.M("div",{class:W},Q==null?void 0:Q()))}}),_.M(_.b,{debugInstance:"HN3kad",
cond:function(){return!G().disabled&&!0},
then:function(){return _.M(_.b_,{model:function(){return{color:EfD(G())}}})}}))},"q"),jMi=_.Nv(function(x){var G=function(){var D,K;
return((D=x.iconPosition)==null?void 0:D.call(x))==="icon-with-label"||((K=x.oneOffCustomTextWrap)==null?void 0:K.call(x))};
return _.M("div",{class:x.className,"aria-hidden":function(){var D,K,z;return((D=x.ariaHidden)==null?void 0:D.call(x))&&(!((K=x.animatedTextProps)==null||!K.call(x))||!((z=x.formattedButtonText)==null||!z.call(x)))}},_.M(_.so,null,_.M(_.B6,{when:function(){var D;
return(D=x.animatedTextProps)==null?void 0:D.call(x)}},function(){return _.M(_.HeZ,{numberText:function(){return x.animatedTextProps().numberText},
numberValue:function(){return x.animatedTextProps().numberValue},
heightPx:function(){return x.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return x.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return x.animatedTextProps().shouldAnimate},
forceRollUp:function(){return x.animatedTextProps().forceRollUp}})}),_.M(_.B6,{when:function(){var D;
return(D=x.formattedButtonText)==null?void 0:D.call(x)}},function(){return _.M(_.vq,{text:function(){return Object.assign({},x.formattedButtonText(),{lineBreakMode:G()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":x.formattedButtonText().lineBreakMode,
alignment:G()?"TEXT_ALIGNMENT_CENTER":x.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!G()}})}),_.M(_.B6,{when:function(){var D,K;
return((D=x.iconPosition)==null?void 0:D.call(x))==="icon-with-label"&&((K=x.text)==null?void 0:K.call(x))}},function(){return _.M(_.vq,{text:function(){return{content:x.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.M(_.rT,null,function(){return x.text})))},"r"),XFu=_.Nv(function(x){return _.M(_.b,{debugInstance:"kM7Sgc",
cond:x.hasLabel,then:function(){var G;return _.M("label",{class:x.className},x.children,(G=x.textContent)==null?void 0:G.call(x))},
else:function(){return x.children}})},"s"),GS=_.Nv(function(x){return x.children},"t");var lXn=GC("stamper-context");var fs=_.Nv(function(x){var G=x.data;var D=x.icon;var K=x.iconName;var z=x.secondaryIcon;var y=x.secondaryIconName;var c=x.focusedOverride;ToQ();var W=fdd(G),e=W.size,Q=W.style;x=W.disabled;var p=W.onTap,V=W.alignByText,L=W.aTagConfig,r=W.customColors,H=W.segmentedPosition,O=W.toggled,A=W.toggleable,g=W.accessibilityLabel,u=W.onToggle,f=W.iconPosition,v=W.oneOffCustomTextWrap,P=W.disableTextEllipsis,k=W.disableBackdropFilter,cL=W.tooltipText,bO=W.ariaHidden,mE=W.tabIndex,jf=W.buttonText,$C=W.formattedButtonText,
OD=W.animatedTextProps,wn=P8D(G,D,z,K,y,c),n$=wn.type;D=wn.shouldFocus;K=wn.hasIconLeading;z=wn.hasIconTrailing;var Fi=wn.hasIconLeadingTrailing,pf=wn.hasIconOnly;y=wn.hasIconOnly40;var UE=wn.hasIconWithLabel;c=wn.iconButton;var M0=wn.visiblyDisabled;W=wn.overrideSmallSizeIcon;var cs=wn.iconToRender;wn=wn.secondaryIconToRender;var G8={},T7={};return _.M(XFu,{className:_.ym("yt-spec-button-shape-with-label",(G8["yt-spec-button-shape-with-label--is-overlay"]=function(){return Q()==="overlay"||Q()===
"overlay-dark"},G8)),
hasLabel:UE,textContent:function(){return _.M(jMi,{text:jf,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:v,iconPosition:f,formattedButtonText:$C,animatedTextProps:OD})}},_.M(IZ7,{aTagConfig:L,
className:_.ym("yt-spec-button-shape-next",function(){return xr$(n$())},function(){return M0()?void 0:GJL(Q())},function(){return DrL(e())},(T7["yt-spec-button-shape-next--disabled"]=M0,T7["yt-spec-button-shape-next--focused"]=D,T7["yt-spec-button-shape-next--icon-trailing"]=z,T7["yt-spec-button-shape-next--icon-leading"]=K,T7["yt-spec-button-shape-next--icon-leading-trailing"]=Fi,T7["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return Fi()&&!(jf()||$C())},T7["yt-spec-button-shape-next--icon-button"]=
function(){return pf()||UE()},T7["yt-spec-button-shape-next--icon-only-default"]=y,T7["yt-spec-button-shape-next--align-by-text"]=V,T7["yt-spec-button-shape-next--segmented-start"]=function(){return H()==="start"},T7["yt-spec-button-shape-next--segmented-end"]=function(){return H()==="end"},T7["yt-spec-button-shape-next--override-small-size-icon"]=W,T7["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=v,T7["yt-spec-button-shape-next--disable-text-ellipsis"]=P,T7["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!k()&&hhd()},T7)),
style:function(){return Kch(r()).style},
onClick:function(Wd){p==null||p(Wd);A()&&(u==null||u(Wd))},
disabled:x,ariaLabel:g,toggleable:A,toggled:O,title:function(){var Wd;return(Wd=cL())!=null?Wd:""},
visiblyDisabled:M0,ariaHidden:bO,tabIndex:mE},_.M(Oe0,{data:G,hasIconLeading:K,hasIconLeadingTrailing:Fi,hasIconTrailing:z,iconButton:c,icon:cs,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:wn})))},"u");
fs.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var AJk=_.Nv(function(x){var G=x.data;var D=x.id;var K=x.hidden;var z=x.className;var y=x.iconName;var c=x.secondaryIconName;x=_.l(_.eO(!1,void 0,"RyKHFc"));var W=x.next().value,e=x.next().value,Q=function(){var V=_.Eo().resolve(_.P6(_.Ee));V&&e(V.isKeyBoardInUse())},p=function(){e(!1)};
x=_.qi(function(V){if(_.Eo().resolve(_.P6(_.Ee)))return V.addEventListener("focusin",Q),V.addEventListener("focusout",p),function(){V.removeEventListener("focusin",Q);V.removeEventListener("focusout",p)}});
return _.M("yt-button-shape",{el:x,id:D,class:z,hidden:K},_.M(_.b,{cond:G,then:function(){return _.M(fs,{data:G,iconName:y,secondaryIconName:c,focusedOverride:W})}}))},"v");
_.B("web_wiz_button_shape")&&_.tn(AJk,"yt-button-shape",{props:{data:_.ik,id:_.ik,hidden:_.ik,className:_.ik,iconName:_.ik,secondaryIconName:_.ik},unsafeExternallySettableAttributes:new Set(["key","dialog-dismiss","disable-upgrade"])});var DN=function(){var x=_.n.apply(this,arguments)||this;x.keyboardFocused=!1;return x};
_.m(DN,_.n);DN.prototype.onFocus=function(){var x=_.Eo().resolve(_.P6(_.Ee));x&&(this.keyboardFocused=x.isKeyBoardInUse())};
DN.prototype.onBlur=function(){this.keyboardFocused=!1};
DN.prototype.renderIdom=function(){var x=this;if(this.data){var G=pH(this.data,!!this.iconName),D=kVh(this.data);this.data.focused=this.keyboardFocused;lRV(this.data,function(){var K;mw("yt-icon",{icon:x.iconName,active:(K=x.data)==null?void 0:K.toggled,size:G,style:"width: "+G+"px; height: "+G+"px;",iconFilter:D},wO)},function(){var K;
mw("yt-icon",{icon:x.secondaryIconName,active:(K=x.data)==null?void 0:K.toggled,size:G,style:"width: "+G+"px; height: "+G+"px;",iconFilter:D},wO)});
_.h$(this.hostElement,"yt-renderidom-finished")}};
_.Nq.Object.defineProperties(DN,{template:{configurable:!0,enumerable:!0,get:function(){if(LBZ===void 0){var x=document.createElement("template");_.F(x,"\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");
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);x.content.insertBefore(be9().content.cloneNode(!0),x.content.firstChild);x.content.insertBefore(pFk().content.cloneNode(!0),x.content.firstChild);LBZ=x}x=LBZ;return x}}});
DN.prototype.onBlur=DN.prototype.onBlur;DN.prototype.onFocus=DN.prototype.onFocus;_.q([_.I(GQ7),_.N("design:type",Object)],DN.prototype,"ytIdomTemplatingBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],DN.prototype,"data",void 0);_.q([_.R(),_.N("design:type",String)],DN.prototype,"iconName",void 0);_.q([_.R(),_.N("design:type",String)],DN.prototype,"secondaryIconName",void 0);_.q([_.R(),_.N("design:type",Object)],DN.prototype,"keyboardFocused",void 0);
_.q([_.oe("focusin"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DN.prototype,"onFocus",null);_.q([_.oe("focusout"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DN.prototype,"onBlur",null);DN=_.q([_.HD({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.B("web_wiz_button_shape")})],DN);_.tn(_.Nv(function(x){function G(){D().seconds&&y(jL3({seconds:Number(D().seconds)-Date.now()/1E3}))}
var D=x.targetTimestamp;x=x.className;var K=_.l(_.eO("",void 0,"U1Q8Ae")),z=K.next().value,y=K.next().value;_.H6(function(){G();var c=setInterval(function(){G()},1E3);
_.Fq(function(){clearInterval(c)})});
return _.M("yt-countdown",{class:_.ym("ytCountDownHost",x)},_.M("div",null,z))},"w"),"yt-countdown",{props:{targetTimestamp:_.ik,
className:_.fz}});_.Cs=_.Nv(function(x){var G=x.data;var D=x.className;var K=x.style;var z=x.useOutlinedIcon;var y=x.buttonOverrides;var c=x.animatedTextProps;var W=x.onClick;var e=_.qi(function(A){A.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var g=G().targetId;g&&_.cKZ(_.e$(),g,A);return function(){yKs(_.e$(),A)}}),Q=function(){return G().iconName},p,V=(p=_.Eo().resolve(_.P6(_.ib)))==null?void 0:p(),L=function(){var A=G();
var g=y==null?void 0:y(),u=c==null?void 0:c();if(A){var f=ZGL(A.type);var v=!!A.title||!!A.titleFormatted;var P=!(!A.iconName&&!A.iconImage);v=P&&!v?"icon-only":P?A.iconTrailing||A.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;v==="icon-only-40"&&(f="text");var k,cL=(k=g==null?void 0:g.disabled)!=null?k:A.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||A.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";k=Object;P=k.assign;var bO=A.title,mE=A.titleFormatted;u=u&&u.numberText&&
!isNaN(Number(u.numberValue))?u:void 0;var jf=A.accessibilityText,$C=eWD(A.style),OD=MFO(A.state),wn=QRP(A.buttonSize),n$=Wcn(A,e,cL,W);cL=cL&&!A.onDisabledTap;var Fi=_.XB({elementsCommand:A.onTap,forceNewState:!0});Fi=An(Fi)?Fi:void 0;var pf=A.customFontColor,UE=A.customBackgroundColor;var M0=A.customBorderColor;var cs=A.customDarkThemeFontColor,G8=A.customDarkThemeBackgroundColor,T7=A.customDarkThemeBorderColor;pf=V&&cs?cs:pf;UE=V&&G8?G8:UE;M0=V&&T7?T7:M0;M0={color:pf?_.jT(pf):void 0,backgroundColor:UE?
_.jT(UE):void 0,borderColor:M0?_.jT(M0):void 0};A=P.call(k,{},{buttonText:bO,formattedButtonText:mE,animatedTextProps:u,accessibilityLabel:jf,style:$C,type:f,state:OD,size:wn,iconPosition:v,onTap:n$,disabled:cL,aTagConfig:Fi,customColors:M0,tooltipText:A.tooltip},g)}else A={style:"mono",type:"text",state:"active",size:"M"};A.focused=O();return A},r=function(){return pH(L(),!!G().iconName)};
x=_.l(_.eO(!1,void 0,"vxWDPb"));p=x.next().value;var H=x.next().value,O=p;x=_.WH(function(){var A=_.Eo().resolve(_.P6(_.Ee));A&&H(A.isKeyBoardInUse());return!1});
p=_.WH(function(){H(!1);return!1});
_.$9(function(){var A,g=_.Y(G==null?void 0:(A=G())==null?void 0:A.onVisible,_.IP);g&&_.OI(g,{disableClickTracking:!0})});
return _.M("button-view-model",{el:e,class:_.ym("yt-spec-button-view-model",D),"on:focusin":x,"on:focusout":p},_.M(_.b,{cond:function(){var A;return(G==null?0:(A=G())==null?0:A.iconImage)?{sources:[G().iconImage]}:void 0},
then:function(A){return _.M(fs,{data:L,icon:function(){return _.M(_.wk,{data:A,alt:"",targetWidth:r,targetHeight:r,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.M(fs,{data:L,icon:function(){return _.M(_.Qm,{icon:Q,active:function(){return(z==null?0:z())?!1:L().toggled},
animateIcon:function(){var A;return!!(K==null?0:(A=K())==null?0:A.animateIcon)},
size:r})}})}}))},"x");
_.Cs.idomCompat={callbacks:{onClick:!0}};_.tn(_.Nv(function(x){return _.M("yt-button-view-model",{id:x.id,class:_.ym(x.scopingClassName,x.classes),icon:function(){var G;return(G=x.icon)==null?void 0:G.call(x)},
"dialog-dismiss":function(){var G;return((G=x.dialogDismiss)==null?0:G.call(x))?"":void 0}},_.M(_.Cs,{data:function(){var G;
return(G=x.data)==null?void 0:G.call(x)},
className:function(){var G;return(G=x.className)==null?void 0:G.call(x)},
style:function(){var G;return(G=x.style)==null?void 0:G.call(x)},
useOutlinedIcon:function(){var G;return(G=x.useOutlinedIcon)==null?void 0:G.call(x)},
buttonOverrides:function(){var G;return(G=x.buttonOverrides)==null?void 0:G.call(x)},
animatedTextProps:function(){var G;return(G=x.animatedTextProps)==null?void 0:G.call(x)},
onClick:function(G){var D;return(D=x.onClick)==null?void 0:D.call(x,G)}}))},"y"),"yt-button-view-model",{props:{data:_.ik,
className:_.ik,style:_.ik,useOutlinedIcon:_.ik,buttonOverrides:_.ik,animatedTextProps:_.ik,onClick:_.fz,scopingClassName:_.ik,id:_.ik,icon:_.ik,dialogDismiss:_.ik,classes:_.ik}});var Kh=function(){var x=_.n.apply(this,arguments)||this;x.isGoalActive=!0;return x};
_.m(Kh,_.n);Kh.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
Kh.prototype.progressBarChanged=function(){var x=_.kA(this.hostElement).querySelector("#progress-bar-progress"),G,D,K,z=(K=Number((G=this.creatorGoalState)==null?void 0:G.currentGoalCount)/Number((D=this.creatorGoalState)==null?void 0:D.totalGoalCount)*100)!=null?K:0,y;x.style.width=((y=Math.min(z,100))!=null?y:0)+"%"};
Kh.prototype.goalStateChanged=function(){var x;this.isGoalActive=((x=this.creatorGoalState)==null?void 0:x.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var G;x={"--yt-progress-bar-color":SmP((G=this.creatorGoalState)==null?void 0:G.progressBarColor)};_.K7(this.hostElement,x)};
Kh.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.Nq.Object.defineProperties(Kh.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var x;return this.isGoalActive&&!((x=this.creatorGoalState)==null||!x.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.creatorGoalState)==null?0:x.endTimestampMs){var G;x=Number((G=this.creatorGoalState)==null?void 0:G.endTimestampMs)/1E3;return{seconds:String(x)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.creatorGoalState)==null?0:x.themedTargetImage){var G;x=_.Y((G=this.creatorGoalState)==null?void 0:G.themedTargetImage,sL7);return this.isAppDarkTheme()?x==null?void 0:x.imageDark:x==null?void 0:x.imageLight}}}});
_.Nq.Object.defineProperties(Kh,{template:{configurable:!0,enumerable:!0,get:function(){return xnJ()}}});
Kh.prototype.goalStateChanged=Kh.prototype.goalStateChanged;Kh.prototype.progressBarChanged=Kh.prototype.progressBarChanged;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Kh.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.CF),_.N("design:type",Object)],Kh.prototype,"ytLiveChatReduxBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Kh.prototype,"ytRendererBehavior",void 0);
_.q([_.R({selectorArgs:["data.creatorGoalEntityKey"],selector:function(x,G){return _.zm(x.entities,"creatorGoalEntity",G)}}),
_.N("design:type",Object)],Kh.prototype,"creatorGoalState",void 0);_.q([_.R(),_.N("design:type",Object)],Kh.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],Kh.prototype,"isGoalActive",void 0);_.q([_.U("creatorGoalState","isGoalActive"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Kh.prototype,"shouldShowCountdown",null);_.q([_.U("creatorGoalState"),_.N("design:type",Object),_.N("design:paramtypes",[])],Kh.prototype,"endTimestamp",null);
_.q([_.U("creatorGoalState"),_.N("design:type",Object),_.N("design:paramtypes",[])],Kh.prototype,"targetIconThemedImage",null);_.q([_.yf("creatorGoalState.currentGoalCount"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kh.prototype,"progressBarChanged",null);_.q([_.yf("creatorGoalState.creatorGoalState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kh.prototype,"goalStateChanged",null);
Kh=_.q([_.HD({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Kh);_.w(Kh,"yt-creator-goal-progress-flow-view-model",function(){return xnJ()},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var Uni;var R8s;var oJ=function(){return _.n.apply(this,arguments)||this};
_.m(oJ,_.n);oJ.prototype.attached=function(){var x,G,D;if(this==null?0:(x=this.data)==null?0:(G=x.pdgPurchasedBumperLoggingDirectives)==null?0:(D=G.loggingDirectives)==null?0:D.trackingParams){var K,z,y;bGV(this==null?void 0:(K=this.data)==null?void 0:(z=K.pdgPurchasedBumperLoggingDirectives)==null?void 0:(y=z.loggingDirectives)==null?void 0:y.trackingParams)}};
oJ.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],oJ.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],oJ.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],oJ.prototype,"data",void 0);oJ=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],oJ);
_.w(oJ,"yt-live-chat-item-bumper-view-model",function(){if(R8s===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;Uni===void 0&&(Uni=document.createElement("template"));var K=Uni;D.call(G,K.content.cloneNode(!0),x.content.firstChild);R8s=x}x=R8s;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var SmZ;var nXs;_.gG=function(x,G){this.data=x;this.actions=G;this.data=x;this.actions=G};
_.Ou=function(){};_.yU={};_.yU.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(x,G){Lc$(this.hostElement,x,G)},
getNavigationEndpointPopupAction:function(x){return Bo$(x,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(x,G){rIf(this.hostElement,x,G,this.openPopupConfig)}};var OGO=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.l9={};
_.l9.YtEndpointBehavior=[_.yU.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.Am("openPopupConfig");(this.useClickHandler=_.Uo("useClickHandler",!1))?this.hostElement.addEventListener("click",za(this,this.onEndpointClick_)):(Hm(this.hostElement,"tap",za(this,this.onEndpointTap_)),Hm(this.hostElement,"touchend",za(this,this.onEndpointTouchEnd_)));Hm(this.hostElement,"touchstart",za(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
za(this,this.onEndpointTapStart_))},
onEndpointClick_:function(x){mr3(this.hostElement,x,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(x){var G=this.hostElement,D=this.openPopupConfig,K=this.disableCommandHandlerOverride;K=K===void 0?!1:K;var z=sRf(x);if(z){z.href&&AS(z.href);var y=x.detail;var c=y.sourceEvent;y=y.preventer;c=c.button!==void 0?c.button===0&&!rG(c):y?!rG(y):!0;z.data&&c&&YMO(G,z,x,D,K)}},
onEndpointTouchEnd_:function(x){rG(x)||sRf(x)&&x.preventDefault()},
onEndpointTapStart_:function(x){IRf(x)}}];var XvP="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),UrD=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var ie0={};ie0.YtPlaintextBehavior=[_.Tb,{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(x){x.preventDefault();x=x.clipboardData.getData("text/plain");document.execCommand("insertText",!1,x)},
preventRichTextFormatting_:function(x){_.Kr&&(x=x.detail.keyboardEvent,x.stopImmediatePropagation(),x.preventDefault())}}];var gXZ;var uZ7;var cx=function(){var x=_.n.apply(this,arguments)||this;x.ignoreShadyDom=!1;x.hasChange_=!1;x.hasSetTitle_=!1;x.useIOObserverForVisibilityLogging_=_.B("kevlar_use_vimio_behavior")&&_.Am("INNERTUBE_CLIENT_NAME")==="WEB";x.ytFormattedStringObserverHandlerKeys_=void 0;return x};
_.m(cx,_.n);_.a=cx.prototype;_.a.created=function(){this.useIOObserverForVisibilityLogging_=_.B("kevlar_use_vimio_behavior")&&_.Am("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.a.ready=function(){_.Am("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_()};
_.a.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.a.detached=function(){this.unobserveIOObservers_()};
_.a.clearContents_=function(){for(var x=this.getRoot(),G=x.lastChild;G&&G.tagName!=="STYLE";){try{x.removeChild(G)}catch(D){break}G=x.lastChild}};
_.a.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var x=_.l(this.ytFormattedStringObserverHandlerKeys_),G=x.next();!G.done;G=x.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(G.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.a.resetForAttributedString=function(){var x=this.getRoot();!x.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),x.appendChild(this.ytAttributedStringElementRef))};
_.a.resetForFormattedString=function(){var x=this.getRoot(),G=x.querySelector("yt-attributed-string");G&&(this.ytAttributedStringElementRef=x.removeChild(G))};
_.a.textChanged=function(){this.textChanged_(this.text)};
_.a.textChanged_=function(x){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!x||!x.runs&&!x.simpleText;if(_.B("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var G=this.hostElement.firstChild;G&&G.nodeName==="FONT";){var D=G;G=G.nextSibling;this.hostElement.removeChild(D)}G=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
D=x.simpleText;var K;!D&&((K=x.runs)==null?void 0:K.length)===1&&this.isSimpleString_(x.runs[0])&&(D=x.runs[0].text);D!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.Am("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(D!==void 0){try{G.textContent=D}catch(z){}G.textContent||(this.isEmpty=!0)}else x=x.runs,D!==void 0&&(x=[{text:D}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),x&&this.updateText_(x),
G.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.a.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)};
_.a.computeAriaLabel_=function(x){return x};
_.a.computeEllipsisTruncateStyling=function(x,G){return x&&!G};
_.a.computeUseAttributedString=function(x){return _.B("web_replace_formatted_with_attributed_string")&&h8P(x)&&!this.disableAttributedString&&!this.enableContentEditable};
_.a.setNodeStyle_=function(x,G){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.B("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?G.removeAttribute("dir"):G.setAttribute("dir","auto");G.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");G.style.color="";var D=null;this.noStyles||(x.bold&&(G.classList.add("bold"),D="bold"),x.deemphasize&&(G.classList.add("deemphasize"),D="deemphasize"),x.italics&&G.classList.add("italic"),
x.strikethrough&&G.classList.add("strikethrough"),x.errorUnderline&&(G.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),x.bracket&&G.classList.add("bracket"),x.textColor&&(G.style.color=_.In(x.textColor)));D!==G.getAttribute("style-target")&&(D?G.setAttribute("style-target",D):G.removeAttribute("style-target"))};
_.a.setUpVisibilityLogging_=function(x,G){var D=this;this.setNodeTrackingParams_(x,G);var K;((K=G.data)==null?0:K.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(x=this.ytRendererBehavior.visibilityObserver.observe(G,function(z){var y=D.ytRendererBehavior.getVisibilityLogger();y&&y.reportShown(z)},this.ytRendererBehavior.visibilityOptionVisible_),G=this.ytRendererBehavior.visibilityObserver.observe(G,function(z){var y=D.ytRendererBehavior.getVisibilityLogger();
y&&y.reportHidden(z)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(x),this.ytFormattedStringObserverHandlerKeys_.push(G))};
_.a.setNodeTrackingParams_=function(x,G){G.data||(G.data={});if((x=x.loggingDirectives?x.loggingDirectives.trackingParams:null)||G.data.trackingParams)G.data.trackingParams=x};
_.a.computeHasLinkOnly_=function(x){return!(!x||x.length!==1||this.noEndpoints||!x[0].navigationEndpoint)};
_.a.getRoot=function(){var x=this.buildScopeDomOptions();return this.enableContentEditable?_.kA(_.kA(this.hostElement,x).querySelector("[contenteditable]")):_.kA(this.hostElement,x)};
_.a.fixContenteditableScope=function(){var x=function(G){G&&(G.nodeType===1&&G.classList&&(G.classList.add("style-scope"),G.classList.add("yt-formatted-string")),G.childNodes&&G.childNodes.forEach(function(D){x(D)}))};
x(this.getRoot())};
_.a.updateText_=function(x){for(var G=x.length,D=this.getRoot(),K=D.firstChild;K&&K.nodeName==="STYLE";)K=K.nextSibling;for(var z=0;z<G&&K;){var y=x[z],c=_.B("remove_cr_char")&&y.text?y.text.replace("\r",""):y.text;if(this.isSimpleString_(y)&&!this.useMixedDirectionFormattedStrings)if(K.nodeName==="#text"){K.textContent!=c&&(K.textContent=c);z++;K=K.nextSibling;continue}else break;if(_.Y(y,FB))break;else if(!this.noEndpoints&&y.navigationEndpoint){if(K.nodeName!=="A")break;this.setDataOnAnchor_(K,
y.navigationEndpoint)}else if(K.nodeName!=="SPAN")break;this.setNodeStyle_(y,K);this.setUpVisibilityLogging_(y,K);K.textContent!=c&&(K.textContent=c);z++;K=K.nextSibling}if(K)for(y=D.lastChild,K=z?K.previousSibling:null;y&&y!=K;){try{D.removeChild(y)}catch(W){break}y=D.lastChild}z!==G&&this.addTextNodes_(x,z)};
_.a.addTextNodes_=function(x,G){for(var D=document.createDocumentFragment(),K=x.length;G<K;G++){var z=x[G],y=_.B("remove_cr_char")&&z.text?z.text.replace("\r",""):z.text;if(this.isSimpleString_(z)&&!this.useMixedDirectionFormattedStrings)D.appendChild(document.createTextNode(y));else{var c=_.Y(z,FB);if(c){if(c.image){var W=document.createElement("img");c.isCustomEmoji||W.classList.add("small-emoji");W.classList.add("emoji");c.isCustomEmoji&&(W.dataset.emojiId=c.emojiId);W.src=_.k$(c.image.thumbnails,
this.emojiSize);(z=this.get("image.accessibility.accessibilityData.label",c))?W.alt=z:c.shortcuts&&c.shortcuts.length>0?W.alt=c.shortcuts[0]:c.emojiId&&(W.alt=c.emojiId);D.appendChild(W);this.hasEmoji=!0}}else!this.noEndpoints&&z.navigationEndpoint?(W=document.createElement("a"),W.classList.add("yt-simple-endpoint"),W.setAttribute("spellcheck","false"),this.setDataOnAnchor_(W,z.navigationEndpoint)):W=document.createElement("span"),this.setNodeStyle_(z,W),this.setUpVisibilityLogging_(z,W),W.appendChild(document.createTextNode(y)),
D.appendChild(W)}}this.getRoot().appendChild(D)};
_.a.isSimpleString_=function(x){return(this.noEndpoints||!x.navigationEndpoint)&&!_.Y(x,FB)&&(this.noStyles||!(x.bold||x.deemphasize||x.italics||x.strikethrough||x.errorUnderline||x.bracket||x.textColor))&&!x.loggingDirectives};
_.a.getRawText=function(){return _.u7(this.text)};
_.a.getFirstRunText=function(){var x;if(((x=this.text)==null?0:x.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.a.setFirstRunText=function(x){var G;((G=this.text)==null?0:G.runs)&&this.text.runs[0]&&(this.text.runs[0].text=x,this.textChanged_(this.text))};
_.a.setDataOnAnchor_=function(x,G){var D=this;!_.B("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(G)||this.isSignalServiceEndpoint_(G)?(x.onclick=this.serviceEndpointHandler_(G),mu(x,"#")):Fwf({text:this.text,command:G},function(){g$E(x,G,D.target)})};
_.a.isServiceEndpoint_=function(x){var G;return!((G=_.Y(x==null?void 0:x.commandMetadata,_.fC))==null||!G.sendPost)};
_.a.isSignalServiceEndpoint_=function(x){return!!_.Y(x,_.cg)};
_.a.serviceEndpointHandler_=function(x){var G=this;return function(D){_.KW(G.hostElement,[x]);D.preventDefault()}};
_.a.overrideAriaLabelChanged_=function(){var x=this.getRoot();this.enableContentEditable&&x&&x.setAttribute("aria-label",this.overrideAriaLabel)};
_.a.enableContentEditableChanged_=function(){var x=this,G=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),G=_.kA(this.hostElement,G),!G.lastChild||G.lastChild instanceof HTMLElement&&G.lastChild.id!=="contenteditable-root"){var D=document.createElement("div");D.id="contenteditable-root";D.setAttribute("contenteditable","true");D.setAttribute("dir","auto");D.onfocus=function(){x.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
G.appendChild(D);this.overrideAriaLabel&&D.setAttribute("aria-label",this.overrideAriaLabel)}}else D=_.Pi(this.hostElement).firstChild,D instanceof HTMLElement&&D.id==="contenteditable-root"&&_.kA(this.hostElement,G).removeChild(D)};
_.a.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.a.getNodesForVisibilityLogging_=function(){return _.k1(this.getRoot().childNodes,function(x){var G;return!((G=x.data)==null||!G.trackingParams)})};
_.a.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.a.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var x=this.ytRendererBehavior.getVisibilityLogger();x&&this.getNodesForVisibilityLogging_().forEach(function(G){x.reportShown(G)})}};
_.a.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var x=this.ytRendererBehavior.getVisibilityLogger();x&&this.getNodesForVisibilityLogging_().forEach(function(G){x.reportHidden(G)})}};
_.Nq.Object.defineProperties(cx.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.B("enable_mixed_direction_formatted_strings")}}});
cx.prototype.enableContentEditableChanged_=cx.prototype.enableContentEditableChanged_;cx.prototype.overrideAriaLabelChanged_=cx.prototype.overrideAriaLabelChanged_;cx.prototype.ellipsisTruncateChanged_=cx.prototype.ellipsisTruncateChanged_;cx.prototype.textChanged=cx.prototype.textChanged;_.q([_.I(ie0.YtPlaintextBehavior),_.N("design:type",Object)],cx.prototype,"ytPlaintextBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],cx.prototype,"ytComponentBehavior",void 0);
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],cx.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],cx.prototype,"text",void 0);_.q([_.R(),_.N("design:type",Boolean)],cx.prototype,"noEndpoints",void 0);_.q([_.R(),_.N("design:type",Boolean)],cx.prototype,"noStyles",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],cx.prototype,"isDarkTheme",void 0);
_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],cx.prototype,"splitLines",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],cx.prototype,"forceDefaultStyle",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],cx.prototype,"ellipsisTruncate",void 0);_.q([_.R(),_.N("design:type",Object)],cx.prototype,"ignoreShadyDom",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.N("design:type",Boolean)],cx.prototype,"ellipsisTruncateStyling",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.N("design:type",String)],cx.prototype,"ariaLabel",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],cx.prototype,"isEmpty",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.N("design:type",Boolean)],cx.prototype,"hasLinkOnly_",void 0);_.q([_.R(),_.N("design:type",Boolean)],cx.prototype,"hasEmoji",void 0);_.q([_.R(),_.N("design:type",Boolean)],cx.prototype,"disableAttributedString",void 0);_.q([_.R(),_.N("design:type",Boolean)],cx.prototype,"isOverlay",void 0);_.q([_.R(),_.N("design:type",Boolean)],cx.prototype,"linkInheritColor",void 0);
_.q([_.R(),_.N("design:type",Boolean)],cx.prototype,"noPreWrap",void 0);_.q([_.R(),_.N("design:type",Boolean)],cx.prototype,"userInput",void 0);_.q([_.R({value:16}),_.N("design:type",Number)],cx.prototype,"emojiSize",void 0);_.q([_.R(),_.N("design:type",String)],cx.prototype,"target",void 0);_.q([_.R(),_.N("design:type",Boolean)],cx.prototype,"enableContentEditable",void 0);_.q([_.R(),_.N("design:type",String)],cx.prototype,"overrideAriaLabel",void 0);
_.q([_.R(),_.N("design:type",Boolean)],cx.prototype,"respectHtmlDir",void 0);_.q([_.R(),_.N("design:type",Boolean)],cx.prototype,"respectLangDir",void 0);_.q([_.U("plaintextOnly"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],cx.prototype,"useMixedDirectionFormattedStrings",null);_.q([_.R({computed:"computeUseAttributedString(text)"}),_.N("design:type",Boolean)],cx.prototype,"useYtAttributedString",void 0);
_.q([_.yf("text"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cx.prototype,"textChanged",null);_.q([_.yf("ellipsisTruncate"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cx.prototype,"ellipsisTruncateChanged_",null);_.q([_.yf("overrideAriaLabel"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cx.prototype,"overrideAriaLabelChanged_",null);
_.q([_.yf("enableContentEditable"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cx.prototype,"enableContentEditableChanged_",null);cx=_.q([_.HD({is:"yt-formatted-string",disableElementRegistration:!0})],cx);
_.w(cx,"yt-formatted-string",function(){if(uZ7===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;gXZ===void 0&&(gXZ=document.createElement("template"));var K=gXZ;D.call(G,K.content.cloneNode(!0),x.content.firstChild);uZ7=x}x=uZ7;return x});var dnh;var wFs;var qmJ;var NpJ;var TS=function(){var x=_.n.apply(this,arguments)||this;x.focused=!1;x.disabled=!1;x.isOverlay=!1;return x};
_.m(TS,_.n);TS.prototype.triggerDown=function(){if(!this.disabled){_.E4(this.hostElement,"down",!0);var x;(x=this.currentAnimation)==null||x.cancel()}};
TS.prototype.triggerUp=function(){if(!this.disabled){_.E4(this.hostElement,"down",!1);var x=this.fillElement;var G=this.strokeElement;typeof GroupEffect==="function"?(x=new GroupEffect([N7E(x),vf$(G)]),x=new Animation(x,document.timeline)):x=new $n7(x,G);this.currentAnimation=x;var D;(D=this.currentAnimation)==null||D.play()}};
_.q([_.cD(".stroke"),_.N("design:type",HTMLElement)],TS.prototype,"strokeElement",void 0);_.q([_.cD(".fill"),_.N("design:type",HTMLElement)],TS.prototype,"fillElement",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],TS.prototype,"focused",void 0);_.q([_.R(),_.N("design:type",Object)],TS.prototype,"disabled",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],TS.prototype,"isOverlay",void 0);TS=_.q([_.HD({is:"yt-interaction",disableElementRegistration:!0})],TS);
_.w(TS,"yt-interaction",function(){if(NpJ===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;qmJ===void 0&&(qmJ=document.createElement("template"));var K=qmJ;D.call(G,K.content.cloneNode(!0),x.content.firstChild);NpJ=x}x=NpJ;return x},{mode:2});var Wx=function(){return _.n.apply(this,arguments)||this};
_.m(Wx,_.n);_.a=Wx.prototype;_.a.ready=function(){var x=this,G=_.kA(this.hostElement).querySelector("#button");G.addEventListener("focus",function(){VeE||(VeE=new pt8);x.keyboardFocused=VeE.isKeyBoardInUse()});
G.addEventListener("blur",function(){x.keyboardFocused=!1;x.rippleUp_()})};
_.a.computeTabIndex_=function(x){return x?-1:0};
_.a.computeButtonAriaPressed_=function(x){if(this.toggleable)return x?"true":"false"};
_.a.rippleDown_=function(){_.kA(this.hostElement).querySelector("#interaction").triggerDown()};
_.a.rippleUp_=function(){_.kA(this.hostElement).querySelector("#interaction").triggerUp()};
_.a.onPressedChanged_=function(){var x=_.Pi(_.kA(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.Pi(_.kA(this.hostElement).querySelector("#button")).children[0];x&&(x.active=this.pressed)};
Wx.prototype.onPressedChanged_=Wx.prototype.onPressedChanged_;Wx.prototype.rippleUp_=Wx.prototype.rippleUp_;Wx.prototype.rippleDown_=Wx.prototype.rippleDown_;_.q([_.R(),_.N("design:type",String)],Wx.prototype,"label",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],Wx.prototype,"disabled",void 0);_.q([_.R(),_.N("design:type",Boolean)],Wx.prototype,"pressed",void 0);_.q([_.R(),_.N("design:type",Object)],Wx.prototype,"toggleable",void 0);
_.q([_.R(),_.N("design:type",Boolean)],Wx.prototype,"untabbable",void 0);_.q([_.R(),_.N("design:type",Boolean)],Wx.prototype,"keyboardFocused",void 0);_.q([_.oe("down"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Wx.prototype,"rippleDown_",null);_.q([_.oe("up"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Wx.prototype,"rippleUp_",null);
_.q([_.yf("pressed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Wx.prototype,"onPressedChanged_",null);Wx=_.q([_.HD({is:"yt-icon-button",disableElementRegistration:!0})],Wx);
_.w(Wx,"yt-icon-button",function(){if(wFs===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;dnh===void 0&&(dnh=document.createElement("template"));var K=dnh;D.call(G,K.content.cloneNode(!0),x.content.firstChild);wFs=x}x=wFs;return x},{mode:2});var vXJ=_.gv(["aria-"]),eM={};eM.YtRenderButtonBehavior=[_.h.YtRendererBehavior,_.l9.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!!_.Eo().resolve(_.P6(_.Ee))&&_.B("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 x=this.computeHref_(this.endpoint,!0);x?mu(this.elements_.endpoint,x):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){x=this.buttonClass.split(" ");x=_.l(x);for(var G=x.next();!G.done;G=x.next())G=G.value,_.E4(this.hostElement,G,!0),this.elements_.button&&_.E4(this.elements_.button,G,!0),this.elements_.text&&_.E4(this.elements_.text,G,!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&&(x=null,this.buttonAccessibility&&(x=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=x:x?_.iH([_.Es(vXJ)],this.elements_.button,"aria-label",x):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var x=_.Eo().resolve(_.P6(_.Ee));x&&(this.keyboardFocused=x.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.Nz("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,_.By(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.By(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(x,G){if(G)for(x=G.split(" "),x=_.l(x),G=x.next();!G.done;G=x.next())G=G.value,_.E4(this.hostElement,G,!1),this.elements_.button&&_.E4(this.elements_.button,G,!1),this.elements_.text&&_.E4(this.elements_.text,G,!1)},
buttonIconChanged_:function(x){this.elements_.icon?x?(this.elements_.icon.icon=x,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.By(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.Ga(this.hostElement,"is-paper-button-with-icon",!1)):x&&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"&&_.By(this.elements_.button).appendChild(this.elements_.icon):_.By(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.Ga(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(x){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,x){var G=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(x){case "yt_icon_button_with_label":G=!0;_.E4(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();x=_.By(this.elements_.button).firstElementChild;
this.elements_.icon=x;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.By(this.elements_.endpoint).appendChild(this.elements_.button);_.By(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.Nz("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;_.By(this.elements_.button).appendChild(this.elements_.text);_.By(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":G=!0,this.elements_.button=this.getYtIconButton_(),x=_.By(this.elements_.button).firstElementChild,this.elements_.icon=x,this.setIconActive_(this.elements_.icon),
_.By(this.elements_.endpoint).appendChild(this.elements_.button)}_.Ga(this.hostElement,"is-icon-button",G);_.Ga(this.hostElement,"is-paper-button",!G);_.Ga(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 D;_.kA((D=this.container.hostElement)!=null?D:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.By(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(x){if(x!=void 0||this.disabled)this.disabled=x,this.elements_.button&&(this.elements_.button.disabled=x)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(x){_.B("kevlar_system_icons")&&x&&this.data&&(this.data.isSelected!==void 0?x.active=this.data.isSelected:this.data.isToggled!==void 0&&(x.active=this.data.isToggled))},
observeBasicPalette_:function(x){_.Y7(this.hostElement,x)},
disabledChanged_:function(x){this.data&&this.set("data.isDisabled",x)},
onYtButtonTap_:function(x){if(this.disabled)x.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.KW(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(x=this.disableCommandHandlerOverride,!this.data||!this.data.command||x||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.B("handle_service_request_actions")||_.KW(this.hostElement,[this.serviceEndpoint]),
_.h$(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.B("handle_service_request_actions")?(x=[],this.serviceEndpoint&&x.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&x.push(this.data.command),x.length&&_.zl(this.hostElement,x,this.hostElement)):this.data&&this.data.command&&(x=this.data.command,x.accountUnlinkCommand||x.accountLinkCommand||x.insertAdCommand||x.insertHighlightMarkerCommand||
x.createLivestreamHighlightClipCommand||x.getVideoUploadFeedbackCommand||x.musicDeletePrivatelyOwnedEntityCommand||x.ypcCancelRecurrenceEndpoint||x.getMultiSelectCommandEndpoint?_.KW(this.hostElement,[x]):_.zl(this.hostElement,[x],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 x,G=_.kA((x=this.container.hostElement)!=null?x:this.container);G.lastChild&&G.lastChild.tagName!="STYLE";)try{G.removeChild(G.lastChild)}catch(D){break}},
getYtIconButton_:function(){var x=this.reuseEnabled_()?_.Nz("yt-icon-button"):document.createElement("yt-icon-button"),G=_.By(x).firstElementChild;if(G&&G.is!="yt-icon"){for(G=_.By(x);G.lastChild;)G.removeChild(G.lastChild);G=null}G||(G=this.getIcon_(),this.setIconActive_(G),_.By(x).appendChild(G));return x},
reuseEnabled_:function(){return _.B("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.Nz("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.Nz("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.JJo={};
_.JJo.YtButtonBehavior=[eM.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var x=this.data;x&&(this._setEndpoint(this.computeEndpoint_(x)),this._setServiceEndpoint(this.computeServiceEndpoint_(x)),this._setCommand(this.computeCommand_(x)),this._setButtonIcon(this.computeButtonIcon_(x)),this._setButtonText(this.computeButtonText_(x,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(x)),this._setButtonTooltip(this.computeTooltip_(x)),this._setButtonClass(this.computeButtonClass_(x)),this._setIconPositionType(this.computeIconPositionType_(x)),this.updateRenderedElements())},
setPressedState:function(x){var G;if((G=this.elements_)==null?0:G.button)this.elements_.button.pressed=!!x},
computeIconPositionType_:function(x){return x&&x.iconPosition||null},
computeEndpoint_:function(x){var G=x&&x.navigationEndpoint,D=this.get("data.command.commandMetadata.webCommandMetadata.url"),K=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return G?G:x&&x.command&&x.command.modalEndpoint?x.command:D&&!K&&x.command?x.command:null},
computeServiceEndpoint_:function(x){var G=x&&x.serviceEndpoint,D=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return G?G:D&&x.command?x.command:null},
computeCommand_:function(x){return x&&x.command||null},
computeButtonIcon_:function(x){return x&&x.icon&&x.icon.iconType?_.aP(x.icon.iconType):null},
computeButtonText_:function(x,G){return!G&&x&&x.text||null},
computeAccessibility_:function(x){return this.get("accessibilityData.accessibilityData",x)||x&&x.accessibility||(x&&x.text?{label:this.getSimpleString(x.text)}:null)},
computeTooltip_:function(x){return x?x.isDisabled&&x.disabledTooltip||x.tooltip||null:null},
computeButtonClass_:function(x){var G=x&&x.style?x.style.toLowerCase().replace(/_/g,"-")+" ":"";G+=x&&x.size?x.size.toLowerCase().replace(/_/g,"-")+" ":"";x.colorData&&x.colorData.basicColorPaletteData&&x.colorData.basicColorPaletteData.borderColor&&(G+="palette-with-border");return G.trim()}}];var mj={};var fZ7;var tEq;var kD0,P$s=function(){return kD0!==void 0?kD0:kD0=document.createElement("template")};
document.head.appendChild(P$s().content);var EXi;var h8Z,xGJ=function(){return h8Z!==void 0?h8Z:h8Z=document.createElement("template")};
document.head.appendChild(xGJ().content);var G68;var DGh,KA0=function(){return DGh!==void 0?DGh:DGh=document.createElement("template")};
document.head.appendChild(KA0().content);var znu;var alq=document.head,ou8=alq.appendChild,yFs;if(znu===void 0){var ll9=document.createElement("template");_.F(ll9,"\x3c!--css-build:shady--\x3e");ll9.content.insertBefore(KA0().content.cloneNode(!0),ll9.content.firstChild);znu=ll9}yFs=znu;ou8.call(alq,yFs.content);var cFs=document.head,TXZ=cFs.appendChild,WA7;if(G68===void 0){var enk=document.createElement("template");_.F(enk,"\x3c!--css-build:shady--\x3e");enk.content.insertBefore(xGJ().content.cloneNode(!0),enk.content.firstChild);G68=enk}WA7=G68;TXZ.call(cFs,WA7.content);var Zqh=document.head,MDJ=Zqh.appendChild,QxZ;if(EXi===void 0){var pX9=document.createElement("template");_.F(pX9,"\x3c!--css-build:shady--\x3e");pX9.content.insertBefore(P$s().content.cloneNode(!0),pX9.content.firstChild);EXi=pX9}QxZ=EXi;MDJ.call(Zqh,QxZ.content);var VDZ;_.HH("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");VDZ=_.B("web_button_rework")&&_.Uo("BUTTON_REWORK")||_.B("web_button_rework_with_live");_.ZN=function(){return _.n.apply(this,arguments)||this};
_.m(_.ZN,_.n);_.ZN.prototype.created=function(){this.openPopupConfig=_.Am("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.ZN.prototype.onYtNavigate_=function(x){var G=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(x.detail.endpoint);G&&(this.ytOpenPopupBehavior.openPopup(G),x.stopPropagation(),x.preventDefault())};
_.Nq.Object.defineProperties(_.ZN,{template:{configurable:!0,enumerable:!0,get:function(){if(tEq===void 0){var x=document.createElement("template");_.F(x,"\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");x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);
var G=x.content,D=G.insertBefore;fZ7===void 0&&(fZ7=document.createElement("template"));var K=fZ7;D.call(G,K.content.cloneNode(!0),x.content.firstChild);tEq=x}x=tEq;return x}}});
_.ZN.prototype.onYtNavigate_=_.ZN.prototype.onYtNavigate_;_.q([_.I(_.yU.YtOpenPopupBehavior),_.N("design:type",Object)],_.ZN.prototype,"ytOpenPopupBehavior",void 0);_.q([_.I(_.JJo.YtButtonBehavior),_.N("design:type",Object)],_.ZN.prototype,"ytButtonBehavior",void 0);_.q([_.oe("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],_.ZN.prototype,"onYtNavigate_",null);
_.ZN=_.q([_.HD({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:VDZ})],_.ZN);var bqZ;var LAs=_.B("web_button_rework")&&_.Uo("BUTTON_REWORK")||_.B("web_button_rework_with_live"),MC=function(){var x=_.n.apply(this,arguments)||this;x.isPressed=!1;x.forceIconButton=!1;x.forceIconOnly=!1;x.forceModernIconButton=!1;x.skipCommandHandling=!1;x.alignByText=!1;x.fitToVisibleBounds=!0;x.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};x.onTap=function(G){_.h$(x.hostElement,"yt-service-request-sent-button-renderer",G)};
return x};
_.m(MC,_.n);_.a=MC.prototype;_.a.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.a.onClick=function(x){var G,D=this.disabled||((G=this.data)==null?void 0:G.isDisabled);G=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");D&&G&&x.stopPropagation()};
_.a.computeIcon=function(){var x,G,D=(x=this.data)==null?void 0:(G=x.icon)==null?void 0:G.iconType;if(D)return _.aP(D)};
_.a.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.a.handleUpdateButtonAction=function(x){x=_.Y(x,k0J);var G=_.Y(x==null?void 0:x.updatedButton,_.$V);if(this.data&&x&&G){var D=this.data;D.targetId&&x.targetId&&D.targetId===x.targetId&&(this.data=G)}};
_.Nq.Object.defineProperties(MC.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var x=this;if(this.data){var G=uWn({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.h$(x.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.h$(x.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});G.alignByText=this.alignByText;return G}}}});
_.Nq.Object.defineProperties(MC,{template:{configurable:!0,enumerable:!0,get:function(){if(bqZ===void 0){var x=document.createElement("template");_.F(x,'\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>');bqZ=x}x=bqZ;return x}}});
MC.prototype.onClick=MC.prototype.onClick;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],MC.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],MC.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],MC.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],MC.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],MC.prototype,"isPressed",void 0);
_.q([_.R(),_.N("design:type",Object)],MC.prototype,"forceIconButton",void 0);_.q([_.R(),_.N("design:type",Object)],MC.prototype,"forceIconOnly",void 0);_.q([_.R(),_.N("design:type",Object)],MC.prototype,"forceModernIconButton",void 0);_.q([_.R(),_.N("design:type",Object)],MC.prototype,"skipCommandHandling",void 0);_.q([_.R(),_.N("design:type",Object)],MC.prototype,"alignByText",void 0);_.q([_.R(),_.N("design:type",Object)],MC.prototype,"buttonTooltipPosition",void 0);
_.q([_.R(),_.N("design:type",Object)],MC.prototype,"fitToVisibleBounds",void 0);_.q([_.R({computed:"computeTooltip(data)"}),_.N("design:type",Object)],MC.prototype,"tooltip",void 0);_.q([_.R(),_.N("design:type",Object)],MC.prototype,"overrides",void 0);_.q([_.R(),_.N("design:type",Boolean)],MC.prototype,"disabled",void 0);_.q([_.oe("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],MC.prototype,"onClick",null);
_.q([_.U("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.N("design:type",Object),_.N("design:paramtypes",[])],MC.prototype,"computedButtonShape",null);MC=_.q([_.HD({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!LAs,cssBuildOptOut:!0}),_.HD({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!LAs,cssBuildOptOut:!0})],MC);var BXu;var rFu;var QU=function(){var x=_.n.apply(this,arguments)||this;x.empty_=!0;x.loadTime=Infinity;x.pendingPaint=!1;x.hasChange_=!1;x.oldThumbnail_=null;x.oldDelayedSrc_="";x.objectURL_=null;return x};
_.m(QU,_.n);_.a=QU.prototype;_.a.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.a.ready=function(){var x=this.shouldShowPlaceholder_();_.E4(this.hostElement,"no-transition",!0);x&&this.hostElement.classList.add("with-placeholder")};
_.a.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.a.isThumbPreloaded_=function(x){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",x)};
_.a.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||sx9};
_.a.computeThumbnailSrc_=function(x){return x&&x.thumbnails?_.k$(x.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.a.computeAlt_=function(){var x=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&x||""};
_.a.thumbnailChanged_=function(){var x=_.l([this.thumbnail,this.oldThumbnail_]),G=x.next().value;x=x.next().value;this.oldThumbnail_=G;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(x=this.computeThumbnailSrc_(x),this.computeThumbnailSrc_(G)===x))return;_.B("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(G)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):G&&_.Uo("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.w1(this,this.onReload_):_.w1(this,this.onShow_):this.resetImage_();G&&(this.hostElement.style.opacity=""+G.opacity)}};
_.a.delayedSrcChanged_=function(){var x=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===x||this.resetImage_()};
_.a.setSrc_=function(x){x?(_.kA(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.kA(this.hostElement).querySelector("#img").src=x):(_.kA(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.a.resetImage_=function(){tWD(this.hostElement);this.empty_=!0;this.setSrc_(sx9);this.ytRendererBehavior.invalidate(!1)};
_.a.observePlaceholderColor_=function(){var x=this.thumbnail&&this.thumbnail.placeholderColor;x?this.hostElement.style.backgroundColor=_.In(x):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.a.onLoad_=function(){_.kA(this.hostElement).querySelector("#img").src&&_.kA(this.hostElement).querySelector("#img").src!==sx9&&(fMf(this.hostElement),this.notifyOnLoaded&&_.h$(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.a.onError_=function(){var x=this;if(_.B("web_use_cache_for_image_fallback"))DIf(_.kA(this.hostElement).querySelector("#img").src).then(function(G){x.objectURL_=_.L9(G).toString();x.setSrc_(x.objectURL_)}).catch(function(){_.B("kevlar_woffle_fallback_image")&&x.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.a.onPrescanVisible=function(){this.onShow_()};
_.a.onVisible=function(){if(_.B("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.a.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var x=this.computeSrc_();x!==_.kA(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(x))}};
_.a.onReload_=function(){this.empty_=!1;var x=this.computeSrc_();x!==_.kA(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(x))};
_.a.shouldShowPlaceholder_=function(){return _.B("kevlar_thumbnail_bg")};
QU.prototype.observePlaceholderColor_=QU.prototype.observePlaceholderColor_;QU.prototype.delayedSrcChanged_=QU.prototype.delayedSrcChanged_;QU.prototype.thumbnailChanged_=QU.prototype.thumbnailChanged_;_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],QU.prototype,"alt",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],QU.prototype,"ariaHidden",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],QU.prototype,"ariaLabel",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],QU.prototype,"hidden",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],QU.prototype,"id",void 0);_.q([_.I(_.AG.YtVisibilityBehavior),_.N("design:type",Object)],QU.prototype,"ytVisibilityBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],QU.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",String)],QU.prototype,"delayedSrc",void 0);
_.q([_.R(),_.N("design:type",Object)],QU.prototype,"thumbnail",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],QU.prototype,"loaded",void 0);_.q([_.R(),_.N("design:type",Boolean)],QU.prototype,"notifyOnLoaded",void 0);_.q([_.R(),_.N("design:type",Number)],QU.prototype,"height",void 0);_.q([_.R(),_.N("design:type",Number)],QU.prototype,"width",void 0);_.q([_.R({value:function(){return"width"}}),
_.N("design:type",String)],QU.prototype,"dimension",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],QU.prototype,"fit",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],QU.prototype,"fitHeight",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],QU.prototype,"fitWidth",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],QU.prototype,"objectFit",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],QU.prototype,"objectPosition",void 0);_.q([_.R(),_.N("design:type",String)],QU.prototype,"preferredThumbnail",void 0);_.q([_.R({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.N("design:type",String)],QU.prototype,"alt_",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],QU.prototype,"sharedTooltipText",void 0);
_.q([_.R(),_.N("design:type",Boolean)],QU.prototype,"ftlEligible",void 0);_.q([_.R({value:void 0}),_.N("design:type",String)],QU.prototype,"observeHiddenOption",void 0);_.q([_.R({value:"observe_once"}),_.N("design:type",String)],QU.prototype,"observePrescanOption",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],QU.prototype,"roundedContainer",void 0);
_.q([_.Z6("thumbnail"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],QU.prototype,"thumbnailChanged_",null);_.q([_.Z6("delayedSrc"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],QU.prototype,"delayedSrcChanged_",null);_.q([_.yf("thumbnail.placeholderColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],QU.prototype,"observePlaceholderColor_",null);
QU=_.q([_.HD({is:"yt-img-shadow",disableElementRegistration:!0})],QU);var sx9=_.Uo("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.x$()(QU,"yt-img-shadow",function(){if(rFu===void 0){var x=document.createElement("template");_.F(x,'\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">');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;BXu===void 0&&(BXu=document.createElement("template"));var K=BXu;D.call(G,K.content.cloneNode(!0),x.content.firstChild);rFu=x}x=rFu;return x},{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 bAV;_.ph=new _.wq("SCREEN_MANAGER_TOKEN");bAV=new _.wq("LOG_INITIAL_SCREEN_TOKEN");_.rl=_.Nv(function(x){function G(cL){return _.Y(cL,_.Ls)}
function D(){var cL=K().isTogglingDisabled||L()?O():!O();A(cL);u(!1);if(!K().isTogglingDisabled){var bO;(bO=c)==null||bO(!!cL)}var mE;((mE=y)==null?0:mE())||_.DO(_.Eo().resolve(_.ph),K().trackingParams);var jf;if(!cL||!G(K().defaultButtonViewModel)||(jf=y)!=null&&jf()){var $C;!G(K().toggledButtonViewModel)||(($C=y)==null?0:$C())||_.DO(_.Eo().resolve(_.ph),G(K().toggledButtonViewModel).trackingParams)}else _.DO(_.Eo().resolve(_.ph),G(K().defaultButtonViewModel).trackingParams)}
var K=x.data,z=x.buttonShapeOverrides,y=x.disableExplicitClickLogging,c=x.onToggle,W=x.style,e=x.useOutlinedIcon,Q=x.className,p=function(){var cL,bO;return O()?(cL=x.animatedTextPropsToggled)==null?void 0:cL.call(x):(bO=x.animatedTextPropsDefault)==null?void 0:bO.call(x)},V=_.V9(function(){return p()?Object.assign({},p(),{shouldAnimate:g()}):void 0},void 0,"ZKEa0b"),L=function(){var cL;
return((cL=P())==null?void 0:cL.isToggled)!==void 0},r=_.l(_.ZX(function(){var cL,bO,mE;
return L()?(cL=P())==null?void 0:cL.isToggled:(mE=z==null?void 0:(bO=z())==null?void 0:bO.toggled)!=null?mE:K().isToggled})),H=r.next().value;
r=r.next().value;var O=H,A=r;r=_.l(_.ZX(function(){var cL,bO;return(cL=x.animatedTextPropsToggled)==null?void 0:(bO=cL.call(x))==null?void 0:bO.shouldAnimate}));
H=r.next().value;r=r.next().value;var g=H,u=r;H=_.l(_.eO(!1,void 0,"S11hid"));var f=H.next().value,v=H.next().value,P=_.F8(function(cL){var bO;a:{var mE=K().entityKey,jf=K().toggledStateEntitySelectorType;if(jf&&mE)switch(jf){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var $C;cL=($C=_.zm(cL.entities,"sfvAudioItemCurrentlyPlayingEntity",mE))!=null?$C:void 0;$C=(bO=cL==null?void 0:cL.sfvAudioItemPlaybackState)!=null?bO:void 0;if($C==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){bO={isToggled:!0};
break a}if($C){bO={isToggled:!1};break a}break;default:_.O9(new _.LL("Error: entitySelectorType defined but not matched in selector.",cL,jf))}bO=void 0}return bO}),k=function(){return Object.assign({},z==null?void 0:z(),{onToggle:D,
toggleable:!0,toggled:O(),focused:f()})};
return _.M("toggle-button-view-model",{"on:focusin":_.WH(function(){var cL=_.Eo().resolve(_.P6(_.Ee));cL&&v(cL.isKeyBoardInUse());return!1}),
"on:focusout":_.WH(function(){v(!1);return!1}),
class:Q},_.M(_.b,{cond:function(){return O()?G(K().toggledButtonViewModel):G(K().defaultButtonViewModel)},
then:function(cL){return _.M(_.Cs,{data:cL,className:Q,style:W,useOutlinedIcon:e,buttonOverrides:k,animatedTextProps:V})}}))},"z");
_.rl.idomCompat={callbacks:{onToggle:!0}};_.tn(_.Nv(function(x){return _.M("yt-toggle-button-view-model",{class:function(){var G;return(G=x.scopingClassName)==null?void 0:G.call(x)}},_.M(_.rl,{data:function(){var G;
return(G=x.data)==null?void 0:G.call(x)},
buttonShapeOverrides:function(){var G;return(G=x.overrides)==null?void 0:G.call(x)},
animatedTextPropsDefault:function(){var G;return(G=x.animatedTextPropsDefault)==null?void 0:G.call(x)},
animatedTextPropsToggled:function(){var G;return(G=x.animatedTextPropsToggled)==null?void 0:G.call(x)},
disableExplicitClickLogging:function(){var G;return(G=x.disableExplicitClickLogging)==null?void 0:G.call(x)},
onToggle:function(G){var D;return(D=x.onToggle)==null?void 0:D.call(x,G)},
style:function(){var G;return(G=x.style)==null?void 0:G.call(x)},
useOutlinedIcon:function(){var G;return(G=x.useOutlinedIcon)==null?void 0:G.call(x)},
className:function(){var G;return(G=x.className)==null?void 0:G.call(x)}}))},"A"),"yt-toggle-button-view-model",{props:{data:_.ik,
buttonShapeOverrides:_.ik,overrides:_.ik,animatedTextPropsDefault:_.ik,animatedTextPropsToggled:_.ik,disableExplicitClickLogging:_.ik,onToggle:_.fz,style:_.ik,useOutlinedIcon:_.ik,className:_.ik,scopingClassName:_.ik}});var VU=function(){return _.n.apply(this,arguments)||this};
_.m(VU,_.n);VU.prototype.onTap=function(x){x.stopPropagation();x=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.sg("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:x})):this.ytLiveChatReduxBehavior.dispatch(_.cq("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:x}))};
_.Nq.Object.defineProperties(VU.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.engagementState)==null?void 0:x.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var x=_.Y(this.data.toggleButton,_.Bq),G;if(Number(((G=this.likeCountState)==null?void 0:G.likeCountIfIndifferentNumber)||"0")===0){var D;G=((D=this.data.likeCountPlaceholder)==null?void 0:D.content)||""}else{var K,z,y;G=((K=this.likeCountState)==null?void 0:(z=K.likeCountIfIndifferent)==null?void 0:z.content)||((y=this.data.likeCountPlaceholder)==null?void 0:y.content)||""}var c,W;D=((c=this.likeCountState)==null?void 0:(W=
c.likeCountIfLiked)==null?void 0:W.content)||"1";c=_.Y(x.toggledButtonViewModel,_.Ls);return Object.assign({},x,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.Y(x.defaultButtonViewModel,_.Ls),{title:G})},toggledButtonViewModel:{buttonViewModel:Object.assign({},c,{title:D})}})}}}});
VU.prototype.onTap=VU.prototype.onTap;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],VU.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],VU.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.CF),_.N("design:type",Object)],VU.prototype,"ytLiveChatReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],VU.prototype,"data",void 0);
_.q([_.R({selectorArgs:["data.likeCountEntityKey"],selector:drP}),_.N("design:type",Object)],VU.prototype,"likeCountState",void 0);_.q([_.R({selectorArgs:["data.engagementStateKey"],selector:pvL}),_.N("design:type",Object)],VU.prototype,"engagementState",void 0);_.q([_.U("data","engagementState"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],VU.prototype,"isLiked",null);
_.q([_.U("data","likeCountState","isLiked"),_.N("design:type",Object),_.N("design:paramtypes",[])],VU.prototype,"toggleButton",null);_.q([_.oe("tap"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],VU.prototype,"onTap",null);VU=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],VU);
_.w(VU,"yt-live-chat-like-button-view-model",function(){if(nXs===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;SmZ===void 0&&(SmZ=document.createElement("template"));var K=SmZ;D.call(G,K.content.cloneNode(!0),x.content.firstChild);nXs=x}x=nXs;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var YNs;var mGs;var b9=function(){return _.n.apply(this,arguments)||this};
_.m(b9,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],b9.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],b9.prototype,"data",void 0);b9=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],b9);
_.w(b9,"yt-live-chat-paid-message-footer-renderer",function(){if(mGs===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;YNs===void 0&&(YNs=document.createElement("template"));var K=YNs;D.call(G,K.content.cloneNode(!0),x.content.firstChild);mGs=x}x=mGs;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var Hqi;var $Go;var FAE;var CSJ,IlJ=function(){if(CSJ!==void 0)return CSJ;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;FAE===void 0&&(FAE=document.createElement("template"));var K=FAE;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return CSJ=x};var Lh=function(){return _.n.apply(this,arguments)||this};
_.m(Lh,_.n);Lh.prototype.onTap=function(x){x.stopPropagation()};
_.Nq.Object.defineProperties(Lh.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var x=_.Y(this.data.replyButton,_.Ls),G,D,K,z,y,c,W,e=Number(((G=this.replyCountState)==null?void 0:G.replyCountNumber)||"0")===0?(D=this.data)==null?void 0:(K=D.replyCountPlaceholder)==null?void 0:K.content:((z=this.replyCountState)==null?void 0:(y=z.replyCount)==null?void 0:y.content)||((c=this.data)==null?void 0:(W=c.replyCountPlaceholder)==null?void 0:W.content)||"",Q;return Object.assign({},
x,{title:e,accessibilityText:(Q=this.replyCountState)==null?void 0:Q.replyButtonAccessibilityText})}}}});
_.Nq.Object.defineProperties(Lh,{template:{configurable:!0,enumerable:!0,get:function(){return IlJ()}}});
Lh.prototype.onTap=Lh.prototype.onTap;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Lh.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Lh.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.CF),_.N("design:type",Object)],Lh.prototype,"ytLiveChatReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Lh.prototype,"data",void 0);
_.q([_.R({selectorArgs:["data.replyCountEntityKey"],selector:function(x,G){return _.zm(x.entities,"replyCountEntity",G)}}),
_.N("design:type",Object)],Lh.prototype,"replyCountState",void 0);_.q([_.U("data","replyCountState"),_.N("design:type",Object),_.N("design:paramtypes",[])],Lh.prototype,"buttonViewModel",null);_.q([_.oe("tap"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Lh.prototype,"onTap",null);Lh=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],Lh);
_.w(Lh,"yt-live-chat-reply-button-view-model",function(){return IlJ()},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var jxh;var Oqq;var Bx=function(){var x=_.n.apply(this,arguments)||this;x.ariaLabel="";return x};
_.m(Bx,_.n);
Bx.prototype.dataChanged=function(){for(var x=(0,_.D6)(_.kA(this.hostElement).querySelector("#image"));x.firstChild;)x.removeChild(x.firstChild);if(this.data)if(this.data.icon){var G=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(G.polymerController.icon="yt-sys-icons:shield-filled",G.polymerController.defaultToFilled=!0):G.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();x.appendChild(G)}else if(this.data.customThumbnail){G=document.createElement("img");
var D=_.uA$(this.data.customThumbnail.thumbnails,16);D?(G.src=D,x.appendChild(G),G.setAttribute("alt",this.hostElement.ariaLabel||"")):_.O9(new _.LL("Could not compute URL for thumbnail",this.data.customThumbnail))}};
Bx.prototype.identity=function(x){return x};
Bx.prototype.computeType=function(x){return DJ(x||void 0)};
Bx.prototype.dataChanged=Bx.prototype.dataChanged;_.q([_.R(),_.N("design:type",Object)],Bx.prototype,"data",void 0);_.q([_.R({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.N("design:type",Object)],Bx.prototype,"ariaLabel",void 0);_.q([_.R({computed:"computeType(data)",reflectToAttribute:!0}),_.N("design:type",String)],Bx.prototype,"type",void 0);
_.q([_.R({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.N("design:type",String)],Bx.prototype,"sharedTooltipText",void 0);_.q([_.R({reflectToAttribute:!0,value:function(){return _.B("live_chat_enable_new_moderator_badge")}}),
_.N("design:type",Boolean)],Bx.prototype,"enableNewModeratorBadge",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Bx.prototype,"dataChanged",null);Bx=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],Bx);
_.w(Bx,"yt-live-chat-author-badge-renderer",function(){if(Oqq===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;jxh===void 0&&(jxh=document.createElement("template"));var K=jxh;D.call(G,K.content.cloneNode(!0),x.content.firstChild);Oqq=x}x=Oqq;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var XXi;var AFs;var rV=function(){return _.n.apply(this,arguments)||this};
_.m(rV,_.n);_.a=rV.prototype;_.a.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"}}}}};
_.a.computeBadgesInsideChip=function(x){return x?x.filter(function(G){return DJ(G.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.a.computeBadgesOutsideChip=function(x){return this.prependChatBadges||!x?[]:x.filter(function(G){G=DJ(G.liveChatAuthorBadgeRenderer);return G!=="verified"&&G!=="owner"})};
_.a.computeBadgesBeforeChip=function(x){return this.prependChatBadges&&x?x.filter(function(G){G=DJ(G.liveChatAuthorBadgeRenderer);return G!=="verified"&&G!=="owner"}):[]};
_.a.computeIsHighlighted=function(x,G){var D=!!GDd(x,"owner"),K=!!GDd(x,"verified");x=!!GDd(x,"moderator");return(D||K&&!x)&&!G};
_.a.computeAuthorType=function(x){return xn3(x)};
_.a.computeAuthorClass=function(x,G){return G?(x?x+" ":"")+"single-line":x};
_.a.onSeedColorChanged=function(){_.B("live_chat_author_name_color_usernames")||_.B("live_chat_seed_color_usernames")||_.B("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):_.B("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
rV.prototype.onSeedColorChanged=rV.prototype.onSeedColorChanged;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],rV.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],rV.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],rV.prototype,"authorName",void 0);_.q([_.R(),_.N("design:type",Array)],rV.prototype,"authorBadges",void 0);
_.q([_.R({computed:"computeAuthorType(authorBadges)"}),_.N("design:type",String)],rV.prototype,"authorType",void 0);_.q([_.R({computed:"computeAuthorClass(authorType, singleLine)"}),_.N("design:type",String)],rV.prototype,"authorClass",void 0);_.q([_.R({computed:"computeBadgesInsideChip(authorBadges)"}),_.N("design:type",Array)],rV.prototype,"badgesInsideChip",void 0);_.q([_.R({computed:"computeBadgesOutsideChip(authorBadges)"}),_.N("design:type",Array)],rV.prototype,"badgesOutsideChip",void 0);
_.q([_.R({computed:"computeBadgesBeforeChip(authorBadges)"}),_.N("design:type",Array)],rV.prototype,"badgesBeforeChip",void 0);_.q([_.R({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.N("design:type",Boolean)],rV.prototype,"isHighlighted",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],rV.prototype,"singleLine",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],rV.prototype,"disableHighlighting",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],rV.prototype,"dashboardMoneyFeed",void 0);_.q([_.R({value:_.B("live_chat_prepend_badges"),reflectToAttribute:!0}),_.N("design:type",Boolean)],rV.prototype,"prependChatBadges",void 0);_.q([_.R(),_.N("design:type",String)],rV.prototype,"authorNameColor",void 0);_.q([_.cD("#author-name"),_.N("design:type",HTMLDivElement)],rV.prototype,"username",void 0);
_.q([_.yf("authorNameColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rV.prototype,"onSeedColorChanged",null);rV=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],rV);
_.w(rV,"yt-live-chat-author-chip",function(){if(AFs===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;XXi===void 0&&(XXi=document.createElement("template"));var K=XXi;D.call(G,K.content.cloneNode(!0),x.content.firstChild);AFs=x}x=AFs;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var UGs;var Rnk;var sC=function(){var x=_.n.apply(this,arguments)||this;x.debounceCommand=_.TE(function(G){x.ytComponentBehavior.resolveCommand(G)},1500);
return x};
_.m(sC,_.n);sC.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var x=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",G,D,K=this.isHearted?(G=this.data)==null?void 0:G.unheartCommand:(D=this.data)==null?void 0:D.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.sg("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:x}));(x=_.jn(K))&&this.debounceCommand(x)}};
_.Nq.Object.defineProperties(sC.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var x,G;if(!((x=this.data)==null?0:(G=x.creatorThumbnail)==null?0:G.sources))return{};x={thumbnails:[]};G={};G.url=this.data.creatorThumbnail.sources[0].url;x.thumbnails.push(G);return x}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var x,G;return((x=this.engagementState)==null?void 0:x.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((G=this.engagementState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var x,G;return((x=this.engagementState)==null?void 0:x.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((G=this.engagementState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.engagementState)==null?void 0:x.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var x,G,D;return((x=this.engagementState)==null?void 0:x.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((G=this.engagementState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((D=this.engagementState)==null?void 0:D.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}}});
sC.prototype.onTap=sC.prototype.onTap;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],sC.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],sC.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.CF),_.N("design:type",Object)],sC.prototype,"ytLiveChatReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],sC.prototype,"data",void 0);
_.q([_.R({selectorArgs:["data.engagementStateKey"],selector:pvL}),_.N("design:type",Object)],sC.prototype,"engagementState",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],sC.prototype,"thumbnailDetails",null);_.q([_.U("data","engagementState"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],sC.prototype,"isHearted",null);_.q([_.U("data","engagementState"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],sC.prototype,"isEditable",null);
_.q([_.U("data","engagementState"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],sC.prototype,"showCreatorView",null);_.q([_.U("data","engagementState"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],sC.prototype,"showButton",null);_.q([_.U("data","isHearted"),_.N("design:type",String),_.N("design:paramtypes",[])],sC.prototype,"label",null);_.q([_.U("data","isHearted"),_.N("design:type",Object),_.N("design:paramtypes",[])],sC.prototype,"heartHoverText",null);
_.q([_.oe("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sC.prototype,"onTap",null);sC=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],sC);
_.w(sC,"yt-live-chat-creator-heart-view-model",function(){if(Rnk===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;UGs===void 0&&(UGs=document.createElement("template"));var K=UGs;D.call(G,K.content.cloneNode(!0),x.content.firstChild);Rnk=x}x=Rnk;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var Yb=function(){};
_.m(Yb,E3);Yb.prototype.JSC$10995_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:g5("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
Yb.prototype.getApiPaths=function(){return[]};
Yb.prototype.getExtension=function(){};
Yb.prototype.JSC$10995_buildRequest=function(){};var SNq={},nuo=(SNq.GET_DATASYNC_IDS=Q7(Yb),SNq);var iqu,gus,uEE,gns,me,qNs,vnZ,wXZ,dGu;iqu="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");gus=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.Aa=function(x,G,D,K,z,y,c,W,e){this.endpointMap=x;this.networkManager=G;this.authService=D;this.responseProcessorMap=K;this.innertubeResponseStore=z;this.contextProcessors=y;this.asyncContextProcessors=c;this.localInnertubeRouter=W;this.requestSequencer=e;this.inflightRequests=new Map;x.signalEndpointMap||(x.signalEndpointMap={});x.signalEndpointMap=Object.assign({},nuo,x.signalEndpointMap)};
uEE=function(x,G,D,K,z,y,c,W,e){if(_.Aa.instance!==void 0){if(K=_.Aa.instance,x=[x!==K.endpointMap,G!==K.networkManager,D!==K.authService,z!==K.innertubeResponseStore,y!==K.contextProcessors,c!==K.asyncContextProcessors,W!==K.localInnertubeRouter],x.some(function(Q){return Q}))throw new _.LL("InnerTubeTransportService is already initialized",x);
}else _.Aa.instance=new _.Aa(x,G,D,K,z,y,c,W,e)};
_.Rl=function(x,G,D){var K=K===void 0?lbh:K;var z=vnZ(x,G);return z?new _.T1(function(y,c){var W,e,Q,p,V;return _.T(function(L){switch(L.nextAddress){case 1:return _.Z(L,z,2);case 2:W=L.yieldResult;e=W.JSC$10995_getRequest(G,D,K);if(!e){c(new _.LL("Error: Failed to build request for command.",G));L.jumpTo(0);break}AS(e.input);p=((Q=e.requestShell)==null?void 0:Q.mode)==="cors"?"cors":void 0;if(x.authService.syncHeaders){V=dGu(e.config,p);L.jumpTo(4);break}return _.Z(L,wXZ(e.config,p),5);case 5:V=
L.yieldResult;case 4:y(qNs(x,e,V)),_.c5(L)}})}):_.rk(new _.LL("Error: No request builder found for command.",G))};
gns=function(x,G,D,K){var z=z===void 0?lbh:z;var y,c,W,e,Q,p,V,L,r,H,O,A,g,u,f,v,P,k;return _.T(function(cL){switch(cL.nextAddress){case 1:y=NoV(G,x.endpointMap);if(!y)throw new _.LL("Error: No streaming request builder found for command",G);c=y.JSC$10995_getRequest(G,D,z);if(!c)throw new _.LL("Failed to build YtRequest for streaming Command",G);if((W=x.localInnertubeRouter)==null||!W.shouldPreferLocalResponse(c.input,c.innerTubeRequest)){cL.jumpTo(2);break}return _.Z(cL,x.localInnertubeRouter.localInnertubeResponse(c.input,
c.innerTubeRequest),3);case 3:return e=cL.yieldResult,Q={},e.playerResponse&&(me(x,e.playerResponse,c),Q.player=e.playerResponse,(p=K)==null||p(Q,e)),e.watchNextResponse&&(me(x,e.watchNextResponse,c),Q.content=e.watchNextResponse,(V=K)==null||V(Q,e)),cL.return(Q);case 2:r=((L=c.requestShell)==null?void 0:L.mode)==="cors"?"cors":void 0;if(x.authService.syncHeaders){H=dGu(c.config,r);cL.jumpTo(4);break}return _.Z(cL,wXZ(c.config,r),5);case 5:H=cL.yieldResult;case 4:return g=(A=(O=c.requestShell)==null?
void 0:O.headers)!=null?A:{},c.requestShell=Object.assign({},c.requestShell,{headers:Object.assign({},g,H)}),u=Object.assign({},c.requestShell),f=JSON.stringify(c.innerTubeRequest),c.requestShell.method==="POST"&&(u=Object.assign({},u,{body:f})),v=function(bO,mE){me(x,mE.playerResponse||mE.watchNextResponse||mE.reelItemWatchResponse||mE.reelWatchSequenceResponse,c);K==null||K(bO,mE)},P={},_.Z(cL,NXi(x.networkManager,c.input,u,v),6);
case 6:return P=cL.yieldResult,((k=c.config)==null?0:k.responseTick)&&_.Fs(c.config.responseTick),cL.return(P)}})};
_.ma=function(x,G,D,K,z){z=z===void 0?{authStrategy:{identity:lbh}}:z;var y=y===void 0?!0:y;var c=function(){};
c=yD$(arO(D));G.context||(G.context=_.el3(K,y));return new _.T1(function(W){var e,Q,p,V,L;return _.T(function(r){if(r.nextAddress==1)return e=J3Q(D),Q=_.ix(e),x.authService.syncHeaders?(p=dGu(z,Q),r.jumpTo(2)):_.Z(r,wXZ(z,Q),3);r.nextAddress!=2&&(p=r.yieldResult);V=fzV(J3Q(D));L={input:V,requestShell:g5(V),innerTubeRequest:G,config:z};W(qNs(x,L,p,c));_.c5(r)})})};
me=function(x,G,D){var K;if(G&&!(G==null?0:(K=G.sequenceMetaData)==null?0:K.skipProcessing)&&x.responseProcessorMap){K=_.l(iqu);for(var z=K.next();!z.done;z=K.next())z=z.value,x.responseProcessorMap[z]&&x.responseProcessorMap[z].handleResponse(G,D)}};
qNs=function(x,G,D,K){K=K===void 0?function(){}:K;
var z,y,c,W,e,Q,p,V,L,r,H,O,A,g,u,f,v,P,k,cL,bO,mE,jf,$C,OD,wn,n$,Fi,pf,UE,M0,cs,G8,T7,Wd,Fc,lO,Bs,Xi,uC;return _.T(function(Y8){switch(Y8.nextAddress){case 1:c=(z=G.config)==null?void 0:(y=z.storeStrategy)==null?void 0:y.storeKey;if(!(c&&x.innertubeResponseStore&&x.innertubeResponseStore.has(c))||((W=G.config)==null?0:(e=W.storeStrategy)==null?0:e.disableCache)){Y8.jumpTo(2);break}return _.Z(Y8,x.innertubeResponseStore.get(c),3);case 3:if((Q=Y8.yieldResult)&&!Q.isExpired())return Y8.return(Promise.resolve(_.DU(Q)));
case 2:if(!((p=G)==null?0:(V=p.innerTubeRequest)==null?0:V.context)){Y8.jumpTo(4);break}L=G.innerTubeRequest.context;if(!(x.asyncContextProcessors&&x.asyncContextProcessors.length>0)){Y8.jumpTo(5);break}r=[];H=_.l(x.asyncContextProcessors);for(O=H.next();!O.done;O=H.next())A=O.value,g=A.processContext(G),g.wrappedPromise_&&r.push(g.wrappedPromise_);if(!(r.length>0)){Y8.jumpTo(5);break}return _.Z(Y8,Promise.all(r),5);case 5:u=_.l(x.contextProcessors||[]),f=u.next();case 8:if(f.done){Y8.jumpTo(4);break}v=
f.value;return _.Z(Y8,v.processContext(L),9);case 9:f=u.next();Y8.jumpTo(8);break;case 4:if((P=x.localInnertubeRouter)==null||!P.shouldPreferLocalResponse(G.input,G.innerTubeRequest)){Y8.jumpTo(12);break}return _.Z(Y8,x.localInnertubeRouter.localInnertubeResponse(G.input,G.innerTubeRequest),13);case 13:return k=Y8.yieldResult,me(x,k,G),Y8.return(k);case 12:return(mE=(bO=G.config)==null?void 0:bO.requestKey)&&x.inflightRequests.has(mE)?cL=x.inflightRequests.get(mE):(jf=JSON.stringify(G.innerTubeRequest),
wn=(OD=($C=G.requestShell)==null?void 0:$C.headers)!=null?OD:{},G.requestShell=Object.assign({},G.requestShell,{headers:Object.assign({},wn,D)}),n$=Object.assign({},G.requestShell),G.requestShell.method==="POST"&&(n$=Object.assign({},n$,{body:jf})),((Fi=G.config)==null?0:Fi.requestTick)&&_.Fs(G.config.requestTick),pf=function(){return x.networkManager.fetch(G.input,n$,G.config)},cL=x.requestSequencer?vuZ(x.requestSequencer,G,pf):pf(),mE&&x.inflightRequests.set(mE,cL)),_.Z(Y8,cL,14);
case 14:(UE=Y8.yieldResult)&&_.B("web_streaming_player")&&Array.isArray(UE)&&(UE=UE[0].playerResponse);if(UE&&"error"in UE&&((M0=UE)==null?0:(cs=M0.error)==null?0:cs.details))for(G8=UE.error.details,T7=_.l(G8),Wd=T7.next();!Wd.done;Wd=T7.next())Fc=Wd.value,(lO=Fc["@type"])&&gus.indexOf(lO)>-1&&(delete Fc["@type"],UE=Fc);mE&&x.inflightRequests.has(mE)&&x.inflightRequests.delete(mE);((Bs=G.config)==null?0:Bs.responseTick)&&_.Fs(G.config.responseTick);if(UE||(Xi=x.localInnertubeRouter)==null||!Xi.canProvideFallbackResponse(G.input,
G.innerTubeRequest)){Y8.jumpTo(15);break}return _.Z(Y8,x.localInnertubeRouter.localFallbackInnertubeResponse(G.input,G.innerTubeRequest),16);case 16:UE=Y8.yieldResult;case 15:return me(x,UE,G),((uC=G.config)==null?0:uC.processorTick)&&_.Fs(G.config.processorTick),K(),Y8.return(UE||void 0)}})};
_.Uu=function(x,G){return qMP(G,x.endpointMap)};
vnZ=function(x,G){x=v3Q(G,x.endpointMap);if(x!==void 0)return Promise.resolve(x)};
wXZ=function(x,G){var D,K,z,y;return _.T(function(c){if(c.nextAddress==1){z=(D=x)==null?void 0:(K=D.authStrategy)==null?void 0:K.sessionIndex;var W=_.aI(BB$({sessionIndex:z}));return _.Z(c,W,2)}y=c.yieldResult;return c.return(Promise.resolve(Object.assign({},JId(G),y)))})};
dGu=function(x,G){var D;x=x==null?void 0:(D=x.authStrategy)==null?void 0:D.sessionIndex;D=BB$({sessionIndex:x});return Object.assign({},JId(G),D)};var JFs,flJ,tDZ,k6E,PS8,Euu,GqZ,Do8,Ft,K4k,zkZ,xoh,aMZ;JFs=0;flJ=/tone[1-5]/;tDZ=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");k6E="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
PS8=Number.MAX_SAFE_INTEGER;Euu=RegExp("\ufe0f","g");_.Hx=function(x){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;x&&_.hnZ(this,x)};
_.hnZ=function(x,G){try{_.Tz(G,{context:x,onSuccess:function(K,z){Array.isArray(z)?x.load(z):(K=new _.LL("Emoji manager JSON response was not an array!",{response:z}),_.I4(K))},
onError:function(K){K=new _.LL("Failed to retrieve emoji manager initial JSON data!",{url:G,statusCode:_.zz(K).toString()});_.O9(K)}})}catch(K){var D=new _.LL("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:G});
_.O9(D)}};
_.Hx.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.Hx.prototype.load=function(x,G){if(G)if(x.length)x=x.concat(G.emojis);else{this.emojis=G.emojis;this.emojiMap=G.emojiMap;this.emojiShortcutMap=G.emojiShortcutMap;this.emojiShortcutCharMap=xoh(G);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=G.emojiRegex;return}this.emojis=[].concat(_.B5(new Set(this.emojis.concat(x))));this.hasInitializedShortcutCharMap=!1;x=Array(this.emojis.length);for(G=0;G<this.emojis.length;G++){var D=this.emojis[G];if(D.emojiId){this.emojiMap[D.emojiId]=D;this.emojiMap[D.emojiId].index=
G;for(var K=0;D.shortcuts&&K<D.shortcuts.length;K++)this.emojiShortcutMap[D.shortcuts[K].toLocaleLowerCase()]=D;x[G]=D.isCustomEmoji&&D.shortcuts?D.shortcuts[0]:D.emojiId}}x.sort(function(z,y){return y.length-z.length});
if(x.length)try{this.emojiRegex=new RegExp(x.join("|").replace("*","\\*"),"gi")}catch(z){this.emojiRegex=/$./}else this.emojiRegex=/$./};
GqZ=function(x,G){G=_.l(G);for(var D=G.next();!D.done;D=G.next()){var K=D.value;if(K.emojiId&&x.emojiMap[K.emojiId]){D=Object.assign({},x.emojiMap[K.emojiId],K);x.emojiMap[K.emojiId]=D;var z=void 0;D.index&&((z=x.emojis[D.index])==null?void 0:z.emojiId)===K.emojiId&&(x.emojis[D.index]=D);K=void 0;if((K=D.shortcuts)==null?0:K.length)for(x.hasInitializedShortcutCharMap=!1,K=_.l(D.shortcuts),z=K.next();!z.done;z=K.next())x.emojiShortcutMap[z.value.toLocaleLowerCase()]=D}}};
Do8=function(x){var G,D;_.T(function(K){if(K.nextAddress==1)return _.Z(K,_.QM.getInstance(),2);if(K.nextAddress!=3)return(G=K.yieldResult)?_.Z(K,G.get("ytlc-emoji-pref"),3):K.return();(D=K.yieldResult)&&GqZ(x,Object.keys(D).map(function(z){return{emojiId:z,stickyPrefId:D[z]}}).filter(function(z){return!!z.emojiId&&!!z.stickyPrefId}));
_.c5(K)})};
_.$b=function(x,G,D){return(x=x.emojiMap[G])&&(!x.isLocked||D!==void 0&&D)?x:void 0};
Ft=function(x,G,D){D=_.$b(x,G,D===void 0?!1:D);var K=G.match("\u200d");D&&x.skinTone!==0&&(x=(K==null?void 0:K.length)===1?_.$b(x,G.replace("\u200d",tDZ[x.skinTone]+"\u200d")):_.$b(x,G+tDZ[x.skinTone]))&&(D=x);return D};
K4k=function(x,G){var D=x.emojiMap[G];return(D==null?0:D.stickyPrefId)?x.emojiMap[D.stickyPrefId]:Ft(x,G)};
_.Wb=function(x,G){x=x.emojiShortcutMap[G.toLocaleLowerCase()];return!x||x.isLocked?null:x};
zkZ=function(x,G,D){return xoh(x,D===void 0?!1:D)[G]||{}};
xoh=function(x,G){G=G===void 0?!1:G;if(!x.hasInitializedShortcutCharMap){x.hasInitializedShortcutCharMap=!0;for(var D=0;D<x.emojis.length;D++){var K=x.emojis[D];if(!(K.isLocked||G&&K.isCustomEmoji&&K.emojiId&&!x.pickerCustomEmojiIds.includes(K.emojiId)))for(var z=0;K.shortcuts&&z<K.shortcuts.length;z++){var y=K.shortcuts[z];y.startsWith(":_")&&K.isCustomEmoji&&(x.emojiShortcutCharMap[":_"]==null&&(x.emojiShortcutCharMap[":_"]=Object.create(null)),x.emojiShortcutCharMap[":_"][y]=K);if(!(y.length<3||
!K.isCustomEmoji&&flJ.test(y))){var c=y.substr(0,3).toLocaleLowerCase();x.emojiShortcutCharMap[c]==null&&(x.emojiShortcutCharMap[c]=Object.create(null));x.emojiShortcutCharMap[c][y]=K}}}}return x.emojiShortcutCharMap};
_.Hx.prototype.createEmoji=function(x,G){G=G===void 0?!0:G;var D=document.createElement("img");x.isCustomEmoji||D.classList.add("small-emoji");D.classList.add("emoji");D.classList.add("yt-formatted-string");D.src=x.image?_.k$(x.image.thumbnails,this.emojiSize)||"":"";var K=void 0;x.image&&x.image.accessibility&&x.image.accessibility.accessibilityData&&(K=x.image.accessibility.accessibilityData.label);D.alt=K?K:(x.isCustomEmoji&&x.shortcuts?x.shortcuts[0]:x.emojiId)||"";x.isCustomEmoji&&(D.dataset.emojiId=
x.emojiId);_.E$&&(D.setAttribute("contenteditable","false"),D.setAttribute("unselectable","on"));G&&(x.shortcuts&&x.shortcuts.length&&D.setAttribute("shared-tooltip-text",x.shortcuts[0]),D.id="emoji-"+JFs++);return D};
_.Hx.prototype.createDocumentFragment=function(x,G,D,K){G=G===void 0?!1:G;D=D===void 0?!0:D;K=K===void 0?!1:K;x=x.replace(Euu,"");for(var z=document.createDocumentFragment(),y=0,c,W=0;(c=this.emojiRegex.exec(x))!=null;){var e=_.$b(this,c[0])||_.Wb(this,c[0]);!e||e.isCustomEmoji&&!G||(e=this.createEmoji(e,D),y!==c.index&&z.appendChild(document.createTextNode(x.substring(y,c.index))),z.appendChild(e),y=c.index+c[0].length,W++)}if(!K||W)return z.appendChild(document.createTextNode(x.substr(y))),z};
aMZ=function(x,G,D){var K,z,y,c,W,e,Q,p,V;return _.T(function(L){if(L.nextAddress==1){if(!G.emojiId||!x.emojiMap[G.emojiId])return L.return();K=Object.assign({},x.emojiMap[G.emojiId],{stickyPrefId:D});x.emojiMap[G.emojiId]=K;G.index&&((z=x.emojis[G.index])==null?void 0:z.emojiId)===G.emojiId&&(x.emojis[G.index]=K);if((y=G.shortcuts)==null?0:y.length)for(x.hasInitializedShortcutCharMap=!1,c=_.l(G.shortcuts),W=c.next();!W.done;W=c.next())e=W.value,x.emojiShortcutMap[e.toLocaleLowerCase()]=K;return _.Z(L,
_.QM.getInstance(),2)}if(L.nextAddress!=4)return(Q=L.yieldResult)?_.Z(L,Q.get("ytlc-emoji-pref"),4):L.jumpTo(0);V=(p=L.yieldResult)!=null?p:{};V[G.emojiId]=D;return _.Z(L,Q.set("ytlc-emoji-pref",V,PS8),0)})};
_.Ch=new _.Hx;var lMZ;_.IJ={};
lMZ={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.B("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:_.B("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 n3(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 x=_.kA(this.hostElement||this).querySelector("#inline-action-button-container");x&&x.setAttribute("aria-hidden","true");this.menuButton=_.kA(this.hostElement).querySelector("#menu-button")},
attached:function(){var x=this.menuButton;x&&(x.addEventListener("focusin",_.ae(this,this.onMenuButtonFocus_)),x.addEventListener("focusout",_.ae(this,this.onMenuButtonBlur_)))},
detached:function(){var x=this.menuButton;x&&(x.removeEventListener("focusin",_.ae(this,this.onMenuButtonFocus_)),x.removeEventListener("focusout",_.ae(this,this.onMenuButtonBlur_)))},
identity:_.gn,truthy:function(x){return!!x},
computeTimestampString:function(x){return x?x.timestampText?this.getSimpleString(x.timestampText):this.TIME_FORMATTER.format(new Date(x.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(x){return _.B("live_chat_whole_message_clickable")&&x},
computeMenuVisible_:function(x,G){return x||G},
computeHasInlineActionButtons:function(x){if(!x)return!1;var G,D;return!((G=x.inlineActionButtons)==null||!G.length)||!((D=x.additionalInlineActionButtons)==null||!D.length)},
createDocumentFragmentFromString:function(x){var G=_.Ch.createDocumentFragment.bind(_.Ch),D;if((D=this.participantsManager)==null||!D.viewerRegex)return G(x);D=document.createDocumentFragment();for(var K=0,z;(z=this.participantsManager.viewerRegex.exec(x))!=null;){if(z.index>0){var y=":"+z[0]+":";if((_.$b(_.Ch,y)||_.Wb(_.Ch,y))&&x.indexOf(y)===z.index-1)continue}D.appendChild(G(x.substring(K,z.index)));K=document.createElement("span");K.appendChild(G(z[0]));K.classList.add("mention");D.appendChild(K);
K=z.index+z[0].length}D.appendChild(G(x.substring(K)));return D},
createDocumentFragment:function(x){var G=document.createDocumentFragment();if(x.simpleText)return G.appendChild(this.createDocumentFragmentFromString(x.simpleText)),G;if(!x.runs)return G;for(var D=0;D<x.runs.length;D++){var K=x.runs[D];if(K.emoji)G.appendChild(_.Ch.createEmoji(K.emoji));else if(K.text)if(K.navigationEndpoint){var z=document.createElement("a");z.classList.add("yt-simple-endpoint");g$E(z,K.navigationEndpoint);_.kA(z).appendChild(this.createDocumentFragmentFromString(K.text));G.appendChild(z)}else G.appendChild(this.createDocumentFragmentFromString(K.text))}return G},
hasModerationOverlayVisible:function(){var x;return((x=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:x.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(x){x.composedPath().some(function(G){return(G=G instanceof Element?G:null)?G.tagName&&(G.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||G.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.B("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(x)},
colorFromDecimal:function(x){return SmP(x)},
markAsDeleted:function(x,G){this.set("data.deletedStateMessage",x);this.set("data.showOriginalContentMessage",G)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(x){if(this.data.contextMenuEndpoint){var G=_.Eo().resolve(_.mg),D=this.data.contextMenuEndpoint,K;(K=_.Aa.instance)&&_.Uu(K,D)?(G=ojE(G,D),K=_.ma(K,{},G)):K=_.yfu(G,D);K.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);x&&x.stopPropagation()}},
handleGetContextMenuResponse_:function(x){var G=_.Aa.instance;G&&_.Uu(G,{liveChatEndpoint:{}})||(x=x.response);x.liveChatItemContextMenuSupportedRenderers&&x.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(x.liveChatItemContextMenuSupportedRenderers.menuRenderer);x.actions&&_.xO(this.hostElement,"yt-live-chat-actions",[x.actions])},
handleGetContextMenuError:function(x){if(x instanceof Error||x instanceof Object||x instanceof String)var G=x;_.I4(new _.LL("Error encountered calling GetLiveChatItemContextMenu",G))},
showContextMenu_:function(x){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:x}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.h$(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.h$(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.IJ.YtLiveChatItemBehavior=[lMZ,_.j$.YtComponentBehavior,_.yU.YtOpenPopupBehavior];_.jM=function(){};var cfs;var TJ7;var W4Z;var eku;var OC=function(){var x=_.n.apply(this,arguments)||this;x.active=!1;x.identity=_.gn;return x};
_.m(OC,_.n);OC.prototype.dataChanged=function(){this.active=!1};
OC.prototype.onClick=function(){_.h$(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
OC.prototype.dataChanged=OC.prototype.dataChanged;_.q([_.R(),_.N("design:type",Object)],OC.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],OC.prototype,"active",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],OC.prototype,"dataChanged",null);OC=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],OC);
_.w(OC,"yt-live-chat-text-input-field-suggestion",function(){if(eku===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;W4Z===void 0&&(W4Z=document.createElement("template"));var K=W4Z;D.call(G,K.content.cloneNode(!0),x.content.firstChild);eku=x}x=eku;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});_.Xt=function(x,G,D){return CustomEvent.call(this,x,{detail:{value:G,path:D}})||this};
_.m(_.Xt,CustomEvent);_.AX=function(){var x=_.n.apply(this,arguments)||this;x.viewerName=null;x.actionMap={"yt-live-chat-actions":"onChatMessage_"};x.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];x.PARTICIPANT_TIME_USEC_=3E8;return x};
_.m(_.AX,_.n);_.a=_.AX.prototype;_.a.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.a.addParticipant=function(x){var G=_.rQf(this.participants,x,function(K,z){K=K[Object.keys(K)[0]];z=z[Object.keys(z)[0]];K=String(_.u7(K.authorName)).toLowerCase();z=String(_.u7(z.authorName)).toLowerCase();return K<z?-1:K==z?0:1}.bind(this));
if(G>=0){var D=this.participants[G];D[Object.keys(D)[0]].timestampUsec&&this.splice("participants",G,1,x)}else this.splice("participants",-G-1,0,x);x=x[Object.keys(x)[0]];G=_.u7(x.authorName).toLocaleLowerCase();D=G.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(D)||(this.allParticipantsCharMap_[D]={});this.allParticipantsCharMap_[D][G]=x};
_.a.getAuthorsFromPrefix=function(x){return this.allParticipantsCharMap_.hasOwnProperty(x)?this.allParticipantsCharMap_[x]:null};
_.a.computeViewerRegex_=function(x){if(!x)return null;x=x.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var G=x.indexOf("@")===0&&_.B("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(G+x.replace(/ /g,"\\s*")+"|^"+x.replace(/ /g,"\\s*")+"$|^"+x.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+x.replace(/ /g,"\\s*")+"$|(?<=\\s)"+x.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.a.checkForStaleParticipants_=function(){var x=this;this.trimOldParticipants_();this.asyncHandle_&&eVf(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.Xw(function(){x.checkForStaleParticipants_()},3E4))};
_.a.onChatMessage_=function(x){var G=this,D=Date.now()*1E3;x.forEach(function(K){if(K=_.Y(K,HX8)){K=K.item;var z=Object.keys(K)[0];G.SUPPORTED_ITEM_TYPES_.indexOf(z)!=-1&&K[z].timestampUsec>=D-G.PARTICIPANT_TIME_USEC_&&G.addParticipant(K)}},this);
this.checkForStaleParticipants_()};
_.a.trimOldParticipants_=function(){for(var x=Date.now()*1E3,G=this.participants.length-1;G>=0;G--){var D=this.participants[G];D=D[Object.keys(D)[0]];D.timestampUsec&&D.timestampUsec<x-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",G,1)}};
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],_.AX.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],_.AX.prototype,"viewerName",void 0);_.q([_.R({computed:"computeViewerRegex_(viewerName)"}),_.N("design:type",Object)],_.AX.prototype,"viewerRegex",void 0);_.q([_.R({value:function(){return[]},
notify:!0}),_.N("design:type",Array)],_.AX.prototype,"participants",void 0);_.AX=_.q([_.HD({is:"yt-live-chat-participants-manager",noInjection:!0})],_.AX);var Z_s=/.*([:@#].*?)$/,UC=/\u00a0/g,MWE=String.fromCharCode(160),Q97={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"},RJ=function(){var x=_.n.apply(this,arguments)||this;x.disabled=!1;x.liveChatRichMessageInput=null;x.messageInput=null;x.isValidWithNoInputText=!1;x.suggestions=[];x.emojiManager=_.Ch;x.inputMethodEditorActive=
!1;x.suggestionIndex=-1;x.JSC$11991_lastSuggestionRange=null;return x};
_.m(RJ,_.n);_.a=RJ.prototype;_.a.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.a.attached=function(){_.hR&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.a.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.a.dataChanged=function(){if(!this.ignoreColorMapping){var x=!1,G={},D;for(D in Q97)this.data&&this.data.hasOwnProperty(D)&&(G[Q97[D]]=this.colorFromDecimal(this.data[D]),x=!0);x&&_.K7(this.hostElement,G)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.a.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.a.colorFromDecimal=function(x){x=Math.floor(Number(x));return"rgba("+[x>>16&255,x>>8&255,x&255,(x>>24&255)/255].join()+")"};
_.a.preventDrag=function(x){x.dataTransfer&&(x.dataTransfer.dropEffect="none");x.preventDefault()};
_.a.preventResize=function(x){x.returnValue=!1};
_.a.onInputChange=function(){var x=this.characterCount,G=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&G&&G.remove();if(!G&&this.characterCount>this.maxCharacterLimit){var D=window.getSelection();if(D){var K=D.getRangeAt(0);D.removeAllRanges();D.addRange(K)}}if(D=this.getCurrentRange())K=this.calculateTextBeforeRange(D),this.completeEmojisInRange(D,K,!0)||this.updateSuggestions(D,K);K=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(K);
_.h$(this.hostElement,"yt-live-chat-message-input-change",K);G&&this.characterCount===0&&G.remove();D&&D.commonAncestorContainer.parentElement.id==="input"&&D.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>x):D&&!D.collapsed&&D.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(x=this.input.childNodes.length-1;x>=0;x--)this.input.childNodes[x].nodeName==="BR"&&this.input.childNodes[x].remove()};
_.a.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.a.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var x=this.getCurrentRange();x&&x.commonAncestorContainer.parentElement.id==="input"&&x.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.a.mergeOverflowText=function(x){if(x){var G=document.createRange();G.selectNodeContents(x);G=G.extractContents();this.input.insertBefore(G,x)}};
_.a.checkRangeAtEndOfInput=function(){var x=this.getCurrentRange();if(x){var G=_.kA(this.hostElement).querySelector("#overflow-text"),D=document.createRange();G&&G.previousSibling?G.previousSibling instanceof HTMLImageElement?D.selectNode(G.previousSibling):D.selectNodeContents(G.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?D.selectNode(this.input.lastChild):D.selectNodeContents(this.input.lastChild));D.collapse(!1);return D.isPointInRange(x.startContainer,
x.startOffset)}return!1};
_.a.handleOverflowText=function(x){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var G=_.kA(this.hostElement).querySelector("#overflow-text"),D=this.getCurrentRange();this.input.normalize();x=this.checkRangeAtEndOfInput()&&x;this.mergeOverflowText(G);for(var K,z=0,y=0,c,W=this.input.childNodes,e=0;e<W.length;e++){var Q=W[e];Q instanceof Text?(y+=Q.textContent.length,y>this.maxCharacterLimit&&(K=Q,z=this.maxCharacterLimit+Q.textContent.length-y)):Q instanceof HTMLImageElement&&
(K=void 0,y=Q.dataset.emojiId&&((K=this.data)==null?0:K.emojiCharacterCount)?y+this.data.emojiCharacterCount:y+Q.alt.length,K=this.input,z=e);if(y>this.maxCharacterLimit&&K){c=document.createRange();c.collapse(!1);G?(y=this.input.lastChild.previousSibling,y instanceof Text?c.setEnd(this.input.lastChild.previousSibling,y.textContent.length):y instanceof HTMLImageElement&&c.setEnd(this.input,this.input.childNodes.length-1)):c.selectNodeContents(this.input);c.setStart(K,z);break}}c&&(K=!1,D&&(x=c.isPointInRange(D.startContainer,
D.startOffset-1)),G||(G=document.createElement("span"),G.id="overflow-text",G.textContent="",G.setAttribute("contenteditable","true"),_.kA(_.kA(this.hostElement).querySelector("#input")).appendChild(G),K=!0),G&&(D=c.extractContents(),G.insertBefore(D,G.firstChild),x&&G.firstChild&&(D=document.createRange(),K?D.setStartAfter(G.lastChild):D.setStartAfter(G.firstChild),D.collapse(!0),G=window.getSelection(),G.removeAllRanges(),G.addRange(D))))}};
_.a.checkForDuplicateSpans=function(){for(var x=0;x<this.input.childNodes.length;x++){var G=this.input.childNodes[x];if(G.nodeName==="SPAN"){var D=document.createRange();D.selectNodeContents(G);D=D.extractContents();this.input.insertBefore(D,G);G.remove()}}this.handleOverflowText(!0)};
_.a.getCurrentRange=function(){var x=window.getSelection();return x&&x.rangeCount?x.getRangeAt(0).cloneRange():null};
_.a.getInputRange=function(){var x=this.getCurrentRange();if(x){for(var G=x.commonAncestorContainer,D=!1,K=_.kA(this.hostElement).querySelector("#input");G;){if(G===K){D=!0;break}G=G.parentNode}D||(x=null)}x||(x=this.getRangeAtEnd());return x};
_.a.getRangeAtEnd=function(){var x=document.createRange(),G=_.kA(this.hostElement).querySelector("#input").lastChild;!G||G.nodeName!=="#text"&&G.nodeName!=="SPAN"?(x.selectNodeContents(_.kA(this.hostElement).querySelector("#input")),x.collapse(!1)):G.nodeName==="#text"?x.setStart(G,G.textContent.length):x.setStart(G,G.childNodes.length);return x};
_.a.getChatParticipantSuggestions=function(x,G,D,K){var z=_.B("live_chat_enable_handles_web_text_input_update");if(G)for(var y in G)if(y.indexOf(x)===0||z&&y.indexOf(D+x)===0){var c=G[y],W=_.u7(c.authorName);K.push({suggestion:{author:!0,authorType:D,image:c.authorPhoto,alt:W,text:W}});if(K.length>=64)break}};
_.a.getSuggestions=function(x){var G=[],D=x.substring(0,3),K=zkZ(_.Ch,D,!0);if(K)for(var z in K)if(z.toLocaleLowerCase().indexOf(x)===0){var y=K[z];if(y&&y.emojiId){if(y=K4k(_.Ch,y.emojiId)){var c=void 0,W=void 0,e=void 0,Q=void 0,p=((c=y.image)==null?0:(W=c.accessibility)==null?0:(e=W.accessibilityData)==null?0:e.label)||y.isCustomEmoji?(Q=y.shortcuts)==null?void 0:Q[0]:y.emojiId;G.push({suggestion:{emoji:!0,image:y.image,alt:p,text:z,textToInsertWhenSelected:y.isCustomEmoji?z:p}})}if(G.length>=
64)break}}if(!this.participantsManager)return null;if(D.indexOf("@")===0||D.indexOf("#")===0)K=D.charAt(0),x=x.substring(1),z=_.B("live_chat_enable_handles_web_text_input_update"),D.indexOf("@")===0&&z&&(z=this.participantsManager.getAuthorsFromPrefix(D.substring(0,2)),this.getChatParticipantSuggestions(x,z,K,G)),D=D.substring(1),D=this.participantsManager.getAuthorsFromPrefix(D),this.getChatParticipantSuggestions(x,D,K,G);return G?G.sort(function(V,L){return L.suggestion.text<V.suggestion.text?-1:
L.suggestion.text===V.suggestion.text?0:1}):null};
_.a.insertSuggestion=function(x){var G=_.B("live_chat_enable_handles_web_text_input_update"),D=x.authorType;G=x.text.indexOf(D)===0&&G?x.text+MWE:D+x.text+MWE;x.emoji?this.insertTextAtRange(this.JSC$11991_lastSuggestionRange,x.textToInsertWhenSelected||""):x.author&&this.insertTextAtRange(this.JSC$11991_lastSuggestionRange,G)};
_.a.updateSuggestionsAtCaret=function(){var x=this.getCurrentRange();x&&this.updateSuggestions(x,this.calculateTextBeforeRange(x))};
_.a.offsetStartOfRangeBy=function(x,G){for(;G>0;)if(x.startOffset-G>=0){x.setStart(x.startContainer,x.startOffset-G);break}else{G=x.startContainer instanceof HTMLImageElement?G-x.startContainer.alt.length:G-x.startOffset;var D=x.startContainer.previousSibling;if(!D){x.setStart(x.startContainer,0);break}if(_.B("live_chat_require_space_for_autocomplete_emoji")){var K=void 0,z=void 0;x.setStart(D,((K=D)==null?void 0:(z=K.textContent)==null?void 0:z.length)||0)}else x.setStart(D,D.childNodes.length||
0)}};
_.a.updateSuggestions=function(x,G){var D=this;this.JSC$11991_lastSuggestionRange&&(this.JSC$11991_lastSuggestionRange.detach(),this.JSC$11991_lastSuggestionRange=null);if((G=Z_s.exec(G))&&G.length&&(G=G[G.length-1].toLocaleLowerCase(),G.length>2&&(this.offsetStartOfRangeBy(x,G.length),this.JSC$11991_lastSuggestionRange=x,(x=this.getSuggestions(G))&&x.length))){this.suggestions=x;_.w1(this,function(){_.kA(D.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(x.length-1);return}this.dropdown.opened=!1};
_.a.completeEmojisInRange=function(x,G,D){var K=G.replace(/[\s\xa0]+$/,"");G=G.length-K.length;K=K.split(" ");K=K[K.length-1].trim().toLocaleLowerCase();var z=K.lastIndexOf(":");if(D&&!G&&z!==K.length-1)return!1;z!==-1&&(D=K.lastIndexOf(":",z-1),D!==-1&&(K=K.substring(D)));if((D=_.Wb(_.Ch,K))&&D.emojiId){D=K4k(_.Ch,D.emojiId)||null;this.offsetStartOfRangeBy(x,K.length+G);var y,c,W,e;K=(((y=D)==null?0:y.isCustomEmoji)?(c=D)==null?void 0:(W=c.shortcuts)==null?void 0:W[0]:(e=D)==null?void 0:e.emojiId)||
"";G&&(K+=MWE);this.insertTextAtRange(x,K);this.dropdown.opened=!1;return!0}return!1};
_.a.onSuggestion=function(x){this.insertSuggestion(x.detail);this.dropdown.opened=!1};
_.a.onKeyPress=function(x){x.keyCode===13&&(x.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.h$(this.hostElement,"yt-live-chat-send-message"))};
_.a.completeEmojis=function(){var x=document.createRange(),G=_.kA(this.hostElement).querySelector("#input").lastChild;G?x.setStart(G,G.childNodes.length):(x.selectNodeContents(_.kA(this.hostElement).querySelector("#input")),x.collapse(!1));this.completeEmojisInRange(x,this.calculateTextBeforeRange(x),_.B("live_chat_require_space_for_autocomplete_emoji"))};
_.a.maybePreventTextFormatting=function(x){!_.Kr||!x.ctrlKey&&!x.metaKey||x.keyCode!==66&&x.keyCode!==73||(x.stopImmediatePropagation(),x.preventDefault())};
_.a.onKeyDown=function(x){this.maybePreventTextFormatting(x);if(this.dropdown.opened)switch(x.keyCode){case 27:this.dropdown.opened=!1;x.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;x.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);x.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),x.preventDefault()}};
_.a.onKeyUp=function(x){switch(x.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.E$)this.onInputChange()};
_.a.changeSuggestionIndex=function(x){if(this.dropdown.opened){var G=_.kA(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<G.children.length&&(G.children[this.suggestionIndex].active=!1);var D=this.suggestions.length;this.suggestionIndex=(x+D)%D;x=G.children[this.suggestionIndex];x.active=!0;G.scrollTop=x.offsetTop}};
_.a.onInputPaste=function(x){x.preventDefault();(x=x.clipboardData)&&x.types&&(x=x.getData("text/plain")||"",x=x.replace(/\n/g,""),this.insertText(x));(x=this.getCurrentRange())&&x.commonAncestorContainer.parentElement.id==="input"&&x.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.a.onFocus=function(){this._setFocused(!0)};
_.a.onBlur=function(){this._setFocused(!1)};
_.a.insertText=function(x){this.insertTextAtRange(this.getInputRange(),x)};
_.a.insertTextAtRange=function(x,G){if(x&&(x.collapsed||x.deleteContents(),G=_.Ch.createDocumentFragment(G,!0,!1))){for(var D=_.l((G==null?void 0:G.childNodes)||[]),K=D.next();!K.done;K=D.next()){K=K.value;var z=void 0,y=void 0,c=void 0,W=void 0,e=void 0;(c=(z=window)==null?void 0:(y=z.ShadyCSS)==null?void 0:y.ScopingShim)==null||(e=(W=c).scopeNode)==null||e.call(W,K,this.hostElement.localName)}D=G.lastChild;x.insertNode(G);this.focused||this.input.focus();if(this.focused){x=x.cloneRange();x.selectNodeContents(D);
x.collapse(!1);if(G=window.getSelection())G.removeAllRanges(),G.addRange(x);x.commonAncestorContainer.parentElement.id==="input"&&x.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}x=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(x);_.h$(this.hostElement,"yt-live-chat-message-input-change",x)}};
_.a.setLiveChatRichMessageInput=function(x){_.kA(_.kA(this.hostElement).querySelector("#input")).textContent="";if(x&&x.textSegments){for(var G=0;G<x.textSegments.length;G++){var D=x.textSegments[G];D.text?_.kA(_.kA(this.hostElement).querySelector("#input")).appendChild(_.Ch.createDocumentFragment(D.text,!0,!1)):D.emojiId&&(D=_.$b(_.Ch,D.emojiId))&&_.kA(_.kA(this.hostElement).querySelector("#input")).appendChild(_.Ch.createEmoji(D,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.a.setText=function(x){this.setLiveChatRichMessageInput(x?{textSegments:[{text:x}]}:null)};
_.a.calculateTextBeforeRange=function(x){var G="",D=x.startContainer;if(D&&D instanceof Text){var K;G=((K=D.textContent)==null?void 0:K.substring(0,x.startOffset))||"";D=D.previousSibling}for(;D&&D instanceof Text;)G=D.textContent+G,D=D.previousSibling;return G.replace(UC," ")};
_.a.calculateLiveChatRichMessageInput=function(){for(var x=[],G="",D=_.kA(_.kA(this.hostElement).querySelector("#input")).childNodes,K=0;K<D.length;K++){var z=D[K];z instanceof Text?G+=z.textContent:z instanceof HTMLImageElement&&(z.dataset.emojiId?(G&&(x.push({text:G.replace(UC," ")}),G=""),x.push({emojiId:z.dataset.emojiId})):G+=z.alt)}G&&x.push({text:G.replace(UC," ")});if(D=_.kA(this.hostElement).querySelector("#overflow-text")){G="";D=D.childNodes;for(K=0;K<D.length;K++)z=D[K],z instanceof Text?
G+=z.textContent:z instanceof HTMLImageElement&&(z.dataset.emojiId?(G&&(x.push({text:G.replace(UC," ")}),G=""),x.push({emojiId:z.dataset.emojiId})):G+=z.alt);G&&x.push({text:G.replace(UC," ")})}return{textSegments:x}};
_.a.computeCharacterCount=function(x){if(!x||!x.textSegments)return 0;for(var G=0,D=0;D<x.textSegments.length;D++){var K=x.textSegments[D];if(K.text)G+=K.text.length;else if(K.emojiId){var z=void 0;if((z=this.data)==null?0:z.emojiCharacterCount)G+=this.data.emojiCharacterCount;else{var y=z=void 0,c=void 0;G+=((y=_.$b(_.Ch,(z=K)==null?void 0:z.emojiId))==null?void 0:(c=y.shortcuts)==null?void 0:c[0].length)||0}}}return G};
_.a.characterCountChanged=function(){_.h$(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.a.focusedChanged=function(){this.hostElement.dispatchEvent(new _.Xt("focused-changed",this.focused))};
_.a.focus=function(){this.setFocus(!1)};
_.a.focusAtEnd=function(){this.setFocus(!0)};
_.a.setFocus=function(x){x=x?this.getRangeAtEnd():this.getInputRange();_.kA(this.hostElement).querySelector("#input").focus();var G=window.getSelection();G&&(G.removeAllRanges(),G.addRange(x))};
_.a.insertEmoji=function(x){var G,D=((x==null?0:x.isCustomEmoji)?(G=x.shortcuts)==null?void 0:G[0]:x==null?void 0:x.emojiId)||"";this.insertText(D)};
_.a.computeText=function(x){if(!x||!x.textSegments)return"";for(var G="",D=0;D<x.textSegments.length;D++){var K=x.textSegments[D];if(K.text)G+=K.text;else if(K.emojiId){var z=void 0,y=void 0,c=void 0;G+=((y=_.$b(_.Ch,(z=K)==null?void 0:z.emojiId))==null?void 0:(c=y.shortcuts)==null?void 0:c[0])||""}}return G};
_.a.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.Nq.Object.defineProperties(RJ.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.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}}});
RJ.prototype.focusedChanged=RJ.prototype.focusedChanged;RJ.prototype.characterCountChanged=RJ.prototype.characterCountChanged;RJ.prototype.onSuggestion=RJ.prototype.onSuggestion;RJ.prototype.onMessageSet=RJ.prototype.onMessageSet;RJ.prototype.dataChanged=RJ.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],RJ.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],RJ.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],RJ.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],RJ.prototype,"disabled",void 0);_.q([_.U("disabled"),_.N("design:type",Number),_.N("design:paramtypes",[])],RJ.prototype,"inputTabIndex",null);_.q([_.U("data.maxCharacterLimit"),_.R({readOnly:!0,notify:!0}),_.N("design:type",Number),_.N("design:paramtypes",[])],RJ.prototype,"maxCharacterLimit",null);
_.q([_.U("liveChatRichMessageInput"),_.R({readOnly:!0,notify:!0}),_.N("design:type",Number),_.N("design:paramtypes",[])],RJ.prototype,"characterCount",null);_.q([_.U("maxCharacterLimit, characterCount"),_.R({readOnly:!0,notify:!0}),_.N("design:type",Number),_.N("design:paramtypes",[])],RJ.prototype,"remainingCharacterCount",null);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],RJ.prototype,"isChatMessageInput",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],RJ.prototype,"inputExpanded",void 0);_.q([_.R({readOnly:!0,notify:!0}),_.N("design:type",Object)],RJ.prototype,"liveChatRichMessageInput",void 0);_.q([_.R(),_.N("design:type",Object)],RJ.prototype,"messageInput",void 0);_.q([_.R(),_.N("design:type",Boolean)],RJ.prototype,"ignoreColorMapping",void 0);_.q([_.U("characterCount"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],RJ.prototype,"hasText",null);
_.q([_.R(),_.N("design:type",Object)],RJ.prototype,"isValidWithNoInputText",void 0);_.q([_.U("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.R(),_.N("design:type",Boolean),_.N("design:paramtypes",[])],RJ.prototype,"isInputValid",null);_.q([_.R({readOnly:!0,value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],RJ.prototype,"focused",void 0);_.q([_.R(),_.N("design:type",Array)],RJ.prototype,"suggestions",void 0);
_.q([_.R(),_.N("design:type",_.Hx)],RJ.prototype,"emojiManager",void 0);_.q([_.R(),_.N("design:type",_.AX)],RJ.prototype,"participantsManager",void 0);_.q([_.R(),_.N("design:type",Boolean)],RJ.prototype,"noUnderline",void 0);_.q([_.R(),_.N("design:type",Object)],RJ.prototype,"inputMethodEditorActive",void 0);_.q([_.cD("#dropdown"),_.N("design:type",Object)],RJ.prototype,"dropdown",void 0);_.q([_.cD("#input"),_.N("design:type",HTMLElement)],RJ.prototype,"input",void 0);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RJ.prototype,"dataChanged",null);_.q([_.yf("messageInput"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RJ.prototype,"onMessageSet",null);_.q([_.oe("yt-live-chat-select-suggestion"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],RJ.prototype,"onSuggestion",null);
_.q([_.yf("characterCount"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RJ.prototype,"characterCountChanged",null);_.q([_.yf("focused"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RJ.prototype,"focusedChanged",null);RJ=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],RJ);
_.pBq=_.w(RJ,"yt-live-chat-text-input-field-renderer",function(){if(TJ7===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;cfs===void 0&&(cfs=document.createElement("template"));var K=cfs;D.call(G,K.content.cloneNode(!0),x.content.firstChild);TJ7=x}x=TJ7;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var SM=function(){var x=_.n.apply(this,arguments)||this;x.buttonOverrides={style:"overlay",type:"filled"};x.allowAnimations=!1;x.modern=_.B("web_button_rework_with_live");x.noPadding=!1;return x};
_.m(SM,_.n);_.a=SM.prototype;_.a.shouldSupportInlineActionButtons=function(){return!0};
_.a.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"}}}}};
_.a.ready=function(){var x=document.querySelector("yt-live-chat-app");x&&x.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.a.attached=function(){this.allowAnimations=!1};
_.a.dataChanged=function(){if(this.data){var x={"--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)};_.K7(this.hostElement,x);this.allowAnimations=!0}};
_.a.messageChanged=function(){var x,G=(x=this.data)==null?void 0:x.message;x=_.kA(_.kA(this.hostElement).querySelector("#message"));x.textContent="";G&&x.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(G))};
_.a.computeShowOnlyHeader=function(x,G){return!x||x.pdgLikeButton||x.replyButton||x.buyFlowButton?!1:this.isEmpty(x,G)&&!x.footer};
_.a.computeShowFooterDivider=function(x,G,D){return x?!!x.footer&&!this.isEmpty(x,G)&&!D:!1};
_.a.computeIsUserEditable=function(x){return!!x.inputField};
_.a.computeHasHeartButton=function(x){return(x==null?void 0:x.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(x==null?void 0:x.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(x==null?void 0:x.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.a.computeNoveltyImage=function(x){if(x.headerOverlayImage&&x.headerOverlayImage.thumbnails.length){var G=x.headerOverlayImage.thumbnails[0],D,K;if((D=x.pdgPurchasedNoveltyLoggingDirectives)==null?0:(K=D.loggingDirectives)==null?0:K.trackingParams){var z,y;bGV((z=x.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(y=z.loggingDirectives)==null?void 0:y.trackingParams)}return G.width||0}return 0};
_.a.computeAuthorPhotoSize=function(x){return(x==null?0:x.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.a.inputFocus=function(){var x=_.kA(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");x&&x.focus()};
_.a.inputInsertEmoji=function(x){var G=_.kA(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");G&&G.insertEmoji(x)};
_.a.inputMessage=function(){var x=_.kA(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),G;return x&&((G=this.data)==null?0:G.inputField)?(x.completeEmojis(),_.js(x.liveChatRichMessageInput)):null};
_.a.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.a.isEmpty=function(x,G){return x?x.empty||!(x.message||x.inputField||G):!0};
_.a.onLowerBuyButtonClick=function(){var x,G=_.Y((x=this.data)==null?void 0:x.buyButton,_.$V);G&&G.trackingParams&&!ieL(G.command)&&(x=_.V2(G.trackingParams))&&(G=_.CC())&&_.u0(G,x)};
_.a.shouldSupportWholeItemClick=function(){return!0};
_.Nq.Object.defineProperties(SM.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?0:x.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
SM.prototype.isDeletedChanged=SM.prototype.isDeletedChanged;SM.prototype.messageChanged=SM.prototype.messageChanged;SM.prototype.dataChanged=SM.prototype.dataChanged;_.q([_.I(kn9.YtPdgLiveChatItemBehavior),_.N("design:type",Object)],SM.prototype,"ytPdgLiveChatItemBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],SM.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.CF),_.N("design:type",Object)],SM.prototype,"ytLiveChatReduxBehavior",void 0);
_.q([_.I(_.IJ.YtLiveChatItemBehavior),_.N("design:type",_.jM)],SM.prototype,"ytLiveChatItemBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],SM.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],SM.prototype,"data",void 0);_.q([_.R({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:pvL}),_.N("design:type",Object)],SM.prototype,"engagementState",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.N("design:type",Boolean)],SM.prototype,"isUserEditable",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.N("design:type",Boolean)],SM.prototype,"hasHeartButton",void 0);_.q([_.R({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.N("design:type",Boolean)],SM.prototype,"showOnlyHeader",void 0);
_.q([_.R({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.N("design:type",Boolean)],SM.prototype,"showFooterDivider",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Object)],SM.prototype,"allowAnimations",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],SM.prototype,"dashboardMoneyFeed",void 0);_.q([_.R({computed:"computeNoveltyImage(data)"}),_.N("design:type",Number)],SM.prototype,"noveltyWidth",void 0);
_.q([_.R({computed:"computeAuthorPhotoSize(data)"}),_.N("design:type",Number)],SM.prototype,"authorPhotoSize",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],SM.prototype,"modern",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],SM.prototype,"noPadding",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],SM.prototype,"dataChanged",null);
_.q([_.yf("data.message"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],SM.prototype,"messageChanged",null);_.q([_.U("data","dashboardMoneyFeed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],SM.prototype,"hideLowerBumper",null);_.q([_.yf("isDeleted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],SM.prototype,"isDeletedChanged",null);
SM=_.q([_.d({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],SM);
_.w(SM,"yt-live-chat-paid-message-renderer",function(){if($Go===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;Hqi===void 0&&(Hqi=document.createElement("template"));var K=Hqi;D.call(G,K.content.cloneNode(!0),x.content.firstChild);$Go=x}x=$Go;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var VWq;var b_s;var nh=function(){var x=_.WD.apply(this,arguments)||this;x._noAccessors=!0;return x};
_.m(nh,_.WD);nh.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.Am("openPopupConfig")};
_.q([_.I(_.yU.YtOpenPopupBehavior),_.N("design:type",Object)],nh.prototype,"ytOpenPopupBehavior",void 0);nh=_.q([_.e2()],nh);_.i9=[_.yU.YtOpenPopupBehavior,nh.prototype];var L4s;var nH=[_.TU,MJ0,_.YV,_.Wi,_.d5,_.HrJ,_.MB,_.XRh,_.H1,ZRO];_.B("web_watch_get_updated_metadata_response_processing")&&nH.push(_.Gbk);_.B("web_continuation_response_processing")&&nH.push(_.Il);var q1f=new _.wq("RESPONSE_RECEIVED_COMMANDS"),cl3=new _.wq("RESPONSE_RECEIVED_COMMANDS");var D$n="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),G_n=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],x$L=["GET_UNSEEN_NOTIFICATION_COUNT"];var gV=function(){var x=_.WD.apply(this,arguments)||this;x._noAccessors=!0;x.serviceEndpointHandlers=[];return x};
_.m(gV,_.WD);gV.prototype.created=function(){var x=this;this.endpointHandlerActionMap={"yt-service-request":function(G,D,K,z){var y;return hWd(x.hostElement,G,D,K,z,x.serviceEndpointHandlers,(y=x.onEntitiesUpdated)==null?void 0:y.bind(x))}}};
gV.prototype.attached=function(){_.uV(_.gu.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
gV.prototype.detached=function(){_.du(_.gu.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
gV=_.q([_.e2()],gV);_.BJu=[gV.prototype];var rfq,s9s=function(){return rfq!==void 0?rfq:rfq=document.createElement("template")};
document.head.appendChild(s9s().content);var Y88;var mos=document.head,H_Z=mos.appendChild,$ou;if(Y88===void 0){var F47=document.createElement("template");_.F(F47,"\x3c!--css-build:shady--\x3e");F47.content.insertBefore(s9s().content.cloneNode(!0),F47.content.firstChild);Y88=F47}$ou=Y88;H_Z.call(mos,$ou.content);var CEZ,IM8=function(){return CEZ!==void 0?CEZ:CEZ=document.createElement("template")};
document.head.appendChild(IM8().content);var j9s;var O_9=document.head,XBE=O_9.appendChild,Afh;if(j9s===void 0){var Uo0=document.createElement("template");_.F(Uo0,"\x3c!--css-build:shady--\x3e");Uo0.content.insertBefore(IM8().content.cloneNode(!0),Uo0.content.firstChild);j9s=Uo0}Afh=j9s;XBE.call(O_9,Afh.content);var Rks;_.HH("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.HH("sharingRendererButtons","buttonRenderer","ytd-button-renderer");Rks=_.B("web_button_rework")&&_.Uo("BUTTON_REWORK")||_.B("web_button_rework_with_live");_.u9=function(){var x=_.n.apply(this,arguments)||this;x.isPressed=!1;x.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return x};
_.m(_.u9,_.n);_.a=_.u9.prototype;_.a.created=function(){this.showTooltips=!0};
_.a.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.a.onHintIdChanged=function(){var x=this,G,D,K=(G=this.ytButtonBehavior.data)==null?void 0:(D=G.hint)==null?void 0:D.hintRenderer;if(K&&K.hintId){G=_.Gl(this.hostElement,"yt-get-opened-popups-action");G=(G&&G.length===1?G[0]:[]).length>0;var z=null;K.hintId!=="sponsor-pre-purchase"||G?K.hintId.startsWith("sponsor-post-purchase")&&!G?z=Wpq("membership-manage"):K.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!G&&(z=Wpq("membership-freebie-join")):z=Wpq("membership-join");z&&_.Fj.addLowPriorityJob(function(){for(var y=
_.l(z),c=y.next();!c.done;c=y.next())x.ytComponentBehavior.resolveCommand(c.value)})}};
_.a.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.a.onYtNavigate=function(x){var G=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(x.detail.endpoint);G&&(x.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(G))};
_.a.onYtServiceRequestSent=function(x,G){this.handleServiceRequestActions(G);_.h$(this.hostElement,"yt-service-request-sent-button-renderer")};
_.a.onServiceRequestCompleted=function(x,G){this.handleServiceRequestActions(G);_.h$(this.hostElement,"yt-service-request-completed-button-renderer")};
_.a.updateButton=function(x){var G;if(x=(G=_.Y(x,k0J))==null?void 0:G.updatedButton)this.ytButtonBehavior.data=_.Y(x,_.$V)};
_.a.handleUpdateButtonAction=function(x){var G=this.ytButtonBehavior.data;G.targetId&&x.updateButtonAction.targetId&&G.targetId===x.updateButtonAction.targetId&&this.updateButton(x)};
_.a.handleServiceRequestActions=function(x){if(x=x.actions)for(var G=0;G<x.length;G++)this.updateButton(x[G])};
_.Nq.Object.defineProperties(_.u9,{template:{configurable:!0,enumerable:!0,get:function(){if(L4s===void 0){var x=document.createElement("template");_.F(x,"\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");x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);L4s=x}x=L4s;return x}}});
_.u9.prototype.onServiceRequestCompleted=_.u9.prototype.onServiceRequestCompleted;_.u9.prototype.onYtServiceRequestSent=_.u9.prototype.onYtServiceRequestSent;_.u9.prototype.onYtNavigate=_.u9.prototype.onYtNavigate;_.u9.prototype.onPressedStateChanged=_.u9.prototype.onPressedStateChanged;_.u9.prototype.onHintIdChanged=_.u9.prototype.onHintIdChanged;_.q([_.R(),_.N("design:type",Object)],_.u9.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],_.u9.prototype,"isPressed",void 0);
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],_.u9.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.JJo.YtButtonBehavior),_.N("design:type",Object)],_.u9.prototype,"ytButtonBehavior",void 0);_.q([_.I(_.i9),_.N("design:type",Object)],_.u9.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],_.u9.prototype,"ytComponentBehavior",void 0);
_.q([_.I(eM.YtRenderButtonBehavior),_.N("design:type",Object)],_.u9.prototype,"ytRenderButtonBehavior",void 0);_.q([_.yf("data.hint.hintRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],_.u9.prototype,"onHintIdChanged",null);_.q([_.yf("isPressed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],_.u9.prototype,"onPressedStateChanged",null);
_.q([_.oe("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],_.u9.prototype,"onYtNavigate",null);_.q([_.oe("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Ou]),_.N("design:returntype")],_.u9.prototype,"onYtServiceRequestSent",null);
_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.gG]),_.N("design:returntype")],_.u9.prototype,"onServiceRequestCompleted",null);_.u9=_.q([_.d({is:"ytd-button-renderer",disableElementRegistration:Rks})],_.u9);var dV=function(){var x=_.n.apply(this,arguments)||this;x.modern=_.B("web_button_rework_with_live");x.buttonOverrides={style:"overlay",type:"filled"};return x};
_.m(dV,_.n);_.a=dV.prototype;_.a.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"}}}}};
_.a.ready=function(){var x=document.querySelector("yt-live-chat-app");x&&x.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.a.dataChanged=function(){if(this.data&&this.data.sticker){var x=_.k$(this.data.sticker.thumbnails,this.stickerWidth);x||_.p9O(x).thenCatch(function(){_.O9(new _.LL("Failed to load Super Sticker with url",x))})}};
_.a.computeAuthorPhotoSize=function(x){return(x==null?0:x.isV2Style)?32:40};
_.a.computeIsV2Style=function(x){return(x==null?0:x.isV2Style)?!0:!1};
_.a.onStickerLoaded=function(x){var G,D,K;(G=_.uo(x))==null||(D=G.parentNode)==null||(K=D.classList)==null||K.add("sticker-loaded")};
_.a.computeNoveltyImageWidth=function(x){var G,D;if(x==null?0:(G=x.headerOverlayImage)==null?0:(D=G.thumbnails)==null?0:D.length){G=x.headerOverlayImage.thumbnails[0];var K,z;if((K=x.pdgPurchasedNoveltyLoggingDirectives)==null?0:(z=K.loggingDirectives)==null?0:z.trackingParams){var y,c;bGV((y=x.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(c=y.loggingDirectives)==null?void 0:c.trackingParams)}return G.width||0}return 0};
_.a.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.a.updateStickerStyles=function(){var x=this.data;x&&(x={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(x.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(x.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(x.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(x.authorNameTextColor)},
_.K7(this.hostElement,x))};
_.a.onBuyButtonClick=function(){var x,G=_.Y((x=this.data)==null?void 0:x.buyButton,_.$V);G&&!ieL(G.command)&&this.ytRendererBehavior.logExplicitClick(G)};
_.a.shouldSupportWholeItemClick=function(){return!0};
_.Nq.Object.defineProperties(dV.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 x;return((x=this.data)==null?0:x.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
dV.prototype.updateStickerStyles=dV.prototype.updateStickerStyles;dV.prototype.isDeletedChanged=dV.prototype.isDeletedChanged;dV.prototype.onStickerLoaded=dV.prototype.onStickerLoaded;dV.prototype.dataChanged=dV.prototype.dataChanged;_.q([_.I(kn9.YtPdgLiveChatItemBehavior),_.N("design:type",Object)],dV.prototype,"ytPdgLiveChatItemBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],dV.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],dV.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.IJ.YtLiveChatItemBehavior),_.N("design:type",_.jM)],dV.prototype,"ytLiveChatItemBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],dV.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],dV.prototype,"data",void 0);
_.q([_.R({computed:"computeAuthorPhotoSize(data)"}),_.N("design:type",Number)],dV.prototype,"authorPhotoSize",void 0);_.q([_.R(),_.N("design:type",Boolean)],dV.prototype,"isDeleted",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],dV.prototype,"dashboardMoneyFeed",void 0);_.q([_.R({computed:"computeNoveltyImageWidth(data)"}),_.N("design:type",Number)],dV.prototype,"noveltyWidth",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],dV.prototype,"modern",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.N("design:type",Boolean)],dV.prototype,"isV2Style",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dV.prototype,"dataChanged",null);_.q([_.oe("yt-img-shadow-loaded"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],dV.prototype,"onStickerLoaded",null);
_.q([_.U("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],dV.prototype,"stickerWidth",null);_.q([_.U("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],dV.prototype,"stickerHeight",null);_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],dV.prototype,"hasHeartButton",null);_.q([_.U("data","dashboardMoneyFeed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],dV.prototype,"hideLowerBumper",null);
_.q([_.yf("isDeleted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dV.prototype,"isDeletedChanged",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dV.prototype,"updateStickerStyles",null);dV=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],dV);
_.w(dV,"yt-live-chat-paid-sticker-renderer",function(){if(b_s===void 0){var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;VWq===void 0&&(VWq=document.createElement("template"));var K=VWq;D.call(G,K.content.cloneNode(!0),x.content.firstChild);b_s=x}x=b_s;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var S80;var njo;var i_7,gjo=function(){return i_7!==void 0?i_7:i_7=document.createElement("template")};
document.head.appendChild(gjo().content);var uAu,do7=function(){return uAu!==void 0?uAu:uAu=document.createElement("template")};
document.head.appendChild(do7().content);var wBq;var q8s,NJk=function(){return q8s!==void 0?q8s:q8s=document.createElement("template")};
document.head.appendChild(NJk().content);var vjE;var Jf7=document.head,fMo=Jf7.appendChild,tWE;if(vjE===void 0){var kqZ=document.createElement("template");_.F(kqZ,"\x3c!--css-build:shady--\x3e");kqZ.content.insertBefore(NJk().content.cloneNode(!0),kqZ.content.firstChild);vjE=kqZ}tWE=vjE;fMo.call(Jf7,tWE.content);var PEu=document.head,Ejs=PEu.appendChild,hk8;if(wBq===void 0){var wV=document.createElement("template");_.F(wV,"\x3c!--css-build:shady--\x3e");wV.content.insertBefore(do7().content.cloneNode(!0),wV.content.firstChild);wV.content.insertBefore(gjo().content.cloneNode(!0),wV.content.firstChild);wBq=wV}hk8=wBq;Ejs.call(PEu,hk8.content);var qC=function(){var x=_.WD.apply(this,arguments)||this;x.focusedIndex=0;x.verticalOffset=0;x.verticalAlign="top";x.dynamicAlign=!0;return x};
_.m(qC,_.WD);qC.prototype.emojiUrl=function(x){x=_.$b(this.emojiManager,x);if(!x)return"";var G;x=(G=x.image)==null?void 0:G.thumbnails;return _.k$(x,24)||""};
var xIs=function(x){var G;x.emojiVariants&&(G=x.data)!=null&&G.target&&_.w1(x,function(){x.set("verticalOffset",-1*x.hostElement.clientHeight);var D=_.kA(x.hostElement).querySelector("img");D&&D.focus()})};
_.a=qC.prototype;_.a.onKeyboardEnter=function(){};
_.a.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.a.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.a.onKeyDown=function(x){switch(x.keyCode){case 13:this.onKeyboardEnter();x.preventDefault();break;case 40:this.changeFocus(1);x.preventDefault();break;case 38:this.changeFocus(-1);x.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.a.onYtEmojiSelect=function(x){var G=this,D,K,z,y,c,W,e,Q;return _.T(function(p){if(p.nextAddress==1)return K=(D=G.data)==null?void 0:D.emoji,c=((z=K)==null?void 0:z.stickyPrefId)||((y=K)==null?void 0:y.emojiId),e=(W=x.detail)==null?void 0:W.emojiId,c&&e&&c!==e?_.Z(p,(Q=G.emojiManager)==null?void 0:aMZ(Q,K,e),2):p.return();_.xO(G.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[K,e]);_.c5(p)})};
_.a.changeFocus=function(x){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+x+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(x=_.kA(this.hostElement).querySelector("#variants"))&&x.children[this.focusedIndex].focus())};
_.Nq.Object.defineProperties(qC.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
qC.prototype.onYtEmojiSelect=qC.prototype.onYtEmojiSelect;qC.prototype.onKeyDown=qC.prototype.onKeyDown;qC.prototype.onEmojiVariantsChanged=qC.prototype.onEmojiVariantsChanged;qC.prototype.onVerticalOffsetOrPositionTargetChanged=qC.prototype.onVerticalOffsetOrPositionTargetChanged;_.q([_.I(_.Ud),_.N("design:type",Object)],qC.prototype,"ironOverlayBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],qC.prototype,"data",void 0);_.q([_.R(),_.N("design:type",_.Hx)],qC.prototype,"emojiManager",void 0);
_.q([_.R(),_.N("design:type",Object)],qC.prototype,"emojiVariants",void 0);_.q([_.R(),_.N("design:type",Object)],qC.prototype,"focusedIndex",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],qC.prototype,"positionTarget",null);_.q([_.R({reflectToAttribute:!0}),_.U("verticalOffset","data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],qC.prototype,"isPositioned",null);_.q([_.R(),_.N("design:type",Object)],qC.prototype,"verticalOffset",void 0);
_.q([_.R(),_.N("design:type",Object)],qC.prototype,"verticalAlign",void 0);_.q([_.R(),_.N("design:type",Object)],qC.prototype,"dynamicAlign",void 0);_.q([_.yf("verticalOffset","positionTarget"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qC.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.q([_.yf("emojiVariants"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qC.prototype,"onEmojiVariantsChanged",null);
_.q([_.oe("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],qC.prototype,"onKeyDown",null);_.q([_.oe("yt-emoji-select"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype",Promise)],qC.prototype,"onYtEmojiSelect",null);qC=_.q([_.e2()],qC);var GV0=[qC.prototype];var DIo;var Kmo;var zhk=/medium-light|medium-dark|light|medium|dark/,ado=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,ofh=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),NC=function(){var x=_.n.apply(this,arguments)||this;x.userSelection={left:null,right:null};x.scrollAction="lock";x.isEmojiDraftInProgress=!1;return x};
_.m(NC,_.n);_.a=NC.prototype;_.a.onClick=function(x){x=_.uo(x);x instanceof HTMLImageElement&&this.selectOrUpdateEmoji(x)};
_.a.selectOrUpdateEmoji=function(x){var G=x.getAttribute("selection");G&&(G==="default"?_.h$(this.hostElement,"yt-emoji-select",_.$b(this.emojiManager,x.id)):G==="left"?this.userSelection=Object.assign({},this.userSelection,{left:x.src}):G==="right"?this.userSelection=Object.assign({},this.userSelection,{right:x.src}):G==="user"&&this.userSelection.left&&this.userSelection.right&&_.h$(this.hostElement,"yt-emoji-select",_.$b(this.emojiManager,x.id)))};
_.a.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.a.onMultiSelectorThumbnailRowChanged=function(){var x,G,D;((x=this.data)==null?0:(G=x.emoji)==null?0:(D=G.multiSelectorThumbnailRow)==null?0:D.length)&&this.openSelector()};
_.a.getThumbnailFromEmojiRow=function(x){var G,D;return(x==null?void 0:(G=x.thumbnails)==null?void 0:(D=G[0])==null?void 0:D.url)||""};
_.a.getEmojiAltTextForPartialSelector=function(x){var G;return((G=this.getThumbnailFromEmojiRow(x).match(ado))==null?void 0:G[0])||""};
_.a.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.a.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.a.getRowSelection=function(x){return["left","right"][x]};
_.a.getIdFromComposedEmoji=function(x){return(x==null?void 0:x.emojiId)||""};
_.a.getEmojiFromPartialSelections=function(x,G){if(!x&&!G)return null;var D,K,z=(D=this.data)==null?void 0:(K=D.emoji)==null?void 0:K.variantIds;if(!z||!z.length)return null;var y;x=(y=x.match(zhk))==null?void 0:y[0];var c;G=(c=G.match(zhk))==null?void 0:c[0];if(!x||!G)return null;var W=ofh.get(x);c=ofh.get(G);if(W===c){c=Array.from(ofh.values()).filter(function(Q){return Q!==W}).join("|");
var e=new RegExp("^((?!("+c+")).)*"+W+"$")}else e=new RegExp(W+".*"+c);return(z=z.find(function(Q){return e.test(Q)}))&&_.$b(this.emojiManager,z)||null};
_.a.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var x,G=this.ytEmojiSelectorBehavior.emojiUrl(((x=this.data.emoji)==null?void 0:x.emojiId)||"");_.kA(this.hostElement).querySelector('[selection="user"]').src.includes(G)||(this.isEmojiDraftInProgress=!0)}};
_.a.onDomChange=function(){xIs(this.ytEmojiSelectorBehavior)};
_.a.getFocusableElements=function(){return _.kA(this.hostElement).querySelectorAll("img").filter(function(x){return x.getAttribute("role")==="option"})};
_.a.changeFocus=function(x){var G=this.getFocusableElements();G!=null&&G.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+x+G.length)%G.length,this.ytEmojiSelectorBehavior.focusedIndex<G.length&&(x=G[this.ytEmojiSelectorBehavior.focusedIndex])&&x.focus())};
_.a.onKeyboardEnter=function(){var x=this.getFocusableElements();x!=null&&x.length&&(x=x[this.ytEmojiSelectorBehavior.focusedIndex])&&x instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(x),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.Nq.Object.defineProperties(NC.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var x=this,G,D,K;return this.emojiManager&&((G=this.data)==null?0:(D=G.emoji)==null?0:(K=D.variantIds)==null?0:K.length)?this.data.emoji.variantIds.map(function(z){return!!z&&_.$b(x.emojiManager,z)}).filter(function(z){return!!z}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var x,G=(x=this.userSelection)==null?void 0:x.left,D;x=(D=this.userSelection)==null?void 0:D.right;return G&&x?this.getEmojiFromPartialSelections(G,x):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.composedEmojiSelection)==null?0:x.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var G;x=(G=this.userSelection)==null?void 0:G.left;var D;G=(D=this.userSelection)==null?void 0:D.right;if(!x&&!G){var K;return this.ytEmojiSelectorBehavior.emojiUrl(((K=this.data.emoji)==null?void 0:K.emojiId)||"")}return x&&!G?x:!x&&G?G:""}}});
NC.prototype.onMultiSelectorThumbnailRowChanged=NC.prototype.onMultiSelectorThumbnailRowChanged;NC.prototype.onClick=NC.prototype.onClick;_.q([_.I(_.Ud),_.N("design:type",Object)],NC.prototype,"ironOverlayBehavior",void 0);_.q([_.I(GV0),_.N("design:type",Object)],NC.prototype,"ytEmojiSelectorBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],NC.prototype,"data",void 0);_.q([_.R(),_.N("design:type",_.Hx)],NC.prototype,"emojiManager",void 0);
_.q([_.R(),_.N("design:type",Object)],NC.prototype,"userSelection",void 0);_.q([_.R(),_.N("design:type",Object)],NC.prototype,"scrollAction",void 0);_.q([_.R(),_.N("design:type",Object)],NC.prototype,"isEmojiDraftInProgress",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],NC.prototype,"emojiVariants",null);_.q([_.U("data","userSelection"),_.N("design:type",Object),_.N("design:paramtypes",[])],NC.prototype,"composedEmojiSelection",null);
_.q([_.oe("click"),_.N("design:type",Function),_.N("design:paramtypes",[MouseEvent]),_.N("design:returntype")],NC.prototype,"onClick",null);_.q([_.yf("data.emoji.multiSelectorThumbnailRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NC.prototype,"onMultiSelectorThumbnailRowChanged",null);_.q([_.U("data","userSelection","composedEmojiSelection"),_.N("design:type",String),_.N("design:paramtypes",[])],NC.prototype,"draftEmojiUrl",null);
NC=_.q([_.HD({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],NC);
_.w(NC,"yt-emoji-multi-person-selector",function(){if(Kmo===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;DIo===void 0&&(DIo=document.createElement("template"));var K=DIo;D.call(G,K.content.cloneNode(!0),x.content.firstChild);Kmo=x}x=Kmo;return x},{mode:2});var yCi;var ld7;var vx=function(){var x=_.n.apply(this,arguments)||this;x.tooltip_=null;return x};
_.m(vx,_.n);_.a=vx.prototype;_.a.dataChanged_=function(){var x;if((x=this.data)==null?0:x.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.kA(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.D6)(this.tooltip_).textContent=this.data.tooltip};
_.a.computeTargetId=function(){var x;return((x=this.data)==null?void 0:x.targetId)||""};
_.a.computeId_=function(x){return x};
_.a.computeIcon_=function(x){return _.aP(x)};
_.a.onTap_=function(){this.active=!this.active;_.h$(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.a.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Xt("active-changed",this.active))};
_.Nq.Object.defineProperties(vx.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var x,G;if((x=this.data)==null?0:(G=x.icon)==null?0:G.iconType)return this.data.icon.iconType==="SUPER_STICKER";var D,K;return((D=this.data)==null?void 0:(K=D.icon)==null?void 0:K.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
vx.prototype.activeChangedForBinding=vx.prototype.activeChangedForBinding;vx.prototype.dataChanged_=vx.prototype.dataChanged_;_.q([_.I(_.IQ.YtLiveChatTooltipTargetingBehavior),_.N("design:type",Object)],vx.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],vx.prototype,"data",void 0);_.q([_.R({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.N("design:type",String)],vx.prototype,"id",void 0);
_.q([_.R({computed:"computeTargetId(data.targetId)"}),_.N("design:type",String)],vx.prototype,"targetId",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],vx.prototype,"active",void 0);_.q([_.R({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.N("design:type",String)],vx.prototype,"icon",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vx.prototype,"dataChanged_",null);
_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],vx.prototype,"iconFilled",null);_.q([_.yf("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vx.prototype,"activeChangedForBinding",null);vx=_.q([_.HD({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],vx);
_.w(vx,"yt-emoji-picker-category-button-renderer",function(){if(ld7===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;yCi===void 0&&(yCi=document.createElement("template"));var K=yCi;D.call(G,K.content.cloneNode(!0),x.content.firstChild);ld7=x}x=ld7;return x},{mode:2});var cCh;var T77;var JX=function(){var x=_.n.apply(this,arguments)||this;x.ariaLabel=null;x.ariaActivedescendant=null;x.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};x.JSC$12056_ignoreNextFocus_=!1;x.longPressTimeoutId=-1;return x};
_.m(JX,_.n);_.a=JX.prototype;_.a.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.a.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.a.emojiChanged_=function(){this.changeFocus_(0,!1);for(var x=_.en(),G=0;G<this.emoji.length;G++){var D={veType:88013,elementIndex:G},K=this.emoji[G];K.isCustomEmoji&&(K=document.querySelector(("#"+K.emojiId).replace("/","\\/")))&&(D=_.Wh(x,D))&&(K.visualElement=D)}};
_.a.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.a.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.a.emojiSkinToneChanged_=function(x){this.skinTone=x};
_.a.dataChanged=function(){this.data&&this.data.emojiData&&GqZ(this.emojiManager,this.data.emojiData)};
_.a.emojiUrl=function(x){x=this.getEmoji(x);if(!x)return"";var G;x=(G=x.image)==null?void 0:G.thumbnails;return _.k$(x,24)||""};
_.a.emojiAlt=function(x){var G=this.get("image.accessibility.accessibilityData.label",x);return G?G:x.isCustomEmoji?x.shortcuts[0]:x.emojiId};
_.a.emojiAriaLabel=function(x){return x.shortcuts?x.shortcuts[0]:""};
_.a.emojiAriaSelected=function(x,G,D){return x&&D==G?"true":"false"};
_.a.getEmoji=function(x){if(this.emojiManager)return this.shouldUseStickyPreferences?K4k(this.emojiManager,x):Ft(this.emojiManager,x)};
_.a.computeId_=function(x){return x.categoryId||""};
_.a.computeEmoji=function(x){var G=this;return this.emojiManager?x.emojiIds?x.emojiIds.map(function(D){return D?_.$b(G.emojiManager,D):null}).filter(VtL):x.emojiData?x.emojiData.map(function(D){var K=!!D.emojiId&&_.$b(G.emojiManager,D.emojiId);
return K?Object.assign({},K,D):null}).filter(VtL):[]:[]};
_.a.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.a.computeAriaLabel_=function(x){return _.u7(x)};
_.a.computeAriaActivedescendant_=function(x,G){return x&&x[G]?x[G].emojiId||"":""};
_.a.handleLongPressEmojiWithVariants=function(x,G){this.changeFocusToEmoji(x.emojiId,!1);this.openVariantSelector(x,G)};
_.a.onMouseDown=function(x){var G=this;this.hostElement!==document.activeElement&&(this.JSC$12056_ignoreNextFocus_=!0);if(x.button===0){var D=_.uo(x);if(D instanceof HTMLImageElement){var K=_.kA(this.hostElement).querySelector("#repeat").itemForElement(D);this.emojiContainsVariants(K)&&(this.longPressTimeoutId=setTimeout(function(){G.handleLongPressEmojiWithVariants(K,D)},500))}}};
_.a.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.a.onFocus=function(){this.JSC$12056_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$12056_ignoreNextFocus_=!1};
_.a.onBlur_=function(){this.showFocus=!1};
_.a.emojiContainsVariants=function(x){return!!(x&&x.variantIds&&x.variantIds.length)};
_.a.onClick=function(x){clearTimeout(this.longPressTimeoutId);x=_.uo(x);if(x instanceof HTMLImageElement){var G=x.id;this.changeFocusToEmoji(G,!1);var D=this.getEmoji(G),K;if(K=this.shouldUseStickyPreferences&&this.emojiContainsVariants(D)){var z;K=!((z=this.emojiManager.emojiMap[G])!=null&&z.stickyPrefId)}K?(z=_.kA(this.hostElement).querySelector("#repeat").itemForElement(x),this.openVariantSelector(z,x)):_.h$(this.hostElement,"yt-emoji-select",D)}};
_.a.isActiveEmojiWithVariants=function(x,G){return x&&G?G.stickyPrefId?x===G.stickyPrefId:x===G.emojiId:!1};
_.a.onCloseEmojiVariantSelector=function(x){this.activeEmojiWithVariantsId===x&&(this.activeEmojiWithVariantsId="")};
_.a.onMouseOver_=function(x){x=_.uo(x);x instanceof HTMLImageElement&&_.h$(this.hostElement,"yt-emoji-hover",_.$b(this.emojiManager,x.id))};
_.a.changeFocus_=function(x,G){this.focusedIndex=(this.focusedIndex+x+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(x=this.emoji[this.focusedIndex],G&&(this.showFocus=!0,_.kA(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.h$(this.hostElement,"yt-emoji-hover",x)))};
_.a.changeFocusToEmoji=function(x,G){if(x){var D=this.emoji.findIndex(function(K){return K.emojiId===x});
D!==-1&&this.changeFocus_(D-this.focusedIndex,G)}};
_.a.onKeyDown_=function(x){switch(x.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var G=this.emoji[this.focusedIndex];if(G&&G.emojiId){if(this.emojiContainsVariants(G)){var D=_.kA(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(G,D)}else _.h$(this.hostElement,"yt-emoji-select",Ft(this.emojiManager,G.emojiId)),this.hostElement.focus();x.preventDefault()}}break;case 40:this.changeFocus_(1,!0);x.preventDefault();break;case 38:this.changeFocus_(-1,!0),
x.preventDefault()}};
_.a.onEmojiStickyPreferenceChanged=function(x,G){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&x.emojiId&&x.variantIds&&x.variantIds.includes(G)&&this.activeEmojiWithVariantsId!==G&&this.setStickyEmojiPreference(x.emojiId,G)};
_.a.openVariantSelector=function(x,G){this.activeEmojiWithVariantsId=x.stickyPrefId||x.emojiId||"";_.h$(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:x,target:G})};
_.a.setStickyEmojiPreference=function(x,G){if(this.data){var D=this.emoji.findIndex(function(z){return z.emojiId===x});
if(D!==-1){var K=this.emoji[D];K.stickyPrefId=G;this.set("emoji."+D,Object.assign({},K));this.activeEmojiWithVariantsId=G}}};
JX.prototype.onKeyDown_=JX.prototype.onKeyDown_;JX.prototype.onMouseOver_=JX.prototype.onMouseOver_;JX.prototype.onClick=JX.prototype.onClick;JX.prototype.onBlur_=JX.prototype.onBlur_;JX.prototype.onFocus=JX.prototype.onFocus;JX.prototype.onMouseUp=JX.prototype.onMouseUp;JX.prototype.onMouseDown=JX.prototype.onMouseDown;JX.prototype.dataChanged=JX.prototype.dataChanged;JX.prototype.disableIncrementalLoadingChanged_=JX.prototype.disableIncrementalLoadingChanged_;JX.prototype.emojiManagerChanged_=JX.prototype.emojiManagerChanged_;
JX.prototype.emojiChanged_=JX.prototype.emojiChanged_;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],JX.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],JX.prototype,"data",void 0);_.q([_.R({computed:"computeId_(data)"}),_.N("design:type",String)],JX.prototype,"id",void 0);_.q([_.R({computed:"computeEmoji(data)"}),_.N("design:type",Array)],JX.prototype,"emoji",void 0);_.q([_.R(),_.N("design:type",Number)],JX.prototype,"skinTone",void 0);
_.q([_.R(),_.N("design:type",_.Hx)],JX.prototype,"emojiManager",void 0);_.q([_.R(),_.N("design:type",Boolean)],JX.prototype,"disableIncrementalLoading",void 0);_.q([_.R({value:0}),_.N("design:type",Number)],JX.prototype,"focusedIndex",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],JX.prototype,"showFocus",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.N("design:type",Object)],JX.prototype,"ariaLabel",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.N("design:type",Object)],JX.prototype,"ariaActivedescendant",void 0);_.q([_.R({value:60}),_.N("design:type",Number)],JX.prototype,"domRepeatTargetFramerate",void 0);_.q([_.R({value:1}),_.N("design:type",Number)],JX.prototype,"domRepeatInitialCount",void 0);_.q([_.R({value:""}),_.N("design:type",String)],JX.prototype,"activeEmojiWithVariantsId",void 0);
_.q([_.R({value:!1}),_.N("design:type",Boolean)],JX.prototype,"shouldUseStickyPreferences",void 0);_.q([_.yf("emoji"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],JX.prototype,"emojiChanged_",null);_.q([_.yf("emojiManager"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],JX.prototype,"emojiManagerChanged_",null);
_.q([_.yf("disableIncrementalLoading"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],JX.prototype,"disableIncrementalLoadingChanged_",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],JX.prototype,"dataChanged",null);_.q([_.oe("mousedown"),_.N("design:type",Function),_.N("design:paramtypes",[Object]),_.N("design:returntype")],JX.prototype,"onMouseDown",null);
_.q([_.oe("mouseup"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],JX.prototype,"onMouseUp",null);_.q([_.oe("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],JX.prototype,"onFocus",null);_.q([_.oe("blur"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],JX.prototype,"onBlur_",null);
_.q([_.oe("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],JX.prototype,"onClick",null);_.q([_.oe("mouseover"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],JX.prototype,"onMouseOver_",null);_.q([_.oe("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],JX.prototype,"onKeyDown_",null);
JX=_.q([_.HD({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],JX);
_.w(JX,"yt-emoji-picker-category-renderer",function(){if(T77===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;cCh===void 0&&(cCh=document.createElement("template"));var K=cCh;D.call(G,K.content.cloneNode(!0),x.content.firstChild);T77=x}x=T77;return x},{mode:2});var Wmh;var eh0;var Z8o;var Mvh;var fh=function(){var x=_.n.apply(this,arguments)||this;x.ariaLabel=null;x.ariaActivedescendant=null;x.getFormattedStringRawText=_.u7;x.JSC$12062_ignoreNextFocus_=!1;return x};
_.m(fh,_.n);_.a=fh.prototype;_.a.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")};
_.a.emojiUrl=function(x){var G,D;x=(G=Ft(this.emojiManager,x,!0))==null?void 0:(D=G.image)==null?void 0:D.thumbnails;return _.k$(x,24)||""};
_.a.emojiAlt=function(x){var G=this.get("image.accessibility.accessibilityData.label",x);return G?G:x.isCustomEmoji?x.shortcuts[0]:x.emojiId};
_.a.emojiId=function(x){return"emoji"+x};
_.a.computeId_=function(x){return x.categoryId||""};
_.a.computeAriaActivedescendant_=function(x){return this.emoji&&x<this.emoji.length?this.emojiId(x):""};
_.a.emojiChanged_=function(){this.changeFocus_(0,!1);for(var x=_.en(),G=0;G<this.emoji.length;G++){var D={veType:88013,elementIndex:G},K=this.emoji[G];K.isCustomEmoji&&(K=document.querySelector(("#"+K.emojiId).replace("/","\\/")))&&(D=_.Wh(x,D))&&(K.visualElement=D)}};
_.a.computeEmoji_=function(x){var G=this;return this.emojiManager?x.emojiIds.map(function(D){return _.$b(G.emojiManager,D,!0)}).filter(bRD):[]};
_.a.titleOffsetChanged_=function(){var x=this.hostElement.getBoundingClientRect(),G=_.kA(this.hostElement).querySelector("#title").getBoundingClientRect();x=Math.max(0,Math.min(this.titleOffset,x.height-G.height));_.kA(this.hostElement).querySelector("#title").style.top=x+"px"};
_.a.onEmojiMouseOver_=function(x){_.h$(this.hostElement,"yt-emoji-hover",x.model.item)};
_.a.onEmojiTap_=function(x){this.data.command&&(x=$rP(_.Eo().resolve(_.P6(nE)),this.data.command,x),_.h$(this.hostElement,"yt-navigate",x))};
_.a.emojiAriaLabel=function(x){return x.shortcuts[0]};
_.a.emojiAriaSelected=function(x,G,D){return x&&D==G?"true":"false"};
_.a.changeFocus_=function(x,G){var D=this.emoji.length;this.focusedIndex=(this.focusedIndex+x+D)%D;x=this.emoji[this.focusedIndex];if(G){var K;(K=_.kA(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||K.scrollIntoView(!1);_.h$(this.hostElement,"yt-emoji-hover",x)}};
_.a.onMouseDown_=function(){this.JSC$12062_ignoreNextFocus_=!0};
_.a.onFocus_=function(){this.JSC$12062_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$12062_ignoreNextFocus_=!1};
_.a.onBlur_=function(){this.showFocus=!1};
_.a.onKeyDown_=function(x){switch(x.keyCode){case 13:this.onEmojiTap_(x);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);x.preventDefault();break;case 38:this.changeFocus_(-1,!0),x.preventDefault()}};
fh.prototype.onKeyDown_=fh.prototype.onKeyDown_;fh.prototype.onBlur_=fh.prototype.onBlur_;fh.prototype.onFocus_=fh.prototype.onFocus_;fh.prototype.onMouseDown_=fh.prototype.onMouseDown_;fh.prototype.onEmojiTap_=fh.prototype.onEmojiTap_;fh.prototype.titleOffsetChanged_=fh.prototype.titleOffsetChanged_;fh.prototype.emojiChanged_=fh.prototype.emojiChanged_;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],fh.prototype,"ytComponentBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],fh.prototype,"data",void 0);_.q([_.R({computed:"computeId_(data)"}),_.N("design:type",String)],fh.prototype,"id",void 0);_.q([_.R({computed:"computeEmoji_(data)"}),_.N("design:type",Array)],fh.prototype,"emoji",void 0);_.q([_.R({value:0}),_.N("design:type",Number)],fh.prototype,"titleOffset",void 0);_.q([_.R({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.N("design:type",Object)],fh.prototype,"ariaLabel",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.N("design:type",Object)],fh.prototype,"ariaActivedescendant",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],fh.prototype,"showFocus",void 0);_.q([_.R({value:0}),_.N("design:type",Number)],fh.prototype,"focusedIndex",void 0);_.q([_.R(),_.N("design:type",_.Hx)],fh.prototype,"emojiManager",void 0);
_.q([_.yf("emoji"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fh.prototype,"emojiChanged_",null);_.q([_.yf("titleOffset"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fh.prototype,"titleOffsetChanged_",null);_.q([_.oe("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],fh.prototype,"onEmojiTap_",null);
_.q([_.oe("mousedown"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fh.prototype,"onMouseDown_",null);_.q([_.oe("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fh.prototype,"onFocus_",null);_.q([_.oe("blur"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fh.prototype,"onBlur_",null);
_.q([_.oe("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],fh.prototype,"onKeyDown_",null);fh=_.q([_.HD({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],fh);
_.w(fh,"yt-emoji-picker-upsell-category-renderer",function(){if(Mvh===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;Z8o===void 0&&(Z8o=document.createElement("template"));var K=Z8o;D.call(G,K.content.cloneNode(!0),x.content.firstChild);Mvh=x}x=Mvh;return x},{mode:2});var QuJ;var pc9;var tX=function(){var x=_.n.apply(this,arguments)||this;x.scrollAction="lock";x.verticalAlign="top";return x};
_.m(tX,_.n);_.a=tX.prototype;_.a.onClick=function(x){x=_.uo(x);x instanceof HTMLImageElement&&_.h$(this.hostElement,"yt-emoji-select",_.$b(this.emojiManager,x.id))};
_.a.openSelector=function(){this.ironOverlayBehavior.open()};
_.a.onDomChange=function(){xIs(this.ytEmojiSelectorBehavior)};
_.a.computeIsFamilySelector=function(x){var G;return(x==null?void 0:(G=x.emoji)==null?void 0:G.emojiId)==="\ud83d\udc6a"};
_.a.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var x=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];x&&x.emojiId&&(_.h$(this.hostElement,"yt-emoji-select",_.$b(this.emojiManager,x.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.Nq.Object.defineProperties(tX.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var x=this,G,D,K;return this.emojiManager&&((G=this.data)==null?0:(D=G.emoji)==null?0:(K=D.variantIds)==null?0:K.length)?this.data.emoji.variantIds.map(function(z){return!!z&&_.$b(x.emojiManager,z)}).filter(function(z){return!!z}):[]}}});
tX.prototype.onClick=tX.prototype.onClick;_.q([_.I(_.Ud),_.N("design:type",Object)],tX.prototype,"ironOverlayBehavior",void 0);_.q([_.I(GV0),_.N("design:type",Object)],tX.prototype,"ytEmojiSelectorBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],tX.prototype,"data",void 0);_.q([_.R(),_.N("design:type",_.Hx)],tX.prototype,"emojiManager",void 0);_.q([_.R(),_.N("design:type",Object)],tX.prototype,"scrollAction",void 0);_.q([_.R(),_.N("design:type",Object)],tX.prototype,"verticalAlign",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.N("design:type",Boolean)],tX.prototype,"isFamilySelector",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],tX.prototype,"emojiVariants",null);_.q([_.oe("click"),_.N("design:type",Function),_.N("design:paramtypes",[MouseEvent]),_.N("design:returntype")],tX.prototype,"onClick",null);tX=_.q([_.HD({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],tX);
_.w(tX,"yt-emoji-variant-selector",function(){if(pc9===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;QuJ===void 0&&(QuJ=document.createElement("template"));var K=QuJ;D.call(G,K.content.cloneNode(!0),x.content.firstChild);pc9=x}x=pc9;return x},{mode:2});var Vvu=/:/g,b87=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],kb=function(){var x=_.n.apply(this,arguments)||this;x.emojiVariantSelector=null;x.emojiMultiPersonSelector=null;x.identity=_.gn;x.lastAnimationTime_=0;x.animationStart_=null;x.animationEnd_=null;return x};
_.m(kb,_.n);_.a=kb.prototype;
_.a.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}}};
_.a.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.Ch)};
_.a.attached=function(){_.E$&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&Do8(this.emojiManager)};
_.a.dataChanged=function(){var x;if((x=this.data)==null?0:x.categories){x=this.emojiManager;var G=this.getCustomEmojiIds();x.pickerCustomEmojiIds=[].concat(_.B5(k6E),_.B5(G))}};
_.a.getCustomEmojiIds=function(){var x,G=(x=this.data.categories)==null?void 0:x.find(function(y){var c;return((c=y.emojiPickerCategoryRenderer)==null?void 0:c.categoryId)&&b87.includes(y.emojiPickerCategoryRenderer.categoryId)}),D;
x=(D=this.data.categories)==null?void 0:D.find(function(y){return y.emojiPickerUpsellCategoryRenderer});
var K,z;return[G==null?void 0:(K=G.emojiPickerCategoryRenderer)==null?void 0:K.emojiIds,x==null?void 0:(z=x.emojiPickerUpsellCategoryRenderer)==null?void 0:z.emojiIds].flat().filter(function(y){return!!y})};
_.a.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.a.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.a.updateCategoriesAndPlaceholderInternal=function(x,G){var D=this;x&&G&&(this.categories=x.categories||[],this.categoryButtons=x.categoryButtons||[],this.resetPlaceholder(),this.search="",_.Xw(function(){D.updateButtons_()}))};
_.a.computeId_=function(x){return x.id||""};
_.a.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(x){return x.emojiPickerCategoryRenderer&&x.emojiPickerCategoryRenderer.emojiData}):!1};
_.a.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.a.onShowEmojiVariantSelector=function(x){var G=x.detail.emojiData;G.variantIds&&G.variantIds.length&&(G.multiSelectorThumbnailRow&&G.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:G,target:x.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:G,target:x.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.a.onIronOverlayClosed=function(x){var G=K4k(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");G&&x.composedPath&&(x.composedPath().includes(_.kA(this.hostElement).querySelector("#emoji-variant-selector"))||x.composedPath().includes(_.kA(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.xO(this.hostElement,"yt-close-emoji-variant-selector",[G.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.a.onEmojiVariantSelectorMouseup=function(x){var G=x.target.firstChild;this.variantSelectorOpened&&G&&_.Xw(function(){G.noCancelOnOutsideClick=!1},100)};
_.a.onEmojiVariantSelectorMousedown=function(x){x=x.target.firstChild;this.variantSelectorOpened&&x&&(x.noCancelOnOutsideClick=!1)};
_.a.onSelectCategory_=function(x){var G=this.search!="";this.search="";for(var D=_.kA(this.hostElement).querySelector("#categories").children,K=0;K<D.length;K++){var z=D[K];if(z.id==x.detail.categoryId){G?(_.kA(this.hostElement).querySelector("#categories").scrollTop=z.offsetTop,this.updateButtons_()):(this.animationStart_=_.kA(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=z.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.a.onEmojiHover_=function(x){this.placeholder=x.detail.shortcuts?x.detail.shortcuts[0]:""};
_.a.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.a.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.a.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.a.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.a.computeSearchCategory_=function(x){x=x.replace(Vvu,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();x=x.split(" ");for(var G=[],D=this.emojiManager.emojis,K=0;K<D.length;K++){var z=D[K];if(z.searchTerms)for(var y=0;y<z.searchTerms.length;y++){for(var c=z.searchTerms[y].toLocaleLowerCase(),W=!1,e=0;e<x.length;e++)if(c.indexOf(x[e])!=-1){W=!0;break}if(W&&(!z.isCustomEmoji||!z.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(z.emojiId))){G.push(z.emojiId);
break}}}return{categoryId:-1,emojiIds:G}};
_.a.computeSearchEmptyMessage_=function(x,G){return x&&G&&G.emojiIds&&G.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.a.computeSearching_=function(x){return this.emojiManager&&x.replace(Vvu,"").length>1};
_.a.computeSkinToneHidden=function(){var x;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((x=this.data)==null||!x.hideSkinTonePicker)};
_.a.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.a.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.a.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.a.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.a.selectSkinTone_=function(x){x=Number(x.target.getAttribute("tone"));this.set("emojiManager.skinTone",x);_.xO(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[x]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.a.skinToneChanged_=function(){_.kA(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var x=_.kA(this.hostElement).querySelector("#dropdown-content").children,G=0;G<x.length;G++)G===this.skinTone?x[G].setAttribute("selected",""):x[G].removeAttribute("selected")};
_.a.animateScroll_=function(x){this.lastAnimationTime_||(this.lastAnimationTime_=x);x-=this.lastAnimationTime_;x<200?(_.kA(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*x/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.kA(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.a.searchChanged_=function(){this.updateButtons_()};
_.a.updateButtons_=function(){var x=null;if(!this.search)for(var G=_.kA(this.hostElement).querySelector("#categories").scrollTop,D=_.kA(this.hostElement).querySelector("#categories").children,K=0;K<D.length;K++){var z=D[K];z.offsetTop<=G&&(x=z.id)}G=_.kA(this.hostElement).querySelector("#category-buttons").children;for(D=0;D<G.length;D++)K=G[D],K.active=K.id===x};
kb.prototype.searchChanged_=kb.prototype.searchChanged_;kb.prototype.skinToneChanged_=kb.prototype.skinToneChanged_;kb.prototype.onEmojiHover_=kb.prototype.onEmojiHover_;kb.prototype.onSelectCategory_=kb.prototype.onSelectCategory_;kb.prototype.onShowEmojiVariantSelector=kb.prototype.onShowEmojiVariantSelector;kb.prototype.updateCategoriesAndPlaceholder_=kb.prototype.updateCategoriesAndPlaceholder_;kb.prototype.dataChanged=kb.prototype.dataChanged;
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],kb.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],kb.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],kb.prototype,"data",void 0);_.q([_.R({value:function(){return[]}}),
_.N("design:type",Array)],kb.prototype,"categories",void 0);_.q([_.R({value:function(){return[]}}),
_.N("design:type",Array)],kb.prototype,"categoryButtons",void 0);_.q([_.R({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.N("design:type",Boolean)],kb.prototype,"disableScroll",void 0);_.q([_.R({computed:"computeId_(data)",reflectToAttribute:!0}),_.N("design:type",String)],kb.prototype,"id",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],kb.prototype,"selected",void 0);
_.q([_.R({value:!1}),_.N("design:type",Boolean)],kb.prototype,"disableIncrementalLoading",void 0);_.q([_.R(),_.N("design:type",String)],kb.prototype,"placeholder",void 0);_.q([_.R({value:""}),_.N("design:type",String)],kb.prototype,"search",void 0);_.q([_.R({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.N("design:type",Boolean)],kb.prototype,"searching",void 0);_.q([_.R({computed:"computeSearchCategory_(search)"}),_.N("design:type",Object)],kb.prototype,"searchCategory",void 0);
_.q([_.R({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.N("design:type",Object)],kb.prototype,"searchEmptyMessage",void 0);_.q([_.R({computed:"identity(emojiManager.skinTone)"}),_.N("design:type",Number)],kb.prototype,"skinTone",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],kb.prototype,"skinToneOpened",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],kb.prototype,"variantSelectorOpened",void 0);
_.q([_.R({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.N("design:type",Boolean)],kb.prototype,"skinToneHidden",void 0);_.q([_.R(),_.N("design:type",_.Hx)],kb.prototype,"emojiManager",void 0);_.q([_.R(),_.N("design:type",Object)],kb.prototype,"emojiVariantSelector",void 0);_.q([_.R(),_.N("design:type",Object)],kb.prototype,"emojiMultiPersonSelector",void 0);
_.q([_.R({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.N("design:type",Boolean)],kb.prototype,"shouldUseStickyPreferences",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kb.prototype,"dataChanged",null);_.q([_.yf("data","selected"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kb.prototype,"updateCategoriesAndPlaceholder_",null);
_.q([_.oe("yt-show-emoji-variant-selector"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],kb.prototype,"onShowEmojiVariantSelector",null);_.q([_.oe("yt-emoji-picker-select-category"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],kb.prototype,"onSelectCategory_",null);_.q([_.oe("yt-emoji-hover"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],kb.prototype,"onEmojiHover_",null);
_.q([_.yf("skinTone"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kb.prototype,"skinToneChanged_",null);_.q([_.yf("search"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kb.prototype,"searchChanged_",null);kb=_.q([_.HD({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],kb);
_.w(kb,"yt-emoji-picker-renderer",function(){if(eh0===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;Wmh===void 0&&(Wmh=document.createElement("template"));var K=Wmh;D.call(G,K.content.cloneNode(!0),x.content.firstChild);eh0=x}x=eh0;return x},{mode:2});var Px=function(){var x=_.n.apply(this,arguments)||this;x.emojiManager=_.Ch;x.isDarkTheme=document.documentElement.hasAttribute("dark");x.selectedIndex=1;x.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return x};
_.m(Px,_.n);_.a=Px.prototype;_.a.handleEmojiCustomizationVisible=function(x){this.emojiPickerRenderer.selected=x;this.selectedIndex=1;x?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.a.emojiCustomizationSetChanged=function(){var x;(x=this.data)!=null&&x.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.yJ(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.a.updateSaveButtonState=function(x){var G;(G=this.data)!=null&&G.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.cq("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:x}))};
_.a.emojiUrl=function(x){x=_.$b(this.emojiManager,x);if(!x)return"";var G;x=(G=x.image)==null?void 0:G.thumbnails;return _.k$(x,24)||""};
_.a.emojiAlt=function(x){var G=_.$b(this.emojiManager,x);if(!G)return x;var D,K,z,y=(G==null?void 0:(D=G.image)==null?void 0:(K=D.accessibility)==null?void 0:(z=K.accessibilityData)==null?void 0:z.label)||"";return y?y:G.isCustomEmoji?G.shortcuts[0]:G.emojiId||x};
_.a.emojiAriaLabel=function(x){var G,D;return((G=_.$b(this.emojiManager,x))==null?void 0:(D=G.shortcuts)==null?void 0:D[0])||x};
_.a.onEmojiClick=function(x){x.model.index!==0&&(this.selectedIndex=x.model.index)};
_.a.onEmojiSelect=function(x){x=x.detail;var G,D;((G=this.data)==null?0:G.emojiCustomizationSetEntityKey)&&((D=this.emojiCustomizationSet)==null?0:D.emojiId)&&x.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,x.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.cq("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,x.emojiId,this.selectedIndex)}))};
_.a.canEditEmoji=function(x,G,D){x=x.indexOf(G);return x===D||x===0||D===0?!1:!0};
_.a.getUpdatedEmojiIdList=function(x,G,D){var K=x.indexOf(G);x=[].concat(_.B5(x));K>=0&&(x[K]=x[D]);x[D]=G;return x};
_.Nq.Object.defineProperties(Px,{template:{configurable:!0,enumerable:!0,get:function(){if(njo===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;S80===void 0&&(S80=document.createElement("template"));var K=S80;D.call(G,K.content.cloneNode(!0),x.content.firstChild);njo=x}x=njo;return x}}});
Px.prototype.onEmojiSelect=Px.prototype.onEmojiSelect;_.q([_.I(_.CF),_.N("design:type",Object)],Px.prototype,"ytLiveChatReduxBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],Px.prototype,"ytActionHandlerBehavior",void 0);_.q([_.cD("yt-emoji-picker-renderer"),_.N("design:type",Object)],Px.prototype,"emojiPickerRenderer",void 0);
_.q([_.R({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(x,G){return _.zm(x.entities,"emojiCustomizationSetEntity",G)},
observer:"emojiCustomizationSetChanged"}),_.N("design:type",Object)],Px.prototype,"emojiCustomizationSet",void 0);_.q([_.R(),_.N("design:type",Object)],Px.prototype,"originalEmojiSet",void 0);_.q([_.R(),_.N("design:type",_.Hx)],Px.prototype,"emojiManager",void 0);_.q([_.R(),_.N("design:type",Object)],Px.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Px.prototype,"isDarkTheme",void 0);_.q([_.R(),_.N("design:type",Object)],Px.prototype,"selectedIndex",void 0);
_.q([_.oe("yt-emoji-select"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Px.prototype,"onEmojiSelect",null);Px=_.q([_.HD({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],Px);var LmZ;var B77;var rCh;var sus;var EC=function(){var x=_.n.apply(this,arguments)||this;x.authorBadges=[];return x};
_.m(EC,_.n);_.a=EC.prototype;_.a.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.a.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]]"}}}}}};
_.a.dataChanged=function(){var x=xn3(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",x)};
_.a.updateMessage=function(){var x=this.data.message,G=_.kA(_.kA(this.hostElement).querySelector("#message"));G.textContent="";x&&G.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(x))};
_.a.shouldSupportWholeItemClick=function(){return!0};
_.a.onShowOriginalClick=function(x){x.preventDefault();this.showOriginal=!0};
_.a.computeShowBar=function(x,G,D){return x&&G||D};
_.a.computeAuthorBadges=function(x){return x.authorBadges||[]};
_.a.computeAuthorIsOwner=function(x){return!!GDd(x.authorBadges,"owner")};
_.a.computeAuthorNameColor=function(x){var G;if(_.B("live_chat_author_name_color_usernames")&&(x==null?0:(G=x.authorName)==null?0:G.simpleText))return _.yJE(_.lZQ(x.authorName.simpleText));if(_.B("live_chat_seed_color_usernames")&&(x==null?0:x.authorSeedColorArgb))return _.yJE(_.Kz(x.authorSeedColorArgb));if(_.B("live_chat_colored_usernames"))return"#cc0000";var D;return _.B("live_chat_simple_color_usernames")&&(x==null?0:(D=x.authorName)==null?0:D.simpleText)&&(x==null?0:x.authorUsernameColorLight)&&
(x==null?0:x.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.Kz(x.authorUsernameColorDark):_.Kz(x.authorUsernameColorLight):""};
EC.prototype.updateMessage=EC.prototype.updateMessage;EC.prototype.dataChanged=EC.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],EC.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.IJ.YtLiveChatItemBehavior),_.N("design:type",_.jM)],EC.prototype,"ytLiveChatItemBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],EC.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],EC.prototype,"data",void 0);
_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],EC.prototype,"showOriginal",void 0);_.q([_.R({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.N("design:type",Boolean)],EC.prototype,"isDimmed",void 0);_.q([_.R({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.N("design:type",Boolean)],EC.prototype,"showBar",void 0);
_.q([_.R({computed:"computeAuthorBadges(data)"}),_.N("design:type",Array)],EC.prototype,"authorBadges",void 0);_.q([_.R({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],EC.prototype,"authorIsOwner",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],EC.prototype,"inCollapsedBanner",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],EC.prototype,"inBanner",void 0);
_.q([_.R({value:_.B("live_chat_hide_avatars"),reflectToAttribute:!0}),_.N("design:type",Boolean)],EC.prototype,"avatarHidden",void 0);_.q([_.R({computed:"computeAuthorNameColor(data)"}),_.N("design:type",String)],EC.prototype,"authorNameColor",void 0);_.q([_.R(),_.N("design:type",_.AX)],EC.prototype,"participantsManager",void 0);_.q([_.R({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.N("design:type",Object)],EC.prototype,"filledButtonOverrides",void 0);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EC.prototype,"dataChanged",null);_.q([_.yf("data.message"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EC.prototype,"updateMessage",null);EC=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],EC);
_.w(EC,"yt-live-chat-text-message-renderer",function(){if(sus===void 0){var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;rCh===void 0&&(rCh=document.createElement("template"));var K=rCh;D.call(G,K.content.cloneNode(!0),x.content.firstChild);sus=x}x=sus;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var hX=function(){var x=_.n.apply(this,arguments)||this;x.tonalButtonOverrides={type:"tonal",style:"overlay"};return x};
_.m(hX,_.n);
hX.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]]"}}}}}};
hX.prototype.shouldSupportInlineActionButtons=function(){return!0};
hX.prototype.shouldSupportWholeItemClick=function(){return!0};
_.Nq.Object.defineProperties(hX.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],hX.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.IJ.YtLiveChatItemBehavior),_.N("design:type",_.jM)],hX.prototype,"ytLiveChatItemBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],hX.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],hX.prototype,"data",void 0);_.q([_.R(),_.N("design:type",_.AX)],hX.prototype,"participantsManager",void 0);
_.q([_.R(),_.N("design:type",Object)],hX.prototype,"tonalButtonOverrides",void 0);_.q([_.R({reflectToAttribute:!0}),_.U("data.infoDialogButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],hX.prototype,"hasInfoDialogButton",null);hX=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],hX);
_.w(hX,"yt-live-chat-auto-mod-message-renderer",function(){if(B77===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;LmZ===void 0&&(LmZ=document.createElement("template"));var K=LmZ;D.call(G,K.content.cloneNode(!0),x.content.firstChild);B77=x}x=B77;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var YQJ;var mI7;var H89;var xl=function(){return _.n.apply(this,arguments)||this};
_.m(xl,_.n);_.q([_.R(),_.N("design:type",Object)],xl.prototype,"data",void 0);xl=_.q([_.d({is:"ytd-factoid-renderer",disableElementRegistration:!0})],xl);
_.w(xl,"ytd-factoid-renderer",function(){if(H89!==void 0)return H89;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return H89=x},{mode:1});var Gk=function(){return _.n.apply(this,arguments)||this};
_.m(Gk,_.n);Gk.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.q([_.R(),_.N("design:type",Object)],Gk.prototype,"data",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Gk.prototype,"ytRendererstamperBehavior",void 0);Gk=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],Gk);
_.w(Gk,"yt-live-chat-channel-activity-reputation-renderer",function(){if(mI7===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;YQJ===void 0&&(YQJ=document.createElement("template"));var K=YQJ;D.call(G,K.content.cloneNode(!0),x.content.firstChild);mI7=x}x=mI7;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var $IZ;var Fmh;var De=function(){return _.n.apply(this,arguments)||this};
_.m(De,_.n);De.prototype.ready=function(){var x=document.querySelector("yt-live-chat-app");x&&x.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],De.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Boolean)],De.prototype,"menuFocused",void 0);_.q([_.R(),_.N("design:type",Object)],De.prototype,"data",void 0);_.q([_.I(_.IJ.YtLiveChatItemBehavior),_.N("design:type",_.jM)],De.prototype,"ytLiveChatItemBehavior",void 0);De=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],De);
_.w(De,"yt-live-chat-donation-announcement-renderer",function(){if(Fmh===void 0){var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;$IZ===void 0&&($IZ=document.createElement("template"));var K=$IZ;D.call(G,K.content.cloneNode(!0),x.content.firstChild);Fmh=x}x=Fmh;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var C87;var Id8,juh=function(){if(Id8!==void 0)return Id8;var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;C87===void 0&&(C87=document.createElement("template"));var K=C87;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return Id8=x};var KS=function(){return _.n.apply(this,arguments)||this};
_.m(KS,_.n);_.Nq.Object.defineProperties(KS,{template:{configurable:!0,enumerable:!0,get:function(){return juh()}}});
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],KS.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],KS.prototype,"data",void 0);KS=_.q([_.HD({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],KS);_.w(KS,"yt-live-chat-empty-feed-view-model",function(){return juh()},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var O8Z;var XcZ;var zk=function(){return _.n.apply(this,arguments)||this};
_.m(zk,_.n);zk.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"}}}}}};
_.Nq.Object.defineProperties(zk.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var x,G;return{runs:[{text:(x=this.data)==null?void 0:(G=x.channelName)==null?void 0:G.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var x=[],G;if((G=this.data)==null||!G.channelBadges)return x;var D;G=_.l((D=this.data)==null?void 0:D.channelBadges);for(D=G.next();!D.done;D=G.next()){D=_.Y(D.value,Sx0);var K=void 0,z=void 0;if((K=D)==null?0:(z=K.badgeImage)==null?0:z.sources)K=void 0,z={liveChatAuthorBadgeRenderer:{tooltip:D.tooltip,accessibility:{accessibilityData:{label:(K=_.Y(D.rendererContext,_.Wo))==null?void 0:K.label}}}},D.badgeImage.sources[0].clientResource?z.liveChatAuthorBadgeRenderer.icon=
{iconType:D.badgeImage.sources[0].clientResource.imageName}:z.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:D.badgeImage.sources},x.push(z)}return x}}});
_.q([_.R(),_.N("design:type",Object)],zk.prototype,"data",void 0);_.q([_.U("data.channelName"),_.N("design:type",Object),_.N("design:paramtypes",[])],zk.prototype,"channelName",null);_.q([_.U("data.channelBadges"),_.N("design:type",Array),_.N("design:paramtypes",[])],zk.prototype,"channelBadges",null);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],zk.prototype,"ytRendererstamperBehavior",void 0);
zk=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],zk);
_.w(zk,"yt-live-chat-identity-view-model",function(){if(XcZ===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;O8Z===void 0&&(O8Z=document.createElement("template"));var K=O8Z;D.call(G,K.content.cloneNode(!0),x.content.firstChild);XcZ=x}x=XcZ;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var ACZ;var UIs;var RhZ;var SQZ;var aG=function(){var x=_.n.apply(this,arguments)||this;x.hidden=!1;x.supportsInlineActionButtons=!0;return x};
_.m(aG,_.n);aG.prototype.ready=function(){var x;((x=document.querySelector("yt-live-chat-app"))==null?0:x.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
aG.prototype.dataChanged=function(x){var G=(0,_.D6)(_.kA(this.hostElement).querySelector("#detail-text"));G.textContent="";(x==null?0:x.detailText)&&G.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(x.detailText))};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],aG.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.IJ.YtLiveChatItemBehavior),_.N("design:type",_.jM)],aG.prototype,"ytLiveChatItemBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],aG.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R({observer:"dataChanged"}),_.N("design:type",Object)],aG.prototype,"data",void 0);
_.q([_.R({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.N("design:type",Object)],aG.prototype,"hidden",void 0);aG=_.q([_.d({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],aG);
_.w(aG,"yt-live-chat-legacy-paid-message-renderer",function(){if(SQZ===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;RhZ===void 0&&(RhZ=document.createElement("template"));var K=RhZ;D.call(G,K.content.cloneNode(!0),x.content.firstChild);SQZ=x}x=SQZ;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var nfq;var i8Z;var gfs={},oG=function(){return _.WD.apply(this,arguments)||this};
_.m(oG,_.WD);oG.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
oG.prototype.onLiveChatMembershipItemBehaviorClick=oG.prototype.onLiveChatMembershipItemBehaviorClick;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],oG.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],oG.prototype,"data",void 0);_.q([_.oe("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],oG.prototype,"onLiveChatMembershipItemBehaviorClick",null);oG=_.q([_.e2()],oG);
gfs.YtLiveChatMembershipItemBehavior=[oG.prototype,_.h.YtRendererBehavior];var yG=function(){var x=_.n.apply(this,arguments)||this;x.supportsInlineActionButtons=!0;x.hasPrimaryHeaderText=!1;x.showOnlyHeader=!1;x.authorBadges=[];x.modern=_.B("web_button_rework_with_live");x.buttonOverrides={style:"overlay",type:"filled"};return x};
_.m(yG,_.n);_.a=yG.prototype;_.a.shouldSupportInlineActionButtons=function(){return!0};
_.a.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.a.ready=function(){var x=document.querySelector("yt-live-chat-app");x&&x.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.a.messageChanged=function(){var x=this.data.message,G=(0,_.D6)(_.kA(this.hostElement).querySelector("#message"));G.textContent="";x&&G.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(x))};
_.a.computeHasPrimaryHeaderText=function(x){return!(!x||!x.headerPrimaryText)};
_.a.computeShowOnlyHeader=function(x,G){return this.isMessageEmpty(x,G)};
_.a.computeAuthorBadges=function(x){return x.authorBadges||[]};
_.a.isMessageEmpty=function(x,G){return!x||x.empty?!0:!x.message&&!x.inputField&&!G};
_.a.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.a.getInputElement=function(){return _.kA(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.a.inputFocus=function(){var x=this.getInputElement();x&&x.focus()};
_.a.inputInsertEmoji=function(x){var G=this.getInputElement();G&&G.insertEmoji(x)};
_.a.inputMessage=function(){var x=this.getInputElement();return x&&this.data.inputField?(x.completeEmojis(),_.js(x.liveChatRichMessageInput)):null};
_.a.onFooterButtonClick=function(){this.data.footerButton&&_.h$(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.a.shouldSupportWholeItemClick=function(){return!0};
yG.prototype.isDeletedChanged=yG.prototype.isDeletedChanged;yG.prototype.messageChanged=yG.prototype.messageChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],yG.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.IJ.YtLiveChatItemBehavior),_.N("design:type",_.jM)],yG.prototype,"ytLiveChatItemBehavior",void 0);_.q([_.I(gfs.YtLiveChatMembershipItemBehavior),_.N("design:type",Object)],yG.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],yG.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],yG.prototype,"data",void 0);_.q([_.R({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.N("design:type",Object)],yG.prototype,"hasPrimaryHeaderText",void 0);_.q([_.R({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.N("design:type",Object)],yG.prototype,"showOnlyHeader",void 0);
_.q([_.R({computed:"computeAuthorBadges(data)"}),_.N("design:type",Array)],yG.prototype,"authorBadges",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],yG.prototype,"modern",void 0);_.q([_.yf("data.message"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yG.prototype,"messageChanged",null);_.q([_.yf("isDeleted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yG.prototype,"isDeletedChanged",null);
yG=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],yG);
_.w(yG,"yt-live-chat-membership-item-renderer",function(){if(i8Z===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;nfq===void 0&&(nfq=document.createElement("template"));var K=nfq;D.call(G,K.content.cloneNode(!0),x.content.firstChild);i8Z=x}x=i8Z;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var ues;var dIq;var l4=function(){return _.n.apply(this,arguments)||this};
_.m(l4,_.n);l4.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],l4.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],l4.prototype,"data",void 0);l4=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],l4);
_.w(l4,"yt-live-chat-mode-change-message-renderer",function(){if(dIq===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;ues===void 0&&(ues=document.createElement("template"));var K=ues;D.call(G,K.content.cloneNode(!0),x.content.firstChild);dIq=x}x=dIq;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var wcs;var qQJ;var cT=function(){return _.n.apply(this,arguments)||this};
_.m(cT,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],cT.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.IJ.YtLiveChatItemBehavior),_.N("design:type",_.jM)],cT.prototype,"ytLiveChatItemBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],cT.prototype,"data",void 0);cT=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],cT);
_.w(cT,"yt-live-chat-moderation-message-renderer",function(){if(qQJ===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;wcs===void 0&&(wcs=document.createElement("template"));var K=wcs;D.call(G,K.content.cloneNode(!0),x.content.firstChild);qQJ=x}x=qQJ;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var N7h;var vfu;var Tk=function(){var x=_.n.apply(this,arguments)||this;x.modern=_.B("web_button_rework");return x};
_.m(Tk,_.n);Tk.prototype.onClick=function(){var x;if((x=this.data)!=null&&x.onClickCommand){var G;_.y2.instance.resolveCommand((G=this.data)==null?void 0:G.onClickCommand)}};
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Tk.prototype,"modern",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Tk.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.CF),_.N("design:type",Object)],Tk.prototype,"ytLiveChatReduxBehavior",void 0);_.q([_.I(_.IJ.YtLiveChatItemBehavior),_.N("design:type",_.jM)],Tk.prototype,"ytLiveChatItemBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Tk.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],Tk.prototype,"data",void 0);Tk=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],Tk);
_.w(Tk,"yt-live-chat-offer-click-count-message-renderer",function(){if(vfu===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;N7h===void 0&&(N7h=document.createElement("template"));var K=N7h;D.call(G,K.content.cloneNode(!0),x.content.firstChild);vfu=x}x=vfu;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var JCi;var WT=function(){return _.n.apply(this,arguments)||this};
_.m(WT,_.n);_.q([_.R(),_.N("design:type",Object)],WT.prototype,"data",void 0);WT=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],WT);
_.w(WT,"yt-live-chat-placeholder-item-renderer",function(){if(JCi===void 0){var x=document.createElement("template");_.F(x,"\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");x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);JCi=x}x=JCi;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var fd7;var tvk;var kVi=new n3(7),ey=function(){var x=_.n.apply(this,arguments)||this;x.data={};return x};
_.m(ey,_.n);ey.prototype.dataChanged=function(){var x;((x=this.data)==null?0:x.class)&&_.E4(this.hostElement,this.data.class,!0);var G;((G=this.oldData)==null?0:G.class)&&_.E4(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
ey.prototype.computeTimestampString=function(x){return kVi.format(new Date(x/1E3))};
ey.prototype.dataChanged=ey.prototype.dataChanged;_.q([_.R(),_.N("design:type",Object)],ey.prototype,"data",void 0);_.q([_.R({computed:"computeTimestampString(data.timestampUsec)"}),_.N("design:type",String)],ey.prototype,"timestampString",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ey.prototype,"dataChanged",null);ey=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],ey);
_.w(ey,"yt-live-chat-server-error-message",function(){if(tvk===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;fd7===void 0&&(fd7=document.createElement("template"));var K=fd7;D.call(G,K.content.cloneNode(!0),x.content.firstChild);tvk=x}x=tvk;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var P8E;var EfE;var Ze=function(){var x=_.n.apply(this,arguments)||this;x.defaultToFilledIcon=!1;return x};
_.m(Ze,_.n);Ze.prototype.computeHasPrimaryColorIcon=function(x){return x==="SPARK"||x==="SPONSORSHIP_STAR"};
Ze.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Ze.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.IJ.YtLiveChatItemBehavior),_.N("design:type",_.jM)],Ze.prototype,"ytLiveChatItemBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Ze.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Ze.prototype,"defaultToFilledIcon",void 0);_.q([_.R(),_.N("design:type",Object)],Ze.prototype,"data",void 0);
_.q([_.R({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Ze.prototype,"hasPrimaryColorIcon",void 0);Ze=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],Ze);
_.w(Ze,"yt-live-chat-viewer-engagement-message-renderer",function(){if(EfE===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;P8E===void 0&&(P8E=document.createElement("template"));var K=P8E;D.call(G,K.content.cloneNode(!0),x.content.firstChild);EfE=x}x=EfE;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var hh7;var ME=function(){var x=_.n.apply(this,arguments)||this;x.modernUpdate=!1;x.buttonStyle="overlay";x.buttonType="filled";return x};
_.m(ME,_.n);ME.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
ME.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],ME.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],ME.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],ME.prototype,"modernUpdate",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],ME.prototype,"buttonStyle",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],ME.prototype,"buttonType",void 0);
ME=_.q([_.d({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],ME);
_.w(ME,"ytd-ad-hover-text-button-renderer",function(){if(hh7!==void 0)return hh7;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return hh7=x},{mode:1});var xru;var QG=function(){var x=_.n.apply(this,arguments)||this;x.buttonOverrides={size:"XS"};x.modern=_.B("web_button_rework");return x};
_.m(QG,_.n);QG.prototype.onHelpTap=function(x){this.data&&this.data.informationDialog&&(_.h$(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),x.preventDefault(),x.stopPropagation())};
_.q([_.R(),_.N("design:type",Object)],QG.prototype,"buttonOverrides",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],QG.prototype,"modern",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],QG.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],QG.prototype,"data",void 0);QG=_.q([_.d({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],QG);
_.w(QG,"ytd-live-chat-purchased-product-message-renderer",function(){if(xru!==void 0)return xru;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return xru=x},{mode:1});var GJ0;var Drs;var pS=function(){var x=_.n.apply(this,arguments)||this;x.isContainerDeleted=!1;return x};
_.m(pS,_.n);pS.prototype.onContextMenuClick=function(x){this.ytLiveChatItemBehavior.showContextMenu(x)};
pS.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))};
pS.prototype.isContainerDeletedChanged=pS.prototype.isContainerDeletedChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],pS.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.IJ.YtLiveChatItemBehavior),_.N("design:type",_.jM)],pS.prototype,"ytLiveChatItemBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],pS.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],pS.prototype,"isContainerDeleted",void 0);
_.q([_.R(),_.N("design:type",String)],pS.prototype,"deletedStateMessage",void 0);_.q([_.yf("isContainerDeleted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pS.prototype,"isContainerDeletedChanged",null);pS=_.q([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],pS);
_.w(pS,"ytd-sponsorships-live-chat-header-renderer",function(){if(Drs!==void 0)return Drs;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Drs=x},{mode:1});var VG=function(){var x=_.n.apply(this,arguments)||this;x.modern=_.B("web_button_rework_with_live");x.buttonOverrides={style:"overlay",type:"filled"};return x};
_.m(VG,_.n);VG.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]]"}}}}}};
VG.prototype.onCtaButtonClick=function(){var x,G=_.Y((x=this.data)==null?void 0:x.optInPrompt,_.$V);if(x=this.maybeGetButtonCommand(G)){var D;(D=_.en())==null||D.clickCommand(x)}};
VG.prototype.maybeGetButtonCommand=function(x){return!x||!x.command||_.Y(x.command,eiu)===void 0&&_.Y(x.command,WUs)===void 0?null:x.command};
VG.prototype.shouldHideOptinPrompt=function(x,G){return!x||G};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],VG.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.IJ.YtLiveChatItemBehavior),_.N("design:type",_.jM)],VG.prototype,"ytLiveChatItemBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],VG.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],VG.prototype,"modern",void 0);VG=_.q([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],VG);
_.w(VG,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(GJ0!==void 0)return GJ0;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return GJ0=x},{mode:1});var Kci;var b4=function(){return _.n.apply(this,arguments)||this};
_.m(b4,_.n);b4.prototype.onContextMenuClick=function(x){this.ytLiveChatItemBehavior.showContextMenu(x)};
b4.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))};
b4.prototype.isDeletedChanged=b4.prototype.isDeletedChanged;_.q([_.I(_.IJ.YtLiveChatItemBehavior),_.N("design:type",_.jM)],b4.prototype,"ytLiveChatItemBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],b4.prototype,"data",void 0);_.q([_.yf("isDeleted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],b4.prototype,"isDeletedChanged",null);b4=_.q([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],b4);
_.w(b4,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(Kci!==void 0)return Kci;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Kci=x},{mode:1});var LS=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return x};
_.m(LS,_.n);_.a=LS.prototype;
_.a.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"}}}};
_.a.handleLiveChatAction=function(x){_.Y(x,FqZ)?this.handleMarkChatItemAsDeletedAction(_.Y(x,FqZ)):_.Y(x,$2k)&&this.handleRemoveChatItemAction(_.Y(x,$2k))};
_.a.handleLiveChatActions=function(x){x.forEach(this.handleLiveChatAction,this)};
_.a.handleMarkChatItemAsDeletedAction=function(x){var G=this,D;((D=this.data)==null?0:D.items)&&this.data.items.forEach(function(K,z){var y=Object.keys(K)[0];Object.values(K)[0].id===x.targetItemId&&G.markAsDeleted("data.items",z,y,x.deletedStateMessage,x.showOriginalContentMessage)})};
_.a.handleRemoveChatItemAction=function(x){var G=this,D;((D=this.data)==null?0:D.items)&&this.data.items.forEach(function(K,z){Object.values(K)[0].id===x.targetItemId&&G.splice("data.items",z,1)})};
_.a.markAsDeleted=function(x,G,D,K,z){x=[x,G,D].join(".");this.set(x+".deletedStateMessage",K);this.set(x+".showOriginalContentMessage",z)};
_.q([_.R(),_.N("design:type",Object)],LS.prototype,"data",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],LS.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],LS.prototype,"ytActionHandlerBehavior",void 0);LS=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],LS);
_.w(LS,"yt-live-chat-item-display-list-renderer",function(){if(UIs===void 0){var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;ACZ===void 0&&(ACZ=document.createElement("template"));var K=ACZ;D.call(G,K.content.cloneNode(!0),x.content.firstChild);UIs=x}x=UIs;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var zWo;var aRh,o37=function(){if(aRh!==void 0)return aRh;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;zWo===void 0&&(zWo=document.createElement("template"));var K=zWo;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return aRh=x};var BT=function(){var x=_.n.apply(this,arguments)||this;x.isHeader=!1;return x};
_.m(BT,_.n);BT.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.Nq.Object.defineProperties(BT,{template:{configurable:!0,enumerable:!0,get:function(){return o37()}}});
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],BT.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],BT.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],BT.prototype,"isHeader",void 0);BT=_.q([_.HD({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],BT);_.w(BT,"yt-live-chat-item-display-renderer",function(){return o37()},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var yI9,lRs,ZGs,eWE;
yI9={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}};lRs={home:"eohps",search:"eosps",watch:"eowps"};_.cIJ=["watch","search","home"];
_.rE=function(){this.JSC$12173_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$12173_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.Am("PRECONSTRUCTION_DELAY",0);this.signals_=_.Fp();this.targetPage_=""};
_.rE.prototype.init=function(x,G){x=x===void 0?"":x;G=G===void 0?null:G;if(this.JSC$12173_isInitialized_)this.abort();else if(this.JSC$12173_isInitialized_=!0,x&&_.Tok(this,x),G){var D=_.CJ(this.signals_,"pcl")?0:10,K=function(){for(var z=0,y;y=_.cIJ[z++];)y!=x&&y!=G&&this.pendingPages_.push(y);_.Wc9(this)}.bind(this);
this.signals_.parkOrScheduleJob(K,D,"pcl")}};
_.rE.prototype.abort=function(){this.fragmentJobId_&&(_.Fj.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);eWE(this)};
_.Tok=function(x,G){x.JSC$12173_isInitialized_&&!x.targetPage_&&(x.targetPage_=G,ZGs(x,G),x.isInitialPass_=!1,ZGs(x,G),x.signals_.processSignal(lRs[x.targetPage_]),eWE(x),_.Wc9(x))};
_.Wc9=function(x){x.pendingPages_.length&&!x.pagePreparerJobId_&&(x.pagePreparerJobId_=_.Bw(_.Fj,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.Tok(this,this.pendingPages_.shift())}.bind(x),x.DEFAULT_DELAY_))};
ZGs=function(x,G){if(G=yI9[G])for(var D in G){var K=!1,z=D;D.charAt(0)=="~"&&(K=!0,z=D.substring(1));var y=G[D];y=typeof y=="object"?y:{count:y};G[D]=y;y.componentName=z;y.count>0&&(x.isInitialPass_?K||x.isSeenDuringInitialPass_[z]||(x.JSC$12173_queue_.push({componentName:z,count:1,signals:y.signals}),x.isSeenDuringInitialPass_[z]=!0,y.count--):x.JSC$12173_queue_.push(y))}};
eWE=function(x){x.JSC$12173_queue_.length=0;x.targetPage_="";x.isInitialPass_=!0;x.signals_.processSignal("eop")};
_.rE.getInstance=function(){return _.x1(_.rE)};var MFq=function(){this.signals=_.Fp();this.init()};
MFq.prototype.startPreconstruction=function(){_.rE.getInstance().init(_.Uo("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
MFq.prototype.init=function(){QRZ(this);window.Polymer&&Jmq&&JGO();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var x=_.Df.ytcsi;if(x&&x.gt&&(x=x.gt())&&x.tick&&(x.tick.aft>0||x.tick.pbs>0)&&(_.Uo("IS_HOMEPAGE_COLD")||_.Uo("IS_RESULTS_PAGE_COLD")||_.Uo("IS_WATCH_PAGE_COLD"))){pv0(this);break a}eDd(tuf,this.onNotifications,this)}};
var QRZ=function(x){var G=function(){x.signals.processSignal("dl")};
document.readyState==="complete"?(_.iM(Error("ph"),"WARNING"),G()):_.dBh(window,"load",G)};
MFq.prototype.onNotifications=function(x){x.timer||(_.Uo("IS_HOMEPAGE_COLD")||_.Uo("IS_RESULTS_PAGE_COLD")||_.Uo("IS_WATCH_PAGE_COLD"))&&pv0(this)};
var pv0=function(x){x.signals.parkOrScheduleJob(function(){x.signals.processSignal("eocs")},10,"eor")};
new MFq;var sn,Yl=function(){return _.WD.apply(this,arguments)||this};
_.m(Yl,_.WD);_.a=Yl.prototype;_.a.enableActiveViewMeasurement=function(x){if(this.isActiveViewEnabled(x)){var G=this.getUrlPrefixesFromCommand(x.viewableCommands);x=this.getUrlPrefixesFromCommand(x.endOfSessionCommands);if(!sn){var D=_.Gz("custom_active_view_tos_timeout_ms");sn=D>0&&D!==36E5?new c8E(this.getVersion(),D):new c8E(this.getVersion())}Wtn(sn,this.hostElement);eYL(sn,this.hostElement,G,x)}};
_.a.stopActiveViewMeasurement=function(){sn&&Wtn(sn,this.hostElement)};
_.a.isActiveViewEnabled=function(x){return!!x&&(this.hasAtLeastOneUrl(x.viewableCommands)||this.hasAtLeastOneUrl(x.endOfSessionCommands))};
_.a.hasAtLeastOneUrl=function(x){return!!x&&x.length>0&&x[0].loggingUrls!=null&&x[0].loggingUrls.length>0};
_.a.getVersion=function(){var x=_.Am("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(x==null?void 0:x.length)===2?x[1]:null};
_.a.getUrlPrefixesFromCommand=function(x){if(!x)return[];var G=[];x=_.l(x);for(var D=x.next();!D.done;D=x.next())if(D=D.value,D.loggingUrls){D=_.l(D.loggingUrls);for(var K=D.next();!K.done;K=D.next())K=K.value,K.baseUrl&&G.push(K.baseUrl)}return G};
Yl=_.q([_.e2()],Yl);var m1=[Yl.prototype];var HT=function(){return _.WD.apply(this,arguments)||this};
_.m(HT,_.WD);_.Nq.Object.defineProperties(HT.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.B("enable_entity_store_from_dependency_injection")?_.iD():_.wK()}}});
HT=_.q([_.e2()],HT);_.$l=[LF.prototype,HT.prototype];var VFh=["ytd-rich-shelf-renderer"],FL=function(){var x=_.WD.apply(this,arguments)||this;x._noAccessors=!0;x.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";x.followUpDialogPromise=null;x.followUpDialogPromiseResolve=null;x.followUpDialogPromiseReject=null;return x};
_.m(FL,_.WD);_.a=FL.prototype;_.a.dismissibleItemIsDismissedChanged_=function(x){_.B("kevlar_fluid_dismiss")&&(x?_.h$(this.hostElement,"yt-dismissible-item-dismissed"):_.h$(this.hostElement,"yt-dismissible-item-undismissed"))};
_.a.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.a.dismissibleItemReset_=function(){var x=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 _.T1(function(G,D){x.followUpDialogPromiseResolve=G;x.followUpDialogPromiseReject=D});
_.h$(this.hostElement,"yt-enable-lockup-interaction")};
_.a.dismissibleItemOnYtServiceRequestSent_=function(x,G){G.actions&&this.dismissibleItemProcessActions(G.actions,x)};
_.a.dismissibleItemOnRequestSent=function(x){if(_.B("web_button_rework"))for(var G=_.l(x.detail),D=G.next();!D.done;D=G.next()){var K=void 0;(D=(K=_.Y(D.value,_.cg))==null?void 0:K.actions)&&this.dismissibleItemProcessActions(D,x)}};
_.a.dismissibleItemOnCommandSent=function(x,G){G&&this.dismissibleItemProcessActions(G,x)};
_.a.setAndGetDismissedContentId=function(x){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+x};
_.a.replayDismissAction=function(x){this.dismissibleItemProcessActions([x])};
_.a.dismissibleItemProcessActions=function(x,G){for(var D=0;D<x.length;D++){var K=x[D],z=void 0;((z=_.Y(K,_.oI))==null?0:z.commands)&&this.dismissibleItemProcessActions(_.Y(K,_.oI).commands,G);if(_.Y(K,_.Zi)){if(z=_.Y(K,_.Zi),!z.replaceParentSection||VFh.includes(this.hostElement.nodeName.toLowerCase()))_.B("web_see_fewer_shorts_reactive_dismissal")&&z.groupDismissal&&Lif(this,z.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(z),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.cq("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:K})),K=void 0,(K=G)==null||K.stopPropagation()}else if(_.Y(K,SH0))this.dismissibleItemHandleHideEnclosingAction_(),K=void 0,(K=G)==null||K.stopPropagation();else if(_.Y(K,tJh))_.B("web_see_fewer_shorts_reactive_dismissal")&&(K=_.Y(K,tJh),z=void 0,((z=K)==null?0:z.targetGroupId)&&Lif(this,{targetGroupId:K.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.cq("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),K=void 0,(K=G)==null||K.stopPropagation();else if(_.Y(K,_.cg))(K=_.Y(K,_.cg).actions)&&_.zl(this.hostElement,K,this.hostElement),K=void 0,(K=G)==null||K.stopPropagation();else{var y=z=void 0;((z=_.Y(K,_.Sm))==null?void 0:z.signal)!=="TELL_US_WHY"||((y=_.Y(K,_.Sm))==null?0:y.targetId)&&_.B("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),K=void 0,(K=G)==null||K.stopPropagation())}}};
_.a.dismissibleItemOnYtServiceRequestCompleted_=function(x,G){var D=this.get("feedbackResponses.0.followUpDialog",G.data);D?this.followUpDialogPromiseResolve(D):G.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(G.actions,x)};
_.a.dismissibleItemHandleReplaceEnclosingAction_=function(x){this.dismissedRenderer=x.item;this.isDismissed=!0;var G=null;(G=_.kA(this.hostElement).querySelector("#dismissed"))&&_.w1(this,function(){_.Ju(G)});
_.h$(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.a.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.a.dismissibleItemHandleUndoFeedbackAction_=function(){_.h$(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.a.dismissibleItemHandleTellUsWhySignalAction_=function(){var x=this;this.followUpDialogPromise.then(function(G){x.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:G}})})};
FL.prototype.dismissibleItemOnYtServiceRequestCompleted_=FL.prototype.dismissibleItemOnYtServiceRequestCompleted_;FL.prototype.dismissibleItemOnCommandSent=FL.prototype.dismissibleItemOnCommandSent;FL.prototype.dismissibleItemOnRequestSent=FL.prototype.dismissibleItemOnRequestSent;FL.prototype.dismissibleItemOnYtServiceRequestSent_=FL.prototype.dismissibleItemOnYtServiceRequestSent_;FL.prototype.dismissibleItemDataChanged_=FL.prototype.dismissibleItemDataChanged_;
FL.prototype.dismissibleItemIsDismissedChanged_=FL.prototype.dismissibleItemIsDismissedChanged_;_.q([_.I(_.i9),_.N("design:type",Object)],FL.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],FL.prototype,"ytdReduxBehavior",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],FL.prototype,"isDismissed",void 0);_.q([_.R(),_.N("design:type",Object)],FL.prototype,"dismissedRenderer",void 0);
_.q([_.yf("isDismissed"),_.N("design:type",Function),_.N("design:paramtypes",[Boolean]),_.N("design:returntype")],FL.prototype,"dismissibleItemIsDismissedChanged_",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],FL.prototype,"dismissibleItemDataChanged_",null);
_.q([_.oe("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Ou]),_.N("design:returntype")],FL.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.q([_.oe("yt-service-request-sent-button-renderer"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],FL.prototype,"dismissibleItemOnRequestSent",null);
_.q([_.oe("yt-dismissible-item-action"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Array]),_.N("design:returntype")],FL.prototype,"dismissibleItemOnCommandSent",null);_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.gG]),_.N("design:returntype")],FL.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);FL=_.q([_.e2()],FL);_.CS=[_.i9,_.$l,FL.prototype];var IG=function(){var x=_.WD.apply(this,arguments)||this;x.disableGridStateAware=!1;x.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};x.currentGridClass="";return x};
_.m(IG,_.WD);IG.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.w1(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var x=this.gridStateAwareGetElement();_.E4(x,"grid",!0)}};
IG.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
IG.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.kA(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
IG.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var x="grid-disabled";else{x=_.Qdh.getInstance();var G=this.get("pageSubtype");x=G&&e2q.includes(G)?"grid-disabled":x.currentSnapState_?x.currentSnapState_.className:null}(G=this.gridStateAwareGetElement())&&x!==this.currentGridClass&&(x&&_.E4(G,x,!0),this.currentGridClass&&_.E4(G,this.currentGridClass,!1),this.currentGridClass=x)};
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],IG.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",String)],IG.prototype,"gridStateAwareSizingElementSelector",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],IG.prototype,"disableGridStateAware",void 0);IG=_.q([_.e2()],IG);_.jy=[IG.prototype,_.tG.YtActionHandlerBehavior];_.On=new _.wq("GUIDE_TOKEN");var Ap;_.XL={};Ap=function(){var x=_.WD.apply(this,arguments)||this;x.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 x};
_.m(Ap,_.WD);_.a=Ap.prototype;_.a.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.a.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var x=_.Eo().resolve(_.P6(_.On));x&&(this.guidePersistentAndVisible=x.getGuidePersistentAndVisible(),this.activeEndpoint=x.getActiveEndpoint(),this.guideOpened=x.getGuideOpened(),this.miniGuideVisible=x.getMiniGuideVisible())};
_.a.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.a.handleGuideStateAction=function(x){this.guidePersistentAndVisible=x};
_.a.handleMiniGuideStateAction=function(x){this.miniGuideVisible=x};
_.a.handleGuideOpenedAction=function(x){this.guideOpened=x};
_.a.handleActiveEndpointAction=function(x){this.activeEndpoint=x};
Ap.prototype.onActiveEndpointChange=Ap.prototype.onActiveEndpointChange;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],Ap.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ap.prototype,"guidePersistentAndVisible",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ap.prototype,"miniGuideVisible",void 0);_.q([_.R(),_.N("design:type",Object)],Ap.prototype,"activeEndpoint",void 0);
_.q([_.yf("activeEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ap.prototype,"onActiveEndpointChange",null);_.q([_.R(),_.N("design:type",Boolean)],Ap.prototype,"guideOpened",void 0);Ap=_.q([_.e2()],Ap);_.XL.YtdGuideStateAwareBehavior=[];_.XL.YtdGuideStateAwareBehavior.push(Ap.prototype,_.tG.YtActionHandlerBehavior);var bGs=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],Un=function(){var x=_.WD.apply(this,arguments)||this;x.hoverJobId=0;x.JSC$12204_touched=!1;return x};
_.m(Un,_.WD);_.a=Un.prototype;_.a.created=function(){this.useExpandableTooltip=!bGs.includes(this.is)};
_.a.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.a.detached=function(){this.useExpandableTooltip=!1};
_.a.lockupOnDown=function(x){this.interactionElement&&!_.u_(_.gA(x),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.a.lockupOnUp=function(x){this.interactionElement&&!_.u_(_.gA(x),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.a.onTouchStart=function(){this.JSC$12204_touched=!0};
_.a.lockupOnMouseEnter=function(){var x=this,G=_.Gz("kevlar_lockup_hover_delay",-1);this.JSC$12204_touched&&G>=0?(_.Fj.cancelJob(this.hoverJobId),this.hoverJobId=_.Fj.addJob(function(){x.lockupIsHovered=!0},8,G),this.JSC$12204_touched=!1):this.lockupIsHovered=!0};
_.a.lockupOnMouseLeave=function(){this.hoverJobId&&(_.Fj.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.a.lockupOnPopupClosed=function(x,G){var D;((D=G.popupRenderer)==null?void 0:D.is)==="ytd-menu-popup-renderer"&&(x=G.popupRenderer.veData,G=_.CC(),x&&G&&_.gB(G,[x]))};
_.a.lockupOnLockupRequested=function(x){var G=x.detail.videoIds[0],D;x.detail&&G===((D=this.data)==null?void 0:D.videoId)&&(x.detail.returnValue=[this.data])};
_.a.lockupOnYtServiceRequestSent=function(x,G){if(x=G.actions)for(var D=0;D<x.length;D++){var K=x[D];if(K.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&G.ajaxPromise){var z=void 0,y=(z=_.Y(G.endpoint,_.YV))==null?void 0:z.playlistId;z=void 0;K=(z=K.removedVideoId)!=null?z:"";nlo(_.jK(),K,y)}else K.action==="ACTION_REMOVE_VIDEO"&&G.ajaxPromise&&(y=void 0,K=(y=K.setVideoId)!=null?y:"",_.iSk(_.jK(),K))}};
_.a.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.a.lockupOnLockupEnabled=function(){if(!this.$){var x=_.Eo().resolve(_.wG).getCurrentPage(),G=this.getParentRenderer?this.getParentRenderer():void 0;_.O9(new _.LL("component not ready",this.is,this.isAttached,x==null?void 0:x.is,G==null?void 0:G.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
Un.prototype.lockupOnLockupEnabled=Un.prototype.lockupOnLockupEnabled;Un.prototype.lockupOnLockupDisabled=Un.prototype.lockupOnLockupDisabled;Un.prototype.lockupOnYtServiceRequestSent=Un.prototype.lockupOnYtServiceRequestSent;Un.prototype.lockupOnLockupRequested=Un.prototype.lockupOnLockupRequested;Un.prototype.lockupOnPopupClosed=Un.prototype.lockupOnPopupClosed;Un.prototype.lockupOnMouseLeave=Un.prototype.lockupOnMouseLeave;Un.prototype.lockupOnMouseEnter=Un.prototype.lockupOnMouseEnter;
Un.prototype.onTouchStart=Un.prototype.onTouchStart;Un.prototype.lockupOnUp=Un.prototype.lockupOnUp;Un.prototype.lockupOnDown=Un.prototype.lockupOnDown;_.q([_.R(),_.N("design:type",Object)],Un.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Boolean)],Un.prototype,"lockupIsHovered",void 0);_.q([_.R(),_.N("design:type",Boolean)],Un.prototype,"lockupTouchTriggered",void 0);_.q([_.R(),_.N("design:type",Boolean)],Un.prototype,"useExpandableTooltip",void 0);
_.q([_.cD("#interaction"),_.N("design:type",Object)],Un.prototype,"interactionElement",void 0);_.q([_.oe("down"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Un.prototype,"lockupOnDown",null);_.q([_.oe("up"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Un.prototype,"lockupOnUp",null);
_.q([_.oe("touchstart"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Un.prototype,"onTouchStart",null);_.q([_.oe("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Un.prototype,"lockupOnMouseEnter",null);_.q([_.oe("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Un.prototype,"lockupOnMouseLeave",null);
_.q([_.oe("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],Un.prototype,"lockupOnPopupClosed",null);_.q([_.oe("yt-lockup-requested"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Un.prototype,"lockupOnLockupRequested",null);
_.q([_.oe("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Ou]),_.N("design:returntype")],Un.prototype,"lockupOnYtServiceRequestSent",null);_.q([_.oe("yt-disable-lockup-interaction"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Un.prototype,"lockupOnLockupDisabled",null);
_.q([_.oe("yt-enable-lockup-interaction"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Un.prototype,"lockupOnLockupEnabled",null);Un=_.q([_.e2()],Un);_.RG=[Un.prototype];_.Lcu={YtdReduxBehavior:[]};_.Lcu.YtdReduxBehavior.push.apply(_.Lcu.YtdReduxBehavior,_.$l);var Sy=function(){var x=_.WD.apply(this,arguments)||this;x._noAccessors=!0;x.disableNowPlaying=!1;x.disableTooltips=!1;x.useHoveredProperty=!1;x.hovered=!1;x.isThumbnailHovered_=!1;x.addBackground=_.B("kevlar_thumbnail_bg");x.nowPlaying=!1;x.disableRounding=!1;x.size="small";return x};
_.m(Sy,_.WD);_.a=Sy.prototype;_.a.computeThumbnailOverlaySidePanelWidth_=function(x,G){return x-G};
_.a.computeSize=function(x,G){if(!this.disableRounding){if(!x&&!G)return"small";x=Math.max(x||0,G||0);return x>=256?"large":x>=96?"medium":"small"}};
_.a.computeFinalHoveredState_=function(x,G,D){return this.nowPlaying?!1:_.B("kevlar_thumbnail_fluid")&&x?G:D};
_.a.computeHoverOverlays_=function(x,G){return x&&G?G:void 0};
_.a.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.a.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.a.checkMiniplayer_=function(){var x;if(((x=this.data)==null?0:x.playlistSetVideoId)&&_.B("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{x=_.or();var G=x.currentEndpoint;!this.disableNowPlaying&&G&&_.Y(G,_.d5)&&this.data?(G=_.Y(G,_.d5),this.nowPlaying=this.data.playlistId?G.playlistId===this.data.playlistId:G.videoId===this.data.videoId,this.isVideoPlaying=x==null?void 0:x.isVideoPlaying):this.nowPlaying=!1}};
Sy.prototype.checkMiniplayer_=Sy.prototype.checkMiniplayer_;Sy.prototype.onMouseLeave_=Sy.prototype.onMouseLeave_;Sy.prototype.onMouseEnter_=Sy.prototype.onMouseEnter_;Sy.prototype.computeHoverOverlays_=Sy.prototype.computeHoverOverlays_;Sy.prototype.computeFinalHoveredState_=Sy.prototype.computeFinalHoveredState_;Sy.prototype.computeSize=Sy.prototype.computeSize;Sy.prototype.computeThumbnailOverlaySidePanelWidth_=Sy.prototype.computeThumbnailOverlaySidePanelWidth_;
_.q([_.I(_.$l),_.N("design:type",Object)],Sy.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Sy.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Number)],Sy.prototype,"height",void 0);_.q([_.R(),_.N("design:type",Boolean)],Sy.prototype,"bottomSidePanel",void 0);_.q([_.R(),_.N("design:type",Number)],Sy.prototype,"width",void 0);_.q([_.R(),_.N("design:type",Object)],Sy.prototype,"disableNowPlaying",void 0);
_.q([_.R({selector:_.Hk}),_.N("design:type",Boolean)],Sy.prototype,"miniplayerIsActive",void 0);_.q([_.R(),_.N("design:type",Object)],Sy.prototype,"disableTooltips",void 0);_.q([_.R(),_.N("design:type",Object)],Sy.prototype,"useHoveredProperty",void 0);_.q([_.R(),_.N("design:type",Object)],Sy.prototype,"hovered",void 0);_.q([_.R(),_.N("design:type",Object)],Sy.prototype,"isThumbnailHovered_",void 0);
_.q([_.R({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.N("design:type",Boolean)],Sy.prototype,"finalHoveredState_",void 0);_.q([_.R({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.N("design:type",Number)],Sy.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Sy.prototype,"addBackground",void 0);
_.q([_.R({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.N("design:type",Object)],Sy.prototype,"hoverOverlays_",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Sy.prototype,"nowPlaying",void 0);_.q([_.R(),_.N("design:type",Boolean)],Sy.prototype,"isVideoPlaying",void 0);_.q([_.R(),_.N("design:type",Object)],Sy.prototype,"disableRounding",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.N("design:type",Object)],Sy.prototype,"size",void 0);_.q([_.oe("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Sy.prototype,"onMouseEnter_",null);_.q([_.oe("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Sy.prototype,"onMouseLeave_",null);
_.q([_.yf("data","disableNowPlaying","miniplayerIsActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Sy.prototype,"checkMiniplayer_",null);Sy=_.q([_.e2()],Sy);var Bou=[Sy.prototype];_.nS={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(x,G){return x+":"+_.Do(G)},
getPlayerListener_:function(x,G,D){x=this.getPlayerListenerKey_(x,G);G=this.playerListeners_.get(x);D&&this.playerListeners_.delete(x);return G},
savePlayerListener_:function(x,G){var D=G.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(x,G),D);return D},
listenToPlayerEvent:function(x,G,D){D=this.savePlayerListener_(G,D);x.addEventListener(G,D)},
listenToPlayerEvents:function(x,G){G.forEach(function(D,K){this.listenToPlayerEvent(x,K,D)}.bind(this))},
unlistenFromPlayerEvent:function(x,G,D){D=this.getPlayerListener_(G,D,!0);x.removeEventListener(G,D)},
unlistenFromPlayerEvents:function(x,G){G.forEach(function(D,K){this.unlistenFromPlayerEvent(x,K,D)}.bind(this))}}};
_.i4=function(){};_.rIo=new _.wq("PLAYER_API_TOKEN");var HRn=!1,IpV,Fi3=!1,ORf;var fH=function(x,G,D,K,z){_.Ya.call(this);var y=this;this.playerId=G;this.webPlayerContextConfig=K;this.qfW=z;this.mzF=!1;this.api={};this.nng=this.uvo=null;this.sMg=new _.e_;this.qg={};this.sPg=this.pPq=this.elementId=this.hDe=this.config=null;this.hXF=!1;this.xE=this.cvv=null;this.pzv={};this.nLf=["onReady"];this.lastError=null;this.fml=NaN;this.bvq={};this.iDI=0;this.zH=this.targetElement=x;_.WZ(this,this.sMg);sRZ(this);D?this.iDI=setTimeout(function(){y.loadNewVideoConfig(D)},0):K&&(YMq(this),
mrJ(this))};
_.m(fH,_.Ya);fH.prototype.getId=function(){return this.playerId};
fH.prototype.loadNewVideoConfig=function(x){if(!this.isDisposed()){this.iDI&&(clearTimeout(this.iDI),this.iDI=0);var G=x||{};G instanceof Jzs||(G=new Jzs(G));this.config=G;this.setConfig(x);mrJ(this);this.isReady()&&HGu(this)}};
var YMq=function(x){var G;x.webPlayerContextConfig?G=x.webPlayerContextConfig.rootElementId:G=x.config.attrs.id;x.elementId=G||x.elementId;x.elementId==="video-player"&&(x.elementId=x.playerId,x.webPlayerContextConfig?x.webPlayerContextConfig.rootElementId=x.playerId:x.config.attrs.id=x.playerId);var D;((D=x.zH)==null?void 0:D.id)===x.elementId&&(x.elementId+="-player",x.webPlayerContextConfig?x.webPlayerContextConfig.rootElementId=x.elementId:x.config.attrs.id=x.elementId)};
fH.prototype.setConfig=function(x){this.hDe=x;this.config=$rZ(x);YMq(this);if(!this.pPq){var G;this.pPq=Fc7(this,((G=this.config.args)==null?void 0:G.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var D;if((D=this.config)==null?0:D.attrs)x=this.config.attrs,(G=x.width)&&this.zH&&(this.zH.style.width=$2(Number(G)||G,!0)),(x=x.height)&&this.zH&&(this.zH.style.height=$2(Number(x)||x,!0))};
var HGu=function(x){if(x.config&&x.config.loaded!==!0)if(x.config.loaded=!0,!x.config.args||x.config.args.autoplay!=="0"&&x.config.args.autoplay!==0&&x.config.args.autoplay!==!1){var G;x.api.loadVideoByPlayerVars((G=x.config.args)!=null?G:null)}else x.api.cueVideoByPlayerVars(x.config.args)},IRo=function(x){var G=!0,D=x.getPlayerElement();
D&&x.config&&(G=D.dataset.version===CTE(x));return G&&!!_.nT("yt.player.Application.create")},mrJ=function(x){if(!x.isDisposed()&&!x.hXF){var G=IRo(x);
if(G&&(x.getPlayerElement()?"html5":null)==="html5")x.sPg="html5",x.isReady()||jRs(x);else if(OGq(x),x.sPg="html5",G&&x.xE&&x.targetElement)x.targetElement.appendChild(x.xE),jRs(x);else{x.config&&(x.config.loaded=!0);var D=!1;x.cvv=function(){D=!0;var K=XvZ(x,"player_bootstrap_method")?_.nT("yt.player.Application.createAlternate")||_.nT("yt.player.Application.create"):_.nT("yt.player.Application.create");var z=x.config?$rZ(x.config):void 0;K&&K(x.targetElement,z,x.webPlayerContextConfig,x.qfW);jRs(x)};
x.hXF=!0;G?x.cvv():(_.Uf(CTE(x),x.cvv),(G=AIZ(x))&&Q6E(G||""),UrE(x)&&!D&&_.Jv("yt.player.Application.create",null))}}};
fH.prototype.getPlayerElement=function(){var x=_.Ja(document,this.elementId);!x&&this.zH&&this.zH.querySelector&&(x=this.zH.querySelector("#"+this.elementId));return x};
var jRs=function(x){if(!x.isDisposed()){var G=x.getPlayerElement(),D=!1;G&&G.getApiInterface&&G.getApiInterface()&&(D=!0);if(D){x.hXF=!1;if(!XvZ(x,"html5_remove_not_servable_check_killswitch")){var K;if((G==null?0:G.isNotServable)&&x.config&&(G==null?0:G.isNotServable((K=x.config.args)==null?void 0:K.video_id)))return}RW9(x)}else x.fml=setTimeout(function(){jRs(x)},50)}},RW9=function(x){sRZ(x);
x.mzF=!0;var G=x.getPlayerElement();if(G){x.uvo=SMh(x,G,"addEventListener");x.nng=SMh(x,G,"removeEventListener");var D=G.getApiInterface();D=D.concat(G.getInternalApiInterface());for(var K=x.api,z=0;z<D.length;z++){var y=D[z];K[y]||(K[y]=SMh(x,G,y))}}for(var c in x.qg)x.qg.hasOwnProperty(c)&&x.uvo&&x.uvo(c,x.qg[c]);HGu(x);x.pPq&&x.pPq(x.api);x.sMg.publish("onReady",x.api)},SMh=function(x,G,D){var K=G[D];
return function(){var z=_.rC.apply(0,arguments);try{return x.lastError=null,K.apply(G,z)}catch(y){if(D!=="sendAbandonmentPing")throw y.params=D,x.lastError=y,z=new _.LL("PlayerProxy error in method call",{error:y,method:D,playerId:x.playerId}),z.level="WARNING",z;}}},sRZ=function(x){x.mzF=!1;
if(x.nng)for(var G in x.qg)x.qg.hasOwnProperty(G)&&x.nng(G,x.qg[G]);for(var D in x.bvq)x.bvq.hasOwnProperty(D)&&clearTimeout(Number(D));x.bvq={};x.uvo=null;x.nng=null;G=x.api;for(var K in G)G.hasOwnProperty(K)&&(G[K]=null);G.addEventListener=function(z,y){x.addEventListener(z,y)};
G.removeEventListener=function(z,y){x.removeEventListener(z,y)};
G.destroy=function(){x.dispose()};
G.getLastError=function(){return x.getLastError()};
G.getPlayerType=function(){return x.getPlayerType()};
G.getCurrentVideoConfig=function(){return x.hDe};
G.loadNewVideoConfig=function(z){x.loadNewVideoConfig(z)};
G.isReady=function(){return x.isReady()}};
fH.prototype.isReady=function(){return this.mzF};
fH.prototype.addEventListener=function(x,G){var D=this;this.isDisposed();var K=Fc7(this,G);K&&(_.qL(this.nLf,x)||this.qg[x]||(G=n38(this,x),this.uvo&&this.uvo(x,G)),this.sMg.subscribe(x,K),x==="onReady"&&this.isReady()&&setTimeout(function(){K(D.api)},0))};
fH.prototype.removeEventListener=function(x,G){this.isDisposed()||(G=Fc7(this,G))&&this.sMg.unsubscribe(x,G)};
var Fc7=function(x,G){var D=G;if(typeof G==="string"){if(x.pzv[G])return x.pzv[G];D=function(){var K=_.rC.apply(0,arguments),z=_.nT(G);if(z)try{z.apply(_.Df,K)}catch(y){throw K=new _.LL("PlayerProxy error when executing callback",{error:y}),K.level="ERROR",K;}};
x.pzv[G]=D}return D?D:null},n38=function(x,G){var D=function(K){var z=function(){x.isDisposed();
if(!x.isDisposed())try{x.sMg.publish(G,K!=null?K:void 0)}catch(W){var c=new _.LL("PlayerProxy error when creating global callback",{error:W.message,event:G,playerId:x.playerId,data:K,originalStack:W.stack,componentStack:W.componentStack});c.level="WARNING";throw c;}};
if(XvZ(x,"web_player_publish_events_immediately"))z();else{var y=setTimeout(function(){z();_.YS.remove(x.bvq,String(y))},0);
_.YS.add(x.bvq,String(y),!0)}};
return x.qg[G]=D};
fH.prototype.getPlayerType=function(){return this.sPg||(this.getPlayerElement()?"html5":null)};
fH.prototype.getLastError=function(){return this.lastError};
var OGq=function(x){x.cancel();sRZ(x);x.sPg=null;x.config&&(x.config.loaded=!1);var G=x.getPlayerElement();G&&(IRo(x)||!UrE(x)?x.xE=G:(G&&G.destroy&&G.destroy(),x.xE=null));x.targetElement&&_.LX(x.targetElement)};
fH.prototype.cancel=function(){this.cvv&&_.qRn(CTE(this),this.cvv);clearTimeout(this.fml);this.hXF=!1};
fH.prototype.disposeInternal=function(){OGq(this);if(this.xE&&this.config&&this.xE.destroy)try{this.xE.destroy()}catch(G){var x=new _.LL("PlayerProxy error during disposal",{error:G});x.level="ERROR";throw x;}this.pzv=null;for(x in this.qg)this.qg.hasOwnProperty(x)&&delete this.qg[x];this.hDe=this.config=this.api=null;delete this.targetElement;delete this.zH;_.Ya.prototype.disposeInternal.call(this)};
var UrE=function(x){var G,D;x=(G=x.config)==null?void 0:(D=G.args)==null?void 0:D.fflags;return!!x&&x.indexOf("player_destroy_old_version=true")!==-1},CTE=function(x){return x.webPlayerContextConfig?x.webPlayerContextConfig.jsUrl:(x=x.config.assets)?x.js:""},AIZ=function(x){return x.webPlayerContextConfig?x.webPlayerContextConfig.cssUrl:(x=x.config.assets)?x.css:""},XvZ=function(x,G){if(x.webPlayerContextConfig)var D=x.webPlayerContextConfig.serializedExperimentFlags;
else{var K;if((K=x.config)==null?0:K.args)D=x.config.args.fflags}return(D||"").split("&").includes(G+"=true")},$rZ=function(x){for(var G={},D=_.l(Object.keys(x)),K=D.next();!K.done;K=D.next()){K=K.value;
var z=x[K];G[K]=typeof z==="object"?_.YS.clone(z):z}return G};var STn={},Rjf="player_uid_"+(Math.random()*1E9>>>0);var gE=function(x,G,D,K,z,y){G=G===void 0?document.createElement("div"):G;this.webPlayerContextConfig=x;this.container=G;this.commandResolver=D;this.apiResolver=gDO();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.Kt;K||y?iGJ(this):g3Z(this);this.pendingPlayerResponse=K;this.pendingWatchNextResponse=z;this.pendingPlayerVars=y;uW9(this)};
gE.prototype.loadVideoWithPlayerResponse=function(x,G,D){this.loadVideo(x,G,D)};
gE.prototype.loadVideoWithPlayerVars=function(x){return this.loadVideo(void 0,void 0,x)};
gE.prototype.destroy=function(x){if(x=_.Ja(document,x))x=Rjf+"_"+_.Do(x),(x=STn[x])&&x.dispose()};
var wvi=function(x,G){var D;_.T(function(K){if(K.nextAddress==1)return x.pendingWatchNextResponse=G,x.synchronousApi?(D=x.synchronousApi,K.jumpTo(2)):_.Z(K,x.api,3);K.nextAddress!=2&&(D=K.yieldResult);drZ(x,D);x.pendingWatchNextResponse&&(D.updateVideoData({raw_watch_next_response:x.pendingWatchNextResponse}),x.pendingWatchNextResponse=void 0);_.c5(K)})},drZ=function(x,G){var D;
if(!(G==null?0:(D=G.isReady)==null?0:D.call(G))){var K;x=new _.LL("playerApi is falsey",{synchronousApi:x.synchronousApi,apiResolved:x.apiResolver.resolved,playerApiUndefined:G===void 0,playerApiNull:G===null,playerApiReady:(G==null?void 0:(K=G.isReady)==null?void 0:K.call(G))===!0,playerApiMethods:G?Object.keys(G):[]});_.I4(x)}},qMZ=function(x,G){if(typeof x[G]==="function")return x[G]()},Nos=function(x){var G=window,D,K=(D=G.ytplayer)==null?void 0:D.bootstrapPlayerContainer;
if((D=K==null?void 0:K.firstElementChild)&&_.jH(D,"html5-video-player")){var z,y,c=(z=G.ytplayer)==null?void 0:(y=z.bootstrapWebPlayerContextConfig)==null?void 0:y.contextId;z=x.webPlayerContextConfig.contextId;if(c&&c===z){K!==x.container&&(K=!1,qMZ(D,"getPlayerState")===2&&(K=!0),x.container.appendChild(D),K||qMZ(D,"playVideo"));var W;if((W=G.ytplayer)==null?0:W.bootstrapPlayerResponse)x.bootstrapPlayerResponse=G.ytplayer.bootstrapPlayerResponse}}},uW9=function(x){var G,D,K,z,y;
_.T(function(c){if(c.nextAddress==1)return x.pageReadyOrDataAvailable?c.jumpTo(2):_.Z(c,x.pageReadyOrDataAvailableResolver.promise,2);if(c.nextAddress!=4)return!_.B("kevlar_player_unified_player_loading")||$$C()&&CBE()?c.jumpTo(4):_.Z(c,AlL(),4);Nos(x);if(x.pendingPlayerResponse||x.pendingPlayerVars)G=U$f(x.pendingPlayerResponse,x.pendingWatchNextResponse,x.pendingPlayerVars),x.pendingPlayerResponse&&x.pendingPlayerResponse===x.bootstrapPlayerResponse&&(G.loaded=!0),x.bootstrapPlayerResponse=void 0;
D=iRL(x.container,G,x.webPlayerContextConfig);((K=G)==null?0:K.loaded)&&x.pendingWatchNextResponse?(wvi(x,x.pendingWatchNextResponse),x.pendingPlayerResponse=void 0,x.pendingPlayerVars=void 0):v3k(x);z=function(W){D.removeEventListener("onReady",z);x.synchronousApi=W;x.apiResolver.resolve(W)};
D.addEventListener("onReady",z);x.commandResolver!==void 0&&(y=x.commandResolver,D.addEventListener("innertubeCommand",function(W){y(W)}));
_.c5(c)})};
gE.prototype.loadVideo=function(x,G,D){var K=this,z,y,c,W,e,Q,p,V,L;return _.T(function(r){if(r.nextAddress==1)return K.pendingPlayerResponse=x,K.pendingWatchNextResponse=G,K.pendingPlayerVars=D,iGJ(K),K.synchronousApi?(z=K.synchronousApi,r.jumpTo(2)):_.Z(r,K.api,3);r.nextAddress!=2&&(z=r.yieldResult);drZ(K,z);c=new Promise(function(H){y=H});
W=function(){var H=z.getPlayerResponse();H&&(z.removeEventListener("onVideoDataChange",W),y(H))};
z.addEventListener("onVideoDataChange",W);if(K.pendingPlayerResponse||K.pendingPlayerVars)K.pendingPlayerResponse&&K.pendingPlayerResponse===K.bootstrapPlayerResponse?(y(K.pendingPlayerResponse),K.pendingWatchNextResponse&&wvi(K,K.pendingWatchNextResponse)):(e=U$f(K.pendingPlayerResponse,K.pendingWatchNextResponse,K.pendingPlayerVars),(L=(Q=K.pendingPlayerResponse)==null?void 0:(p=Q.playerConfig)==null?void 0:(V=p.playbackStartConfig)==null?void 0:V.startPaused)?z.cueVideoByPlayerVars(e.args):z.loadVideoByPlayerVars(e.args)),
v3k(K),K.bootstrapPlayerResponse=void 0;return r.return(c)})};
var g3Z=function(x){if(document.readyState==="complete"||document.readyState==="interactive")iGJ(x);else{var G=function(){document.removeEventListener("DOMContentLoaded",G);iGJ(x)};
document.addEventListener("DOMContentLoaded",G)}},iGJ=function(x){x.pageReadyOrDataAvailable=!0;
x.pageReadyOrDataAvailableResolver.resolve()},v3k=function(x){x.pendingPlayerResponse=void 0;
x.pendingWatchNextResponse=void 0;x.pendingPlayerVars=void 0};
_.Nq.Object.defineProperties(gE.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var u4=function(x){rU.call(this,x===void 0?"document_active":x);var G=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(D){G.transition("document_disposed",{event:D})});
window.addEventListener("beforeunload",function(D){G.transition("document_disposed_preventable",{event:D})});
window.addEventListener("unload",function(D){G.transition("document_disposed",{event:D});G.hasRun=new Map})};
_.m(u4,rU);
u4.prototype.runPreventableDispose=function(x,G){if(!this.hasRun.get("document_disposed_preventable")){x(G==null?void 0:G.event);var D,K;if((G==null?0:(D=G.event)==null?0:D.defaultPrevented)||(G==null?0:(K=G.event)==null?0:K.returnValue)){G.event.returnValue||(G.event.returnValue=!0);G.event.defaultPrevented||G.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")};
u4.prototype.runDispose=function(x,G){this.hasRun.get("document_disposed")?this.transition("document_active"):(x(G==null?void 0:G.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
u4.prototype.runFlush=function(x,G){x(G==null?void 0:G.event);this.transition("document_active")};
u4.prototype.runActive=function(){};var dE=function(x){rU.call(this,x===void 0?"document_visibility_unknown":x);var G=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(D){document.visibilityState==="visible"?G.transition("document_visible",{event:D}):G.transition("document_hidden",
{event:D})});
_.B("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(D){G.transition("document_backgrounded",{event:D})}),window.addEventListener("focus",function(D){G.transition("document_foregrounded",{event:D})}))};
_.m(dE,rU);dE.prototype.runVisible=function(x,G){x(G==null?void 0:G.event);_.B("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
dE.prototype.runHidden=function(x,G){x(G==null?void 0:G.event);_.B("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
dE.prototype.runBackgrounded=function(x,G){x(G==null?void 0:G.event)};
dE.prototype.runForegrounded=function(x,G){x(G==null?void 0:G.event)};var wE=function(){this.teardownLifecycle=new u4;this.visibilityLifecycle=new dE};
wE.prototype.install=function(){var x=_.rC.apply(0,arguments),G=this;x.forEach(function(D){G.teardownLifecycle.install(D)});
x.forEach(function(D){G.visibilityLifecycle.install(D)})};var qE=function(){wE.call(this);var x={};this.install((x.document_disposed={callback:this.abortSlisAndFlush},x));_.B("combine_ve_grafts")&&(x={},this.install((x.document_disposed={callback:this.flushInteractionLoggingAttachVes},x)));x={};this.install((x.flush_logs={callback:this.logFinalPayload},x));_.B("web_log_cfg_cee_ks")||_.Bw(_.Fj,JI7)};
_.m(qE,wE);var uRn=function(){qE.loggingInstance||(qE.loggingInstance=new qE);return qE.loggingInstance};
qE.prototype.logFinalPayload=function(){if(_.B("web_fp_via_jspb")){var x=new ru0,G=_.CC();G&&_.Z_(x,1,G);G=_.B("jspb_sparse_encoded_pivot")?new LE([{}]):new LE;_.DB(G,380,sW7,x);RAE("finalPayload",G);_.B("web_fp_via_jspb_and_json")&&_.Fv("finalPayload",{csn:_.CC()})}else _.Fv("finalPayload",{csn:_.CC()})};
qE.prototype.abortSlisAndFlush=function(){jLJ(Xg);Az!=null&&Az.flush()};
qE.prototype.flushInteractionLoggingAttachVes=function(){Pks(_.en())};
var JI7=function(){var x=_.Am("CLIENT_EXPERIMENT_EVENTS");if(x){var G=i$E();x=_.l(x);for(var D=x.next();!D.done;D=x.next())D=D.value,G(D)&&_.Fv("genericClientExperimentEvent",{eventType:D});delete _.Oo.CLIENT_EXPERIMENT_EVENTS}};var fR8={};
fR8.YtPlayerBehavior=[_.nS.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 x=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.Kt;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;d$E(function(){x.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.FK(this,"pan-down"),_.B("kevlar_pinch_fullscreen")&&_.ZH().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.B("kevlar_pinch_fullscreen")&&_.ZH().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(x,G,D){var K=this;ta(this.useUnifiedPlayer_());if(this.mainAppPlayer_)ta(!1,"MainAppPlayer already created.");else{var z=_.B("kevlar_player_container_query_killswitch")?this.$.container:_.kA(this.hostElement).querySelector("#container");this.mainAppPlayer_=new gE(this.getWebPlayerContextConfig_(),z,function(y){return _.lb(y,K.hostElement)},x,G,D);
this.mainAppPlayer_.api.then(function(y){K.player_=y;K.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&kSJ.resolve(y)})}},
loadVideoWithPlayerResponse:function(x,G){var D=this;if(this.useUnifiedPlayer_()){var K=this.watchNextData,z,y=(z=x.videoDetails)==null?void 0:z.videoId,c,W,e;(z=(c=this.watchNextData)==null?void 0:(W=c.currentVideoEndpoint)==null?void 0:(e=W.watchEndpoint)==null?void 0:e.videoId)&&y!=z&&(K=void 0,_.B("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(x,K,G):this.createMainAppPlayer_(x,K,G);this.mainAppPlayer_.api.then(function(){_.h$(D.hostElement,
"yt-player-updated")})}else this.update(sgD(x,G))},
loadVideoWithPlayerVars:function(x){var G=this;this.useUnifiedPlayer_()?(_.B("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(x):this.createMainAppPlayer_(void 0,void 0,x),this.mainAppPlayer_.api.then(function(){_.h$(G.hostElement,"yt-player-updated")})):this.update({args:x})},
update:function(x){var G=this;if(this.useUnifiedPlayer_())ta(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(x);var D=hyQ(x.args);D&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==D&&Object.assign(x.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(x).then(function(K){_.h$(G.hostElement,"yt-player-updated",_.B("kevlar_player_updated_obsolete_player_killswitch")?
K:void 0)})}_.jm(new _.LL("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(x){var G=this,D;return _.T(function(K){if(K.nextAddress==1)return _.Z(K,G.getPlayerPromise(),2);D=K.yieldResult;if(!D)throw Error("rh");x&&G.updatePlayerPlaylist_(x);_.c5(K)})},
acquireApi_:function(x){var G=this;if(this.useUnifiedPlayer_())ta(!1,"Invalid method call in kevlar_unified_player.");else return _.Fj.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(ta(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(D){G.shouldAutoplay_(x)?D.loadVideoByPlayerVars(x.args):D.cueVideoByPlayerVars(x.args)})):this.initPlayerPromise_=this.initPlayerContainer_(x),this.initPlayerPromise_},
initPlayerContainer_:function(x){var G=this;if(this.useUnifiedPlayer_())ta(!1,"Invalid method call in kevlar_unified_player.");else return ta(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.O9(Error("sh")),ta(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.B("kevlar_player_container_query_killswitch")?this.$.container:_.kA(this.hostElement).querySelector("#container"),AlL().then(function(){var D=G.initPlayer_(x);G.playerResolver_.resolve(D);
return D})},
onPlayerReady_:function(x,G){this.useUnifiedPlayer_()?ta(!1,"Invalid method call in kevlar_unified_player."):(x.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&kSJ.resolve(x),G(x))},
maybeCallApiMethodOnElement_:function(x,G){if(typeof x[G]==="function")return x[G]()},
maybeAdoptBootstrapPlayer_:function(){var x=window,G,D=(G=x.ytplayer)==null?void 0:G.bootstrapPlayerContainer;if((G=D==null?void 0:D.firstElementChild)&&G.classList.contains("html5-video-player")){var K,z,y=(K=x.ytplayer)==null?void 0:(z=K.bootstrapWebPlayerContextConfig)==null?void 0:z.contextId;K=this.getWebPlayerContextConfig_().contextId;if(y&&y===K){D!==this.playerContainer_&&(D=!1,this.maybeCallApiMethodOnElement_(G,"getPlayerState")===2&&(D=!0),this.playerContainer_.appendChild(G),D||this.maybeCallApiMethodOnElement_(G,
"playVideo"));var c;if((c=x.ytplayer)==null?0:c.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=x.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(x){var G=this;if(this.useUnifiedPlayer_())ta(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(D){G.maybeAdoptBootstrapPlayer_();var K=x?YTf(x):void 0;K&&K==G.bootstrapPlayerResponse_&&(x.loaded=!0);K=G.playerContainer_;var z=G.getWebPlayerContextConfig_();K=iRL(K,x,z);G.player_=K;G.onPlayerReadyEvent_=G.onPlayerReady_.bind(G,G.player_,D);G.player_.addEventListener("onReady",G.onPlayerReadyEvent_);G.player_.addEventListener("innertubeCommand",
G.onPlayerInnerTubeCommand_.bind(G))})},
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(x){x.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(x){x.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var x=_.Eo().resolve(_.wG).getCurrentPage();x&&x.getScrollTop()<=0?_.FK(this,"pan-down"):_.FK(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(x){x.isFullscreen()||x.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(x){x.isFullscreen()&&x.toggleFullscreen()})},
updatePlayerPlaylist_:function(x){var G=this,D,K,z;return _.T(function(y){if(y.nextAddress==1)return D=_.Eo().resolve(_.P6(_.HG)),K=!!(D&&D.playlistComponent&&D.playlistComponent.loopOn),_.Z(y,G.getPlayerPromise(),2);var c=z=y.yieldResult,W=c.updatePlaylist,e=[];if(_.B("kevlar_player_playlist_use_local_index")){var Q,p;var V=(p=(Q=x.localCurrentIndex)!=null?Q:x.currentIndex)!=null?p:0}else{var L;V=(L=x.currentIndex)!=null?L:0}if(x.contents)for(Q=0;Q<x.contents.length;Q++)if((p=x.contents[Q])&&p.playlistPanelVideoRenderer)if(nPf(p)){p=
p.playlistPanelVideoRenderer;L="";p.shortBylineText&&(L=_.u7(p.shortBylineText));var r="";p.title?r=_.u7(p.title):p.unplayableText&&(r=_.u7(p.unplayableText));e.push({author:L,title:r,encrypted_id:p.videoId})}else Q<V&&--V;W.call(c,{index:V,list:x.playlistId?x.playlistId:"",loop:K,playlist_title:x.title,playlist_length:e.length,video:e,fetch:0,external_list:"1",title:x.title?x.title:"",playlist_author:x.ownerName?_.u7(x.ownerName):void 0});_.c5(y)})},
focusOnPlayer:function(){_.w1(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var x=this.playerContainer_.querySelector(".html5-video-player");x&&(_.NE(_.Eo().resolve(_.su)),x.focus())}})},
preparePlayer:function(){var x=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(G){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")G();else{var D=function(){document.removeEventListener("DOMContentLoaded",D);G()};
document.addEventListener("DOMContentLoaded",D)}})).then(function(){return AlL()}).then(function(){x.initPlayerPromise_||x.preparePlayerJobId_||(x.preparePlayerJobId_=_.Bw(_.Fj,function(){x.initPlayerPromise_||(x.initPlayerPromise_=x.initPlayerContainer_())}))}):_.jm(new _.LL("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(x){this.useUnifiedPlayer_()?ta(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(x)||(x.args.autoplay="0")},
shouldAutoplay_:function(x){if(this.useUnifiedPlayer_())ta(!1,"Invalid method call in kevlar_unified_player.");else{var G=this.get("args.el",x);return G&&G!="detailpage"&&this.isMiniplayerActive_()||G&&(G=="sponsorshipsoffer"||G=="handlesclaiming")&&this.get("args.autoplay",x)=="0"?!1:(x=YTf(x))&&this.get("playerConfig.playbackStartConfig.startPaused",x)?!1:!0}},
isMiniplayerActive_:function(){return _.Eo().resolve(_.O$).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var x=this.getPlayer();if(x){var G=x.getPlayerState();_.B("kevlar_player_check_ad_state_on_stop")&&(G=x.getPlayerState(x.getPresentingPlayerType()));G!=5&&x.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(x,G,D){D=D===void 0?!1:D;var K=this,z,y,c,W;return _.T(function(e){if(e.nextAddress==1)return G||(G=K.hostElement),z=K.useUnifiedPlayer_()?!!K.mainAppPlayer_:!!K.initPlayerPromise_,z?_.Z(e,K.getPlayerPromise(),2):(D?x.insertBefore(G,x.firstChild):x.appendChild(G),e.return());y=e.yieldResult;c=y.getPlayerState(y.getPresentingPlayerType());W=!1;if(c==-1||c==1||c==3)W=!0;D?x.insertBefore(G,x.firstChild):x.appendChild(G);W&&y.playVideo();y.setSize(NaN,NaN);_.c5(e)})},
watchNextDataChanged_:function(x){var G=this;x&&(this.useUnifiedPlayer_()&&_.B("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&wvi(this.mainAppPlayer_,x):this.getPlayerPromise().then(function(D){D.updateVideoData(G.computeWatchNextPlayerVars_(x))}))},
computeWatchNextPlayerVars_:function(x){if(this.useUnifiedPlayer_()&&_.B("kevlar_unified_player_update_watch_next_killswitch"))ta(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:x}},
maybeSendAbandonmentPing_:function(){var x=this.getPlayer();x&&x.getPlayerState()!=5&&x.getPlayerState()!=0&&x.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var x=_.Am("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(x=Object.assign({},x),x.rootElementId=this.playerId);x.serializedExperimentIds&&x.serializedExperimentFlags||_.O9(Error("th"));return x},
hasWebPlayerContextConfig_:function(){return!!_.Am("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(x){this.useUnifiedPlayer_()?ta(!1,"Invalid method call in kevlar_unified_player."):_.lb(x,this.hostElement)},
useUnifiedPlayer_:function(){var x=_.B("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.B("kevlar_unified_player")||x}}];var tFq={};tFq.YtPlaylistPanelBehavior=[_.h.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(x){x=x.detail;if(x.actions.loop!=void 0||x.actions["yt-icons:loop"]!=void 0)this.loopOn=x.actions.loop||x.actions["yt-icons:loop"];if(x.actions.shuffle!=void 0||x.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=x.actions.shuffle||x.actions["yt-icons:shuffle"]},
setMenuData_:function(x){if(!x||!x.playlistButtons||x.isInfinite)return null;for(var G=x.playlistButtons.menuRenderer.topLevelButtons,D=G.length,K=0;K<D;K++)if(G[K].toggleButtonRenderer){var z=G[K].toggleButtonRenderer;z.defaultIcon.iconType=="LOOP"&&this.loopOn?z.isToggled=this.loopOn:z.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(z.isToggled=this.shuffleOn)}return x.playlistButtons}}];var kJ0=function(x){hU.call(this,x,132);this.isDocument=x===document.documentElement};
_.m(kJ0,hU);kJ0.prototype.calculateScrollDelta=function(x,G,D){var K=0;x<G?K=x<G-100?-48:-8:x>G+D&&(K=x>G+D+100?48:8);return K};
kJ0.prototype.JSC$9298_onMouseMove=function(x){this.isDocument||(x.clientX=x.event_.pageX,x.clientY=x.event_.pageY);hU.prototype.JSC$9298_onMouseMove.call(this,x)};var vT=function(){var x=_.WD.apply(this,arguments)||this;x._noAccessors=!0;x.scrollElement=document.documentElement;x.JSC$12263_dragListGroup=null;x.dragScrollSupport=null;x.onDraggerCreated=function(G){var D=G.JSC$9294_dragger;D.scrollTarget_=x.scrollElement;G=G.draggerEl;D&&G.menuOpened&&D.setEnabled(!1)};
x.onDragStart=function(G){var D=G.draggerEl;G=G.currDragItem;var K=Object.assign({},G==null?void 0:G.data);K.trackingParams=void 0;D.data=K;D.style.position="absolute";D.style.width=(G==null?void 0:G.clientWidth)+"px";D.style.zIndex="2030";D.onDrag&&D.onDrag();_.B("web_owner_document_fallback_killswitch")?(G=document.querySelector("ytd-app"))&&_.kA(G).appendChild(D):(G=_.C2(D),(K=G.querySelector("ytd-app"))?_.kA(K).appendChild(D):G.body.appendChild(D));x.dragScrollSupport=new kJ0(x.scrollElement);
x.dragScrollSupport.horizontalScrolling_=!1;D=x.dragScrollSupport;D.constrainScroll_=!!D.margin_&&!1};
x.onDrop=function(G){x.handleDrop(G);x.dragScrollSupport&&(_.kS(x.dragScrollSupport),x.dragScrollSupport=null)};
x.onReorderableScroll=function(){if(x.JSC$12263_dragListGroup){var G=x.JSC$12263_dragListGroup;QIh(G,G.currDragItem_)}};
return x};
_.m(vT,_.WD);vT.prototype.detached=function(){_.PTq(this)};
_.PTq=function(x){x.JSC$12263_dragListGroup&&(_.cA(x.JSC$12263_dragListGroup,oOq,x.onDragStart),_.cA(x.JSC$12263_dragListGroup,TBq,x.onDragStart),x.JSC$12263_dragListGroup.dispose(),x.JSC$12263_dragListGroup=null);x.dragScrollSupport&&(_.kS(x.dragScrollSupport),x.dragScrollSupport=null);x.scrollElement.removeEventListener("scroll",x.onReorderableScroll)};
_.E3u=function(x,G,D,K){K=K===void 0?"":K;_.PTq(x);D&&(x.scrollElement=D);x.JSC$12263_dragListGroup=new Fb;x.JSC$12263_dragListGroup.hysteresisDistance_=2;e9u(x.JSC$12263_dragListGroup,G);x.JSC$12263_dragListGroup.draggerElClasses_=Zf("dragging").split(" ");K&&ZWh(x.JSC$12263_dragListGroup,function(z){var y=z||document,c=null;y.getElementsByClassName?c=y.getElementsByClassName(K)[0]:c=oC8("*",K,z);return c||z});
_.Lz(x.JSC$12263_dragListGroup,z9i,x.onDraggerCreated);_.Lz(x.JSC$12263_dragListGroup,oOq,x.onDragStart);_.Lz(x.JSC$12263_dragListGroup,TBq,x.onDrop);x.JSC$12263_dragListGroup.init();x.scrollElement.addEventListener("scroll",x.onReorderableScroll,{passive:!0})};
vT.prototype.handleDrop=function(){};
_.Nq.Object.defineProperties(vT.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.q([_.R({value:100}),_.N("design:type",Number)],vT.prototype,"scrollMargin",void 0);vT=_.q([_.e2()],vT);_.hW7=[vT.prototype];_.Jp={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(x,G,D){var K=this.getClickTarget_(G);if(K&&this.isClickAllowed_(K)){G.preventDefault();x=(0,_.YS.unsafeClone)(x);var z=this.getContainerBoundingRect();G=this.getRelativeClickXy_(G,z);this.expandEndpointUrlMacros_(x,{NX:G[0],NY:G[1],NB:K.code});D&&this.truncateWebCommendMetadataUrl_(x);_.h$(this.hostElement,"yt-navigate",{endpoint:x})}},
getClickTarget_:function(x){if(!this.clickTargetMap)return null;x=_.gA(x)||[];x=_.l(x);for(var G=x.next();!G.done;G=x.next()){G=G.value;if(G===_.kA(this.hostElement).querySelector("#menu"))break;if(G=this.clickTargetMap.get(G.id))return G}return null},
getRelativeClickXy_:function(x,G){var D=x.detail.x,K=x.detail.y;_.B("use_on_click_for_desktop_display_ad")&&x.clientX!=null&&x.clientY!=null&&(D=x.clientX,K=x.clientY);x=Math.round(D-G.left);G=Math.round(K-G.top);return x<0||G<0?[null,null]:[x,G]},
getContainerBoundingRect:function(){return _.kA(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(x,G){for(var D=_.l(x.loggingUrls||[]),K=D.next();!K.done;K=D.next())K=K.value,K.baseUrl&&(K.baseUrl=mF(K.baseUrl,G));x.urlEndpoint&&x.urlEndpoint.url&&(x.urlEndpoint.url=mF(x.urlEndpoint.url,G));x.commandMetadata&&x.commandMetadata.webCommandMetadata&&x.commandMetadata.webCommandMetadata.url&&(x.commandMetadata.webCommandMetadata.url=mF(x.commandMetadata.webCommandMetadata.url,G))},
truncateWebCommendMetadataUrl_:function(x){if(x.commandMetadata&&x.commandMetadata.webCommandMetadata&&x.commandMetadata.webCommandMetadata.url){var G=x.commandMetadata.webCommandMetadata.url,D=G.indexOf("&pp=");if(D>0){var K=G.indexOf("&",D+1);x.commandMetadata.webCommandMetadata.url=K>D&&K<G.length?G.slice(0,D)+G.slice(K):G.slice(0,D)}}},
configureClickTargets:function(x,G,D){this.containerId=x;this.clickTargetMap=new Map;x=_.l(G);for(G=x.next();!G.done;G=x.next())if(G=G.value,G.location){var K=D.get(G.location);K&&(_.E4(_.kA(this.hostElement).querySelector("#"+K),"yt-simple-endpoint",this.isClickAllowed_(G)),this.clickTargetMap.set(K,G))}},
isClickAllowed_:function(x){return x.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||x.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||x.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||x.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.fS={};
_.fS.YtLazyListBehavior=[_.qz.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 x=(this.constructor.generatedFrom||this).observers;x||(x=[]);x.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
x}},
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 x=this.renderElementsOutsideVisibleArea_;x&&(oXi(x,4),x.processSignal())},
deepLazyListObserver_:function(x){var G=this;if(x){var D=x.value||[];if(this.itemsPath==x.path){var K=this.nonDeferredItemCount;x=0;K>-1&&D.length>K&&(x=_.Am("REMAINING_DOVA_DEFERRED_CHUNKS",-1));x>0?(K>0&&(K=D.slice(0,K),this.setInitialItemsOnDataChanged(K)),(K=this.renderElementsOutsideVisibleArea_)?K.cancel():(K=this.renderElementsOutsideVisibleArea_=new _.vP(2,"eocs"),_.dBh(window,"scroll",function(){return G.renderDeferredElements()})),_.JG(K,function(){G.setInitialItemsOnDataChanged(D)}),_.XQ("REMAINING_DOVA_DEFERRED_CHUNKS",
x-1)):this.setInitialItemsOnDataChanged(D)}else if(this.itemsPath+".splices"==x.path)this.onItemsUpdated_(D);
else K="shownItems"+x.path.substr(this.itemsPath.length),this.useSignals&&K==="shownItems.length"||this.notifyPath(K,x.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(x){x&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(x),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(x){x=x.indexSplices;for(var G=0,D=x.length;G<D;G++){var K=x[G];if(K.index<this.shownCount&&(K.removed&&this.splice("shownItems",K.index,K.removed.length),K.addedCount)){var z=K.object.slice(K.index,K.index+K.addedCount);K=["shownItems",K.index,0];K.push.apply(K,z);this.splice.apply(this,K)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(x){this.cancelPendingTasks_();x||(x=[]);this.items_=x;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&&(_.Uo("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.w1(this,this.tryRenderChunk_)))},
fillRange_:function(x,G){this.canShowMore&&this.items_&&(x=this.items_.slice(x,G),x.unshift("shownItems"),this.push.apply(this,x),this.shownCount=G,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var x=this;this.canShowMore&&_.Ao(this,"renderChunk",function(){x.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.Uo("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.eU(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var x=this.renderElementsOutsideVisibleArea_;x&&(x.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var x=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(x-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=x;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(x){return Math.ceil(1E3/x)},
onCanShowMoreUpdated_:function(x){this.data&&this.items_!==null&&(x?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(x){!this.shouldUseTaskManager()&&this.data&&(!x&&this.canShowMore?(_.pOL(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):x&&this.partiallyRenderedItems_.has(this.items_)&&(_.B("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var PT;_.tp={};
PT=function(){var x=_.WD.apply(this,arguments)||this;x.atStart=!0;x.atEnd=!0;x.startIndex=0;x.endIndex=0;x.scrollCount=0;x.initialStartIndex=0;x.disableScrollEventListener=!1;x.useFloorScrolling=!1;x.isSearch=!1;x.dragging=!1;x.dragMouseStart=0;x.dragOffsetStart=0;x.disableWheelScroll=!1;x.centerListItems=!1;x.offset=0;x.minComponentWidth=0;x.marginWidthRight=0;x.marginWidthLeft=0;x.setButtonsStateRequested=!1;x.itemsVisibilityObserver=null;x.fullyVisibleItemsIndices=[];x.JSC$12274_onWheelScroll=function(G){if(x.isSearch&&
!x.disableWheelScroll&&_.B("desktop_enable_dmpanel_wheel_scroll")){var D=G.shiftKey?Math.abs(G.deltaY)>Math.abs(G.deltaX)?G.deltaY:G.deltaX:G.deltaX;D!==0&&(G.preventDefault(),x.ytLazyListBehavior.fillRemainingListItems(),x.offset+=D,kl(x),x.reposition_())}};
x.onPointerDown=function(G){x$s(x)&&(x.dragMouseStart=G.clientX,x.dragOffsetStart=x.offset,x.dragging=!0)};
x.onPointerMove=function(G){x$s(x)&&x.dragging&&(x.ytLazyListBehavior.fillRemainingListItems(),x.offset=x.dragOffsetStart-(G.clientX-x.dragMouseStart),kl(x),x.reposition_())};
x.onPointerUp=function(){x$s(x)&&(x.dragging=!1)};
return x};
_.m(PT,_.WD);var G_9=function(x){var G=_.kA(x.hostElement).querySelector("#items").children;if(!G)return 0;var D=0;x=_.l(x.fullyVisibleItemsIndices);for(var K=x.next();!K.done;K=x.next())D+=G[K.value].clientWidth;return D},x$s=function(x){return x.isSearch&&_.B("desktop_enable_dmpanel_click_drag_scroll")};
PT.prototype.created=function(){this.cachedViewportWidth=_.Am("initialInnerWidth")||window.innerWidth;this.JSC$12274_cachedViewportHeight=_.Am("initialInnerHeight")||window.innerHeight;_.Am("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.XQ("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
PT.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.B("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();D$9(this)};
PT.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.B("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var x;(x=this.itemsVisibilityObserver)==null||x.disconnect();this.itemsVisibilityObserver=null;var G;(G=this.itemsObserver)==null||G.disconnect()};
var D$9=function(x){var G=_.kA(x.hostElement).querySelector("#scroll-container");if(G){if(!x.itemsVisibilityObserver){var D=window.getComputedStyle(G).marginRight;x.itemsVisibilityObserver=new IntersectionObserver(function(K){KiJ(x,K)},{root:G,
rootMargin:D,threshold:.98})}if(G=_.kA(x.hostElement).querySelector("#items"))x.itemsObserver=new JUZ(G,function(K){zjo(x,K)})}},zjo=function(x,G){apq(x)&&(Array.from(G.addedNodes).filter(function(D){return D.nodeType===Node.ELEMENT_NODE}).forEach(function(D){x.itemsVisibilityObserver&&x.itemsVisibilityObserver.observe(D)}),Array.from(G.removedNodes).filter(function(D){return D.nodeType===Node.ELEMENT_NODE}).forEach(function(D){x.itemsVisibilityObserver&&x.itemsVisibilityObserver.unobserve(D)}))},
KiJ=function(x,G){var D=new Set(x.fullyVisibleItemsIndices);
G=_.l(G);for(var K=G.next();!K.done;K=G.next()){K=K.value;var z=K.target.parentElement;z?(z=Array.from(z.children).indexOf(K.target),K.isIntersecting?D.add(z):D.has(z)&&D.delete(z)):_.O9(new _.LL("Parent element not found",K.target.nodeName))}x.fullyVisibleItemsIndices=Array.from(D).sort(function(y,c){return y-c});
D.size===0?_.O9(new _.LL("No visible entries in horizontal list")):(x.startIndex=x.fullyVisibleItemsIndices[0],x.endIndex=x.fullyVisibleItemsIndices[x.fullyVisibleItemsIndices.length-1])},apq=function(x){x.data?x=(x=x.data)&&x.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===x.itemSizeConstraint:!1:x=!1;
return x};
_.a=PT.prototype;_.a.addScrollEventListeners=function(){var x=_.kA(this.hostElement).querySelector("#scroll-container");x.style.touchAction="pan-y";x.addEventListener("wheel",this.JSC$12274_onWheelScroll);x.addEventListener("pointerdown",this.onPointerDown);x.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.a.removeScrollEventListeners=function(){var x=_.kA(this.hostElement).querySelector("#scroll-container");x.removeEventListener("wheel",this.JSC$12274_onWheelScroll);x.removeEventListener("pointerdown",this.onPointerDown);x.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.a.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.w1(this,this.setStartIndex,[this.initialStartIndex])};
_.a.reposition_=function(){var x=_.Am("HTML_DIR")=="rtl"?"":"-",G=_.kA(this.hostElement).querySelector("#items");G&&(G.style.transform="translateX("+x+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.a.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.w1(this,this.setButtonsState_))};
_.a.setButtonsState_=function(){this.setButtonsStateRequested=!1;var x=_.kA(this.hostElement).querySelector("#items").firstElementChild;if(x){this.minComponentWidth||(this.minComponentWidth=oD7(this,x));x=_.kA(this.hostElement).querySelector("#scroll-container").clientWidth;var G=_.kA(this.hostElement).querySelector("#items").clientWidth,D=this.get(this.ytLazyListBehavior.itemsPath,this);if(D){var K=Math.round(x/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=
Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+K,D.length)-1)}this.ytLazyListBehavior.canShowMore?G+this.minComponentWidth>=this.offset+x&&(this.atEnd=!1):this.atEnd=this.offset+x>=G-20?!0:!1;this.atStart=this.offset<=20}};
_.a.setStartIndex=function(x){if(!this.minComponentWidth){var G=_.kA(this.hostElement).querySelector("#items").firstElementChild;if(!G)return;this.minComponentWidth=oD7(this,G)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*x;kl(this);this.reposition_()};
_.a.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.GI();var x=_.kA(this.hostElement).querySelector("#scroll-container").clientWidth;_.B("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=oD7(this,_.kA(this.hostElement).querySelector("#items").firstElementChild));x=this.useFloorScrolling?Math.floor(x/this.minComponentWidth)||1:Math.round(x/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&ylk(this);this.offset+=apq(this)?
G_9(this):x*this.minComponentWidth;kl(this);this.reposition_();this.scrollCount++};
_.a.prevClick_=function(){var x=_.kA(this.hostElement).querySelector("#scroll-container").clientWidth;x=this.useFloorScrolling?Math.floor(x/this.minComponentWidth)||1:Math.round(x/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=apq(this)?G_9(this):this.minComponentWidth*this.scrollCount-1):this.offset-=apq(this)?G_9(this):x*this.minComponentWidth;this.centerListItems&&ylk(this);kl(this);this.reposition_()};
_.a.onIronResize_=function(){this.resizeSupportEnabled&&_.w1(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.a.onItemsTransitionEnd_=function(x){_.uo(x)===_.kA(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.a.onChildElementFocus_=function(x){x=x.target.closest("#items > *");var G=_.kA(this.hostElement).querySelector("#scroll-container");if(G.contains(x)){if(_.B("web_horizontal_list_behavior_focus_killswitch"))if(x.offsetLeft<this.offset)this.offset=Math.abs(x.offsetLeft)<x.clientWidth?0:x.offsetLeft;else if(x.offsetLeft+x.clientWidth>this.offset+G.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.GI(),this.offset=x.offsetLeft+x.clientWidth-G.clientWidth;else return;else{var D=_.kA(this.hostElement).querySelector("#items"),
K=_.Am("HTML_DIR")==="rtl",z=K?D.clientWidth-x.offsetLeft:x.offsetLeft;D=K?D.clientWidth-(x.offsetLeft+x.clientWidth):x.offsetLeft+x.clientWidth;var y=K?z>this.offset+G.clientWidth:z<this.offset,c=K?D<this.offset:D>this.offset+G.clientWidth,W=K?y:c;if(K?c:y)G=K?D:z,this.offset=Math.abs(G)<x.clientWidth?0:G;else if(W)this.ytLazyListBehavior.fillRemainingListItems(),_.GI(),this.offset=(K?z:D)-G.clientWidth;else return}kl(this);this.reposition_()}};
_.a.observeShownItems_=function(){this.reset()};
_.a.checkComponentWidthResize=function(){var x=_.kA(this.hostElement).querySelector("#items").firstElementChild;x&&(x=oD7(this,x),this.centerListItems||x!==this.minComponentWidth)&&(this.minComponentWidth=x,this.offset=x*this.scrollCount,this.centerListItems&&ylk(this),kl(this),this.reposition_())};
var oD7=function(x,G){var D=window.getComputedStyle(G).marginRight;D=Math.floor(Number(D.replace("px","")));var K=window.getComputedStyle(G).marginLeft;K=Math.floor(Number(K.replace("px","")));x.centerListItems&&!x.marginWidthRight&&(x.marginWidthRight=D,x.marginWidthLeft=K);return x.resizeSupportEnabled?G.getBoundingClientRect().width+D:G.offsetWidth+D},kl=function(x){var G=_.kA(x.hostElement).querySelector("#scroll-container").clientWidth,D=_.kA(x.hostElement).querySelector("#items").clientWidth;
x.offset<0?x.offset=0:x.offset+G>=D&&(x.offset=D-G)},ylk=function(x){x.offset-=(_.kA(x.hostElement).querySelector("#scroll-container").clientWidth+x.marginWidthRight-x.minComponentWidth)/2-x.marginWidthLeft};
_.Nq.Object.defineProperties(PT.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var x=_.Am("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(x==-1)x=this.JSC$12274_cachedViewportHeight,x=x>1320?5:x>1020?4:x>730?3:x>430?2:1;else if(x==0)return 0;_.XQ("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",x-1);x=_.Am("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(x>-1)return x;x=this.cachedViewportWidth;x=x>1600?6:x>1400?5:x>1300?4:x>1090?5:x>870?4:x>660?3:2;_.XQ("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
x);return x},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.B("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
PT.prototype.observeShownItems_=PT.prototype.observeShownItems_;PT.prototype.onChildElementFocus_=PT.prototype.onChildElementFocus_;PT.prototype.onItemsTransitionEnd_=PT.prototype.onItemsTransitionEnd_;PT.prototype.onIronResize_=PT.prototype.onIronResize_;PT.prototype.prevClick_=PT.prototype.prevClick_;PT.prototype.nextClick_=PT.prototype.nextClick_;PT.prototype.setButtonsState_=PT.prototype.setButtonsState_;PT.prototype.requestButtonsStateUpdate_=PT.prototype.requestButtonsStateUpdate_;
PT.prototype.reposition_=PT.prototype.reposition_;PT.prototype.reset=PT.prototype.reset;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],PT.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fS.YtLazyListBehavior),_.N("design:type",Object)],PT.prototype,"ytLazyListBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],PT.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],PT.prototype,"atStart",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],PT.prototype,"atEnd",void 0);_.q([_.R(),_.N("design:type",Object)],PT.prototype,"startIndex",void 0);_.q([_.R(),_.N("design:type",Object)],PT.prototype,"endIndex",void 0);_.q([_.R({value:6}),_.N("design:type",Number)],PT.prototype,"initialCount",void 0);_.q([_.R(),_.N("design:type",Object)],PT.prototype,"scrollCount",void 0);_.q([_.R(),_.N("design:type",Object)],PT.prototype,"initialStartIndex",void 0);
_.q([_.R(),_.N("design:type",Object)],PT.prototype,"disableScrollEventListener",void 0);_.q([_.R(),_.N("design:type",Object)],PT.prototype,"supportComponentResize",void 0);_.q([_.R({value:function(){var x=this;return function(){return x.prevClick_()}}}),
_.N("design:type",Function)],PT.prototype,"boundPrevClick",void 0);_.q([_.R({value:function(){var x=this;return function(){return x.nextClick_()}}}),
_.N("design:type",Function)],PT.prototype,"boundNextClick",void 0);_.q([_.R(),_.N("design:type",Object)],PT.prototype,"useFloorScrolling",void 0);_.q([_.R(),_.N("design:type",Object)],PT.prototype,"isSearch",void 0);_.q([_.R(),_.N("design:type",Object)],PT.prototype,"dragging",void 0);_.q([_.R(),_.N("design:type",Object)],PT.prototype,"dragMouseStart",void 0);_.q([_.R(),_.N("design:type",Object)],PT.prototype,"dragOffsetStart",void 0);
_.q([_.R(),_.N("design:type",Object)],PT.prototype,"disableWheelScroll",void 0);_.q([_.R(),_.N("design:type",Object)],PT.prototype,"centerListItems",void 0);_.q([_.oe("iron-resize"),_.yf("guideOpened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],PT.prototype,"onIronResize_",null);_.q([_.oe("transitionend"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],PT.prototype,"onItemsTransitionEnd_",null);
_.q([_.oe("focusin"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],PT.prototype,"onChildElementFocus_",null);_.q([_.yf("shownItems"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],PT.prototype,"observeShownItems_",null);PT=_.q([_.e2()],PT);_.tp.YtdHorizontalListBehavior=[];_.tp.YtdHorizontalListBehavior.push(_.Lg,_.h.YtRendererBehavior,_.fS.YtLazyListBehavior,_.XL.YtdGuideStateAwareBehavior,PT.prototype);var qTE=["APP_STATE","PI"];var lp8=_.gv(["about:blank"]),clJ={pushState:window.history.pushState,replaceState:window.history.replaceState};var En=function(x){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=x;this.internalPushState=x.pushState.bind(x);this.internalReplaceState=x.replaceState.bind(x)};
En.prototype.init=function(){this.initialized=!0};
En.prototype.pushState=function(x,G){this.initialized||this.init();this.internalPushState&&this.internalPushState(x,"",G)};
En.prototype.replaceState=function(x,G){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(x,"",G)};
En.prototype.getState=function(){return this.history&&this.history.state};var TDo=function(x){var G=function(){var D=x.apply(this,arguments)||this;D.boundHistoryPushState=!1;D.boundHistoryReplaceState=!1;D.debugInfo={};return D};
_.m(G,x);G.prototype.init=function(){var D=_.p4("IFRAME");_.C9(D,_.xS(lp8));D.sandbox="allow-same-origin";D.style.display="none";this.iframe=D;document.body.appendChild(D);this.bindHistoryStateFunctions();x.prototype.init.call(this)};
G.prototype.bindHistoryStateFunctions=function(){var D=this,K=[],z;this.iframe&&((z=this.iframe.contentWindow)==null?0:z.history)&&(z=this.iframe.contentWindow.history)&&(K.push(z),Object.getPrototypeOf(z)&&K.push(Object.getPrototypeOf(z)));window.history&&K.push(window.history);z=window.history;Object.getPrototypeOf(z)&&K.push(Object.getPrototypeOf(z));K.push(clJ);z=function(c){for(var W=null,e=0;e<K.length;e++){var Q=K[e][c];if(typeof Q==="function"){W=Q.bind(window.history);D.debugInfo[c]=e;break}}return W};
if(!this.boundHistoryReplaceState){var y=z("replaceState");y&&(this.internalReplaceState=y,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(z=z("pushState"))&&(this.internalPushState=z,this.boundHistoryPushState=!0)};
return G}(En),Wis=function(){return TDo.call(this,window.history)||this};
_.m(Wis,TDo);Wis.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var hp=function(x){this.browserHistory=x;this.initialized=!1};
hp.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
hp.prototype.pushState=function(x,G){this.initialized||this.init();this.browserHistory.pushState(x,G)};
hp.prototype.replaceState=function(x,G){this.initialized||this.init();this.browserHistory.replaceState(x,G)};
hp.prototype.handlePopstate=function(x){return x.state};_.ejE=function(x,G,D,K,z){this.endpoint=x;this.forward=G;this.historyEntry=D;this.JSC$26565_savedComponentState=K;this.legacyBorder=z===void 0?!1:z};var ZRq=function(x,G){this.rootData=x;this.scrollTop=G};var bh=new _.wq("PAGE_REQUEST_TOKEN"),SJs=new _.wq("FETCH_PBJ_TOKEN");_.xn=new _.wq("EPHEMERAL_STORE_TOKEN");_.Gp=function(x){this.data=Object.assign({},x);var G;(G=this.data.innertubeResponse)==null||delete G.frameworkUpdates};
_.Gp.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.kK)()};
_.DU=function(x){return Object.assign({},x.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var Mto=function(){this.maxSize=100;this.timeToDataCache=new Map};
Mto.prototype.get=function(x){var G=this.timeToDataCache.get(x);G&&(this.timeToDataCache.delete(x),this.timeToDataCache.set(x,G));if(G&&G.rootData&&(_.B("web_use_response_store_for_history_cache")||_.B("mweb_use_new_history_manager"))){var D=_.Eo().resolve(_.xn),K=Qg0(G),z=!!K;if(K){if(K.content){var y=DQ(D,K.content);z&&y?G.rootData.response=_.DU(y):z=!1}K.player&&(y=DQ(D,K.player),z&&y?G.rootData.playerResponse=_.DU(y):z=!1);K.reelSequence&&(D=DQ(D,K.reelSequence),z&&D?G.rootData.reelWatchSequenceResponse=
_.DU(D):z=!1)}z||(this.timeToDataCache.delete(x),G=void 0)}return G};
Mto.prototype.set=function(x,G){if(G.rootData&&(_.B("web_use_response_store_for_history_cache")||_.B("mweb_use_new_history_manager"))){var D=Qg0(G),K=Object.assign({},G.rootData);D&&(D.content&&G.rootData.response&&(p9q(this,D.content,G.rootData.response),K.response=null),D.player&&G.rootData.playerResponse&&(p9q(this,D.player,G.rootData.playerResponse),K.playerResponse=null),D.reelSequence&&G.rootData.reelWatchSequenceResponse&&(p9q(this,D.reelSequence,G.rootData.reelWatchSequenceResponse),K.reelWatchSequenceResponse=
null));G=new ZRq(K,G.scrollTop)}this.timeToDataCache.has(x)?this.timeToDataCache.delete(x):this.timeToDataCache.size>=this.maxSize&&(D=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(D.value));this.maxSize!==0&&this.timeToDataCache.set(x,G)};
Mto.prototype.clear=function(){this.timeToDataCache.clear()};
var Qg0=function(x){var G=_.Eo().resolve(_.P6(bh)),D;if((D=x.rootData)==null?0:D.endpoint)return G==null?void 0:nIf(G,x.rootData.endpoint);var K;_.O9(new _.LL("History snapshot response data does not contain endpoint",(K=x.rootData)==null?void 0:K.url));return null},p9q=function(x,G,D){if(x.maxSize>0){var K;
(x=(K=D.responseContext)==null?void 0:K.maxAgeSeconds)&&Number(x)>0&&(K=_.Eo().resolve(_.xn),D=Eu(D,x),K.put(G,new _.Gp(D)))}};var Vt0=function(x,G,D){this.endpoint=G;this.JSC$26570_savedComponentState=D===void 0?null:D;this.entryTime=x};var k_Q=1;var KM=function(x){var G=function(){var D=x.apply(this,[].concat(_.B5(_.rC.apply(0,arguments))))||this;D.historyEntryTime=0;D.historySnapshotCache=D.createHistoryCache();return D};
_.m(G,x);G.prototype.createHistoryCache=function(){return new Mto};
G.prototype.saveAndReplace=function(D,K,z){var y=window.location.href;var c=c===void 0?{}:c;var W=(W=this.browserHistory.getState())&&W.entryTime?W.entryTime:PBE();D=this.createNewHistoryEntry(D,c,W);this.saveSnapshot(W,K,z);this.replaceState(D,y||window.location.href)};
G.prototype.saveAndPush=function(D,K,z,y,c){c=c===void 0?{}:c;this.saveSnapshot(this.historyEntryTime,z,y);z=this.historySnapshotCache;y=this.historyEntryTime;var W=z.timeToDataCache.keys();W=_.l(W);for(var e=W.next();!e.done;e=W.next())e=e.value,e>y&&z.timeToDataCache.delete(e);K=this.createNewHistoryEntry(K,c);this.pushState(K,D)};
G.prototype.saveSnapshot=function(D,K,z){this.historySnapshotCache.set(D,new ZRq(K,z))};
G.prototype.createNewHistoryEntry=function(D,K,z){z=z===void 0?PBE():z;return new Vt0(z,D,K)};
G.prototype.handlePopstate=function(D){var K=x.prototype.handlePopstate.call(this,D),z=null,y=null,c=!1,W=null;K&&K.entryTime&&(W=this.historySnapshotCache.get(K.entryTime)||null,c=K.entryTime>this.historyEntryTime,this.historyEntryTime=K.entryTime,z=K.endpoint,y=K.JSC$26570_savedComponentState);this.handleHistoryCacheLoad(new _.ejE(z,c,W,y),D);return K};
G.prototype.pushState=function(D,K){Number(D==null?void 0:D.entryTime)>=0&&(this.historyEntryTime=D.entryTime);x.prototype.pushState.call(this,D,K)};
G.prototype.replaceState=function(D,K){Number(D==null?void 0:D.entryTime)>=0&&(this.historyEntryTime=D.entryTime);x.prototype.replaceState.call(this,D,K)};
G.prototype.handleHistoryCacheLoad=function(){};
return G}(hp),bRE=function(){var x=KM.call(this,new Wis)||this;
x.dispatchElement=null;x.entryIndex=0;return x};
_.m(bRE,KM);_.a=bRE.prototype;_.a.init=function(x){x=x===void 0?!0:x;KM.prototype.init.call(this);this.initialized||(x||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.a.handlePopstate=function(x){var G=null;x.state||(G="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return KM.prototype.handlePopstate.call(this,x);var D=new CustomEvent("yt-history-pop",{cancelable:!0});_.xO(this.dispatchElement,"yt-history-pop",[D,{errorMsg:G}]);_.Gl(this.dispatchElement,"yt-close-all-popups-action");if(!D.defaultPrevented){D=_.Eo().resolve(_.wG);G=D.getCurrentData();var K=D.getCurrentPage();D=0;K?(K=_.xO(this.dispatchElement,"yt-get-page-offset",
[K]),K.length>0&&(D=K[0])):_.O9(new _.LL("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:G?G.page:"undefined"}));G&&(G.csn=_.CC());this.saveSnapshot(this.historyEntryTime,G,D)}return KM.prototype.handlePopstate.call(this,x)};
_.a.handleHistoryCacheLoad=function(x,G){x.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.l(_.Gl(this.dispatchElement,"yt-history-will-navigate",[G])).next().value||_.xO(this.dispatchElement,"yt-history-load",[G,x]))};
_.a.pushState=function(x,G){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var D=new _.LL("history.pushState is not a function",this.getDebugString());_.I4(D)}KM.prototype.pushState.call(this,x,G)};
_.a.replaceState=function(x,G){if(!this.browserHistory.boundHistoryReplaceState){var D=new _.LL("history.replaceState is not a function",this.getDebugString());_.I4(D)}KM.prototype.replaceState.call(this,x,G)};
_.a.saveAndPush=function(x,G,D,K,z){z=z===void 0?{}:z;D&&(D.csn=_.CC());KM.prototype.saveAndPush.call(this,x,G,D,K,z)};
_.a.getDebugString=function(){var x=[];this.initialized&&x.push("i");this.browserHistory.boundHistoryReplaceState&&x.push("bhr");this.browserHistory.boundHistoryPushState&&x.push("bhs");"replaceState"in this.browserHistory.debugInfo&&x.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&x.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&x.push("ei:"+String(this.entryIndex));return x.join(",")};
_.zp=function(x,G){x.init(!0);var D=x.browserHistory.getState();x.replaceState(D,PH(G))};
bRE.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.ad=new _.wq("DESKTOP_HISTORY_MANAGER_TOKEN");var LiZ=[10,20,30,40,50,60],od=function(){this.currentPartitionIndex=0},BDJ=function(x){gVi({mainAppWeb:_.Rn(),
survivalSli:{partitionMinute:x,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},rl8=function(x){gVi({mainAppWeb:_.Rn(),
survivalSli:{partitionMinute:x,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},sgE=function(x){return x.currentPartitionIndex>=0&&x.currentPartitionIndex<LiZ.length?LiZ[x.currentPartitionIndex]:-1},YTZ=function(x){return x.currentPartitionIndex>0&&x.currentPartitionIndex-1<LiZ.length?LiZ[x.currentPartitionIndex-1]:-1};
od.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var x=YTZ(this);x>0&&rl8(x);x=sgE(this);x>0&&BDJ(x);m$h(this)}};
var m$h=function(x){var G=sgE(x);if(G>0){var D=YTZ(x);D<0&&(D=0);x.intervalId=_.Fj.addJob(function(){var K=YTZ(x);K>0&&rl8(K);K=sgE(x);K>0&&BDJ(K);m$h(x)},3,(G-D)*6E4);
x.currentPartitionIndex+=1}else x.currentPartitionIndex=-1};var HR9=function(){this.skipNextNavigation=!1},$$8=function(x,G,D){if(!G)return!1;
if(x.skipNextNavigation)return x.skipNextNavigation=!1;if(_.Y(D,_.iV))return!1;var K,z,y;if((K=_.Y(D,_.TU))==null?0:(z=K.browseEndpointContextSupportedConfigs)==null?0:(y=z.browseEndpointContextMainConfig)==null?0:y.skipConfirmation)return!1;var c;return((c=_.Y(G.commandMetadata,_.fC))==null?void 0:c.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
HR9.prototype.showConfirmationDialog=function(x,G){this.navigateParams=G;this.customConfirmationCommand?_.Eo().resolve(_.hm).resolveCommand(this.customConfirmationCommand):(G={openPopupAction:{popup:{confirmDialogRenderer:{title:_.gK(_.Wg("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.gK(_.Wg("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.gK(_.Wg("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.gK(_.Wg("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.gu.getInstance().triggerAction("yt-open-popup-action",G,x))};
HR9.prototype.cancelPendingNavigation=function(){var x;((x=this.navigateParams)==null?void 0:x.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var FiJ=function(){},Ips=function(x,G,D,K,z,y,c){D=D===void 0?{}:D;
c=c===void 0?{}:c;var W=_.cP.instance,e,Q=(e=_.Y(G,_.iV))==null?void 0:e.url;return Q?pfV(W,Q,D,window.location.href,function(p,V){CBh(x,p,V,!1,!0,D,y,K)},function(){return!1}):U$(W,G,D,window.location.href,eT(G),function(p,V){CBh(x,p,V,!1,!0,D,y,K)},z,c)},CBh=function(x,G,D,K,z,y,c,W){if(!x.JSC$12332_chunkHandler)if(D.page==="watch"||D.page==="learning_journey_watch")if(z||K){if(_.B("kevlar_continue_playback_without_player_response")){var e;
var Q=(e=_.Y(W,_.d5))==null?void 0:e.videoId}x.JSC$12332_chunkHandler=new lQi(_.Ns,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:K,previousVideoId:Q},tempData:y},c)}else x.JSC$12332_chunkHandler=new Kpk(_.Ns);else D.page==="shorts"&&z&&!K?x.JSC$12332_chunkHandler=new yMh(_.Ns,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:y},c):x.JSC$12332_chunkHandler=new z2Z(c);x.JSC$12332_chunkHandler.processChunk({endpoint:G,data:D});return x.JSC$12332_chunkHandler.eR.promise},
jgi=function(x,G,D,K,z){(D=_.PmZ(D))&&CBh(x,G,D,!1,!0,K,void 0,z)};var ORZ=function(){this.pendingNavigationPromise=null};
_.a=ORZ.prototype;_.a.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.a.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.a.addEventListener=function(){throw Error("uh");};
_.a.dispatchEvent=function(){throw Error("uh");};
_.a.removeEventListener=function(){throw Error("uh");};var X9Z=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],yT=function(){_.T2.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];Als(this)};
_.m(yT,_.T2);yT.prototype.verifyUser=function(){var x=Als(this),G=x.logout;if(!x.sessionChange)return!0;this.dispatchEvent("ytsessionchange");G&&this.dispatchEvent("ytuserinvalid");return!1};
var Als=function(x){var G=X9Z.map(function(z){var y;return(y=_.MU.get(z))!=null?y:""}),D=G.some(function(z,y){return x.sessionCookies&&x.sessionCookies[y]!==""&&z===""}),K=G.some(function(z,y){return x.sessionCookies&&x.sessionCookies[y]!==z});
x.sessionCookies=G;return{logout:D,sessionChange:K}};
yT.prototype.clearTimeout=function(){this.scheduledJobId&&(_.Fj.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var D3f=new _.wq("POSTMESSAGE_TUNNEL_TOKEN");var hj$=["/parent_tools","/file_download","/artist_roster"],aTC=[gsE,u0$,dR3,q6O,wjP,iQC,Nm$,vs3];var U$Z=new _.wq("APP_ROOT");var lm=new _.wq("NAVIGATION_CONFIRMATION_SERVICE");var RjZ="/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(" "),ST9=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
ct=function(x,G){this.pendingNavigationPromise=null;this.JSC$12350_clientRoot=x;this.historyManager=G;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 FiJ;this.debugString=x.is;x={"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};_.uV(_.gu.getInstance(),x,this.JSC$12350_clientRoot)},d$h,w9J,qTh,NDh,uR9;
_.m(ct,ORZ);ct.prototype.reload=function(){_.U4(window.location.href)};
var xgs=function(x){x.currentEndpoint&&_.Y(x.currentEndpoint,_.MB)?x.reload():x.currentEndpoint&&x.navigate(x.currentEndpoint,!0,void 0,{disableCache:!0})};
ct.prototype.navigate=function(x,G,D,K,z,y,c,W){G=G===void 0?!1:G;D=D===void 0?{}:D;K=K===void 0?{}:K;var e=_.Eo().resolve(lm),Q;if(!c&&$$8(e,(Q=this.currentEndpoint)!=null?Q:void 0,x))return e.showConfirmationDialog(this.JSC$12350_clientRoot.parentElement,{endpoint:x,reload:G,params:D,tempData:K,requestType:z,createScreenConfig:y}),!1;var p=_.Fp();_.CJ(p,"eocs")||p.parkOrScheduleJob(function(){p.processSignal("eocs")},10,"eor");
c=eT(x);e=K.autonav==="1";Q=_.CC();yT.instance||(yT.instance=new yT);var V=yT.instance.verifyUser(),L;if(_.B("enable_dark_theme_only_on_shorts")){var r=document.documentElement.hasAttribute("dark"),H=_.Lt(!0)==="USER_INTERFACE_THEME_DARK";if(c==="shorts"){if(!r)if(_.B("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var O;_.U4((O=_.Y(x==null?void 0:x.commandMetadata,_.fC))==null?void 0:O.url,void 0,void 0,window.top)}}else{var A;_.U4(_.qh((A=_.Y(x==null?
void 0:x.commandMetadata,_.fC))==null?void 0:A.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.B("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!r){var g;_.U4(_.qh((g=_.Y(x==null?void 0:x.commandMetadata,_.fC))==null?void 0:g.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(H!==r){var u;_.U4(_.qh((u=_.Y(x==null?void 0:x.commandMetadata,_.fC))==null?void 0:u.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(c==="watch"){if(nDJ(_.Eo().resolve(_.O$),
x)&&(V||_.B("fix_miniplayer_navigation_killswitch")))return!1;_.B("block_all_player_prefetch_requests")||(L=En8(_.x1(_.TP),x,e))}else{var f,v=(f=_.Y(this.currentEndpoint,_.d5))==null?void 0:f.videoId;v&&_.QM.getInstance().then(function($C){$C&&$C.set("yt-miniplayer-shown-video-id",v)})}L&&(D.frags=L.missingFragments_.join(","));
O=null;var P;A=(P=_.Y(x==null?void 0:x.commandMetadata,_.fC))==null?void 0:P.ignoreNavigation;if(!A)if(_.B("kevlar_command_url")){var k;O=(k=_.Y(x==null?void 0:x.commandMetadata,_.fC))==null?void 0:k.url}else O=_.Cb$(x,D);if(O&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&O==this.lastNavigationUrl)return _.Hg({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.lh(A$(),"CANCELLED")}O&&(this.lastNavigationUrl=O);qeL();_.XQ("IS_HOMEPAGE_COLD",
!1);_.XQ("IS_RESULTS_PAGE_COLD",!1);_.XQ("IS_WATCH_PAGE_COLD",!1);x.loggingUrls&&x.loggingUrls.forEach(function($C){$C.baseUrl&&_.ip($C.baseUrl)});
_.cBL(x,y?y.layer:0)&&_.B("kevlar_flush_logs_on_away_navigation")&&_.CE();if(ozP(x))return!1;Ojk(c,z);if(!O)return A||_.O9(new _.LL("Can't construct url for endpoint",x)),_.lh(A$(),"FAILURE"),!1;_.ED3();P=x&&_.Y(x,_.TU)&&_.Y(x,_.TU).browseId.startsWith("UC");D=(k=_.B("enable_dark_theme_only_on_shorts")&&c==="shorts"?!1:_.Bi()&&document.documentElement.hasAttribute("dark")!==_.bo())?{themeRefresh:1}:{};k&&!_.pL()&&_.Lt()==="USER_INTERFACE_THEME_DARK"&&(D.theme="dark");P=k||iRs(O)&&!P&&!_.B("kevlar_disable_url_allowlist");
V||(P=!0);if(P||_.Am("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var cL;var bO=(cL=window.top)==null?void 0:cL.location.href}catch($C){var mE;bO=(mE=$C)==null?void 0:mE.message}_.O9(new _.LL("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:bO}))}x=_.B("kevlar_redirect_on_window_killswitch")?window.top:window;AS(O);_.U4(_.qh(O,D),void 0,void 0,x);_.lh(A$(),"ABORTED");return!1}_.B("kevlar_early_popup_close")&&_.xO(this.JSC$12350_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12332_chunkHandler=void 0;var jf;bO=eT((jf=this.currentEndpoint)!=null?jf:void 0);(jf=c==="shorts"&&bO==="shorts")||_.hAL();_.SR(uud)("nr",void 0);e&&_.Hg({webInfo:{navigationReason:"an"}});x.clickTrackingParams&&(K.itct=x.clickTrackingParams,K.csn=Q);GkL(K);K.endpoint=JSON.stringify(x);_.B("enable_unknown_lact_fix_on_html5")&&(_.Eo().resolve(_.su),K.lact=_.xq());_.YS.isEmpty(K)||_.vy(O,K);!_.B("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(y=Object.assign({},{layer:0},y,{parentLayer:3}));this.pendingNavigationPromise=y=Ips(this.pageFetcher,x,K,this.currentEndpoint,this.JSC$12350_isNetworkPromiseStale.bind(this),y,W);y=y.then(this.handleNavigateSuccess.bind(this,y,x,L,K),this.handleNavigateFail.bind(this,y,x));_.or().navigationFinishPromise=y;G={endpoint:x,pageType:c,url:PH(O),reload:!!G,noProgressBar:_.B("web_disable_page_navigation_progress")||jf};z&&(G.type=z);this.fireEvent("yt-navigate-start",G);L&&
jgi(this.pageFetcher,x,L,K,this.currentEndpoint);return!0};
ct.prototype.JSC$12350_isNetworkPromiseStale=function(x){return x!=this.pendingNavigationPromise};
var gDq=function(x,G,D,K,z){var y=eT(G);G={endpoint:G,pageType:y};z&&(G.errorMessage=z);_.O9(D);G.navigationDoneMs=_.Fs("nd");G.navigationErrorReason=K;x.fireEvent("yt-navigate-error",G)};
ct.prototype.handleNavigateFail=function(x,G,D){var K=void 0;D instanceof _.S8&&(K=D,$JQ(D));if(this.JSC$12350_isNetworkPromiseStale(x))return _.rk(K);_.lh(A$(),"FAILURE");gDq(this,G,D,"101");return _.rk(D)};
ct.prototype.handleNavigateSuccess=function(x,G,D,K,z){if(this.JSC$12350_isNetworkPromiseStale(x))return _.aI();this.pendingNavigationPromise=null;if(!z)return G=new _.LL("Missing data in response for navigation endpoint",G),_.rk(G);if(z.reload)return window.location.reload(!0),_.aI();D&&(x={},_.YS.extend(x,_.PmZ(D),z),z=x);var y,c;D=(y=z)==null?void 0:(c=y.timing)==null?void 0:c.responseStart;D!=null&&_.Fs("srt",D);_.Fs("pdc");var W,e;y=(W=z)==null?void 0:(e=W.timing)==null?void 0:e.info;y!=null&&
(W=_.SR(_.NqV)(y),_.Hg(W));_.lh(A$(),"SUCCESS");uR9(this,G,z,1,K);return _.aI()};
var iRs=function(x){var G=x;_.B("kevlar_no_redirect_to_classic_2_ks")||(G=(new _.w5(x)).getPath());if(G==="/"||G==="/red")return!1;var D=!0;RjZ.forEach(function(K){x.indexOf(K)===0&&(D=!1)});
ST9.forEach(function(K){var z=K.url;_.B(K.expFlag)&&x.indexOf(z)===0&&(D=!1)});
return D};
ct.prototype.publishPageData=function(x){this.fireEvent("yt-page-data-fetched",{pageData:x})};
d$h=function(x,G,D,K,z,y){var c=null;G.page!=="watch"&&G.page!=="learning_journey_watch"||K?G.filler||_.xO(x.JSC$12350_clientRoot,"yt-stop-old-player",[G]):c=CBh(x.pageFetcher,z,G,D,!1,y,void 0,x.currentEndpoint);if(c)return c.then(x.publishPageData.bind(x,G));x.publishPageData(G);return _.aI()};
w9J=function(x,G,D){var K=null;if(!D)return K=new _.LL("Empty data",x.debugString,G);var z=D.response;if(!z)return K;var y={endpointType:eT(G)||"unknown"};z.responseContext?(z=z.responseContext.errors)&&(K=new _.LL("Errors in response context",x.debugString,G,z,y)):K=z.error||z.errorMetadata?new _.LL("Errors in response",x.debugString,G,z.error,z.errorMetadata,y):new _.LL("responseContext missing",x.debugString,G,Object.keys(z).sort().join(","),y);var c,W,e,Q;if(x=D==null?void 0:(c=D.response)==null?
void 0:(W=c.responseContext)==null?void 0:(e=W.webResponseContextExtensionData)==null?void 0:(Q=e.webResponseContextDebugData)==null?void 0:Q.debugErrorMessages)for(c=0;c<x.length;c++);return K};
qTh=function(x){var G,D,K,z;return x==null?void 0:(G=x.response)==null?void 0:(D=G.responseContext)==null?void 0:(K=D.errors)==null?void 0:(z=K.error)==null?void 0:z["0"]};
NDh=function(x,G){var D;if(D=G.url&&!G.url.startsWith("/clip"))D=G.url,D=!_.B("webfe_parse_debug_param_in_resolveurl_service")&&x.searchDebugUrlMatcher.test(D)||AUC(D)?!0:!1;if(D)AUC(G.url)&&_.wT(window.location.href).themeRefresh?(G=_.J$(G.url,"themeRefresh"),_.zp(x.historyManager,G)):G.url&&!fpQ(G.url)&&_.zp(x.historyManager,G.url);else if(G.endpoint){var K,z,y;(D=(K=G.endpoint)==null?void 0:(z=K.commandMetadata)==null?void 0:(y=z.webCommandMetadata)==null?void 0:y.url)&&!fpQ(D)&&_.zp(x.historyManager,
D);D&&G.url&&D!=G.url&&!G.url.match("playnext=1")&&new _.LL("Response url mismatch in response data",x.debugString,D,G.url)}};
_.vDo=function(x,G,D,K,z,y,c,W){y=y===void 0?!1:y;var e=_.Eo().resolve(lm),Q;if(!W&&$$8(e,(Q=x.currentEndpoint)!=null?Q:void 0,G))return e.showConfirmationDialog(x.JSC$12350_clientRoot.parentElement,{endpoint:G,data:D,navigationType:K,tempData:z,isMiniplayer:y,isForwardHistoryNavigation:c==null?void 0:c.forward}),_.aI();x.pageFetcher.JSC$12332_chunkHandler=void 0;return uR9(x,G,D,K,z,y)};
uR9=function(x,G,D,K,z,y){y=y===void 0?!1:y;x.isMiniplayerExpansion=y;var c=K===2;x.currentEndpoint=G;x.numNavigations++;x.numNavigations&&(dCV.navigationCount=x.numNavigations);_.XQ("NUM_NAV",x.numNavigations);var W=w9J(x,G,D);if(W)return gDq(x,G,W,"102",qTh(D)),_.rk(W);var e,Q,p,V;W=D.rootVe||(D==null?void 0:(e=D.response)==null?void 0:(Q=e.responseContext)==null?void 0:(p=Q.webResponseContextExtensionData)==null?void 0:(V=p.ytConfigData)==null?void 0:V.rootVisualElementType);!c&&D&&NDh(x,D);var L,
r;e=D==null?void 0:(L=D.response)==null?void 0:(r=L.responseContext)==null?void 0:r.maxAgeSeconds;if(!c&&!isNaN(e)){var H;_.B("kevlar_use_response_ttl_to_invalidate_cache")?H=(0,_.kK)()+1E3*e:_.B("kevlar_always_invalidate_cache")&&(H=0);isNaN(H)||(D.expirationTime=H)}_.B("html5_enable_ssap_entity_id")&&c&&D.playerResponse&&(D.playerResponse.cacheMetadata={isCacheHit:!0});_.x1(_.TP).prefetchCache_.clear();c||D.page!=="watch"||D.type!=="reduced"&&K!==1?K=d$h(x,D,c,!!y,G,z):(x.publishPageData(D),K=_.aI());
z=K.then(function(){var O=eT(G);O={endpoint:G,pageType:O,fromHistory:c,response:D};O.navigationDoneMs=_.Fs("nd");x.fireEvent("yt-navigate-finish",O)});
D.csn&&W&&D.clientSideGrafts&&K.then(x.attachClientSideGrafts.bind(x,D,_.Fx()));return z};
_.a=ct.prototype;_.a.attachClientSideGrafts=function(x,G){x.clientSideGrafts&&G&&x.clientSideGrafts.forEach(function(D){if(G&&D){var K=_.V2(D);_.B("combine_ve_grafts")?_.en().graftServerVe(D,G):_.RI(x.csn,G,K)}})};
_.a.handleSignalActionHistoryBack=function(){window.history.back()};
_.a.handleSignalActionCloseWindow=function(){window.close()};
_.a.handleSignalActionReloadPage=function(){this.reload()};
_.a.handleSignalActionSoftReloadPage=function(){xgs(this)};
_.a.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.a.fireEvent=function(x,G){x=new CustomEvent(x,{bubbles:!0,cancelable:!1,composed:!0,detail:G});this.dispatchEvent(x)};
_.a.addEventListener=function(x,G){this.JSC$12350_clientRoot.addEventListener(x,G)};
_.a.dispatchEvent=function(x){return this.JSC$12350_clientRoot.dispatchEvent(x)};
_.a.removeEventListener=function(x,G){this.JSC$12350_clientRoot.removeEventListener(x,G)};
ct[dq]=[U$Z,_.ad];_.mPC=new Ji("browse","h8y2qb");_.HpQ=new Ji("search","JzFVk");_.$Pn=new Ji("shorts","xwEKAe");_.FCL=new Ji("watchFixie","nmfa2d");_.Cef=new Ji("watchFlexy","CF909");_.IVD=new Ji("watchGrid","Tm0L3c");_.jw3=new Ji("watchLearningJourney","L3n37");var Jls;var Tp=function(){return _.n.apply(this,arguments)||this};
_.m(Tp,_.n);_.Nq.Object.defineProperties(Tp,{template:{configurable:!0,enumerable:!0,get:function(){if(Jls===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);Jls=x}x=Jls;return x}}});
_.q([_.I(fR8.YtPlayerBehavior),_.N("design:type",Object)],Tp.prototype,"ytPlayerBehavior",void 0);Tp=_.q([_.d({is:"ytd-player"})],Tp);var fpk;var ttE;var k_k;var Wt=function(){var x=_.n.apply(this,arguments)||this;x.forceModernIconButton=!1;x.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return x};
_.m(Wt,_.n);Wt.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]]"}}}}}};
Wt.prototype.handleAccountLinkingStateChangedCommand=function(x){if(x=_.Y(x,D2s)){var G,D=(G=this.data)==null?void 0:G.providerKey;G=x.providerKey;D&&G&&D.id===G.id&&D.subject===G.subject&&(x=x.linked,x!==void 0&&(this.set("data.linked",x),this.notifyPath("data.linked"),_.B("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(x)))}};
Wt.prototype.setPlayerAccountLinkState=function(x){var G=new YGC;szE(G,mNn(new HPd,x));var D=_.Ns();D&&D.getPlayerPromise().then(function(K){K.setAccountLinkState(_.PY(G.JSC$10071_serializeBinary(),4));K.updateAccountLinkingConfig(x)})};
Wt.prototype.handleShowAccountLinkDialog=function(){var x=this.get("button.buttonRenderer.command");x&&_.yg([x],this.hostElement)};
_.Nq.Object.defineProperties(Wt.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}}}});
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Wt.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Wt.prototype,"ytRendererBehavior",void 0);_.q([_.I([_.tG.YtActionHandlerBehavior]),_.N("design:type",Object)],Wt.prototype,"actionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Wt.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],Wt.prototype,"overrides",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Wt.prototype,"forceModernIconButton",void 0);_.q([_.R({value:"bottom"}),_.N("design:type",String)],Wt.prototype,"buttonTooltipPosition",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],Wt.prototype,"forceIconButton",void 0);_.q([_.R(),_.N("design:type",Boolean)],Wt.prototype,"disableTextTransform",void 0);
_.q([_.U("data","data.linked","data.isWarning"),_.N("design:type",Object),_.N("design:paramtypes",[])],Wt.prototype,"button",null);Wt=_.q([_.d({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],Wt);
_.w(Wt,"ytd-account-link-button-renderer",function(){if(k_k!==void 0)return k_k;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return k_k=x},{mode:1});var PBh;var EDJ=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],ee=function(){return _.n.apply(this,arguments)||this};
_.m(ee,_.n);ee.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
ee.prototype.updateButtonActiveState=function(){var x=this,G=!!EDJ.find(function(D){return x.currentState===D});
this.button&&(this.button.isPressed=G)};
_.Nq.Object.defineProperties(ee.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var x,G;return((x=this.playlistLoopStateEntity)==null?void 0:x.state)||((G=this.data)==null?void 0:G.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var x=void 0,G;if(this.currentState&&((G=this.data)==null?0:G.states)){G=_.l(this.data.states);for(var D=G.next();!D.done;D=G.next()){D=_.Y(D.value,_.reh);var K=void 0;if(((K=D)==null?void 0:K.state)===this.currentState){x=D;break}}}return x}}});
ee.prototype.updateButtonActiveState=ee.prototype.updateButtonActiveState;_.q([_.I(_.$l),_.N("design:type",Object)],ee.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],ee.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],ee.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.R({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.paP}),_.N("design:type",Object)],ee.prototype,"playlistLoopStateEntity",void 0);_.q([_.R(),_.N("design:type",Object)],ee.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Boolean)],ee.prototype,"forceIconOnly",void 0);_.q([_.cD("ytd-button-renderer"),_.N("design:type",_.u9)],ee.prototype,"button",void 0);
_.q([_.U("data","playlistLoopStateEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],ee.prototype,"currentState",null);_.q([_.yf("currentButtonStateRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ee.prototype,"updateButtonActiveState",null);_.q([_.U("currentState"),_.N("design:type",Object),_.N("design:paramtypes",[])],ee.prototype,"currentButtonStateRenderer",null);
ee=_.q([_.d({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],ee);
_.w(ee,"ytd-playlist-loop-button-renderer",function(){if(PBh!==void 0)return PBh;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return PBh=x},
{mode:1});var hju;var x37=_.Wg("DOWNLOAD",{},"Download"),GB7=_.Wg("DOWNLOADING",{},"Downloading"),D3o=_.Wg("DOWNLOADED",{},"Downloaded"),Kkk=_.Wg("RETRY",{},"Retry"),ZQ=function(){var x=_.n.apply(this,arguments)||this;x.forceIconButton=!1;x.forceIconOnly=!1;x.overrides=!1;x.buttonTooltipPosition=!1;x.styleActionButton=!1;x.disableTextTransform=!1;x.downloadProgress=0;x.isDownloadComplete=!1;x.isHidden=!0;x.transferState="TRANSFER_STATE_UNKNOWN";x.isVideoDeletedByUser=!1;x.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return x};
_.m(ZQ,_.n);_.a=ZQ.prototype;_.a.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.a.dataChanged=function(){var x;(x=this.data)!=null&&x.text||(x=_.C3(_.wK().getState(),this.videoId),this.updateButtonState(x))};
_.a.computeVideoId=function(x){return x};
_.a.showHideButton=function(){this.updateButtonVisibility()};
_.a.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};
_.a.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.a.updateButtonState=function(x){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==GB7||!_.Z2(x))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(x){case "TRANSFER_STATE_UNKNOWN":x=x37;var G="OFFLINE_DOWNLOAD";var D="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":x=Kkk;G="OFFLINE_DOWNLOAD";D="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":x=D3o;G="OFFLINE_PIN";D="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":x=
GB7;G="OFFLINE_DOWNLOADING_ZERO";D="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":x=Kkk;G="OFFLINE_DOWNLOAD";D="ACTION_RETRY";break;default:x=x37,G="OFFLINE_DOWNLOAD",D="ACTION_ADD"}this.isVideoDeletedByUser&&(x=x37,G="OFFLINE_DOWNLOAD",D="ACTION_ADD");var K=Object.assign({},this.data);K.text=_.gK(x);K.tooltip=x;K.icon={iconType:G};K.size="SIZE_DEFAULT";K.style="STYLE_DEFAULT";_.Y(K.command,_.zx)&&(_.Y(K.command,_.zx).action=D);this.set("data",K)}};
_.a.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var x="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?x="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?x="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?x="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?x="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?x="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(x="OFFLINE_PIN",this.isDownloadComplete=!0);var G;x!==((G=this.data.icon)==null?void 0:G.iconType)&&(G=Object.assign({},this.data),G.text=_.gK(GB7),G.tooltip=GB7,G.icon={iconType:x},_.Y(G.command,_.zx)&&(_.Y(G.command,_.zx).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",G))}};
ZQ.prototype.updateProgress=ZQ.prototype.updateProgress;ZQ.prototype.onTransferStateChanged=ZQ.prototype.onTransferStateChanged;ZQ.prototype.showHideButton=ZQ.prototype.showHideButton;ZQ.prototype.dataChanged=ZQ.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],ZQ.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],ZQ.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],ZQ.prototype,"forceIconButton",void 0);
_.q([_.R(),_.N("design:type",Object)],ZQ.prototype,"forceIconOnly",void 0);_.q([_.R(),_.N("design:type",Object)],ZQ.prototype,"overrides",void 0);_.q([_.R(),_.N("design:type",Object)],ZQ.prototype,"buttonTooltipPosition",void 0);_.q([_.R(),_.N("design:type",Object)],ZQ.prototype,"styleActionButton",void 0);_.q([_.R(),_.N("design:type",Object)],ZQ.prototype,"disableTextTransform",void 0);
_.q([_.R({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.N("design:type",String)],ZQ.prototype,"videoId",void 0);_.q([_.R(),_.N("design:type",Object)],ZQ.prototype,"data",void 0);_.q([_.R({selector:j5,selectorArgs:["videoId"]}),_.N("design:type",Object)],ZQ.prototype,"downloadProgress",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],ZQ.prototype,"isDownloadComplete",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],ZQ.prototype,"isHidden",void 0);_.q([_.R({selector:_.C3,selectorArgs:["videoId"]}),_.N("design:type",String)],ZQ.prototype,"transferState",void 0);_.q([_.R({selector:_.HBD,selectorArgs:["videoId"]}),_.N("design:type",Object)],ZQ.prototype,"isVideoDeletedByUser",void 0);_.q([_.R({selector:BeE,selectorArgs:["videoId"]}),_.N("design:type",Object)],ZQ.prototype,"offlineabilityState",void 0);
_.q([_.R({value:!0}),_.N("design:type",Boolean)],ZQ.prototype,"showTooltips",void 0);_.q([_.R({value:!0}),_.N("design:type",Boolean)],ZQ.prototype,"sendCommandWhenDisabled",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],ZQ.prototype,"disabled",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ZQ.prototype,"dataChanged",null);
_.q([_.Z6("offlineabilityState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ZQ.prototype,"showHideButton",null);_.q([_.Z6("transferState","isVideoDeletedByUser"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ZQ.prototype,"onTransferStateChanged",null);_.q([_.Z6("downloadProgress"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ZQ.prototype,"updateProgress",null);
ZQ=_.q([_.d({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],ZQ);
_.w(ZQ,"ytd-download-button-renderer",function(){if(hju!==void 0)return hju;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return hju=x},{mode:2});var zOE;var aT8,ozZ=function(){if(aT8!==void 0)return aT8;var x=document.createElement("template");_.F(x,'\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 aT8=x};var yBJ=_.B("web_button_rework")&&_.Uo("BUTTON_REWORK")||_.B("web_button_rework_with_live"),lTJ=_.Gz("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,Md=function(){var x=_.n.apply(this,arguments)||this;x.isPressed=!1;x.forceIconButton=!1;x.forceIconOnly=!1;x.forceModernIconButton=!1;x.alignByText=!1;x.isShorts=!1;x.animatedText=!1;x.shouldAnimate=!1;x.JSC$12388_browserSupportsAnimation=_.B("web_supports_animations_api");x.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};x.onTap=function(){var G;if((G=x.data)==null||!G.defaultNavigationEndpoint){var D;G=!((D=x.data)==null?0:D.isToggled);var K;if((K=x.data)==null||!K.preventAutoToggle){x.shouldAnimate=!1;x.disableTextUpdateJobId&&_.Fj.cancelJob(x.disableTextUpdateJobId);x.disableTextUpdateJobId=_.Fj.addLowPriorityJob(function(){x.disableTextUpdateJobId=void 0},lTJ);
var z;x.set("data.isToggled",!((z=x.data)==null?0:z.isToggled));D=x.getInnertubeIcon();K={toggled:G,actions:{}};D&&(K.actions[D.toLowerCase()]=G);_.h$(x.hostElement,"yt-toggle-button",K)}}};
return x};
_.m(Md,_.n);_.a=Md.prototype;_.a.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.Fj.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.a.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.a.toggle=function(x){var G;this.set("data.isToggled",x!==void 0?x:!((G=this.data)==null?0:G.isToggled))};
_.a.handleUpdateToggleButtonStateCommand=function(x){if(this.data){x=_.Y(x,e0s);var G,D,K,z=(G=this.data)==null?void 0:(D=G.toggleButtonSupportedData)==null?void 0:(K=D.toggleButtonIdData)==null?void 0:K.id;z&&x&&z===(x==null?void 0:x.buttonId)&&this.set("data.isToggled",x.toggled)}};
_.a.handleUpdateToggleButtonTextAction=function(x){if(this.data){x=_.Y(x,J70);var G,D,K,z=(G=this.data)==null?void 0:(D=G.toggleButtonSupportedData)==null?void 0:(K=D.toggleButtonIdData)==null?void 0:K.id;z&&x&&z===(x==null?void 0:x.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=x.defaultNumericalValue,this.set("data.defaultText",x.defaultText),this.set("data.toggledText",x.toggledText),this.shouldAnimate=!1)}};
_.a.getInnertubeIcon=function(){var x=this.data;if(x){var G,D,K=((G=x.defaultIcon)==null?0:G.iconType)?(D=x.defaultIcon)==null?void 0:D.iconType:null,z,y;G=((z=x.toggledIcon)==null?0:z.iconType)?(y=x.toggledIcon)==null?void 0:y.iconType:K;return x.isToggled?G:K}};
_.a.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.Nq.Object.defineProperties(Md.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var x={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$12388_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var G=x.renderer;var D=x.element;var K=x.toggled;var z=x.onTapCallback;var y=x.commandClientArgs;var c=x.overrides;var W=x.forceIcon;var e=x.forceModernIconButton;var Q=x.forceDisabled;var p=x.useAnimatedText;var V=x.animatedTextProps;x=B6h(G,K);W=!G.defaultIcon||!W&&G.defaultText?G.defaultIcon?"leading":void 0:e?"icon-only":"icon-only-40";W==="icon-only-40"&&(x.type="text");var L;e=Object;var r=e.assign,H;a:switch((H=
G.style)==null?void 0:H.styleType){case "STYLE_COMPACT_GRAY":H={size:"S"};break a;default:H={size:"M"}}var O=!!K;var A=(A=K&&G.toggledText||G.defaultText)?_.$$(A):void 0;p?(p=_.u7(K&&G.toggledText||G.defaultText))&&V&&!isNaN(Number(V.numberValue))?(V.numberText=p,K&&(V.numberValue+=1),p=V):p=void 0:p=void 0;var g,u,f,v;var P=(V=((u=K?G.toggledAccessibilityData||((P=G.toggledText)==null?void 0:P.accessibility):G.accessibilityData||((g=G.defaultText)==null?void 0:g.accessibility))==null?void 0:(f=u.accessibilityData)==
null?void 0:f.label)||((v=G.accessibility)==null?void 0:v.label))?V:_.u7(K&&G.toggledText||G.defaultText);Q=Q===void 0?G.isDisabled:Q;D=LkV(G,K,z,D,y);K=bv3(G,K);K!=null&&K.length?(K=_.XB({innertubeCommand:enQ(K),forceNewState:!0}),K=An(K)?K:void 0):K=void 0;G=r.call(e,{},x,H,{iconPosition:W},c,{focused:!1,toggled:O,toggleable:!0,formattedButtonText:A,animatedTextProps:p,accessibilityLabel:P,disabled:Q,onTap:D,aTagConfig:K},RWn((L=G.colorData)==null?void 0:L.basicColorPaletteData));G.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(G.type="filled");return G}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var x=this.getInnertubeIcon();if(x)return _.aP(x)}}});
Md.prototype.resetAnimation=Md.prototype.resetAnimation;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Md.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Md.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],Md.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Md.prototype,"data",void 0);
_.q([_.R(),_.N("design:type",Object)],Md.prototype,"isPressed",void 0);_.q([_.R(),_.N("design:type",Object)],Md.prototype,"forceIconButton",void 0);_.q([_.R(),_.N("design:type",Object)],Md.prototype,"forceIconOnly",void 0);_.q([_.R(),_.N("design:type",Object)],Md.prototype,"forceModernIconButton",void 0);_.q([_.R(),_.N("design:type",Object)],Md.prototype,"alignByText",void 0);_.q([_.R(),_.N("design:type",Object)],Md.prototype,"overrides",void 0);
_.q([_.R(),_.N("design:type",Boolean)],Md.prototype,"disabled",void 0);_.q([_.R(),_.N("design:type",Object)],Md.prototype,"isShorts",void 0);_.q([_.R(),_.N("design:type",Object)],Md.prototype,"buttonTooltipPosition",void 0);_.q([_.R(),_.N("design:type",Object)],Md.prototype,"animatedText",void 0);_.q([_.R(),_.N("design:type",String)],Md.prototype,"textNumberValue",void 0);_.q([_.R({computed:"computeTooltip(data, data.isToggled)"}),_.N("design:type",Object)],Md.prototype,"tooltip",void 0);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Md.prototype,"resetAnimation",null);_.q([_.U("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.N("design:type",Object),_.N("design:paramtypes",[])],Md.prototype,"computedButtonShape",null);_.q([_.U("data.*"),_.N("design:type",Object),_.N("design:paramtypes",[])],Md.prototype,"computedIcon",null);
Md=_.q([_.d({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],Md);yBJ&&_.w(Md,"ytd-toggle-button-renderer",ozZ,{mode:_.Ge("kevlar_poly_si_batch_j081")?1:2});var Hq=_.Nv(function(x){function G(Q){var p;return _.T(function(V){if(V.nextAddress==1)return(p=!s7n(Q,W())||!W().enabled)?V.jumpTo(2):_.Z(V,Fk3(),3);V.nextAddress!=2&&(p=V.yieldResult);if(p)return V.return();D();setTimeout(function(){c(!1)},1500);
_.c5(V)})}
function D(){setTimeout(function(){c(!0);var Q;(Q=K.lottieEl)==null||Q.goToAndPlay(0)},150)}
var K=_.Dw(),z=_.l(_.eO(!1,void 0,"JJXzp")),y=z.next().value,c=z.next().value,W=_.wc(x.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.FQ(function(){var Q,p;((Q=x.settings)==null?void 0:(p=Q.call(x))==null?void 0:p.uniqueId)==="this is not intended behavior"&&_.O9(new _.LL("Smartimation Settings is undefined"))});
_.$9(function(){W().experimentEnabled&&(W().enabled?Yi3(G):(c(!1),m3D(G)),_.Fq(function(){m3D(G)}))});
_.$9(function(){W().timings.join("");W().experimentEnabled&&(Hvf(W()),_.Fq(function(){$3O(W())}))});
var e=_.V9(function(){var Q=K,p=W().uniqueId+"-border",V,L;var r="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((L=(V=_.Eo().resolve(_.P6(_.ib)))==null?void 0:V())!=null&&L?"dark":"light")+"_v2.json";return{animationRef:Q,animationConfig:{name:p,autoplay:!1,loop:!1,path:r}}},void 0,"tgykab");
z={};return _.M("yt-smartimation",{class:_.ym(x.className,"smartimation",(z["smartimation--experiment-enabled"]=function(){return W().experimentEnabled},z["smartimation--active-border"]=y,z["smartimation--enable-masking"]=C5n(),z))},_.M(_.b,{cond:function(){return W().experimentEnabled},
then:function(){return _.M("div",{class:"smartimation__border"},_.M(_.l_,{className:"smartimation__border-gradient",data:e,animationName:function(){return e().animationConfig.name}}))}}),_.M("div",{class:"smartimation__content"},x.children))},"B");
Hq.idomCompat=!0;_.tn(Hq,"yt-smartimation",{props:{className:_.ik,settings:_.ik}});var QT=function(){var x=_.n.apply(this,arguments)||this;x.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};x.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};x.shouldEnableSmartimation=!1;return x};
_.m(QT,_.n);QT.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
QT.prototype.onDataChanged=function(){var x,G;this.shouldEnableSmartimation=(((x=this.data)==null?void 0:(G=x.timedAnimationData)==null?void 0:G.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
QT.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var x=_.Y(this.data.likeButton,_.Fg),G=_.Y(this.data.dislikeButton,_.Fg);return!!((x==null?0:x.isToggled)||(G==null?0:G.isToggled))};
QT.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]]"}}}}}};
_.Nq.Object.defineProperties(QT.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var x,G,D=((x=this.data)==null?void 0:(G=x.timedAnimationData)==null?void 0:G.animationTiming)||[];return{uniqueId:"like-dislike",timings:D,enabled:this.shouldEnableSmartimation,experimentEnabled:D.length>0}}}});
QT.prototype.onDataChanged=QT.prototype.onDataChanged;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],QT.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],QT.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],QT.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],QT.prototype,"likeButtonOverride",void 0);_.q([_.R(),_.N("design:type",Object)],QT.prototype,"dislikeButtonOverride",void 0);
_.q([_.U("shouldEnableSmartimation"),_.N("design:type",Object),_.N("design:paramtypes",[])],QT.prototype,"smartimationSettings",null);_.q([_.yf("data"),_.oe("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],QT.prototype,"onDataChanged",null);QT=_.q([_.d({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],QT);
_.w(QT,"ytd-segmented-like-dislike-button-renderer",function(){if(zOE!==void 0)return zOE;var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return zOE=x},{mode:1});var cB0;var T6o;(T6o=document.body)==null||T6o.setAttribute("rounded-container","");var Wku={};Wku.YtToggleButtonBehavior=[_.tG.YtActionHandlerBehavior,eM.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 x=this.data.isToggled;if(!this.isModal_(x)){if(!this.data.preventAutoToggle){this.toggle();var G={toggled:this.data.isToggled,actions:{}};G.actions[this.buttonIcon]=this.data.isToggled;_.h$(this.hostElement,"yt-toggle-button",G)}G=this.data.defaultServiceEndpoint||null;var D=this.data.toggledServiceEndpoint||null;if(G&&D||G&&this.data.preventAutoToggle)x=x?D:G,G=this.disableCommandHandlerOverride,_.B("killswitch_toggle_button_behavior_resolve_command")||G?_.KW(this.hostElement,
[x]):_.lb(x,this.hostElement),_.h$(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:x})}},
stateChanged_:function(){var x=this.data;if(x){var G=x.isToggled;this._setEndpoint(this.computeEndpoint_(x));this._setServiceEndpoint(this.computeServiceEndpoint_(x));this._setButtonIcon(this.computeButtonIcon_(x,G));this._setButtonText(this.computeButtonText_(x,G));this._setButtonAccessibility(this.computeAccessibility_(x,G));this._setButtonTooltip(this.computeTooltip_(x,G));this._setButtonClass(this.computeButtonClass_(x,G));this._setIconPositionType(this.computeIconPositionType_(x));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=G):this.elements_.button.setAttribute("aria-pressed",G));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=G)}},
shouldSetIconActiveState_:function(){return _.B("kevlar_system_icons")},
toggle:function(x){this.set("data.isToggled",x!==void 0?x:!this.data.isToggled);_.B("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(x){if(x){var G,D;return!!((G=this.data)==null?0:(D=G.toggledServiceEndpoint)==null?0:D.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(x){return x&&x.defaultNavigationEndpoint||null},
computeButtonIcon_:function(x,G){var D=x&&x.defaultIcon?_.aP(x.defaultIcon.iconType):null;x=x&&x.toggledIcon?_.aP(x.toggledIcon.iconType):D;return G?x:D},
handleUpdateToggleButtonStateCommand_:function(x){x=x.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==x.buttonId&&this.toggle(x.toggled)},
computeButtonText_:function(x,G){return x?G&&x.toggledText||x.defaultText||null:null},
computeAccessibility_:function(x,G){return x?(G?this.get("toggledAccessibilityData.accessibilityData",x):this.get("accessibilityData.accessibilityData",x))||x.accessibility||null:null},
computeTooltip_:function(x,G){return x?G&&x.toggledTooltip||x.defaultTooltip||null:null},
computeButtonClass_:function(x,G){if(!x)return"";var D="",K=x.toggledStyle||x.style;if(G=G?K:x.style){G.styleType&&(G=G.styleType);try{D+=G.toLowerCase().replace(/_/g,"-")+" "}catch(z){_.Xv(z,G,typeof G),_.O9(z)}}if(x=x.size){x.sizeType&&(x=x.sizeType);try{D+=x.toLowerCase().replace(/_/g,"-")+" "}catch(z){_.Xv(z,x,typeof x),_.O9(z)}}return D.trim()},
computeIconPositionType_:function(x){return x&&x.iconPosition||null},
computeServiceEndpoint_:function(x){var G=x&&x.serviceEndpoint,D=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return G?G:D&&x.command?x.command:null},
handleUpdateToggleButtonTextAction_:function(x){x=x.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==x.buttonId&&(this.set("data.defaultText",x.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",x.toggledText),this.notifyPath("data.toggledText"))}}];_.HH("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var eO9=_.B("web_button_rework")&&_.Uo("BUTTON_REWORK")||_.B("web_button_rework_with_live"),pM=function(){var x=_.n.apply(this,arguments)||this;x.systemIcons=_.B("kevlar_system_icons");x.roundedContainer=!0;return x};
_.m(pM,_.n);pM.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
pM.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var x=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var G={toggled:!!this.data.isToggled,actions:{}};G.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var D,K;G.actions.playlistId=(D=this.data.defaultServiceEndpoint)==null?void 0:(K=D.playlistEditEndpoint)==null?void 0:K.playlistId;_.h$(this.hostElement,"yt-toggle-button",G)}(x=x?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(x)}};
pM.prototype.onYtNavigate=function(x){var G=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(x.detail.endpoint);G&&(x.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(G))};
_.Nq.Object.defineProperties(pM,{template:{configurable:!0,enumerable:!0,get:function(){if(cB0===void 0){var x=document.createElement("template");_.F(x,"\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");x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);cB0=x}x=cB0;return x}}});
pM.prototype.onYtNavigate=pM.prototype.onYtNavigate;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],pM.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],pM.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.i9),_.N("design:type",Object)],pM.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.I(Wku.YtToggleButtonBehavior),_.N("design:type",Object)],pM.prototype,"ytToggleButtonBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],pM.prototype,"data",void 0);_.q([_.R({value:!0}),_.N("design:type",Boolean)],pM.prototype,"showTooltips",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],pM.prototype,"systemIcons",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],pM.prototype,"roundedContainer",void 0);_.q([_.oe("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],pM.prototype,"onYtNavigate",null);
pM=_.q([_.d({is:"ytd-toggle-button-renderer",disableElementRegistration:eO9})],pM);var Zvi;_.VT=new _.wq("PANEL_CONTROLLER_TOKEN");_.bm=new _.wq("SHEET_CONTROLLER_TOKEN");_.LM=new _.wq("DIALOG_CONTROLLER_TOKEN");Zvi=new _.wq("DIALOG_CONTAINER_TOKEN");var nzd=_.Wg("DOWNLOAD",{},"Download"),ivf=_.Wg("DOWNLOADING",{},"Downloading"),gzP=_.Wg("DOWNLOADED",{},"Downloaded"),uIh=_.Wg("RETRY",{},"Retry");var waE=[],qiO=!1;var Mhs=_.Nv(function(x){var G=hO$,D=function(){return""},K=thP(x.data),z=kBh(x.data),y=P5O(x.data),c=EzQ(x.data);
G=function(){var W=x.data(),e=ROf(W,K(),z(),y(),c()),Q=!!W.videoId,p=e.text;return{title:Q?p:void 0,tooltip:Q?void 0:p,accessibilityText:p,onTap:e.onTap,iconName:e.iconType,style:W.butonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:e.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:W.buttonSize}};
D={};D=_.ym("ytDownloadButtonViewModelHost",(D.ytDownloadButtonViewModelIsHidden=function(){var W=x.data(),e=c();return W.playlistId||e()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||e()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},D));
return _.M("download-button-view-model",{class:D},_.M(_.Cs,{data:G}))},"C");
Mhs.idomCompat=!0;var paZ=_.Nv(function(x){var G=x.backgroundLottieRef;var D=x.foregroundLottieRef;var K=x.children;var z=x.wrapperClass;var y=x.disableAnimation;x=function(){return(_.B("web_animated_actions")||_.B("web_animated_actions_v2"))&&!(y==null?0:y())};
return _.M("yt-animated-action",{class:_.ym("animated-action__container",z)},_.M("div",{class:"animated-action__content-with-background"},_.M(_.b,{cond:x,then:function(){return _.M(Q78,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:G==null?void 0:G(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(xj3()?"dark":"light")+"_v5.json"}}}})}}),K),_.M(_.b,{cond:x,
then:function(){return _.M(Q78,{lottiePlayerProps:function(){return{animationRef:D==null?void 0:D(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(xj3()?"dark":"light")+"_v4.json"}}}})}}))},"D");
paZ.idomCompat=!0;var Q78=_.Nv(function(x){var G=x.wrapperClass;var D=x.lottieClass;var K=x.lottiePlayerProps;return _.M("div",{class:_.ym("animated-action__lottie",G),"aria-hidden":"true"},_.M(_.l_,{className:D,data:K,animationName:function(){return K().animationConfig.name}}))},"E");var GOd={isOpen:!1};var KDf={isAllowed:!1};var a0D={errorMessage:"",title:"",privacy:"",isDisabled:!0};var yV$={isOpen:!1};var cVn={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var VhZ={response:void 0};var WDV=function(x,G){x=x===void 0?VhZ:x;switch(G.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},x,{response:G.payload});default:return x}};var bvJ={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var eXL=function(x,G){x=x===void 0?bvJ:x;switch(G.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},x,{nextDisabled:G.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},x,{nextCommand:G.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},x,{footerSubmissionData:G.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},x,{isImpersonationValid:G.payload});default:return x}};var Lks={reportFormData:void 0,reportDetailsFormData:void 0};var ZOf=function(x,G){x=x===void 0?Lks:x;switch(G.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},x,{reportFormData:G.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},x,{reportDetailsFormData:G.payload});default:return x}};var B6i=void 0;_.B("mweb_enable_redux_store_on_demand")||(B6i=new dK(MPD()));var rB9=_.Nv(function(x){x=_.qv(x,{themeOverride:void 0,animationRef:{}});var G=x.animatedIconType,D=x.active,K=x.themeOverride,z=x.animationRef;x=x.staticIconFn;var y=_.l(_.eO(void 0,void 0,"P5a72b")),c=y.next().value,W=y.next().value,e=function(){a:{var A=G();var g=K==null?void 0:K();var u;g=(g==null?void 0:g.useDarkTheme)||((u=_.Eo().resolve(_.P6(_.ib)))==null?void 0:u());switch(A){case "LIKE":B6i||(B6i=new dK(MPD()));A=(A=B7d(B6i.getState()))&&A.animationLightUrl&&A.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:g?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:g?A.animationDarkUrl:A.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:60,lazyLoad:!0}:void 0;if(A){g=A;break a}g="animated_like_icon_"+(g?"dark_v4":"light_v4");g={lottiePlayerProps:{animationConfig:{name:g,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+g+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},
totalFrames:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":g={lottiePlayerProps:{animationConfig:{name:g?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(g?"dark":"light")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:79,lazyLoad:!1};break a}g=void 0}return g},Q=function(){var A,g;
return(g=(A=e())==null?void 0:A.lottiePlayerProps.animationConfig.name)!=null?g:""},p=function(){if(e()){var A=e().lottiePlayerProps.animationConfig.path;
return ol.get(A)||c()}};
y=_.l(_.eO(!1,void 0,"h6xR3c"));var V=y.next().value;y=y.next().value;var L=pnO(y),r=function(){var A=e(),g,u,f;return(f=A==null?void 0:(g=A.lottiePlayerProps.animationConfig)==null?void 0:(u=g.rendererSettings)==null?void 0:u.className)!=null?f:""},H=void 0,O=void 0;
_.$9(function(){var A=e(),g=Q(),u=p(),f=V(),v=D();if(A&&(O!==g&&(O=g,H=v,g=z(),L.animationConfig=A.lottiePlayerProps.animationConfig,L.animationRef=g,u&&(L.animationConfig.animationData=u,L.animationConfig.path=void 0),g=A.lottiePlayerProps.animationConfig.path,!ol.get(g)&&A.lazyLoad&&g&&QiC(g,W)),!(f||A.lazyLoad&&!u))){if(u=!z().lottieEl)v?(f=A.totalFrames,L.animationConfig.initialSegment=[f-1,f]):L.animationConfig.initialSegment=void 0;if(H!==v&&!u)if(u=z(),v){var P;(P=u.lottieEl)==null||P.playSegments([0,
A.totalFrames],!0)}else{var k;(k=u.lottieEl)==null||k.playSegments([0,1],!0)}H=v}});
return _.M("animated-icon",{class:"ytAnimatedIconHost"},_.M(_.b,{cond:function(){var A,g;return!((A=e())==null||!A.lottiePlayerProps.animationConfig.path||((g=e())==null?0:g.lazyLoad)&&!p()||V())},
then:function(){return _.M(_.l_,{data:L,animationName:Q,className:r,animationRef:z})},
else:x}))},"F");_.Bt=_.Nv(function(x){var G=_.qi(),D=_.qi(),K=_.qi(),z=_.Dw(),y=_.Dw(),c=_.Dw(),W=_.lA(T6f,function(){return x.data().stateEntityStoreKey}),e=_.lA(Wk$,function(){var M0,cs;
return(cs=(M0=x.data().notificationStateEntityStoreKeys)==null?void 0:M0.subsNotificationStateKey)!=null?cs:""}),Q=function(){return!x.data().enableSubscribeButtonPostClickAnimation},p=_.l(_.eO(0,void 0,"eTsWvc")),V=p.next().value,L=p.next().value;
p=_.l(_.eO(0,void 0,"dniDQ"));var r=p.next().value,H=p.next().value;p=_.l(_.eO(!1,void 0,"EluPic"));var O=p.next().value,A=p.next().value;p=_.l(_.eO(!1,void 0,"r0jnre"));var g=p.next().value,u=p.next().value;p=_.l(_.eO(!1,void 0,"KMvoQe"));var f=p.next().value,v=p.next().value,P;p=_.l(_.eO(!1,void 0,"aSENce"));var k=p.next().value,cL=p.next().value,bO=function(){u(!0);_.eU(_.Fj,function(){u(!1)},1500)};
_.$9(function(){var M0=g();Wl(function(){M0&&!Q()&&W()&&$jL(z,y,c)})});
_.$9(function(){var M0=W();Wl(function(){if(!Q()&&M0){var cs;((cs=x.animateWidth)==null?0:cs.call(x))&&HOn(G.value,!!M0.subscribed,V(),r());var G8,T7;((G8=P)==null?0:G8.subscribed)||!M0.subscribed||M0.key!==((T7=P)==null?void 0:T7.key)||bO();P=M0}})});
p=_.V9(function(){var M0,cs,G8,T7=x.data(),Wd=!((M0=W())==null||!M0.subscribed);M0=!((cs=x.isOverlay)==null||!cs.call(x));cs=O()?G:void 0;var Fc=(G8=e())==null?void 0:G8.state;G8=k();mj$(T7,Fc);return LDL({model:T7,subscribed:Wd,isOverlay:M0,element:cs,notificationState:Fc,disableTextEllipsis:!0,focused:G8})},void 0,"yGQGue");
var mE=function(){var M0;if(!Q()&&((M0=x.animateWidth)==null?0:M0.call(x))&&(D==null?0:D.value)&&(K==null?0:K.value)&&!f()){M0=W();var cs=_.l((M0==null?0:M0.subscribed)?[D,K]:[K,D]),G8=cs.next().value;cs=cs.next().value;G8=Math.ceil(G8.value.getBoundingClientRect().width);cs=Math.ceil(cs.value.getBoundingClientRect().width);L(G8);H(cs);HOn(G.value,!(M0==null||!M0.subscribed),G8,cs);v(!0)}},jf=_.WH(function(M0){mE();
var cs=W();cs&&(M0.detail.endpoint.subscribeEndpoint||M0.detail.endpoint.unsubscribeEndpoint)&&rVD(G.value,!cs.subscribed,cs)}),$C=function(){var M0=_.Eo().resolve(_.P6(_.Ee));
M0&&cL(M0.isKeyBoardInUse())},OD=function(){cL(!1)};
_.wu("yt-player-subscribe",function(M0){var cs=W();cs&&M0===x.data().channelId&&rVD(G.value,!0,cs)});
_.wu("yt-player-unsubscribe",function(M0){var cs=W();cs&&M0===x.data().channelId&&rVD(G.value,!1,cs)});
_.wu("yt-update-subscribe-button-action",function(M0){M0=_.Y(M0,PhJ);var cs=W();cs&&M0&&M0.channelId===x.data().channelId&&rVD(G.value,!!M0.subscribed,cs)});
_.FQ(function(){G.value&&(G.value.addEventListener("focusin",$C),G.value.addEventListener("focusout",OD));var M0=_.Bw(_.Fj,function(){mE()});
A(!0);_.Fq(function(){_.Fj.cancelJob(M0);G.value&&(G.value.removeEventListener("focusin",$C),G.value.removeEventListener("focusout",OD))})});
var wn=function(){var M0,cs,G8;if(G8=!((M0=W())==null||!M0.subscribed))M0=!!x.data().disableNotificationBell,G8=(cs=e())==null?void 0:cs.state,G8=!M0&&!!G8;return G8},n$=function(){var M0;
return!((M0=W())==null?0:M0.subscribed)},Fi=function(){var M0,cs;
if(cs=n$()){cs=!!x.data().disableNotificationBell;var G8=(M0=e())==null?void 0:M0.state;cs=!cs&&!!G8}return cs},pf={},UE={};
return _.M("yt-subscribe-button-view-model",{class:_.ym(x.className,"yt-subscribe-button-view-model-wiz",(pf["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var M0,cs;return!((M0=W())==null||!M0.subscribed)&&((cs=x.animateWidth)==null?void 0:cs.call(x))&&g()},pf["yt-subscribe-button-view-model-wiz--hidden"]=function(){var M0;
return!((M0=W())==null?0:M0.subscribed)&&x.data().hideWhenUnsubscribed},pf)),
el:G,"on:yt-service-request-sent":jf},_.M(paZ,{backgroundLottieRef:z,foregroundLottieRef:y,wrapperClass:_.ym("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(UE["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var M0;return((M0=x.animateWidth)==null?void 0:M0.call(x))&&g()},UE["yt-subscribe-button-view-model-wiz__static-width"]=function(){var M0;
return!((M0=x.animateWidth)==null?0:M0.call(x))},UE)),
disableAnimation:Q},_.M("div",{el:D,class:"yt-subscribe-button-view-model-wiz__container"},_.M(fs,{data:p,icon:function(){return _.M(_.b,{cond:wn,then:function(){var M0=function(){var cs;return Bs$((cs=e())==null?void 0:cs.state)};
return _.M(_.b,{cond:function(){return Q()||M0()!=="NOTIFICATIONS_NONE"},
then:function(){return _.M(_.Qm,{icon:M0})},
else:function(){return _.M(rB9,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:c})}})}})},
secondaryIconName:function(){return wn()?"EXPAND":void 0}}))),_.M("div",{el:K,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.M(_.b,{cond:function(){var M0;return((M0=x.animateWidth)==null?void 0:M0.call(x))&&!Q()&&!f()},
then:function(){return _.M(fs,{data:_.V9(function(){var M0;return LDL({model:x.data(),subscribed:n$(),isOverlay:!((M0=x.isOverlay)==null||!M0.call(x)),element:G,disableTextEllipsis:!0})},void 0,"lwPlub"),
iconName:function(){var M0;return Fi()?Bs$((M0=e())==null?void 0:M0.state):void 0},
secondaryIconName:function(){return Fi()?"EXPAND":void 0}})}})))},"G");
_.Bt.idomCompat=!0;var FDd=new _.wq("RENDERER_STAMPER_OPTIONS_TOKEN");var ps;_.Qs=new v_o;ps=new Map;var qrD="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),v4O=["notificationTextRenderer","notificationMultiActionRenderer"],Nsd="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
wnC=RXn(function(x){return _.If(x==null?void 0:x.targetId)}).useUpdatableData;var djn=0;_.bA.debugName="EjJbCe";var s79=_.Nv(function(x){var G=x.data;var D=_.lA(T6f,function(){return G().subscriptionStateEntityKey});
return _.M(_.b,{cond:function(){var K=G(),z=D();return!K.hideWhenUnsubscribed||(z==null?0:z.subscribed)?_.Y(G().button,_.Ls):void 0},
then:function(K){return _.M("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.M(_.Cs,{data:K,buttonOverrides:function(){return{toggled:!0}}}))}})},"H");
s79.idomCompat=!0;var tPf=_.MF({buttonViewModel:_.Cs,subscribeButtonViewModel:_.Bt,downloadButtonViewModel:Mhs,toggleButtonViewModel:_.rl,subscribePlusButtonViewModel:s79});_.E9(PLn);var YiJ=_.Nv(function(x){return _.M(_.bA,{data:function(){return x.actionRow().actions}},{buttonViewModel:function(G){var D=G.data;
return _.M(r8,{isRow:x.isRow,isIconOnlyButton:function(){return E4d(D())},
useIntrinsicWidth:x.useIntrinsicWidth},_.M(_.Cs,{data:D}))},
subscribeButtonViewModel:function(G){return _.M(r8,{isRow:x.isRow},_.M(_.Bt,{data:G.data,isOverlay:!1,animateWidth:function(){return!x.isRow()}}))},
downloadButtonViewModel:function(G){var D=G.data;return _.M(r8,{isRow:x.isRow,isIconOnlyButton:function(){return!!D().playlistId}},_.M(Mhs,{data:D}))},
toggleButtonViewModel:function(G){var D=G.data;return _.M(r8,{isRow:x.isRow,isIconOnlyButton:function(){var K=D();return E4d(_.Y(K.isToggled?K.toggledButtonViewModel:K.defaultButtonViewModel,_.Ls))}},_.M(_.rl,{data:D}))},
subscribePlusButtonViewModel:function(G){return _.M(r8,{isRow:x.isRow},_.M(s79,{data:G.data}))}})},"I"),r8=_.Nv(function(x){var G={};
return _.M("div",{class:_.ym("yt-flexible-actions-view-model-wiz__action",(G["yt-flexible-actions-view-model-wiz__action--row-action"]=x.isRow,G["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=x.useIntrinsicWidth,G["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,G["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=x.isIconOnlyButton,G))},x.children)},"J"),m3E=_.Nv(function(x){var G=function(){var K;
return((K=x.layout)==null?void 0:K.call(x))===1},D={};
return _.M("yt-flexible-actions-view-model",{class:_.ym("yt-flexible-actions-view-model-wiz",x.className,(D["yt-flexible-actions-view-model-wiz--inline"]=function(){return!G()},D["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return x.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},D))},_.M(_.LT,{each:function(){return x.data().actionsRows||[]}},function(K){return _.M(_.b,{cond:G,
then:function(){return _.M("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.M(YiJ,{actionRow:K,isRow:G,useIntrinsicWidth:function(){return!!x.data().respectActionIntrinsicWidth}}))},
else:function(){return _.M(YiJ,{actionRow:K,isRow:G})}})}))},"K"),sJ=_.B("web_enable_sink_yt_flexible_actions_view_model")?m3E:_.TY(PLn);
m3E.idomCompat=!0;_.tn(sJ,"yt-flexible-actions-view-model",{props:{data:_.ik,layout:_.ik,justifyContentOverride:_.ik,className:_.ik}});_.E9(hXD);var Hvo,zvC;Hvo=_.Nv(function(x){var G=_.lA(CH,function(){var z;return(z=x.data().dislikeEntityKey)!=null?z:""}),D=_.V9(function(){var z=G();
return z?z.likeStatus==="DISLIKE":_.Y(x.data().toggleButtonViewModel,_.Bq).isToggled},void 0,"D8oIFb"),K=_.V9(function(){return Object.assign({},_.Y(x.data().toggleButtonViewModel,_.Bq),{isToggled:D()})},void 0,"shaCXe");
return _.M("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.M(_.rl,{data:K,buttonShapeOverrides:x.buttonShapeOverrideables,onToggle:function(z){var y=G();y&&z!==(y.likeStatus==="DISLIKE")&&y.key&&_.dc(_.sg("likeStatusEntity",y.key,{likeStatus:z?"DISLIKE":"INDIFFERENT",hadUserInteraction:z}))}}))},"L");
zvC=_.B("web_enable_sink_dislike_button_view_model")?Hvo:hXD;_.Yn=_.B("web_enable_sink_dislike_button_view_model")?Hvo:_.TY(hXD);Hvo.idomCompat=!0;_.E9(G3V);var $3q,KOL;$3q=_.Nv(function(x){var G=_.B("web_supports_animations_api"),D=vh(function(L){var r=Q(),H,O=(r==null?void 0:(H=r.likeCountIfIndifferent)==null?void 0:H.content)!==L.numberText;if(W()||!O)return L;var A,g;return{numberText:(r==null?void 0:(A=r.likeCountIfIndifferent)==null?void 0:A.content)||"",numberValue:Number((g=r==null?void 0:r.likeCountIfIndifferentNumber)!=null?g:0),heightPx:36,shouldAnimate:!!r}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),K=vh(function(L){var r=Q(),H,O=(r==null?void 0:(H=r.likeCountIfIndifferent)==null?void 0:H.content)!==L.numberText;if(W()||!O)return L;var A,g;return{numberText:(r==null?void 0:(A=r.likeCountIfLiked)==null?void 0:A.content)||"",numberValue:Number((g=r==null?void 0:r.likeCountIfLikedNumber)!=null?g:0),heightPx:36,shouldAnimate:!!r}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),z=_.l(_.eO(void 0,void 0,"T6jMHc")),y=z.next().value,c=z.next().value,W=y,e=_.lA(CH,function(){var L,r;return(r=(L=x.data())==null?void 0:L.likeStatusEntityKey)!=null?r:""}),Q=_.lA(drP,function(){var L,r;
return((L=x.likeCountEntity)==null?void 0:(r=L.call(x))==null?void 0:r.key)||""}),p=_.V9(function(){var L;
return((L=e())==null?void 0:L.likeStatus)==="LIKE"},void 0,"WxQBcd"),V=function(){var L;
return G&&!((L=x.likeCountEntity)==null||!L.call(x))};
return _.M("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.M(_.rl,{data:function(){var L=Object,r=L.assign,H;var O=_.Y((H=x.data())==null?void 0:H.toggleButtonViewModel,_.Bq);return r.call(L,{},O||{},{isToggled:p()})},
buttonShapeOverrides:x.buttonShapeOverrideables,animatedTextPropsDefault:function(){return V()?D():void 0},
animatedTextPropsToggled:function(){return V()?K():void 0},
onToggle:function(L){DNf(L,e(),W(),c)},
style:function(){var L;return((L=x.disableIconAnimation)==null?0:L.call(x))?void 0:{animateIcon:"true"}}}))},"M");
KOL=_.B("web_enable_sink_like_button_view_model")?$3q:G3V;_.mp=_.B("web_enable_sink_like_button_view_model")?$3q:_.TY(G3V);_.E9(a43);var FkJ=_.Nv(function(x){var G=function(){return _.Y(x.data().likeButtonViewModel,_.YL)},D=function(){var z;
return((z=G())==null?void 0:z.likeStatusEntityKey)||""},K=_.V9(function(){var z,y;
var c=(y=_.lA(CH,D)())!=null?y:(z=G())==null?void 0:z.likeStatusEntity;z=x.data();var W;z=(z==null?void 0:(W=z.timedAnimationData)==null?void 0:W.animationTiming)||[];return{uniqueId:"like-dislike",timings:z,enabled:(c==null?void 0:c.likeStatus)==="INDIFFERENT"&&z.length>0,experimentEnabled:z.length>0}},void 0,"e1fsz");
return _.M("segmented-like-dislike-button-view-model",{class:_.ym("ytSegmentedLikeDislikeButtonViewModelHost",x.className),"button-renderer":!0},_.M(Hq,{settings:K},_.M("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.M(_.b,{cond:G,then:function(z){return _.M(_.mp,{data:z,likeCountEntity:function(){return x.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.M(_.b,{cond:function(){return _.Y(x.data().dislikeButtonViewModel,_.mY)},
then:function(z){return _.M(_.Yn,{data:z,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"N"),C59=_.B("web_enable_sink_segmented_like_dislike_button_view_model")?FkJ:a43;
FkJ.idomCompat=!0;_.B("web_enable_sink_segmented_like_dislike_button_view_model")?_.tn(C59,"segmented-like-dislike-button-view-model",{props:{data:_.ik,className:_.ik}}):_.KH(C59,"segmented-like-dislike-button-view-model",{propNames:["data"]});var WOP=0;_.tn($N3,"account-link-button-view-model",{props:{data:_.ik,className:_.fz,setMinWidth:_.fz,forceIconOnly:_.fz}});_.HH("menuRenderer","menuRenderer","ytd-menu-renderer");
var ITu={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"}},
j7J=_.B("web_fix_missing_action_buttons")?100:200,Ht=function(){var x=_.n.apply(this,arguments)||this;x.safeArea=!_.B("kevlar_flex_menu_safe_area_killswitch");x.tonalOverride=!1;x.threeDotSize="M";x.isOverlay=!1;x.useOverlayDark=!1;x.topLevelIconsOnly=!1;x.JSC$12532_lastWidth=0;x.maybeUpdateFlexibleMenu=function(){_.B("web_fix_missing_action_buttons")?requestAnimationFrame(x.maybeUpdateFlexibleMenuImpl):x.maybeUpdateFlexibleMenuImpl()};
x.maybeUpdateFlexibleMenuImpl=function(){var G;if((G=x.data)!=null&&G.flexibleItems){x.maybeFlushDebouncer();G=x.hostElement.clientWidth;var D=G>x.JSC$12532_lastWidth,K,z=((K=x.topLevelButtonsContainer)==null?void 0:K.scrollHeight)||0,y;K=((y=x.flexibleItemButtonsContainer)==null?void 0:y.scrollHeight)||0;y=x.hostElement.scrollHeight>Math.max(z,K)+8;D?(x.resetFlexibleItems(),x.JSC$12532_lastWidth=x.hostElement.clientWidth,x.maybeUpdateFlexibleMenu()):y&&(x.shrinkFlexibleMenu(),x.JSC$12532_lastWidth=
G)}};
x.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){x.onOverflowTap()},
iconPosition:"icon-only",style:x.isOverlay?x.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:x.threeDotSize,state:"active",accessibilityLabel:x.computeAccessibilityLabel(x.data)},x.threeDotButtonOverride)};
x.onOverflowTap=function(){if(x.data.fetchMenuCommand)_.Eo().resolve(_.hm).resolveCommand(x.data.fetchMenuCommand,{form:{element:x.hostElement}});else if(x.data.isDisabled&&x.data.disabledCommand)_.lb(x.data.disabledCommand,x.hostElement);else{var G=x.createMenuRendererVe(),D={items:x.items};x.data.menuPopupAccessibility&&(D.menuPopupAccessibility=x.data.menuPopupAccessibility);x.data.footer&&(D.footer=x.data.footer);G={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:D},veData:G}};
_.Eo().resolve(_.bm).openSheet({openPopupActionCommand:G},x.hostElement)}};
return x};
_.m(Ht,_.n);_.a=Ht.prototype;_.a.updateButtonOverrides=function(){if(!_.B("menu_renderer_label_update_upkillswitch")){var x=_.kA(this.hostElement).querySelector("yt-button-view-model");x&&(x.buttonOverrides=this.buttonOverrides)}};
_.a.computeHasItems=function(){var x;return((x=this.topLevelButtonData)==null?void 0:x.length)||this.hasFlexibleItems};
_.a.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.a.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.K7(this.hostElement,{"--ytd-menu-renderer-button-color":_.In(this.data.iconColor)}))};
_.a.onStamperFinished=function(){this.JSC$12532_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.a.setupFlexibleMenu=function(){var x=this,G;(G=this.data)!=null&&G.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.Jc(this.maybeUpdateFlexibleMenu,j7J,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){x.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))};
_.a.maybeFlushDebouncer=function(){if(_.B("web_replace_formatted_with_attributed_string")){var x;(x=this.topLevelButtons)==null||x.forEach(function(D){var K;(D=(K=D.getElementsByTagName("yt-attributed-string"))==null?void 0:K[0])&&Vbh(D)});
var G;(G=this.flexibleItemButtons)==null||G.forEach(function(D){var K;(D=(K=D.getElementsByTagName("yt-attributed-string"))==null?void 0:K[0])&&Vbh(D)})}};
_.a.resetFlexibleItems=function(){var x;if((x=this.data)!=null&&x.flexibleItems){_.B("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var G;this.flexAsTopLevelButtons=(G=this.data.flexibleItems)==null?void 0:G.map(function(D){return _.Y(D,_.BU9).topLevelButton});
_.B("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.a.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.a.shrinkFlexibleMenu=function(){var x;(x=this.flexAsTopLevelButtons)!=null&&x.length&&(this.flexAsTopLevelButtons=[].concat(_.B5(this.flexAsTopLevelButtons.slice(0,-1))))};
_.a.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:ITu,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:ITu,events:!0}}};
_.a.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.a.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.a.detached=function(){this.icon="MORE_VERT"};
_.a.computeTopLevelButtonData=function(x){if(!x)return[];var G;x=(G=x==null?void 0:x.topLevelButtons)!=null?G:[];return _.YS.unsafeClone([].concat(_.B5(x)))};
_.a.computeItems=function(x,G){if(!x)return[];var D=[];if(G){var K=(x.flexibleItems||[]).map(function(c){return _.Y(c,_.BU9)});
K=_.l(K);for(var z=K.next();!z.done;z=K.next())z=z.value,G.includes(z.topLevelButton)||(z=z.menuItem)&&D.push(z)}var y;x=(y=x==null?void 0:x.items)!=null?y:[];return[].concat(_.B5(D),_.B5(x))};
_.a.computeMenuActive=function(x,G){return x||G};
_.a.onPopupOpened=function(){this.overlayOpen=!0;_.h$(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.a.onPopupClosed=function(){this.overlayOpen=!1;_.h$(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.a.onPopupCanceled=function(){this.overlayOpen=!1;_.h$(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.a.computeAccessibilityLabel=function(x){return this.get("accessibility.accessibilityData.label",x)};
_.a.isHidden=function(x,G){return this.tonalOverride||!x?!0:x.fetchMenuCommand||x.isDisabled&&x.disabledCommand?!1:!(G==null?0:G.length)};
_.a.isModernOverflowHidden=function(x,G){return this.tonalOverride&&x?x.fetchMenuCommand?!1:!(G==null?0:G.length):!0};
_.a.createMenuRendererVe=function(){var x=this.data.trackingParams,G=_.CC(),D=_.Fx();return x&&G&&D?(x=_.V2(x),D=_.BH(7591),_.B("combine_ve_grafts")?_.hz(_.en(),D,x):_.RI(G,x,D),D):null};
_.Nq.Object.defineProperties(Ht.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.flexAsTopLevelButtons)==null||!x.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
Ht.prototype.onPopupCanceled=Ht.prototype.onPopupCanceled;Ht.prototype.onPopupClosed=Ht.prototype.onPopupClosed;Ht.prototype.onPopupOpened=Ht.prototype.onPopupOpened;Ht.prototype.tonalOverrideChanged=Ht.prototype.tonalOverrideChanged;Ht.prototype.resetFlexibleItems=Ht.prototype.resetFlexibleItems;Ht.prototype.setupFlexibleMenu=Ht.prototype.setupFlexibleMenu;Ht.prototype.iconButtonColorChanged=Ht.prototype.iconButtonColorChanged;Ht.prototype.updateButtonOverrides=Ht.prototype.updateButtonOverrides;
_.q([_.I(_.i9),_.N("design:type",Object)],Ht.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Ht.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Ht.prototype,"ytRendererstamperBehavior",void 0);_.q([_.cD("#button-shape"),_.N("design:type",DN)],Ht.prototype,"buttonShape",void 0);_.q([_.cD("#button"),_.N("design:type",Object)],Ht.prototype,"button",void 0);
_.q([_.R(),_.N("design:type",Object)],Ht.prototype,"data",void 0);_.q([_.R({computed:"computeTopLevelButtonData(data)"}),_.N("design:type",Array)],Ht.prototype,"topLevelButtonData",void 0);_.q([_.R(),_.N("design:type",Array)],Ht.prototype,"flexAsTopLevelButtons",void 0);_.q([_.R({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.N("design:type",Array)],Ht.prototype,"items",void 0);_.q([_.R({value:"MORE_VERT"}),_.N("design:type",String)],Ht.prototype,"icon",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Ht.prototype,"safeArea",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.N("design:type",Boolean)],Ht.prototype,"menuActive",void 0);_.q([_.R(),_.N("design:type",Boolean)],Ht.prototype,"menuFocused",void 0);_.q([_.R({value:"bottom"}),_.N("design:type",String)],Ht.prototype,"buttonTooltipPosition",void 0);_.q([_.R(),_.N("design:type",Boolean)],Ht.prototype,"overlayOpen",void 0);
_.q([_.R({value:!0}),_.N("design:type",Boolean)],Ht.prototype,"forceIconButton",void 0);_.q([_.R(),_.N("design:type",Boolean)],Ht.prototype,"styleActionButton",void 0);_.q([_.R(),_.N("design:type",Boolean)],Ht.prototype,"disableTextTransformOnButtons",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Ht.prototype,"tonalOverride",void 0);_.q([_.R(),_.N("design:type",Object)],Ht.prototype,"threeDotSize",void 0);
_.q([_.R(),_.N("design:type",Object)],Ht.prototype,"threeDotButtonOverride",void 0);_.q([_.R(),_.N("design:type",Object)],Ht.prototype,"isOverlay",void 0);_.q([_.R(),_.N("design:type",Object)],Ht.prototype,"useOverlayDark",void 0);_.q([_.R({computed:"computeButtonOverride(tonalOverride)"}),_.N("design:type",Object)],Ht.prototype,"buttonOverride",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ht.prototype,"hasCustomIconColor",void 0);
_.q([_.R({reflectToAttribute:!0}),_.U("flexAsTopLevelButtons"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ht.prototype,"hasFlexibleItems",null);_.q([_.R({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.N("design:type",Boolean)],Ht.prototype,"hasItems",void 0);_.q([_.R(),_.N("design:type",Object)],Ht.prototype,"topLevelIconsOnly",void 0);
_.q([_.yf("topLevelIconsOnly"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ht.prototype,"updateButtonOverrides",null);_.q([_.U("topLevelIconsOnly"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ht.prototype,"buttonOverrides",null);_.q([_.cD("#top-level-buttons-computed"),_.N("design:type",HTMLElement)],Ht.prototype,"topLevelButtonsContainer",void 0);_.q([_.Ta(".top-level-buttons > *"),_.N("design:type",Array)],Ht.prototype,"topLevelButtons",void 0);
_.q([_.cD("#flexible-item-buttons"),_.N("design:type",HTMLElement)],Ht.prototype,"flexibleItemButtonsContainer",void 0);_.q([_.Ta("#flexible-item-buttons > *"),_.N("design:type",Array)],Ht.prototype,"flexibleItemButtons",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ht.prototype,"iconButtonColorChanged",null);
_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ht.prototype,"setupFlexibleMenu",null);_.q([_.Z6("topLevelIconsOnly"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ht.prototype,"resetFlexibleItems",null);_.q([_.yf("tonalOverride"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ht.prototype,"tonalOverrideChanged",null);
_.q([_.oe("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ht.prototype,"onPopupOpened",null);_.q([_.oe("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ht.prototype,"onPopupClosed",null);_.q([_.oe("yt-popup-canceled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ht.prototype,"onPopupCanceled",null);
_.w(Ht,"ytd-menu-renderer",function(){if(ttE===void 0){var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);ttE=x}x=ttE;return x},{mode:_.Ge("kevlar_poly_si_batch_j030")?1:2});var OvJ;var Xah;_.qF=_.Nv(function(x){var G=x.data;var D=function(){if(G().icon)a:{var K={iconName:G().icon};for(var z=_.Eo().resolve(_.oP),y=_.l([12,24]),c=y.next();!c.done;c=y.next()){var W=c.value;c=Object.assign({},K,{iconStyle:"youtube_fill",iconSize:W});W=Object.assign({},K,{iconStyle:"youtube_outline",iconSize:W});if(z.resolveIcon(c)){K=c;break a}if(z.resolveIcon(W)){K=W;break a}}K=void 0}else K=void 0;return K};
x={};return _.M("badge-shape",{class:_.ym("badge-shape-wiz",function(){return I4E(G().type)},(x["badge-shape-wiz--overlay"]=function(){return G().isOverlay},x["badge-shape-wiz--ads-include-dot"]=function(){return G().adsIncludeDot},x["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(G().type){case 16:case 17:case 18:var K=!0;
break a;default:K=!1}return K},x["badge-shape-wiz--status-badge"]=function(){a:switch(G().type){case 11:case 12:case 13:case 14:case 15:var K=!0;
break a;default:K=!1}return K},x["badge-shape-wiz--no-text"]=function(){return!G().text},x["badge-shape-wiz--modern"]=function(){return G().modern},x)),
style:_.Ms({"background-color":function(){var K;return(K=G().customColors)==null?void 0:K.backgroundColor}}),
role:function(){return G().accessibilityText?"img":void 0},
"aria-label":function(){return G().accessibilityText}},_.M(_.b,{cond:function(){return G().animation},
then:function(K){return _.M(_.l_,{className:"badge-shape-wiz__icon",data:K,animationName:function(){return K().animationConfig.name||""}})}}),_.M(_.b,{cond:function(){var K;
return D()&&!((K=G())==null?0:K.animation)},
then:function(){return _.M("div",{class:"badge-shape-wiz__icon"},_.M(XcP,{data:function(){return D()}}))}}),_.M("div",{class:"badge-shape-wiz__text"},function(){var K;
return(K=G())==null?void 0:K.text}))},"O");
_.qF.idomCompat=!0;_.tn(_.qF,"badge-shape",{props:{data:_.ik}});var $n=function(){var x=_.n.apply(this,arguments)||this;x.systemIcons=_.B("kevlar_system_icons");x.animated=_.B("animated_live_badge_icon");x.useBadgeShape=_.B("web_badge_shape_defrag");return x};
_.m($n,_.n);_.a=$n.prototype;_.a.addTooltips=function(){for(var x=_.kA(this.hostElement).querySelectorAll(".badge"),G=0,D;D=x[G++];){var K=this.repeatElement.itemForElement(D);D=_.kA(D);D.lastChild&&D.lastChild.is==="tp-yt-paper-tooltip"&&D.removeChild(D.lastChild);if(K=K.metadataBadgeRenderer&&K.metadataBadgeRenderer.tooltip){var z=_.Nz("tp-yt-paper-tooltip");(0,_.D6)(z).textContent=K;z.setAttribute("position","top");z.setAttribute("aria-hidden","true");D.appendChild(z)}}};
_.a.badgesChanged=function(){var x=this;_.Fp().parkOrScheduleJob(function(){x.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.a.standaloneRoundedBadgeChanged=function(){var x=this.useRoundedBadge?this.useRoundedBadge:void 0;x&&(this.useRoundedBadge=x)};
_.a.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.a.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.a.computeStyle=function(x){_.B("enable_html5_teal_ad_badge")&&x==="BADGE_STYLE_TYPE_AD"&&(x="badge-style-type-ad-alternate");_.B("kevlar_ytb_live_badges")&&x==="BADGE_STYLE_TYPE_LIVE_NOW"&&(x="badge-style-type-live-now-alternate");return x?x.toLowerCase().replace(/_/g,"-"):""};
_.a.computeRole=function(x){return this.computeAriaLabel(x)?"img":"status"};
_.a.computeAriaLabel=function(x){var G;return(x==null?void 0:(G=x.accessibilityData)==null?void 0:G.label)||(x==null?void 0:x.label)};
_.a.computeBadgeShape=function(x){var G;if(x){var D,K=FO$(x.style),z=CZh(x.style),y=x.label,c=((D=x.accessibilityData)==null?void 0:D.label)||x.label;x=(G=x.icon)==null?void 0:G.iconType;G={type:K,brNzRatingBadgeType:z,text:y,accessibilityText:c,icon:x!=="PREMIUM"?x:void 0}}else G={};return G};
_.a.updateComputedBadges=function(x,G,D){var K=this;(G=G?[G]:D?[D]:void 0)?this.computedBadges=G:this.computedBadges=x==null?void 0:x.filter(function(z){var y;if((y=z.metadataBadgeRenderer)==null?0:y.groups){y=!1;z=_.l(z.metadataBadgeRenderer.groups);for(var c=z.next();!c.done;c=z.next()){c=c.value;var W=void 0;y=y||((W=K.hiddenBadgeGroups)==null?void 0:W.includes(c))}return!y}return!0})};
_.a.useFilledIcons=function(x){return _.B("kevlar_system_icons")&&(x==="AUDIO_BADGE"||x==="CHECK_CIRCLE_THICK"||x==="OFFICIAL_ARTIST_BADGE"||x==="SPONSORSHIP_STAR"||x==="PERSON_RADAR_FILLED"||x==="PERSON_RADAR")};
_.a.computeIcon=function(x){var G,D;x=x==null?void 0:(G=x.metadataBadgeRenderer)==null?void 0:(D=G.icon)==null?void 0:D.iconType;if(x!=="PREMIUM"&&x)return _.aP(x)};
_.a.computeStandaloneBadge=function(x){var G;x=x==null?void 0:(G=x.icon)==null?void 0:G.iconType;return x==="PREMIUM_STANDALONE"||x==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
$n.prototype.hiddenBadgeGroupsChanged=$n.prototype.hiddenBadgeGroupsChanged;$n.prototype.standaloneBadgeChanged=$n.prototype.standaloneBadgeChanged;$n.prototype.standaloneRoundedBadgeChanged=$n.prototype.standaloneRoundedBadgeChanged;$n.prototype.badgesChanged=$n.prototype.badgesChanged;_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],$n.prototype,"hidden",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],$n.prototype,"componentBehavior",void 0);
_.q([_.R(),_.N("design:type",Array)],$n.prototype,"badges",void 0);_.q([_.R(),_.N("design:type",Object)],$n.prototype,"topStandaloneBadge",void 0);_.q([_.R(),_.N("design:type",Object)],$n.prototype,"bottomStandaloneBadge",void 0);_.q([_.R(),_.N("design:type",Object)],$n.prototype,"computedBadges",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],$n.prototype,"mediumFontAdBadge",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],$n.prototype,"useRoundedBadge",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],$n.prototype,"largeFontAdBadge",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],$n.prototype,"overlayAd",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],$n.prototype,"overlayPremium",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],$n.prototype,"noDotAdBadge",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],$n.prototype,"collectionTruncate",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],$n.prototype,"isThumbnailBadge",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],$n.prototype,"wrapBadges",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],$n.prototype,"systemIcons",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],$n.prototype,"animated",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],$n.prototype,"useBadgeShape",void 0);_.q([_.R({value:[]}),_.N("design:type",Array)],$n.prototype,"hiddenBadgeGroups",void 0);_.q([_.cD("#repeat"),_.N("design:type",rc)],$n.prototype,"repeatElement",void 0);_.q([_.Z6("badges"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$n.prototype,"badgesChanged",null);
_.q([_.Z6("useRoundedBadge"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$n.prototype,"standaloneRoundedBadgeChanged",null);_.q([_.Z6("topStandaloneBadge","bottomStandaloneBadge"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$n.prototype,"standaloneBadgeChanged",null);_.q([_.Z6("hiddenBadgeGroups"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$n.prototype,"hiddenBadgeGroupsChanged",null);
$n=_.q([_.d({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],$n);
var AB7=_.x$()($n,"ytd-badge-supported-renderer",function(){if(Xah===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);Xah=x}x=Xah;return x},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.Ge("kevlar_poly_si_batch_j053")?1:2});var F2=function(){var x=_.n.apply(this,arguments)||this;x.iconType="STAR";x.standardizeIconSize=_.B("kevlar_system_icons");x.mediaHoverOverlayInitialVisibility=_.B("enable_top_landscape_image_button_command_web");x.noBottomMargin=!1;x.thumbnailObjectFit="CONTAIN";x.thumbnailFitHeight=!0;x.actionMap={"yt-mute-ad-action":"handleMuteAd"};return x};
_.m(F2,_.n);_.a=F2.prototype;
_.a.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"}}}};
_.a.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",F2.JSC$12544_DEFAULT_CLICK_LOCATION_BEHAVIOR,F2.JSC$12544_CLICK_LOCATION_ID_MAP))};
_.a.onTap=function(x){if(!_.B("use_on_click_for_desktop_display_ad"))this.onTapOrClick(x)};
_.a.onClick=function(x){if(_.B("use_on_click_for_desktop_display_ad"))this.onTapOrClick(x)};
_.a.onTapOrClick=function(x){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,x,!1)};
_.a.updateMediaBackgroundImage=function(){var x=this.get("data.image.thumbnail.thumbnails");x&&(x=_.k$(x,0))&&_.K7(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+x+")"})};
_.a.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var x=0;x<this.data.impressionEndpoints.length;x++){var G=this.data.impressionEndpoints[x];G.clickTrackingParams&&delete G.clickTrackingParams;_.Eo().resolve(_.hm).resolveCommand(G,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var D;((D=this.data)==null?0:D.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.a.handleMuteAd=function(){};
_.a.attached=function(){var x=this;_.B("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&x.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.a.detached=function(){_.B("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Nq.Object.defineProperties(F2.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.data)==null||!x.titleText)return"";var G;return _.Wg("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((G=this.data)==null?void 0:G.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?0:x.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?0:x.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?0:x.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?0:x.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?0:x.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 x;return!((x=this.data)==null||!x.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"}}});
F2.prototype.onClick=F2.prototype.onClick;F2.prototype.onTap=F2.prototype.onTap;F2.prototype.dataChanged=F2.prototype.dataChanged;
F2.JSC$12544_CLICK_LOCATION_ID_MAP=_.B("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"]]);
F2.JSC$12544_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.B("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"}];_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],F2.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],F2.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.I(_.CS),_.N("design:type",Object)],F2.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],F2.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.Jp.YtSparklesClickLocationBehavior),_.N("design:type",Object)],F2.prototype,"ytSparklesClickLocationBehavior",void 0);_.q([_.I(m1),_.N("design:type",Object)],F2.prototype,"ytdActiveViewBehavior",void 0);_.q([_.I([_.tG.YtActionHandlerBehavior]),_.N("design:type",Object)],F2.prototype,"actionHandlerBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],F2.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],F2.prototype,"clickCommand",void 0);_.q([_.R({reflectToAttribute:!0,selector:_.Y_}),_.N("design:type",Boolean)],F2.prototype,"miniMode",void 0);_.q([_.R(),_.N("design:type",String)],F2.prototype,"iconType",void 0);_.q([_.U("data.titleText"),_.N("design:type",String),_.N("design:paramtypes",[])],F2.prototype,"titleAriaLabel",null);
_.q([_.U("data.rating"),_.N("design:type",Object),_.N("design:paramtypes",[])],F2.prototype,"getRating",null);_.q([_.U("data.price"),_.N("design:type",Object),_.N("design:paramtypes",[])],F2.prototype,"getPrice",null);_.q([_.U("data.thirdLine"),_.N("design:type",Object),_.N("design:paramtypes",[])],F2.prototype,"getThirdLine",null);_.q([_.U("data.fourthLine"),_.N("design:type",Object),_.N("design:paramtypes",[])],F2.prototype,"getFourthLine",null);
_.q([_.U("data.fifthLine"),_.N("design:type",Object),_.N("design:paramtypes",[])],F2.prototype,"getFifthLine",null);_.q([_.U("getRating"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],F2.prototype,"computeRatingHidden",null);_.q([_.U("getPrice"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],F2.prototype,"computePriceHidden",null);_.q([_.U("getThirdLine"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],F2.prototype,"computeThirdLineHidden",null);
_.q([_.U("getFourthLine"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],F2.prototype,"computeFourthLineHidden",null);_.q([_.U("getFifthLine"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],F2.prototype,"computeFifthLineHidden",null);_.q([_.R({reflectToAttribute:!0}),_.U("data.energyIcon"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],F2.prototype,"hasEnergyIcon",null);
_.q([_.U("computePriceHidden","computeRatingHidden"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],F2.prototype,"computeSecondaryTextHidden",null);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],F2.prototype,"standardizeIconSize",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],F2.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],F2.prototype,"noBottomMargin",void 0);
_.q([_.R({reflectToAttribute:!0}),_.U("data.layout"),_.N("design:type",String),_.N("design:paramtypes",[])],F2.prototype,"layout",null);_.q([_.U("data.layout"),_.N("design:type",Object),_.N("design:paramtypes",[])],F2.prototype,"mediaThumbnailWidth",null);_.q([_.U("layout"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],F2.prototype,"useRoundedBadge",null);_.q([_.R(),_.N("design:type",String)],F2.prototype,"thumbnailObjectFit",void 0);
_.q([_.R(),_.N("design:type",Object)],F2.prototype,"thumbnailFitHeight",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],F2.prototype,"dataChanged",null);_.q([_.oe("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],F2.prototype,"onTap",null);_.q([_.oe("click"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],F2.prototype,"onClick",null);
F2=_.q([_.d({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],F2);
_.w(F2,"ytd-display-ad-renderer",function(){if(OvJ!==void 0)return OvJ;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return OvJ=x},{mode:1});var U3u;var ROo;var Sii;var jzL=new Map;var nz7=!1;var CM=function(){var x=_.n.apply(this,arguments)||this;x.DEFAULT_TOOLTIP_OFFSET="10";x.TOOLTIP_OFFSET_NO_BANNER="-8";x.badges=null;x.noEndpoints=!1;x.wrapText=!1;x.forceVerified=!1;x.tooltipPosition="top";x.compactStyle=!1;x.height=0;x.lineHeight=0;return x};
_.m(CM,_.n);_.a=CM.prototype;_.a.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.a.attached=function(){var x=this;this.observer=new MutationObserver(function(G,D){x.handleResized();D.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.a.detached=function(){this.observer&&this.observer.disconnect()};
_.a.logTooltipEvent=function(){_.B("kevlar_wiz_tooltip_event_killswitch")||nz7||(_.OPC("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),nz7=!0)};
_.a.handleWindowResized=function(){this.handleResized()};
_.a.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")))};
_.a.onHeightChanged=function(){if(this.verified){var x=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.Am("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=x:this.textContainerEl.style.marginRight=x}};
_.a.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.Am("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.a.handleResized=function(){var x=this;this.verified&&_.Fj.addLowPriorityJob(function(){x.fitBackgroundToText();var G=getComputedStyle(x.hostElement).lineHeight;G&&(G=G.match(/\d+/))&&G.length&&(x.lineHeight=Number(G[0]));x.height=x.lineHeight&&!x.wrapText?x.lineHeight:x.textEl.offsetHeight})};
_.a.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var x=document.createRange(),G=_.kA(this.textEl).children;G.length>0?x.selectNodeContents(G[0]):x.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(x.getBoundingClientRect().width)+"px"}};
_.a.computeChannelBadgeStyle=function(x){var G;if((x==null?0:(G=x.runs)==null?0:G.length)&&x.runs[0].textColor)return"--ytd-badge-icon-color:"+_.In(x.runs[0].textColor)+";"};
_.Nq.Object.defineProperties(CM.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"?_.gK(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var x=this.get("badges.0.metadataBadgeRenderer.tooltip");if(x)return x}return _.u7(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
CM.prototype.onLineHeightChanged=CM.prototype.onLineHeightChanged;CM.prototype.onHeightChanged=CM.prototype.onHeightChanged;CM.prototype.onChannelNameChanged=CM.prototype.onChannelNameChanged;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],CM.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],CM.prototype,"badges",void 0);_.q([_.R(),_.N("design:type",Object)],CM.prototype,"channelName",void 0);
_.q([_.R(),_.N("design:type",Object)],CM.prototype,"noEndpoints",void 0);_.q([_.R(),_.N("design:type",Object)],CM.prototype,"wrapText",void 0);_.q([_.R(),_.N("design:type",Object)],CM.prototype,"forceVerified",void 0);_.q([_.R(),_.N("design:type",Object)],CM.prototype,"tooltipPosition",void 0);_.q([_.R(),_.N("design:type",String)],CM.prototype,"tooltip",void 0);_.q([_.R(),_.N("design:type",Boolean)],CM.prototype,"hasChannelArt",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],CM.prototype,"compactStyle",void 0);_.q([_.cD("#text-container"),_.N("design:type",HTMLElement)],CM.prototype,"textContainerEl",void 0);_.q([_.cD("#text"),_.N("design:type",Object)],CM.prototype,"textEl",void 0);_.q([_.cD("#verified-tooltip"),_.N("design:type",HTMLElement)],CM.prototype,"verifiedTooltip",void 0);_.q([_.R(),_.N("design:type",Object)],CM.prototype,"height",void 0);
_.q([_.R(),_.N("design:type",Object)],CM.prototype,"lineHeight",void 0);_.q([_.R({reflectToAttribute:!0}),_.U("badges","forceVerified"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],CM.prototype,"verified",null);_.q([_.U("badges","verified"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],CM.prototype,"hideBadges",null);_.q([_.U("channelName"),_.N("design:type",Object),_.N("design:paramtypes",[])],CM.prototype,"formattedName",null);
_.q([_.U("badges","verified","formattedName"),_.N("design:type",String),_.N("design:paramtypes",[])],CM.prototype,"tooltipText",null);_.q([_.U("hasChannelArt"),_.N("design:type",String),_.N("design:paramtypes",[])],CM.prototype,"tooltipOffset",null);_.q([_.yf("channelName"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],CM.prototype,"onChannelNameChanged",null);
_.q([_.yf("height"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],CM.prototype,"onHeightChanged",null);_.q([_.yf("lineHeight","height"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],CM.prototype,"onLineHeightChanged",null);CM=_.q([_.d({is:"ytd-channel-name",disableElementRegistration:!0})],CM);
_.w(CM,"ytd-channel-name",function(){if(Sii!==void 0)return Sii;var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip aria-hidden="true" fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Sii=x},{mode:_.Ge("kevlar_poly_si_batch_j036")?1:2});var Id=function(){var x=_.n.apply(this,arguments)||this;x.standardizeIconSize=_.B("kevlar_system_icons");x.enableModernCommentBadges=_.B("enable_modern_comment_badges");return x};
_.m(Id,_.n);Id.prototype.basicPaletteChanged=function(){var x;(x=this.data.color)!=null&&x.basicColorPaletteData&&_.Y7(this.hostElement,this.data.color.basicColorPaletteData)};
Id.prototype.colorChanged=function(){if(!this.enableModernCommentBadges){var x,G=this.get("basicColorPaletteData.backgroundColor",(x=this.data)==null?void 0:x.color),D;x=this.get("basicColorPaletteData.foregroundTitleColor",(D=this.data)==null?void 0:D.color);D={};G?(G=_.In(G),D["--ytd-author-comment-badge-background-color"]=G):(D["--ytd-author-comment-badge-icon-background-color"]="transparent",D["--ytd-author-comment-badge-background-color"]="transparent");x?(G=_.In(x),D["--ytd-author-comment-badge-name-color"]=
G,D["--ytd-author-comment-badge-icon-color"]=G):D["--ytd-author-comment-badge-name-color"]="var(--yt-spec-text-primary)";Object.keys(D).length>0&&_.K7(this.hostElement,D)}};
Id.prototype.useFilledIcons=function(x){return _.B("kevlar_system_icons")&&(x==="CHECK_CIRCLE_THICK"||x==="OFFICIAL_ARTIST_BADGE")};
_.Nq.Object.defineProperties(Id.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")}}});
Id.prototype.colorChanged=Id.prototype.colorChanged;Id.prototype.basicPaletteChanged=Id.prototype.basicPaletteChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Id.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Id.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],Id.prototype,"standardizeIconSize",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Id.prototype,"enableModernCommentBadges",void 0);
_.q([_.R({reflectToAttribute:!0}),_.U("data.authorUnifiedVerified"),_.N("design:type",Object),_.N("design:paramtypes",[])],Id.prototype,"verified",null);_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Id.prototype,"creator",null);_.q([_.yf("data.color.basicColorPaletteData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Id.prototype,"basicPaletteChanged",null);
_.q([_.yf("data.color"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Id.prototype,"colorChanged",null);Id=_.q([_.d({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],Id);
_.w(Id,"ytd-author-comment-badge-renderer",function(){if(ROo!==void 0)return ROo;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return ROo=x},{mode:1});var ivo;var je=function(){return _.n.apply(this,arguments)||this};
_.m(je,_.n);je.prototype.computeThumbnailWidth=function(x){if(x==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],je.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],je.prototype,"data",void 0);_.q([_.R({computed:"computeIcon_(data.icon)"}),_.N("design:type",String)],je.prototype,"icon",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],je.prototype,"surface",void 0);
_.q([_.R({reflectToAttribute:!0,value:_.B("enable_shrink_image_size_on_web_posts_singleton")}),_.N("design:type",Boolean)],je.prototype,"searchSxsUx",void 0);je=_.q([_.d({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],je);
_.w(je,"ytd-backstage-image-renderer",function(){if(ivo!==void 0)return ivo;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return ivo=x},{mode:1});var gzZ;var OJ=function(){var x=_.n.apply(this,arguments)||this;x.isLoading=!1;x.selectedItemIndex=-1;return x};
_.m(OJ,_.n);_.a=OJ.prototype;_.a.computeIsChannelOwner=function(x){if(!x)return!0;x=x[0];return!(x&&(x.signinEndpoint||x.selectServiceEndpoint))};
_.a.computeIsImagePoll=function(x){return(x==null?void 0:x.type)==="POLL_TYPE_IMAGE"};
_.a.computeIsTotalVotesDisabled=function(x){return!(x==null?0:x.totalVotes)};
_.a.thumbnailSrc=function(x){var G,D,K,z;return(x==null?0:(G=x.thumbnails)==null?0:(D=G[0])==null?0:D.url)?_.V$((K=x.thumbnails)==null?void 0:(z=K[0])==null?void 0:z.url):void 0};
_.a.progressWidth=function(x){return"width:"+(x?x*100:0)+"%;"};
_.a.textAreaWidth=function(x){return this.isImagePoll?null:"width:"+(x?x*100:0)+"%;"};
_.a.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.a.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var x=this.data.choices,G=0;G<x.length;G++)if(x[G].selected){this.selectedItemIndex=G;break}};
_.a.onPopupClosed=function(x,G){x=Number(this.pollVotes.selected);G.confirmed&&(this.selectChoice(x,!1),_.xO(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.a.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.a.onYtCommentPollRevert=function(x,G){G&&(this.selectChoice(G.selectedChoiceIndex,!0),this.set("data.totalVotes",G.totalVotes))};
_.a.onYtServiceRequestSent=function(x,G){if(G.actions)for(x=0;x<G.actions.length;x++){var D=G.actions[x];_.Y(D,Vn)&&this.set("data.totalVotes",_.Y(D,Vn).totalVotes)}};
_.a.onYtServiceRequestCompleted=function(x){var G=this.get("detail.data.actionResults.0.feedback",x);x=this.get("detail.data.actionResults.0.status",x);if(G==="FEEDBACK_DESELECT"||G==="FEEDBACK_SELECT")this.isLoading=!1,x==="STATUS_FAILED"?_.h$(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.a.getEndpoint=function(x,G){return G===x?this.data.choices[G].deselectServiceEndpoint||null:this.data.choices[x].selectServiceEndpoint||null};
_.a.selectChoice=function(x,G){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var D=0;D<this.data.choices.length;D++){var K;if(x===this.selectedItemIndex){var z=!1;var y=K=null}else K=(z=D===x)?this.data.choices[D].voteRatioIfSelected:this.data.choices[D].voteRatioIfNotSelected,y=z?this.data.choices[D].votePercentageIfSelected:this.data.choices[D].votePercentageIfNotSelected;this.set("data.choices."+D+".voteRatio",K);
this.set("data.choices."+D+".votePercentage",y);this.set("data.choices."+D+".selected",z)}G||(this.isLoading=!0,(G=this.getEndpoint(x,this.selectedItemIndex))&&_.Eo().resolve(_.hm).resolveCommand(G,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===x?-1:x};
_.Nq.Object.defineProperties(OJ.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
OJ.prototype.onYtServiceRequestCompleted=OJ.prototype.onYtServiceRequestCompleted;OJ.prototype.onYtServiceRequestSent=OJ.prototype.onYtServiceRequestSent;OJ.prototype.onYtCommentPollRevert=OJ.prototype.onYtCommentPollRevert;OJ.prototype.onPopupClosed=OJ.prototype.onPopupClosed;OJ.prototype.dataChanged=OJ.prototype.dataChanged;_.q([_.I(_.iK),_.N("design:type",Object)],OJ.prototype,"paperItemBehavior",void 0);
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],OJ.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.i9),_.N("design:type",Object)],OJ.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],OJ.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],OJ.prototype,"isLoading",void 0);_.q([_.R({computed:"computeIsChannelOwner(data.choices)"}),_.N("design:type",Boolean)],OJ.prototype,"isChannelOwner",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.N("design:type",Boolean)],OJ.prototype,"isImagePoll",void 0);_.q([_.R({computed:"computeIsTotalVotesDisabled(data)"}),_.N("design:type",Boolean)],OJ.prototype,"isTotalVotesDisabled",void 0);_.q([_.R(),_.N("design:type",Object)],OJ.prototype,"previousPollInfo",void 0);_.q([_.R(),_.N("design:type",Object)],OJ.prototype,"selectedItemIndex",void 0);_.q([_.cD("#poll-votes"),_.N("design:type",Object)],OJ.prototype,"pollVotes",void 0);
_.q([_.U("isChannelOwner"),_.N("design:type",Object),_.N("design:paramtypes",[])],OJ.prototype,"endpointStyle",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],OJ.prototype,"dataChanged",null);_.q([_.oe("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],OJ.prototype,"onPopupClosed",null);
_.q([_.oe("yt-comment-poll-revert"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],OJ.prototype,"onYtCommentPollRevert",null);_.q([_.oe("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Ou]),_.N("design:returntype")],OJ.prototype,"onYtServiceRequestSent",null);
_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],OJ.prototype,"onYtServiceRequestCompleted",null);OJ=_.q([_.d({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],OJ);
_.w(OJ,"ytd-backstage-poll-renderer",function(){if(gzZ!==void 0)return gzZ;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return gzZ=x},{mode:2});var uIi;var d3J={autoplay:!1,loop:!1},wah={simpleText:""},X2=function(){var x=_.n.apply(this,arguments)||this;x.isLoading=!1;x.usesPanelLockup=!1;x.selectedItemIndex=-1;x.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},d3J,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});x.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},d3J,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});x.correctnessAnimationProps=[];x.correctnessAnimationRefs=[];return x};
_.m(X2,_.n);_.a=X2.prototype;_.a.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.a.computeIsChannelOwner=function(x){if(!x)return!0;x=x[0];return!(x&&(x.signinEndpoint||x.selectServiceEndpoint))};
_.a.computeIsTotalVotesDisabled=function(x){return!(x==null?0:x.totalVotes)};
_.a.computeIsImageQuiz=function(x){return(x==null?void 0:x.type)==="POLL_TYPE_IMAGE"};
_.a.onExplanationChanged=function(){this.expander.reset()};
_.a.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var x=this.data.choices;if(x){this.maybeInitializeQuizLotties(x);for(var G=0;G<x.length;G++)if(x[G].isSelected||this.isChannelOwner&&x[G].isCorrect){this.selectedItemIndex=G;return}this.selectedItemIndex=-1}}};
_.a.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var x=this.selectedItemIndex,G=Number(this.quizVotes.selected);this.selectChoice(G);this.sendVoteAction(G,x);this.quizVotes.selected=-1;var D;x=!((D=this.data)==null?0:D.enableAnimation);this.maybePlayAnswerAnimations(x)}};
_.a.onYtCommentPollRevert=function(x,G){G&&(this.selectChoice(G.selectedChoiceIndex),this.set("data.totalVotes",G.totalVotes))};
_.a.onYtServiceRequestSent=function(x,G){if(G.actions)for(x=_.l(G.actions),G=x.next();!G.done;G=x.next())(G=_.Y(G.value,Vn))&&this.set("data.totalVotes",G.totalVotes)};
_.a.onYtServiceRequestCompleted=function(x){var G=this.get("detail.data.actionResults.0.feedback",x);x=this.get("detail.data.actionResults.0.status",x);if(G==="FEEDBACK_DESELECT"||G==="FEEDBACK_SELECT")this.isLoading=!1,x==="STATUS_FAILED"?_.h$(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.a.getAnimationPropsForChoiceIndex=function(x,G){return G[x]};
_.a.maybePlayAnswerAnimations=function(x){x=x===void 0?!1:x;var G;if((G=this.data)!=null&&G.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){G=_.l(this.correctnessAnimationRefs);for(var D=G.next();!D.done;D=G.next()){var K=void 0,z=void 0;(K=D.value)==null||(z=K.lottieEl)==null||z.stop()}if(!(this.selectedItemIndex<0)){G=0;x&&(G=this.isCorrect?37:25);var y,c;(y=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(c=y.lottieEl)==null||c.goToAndPlay(x?G:0,!0);if(!(this.isCorrect||
(y=this.data.choices.findIndex(function(p){return p.isCorrect}),y<0))){var W,e;
(e=(W=this.correctnessAnimationRefs[y])==null?void 0:W.lottieEl)==null||e.goToAndPlay(37,!0);var Q;W=(Q=this.fadeContainers)==null?void 0:Q.item(y);!x&&W&&this.fadeIn(W)}}}};
_.a.thumbnailSrc=function(x){var G,D,K,z;return(x==null?0:(G=x.thumbnails)==null?0:(D=G[0])==null?0:D.url)?_.V$((K=x.thumbnails)==null?void 0:(z=K[0])==null?void 0:z.url):void 0};
_.a.a11yVotedText=function(x,G){var D,K,z=((D=this.data)==null?void 0:(K=D.correctVotedText)==null?void 0:K.simpleText)||"",y,c;D=((y=this.data)==null?void 0:(c=y.votedText)==null?void 0:c.simpleText)||"";if(!G)return"";var W,e;if((W=this.data)==null?0:(e=W.choices)==null?0:e[x].isCorrect)return z;var Q,p;return((Q=this.data)==null?0:(p=Q.choices)==null?0:p[x].isSelected)?D:""};
_.a.getEndpoint=function(x,G){return G===x?this.data.choices[x].deselectServiceEndpoint||null:this.data.choices[x].selectServiceEndpoint||null};
_.a.sendVoteAction=function(x,G){if(x=this.getEndpoint(x,G))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(x)};
_.a.selectChoice=function(x){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var G=0;G<this.data.choices.length;G++)this.set("data.choices."+G+".isSelected",x===this.selectedItemIndex?!1:G===x);this.selectedItemIndex=this.selectedItemIndex===x?-1:x};
_.a.maybeInitializeQuizLotties=function(x){var G=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=x.map(function(D){return{animationConfig:D.isCorrect?G.baseCorrectLottiePlayerAnimationConfig:G.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){G.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(D){return D.animationRef||{}})};
_.a.fadeIn=function(x){x.classList.add("fade-in");_.x7(_.Fj,function(){x.classList.remove("fade-in")},900)};
_.Nq.Object.defineProperties(X2.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.B("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.u7(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 x,G;return((x=this.data)==null?void 0:(G=x.choices)==null?void 0:G.some(function(D){return D.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null||!x.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?wah:this.data.choices[this.selectedItemIndex].explanation||wah}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null||!x.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
X2.prototype.onYtServiceRequestCompleted=X2.prototype.onYtServiceRequestCompleted;X2.prototype.onYtServiceRequestSent=X2.prototype.onYtServiceRequestSent;X2.prototype.onYtCommentPollRevert=X2.prototype.onYtCommentPollRevert;X2.prototype.dataChanged=X2.prototype.dataChanged;X2.prototype.onExplanationChanged=X2.prototype.onExplanationChanged;_.q([_.I(_.iK),_.N("design:type",Object)],X2.prototype,"paperItemBehavior",void 0);
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],X2.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],X2.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.qz.YtTaskEmitterBehavior),_.N("design:type",Object)],X2.prototype,"ytTaskEmitterBehavior",void 0);_.q([_.I(_.i9),_.N("design:type",Object)],X2.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],X2.prototype,"data",void 0);
_.q([_.R(),_.N("design:type",Object)],X2.prototype,"isLoading",void 0);_.q([_.R(),_.N("design:type",Object)],X2.prototype,"usesPanelLockup",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.N("design:type",Boolean)],X2.prototype,"isChannelOwner",void 0);_.q([_.R({computed:"computeIsTotalVotesDisabled(data)"}),_.N("design:type",Boolean)],X2.prototype,"isTotalVotesDisabled",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.N("design:type",Boolean)],X2.prototype,"isImageQuiz",void 0);_.q([_.R(),_.N("design:type",Object)],X2.prototype,"previousQuizInfo",void 0);_.q([_.R(),_.N("design:type",Object)],X2.prototype,"selectedItemIndex",void 0);_.q([_.R({reflectToAttribute:!0}),_.U("data","usesPanelLockup"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],X2.prototype,"shouldUseModernUi",null);
_.q([_.Ta(".fade-container"),_.N("design:type",Object)],X2.prototype,"fadeContainers",void 0);_.q([_.R(),_.N("design:type",Array)],X2.prototype,"correctnessAnimationProps",void 0);_.q([_.U("explanation","showCorrectAnswer"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],X2.prototype,"showExplanation",null);_.q([_.U("isChannelOwner","isAttempted"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],X2.prototype,"showCorrectAnswer",null);
_.q([_.U("isChannelOwner","isAttempted","data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],X2.prototype,"isQuizAnsweringDisabled",null);_.q([_.U("isQuizAnsweringDisabled"),_.N("design:type",Object),_.N("design:paramtypes",[])],X2.prototype,"endpointStyle",null);_.q([_.U("data","selectedItemIndex"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],X2.prototype,"isAttempted",null);
_.q([_.U("data","selectedItemIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],X2.prototype,"explanation",null);_.q([_.U("data","selectedItemIndex"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],X2.prototype,"isCorrect",null);_.q([_.cD("ytd-expander"),_.N("design:type",Object)],X2.prototype,"expander",void 0);_.q([_.cD("#quiz-votes"),_.N("design:type",Object)],X2.prototype,"quizVotes",void 0);
_.q([_.yf("explanation"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],X2.prototype,"onExplanationChanged",null);_.q([_.yf("data","isChannelOwner"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],X2.prototype,"dataChanged",null);_.q([_.oe("yt-comment-quiz-revert"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],X2.prototype,"onYtCommentPollRevert",null);
_.q([_.oe("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Ou]),_.N("design:returntype")],X2.prototype,"onYtServiceRequestSent",null);_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],X2.prototype,"onYtServiceRequestCompleted",null);X2=_.q([_.d({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],X2);
_.w(X2,"ytd-backstage-quiz-renderer",function(){if(uIi!==void 0)return uIi;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return uIi=x},{mode:1});var qiq;var AM=function(){return _.n.apply(this,arguments)||this};
_.m(AM,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],AM.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],AM.prototype,"data",void 0);AM=_.q([_.d({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],AM);
_.w(AM,"ytd-post-uploaded-video-renderer",function(){if(qiq!==void 0)return qiq;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return qiq=x},{mode:1});var N6E;var UJ=function(){return _.n.apply(this,arguments)||this};
_.m(UJ,_.n);UJ.prototype.useFilledIcons=function(x){return x==="SPONSORSHIP_STAR"};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],UJ.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],UJ.prototype,"data",void 0);UJ=_.q([_.d({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],UJ);
_.w(UJ,"ytd-sponsors-only-badge-renderer",function(){if(N6E!==void 0)return N6E;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return N6E=x},{mode:1});var vzq;var Rd=function(){return _.n.apply(this,arguments)||this};
_.m(Rd,_.n);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Rd.prototype,"componentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Rd.prototype,"data",void 0);Rd=_.q([_.d({is:"ytd-child-video-renderer",disableElementRegistration:!0})],Rd);
_.w(Rd,"ytd-child-video-renderer",function(){if(vzq!==void 0)return vzq;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return vzq=x},{mode:1});var JBu;var fTu;var Se=function(){var x=_.n.apply(this,arguments)||this;x.size=0;x.enableWebModernCollectionsV2=_.B("web_modern_collections_v2");x.fallbackImageSize={height:void 0,width:9999};x.webModernCollections=!1;return x};
_.m(Se,_.n);_.a=Se.prototype;_.a.computeBlurredImageSize=function(x){return x?{height:x*2,width:x*2}:this.fallbackImageSize};
_.a.computeImageSize=function(x){return x?{height:x,width:x}:this.fallbackImageSize};
_.a.computeObjectFit=function(x){return x?"FILL":"CONTAIN"};
_.a.computePreserve=function(x){return x?!0:!1};
_.a.setBackground=function(){var x,G;_.B("web_modern_collections_v2")&&((x=this.data)==null?0:(G=x.thumbnail)==null?0:G.sampledThumbnailColor)&&(x=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+x.red+","+x.green+","+x.blue+",1)")};
Se.prototype.setBackground=Se.prototype.setBackground;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Se.prototype,"ytRendererBehavior",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Se.prototype,"watchFeedThumbnail",void 0);_.q([_.R(),_.N("design:type",Object)],Se.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],Se.prototype,"size",void 0);
_.q([_.R({computed:"computeBlurredImageSize(size)"}),_.N("design:type",Object)],Se.prototype,"blurredImageSize",void 0);_.q([_.R({computed:"computeImageSize(size)"}),_.N("design:type",Object)],Se.prototype,"imageSize",void 0);_.q([_.R({computed:"computePreserve(size)"}),_.N("design:type",String)],Se.prototype,"preserve",void 0);_.q([_.R({computed:"computeObjectFit(size)"}),_.N("design:type",String)],Se.prototype,"objectFit",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],Se.prototype,"enableWebModernCollectionsV2",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Se.prototype,"webModernCollections",void 0);_.q([_.yf("data.thumbnail.sampledThumbnailColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Se.prototype,"setBackground",null);Se=_.q([_.d({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],Se);
_.w(Se,"ytd-playlist-custom-thumbnail-renderer",function(){if(fTu!==void 0)return fTu;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return fTu=x},{mode:1});var thZ;var nM=function(){return _.n.apply(this,arguments)||this};
_.m(nM,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],nM.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],nM.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Number)],nM.prototype,"width",void 0);nM=_.q([_.d({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],nM);
_.w(nM,"ytd-playlist-video-thumbnail-renderer",function(){if(thZ!==void 0)return thZ;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return thZ=x},{mode:1});var kBi;var im=function(){return _.n.apply(this,arguments)||this};
_.m(im,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],im.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],im.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Number)],im.prototype,"width",void 0);im=_.q([_.d({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],im);
_.w(im,"ytd-show-custom-thumbnail-renderer",function(){if(kBi!==void 0)return kBi;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return kBi=x},{mode:1});var P5q;var g8=function(){return _.n.apply(this,arguments)||this};
_.m(g8,_.n);g8.prototype.useFilledIcons=function(x){return x==="MUSIC"||x==="COURSE"};
g8.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=O4(this.overlayColor,"0.8");else if(this.overlayColor){var x=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+x.red+","+x.green+","+x.blue+",0.8)"}};
_.Nq.Object.defineProperties(g8.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)}}});
g8.prototype.overlayColorChanged=g8.prototype.overlayColorChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],g8.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],g8.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],g8.prototype,"overlayColor",void 0);_.q([_.R({reflectToAttribute:!0}),_.U("data.icon","data.text"),_.N("design:type",Object),_.N("design:paramtypes",[])],g8.prototype,"overlayStyle",null);
_.q([_.R({reflectToAttribute:!0}),_.U("data.icon","data.text"),_.N("design:type",Object),_.N("design:paramtypes",[])],g8.prototype,"overlayTextStyle",null);_.q([_.yf("overlayColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],g8.prototype,"overlayColorChanged",null);g8=_.q([_.d({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],g8);
_.w(g8,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(P5q!==void 0)return P5q;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return P5q=x},{mode:1});var Ezk;var um=function(){var x=_.n.apply(this,arguments)||this;x.active=!1;return x};
_.m(um,_.n);um.prototype.computeIsSpinnerHidden=function(x){return(x==null?void 0:x.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
um.prototype.computeOverlayIcon=function(x){return(x==null?void 0:x.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(x==null?void 0:x.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],um.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],um.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],um.prototype,"active",void 0);um=_.q([_.d({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],um);
_.w(um,"ytd-thumbnail-overlay-downloading-renderer",function(){if(Ezk!==void 0)return Ezk;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Ezk=x},{mode:1});var hOu;var d8=function(){return _.n.apply(this,arguments)||this};
_.m(d8,_.n);_.Nq.Object.defineProperties(d8.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],d8.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],d8.prototype,"data",void 0);_.q([_.U("data.text"),_.N("design:type",Object),_.N("design:paramtypes",[])],d8.prototype,"text",null);d8=_.q([_.d({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],d8);
_.w(d8,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(hOu!==void 0)return hOu;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return hOu=x},{mode:1});var xjJ,GO7=function(){if(xjJ!==void 0)return xjJ;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return xjJ=x};var w8=function(){return _.n.apply(this,arguments)||this};
_.m(w8,_.n);_.Nq.Object.defineProperties(w8,{template:{configurable:!0,enumerable:!0,get:function(){return GO7()}}});
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],w8.prototype,"animateEqualizer",void 0);w8=_.q([_.d({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],w8);_.x$()(w8,"ytd-thumbnail-overlay-equalizer",function(){return GO7()},{allowedProps:["animateEqualizer"],
mode:1});var Dj8;var qd=function(){var x=_.n.apply(this,arguments)||this;x.nowPlayingBadge=_.B("web_now_playing_badge");x.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return x};
_.m(qd,_.n);qd.prototype.activeChanged=function(){var x=this;_.B("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.w1(this,function(){_.h$(x.hostElement,"yt-playlist-lockup-now-playing-active",x)})};
qd.prototype.onMiniplayerPlayStateChanged=function(x){var G,D=(G=_.Y(_.or().currentEndpoint,_.d5))==null?void 0:G.videoId;this.isVideoPlaying=x&&(_.B("web_limit_now_playing_animation_killswitch")||this.videoId===D)};
qd.prototype.activeChanged=qd.prototype.activeChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],qd.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],qd.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],qd.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Boolean)],qd.prototype,"isVideoPlaying",void 0);_.q([_.R(),_.N("design:type",String)],qd.prototype,"videoId",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],qd.prototype,"equalizerOnly",void 0);_.q([_.R(),_.N("design:type",Boolean)],qd.prototype,"isActive",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],qd.prototype,"nowPlayingBadge",void 0);_.q([_.yf("isActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qd.prototype,"activeChanged",null);
qd=_.q([_.d({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],qd);
_.w(qd,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(Dj8!==void 0)return Dj8;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Dj8=x},{mode:1});var KDo;var Nd=function(){return _.n.apply(this,arguments)||this};
_.m(Nd,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Nd.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Nd.prototype,"data",void 0);Nd=_.q([_.d({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],Nd);
_.w(Nd,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(KDo!==void 0)return KDo;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return KDo=x},{mode:_.Ge("kevlar_poly_si_batch_j025")?1:2});var zXi;var vt=function(){return _.n.apply(this,arguments)||this};
_.m(vt,_.n);vt.prototype.onDurationChanged=function(){var x,G;_.kA(this.hostElement).querySelector("#progress").style.width=((G=(x=this.data)==null?void 0:x.percentDurationWatched)!=null?G:0)+"%"};
vt.prototype.onDurationChanged=vt.prototype.onDurationChanged;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],vt.prototype,"componentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],vt.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],vt.prototype,"isLive",void 0);_.q([_.yf("data.percentDurationWatched"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vt.prototype,"onDurationChanged",null);
vt=_.q([_.d({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],vt);
_.w(vt,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(zXi!==void 0)return zXi;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return zXi=x},{mode:1});var a0E;var JM=function(){var x=_.n.apply(this,arguments)||this;x.bottomPanel=!1;x.richGridOverlay=!1;x.watchFeedOverlay=!1;x.isCompact=!1;return x};
_.m(JM,_.n);JM.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.Nq.Object.defineProperties(JM.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var x,G;return((x=this.data)==null?void 0:(G=x.icon)==null?void 0:G.iconType)==="PLAY_ALL"&&_.B("kevlar_system_icons")}}});
JM.prototype.widthChanged=JM.prototype.widthChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],JM.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],JM.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Number)],JM.prototype,"width",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],JM.prototype,"bottomPanel",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],JM.prototype,"richGridOverlay",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],JM.prototype,"watchFeedOverlay",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],JM.prototype,"isCompact",void 0);_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],JM.prototype,"isIconFilled",null);_.q([_.yf("width","watchFeedOverlay"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],JM.prototype,"widthChanged",null);
JM=_.q([_.d({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],JM);
_.w(JM,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(a0E!==void 0)return a0E;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return a0E=x},{mode:1});var o4h;var yVu=["CLIP","SHORTS"],fM=function(){var x=_.n.apply(this,arguments)||this;x.animated=_.B("animated_live_badge_icon");x.hasIcon=!1;x.updateTimerIntervalId=0;x.timeSinceLive=0;return x};
_.m(fM,_.n);_.a=fM.prototype;_.a.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.a.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.a.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.a.hasIconOrText=function(){var x,G;return!!(((x=this.data)==null?0:x.icon)||((G=this.data)==null?0:G.text))};
_.a.initializeLiveBadgeTimer=function(){var x=this,G,D=(G=this.liveBadgeData)==null?void 0:G.startTimestampSec;if(D&&this.canShowLiveBadgeTimer()){var K;G=Number((K=this.liveBadgeData)==null?void 0:K.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(D);this.updateTimerIntervalId=_.yR(function(){x.canShowLiveBadgeTimer()?x.timeSinceLive++:(x.timeSinceLive=0,window.clearInterval(x.updateTimerIntervalId))},G)}else this.timeSinceLive=0};
_.a.canShowLiveBadgeTimer=function(){var x=Date.now(),G,D;return x<(Number((G=this.liveBadgeData)==null?void 0:G.endTimestampSec)-1)*1E3&&x>Number((D=this.liveBadgeData)==null?void 0:D.startTimestampSec)*1E3};
_.Nq.Object.defineProperties(fM.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var x=this.data;var G=this.timeSinceLive;var D,K,z,y;a:{var c=x.style;if(c===void 0)c=16;else switch(c){case "LIVE":c=17;break a;default:c=16}}G={type:c,text:G?jL3({seconds:G}):_.u7(x.text),accessibilityText:(D=x.text)==null?void 0:(K=D.accessibility)==null?void 0:(z=K.accessibilityData)==null?void 0:z.label,icon:(y=x.icon)==null?void 0:y.iconType}}else G={};return G}},
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 x;return(x=this.data)==null?void 0:x.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 yVu.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
fM.prototype.initializeLiveBadgeTimer=fM.prototype.initializeLiveBadgeTimer;fM.prototype.dataChanged=fM.prototype.dataChanged;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],fM.prototype,"componentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],fM.prototype,"data",void 0);_.q([_.R({computed:"computeIcon_(data.icon)"}),_.N("design:type",String)],fM.prototype,"icon",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],fM.prototype,"animated",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.N("design:type",Boolean)],fM.prototype,"hideTimeStatus",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],fM.prototype,"hasIcon",void 0);_.q([_.R(),_.N("design:type",Object)],fM.prototype,"timeSinceLive",void 0);_.q([_.U("data","timeSinceLive"),_.N("design:type",Object),_.N("design:paramtypes",[])],fM.prototype,"badgeShapeData",null);
_.q([_.U("data","overlayType"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],fM.prototype,"hideBadgeShape",null);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fM.prototype,"dataChanged",null);_.q([_.R({reflectToAttribute:!0}),_.U("data.style"),_.N("design:type",Object),_.N("design:paramtypes",[])],fM.prototype,"overlayStyle",null);
_.q([_.U("data.liveBadgeData"),_.N("design:type",Object),_.N("design:paramtypes",[])],fM.prototype,"liveBadgeData",null);_.q([_.R({reflectToAttribute:!0}),_.U("data.type"),_.N("design:type",Object),_.N("design:paramtypes",[])],fM.prototype,"overlayType",null);_.q([_.U("overlayType","overlayStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],fM.prototype,"useFilledIcon",null);
_.q([_.Z6("liveBadgeData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fM.prototype,"initializeLiveBadgeTimer",null);fM=_.q([_.d({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],fM);
_.w(fM,"ytd-thumbnail-overlay-time-status-renderer",function(){if(o4h!==void 0)return o4h;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return o4h=x},{mode:_.Ge("kevlar_poly_si_batch_j035")?1:2});var l0i;var tM=function(){return _.n.apply(this,arguments)||this};
_.m(tM,_.n);tM.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"}}}}};
tM.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(x){if(this.hasPlaybackProgressBar)return{percentDurationWatched:x.percentDurationWatched}};
tM.prototype.computeHasPlaybackProgressBar=function(x){return!!x.percentDurationWatched&&x.percentDurationWatched>0};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],tM.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],tM.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],tM.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.N("design:type",Boolean)],tM.prototype,"hasPlaybackProgressBar",void 0);
tM=_.q([_.d({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],tM);
_.w(tM,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(l0i!==void 0)return l0i;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return l0i=x},{mode:1});var cV9;var Tsu=_.Nv(function(x){var G=x.data;var D=x.children;var K=function(){return!!G().doubleStack};
return _.M("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!G().experimentEnabled}},_.M(_.b,{cond:G,
then:function(){return _.M("div",null,_.M(_.b,{cond:K,then:function(){var z={};return _.M("div",{class:_.ym("collections-stack-wiz__collection-stack2",function(){return G().customClassName2ndStack},(z["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return G().enableResponsiveMode},z)),
style:_.Ms({"background-color":function(){return ATL(G())}})})}}),_.M("div",{class:_.ym("collections-stack-wiz__collection-stack1",function(){return G().customClassName1stStack},function(){return XW3(G().thumbnailSize?G().thumbnailSize:"medium")}),
style:_.Ms({"background-color":function(){return ATL(G())}})}),D)}}))},"P");_.tn(Tsu,"yt-collections-stack",{props:{data:_.ik}});var kn=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};x.webModernCollections=!1;x.isSearch=!1;x.isDoubleStack=!1;x.thumbnailSize="medium";x.enableWebModernCollectionsV2=_.B("web_modern_collections_v2");return x};
_.m(kn,_.n);_.a=kn.prototype;
_.a.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]]"}}}}}};
_.a.getThumbnailDetails=function(x){if(x!=null&&x.thumbnailRenderer){var G=x.thumbnailRenderer,D;if((D=G.playlistVideoThumbnailRenderer)==null?0:D.thumbnail)return G.playlistVideoThumbnailRenderer.thumbnail;var K;if((K=G.playlistCustomThumbnailRenderer)==null?0:K.thumbnail)return G.playlistCustomThumbnailRenderer.thumbnail;x=x.thumbnailRenderer;var z;if((z=x.showCustomThumbnailRenderer)==null?0:z.thumbnail)return x.showCustomThumbnailRenderer.thumbnail}};
_.a.computeOverlayColor=function(x){var G,D;if((G=this.getThumbnailDetails(x))==null?0:(D=G.darkColorPalette)==null?0:D.section2Color)return this.getThumbnailDetails(x).darkColorPalette.section2Color;var K;return(K=this.getThumbnailDetails(x))==null?void 0:K.sampledThumbnailColor};
_.a.computeWebModernCollections=function(x){if(x==null||!x.thumbnailOverlays)return!1;x=_.l(x.thumbnailOverlays);for(var G=x.next();!G.done;G=x.next()){var D=void 0;if((D=G.value)==null?0:D.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.a.computeNavigationEndpoint=function(x){return UlV(x==null?void 0:x.navigationEndpoint)};
_.Nq.Object.defineProperties(kn.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var x=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:x==null?void 0:x.sampledThumbnailColor,vibrantColorPalette:x==null?void 0:x.vibrantColorPalette,darkColorPalette:x==null?void 0:x.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],kn.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],kn.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(Bou),_.N("design:type",Object)],kn.prototype,"ytdThumbnailBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],kn.prototype,"componentBehavior",void 0);
_.q([_.R({value:!1}),_.N("design:type",Boolean)],kn.prototype,"watchFeedThumbnail",void 0);_.q([_.R(),_.N("design:type",Number)],kn.prototype,"customThumbnailSize",void 0);_.q([_.R({value:!0}),_.N("design:type",Boolean)],kn.prototype,"hideAria",void 0);_.q([_.R(),_.N("design:type",Object)],kn.prototype,"data",void 0);_.q([_.R({computed:"computeOverlayColor(data)"}),_.N("design:type",Object)],kn.prototype,"overlayColor",void 0);
_.q([_.R({computed:"computeWebModernCollections(data)"}),_.N("design:type",Object)],kn.prototype,"webModernCollections",void 0);_.q([_.R({computed:"computeNavigationEndpoint(data)"}),_.N("design:type",Object)],kn.prototype,"computedNavigationEndpoint",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],kn.prototype,"isSearch",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],kn.prototype,"isDoubleStack",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],kn.prototype,"thumbnailSize",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],kn.prototype,"enableWebModernCollectionsV2",void 0);_.q([_.U("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.N("design:type",Object),_.N("design:paramtypes",[])],kn.prototype,"collectionStack",null);kn=_.q([_.d({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],kn);
_.w(kn,"ytd-playlist-thumbnail",function(){if(cV9!==void 0)return cV9;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return cV9=x},{mode:_.Ge("kevlar_poly_si_batch_j025")?1:2});var WDs;var Pt=function(){var x=_.n.apply(this,arguments)||this;x.noEndpoints=!1;x.amsterdamPostMvp=_.B("web_amsterdam_post_mvp_playlists");x.badges=[];x.transferState="TRANSFER_STATE_UNKNOWN";return x};
_.m(Pt,_.n);_.a=Pt.prototype;_.a.getMetadata=function(x){if(!x)return[];var G=[],D=x.shortViewCountText||x.viewCountText;D&&G.push(_.u7(D));x.publishedTimeText&&G.push(_.u7(x.publishedTimeText));x.upcomingEventData&&x.upcomingEventData.upcomingEventText&&G.push(_.IO(_.u7(x.upcomingEventData.upcomingEventText),Number(x.upcomingEventData.startTime)));return G};
_.a.observeDataForBylineSeparator=function(){this.data&&_.E4(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.a.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.In(this.metadataColor)};
_.a.getSimpleString=function(x){return _.u7(x)};
_.a.isBylineHidden=function(x){return this.noByline||!((x==null?0:x.longBylineText)||(x==null?0:x.shortBylineText))};
_.a.isMetadataHidden=function(x){var G;return((G=this.getMetadata(x))==null?void 0:G.length)===0};
_.a.isBylineMetadataSeparatorHidden=function(x){return this.isMetadataHidden(x)||!this.shouldShowVideoInfo};
_.a.isLongByline=function(x,G){return G&&!(x==null||!x.longBylineText)};
_.Nq.Object.defineProperties(Pt.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var x;return this.amsterdamPostMvp&&!((x=this.data)==null||!x.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 _.B("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
Pt.prototype.metadataColorChanged=Pt.prototype.metadataColorChanged;Pt.prototype.observeDataForBylineSeparator=Pt.prototype.observeDataForBylineSeparator;_.q([_.I(_.$l),_.N("design:type",Object)],Pt.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Pt.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],Pt.prototype,"noEndpoints",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Pt.prototype,"isSlimShort",void 0);
_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Pt.prototype,"radioMeta",void 0);_.q([_.R({selector:_.X4}),_.N("design:type",Object)],Pt.prototype,"isGridViewEnabled",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Pt.prototype,"richMeta",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Pt.prototype,"amsterdamPostMvp",void 0);_.q([_.R(),_.N("design:type",Boolean)],Pt.prototype,"noByline",void 0);
_.q([_.R({computed:"isLongByline(data, radioMeta)"}),_.N("design:type",Boolean)],Pt.prototype,"longByline",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Pt.prototype,"truncateMetadataLine",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Pt.prototype,"miniMode",void 0);_.q([_.R(),_.N("design:type",Number)],Pt.prototype,"metadataColor",void 0);_.q([_.R(),_.N("design:type",Array)],Pt.prototype,"badges",void 0);
_.q([_.R({selector:_.C3,selectorArgs:["data.videoId"]}),_.N("design:type",String)],Pt.prototype,"transferState",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Pt.prototype,"isDownloading",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Pt.prototype,"typographyBump",void 0);_.q([_.cD("#metadata-line"),_.N("design:type",HTMLElement)],Pt.prototype,"metadataLine",void 0);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pt.prototype,"observeDataForBylineSeparator",null);_.q([_.yf("metadataColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pt.prototype,"metadataColorChanged",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Pt.prototype,"shouldShowVideoInfo",null);
_.q([_.U("badges"),_.N("design:type",String),_.N("design:paramtypes",[])],Pt.prototype,"inlineBadgeClass",null);_.q([_.U("longByline"),_.N("design:type",String),_.N("design:paramtypes",[])],Pt.prototype,"longBylineClass",null);_.q([_.U("data","longByline"),_.N("design:type",Object),_.N("design:paramtypes",[])],Pt.prototype,"bylineText",null);_.q([_.U("isGridViewEnabled","data"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Pt.prototype,"watchFeedBigThumbs",null);
Pt=_.q([_.d({is:"ytd-video-meta-block",disableElementRegistration:!0})],Pt);
_.w(Pt,"ytd-video-meta-block",function(){if(WDs!==void 0)return WDs;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return WDs=x},{mode:_.Ge("kevlar_poly_si_batch_j080")?1:2});_.HH("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var EJ=function(){var x=_.n.apply(this,arguments)||this;x.displayItemCount=2;x.isBackstagePlaylist=!1;x.isPostCompactPlaylist=!1;x.shouldShowChannelThumbnail=!1;x.useModernCollectionsV2=_.B("web_modern_collections_v2");return x};
_.m(EJ,_.n);_.a=EJ.prototype;_.a.computeFirstVideos=function(x,G){return x===void 0||G===void 0?[]:x.slice(0,G)};
_.a.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var x=this.data.thumbnailRenderer;x.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",x.playlistVideoThumbnailRenderer.thumbnail);x.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",x.playlistCustomThumbnailRenderer.thumbnail)}};
_.a.computeThumbnailHeight=function(x,G,D,K,z){return K?z==="BIG"?280:z==="MASSIVE"?337:234:D?240:G?72:x?118:138};
_.a.computeThumbnailWidth=function(x,G,D,K,z){return K?z==="MEDIUM"?450:z==="BIG"?500:z==="MASSIVE"?600:420:D?360:G?128:x?210:246};
_.a.computeUseBiggerThumbs=function(x){return x&&_.B("enable_desktop_search_bigger_thumbs")};
_.a.computeShouldShowChannelThumbnail=function(x,G){return x&&!(G==null||!G.channelThumbnail)};
_.Nq.Object.defineProperties(EJ.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
EJ.prototype.dataChanged=EJ.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],EJ.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.RG),_.N("design:type",Object)],EJ.prototype,"ytdLockupBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],EJ.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],EJ.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],EJ.prototype,"displayItemCount",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],EJ.prototype,"isBackstagePlaylist",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],EJ.prototype,"isPostCompactPlaylist",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],EJ.prototype,"isSearch",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.N("design:type",Boolean)],EJ.prototype,"useBiggerThumbs",void 0);_.q([_.R({reflectToAttribute:!0,value:function(){return _.Db("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],EJ.prototype,"biggerThumbsStyle",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],EJ.prototype,"isDownloads",void 0);_.q([_.R({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.N("design:type",Object)],EJ.prototype,"shouldShowChannelThumbnail",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],EJ.prototype,"useModernCollectionsV2",void 0);
_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EJ.prototype,"dataChanged",null);_.q([_.U("isSearch"),_.N("design:type",String),_.N("design:paramtypes",[])],EJ.prototype,"stackThumbnailSize",null);EJ=_.q([_.d({is:"ytd-playlist-renderer",disableElementRegistration:!0})],EJ);
_.w(EJ,"ytd-playlist-renderer",function(){if(JBu===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);JBu=x}x=JBu;return x},{mode:1});var eXs;var ZOo;var hM=function(){var x=_.n.apply(this,arguments)||this;x.collections=!!_.B("web_modern_collections_v2");x.startX=0;return x};
_.m(hM,_.n);hM.prototype.onEndpointMouseDown=function(x){this.startX=x.clientX};
hM.prototype.onEndpointClick=function(x){this.startX!==x.clientX&&(x.preventDefault(),x.stopPropagation())};
hM.prototype.computeObjectFit=function(x){return x==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||x==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||x==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
hM.prototype.computeCardStyle=function(x){return x?x.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.Nq.Object.defineProperties(hM.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var x,G;return this.collections&&((x=this.data)==null?void 0:(G=x.searchRefinementCardRendererStyle)==null?void 0:G.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}}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],hM.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],hM.prototype,"data",void 0);_.q([_.R({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.N("design:type",Number)],hM.prototype,"objectFit",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.N("design:type",String)],hM.prototype,"cardStyle",void 0);
_.q([_.R({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],hM.prototype,"roundContainer",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],hM.prototype,"collections",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],hM.prototype,"isAlbumCard",null);_.q([_.U("data","collections","isAlbumCard"),_.N("design:type",Object),_.N("design:paramtypes",[])],hM.prototype,"collectionStack",null);
hM=_.q([_.d({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],hM);
_.w(hM,"ytd-search-refinement-card-renderer",function(){if(ZOo!==void 0)return ZOo;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return ZOo=x},{mode:1});var MPE;var xc=function(){var x=_.n.apply(this,arguments)||this;x.isRichGrid=!1;return x};
_.m(xc,_.n);_.q([_.R(),_.N("design:type",Object)],xc.prototype,"data",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],xc.prototype,"componentBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],xc.prototype,"ytdReduxBehavior",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],xc.prototype,"isRichGrid",void 0);_.q([_.R({reflectToAttribute:!0,selector:_.Y_}),_.N("design:type",Boolean)],xc.prototype,"miniMode",void 0);
xc=_.q([_.d({is:"ytd-game-details-renderer",disableElementRegistration:!0})],xc);
_.w(xc,"ytd-game-details-renderer",function(){if(MPE!==void 0)return MPE;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return MPE=x},{mode:1});var Qi8;var pnq;var Gg=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return x};
_.m(Gg,_.n);_.a=Gg.prototype;_.a.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.a.currentStateData=function(x){var G=x||this.data;return G&&G.states&&G.currentStateId!=null?G.states.find(function(D){return D.stateId===G.currentStateId})||null:null};
_.a.currentStateRendererData=function(x){return(x=this.currentStateData(x))&&x.state&&x.state.buttonRenderer?x.state.buttonRenderer:null};
_.a.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())};
_.a.computeButtonIcon=function(x){x=this.currentStateRendererData(x);var G;return(x==null?0:(G=x.icon)==null?0:G.iconType)?x.icon.iconType.toLowerCase():null};
_.a.computeAccessibility=function(x){return(x=this.currentStateRendererData(x))&&x.accessibilityData?x.accessibilityData.accessibilityData||null:null};
_.a.computeButtonClass=function(x){var G=this.currentStateRendererData(x);if(!G)return"";x="";var D=G.style;D&&(x+=D.toLowerCase().replace(/_/g,"-")+" ");(G=G.size)&&(x+=G.toLowerCase().replace(/_/g,"-")+" ");return x.trim()};
_.a.computeServiceEndpoint=function(x){if(!x)return null;var G=x&&x.serviceEndpoint,D=this.get("command.commandMetadata.webCommandMetadata.sendPost",x);return G?G:D&&x.command?x.command:null};
_.a.computeBellMenuItemParams=function(x){var G;x=(G=_.Y(x==null?void 0:x.command,_.oI))==null?void 0:G.commands;if(!x||x.length===0)return null;G=_.Y(x[0],_.bz);var D,K;return(G==null?0:(D=G.popup)==null?0:(K=D.menuPopupRenderer)==null?0:K.items)?G.popup.menuPopupRenderer.items.map(function(z){return z.menuServiceItemRenderer.trackingParams}):null};
_.a.handleBellMenuOpenSelectedAction=function(x){var G=x.trackingParams,D=this.computeBellMenuItemParams(this.data);this.data&&G&&D&&D.includes(G)&&this.ytRenderButtonBehavior._setButtonIcon(x.icon.iconType.toLowerCase())};
_.a.onYtServiceRequestCompleted=function(x,G){(x=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",G))&&this.set("data",x)};
_.a.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.a.resetState=function(){this.set("data.currentStateId",3)};
_.a.onYtButtonTapHandler=function(){if(this.data){var x=this.currentStateRendererData(this.data);x&&this.ytRendererBehavior.logExplicitClick(x)}};
Gg.prototype.onYtServiceRequestError=Gg.prototype.onYtServiceRequestError;Gg.prototype.onYtServiceRequestCompleted=Gg.prototype.onYtServiceRequestCompleted;Gg.prototype.stateChanged=Gg.prototype.stateChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Gg.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],Gg.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.I(eM.YtRenderButtonBehavior),_.N("design:type",Object)],Gg.prototype,"ytRenderButtonBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Gg.prototype,"data",void 0);_.q([_.Z6("data","data.currentStateId"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Gg.prototype,"stateChanged",null);
_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.gG]),_.N("design:returntype")],Gg.prototype,"onYtServiceRequestCompleted",null);_.q([_.oe("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Gg.prototype,"onYtServiceRequestError",null);Gg=_.q([_.d({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],Gg);
_.w(Gg,"ytd-subscription-notification-toggle-button-renderer",function(){if(pnq!==void 0)return pnq;var x=document.createElement("template");_.F(x,"\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");x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return pnq=x},{mode:1});var VPZ;var DI=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};x.tapHandler=function(){if(x.data){var G=x.currentStateRendererData();G&&x.ytRendererBehavior.logExplicitClick(G)}};
return x};
_.m(DI,_.n);_.a=DI.prototype;_.a.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.a.currentStateData=function(){var x=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(G){return G.stateId===x.data.currentStateId})||null:null};
_.a.currentStateRendererData=function(){var x=this.currentStateData();return x&&x.state&&x.state.buttonRenderer?x.state.buttonRenderer:null};
_.a.computeAccessibilityLabel=function(){var x,G,D;return(x=this.currentStateRendererData())==null?void 0:(G=x.accessibilityData)==null?void 0:(D=G.accessibilityData)==null?void 0:D.label};
_.a.computeBellMenuItemParams=function(){var x,G,D=(G=_.Y((x=this.data)==null?void 0:x.command,_.oI))==null?void 0:G.commands;if(!D||D.length===0)return null;x=_.Y(D[0],_.bz);var K,z;return(x==null?0:(K=x.popup)==null?0:(z=K.menuPopupRenderer)==null?0:z.items)?x.popup.menuPopupRenderer.items.map(function(y){return y.menuServiceItemRenderer.trackingParams}):null};
_.a.handleBellMenuOpenSelectedAction=function(x){var G=x.trackingParams,D=this.computeBellMenuItemParams();if(this.data&&G&&D&&D.includes(G)&&(x==null||!x.isDisabled)){var K;((K=_.Y(x.serviceEndpoint,_.cg))==null?void 0:K.signal)!=="CLIENT_SIGNAL"&&(this.icon=x.icon.iconType)}};
_.a.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.a.onYtServiceRequestCompleted=function(x,G){if(x=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",G))this.icon=void 0,this.set("data",x)};
_.a.onYtServiceRequestError=function(){this.icon=void 0};
_.Nq.Object.defineProperties(DI.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var x=this.data,G=this.textLabel,D=this.hostElement,K=this.computeAccessibilityLabel(),z=this.tapHandler,y=this.isOverlay?"overlay":"mono",c=(x==null?0:x.disableButton)?"disabled":"active";G=G?_.$$(G):void 0;return{style:y,type:"tonal",state:c,size:"M",focused:!1,formattedButtonText:G,iconPosition:"leading-trailing",onTap:SGf(x,z,D),accessibilityLabel:K}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var x=this.currentStateRendererData(),G,D,K=(D=this.icon)!=null?D:x==null?void 0:(G=x.icon)==null?void 0:G.iconType;if(K)return _.aP(K)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var x,G,D=(x=this.data)==null?void 0:(G=x.secondaryIcon)==null?void 0:G.iconType;if(D)return _.aP(D)}}});
DI.prototype.onYtServiceRequestError=DI.prototype.onYtServiceRequestError;DI.prototype.onYtServiceRequestCompleted=DI.prototype.onYtServiceRequestCompleted;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],DI.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],DI.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],DI.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],DI.prototype,"textLabel",void 0);
_.q([_.R(),_.N("design:type",String)],DI.prototype,"icon",void 0);_.q([_.R(),_.N("design:type",Boolean)],DI.prototype,"isOverlay",void 0);_.q([_.U("data.*","textLabel"),_.N("design:type",Object),_.N("design:paramtypes",[])],DI.prototype,"computedButtonShape",null);_.q([_.U("data.*","icon"),_.N("design:type",Object),_.N("design:paramtypes",[])],DI.prototype,"computedIcon",null);_.q([_.U("data.*"),_.N("design:type",Object),_.N("design:paramtypes",[])],DI.prototype,"computedSecondaryIcon",null);
_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.gG]),_.N("design:returntype")],DI.prototype,"onYtServiceRequestCompleted",null);_.q([_.oe("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],DI.prototype,"onYtServiceRequestError",null);DI=_.q([_.d({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],DI);
_.w(DI,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(VPZ!==void 0)return VPZ;var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return VPZ=x},{mode:_.Ge("kevlar_poly_si_batch_j081")?1:2});var bOs;_.tn(paZ,"yt-animated-action",{props:{backgroundLottieRef:_.ik,foregroundLottieRef:_.ik,wrapperClass:_.ik,disableAnimation:_.ik},unsafeExternallySettableAttributes:new Set(["key"])});var Kj=function(){var x=_.n.apply(this,arguments)||this;x.animatedActionEnabled=_.B("web_animated_actions");x.foregroundLottieRef={};x.backgroundLottieRef={};x.forceIconOnly=!1;x.showTextWhileAnimating=!1;x.keyboardFocused=!1;x.isAnimating=!1;x.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return x};
_.m(Kj,_.n);_.a=Kj.prototype;_.a.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.a.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]]"}}}}}};
_.a.attached=function(){this.keyboardFocused=!1};
_.a.onYtServiceRequestSent=function(x,G){(this.get("endpoint.subscribeEndpoint",G)||this.get("endpoint.unsubscribeEndpoint",G))&&this.updateSubscriptionState(!this.subscribed)};
_.a.onYtServiceRequestCompleted=function(x,G){(x=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",G.data))&&this.bellButton&&(this.bellButton.data=x)};
_.a.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.K7(this.hostElement)};
_.a.onPlayerSubscribe=function(x){this.isCompactRed()||x!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.a.onPlayerUnsubscribe=function(x){this.isCompactRed()||x!==this.data.channelId||this.updateSubscriptionState(!1)};
_.a.handleUpdateSubscribeButtonAction=function(x){x=_.Y(x,PhJ);var G;x&&x.channelId===((G=this.data)==null?void 0:G.channelId)&&this.updateSubscriptionState(!!x.subscribed)};
_.a.computeButtonStyle=function(x){return this.get("style.styleType",x)||null};
_.a.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.a.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.a.updateSubscriptionState=function(x){if(x!==this.subscribed){this.set("data.subscribed",x);var G,D=(G=this.data)==null?void 0:G.subscribedEntityKey;D&&this.ytdReduxBehavior.dispatch(_.cq("subscriptionStateEntity",D,{key:D,subscribed:x}));this.isCompactRed()||_.h$(this.hostElement,"yt-subscription-changed",x);x||(_.xO(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!x),x&&this.hasBellButton&&this.startAnimation())}};
_.a.startAnimation=function(){var x=this;if(!this.isAnimating){var G=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var D;(D=this.backgroundLottieRef.lottieEl)==null||D.goToAndPlay(0);var K;(K=this.foregroundLottieRef.lottieEl)==null||K.goToAndPlay(0);_.Fj.addJob(function(){x.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.Fj.addJob(function(){x.updateContainerToFitContent(!!x.subscribed,!0)},2,1500);
_.Fj.addJob(function(){x.isAnimating=!1},2,G)}};
_.a.maybeAnimateBellIcon=function(){var x=_.Pi(this.hostElement).querySelector("yt-animated-icon");if(x){var G;(G=x.animationRef.lottieEl)==null||G.goToAndPlay(0)}};
_.a.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.a.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.a.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var x;this.unsubscribedWidth=(x=this.subscribeButtonShape)==null?void 0:x.getBoundingClientRect().width}var G;this.subscribedWidth=(G=this.bellButton)==null?void 0:G.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.a.updateContainerToFitContent=function(x,G){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(x?(x=this.subscribedWidth,G=this.isAnimating&&!G,this.subscribedIconOnlyWidth===void 0||G||(x=this.subscribedIconOnlyWidth),this.hostElement.style.width=x+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.a.clearContainerSize=function(){this.hostElement.style.width=""};
_.a.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.a.maybeSetSubscribedButtonIconOnlyWidth=function(){var x=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 G;x.subscribedIconOnlyWidth=(G=x.bellButton)==null?void 0:G.getBoundingClientRect().width;requestAnimationFrame(function(){if(x.bellButton){var D;x.bellButton.textLabel=
(D=x.data)==null?void 0:D.subscribedButtonText}})})))};
_.Nq.Object.defineProperties(Kj.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 x;return(x=this.data)==null?void 0:x.subscribedButtonText}var G;return this.forceIconOnly?void 0:(G=this.data)==null?void 0:G.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var x,G,D=((x=this.data)==null?void 0:(G=x.timedAnimationData)==null?void 0:G.animationTiming)||[];return{uniqueId:"subscribe",timings:D,enabled:D.length>0&&!this.subscribed,experimentEnabled:D.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var x;return!this.subscribed&&((x=this.data)==null?void 0:x.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 x={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var G=x.renderer;var D=x.element;var K=x.subscribed;var z=x.commandController;var y=x.isOverlay;x=x.config;var c=uUL(G,K);y&&(c.style="overlay");y=Object;var W=y.assign,e;a:switch((e=G.style)==null?void 0:e.styleType){case "COMPACT_GRAY":case "COMPACT_RED":e={size:"S"};break a;default:e={size:"M"}}var Q=gZn(G,K);var p=
(p=K?G.subscribedButtonText:G.unsubscribedButtonText)?_.$$(p):void 0;return W.call(y,{},c,e,{focused:!1,toggled:K,accessibilityLabel:Q,formattedButtonText:p,onTap:iPE(G,x,K,D,z)})}}}});
Kj.prototype.onMouseDown=Kj.prototype.onMouseDown;Kj.prototype.onDataChanged=Kj.prototype.onDataChanged;Kj.prototype.observedSubscribed=Kj.prototype.observedSubscribed;Kj.prototype.onYtServiceRequestCompleted=Kj.prototype.onYtServiceRequestCompleted;Kj.prototype.onYtServiceRequestSent=Kj.prototype.onYtServiceRequestSent;Kj.prototype.maybeUpdateBellButtonText=Kj.prototype.maybeUpdateBellButtonText;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Kj.prototype,"ytComponentBehavior",void 0);
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Kj.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Kj.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],Kj.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],Kj.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Kj.prototype,"data",void 0);
_.q([_.R({selectorArgs:["data.subscribedEntityKey"],selector:T6f}),_.N("design:type",Object)],Kj.prototype,"subscriptionStateEntity",void 0);_.q([_.R({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Kj.prototype,"subscribed",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],Kj.prototype,"branded",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Kj.prototype,"animatedActionEnabled",void 0);
_.q([_.R(),_.N("design:type",Object)],Kj.prototype,"foregroundLottieRef",void 0);_.q([_.R(),_.N("design:type",Object)],Kj.prototype,"backgroundLottieRef",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],Kj.prototype,"overlayButton",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.N("design:type",Object)],Kj.prototype,"buttonStyle",void 0);_.q([_.R(),_.N("design:type",Object)],Kj.prototype,"forceIconOnly",void 0);
_.q([_.R(),_.N("design:type",Object)],Kj.prototype,"showTextWhileAnimating",void 0);_.q([_.R({value:function(){return!!_.Eo().resolve(_.P6(_.Ee))&&_.B("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.N("design:type",Boolean)],Kj.prototype,"useKeyboardFocused",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Kj.prototype,"keyboardFocused",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Kj.prototype,"isAnimating",void 0);_.q([_.U("data.notificationPreferenceButton.*"),_.N("design:type",Object),_.N("design:paramtypes",[])],Kj.prototype,"hasBellButton",null);
_.q([_.yf("subscribedButtonText"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kj.prototype,"maybeUpdateBellButtonText",null);_.q([_.U("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.N("design:type",Object),_.N("design:paramtypes",[])],Kj.prototype,"subscribedButtonText",null);_.q([_.U("data.timedAnimationData.animationTiming","subscribed"),_.N("design:type",Object),_.N("design:paramtypes",[])],Kj.prototype,"smartimationSettings",null);
_.q([_.R({reflectToAttribute:!0}),_.U("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.N("design:type",Object),_.N("design:paramtypes",[])],Kj.prototype,"subscribeButtonHidden",null);_.q([_.R({reflectToAttribute:!0}),_.U("subscribed","hasBellButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],Kj.prototype,"subscribeButtonInvisible",null);
_.q([_.R({reflectToAttribute:!0}),_.U("subscribed"),_.N("design:type",Object),_.N("design:paramtypes",[])],Kj.prototype,"unsubscribeButtonHidden",null);_.q([_.cD("ytd-subscription-notification-toggle-button-renderer-next"),_.N("design:type",Object)],Kj.prototype,"bellButton",void 0);_.q([_.cD("#subscribe-button-shape"),_.N("design:type",HTMLElement)],Kj.prototype,"subscribeButtonShape",void 0);
_.q([_.U("overlayButton","subscribed","data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Kj.prototype,"buttonShape",null);_.q([_.oe("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Ou]),_.N("design:returntype")],Kj.prototype,"onYtServiceRequestSent",null);_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.gG]),_.N("design:returntype")],Kj.prototype,"onYtServiceRequestCompleted",null);
_.q([_.yf("subscribed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kj.prototype,"observedSubscribed",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kj.prototype,"onDataChanged",null);_.q([_.oe("mousedown"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Kj.prototype,"onMouseDown",null);
Kj=_.q([_.d({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],Kj);
_.w(Kj,"ytd-subscribe-button-renderer",function(){if(bOs!==void 0)return bOs;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return bOs=x},{mode:1});var zg=function(){var x=_.n.apply(this,arguments)||this;x.isRichGrid=!1;return x};
_.m(zg,_.n);zg.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"}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],zg.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],zg.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],zg.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],zg.prototype,"isRichGrid",void 0);zg=_.q([_.d({is:"ytd-game-card-renderer",disableElementRegistration:!0})],zg);
_.w(zg,"ytd-game-card-renderer",function(){if(Qi8!==void 0)return Qi8;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Qi8=x},{mode:1});var aH={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.B("defer_menus")&&!QHi?0:void 0,waitForSignal:"eocs"};var LDs;var Bsu;var oH=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return x};
_.m(oH,_.n);_.a=oH.prototype;_.a.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.a.onSeriesReminderStateEntityChange=function(){var x,G,D;((x=this.eventReminderStateEntity)==null?0:x.key)&&((G=this.seriesReminderStateEntity)==null?void 0:G.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((D=this.eventReminderStateEntity)==null?void 0:D.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.cq("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.a.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.a.onYtServiceRequestError=function(){var x;this.updateReminderStateEntitiesFromButtonState((x=this.data)==null?void 0:x.currentState)};
_.a.handleUpdateUpcomingEventReminderButtonStateCommand=function(x){if(x=_.Y(x,MVi)){var G,D=(G=this.data)==null?void 0:G.targetId;D&&x.targetId===D&&_.Xw(this.updateReminderStateEntitiesFromButtonState.bind(this,x.state))}};
_.a.getButtonStateFromReminderState=function(){var x;if(((x=this.seriesReminderStateEntity)==null?void 0:x.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var G;if(((G=this.eventReminderStateEntity)==null?void 0:G.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var D,K;if(((D=this.seriesReminderStateEntity)==null?void 0:D.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((K=this.eventReminderStateEntity)==
null?void 0:K.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var z;return(z=this.data)==null?void 0:z.currentState};
_.a.updateReminderStateEntitiesFromButtonState=function(x){if(x){switch(x){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":x="UPCOMING_EVENT_REMINDER_STATE_NONE";var G="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":x="UPCOMING_EVENT_REMINDER_STATE_SINGLE";G="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":x="UPCOMING_EVENT_REMINDER_STATE_NONE";G="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var D;
((D=this.eventReminderStateEntity)==null?0:D.key)&&this.ytdReduxBehavior.dispatch(_.cq("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:x})));var K;((K=this.seriesReminderStateEntity)==null?0:K.key)&&this.ytdReduxBehavior.dispatch(_.cq("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:G})))}};
_.Nq.Object.defineProperties(oH.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var x=this.getButtonStateFromReminderState(),G,D;if(x&&((G=this.data)==null?0:(D=G.states)==null?0:D.length))for(G=_.l(this.data.states),D=G.next();!D.done;D=G.next()){D=D.value;var K=void 0;if(((K=_.Y(D,Q8q))==null?void 0:K.state)===x)return _.Y(D,Q8q)}}}});
oH.prototype.onYtServiceRequestError=oH.prototype.onYtServiceRequestError;oH.prototype.onYtServiceRequestCompleted=oH.prototype.onYtServiceRequestCompleted;oH.prototype.onSeriesReminderStateEntityChange=oH.prototype.onSeriesReminderStateEntityChange;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],oH.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],oH.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],oH.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],oH.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],oH.prototype,"data",void 0);_.q([_.R({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:eOn}),_.N("design:type",Object)],oH.prototype,"eventReminderStateEntity",void 0);
_.q([_.R({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(x,G){return _.zm(x.entities,"sportsSeriesReminderStateEntity",G)}}),
_.N("design:type",Object)],oH.prototype,"seriesReminderStateEntity",void 0);_.q([_.U("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],oH.prototype,"currentButtonStateRenderer",null);_.q([_.yf("seriesReminderStateEntity"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oH.prototype,"onSeriesReminderStateEntityChange",null);
_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oH.prototype,"onYtServiceRequestCompleted",null);_.q([_.oe("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oH.prototype,"onYtServiceRequestError",null);oH=_.q([_.d({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],oH);
_.w(oH,"ytd-upcoming-event-reminder-button-renderer",function(){if(Bsu!==void 0)return Bsu;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);
return Bsu=x},{mode:1});var rVE;var yp=function(){return _.n.apply(this,arguments)||this};
_.m(yp,_.n);yp.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.Nq.Object.defineProperties(yp.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(_.B("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],yp.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],yp.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],yp.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],yp.prototype,"shelfDismissal",void 0);_.q([_.U("data.responseText"),_.N("design:type",Object),_.N("design:paramtypes",[])],yp.prototype,"text",null);
_.q([_.U("data.responseText"),_.N("design:type",Object),_.N("design:paramtypes",[])],yp.prototype,"textAriaLabel",null);yp=_.q([_.d({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],yp);
_.w(yp,"ytd-notification-multi-action-renderer",function(){if(rVE!==void 0)return rVE;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return rVE=x},{mode:1});var si9;var lu=function(){return _.n.apply(this,arguments)||this};
_.m(lu,_.n);lu.prototype.ready=function(){var x=this;_.kA(this.hostElement).querySelector("#undo").addEventListener("tap",function(){x.onUndoTap()})};
lu.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.Eo().resolve(_.hm).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],lu.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],lu.prototype,"data",void 0);lu=_.q([_.d({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],lu);
_.w(lu,"ytd-notification-text-renderer",function(){if(si9!==void 0)return si9;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return si9=x},{mode:1});var Yr9;var c2=function(){var x=_.n.apply(this,arguments)||this;x.mouseOverDelayJobId=0;x.fadeInImageDelayJobId=0;x.startTimeMs=-1;x.loadingStartTimeMs=-1;x.loadingEndTimeMs=-1;x.hasVideoPreview=!1;return x};
_.m(c2,_.n);_.a=c2.prototype;_.a.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.a.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.a.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.a.showThumbnail=function(){var x=this;this.csn=_.CC();_.CW("fmth");_.Fj.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.x7(_.Fj,function(){x.loadingStartTimeMs=(0,_.kK)();var G=_.kA(x.hostElement).querySelector("#thumbnail");G.complete?x.displayMouseOverImage():G.addEventListener("load",_.ae(x,x.displayMouseOverImage))},150):_.E4(_.kA(this.hostElement).querySelector("#play"),"show",!0)};
_.a.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.a.onTap=function(){this.removeVideoPreview()};
_.a.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var x=this.videoId,G=this.csn,D=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,K=this.startTimeMs,z=this.hasVideoPreview,y=_.V2(this.trackingParams),c={isMovingThumbnail:z};z&&K>0&&(D>0&&(c.movingThumbnailLoadingDurationMs=Math.round(D)),c.durationHoveredMs=Math.round((0,_.kK)()-K));x&&(c.videoId=x);_.dB(G,y,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:c});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.a.removeVideoPreview=function(){_.Fj.cancelJob(this.mouseOverDelayJobId);_.Fj.cancelJob(this.fadeInImageDelayJobId);var x=_.kA(this.hostElement).querySelector("#thumbnail");_.E4(x,"fade-in",!1);x.removeEventListener("load",_.ae(this,this.displayMouseOverImage));x=_.kA(this.hostElement).querySelector("#play");_.E4(x,"fade-in",!1);_.E4(x,"show",!1)};
_.a.displayMouseOverImage=function(){var x=_.kA(this.hostElement).querySelector("#thumbnail"),G=_.kA(this.hostElement).querySelector("#play");this.isImageAvailable(x)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.kK)(),this.startTimeMs=(0,_.kK)(),this.fadeInImageDelayJobId=_.x7(_.Fj,function(){_.E4(x,"fade-in",!0)},50)):_.E4(G,"fade-in",!0)};
_.a.computeThumbnail=function(x,G){var D;x&&x.movingThumbnailDetails&&x.movingThumbnailDetails.thumbnails&&G?D=_.k$(x.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):D=G?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(D)return _.V$(D)};
_.a.isImageAvailable=function(x){return!(!x.src||x.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||x.naturalWidth===120)};
c2.prototype.onTap=c2.prototype.onTap;c2.prototype.dataChanged=c2.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],c2.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],c2.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],c2.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],c2.prototype,"csn",void 0);_.q([_.R(),_.N("design:type",Object)],c2.prototype,"trackingParams",void 0);
_.q([_.R(),_.N("design:type",String)],c2.prototype,"videoId",void 0);_.q([_.R(),_.N("design:type",Boolean)],c2.prototype,"isAttachedAndDataSet",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],c2.prototype,"dataChanged",null);_.q([_.oe("click"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],c2.prototype,"onTap",null);c2=_.q([_.d({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],c2);
_.w(c2,"ytd-moving-thumbnail-renderer",function(){if(Yr9!==void 0)return Yr9;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Yr9=x},{mode:1});var mju;_.op=function(x){this.hostElement=x;this.eventSink=null;this.eventList=[]};
_.op.prototype.shouldForward=function(){var x,G;return(G=(x=this.eventSink)==null?void 0:x.isConnected)!=null?G:document.body.contains(this.eventSink)};
_.op.prototype.start=function(x,G){this.eventSink&&this.stop();for(var D=0;D<x.length;D++)this.hostElement.addEventListener(x[D],_.ae(this,this.forwardEvent));var K;this.eventSink=(K=G.hostElement)!=null?K:G;this.eventList=x};
_.op.prototype.stop=function(){for(var x=0;x<this.eventList.length;x++)this.hostElement.removeEventListener(this.eventList[x],_.ae(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.op.prototype.forwardEvent=function(x,G){this.shouldForward()&&(x.stopPropagation(),this.eventSink instanceof Element?_.h$(this.eventSink,x.type,G):_.O9(new _.LL("eventSink is not an element")))};_.Tg={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.op(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(x,G){this.forwarder_.start(x,G)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var W2=function(){return _.n.apply(this,arguments)||this};
_.m(W2,_.n);_.a=W2.prototype;_.a.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=_.Am("HTML_DIR")==="rtl"?"right":"left"};
_.a.dataChanged=function(){this.popupOpen=!1};
_.a.computeAriaLabel=function(x){return _.Y(x,Ik8).label};
_.a.onTap=function(x){x.stopPropagation();x.preventDefault();this.data.command&&_.Eo().resolve(_.hm).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.a.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.a.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
W2.prototype.onPopupClosed=W2.prototype.onPopupClosed;W2.prototype.onPopupOpened=W2.prototype.onPopupOpened;W2.prototype.onTap=W2.prototype.onTap;W2.prototype.dataChanged=W2.prototype.dataChanged;_.q([_.I(_.Tg.YtEventForwardingBehavior),_.N("design:type",Object)],W2.prototype,"eventForwardingBehavior",void 0);_.q([_.I(_.sd),_.N("design:type",Object)],W2.prototype,"ironButtonState",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],W2.prototype,"componentBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],W2.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,value:-1}),_.N("design:type",Number)],W2.prototype,"tabindex",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.N("design:type",Object)],W2.prototype,"ariaLabel",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],W2.prototype,"disableTooltips",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],W2.prototype,"popupOpen",void 0);
_.q([_.R(),_.N("design:type",Element)],W2.prototype,"eventSink",void 0);_.q([_.cD("#tooltip"),_.N("design:type",Object)],W2.prototype,"tooltip",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],W2.prototype,"dataChanged",null);_.q([_.oe("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],W2.prototype,"onTap",null);
_.q([_.oe("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],W2.prototype,"onPopupOpened",null);_.q([_.oe("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],W2.prototype,"onPopupClosed",null);W2=_.q([_.d({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],W2);
_.w(W2,"ytd-thumbnail-overlay-button-renderer",function(){if(mju!==void 0)return mju;var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" on-click="onTap" class="style-scope ytd-thumbnail-overlay-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-button-renderer">\n  [[data.tooltip]]\n</tp-yt-paper-tooltip>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return mju=x},{mode:1});var HO9;var eG=function(){return _.n.apply(this,arguments)||this};
_.m(eG,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],eG.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],eG.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],eG.prototype,"disableAnimation",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],eG.prototype,"rounded",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],eG.prototype,"transparentBackground",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],eG.prototype,"noPadding",void 0);eG=_.q([_.d({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],eG);
_.w(eG,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(HO9!==void 0)return HO9;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return HO9=x},{mode:1});var $js;var ZI=function(){return _.n.apply(this,arguments)||this};
_.m(ZI,_.n);ZI.prototype.computeIconPosition=function(x){return this.get("iconPosition",x)||null};
ZI.prototype.computeIconStyle=function(x){return this.get("iconStyle",x)||null};
ZI.prototype.computeIsIconStyleFilled=function(x){if(!x)return!1;var G;return x.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((G=x.icon)==null?void 0:G.iconType)==="ERROR_BLACK"};
_.q([_.R(),_.N("design:type",Object)],ZI.prototype,"data",void 0);_.q([_.R({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.N("design:type",Object)],ZI.prototype,"iconPosition",void 0);_.q([_.R({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.N("design:type",Object)],ZI.prototype,"iconStyle",void 0);_.q([_.R({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],ZI.prototype,"iconStyleFilled",void 0);
ZI=_.q([_.d({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],ZI);
_.w(ZI,"ytd-thumbnail-overlay-icon-renderer",function(){if($js!==void 0)return $js;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return $js=x},{mode:1});var FD7;var Mg=function(){return _.n.apply(this,arguments)||this};
_.m(Mg,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Mg.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Mg.prototype,"data",void 0);Mg=_.q([_.d({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],Mg);
_.w(Mg,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(FD7!==void 0)return FD7;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return FD7=x},{mode:1});var CL0;var Qp=function(){var x=_.n.apply(this,arguments)||this;x.isPreviewLoading=!1;return x};
_.m(Qp,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Qp.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Qp.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Qp.prototype,"isPreviewLoading",void 0);Qp=_.q([_.d({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],Qp);
_.w(Qp,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(CL0!==void 0)return CL0;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return CL0=x},{mode:1});var I0Z;var pj=function(){return _.n.apply(this,arguments)||this};
_.m(pj,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],pj.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],pj.prototype,"data",void 0);pj=_.q([_.d({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],pj);
_.w(pj,"ytd-thumbnail-overlay-pinking-renderer",function(){if(I0Z!==void 0)return I0Z;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return I0Z=x},{mode:1});var jiZ;var Vp=function(){var x=_.n.apply(this,arguments)||this;x.disableTooltips=!1;x.isLoading=!1;x.useExpandableTooltip=!1;x.toggled=!1;x.hovered=!1;x.mouseoverDelayJobId=0;x.toggleDelayJobId=0;x.expandAnimationDelayJobId=0;return x};
_.m(Vp,_.n);_.a=Vp.prototype;_.a.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");_.kA(this.hostElement).querySelector("#tooltip").position=_.Am("HTML_DIR")==="rtl"?"right":"left"};
_.a.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.Fj.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.Fj.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.Fj.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.a.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.Fj.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.Fj.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.Fj.cancelJob(this.expandAnimationDelayJobId)};
_.a.computeIcon=function(x,G,D){return(x=D?G:x)&&x.iconType?_.aP(x.iconType):void 0};
_.a.computeAriaLabel=function(x,G,D){return _.Y(D?G:x,Ik8).label};
_.a.computeTooltip=function(x,G,D){return D?G:x};
_.a.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.a.computeIconOnHover=function(x,G){if((x==null?0:x.iconType)&&!G)return _.aP(x.iconType)};
_.a.onTap=function(x){var G=this;x.stopPropagation();x.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(x=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(x),this.useExpandableTooltip&&(this.toggleDelayJobId=_.x7(_.Fj,function(){G.hovered=!1;G.data&&!G.data.toggledServiceEndpoint&&(G.expandAnimationDelayJobId=_.x7(_.Fj,function(){G.set("data.isToggled",
!1)},200))},2E3))};
_.a.onMouseenter=function(){var x=this;this.mouseoverDelayJobId=_.x7(_.Fj,function(){x.hovered=!0},300)};
_.a.onMouseleave=function(){_.Fj.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.a.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.a.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.a.onServiceRequestCompleted=function(x,G){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(G)||this.set("data.isToggled",!this.data.isToggled)};
_.a.serviceRequestWasSuccessful=function(x){return _.Y(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.YV)?x.data.status==="STATUS_SUCCEEDED":!0};
Vp.prototype.onServiceRequestCompleted=Vp.prototype.onServiceRequestCompleted;Vp.prototype.onPopupClosed=Vp.prototype.onPopupClosed;Vp.prototype.onPopupOpened=Vp.prototype.onPopupOpened;Vp.prototype.onMouseleave=Vp.prototype.onMouseleave;Vp.prototype.dataChanged=Vp.prototype.dataChanged;_.q([_.I(_.sd),_.N("design:type",Object)],Vp.prototype,"ironButtonState",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Vp.prototype,"ytComponentBehavior",void 0);
_.q([_.I(_.Tg.YtEventForwardingBehavior),_.N("design:type",Object)],Vp.prototype,"ytEventForwardingBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Vp.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.N("design:type",Object)],Vp.prototype,"ariaLabel",void 0);_.q([_.R(),_.N("design:type",Object)],Vp.prototype,"disableTooltips",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],Vp.prototype,"popupOpen",void 0);_.q([_.R(),_.N("design:type",Object)],Vp.prototype,"isLoading",void 0);_.q([_.R(),_.N("design:type",Element)],Vp.prototype,"eventSink",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Vp.prototype,"useExpandableTooltip",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.N("design:type",Object)],Vp.prototype,"toggled",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Vp.prototype,"hovered",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.N("design:type",Object)],Vp.prototype,"iconOnHover",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vp.prototype,"dataChanged",null);
_.q([_.oe("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vp.prototype,"onMouseleave",null);_.q([_.oe("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vp.prototype,"onPopupOpened",null);_.q([_.oe("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vp.prototype,"onPopupClosed",null);
_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.gG]),_.N("design:returntype")],Vp.prototype,"onServiceRequestCompleted",null);Vp=_.q([_.d({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],Vp);
_.w(Vp,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(jiZ!==void 0)return jiZ;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return jiZ=x},{mode:_.Ge("kevlar_poly_si_batch_j053")?1:2});var OOu;var Xns=_.Nv(function(x){var G=x.data;var D=function(){return G().enableSegmentView};
return _.M("yt-thumbnail-overlay-progress-bar-view-model",{class:"ytThumbnailOverlayProgressBarHost"},_.M(_.b,{cond:D,then:function(){return _.M("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.M("div",{class:_.cH("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+G().startPercent+"%"}}),_.M("div",{class:_.cH("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+G().segmentDurationPercent+"%"}},_.M("div",{class:_.cH("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.M("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.M("div",null," ",function(){return G().segmentLabel})),_.M("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.M("div",{class:_.cH("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.M(_.b,{cond:function(){return!D()&&G().startPercent},
then:function(){var K={};return _.M("div",{class:_.cH("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(K.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.B("web_enable_modern_progress_bar_overlay"),K))},_.M("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+G().startPercent+"%"}}))}}))},"Q");
Xns.idomCompat=!0;var AV7=_.Nv(function(x){var G=_.Dw(),D=_.F8(function(z){var y,c,W;a:{var e=(y=x.data())==null?void 0:y.animationActivationTargetId;y=((c=x.data())==null?void 0:c.animationActivationEntityKey)||"";c=(W=x.data())==null?void 0:W.animationActivationEntitySelectorType;if(y&&e)switch(c){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":z=_.zm(z.entities,"playerStateEntity",y);W=_.Eo().resolve(_.P6(_.O$));e=!!(z&&z.videoId===e&&(W==null?0:W.isMiniplayerActive()));e={activated:e,playAnimation:e&&
z.playerState==="PLAYER_STATE_PLAYING"};break a}e=void 0}return e});
_.$9(function(){var z;if((z=D())==null?0:z.activated){var y;if((y=D())==null?0:y.playAnimation){var c;(c=G.lottieEl)==null||c.goToAndPlay(0)}else{var W;(W=G.lottieEl)==null||W.goToAndStop(0)}}});
var K=function(){var z,y=!((z=D())==null||!z.activated);if(x.data()){z=x.data();var c=void 0;z.icon&&(c=_.DoC(z.icon),c=cfV(c));var W=void 0,e;if((e=z.backgroundColor)==null?0:e.lightTheme){var Q;W={backgroundColor:O4((Q=z.backgroundColor)==null?void 0:Q.lightTheme,"0.8")}}if(z.text||c||y){if(y&&z.lottieData&&G){Q=z.lottieData;var p,V,L;e={animationConfig:{name:Q.url,path:Q.url,autoplay:(p=Q.settings)==null?void 0:p.autoplay,loop:(L=(V=Q.settings)==null?void 0:V.loop)!=null?L:!0},animationRef:G}}else e=
void 0;if(y)p=16;else b:switch(z.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":p=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":p=18;break b;default:p=16}y={type:p,text:y&&z.animatedText?z.animatedText:z.text,icon:c,customColors:W,animation:e}}else y=void 0}else y=void 0;return y};
return _.M("yt-thumbnail-badge-view-model",{class:_.ym("yt-thumbnail-badge-view-model-wiz",x.class)},_.M(_.b,{cond:K,then:function(){return _.M(_.qF,{data:function(){return K()}})}}))},"R");var UjE=_.Nv(function(x){var G={};return _.M("yt-thumbnail-bottom-overlay-view-model",{class:_.ym("ytThumbnailBottomOverlayViewModelHost",(G.ytThumbnailBottomOverlayViewModelHostBackground=function(){return x.data().enableGradientBackground},G))},_.M("div",{class:"ytThumbnailBottomOverlayViewModelHostContainer"},_.M(_.bA,{data:function(){return x.data().progressBar}},{thumbnailOverlayProgressBarViewModel:Xns}),_.M(_.bA,{data:function(){return x.data().badge}},{thumbnailBadgeViewModel:function(D){return _.M(AV7,
{data:D.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}}),_.M(_.bA,{data:function(){return x.data().badges}},{thumbnailBadgeViewModel:function(D){return _.M(AV7,{data:D.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}})))},"S");
UjE.idomCompat=!0;_.tn(UjE,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.fz}});var EZ3={calledOnce:!1,state:"visible"},hvn={calledOnce:!1,state:"hidden"};var bu=_.Nv(function(x){var G=x.data;var D=x.className;x=x.alwaysShow;var K=_.qi();_.iA(K,function(){return G().rendererContext});
var z=_.qGf(),y={};return _.M("thumbnail-hover-overlay-view-model",{el:K,class:_.ym("ytThumbnailHoverOverlayViewModelHost",D,(y.ytThumbnailHoverOverlayViewModelHostForceHover=x,y)),"aria-label":function(){var c;return(c=_.Y(G().rendererContext,_.Wo))==null?void 0:c.label},
role:function(){return _.SU(G().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.SU(G().rendererContext)!==void 0?0:void 0},
"on:keypress":z},_.M("div",{class:_.ym("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(G().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var c="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:c="ytThumbnailHoverOverlayViewModelStyleCover"}return c})},_.M(_.b,{cond:function(){return G().icon},
then:function(c){return _.M(_.wk,{data:c,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.M(_.b,{cond:function(){return G().text},
then:function(c){return _.M(_.vq,{text:c,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"T");
bu.idomCompat=!0;var RX9=_.Nv(function(x){var G=x.data;return _.M(_.bA,{data:function(){return G==null?void 0:G().overlays}},{thumbnailHoverOverlayViewModel:bu})},"U");
RX9.idomCompat=!0;var Srh={};var n4u=_.Nv(function(x){var G=x.data;var D=x.image;var K=x.state;var z=x.iconType;var y=x.overlays;var c=x.isOverlay;var W=_.Ni();x=_.l(_.eO(!0,void 0,"sUzEZ"));var e=x.next().value,Q=x.next().value,p=function(){return!!G().onTap},V=_.wc(z,"LIVE");
_.$9(function(){var r=G();requestAnimationFrame(function(){if(W.value===null)var H=!0;else{var O=W.value;H=r.badgeText;var A=Ded(r.size);H in Srh?O=Srh[H]:(O=O.clientWidth,Srh[H]=O);(H=O>A)?W.value.style.display="none":W.value.style.visibility="visible"}Q(H)})});
var L=function(){var r={};return r["yt-spec-avatar-shape__image"]=!0,r["yt-spec-avatar-shape__image--ads-app"]=G().type===1,r};
return _.M("yt-avatar-shape",null,_.M("div",{el:_.NJ(z7f(p,{keydown:function(r){if(r.key==="Enter"){var H;(H=r.currentTarget)==null||H.click()}},
click:function(r){var H,O;return void((O=(H=G()).onTap)==null?void 0:O.call(H,r))}})),
class:function(){var r={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},H=G();r=(r[H.clusterLayoutConfig?yAf(H.clusterLayoutConfig):l5f(H.size)]=!0,r["yt-spec-avatar-shape__button--tappable"]=p(),r);(H=G().avatarButtonCustomClassName)&&(r[H]=!0);return _.cH(r)},
"aria-label":function(){return p()?G().accessibilityText:""},
role:function(){return p()?"button":void 0},
tabindex:function(){return p()?0:void 0}},_.M("div",{class:function(){var r,H=G(),O=K==null?void 0:K(),A=c==null?void 0:c(),g=!((r=H.decorations)==null||!r.includes(2)||H.size!=="medium"&&H.size!=="large"),u=H.size==="tiny"||H.size==="extra-small",f,v,P,k,cL={};
r=(cL["yt-spec-avatar-shape--live-ring"]=!!(((f=H.decorations)==null?0:f.includes(0))&&TNV(H.size)),cL["yt-spec-avatar-shape--stories-watched"]=g&&!(O==null||!O.storiesWatched),cL["yt-spec-avatar-shape--stories-unwatched"]=g&&!(O==null?0:O.storiesWatched),cL["yt-spec-avatar-shape--background-border"]=Wrh(H.decorations)&&!u,cL["yt-spec-avatar-shape--background-border-thin"]=Wrh(H.decorations)&&u,cL["yt-spec-avatar-shape__on-select-border"]=!((v=H.decorations)==null||!v.includes(4)),cL["yt-spec-avatar-shape__white-border"]=
!((P=H.decorations)==null||!P.includes(5)),cL["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((k=H.decorations)==null?0:k.includes(5))&&u),cL["yt-spec-avatar-shape--is-overlay"]=!!A,cL);return _.cH(r)},
style:function(){a:{var r=G().clusterLayoutConfig;if(r){b:{var H=r.numAvatarsInCluster;var O=r.avatarIndex;if(O!==H-1){switch(r.clusterSize){case "small":r="32";break;case "medium":r="36";break;case "40":r="40";break;default:H=void 0;break b}H="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+r+"x"+r+"_avatars_"+H+"_index_"+O+".svg"}else H=void 0}if(H){H=_.Ms({"-webkit-mask-image":"url("+H+")","mask-image":"url("+H+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}H=void 0}return H}},_.M("div",{class:function(){var r={};
var H=G();r=(r[H.clusterLayoutConfig?a5n(H.clusterLayoutConfig):oU3(H.size)]=!0,r["yt-spec-avatar-shape--no-margin"]=Wrh(G().decorations),r);return _.cH(r)}},_.M(_.wk,{data:D,
alt:function(){return!p()&&G().accessibilityText?G().accessibilityText:""},
targetWidth:function(){return cAf(G().size)},
targetHeight:function(){return cAf(G().size)},
className:function(){return _.cH(L())}}),_.M(_.b,{cond:function(){var r;
return((r=G().decorations)==null?void 0:r.includes(0))&&TNV(G().size)},
then:function(){return _.M("div",{class:function(){var r={};r=(r["yt-spec-avatar-shape__live-badge"]=!0,r["yt-spec-avatar-shape__live-badge--badge-small"]=G().size==="small",r["yt-spec-avatar-shape__live-badge--badge-medium"]=G().size==="medium"||G().size==="48",r["yt-spec-avatar-shape__live-badge--badge-large"]=G().size==="large",r["yt-spec-avatar-shape__live-badge--badge-extra-large"]=G().size==="extra-large"||G().size==="extra-extra-large"||G().size==="giant",r);return _.cH(r)}},_.M(_.b,{cond:function(){return G().badgeText},
then:function(r){return _.M("div",{class:"yt-spec-avatar-shape__badge-text",el:W},r)}}),_.M(_.b,{cond:e,
then:function(){return _.M("div",{class:"yt-spec-avatar-shape__badge-icon"},_.M(_.Qm,{icon:V,size:function(){a:switch(G().size){case "extra-large":var r=16;break a;default:r=13}return r}}))}}))}}),_.M(_.b,{cond:function(){var r,H;
return((r=G().decorations)==null?void 0:r.includes(1))||((H=G().decorations)==null?void 0:H.includes(0))&&!TNV(G().size)},
then:function(){return _.M("div",{class:function(){var r=G(),H,O,A={};var g=(A["yt-spec-avatar-shape__live-dot"]=!((H=r.decorations)==null||!H.includes(0)||TNV(r.size)),A["yt-spec-avatar-shape__new-content"]=!((O=r.decorations)==null||!O.includes(1)),A);return _.cH(g)}})}}),_.M(_.b,{cond:function(){return!!y},
then:function(){return _.M("div",{class:function(){var r={};r=Object.assign((r["yt-spec-avatar-shape__image-overlays"]=!0,r),L());return _.cH(r)}},y==null?void 0:y())}})))))},"V");
n4u.idomCompat={callbacks:{overlays:!0}};_.Lj=_.Nv(function(x){function G(){D().endpoint&&_.UI(D().endpoint)}
var D=x.data;var K=x.decorations;var z=x.avatarButtonCustomClassName;var y=x.isOverlay;var c=x.clusterLayoutConfig;return _.M("avatar-view-model",null,_.M(_.b,{cond:function(){return D().image},
then:function(W){return _.M(n4u,{data:function(){return Zkd({data:D(),onTap:D().endpoint?G:void 0,decorations:K==null?void 0:K(),badgeText:void 0,accessibilityText:D().accessibilityText,avatarButtonCustomClassName:z==null?void 0:z(),clusterLayoutConfig:c==null?void 0:c()})},
image:W,iconType:"RADAR_LIVE",overlays:function(){return _.M(RX9,{data:D})},
isOverlay:y})}}))},"W");
_.Lj.idomCompat=!0;_.B2=_.Nv(function(x){var G=x.data;x=x.className;var D=_.Ni(),K=function(){return _.Y(G().avatar,_.gl)},z=_.V9(function(){var y,c=G(),W=K(),e=_.SU(G().rendererContext),Q=(y=D.value)!=null?y:void 0,p;
if(W){Q={data:c,avatar:W,onTap:e,element:Q};y=Q.data;c=Q.avatar;W=Q.onTap;e=Q.element;Q=Q.commandController;W=W?VAE(W,e,Q):void 0;e=[];y.liveData&&e.push(0);var V;Q=(V=y.liveData)==null?void 0:V.liveBadgeText;V=(p=_.Y(y.rendererContext,_.Wo))==null?void 0:p.label;p=Zkd({data:c,onTap:W,decorations:e,badgeText:Q,accessibilityText:V?V:y.a11yLabel})}else p={size:"medium"};return p},void 0,"H8tk9d");
return _.M("yt-decorated-avatar-view-model",{class:_.ym("yt-decorated-avatar-view-model-wiz",x),el:D},_.M(_.b,{cond:function(){var y;return(y=K())==null?void 0:y.image},
then:function(y){return _.M(n4u,{data:z,image:y,iconType:"RADAR_LIVE",overlays:function(){return _.M(RX9,{data:K})}})}}))},"X");
_.B2.idomCompat=!0;_.rR=_.Nv(function(x){var G=function(){var e;return Object.assign({},x.data(),(e=x.overrides)==null?void 0:e.call(x))},D=_.qi(),K=function(){return D&&_.ns(G().rendererContext)};
_.iA(D,function(){return G().rendererContext});
var z=function(){var e=G().avatars,Q,p;return(p=(Q=(e==null?0:e[0])?_.Y(e[0],_.gl):void 0)==null?void 0:Q.avatarImageSize)!=null?p:"AVATAR_SIZE_UNKNOWN"},y=function(){return pQ3(G())},c=function(){if(G().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var e=void 0;
else if((e=x.decorations)==null?0:e.call(x))e=x.decorations();else{e=G();var Q=0;e.avatars&&(Q+=e.avatars.length);e.decoratedText&&(Q+=1);e=Q>1?[3]:[]}return e},W={};
return _.M("yt-avatar-stack-view-model",{el:D,class:_.ym("yt-avatar-stack-view-model-wiz",x.className,(W["yt-avatar-stack-view-model-wiz--tappable"]=K,W["yt-avatar-stack-view-model-wiz--is-overlay"]=x.isOverlay,W["yt-avatar-stack-view-model-wiz--medium-text"]=x.useMediumText,W)),tabindex:function(){return K()?0:void 0},
role:function(){return K()?"link":void 0},
"aria-label":function(){var e,Q;return(Q=(e=_.Y(G().rendererContext,_.Wo))==null?void 0:e.label)!=null?Q:""}},_.M(_.b,{cond:function(){var e;
return G().avatars&&!((e=x.hideAvatar)==null?0:e.call(x))},
then:function(){return _.M("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.M(_.b,{cond:function(){return G().decoratedText},
then:function(e){var Q={};return _.M("div",{class:_.ym("yt-avatar-stack-view-model-wiz__text-container",(Q["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return z()==="AVATAR_SIZE_XXS"||z()==="AVATAR_SIZE_XS"},Q["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var p;
return((p=x.isOverlay)==null?void 0:p.call(x))&&(z()==="AVATAR_SIZE_XXS"||z()==="AVATAR_SIZE_XS")},Q)),
style:_.Ms({width:function(){return y().avatarSizeInPx+"px"},
height:function(){return y().avatarSizeInPx+"px"}})},_.M(_.vq,{text:e,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.M("div",{style:function(){return _.Ms(y().avatarStackStyle)()},
class:function(){return y().avatarStackClass}},_.M(_.bA,{data:function(){return y().avatars.reverse()}},{avatarViewModel:function(e,Q){return _.M("div",{style:function(){var p,V;
return _.Ms((V=(p=y()).avatarStyle)==null?void 0:V.call(p,Q()))()},
class:function(){return y().avatarClass}},_.M(_.Lj,{data:e.data,
decorations:c,avatarButtonCustomClassName:function(){return y().avatarButtonCustomClassName},
isOverlay:x.isOverlay,clusterLayoutConfig:function(){var p,V;return(V=(p=y()).clusterLayoutConfig)==null?void 0:V.call(p,Q())}}))},
decoratedAvatarViewModel:function(e,Q){return _.M("div",{style:function(){var p,V;return _.Ms((V=(p=y()).avatarStyle)==null?void 0:V.call(p,Q()))()},
class:function(){return y().avatarClass}},_.M(_.B2,{data:e.data}))}})))}}),_.M(_.b,{cond:function(){return G().text},
then:function(e){return _.M(_.vq,{text:e,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"Y");
_.rR.idomCompat=!0;_.tn(_.Nv(function(x){var G=x.data;var D=x.thumbnailSize;return _.M("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.M("div",{class:_.ym("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return bkQ(D==null?void 0:D())})},_.M(_.bA,{data:function(){return G().avatarStack}},{avatarStackViewModel:function(K){return _.M(_.rR,{data:K.data,
decorations:[5]})}})))},"Z"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.ik,
thumbnailSize:_.ik}});var iOo=_.Nv(function(x){x=_.qv(x,{hidden:!1});var G=x.data;return _.M("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:x.hidden},_.M(_.vq,{text:function(){return G().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.M(_.b,{cond:function(){return G().subtitle},
then:function(){return _.M(_.vq,{text:function(){return G().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"$");
iOo.idomCompat=!0;_.tn(iOo,"yt-thumbnail-overlay-title-view-model",{props:{data:_.ik,hidden:_.ik}});var g4J=_.Nv(function(x){x=_.qv(x,{isClip:!1});var G=x.data,D=x.thumbnailSize,K={};return _.M("yt-thumbnail-overlay-badge-view-model",{class:_.ym("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(G().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var z="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:z="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return z},function(){return Lrf(D==null?void 0:D())},(K["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
x.isClip,K))},_.M(_.bA,{data:function(){return G().thumbnailBadges}},{thumbnailBadgeViewModel:function(z){return _.M(AV7,{data:z.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"aa");
g4J.idomCompat=!0;_.tn(g4J,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.ik,thumbnailSize:_.ik,isClip:_.ik}});_.E9(BNd);_.KH(BNd,"yt-page-indicator-view-model",{propNames:["data"]});var sb=function(){var x=_.n.apply(this,arguments)||this;x.eventSink=function(){return x};
x.disableInteraction=!1;x.noRoundedCorners=!1;x.isPreviewLoading=!1;x.isOriginalAspectRatio=!1;x.computedObjectFit=!1;x.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return x};
_.m(sb,_.n);_.a=sb.prototype;
_.a.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:_.B("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"}}};
_.a.onImageLoaded=function(){this.loaded=!0};
_.a.onImageUnloaded=function(){this.loaded=!1};
_.a.computeRichThumbnail=function(x,G,D,K){if(x&&G&&!K&&!_.B("disable_moving_thumbs_handling")&&!D)return G};
_.a.computeImageWidth=function(x,G){return G||9999};
_.a.computeIsOriginalAspectRatio=function(x){return x};
_.a.computeIsLive=function(x){if(x==null?0:x.badges)for(var G=0;G<x.badges.length;G++){var D=x.badges[G];if(D.metadataBadgeRenderer&&D.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(x==null?0:x.thumbnailOverlays)for(G=0;G<x.thumbnailOverlays.length;G++)if(D=x.thumbnailOverlays[G],D.thumbnailOverlayTimeStatusRenderer&&D.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.a.computeObjectFit=function(x,G){return G||(x?"CONTAIN":"")};
_.a.computeNavigationEndpoint=function(x,G,D){return x?G:D};
_.a.computeHasClip=function(x){x=_.l(x||[]);for(var G=x.next();!G.done;G=x.next())if(G.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.a.computeOverlayColor=function(x){var G;return(x==null?0:(G=x.darkColorPalette)==null?0:G.section2Color)?x.darkColorPalette.section2Color:x==null?void 0:x.sampledThumbnailColor};
_.Nq.Object.defineProperties(sb.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return BD3(this.width)}}});
sb.prototype.onImageUnloaded=sb.prototype.onImageUnloaded;sb.prototype.onImageLoaded=sb.prototype.onImageLoaded;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],sb.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],sb.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(Bou),_.N("design:type",Object)],sb.prototype,"ytdThumbnailBehavior",void 0);
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],sb.prototype,"componentBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],sb.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],sb.prototype,"data",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],sb.prototype,"circular",void 0);
_.q([_.R({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.N("design:type",Object)],sb.prototype,"richThumbnail",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.N("design:type",Boolean)],sb.prototype,"hasClip",void 0);_.q([_.R(),_.N("design:type",Object)],sb.prototype,"eventSink",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],sb.prototype,"queued",void 0);
_.q([_.R({value:!1}),_.N("design:type",Boolean)],sb.prototype,"richGridThumbnail",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],sb.prototype,"useExpandableTooltip",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],sb.prototype,"useUntranslatedNavigationEndpoint",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],sb.prototype,"disableInteraction",void 0);
_.q([_.R({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.N("design:type",Object)],sb.prototype,"computedNavigationEndpoint",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],sb.prototype,"nowPlayingEqualizerOnly",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],sb.prototype,"hidePlaybackStatus",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],sb.prototype,"objectFit",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],sb.prototype,"noRoundedCorners",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],sb.prototype,"watchFeedThumbnail",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],sb.prototype,"isPreviewLoading",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.N("design:type",Object)],sb.prototype,"isOriginalAspectRatio",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.N("design:type",Object)],sb.prototype,"computedObjectFit",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.N("design:type",Boolean)],sb.prototype,"isLiveVideo",void 0);
_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],sb.prototype,"loaded",void 0);_.q([_.R({computed:"computeOverlayColor(data.thumbnail)"}),_.N("design:type",Object)],sb.prototype,"overlayColor",void 0);_.q([_.R({selector:_.liL}),_.N("design:type",Boolean)],sb.prototype,"inlinePreviewIsEnabled",void 0);_.q([_.R(),_.N("design:type",Number)],sb.prototype,"width",void 0);
_.q([_.U("inlinePreviewIsEnabled"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],sb.prototype,"isPreviewDisabled",null);_.q([_.U("width"),_.N("design:type",String),_.N("design:paramtypes",[])],sb.prototype,"thumbnailSize",null);_.q([_.oe("image-loaded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sb.prototype,"onImageLoaded",null);
_.q([_.oe("image-unloaded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sb.prototype,"onImageUnloaded",null);sb=_.q([_.d({disableElementRegistration:!0,is:"ytd-thumbnail"})],sb);
var uG7=_.x$()(sb,"ytd-thumbnail",function(){if(OOu===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);OOu=x}x=OOu;return x},{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 mef=function(x){var G=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12808_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12808_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(D){dj9(G,D)};
this.onLockupMouseLeaveFn=function(D){D=D.relatedTarget;var K,z;((K=document.getElementsByTagName("ytd-video-preview"))==null?0:(z=K.item(0))==null?0:z.contains(D))||(G.terminateVideoPreview(),Yc(G))};
this.onThumbnailMouseDownFn=function(){G.terminateVideoPreview();Yc(G)};
this.onTouchStart=function(){G.JSC$12808_touched=!0};
this.mediaRenderer=x.mediaRenderer;this.thumbnailElement=x.thumbnailElement;this.lockupElement=x.lockupElement;this.videoPreviewOptsInput=x.videoPreviewOpts;wn8(this);mZ(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)):
_.O9(Error("yh")):_.O9(Error("zh")):qrE(this)},EH=function(x){qrE(x);
var G;(G=x.lockupElement)==null||G.removeEventListener("mouseenter",x.onMouseMoveFn);var D;(D=x.lockupElement)==null||D.removeEventListener("mouseleave",x.onLockupMouseLeaveFn);var K;(K=x.lockupElement)==null||K.removeEventListener("touchstart",x.onTouchStart);var z;(z=x.thumbnailElement)==null||z.removeEventListener("mousedown",x.onThumbnailMouseDownFn);Yc(x)},wn8=function(x){x.inlinePreviewIsEnabledForUser=_.wK().getState().ui.inlinePreviewIsEnabled;
x.unsubscribeFromInlinePreviewIsEnabled=_.la(_.wK(),_.liL,function(G){(x.inlinePreviewIsEnabledForUser=G)||Yc(x)});
x.JSC$12808_unsubscribeFromInlinePreviewIsActive=_.la(_.wK(),_.yzd,function(G){(x.inlinePreviewIsActive=G)||Yc(x)})},qrE=function(x){x.unsubscribeFromInlinePreviewIsEnabled();
x.unsubscribeFromInlinePreviewIsEnabled=function(){};
x.JSC$12808_unsubscribeFromInlinePreviewIsActive();x.JSC$12808_unsubscribeFromInlinePreviewIsActive=function(){}},dj9=function(x,G){G.buttons>0||(G=_.Gz("kevlar_lockup_hover_delay",-1),x.JSC$12808_touched&&G>=0?(_.Fj.cancelJob(x.videoPreviewJobId),x.videoPreviewJobId=_.x7(_.Fj,function(){Ns7(x)},G),x.JSC$12808_touched=!1):Ns7(x))},v4q=function(x){x.videoPreviewJobId=_.x7(_.Fj,function(){var G,D,K,z;
return _.T(function(y){if(y.nextAddress==1){if(!mZ(x))return y.return();G=x.getVideoPreviewOpts();if(!G)return y.return();G.isAutoplay=!0;return(K=(D=_.Gl(x.mediaRenderer.hostElement,"yt-open-video-preview-action",[G]))&&D[0])?_.Z(y,D[0],3):y.jumpTo(2)}y.nextAddress!=2&&(K=y.yieldResult===1);K&&skD((z=x.mediaRenderer)==null?void 0:z.data);_.c5(y)})})},Ns7=function(x){!x.previewTriggered&&mZ(x)&&(x.inlinePreviewIsActive&&x.terminateVideoPreview(),x.previewTriggered=!0,x.mediaRenderer.isInlinePreviewTriggered=
!0,_.Fj.cancelJob(x.videoPreviewJobId),x.videoPreviewJobId=_.x7(_.Fj,function(){var G,D,K,z;
return _.T(function(y){if(y.nextAddress==1){if(!mZ(x))return y.return();G=x.getVideoPreviewOpts();return G?(K=(D=_.Gl(x.mediaRenderer.hostElement,"yt-open-video-preview-action",[G]))&&D[0])?_.Z(y,D[0],3):y.jumpTo(2):y.return()}y.nextAddress!=2&&(K=y.yieldResult===1);K&&skD((z=x.mediaRenderer)==null?void 0:z.data);_.c5(y)})}))};
mef.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var x,G;if((G=(x=this.videoPreviewOptsInput)==null?void 0:x.videoPreviewData)!=null)x=G;else if(x=this.mediaRenderer.data)if(rAd(x))x={inlinePlaybackEndpoint:_.jn(x.inlinePlayerData.onVisible),navigationEndpoint:_.jn(x.onTap),thumbnail:"image"in x?x.image:x.thumbnail,thumbnailOverlays:void 0,accessibilityText:YlD(x)};else if("multipleInlinePlaybackEndpoint"in x){var D=_.Y(_.Y(x.multipleInlinePlaybackEndpoint,jXs),Orq);if(D!=
null&&D.playerDescriptors){G=[];D=_.l(D.playerDescriptors);for(var K=D.next();!K.done;K=D.next())K=K.value,G.push({inlinePlaybackEndpoint:K.inlinePlaybackEndpoint,navigationEndpoint:K.navigationEndpoint,thumbnail:K.thumbnail,thumbnailOverlays:K.thumbnailOverlays,accessibilityText:YlD(x)});x=G}else x=void 0}else x={inlinePlaybackEndpoint:x.inlinePlaybackEndpoint,navigationEndpoint:x.navigationEndpoint,thumbnail:x.thumbnail,thumbnailOverlays:x.thumbnailOverlays,accessibilityText:YlD(x)};else x=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:x,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var mZ=function(x){var G;if(G=x.inlinePreviewIsEnabledForUser)G=(x=x.mediaRenderer.data)?"inlinePlaybackEndpoint"in x&&x.inlinePlaybackEndpoint||rAd(x)&&x.inlinePlayerData||"multipleInlinePlaybackEndpoint"in x&&x.multipleInlinePlaybackEndpoint?!0:!1:!1;return G};
mef.prototype.terminateVideoPreview=function(){_.xO(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var Yc=function(x){_.Fj.cancelJob(x.videoPreviewJobId);x.inlinePreviewIsActive=!1;x.previewTriggered=!1;x.mediaRenderer.isInlinePreviewTriggered=!1};var JVE=_.gv(["#"]),H2=function(){var x=_.n.apply(this,arguments)||this;x.isDisabled=!1;return x};
_.m(H2,_.n);_.a=H2.prototype;_.a.configureRendererStamper=function(){return{"data.menu":aH,"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"}}}};
_.a.attached=function(){this.updateInlinePreviewHoverListeners()};
_.a.detached=function(){this.clearInlinePreviewHoverListeners()};
_.a.getMetadata=function(x){var G=[];if(x.metadataText&&Object.keys(x.metadataText).length>0){var D=this.ytRendererBehavior.getSimpleString(x.metadataText);x.upcomingEventData&&x.upcomingEventData.upcomingEventText&&(D=_.IO(D,Number(x.upcomingEventData.startTime)));G.push(D)}else x.shortViewCountText&&G.push(this.ytRendererBehavior.getSimpleString(x.shortViewCountText)),x.publishedTimeText&&G.push(this.ytRendererBehavior.getSimpleString(x.publishedTimeText)),x.upcomingEventData&&x.upcomingEventData.upcomingEventText&&
(D=this.ytRendererBehavior.getSimpleString(x.upcomingEventData.upcomingEventText),G.push(_.IO(D,Number(x.upcomingEventData.startTime))));return G};
_.a.calculateBylineText=function(x){return x.shortBylineText?x.shortBylineText:x.bylineText?x.bylineText:null};
_.a.calculateIsDisabled=function(x){return!!x.isDisabled};
_.a.computeHrefWithDefault=function(x){return this.ytComponentBehavior.computeHref_(x)||_.s2(JVE)};
_.a.onDetailsTap=function(x){var G=this.data&&this.data.navigationEndpoint;G&&!_.u_(_.gA(x)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.B("kevlar_grid_video_renderer_killswitch")?_.h$(this.hostElement,"yt-navigate",{endpoint:G}):this.ytComponentBehavior.resolveCommand(G))};
_.a.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.a.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12813_inlinePreviewHoverListener=uA({mediaRenderer:this,lockupElement:_.kA(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.kA(this.hostElement).querySelector("ytd-thumbnail")})};
_.a.clearInlinePreviewHoverListeners=function(){var x;(x=this.JSC$12813_inlinePreviewHoverListener)==null||EH(x)};
_.a.computeThumbnailWidth=function(x,G){return G&&G>0?G:x?360:210};
_.a.computeShowChannelThumbnail=function(x,G){var D;return G&&!!(x==null?0:(D=x.channelThumbnailSupportedRenderers)==null?0:D.channelThumbnailWithLinkRenderer)};
_.Nq.Object.defineProperties(H2.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.JSC$12813_inlinePreviewHoverListener)==null?0:mZ(x))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
H2.prototype.dataChanged=H2.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],H2.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],H2.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],H2.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.CS),_.N("design:type",Object)],H2.prototype,"ytdDismissibleItemBehavior",void 0);
_.q([_.I(_.RG),_.N("design:type",Object)],H2.prototype,"ytdLockupBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],H2.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],H2.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Boolean)],H2.prototype,"noEndpoints",void 0);_.q([_.R({computed:"calculateBylineText(data)"}),_.N("design:type",Object)],H2.prototype,"bylineText",void 0);
_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],H2.prototype,"isSearch",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],H2.prototype,"isDownloading",void 0);_.q([_.R({reflectToAttribute:!0,value:0}),_.N("design:type",Number)],H2.prototype,"width",void 0);_.q([_.R({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.N("design:type",Object)],H2.prototype,"isDisabled",void 0);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],H2.prototype,"dataChanged",null);_.q([_.U("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],H2.prototype,"isHovered",null);H2=_.q([_.d({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],H2);
_.w(H2,"ytd-grid-video-renderer",function(){if(LDs!==void 0)return LDs;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return LDs=x},{mode:_.Ge("kevlar_poly_si_batch_j047")?1:2});var f0Z;var $c=function(){var x=_.n.apply(this,arguments)||this;x.roundedContainer=!0;x.skipRoundingTop=!1;x.disableTopPadding=!1;x.amsterdamEnabled=_.B("enable_desktop_amsterdam_info_panels");return x};
_.m($c,_.n);$c.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
$c.prototype.onClick=function(x){var G,D=(G=this.data)==null?void 0:G.sourceEndpoint;!_.u_(_.gA(x),this.hostElement,["A".toString()])&&D&&_.h$(this.hostElement,"yt-navigate",{endpoint:D})};
_.Nq.Object.defineProperties($c.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 x;return!((x=this.data)==null||!x.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var x,G;return(G=(x=this.data)==null?void 0:x.paragraphMaxLines)!=null?G:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],$c.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],$c.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],$c.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],$c.prototype,"showVerticalDividers",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],$c.prototype,"roundedContainer",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],$c.prototype,"skipRoundingTop",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],$c.prototype,"disableTopPadding",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],$c.prototype,"amsterdamEnabled",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],$c.prototype,"showMetadataAtTop",null);
_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],$c.prototype,"showMetadataBelowTitle",null);_.q([_.R({reflectToAttribute:!0}),_.U("data.menu"),_.N("design:type",Object),_.N("design:paramtypes",[])],$c.prototype,"hasMenu",null);_.q([_.R({reflectToAttribute:!0}),_.U("data.truncateParagraphs"),_.N("design:type",Object),_.N("design:paramtypes",[])],$c.prototype,"truncateParagraphs",null);
_.q([_.R({reflectToAttribute:!0}),_.U("data.paragraphMaxLines"),_.N("design:type",Number),_.N("design:paramtypes",[])],$c.prototype,"paragraphMaxLines",null);_.q([_.R({type:_.B("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.U("data.background"),_.N("design:type",Object),_.N("design:paramtypes",[])],$c.prototype,"background",null);$c=_.q([_.d({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],$c);
_.w($c,"ytd-info-panel-content-renderer",function(){if(f0Z!==void 0)return f0Z;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return f0Z=x},{mode:_.Ge("kevlar_poly_si_batch_j076")?1:2});var tPZ;var kO0;var PL9;var E47;var FT=function(){return _.n.apply(this,arguments)||this};
_.m(FT,_.n);FT.prototype.computeStyle=function(x){return x};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],FT.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],FT.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],FT.prototype,"style_",void 0);FT=_.q([_.HD({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],FT);
_.w(FT,"yt-channel-thumbnail-with-link-renderer",function(){if(E47===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;PL9===void 0&&(PL9=document.createElement("template"));var K=PL9;D.call(G,K.content.cloneNode(!0),x.content.firstChild);E47=x}x=E47;return x},{mode:2});var Cj=function(){var x=_.n.apply(this,arguments)||this;x.modernTypography=_.B("web_modern_typography");return x};
_.m(Cj,_.n);Cj.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"}}}};
Cj.prototype.computeTitleStyle=function(x){return x||null};
Cj.prototype.computeAvatarStyle=function(x){return x||null};
Cj.prototype.computeShowNavigationButton=function(x,G){return!(x==null||!x.navigationButton||G)};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Cj.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Cj.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Cj.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.N("design:type",String)],Cj.prototype,"titleStyle",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.N("design:type",String)],Cj.prototype,"avatarStyle",void 0);_.q([_.R(),_.N("design:type",Boolean)],Cj.prototype,"hideNavigationButton",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],Cj.prototype,"isModernSd",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Cj.prototype,"modernTypography",void 0);
Cj=_.q([_.d({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],Cj);
_.w(Cj,"ytd-rich-list-header-renderer",function(){if(kO0!==void 0)return kO0;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return kO0=x},{mode:_.Ge("kevlar_poly_si_batch_j058")?1:2});var IH=function(){return _.n.apply(this,arguments)||this};
_.m(IH,_.n);IH.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]]"}}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],IH.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],IH.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],IH.prototype,"data",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],IH.prototype,"isSearch",void 0);IH=_.q([_.d({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],IH);
_.w(IH,"ytd-preview-card-renderer",function(){if(tPZ!==void 0)return tPZ;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return tPZ=x},{mode:1});var hXE;var jG=function(){return _.n.apply(this,arguments)||this};
_.m(jG,_.n);jG.prototype.configureRendererStamper=function(){return{"data.menu":aH}};
jG.prototype.dataChanged=function(){var x=this.get("colorExtractionPalette.section1Color",this.data);x=_.In(x);_.K7(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":x})};
jG.prototype.computeCardStyle=function(x){return this.get("style.value",x)||null};
jG.prototype.dataChanged=jG.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],jG.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],jG.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.CS),_.N("design:type",Object)],jG.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],jG.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.N("design:type",String)],jG.prototype,"cardStyle",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jG.prototype,"dataChanged",null);jG=_.q([_.d({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],jG);
_.w(jG,"ytd-compact-channel-recommendation-card-renderer",function(){if(hXE!==void 0)return hXE;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return hXE=x},{mode:1});var xNu;var G3s;var Ob=function(){var x=_.n.apply(this,arguments)||this;x.alignAuto=!1;x.collapsed=!0;x.isToggled=!1;x.alwaysCollapsed=!1;x.canToggle=!0;x.collapsedHeight=80;x.disableToggle=!1;x.alwaysToggleable=!1;x.reversed=!1;x.shouldUseNumberOfLines=!1;x.recomputeOnResize=!1;x.canToggleJobId=0;x.lastReversed=!1;return x};
_.m(Ob,_.n);_.a=Ob.prototype;_.a.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.a.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.a.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var x=_.kA(this.hostElement),G=x.childNodes,D=document.createDocumentFragment(),K=x.childNodes.length-1;K>=0;K--)_.kA(D).appendChild(G[K]);_.B("enable_shadydom_free_scoped_node_methods")?_.Pi(this.hostElement).appendChild(D):x.appendChild(D)}};
_.a.ready=function(){var x=this;_.Xw(function(){x.initChildrenObserver()},1)};
_.a.detached=function(){this.detachObserver()};
_.a.toggle=function(x,G){this.canToggle&&(this.isToggled=G,_.h$(this.hostElement,"yt-refit"),x&&x.stopPropagation())};
_.a.reset=function(){this.childrenChanged()};
_.a.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.a.computeIsMoreVisible=function(x,G){return x&&!G};
_.a.computeShouldUseNumberOfLines=function(x){try{return!!x&&window.CSS.supports("-webkit-line-clamp","1")}catch(G){}return!1};
_.a.computeIsLessVisible=function(x,G){return x&&G};
_.a.observeCollapsedHeightAndMaxLines=function(){var x=this.collapsedHeight,G=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.K7(this.hostElement,{"--ytd-expander-max-lines":""+G,"--ytd-expander-collapsed-height":""}):_.K7(this.hostElement,{"--ytd-expander-collapsed-height":x+"px","--ytd-expander-max-lines":""})};
_.a.handleMoreTap=function(x){this.disableToggle||(_.h$(this.hostElement,"yt-expander-more-tapped"),this.toggle(x,!0))};
_.a.handleLessTap=function(x){_.h$(this.hostElement,"yt-expander-less-tapped");this.toggle(x,!1)};
_.a.initChildrenObserver=function(){var x=this;this.observer=new MutationObserver(function(){x.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.a.childrenChanged=function(){var x=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){hn(function(){x.canToggleJobId=0;x.calculateCanCollapse()})}))};
_.a.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};
_.a.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.a.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Xt("collapsed-changed",this.collapsed))};
_.a.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Xt("is-toggled-changed",this.isToggled))};
_.a.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Xt("can-toggle-changed",this.canToggle))};
_.Nq.Object.defineProperties(Ob.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
Ob.prototype.canToggleChangedForBinding=Ob.prototype.canToggleChangedForBinding;Ob.prototype.isToggledChangedForBinding=Ob.prototype.isToggledChangedForBinding;Ob.prototype.collapsedChangedForBinding=Ob.prototype.collapsedChangedForBinding;Ob.prototype.observeCollapsedHeightAndMaxLines=Ob.prototype.observeCollapsedHeightAndMaxLines;Ob.prototype.onIronResize=Ob.prototype.onIronResize;Ob.prototype.reversedChanged=Ob.prototype.reversedChanged;Ob.prototype.toggledChanged=Ob.prototype.toggledChanged;
Ob.prototype.alwaysToggleableChanged=Ob.prototype.alwaysToggleableChanged;_.q([_.I(_.Lg),_.N("design:type",Object)],Ob.prototype,"ironResizableBehavior",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Ob.prototype,"alignAuto",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Ob.prototype,"collapsed",void 0);_.q([_.R(),_.N("design:type",Object)],Ob.prototype,"isToggled",void 0);_.q([_.R(),_.N("design:type",Object)],Ob.prototype,"alwaysCollapsed",void 0);
_.q([_.R(),_.N("design:type",Object)],Ob.prototype,"canToggle",void 0);_.q([_.R(),_.N("design:type",Object)],Ob.prototype,"collapsedHeight",void 0);_.q([_.R(),_.N("design:type",Object)],Ob.prototype,"disableToggle",void 0);_.q([_.R(),_.N("design:type",Object)],Ob.prototype,"alwaysToggleable",void 0);_.q([_.R(),_.N("design:type",Object)],Ob.prototype,"reversed",void 0);_.q([_.R(),_.N("design:type",Number)],Ob.prototype,"maxNumberOfLines",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.N("design:type",Object)],Ob.prototype,"shouldUseNumberOfLines",void 0);_.q([_.R(),_.N("design:type",Object)],Ob.prototype,"recomputeOnResize",void 0);_.q([_.cD("#content"),_.N("design:type",HTMLDivElement)],Ob.prototype,"content",void 0);_.q([_.Z6("alwaysToggleable"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ob.prototype,"alwaysToggleableChanged",null);
_.q([_.Z6("isToggled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ob.prototype,"toggledChanged",null);_.q([_.U("canToggleJobId"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ob.prototype,"isResetting",null);_.q([_.yf("reversed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ob.prototype,"reversedChanged",null);
_.q([_.oe("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ob.prototype,"onIronResize",null);_.q([_.yf("maxNumberOfLines","collapsedHeight"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ob.prototype,"observeCollapsedHeightAndMaxLines",null);_.q([_.yf("collapsed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ob.prototype,"collapsedChangedForBinding",null);
_.q([_.yf("isToggled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ob.prototype,"isToggledChangedForBinding",null);_.q([_.yf("canToggle"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ob.prototype,"canToggleChangedForBinding",null);Ob=_.q([_.d({disableElementRegistration:!0,is:"ytd-expander"})],Ob);
_.w(Ob,"ytd-expander",function(){if(G3s!==void 0)return G3s;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return G3s=x},{mode:1});var XT=function(){return _.n.apply(this,arguments)||this};
_.m(XT,_.n);XT.prototype.computeIsCarousel=function(x){return!!x.isCarousel};
XT.prototype.observeLightsourcePalette=function(){var x,G=(x=this.data)==null?void 0:x.vibrantsourceColorPaletteData;G&&_.Y7(this.hostElement,G)};
XT.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
XT.prototype.observeLightsourcePalette=XT.prototype.observeLightsourcePalette;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],XT.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],XT.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],XT.prototype,"data",void 0);_.q([_.R({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],XT.prototype,"isCarousel",void 0);
_.q([_.yf("data.vibrantsourceColorPaletteData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],XT.prototype,"observeLightsourcePalette",null);XT=_.q([_.d({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],XT);
_.w(XT,"ytd-media-upsell-renderer",function(){if(xNu!==void 0)return xNu;var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="EXPAND" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="COLLAPSE" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return xNu=x},{mode:2});var DNo;var AK=function(){var x=_.n.apply(this,arguments)||this;x.JSC$12841_playerEvents=new Map;x.listeningToPlayer=!1;x.startX=0;x.active=!1;x.shouldShowButtons=_.B("web_buttons_hidden_killswitch");x.isHighlighted=!1;x.useHighlightStyling=_.B("web_enable_deeper_metadata_highlight_styling");x.modern=_.B("kevlar_modern_sd");x.enableProblemWalkthrough=_.B("problem_walkthrough_sd");return x};
_.m(AK,_.n);_.a=AK.prototype;
_.a.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}}}}}};
_.a.created=function(){this.JSC$12841_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.a.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.ae(this,this.onRepeatButtonToggle));_.B("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.ae(this,this.onActiveUpdate))};
_.a.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.ae(this,this.onRepeatButtonToggle));_.B("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.ae(this,this.onActiveUpdate))};
_.a.onDataChanged=function(){this.removePlayerListeners()};
_.a.onColorPaletteChange=function(){var x={},G;if(_.Lt()==="USER_INTERFACE_THEME_DARK"&&((G=this.data)==null?0:G.darkColorPalette)){var D=this.data.darkColorPalette;x["--ytd-macro-markers-list-item-background-color"]=_.jT(this.get("section2Color",D))}else{var K;_.Lt()==="USER_INTERFACE_THEME_LIGHT"&&((K=this.data)==null?0:K.lightColorPalette)&&(D=this.data.lightColorPalette,x["--ytd-macro-markers-list-item-background-color"]=_.jT(this.get("section3Color",D)))}D?(x["--ytd-macro-markers-list-item-title-color"]=
_.jT(this.get("primaryTitleColor",D)),x["--ytd-macro-markers-list-item-secondary-color"]=_.jT(this.get("secondaryTitleColor",D)),x["--ytd-macro-markers-list-item-timestamp-background-color"]=_.jT(this.get("section1Color",D)),this.customButtonProperties={customColors:{color:_.jT(this.get("primaryTitleColor",D))}},this.useColorSampling=!0):(x["--ytd-macro-markers-list-item-background-color"]="initial",x["--ytd-macro-markers-list-item-title-color"]="initial",x["--ytd-macro-markers-list-item-secondary-color"]=
"initial",x["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.K7(this.hostElement,x)};
_.a.onEndpointMouseDown=function(x){this.startX=x.clientX};
_.a.onEndpointClick=function(x){var G=this,D,K,z;return _.T(function(y){if(y.nextAddress==1){if(G.startX!==x.clientX)return x.preventDefault(),y.return();G.data&&G.ytRendererBehavior.logExplicitClick(G.data);if(!G.seekWithAnimationOnClick)return y.jumpTo(0);if(x.button!==0||x.shiftKey||x.altKey||x.metaKey||x.ctrlKey||_.u_(_.gA(x),G.hostElement,["BUTTON".toString()]))return y.return();x.stopPropagation();x.preventDefault();return G.data?_.Z(y,_.vH().getPlayerPromise(),3):y.return()}D=y.yieldResult;
z=(K=_.Y(G.data.onTap,_.d5))==null?void 0:K.startTimeSeconds;z!==void 0&&D.seekToTimeWithAnimation(z*1E3,_.u7(G.data.title));_.c5(y)})};
_.a.computeLayout=function(x){return x};
_.a.computeIsHighlighted=function(x){return!!x};
_.a.computeCarouselType=function(x){return x};
_.a.hideModernCarousel=function(x){return this.modern&&this.hideThumbnail(x)};
_.a.hideThumbnail=function(x){return this.enableProblemWalkthrough&&x!==null&&x==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.a.onRepeatButtonToggle=function(x){var G=this;x.detail.toggled&&_.vH().getPlayerPromise().then(function(D){G.ytPlayerListenerBehavior.listenToPlayerEvents(D,G.JSC$12841_playerEvents);G.listeningToPlayer=!0})};
_.a.onLoopRangeChange=function(x){var G=_.kA(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(G){var D=G.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",G.polymerController.data);if(D){var K=Number(D.endTimeMs);if(Number(D.startTimeMs)!==(x==null?void 0:x.startTimeMs)||K!==(x==null?void 0:x.endTimeMs))G.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.a.removePlayerListeners=function(){var x=this;this.listeningToPlayer&&_.vH().getPlayerPromise().then(function(G){x.ytPlayerListenerBehavior.unlistenFromPlayerEvents(G,x.JSC$12841_playerEvents);x.listeningToPlayer=!1})};
_.a.onActiveUpdate=function(x){this.active=x.detail.active};
AK.prototype.onColorPaletteChange=AK.prototype.onColorPaletteChange;AK.prototype.onDataChanged=AK.prototype.onDataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],AK.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],AK.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.nS.YtPlayerListenerBehavior),_.N("design:type",_.i4)],AK.prototype,"ytPlayerListenerBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],AK.prototype,"data",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],AK.prototype,"useCustomColors",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],AK.prototype,"active",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],AK.prototype,"shouldShowButtons",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.N("design:type",String)],AK.prototype,"layout",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.N("design:type",Object)],AK.prototype,"isHighlighted",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],AK.prototype,"useHighlightStyling",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],AK.prototype,"modern",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],AK.prototype,"enableProblemWalkthrough",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.N("design:type",String)],AK.prototype,"carouselType",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],AK.prototype,"useColorSampling",void 0);_.q([_.R(),_.N("design:type",Boolean)],AK.prototype,"seekWithAnimationOnClick",void 0);_.q([_.R(),_.N("design:type",Object)],AK.prototype,"customButtonProperties",void 0);
_.q([_.cD("#repeat-button"),_.N("design:type",HTMLElement)],AK.prototype,"repeatButton",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],AK.prototype,"onDataChanged",null);_.q([_.yf("data.lightColorPalette","data.darkColorPalette"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],AK.prototype,"onColorPaletteChange",null);
AK=_.q([_.d({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],AK);
_.w(AK,"ytd-macro-markers-list-item-renderer",function(){if(DNo!==void 0)return DNo;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return DNo=x},{mode:1});var KOs;var zv8;var Ub=function(){var x=_.n.apply(this,arguments)||this;x.modernTypography=_.B("web_modern_typography");return x};
_.m(Ub,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Ub.prototype,"ytRendererBehavior",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Ub.prototype,"modernTypography",void 0);_.q([_.R(),_.N("design:type",Object)],Ub.prototype,"data",void 0);Ub=_.q([_.d({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],Ub);
_.w(Ub,"ytd-title-and-button-list-header-renderer",function(){if(zv8!==void 0)return zv8;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return zv8=x},{mode:1});var a4J;var oZi=new _.wq("BUTTON_RENDERER_WIZ_TOKEN"),yT8=new _.wq("BUTTON_RENDERER_TOKEN");_.RH=_.Nv(function(x){var G=_.Eo().resolve(_.P6(oZi));if(G)return _.M(G,Object.assign({},x));var D=_.Eo().resolve(yT8);return D?_.M(ZHd,null,function(){return _.M(vw,null,function(){var K,z,y,c,W,e,Q,p,V,L,r,H;return void D(x.data(),{onButtonClickCallback:x.onButtonClickCallback,shouldShowIcons:(K=x.shouldShowIcons)==null?void 0:K.call(x),icon:(z=x.icon)==null?void 0:z.call(x),processAllEndpoints:(y=x.processAllEndpoints)==null?void 0:y.call(x),preventDefault:(c=x.preventDefault)==null?void 0:c.call(x),
stopPropagation:(W=x.stopPropagation)==null?void 0:W.call(x),disableButtonRendererClickHandling:(e=x.disableButtonRendererClickHandling)==null?void 0:e.call(x),className:(Q=x.className)==null?void 0:Q.call(x),buttonOverrides:(p=x.buttonOverrides)==null?void 0:p.call(x),forceModernIconButton:(V=x.forceModernIconButton)==null?void 0:V.call(x),isSubscribe:(L=x.isSubscribe)==null?void 0:L.call(x),alignByText:(r=x.alignByText)==null?void 0:r.call(x),forceDisabled:(H=x.forceDisabled)==null?void 0:H.call(x)})})}):
_.M(_.xT,null)},"ba");
_.RH.idomCompat=!0;var l4J=_.Nv(function(x){var G=x.data,D=_.wc(x.useSquareAspectRatio,!1);return _.M("dismissed-mini-game-card-view-model",null,_.M(_.b,{cond:function(){var K,z;return(K=G().responseText)==null?void 0:(z=K.runs)==null?void 0:z.length},
then:function(){var K={};return _.M("div",{class:_.ym("yt-mini-game-card-view-model__dismissed-card",(K["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!D()},K["yt-mini-game-card-view-model--dismissed-square-card"]=D,K))},_.M("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.M(_.b,{cond:function(){return G().responseText.runs[0].text},
then:function(z){return _.M("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:z},z)}}),_.M(_.bA,{data:function(){return G().buttons}},{buttonRenderer:_.RH,
buttonViewModel:_.Cs})))}}))},"ca");var M97=_.Nv(function(x){x=_.qv(x,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var G=x.data,D=x.useFullWidth,K=x.isDesktopWeb,z=x.addSearchResultTopMargin,y=function(){return G().layout},c=function(){return G().title},W=function(){return G().metadataText?G().metadataText:G().genre},e=function(){return G().channelName},Q=function(){return G().image},p=function(){return G().colorPalette},V=function(){return G().actionButton},L=function(){return G().overflowButton},
r=function(){return G().avatar},H=function(){var u={};
u=_.ym("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(u["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return K()},u));
return _.M("div",{class:u},_.M(cT8,{imageData:Q,colorPalette:p}),_.M(TLE,{onTap:function(){return G().onTap},
imageData:Q,accessibilityText:function(){return G().accessibilityText},
overlayBadgeText:function(){return G().overlayBadgeText},
iconName:function(){return G().iconName},
unplayableInlinePlaybackIconName:function(){return G().unplayableInlinePlaybackIconName},
isDesktopWeb:K}),_.M(_.b,{cond:function(){return!K()},
then:function(){return _.M(_.xT,null,_.M(WOZ,{layout:y,colorPalette:p,isDesktopWeb:K,overflowButton:L,avatar:r,onTap:function(){return G().onTap},
genre:W,title:c,channelName:e,entityRedesignExperiments:function(){return G().entityRedesignExperiments}}),_.M(SG,{actionButton:V}))}}))},O=function(){var u={};
u=_.ym((u["yt-mini-game-card-view-model--search-result-desktop"]=function(){return K()},u["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!K()},u["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return z()},u));
return _.M("div",{class:u},H(),_.M(evu,{description:function(){return G().description},
isDesktopWeb:K,title:c,genre:W,onTap:function(){return G().onTap},
actionButton:V,overflowButton:L,avatar:r,channelName:e}))},A=function(){var u=function(){var v;
return(v=G().entityRedesignExperiments)==null?void 0:v.changePlayablesLayoutWithCta},f={};
f=_.ym("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(f["yt-mini-game-card-view-model--change-layout-with-cta"]=function(){return u()},f["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return K()},f["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return K()&&G().width===135},f["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return K()},f["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=
function(){return!u()&&K()&&G().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},f["yt-mini-game-card-view-model--big-metadata-font"]=function(){return G().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},f["yt-mini-game-card-view-model--use-full-width"]=function(){return D()},f["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!V()},f));
return _.M("div",{class:f},_.M(_.b,{cond:function(){return u()},
then:function(){return _.M(_.xT,null,_.M(ZPJ,{entityRedesignExperiments:function(){return G().entityRedesignExperiments},
colorPalette:p,isDesktopWeb:K,onTap:function(){return G().onTap},
accessibilityText:function(){return G().accessibilityText},
overlayBadgeText:function(){return G().overlayBadgeText},
iconName:function(){return G().iconName},
unplayableInlinePlaybackIconName:function(){return G().unplayableInlinePlaybackIconName},
actionButton:V,imageData:Q}),_.M(WOZ,{layout:y,colorPalette:p,isDesktopWeb:K,overflowButton:L,avatar:r,onTap:function(){return G().onTap},
genre:W,title:c,channelName:e,entityRedesignExperiments:function(){return G().entityRedesignExperiments}}),_.M(_.b,{cond:function(){return!!u()===!1&&V()},
then:function(){return _.M(SG,{actionButton:V})}}))},
else:function(){return _.M(_.xT,null,_.M(cT8,{imageData:Q,colorPalette:p}),_.M(TLE,{onTap:function(){return G().onTap},
imageData:Q,accessibilityText:function(){return G().accessibilityText},
overlayBadgeText:function(){return G().overlayBadgeText},
iconName:function(){return G().iconName},
unplayableInlinePlaybackIconName:function(){return G().unplayableInlinePlaybackIconName},
isDesktopWeb:K}),_.M(WOZ,{layout:y,colorPalette:p,isDesktopWeb:K,overflowButton:L,avatar:r,onTap:function(){return G().onTap},
genre:W,title:c,channelName:e,entityRedesignExperiments:function(){return G().entityRedesignExperiments}}),_.M(SG,{actionButton:V}))}}))},g=function(){var u={};
u=_.ym("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(u["yt-mini-game-card-view-model--square-card-desktop"]=function(){return K()},u["yt-mini-game-card-view-model--use-full-width"]=function(){return D()},u));
return _.M("div",{class:u},_.M(TLE,{onTap:function(){return G().onTap},
imageData:Q,accessibilityText:function(){return G().accessibilityText},
overlayBadgeText:function(){return G().overlayBadgeText},
iconName:function(){return G().iconName},
unplayableInlinePlaybackIconName:function(){return G().unplayableInlinePlaybackIconName},
isDesktopWeb:K}),_.M(WOZ,{layout:y,colorPalette:p,isDesktopWeb:K,overflowButton:L,avatar:r,onTap:function(){return G().onTap},
genre:W,title:c,channelName:e,entityRedesignExperiments:function(){return G().entityRedesignExperiments}}))};
return _.M("mini-game-card-view-model",{class:x.className},_.M(_.so,null,_.M(_.B6,{when:function(){return y()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return A()}),_.M(_.B6,{when:function(){return y()==="MINI_APP_LAYOUT_SQUARE"}},function(){return g()}),_.M(_.B6,{when:function(){return y()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return O()})))},"da");
M97.idomCompat=!0;var SG=_.Nv(function(x){var G=_.wc(x.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.M(_.bA,{data:x.actionButton},{buttonViewModel:function(D){return _.M("div",{class:G},_.M(_.Cs,{data:D.data}))}})},"ea"),TLE=_.Nv(function(x){var G=x.onTap;
var D=x.imageData;var K=x.accessibilityText;var z=x.overlayBadgeText;var y=x.iconName;var c=x.unplayableInlinePlaybackIconName;x=x.isDesktopWeb;return _.M(_.hG,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:G},_.M(_.wk,{data:D,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(K==null?void 0:K())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.M(Qzo,{overlayBadgeText:z,iconName:y,unplayableInlinePlaybackIconName:c,isDesktopWeb:x}))},"fa"),Qzo=_.Nv(function(x){var G=x.overlayBadgeText;
var D=x.iconName;var K=x.unplayableInlinePlaybackIconName;var z=x.isDesktopWeb;return _.M("div",{class:"yt-mini-game-card-view-model__badge-container"},_.M(_.b,{cond:D,then:function(y){return _.M("div",{class:"yt-mini-game-card-view-model__badge"},_.M("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.M(_.Qm,{icon:y,className:"yt-mini-game-card-view-model__icon"}),_.M("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},G)))}}),_.M(_.b,{cond:function(){return!D()&&
G()},
then:function(){return _.M("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},G)}}),_.M(_.b,{cond:function(){return K()&&z()},
then:function(){return _.M("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.M(_.Qm,{icon:K,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ga"),cT8=_.Nv(function(x){var G=x.colorPalette;
var D=x.imageData;var K=function(){return G().vibrantColorPalette?G().vibrantColorPalette.section2Color:G().sectionTwoColor};
return _.M(_.xT,null,_.M("div",{class:"yt-mini-game-card-view-model__background-base",style:_.Ms({"background-color":function(){return O4(K(),"1")}})}),_.M("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.Ms({"background-image":function(){return"url("+D().sources[0].url+")"}})}),_.M("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.Ms({background:function(){return"linear-gradient(180deg,\n    "+O4(K(),".8")+" 0%,\n    "+O4(K(),".4")+" 25%,\n    "+O4(G().vibrantColorPalette?G().vibrantColorPalette.section4Color:G().sectionFourColor,".8")+" 100%)"}})}))},"ha"),WOZ=_.Nv(function(x){var G=x.layout;
var D=x.colorPalette;var K=x.overflowButton;var z=x.avatar;var y=x.onTap;var c=x.title;var W=x.channelName;var e=x.entityRedesignExperiments;var Q=x.genre;var p=function(){var L;return G()!=="MINI_APP_LAYOUT_SQUARE"&&((L=D())==null?0:L.textPrimaryColor)?"color: "+O4(D().textPrimaryColor,".7"):""},V=function(){var L;
return e==null?void 0:(L=e())==null?void 0:L.changePlayablesLayoutWithCta};
return _.M("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.M(_.b,{cond:z,then:function(){return _.M("div",{class:"yt-mini-game-card-view-model__avatar"},_.M(_.bA,{data:z},{avatarViewModel:_.Lj}))}}),_.M(_.hG,{command:y,
className:"yt-mini-game-card-view-model__metadata-details"},_.M("h3",{class:"yt-mini-game-card-view-model__title",title:c},c),_.M(_.b,{cond:z,then:function(){return _.M("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.M("span",{class:"yt-mini-game-card-view-model__genre",title:W,style:p},W),_.M("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:p},Q))},
else:function(){return _.M(_.b,{cond:V,then:function(){return _.M("span",{class:"yt-mini-game-card-view-model__genre",title:Q},Q)},
else:function(){return _.M("span",{class:"yt-mini-game-card-view-model__genre",title:Q,style:p},Q)}})}})),_.M("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.M(_.bA,{data:K},{buttonViewModel:function(L){var r=L.data;
return _.M(_.Cs,{data:function(){return Object.assign({},r(),{customFontColor:V()?void 0:r().customFontColor})}})}})))},"ia"),ZPJ=_.Nv(function(x){var G=x.entityRedesignExperiments;
var D=x.colorPalette;var K=x.isDesktopWeb;var z=x.onTap;var y=x.accessibilityText;var c=x.overlayBadgeText;var W=x.iconName;var e=x.unplayableInlinePlaybackIconName;var Q=x.actionButton;x=x.imageData;var p=function(){var V;return G==null?void 0:(V=G())==null?void 0:V.changePlayablesLayoutWithCta};
return _.M("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.M(cT8,{imageData:x,colorPalette:D}),_.M(TLE,{onTap:z,imageData:x,accessibilityText:y,overlayBadgeText:c,iconName:W,unplayableInlinePlaybackIconName:e,isDesktopWeb:K}),_.M(_.b,{cond:function(){return(p==null?void 0:p())&&(Q==null?void 0:Q())},
then:function(){return _.M(SG,{actionButton:Q})}}))},"ja"),evu=_.Nv(function(x){var G=x.description;
var D=x.isDesktopWeb;var K=x.title;var z=x.genre;var y=x.onTap;var c=x.actionButton;var W=x.overflowButton;var e=x.avatar;x=x.channelName;var Q={};Q=_.ym("yt-mini-game-card-view-model--search-result-metadata-wrapper",(Q["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=D,Q["yt-mini-game-card-view-model--show-unplayable-on-hover"]=D,Q["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!D()},Q));
var p={};p=_.ym("yt-mini-game-card-view-model__search-result-info-row",(p["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!D()},p));
return _.M("div",{class:Q},_.M("div",{class:p},_.M(_.hG,{command:y,className:"yt-mini-game-card-view-model__metadata-details"},_.M("h3",{class:"yt-mini-game-card-view-model__title",title:K},K),_.M("span",{class:"yt-mini-game-card-view-model__genre",title:z},z)),_.M(SG,{actionButton:c,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.M("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.M(_.bA,{data:W},{buttonViewModel:_.Cs}))),_.M("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.M("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.M("div",{class:"yt-mini-game-card-view-model__avatar"},_.M(_.bA,{data:e},{avatarViewModel:function(V){var L=V.data;return _.M(_.Lj,{data:function(){return Object.assign({},L(),{avatarImageSize:D()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.M(_.hG,{command:y,
className:"yt-mini-game-card-view-model__description"},_.M("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},x)),_.M(_.hG,{command:y,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.M("div",null)))),_.M(_.b,{cond:D,then:function(){return _.M(_.hG,{command:y,className:"yt-mini-game-card-view-model__description"},G)}}))},"ka");_.tn(M97,"mini-game-card-view-model",{props:{data:_.ik,className:_.ik,useFullWidth:_.ik,isDesktopWeb:_.ik,addSearchResultTopMargin:_.ik}});_.tn(l4J,"dismissed-mini-game-card-view-model",{props:{data:_.ik,useSquareAspectRatio:_.ik}});var nj=function(){var x=_.n.apply(this,arguments)||this;x.isSearch=!1;x.isRichGrid=!1;return x};
_.m(nj,_.n);_.a=nj.prototype;_.a.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.a.dismissibleItemOnYtServiceRequestSent=function(x,G){G.actions&&this.dismissibleItemProcessActions(x,G.actions)};
_.a.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.a.dataChanged=function(){this.dismissibleItemReset()};
_.a.dismissibleItemProcessActions=function(x,G){for(var D=0;D<G.length;D++){var K=G[D];_.Y(K,_.Zi)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.Y(K,_.Zi)),x.stopPropagation())}};
_.a.dismissibleItemHandleReplaceEnclosingAction=function(x){this.dismissedRenderer=x.item;this.isDismissed=!0};
_.Nq.Object.defineProperties(nj.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var x;return!!this.data&&!((x=this.dismissedRenderer)==null?0:x.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.dismissedRenderer)==null||!x.notificationMultiActionRenderer)}}});
nj.prototype.dataChanged=nj.prototype.dataChanged;nj.prototype.dismissibleItemOnRequestSent=nj.prototype.dismissibleItemOnRequestSent;nj.prototype.dismissibleItemOnYtServiceRequestSent=nj.prototype.dismissibleItemOnYtServiceRequestSent;_.q([_.R(),_.N("design:type",Object)],nj.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],nj.prototype,"isSearch",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],nj.prototype,"isDismissed",void 0);
_.q([_.R(),_.N("design:type",Object)],nj.prototype,"dismissedRenderer",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],nj.prototype,"isRichGrid",void 0);_.q([_.U("data.layout"),_.N("design:type",Object),_.N("design:paramtypes",[])],nj.prototype,"useSquareAspectRatio",null);_.q([_.U("data","dismissedRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],nj.prototype,"showCard",null);
_.q([_.U("data","dismissedRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],nj.prototype,"showDismissed",null);_.q([_.oe("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Ou]),_.N("design:returntype")],nj.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.q([_.oe("yt-service-request-sent-button-renderer"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],nj.prototype,"dismissibleItemOnRequestSent",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nj.prototype,"dataChanged",null);nj=_.q([_.HD({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],nj);
_.w(nj,"ytd-mini-game-card-view-model",function(){if(a4J!==void 0)return a4J;var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-game-card-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[showCard]]" class="style-scope ytd-mini-game-card-view-model"><mini-game-card-view-model add-search-result-top-margin="[[isSearch]]" data="[[data]]" is-desktop-web="" use-full-width="[[isRichGrid]]" class="style-scope ytd-mini-game-card-view-model"></mini-game-card-view-model></template><template is="dom-if" restamp="" if="[[showDismissed]]" class="style-scope ytd-mini-game-card-view-model"><dismissed-mini-game-card-view-model data="[[dismissedRenderer.notificationMultiActionRenderer]]" use-square-aspect-ratio="[[useSquareAspectRatio]]" class="style-scope ytd-mini-game-card-view-model"></dismissed-mini-game-card-view-model></template>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return a4J=x},{mode:_.Ge("kevlar_poly_si_batch_j081")?1:2});var pWZ;var V9k;var iu=function(){return _.vm.apply(this,arguments)||this};
_.m(iu,_.vm);iu.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
iu.prototype.getContinuationUrl=function(x){var G={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(G.itct=this.data.clickTrackingParams);return _.Nh(x,G)};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],iu.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],iu.prototype,"data",void 0);iu=_.q([_.HD({is:"yt-reload-continuation",noInjection:!0})],iu);var bPh;var LOZ;var gR=function(){var x=_.n.apply(this,arguments)||this;x.notificationData={};return x};
_.m(gR,_.n);_.a=gR.prototype;_.a.isMenuExpanded=function(x){return x&&x.length<=1?"undefined":"false"};
_.a.dataChanged_=function(){this.selected=void 0;var x=this.computeSelectedIndex_(this.data);x>=0&&(this.selected=x);x=this.data&&this.data.length>1;_.E4(this.hostElement,"has-items",x);_.kA(this.hostElement).querySelector("#label").tabIndex=x?0:-1};
_.a.onDropdownOpen=function(){var x=_.CC();if(this.parentTrackingParams&&this.data){var G=_.V2(this.parentTrackingParams);this.data.forEach(function(D){x&&G&&D.trackingParams&&(D=_.V2(D.trackingParams),_.RI(x,G,D),_.i0(x,[D]))})}else this.parentTrackingParams||_.O9(new _.LL("No parent tracking params passed in for yt-dropdown-menu."))};
_.a.hasNotification=function(x){var G;if(x.targetId&&((G=this.notificationData)==null?0:G.targetId)){var D;return x.targetId===((D=this.notificationData)==null?void 0:D.targetId)}};
_.a.computeSelectedIndex_=function(x){if(x)for(var G=0,D=x.length;G<D;G++)if(x[G].selected)return G;return-1};
_.a.computeLabel_=function(x){return this.data&&x!=void 0?this.data[x].title:""};
_.a.computeShowIcon_=function(x,G){return!G&&!!x};
_.a.computeVerticalOffset_=function(x){return x?36:0};
_.a.computeEndpoint_=function(x){return x.endpoint||x.navigationEndpoint};
_.a.onLabelClick_=function(x){this.data&&this.data.length<=1?x.stopPropagation():this.menuExpanded="true"};
_.a.onIronActivate_=function(x){x=x.detail.item;var G=_.kA(this.hostElement).querySelector("#repeat").itemForElement(x);if(G&&G.trackingParams){var D=_.CC(),K=_.V2(G.trackingParams);D&&_.u0(D,K)}if(G&&G.serviceEndpoint)_.B("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(G.serviceEndpoint):_.KW(this.hostElement,[G.serviceEndpoint]),_.h$(this.hostElement,"yt-playlist-reloading");else a:{if((G=x.querySelector("yt-supported-renderers"))&&
(G=G.rendererElement)&&G.is=="yt-reload-continuation"){G.trigger();break a}(x=x.querySelector("yt-reload-continuation"))&&x.trigger()}};
_.a.onTap_=function(x){x.preventDefault()};
_.a.onItemTap_=function(x){this.ytEndpointBehavior.onEndpointTap_(x)};
_.a.onLinkFocus_=function(x){try{var G=x.target}catch(K){}if(G){var D=G.querySelector("tp-yt-paper-item");D&&_.Ao(this,"focus",function(){D.focus()})}};
_.a.onMenuClose_=function(){this.menuExpanded="false"};
_.a.isLabelIconActive_=function(x){return x==="true"};
_.a.computeHasSubtitle_=function(x){return!!x};
_.a.computeHrefForItem_=function(x){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(x))};
_.a.updateSelectedFromBinding=function(x){this.selected=x.detail.value};
_.Nq.Object.defineProperties(gR.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
gR.prototype.onMenuClose_=gR.prototype.onMenuClose_;gR.prototype.onTap_=gR.prototype.onTap_;gR.prototype.onIronActivate_=gR.prototype.onIronActivate_;gR.prototype.onDropdownOpen=gR.prototype.onDropdownOpen;gR.prototype.dataChanged_=gR.prototype.dataChanged_;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],gR.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.l9.YtEndpointBehavior),_.N("design:type",Object)],gR.prototype,"ytEndpointBehavior",void 0);
_.q([_.R(),_.N("design:type",Array)],gR.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],gR.prototype,"parentTrackingParams",void 0);_.q([_.R(),_.N("design:type",Object)],gR.prototype,"selected",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],gR.prototype,"useLabel",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],gR.prototype,"useComputedAriaLabel",void 0);_.q([_.R(),_.N("design:type",String)],gR.prototype,"icon",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],gR.prototype,"iconLabel",void 0);_.q([_.R(),_.N("design:type",String)],gR.prototype,"ariaLabel",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],gR.prototype,"disabled",void 0);_.q([_.R({computed:"isMenuExpanded(data)"}),_.N("design:type",String)],gR.prototype,"menuExpanded",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],gR.prototype,"closeOnActivate",void 0);
_.q([_.R({reflectToAttribute:!0,value:_.B("web_modern_buttons")}),_.N("design:type",Boolean)],gR.prototype,"modernButtons",void 0);_.q([_.R(),_.N("design:type",Object)],gR.prototype,"notificationData",void 0);_.q([_.U("ariaLabel, selected"),_.R(),_.N("design:type",String),_.N("design:paramtypes",[])],gR.prototype,"computedAriaLabel",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],gR.prototype,"dataChanged_",null);
_.q([_.oe("paper-dropdown-open"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],gR.prototype,"onDropdownOpen",null);_.q([_.oe("iron-activate"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],gR.prototype,"onIronActivate_",null);_.q([_.oe("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],gR.prototype,"onTap_",null);
_.q([_.oe("iron-overlay-closed"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],gR.prototype,"onMenuClose_",null);gR=_.q([_.HD({is:"yt-dropdown-menu",disableElementRegistration:!0})],gR);
_.w(gR,"yt-dropdown-menu",function(){if(LOZ===void 0){var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_dropdown_menu.yt.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button close-on-activate="[[closeOnActivate]]" disabled="[[disabled]]" dynamic-align="" expand-sizing-target-for-scrollbars="" horizontal-align="[[horizontalAlign]]" vertical-offset="[[computeVerticalOffset_(icon)]]" class="style-scope yt-dropdown-menu">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope yt-dropdown-menu" slot="dropdown-trigger" aria-expanded$="[[menuExpanded]]" aria-label$="[[computedAriaLabel]]" on-tap="onLabelClick_">\n    <template is="dom-if" if="[[computeShowIcon_(icon, useLabel)]]" class="style-scope yt-dropdown-menu">\n      <yt-icon id="label-icon" active="[[isLabelIconActive_(menuExpanded)]]" icon="[[icon]]" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n      <div id="icon-label" class="style-scope yt-dropdown-menu">[[iconLabel]]</div>\n    </template>\n    <template is="dom-if" if="[[useLabel]]" class="style-scope yt-dropdown-menu">\n      <div id="label-text" style-target="label-text" class="style-scope yt-dropdown-menu">[[computeLabel_(selected)]]</div>\n      <yt-icon id="label-icon" icon="expand" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n    </template>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="menu" class="dropdown-content style-scope yt-dropdown-menu" slot="dropdown-content" selected="[[selected]]" on-selected-changed="updateSelectedFromBinding">\n    <template id="repeat" is="dom-repeat" items="[[data]]" class="style-scope yt-dropdown-menu">\n      <a class="yt-simple-endpoint style-scope yt-dropdown-menu" href$="[[computeHrefForItem_(item)]]" data="[[computeEndpoint_(item)]]" on-focus="onLinkFocus_" on-tap="onItemTap_">\n        <tp-yt-paper-item class="style-scope yt-dropdown-menu">\n          <tp-yt-paper-item-body two-line$="[[computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n            <div id="item-with-badge" class="style-scope yt-dropdown-menu">\n              <div class="item style-scope yt-dropdown-menu">[[item.title]]\n                <span class="notification style-scope yt-dropdown-menu" hidden$="[[!hasNotification(item,notificationData)]]"></span>\n              </div>\n              <ytd-badge-supported-renderer hidden="[[!item.badge]]" top-standalone-badge="[[item.badge]]" class="style-scope yt-dropdown-menu">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div secondary="" id="subtitle" hidden="[[!computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n              [[item.subtitle]]\n            </div>\n          </tp-yt-paper-item-body>\n          <yt-reload-continuation data="[[item.continuation.reloadContinuationData]]" class="style-scope yt-dropdown-menu">\n          </yt-reload-continuation>\n        </tp-yt-paper-item>\n      </a>\n    </template>\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;bPh===void 0&&(bPh=document.createElement("template"));var K=bPh;D.call(G,K.content.cloneNode(!0),x.content.firstChild);LOZ=x}x=LOZ;return x},{mode:2});var uu=function(){var x=_.n.apply(this,arguments)||this;x.hasNotification=!1;return x};
_.m(uu,_.n);uu.prototype.computeId=function(x){return x};
uu.prototype.computeHorizontalAlign=function(x){return x?"right":"left"};
uu.prototype.computeAccessibilityLabel=function(x){var G,D;return((G=x.accessibility)==null?void 0:(D=G.accessibilityData)==null?void 0:D.label)||null};
uu.prototype.notificationDataChanged=function(){var x;this.hasNotification=!!this.notificationData&&!((x=this.data)==null?0:x.icon)};
uu.prototype.notificationDataChanged=uu.prototype.notificationDataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],uu.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.IQ.YtLiveChatTooltipTargetingBehavior),_.N("design:type",Object)],uu.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],uu.prototype,"data",void 0);_.q([_.R({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.N("design:type",String)],uu.prototype,"id",void 0);
_.q([_.R({value:!1}),_.N("design:type",Boolean)],uu.prototype,"isRightAligned",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],uu.prototype,"disabled",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],uu.prototype,"closeOnActivate",void 0);_.q([_.R(),_.N("design:type",Object)],uu.prototype,"notificationData",void 0);_.q([_.R(),_.N("design:type",Object)],uu.prototype,"hasNotification",void 0);
_.q([_.R({value:!1}),_.N("design:type",Boolean)],uu.prototype,"useComputedAriaLabel",void 0);_.q([_.yf("notificationData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uu.prototype,"notificationDataChanged",null);uu=_.q([_.HD({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],uu);
_.w(uu,"yt-sort-filter-sub-menu-renderer",function(){if(V9k===void 0){var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sort-filter-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_sort_filter_sub_menu_renderer.yt.sort.filter.sub.menu.renderer.css.js--\x3e<tp-yt-paper-tooltip class="style-scope yt-sort-filter-sub-menu-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n<yt-dropdown-menu aria-label="[[computeAccessibilityLabel(data)]]" close-on-activate="[[closeOnActivate]]" data="[[data.subMenuItems]]" disabled="[[disabled]]" horizontal-align="[[computeHorizontalAlign(isRightAligned)]]" icon="[[data.icon.iconType]]" icon-label="[[data.title]]" notification-data="[[notificationData]]" parent-tracking-params="[[data.trackingParams]]" use-computed-aria-label="[[useComputedAriaLabel]]" use-label="[[!data.icon.iconType]]" class="style-scope yt-sort-filter-sub-menu-renderer">\n</yt-dropdown-menu>\n<div id="notification" hidden$="[[!hasNotification]]" class="style-scope yt-sort-filter-sub-menu-renderer"></div>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;pWZ===void 0&&(pWZ=document.createElement("template"));var K=pWZ;D.call(G,K.content.cloneNode(!0),x.content.firstChild);V9k=x}x=V9k;return x},{mode:2});_.E9($ef);
var BLs=_.Nv(function(x){var G=x.children;var D=x.className;var K=x.style;var z=x.role;var y=x.ariaSelected;var c=x.ariaLabel;var W=x.ariaHidden;var e=x.ariaLabelledby;var Q=x.ariaDescribedby;var p=x.command;var V=x.elementsCommand;var L=x.forceNewState;var r=x.tabIdentifier;var H=x.target;var O=x.tabIndex;var A=x.stopPropagation;x=_.V9(function(){var g=_.XB({innertubeCommand:p==null?void 0:p(),elementsCommand:V==null?void 0:V(),forceNewState:L==null?void 0:L(),stopPropagation:(A==null?void 0:A())!==
!1});g||(g={});g["aria-hidden$"]=W==null?void 0:W();var u;g.tabindex$=(u=O==null?void 0:O())!=null?u:g.tabindex$;var f;g["force-new-state$"]=(f=L==null?void 0:L())!=null?f:g["force-new-state$"];var v;g.role$=(v=z==null?void 0:z())!=null?v:g.role$;var P;g["aria-hidden$"]=(P=W==null?void 0:W())!=null?P:g["aria-hidden$"];var k;g.target$=(k=H==null?void 0:H())!=null?k:g.target$;return g},void 0,"SU0Mnc");
return _.M(_.hG,{aTagConfig:x,className:D,style:K,ariaLabel:c,ariaLabelledby:e,ariaDescribedby:Q,ariaSelected:y,tabIdentifier:r},G)},"la");var rTJ=_.TY(FrP);_.E9(FrP);_.tn(rTJ,"place-data-view-model",{props:{data:_.ik}});var szh=new _.wq("INLINE_PLAYBACK_HOOK_TOKEN");var YG8=function(x){this.setActiveSlideIndex=x;this.jobIds=[];this.isSlideshowPlaying=!1},$NJ=function(x,G){x.isSlideshowPlaying||(x.isSlideshowPlaying=!0,mN9(x),HP7(x,G,0))},mN9=function(x){_.x7(_.Fj,function(){x.setActiveSlideIndex(0)},1)},HP7=function(x,G,D){x.jobIds.push(_.x7(_.Fj,function(){var K=D<G-1?D+1:0;
x.setActiveSlideIndex(K);HP7(x,G,K)},1800))};var FOu=new _.wq("IMAGE_ON_LOAD_HANDLER_TOKEN");var CZi=_.Nv(function(x){return _.M("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.M(_.b,{cond:function(){var G;return(G=x.data())==null?void 0:G.thumbnail},
then:function(G){return _.M(_.wk,{data:G,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ma");_.I4h=_.Nv(function(x){var G=x.data;var D=x.lockupExperiments;x={};return _.M("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.M("div",{class:_.ym("ytThumbnailOverlayButtonViewModelButton",(x.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var K;return D&&((K=D())==null?void 0:K.useLegacySizedIconButton)},x))},_.M(_.bA,{data:function(){return G().overlayButton}},{buttonViewModel:function(K){return _.M(_.Cs,{data:K.data,
buttonOverrides:function(){var z;return D&&((z=D())==null?0:z.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"na");
_.I4h.idomCompat=!0;var jzs=_.Nv(function(x){return _.M("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.WH(function(G){G.preventDefault();return!1})},_.M(_.bA,{data:function(){return x.data().buttons}},{toggleButtonViewModel:function(G){return _.M("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.M(_.rl,{data:G.data}))}}))},"oa");
jzs.idomCompat=!0;var OP8=_.Nv(function(x){var G=function(){var D;return((D=_.Y(x.data().rendererContext,_.Wo))==null?void 0:D.label)||""};
return _.M("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.M(_.b,{cond:function(){return x.data().image},
then:function(){return _.M("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.M(_.wk,{data:function(){return x.data().image},
alt:G}))}}),_.M(_.b,{cond:function(){return x.data().text},
then:function(){return _.M("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return x.data().text})}}))},"pa");_.dR=_.Nv(function(x){var G=[],D=function(){var L,r;return BD3((L=x.width)==null?void 0:L.call(x),(r=x.height)==null?void 0:r.call(x))},K=_.Eo().resolve(_.P6(FOu)),z=_.qi(function(){G.push("elRef.value set");
var L;(L=x.playbackRef)==null||L.call(x,{thumbnailElRef:z,thumbnail:x.data().image,thumbnailOverlays:x.data().overlays,thumbnailSize:D()})});
_.FQ(function(){G.push("onInit");_.Fq(function(){G.push("onCleanup")})});
var y=_.F8(I5C),c=function(){var L,r;return(r=(L=x.aspectRatio)==null?void 0:L.call(x))!=null?r:0},W=function(){return(x.data().image?_.GqP(x.data().image):c())<=1&&c()===0},e=function(){return W()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},Q=function(){z.value||_.O9(new _.LL("Thumbnail elRef.value is null",G.join("\n")));
K&&z.value&&K(z.value)},p=function(){var L,r;
return((L=x.hovered)==null?void 0:L.call(x))&&D()!=="large"&&((r=x.data().overlays)==null?void 0:r.some(function(H){return _.Y(H,Xpi)}))},V={};
return _.M("yt-thumbnail-view-model",{class:_.ym("yt-thumbnail-view-model",x.className,function(){return XQO(c())},function(){var L,r;
a:{var H=D(),O=(L=x.disableRounding)==null?void 0:L.call(x);L=(r=x.isClip)==null?void 0:r.call(x);if(!O&&!L)switch(H){case "large":r="yt-thumbnail-view-model--large";break a;case "small":r="yt-thumbnail-view-model--small";break a;default:r="yt-thumbnail-view-model--medium";break a}r=void 0}return r},(V["yt-thumbnail-view-model--cinematic"]=W,V)),
style:_.Ms({"background-color":function(){var L,r=W()?(L=x.data().backgroundColor)==null?void 0:L.lightTheme:void 0;return r?O4(r,"1"):void 0}}),
el:z},_.M(_.b,{cond:W,then:function(){return _.M("div",{class:"yt-thumbnail-view-model__blurred-image"},_.M(_.wk,{data:function(){return x.data().image},
alt:"",contentMode:e,targetWidth:x.width,onload:Q}))}}),_.M("div",{class:"yt-thumbnail-view-model__image"},_.M(_.wk,{data:function(){return x.data().image},
alt:"",contentMode:e,targetWidth:x.width,onload:Q}),null),_.M(_.bA,{data:function(){return p()?void 0:x.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:iOo,thumbnailOverlayBadgeViewModel:function(L){return _.M(g4J,{data:L.data,thumbnailSize:D,isClip:x.isClip})},
thumbnailBottomOverlayViewModel:UjE,thumbnailOverlayFullViewModel:OP8,thumbnailOverlayButtonViewModel:function(L){return _.M(_.I4h,{data:L.data,lockupExperiments:x.lockupExperiments})}}),_.M(_.bA,{data:function(){var L;
return((L=x.hovered)==null?0:L.call(x))?x.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(L){return _.M(bu,{data:L.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:jzs}),_.M(_.bA,{data:function(){var L;return((L=x.hovered)==null?0:L.call(x))&&y()?x.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:CZi}),_.M(_.b,{cond:x.isClip,then:function(){return _.M("div",{class:"yt-pinking"},_.M("svg",{class:"yt-pinking__pinking-left"},_.M("defs",null,_.M("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.M("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.M("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.M("svg",{class:"yt-pinking__pinking-right"},_.M("defs",null,_.M("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.M("polygon",{class:"yt-pinking__pinking",points:"4,0 0,4 4,8"}))),_.M("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"qa");
_.dR.idomCompat={callbacks:{playbackRef:!0}};var XWJ=_.Nv(function(x){var G=_.l(_.eO(-1,void 0,"IOLZ0b")),D=G.next().value,K=G.next().value;_.FQ(function(){var z=new YG8(K);$NJ(z,x.data().thumbnails.length);_.Fq(function(){if(z.isSlideshowPlaying){z.isSlideshowPlaying=!1;for(var y=z.jobIds,c=0,W=y.length;c<W;c++)_.Fj.cancelJob(y[c]);z.jobIds.length=0}})});
return _.M("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.M(_.bA,{data:function(){return x.data().thumbnails}},{thumbnailViewModel:function(z,y){return _.M("div",{class:function(){var c=!x.data().primaryThumbnail,W=y(),e=D(),Q=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
c&&W===0&&Q.push("yt-collection-thumbnail-slideshow--first-slide");W<=e&&Q.push("yt-collection-thumbnail-slideshow--show-slide");return Q.join(" ")}},_.M(_.dR,{data:z.data,
disableRounding:x.disableRounding}))}}))},"ra");
XWJ.idomCompat=!0;var AAE=new _.wq("DWELL_DETECTOR_REGISTRY_TOKEN");var UNi=_.Nv(function(x){var G=Ue3(x.triggeringElement),D=function(){return!!x.data().primaryThumbnail};
return _.M("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.M(ATs,{stackEnabled:D,thumbnailSize:function(){var K,z;return BD3((K=x.width)==null?void 0:K.call(x),(z=x.height)==null?void 0:z.call(x))},
doubleStack:x.doubleStack,stackColor:function(){return x.data().stackColor}},_.M("div",null,_.M(_.bA,{data:function(){return x.data().primaryThumbnail}},{thumbnailViewModel:function(K){var z={};
return _.M(_.dR,{data:K.data,width:x.width,height:x.height,aspectRatio:x.aspectRatio,disableRounding:x.disableRounding,className:_.ym((z["yt-collection-thumbnail-view-model--has-stacks"]=D,z)),hovered:x.hovered,playbackRef:x.playbackRef})}}),_.M(_.b,{cond:function(){var K;
return G()&&((K=x.data().thumbnails)==null?void 0:K.length)},
then:function(){return _.M("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.M(XWJ,{data:x.data,disableRounding:function(){return!D()}}))}}))))},"sa");
UNi.idomCompat={callbacks:{playbackRef:!0}};
var ATs=_.Nv(function(x){var G=x.children;var D=x.stackEnabled;var K=x.thumbnailSize;var z=x.doubleStack;var y=x.stackColor;var c,W=(c=_.Eo().resolve(_.P6(_.ib)))==null?void 0:c();return _.M(_.b,{cond:D,then:function(){return _.M(Tsu,{data:function(){var e,Q;return{experimentEnabled:!0,thumbnailSize:K(),doubleStack:z==null?void 0:z(),color:W?y==null?void 0:(e=y())==null?void 0:e.darkTheme:y==null?void 0:(Q=y())==null?void 0:Q.lightTheme,enableResponsiveMode:!1}}},G)},
else:function(){return G}})},"ta");var Rvs=new _.wq("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var qg;_.wR={calledOnce:!0,state:"visible"};qg={calledOnce:!0,state:"hidden"};_.Ng=_.Nv(function(x){var G=x.data;var D=x.customCommandResolver;var K=x.className;var z=x.delayedClassName;x=x.animationEntityKey;var y=_.qi(),c=_.wc(x,""),W=_.lA(b8d,c),e=function(){var k,cL;return(cL=(k=W())==null?void 0:k.value)!=null?cL:!1},Q=function(){_.dc(_.cq("booleanEntity",c(),{key:c(),
value:!0}));g=void 0};
x=_.l(_.ZX(e));var p=x.next().value,V=x.next().value;x=_.l(_.ZX(e));var L=x.next().value,r=x.next().value;x=_.l(_.ZX(function(){var k;return e()?(k=G().styleTransitionConfig)==null?void 0:k.destinationStyle:void 0}));
var H=x.next().value,O=x.next().value,A=function(){var k=Object.assign({},G(),H()&&{style:H()}),cL,bO,mE=k.label,jf=(cL=k.interaction)==null?void 0:(bO=cL.accessibility)==null?void 0:bO.label;cL=k.iconImage?k.label&&k.label.content?k.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:mE,accessibilityLabel:jf,style:ikL(k.style),type:gUn(k.style),state:"active",size:nUD(k.size),iconPosition:cL,disabled:!1,aTagConfig:SlP(k,D)}},g;
_.Pw(y,{visibilityCallback:function(k){var cL,bO=(cL=G().interaction)==null?void 0:cL.onFirstVisible;k&&bO&&_.UI(bO)},
showOption:_.wR});var u=function(){return pH(A(),!!G().iconImage)};
K=_.ym(function(){return"ytwAdButtonViewModelHost"},function(){return G().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var k=!!G().delayedAppearanceConfig,cL=p();
return k?cL?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var k=!!G().delayedAppearanceConfig,cL=L();
return k?cL?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!G().delayedAppearanceConfig||p()?z==null?void 0:z():""},K!=null?K:"");
var f=function(){var k,cL=(k=G().delayedAppearanceConfig)==null?void 0:k.delayedInvisibleSeconds;cL&&(g=_.eU(_.Fj,function(){V(!0);v()},cL*1E3))},v=function(){var k,cL=(k=G().delayedAppearanceConfig)==null?void 0:k.delayedVisibleSeconds;
cL&&(g=_.eU(_.Fj,function(){r(!0);P()},cL*1E3))},P=function(){var k,cL=(k=G().styleTransitionConfig)==null?void 0:k.styleTransitionSeconds,bO,mE=(bO=G().styleTransitionConfig)==null?void 0:bO.destinationStyle;
cL&&mE?g=_.eU(_.Fj,function(){O(mE);Q()},cL*1E3):Q()};
_.FQ(function(){var k;((k=G().delayedAppearanceConfig)==null?0:k.transitionDurationSeconds)&&y.value.style.setProperty("transition-duration",G().delayedAppearanceConfig.transitionDurationSeconds+"s");f()});
_.Fq(function(){g&&_.Fj.cancelJob(g)});
return _.M("ad-button-view-model",{class:K,el:y},_.M(_.b,{cond:A,then:function(){return _.M(fs,{data:A,icon:function(){return _.M(_.b,{cond:function(){return G().iconImage},
then:function(k){return _.M(_.wk,{data:k,alt:"",targetWidth:u,targetHeight:u,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"ua");var SGo=_.Nv(function(x){var G=x.data;x=_.qi();_.Pw(x,{visibilityCallback:function(K){var z,y=(z=G().interaction)==null?void 0:z.onFirstVisible;K&&y&&_.UI(y)},
showOption:_.wR});var D={};return _.M("ad-button-group-view-model",{class:_.ym("ytwAdButtonGroupViewModelHost",(D.ytwAdButtonGroupViewModelHostCompactWidth=function(){return G().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"},D)),
el:x},_.M("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.M(_.bA,{data:function(){return G().secondaryAdButton}},{adButtonViewModel:function(K){return _.M(_.Ng,{data:K.data})}})),_.M("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.M(_.bA,{data:function(){return G().primaryAdButton}},{adButtonViewModel:function(K){return _.M(_.Ng,{data:K.data})}})))},"va");var nZi=_.Nv(function(x){var G=function(){var D;return((D=x.data())==null?void 0:D.answers)||[]};
return _.M("yt-survey-icons",{class:"ytSurveyIconsHost"},_.M("div",{class:"ytSurveyIconsHeader"},_.M("div",{class:"ytSurveyIconsTitle"},function(){var D;return(D=x.data())==null?void 0:D.text}),_.M("div",null,_.M(fs,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var D;(D=x.onDismiss)==null||D.call(x)}}},
iconName:"DISMISSAL"}))),_.M("div",null,_.M("div",{class:"ytSurveyIconsAnswers"},_.M(_.LT,{each:function(){return G()},
keyBy:"INDEX"},function(D,K){return _.M("div",null,_.M(fs,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var z;(z=x.onSelect)==null||z.call(x,D(),K)}}},
icon:function(){return _.M(_.Qm,{icon:function(){var z,y;return(z=D())==null?void 0:(y=z.icon)==null?void 0:y.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.M("div",{class:"ytSurveyIconsAnswersText"},_.M("div",null,function(){return G().length?G()[0].text:""}),_.M("div",null,function(){return G().length?G()[G().length-1].text:""}))))},"wa");var iPh=_.Nv(function(x){var G=_.l(_.eO(!1,void 0,"s8HkOb")),D=G.next().value,K=G.next().value,z=_.lA(LOf,function(){var W;return(W=x.data().keys)==null?void 0:W.surveyEntityKey}),y=_.lA(BLL,function(){var W;
return(W=x.data().keys)==null?void 0:W.surveyStateEntityKey});
_.wu("ytd-slimline-survey-show-action",function(){K(!1)});
var c=function(){var W,e;var Q=(W=y())==null?void 0:(e=W.questionStack)==null?void 0:e[0];if(Q!==void 0){var p,V;return(p=z())==null?void 0:(V=p.questions)==null?void 0:V[Q]}};
G={};return _.M("yt-slimline-survey-view-model",{class:_.ym("ytSlimlineSurveyViewModelHost",(G.ytSlimlineSurveyViewModelCollapsed=function(){return D()},G))},_.M("div",{class:"ytSlimlineSurveyViewModelContainer"},_.M(_.b,{cond:function(){var W;
return((W=c())==null?void 0:W.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.M(nZi,{data:function(){return c()},
onSelect:function(W,e){var Q,p;return _.T(function(V){K(!0);if(p=(Q=x.data())==null?void 0:Q.onSelectRating)_.UI(p),_.dc(DEq(e));_.c5(V)})},
onDismiss:function(){K(!0)}})}})))},"xa");var gZ9=_.Nv(function(x){return _.M("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.M(_.bA,{data:function(){var G;return(G=x.data())==null?void 0:G.attachments}},{flexibleActionsViewModel:function(G){return _.M("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.M(m3E,{data:G.data,
layout:function(){var D;return((D=x.lockupStyle())==null?void 0:D.arrangement)===1?0:1},
justifyContentOverride:function(){var D;return((D=x.lockupStyle())==null?void 0:D.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(G){return _.M("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.M(iPh,{data:G.data}))},
expandableMetadataViewModel:function(G){G=G.data;var D;return _.M("div",{class:"ytLockupAttachmentsViewModelAttachment"},(D=_.Eo().resolve(_.P6(Rvs)))==null?void 0:D({data:G}))},
adButtonGroupViewModel:function(G){return _.M("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.M(SGo,{data:G.data}))}}))},"ya");var vUf=_.Gz("rich_grid_min_item_width",310),qlh=_.Gz("rich_grid_max_item_width",500);var z3$=_.Nv(function(x){var G=x.data;return _.M("br-nz-badge-shape",{class:_.ym(function(){return xx3(G().brNzRatingBadgeType)}),
role:function(){return G().accessibilityText?"img":void 0},
"aria-label":function(){return G().accessibilityText}},function(){var D;
return(D=G())==null?void 0:D.text})},"za");_.E9(aAD);var uU0,dNi;uU0=_.Nv(function(x){var G=function(){var D=x.data(),K,z;return D?K$3(D,!((K=x.workaroundShortsIsThumbnailBadge)==null||!K.call(x)),(z=x.modern)==null?void 0:z.call(x)):void 0};
return _.M("yt-badge-view-model",{class:_.ym("yt-badge-view-model-wiz",x.class)},_.M(_.so,null,_.M(_.B6,{when:function(){var D;return!((D=G())==null||!D.brNzRatingBadgeType)}},function(){return _.M(z3$,{data:function(){return G()}})}),_.M(_.B6,{when:function(){return!!G()&&!G().brNzRatingBadgeType}},function(){return _.M(_.qF,{data:function(){return G()}})})))},"Aa");
dNi=_.B("web_enable_sink_yt_badge_view_model")?uU0:aAD;_.v2=_.B("web_enable_sink_yt_badge_view_model")?uU0:_.TY(aAD);uU0.idomCompat=!0;var ywE,oFL;ywE=16/9;oFL=2/3;_.JK=_.Nv(function(x){var G=x.data;var D=x.className;var K=x.imageSizeConfig;var z=x.notifyOnLoaded;x=_.qi();var y=function(){return G().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},c=function(){var r;
return _.ns((r=G())==null?void 0:r.rendererContext)},W={};
W=(W["yt-content-preview-image-view-model-wiz"]=!0,W["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return y()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},W["yt-content-preview-image-view-model-wiz--tappable"]=function(){return c()},W);
var e=function(){var r,H;return(H=(r=_.Y(G().rendererContext,_.Wo))==null?void 0:r.label)!=null?H:""},Q=function(){return cwL(G())},p=function(){var r=lA$(y(),G().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",K==null?void 0:K(),Tzn(Q()),G().layoutWidth,G().layoutHeight),H=Object.assign({},r);
r.width&&(H.width=Math.round(r.width));r.height&&(H.height=Math.round(r.height));r.maxWidth&&(H.maxWidth=Math.round(r.maxWidth));r.maxHeight&&(H.maxHeight=Math.round(r.maxHeight));return H},V=_.V9(function(){return p().height},void 0,"QOtei"),L=_.V9(function(){return p().width},void 0,"rKpuNc");
_.iA(x,function(){var r;return(r=G())==null?void 0:r.rendererContext});
return _.M("yt-content-preview-image-view-model",{el:x,role:function(){return c()?"link":void 0},
tabindex:function(){return c()?0:void 0},
class:_.ym(D,W,function(){var r=y();var H=K==null?void 0:K();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"?(H==null?void 0:H.size)!=null&&H.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(H==null?void 0:H.size)!=null&&H.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(){var r=p(),H=[];r.width&&H.push("width: "+r.width+"px");r.height&&H.push("height: "+r.height+"px");r.maxWidth&&H.push("max-width: "+r.maxWidth+"px");r.maxHeight&&H.push("max-height: "+r.maxHeight+"px");r.fullWidth&&H.push("width: 100%");return H.join(";")}},_.M(_.b,{cond:Q,
then:function(r){return _.M(_.wk,{data:r,alt:e,"data-disabled$":function(){return!e()},
notifyOnLoaded:z,targetWidth:L,targetHeight:V,preserveWidth:function(){return!!L()},
preserveHeight:function(){return!!V()}})}}),_.M(_.bA,{data:function(){var r;
return(r=G())==null?void 0:r.overlays}},{thumbnailHoverOverlayViewModel:bu,
thumbnailOverlayButtonViewModel:_.I4h}))},"Ba");
_.JK.idomCompat=!0;var qGZ=_.Nv(function(x){var G=x.data;var D=x.className;var K=x.useSmallLayout;var z=x.useMediumText;x=_.qi();var y={};z=(y["yt-attribution-view-model-wiz"]=!0,y["yt-attribution-view-model-wiz--medium-text"]=z,y);_.iA(x,function(){var c;return(c=G())==null?void 0:c.rendererContext});
return _.M("yt-attribution-view-model",{el:x,class:_.ym(D,z)},_.M(_.b,{cond:function(){return _.ns(G().rendererContext)},
then:function(){return _.M("button",{class:"yt-attribution-view-model-wiz--tappable"},_.M(wWJ,{data:G,useSmallLayout:K}))},
else:function(){return _.M(wWJ,{data:G,useSmallLayout:K})}}))},"Ca"),wWJ=_.Nv(function(x){var G=x.data;
var D=x.useSmallLayout;var K=function(){return{size:(D==null?0:D())?16:24}};
return _.M(_.xT,null,_.M(_.bA,{data:function(){return G().contentPreviewImage}},{contentPreviewImageViewModel:function(z){return _.M(_.JK,{data:z.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:K})}}),_.M(_.bA,{data:function(){return G().badge}},{badgeViewModel:function(z){return _.M(_.v2,{data:z.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.M(_.b,{cond:function(){return G().text},
then:function(){return _.M(_.vq,{text:function(){return G().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.M(_.b,{cond:function(){return G().suffix},
then:function(){return _.M(_.vq,{text:function(){return G().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"Da");
qGZ.idomCompat=!0;var VpV=_.MF({avatarStackViewModel:_.rR,badgeViewModel:dNi});_.E9(BzQ);var NLu,vZZ,JTq,f48,t9i,k39;NLu=_.Nv(function(x){var G=x.delimiter;var D=x.max;var K=x.index;var z=x.isStandalone;return _.M(_.b,{cond:function(){return D()-1>K()},
then:function(){var y={};return _.M("span",{class:_.ym("yt-content-metadata-view-model-wiz__delimiter",(y["yt-content-metadata-view-model-wiz__delimiter--standalone"]=z,y)),"aria-hidden":!0},G)}})},"Ea");
vZZ=_.Nv(function(x){var G=x.metadataPart;var D=x.maxLines;return _.M(_.vq,{text:function(){return G().text},
linkInheritColor:!0,className:function(){return rwV(D())},
userInput:!0})},"Fa");
JTq=_.Nv(function(x){var G=x.metadataPart;var D=x.maxLines;return _.M(_.b,{cond:function(){return G().tooltip},
then:function(K){return _.M("span",{title:K,role:"tooltip"},_.M(vZZ,{metadataPart:G,maxLines:D}))},
else:function(){return _.M(vZZ,{metadataPart:G,maxLines:D})}})},"Ga");
f48=_.Nv(function(x){var G=x.metadataPart;var D=x.isOverlay;var K=x.useMediumText;var z=x.hideAvatar;var y=function(){return G().maxLines!==void 0?G().maxLines:1};
return _.M(_.xT,null,_.M(_.bA,{data:function(){return G().avatarStack}},{avatarStackViewModel:function(c){return _.M(_.rR,{data:c.data,
isOverlay:D,useMediumText:K,hideAvatar:z})},
badgeViewModel:_.v2}),_.M(_.b,{cond:function(){return G().text},
then:function(){return _.M(JTq,{metadataPart:G,maxLines:y})}}))},"Ha");
t9i=_.Nv(function(x){var G=x.metadataRow;var D=x.isInline;var K=x.delimiter;var z=x.isOverlay;var y=x.useMediumText;var c=x.extensions;var W=function(){var Q;return e3n(c==null?void 0:(Q=c())==null?void 0:Q.lockupMetadata,G())},e=function(){return G().metadataParts||[]};
x={};return _.M("div",{class:_.ym("yt-content-metadata-view-model-wiz__metadata-row",(x["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=D,x["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var Q;return ZVQ(c==null?void 0:(Q=c())==null?void 0:Q.lockupMetadata,G())},x["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=function(){var Q;
return!!(c==null?0:(Q=c())==null?0:Q.lockupMetadata)&&G().badges&&!G().metadataParts},x))},_.M(_.bA,{data:function(){return G().badges}},{badgeViewModel:function(Q){return _.M("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.M(_.v2,{data:Q.data}))}}),_.M(_.LT,{each:e},function(Q,p){return _.M(_.xT,null,_.M(f48,{metadataPart:Q,
isOverlay:z,useMediumText:y,hideAvatar:W}),_.M(NLu,{delimiter:K,max:function(){return e().length},
index:p,isStandalone:!1}))}),_.M(_.b,{cond:function(){return G().isSpacerRow&&!D()},
then:function(){return _.M("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ia");
k39=_.Nv(function(x){var G=_.qv(x,{layout:0,isOverlay:!1});x=G.className;var D=G.data,K=G.layout,z=G.isOverlay,y=G.useMediumText,c=G.extensions;G=_.qi();var W=function(){return K()===0};
_.iA(G,function(){return D().rendererContext});
var e=function(){return D().metadataRows||[]},Q={};
return _.M("yt-content-metadata-view-model",{class:_.ym(x,"yt-content-metadata-view-model-wiz",(Q["yt-content-metadata-view-model-wiz--inline"]=W,Q["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.ns(D().rendererContext)},Q["yt-content-metadata-view-model-wiz--medium-text"]=y,Q)),
el:G},_.M(_.LT,{each:e},function(p,V){return _.M(_.xT,null,_.M(t9i,{metadataRow:p,isInline:W,delimiter:function(){return D().delimiter},
isOverlay:z,useMediumText:y,extensions:c}),_.M(_.b,{cond:function(){return W()&&!p.isSpacerRow},
then:function(){return _.M(NLu,{delimiter:function(){return D().delimiter},
max:function(){return e().length},
index:V,isStandalone:!0})}}))}))},"Ja");
_.PZi=_.B("web_enable_sink_yt_content_metadata_view_model")?k39:_.TY(BzQ);k39.idomCompat=!0;var EZJ=_.Nv(function(x){var G={};return _.M("yt-lockup-metadata-view-model",{class:_.ym("yt-lockup-metadata-view-model-wiz",function(){a:{var D=x.lockupStyle();if(D==null?0:D.isOverlay)D="yt-lockup-metadata-view-model-wiz--overlay";else switch(D==null?void 0:D.arrangement){case 1:D="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:D="yt-lockup-metadata-view-model-wiz--vertical"}}return D},function(){a:{var D=x.lockupStyle();
if(D==null?0:D.isTiny)D="yt-lockup-metadata-view-model-wiz--tiny";else switch(D==null?void 0:D.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":D="yt-lockup-metadata-view-model-wiz--compact";break a;default:D="yt-lockup-metadata-view-model-wiz--standard"}}return D},(G["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var D;
return(D=x.lockupStyle())==null?void 0:D.isOverlay},G["yt-lockup-metadata-view-model-wiz--card"]=function(){var D;
return(D=x.lockupStyle())==null?void 0:D.isCard},G["yt-lockup-metadata-view-model-wiz--centered"]=function(){var D;
return(D=x.lockupStyle())==null?void 0:D.isCentered},G["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var D;
return(D=x.lockupStyle())==null?void 0:D.typographyBump},G["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var D;
return(D=x.lockupStyle())==null?void 0:D.useLegacyTypography},G["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var D;
return(D=x.lockupStyle())==null?void 0:D.useRichGridLegacyTypography},G))},_.M(_.bA,{data:function(){return x.data().image}},{avatarStackViewModel:function(D){return _.M("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.M(_.rR,{data:D.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(D){return _.M("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.M(_.Lj,{data:D.data}))},
decoratedAvatarViewModel:function(D){return _.M("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.M(_.B2,{data:D.data}))}}),_.M("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.M("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var D;return(D=x.data().title)==null?void 0:D.content}},_.M(_.b,{cond:function(){return x.data().title},
then:function(D){return _.M(_.hG,{command:x.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:x.lockupAccessibilityLabel},_.M(_.vq,{text:D}))}})),_.M("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.M(_.bA,{data:function(){return x.data().metadata}},{contentMetadataViewModel:function(D){return _.M(_.PZi,{data:D.data,
layout:1,useMediumText:function(){var K,z;return((K=x.lockupStyle())==null?void 0:K.typographyBump)||((z=x.lockupStyle())==null?void 0:z.useRichGridLegacyTypography)},
extensions:function(){var K,z;return{lockupMetadata:{byline:{hideAvatar:((K=x.lockupStyle())==null?void 0:K.arrangement)===0,addPadding:((z=x.lockupStyle())==null?void 0:z.arrangement)===1}}}}})}})),_.M(_.bA,{data:function(){return x.data().attribution}},{attributionViewModel:function(D){return _.M("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},_.M(qGZ,{data:D.data,
useSmallLayout:!0}))}})),_.M("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.M(_.bA,{data:function(){return x.data().menuButton}},{buttonViewModel:function(D){return _.M(_.Cs,{data:D.data,
buttonOverrides:function(){var K;return((K=x.lockupStyle())==null?0:K.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ka");
EZJ.idomCompat=!0;var hv9=_.Nv(function(x){var G=_.qi();_.H6(function(){requestAnimationFrame(function(){_.Ju(G.value)})});
var D={},K={},z={};return _.M("notification-multi-action-renderer",{class:_.ym("ytNotificationMultiActionRendererHost",(D.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var y;return(y=x.useLegacyShelfStyle)==null?void 0:y.call(x)},D)),
el:G},_.M("span",{"aria-live":"polite",class:_.ym("ytNotificationMultiActionRendererTextContainer",(K.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var y;return(y=x.useLegacyShelfStyle)==null?void 0:y.call(x)},K))},_.M(_.vq,{text:function(){return x.data().responseText}})),_.M("div",{class:_.ym("ytNotificationMultiActionRendererButtonContainer",(z.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var y;
return(y=x.useLegacyShelfStyle)==null?void 0:y.call(x)},z))},_.M(_.bA,{data:function(){var y;
return(y=x.data().buttons)==null?void 0:y.map(function(c){if(c=c.buttonRenderer){var W,e=Object,Q=e.assign,p=(W=c.icon)==null?void 0:W.iconType;W=(W=c.command||c.serviceEndpoint||c.navigationEndpoint)?{innertubeCommand:W}:void 0;c={buttonViewModel:Q.call(e,{},{iconName:p,onTap:W,trackingParams:c.trackingParams,titleFormatted:c.text?_.$$(c.text):void 0},sod(c))}}else c=void 0;return c}).filter(function(c){return!!c})}},{buttonViewModel:function(y,c){return _.M("div",null,_.M(_.Cs,{data:y.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var W;return((W=x.useModernStyles)==null?0:W.call(x))?{type:c()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"La");var xe9=_.Nv(function(x){var G=_.qi();_.H6(function(){requestAnimationFrame(function(){_.Ju(G.value)})});
return _.M("notification-text-renderer",{el:G,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.M(_.vq,{text:function(){return x.data().successResponseText}}))},"Ma");_.GGq=_.Nv(function(x){var G=_.lA(Vhf,function(){var K;return YwL((K=x.contentId)==null?void 0:K.call(x))}),D=function(){var K;
return _.Y((K=G())==null?void 0:K.command,_.Zi)};
return _.M(_.b,{cond:function(){var K;if(!(K=D())){var z;K=_.Y((z=G())==null?void 0:z.command,SH0)}return K},
then:function(){return _.M(_.b,{cond:D,then:function(){var K={};return _.M("div",{class:_.ym("ytDismissibleItemReplacedContent",function(){var z;return mx3((z=x.aspectRatio)==null?void 0:z.call(x))})},_.M("div",{class:_.ym((K.ytDismissibleItemAspectRatioContainer=function(){var z;
return((z=x.aspectRatio)==null?void 0:z.call(x))!==void 0},K))},_.M(_.bA,{data:function(){var z;
return(z=D())==null?void 0:z.item}},{notificationMultiActionRenderer:function(z){return _.M(hv9,{data:z.data,
useModernStyles:x.useModernStyle,useLegacyShelfStyle:x.useLegacyShelfStyle})},
notificationTextRenderer:xe9})))}})},
else:x.children})},"Na");_.De7=_.Nv(function(x){var G=x.data;var D=x.customCommandResolver;x=_.Ni();var K=function(){var y;return((y=G().interaction)==null?0:y.onTap)?function(c){var W;R7f(c,(W=G().interaction)==null?void 0:W.onTap,D)}:void 0},z=function(){var y,c=G(),W=K(),e=(y=_.Y(G().rendererContext,_.Wo))==null?void 0:y.label;
a:switch(c.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":y=1;break a;default:y=0}return{size:F$O(c.size),type:y,onTap:W,accessibilityText:e}};
_.Pw(x,{visibilityCallback:function(y){var c,W=(c=G().interaction)==null?void 0:c.onFirstVisible;y&&W&&_.UI(W)},
showOption:_.wR});return _.M("ad-avatar-view-model",{class:function(){var y;return((y=G().interaction)==null?0:y.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:x},_.M(_.b,{cond:function(){return G().image},
then:function(y){return _.M(n4u,{data:z,image:y})}}))},"Oa");_.fj=_.Nv(function(x){x=_.qv(x,{hasDot:!1});var G=Object.assign({},x),D=x.data,K=x.hasDot;x=x.customCommandResolver;var z=(delete G.data,delete G.hasDot,delete G.customCommandResolver,G);G=function(){return D().style};
G!==void 0&&G!==null||_.iM(Error("Ah"));G=_.qi();_.dl(G,function(){return D().interaction},x);
return _.M("ad-badge-view-model",{class:_.ym(function(){var y;return((y=D().interaction)==null?0:y.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var y=z.adRenderingContextType();
D();return y==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:G},_.M(_.qF,{data:function(){var y;D();return{type:2,text:(y=D().label)==null?void 0:y.content,adsIncludeDot:K(),isOverlay:D().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Pa");var Kr7;_.tK=_.Nv(function(x){var G=x.data;var D=x.customCommandResolver;var K=x.adRenderingContextType;x=_.qi();_.dl(x,function(){return G().interaction},D);
_.Pw(x,{visibilityCallback:function(z){var y,c=(y=G().interaction)==null?void 0:y.onFirstVisible;z&&c&&_.UI(c)},
showOption:_.wR});return _.M("ad-details-line-view-model",{class:function(){var z;return((z=G().interaction)==null?0:z.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:x},_.M(_.b,{cond:function(){return G().style},
then:function(z){return _.M(_.LT,{each:function(){var y;return((y=G())==null?void 0:y.attributes)||[]},
keyBy:"INDEX"},function(y){return _.M(Kr7,{attribute:y,style:z,adRenderingContextType:function(){return K()}})})}}))},"Qa");
Kr7=_.Nv(function(x){var G=x.attribute;var D=x.style;var K=x.adRenderingContextType;return _.M(_.b,{cond:function(){return G().text},
then:function(z){return _.M(_.vq,{text:z,className:function(){var y=K();D();return y==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Ra");var z7Z=_.Nv(function(x){var G=x.data;var D=x.typographyBump;var K=function(){return G().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
x={};return _.M(_.xT,null,_.M("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.M(_.vq,{text:function(){return G().headline},
className:_.ym("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(x.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return K==null?void 0:K()},x.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(D==null?void 0:D())&&!(K==null?0:K())},x)),
linkInheritColor:!0}),_.M(_.b,{cond:function(){return G().description},
then:function(z){var y={};return _.M(_.vq,{text:z,className:_.ym("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(y.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return K==null?void 0:K()},y.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(D==null?void 0:D())&&!(K==null?0:K())},y)),
linkInheritColor:!0})}}),_.M(_.b,{cond:function(){return G().secondaryDescription},
then:function(z){var y={};return _.M(_.vq,{text:z,className:_.ym("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(y.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return D==null?void 0:D()},y)),
linkInheritColor:!0})}}),_.M("div",{class:function(){return K()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.M(_.b,{cond:function(){return G().adAvatar},
then:function(){return _.M("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.M(_.bA,{data:function(){return G().adAvatar}},{adAvatarViewModel:_.De7}))}}),_.M(_.bA,{data:function(){return G().adBadge}},{adBadgeViewModel:function(z){return _.M(_.fj,{data:z.data,
hasDot:function(){return!!G().adDetailsLine},
adRenderingContextType:function(){return G().adRenderingContextType}})}}),_.M(_.bA,{data:function(){return G().adDetailsLine}},{adDetailsLineViewModel:function(z){return _.M(_.tK,{data:z.data,
adRenderingContextType:function(){return G().adRenderingContextType}})}}))),_.M("div",{class:function(){return K()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.M(_.bA,{data:function(){return G().menu}},{buttonViewModel:function(z){return _.M(_.Cs,{data:z.data,
buttonOverrides:function(){a:switch(G().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var y="S";break a;default:y="M"}return{size:y}}})}})))},"Sa"),a59=_.Nv(function(x){var G=x.data;
var D=x.noBottomMargin;var K=x.useVideoLockupTopPadding;var z=x.typographyBump;x={};x=_.ym("ytwFeedAdMetadataViewModelHostMetadata",(x.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return D==null?void 0:D()},x.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return K==null?void 0:K()},x));
var y=function(){return G().adBadge};
y!==void 0&&y!==null||_.iM(Error("Bh"));y={};var c={};return _.M(_.xT,null,_.M(_.b,{cond:function(){return G().adAvatar},
then:function(){return _.M("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.M(_.bA,{data:function(){return G().adAvatar}},{adAvatarViewModel:function(W){return _.M(_.De7,{data:W.data})}}))}}),_.M("div",{class:x},_.M("div",{class:_.ym("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(y.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return z==null?void 0:z()},y.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(z==
null?void 0:z())&&_.B("web_enable_typography_bump_v2")},y))},_.M(_.vq,{text:function(){return G().headline},
linkInheritColor:!0})),_.M(_.b,{cond:function(){return G().description},
then:function(W){return _.M(_.vq,{text:W,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.M("div",{class:function(){return G().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.B("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.M(_.bA,{data:function(){return G().adBadge}},
{adBadgeViewModel:function(W){return _.M(_.fj,{data:W.data,
hasDot:function(){return!!G().adDetailsLine},
adRenderingContextType:function(){return G().adRenderingContextType}})}}),_.M(_.bA,{data:function(){return G().adDetailsLine}},{adDetailsLineViewModel:function(W){return _.M(_.tK,{data:W.data,
adRenderingContextType:function(){return G().adRenderingContextType}})}})),_.M(_.b,{cond:function(){return G().secondaryDescription},
then:function(W){return _.M(_.vq,{text:W,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.M("div",{class:_.ym("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(c.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return K==null?void 0:K()},c))},_.M(_.bA,{data:function(){return G().menu}},{buttonViewModel:_.Cs})))},"Ta"),oUJ=_.Nv(function(x){var G=x.data;
var D=x.noBottomMargin;var K=x.listenToTapEvent;var z=x.setTouchEndHandler;var y=x.useVideoLockupTopPadding;var c=x.typographyBump;var W=_.qi();_.dl(W,function(){return G().interaction},void 0,function(){return K==null?void 0:K()});
x=_.l(_.eO(!1,void 0,"qjt0Xc"));var e=x.next().value,Q=x.next().value;x=_.WH(function(){(z==null?0:z())&&!e()&&(W.value.click(),Q(!0),setTimeout(function(){Q(!1)},100));
return!1});
_.Pw(W,{visibilityCallback:function(p){var V,L=(V=G().interaction)==null?void 0:V.onFirstVisible;p&&L&&_.UI(L)},
showOption:_.wR});return _.M("feed-ad-metadata-view-model",{class:function(){var p;return((p=G().interaction)==null?0:p.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:W,"on:touchend":x},_.M(_.so,null,_.M(_.B6,{when:function(){return G().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.M(z7Z,{data:G,
typographyBump:c})}),_.M(_.B6,{when:function(){return G().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.M(a59,{data:G,
noBottomMargin:D,useVideoLockupTopPadding:y,typographyBump:c})})))},"Ua");var yAo;_.kc=_.Nv(function(x){return _.M("yt-lockup-view-model",{class:_.ym(x.className)},_.M(_.GGq,{contentId:function(){return x.data().contentId},
useModernStyle:!0,aspectRatio:function(){var G,D;return((G=x.containerType)==null?void 0:G.call(x))!==3?EUE(x.data().contentType,(D=x.force16By9ThumbnailAspectRatio)==null?void 0:D.call(x)):void 0}},function(){return _.M(yAo,Object.assign({},x))}))},"Va");
yAo=_.Nv(function(x){x=_.qv(x,{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 G=x.data,D=x.containerLayoutConfig,K=x.containerType,z=x.sizing,y=x.protectBackground,c=x.typographyBump,W=x.force16By9ThumbnailAspectRatio,e=x.thumbnailFixedWidth,Q=x.thumbnailTargetWidth,p=x.lockupExperiments,V=x.elementsPerRow;
x=_.qi();_.iA(x,function(){var OD;return(OD=G())==null?void 0:OD.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0);var L=_.F8(jkh),r=_.Eo().resolve(_.P6(szh)),H=r?{}:void 0,O=function(){var OD,wn,n$;return(n$=(wn=_.Y((OD=G())==null?void 0:OD.rendererContext,_.Wo))==null?void 0:wn.label)!=null?n$:void 0},A=function(){var OD=D==null?void 0:D(),wn;
if(OD==null?0:OD.containerType){var n$=(wn=G())==null?void 0:wn.contentType;wn=p();var Fi=c(),pf=Q(),UE=y();OD=Object.assign({},h7C(tAV(OD),JAD(OD.responsiveSize),Fi,n$,OD.force16By9ThumbnailAspectRatio,pf,UE,wn),{thumbnailFixedWidth:OD.contentPreviewWidth})}else OD=h7C(K(),z(),c(),(n$=G())==null?void 0:n$.contentType,W(),Q(),y(),p());return OD};
r&&H&&r({enabled:function(){return L()},
itemPlaybackModel:function(){return G().itemPlayback},
thumbnailElRef:function(){return H.thumbnailElRef},
containerElRef:x,options:function(){var OD,wn=(OD=_.Y(G().metadata,$70))==null?void 0:OD.endorsement;OD=H.thumbnailOverlays||[];wn&&OD.push(wn);var n$,Fi;return{thumbnail:H.thumbnail,thumbnailOverlays:OD,accessibilityText:O(),thumbnailSize:H.thumbnailSize,enableRounding:A().isCollection,containPlayerWithinThumbnail:A().isCollection,trackingParams:(n$=_.Y(G().rendererContext,_.ZJ))==null?void 0:(Fi=n$.loggingDirectives)==null?void 0:Fi.trackingParams}}});
var g=0;r=_.l(_.eO(!1,void 0,"HzAs3"));var u=r.next().value,f=r.next().value;r=_.l(_.eO(!1,void 0,"ujOXud"));var v=r.next().value,P=r.next().value;r=_.WH(function(){var OD=L()&&G().itemPlayback;v()?(_.Fj.cancelJob(g),g=_.Fj.addJob(function(){f(!OD)},8,32)):f(!OD);
return!0});
var k=_.WH(function(){g&&(_.Fj.cancelJob(g),g=0);f(!1)});
_.Fq(function(){g&&(_.Fj.cancelJob(g),g=0)});
var cL=$xh(function(){P(!0)}),bO=cL.touchFeedbackEvents,mE=cL.touchFeedbackOnPointerUp,jf=cL.touchFeedbackOnPointerDown;
cL=cL.touchFeedbackOnPointerLeave;var $C={};return _.M("div",{el:x,class:_.ym("yt-lockup-view-model-wiz",function(){a:{var OD=A();if(OD.isOverlay)OD="yt-lockup-view-model-wiz--overlay";else switch(OD.arrangement){case 1:OD="yt-lockup-view-model-wiz--horizontal";break a;default:OD="yt-lockup-view-model-wiz--vertical"}}return OD},function(){a:{var OD=A();
if(OD.isOverlay)OD="yt-lockup-view-model-wiz--overlay";else{switch(OD.collectionStackNumber){case 1:OD="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:OD="yt-lockup-view-model-wiz--collection-stack-2";break a}OD=void 0}}return OD},($C["yt-lockup-view-model-wiz--card"]=function(){return A().isCard},$C["yt-lockup-view-model-wiz--compact"]=function(){return A().isTiny||A().sizing!=="STANDARD"},$C["yt-lockup-view-model-wiz--protect-background"]=y,$C["yt-lockup-view-model-wiz--add-margins"]=
function(){return A().addMarginForFullbleed},$C["yt-lockup-view-model-wiz--centered"]=function(){return A().isCentered},$C["yt-lockup-view-model-wiz--fullbleed"]=function(){return A().fullbleed},$C["yt-lockup-view-model-wiz--single-column-grid"]=function(){return V()===1&&K()===2},$C["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var OD;
return(OD=p())==null?void 0:OD.useRichGridLegacyMargin},$C)),
"on:mousedown":jf,"on:mouseleave":k,"on:mouseup":mE,"on:mouseover":r,"on:touchstart":jf,"on:touchend":mE,"on:pointerleave":cL},_.M(_.hG,{command:function(){var OD;return _.SU((OD=G())==null?void 0:OD.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return e()&&A().arrangement===1?"width: "+e():""}},_.M(_.bA,{data:function(){var OD;
return(OD=G())==null?void 0:OD.contentImage}},{thumbnailViewModel:function(OD){return _.M(_.dR,{data:OD.data,
aspectRatio:function(){return A().aspectRatio},
disableRounding:function(){return A().disableRounding},
width:Q,hovered:u,isClip:function(){var wn;return((wn=G())==null?void 0:wn.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:Cid(H),lockupExperiments:function(){return p()}})},
collectionThumbnailViewModel:function(OD){return _.M(UNi,{data:OD.data,aspectRatio:function(){return A().aspectRatio},
disableRounding:function(){return A().disableRounding},
width:Q,doubleStack:function(){return A().collectionStackNumber===2},
hovered:u,playbackRef:Cid(H)})},
decoratedAvatarViewModel:_.B2})),_.M("div",{class:"yt-lockup-view-model-wiz__metadata"},_.M(_.bA,{data:function(){var OD;return(OD=G())==null?void 0:OD.metadata}},{lockupMetadataViewModel:function(OD){return _.M(EZJ,{data:OD.data,
lockupStyle:A,lockupCommand:function(){var wn;return _.SU((wn=G())==null?void 0:wn.rendererContext)},
lockupAccessibilityLabel:function(){return O()}})},
feedAdMetadataViewModel:function(OD){return _.M(oUJ,{data:OD.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:c})}}),_.M(_.bA,{data:function(){var OD;
return(OD=G())==null?void 0:OD.attachmentSlot}},{lockupAttachmentsViewModel:function(OD){return _.M(gZ9,{data:OD.data,
lockupStyle:A})}})),_.M(_.b_,{model:function(){a:{switch(A().collectionStackNumber){case 1:var OD=8;
break a;case 2:OD=12;break a}OD=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:OD}},
pointerDownEvent:bO.pointerDownEvent,pointerUpEvent:bO.pointerUpEvent,pointerLeaveEvent:bO.pointerLeaveEvent}))},"Wa");
_.kc.idomCompat=!0;_.tn(_.kc,"yt-lockup-view-model",{props:{data:_.ik,containerLayoutConfig:_.ik,containerType:_.ik,sizing:_.ik,protectBackground:_.ik,typographyBump:_.ik,thumbnailFixedWidth:_.ik,thumbnailTargetWidth:_.ik,force16By9ThumbnailAspectRatio:_.ik,className:_.ik,lockupExperiments:_.ik,elementsPerRow:_.ik}});_.E9(Awf);var l5Z=_.TY(Awf,{callbacks:{onExpandClick:!0}});var gFf=_.MF({buttonViewModel:_.Cs}),cAZ=_.TY(nFE);_.E9(nFE);_.E9(R3d);_.E9(Swh);_.tn(cAZ,"yt-video-attribute-view-model",{props:{data:_.ik,className:_.ik}});var P2=function(){var x=_.n.apply(this,arguments)||this;x.useHighlightStyling=_.B("web_enable_deeper_metadata_highlight_styling");x.isSearch=!1;x.JSC$13043_lastScrollContainerWidth=NaN;x.pageLoadingFromNavigation=!1;x.currentIndex=0;x.supportComponentResize=!1;return x};
_.m(P2,_.n);_.a=P2.prototype;
_.a.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}}}}}};
_.a.attached=function(){document.addEventListener("yt-page-type-changed",_.ae(this,this.onPageChange))};
_.a.detached=function(){document.removeEventListener("yt-page-type-changed",_.ae(this,this.onPageChange))};
_.a.getItemsPath=function(){return"data.cards"};
_.a.onIronResize=function(){this.updateListStyles()};
_.a.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var x;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(x=this.data)==null?void 0:x.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.B("problem_walkthrough_sd")&&!!this.centerItems};
_.a.computeCardListStyle=function(x){return x||null};
_.a.computeEmpty=function(x){return!this.get("cards.length",x)};
_.a.computeThumbnailStyle=function(x){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",x)||null};
_.a.computeHasSubtitle=function(x){return!!this.get("header.richListHeaderRenderer.subtitle",x)};
_.a.computeInitialCountNumber=function(x){return this.hasSquareMiniApp&&x==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&x==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:x==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:x==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:x==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&x==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.a.computeUseFloorScrolling=function(x){return x==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.a.computeHasGameCard=function(x){return(x=this.get("cards",x))?x.some(function(G){return G.gameCardRenderer}):!1};
_.a.computeCenterHeaderTitle=function(x){return!(x==null||!x.centerHeaderTitle)};
_.a.computeHasPortraitMiniApp=function(x){return(x=x==null?void 0:x.cards)?x.some(function(G){return G.miniGameCardViewModel&&G.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.a.computeHasSquareMiniApp=function(x){return(x=x==null?void 0:x.cards)?x.some(function(G){return G.miniGameCardViewModel&&G.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.a.computeHasSkinnyWidthPortraitMiniApp=function(x){return(x=x==null?void 0:x.cards)?x.some(function(G){return G.miniGameCardViewModel&&G.miniGameCardViewModel.width===135}):!1};
_.a.computeCenterItems=function(x){return!!x};
_.a.computeHasInfoPanel=function(x){var G;return x==null?void 0:(G=x.cards)==null?void 0:G.some(function(D){return D.infoPanelContentRenderer})};
_.a.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.a.getItemByIndex=function(x){var G=this.items.children;return G&&G.length>x?G[x]:void 0};
_.a.onPageChange=function(){var x=this;this.pageLoadingFromNavigation=!0;_.Fj.addJob(function(){x.pageLoadingFromNavigation=!1;_.Gl(x.hostElement,"yt-terminate-video-preview-action")},8)};
_.a.updateListStyles=function(){if(_.B("problem_walkthrough_sd")&&this.JSC$13043_scrollContainer!==void 0){var x=this.JSC$13043_scrollContainer.clientWidth;x!==this.JSC$13043_lastScrollContainerWidth&&(this.JSC$13043_lastScrollContainerWidth=x,_.K7(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(x*.8,415)+"px"}),_.h$(this.hostElement,"iron-resize"))}};
_.Nq.Object.defineProperties(P2.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.B("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var x,G,D;return!!((x=this.data)==null?0:(G=x.cards)==null?0:(D=G[0])==null?0:D.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var x,G,D;return!!((x=this.data)==null?0:(G=x.cards)==null?0:(D=G[0])==null?0:D.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var x,G,D;return _.B("enable_desktop_amsterdam_info_panels")&&!!((x=this.data)==null?0:(G=x.cards)==null?0:(D=G[0])==null?0:D.infoPanelContentRenderer)}}});
P2.prototype.dataChanged=P2.prototype.dataChanged;P2.prototype.onIronResize=P2.prototype.onIronResize;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],P2.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],P2.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.tp.YtdHorizontalListBehavior),_.N("design:type",Object)],P2.prototype,"ytdHorizontalListBehavior",void 0);
_.q([_.I(_.CS),_.N("design:type",Object)],P2.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],P2.prototype,"data",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],P2.prototype,"useCustomColors",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],P2.prototype,"useHighlightStyling",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.N("design:type",Object)],P2.prototype,"cardListStyle",void 0);_.q([_.R({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.N("design:type",Boolean)],P2.prototype,"empty",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.N("design:type",Boolean)],P2.prototype,"hasSubtitle",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.N("design:type",Boolean)],P2.prototype,"thumbnailStyle",void 0);_.q([_.R({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.N("design:type",Boolean)],P2.prototype,"hasGameCard",void 0);_.q([_.R({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.N("design:type",Boolean)],P2.prototype,"centerHeaderTitle",void 0);
_.q([_.R({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.N("design:type",Boolean)],P2.prototype,"hasPortraitMiniApp",void 0);_.q([_.R({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.N("design:type",Boolean)],P2.prototype,"hasSquareMiniApp",void 0);_.q([_.R({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.N("design:type",Boolean)],P2.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.q([_.R({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.N("design:type",Boolean)],P2.prototype,"hasInfoPanel",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],P2.prototype,"isSearch",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],P2.prototype,"inlineStructuredDescription",void 0);_.q([_.cD("#scroll-container"),_.N("design:type",HTMLDivElement)],P2.prototype,"JSC$13043_scrollContainer",void 0);
_.q([_.R({computed:"computeInitialCountNumber(data.style.type)"}),_.N("design:type",Number)],P2.prototype,"initialCount",void 0);_.q([_.R({computed:"computeUseFloorScrolling(data.style.type)"}),_.N("design:type",Boolean)],P2.prototype,"useFloorScrolling",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.N("design:type",Boolean)],P2.prototype,"centerItems",void 0);_.q([_.R(),_.N("design:type",Object)],P2.prototype,"pageLoadingFromNavigation",void 0);
_.q([_.R(),_.N("design:type",Object)],P2.prototype,"currentIndex",void 0);_.q([_.R(),_.N("design:type",Number)],P2.prototype,"scrollCount",void 0);_.q([_.R(),_.N("design:type",Object)],P2.prototype,"supportComponentResize",void 0);_.q([_.cD("#items"),_.N("design:type",HTMLDivElement)],P2.prototype,"items",void 0);_.q([_.oe("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],P2.prototype,"onIronResize",null);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],P2.prototype,"dataChanged",null);_.q([_.R({reflectToAttribute:!0}),_.U("inlineStructuredDescription"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],P2.prototype,"hideNavigationButton",null);_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],P2.prototype,"modernChapters",null);
_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],P2.prototype,"hasVideoAttributeViewModels",null);_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],P2.prototype,"modernInfoPanels",null);P2=_.q([_.d({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],P2);
_.w(P2,"ytd-horizontal-card-list-renderer",function(){if(KOs!==void 0)return KOs;var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return KOs=x},{mode:_.Ge("kevlar_poly_si_batch_j072")?1:2});var TNs=_.Nv(function(x){var G=x.data;var D={};return _.M("video-summary-content-view-model",{class:_.ym("video-summary-content-view-model-wiz",x.className,(D["video-summary-content-view-model-wiz--is-search"]=x.isSearch,D))},_.M(_.LT,{each:function(){var K=[],z=G().paragraphs;if(z==null||!z.length)return[];for(var y=0;y<z.length;y++){var c=_.Y(z[y],XAZ),W=void 0;y>0&&(W=_.Y(z[y-1],XAZ));W&&!!W.marker===!!c.marker?K[K.length-1].paragraphs.push(c):K.push({isList:!!c.marker,paragraphs:[c]})}return K},
keyBy:"INDEX"},function(K){return _.M(_.b,{cond:function(){return K().isList},
then:function(){return _.M("ul",{class:"video-summary-content-view-model-wiz__list"},_.M(_.LT,{each:function(){return K().paragraphs},
keyBy:"INDEX"},function(z){return _.M("li",{class:"video-summary-content-view-model-wiz__list-item"},_.M(_.vq,{text:function(){return z().text}}))}))},
else:function(){return _.M(_.LT,{each:function(){return K().paragraphs},
keyBy:"INDEX"},function(z){return _.M("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.M(_.vq,{text:function(){return z().text}}))})}})}),_.M(_.b,{cond:function(){return!!_.Y(G().likeButtonViewModel,_.YL)&&!!_.Y(G().dislikeButtonViewModel,_.mY)},
then:function(){return _.M("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.M("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.M(_.mp,{data:function(){return _.Y(G().likeButtonViewModel,_.YL)},
disableIconAnimation:!0})),_.M(_.Yn,{data:function(){return _.Y(G().dislikeButtonViewModel,_.mY)}}))}}))},"Xa");
TNs.idomCompat=!0;_.tn(TNs,"video-summary-content-view-model",{props:{data:_.ik,isSearch:_.ik,className:_.ik}});var Eb=function(){var x=_.n.apply(this,arguments)||this;var G,D;x.isExpanded=(D=(G=x.data)==null?void 0:G.isExpanded)!=null?D:!1;x.disableExpand=!1;x.showProminentLabel=!1;x.showRightSideLabel=!0;x.toggleExpandableContent=function(K){x.disableExpand||(K.stopPropagation(),_.dG(_.gA(K),x.hostElement,["info","expanded-subtitle"])||(x.isExpanded=!x.isExpanded,x.ytRendererBehavior.logExplicitClick(x.data),x.JSC$13054_cardList&&!_.B("expandable_metadata_a11y_fix_ks")&&_.w1(x,function(){_.vS(x.hostElement)})))};
x.useSquareThumbnail=!1;x.startX=0;return x};
_.m(Eb,_.n);_.a=Eb.prototype;_.a.computeUseSquareThumbnail=function(){var x;return(x=this.data)==null?void 0:x.useSquareThumbnail};
_.a.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"}}}}};
_.a.dataChanged=function(){if(this.data){var x,G;this.isExpanded=(G=(x=this.data)==null?void 0:x.isExpanded)!=null?G:!1;var D,K,z,y;if(x=this.isDarkTheme()?(D=this.data)==null?void 0:(K=D.colorData)==null?void 0:K.darkColorPalette:(z=this.data)==null?void 0:(y=z.colorData)==null?void 0:y.lightColorPalette){var c,W;if((c=this.data)==null?0:(W=c.colorData)==null?0:W.vibrantColorPalette)x.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.Y7(this.hostElement,x)}}};
_.a.isExpandedChanged=function(){this.isExpanded&&this.JSC$13054_cardList&&_.h$(this.JSC$13054_cardList,"iron-resize")};
_.a.computeIsExpanded=function(x){return!!x.isExpanded};
_.a.computeShowProminentLabel=function(x,G){var D;return!!(x==null?0:(D=x.header)==null?0:D.showLeadingCollapsedLabel)&&!G};
_.a.computeShowRightSideLabel=function(x,G){var D;return!(x==null?0:(D=x.header)==null?0:D.showLeadingCollapsedLabel)&&!G};
_.a.captureContentClick=function(x){if(!this.disableExpand)if(_.B("expandable_metadata_fix_killswitch")){var G=x.target;_.jVo(G,"ytd-macro-markers-list-item-renderer")||x.stopPropagation();(G==null?void 0:G.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.dG(_.gA(x),this.hostElement,["items"])||_.u_(_.gA(x),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.a.timestampClick=function(x){x.stopPropagation();var G,D;(x=(G=this.data)==null?void 0:(D=G.header)==null?void 0:D.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(x)};
_.a.onDown=function(x){x.stopPropagation();this.startX=x.detail?x.detail.x:0};
_.a.onUp=function(x){this.skipKeyInteraction(x)&&x.stopPropagation()};
_.a.skipKeyInteraction=function(x){var G=x.target;if((G==null?void 0:G.id)==="scroll-container"||(G==null?void 0:G.id)==="items"||x.detail&&x.detail.x!==this.startX)return!0;x=_.gA(x);x=_.l(x);for(G=x.next();!G.done;G=x.next()){G=G.value;if(G===this.hostElement)break;if(G.hasAttribute&&G.hasAttribute("skip-key-interaction"))return!0}return!1};
_.a.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.Nq.Object.defineProperties(Eb.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var x;return!!_.Y((x=this.data)==null?void 0:x.expandedContent,Ow9)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var x;return!!_.Y((x=this.data)==null?void 0:x.expandedContent,_.FUJ)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var x,G;return!((x=this.data)==null||!x.useCustomColors)&&!((G=this.data)==null||!G.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var x,G;return!!((x=this.data)==null?0:(G=x.header)==null?0:G.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var x,G;return!!((x=this.data)==null?0:(G=x.header)==null?0:G.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var x,G;return!!((x=this.data)==null?0:(G=x.header)==null?0:G.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
Eb.prototype.onUp=Eb.prototype.onUp;Eb.prototype.onDown=Eb.prototype.onDown;Eb.prototype.isExpandedChanged=Eb.prototype.isExpandedChanged;Eb.prototype.dataChanged=Eb.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Eb.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Eb.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Eb.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Eb.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Eb.prototype,"isExpanded",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Eb.prototype,"disableExpand",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],Eb.prototype,"isSearch",void 0);
_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Eb.prototype,"isWatch",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.N("design:type",Object)],Eb.prototype,"showProminentLabel",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.N("design:type",Object)],Eb.prototype,"showRightSideLabel",void 0);
_.q([_.R({value:!1,reflectToAttribute:!0}),_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Eb.prototype,"hasVideoSummary",null);_.q([_.R({value:!1,reflectToAttribute:!0}),_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Eb.prototype,"hasLockupViewModel",null);_.q([_.R({reflectToAttribute:!0}),_.U("data","isWatch"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Eb.prototype,"useCustomColors",null);
_.q([_.R({reflectToAttribute:!0}),_.U("data","isExpanded"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Eb.prototype,"showInfoButton",null);_.q([_.U("data","isExpanded"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Eb.prototype,"showTimestamp",null);_.q([_.U("data","isExpanded"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Eb.prototype,"showExpandedSubtitle",null);
_.q([_.U("data","isExpanded"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Eb.prototype,"showThumbnail",null);_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Eb.prototype,"useVppShoppingDestinationStyle",null);_.q([_.R(),_.N("design:type",Object)],Eb.prototype,"toggleExpandableContent",void 0);_.q([_.cD("ytd-horizontal-card-list-renderer"),_.N("design:type",Object)],Eb.prototype,"JSC$13054_cardList",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.N("design:type",Object)],Eb.prototype,"useSquareThumbnail",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Eb.prototype,"dataChanged",null);_.q([_.yf("isExpanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Eb.prototype,"isExpandedChanged",null);
_.q([_.oe("down"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Eb.prototype,"onDown",null);_.q([_.oe("up"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Eb.prototype,"onUp",null);Eb=_.q([_.d({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],Eb);
_.w(Eb,"ytd-expandable-metadata-renderer",function(){if(eXs!==void 0)return eXs;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return eXs=x},{mode:1});var Wri,e77=function(){if(Wri!==void 0)return Wri;var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Wri=x};_.tn(_.rR,"yt-avatar-stack-view-model",{props:{className:_.ik,data:_.ik,overrides:_.ik,isOverlay:_.ik,useMediumText:_.ik,decorations:_.ik,hideAvatar:_.ik}});_.HH("itemSectionRenderer","videoRenderer","ytd-video-renderer");var hK=function(){var x=_.n.apply(this,arguments)||this;x.disableExpand=!1;x.shouldShowChannelInfo=!1;x.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return x};
_.m(hK,_.n);_.a=hK.prototype;_.a.computeUseSearchUi=function(){var x,G;return this.isSearch||((x=this.data)==null?void 0:(G=x.style)==null?void 0:G.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.a.computeUseThreeLineTitle=function(){var x;return((x=this.data)==null?void 0:x.maxTitleLines)===3};
_.a.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.B("polymer_video_renderer_defer_menu")&&!QHi?0:void 0},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",
notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.expandableMetadata":{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",properties:{isSearch:"[[useSearchUi]]",disableExpand:"[[disableExpand]]"}}}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:"yt-avatar-stack-view-model"}}}};
_.a.attached=function(){_.E4(this.hostElement,"blue-links",_.B("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.a.detached=function(){this.clearInlinePreviewHoverListeners()};
_.a.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.Ga(_.kA(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var x=this.get("data.buttons.buttonRenderer.serviceEndpoint"),G;x&&((G=_.Y(x.commandMetadata,_.LB))==null?0:G.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(x);this.updateInlinePreviewHoverListeners()};
_.a.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13059_inlinePreviewHoverListener=uA({mediaRenderer:this,lockupElement:this.JSC$13059_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.a.clearInlinePreviewHoverListeners=function(){var x;(x=this.JSC$13059_inlinePreviewHoverListener)==null||EH(x)};
_.a.onTextWrapperClick=function(x){var G,D,K=this.hideTranslation?(G=this.data)==null?void 0:G.untranslatedNavigationEndpoint:(D=this.data)==null?void 0:D.navigationEndpoint;G=_.dG(_.gA(x),this.hostElement,["expandable-metadata"]);!K||G&&!_.B("expandable_metadata_fix_killswitch")||_.u_(_.gA(x),this.hostElement,["A".toString(),"BUTTON".toString()])||_.h$(this.hostElement,"yt-navigate",{endpoint:K})};
_.a.computeThumbnailWidth=function(x,G,D,K,z){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:K?z==="MASSIVE"?600:z==="BIG"?500:z==="MEDIUM"?450:420:D?360:G?128:x?210:246};
_.a.computeUseBiggerThumbs=function(x){return x&&_.B("enable_desktop_search_bigger_thumbs")};
_.a.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.a.computeVideoStyle=function(){if(_.B("enable_video_style")){var x,G;return(x=this.data)==null?void 0:(G=x.style)==null?void 0:G.value}};
_.a.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.a.handleHideItemSectionVideosByIdCommand=function(x){var G;x=(G=_.Y(x,x_s))==null?void 0:G.videoId;this.data&&this.data.videoId===x&&(this.isHidden=!0)};
_.a.getMetadataSnippetContainerClass=function(x){return x?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.a.computeTitleText=function(x,G,D){return x?D:G};
_.a.computeDescriptionSnippet=function(x,G,D){return x?D:G};
_.a.computeSnippetText=function(x,G,D){return x?D:G};
_.a.computeNavigationEndpoint=function(x,G){return x?G==null?void 0:G.untranslatedNavigationEndpoint:G==null?void 0:G.navigationEndpoint};
_.a.hideInlineTitleIcon=function(x,G){return x||!G};
_.Nq.Object.defineProperties(hK.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 x;return(x=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?x:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var x,G,D;return!!(this==null?0:(x=this.data)==null?0:(G=x.channelThumbnailSupportedRenderers)==null?0:(D=G.channelThumbnailWithLinkRenderer)==null?0:D.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var x;return!!_.Y((x=this.data)==null?void 0:x.avatar,CKZ)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.JSC$13059_inlinePreviewHoverListener)==null?0:mZ(x))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.Nq.Object.defineProperties(hK,{template:{configurable:!0,enumerable:!0,get:function(){return e77()}}});
hK.prototype.dataChanged=hK.prototype.dataChanged;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],hK.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],hK.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],hK.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.CS),_.N("design:type",Object)],hK.prototype,"ytdDismissibleItemBehavior",void 0);
_.q([_.I(_.RG),_.N("design:type",Object)],hK.prototype,"ytdLockupBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],hK.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],hK.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],hK.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],hK.prototype,"isBackstageVideo",void 0);
_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],hK.prototype,"isPostCompactVideo",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],hK.prototype,"isHistory",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],hK.prototype,"isRichGridVideoPost",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],hK.prototype,"isHidden",void 0);
_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],hK.prototype,"isSearch",void 0);_.q([_.R({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.N("design:type",Boolean)],hK.prototype,"useSearchUi",void 0);_.q([_.R({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.N("design:type",Boolean)],hK.prototype,"useThreeLineTitle",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.N("design:type",Boolean)],hK.prototype,"useBiggerThumbs",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.N("design:type",Object)],hK.prototype,"videoStyle",void 0);_.q([_.R({computed:"computeDisableExpand(videoStyle)"}),_.N("design:type",Object)],hK.prototype,"disableExpand",void 0);
_.q([_.R({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.N("design:type",Object)],hK.prototype,"shouldShowChannelInfo",void 0);_.q([_.R({reflectToAttribute:!0,value:function(){return _.Db("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],hK.prototype,"biggerThumbsStyle",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.N("design:type",String)],hK.prototype,"inlineTitleIcon",void 0);_.q([_.R({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.N("design:type",Object)],hK.prototype,"computedNavigationEndpoint",void 0);_.q([_.R({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(x,G){return _.zm(x.entities,"searchVideoResultEntity",G)}}),
_.N("design:type",Object)],hK.prototype,"searchVideoResultEntity",void 0);_.q([_.cD("ytd-thumbnail"),_.N("design:type",HTMLElement)],hK.prototype,"thumbnail",void 0);_.q([_.cD("#dismissible"),_.N("design:type",HTMLElement)],hK.prototype,"JSC$13059_dismissibleMedia",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hK.prototype,"dataChanged",null);
_.q([_.U("searchVideoResultEntity"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],hK.prototype,"hideTranslation",null);_.q([_.U("searchVideoResultEntity"),_.N("design:type",Array),_.N("design:paramtypes",[])],hK.prototype,"hiddenBadgeGroups",null);_.q([_.U("data","useAvatar"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],hK.prototype,"shouldShowChannelThumbnail",null);_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],hK.prototype,"useAvatar",null);
_.q([_.U("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],hK.prototype,"isHovered",null);hK=_.q([_.d({is:"ytd-video-renderer",disableElementRegistration:!0})],hK);_.w(hK,"ytd-video-renderer",function(){return e77()},{mode:_.Ge("kevlar_poly_si_batch_j047")?1:2});var xd=function(){var x=_.n.apply(this,arguments)||this;x.editDialog=null;x.roundedContainer=!0;x.isLoading=!1;x.isRichGrid=!1;x.isRichGridRepost=!1;x.reduceSidePaddings=_.B("reduce_side_paddings_in_shelf");x.JSC$13066_spinnerEl=null;return x};
_.m(xd,_.n);_.a=xd.prototype;
_.a.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"}}}};
_.a.contentTextChanged=function(){this.expander.reset()};
_.a.dataChanged=function(){var x=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var G=0,D=this.data.actions&&this.data.actions.length;G<D;G++)this.openEditDialog(_.Y(this.data.actions[G],Y$s));if((G=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(G=this.get("buttonRenderer.hint.hintRenderer.hintId",G))&&G.startsWith("share-post-hint")){var K=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(K){_.qZ.getInstance();var z=NZ(_.gK(_.Wg("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.Fj.addLowPriorityJob(function(){_.zl(x.hostElement,z,K)})}}}};
_.a.updatePoll=function(x){x>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.a.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$13066_spinnerEl||(this.JSC$13066_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.kA(this.hostElement).appendChild(this.JSC$13066_spinnerEl));this.JSC$13066_spinnerEl&&(this.JSC$13066_spinnerEl.active=this.isLoading)};
_.a.onYtNavigate=function(x){var G=this.get("updateCommentDialogEndpoint",x.detail.endpoint);G&&(this.openEditDialog(G),x.stopPropagation())};
_.a.onYtCommentboxDismiss=function(){this.editDialog=null};
_.a.onYtCommentPollRevert=function(x,G){G&&this.updatePoll(G.selectedChoiceIndex)};
_.a.onYtServiceRequestSent=function(x,G){var D;G.endpoint&&(_.Y(G.endpoint,dls)||_.Y(G.endpoint,uCh)&&((D=_.Y(G.endpoint,uCh))==null||!D.clientActions))&&(this.isLoading=!0);if(G.actions)for(x=0;x<G.actions.length;x++)D=G.actions[x],_.Y(D,Vn)&&(D=this.get("updateBackstagePollAction.selectedChoiceIndex",D),D==void 0&&(D=-1),this.updatePoll(D))};
_.a.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.a.openEditDialog=function(x){x&&x.dialog&&(this.editDialog=x.dialog,x=this.editDialogEl.firstElementChild)&&(x.focus(),x.openDialog&&x.openDialog())};
_.a.computeIsPostHidden=function(x,G){return!!x||G};
_.a.computeSurfaceType=function(x){return x?x.toLowerCase().replace(/_/g,"-"):""};
_.a.computeUsesCompactLockup=function(x){return x==="BACKSTAGE_SURFACE_TYPE_HOME"||x==="BACKSTAGE_SURFACE_TYPE_SEARCH"||x==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||x==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||x==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||x==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.a.computeShowWithoutToolbar=function(x){return!x.actionButtons&&!x.actionMenu};
_.a.computePostAttachment=function(x){if(x.backstageAttachment){if(_.Y(x.backstageAttachment,rDs))return"poll";if(_.Y(x.backstageAttachment,arq))return"quiz";if(_.Y(x.backstageAttachment,_.CB))return"video";if(_.Y(x.backstageAttachment,oGE))return"uploaded-videos";if(_.Y(x.backstageAttachment,E5Z))return x.contentText?"image":"image-only";if(_.Y(x.backstageAttachment,GsZ))return"playlist"}return"none"};
_.a.computePostTabIndex=function(x){return x?0:-1};
_.a.computeButtonTooltipPosition=function(x){return this.computeUsesCompactLockup(x)?"top":"bottom"};
_.a.computeHasText=function(x){return!(x==null||!x.contentText)};
_.a.onTap=function(x){var G,D;if(((G=this.data)==null?0:G.navigationEndpoint)&&((D=this.data)==null?void 0:D.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var K;((K=this.data)==null?0:K.navigationEndpoint)&&!_.u_(_.gA(x)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.h$(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.Nq.Object.defineProperties(xd.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.voteCount)||_.gK("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Y(this.data.backstageAttachment,rDs))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Y(this.data.backstageAttachment,oGE))}}});
xd.prototype.onYtServiceRequestCompleted=xd.prototype.onYtServiceRequestCompleted;xd.prototype.onYtServiceRequestSent=xd.prototype.onYtServiceRequestSent;xd.prototype.onYtCommentPollRevert=xd.prototype.onYtCommentPollRevert;xd.prototype.onYtCommentboxDismiss=xd.prototype.onYtCommentboxDismiss;xd.prototype.onYtNavigate=xd.prototype.onYtNavigate;xd.prototype.isLoadingChanged=xd.prototype.isLoadingChanged;xd.prototype.dataChanged=xd.prototype.dataChanged;xd.prototype.contentTextChanged=xd.prototype.contentTextChanged;
_.q([_.I(_.CS),_.N("design:type",Object)],xd.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],xd.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],xd.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],xd.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],xd.prototype,"data",void 0);
_.q([_.R(),_.N("design:type",Object)],xd.prototype,"editDialog",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],xd.prototype,"roundedContainer",void 0);_.q([_.R(),_.N("design:type",Object)],xd.prototype,"isLoading",void 0);_.q([_.R({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.N("design:type",String)],xd.prototype,"surface",void 0);
_.q([_.R({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.N("design:type",Boolean)],xd.prototype,"usesCompactLockup",void 0);_.q([_.R({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],xd.prototype,"showWithoutToolbar",void 0);_.q([_.R({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.N("design:type",String)],xd.prototype,"attachment",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],xd.prototype,"isRichGrid",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],xd.prototype,"isRichGridRepost",void 0);_.q([_.R({reflectToAttribute:!0,value:_.B("use_better_post_dismissals")}),_.N("design:type",Boolean)],xd.prototype,"useBetterPostDismissals",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],xd.prototype,"reduceSidePaddings",void 0);
_.q([_.R({computed:"computeHasText(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],xd.prototype,"hasText",void 0);_.q([_.cD("#expander"),_.N("design:type",Object)],xd.prototype,"expander",void 0);_.q([_.cD("#action-buttons"),_.N("design:type",Object)],xd.prototype,"actionButtons",void 0);_.q([_.cD("#edit-dialog"),_.N("design:type",HTMLElement)],xd.prototype,"editDialogEl",void 0);
_.q([_.yf("data.contentText"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xd.prototype,"contentTextChanged",null);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xd.prototype,"dataChanged",null);_.q([_.yf("isLoading"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xd.prototype,"isLoadingChanged",null);
_.q([_.oe("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],xd.prototype,"onYtNavigate",null);_.q([_.oe("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xd.prototype,"onYtCommentboxDismiss",null);_.q([_.oe("yt-comment-poll-revert"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],xd.prototype,"onYtCommentPollRevert",null);
_.q([_.oe("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Ou]),_.N("design:returntype")],xd.prototype,"onYtServiceRequestSent",null);_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.gG]),_.N("design:returntype")],xd.prototype,"onYtServiceRequestCompleted",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],xd.prototype,"voteCount",null);
_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],xd.prototype,"commentCount",null);_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],xd.prototype,"hasPoll",null);_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],xd.prototype,"hasUploadedVideo",null);xd=_.q([_.d({is:"ytd-post-renderer",disableElementRegistration:!0})],xd);
_.w(xd,"ytd-post-renderer",function(){if(U3u!==void 0)return U3u;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return U3u=x},{mode:1});var Zk7;var MAZ;var Gn=function(){return _.n.apply(this,arguments)||this};
_.m(Gn,_.n);Gn.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Gn.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Gn.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.tp.YtdHorizontalListBehavior),_.N("design:type",Object)],Gn.prototype,"ytdHorizontalListBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Gn.prototype,"componentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Gn.prototype,"data",void 0);
_.q([_.R({value:"$.items.children"}),_.N("design:type",String)],Gn.prototype,"itemsPath",void 0);_.q([_.R({value:1}),_.N("design:type",Number)],Gn.prototype,"initialCount",void 0);_.q([_.R(),_.N("design:type",String)],Gn.prototype,"surface",void 0);Gn=_.q([_.d({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],Gn);
_.w(Gn,"ytd-post-multi-image-renderer",function(){if(MAZ!==void 0)return MAZ;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return MAZ=x},{mode:_.Ge("kevlar_poly_si_batch_j079")?1:2});var Qk7={"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"}}},D9=function(){var x=_.n.apply(this,arguments)||this;x.hasInlineCommentSection=!1;x.editDialog=null;x.isLoading=!1;x.shouldHideAuthor=!1;x.shouldShowVideoTime=!1;
x.isInEngagementPanel=!1;x.hideBorder=!1;x.usesFullLockup=!1;x.shouldShowMenuInCompactView=!1;x.JSC$13082_spinnerEl=null;x.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return x};
_.m(D9,_.n);_.a=D9.prototype;_.a.configureRendererStamper=function(){return Qk7};
_.a.computeIsPollHeaderEnabled=function(x){return(x==null?void 0:x.pollMetadataIcon)!=null};
_.a.getPublishTimeStampString=function(x,G){G=new Date((Number(G)-60*((new Date).getTimezoneOffset()-(new Date(Number(G)*1E3)).getTimezoneOffset()))*1E3);G=(new n3(10)).format(G);if(x&&x.runs&&x.runs.length)for(var D=0;D<x.runs.length;D++)x.runs[D].text&&(x.runs[D].text=x.runs[D].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",G));return x};
_.a.created=function(){this.JSC$13082_spinnerEl=null};
_.a.contentTextChanged=function(){this.expander.reset()};
_.a.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var x;if((x=this.data)==null?0:x.actions){x=_.l(this.data.actions);for(var G=x.next();!G.done;G=x.next())this.openEditDialog(_.Y(G.value,Y$s))}};
_.a.handleSignalActionOpenPostCommentDialogAction=function(){_.kA(this.hostElement).querySelector("#action-buttons").reply()};
_.a.updatePoll=function(x,G){G&&this.set("data.pollMetadataVoteCountText",G);this.hasInlineCommentSection&&(x=x>=0,G=_.kA(this.hostElement).querySelector("#action-buttons"),x?G.reply():G.hideReplyDialog())};
_.a.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$13082_spinnerEl||(this.JSC$13082_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.kA(this.hostElement).appendChild(this.JSC$13082_spinnerEl));this.JSC$13082_spinnerEl&&(this.JSC$13082_spinnerEl.active=this.isLoading)};
_.a.onYtNavigate=function(x){var G=this.get("updateCommentDialogEndpoint",x.detail.endpoint);G&&(this.openEditDialog(G),x.stopPropagation())};
_.a.onYtCommentboxDismiss=function(){this.editDialog=null};
_.a.onYtCommentPollRevert=function(x,G){G&&this.updatePoll(G.selectedChoiceIndex,G.totalVotes)};
_.a.onYtServiceRequestSent=function(x,G){x.stopPropagation();x=_.Y(G.endpoint,uCh);if(_.Y(G.endpoint,dls)||x&&!x.clientActions)this.isLoading=!0;if(G.actions)for(x=0;x<G.actions.length;x++){var D=G.actions[x],K=_.Y(D,Vn);K&&(D=this.get("updateBackstagePollAction.selectedChoiceIndex",D),D===void 0&&(D=-1),this.updatePoll(D,K.totalVotes))}};
_.a.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.a.openEditDialog=function(x){x&&x.dialog&&(this.editDialog=x.dialog,x=this.editDialogElement.firstElementChild)&&(x.focus(),x.openDialog&&x.openDialog())};
_.a.computeIsBodyHidden=function(x,G){return!!x||G};
_.Nq.Object.defineProperties(D9.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var x,G;if((x=this.data)==null?0:(G=x.pollMetadataIcon)==null?0:G.iconType)return _.aP(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.voteCount)||_.gK("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Y(this.data.backstageAttachment,rDs))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Y(this.data.backstageAttachment,arq))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Y(this.data.backstageAttachment,oGE))}}});
D9.prototype.onYtServiceRequestCompleted=D9.prototype.onYtServiceRequestCompleted;D9.prototype.onYtServiceRequestSent=D9.prototype.onYtServiceRequestSent;D9.prototype.onYtCommentPollRevert=D9.prototype.onYtCommentPollRevert;D9.prototype.onYtCommentboxDismiss=D9.prototype.onYtCommentboxDismiss;D9.prototype.onYtNavigate=D9.prototype.onYtNavigate;D9.prototype.isLoadingChanged=D9.prototype.isLoadingChanged;D9.prototype.dataChanged=D9.prototype.dataChanged;D9.prototype.contentTextChanged=D9.prototype.contentTextChanged;
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],D9.prototype,"actionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],D9.prototype,"rendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],D9.prototype,"rendererstamperBehavior",void 0);_.q([_.cD("#contentTextExpander"),_.N("design:type",Object)],D9.prototype,"expander",void 0);
_.q([_.cD("#edit-dialog"),_.N("design:type",Element)],D9.prototype,"editDialogElement",void 0);_.q([_.R(),_.N("design:type",Object)],D9.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],D9.prototype,"hasInlineCommentSection",void 0);_.q([_.R(),_.N("design:type",Object)],D9.prototype,"editDialog",void 0);_.q([_.R(),_.N("design:type",Object)],D9.prototype,"isLoading",void 0);
_.q([_.R({computed:"computeIsPollHeaderEnabled(data)"}),_.N("design:type",Boolean)],D9.prototype,"isPollHeaderEnabled",void 0);_.q([_.R(),_.N("design:type",Object)],D9.prototype,"shouldHideAuthor",void 0);_.q([_.R(),_.N("design:type",Object)],D9.prototype,"shouldShowVideoTime",void 0);_.q([_.R(),_.N("design:type",Object)],D9.prototype,"isInEngagementPanel",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],D9.prototype,"hideBorder",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],D9.prototype,"usesFullLockup",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],D9.prototype,"shouldShowMenuInCompactView",void 0);_.q([_.U("isInEngagementPanel"),_.N("design:type",Number),_.N("design:paramtypes",[])],D9.prototype,"postTextMaxLines",null);_.q([_.U("data.icon.iconType"),_.N("design:type",Object),_.N("design:paramtypes",[])],D9.prototype,"pollIcon",null);
_.q([_.yf("data.contentText"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],D9.prototype,"contentTextChanged",null);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],D9.prototype,"dataChanged",null);_.q([_.yf("isLoading"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],D9.prototype,"isLoadingChanged",null);
_.q([_.oe("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],D9.prototype,"onYtNavigate",null);_.q([_.oe("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],D9.prototype,"onYtCommentboxDismiss",null);_.q([_.oe("yt-comment-poll-revert"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],D9.prototype,"onYtCommentPollRevert",null);
_.q([_.oe("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Ou]),_.N("design:returntype")],D9.prototype,"onYtServiceRequestSent",null);_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],D9.prototype,"onYtServiceRequestCompleted",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],D9.prototype,"voteCount",null);
_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],D9.prototype,"commentCount",null);_.q([_.U("data.backstageAttachment"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],D9.prototype,"hasPoll",null);_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],D9.prototype,"hasQuiz",null);_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],D9.prototype,"hasUploadedVideo",null);
D9=_.q([_.d({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],D9);
_.w(D9,"ytd-backstage-post-renderer",function(){if(Zk7!==void 0)return Zk7;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Zk7=x},{mode:1});var pQJ;var Kd=function(){var x=_.n.apply(this,arguments)||this;x.editDialog=null;x.showExpandButton=!1;x.isRichGrid=!1;x.usesFullLockup=!1;return x};
_.m(Kd,_.n);_.a=Kd.prototype;_.a.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"}}}};
_.a.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.a.computeShowExpandButton=function(x){return this.usesCompactLockup||x&&x.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.a.computeUsesCompactLockup=function(x){return!!x.condensedContent};
_.a.computeShowFullContentText=function(x){return!x};
_.a.onYtNavigate=function(x){x=this.get("updateCommentDialogEndpoint",x.detail.endpoint);this.openEditDialog(x)};
_.a.onYtCommentboxDismiss=function(){this.editDialog=null};
_.a.openEditDialog=function(x){x&&x.dialog&&(this.editDialog=x.dialog,x=this.repostEditDialogEl.firstElementChild)&&(x.focus(),x.openDialog&&x.openDialog())};
_.a.onTap=function(x){if(this.data){var G=null;this.usesCompactLockup&&!_.u_(_.gA(x)||[],this.hostElement,["YT-IMG-SHADOW"])?G=this.get("navigationEndpoint",this.data):x.target===this.moreButtonEl&&(G=this.get("navigationEndpoint",x.target.data));G&&_.h$(this.hostElement,"yt-navigate",{endpoint:G})}};
Kd.prototype.onYtCommentboxDismiss=Kd.prototype.onYtCommentboxDismiss;Kd.prototype.onYtNavigate=Kd.prototype.onYtNavigate;Kd.prototype.dataChanged=Kd.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Kd.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Kd.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Kd.prototype,"data",void 0);
_.q([_.R(),_.N("design:type",Object)],Kd.prototype,"editDialog",void 0);_.q([_.R({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Kd.prototype,"usesCompactLockup",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Kd.prototype,"showExpandButton",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Kd.prototype,"isRichGrid",void 0);
_.q([_.R({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Kd.prototype,"showFullContentText",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Kd.prototype,"usesFullLockup",void 0);_.q([_.cD("#more"),_.N("design:type",Object)],Kd.prototype,"moreButtonEl",void 0);_.q([_.cD("#repost-content-text"),_.N("design:type",HTMLElement)],Kd.prototype,"repostContentTextEl",void 0);
_.q([_.cD("#repost-edit-dialog"),_.N("design:type",HTMLElement)],Kd.prototype,"repostEditDialogEl",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kd.prototype,"dataChanged",null);_.q([_.oe("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Kd.prototype,"onYtNavigate",null);
_.q([_.oe("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kd.prototype,"onYtCommentboxDismiss",null);Kd=_.q([_.d({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],Kd);
_.w(Kd,"ytd-shared-post-renderer",function(){if(pQJ!==void 0)return pQJ;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return pQJ=x},{mode:1});var VAh;var bkk;var zn=function(){return _.n.apply(this,arguments)||this};
_.m(zn,_.n);zn.prototype.attached=function(){var x=this;this.networkStatusManager||(this.networkStatusManager=new _.w$,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){x.onlineHandler()}))};
zn.prototype.detached=function(){var x=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){x.onlineHandler()}),delete this.networkStatusManager)};
zn.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],zn.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],zn.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],zn.prototype,"data",void 0);zn=_.q([_.d({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],zn);
_.w(zn,"ytd-reload-page-button-renderer",function(){if(bkk!==void 0)return bkk;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);
return bkk=x},{mode:1});var Lro={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"},aD=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return x};
_.m(aD,_.n);_.a=aD.prototype;_.a.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.a.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.a.computeHasBodyText=function(x){return!!x.bodyText};
_.a.computeButtons=function(x){var G=[];x.ctaButton&&G.push(x.ctaButton);x.secondaryButton&&G.push(x.secondaryButton);return G};
_.a.computeRendererStyle=function(x){return x.style?x.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():x.icon?"":"no-icon"};
_.a.getIconName=function(x,G){G=G===void 0?!1:G;if(x===void 0)return"";x=this.get("icon.iconType",x);var D;_.B("enable_hlp_client_icon_pick")?D=this.getThemedIcon(x,G):D=x;(G=Lro[D])||(G="yt-icons");return[G,D].join(":")};
_.a.getThemedIcon=function(x,G){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(x)?G?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(x)?G?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":x};
_.a.isThumbnail=function(x){return!!x.thumbnail};
_.a.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.a.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],aD.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],aD.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],aD.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],aD.prototype,"data",void 0);
_.q([_.R({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.N("design:type",String)],aD.prototype,"rendererStyle",void 0);_.q([_.R({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.N("design:type",String)],aD.prototype,"iconName",void 0);_.q([_.R({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],aD.prototype,"thumbnail",void 0);_.q([_.R({computed:"computeButtons(data)"}),_.N("design:type",Array)],aD.prototype,"buttons",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],aD.prototype,"isDarkTheme",void 0);_.q([_.R({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],aD.prototype,"hasBodyText",void 0);aD=_.q([_.d({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],aD);
_.w(aD,"ytd-background-promo-renderer",function(){if(VAh!==void 0)return VAh;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return VAh=x},{mode:1});var BN7;var oD=function(){var x=_.n.apply(this,arguments)||this;x.collections=_.B("web_modern_collections_v2");return x};
_.m(oD,_.n);_.Nq.Object.defineProperties(oD.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var x,G,D,K,z,y;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(x=this.data)==null?void 0:(G=x.thumbnail)==null?void 0:G.sampledThumbnailColor,vibrantColorPalette:(D=this.data)==null?void 0:(K=D.thumbnail)==null?void 0:K.vibrantColorPalette,darkColorPalette:(z=this.data)==null?void 0:(y=z.thumbnail)==null?void 0:y.darkColorPalette,experimentEnabled:this.collections}}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],oD.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],oD.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],oD.prototype,"collections",void 0);_.q([_.U("data","collections"),_.N("design:type",Object),_.N("design:paramtypes",[])],oD.prototype,"collectionStack",null);oD=_.q([_.d({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],oD);
_.w(oD,"ytd-compact-station-renderer",function(){if(BN7!==void 0)return BN7;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return BN7=x},{mode:1});var rA7;var yB=function(){var x=_.n.apply(this,arguments)||this;x.isRichGrid=!1;return x};
_.m(yB,_.n);yB.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]]"}}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],yB.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],yB.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],yB.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],yB.prototype,"isRichGrid",void 0);yB=_.q([_.d({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],yB);
_.w(yB,"ytd-grid-channel-renderer",function(){if(rA7!==void 0)return rA7;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return rA7=x},{mode:1});var skE;var l2=function(){return _.n.apply(this,arguments)||this};
_.m(l2,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],l2.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],l2.prototype,"data",void 0);l2=_.q([_.d({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],l2);
_.w(l2,"ytd-grid-movie-playlist-renderer",function(){if(skE!==void 0)return skE;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return skE=x},{mode:1});var YlE;var cO=function(){var x=_.n.apply(this,arguments)||this;x.downloadProgress=0;x.transferState="TRANSFER_STATE_UNKNOWN";x.modernButtons=_.B("web_modern_buttons");x.useModernCollectionsV2=_.B("web_modern_collections_v2");return x};
_.m(cO,_.n);cO.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
cO.prototype.configureRendererStamper=function(){return{"data.menu":aH}};
cO.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
cO.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.B("woffle_playlist_renderer_killswitch")){var x,G=DZV(this.entityInfo,this.transferState,this.downloadProgress,(x=this.data)==null?void 0:x.playlistId,this.isOnline);x=G.viewPlaylistText;var D=G.badges;G=G.thumbnailOverlays;this.isDownloads=!!x||!!D;this.set("data.viewPlaylistText",x);D&&D.length>0&&this.set("data.badges",D);G&&G.length>0&&this.set("data.thumbnailOverlays",
G)}};
_.Nq.Object.defineProperties(cO.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 x;return!((x=this.data)==null?0:x.menu)}}});
cO.prototype.transferStateChanged=cO.prototype.transferStateChanged;cO.prototype.dataChanged=cO.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],cO.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.RG),_.N("design:type",Object)],cO.prototype,"ytdLockupBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],cO.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],cO.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.R({selector:_.V1f,selectorArgs:["data.playlistId"]}),_.N("design:type",Object)],cO.prototype,"downloadProgress",void 0);_.q([_.R({selector:_.I_,selectorArgs:["data.playlistId"]}),_.N("design:type",Object)],cO.prototype,"transferState",void 0);_.q([_.R({selector:poL,selectorArgs:["data.playlistId"]}),_.N("design:type",Object)],cO.prototype,"entityInfo",void 0);_.q([_.R({selector:Ted}),_.N("design:type",Boolean)],cO.prototype,"isOnline",void 0);
_.q([_.R(),_.N("design:type",Object)],cO.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],cO.prototype,"downloadRenderData",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],cO.prototype,"modernButtons",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],cO.prototype,"isDownloads",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],cO.prototype,"useModernCollectionsV2",void 0);
_.q([_.U("transferState"),_.R({reflectToAttribute:!0}),_.N("design:type",String),_.N("design:paramtypes",[])],cO.prototype,"downloadState",null);_.q([_.U("data"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],cO.prototype,"menuHidden",null);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cO.prototype,"dataChanged",null);
_.q([_.Z6("transferState","downloadProgress","isOnline"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cO.prototype,"transferStateChanged",null);cO=_.q([_.d({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],cO);
_.w(cO,"ytd-grid-playlist-renderer",function(){if(YlE!==void 0)return YlE;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return YlE=x},{mode:1});var meZ;var Tn=function(){var x=_.n.apply(this,arguments)||this;x.collections=_.B("web_modern_collections_v2");return x};
_.m(Tn,_.n);Tn.prototype.configureRendererStamper=function(){return{"data.menu":aH,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Nq.Object.defineProperties(Tn.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var x,G,D,K,z,y;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(x=this.data)==null?void 0:(G=x.thumbnail)==null?void 0:G.sampledThumbnailColor,vibrantColorPalette:(D=this.data)==null?void 0:(K=D.thumbnail)==null?void 0:K.vibrantColorPalette,darkColorPalette:(z=this.data)==null?void 0:(y=z.thumbnail)==null?void 0:y.darkColorPalette,experimentEnabled:this.collections}}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Tn.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.CS),_.N("design:type",Object)],Tn.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.I(_.RG),_.N("design:type",Object)],Tn.prototype,"ytdLockupBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Tn.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Tn.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],Tn.prototype,"collections",void 0);_.q([_.U("data","collections"),_.N("design:type",Object),_.N("design:paramtypes",[])],Tn.prototype,"collectionStack",null);Tn=_.q([_.d({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],Tn);
_.w(Tn,"ytd-grid-radio-renderer",function(){if(meZ!==void 0)return meZ;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return meZ=x},{mode:1});var Hks;var WO=function(){var x=_.n.apply(this,arguments)||this;x.useModernCollectionsV2=_.B("web_modern_collections_v2");return x};
_.m(WO,_.n);WO.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
WO.prototype.computeNavigationEndpoint=function(x){return UlV(x==null?void 0:x.navigationEndpoint)};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],WO.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],WO.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.RG),_.N("design:type",Object)],WO.prototype,"ytdLockupBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],WO.prototype,"data",void 0);_.q([_.R({computed:"computeNavigationEndpoint(data)"}),_.N("design:type",Object)],WO.prototype,"computedNavigationEndpoint",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],WO.prototype,"useModernCollectionsV2",void 0);WO=_.q([_.d({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],WO);
_.w(WO,"ytd-grid-show-renderer",function(){if(Hks!==void 0)return Hks;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Hks=x},{mode:1});var $eZ;_.MD=function(x){this.playerClient=x};
_.FrZ=function(x,G,D){D=D===void 0?{}:D;return x.playerClient.setOption("ad",G,D)};
_.MD.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.MD.prototype.executeCommand=function(x,G){this.getOptions().includes("executeCommand")?_.FrZ(this,"executeCommand",{command:x,layoutId:G}):_.tc("Calling executeCommand when adModule is not loaded")};var QB=function(){return _.n.apply(this,arguments)||this};
_.m(QB,_.n);QB.prototype.getLayoutId=function(){var x=_.nT("yt.www.ads.eventcache.getLastCompanionData");return x?(x=x())&&x.layoutId:null};
QB.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var x=_.Ns(),G=this.getLayoutId(),D=this.data.clickthroughEndpoint;x&&G&&_.B("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?x.getPlayerPromise().then(function(K){(new _.MD(K)).executeCommand(D,G)}):_.h$(this.hostElement,"yt-navigate",{endpoint:D})}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],QB.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],QB.prototype,"data",void 0);QB=_.q([_.d({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],QB);
_.w(QB,"ytd-shopping-companion-item-renderer",function(){if($eZ!==void 0)return $eZ;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return $eZ=x},{mode:1});var Ci7;var pd=function(){var x=_.n.apply(this,arguments)||this;x.isExpandableContent=!1;return x};
_.m(pd,_.n);_.Nq.Object.defineProperties(pd.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var x,G,D;return((x=this.data)==null?void 0:x.price)||((G=this.data)==null?void 0:(D=G.dealsData)==null?void 0:D.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var x,G;if((x=this.data)!=null&&x.dealsData&&((G=this.data)==null||!G.priceReplacementText)){x=this.data.dealsData;var D,K,z;return((D=x.salesData)==null?void 0:D.originalPrice)||((K=x.priceDropData)==null?void 0:K.referencePrice)||((z=x.promotionData)==null?void 0:z.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var x,G;return(x=this.data)==null?void 0:(G=x.dealsData)==null?void 0:G.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],pd.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],pd.prototype,"componentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],pd.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],pd.prototype,"isExpandableContent",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],pd.prototype,"showCta",null);
_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],pd.prototype,"ctaText",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],pd.prototype,"hasPriceTopPosition",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],pd.prototype,"hasPriceBottomPosition",null);_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],pd.prototype,"useNewStyle",null);
_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],pd.prototype,"showPriceReplacementText",null);_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],pd.prototype,"priceValue",null);_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],pd.prototype,"showDeal",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],pd.prototype,"showAffiliateDisclaimer",null);
_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],pd.prototype,"useSaleStyle",null);_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],pd.prototype,"useFromBrandCtaStyle",null);_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],pd.prototype,"useFromVendorCtaStyle",null);
_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],pd.prototype,"useShoppingCollectionCtaStyle",null);pd=_.q([_.d({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],pd);
_.w(pd,"ytd-vertical-product-card-renderer",function(){if(Ci7!==void 0)return Ci7;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Ci7=x},{mode:1});var I58;var VB=function(){return _.n.apply(this,arguments)||this};
_.m(VB,_.n);VB.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],VB.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],VB.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.RG),_.N("design:type",Object)],VB.prototype,"ytdLockupBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],VB.prototype,"data",void 0);VB=_.q([_.d({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],VB);
_.w(VB,"ytd-grid-movie-renderer",function(){if(I58!==void 0)return I58;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return I58=x},{mode:1});var jki;var b2=function(){var x=_.n.apply(this,arguments)||this;x.rounded=!0;x.itemStyle="small-item";return x};
_.m(b2,_.n);b2.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var x,G,D,K,z=(G=_.Y((x=this.data)==null?void 0:x.buttonCommand,_.e1))==null?void 0:(D=G.item)==null?void 0:(K=D.notificationTextRenderer)==null?void 0:K.successResponseText;z&&_.udL(this.hostElement,z)}};
_.Nq.Object.defineProperties(b2.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var x,G;return((x=this.data)==null?void 0:x.isProductPlaceholder)!==void 0&&((G=this.data)==null?void 0:G.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.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}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],b2.prototype,"ytRendererBehavior",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],b2.prototype,"rounded",void 0);_.q([_.R(),_.N("design:type",Object)],b2.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],b2.prototype,"itemStyle",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],b2.prototype,"hasPrice",null);
_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],b2.prototype,"hasPriceReplacementText",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],b2.prototype,"hasAdditionalFeesText",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],b2.prototype,"hasAffiliateDisclaimer",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],b2.prototype,"isProductPlaceholder",null);
_.q([_.R(),_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],b2.prototype,"hideOpenInNewIcon",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],b2.prototype,"ariaLabel",null);b2=_.q([_.d({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],b2);
_.w(b2,"ytd-merch-shelf-item-renderer",function(){if(jki!==void 0)return jki;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return jki=x},{mode:1});var OkZ=_.Nv(function(x){var G=_.qi();_.iA(G,function(){return x.data().rendererContext});
return _.M("button-card-view-model",{el:G,class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return x.data().title},
role:"button"},_.M(_.b_,{model:{}}),_.M("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.M("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.M(_.b,{cond:function(){return x.data().image},
then:function(D){return _.M(_.wk,{data:D,alt:function(){var K;return(K=x.data().title)!=null?K:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.M("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return x.data().title})))},"Ya");_.B("web_button_view_model_wcw_registration_killswitch")||_.tn(OkZ,"button-card-view-model",{props:{data:_.ik}});_.tn(_.Nv(function(x){x=_.qv(x,{className:void 0});var G=x.data;x=x.className;var D=_.V9(function(){return G().onTapCommand},void 0,"NprDr");
return _.M("ytd-shopping-item-card",{class:_.ym("ytdShoppingItemCardHost",x)},_.M(_.hG,{command:D,className:"ytdShoppingItemCardHostLink"},_.M("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.M(_.bA,{data:function(){return G().thumbnailViewModel}},{thumbnailViewModel:function(K){return _.M(_.dR,{data:K.data,
aspectRatio:3})}})),_.M("div",null,_.M("p",{class:"ytdShoppingItemCardHostItemTitle"},_.M(_.vq,{text:function(){return G().itemTitle}})),_.M("p",{class:"ytdShoppingItemCardHostPrice"},_.M(_.vq,{text:function(){return G().priceOrStatus}})))))},"Za"),"ytd-shopping-item-card",{props:{data:_.ik,
className:_.ik}});var XQq={isAdsVideo:!0},AAh={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},UeJ={showPlayerControls:!1,videoPreviewDurationMs:15E3},R7Z={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.B("web_shorts_imp_fullwidth_killswitch")};var Pq=null,dxL={};var Nzn="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(" "),Ld={},vFP=(Ld.FEwhat_to_watch="home",Ld.FEhashtag="hashtag",Ld.FEtrending="trending",Ld.FEhistory="history",Ld.SPunlimited="premium",Ld.FEmemberships_and_purchases="paid_memberships",Ld.SPredeem_code="redeem",Ld.SPverify_location="locate",Ld.SPminor_moment="minor_moment",
Ld.FEmini_app_container="mini_app",Ld.FEnews_destination="news",Ld.SPopen_in_app="open_in_app",Ld.FEexplore="explore",Ld.FEsubscriptions="subscriptions",Ld.FEsfv_audio_pivot="sfv_audio_pivot",Ld.FEplaylist_aggregation="playlist_aggregation",Ld);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");_.aI("init");var SlZ=function(){},u3q=_.Nv(function(x){var G=x.data;
var D=x.inlineMetadata;var K=x.aspectRatio;var z=x.scrimStyle;var y=x.className;var c=x.useDefaultStyle;var W=new SlZ,e=_.B("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",Q=_.V9(function(){return(c==null?0:c())?e==="SHORTS_LOCKUP_STYLE_SLIM":G().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"iLX4Re"),p=_.V9(function(){return _.If(D)||Q()||!1},void 0,"GaU7Ef"),V=function(){return(z==null?void 0:z())!==void 0?z==null?void 0:z():1},L=_.V9(function(){return G().belowThumbnailMetadata||
!p()},void 0,"vsyhaf");
x=_.qi(function(P){W&&(W.hostElement=P,A())});
_.Pw(x,{visibilityCallback:function(P){var k=G().onFirstVisible;P&&k&&_.UI(k)},
showOption:{calledOnce:!0,state:"visible"}});y=_.ym("shortsLockupViewModelHost",y);var r=_.qi(),H={};H=_.ym(function(){return Q(),"shortsLockupViewModelHostThumbnailContainer"},(H.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.If(K)===1},H.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.If(K)===2},H.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!Q()},H.shortsLockupViewModelHostThumbnailContainerCustomDimensions=
function(){return!_.B("web_shorts_2_by_3_lockups_study")&&!_.B("desktop_search_enable_two_by_three_shorts_aspect_ratio")},H));
var O,A=function(){if(W){var P;(P=O)==null||EH(P);var k;W.hostElement&&((k=W.data)==null?0:k.inlinePlayerData)&&(O=uA({mediaRenderer:W,lockupElement:W.hostElement,thumbnailElement:r.value,videoPreviewOpts:R7Z}))}};
_.$9(function(){W&&(W.data=G(),A())});
var g=_.V9(function(){return G().thumbnail},void 0,"H4vZOb"),u=_.V9(function(){return G().badge},void 0,"I1QWQc"),f=_.V9(function(){return G().onTap},void 0,"eB6nuc"),v={};
return _.M("ytm-shorts-lockup-view-model",{el:x,class:y},_.M(_.xT,null,_.M(_.hG,{command:f,className:_.ym("shortsLockupViewModelHostEndpoint",(v.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!L()},v),"reel-item-endpoint",""),
ariaHidden:function(){return!p()},
tabIndex:function(){return p()?0:-1}},_.M("div",{el:r,
class:H},_.M(_.b,{cond:g,then:function(){return _.M(_.wk,{data:function(){var P;return(P=g==null?void 0:g())!=null?P:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),null),_.M(_.b,{cond:p,
then:function(){return _.M(nUE,{data:G,scrimStyle:V,useDefaultStyle:c})}}),_.M(_.bA,{data:u},{badgeViewModel:function(P){return _.M(_.v2,{data:P.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.M(_.b,{cond:function(){return p()&&G().menuOnTap},
then:function(){return _.M(iks,{data:G,inlineMetadata:!0})}}),_.M(_.b,{cond:L,
then:function(){return _.M(gU9,{data:G,useDefaultStyle:c})}})))},"$a"),nUE=_.Nv(function(x){var G=x.data;
var D=x.scrimStyle;var K=x.useDefaultStyle;var z=_.B("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",y=K&&_.B("web_hide_primary_text_for_pivot_panel"),c=_.V9(function(){return(K==null?0:K())?z==="SHORTS_LOCKUP_STYLE_SLIM":G().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"N1Ofye");
x={};x=_.ym("shortsLockupViewModelHostInlineMetadata",(x.shortsLockupViewModelHostMetadataRounded=function(){return!c()},x.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(D==null?void 0:D())===3&&!_.B("enable_shorts_lockup_new_scrim")},x.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(D==null?void 0:D())===3&&_.B("enable_shorts_lockup_new_scrim")},x.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(D==null?void 0:D())===2||(D==null?void 0:
D())===4},x.shortsLockupViewModelHostShowOverPlayer=function(){return!0},x),"image-overlay-text");
var W={};return _.M("div",{class:x},_.M("h3",{class:_.ym("shortsLockupViewModelHostMetadataTitle",(W.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(D==null?void 0:D())===4},W)),
"aria-label":function(){return G().accessibilityText}},_.M(_.b,{cond:function(){var e;
return!((e=G().overlayMetadata)==null||!e.primaryText)&&!y},
then:function(){return _.M(_.vq,{text:function(){var e;return(e=G().overlayMetadata)==null?void 0:e.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.M(_.b,{cond:function(){var e;
return(e=G().overlayMetadata)==null?void 0:e.secondaryText},
then:function(){return _.M(deq,{data:G,scrimStyle:D,className:void 0})}}))},"ab"),gU9=_.Nv(function(x){var G=x.data;
var D=x.useDefaultStyle;var K=_.B("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",z=_.V9(function(){return(D==null?0:D())?K==="SHORTS_LOCKUP_STYLE_SLIM":G().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"ElFnSc");
x=_.ym(function(){return z()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},"image-overlay-text");
var y,c=_.WH(function(){var V;(V=y)==null||V.click();return!1}),W=_.V9(function(){return G().belowThumbnailMetadata||G().overlayMetadata},void 0,"leqnzc"),e=function(){var V;
return(V=W())==null?void 0:V.avatar},Q={},p={};
return _.M("div",{class:_.ym(x,(Q.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!e()},Q)),
"on:click":c},_.M(_.bA,{data:e},{avatarViewModel:function(V){return _.M("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.M(_.Lj,{data:V.data}))}}),_.M("div",null,_.M("h3",{class:_.ym("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(p.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var V,L;
return!((V=W())==null?0:(L=V.primaryText)==null?0:L.content)},p)),
"aria-label":function(){return G().accessibilityText}},_.M(_.hG,{ref:function(V){return void(y=V)},
command:function(){return G().onTap},
className:_.ym("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var V,L;return(V=W())==null?void 0:(L=V.primaryText)==null?void 0:L.content}},_.M(_.b,{cond:function(){var V;
return(V=W())==null?void 0:V.primaryText},
then:function(V){return _.M(_.vq,{text:V,noEndpoints:!0,noStyleRuns:!0})}}))),_.M(_.b,{cond:function(){var V;
return(V=W())==null?void 0:V.secondaryText},
then:function(V){return _.M("div",{class:_.ym("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead"),"aria-hidden":"true"},_.M(_.vq,{text:V,noStyleRuns:!0}))}})),_.M(_.b,{cond:function(){return G().menuOnTap},
then:function(){return _.M(iks,{data:G,inlineMetadata:!1})}}))},"bb"),deq=_.Nv(function(x){var G=x.data;
var D=x.scrimStyle;x=x.className;var K={};return _.M("div",{class:_.ym((K.shortsLockupViewModelHostMetadataSubhead=function(){return(D==null?void 0:D())!==4},K.shortsLockupViewModelHostMetadataSubheadNew=_.B("enable_shorts_lockup_new_scrim"),K.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(D==null?void 0:D())===4},K),x),
"aria-hidden":"true"},_.M(_.vq,{text:function(){var z;return(z=G().overlayMetadata)==null?void 0:z.secondaryText},
noStyleRuns:!0}))},"cb"),iks=_.Nv(function(x){var G=x.data;
var D=x.inlineMetadata;x={};x=_.ym((x.shortsLockupViewModelHostInlineMetadataMenu=function(){return D()},x.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!D()},x.shortsLockupViewModelHostShowOverPlayer=function(){return!0},x),"image-overlay-text");
return _.M("div",{class:x},_.M(fs,{data:function(){return{style:D()?"overlay":"mono",accessibilityLabel:G().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(K){K.preventDefault();K.stopPropagation();var z=_.XB({elementsCommand:G().menuOnTap,forceNewState:!0});if(z==null?0:z.onclick)z.onclick(K)}}},
iconName:"MORE_VERT"}))},"db");var wQ9=_.Nv(function(x){var G=x.data;var D=x.inlineMetadata;var K=x.aspectRatio;var z=x.scrimStyle;var y=x.className;var c=x.useDefaultStyle;x=_.V9(function(){var W=G().entityId;return W?W.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"W3Tlke");
return _.M("ytm-shorts-lockup-view-model-v2",{class:_.ym("shortsLockupViewModelHost",y)},_.M(_.GGq,{contentId:x,aspectRatio:function(){return(K==null?void 0:K())===1?1:(K==null?void 0:K())===2?2:4}},function(){return _.M(u3q,{data:G,
inlineMetadata:D,aspectRatio:K,scrimStyle:z,className:y,useDefaultStyle:c})}))},"eb");_.tn(wQ9,"ytm-shorts-lockup-view-model-v2",{props:{data:_.fz,inlineMetadata:_.fz,aspectRatio:_.fz,scrimStyle:_.fz,className:_.fz,useDefaultStyle:_.fz}});var qli=16/9*210,BO=function(){var x=_.n.apply(this,arguments)||this;x.isExpandableContent=!1;x.hideShelfHeader=!1;x.engagementPanel=!1;x.buttonClasses=["arrow"];x.isSearch=!1;x.disableScrollEventListener=!1;x.containsLockup=!1;x.overrideArrowPositionForProductCard=!1;x.overrideArrowPositionForShoppingItemCard=!1;x.overrideArrowPositionForReelItems=!1;x.overrideArrowPositionForGridMovie=!1;x.overrideArrowPositionToCenter=!1;x.isSearchPostShelf=!1;x.overrideArrowPositionForMixedShelf=!1;x.overrideArrowPositionForMixedShelfShortsOnly=
!1;x.hasBigThumbsReelItems=!1;x.shouldUseMixedListHeight=!1;x.shouldUseShortsListHeight=!1;x.gridVideoWidth=0;x.isSearchVodShelf=!1;x.disableWheelScroll=!1;x.sizing="COMPACT";x.shortsLockupAspectRatio=0;return x};
_.m(BO,_.n);_.a=BO.prototype;
_.a.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]]"}}}}};
_.a.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.B("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.a.computeInitialCountNumber=function(x){if(!x)return 6;var G=x.items.some(function(y){return!!y.topicRecommendationsChipRenderer}),D=x.items.some(function(y){return!!y.displayAdRenderer}),K=this.computeShouldListItemsHaveEqualHeight(x),z=x.items.some(function(y){return!!y.gridPlaylistRenderer});
x=x.items.some(function(y){return!!y.shoppingItemCardViewModel});
return G?9:D?8:z||K?10:x?7:6};
_.a.computeContainsPost=function(x){return!!x&&!!x.items&&x.items.some(function(G){return!!G.postRenderer})};
_.a.computeContainsLockup=function(){if(_.B("web_horizontal_list_lockup_arrow_killswitch"))return!1;var x,G;return(x=this.data)==null?void 0:(G=x.items)==null?void 0:G.some(function(D){return!!D.lockupViewModel})};
_.a.maybeUpdateLockupAspectRatio=function(){var x,G;if(this.computeContainsLockup()&&((x=this.data)==null?0:(G=x.items)==null?0:G.length)){var D;x=EUE((D=this.data.items[0].lockupViewModel)==null?void 0:D.contentType,this.data.force16By9ThumbnailAspectRatio);D=rlC(x);D=this.computeLockupWidth()/D;_.K7(this.hostElement,{"--yt-horizontal-list-content-height":D+"px"})}};
_.a.computeOverrideArrowPositionForProductCard=function(x){if(this.isExpandableContent)return!1;var G;return!!(x==null?0:(G=x.items)==null?0:G.some(function(D){return!!D.verticalProductCardRenderer}))};
_.a.computeOverrideArrowPositionForShoppingItemCard=function(x){var G;return!!(x==null?0:(G=x.items)==null?0:G.some(function(D){return!!D.shoppingItemCardViewModel}))};
_.a.computeOverrideArrowPositionForReelItemRenderer=function(x){return this.containsReelItemRenderer(x)};
_.a.computeHasBigThumbsReelItems=function(x,G){return x&&this.containsReelItemRenderer(G)};
_.a.computeShouldListItemsHaveEqualHeight=function(x){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(x==null?void 0:x.itemSizeConstraint)};
_.a.computeShouldListItemsHaveShortsHeight=function(x){return this.computeShouldListItemsHaveEqualHeight(x)&&!this.containsGridVideoRenderer(x)};
_.a.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.a.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.a.containsReelItemRenderer=function(x){var G;return!!(x==null?0:(G=x.items)==null?0:G.some(function(D){return!(!D.reelItemRenderer&&!D.shortsLockupViewModel)}))};
_.a.containsGridVideoRenderer=function(x){var G;return!!(x==null?0:(G=x.items)==null?0:G.some(function(D){return!!D.gridVideoRenderer||!!D.lockupViewModel}))};
_.a.computeContainsGridMovieRenderer=function(x){var G;return!!(x==null?0:(G=x.items)==null?0:G.some(function(D){return!!D.gridMovieRenderer}))};
_.a.computeOverrideArrowPositionToCenter=function(x){return this.computeIsSearchPostShelf(x)};
_.a.computeIsSearchPostShelf=function(x){var G;return!!(x==null?0:(G=x.items)==null?0:G.some(function(D){var K,z;return((z=(K=D.postRenderer)==null?void 0:K.surface)!=null?z:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.a.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(x){var G;return!!(x==null?0:(G=x.items)==null?0:G.some(function(D){var K,z,y;return((y=(K=D.backgroundPromoRenderer)==null?void 0:(z=K.style)==null?void 0:z.value)!=null?y:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.a.computeIsSearchVodShelf=function(x,G){return x&&this.containsGridVideoRenderer(G)};
_.a.computeDisableWheelScroll=function(x,G){return this.computeIsSearchVodShelf(x,G)};
_.a.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.a.computeShortsLockupAspectRatio=function(x){return x&&_.B("web_shorts_2_by_3_lockups_no_search")&&!_.B("desktop_search_enable_two_by_three_shorts_aspect_ratio")?0:1};
_.a.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.K7(this.hostElement,{"--ytd-reel-item-thumbnail-height":qli+"px"})};
BO.prototype.dataChanged=BO.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],BO.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],BO.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.tp.YtdHorizontalListBehavior),_.N("design:type",Object)],BO.prototype,"ytdHorizontalListBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],BO.prototype,"data",void 0);
_.q([_.R(),_.N("design:type",Object)],BO.prototype,"isExpandableContent",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],BO.prototype,"hideShelfHeader",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],BO.prototype,"engagementPanel",void 0);_.q([_.R(),_.N("design:type",Array)],BO.prototype,"buttonClasses",void 0);_.q([_.R(),_.N("design:type",Object)],BO.prototype,"isSearch",void 0);
_.q([_.R(),_.N("design:type",Object)],BO.prototype,"disableScrollEventListener",void 0);_.q([_.R({computed:"computeInitialCountNumber(data)"}),_.N("design:type",Number)],BO.prototype,"initialCount",void 0);_.q([_.R({computed:"computeContainsPost(data)"}),_.N("design:type",Boolean)],BO.prototype,"supportComponentResize",void 0);_.q([_.R({computed:"computeContainsPost(data)"}),_.N("design:type",Boolean)],BO.prototype,"containsPost",void 0);
_.q([_.R({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.N("design:type",Object)],BO.prototype,"containsLockup",void 0);_.q([_.R({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],BO.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.q([_.R({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.N("design:type",Object)],BO.prototype,"overrideArrowPositionForProductCard",void 0);_.q([_.R({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.N("design:type",Object)],BO.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.q([_.R({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.N("design:type",Object)],BO.prototype,"overrideArrowPositionForReelItems",void 0);_.q([_.R({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.N("design:type",Object)],BO.prototype,"overrideArrowPositionForGridMovie",void 0);
_.q([_.R({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.N("design:type",Object)],BO.prototype,"overrideArrowPositionToCenter",void 0);_.q([_.R({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.N("design:type",Object)],BO.prototype,"isSearchPostShelf",void 0);_.q([_.R({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.N("design:type",Object)],BO.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.q([_.R({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.N("design:type",Object)],BO.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.q([_.R({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.N("design:type",Object)],BO.prototype,"hasBigThumbsReelItems",void 0);
_.q([_.R({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.N("design:type",Object)],BO.prototype,"shouldUseMixedListHeight",void 0);_.q([_.R({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.N("design:type",Object)],BO.prototype,"shouldUseShortsListHeight",void 0);_.q([_.R({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.N("design:type",Object)],BO.prototype,"gridVideoWidth",void 0);
_.q([_.R({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.N("design:type",Object)],BO.prototype,"isSearchVodShelf",void 0);_.q([_.R({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.N("design:type",Object)],BO.prototype,"disableWheelScroll",void 0);_.q([_.R({computed:"computeSizing(isSearch)"}),_.N("design:type",Object)],BO.prototype,"sizing",void 0);
_.q([_.R({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.N("design:type",Object)],BO.prototype,"shortsLockupAspectRatio",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BO.prototype,"dataChanged",null);
_.w(BO,"yt-horizontal-list-renderer",function(){if(fpk===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);fpk=x}x=fpk;return x},{mode:1});var NNE;var vUo=[10,12,14,16,18,20,24,28,32,36],JAE=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],r_=function(){var x=_.n.apply(this,arguments)||this;x.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";x.hideOverflow=!1;x.useRoboto=!1;x.fontClass="";x.overflown=!1;x.actionMap={"yt-window-resized":"resize"};return x};
_.m(r_,_.n);_.a=r_.prototype;
_.a.attached=function(){var x=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();_.w1(this,function(){x.resize()});
if(!_.E$){var G,D,K;(G=document)==null||(D=G.fonts)==null||(K=D.ready)==null||K.then(function(){x.resize()})}};
_.a.dataChanged=function(){this.resize()};
_.a.guideIsExpandedChanged=function(){this.resize()};
_.a.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 x=this.getMaxNumLines(),G=this.getMinFont(),D=this.getMaxFont(),K=this.useRoboto?vUo:JAE;for(K=K.filter(function(y){return y<=D&&y>=G});K.length>1;){var z=Math.floor(K.length/2);
this.updateFontSize(K[z]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=x)K=K.slice(z,K.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>x)K=K.slice(0,z);else break}this.updateFontSize(K[K.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(x)}};
_.a.handleOverflow=function(x){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>x&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",x.toString()))};
_.a.updateFontSize=function(x){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+x;this.textNode.classList.add(this.fontClass)};
_.a.getMaxFont=function(){var x=this.useRoboto?vUo:JAE;x=x[x.length-1];return this.maxFontSize&&this.maxFontSize<=x?this.maxFontSize:x};
_.a.getMinFont=function(){var x=(this.useRoboto?vUo:JAE)[0];return this.minFontSize&&this.minFontSize>=x?this.minFontSize:x};
_.a.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.a.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.a.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.u7(this.text).split("\n").length-1:Infinity};
_.a.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("Ch`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
r_.prototype.guideIsExpandedChanged=r_.prototype.guideIsExpandedChanged;r_.prototype.dataChanged=r_.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],r_.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],r_.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],r_.prototype,"actionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],r_.prototype,"text",void 0);
_.q([_.R(),_.N("design:type",String)],r_.prototype,"fontFamily",void 0);_.q([_.R(),_.N("design:type",Number)],r_.prototype,"maxWidth",void 0);_.q([_.R(),_.N("design:type",Number)],r_.prototype,"maxHeight",void 0);_.q([_.R(),_.N("design:type",Number)],r_.prototype,"maxFontSize",void 0);_.q([_.R(),_.N("design:type",Number)],r_.prototype,"minFontSize",void 0);_.q([_.R(),_.N("design:type",Number)],r_.prototype,"maxLines",void 0);_.q([_.R(),_.N("design:type",Object)],r_.prototype,"hideOverflow",void 0);
_.q([_.R({selector:_.zzQ}),_.N("design:type",Boolean)],r_.prototype,"guideIsExpanded",void 0);_.q([_.cD("#container"),_.N("design:type",HTMLElement)],r_.prototype,"containerNode",void 0);_.q([_.cD("#text"),_.N("design:type",HTMLElement)],r_.prototype,"textNode",void 0);_.q([_.Z6("text"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],r_.prototype,"dataChanged",null);
_.q([_.Z6("guideIsExpanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],r_.prototype,"guideIsExpandedChanged",null);r_=_.q([_.d({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],r_);
_.w(r_,"yt-dynamic-sizing-formatted-string",function(){if(NNE!==void 0)return NNE;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return NNE=x},{mode:1});var f5q;_.tAs=function(x){_.xC.call(this,x)};
_.m(_.tAs,_.xC);var kGi=function(x){_.xC.call(this,x)};
_.m(kGi,_.tAs);var sh=function(){return _.n.apply(this,arguments)||this};
_.m(sh,_.n);sh.prototype.onTapSuspendedChannel=function(){var x;if((x=this.data)!=null&&x.serviceEndpoint){var G,D;(x=(D=_.Y((G=this.data)==null?void 0:G.serviceEndpoint,_.iV))==null?void 0:D.url)?_.U4(x,void 0,void 0,window.top):(G=new kGi("Did not handle suspended account tap. No appealUrl."),_.I4(G))}else G=new kGi("Did not handle suspended account tap. No serviceEndpoint."),_.I4(G)};
sh.prototype.onTap=function(){var x=this,G=_.en(),D,K=(D=_.Wh(G,{veType:7116}))!=null?D:void 0;_.X8(G,{visualElement:K});_.X5();this.saveRoleText();var z;if((z=this.data)==null?0:z.youtubeSuspended)this.onTapSuspendedChannel();else{var y=!1,c,W;(G=(W=_.Y((c=this.data)==null?void 0:c.serviceEndpoint,_.Ey8))==null?void 0:W.supportedTokens)&&G.forEach(function(e){if(e.accountSigninToken)if(y=!0,x.onAccountItemTap)x.onAccountItemTap(e.accountSigninToken.signinUrl);else _.U4(e.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!y){if(c=this.get("serviceEndpoint",this.data))y=!0,this.ytComponentBehavior.resolveCommand(c);y||_.jm(new kGi("Did not handle account switch tap. No token."))}}};
sh.prototype.saveRoleText=function(){if(this.data){var x=this.data,G=x.channelDelegationRole;if(G){var D,K=(D=_.Y(x==null?void 0:x.serviceEndpoint,_.Ey8))==null?void 0:D.supportedTokens;if(!K){var z,y,c,W;K=(z=_.Y(x==null?void 0:x.serviceEndpoint,_.bz))==null?void 0:(y=z.popup)==null?void 0:(c=y.confirmDialogRenderer)==null?void 0:(W=c.confirmButton)==null?void 0:W.buttonRenderer;var e;K=(e=_.Y(K==null?void 0:K.command,_.oI))==null?void 0:e.commands;if(!K)return;var Q;K=(Q=_.Y(K[1],_.Ey8))==null?
void 0:Q.supportedTokens}if(K){e=void 0;Q=_.l(K);for(K=Q.next();!K.done;K=Q.next())if(K=K.value,K.datasyncIdToken){e=K.datasyncIdToken.datasyncIdToken;break}if(e){var p;a:{if(_.fNC()&&(Q=_.MqP(e+"::pom"))){Q=new Mz(Q);break a}Q=void 0}(p=Q)==null||p.set("role_text",G);if((ypd?ypd:window.location).href.indexOf("studio")!==-1&&(p=tMh())){Q=p.src?(new URL(p.src)).origin:"*";var V;(V=p.contentWindow)==null||V.postMessage({action:"save_pom_role",datasyncId:e,roleText:G},Q)}}}}}};
_.Nq.Object.defineProperties(sh.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var x,G,D=(x=this.data)==null?void 0:(G=x.accountPhoto)==null?void 0:G.thumbnails;return D&&D.length>0&&(D[0].height===36||D[0].height===48)?D[0].height:40}}});
sh.prototype.onTap=sh.prototype.onTap;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],sh.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],sh.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],sh.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!1}),_.N("design:type",Function)],sh.prototype,"onAccountItemTap",void 0);
_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],sh.prototype,"enableRingForActiveAccount",null);_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],sh.prototype,"thumbnailSize",null);_.q([_.oe("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sh.prototype,"onTap",null);sh=_.q([_.d({is:"ytd-account-item-renderer",disableElementRegistration:!0})],sh);
_.w(sh,"ytd-account-item-renderer",function(){if(f5q!==void 0)return f5q;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return f5q=x},{mode:1});var Pio;var Yd=function(){return _.n.apply(this,arguments)||this};
_.m(Yd,_.n);Yd.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.Eo().resolve(_.hm).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Yd.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Yd.prototype,"data",void 0);Yd=_.q([_.d({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],Yd);
_.w(Yd,"ytd-identity-chip-renderer",function(){if(Pio!==void 0)return Pio;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Pio=x},{mode:1});var EUh;var h78;var xxJ;var GfZ;var mx=function(){var x=_.n.apply(this,arguments)||this;x.richItemMinWidth=_.Gz("wn_grid_min_item_width",310);x.isShorts=!1;x.isWatchNext=!1;x.isExploreHub=!1;return x};
_.m(mx,_.n);_.Nq.Object.defineProperties(mx.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var x=[],G=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.K7(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var D;if(((D=this.data)==null?0:D.rows)&&G)for(G*=this.data.rows,D=0;D<G;D++)x.push({});return x}}});
_.q([_.I(_.$l),_.N("design:type",Object)],mx.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],mx.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],mx.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,selector:_.m8,value:3}),_.N("design:type",Number)],mx.prototype,"itemsPerRow",void 0);_.q([_.R({selector:_.KPD,value:6}),_.N("design:type",Number)],mx.prototype,"slimItemsPerRow",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Number)],mx.prototype,"richItemMinWidth",void 0);_.q([_.R({reflectToAttribute:!0,selector:_.Y_}),_.N("design:type",Boolean)],mx.prototype,"miniMode",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],mx.prototype,"isShorts",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],mx.prototype,"isWatchNext",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],mx.prototype,"isExploreHub",void 0);
_.q([_.U("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.N("design:type",Array),_.N("design:paramtypes",[])],mx.prototype,"cardItems",null);mx=_.q([_.d({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],mx);
_.Dxh=_.x$()(mx,"ytd-ghost-grid-renderer",function(){if(GfZ===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);GfZ=x}x=GfZ;return x},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.tn(_.Nv(function(x){var G=_.qv(x,{numberOfComments:3}).numberOfComments,D=_.qv(x,{isInitialLoad:!1}).isInitialLoad,K=_.qv(x,{engagementPanel:!1}).engagementPanel,z=function(){return Math.min(Number(G==null?void 0:G())||20,20)};
return _.M("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.M(_.b,{cond:function(){return!(K==null?0:K())&&(D==null?void 0:D())},
then:function(){return _.M("div",{class:"ytGhostCommentsComments"},_.M("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.M("div",{class:_.ym("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.M("div",{class:_.ym("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.M("div",{class:"ytGhostCommentsGhostCard"},_.M("div",{class:"ytGhostCommentsAvatar"},_.M("div",{class:"ytGhostCommentsCircle"})),_.M("div",{class:"ytGhostCommentsComments"},_.M("div",{class:"ytGhostCommentsMeta"},
_.M("div",{class:_.ym("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.M("div",{class:_.ym("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.M("div",{class:"ytGhostCommentsComments"},_.M(_.LT,{each:function(){return Array((z==null?void 0:z())||3)}},function(){return _.M("div",{class:"ytGhostCommentsGhostCard"},_.M("div",{class:"ytGhostCommentsAvatar"},_.M("div",{class:"ytGhostCommentsCircle"})),_.M("div",{class:"ytGhostCommentsHost"},_.M("div",{class:"ytGhostCommentsMeta"},
_.M("div",{class:_.ym("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.M("div",{class:_.ym("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.M("div",{class:_.ym("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.M("div",{class:"ytGhostCommentsGhostLikeDislike"},_.M("div",{class:_.ym("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.M("div",{class:_.ym("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"fb"),"yt-ghost-comments",{props:{numberOfComments:_.ik,
isInitialLoad:_.ik,engagementPanel:_.ik}});_.HH("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var HO=function(){var x=_.n.apply(this,arguments)||this;x.isOverridable=!1;x.spinnerActive=!1;x.showButton=!1;x.isCommentsSection=!1;x.engagementPanel=!0;x.isShortsGrid=!1;x.isShortsPage=!1;x.isWatchPage=!1;x.ghostCardExperimentEnabled=_.B("show_ghost_comments_shorts_watch")||_.B("show_ghost_comments_desktop_watch");x.originalShowButton=!1;x.endOfList=!1;return x};
_.m(HO,_.n);_.a=HO.prototype;_.a.resetIntersectionObserver=function(){var x;(x=this.observer)==null||x.disconnect();this.observer=void 0};
_.a.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var x,G;((x=this.data)==null?void 0:x.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((G=this.data)==null?0:G.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.a.initializeIntersectionObserver=function(){var x=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(G){G=_.l(G);for(var D=G.next();!D.done;D=G.next())D.value.isIntersecting&&(x.triggerContinuation(),x.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.a.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.a.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var x;((x=this.data)==null?0:x.continuationEndpoint)&&(x=_.Y(this.data.continuationEndpoint,_.Il))&&this.ytdReduxBehavior.dispatch(_.EO({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:x}}))};
_.a.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.a.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.a.onServiceRequestCompleted=function(x,G){if(!_.B("kevlar_hide_spinner_on_empty_continuation_killswitch")){var D;(D=G.actions)!=null&&D.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.a.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.a.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.a.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.a.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var x=3;if(this.engagementPanel){var G,D,K;x=Math.floor(((((G=this.hostElement)==null?void 0:(D=G.parentElement)==null?void 0:(K=D.parentElement)==null?void 0:K.scrollHeight)||108)-108)/108);x=this.isInitialLoad?Math.max(x,3):3}G=[].concat(_.B5(this.hostElement.querySelectorAll("yt-ghost-comments")));G=_.l(G);for(D=G.next();!D.done;D=G.next())D=D.value,D.numberOfComments=x,D.isInitialLoad=this.isInitialLoad,D.engagementPanel=
this.engagementPanel}};
_.a.detached=function(){this.resetIntersectionObserver()};
_.Nq.Object.defineProperties(HO.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.B("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.B("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
HO.prototype.numberOfGhostCommentsChanged=HO.prototype.numberOfGhostCommentsChanged;HO.prototype.continuationTriggerOffsetChanged=HO.prototype.continuationTriggerOffsetChanged;HO.prototype.showButtonChanged=HO.prototype.showButtonChanged;HO.prototype.onYtServiceRequestCompletedForButtonRenderer=HO.prototype.onYtServiceRequestCompletedForButtonRenderer;HO.prototype.onServiceRequestCompleted=HO.prototype.onServiceRequestCompleted;HO.prototype.onYtServiceRequestSentForButtonRenderer=HO.prototype.onYtServiceRequestSentForButtonRenderer;
HO.prototype.observeData=HO.prototype.observeData;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],HO.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],HO.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.AG.YtVisibilityBehavior),_.N("design:type",Object)],HO.prototype,"ytVisibilityBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],HO.prototype,"ytComponentBehavior",void 0);
_.q([_.I(_.$l),_.N("design:type",Object)],HO.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],HO.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],HO.prototype,"isOverridable",void 0);_.q([_.R(),_.N("design:type",Object)],HO.prototype,"spinnerActive",void 0);_.q([_.R(),_.N("design:type",Object)],HO.prototype,"showButton",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],HO.prototype,"isCommentsSection",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],HO.prototype,"engagementPanel",void 0);_.q([_.R(),_.N("design:type",Object)],HO.prototype,"isShortsGrid",void 0);_.q([_.R({reflectToAttribute:!0,selector:_.oVC}),_.N("design:type",Object)],HO.prototype,"isShortsPage",void 0);_.q([_.R({reflectToAttribute:!0,selector:_.$_}),_.N("design:type",Object)],HO.prototype,"isWatchPage",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],HO.prototype,"ghostCardExperimentEnabled",void 0);
_.q([_.R(),_.N("design:type",Number)],HO.prototype,"continuationTriggerOffset",void 0);_.q([_.R(),_.N("design:type",Object)],HO.prototype,"endOfList",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],HO.prototype,"isInitialLoad",void 0);_.q([_.cD("ytd-button-renderer"),_.N("design:type",_.u9)],HO.prototype,"buttonRenderer",void 0);_.q([_.R(),_.N("design:type",Object)],HO.prototype,"buttonOverrides",void 0);
_.q([_.R(),_.U("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.N("design:type",Object),_.N("design:paramtypes",[])],HO.prototype,"isShortsCommentsSection",null);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HO.prototype,"observeData",null);
_.q([_.oe("yt-service-request-sent-button-renderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HO.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.gG]),_.N("design:returntype")],HO.prototype,"onServiceRequestCompleted",null);
_.q([_.oe("yt-service-request-completed-button-renderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HO.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.q([_.Z6("showButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HO.prototype,"showButtonChanged",null);
_.q([_.Z6("continuationTriggerOffset"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HO.prototype,"continuationTriggerOffsetChanged",null);_.q([_.yf("isInitialLoad","engagementPanel"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HO.prototype,"numberOfGhostCommentsChanged",null);HO=_.q([_.d({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],HO);
_.w(HO,"ytd-continuation-item-renderer",function(){if(xxJ!==void 0)return xxJ;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return xxJ=x},{mode:1});var K$J;var $d=function(){var x=_.n.apply(this,arguments)||this;x.downloadProgress=0;x.transferState="TRANSFER_STATE_UNKNOWN";x.downloadState="DOWNLOAD_STATE_UNKNOWN";x.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";x.offlineVideoPolicyExpirationTimestamp=0;x.downloadedVideoPlaybackPosition=0;return x};
_.m($d,_.n);$d.prototype.dataChanged=function(){var x;this.videoData=_.Y((x=this.data)==null?void 0:x.renderer,$lJ);this.transferStateChanged()};
$d.prototype.downloadProgressChanged=function(){if(this.entityInfo){var x=Object.assign({},this.videoData),G=KaC(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),D=G.publishedTimeText,K=G.badges;x.shortViewCountText=G.shortViewCountText;x.publishedTimeText=D;x.badges=K;this.set("videoData",x)}};
$d.prototype.transferStateChanged=function(){if(this.entityInfo){var x=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",G=_.Z2(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!e5(this.entityInfo.policyEntity),D=Object.assign({},this.videoData),K=KaC(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),z=K.publishedTimeText,y=K.badges;D.shortViewCountText=
K.shortViewCountText;D.publishedTimeText=z;D.badges=y;D.isDisabled=G;D.isWatched=this.downloadedVideoPlaybackPosition>0;D.navigationEndpoint=G?void 0:XRE(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var c;x&&((c=this.videoData)==null?0:c.videoId)&&!_.B("dl_resume_click_killswitch")&&(D.isDisabled=!1,D.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});D.thumbnailOverlays=G$3(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",D)}};
$d.prototype.transferStateChanged=$d.prototype.transferStateChanged;$d.prototype.downloadProgressChanged=$d.prototype.downloadProgressChanged;$d.prototype.dataChanged=$d.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],$d.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],$d.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],$d.prototype,"data",void 0);
_.q([_.R(),_.N("design:type",Object)],$d.prototype,"videoData",void 0);_.q([_.R({selector:j5,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],$d.prototype,"downloadProgress",void 0);_.q([_.R(),_.N("design:type",Number)],$d.prototype,"relativeDateReference",void 0);_.q([_.R({selector:_.C3,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],$d.prototype,"transferState",void 0);
_.q([_.R({selector:$6h,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],$d.prototype,"downloadState",void 0);_.q([_.R({selector:ezD,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],$d.prototype,"offlinePolicyAction",void 0);_.q([_.R({selector:ZB3,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],$d.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.q([_.R({selector:OA,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],$d.prototype,"downloadedVideoPlaybackPosition",void 0);_.q([_.R({selector:QLQ,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],$d.prototype,"entityInfo",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],$d.prototype,"isDownloading",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$d.prototype,"dataChanged",null);
_.q([_.Z6("downloadProgress"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$d.prototype,"downloadProgressChanged",null);_.q([_.Z6("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$d.prototype,"transferStateChanged",null);
$d=_.q([_.d({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],$d);
_.w($d,"ytd-downloaded-video-grid-video-renderer",function(){if(K$J!==void 0)return K$J;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return K$J=x},{mode:_.Ge("kevlar_poly_si_batch_j025")?1:2});var z3u;var Fr=function(){};
Fr.prototype.resolve=function(x,G){var D=this;return _.T(function(K){return _.Z(K,D.resolveCommand(x,G),0)})};var aAE,Cd;aAE=RXn(function(x){return x.targetId},{shouldPersist:!1});
Cd=aAE.updateData;_.oFs=aAE.useUpdatableData;var ywh,lAu;ywh=RXn(function(x){return x.targetId});
lAu=ywh.updateData;_.cws=ywh.useUpdatableData;var Tz9=tpd.bind(null,Cd),W$J=tpd.bind(null,lAu);(function(x,G,D){var K=_.Y(D==null?void 0:D.updatedRenderer,_.DlZ);return K?x({targetId:G},function(){return K}):!1}).bind(null,Cd);var ID=function(){};
_.m(ID,Fr);ID.prototype.resolveCommand=function(x){var G;return _.T(function(D){G=_.Y(x,_.WiL);if(!G)return D.return();Tz9(G.targetId,G);_.c5(D)})};var jb=function(){var x=_.WD.apply(this,arguments)||this;x.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return x};
_.m(jb,_.WD);_.a=jb.prototype;_.a.configureContinuationPathMap=function(){return{}};
_.a.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.a.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.a.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.a.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.a.handleAppendContinuationItemsAction=function(x){var G=_.Y(x,_.ARZ);if(this.data&&this.data.targetId&&G&&this.continuationPathMap&&G.targetId===this.data.targetId){var D=XhE(x);if((x=D&&this.continuationPathMap[D])&&D){D=this.get(x,this.data);var K;a:{for(K=0;K<D.length;K++){var z=D[K],y=void 0,c=!!_.Y((y=_.Y(z,VIJ))==null?void 0:y.content,_.sb9);if(_.Y(z,_.hj)||c)break a}K=D.length}x="data."+x;G.continuationItems?K===D.length-1?(this.pop(x),this.push.apply(this,[x].concat(_.B5(G.continuationItems)))):
K===D.length?this.push.apply(this,[x].concat(_.B5(G.continuationItems))):this.splice.apply(this,[x,K,1].concat(_.B5(G.continuationItems))):this.splice(x,K,1);(_.B("web_enable_voting_animation")||_.B("enable_music_web_cairo_voting_animation"))&&_.h$(this.hostElement,"yt-append-continuation-items-action-finished");_.h$(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.O9(new _.LL("append continuation path does not exist",D))}};
_.a.handleReloadContinuationItemsCommand=function(x){var G=_.Y(x,_.WiL);if(this.data&&G){if(_.B("web_explore_hub")||_.B("web_client_explore_hub")||_.B("web_explore_hub_on_hover")||_.B("web_client_explore_hub_on_hover"))try{_.Eo().resolve(ID).resolveCommand(x)}catch(y){}if(this.data.targetId&&this.continuationPathMap&&G.targetId===this.data.targetId&&(!_.B("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||G.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var D,K=
(D=G.slot)==null?void 0:D.replace("RELOAD_CONTINUATION_SLOT_","");D=(x=XhE(x)+"-"+(K==null?void 0:K.toLowerCase()))&&this.continuationPathMap[x];if(!D||!x||!K)_.O9(new _.LL("reload continuation path does not exist",x));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(G)){if(G.replaceWithFirstItem){var z;this.set("data."+D,((z=G.continuationItems)==null?0:z.length)?G.continuationItems[0]:{})}else this.set("data."+D,G.continuationItems?G.continuationItems:
[]);this.continuationIsReloading=!1;_.h$(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.a.handleShowReloadUiCommand=function(x){x=_.Y(x,fU7);var G;((G=this.data)==null?0:G.targetId)&&(x==null?0:x.targetId)&&x.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
jb.prototype.observeData=jb.prototype.observeData;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],jb.prototype,"actionHandlerBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],jb.prototype,"componentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],jb.prototype,"data",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],jb.prototype,"continuationIsReloading",void 0);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jb.prototype,"observeData",null);jb=_.q([_.e2()],jb);_.Oh=[_.j$.YtComponentBehavior,_.tG.YtActionHandlerBehavior,jb.prototype];_.Xr={};_.Xr.YtNextContinuationBehavior=[_.qz.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",_.ae(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.ae(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(x,G){x.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,G,{}):(x={locationRetrieved:function(D){this.makeNextContinuationRequest_(D,G,{})}.bind(this)},_.h$(this.hostElement,"yt-retrieve-location",x))},
makeNextContinuationRequest_:function(x,G,D){_.CW("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();x=G(x);var K;this.canUseContextualNetworkManager_()&&(K=this.getNetworkManager());K||(K=_.Eo().resolve(_.mg));G=_.Aa.instance;if(_.Am("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&G){K=_.qW([x.startsWith("/")?x.substr(1):x]);var z,y;D=_.ma(G,{},K,D==null?void 0:(z=D.context)==null?void 0:(y=z.clickTracking)==null?void 0:y.clickTrackingParams).then(function(c){return{response:c}})}else D=
this.nextContinuation.usePost?K.postData(x,D):K.fetchData(x);
D.then(this.updateNextContinuationData_.bind(this,x));this.pendingContinuationRequest_=D;this.startListeningForNavigate_()},
updateNextContinuationData_:function(x,G){var D=this;_.CW("ncl");this.pendingContinuationRequest_=void 0;if(G){var K={};this.nextContinuation&&(K=this.nextContinuation);if(G.response&&G.response.continuationContents&&G.response.continuationContents[K.continuationType]){x=G.response.continuationContents[K.continuationType];var z=K.header||"data.header",y=x[K.responseHeaderKey||"header"];y&&this.set(z,y);z=K.contentsArray||"data.contents";y=this.getContents_(x,K.responseContentsKey||"contents")||[];
this.pathExists_(z)?(y.unshift(z),this.push.apply(this,y)):this.set(z,y);y&&(kfD(_.en(),G.response,this.hostElement,function(c){_.xO(D.hostElement,"yt-store-grafted-ve-action",[c])}),_.h$(this.hostElement,"yt-next-continuation-data-updated",{continuationData:G,
page:this,contentsArray:z}));this.set(K.continuationsArray||"data.continuations",x[K.responseContinuationsKey||"continuations"]||[])}else G.reload?_.O9(new _.LL("Reloading from continuation is unsupported")):G.responseContext&&G.responseContext.errors||(delete G.xsrf_token,delete G.timing,delete G.endpoint,delete G.csn,G.responseContext&&delete G.responseContext.serviceTrackingParams,z={request:_.qh(x,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(G).sort()},G.response&&(z.responseContentKeys=
Object.keys(G.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(z.continuationType=this.nextContinuation.continuationType.substr(0,256)),G=new _.LL("Malformed continuation",z),x.indexOf("/comment_service_ajax")==0?_.O9(G):_.I4(G)),this.set(K.continuationsArray||"data.continuations",[])}else _.jm(new _.LL("Missing continuation response",x))},
getContents_:function(x,G){G=G.split(".");return _.YS.getValueByKeys(x,G)},
pathExists_:function(x){var G=this;x=x.toString().split(".");for(var D=0;D<x.length;D++)if(G=G[x[D]],G===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var e39;var ZVk;var AW=function(){var x=_.n.apply(this,arguments)||this;x.triggered_=!1;return x};
_.m(AW,_.n);_.a=AW.prototype;_.a.attached=function(){this.maybeTriggerAutoload()};
_.a.detached=function(){this.hasBeenTriggered_=!1};
_.a.onPrescanVisible=function(){this.onShow()};
_.a.onShow=function(){this.showButton||this.trigger()};
_.a.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.h$(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.a.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.a.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.a.computeLabel_=function(x,G){return x===void 0?null:x.label||!G?x.label:this.showMoreText_};
_.a.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.a.getContinuationUrl=function(x){var G={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(G.itct=this.data.clickTrackingParams);return _.Nh(x,G)};
_.a.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
AW.prototype.showButtonChanged_=AW.prototype.showButtonChanged_;AW.prototype.observeData_=AW.prototype.observeData_;_.q([_.I(_.AG.YtVisibilityBehavior),_.N("design:type",Object)],AW.prototype,"ytVisibilityBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],AW.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],AW.prototype,"data",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],AW.prototype,"showButton",void 0);
_.q([_.R({value:!1}),_.N("design:type",Boolean)],AW.prototype,"showIcon",void 0);_.q([_.R({computed:"computeLabel_(data, showButton)"}),_.N("design:type",Object)],AW.prototype,"label",void 0);_.q([_.R({value:_.gK(_.Wg("SHOW_MORE",void 0,"Show More"))}),_.N("design:type",Object)],AW.prototype,"showMoreText_",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],AW.prototype,"spinnerActive_",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],AW.prototype,"hasBeenTriggered_",void 0);
_.q([_.R({value:void 0}),_.N("design:type",String)],AW.prototype,"observeVisibleOption",void 0);_.q([_.R({value:void 0}),_.N("design:type",String)],AW.prototype,"observeHiddenOption",void 0);_.q([_.R({value:"observe_once"}),_.N("design:type",Object)],AW.prototype,"observePrescanOption",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],AW.prototype,"observeData_",null);
_.q([_.yf("showButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],AW.prototype,"showButtonChanged_",null);AW=_.q([_.HD({is:"yt-next-continuation",disableElementRegistration:!0})],AW);
_.w(AW,"yt-next-continuation",function(){if(ZVk===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;e39===void 0&&(e39=document.createElement("template"));var K=e39;D.call(G,K.content.cloneNode(!0),x.content.firstChild);ZVk=x}x=ZVk;return x},{mode:2});var Mps;var QoZ;var Uh=function(){return _.n.apply(this,arguments)||this};
_.m(Uh,_.n);Uh.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Uh.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Uh.prototype,"data",void 0);Uh=_.q([_.HD({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],Uh);
_.w(Uh,"yt-music-pass-small-feature-info-renderer",function(){if(QoZ===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;Mps===void 0&&(Mps=document.createElement("template"));var K=Mps;D.call(G,K.content.cloneNode(!0),x.content.firstChild);QoZ=x}x=QoZ;return x},{mode:2});_.HH("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var RD=function(){var x=_.n.apply(this,arguments)||this;x.isCollapsible=!1;x.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return x};
_.m(RD,_.n);_.a=RD.prototype;_.a.computeIsCollapsible=function(x){return!!(((x==null?0:x.showMoreText)||(x==null?0:x.visibleRowCount))&&(x==null?0:x.isCollapsible))};
_.a.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"}}}};
_.a.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.a.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.a.onIronResize=function(){var x=this;_.Ao(this,"updateGridInitItems",function(){x.maybeUpdateInitialItemsDisplayed()})};
_.a.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var x=this.getVisibleWidth();x!==0&&(x=Math.floor(x/214)*(this.data.visibleRowCount||2),x!==this.initialCount&&(this.initialCount=x,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.a.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.a.computeExpandVisible=function(x,G,D,K){return x&&G&&D&&!!K&&!!K.showMoreText};
_.a.computeShowMoreButton=function(x){return{text:x,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.a.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.a.initCollapsed=function(){var x=this;this.ytLazyListBehavior.canShowMore=!1;var G;(this.collapsed=!((G=this.data)==null||!G.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.w1(this,function(){_.Gl(x.hostElement,"yt-refit-popups-action")})};
_.a.fillRestIfNotCollapsible=function(){var x=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!x||this.ytLazyListBehavior.fillRemainingListItems()};
_.a.computeViewAllHidden=function(x,G){return x||!G.viewAllEndpoint};
RD.prototype.fillRestIfNotCollapsible=RD.prototype.fillRestIfNotCollapsible;RD.prototype.initCollapsed=RD.prototype.initCollapsed;RD.prototype.onIronResize=RD.prototype.onIronResize;RD.prototype.persistentGuideChanged=RD.prototype.persistentGuideChanged;_.q([_.I(_.Lg),_.N("design:type",Object)],RD.prototype,"ironResizableBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],RD.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],RD.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.fS.YtLazyListBehavior),_.N("design:type",Object)],RD.prototype,"ytLazyListBehavior",void 0);_.q([_.I(_.Xr.YtNextContinuationBehavior),_.N("design:type",Object)],RD.prototype,"ytNextContinuationBehavior",void 0);_.q([_.I(_.XL.YtdGuideStateAwareBehavior),_.N("design:type",Object)],RD.prototype,"ytdGuideStateAwareBehavior",void 0);
_.q([_.I(_.Oh),_.N("design:type",Object)],RD.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],RD.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Boolean)],RD.prototype,"collapsed",void 0);_.q([_.R(),_.N("design:type",Number)],RD.prototype,"initialCount",void 0);_.q([_.R({computed:"computeShowMoreButton(data.showMoreText)"}),_.N("design:type",Object)],RD.prototype,"showMoreButton",void 0);
_.q([_.R({computed:"computeIsCollapsible(data)"}),_.N("design:type",Object)],RD.prototype,"isCollapsible",void 0);_.q([_.cD("#items"),_.N("design:type",HTMLElement)],RD.prototype,"items",void 0);_.q([_.Z6("guidePersistentAndVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RD.prototype,"persistentGuideChanged",null);_.q([_.oe("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RD.prototype,"onIronResize",null);
_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RD.prototype,"initCollapsed",null);_.q([_.Z6("canShowMore"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RD.prototype,"fillRestIfNotCollapsible",null);RD=_.q([_.d({is:"ytd-grid-renderer",disableElementRegistration:!0})],RD);
_.w(RD,"ytd-grid-renderer",function(){if(z3u!==void 0)return z3u;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return z3u=x},{mode:_.Ge("kevlar_poly_si_batch_j025")?1:2});var Sb=function(){return _.n.apply(this,arguments)||this};
_.m(Sb,_.n);
Sb.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"}}}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Sb.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Sb.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Sb.prototype,"data",void 0);Sb=_.q([_.d({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],Sb);
_.w(Sb,"ytd-carousel-ad-renderer",function(){if(h78!==void 0)return h78;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return h78=x},{mode:1});var pzi;var nd=function(){return _.n.apply(this,arguments)||this};
_.m(nd,_.n);_.a=nd.prototype;_.a.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"}}}};
_.a.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,nd.JSC$13256_CLICK_LOCATION_ID_MAP))};
_.a.onSitelinkTap=function(x){x.stopPropagation();var G,D,K=x==null?void 0:(G=x.model)==null?void 0:(D=G.item)==null?void 0:D.onTap;K&&this.ytSparklesClickLocationBehavior.handleClick(K,x,!1)};
_.a.onTap=function(x){var G=this.data&&this.data.content&&this.data.content.navigationEndpoint;G&&this.ytSparklesClickLocationBehavior.handleClick(G,x,!1)};
_.a.sendImpression=function(){if(this.data&&this.data.content)for(var x=_.l(this.data.content.impressionEndpoints||[]),G=x.next();!G.done;G=x.next()){G=_.l(G.value.loggingUrls||[]);for(var D=G.next();!D.done;D=G.next())D=D.value,D.baseUrl&&g$(D.baseUrl,D.attributionSrcMode)}};
nd.prototype.onTap=nd.prototype.onTap;nd.prototype.dataChanged=nd.prototype.dataChanged;nd.JSC$13256_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"]]);
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],nd.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],nd.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.Jp.YtSparklesClickLocationBehavior),_.N("design:type",Object)],nd.prototype,"ytSparklesClickLocationBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],nd.prototype,"data",void 0);
_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nd.prototype,"dataChanged",null);_.q([_.oe("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],nd.prototype,"onTap",null);nd=_.q([_.d({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],nd);
_.w(nd,"ytd-promoted-sparkles-text-search-renderer",function(){if(pzi!==void 0)return pzi;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return pzi=x},{mode:1});var Vps;var i2=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-mute-ad-action":"handleMuteAd"};return x};
_.m(i2,_.n);_.a=i2.prototype;
_.a.configureRendererStamper=function(){return{"data.menu":{id:_.B("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]]"}}}}}};
_.a.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.a.computeHasAdBadge=function(x){return!(x==null||!x.adBadge)};
_.a.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",i2.JSC$13265_DEFAULT_AD_BADGE_RENDERER),_.E4(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,i2.JSC$13265_CLICK_LOCATION_ID_MAP))};
_.a.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var x;(((x=this.data)==null?void 0:x.impressionCommands)||[]).forEach(function(G){G=_.l(G.loggingUrls||[]);for(var D=G.next();!D.done;D=G.next())D=D.value,D.baseUrl&&g$(D.baseUrl,D.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.a.onTap=function(x){var G,D=(G=this.data)==null?void 0:G.navigationEndpoint,K;(G=(K=this.data)==null?void 0:K.thumbnailNavigationEndpoint)&&_.dG(_.gA(x),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(G,x,!1):D&&this.ytSparklesClickLocationBehavior.handleClick(D,x,!1)};
_.a.handleMuteAd=function(){this.collapsed=!0};
_.a.attached=function(){var x=this;_.B("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&x.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.a.detached=function(){_.B("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Nq.Object.defineProperties(i2.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var x;return!(((x=this.data)==null?void 0:x.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var x;return!(((x=this.data)==null?void 0:x.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.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}}});
i2.prototype.dataChanged=i2.prototype.dataChanged;
i2.JSC$13265_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"]]);
i2.JSC$13265_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Wg("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],i2.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],i2.prototype,"ytRendererBehavior",void 0);_.q([_.I(m1),_.N("design:type",Object)],i2.prototype,"ytdActiveViewBehavior",void 0);
_.q([_.I([_.tG.YtActionHandlerBehavior]),_.N("design:type",Object)],i2.prototype,"actionHandlerBehavior",void 0);_.q([_.I(_.Jp.YtSparklesClickLocationBehavior),_.N("design:type",Object)],i2.prototype,"ytSparklesClickLocationBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],i2.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],i2.prototype,"collapsed",void 0);_.q([_.R({reflectToAttribute:!0,value:function(){return _.B("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],i2.prototype,"useBiggerThumbs",void 0);_.q([_.R({reflectToAttribute:!0,value:function(){return _.Db("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],i2.prototype,"biggerThumbsStyle",void 0);_.q([_.R({reflectToAttribute:!0,value:function(){return _.B("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.N("design:type",Boolean)],i2.prototype,"fixAlignmentSmallScreens",void 0);_.q([_.R({reflectToAttribute:!0,value:function(){return _.B("enable_desktop_search_bigger_thumbs_square")}}),
_.N("design:type",Boolean)],i2.prototype,"useBiggerThumbsSquare",void 0);_.q([_.R({reflectToAttribute:!0}),_.U("data.mediaHoverOverlay"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],i2.prototype,"hideHoverOverlay",null);_.q([_.R({reflectToAttribute:!0}),_.U("data.promotedSparklesWebStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],i2.prototype,"webSearchLayout",null);
_.q([_.R({reflectToAttribute:!0}),_.U("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],i2.prototype,"webSearchLayoutLandscape",null);_.q([_.R({reflectToAttribute:!0}),_.U("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],i2.prototype,"webSearchLayoutSquare",null);
_.q([_.R({reflectToAttribute:!0}),_.U("data.promotedSparklesWebStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],i2.prototype,"sparklesCtaNoBackground",null);_.q([_.R({reflectToAttribute:!0}),_.U("data.actionButton"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],i2.prototype,"hideActionButton",null);_.q([_.R({computed:"computeButtonOverride(uiUpdate)"}),_.N("design:type",Object)],i2.prototype,"buttonOverride",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.N("design:type",Boolean)],i2.prototype,"hasNewAdBadge",void 0);_.q([_.U("data.promotedSparklesWebStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],i2.prototype,"useRoundedBadge",null);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],i2.prototype,"dataChanged",null);i2=_.q([_.d({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],i2);
_.w(i2,"ytd-promoted-sparkles-web-renderer",function(){if(Vps!==void 0)return Vps;var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Vps=x},{mode:1});var bV0;var g_=function(){return _.n.apply(this,arguments)||this};
_.m(g_,_.n);_.a=g_.prototype;_.a.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]]"}}}}}};
_.a.computeShowCta=function(x){return!(x==null||!x.ctaRenderer)};
_.a.onCtaClick=function(){var x,G,D,K=(x=this.data)==null?void 0:(G=x.ctaRenderer)==null?void 0:(D=G.buttonRenderer)==null?void 0:D.command;K&&this.ytComponentBehavior.resolveCommand(K)};
_.a.onWatchButtonClick=function(){var x,G,D,K=(x=this.data)==null?void 0:(G=x.watchButtonRenderer)==null?void 0:(D=G.buttonRenderer)==null?void 0:D.command;K&&this.ytComponentBehavior.resolveCommand(K)};
_.a.onTap=function(){};
_.a.dataChanged=function(){if(this.data&&(this.data.adBadge||this.set("data.adBadge",g_.JSC$13268_DEFAULT_AD_BADGE_RENDERER),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",g_.JSC$13268_DEFAULT_CLICK_LOCATION_BEHAVIOR,g_.JSC$13268_CLICK_LOCATION_ID_MAP),this.thumbnail)){var x=this.thumbnail.getElementsByTagName("a");x.length>0&&(x=x.namedItem("thumbnail"))&&x.removeAttribute("href")}};
_.a.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var x=_.l(this.data.impressionUrls),G=x.next();!G.done;G=x.next())G=G.value,piL(G,btE(G));this.data.impressionsFired=!0}};
_.a.maybeComputeHref=function(){return null};
_.a.computeIsShortDR=function(x){return!(x==null||!x.watchButtonRenderer)&&!(x==null||!x.ctaRenderer)&&!!this.enableShortDR};
_.a.computeIsNewUiOrShortDr=function(x){return!!this.enableUiUpdate||this.computeIsShortDR(x)};
_.a.computeIsNewUiAndNotShortDr=function(x){return!!this.enableUiUpdate&&!this.computeIsShortDR(x)};
_.a.computeHideAvatar=function(x){return!((x==null?0:x.channelThumbnail)&&this.computeIsNewUiOrShortDr(x))};
_.a.onClick=function(x){var G,D=(G=this.data)==null?void 0:G.navigationEndpoint;if(this.enableShortDR&&D&&(_.Y(D,_.d5)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(D,x,!!_.Y(D,_.d5)),x.stopPropagation();else if(D&&_.Y(D,_.d5))this.ytSparklesClickLocationBehavior.handleClick(D,x,!0),x.stopPropagation();else if(D){var K,z;((K=this.data)==null?0:K.navigationEndpoint)&&((z=this.data)==null?0:z.adPlaybackContextParams)&&aC3(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(D)}};
_.a.computeButtonOverride=function(x){if(this.computeIsNewUiOrShortDr(x))return{style:"call-to-action",type:"tonal",iconPosition:"none"}};
_.a.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.a.onThumbnailContainerClick=function(x){this.onClick(x)};
_.a.computeThumbnailWidth=function(x,G){return x?G==="MASSIVE"?600:G==="BIG"?500:G==="MEDIUM"?450:420:360};
_.a.attached=function(){var x=this;_.B("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&x.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.a.detached=function(){_.B("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
g_.prototype.dataChanged=g_.prototype.dataChanged;g_.prototype.onTap=g_.prototype.onTap;g_.JSC$13268_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Wg("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};g_.JSC$13268_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
g_.JSC$13268_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"}];_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],g_.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],g_.prototype,"ytRendererBehavior",void 0);_.q([_.I(m1),_.N("design:type",Object)],g_.prototype,"ytdActiveViewBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],g_.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.Jp.YtSparklesClickLocationBehavior),_.N("design:type",Object)],g_.prototype,"ytSparklesClickLocationBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],g_.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0,value:function(){return _.B("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],g_.prototype,"useBiggerThumbs",void 0);_.q([_.R({reflectToAttribute:!0,value:function(){return _.B("enable_video_display_compact_button_group_for_desktop_search")}}),
_.N("design:type",Boolean)],g_.prototype,"enableShortDR",void 0);_.q([_.R({reflectToAttribute:!0,value:function(){return _.B("enable_vac_ui_update_for_desktop_search")}}),
_.N("design:type",Boolean)],g_.prototype,"enableUiUpdate",void 0);_.q([_.R({reflectToAttribute:!0,value:function(){return _.Db("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],g_.prototype,"biggerThumbsStyle",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.N("design:type",Boolean)],g_.prototype,"showCta",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.N("design:type",Boolean)],g_.prototype,"isShortDr",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.N("design:type",Boolean)],g_.prototype,"isShortDrOrNewUi",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.N("design:type",Boolean)],g_.prototype,"isNewUiAndNotShortDr",void 0);_.q([_.R({computed:"computeButtonOverride(data)"}),_.N("design:type",Object)],g_.prototype,"buttonOverride",void 0);_.q([_.R({computed:"computeSecondaryButtonOverride(data)"}),_.N("design:type",Object)],g_.prototype,"secondaryButtonOverride",void 0);_.q([_.cD("ytd-thumbnail"),_.N("design:type",HTMLElement)],g_.prototype,"thumbnail",void 0);
_.q([_.oe("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],g_.prototype,"onTap",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],g_.prototype,"dataChanged",null);g_=_.q([_.d({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],g_);
_.w(g_,"ytd-promoted-video-renderer",function(){if(bV0!==void 0)return bV0;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return bV0=x},{mode:1});var L$8;var u2=function(){var x=_.n.apply(this,arguments)||this;x.useRoundedBadge=!0;x.sitelinkIds=[];return x};
_.m(u2,_.n);_.a=u2.prototype;
_.a.configureRendererStamper=function(){return{"data.menu":{id:_.B("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]]"}}}}}};
_.a.dataChanged=function(){var x;(x=this.data)!=null&&x.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,u2.JSC$13275_CLICK_LOCATION_ID_MAP)};
_.a.onTap=function(x){var G,D=(G=this.data)==null?void 0:G.navigationCommand;D&&!_.dG(_.gA(x),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(D,x,!1)};
_.a.onSitelinkTap=function(x){var G,D,K=x==null?void 0:(G=x.model)==null?void 0:(D=G.item)==null?void 0:D.onTap;K&&this.ytSparklesClickLocationBehavior.handleClick(K,x,!1)};
_.a.configureSitelinkClickTargets=function(){var x=this,G,D,K=(G=this.data)==null?void 0:(D=G.clickLocationTargets)==null?void 0:D.find(function(z){return z.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
K&&_.kA(this.hostElement).querySelectorAll(".sitelink").forEach(function(z){_.E4(z,"yt-simple-endpoint",!0);x.sitelinkIds.push(z.id);var y,c;(y=x.ytSparklesClickLocationBehavior)==null||(c=y.clickTargetMap)==null||c.set(z.id,K)})};
_.a.sendImpression=function(){var x,G,D=((x=this.data)==null?void 0:(G=x.impressionCommand)==null?void 0:G.loggingUrls)||[];x=_.l(D);for(G=x.next();!G.done;G=x.next())G=G.value,G.baseUrl&&g$(G.baseUrl,G.attributionSrcMode)};
_.a.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.Nq.Object.defineProperties(u2.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
u2.prototype.onTap=u2.prototype.onTap;u2.prototype.dataChanged=u2.prototype.dataChanged;u2.JSC$13275_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"]]);
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],u2.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],u2.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.Jp.YtSparklesClickLocationBehavior),_.N("design:type",Object)],u2.prototype,"ytSparklesClickLocationBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],u2.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],u2.prototype,"showFavicon",null);_.q([_.R({reflectToAttribute:!0,value:function(){return _.B("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],u2.prototype,"useBiggerThumbs",void 0);_.q([_.R({reflectToAttribute:!0,value:function(){return _.Db("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],u2.prototype,"biggerThumbsStyle",void 0);_.q([_.R({reflectToAttribute:!0,value:function(){return _.B("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.N("design:type",Boolean)],u2.prototype,"enableThumbnailScalingFix",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],u2.prototype,"dataChanged",null);_.q([_.oe("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],u2.prototype,"onTap",null);u2=_.q([_.d({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],u2);
_.w(u2,"ytd-text-image-no-button-layout-renderer",function(){if(L$8!==void 0)return L$8;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return L$8=x},{mode:_.Ge("kevlar_poly_si_batch_j028")?1:2});var Bzk;var d_=function(){var x=_.n.apply(this,arguments)||this;x.isInlinePlaybackState=!1;x.uiUpdate=_.B("web_modern_buttons");x.hideCta=_.B("hide_cta_for_home_web_video_ads");x.noBottomMargin=!1;x.animateInTimeStamp=_.Gz("hide_cta_for_home_web_video_ads_animate_in_time");x.animateInCta=!1;x.isHovered=!1;x.player=null;x.JSC$13282_playerEvents=new Map;x.JSC$13282_preventProgressSaveTimer=null;x.delayedCtaJobId=null;return x};
_.m(d_,_.n);_.a=d_.prototype;_.a.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]]"}}}}}};
_.a.attached=function(){this.JSC$13282_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13282_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.B("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.a.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$13282_playerEvents)};
_.a.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",d_.JSC$13281_DEFAULT_CLICK_LOCATION_BEHAVIOR,d_.JSC$13281_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.a.hoverChanged=function(){var x=this;this.delayedCtaJobId&&(_.Fj.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.B("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.eU(_.Fj,function(){x.buttonContainer.classList.add("show-delayed-buttons")},_.Gz("delayed_cta_on_web_delay_milliseconds")))};
_.a.setPlayer=function(){var x=this,G;return _.T(function(D){if(D.nextAddress==1)return(G=_.Gl(x.hostElement,"yt-get-inline-preview-player-action"))&&G[0]?_.Z(D,G[0].getPlayerPromise(),3):D.jumpTo(0);x.player=D.yieldResult;x.ytPlayerListenerBehavior.listenToPlayerEvents(x.player,x.JSC$13282_playerEvents);_.c5(D)})};
_.a.onPlaybackStart=function(){var x=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13282_preventProgressSaveTimer=_.x7(_.Fj,function(){x.JSC$13282_preventProgressSaveTimer=null},1E4))};
_.a.onVideoProgress=function(x){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&x>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.a.resetPreventProgressSaveTimer=function(){_.Fj.cancelJob(this.JSC$13282_preventProgressSaveTimer);this.JSC$13282_preventProgressSaveTimer=null};
_.a.getSimpleString=function(x){return _.u7(x)};
_.a.onClick=function(x){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var G,D=(G=this.data)==null?void 0:G.navigationEndpoint,K;G=(K=this.data)==null?void 0:K.channelEndpoint;var z,y;(K=(y=_.Y((z=this.data)==null?void 0:z.adCtaButton,_.$V))==null?void 0:y.command)&&_.dG(_.gA(x),this.hostElement,["call-to-action"])?_.B("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(K,x,!1):G&&_.dG(_.gA(x),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(G,x,!1):!_.dG(_.gA(x),this.hostElement,["secondary-button"])&&D&&(_.B("enable_short_dr_for_desktop_launchable")?(z=!!_.Y(D,_.d5),this.isInlinePlaybackState&&z&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(D,x,z)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(D,x,!0)))}};
_.a.updateWatchEndpointStartTime=function(){var x,G;this.player&&((x=this.data)==null?0:x.inlinePlaybackEndpoint)&&((G=this.data)==null?0:G.navigationEndpoint)&&!this.JSC$13282_preventProgressSaveTimer&&(x=Math.floor(this.player.getCurrentTime()),_.Y(this.data.navigationEndpoint,_.d5).startTimeSeconds=x,_.Y(this.data.inlinePlaybackEndpoint,_.d5).startTimeSeconds=x)};
_.a.computeButtonOverride=function(){if(this.uiUpdate)return{style:"call-to-action",type:"tonal"}};
_.a.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.Nq.Object.defineProperties(d_.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.B("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var x,G;return!((x=this.data)==null||!x.watchButton)&&!((G=this.data)==null||!G.adCtaButton)}}});
d_.prototype.hoverChanged=d_.prototype.hoverChanged;d_.prototype.dataChanged=d_.prototype.dataChanged;
d_.JSC$13281_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"]]);
d_.JSC$13281_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"}];
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],d_.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],d_.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],d_.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.Jp.YtSparklesClickLocationBehavior),_.N("design:type",Object)],d_.prototype,"ytSparklesClickLocationBehavior",void 0);
_.q([_.I(_.nS.YtPlayerListenerBehavior),_.N("design:type",_.i4)],d_.prototype,"ytPlayerListenerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],d_.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],d_.prototype,"isInlinePlaybackState",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],d_.prototype,"miniMode",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],d_.prototype,"uiUpdate",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],d_.prototype,"hideCta",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],d_.prototype,"noBottomMargin",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],d_.prototype,"animateInCta",void 0);_.q([_.R({computed:"computeButtonOverride(uiUpdate)"}),_.N("design:type",Object)],d_.prototype,"buttonOverride",void 0);
_.q([_.R({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.N("design:type",Object)],d_.prototype,"secondaryButtonOverride",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],d_.prototype,"isHovered",void 0);_.q([_.cD("#button-container"),_.N("design:type",HTMLElement)],d_.prototype,"buttonContainer",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],d_.prototype,"typographyBump",void 0);
_.q([_.R({reflectToAttribute:!0}),_.U("typographyBump"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],d_.prototype,"typographyBumpV2",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],d_.prototype,"dataChanged",null);_.q([_.yf("isHovered"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],d_.prototype,"hoverChanged",null);
_.q([_.U("data"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],d_.prototype,"isButtonGroup",null);d_=_.q([_.d({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],d_);
_.w(d_,"ytd-ad-inline-playback-meta-block",function(){if(Bzk!==void 0)return Bzk;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Bzk=x},{mode:_.Ge("kevlar_poly_si_batch_j065")?1:2});var rws;var w_=function(){var x=_.n.apply(this,arguments)||this;x.noBottomMargin=!1;x.isInlinePreviewTriggered=!1;x.JSC$13287_activeViewMeasurementDataResolver=_.Ss();return x};
_.m(w_,_.n);_.a=w_.prototype;_.a.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.a.attached=function(){var x=this;this.updateInlinePreviewHoverListeners();this.JSC$13287_activeViewMeasurementDataResolver.promise.then(function(G){x.ytdActiveViewBehavior.enableActiveViewMeasurement(G,15)});
_.B("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&x.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.a.detached=function(){this.clearInlinePreviewHoverListeners();_.B("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.a.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13287_inlinePreviewHoverListener=uA({mediaRenderer:this,lockupElement:this.JSC$13287_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:XQq})};
_.a.clearInlinePreviewHoverListeners=function(){var x;(x=this.JSC$13287_inlinePreviewHoverListener)==null||EH(x)};
_.a.onDataChanged=function(){var x;((x=this.data)==null?0:x.activeView)&&this.JSC$13287_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",w_.JSC$13286_DEFAULT_CLICK_LOCATION_BEHAVIOR,w_.JSC$13286_CLICK_LOCATION_ID_MAP);this.thumbnail&&(x=this.thumbnail.getElementsByTagName("a"),x.length>0&&(x=x.namedItem("thumbnail"))&&x.removeAttribute("href"));var G,D;if(((G=this.data)==
null?0:G.hasAutoplay)||((D=this.data)==null?0:D.forceImpAutoplay)){var K;(K=this.JSC$13287_inlinePreviewHoverListener)==null||v4q(K)}};
_.a.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.a.onThumbnailContainerClick=function(x){if(this.data&&this.data.navigationEndpoint){var G,D=(G=this.data)==null?void 0:G.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(D,x,!!_.Y(D,_.d5));x.stopPropagation()}};
_.a.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.a.impressionLog=function(){var x=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var G,D,K=(D=_.Y((G=this.data)==null?void 0:G.onImpression,_.oI))==null?void 0:D.commands;K&&(K.forEach(function(z){z.clickTrackingParams&&delete z.clickTrackingParams;x.ytComponentBehavior.resolveCommand(z)}),this.data.impressionsFired=!0)}};
_.Nq.Object.defineProperties(w_.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.JSC$13287_inlinePreviewHoverListener)==null?0:mZ(x))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
w_.prototype.onTypographyBumpChanged=w_.prototype.onTypographyBumpChanged;w_.prototype.onDataChanged=w_.prototype.onDataChanged;w_.JSC$13286_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);w_.JSC$13286_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"}];
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],w_.prototype,"ytComponentBehavior",void 0);_.q([_.I(m1),_.N("design:type",Object)],w_.prototype,"ytdActiveViewBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],w_.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],w_.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.CS),_.N("design:type",Object)],w_.prototype,"ytdDismissibleItemBehavior",void 0);
_.q([_.I(_.RG),_.N("design:type",Object)],w_.prototype,"ytdLockupBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],w_.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.Jp.YtSparklesClickLocationBehavior),_.N("design:type",Object)],w_.prototype,"ytSparklesClickLocationBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],w_.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],w_.prototype,"noBottomMargin",void 0);
_.q([_.R(),_.N("design:type",Object)],w_.prototype,"isInlinePreviewTriggered",void 0);_.q([_.R({reflectToAttribute:!0,selector:_.Y_}),_.N("design:type",Boolean)],w_.prototype,"miniMode",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],w_.prototype,"typographyBump",void 0);_.q([_.cD("ytd-thumbnail"),_.N("design:type",HTMLElement)],w_.prototype,"thumbnail",void 0);_.q([_.cD("#dismissible"),_.N("design:type",HTMLElement)],w_.prototype,"JSC$13287_dismissibleMedia",void 0);
_.q([_.cD("ytd-ad-inline-playback-meta-block"),_.N("design:type",HTMLElement)],w_.prototype,"adInlinePlaybackMetaBlock",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],w_.prototype,"onDataChanged",null);_.q([_.Z6("typographyBump"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],w_.prototype,"onTypographyBumpChanged",null);
_.q([_.U("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],w_.prototype,"isHovered",null);w_=_.q([_.d({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],w_);
_.w(w_,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(rws!==void 0)return rws;var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-and-button-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" no-bottom-margin="[[noBottomMargin]]" typography-bump="[[typographyBump]]" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer"></div>\n</div>\n');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return rws=x},{mode:1});var so7;var qD=function(){var x=_.n.apply(this,arguments)||this;x.isInlinePreviewTriggered=!1;x.JSC$13290_activeViewMeasurementDataResolver=_.Ss();return x};
_.m(qD,_.n);_.a=qD.prototype;_.a.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.a.attached=function(){var x=this;this.updateInlinePreviewHoverListeners();this.JSC$13290_activeViewMeasurementDataResolver.promise.then(function(G){x.ytdActiveViewBehavior.enableActiveViewMeasurement(G,15)})};
_.a.detached=function(){this.clearInlinePreviewHoverListeners()};
_.a.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13290_inlinePreviewHoverListener=uA({mediaRenderer:this,lockupElement:this.JSC$13290_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:XQq})};
_.a.clearInlinePreviewHoverListeners=function(){var x;(x=this.JSC$13290_inlinePreviewHoverListener)==null||EH(x)};
_.a.onDataChanged=function(){var x;((x=this.data)==null?0:x.activeView)&&this.JSC$13290_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",qD.JSC$13289_DEFAULT_CLICK_LOCATION_BEHAVIOR,qD.JSC$13289_CLICK_LOCATION_ID_MAP);this.thumbnail&&(x=this.thumbnail.getElementsByTagName("a"),x.length>0&&(x=x.namedItem("thumbnail"))&&x.removeAttribute("href"))};
_.a.onThumbnailContainerClick=function(x){if(this.data&&this.data.navigationEndpoint){var G,D=(G=this.data)==null?void 0:G.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(D,x,!0);x.stopPropagation()}};
_.a.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.a.impressionLog=function(){var x=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var G,D,K=(D=_.Y((G=this.data)==null?void 0:G.onImpression,_.oI))==null?void 0:D.commands;K&&(K.forEach(function(z){z.clickTrackingParams&&delete z.clickTrackingParams;_.Eo().resolve(_.hm).resolveCommand(z,{form:{element:x.hostElement}})}),this.data.impressionsFired=!0)}};
_.Nq.Object.defineProperties(qD.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.JSC$13290_inlinePreviewHoverListener)==null?0:mZ(x))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
qD.prototype.onDataChanged=qD.prototype.onDataChanged;qD.JSC$13289_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);qD.JSC$13289_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"}];_.q([_.I(m1),_.N("design:type",Object)],qD.prototype,"ytdActiveViewBehavior",void 0);
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],qD.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],qD.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.CS),_.N("design:type",Object)],qD.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.I(_.RG),_.N("design:type",Object)],qD.prototype,"ytdLockupBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],qD.prototype,"ytdReduxBehavior",void 0);
_.q([_.I(_.Jp.YtSparklesClickLocationBehavior),_.N("design:type",Object)],qD.prototype,"ytSparklesClickLocationBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],qD.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],qD.prototype,"isInlinePreviewTriggered",void 0);_.q([_.R({reflectToAttribute:!0,selector:_.Y_}),_.N("design:type",Boolean)],qD.prototype,"miniMode",void 0);_.q([_.cD("ytd-thumbnail"),_.N("design:type",HTMLElement)],qD.prototype,"thumbnail",void 0);
_.q([_.cD("#dismissible"),_.N("design:type",HTMLElement)],qD.prototype,"JSC$13290_dismissibleMedia",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qD.prototype,"onDataChanged",null);_.q([_.U("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],qD.prototype,"isHovered",null);qD=_.q([_.d({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],qD);
_.w(qD,"ytd-video-display-full-buttoned-renderer",function(){if(so7!==void 0)return so7;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return so7=x},{mode:1});var zF=function(x,G,D,K){K=K===void 0?!1:K;_.xC.call(this,x);this.adsClientErrorMessage=D;this.aggressivelySample=K;this.args=[];G&&this.args.push(G)};
_.m(zF,_.xC);var Dk=function(x,G,D,K){K=K===void 0?!1:K;_.xC.call(this,x);this.adsClientErrorMessage=D;this.aggressivelySample=K;this.args=[];G&&this.args.push(G)};
_.m(Dk,_.xC);var Yw0=function(x){_.Ya.call(this);var G=this;this.initializationFunction=x;this.instance=null;this.addOnDisposeCallback(function(){_.kS(G.instance);G.instance=null})};
_.m(Yw0,_.Ya);Yw0.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.tc("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var zYQ=function(){var x=new Map;[].forEach(function(G){x.set(G.JSC$26885_getType(),G)})};new Promise(function(){});var h33=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"]]),PsP=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"}]]),mxJ=function(x){this.experimentApiProvider=x;x=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=x<.1};var ND=function(x,G,D,K){_.Ya.call(this);this.adsControlFlowEventListeners=G;this.adEventLogger=D;this.experimentApiProvider=K;this.adsControlFlowManagerHelper=x(this,this,this,this,this);_.WZ(this,this.adsControlFlowManagerHelper);x=_.l(G);for(G=x.next();!G.done;G=x.next())_.WZ(this,G.value)};
_.m(ND,_.Ya);var HVq=function(x,G,D,K){vO(x.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",G,D,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,K);x=_.l(x.adsControlFlowEventListeners);for(K=x.next();!K.done;K=x.next())HVq(K.value,G,D)};
_.a=ND.prototype;_.a.onOpportunityProcessedExternallyManaged=function(x,G,D,K){vO(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",x,D,G,void 0,void 0,void 0,void 0,void 0,void 0,void 0,K)};
_.a.onSlotReceivedExternallyManaged=function(x,G){JW(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",x,G)};
_.a.onSlotEntered=function(x){if(fd(this.adsControlFlowManagerHelper,x)!=null){JW(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",x);this.adsControlFlowManagerHelper.onSlotEntered(x);for(var G=_.l(this.adsControlFlowEventListeners),D=G.next();!D.done;D=G.next())D.value.onSlotEntered(x);if(fd(this.adsControlFlowManagerHelper,x)!=null&&fd(this.adsControlFlowManagerHelper,x).isOccupyingSlotType()&&tW(this.adsControlFlowManagerHelper,x)&&!$xi(this.adsControlFlowManagerHelper,x)){var K;kd(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",x,(K=tW(this.adsControlFlowManagerHelper,x))!=null?K:void 0);x=fd(this.adsControlFlowManagerHelper,x);x.slotLifecycleStage!=="entered"&&PO(x.slot,x.slotLifecycleStage,"enterLayoutForSlot");x.slotLifecycleStage="rendering";x.registeredLayoutRenderingAdapter.startRendering(x.layout)}}};
_.a.onSlotExited=function(x){if(fd(this.adsControlFlowManagerHelper,x)!=null){JW(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",x);this.adsControlFlowManagerHelper.onSlotExited(x);for(var G=_.l(this.adsControlFlowEventListeners),D=G.next();!D.done;D=G.next())D.value.onSlotExited(x);fd(this.adsControlFlowManagerHelper,x)!=null&&fd(this.adsControlFlowManagerHelper,x).markedForUnscheduleAfterOutboundAdapterRequests&&F$q(this,x)}};
_.a.onLayoutReceivedExternallyManaged=function(x,G,D){x.managerLayer!=="core"&&kd(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",x,G,D)};
var Css=function(x,G,D){if(fd(x.adsControlFlowManagerHelper,G)!=null){kd(x.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",G,D);x=_.l(x.adsControlFlowEventListeners);for(var K=x.next();!K.done;K=x.next())Css(K.value,G,D)}};
ND.prototype.onLayoutExited=function(x,G,D){if(fd(this.adsControlFlowManagerHelper,x)!=null){kd(this.adEventLogger,EFd(D),x,G);this.adsControlFlowManagerHelper.onLayoutExited(x,G);for(var K=_.l(this.adsControlFlowEventListeners),z=K.next();!z.done;z=K.next())z.value.onLayoutExited(x,G,D);(D=tW(this.adsControlFlowManagerHelper,x))&&G.layoutId===D.layoutId&&IAi(this,x)}};
ND.prototype.disposeInternal=function(){var x=jok(this.adsControlFlowManagerHelper);x=_.l(x);for(var G=x.next();!G.done;G=x.next())F$q(this,G.value);_.Ya.prototype.disposeInternal.call(this)};
var F$q=function(x,G){if(fd(x.adsControlFlowManagerHelper,G)!=null)if(fd(x.adsControlFlowManagerHelper,G).JSC$26916_isSlotExitRequested()||fd(x.adsControlFlowManagerHelper,G).JSC$26916_isLayoutExitRequested())fd(x.adsControlFlowManagerHelper,G).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(fd(x.adsControlFlowManagerHelper,G).isOccupyingSlotType())fd(x.adsControlFlowManagerHelper,G).markedForUnscheduleAfterOutboundAdapterRequests=!0,IAi(x,G);else if(fd(x.adsControlFlowManagerHelper,G).JSC$26916_isSlotFillRequested())fd(x.adsControlFlowManagerHelper,
G).markedForUnscheduleAfterOutboundAdapterRequests=!0,fd(x.adsControlFlowManagerHelper,G)!=null&&(JW(x.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",G),G=fd(x.adsControlFlowManagerHelper,G),G.fulfillmentLifecycleStage="fill_cancel_requested",G.registeredFulfillmentAdapter.cancelSlotFilling());else{var D=tW(x.adsControlFlowManagerHelper,G),K;x.experimentApiProvider.get();(K=_.B("h5_enable_layout_unscheduling_events"))&&(D?OVq(x,G,D):_.tc(Error("Eh"),G,D,void 0,!1));JW(x.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",G);var z=fd(x.adsControlFlowManagerHelper,G),y=G.slotEntryTrigger,c=z.registeredSlotEntryTriggerAdapters.get(y.triggerId);c&&(c.unregisterTrigger(y),z.registeredSlotEntryTriggerAdapters.delete(y.triggerId));y=_.l(G.slotFulfillmentTriggers);for(c=y.next();!c.done;c=y.next()){c=c.value;var W=z.registeredFulfillmentTriggerAdapters.get(c.triggerId);W&&(W.unregisterTrigger(c),z.registeredFulfillmentTriggerAdapters.delete(c.triggerId))}y=_.l(G.slotExpirationTriggers);
for(c=y.next();!c.done;c=y.next())if(c=c.value,W=z.registeredExpirationTriggerAdapters.get(c.triggerId))W.unregisterTrigger(c),z.registeredExpirationTriggerAdapters.delete(c.triggerId);z.hasLayout()&&(y=z.layout,Eh(z,y.layoutExitNormalTriggers),Eh(z,y.layoutExitSkipTriggers),Eh(z,y.layoutExitMuteTriggers),Eh(z,y.layoutExitUserInputSubmittedTriggers),Eh(z,y.layoutExitUserCancelledTriggers));z.registeredFulfillmentAdapter=void 0;z.registeredSlotAdapter!=null&&(z.registeredSlotAdapter.release(),z.registeredSlotAdapter=
void 0);z.registeredLayoutRenderingAdapter!=null&&(z.registeredLayoutRenderingAdapter.release(),z.registeredLayoutRenderingAdapter=void 0);z=x.adsControlFlowManagerHelper;fd(z,G)&&(z=Xzi(z,G.slotType+"_"+G.slotPhysicalPosition))&&z.delete(G.slotId);JW(x.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",G);x=_.l(x.adsControlFlowEventListeners);for(z=x.next();!z.done;z=x.next())z=z.value,z.onSlotUnscheduled(G),D&&!K&&OVq(z,G,D)}},OVq=function(x,G,D){kd(x.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
G,D);
kd(x.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",G,D);x=_.l(x.adsControlFlowEventListeners);for(var K=x.next();!K.done;K=x.next())K=K.value,D&&OVq(K,G,D)},IAi=function(x,G){if(fd(x.adsControlFlowManagerHelper,G)!=null&&fd(x.adsControlFlowManagerHelper,G).isOccupyingSlotType()){var D=tW(x.adsControlFlowManagerHelper,G);
if(D&&$xi(x.adsControlFlowManagerHelper,G)){if(fd(x.adsControlFlowManagerHelper,G)!=null){var K=x.adEventLogger,z;var y=((z=PsP.get("abandoned"))==null?void 0:z.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";kd(K,y,G,D);x=fd(x.adsControlFlowManagerHelper,G);x.slotLifecycleStage!=="rendering"&&PO(x.slot,x.slotLifecycleStage,"exitLayout");x.slotLifecycleStage="rendering_stop_requested";x.registeredLayoutRenderingAdapter.stopRendering(D,"abandoned")}}else{JW(x.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
G);try{K=fd(x.adsControlFlowManagerHelper,G);if(!K)throw new Dk("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");K.slotLifecycleStage!=="enter_requested"&&K.slotLifecycleStage!=="entered"&&K.slotLifecycleStage!=="rendering"&&PO(K.slot,K.slotLifecycleStage,"exitSlot");K.slotLifecycleStage="exit_requested";if(K.registeredSlotAdapter===void 0)throw K.slotLifecycleStage="scheduled",new Dk("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
K.registeredSlotAdapter.exit()}catch(c){c instanceof Dk&&c.adsClientErrorMessage?(AwZ(x.adEventLogger,c.adsClientErrorMessage,G),_.tc(c,G,void 0,void 0,c.aggressivelySample)):(AwZ(x.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",G),_.tc(c,G))}}}};var hW=function(x,G,D,K,z,y){_.Ya.call(this);this.registry=x;this.experimentApiProvider=y;this.slotMap=new Map};
_.m(hW,_.Ya);var Xzi=function(x,G){return(x=x.slotMap.get(G))?x:new Map},fd=function(x,G){return Xzi(x,G.slotType+"_"+G.slotPhysicalPosition).get(G.slotId)},jok=function(x){var G=[];
x.slotMap.forEach(function(D){D=_.l(D.values());for(var K=D.next();!K.done;K=D.next())G.push(K.value.slot)});
return G};
hW.prototype.onSlotEntered=function(x){x=fd(this,x);x.slotLifecycleStage!=="enter_requested"&&PO(x.slot,x.slotLifecycleStage,"onSlotEntered");x.slotLifecycleStage="entered"};
var $xi=function(x,G){x=fd(x,G);return x.hasLayout()&&x.isRendering()},tW=function(x,G){(x=fd(x,G))?x.hasLayout()&&!x.layout&&_.tc("Unexpected empty layout",G):_.tc("Unexpected undefined slotState",G);
return(x==null?void 0:x.layout)||null};
hW.prototype.onSlotExited=function(x){x=fd(this,x);x.slotLifecycleStage!=="exit_requested"&&PO(x.slot,x.slotLifecycleStage,"onSlotExited");x.slotLifecycleStage="scheduled"};
hW.prototype.onLayoutExited=function(x,G){x=fd(this,x);x.isPrimaryLayout(G)&&(x.slotLifecycleStage!=="rendering_stop_requested"&&PO(x.slot,x.slotLifecycleStage,"onLayoutExited"),x.slotLifecycleStage="entered")};
var Eh=function(x,G){G=_.l(G);for(var D=G.next();!D.done;D=G.next()){D=D.value;var K=x.registeredLayoutExitTriggerAdapters.get(D.triggerId);K&&(K.unregisterTrigger(D),x.registeredLayoutExitTriggerAdapters.delete(D.triggerId))}},PO=function(x,G,D){_.tc("Slot stage was "+G+" when calling method "+D,x)};var R37=function(x){_.Ya.call(this);this.deps=x;this.JSC$13339_adsControlFlowManager=UxJ(this)};
_.m(R37,_.Ya);var UxJ=function(x){var G=new ND(function(D,K,z,y){return new hW(x.deps.registry,D,K,z,y,x.deps.experimentApiProvider)},new Set(KtO(x.deps.registry).concat(x.deps.listeners)),x.deps.adEventLogger,x.deps.experimentApiProvider);
_.WZ(x,G);return G};var Swi=function(x,G){_.Ya.call(this);this.experimentApiProvider=x;this.eventLoggingSettingsProvider=G;this.eventCount=0};
_.m(Swi,_.Ya);Swi.prototype.logEvent=function(x){vO(this,x)};
var JW=function(x,G,D,K){vO(x,G,void 0,void 0,void 0,D,void 0,void 0,void 0,D.adSlotLoggingData,void 0,void 0,K)},kd=function(x,G,D,K,z){vO(x,G,void 0,void 0,void 0,D,K?K:void 0,void 0,void 0,D.adSlotLoggingData,K?K.adLayoutLoggingData:void 0,void 0,z)},AwZ=function(x,G,D){vO(x,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,D,void 0,void 0,void 0,D.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:G})},vO=function(x,G,D,K,z,y,c,W,e,Q,p,V,L){L=L===void 0?0:L;
nFh(x.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+G,"slot:",y,"layout:",c,"ping:",W,"Opportunity:",{opportunityType:D,associatedSlotId:K,slotsFromOpportunity:z,triggerBundle:e,adSlotLoggingData:Q,adLayoutLoggingData:p});try{var r=function(){x.experimentApiProvider.get();if(G!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){G||_.tc("Empty PACF event type",y,c);var H=x.eventLoggingSettingsProvider.get();var O;(O=H.alwaysIncludeDebugData)||(H.experimentApiProvider.get(),O=
!1);H=O;O={eventType:G,eventOrder:++x.eventCount};var A={};y&&(A.slotData=GNh(H,y));if(c){var g={type:c.layoutType,controlFlowManagerLayer:h33.get(c.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};H&&(g.debugData={layoutId:c.layoutId});A.layoutData=g}W&&(A.pingData={pingDispatchStatus:W.dispatchStatus,serializedAdPingMetadata:W.ping.serializedAdPingMetadata,pingIndex:W.index});e&&(A.triggerData=xb3(e.trigger,e.category));D&&(A.opportunityData=Db3(H,D,K,z));O.adClientData=A;Q&&(O.serializedSlotAdServingData=
Q.serializedSlotAdServingDataEntry);p&&(O.serializedAdServingData=p.serializedAdServingDataEntry);V&&(O.errorInfo=V);_.Fv("adsClientStateChange",{adsClientEvent:O})}};
L&&L>0?_.Bw(_.rv(),function(){return r()},L):r()}catch(H){nFh(x.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.Bw(_.rv(),function(){_.tc(H instanceof Error?H:String(H),y,c,{pacf_message:"exception during pacf logging"})})}};var iV8=function(x,G){Swi.call(this,x,G)};
_.m(iV8,Swi);var gFo=function(){},nFh=function(x,G){return _.B(G)};var dx0=function(){var x=new uds;this.JSC$13358_adsControlFlowManager=(new R37(x)).JSC$13339_adsControlFlowManager},uds=function(){_.Ya.call(this);
var x=this;this.experimentApiProvider=new Yw0(function(){return new gFo});
var G=new Yw0(function(){return new mxJ(x.experimentApiProvider)});
this.adEventLogger=new iV8(this.experimentApiProvider,G);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.m(uds,_.Ya);var wz9=function(){},qwu,xM=function(){qwu||(qwu=new wz9);
return qwu},GQ=function(x){if(!x.JSC$13369_externallyManagedSlotAdapterCallback){var G=(new dx0).JSC$13358_adsControlFlowManager;
x.JSC$13369_externallyManagedSlotAdapterCallback=G}return x.JSC$13369_externallyManagedSlotAdapterCallback},Nz9=function(x,G,D){var K=G.opportunityType,z=Error("Fh");
if(K!==void 0){var y=GQ(x);HVq(y,K,void 0,D)}else _.tc(z,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});y=[];if(G.adSlotAndLayoutMetadata!==void 0){G=_.l(G.adSlotAndLayoutMetadata);for(var c=G.next();!c.done;c=G.next()){var W=c.value;if(c=W.adSlotMetadata)if(y.push(c),x.onSlotReceivedExternallyManaged(c,D),W.adLayoutMetadata){W=_.l(W.adLayoutMetadata);for(var e=W.next();!e.done;e=W.next())x.onLayoutReceivedExternallyManaged(c,e.value,D)}else D>0&&_.tc("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
K,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else D>0&&_.tc("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+K,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else D>0&&_.tc("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+K,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(K!==void 0)x.onOpportunityProcessedExternallyManaged(K,y,void 0,D);else _.tc(z,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
wz9.prototype.onSlotReceivedExternallyManaged=function(x,G){x=K1(x);if(x instanceof Dk)_.tc(x,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else GQ(this).onSlotReceivedExternallyManaged(x,G)};
wz9.prototype.onLayoutReceivedExternallyManaged=function(x,G,D){x=K1(x);G=aGf(G);if(x instanceof Dk)_.tc(x,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(G instanceof zF)_.tc(G,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else GQ(this).onLayoutReceivedExternallyManaged(x,G,D)};
wz9.prototype.onOpportunityProcessedExternallyManaged=function(x,G,D,K){var z=[];G=_.l(G);for(var y=G.next();!y.done;y=G.next())y=K1(y.value),y instanceof Dk?_.tc(y,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):z.push(y);GQ(this).onOpportunityProcessedExternallyManaged(x,z,D,K)};
var vFZ=function(x,G){G=K1(G);if(G instanceof Dk)_.tc(G,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var D=GQ(x);JW(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",G);D=_.l(D.adsControlFlowEventListeners);for(var K=D.next();!K.done;K=D.next())K=fd(K.value,G),K.slotLifecycleStage!=="not_scheduled"&&PO(K.slot,K.slotLifecycleStage,"onSlotScheduled"),K.slotLifecycleStage="scheduled";x=GQ(x);JW(x.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",G);x=_.l(x.adsControlFlowEventListeners);
for(D=x.next();!D.done;D=x.next())D.value.onSlotEntered(G)}},Jw0=function(x,G){G=K1(G);
if(G instanceof Dk)_.tc(G,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var D=GQ(x);JW(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",G);D=_.l(D.adsControlFlowEventListeners);for(var K=D.next();!K.done;K=D.next())K.value.onSlotExited(G);x=GQ(x);JW(x.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",G);x=_.l(x.adsControlFlowEventListeners);for(D=x.next();!D.done;D=x.next())D.value.onSlotUnscheduled(G)}},fAu=function(x,G,D){G=K1(G);
D=aGf(D);if(G instanceof Dk)_.tc(G,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(D instanceof zF)_.tc(D,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var K=GQ(x);kd(K.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",G,D);K=_.l(K.adsControlFlowEventListeners);for(var z=K.next();!z.done;z=K.next())z.value.onLayoutScheduled(G,D);x=GQ(x);kd(x.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",G,D);x=_.l(x.adsControlFlowEventListeners);
for(K=x.next();!K.done;K=x.next())Css(K.value,G,D)}},DL=function(x,G,D){G=K1(G);
D=aGf(D);if(G instanceof Dk)_.tc(G,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(D instanceof zF)_.tc(D,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var K=GQ(x);kd(K.adEventLogger,EFd("normal"),G,D);K=_.l(K.adsControlFlowEventListeners);for(var z=K.next();!z.done;z=K.next())z.value.onLayoutExited(G,D,"normal");x=GQ(x);x=_.l(x.adsControlFlowEventListeners);for(K=x.next();!K.done;K=x.next())OVq(K.value,G,D)}};_.KN=_.Nv(function(x){var G=_.qv(x,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});x=Object.assign({},G);var D=G.data;G=G.customCommandResolver;var K=(delete x.data,delete x.customCommandResolver,x),z=_.qi();_.dl(z,function(){return D().interaction},G,function(){var W;
return(W=K.listenToTapEvent)==null?void 0:W.call(K)});
_.Pw(z,{visibilityCallback:function(W){var e,Q=(e=D().interaction)==null?void 0:e.onFirstVisible;W&&(Q&&_.UI(Q),K.setOnErrorHandler()&&ov$(z))},
showOption:_.wR});x=_.l(_.eO(!1,void 0,"eiYvIe"));var y=x.next().value,c=x.next().value;return _.M("ad-image-view-model",{class:function(){var W,e=[((W=D().interaction)==null?0:W.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],Q;((Q=K.isGridViewEnabled)==null?0:Q.call(K))&&e.push("ytwAdImageViewModelHostInGridView");return e.join(" ")},
el:z,"on:touchend":_.WH(function(){var W;((W=K.setTouchEndHandler)==null?0:W.call(K))&&!y()&&(z.value.click(),c(!0),setTimeout(function(){c(!1)},100));
return!1})},_.M("div",{class:"ytwAdImageViewModelHostImageContainer"},_.M(_.wk,{data:function(){var W;
return{sources:D().imageSources,contentMode:(W=D().imageProperties)==null?void 0:W.contentMode}},
alt:function(){var W,e;return((W=D().interaction)==null?void 0:(e=W.accessibility)==null?void 0:e.label)||""},
targetHeight:K.targetHeight,targetWidth:K.targetWidth,preserveHeight:K.preserveHeight,preserveWidth:K.preserveWidth,useWidth:K.useWidth,style:function(){var W,e;return"vertical-align: bottom;"+(((W=D().background)==null?0:W.color)?"background-color:"+_.In((e=D().background)==null?void 0:e.color)+";":"")},
className:function(){return K.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var W,e;return(e=(W=K.setDraggable)==null?void 0:W.call(K))!=null?e:void 0}})))},"gb");var tp7=_.Nv(function(x){var G=x.data,D=x.listenToTapEvent,K=_.qi();_.B("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.dl(K,function(){return G().interaction},void 0,function(){return D==null?void 0:D()});
_.Pw(K,{visibilityCallback:function(y){var c,W=(c=G().interaction)==null?void 0:c.onFirstVisible;y&&W&&_.UI(W)},
showOption:_.wR});var z=function(){};
return _.M("ad-button-hover-overlay-view-model",{"on:click":_.WH(function(){if(_.B("enable_web_home_top_landscape_image_layout_legacy_click_command")){var y,c=(y=G().interaction)==null?void 0:y.onTap;c&&_.h$(K.value,"yt-navigate",{endpoint:_.jn(c)})}}),
class:function(){var y;return((y=G().interaction)==null?0:y.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:K},function(){return _.B("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.M(_.bA,{data:function(){return G().button}},{adButtonViewModel:function(y){return _.M(_.Ng,{data:y.data,
customCommandResolver:z})}}):_.M(_.bA,{data:function(){return G().button}},{adButtonViewModel:_.Ng})}())},"hb");var ay;_.tn(_.Nv(function(x){var G=x.data;var D=_.qi();_.B("stop_av_measurement_on_detach")&&_.Fq(function(){y4(D)});
_.dl(D,function(){return G().interaction},void 0,function(){return!0});
_.Pw(D,{visibilityCallback:function(y){if(y){var c;(y=(c=G().interaction)==null?void 0:c.onFirstVisible)&&_.UI(y);var W;if(c=(W=G().adLayoutData)==null?void 0:W.activeViewData)oy(D,c),_.B("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&y4(D)})}else _.B("stop_av_measurement_on_detach")&&y4(D)},
showOption:_.wR,hideOption:qg});x=_.l(_.eO(!1,void 0,"yzu6qe"));var K=x.next().value,z=x.next().value;return _.M("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:D,"on:mouseenter":_.WH(function(){z(!0)}),
"on:mouseleave":_.WH(function(){z(!1)})},_.M("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",
style:_.Ms({"max-width":function(){return _.B("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.M("div",{class:function(){var y;
a:{var c;switch((y=_.Y(G().thumbnailImage,M6))==null?void 0:(c=y.imageProperties)==null?void 0:c.renderingAspect){case "RENDERING_ASPECT_SQUARE":y="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":y="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}y=void 0}return y}},_.M(_.bA,{data:function(){return G().thumbnailImage}},{adImageViewModel:function(y){return _.M(_.KN,
{data:y.data,
listenToTapEvent:!0,setTouchEndHandler:_.B("enable_top_landscape_image_experiment_dom_id_web")})}})),_.M("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.M(_.b,{cond:function(){var y,c,W;
return(y=_.Y(G().thumbnailImage,M6))==null?void 0:(c=y.imageProperties)==null?void 0:(W=c.overlayIcon)==null?void 0:W.iconImage},
then:function(y){return _.M(_.wk,{data:y,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.M("div",{class:function(){return K()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.M(_.bA,{data:function(){return G().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(y){return _.M(tp7,
{data:y.data,
listenToTapEvent:!0})}}))),_.M("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.M(_.bA,{data:function(){return G().feedAdMetadata}},{feedAdMetadataViewModel:function(y){return _.M(oUJ,{data:y.data,
listenToTapEvent:!0,setTouchEndHandler:_.B("enable_top_landscape_image_experiment_dom_id_web")})}})))},"ib"),"compact-landscape-no-button-layout-view-model",{props:{data:_.ik}});_.tn(_.Nv(function(x){var G=x.data;var D=_.qi();_.B("stop_av_measurement_on_detach")&&_.Fq(function(){y4(D)});
var K=_.F8(_.X4);_.dl(D,function(){return G().interaction});
_.Pw(D,{visibilityCallback:function(Q){if(Q){var p;(Q=(p=G().interaction)==null?void 0:p.onFirstVisible)&&_.UI(Q);var V;if(p=(V=G().adLayoutData)==null?void 0:V.activeViewData)oy(D,p),_.B("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&y4(D)})}else _.B("stop_av_measurement_on_detach")&&y4(D)},
showOption:_.wR,hideOption:qg});var z=_.WH(function(Q){var p,V,L=(p=_.Y(G().adImage,M6))==null?void 0:(V=p.interaction)==null?void 0:V.onTap;L&&(_.B("enable_square_image_components_ui_web_with_custom_event")?_.h$(D.value,"yt-navigate",{endpoint:_.jn(L)}):R7f(Q,L))}),y=_.WH(function(){var Q,p,V=(Q=_.Y(G().adButton,fkE))==null?void 0:(p=Q.interaction)==null?void 0:p.onTap;
V&&_.h$(D.value,"yt-navigate",{endpoint:_.jn(V)})}),c=function(){};
x={};var W={},e={};return _.M("square-image-layout-view-model",{class:_.ym("ytwSquareImageLayoutViewModelHost",(x.ytwSquareImageLayoutViewModelHostColumn=K,x)),el:D},_.M("div",{class:_.ym("ytwSquareImageLayoutViewModelHostImage",(W.ytwSquareImageLayoutViewModelHostColumnImage=K,W))},function(){return _.B("enable_square_image_components_ui_web_with_native_img")?_.M("img",{class:"ytwSquareImageLayoutViewModelHostImageExp",src:function(){var Q,p,V;return((Q=_.Y(G().adImage,M6))==null?void 0:(p=Q.imageSources)==
null?void 0:(V=p[0])==null?void 0:V.url)||"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="},
draggable:"false","on:click":z}):_.M(_.bA,{data:function(){return G().adImage}},{adImageViewModel:function(Q){return _.M(_.KN,{data:Q.data,
isGridViewEnabled:K,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.M("div",{class:_.ym("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(e.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=K,e))},_.M(_.bA,{data:function(){return G().feedAdMetadata}},{feedAdMetadataViewModel:oUJ}),function(){return _.B("enable_square_image_components_ui_web_with_float_button")?_.M("div",{"on:click":y},_.M(_.bA,{data:function(){return G().adButton}},
{adButtonViewModel:function(Q){var p={};
return _.M(_.Ng,{data:Q.data,customCommandResolver:c,className:_.ym((p.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,p.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=K,p))})}})):_.M(_.bA,{data:function(){return G().adButton}},{adButtonViewModel:function(Q){var p={};
return _.M(_.Ng,{data:Q.data,className:_.ym((p.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,p.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=K,p))})}})}()))},"jb"),"square-image-layout-view-model",{props:{data:_.ik}});_.tn(_.Nv(function(x){var G=x.data;var D=x.noBottomMargin;var K=x.typographyBump;var z=_.qi();_.B("stop_av_measurement_on_detach")&&_.Fq(function(){y4(z)});
_.B("enable_web_home_top_landscape_image_layout_level_click")&&_.dl(z,function(){return G().interaction},void 0,function(){return!0});
x=function(){return G().interaction};
x!==void 0&&x!==null||_.iM(Error("Gh"));_.Pw(z,{visibilityCallback:function(Q){if(Q){var p;(Q=(p=G().interaction)==null?void 0:p.onFirstVisible)&&_.UI(Q);var V;if(p=(V=G().adLayoutData)==null?void 0:V.activeViewData)oy(z,p),_.B("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&y4(z)})}else _.B("stop_av_measurement_on_detach")&&y4(z)},
showOption:_.wR,hideOption:qg});var y=function(){var Q,p,V;return(Q=_.Y(G().thumbnailImage,M6))==null?void 0:(p=Q.background)==null?void 0:(V=p.backgroundImageSource)==null?void 0:V.imageSources};
x=_.l(_.eO(!1,void 0,"GIwTMc"));var c=x.next().value,W=x.next().value,e=function(){return c()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.M("top-landscape-image-layout-view-model",{class:function(){var Q;return((Q=G().interaction)==null?0:Q.onTap)&&_.B("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:z,"on:mouseenter":_.WH(function(){W(!0)}),
"on:mouseleave":_.WH(function(){W(!1)})},_.M("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.M(_.b,{cond:function(){return y()&&y().length>0},
then:function(){return _.M("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.Ms({top:"0","background-image":function(){return"url("+String(y()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.M(_.b,{cond:function(){return!!G().adButtonHoverOverlay},
then:function(){return _.M("div",{class:e},_.M(_.bA,{data:function(){return G().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:tp7}))}}),_.M("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.M(_.bA,{data:function(){return G().thumbnailImage}},{adImageViewModel:function(Q){return _.M(_.KN,{data:Q.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.B("enable_web_home_top_landscape_image_layout_level_click")})}})),_.M("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.M(_.wk,{data:{sources:[{clientResource:{imageName:_.B("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.M("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.M(_.bA,{data:function(){return G().feedAdMetadata}},{feedAdMetadataViewModel:function(Q){return _.M(oUJ,{data:Q.data,
noBottomMargin:function(){return D==null?void 0:D()},
listenToTapEvent:function(){return _.B("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return K==null?void 0:K()}})}})))},"kb"),"top-landscape-image-layout-view-model",{props:{data:_.ik,
noBottomMargin:_.ik,typographyBump:_.ik}});_.tn(_.Nv(function(x){var G=x.data;var D=x.typographyBump;var K=_.qi();_.B("stop_av_measurement_on_detach")&&_.Fq(function(){y4(K)});
_.Pw(K,{visibilityCallback:function(z){if(z){var y;(z=(y=G().interaction)==null?void 0:y.onFirstVisible)&&_.UI(z);var c;if(y=(c=G().adLayoutData)==null?void 0:c.activeViewData)oy(K,y),_.B("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&y4(K)})}else _.B("stop_av_measurement_on_detach")&&y4(K)},
showOption:_.wR,hideOption:qg});return _.M("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:K},_.M("div",null,_.M(_.bA,{data:function(){return G().videoLockup}},{lockupViewModel:function(z){return _.M(_.kc,{data:z.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:D})}})))},"lb"),"video-display-button-group-layout-view-model",{props:{data:_.ik,
noBottomMargin:_.ik,typographyBump:_.ik}});_.tn(_.Nv(function(x){var G=x.data;var D=x.className;var K=x.typographyBump;var z=_.qi();_.Pw(z,{visibilityCallback:function(y){if(y){var c;(y=(c=G().interaction)==null?void 0:c.onFirstVisible)&&_.UI(y);var W;(c=(W=G().adLayoutData)==null?void 0:W.activeViewData)&&oy(z,c)}},
showOption:_.wR});return _.M("video-display-compact-button-group-layout-view-model",{el:z,class:_.ym("videoDisplayCompactButtonGroupLayoutViewModelHost",D)},_.M(_.bA,{data:function(){return G().videoLockup}},{lockupViewModel:function(y){return _.M(_.kc,{data:y.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:K})}}))},"mb"),"video-display-compact-button-group-layout-view-model",{props:{data:_.ik,
className:_.ik,typographyBump:_.ik}});_.tn(_.Nv(function(x){var G=x.data;var D=x.typographyBump;var K=_.qi();_.B("stop_av_measurement_on_detach")&&_.Fq(function(){y4(K)});
_.Pw(K,{visibilityCallback:function(z){if(z){var y;(z=(y=G().interaction)==null?void 0:y.onFirstVisible)&&_.UI(z);var c;if(y=(c=G().adLayoutData)==null?void 0:c.activeViewData)oy(K,y),_.B("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&y4(K)})}else _.B("stop_av_measurement_on_detach")&&y4(K)},
showOption:_.wR,hideOption:qg});return _.M("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:K},_.M("div",null,_.M(_.bA,{data:function(){return G().videoLockup}},{lockupViewModel:function(z){return _.M(_.kc,{data:z.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:D})}})))},"nb"),"video-display-full-layout-view-model",{props:{data:_.ik,
noBottomMargin:_.ik,typographyBump:_.ik}});_.kfE=_.Nv(function(x){var G=x.data;x=_.qi();return _.M("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:x},_.M(_.b,{cond:function(){return G().imageBadge},
then:function(D){return _.M(_.wk,{data:D,alt:""})}}))},"ob");var PsZ=_.Nv(function(x){var G=x.data;var D=x.customCommandResolver;x=_.qi();_.dl(x,function(){return G().interaction},D);
_.Pw(x,{visibilityCallback:function(K){var z,y=(z=G().interaction)==null?void 0:z.onFirstVisible;K&&y&&_.UI(y)},
showOption:_.wR});return _.M("carousel-ad-card-image-view-model",{class:function(){var K;return((K=G().interaction)==null?0:K.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:x,"aria-label":function(){var K,z;return(K=G().interaction)==null?void 0:(z=K.accessibility)==null?void 0:z.label}},_.M(_.bA,{data:function(){return G().adImage}},{adImageViewModel:function(K){return _.M(_.KN,{data:K.data,
customCommandResolver:D})}}),_.M("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.M(_.bA,{data:function(){return G().badge}},{adCardBadgeViewModel:_.kfE})),_.M(_.b_,{model:{color:4}}))},"pb");var EF7=_.Nv(function(x){var G=_.l(_.eO(0,void 0,"o9Bzd")),D=G.next().value;G.next();var K=G.next().value,z=_.l(_.eO(!1,void 0,"KLdzYe"));G=z.next().value;var y=z.next().value,c;_.Fq(function(){clearTimeout(c)});
z=_.WH(function(){var Q;((Q=x.animate)==null?0:Q.call(x))?(y(!0),c=setTimeout(function(){y(!1);W()},200)):W();
return!1});
var W=function(){K(function(Q){return(Q+x.numShownItems())%x.data().length})},e={};
return _.M("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.M("div",{class:_.ym("ytwHorizontalCarouselCarouselWrapper")},_.M("div",{class:_.ym("ytwHorizontalCarouselCarouselInnerWrapper",(e.ytwHorizontalCarouselAnimating=G,e))},_.M(_.LT,{each:x.data,keyBy:"INDEX"},function(Q,p){return _.M("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.Ms({"flex-basis":function(){return"calc((100% - (8px * "+(x.numShownItems()-1)+")) / "+x.numShownItems()+")"},
order:function(){var V=p-D();V<0&&(V+=x.data().length);return V}})},x.children(Q,p))}))),_.M("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":z},x.nextButton()))},"qb");var h3J=_.Nv(function(x){var G=x.data;var D=x.customCommandResolver;var K=x.expansive;x=_.qi();_.Pw(x,{visibilityCallback:function(z){var y,c=(y=G().interaction)==null?void 0:y.onFirstVisible;z&&c&&_.UI(c)},
showOption:_.wR});return _.M("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:x},_.M(EF7,{data:function(){var z;return((z=G())==null?void 0:z.carouselAdCards)||[]},
nextButton:function(){return _.M(_.bA,{data:function(){return G().nextButton}},{buttonViewModel:function(z){var y=z.data;
return _.M(_.Cs,{data:function(){return(K==null?0:K())?Object.assign({},y(),{style:"mono"}):y()},
className:_.B("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(z){return _.M(_.bA,{data:z},{carouselAdCardImageViewModel:function(y){return _.M(PsZ,{data:y.data,customCommandResolver:D})}})}))},"rb");var xbJ=_.Nv(function(x){var G=x.data;var D=x.customCommandResolver;var K=x.className;var z=x.buttonClassName;var y=x.animationEntityKey;var c=x.expansive;return _.M("carousel-button-view-model",{class:_.ym("ytwCarouselButtonViewModelHost",K)},_.M(_.bA,{data:function(){return G().carousel}},{carouselAdCardCollectionViewModel:function(W){return _.M(h3J,{data:W.data,
customCommandResolver:D,expansive:c})}}),_.M(_.bA,{data:function(){return G().button}},{adButtonViewModel:function(W){var e=W.data;
return _.M(_.Ng,{data:function(){return(c==null?0:c())?Object.assign({},e(),{style:"AD_BUTTON_STYLE_TONAL"}):e()},
className:z,customCommandResolver:D,animationEntityKey:y})}}))},"sb");_.GNi=_.Nv(function(x){var G=x.data;x=x.className;var D=_.qi();_.FQ(function(){var K;((K=G())==null?0:K.backgroundColor)&&D.value.setAttribute("data-background-color",String(G().backgroundColor))});
return _.M("pivot-button-view-model",{el:D,class:_.ym("ytwPivotButtonViewModelHost",x)},_.M(_.hG,{command:function(){var K=G();K=K.onClickCommand?_.jn(K.onClickCommand):K.contentDescription?_.vk(K.contentDescription):void 0;return K},
ariaLabel:function(){return G().contentDescription}},_.M(_.b,{cond:function(){return G().thumbnail},
then:function(K){return _.M(_.wk,{data:K,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.M(_.b,{cond:function(){return G().icon},
then:function(K){return _.M(_.Qm,{icon:function(){return K().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"tb");_.DbJ=_.Nv(function(x){var G=x.data;var D=x.buttonShapeOverrideables;return _.M("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.M(_.bA,{data:function(){return G().buttonViewModels}},{buttonViewModel:function(K){return _.M(_.Cs,{data:K.data,
buttonOverrides:D})},
likeButtonViewModel:function(K){return _.M(_.mp,{data:K.data,buttonShapeOverrideables:D})},
dislikeButtonViewModel:function(K){return _.M(_.Yn,{data:K.data,buttonShapeOverrideables:D})}}))},"ub");var Ktq=_.Nv(function(x){var G=x.avatar;var D=x.headline;var K=x.badge;var z=x.description;var y=x.expansive;x={};return _.M("yt-ad-metadata-shape",{class:_.ym("ytAdMetadataShapeHost",(x.ytAdMetadataShapeHostLarge=y,x))},_.M("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.M(_.b,{cond:G,then:function(c){return _.M(_.De7,{data:function(){return(y==null?0:y())?Object.assign({},c(),{size:"AD_AVATAR_SIZE_MPLUS"}):c()}})}}),_.M("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.M(_.vq,{text:D,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.M(_.b,{cond:K,then:function(c){return _.M(_.fj,{data:function(){return(y==null?0:y())?Object.assign({},c(),{style:"AD_BADGE_STYLE_STARK"}):c()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.M("h2",{class:"ytAdMetadataShapeHostDescription"},_.M(_.vq,{text:z,
linkInheritColor:!0})))},"vb");var zYk=_.Nv(function(x){var G=x.data;var D=x.onShow;var K=x.expansive;x=_.qi();_.dl(x,function(){return G().interaction});
_.FQ(function(){var y,c=(y=G().animatedRenderingConfig)==null?void 0:y.delayedSecondsToVisible;if(c){var W=setTimeout(D,c*1E3);_.Fq(function(){clearTimeout(W)})}});
var z={};return _.M("reels-ad-card-buttoned-view-model",{class:_.ym(function(){var y;return((y=G().interaction)==null?0:y.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(z.ytwReelsAdCardButtonedViewModelHostExpansive=K,z)),
el:x},_.M(Ktq,{avatar:function(){return _.Y(G().avatar,v50)},
headline:function(){return G().headline},
badge:function(){return _.Y(G().adBadge,Jj8)},
description:function(){return G().description},
expansive:K}),_.M(_.bA,{data:function(){return G().ctaButton}},{adButtonViewModel:function(y){var c=y.data;
return _.M(_.Ng,{data:function(){return(K==null?0:K())?Object.assign({},c(),{style:"AD_BUTTON_STYLE_FILLED"}):c()}})}}))},"wb");var aGo=_.Nv(function(x){var G=x.data;x=x.expansive;var D=_.qi();_.B("web_ad_metadata_clickable")&&_.dl(D,function(){return G().interaction});
var K={};K=_.cH("ytwReelsAdMetadataViewModelHost",(K.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.B("web_ad_metadata_clickable"),K));return _.M("reels-ad-metadata-view-model",{class:K,el:D},_.M(Ktq,{avatar:function(){return _.Y(G().avatar,v50)},
headline:function(){return G().headline},
badge:function(){return _.Y(G().adBadge,Jj8)},
description:function(){return G().description},
expansive:x}))},"xb");var ovu={iconPosition:"icon-with-label",size:"L"},y8E=_.Nv(function(x){var G=x.data;var D=x.overlayDensity;x=_.qi();var K=_.wc(D,0),z=function(){var V;return(V=G().reelsAdCardButtonedEntityKey)!=null?V:""},y=function(){return z()+"/ad_button"},c=_.lA(b8d,z),W=function(){var V,L;
return(L=(V=c())==null?void 0:V.value)!=null?L:!1},e=_.F8(Zan),Q=function(){return Object.assign({},ovu,(e()||K()===2)&&{style:"overlay-dark"})};
D={};var p={};return _.M("reels-player-overlay-layout-view-model",{class:_.ym("ytwReelsPlayerOverlayLayoutViewModelHost",(D.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!G().extension},D.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},D)),
"overlay-density":function(){return String(K())},
el:x},_.M("div",{class:_.ym("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(p.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},p))},_.M("div",{"aria-hidden":function(){return W()},
class:_.ym("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return W()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.Ms({"transition-duration":function(){return pIC(G())}})},_.M(_.bA,{data:function(){return G().adMetadata}},{reelsAdMetadataViewModel:function(V){return _.M(aGo,{data:V.data,
expansive:function(){return K()===1}})}}),_.M(_.b,{cond:function(){return G().extension},
then:function(V){return _.M("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.M(_.bA,{data:V},{adButtonViewModel:function(L){return _.M(_.Ng,{data:L.data,animationEntityKey:y,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(L){return _.M(xbJ,{data:L.data,animationEntityKey:y,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return K()===1}})}}))}})),_.M("div",{"aria-hidden":function(){return!W()},
class:_.ym("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return W()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.Ms({"transition-duration":function(){return pIC(G())}})},_.M(_.bA,{data:function(){return G().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(V){return _.M(zYk,{data:V.data,
onShow:function(){_.dc(_.cq("booleanEntity",z(),{key:z(),value:!0}))},
expansive:function(){return K()===1}})}}))),_.M("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.M(_.bA,{data:function(){return G().actions}},{reelActionBarViewModel:function(V){return _.M(_.DbJ,{data:V.data,
buttonShapeOverrideables:Q})}}),_.M(_.bA,{data:function(){return G().menu}},{buttonViewModel:function(V){return _.M(_.Cs,{data:V.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},Q(),{type:"tonal"})}})}}),_.M(_.bA,{data:function(){return G().pivotButton}},{pivotButtonViewModel:function(V){return _.M(_.GNi,{data:V.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"yb");_.tn(y8E,"reels-player-overlay-layout-view-model",{props:{data:_.ik,overlayDensity:_.ik}});var zQ=function(){var x=_.n.apply(this,arguments)||this;x.noBottomMargin=!1;x.overlayDensity=0;return x};
_.m(zQ,_.n);_.a=zQ.prototype;
_.a.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.B("enable_short_dr_for_desktop_launchable")?{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]"}}}}}};
_.a.ready=function(){var x=this;d$E(function(){x.isAttached&&x5(x.JSC$13415_storedAdSlotMetadata,x.JSC$13415_storedAdLayoutMetadata,x.adSlotMetadata,x.adLayoutMetadata)&&DL(xM(),x.JSC$13415_storedAdSlotMetadata,x.JSC$13415_storedAdLayoutMetadata)})};
_.a.attached=function(){x5(this.JSC$13415_storedAdSlotMetadata,this.JSC$13415_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&fAu(xM(),this.JSC$13415_storedAdSlotMetadata,this.JSC$13415_storedAdLayoutMetadata)};
_.a.detached=function(){x5(this.JSC$13415_storedAdSlotMetadata,this.JSC$13415_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&DL(xM(),this.JSC$13415_storedAdSlotMetadata,this.JSC$13415_storedAdLayoutMetadata)};
_.a.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.a.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13415_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13415_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13415_storedAdLayoutMetadata!==void 0&&this.JSC$13415_storedAdSlotMetadata!==void 0&&DL(xM(),this.JSC$13415_storedAdSlotMetadata,this.JSC$13415_storedAdLayoutMetadata),fAu(xM(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13415_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13415_storedAdSlotMetadata=this.adSlotMetadata)};
_.Nq.Object.defineProperties(zQ.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.adLayoutMetadata}}});
zQ.prototype.onAdMetadataChanged=zQ.prototype.onAdMetadataChanged;zQ.prototype.onTypographyBumpChanged=zQ.prototype.onTypographyBumpChanged;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],zQ.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],zQ.prototype,"rendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],zQ.prototype,"ytComponentBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],zQ.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],zQ.prototype,"noBottomMargin",void 0);_.q([_.R(),_.N("design:type",Object)],zQ.prototype,"overlayDensity",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],zQ.prototype,"typographyBump",void 0);_.q([_.U("data.adLayoutMetadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],zQ.prototype,"adLayoutMetadata",null);_.q([_.R(),_.N("design:type",Object)],zQ.prototype,"adSlotMetadata",void 0);
_.q([_.cD("ytd-video-display-full-buttoned-and-button-group-renderer"),_.N("design:type",HTMLElement)],zQ.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.q([_.yf("typographyBump"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zQ.prototype,"onTypographyBumpChanged",null);_.q([_.yf("adLayoutMetadata","adSlotMetadata"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zQ.prototype,"onAdMetadataChanged",null);
zQ=_.q([_.d({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],zQ);
_.w(zQ,"ytd-in-feed-ad-layout-renderer",function(){if(EUh!==void 0)return EUh;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return EUh=x},
{mode:_.Ge("kevlar_poly_si_batch_j028")?1:2});var lGE;var c8h;var aq=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return x};
_.m(aq,_.n);_.a=aq.prototype;_.a.computeHasLiveDescription=function(x){return!(x==null||!x.liveDescription)};
_.a.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.a.onYtToggleButton=function(x){var G,D=(G=this.data)==null?void 0:G.videoReminderEntityKey;D&&this.ytdReduxBehavior.dispatch(_.cq("upcomingEventReminderStateEntity",D,{key:D,state:x.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.a.attached=function(){this.updateChannelBanner()};
_.a.dataChanged=function(){this.updateChannelBanner()};
_.a.videoReminderStateChanged=function(){var x;this.videoReminderState&&_.Y((x=this.data)==null?void 0:x.cta,_.Fg)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.a.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var x=_.k$(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);x&&(x.startsWith("//")&&(x="https:"+x),this.hostElement.classList.add("channel-banner"),_.K7(this.hostElement,{"--ytvmh-channel-banner":"url("+x+")"}))}else _.B("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.a.onPlayerReady=function(){this.onIronResize()};
_.a.maybeFlushDebouncer=function(){_.B("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(x){var G;x=(G=x.getElementsByTagName("yt-attributed-string"))==null?void 0:G[0];Vbh(x==null?void 0:x.polymerController)})};
_.a.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var x=_.kA(this.hostElement).querySelector("#live-description"),G;x&&((G=this.data)==null?0:G.shortLiveDescription)&&x.clientWidth<x.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
aq.prototype.onIronResize=aq.prototype.onIronResize;aq.prototype.videoReminderStateChanged=aq.prototype.videoReminderStateChanged;aq.prototype.dataChanged=aq.prototype.dataChanged;aq.prototype.onYtToggleButton=aq.prototype.onYtToggleButton;_.q([_.I(_.Lg),_.N("design:type",Object)],aq.prototype,"ironResizableBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],aq.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],aq.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],aq.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],aq.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],aq.prototype,"data",void 0);_.q([_.R({selectorArgs:["data.videoReminderEntityKey"],selector:eOn}),_.N("design:type",Object)],aq.prototype,"videoReminderState",void 0);
_.q([_.R({reflectToAttribute:!0,value:_.B("web_modern_buttons")}),_.N("design:type",Boolean)],aq.prototype,"rounded",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.N("design:type",Boolean)],aq.prototype,"hasLiveDescription",void 0);_.q([_.R({reflectToAttribute:!0,value:_.B("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.N("design:type",Boolean)],aq.prototype,"resizableAdBannerSafariFix",void 0);
_.q([_.R({reflectToAttribute:!0,value:_.B("align_three_dot_menu_with_title_description")}),_.N("design:type",Boolean)],aq.prototype,"menuFix",void 0);_.q([_.Ta("yt-formatted-string"),_.N("design:type",Array)],aq.prototype,"formattedStrings",void 0);_.q([_.cD("#cta-button"),_.N("design:type",HTMLElement)],aq.prototype,"ctaButton",void 0);_.q([_.oe("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],aq.prototype,"onYtToggleButton",null);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aq.prototype,"dataChanged",null);_.q([_.yf("videoReminderState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aq.prototype,"videoReminderStateChanged",null);_.q([_.oe("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aq.prototype,"onIronResize",null);
aq=_.q([_.d({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],aq);
_.w(aq,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(c8h!==void 0)return c8h;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return c8h=x},{mode:1});var T3i;var oq=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};x.isLocked=!1;return x};
_.m(oq,_.n);_.a=oq.prototype;_.a.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.a.onExpandedChanged=function(){this.expanded&&_.Gl(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.a.onMouseOver=function(){this.maybeExpand()};
_.a.onTap=function(){this.maybeExpand()};
_.a.onExpandableTileExpanding=function(x){x!==this&&(this.expanded=!1)};
_.a.onExpandableTileLockAndCollapse=function(x){this.isLocked=!0;x!==this&&(this.expanded=!1)};
_.a.onExpandableTileUnlock=function(){this.isLocked=!1};
oq.prototype.onTap=oq.prototype.onTap;oq.prototype.onMouseOver=oq.prototype.onMouseOver;oq.prototype.onExpandedChanged=oq.prototype.onExpandedChanged;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],oq.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],oq.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],oq.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],oq.prototype,"expanded",void 0);_.q([_.Z6("expanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oq.prototype,"onExpandedChanged",null);_.q([_.oe("mouseover"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oq.prototype,"onMouseOver",null);_.q([_.oe("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oq.prototype,"onTap",null);
oq=_.q([_.d({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],oq);
_.w(oq,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(T3i!==void 0)return T3i;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return T3i=x},{mode:1});var Wt9;var yQ=function(){var x=_.n.apply(this,arguments)||this;x.buttonOverrides={style:"overlay"};x.useYtdPlayer=_.B("use_ytd_player_for_desktop_masthead");x.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};x.playbackFinished=!1;x.JSC$13427_playerManager=null;x.JSC$13427_mastheadCounter=new kWo;return x};
_.m(yQ,_.n);_.a=yQ.prototype;_.a.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"}}}};
_.a.created=function(){this.JSC$13427_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13427_playerManager=new Qb)};
_.a.ready=function(){var x=this;this.JSC$13427_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var G=_.kA(this.hostElement).querySelector("#player");this.useYtdPlayer?G.style.display="none":(this.ytdPlayer.style.display="none",CuE(this.JSC$13427_playerManager,G,function(){x.onPlaybackEnded()}),_.kA(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var D;
((D=x.data)==null?0:D.navigationEndpoint)&&_.h$(x.hostElement,"yt-navigate",{endpoint:x.data.navigationEndpoint})}))};
_.a.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13427_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.a.attached=function(){var x=this;_.Xw(function(){x.maybePlayVideo()})};
_.a.maybePlayVideo=function(){var x=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$13427_playerManager.playVideo(),this.getPlayerPromise().then(function(){x.JSC$13427_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.a.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13427_playerManager.stopVideo()};
_.a.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var x,G={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((x=this.data.playbackStartMs)!=null?x:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(G);this.setupYtdPlayer()}else jHk(this.JSC$13427_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(II7(this.JSC$13427_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.a.getPlayerPromise=function(){return this.JSC$13427_playerManager.getPlayerPromise()};
_.a.onYtToggleButton=function(x){this.useYtdPlayer?this.toggleMute(x.detail.toggled):x.detail.toggled?this.JSC$13427_playerManager.mute():this.JSC$13427_playerManager.unMute()};
_.a.onYtNavigate=function(x){var G=TEC(x.detail.endpoint),D=W1Q(this.data.clickthroughReportingData);G&&D&&(x.detail.endpoint.watchEndpoint?x.detail.tempData=D:_.vy(G,D,30))};
_.a.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.a.onExpandedChanged=function(){this.expanded?(_.Gl(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.a.onMouseOver=function(){this.maybeExpand()};
_.a.onTap=function(){this.maybeExpand()};
_.a.onExpandableTileExpanding=function(x){x!==this&&(this.stopVideo(),this.expanded=!1)};
_.a.onExpandableTileLockAndCollapse=function(x){x!==this&&(this.isLocked=!0,this.expanded=!1)};
_.a.onExpandableTileUnlock=function(){this.isLocked=!1};
_.a.lockAndCollapseExpandableTiles=function(){_.xO(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.a.unlockExpandableTiles=function(){_.xO(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.a.setupYtdPlayer=function(){var x=this,G;return _.T(function(D){if(D.nextAddress==1)return _.Z(D,x.ytdPlayer.getPlayerPromise(),2);G=D.yieldResult;G.addEventListener("onStateChange",function(K){x.onPlayerStateChange(K)});
G.addEventListener("onCueRangeExit",function(K){x.onCueRangeExit(K)});
_.c5(D)})};
_.a.onPlayerStateChange=function(x){if(x===1&&(x=this.ytdPlayer.getPlayer())){var G=x.getCurrentTime(),D,K,z=G+((K=(D=this.data)==null?void 0:D.playbackDurationMs)!=null?K:0)/1E3;x.addCueRange("playback",G,z);this.JSC$13427_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.a.onCueRangeExit=function(x){x==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.a.toggleMute=function(x){var G=this,D;return _.T(function(K){if(K.nextAddress==1)return _.Z(K,G.ytdPlayer.getPlayerPromise(),2);D=K.yieldResult;x?D.mute():D.unMute();_.c5(K)})};
yQ.prototype.onTap=yQ.prototype.onTap;yQ.prototype.onMouseOver=yQ.prototype.onMouseOver;yQ.prototype.onExpandedChanged=yQ.prototype.onExpandedChanged;yQ.prototype.onYtNavigate=yQ.prototype.onYtNavigate;yQ.prototype.onYtToggleButton=yQ.prototype.onYtToggleButton;yQ.prototype.dataChanged=yQ.prototype.dataChanged;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],yQ.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],yQ.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],yQ.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],yQ.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],yQ.prototype,"expanded",void 0);_.q([_.R(),_.N("design:type",Object)],yQ.prototype,"buttonOverrides",void 0);
_.q([_.R(),_.N("design:type",Object)],yQ.prototype,"useYtdPlayer",void 0);_.q([_.cD("#ytd-player"),_.N("design:type",Object)],yQ.prototype,"ytdPlayer",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yQ.prototype,"dataChanged",null);_.q([_.oe("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],yQ.prototype,"onYtToggleButton",null);
_.q([_.oe("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],yQ.prototype,"onYtNavigate",null);_.q([_.Z6("expanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yQ.prototype,"onExpandedChanged",null);_.q([_.oe("mouseover"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yQ.prototype,"onMouseOver",null);
_.q([_.oe("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yQ.prototype,"onTap",null);yQ=_.q([_.d({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],yQ);
_.w(yQ,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(Wt9!==void 0)return Wt9;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Wt9=x},{mode:1});var eY0;var ly=function(){return _.n.apply(this,arguments)||this};
_.m(ly,_.n);ly.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
ly.prototype.onShow=function(){var x=_.kA(this.hostElement).querySelector("#live-description"),G;x&&((G=this.data)==null?0:G.shortLiveDescription)&&x.clientWidth<x.scrollWidth&&this.hostElement.classList.add("short-live-description")};
ly.prototype.onYtToggleButton=function(x){var G,D=(G=this.data)==null?void 0:G.videoReminderEntityKey;D&&this.ytdReduxBehavior.dispatch(_.cq("upcomingEventReminderStateEntity",D,{key:D,state:x.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
ly.prototype.videoReminderStateChanged=function(){var x;this.videoReminderState&&_.Y((x=this.data)==null?void 0:x.cta,_.Fg)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
ly.prototype.videoReminderStateChanged=ly.prototype.videoReminderStateChanged;ly.prototype.onYtToggleButton=ly.prototype.onYtToggleButton;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],ly.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],ly.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],ly.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],ly.prototype,"data",void 0);
_.q([_.R({selectorArgs:["data.videoReminderEntityKey"],selector:eOn}),_.N("design:type",Object)],ly.prototype,"videoReminderState",void 0);_.q([_.oe("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],ly.prototype,"onYtToggleButton",null);_.q([_.yf("videoReminderState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ly.prototype,"videoReminderStateChanged",null);
ly=_.q([_.d({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],ly);
_.w(ly,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(eY0!==void 0)return eY0;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return eY0=x},{mode:_.Ge("kevlar_poly_si_batch_j065")?1:2});var Za9;var cU=function(){var x=_.n.apply(this,arguments)||this;x.useYtdPlayer=_.B("use_ytd_player_for_desktop_masthead");x.buttonOverrides={style:"overlay"};x.JSC$13435_playerManager=null;x.JSC$13435_mastheadCounter=new kWo;x.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return x};
_.m(cU,_.n);_.a=cU.prototype;_.a.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"}}}};
_.a.created=function(){this.JSC$13435_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13435_playerManager=new Qb)};
_.a.ready=function(){var x=this;this.JSC$13435_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var G;(G=this.embeddedPlayer)==null||G.remove()}else{var D;(D=this.ytdPlayer)==null||D.remove();CuE(this.JSC$13435_playerManager,this.embeddedPlayer,function(){x.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){x.data&&x.data.navigationEndpoint&&_.h$(x.hostElement,"yt-navigate",{endpoint:x.data.navigationEndpoint})})}};
_.a.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13435_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.a.dataChanged=function(){var x=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var G=!this.data.disableAutoPlayback,D,K={autoplay:G,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((D=this.data.playbackStartMs)!=null?D:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(G?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(K);this.setupYtdPlayer()}else jHk(this.JSC$13435_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(II7(this.JSC$13435_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13435_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.xO(x.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");x.JSC$13435_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.a.getPlayerPromise=function(){return this.JSC$13435_playerManager.getPlayerPromise()};
_.a.onYtToggleButton=function(x){this.useYtdPlayer?this.toggleMute(x.detail.toggled):x.detail.toggled?this.JSC$13435_playerManager.mute():this.JSC$13435_playerManager.unMute()};
_.a.onYtNavigate=function(x){var G=TEC(x.detail.endpoint),D=W1Q(this.data.clickthroughReportingData);G&&D&&(x.detail.endpoint.watchEndpoint?x.detail.tempData=D:_.vy(G,D,30))};
_.a.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13435_playerManager.stopVideo()};
_.a.setupYtdPlayer=function(){var x=this,G;return _.T(function(D){if(D.nextAddress==1)return _.Z(D,x.ytdPlayer.getPlayerPromise(),2);G=D.yieldResult;G.addEventListener("onStateChange",function(K){x.onPlayerStateChange(K)});
G.addEventListener("onCueRangeExit",function(K){x.onCueRangeExit(K)});
_.c5(D)})};
_.a.onPlayerStateChange=function(x){if(x===1&&(x=this.ytdPlayer.getPlayer())){var G=x.getCurrentTime(),D,K,z=G+((K=(D=this.data)==null?void 0:D.playbackDurationMs)!=null?K:0)/1E3;x.addCueRange("playback",G,z);_.xO(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13435_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.a.onCueRangeExit=function(x){x==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.a.toggleMute=function(x){var G=this,D;return _.T(function(K){if(K.nextAddress==1)return _.Z(K,G.ytdPlayer.getPlayerPromise(),2);D=K.yieldResult;x?D.mute():D.unMute();_.c5(K)})};
_.Nq.Object.defineProperties(cU.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var x,G;if(!((x=this.data)==null?0:(G=x.accessibilityData)==null?0:G.label))return"Ad primary link";var D,K;return _.Wg("AD_TITLE",{title:(D=this.data)==null?void 0:(K=D.accessibilityData)==null?void 0:K.label})}}});
cU.prototype.onYtMastheadHidden=cU.prototype.onYtMastheadHidden;cU.prototype.onYtNavigate=cU.prototype.onYtNavigate;cU.prototype.onYtToggleButton=cU.prototype.onYtToggleButton;cU.prototype.dataChanged=cU.prototype.dataChanged;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],cU.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],cU.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],cU.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],cU.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],cU.prototype,"useYtdPlayer",void 0);_.q([_.cD("ytd-toggle-button-renderer"),_.N("design:type",Object)],cU.prototype,"muteButton",void 0);_.q([_.R(),_.N("design:type",Object)],cU.prototype,"buttonOverrides",void 0);
_.q([_.U("data.accessibilityData.label"),_.N("design:type",String),_.N("design:paramtypes",[])],cU.prototype,"titleAriaLabel",null);_.q([_.cD("#replay-button"),_.N("design:type",Object)],cU.prototype,"replayButton",void 0);_.q([_.cD("#player-container"),_.N("design:type",Object)],cU.prototype,"playerContainer",void 0);_.q([_.cD("#player"),_.N("design:type",Object)],cU.prototype,"embeddedPlayer",void 0);_.q([_.cD("#ytd-player"),_.N("design:type",Object)],cU.prototype,"ytdPlayer",void 0);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cU.prototype,"dataChanged",null);_.q([_.oe("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],cU.prototype,"onYtToggleButton",null);_.q([_.oe("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],cU.prototype,"onYtNavigate",null);
_.q([_.oe("yt-masthead-hidden"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cU.prototype,"onYtMastheadHidden",null);cU=_.q([_.d({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],cU);
_.w(cU,"ytd-video-masthead-ad-primary-video-renderer",function(){if(Za9!==void 0)return Za9;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Za9=x},{mode:2});var M4h;var TQ=function(){var x=_.n.apply(this,arguments)||this;x.collapsed=!1;x.impressionResolver=_.Ss();x.JSC$13439_activeViewMeasurementDataResolver=_.Ss();x.actionMap={"yt-mute-ad-action":"handleMuteAd"};return x};
_.m(TQ,_.n);_.a=TQ.prototype;_.a.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"}}}};
_.a.ready=function(){var x=this;_.kA(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){x.expandAd()});
this.hostElement.addEventListener("yt-action",function(G){if(G.detail.actionName==="yt-service-request"){var D=G.detail.args[1];D.videoMastheadAdMuteCommand&&(x.collapseAd(D.videoMastheadAdMuteCommand.encryptedMastheadId),G.stopPropagation())}})};
_.a.attached=function(){var x=this;_.Xw(function(){x.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(G){if(!x.collapsed){G=_.l(G);for(var D=G.next();!D.done;D=G.next())D=D.value,g$(D.baseUrl,D.attributionSrcMode);x.data.impressionCommand=void 0}});
this.JSC$13439_activeViewMeasurementDataResolver.promise.then(function(G){x.ytdActiveViewBehavior.enableActiveViewMeasurement(G,15)});
_.B("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&x.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.a.dataChanged=function(){var x;((x=this.data.impressionCommand)==null?0:x.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var G;((G=this.data)==null?0:G.activeView)&&this.JSC$13439_activeViewMeasurementDataResolver.resolve(this.data.activeView);(x=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(x.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.a.computeWidescreen=function(x){var G;return!!(x&&((G=_.Y(x,uDq))==null?0:G.isWidescreen))};
_.a.computeExpandable=function(x){return!!(x&&x.length>0)};
_.a.onIronResize=function(){if(this.expandable){var x=_.kA(this.hostElement).querySelector("#expandable-tile-container :first-child");x&&!x.expanded&&(x.expanded=!0)}};
_.a.handleMuteAd=function(){this.collapseAd(null)};
_.a.restoreCollapsedState=function(x){this.collapsed=_.M5().get("HIDDEN_MASTHEAD_ID")===x};
_.a.collapseAd=function(x){if(x){var G=_.M5();G.set("HIDDEN_MASTHEAD_ID",x);G.save()}(x=_.kA(this.hostElement).querySelector("#video"))&&_.h$(x,"yt-masthead-hidden");this.collapsed=!0};
_.a.expandAd=function(){var x=_.M5();x.set("HIDDEN_MASTHEAD_ID",!1);x.save();location.reload()};
_.a.detached=function(){_.B("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
TQ.prototype.onIronResize=TQ.prototype.onIronResize;TQ.prototype.dataChanged=TQ.prototype.dataChanged;_.q([_.I(_.Lg),_.N("design:type",Object)],TQ.prototype,"ironResizableBehavior",void 0);_.q([_.I(m1),_.N("design:type",Object)],TQ.prototype,"ytdActiveViewBehavior",void 0);_.q([_.I(_.jy),_.N("design:type",Object)],TQ.prototype,"ytdGridStateAwareBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],TQ.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],TQ.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],TQ.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],TQ.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.N("design:type",Boolean)],TQ.prototype,"widescreen",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.N("design:type",Boolean)],TQ.prototype,"expandable",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],TQ.prototype,"collapsed",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TQ.prototype,"dataChanged",null);
_.q([_.oe("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TQ.prototype,"onIronResize",null);TQ=_.q([_.d({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],TQ);
_.w(TQ,"ytd-video-masthead-ad-v3-renderer",function(){if(M4h!==void 0)return M4h;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return M4h=x},{mode:2});var WU=function(){return _.n.apply(this,arguments)||this};
_.m(WU,_.n);_.a=WU.prototype;_.a.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.a.ready=function(){var x=this;d$E(function(){x.isAttached&&x5(x.JSC$13444_storedAdSlotMetadata,x.JSC$13444_storedAdLayoutMetadata,x.adSlotMetadata,x.adLayoutMetadata)&&DL(xM(),x.JSC$13444_storedAdSlotMetadata,x.JSC$13444_storedAdLayoutMetadata)})};
_.a.attached=function(){x5(this.JSC$13444_storedAdSlotMetadata,this.JSC$13444_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&fAu(xM(),this.JSC$13444_storedAdSlotMetadata,this.JSC$13444_storedAdLayoutMetadata)};
_.a.detached=function(){x5(this.JSC$13444_storedAdSlotMetadata,this.JSC$13444_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&DL(xM(),this.JSC$13444_storedAdSlotMetadata,this.JSC$13444_storedAdLayoutMetadata)};
_.a.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13444_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13444_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13444_storedAdLayoutMetadata!==void 0&&this.JSC$13444_storedAdSlotMetadata!==void 0&&DL(xM(),this.JSC$13444_storedAdSlotMetadata,this.JSC$13444_storedAdLayoutMetadata),fAu(xM(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13444_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13444_storedAdSlotMetadata=this.adSlotMetadata)};
_.Nq.Object.defineProperties(WU.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.adLayoutMetadata}}});
WU.prototype.onAdMetadataChanged=WU.prototype.onAdMetadataChanged;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],WU.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],WU.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],WU.prototype,"data",void 0);_.q([_.U("data.adLayoutMetadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],WU.prototype,"adLayoutMetadata",null);
_.q([_.R(),_.N("design:type",Object)],WU.prototype,"adSlotMetadata",void 0);_.q([_.yf("adLayoutMetadata","adSlotMetadata"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WU.prototype,"onAdMetadataChanged",null);WU=_.q([_.d({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],WU);
_.w(WU,"ytd-page-top-ad-layout-renderer",function(){if(lGE!==void 0)return lGE;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return lGE=
x},{mode:_.Ge("kevlar_poly_si_batch_j070")?1:2});var Q1E;var eC=function(){var x=_.n.apply(this,arguments)||this;x.noBottomMargin=!1;x.overlayDensity=0;x.typographyBump=!1;return x};
_.m(eC,_.n);_.a=eC.prototype;
_.a.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",
noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]"}}}}}};
_.a.ready=function(){var x=this;d$E(function(){x.isAttached&&x.adSlotMetadata&&Jw0(xM(),x.adSlotMetadata)})};
_.a.attached=function(){if(this.adSlotMetadata){var x;if(this.adSlotMetadata===((x=this.data)==null?void 0:x.adSlotMetadata))vFZ(xM(),this.adSlotMetadata);else{var G;_.O9(Error("Hh`"+this.adSlotMetadata+"`"+((G=this.data)==null?void 0:G.adSlotMetadata)))}}};
_.a.detached=function(){this.adSlotMetadata&&Jw0(xM(),this.adSlotMetadata)};
_.a.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.a.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&Jw0(xM(),this.adSlotMetadata),vFZ(xM(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.Nq.Object.defineProperties(eC.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var x,G,D=_.Y((x=this.data)==null?void 0:(G=x.fulfillmentContent)==null?void 0:G.fulfilledLayout,_.wbh),K;return(x=(K=_.Y(D==null?void 0:D.renderingContent,dXZ))==null?void 0:K.layout)?x.toLowerCase().replace(/_/g,"-"):""}}});
eC.prototype.onAdSlotMetadataChanged=eC.prototype.onAdSlotMetadataChanged;eC.prototype.onTypographyBumpChanged=eC.prototype.onTypographyBumpChanged;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],eC.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],eC.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],eC.prototype,"rendererBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],eC.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],eC.prototype,"noBottomMargin",void 0);_.q([_.R(),_.N("design:type",Object)],eC.prototype,"overlayDensity",void 0);_.q([_.R(),_.N("design:type",Object)],eC.prototype,"typographyBump",void 0);_.q([_.cD("ytd-in-feed-ad-layout-renderer"),_.N("design:type",HTMLElement)],eC.prototype,"inFeedAdLayoutRenderer",void 0);
_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",String),_.N("design:paramtypes",[])],eC.prototype,"layout",null);_.q([_.yf("typographyBump"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],eC.prototype,"onTypographyBumpChanged",null);_.q([_.yf("data.adSlotMetadata"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],eC.prototype,"onAdSlotMetadataChanged",null);
eC=_.q([_.d({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],eC);
_.w(eC,"ytd-ad-slot-renderer",function(){if(Q1E!==void 0)return Q1E;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Q1E=x},{mode:_.Ge("kevlar_poly_si_batch_j077")?
1:2});var pI8;var ZL=function(){return _.n.apply(this,arguments)||this};
_.m(ZL,_.n);_.a=ZL.prototype;_.a.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"}}}};
_.a.onTap=function(){_.B("enable_handle_watch_endpoint_click_for_vdc")||this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&aC3(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.a.onThumbnailContainerClick=function(x){this.onClick(x)};
_.a.onClick=function(x){if(_.B("enable_handle_watch_endpoint_click_for_vdc")){var G,D=(G=this.data)==null?void 0:G.navigationEndpoint;D&&_.Y(D,_.d5)&&(this.ytSparklesClickLocationBehavior.handleClick(D,x,!0),x.stopPropagation())}};
_.a.dataChanged=function(){if(this.data&&this.data.impressionUrls)for(var x=_.l(this.data.impressionUrls),G=x.next();!G.done;G=x.next())G=G.value,piL(G,btE(G));this.data&&this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)};
_.a.attached=function(){var x=this;_.B("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&x.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.a.detached=function(){_.B("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Nq.Object.defineProperties(ZL.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.B("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.B("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
ZL.prototype.dataChanged=ZL.prototype.dataChanged;ZL.prototype.onTap=ZL.prototype.onTap;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],ZL.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],ZL.prototype,"ytRendererBehavior",void 0);_.q([_.I(m1),_.N("design:type",Object)],ZL.prototype,"ytdActiveViewBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],ZL.prototype,"ytdReduxBehavior",void 0);
_.q([_.I(_.Jp.YtSparklesClickLocationBehavior),_.N("design:type",Object)],ZL.prototype,"ytSparklesClickLocationBehavior",void 0);_.q([_.R({selector:_.X4}),_.N("design:type",Object)],ZL.prototype,"isGridViewEnabled",void 0);_.q([_.U("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ZL.prototype,"watchFeedBigThumbs",null);
_.q([_.U("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.N("design:type",String),_.N("design:paramtypes",[])],ZL.prototype,"thumbnailWidth",null);_.q([_.R(),_.N("design:type",Object)],ZL.prototype,"data",void 0);_.q([_.oe("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ZL.prototype,"onTap",null);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ZL.prototype,"dataChanged",null);
ZL=_.q([_.d({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],ZL);
_.w(ZL,"ytd-compact-promoted-video-renderer",function(){if(pI8!==void 0)return pI8;var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="[[thumbnailWidth]]" on-click="onThumbnailContainerClick" class="style-scope ytd-compact-promoted-video-renderer">\n</ytd-thumbnail>\n<div class="details style-scope ytd-compact-promoted-video-renderer">\n  <a id="endpoint-link" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" on-click="onClick" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-compact-promoted-video-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n      <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n      </ytd-video-meta-block>\n      <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n        <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n      </div>\n    </div>\n  </a>\n  <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n</div>\n');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return pI8=x},{mode:1});var V40;_.HH("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var MS=function(){return _.n.apply(this,arguments)||this};
_.m(MS,_.n);MS.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],MS.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],MS.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],MS.prototype,"data",void 0);MS=_.q([_.d({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],MS);
_.w(MS,"ytd-search-pyv-renderer",function(){if(V40!==void 0)return V40;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return V40=x},{mode:1});var bah;_.HH("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var QQ=function(){var x=_.n.apply(this,arguments)||this;x.roundedContainer=!0;x.JSC$13460_handleOpenPostCommentDialogActionAfterStamp=!1;x.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return x};
_.m(QQ,_.n);_.a=QQ.prototype;
_.a.configureRendererStamper=function(){return{"data.post":{id:"post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{shouldHideAuthor:"[[isInEngagementPanel]]",shouldShowVideoTime:"[[isInEngagementPanel]]",shouldShowMenuInCompactView:"[[isInEngagementPanel]]",isInEngagementPanel:"[[isInEngagementPanel]]",usesFullLockup:"[[usesFullLockup]]",hideBorder:"[[hideBorder]]"}},postRenderer:"ytd-post-renderer",sharedPostRenderer:{component:"ytd-shared-post-renderer",properties:{usesFullLockup:"[[usesFullLockup]]"}}}},
"data.commentDialog":{id:"comment-dialog",mapping:{commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"},events:!0}}};
_.a.onStampFinished=function(){this.JSC$13460_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.a.handleSignalActionOpenPostCommentDialogAction=function(){var x=_.kA(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");x?x.openDialog():this.JSC$13460_handleOpenPostCommentDialogActionAfterStamp=!0};
_.a.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.a.computeHideBorder=function(){return this.isInEngagementPanel};
_.a.computeIsCompact=function(){return this.isInEngagementPanel};
_.a.computeUsesCompactLockup=function(x){return x==="BACKSTAGE_SURFACE_TYPE_HOME"||x==="BACKSTAGE_SURFACE_TYPE_SEARCH"||x==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||x==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||x==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||x==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.a.computeUsesFullLockup=function(){var x,G=(x=this.data)==null?void 0:x.post,D;x=(D=_.Y(G,h_q))==null?void 0:D.surface;var K;D=(K=_.Y(G,G0J))==null?void 0:K.originalPost;var z;if(K=x||((z=_.Y(D,h_q))==null?void 0:z.surface))return!this.computeUsesCompactLockup(K)&&this.useUpdatedRepostUi;var y;return((y=_.Y(G,G0J))==null?void 0:y.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.Nq.Object.defineProperties(QQ.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var x,G;return((G=_.Y((x=this.data)==null?void 0:x.post,h_q))==null?void 0:G.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.useUpdatedRepostUi}}});
QQ.prototype.onYtCommentModerationPanelEmpty=QQ.prototype.onYtCommentModerationPanelEmpty;QQ.prototype.onStampFinished=QQ.prototype.onStampFinished;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],QQ.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],QQ.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],QQ.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],QQ.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],QQ.prototype,"roundedContainer",void 0);_.q([_.R({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.N("design:type",Boolean)],QQ.prototype,"hideBorder",void 0);_.q([_.R({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.N("design:type",Boolean)],QQ.prototype,"isCompact",void 0);
_.q([_.R({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.N("design:type",Boolean)],QQ.prototype,"usesFullLockup",void 0);_.q([_.oe("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],QQ.prototype,"onStampFinished",null);
_.q([_.oe("ytd-comment-moderation-panel-empty"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],QQ.prototype,"onYtCommentModerationPanelEmpty",null);_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],QQ.prototype,"isInEngagementPanel",null);_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],QQ.prototype,"useUpdatedRepostUi",null);
QQ=_.q([_.d({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],QQ);
_.w(QQ,"ytd-backstage-post-thread-renderer",function(){if(bah!==void 0)return bah;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return bah=x},{mode:1});var LtE;var pN=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return x};
_.m(pN,_.n);pN.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
pN.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var x=this.data.thumbnail.thumbnails;this.isDarkTheme&&(x=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(x=_.k$(x,24,void 0,"height"))?x:void 0}};
pN.prototype.onDarkModeToggledAction=function(x){this.isDarkTheme=x};
pN.prototype.computeHasText=function(){var x;return!((x=this.data)==null||!x.text)};
_.Nq.Object.defineProperties(pN.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.V$(this.bannerImageUrl))+'");'}}});
pN.prototype.computeHasText=pN.prototype.computeHasText;pN.prototype.computeBannerImageUrl=pN.prototype.computeBannerImageUrl;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],pN.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],pN.prototype,"actionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],pN.prototype,"ytRendererBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],pN.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Boolean)],pN.prototype,"isDarkTheme",void 0);_.q([_.R(),_.N("design:type",String)],pN.prototype,"bannerImageUrl",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.N("design:type",Boolean)],pN.prototype,"hasText",void 0);_.q([_.yf("data","isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pN.prototype,"computeBannerImageUrl",null);
_.q([_.yf("data.text"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pN.prototype,"computeHasText",null);_.q([_.U("bannerImageUrl"),_.N("design:type",Object),_.N("design:paramtypes",[])],pN.prototype,"bannerStyle",null);pN=_.q([_.d({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],pN);
_.w(pN,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(LtE!==void 0)return LtE;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return LtE=x},{mode:1});var B3q;var VQ=function(){return _.n.apply(this,arguments)||this};
_.m(VQ,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],VQ.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],VQ.prototype,"data",void 0);VQ=_.q([_.d({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],VQ);
_.w(VQ,"ytd-backstage-zero-state-renderer",function(){if(B3q!==void 0)return B3q;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return B3q=x},{mode:1});var r8u;var by=function(){return _.n.apply(this,arguments)||this};
_.m(by,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],by.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],by.prototype,"data",void 0);_.q([_.R({computed:"computeIcon_(data.icon)"}),_.N("design:type",String)],by.prototype,"icon",void 0);by=_.q([_.d({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],by);
_.w(by,"ytd-post-filter-zero-state-renderer",function(){if(r8u!==void 0)return r8u;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return r8u=x},{mode:1});var s19;var YZo={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},LN=function(){return _.n.apply(this,arguments)||this};
_.m(LN,_.n);LN.prototype.configureRendererStamper=function(){return YZo};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],LN.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],LN.prototype,"rendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],LN.prototype,"data",void 0);_.q([_.R({computed:"computeIcon_(data.icon)"}),_.N("design:type",String)],LN.prototype,"icon",void 0);LN=_.q([_.d({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],LN);
_.w(LN,"ytd-post-scheduling-zero-state-renderer",function(){if(s19!==void 0)return s19;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return s19=x},{mode:1});var mbZ;var BU=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return x};
_.m(BU,_.n);BU.prototype.onTabsActivate=function(x){this.data&&this.data.tabs&&_.h$(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[x.detail.selected].navigationEndpoint})};
BU.prototype.shouldShowTotalCount=function(x){return x&&x.totalCount!==void 0};
BU.prototype.handleUpdatePostsTotalCountAction=function(x){var G=this.get(["data.tabs",1,"totalCount"]),D=this.get("updatePostsTotalCountAction.updateType",x);x=this.get("updatePostsTotalCountAction.number",x);G!==void 0&&D!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&x&&(D==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(G)+x):D==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(G)-x))};
_.Nq.Object.defineProperties(BU.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var x=0,G=this.data.tabs.length;x<G;x++)if(this.data.tabs[x].selected)return x;return 0}}});
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],BU.prototype,"actionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],BU.prototype,"rendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],BU.prototype,"data",void 0);_.q([_.U("data.tabs"),_.N("design:type",Number),_.N("design:paramtypes",[])],BU.prototype,"selected",null);BU=_.q([_.d({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],BU);
_.w(BU,"ytd-post-stream-filter-renderer",function(){if(mbZ!==void 0)return mbZ;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return mbZ=x},{mode:1});var Haq;var ry=function(){return _.n.apply(this,arguments)||this};
_.m(ry,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],ry.prototype,"kevlarBehaviors",void 0);_.q([_.R(),_.N("design:type",Object)],ry.prototype,"data",void 0);ry=_.q([_.d({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],ry);
_.w(ry,"ytd-channel-age-gate-renderer",function(){if(Haq!==void 0)return Haq;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Haq=x},{mode:1});var $bs;_.HH("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var sL=function(){var x=_.n.apply(this,arguments)||this;x.data=null;return x};
_.m(sL,_.n);sL.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Nq.Object.defineProperties(sL.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var x,G,D;return((x=this.data)==null?0:(G=x.title)==null?0:(D=G.runs)==null?0:D.length)?147:160}}});
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],sL.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],sL.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],sL.prototype,"imageSizePx",null);sL=_.q([_.d({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],sL);
_.w(sL,"ytd-channel-owner-empty-state-renderer",function(){if($bs!==void 0)return $bs;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return $bs=x},{mode:1});var Fti;var CRk;var YM=function(){var x=_.n.apply(this,arguments)||this;x.boundSubmitSearch=function(){x.submitSearch()};
x.boundClearSearch=function(){x.clearSearch()};
return x};
_.m(YM,_.n);_.a=YM.prototype;_.a.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]]"}}}}}};
_.a.toggleClearButton=function(){this.hideClearButton=v6E||!this.input.value};
_.a.submitOnEnterKeyUp=function(x){x.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.a.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.a.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.a.submit=function(){_.h$(this.hostElement,"search-query-changed",this.input.value)};
YM.prototype.toggleClearButton=YM.prototype.toggleClearButton;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],YM.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],YM.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],YM.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],YM.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],YM.prototype,"hideClearButton",void 0);_.q([_.R(),_.N("design:type",Object)],YM.prototype,"boundSubmitSearch",void 0);_.q([_.R(),_.N("design:type",Object)],YM.prototype,"boundClearSearch",void 0);_.q([_.cD("#input"),_.N("design:type",Object)],YM.prototype,"input",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YM.prototype,"toggleClearButton",null);
YM=_.q([_.d({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],YM);
_.w(YM,"ytd-channel-switcher-search-box-renderer",function(){if(CRk!==void 0)return CRk;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return CRk=x},{mode:1});var IGE;var m_=function(){var x=_.n.apply(this,arguments)||this;x.boundSubmit=function(){x.submit()};
return x};
_.m(m_,_.n);_.a=m_.prototype;_.a.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"}}}}};
_.a.ready=function(){var x=this;this.form.addEventListener("submit",function(G){return x.onSubmit(G)})};
_.a.onSubmit=function(x){x.preventDefault();return!1};
_.a.toggleClearButton=function(){this.hideClearButton=v6E||!this.input.value};
_.a.submitOnEnterKeyUp=function(x){x.keyCode===13&&this.submit()};
_.a.submit=function(){var x=this.data.endpoint,G=(0,_.YS.unsafeClone)(x);_.Y(G,_.TU)?_.Y(G,_.TU).query=this.input.value:_.Y(G,_.Wi)&&(_.Y(G,_.Wi).query=this.input.value);var D=_.Y(G.commandMetadata,_.fC);(D==null?0:D.url)?(D.url=_.U9(D.url,"query",this.input.value),_.h$(this.hostElement,"yt-navigate",{endpoint:G})):_.Y(G,R_Z)?(_.Y(G,R_Z).channelSwitcherQuery=this.input.value,_.Eo().resolve(_.hm).resolveCommand(G,{form:{element:this.hostElement}})):(x=Error("Ih`"+JSON.stringify(x)),_.I4(x))};
_.a.getUrl=function(x){return this.get("commandMetadata.webCommandMetadata.url",x)};
m_.prototype.toggleClearButton=m_.prototype.toggleClearButton;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],m_.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],m_.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],m_.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],m_.prototype,"hideClearButton",void 0);
_.q([_.R(),_.N("design:type",Object)],m_.prototype,"boundSubmit",void 0);_.q([_.cD("#form"),_.N("design:type",HTMLFormElement)],m_.prototype,"form",void 0);_.q([_.cD("#input"),_.N("design:type",Object)],m_.prototype,"input",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],m_.prototype,"toggleClearButton",null);m_=_.q([_.d({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],m_);
_.w(m_,"ytd-search-box-renderer",function(){if(IGE!==void 0)return IGE;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return IGE=x},{mode:2});var HU=function(){var x=_.n.apply(this,arguments)||this;x.showSearchBox=!0;return x};
_.m(HU,_.n);HU.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],HU.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],HU.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],HU.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],HU.prototype,"showSearchBox",void 0);HU=_.q([_.d({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],HU);
_.w(HU,"ytd-channel-switcher-header-renderer",function(){if(Fti!==void 0)return Fti;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Fti=x},{mode:1});var j1k;var Oau;var $M=function(){var x=_.n.apply(this,arguments)||this;x.isDisplayed=!0;return x};
_.m($M,_.n);_.a=$M.prototype;_.a.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.a.dataChanged=function(){this.isDisplayed=!0};
_.a.computeType=function(x){return x||"UNKNOWN"};
_.a.onYtServiceRequestCompleted=function(x){x.stopPropagation();this.isDisplayed=!1};
_.a.onClose=function(){this.isDisplayed=!1};
$M.prototype.onYtServiceRequestCompleted=$M.prototype.onYtServiceRequestCompleted;$M.prototype.dataChanged=$M.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],$M.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],$M.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],$M.prototype,"data",void 0);
_.q([_.R({computed:"computeType(data.type)",reflectToAttribute:!0}),_.N("design:type",String)],$M.prototype,"type",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],$M.prototype,"isDisplayed",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$M.prototype,"dataChanged",null);
_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],$M.prototype,"onYtServiceRequestCompleted",null);$M=_.q([_.d({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],$M);
_.w($M,"ytd-alert-with-button-renderer",function(){if(Oau!==void 0)return Oau;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Oau=x},{mode:1});var Fo=function(){var x=_.n.apply(this,arguments)||this;x.noResult=!1;x.enableAlertBanner=!1;x.dismissedAlertBanner=!1;x.hideCreateChannelButton=!1;x.boundDismissAlertBanner=function(){x.dismissAlertBanner()};
x.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return x};
_.m(Fo,_.n);_.a=Fo.prototype;_.a.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.a.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.a.updateChannelSwitcherAction=function(x){var G;x=(G=_.Y(x,pVZ))==null?void 0:G.page;_.Y(x,QXh)!==void 0&&(this.data=_.Y(x,QXh))};
_.a.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]]"}}}}}};
_.a.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.a.searchQueryChanged=function(x,G){if(this.data&&this.data.contents&&this.data.contents.length){x=[];var D=[];this.hideCreateChannelButton=this.noResult=!1;for(var K=document.querySelectorAll("ytd-account-item-renderer"),z=_.l(K),y=z.next();!y.done;y=z.next())y=y.value,D.push(y),y.style.display="block";this.resetRightBorder(D);if(G){this.hideCreateChannelButton=!0;for(D=1;D<this.data.contents.length;D++)if(y=this.data.contents[D],_.Y(y,Xbi)){var c=void 0,W=void 0;z=(c=_.Y(y,Xbi))==null?void 0:(W=
c.accountName)==null?void 0:W.simpleText;W=c=void 0;y=(c=_.Y(y,Xbi))==null?void 0:(W=c.channelHandle)==null?void 0:W.simpleText;(c=K[D-1])&&z&&_.WL(z,G)?x.push(c):_.B("enable_handle_search_on_channel_switcher")&&c&&y&&_.WL(y.toString(),G.toString())?x.push(c):c.style.display="none"}x.length===0&&(this.noResult=!0);this.resetRightBorder(x)}}};
_.a.resetRightBorder=function(x){for(var G=0;G<x.length;G++)x[G].style.borderRight=!this.hideCreateChannelButton&&(G+2)%3===0||this.hideCreateChannelButton&&(G+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.a.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.a.setShowSearchBox=function(x){if(x&&x.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var G=0;G<x.contents.length;G++)_.Y(x.contents[G],_.hj)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.a.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.Nq.Object.defineProperties(Fo.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null?0:x.contents)}}});
Fo.prototype.onContinuationItemsUpdated=Fo.prototype.onContinuationItemsUpdated;Fo.prototype.searchQueryChanged=Fo.prototype.searchQueryChanged;Fo.prototype.onDataChanged=Fo.prototype.onDataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Fo.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Fo.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],Fo.prototype,"actionHandlerBehavior",void 0);_.q([_.I(_.Oh),_.N("design:type",Object)],Fo.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Fo.prototype,"data",void 0);_.q([_.cD("ytd-channel-switcher-header-renderer"),_.N("design:type",Object)],Fo.prototype,"channelSwitcherHeaderRenderer",void 0);_.q([_.R(),_.N("design:type",Object)],Fo.prototype,"noResult",void 0);
_.q([_.R(),_.N("design:type",Object)],Fo.prototype,"enableAlertBanner",void 0);_.q([_.R(),_.N("design:type",Object)],Fo.prototype,"dismissedAlertBanner",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Fo.prototype,"hideCreateChannelButton",void 0);_.q([_.U("data.contents"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Fo.prototype,"isLoading",null);_.q([_.R(),_.N("design:type",Object)],Fo.prototype,"boundDismissAlertBanner",void 0);
_.q([_.R({computed:"computeButtonOverride()"}),_.N("design:type",Object)],Fo.prototype,"buttonOverride",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fo.prototype,"onDataChanged",null);_.q([_.oe("search-query-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,String]),_.N("design:returntype")],Fo.prototype,"searchQueryChanged",null);
_.q([_.oe("yt-next-continuation-data-updated"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Fo.prototype,"onContinuationItemsUpdated",null);Fo=_.q([_.d({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],Fo);
_.w(Fo,"ytd-channel-switcher-page-renderer",function(){if(j1k!==void 0)return j1k;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return j1k=x},{mode:1});var XIs;var A8Z;var CN=function(){var x=_.n.apply(this,arguments)||this;x.images=[];x.selectedImageIndex=0;return x};
_.m(CN,_.n);_.a=CN.prototype;
_.a.ready=function(){_.Lz(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.Lz(this.JSC$13505_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.Lz(this.JSC$13505_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.Lz(this.JSC$13505_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.a.onThumbnailClick=function(x){if(x=x.event_.detail)this.selectedImageIndex=this.images.indexOf(x)};
_.a.updateImageThumbnails=function(x){x=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:x.event_.detail});this.images.splice(this.selectedImageIndex,1,x);this.images=[].concat(_.B5(this.images))};
_.a.cancelImageRepositions=function(){this.selectedImageIndex=0;_.h$(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.a.saveImageRepositions=function(){this.selectedImageIndex=0;_.h$(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.Nq.Object.defineProperties(CN.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var x=this;return(this.images||[]).map(function(G,D){return{image:G,selected:D===x.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],CN.prototype,"ytRendererstamperBehavior",void 0);_.q([_.cD("ytd-backstage-image-preview-renderer"),_.N("design:type",Object)],CN.prototype,"JSC$13505_imagePreviewContainer",void 0);_.q([_.cD(".thumbnail-images-container"),_.N("design:type",HTMLElement)],CN.prototype,"thumbnailImagesContainer",void 0);_.q([_.R(),_.N("design:type",Array)],CN.prototype,"images",void 0);
_.q([_.R(),_.N("design:type",Object)],CN.prototype,"repositionInstructions",void 0);_.q([_.R(),_.N("design:type",Object)],CN.prototype,"selectedImageIndex",void 0);_.q([_.U("images","selectedImageIndex"),_.N("design:type",Array),_.N("design:paramtypes",[])],CN.prototype,"thumbnailRendererDatas",null);_.q([_.U("images","selectedImageIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],CN.prototype,"selectedImageData",null);
CN=_.q([_.d({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],CN);
_.w(CN,"ytd-backstage-multi-image-reposition-renderer",function(){if(A8Z!==void 0)return A8Z;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return A8Z=x},{mode:1});var Iq=function(x,G){_.T2.call(this);this.uploadUrl=x;this.channelId=G;this.imagesUploadData=[]};
_.m(Iq,_.T2);Iq.prototype.getAllUploadStatuses=function(){var x=this,G,D,K;return _.T(function(z){if(z.nextAddress==1)return _.Z(z,Ubh(x),2);G=z.yieldResult;D=G.get("succeed");K=G.get("failed");return z.return(D.concat(K))})};
var SZE=function(x){var G,D;return _.T(function(K){if(K.nextAddress==1)return _.Z(K,Ubh(x),2);G=K.yieldResult;D=G.get("failed");D.length>0&&RYE(x,D);return K.return(x.getAllUploadStatuses())})},Ubh=function(x){var G,D,K,z,y,c,W;
return _.T(function(e){if(e.nextAddress==1)return G=new Map,_.Z(e,Promise.allSettled(x.imagesUploadData.map(function(Q){return Q.uploadPromise})),2);
D=e.yieldResult;K=[];z=_.l(D);for(y=z.next();!y.done;y=z.next())c=y.value,c.status==="fulfilled"&&K.push(c.value);W=x.imagesUploadData.map(function(Q){return Q.image}).filter(function(Q){return K.every(function(p){return p.id!==Q.id})});
G.set("succeed",K);G.set("failed",W);return e.return(G)})},RYE=function(x,G){G=_.l(G);
for(var D=G.next();!D.done;D=G.next()){var K=x;D=D.value;nv8(K,D.id)>=0&&K.cancel(D.id);var z=new ia9(D),y=_.BjZ(K.uploadUrl,{"X-YouTube-ChannelId":K.channelId},D.imageBlob);z.transfer=y;z.uploadPromise=gvE(y,D);K.imagesUploadData.push(z);y.run()}};
Iq.prototype.cancel=function(x){var G=nv8(this,x);G!==-1&&((G=this.imagesUploadData[G].transfer)&&G.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(D){return D.image.id!==x}))};
var nv8=function(x,G){return x.imagesUploadData.findIndex(function(D){return D.image.id===G})},gvE=function(x,G){return new Promise(function(D,K){x.listen("l",function(){var z=x.getResponseText();
z?(z=JSON.parse(z).encryptedBlobId,G.encryptedBlobId=z,D(G)):K("upload failed")});
x.listen("n",function(){K("upload failed")})})},ia9=function(x){this.image=x};var V4L=function(x,G,D,K,z){this.id=x;this.imageBlob=G;this.localImageSrc=D;this.naturalWidth=K;this.naturalHeight=z;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 uP9=[".jpeg",".jpg",".png"],jC=function(){var x=_.n.apply(this,arguments)||this;x.showImagesPreview=!1;x.pollOptions=[];x.errorMessage="";x.optionPlaceholderText="";x.optionDefaultText="";x.JSC$13516_imageId=0;x.maxFileSizeMb=0;x.maxAspectRatio=0;x.invalidFileSizeError="";x.invalidAspectRatioError="";x.invalidFileTypeError="";x.imageSelector=new KB(null,"single_file",uP9);return x};
_.m(jC,_.n);_.a=jC.prototype;_.a.ready=function(){_.Lz(this.imageSelector,"j",this.onImageSelect,!1,this);_.Lz(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.Lz(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.a.dataChanged=function(){var x,G,D=_.Y((x=this.data)==null?void 0:(G=x.cellTemplate)==null?void 0:G.onEmptyCellTap,Q6h);if(D&&D.uploadUrl&&D.channelId){var K;this.maxFileSizeMb=((K=D.imageValidationInfo)==null?void 0:K.maxFileSizeMb)||0;var z;this.maxAspectRatio=((z=D.imageValidationInfo)==null?void 0:z.allowedMaxAspectRatio)||0;var y;this.invalidFileSizeError=this.getSimpleString((y=this.data)==null?void 0:y.invalidFileSizeError);var c;this.invalidAspectRatioError=this.getSimpleString((c=this.data)==
null?void 0:c.invalidAspectRatioError);var W;this.invalidFileTypeError=this.getSimpleString((W=this.data)==null?void 0:W.invalidFileTypeError);this.uploadManager=new Iq(D.uploadUrl,D.channelId)}};
_.a.onEditorInfoChange=function(){this.optionPlaceholderText=_.u7(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.u7(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.a.observeAddImageError=function(){this.errorMessage!==""&&_.h$(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.a.onPollOptionsChange=function(){for(var x=!1,G=[],D=0;D<this.pollOptions.length;D++){var K=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(D+1);this.pollOptions[D].placeholderText!==K?(x=!0,G.push(Object.assign({},this.pollOptions[D],{placeholderText:K}))):G.push(this.pollOptions[D])}x&&(this.pollOptions=G);this.isValid()?_.h$(this.hostElement,"yt-commentbox-post-enable"):_.h$(this.hostElement,"yt-commentbox-post-disable")};
_.a.createPollOptions=function(x){var G=[],D;x=(D=x==null?void 0:x.minPollOptions)!=null?D:0;for(D=0;D<x;D++)G.push(this.createPollOption());return G};
_.a.onImageSelect=function(x){var G=this,D,K,z,y,c,W;return _.T(function(e){if(e.nextAddress==1){if(G.selectedImageIndex===void 0)return e.jumpTo(0);D=x.files[0];G.errorMessage="";K=G.validateImage(D);if(K!=="")return G.errorMessage=K,e.return();z=new S1(G.maxAspectRatio,!1,!0);return _.Z(e,z.transform(D),3)}if(e.nextAddress!=4)return y=e.yieldResult,y.transformedData?y.invalidAspectRatio?(G.errorMessage=G.invalidAspectRatioError,e.return()):_.Z(e,baE(G.JSC$13516_imageId,x.files[0],y.transformedData),
4):(G.errorMessage=G.invalidFileTypeError,e.return());c=e.yieldResult;G.JSC$13516_imageId++;RYE(G.uploadManager,[c]);W=Object.assign({},G.pollOptions[G.selectedImageIndex],{image:c});G.pollOptions.splice(G.selectedImageIndex,1,W);G.refreshPollOptions();_.h$(G.hostElement,"yt-backstage-poll-image-select");_.c5(e)})};
_.a.validateImage=function(x){return x.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.a.refreshPollOptions=function(){this.pollOptions=[].concat(_.B5(this.pollOptions))};
_.a.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.B5(this.pollOptions),[this.createPollOption()]))};
_.a.onRemovePollOption=function(x){var G=this.pollOptions[x.model.index];G&&G.image&&this.uploadManager.cancel(G.image.id);this.pollOptions.splice(x.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.h$(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.a.onTextInput=function(){this.refreshPollOptions()};
_.a.onImageButtonClick=function(x){this.selectedImageIndex=x.model.index;this.imageSelector.click()};
_.a.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.a.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.a.saveImageRepositions=function(x){x=x.event_.detail;for(var G=0,D=[],K=_.l(this.pollOptions),z=K.next();!z.done;z=K.next())z=z.value,z.image!==void 0?(z=Object.assign({},z,{image:x[G]}),D.push(z),G++):D.push(z);this.showImagesPreview=!1;this.pollOptions=[].concat(_.B5(D))};
_.a.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 x=0,G=_.l(this.pollOptions),D=G.next();!D.done;D=G.next())if(D=D.value,D.optionText.trim()!==""||D.image!==void 0){if(!D.image||this.hasCustomOptionText&&D.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;x++}return x>=Number(this.editorInfo.minPollOptions)};
_.a.getAllUploadStatuses=function(){var x=this,G,D,K,z;return _.T(function(y){if(y.nextAddress==1)return _.Z(y,x.uploadManager.getAllUploadStatuses(),2);G=y.yieldResult;D=_.l(G);for(K=D.next();!K.done;K=D.next())if(z=K.value,z.encryptedBlobId===void 0)return y.return(SZE(x.uploadManager));return y.return(G)})};
_.a.getPostCreateOptions=function(){for(var x=[],G=_.l(this.pollOptions),D=G.next();!D.done;D=G.next())D=D.value,D.image!==void 0&&x.push({text:this.hasCustomOptionText?D.optionText:D.placeholderText,image:D.image});return x};
_.a.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.a.createButtonRenderer=function(x,G){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:x,accessibilityData:{accessibilityData:{label:this.getSimpleString(x)}},isDisabled:G}};
_.a.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.a.computeThumbnailRendererData=function(x){return x?{image:x,selected:!1}:void 0};
_.a.getSimpleString=function(x){return _.u7(x)};
_.a.updateOptionTextFromBinding=function(x){if(x.target){var G=Array.from(_.kA(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(x.target);if(G>=0){var D;this.pollOptions[G].optionText=(D=x.detail.value)!=null?D:""}}};
_.Nq.Object.defineProperties(jC.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var x,G;return this.pollOptions.length<((G=(x=this.editorInfo)==null?void 0:x.maxPollOptions)!=null?G:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(x){return x.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(x){return x.image}).map(function(x){return x.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(x){return x.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var x,G=(x=this.data)==null?void 0:x.addOptionButtonText;return G?this.createButtonRenderer(G,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var x,G=(x=this.data)==null?void 0:x.repositionImagesButtonLabel;return G?this.createButtonRenderer(G,!this.hasImages):void 0}}});
jC.prototype.onPollOptionsChange=jC.prototype.onPollOptionsChange;jC.prototype.observeAddImageError=jC.prototype.observeAddImageError;jC.prototype.onEditorInfoChange=jC.prototype.onEditorInfoChange;jC.prototype.dataChanged=jC.prototype.dataChanged;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],jC.prototype,"ytRendererstamperBehavior",void 0);_.q([_.cD("ytd-backstage-multi-image-reposition-renderer"),_.N("design:type",Object)],jC.prototype,"imageRepositionContainer",void 0);
_.q([_.R(),_.N("design:type",Object)],jC.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],jC.prototype,"editorInfo",void 0);_.q([_.R(),_.N("design:type",Iq)],jC.prototype,"uploadManager",void 0);_.q([_.R(),_.N("design:type",Object)],jC.prototype,"showImagesPreview",void 0);_.q([_.R(),_.N("design:type",Array)],jC.prototype,"pollOptions",void 0);_.q([_.R(),_.N("design:type",Object)],jC.prototype,"errorMessage",void 0);
_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jC.prototype,"dataChanged",null);_.q([_.Z6("editorInfo"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jC.prototype,"onEditorInfoChange",null);_.q([_.yf("errorMessage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jC.prototype,"observeAddImageError",null);
_.q([_.Z6("pollOptions"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jC.prototype,"onPollOptionsChange",null);_.q([_.U("pollOptions","editorInfo"),_.N("design:type",Object),_.N("design:paramtypes",[])],jC.prototype,"isAllowedToAddOption",null);_.q([_.U("pollOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],jC.prototype,"hasImages",null);
_.q([_.U("pollOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],jC.prototype,"imagesToReposition",null);_.q([_.U("pollOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],jC.prototype,"hasCustomOptionText",null);_.q([_.U("data","isAllowedToAddOption"),_.N("design:type",Object),_.N("design:paramtypes",[])],jC.prototype,"addOptionButton",null);_.q([_.U("data","hasImages"),_.N("design:type",Object),_.N("design:paramtypes",[])],jC.prototype,"repositionImagesButton",null);
jC=_.q([_.d({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],jC);
_.w(jC,"ytd-backstage-image-poll-editor-renderer",function(){if(XIs!==void 0)return XIs;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return XIs=x},{mode:2});var dbh={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 wIo;var SC=function(){var x=_.n.apply(this,arguments)||this;x.a11yConfig=dbh;x.imageDisplayOffsetTop=0;x.imageDisplayOffsetLeft=0;x.pickerDisplayOffsetTop=0;x.pickerDisplayOffsetLeft=0;x.showPreviewContainer=!0;x.startPicker=!1;x.repositionOptional=!1;x.editOnlyMode=!1;x.savedImageDisplayOffsetTop=0;x.savedImageDisplayOffsetLeft=0;return x};
_.m(SC,_.n);_.a=SC.prototype;_.a.created=function(){_.I8.requestAvailability()};
_.a.ready=function(){};
_.a.onArrowKeysDown=function(x){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){x.detail.keyboardEvent.preventDefault();var G=0,D=0,K="";switch(x.detail.keyboardEvent.key){case "ArrowUp":LtD(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?K=this.a11yConfig.reachBottomOfImage:G=this.imageHeight*.05*-1;break;case "ArrowDown":LtD(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?K=this.a11yConfig.reachTopOfImage:
G=this.imageHeight*.05;break;case "ArrowLeft":LtD(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?K=this.a11yConfig.reachRightOfImage:D=this.imageWidth*.05*-1;break;case "ArrowRight":LtD(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?K=this.a11yConfig.reachLeftOfImage:D=this.imageWidth*.05}K&&_.Wg(K)&&_.h$(this.hostElement,"iron-announce",{text:_.Wg(K)});if(D||G)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+G)),x=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),x=_.Wg(this.a11yConfig.imageVerticalPosition,{x_percent:""+x,y_percent:""+(100-x)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+D)),x=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),x=_.Wg(this.a11yConfig.imageHorizontalPosition,{x_percent:""+x,y_percent:""+(100-x)})),x&&_.h$(this.hostElement,"iron-announce",{text:x})}};
_.a.getPreviewPosition=function(x,G,D,K){return Math.round(100*(x+G*.5-D)/K)};
_.a.calculateDisplayPosition=function(){var x=this.imageData.naturalWidth,G=this.imageData.naturalHeight;this.displayScale=Math.max(200/x,200/G);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var D=x*this.displayScale*this.imageData.previewCoordinates.left,K=G*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=G>x?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-D;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=x>G?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-K;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=x*this.displayScale;this.imageHeight=G*this.displayScale};
_.a.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.a.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.a.getSignedPosition=function(x,G,D){return G==="X"&&_.Am("HTML_DIR")==="rtl"?D==="-"?x+"px":x*-1+"px":D==="-"?x*-1+"px":x+"px"};
_.a.pickerMove=function(x){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var G=this.pickerOffsetX-x.clientX,D=this.pickerOffsetY-x.clientY;this.pickerOffsetX=x.clientX;this.pickerOffsetY=x.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
D)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-G))}};
_.a.pickerMoveStart=function(x){this.startPicker=!0;this.pickerOffsetX=x.clientX;this.pickerOffsetY=x.clientY};
_.a.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var x=this.generateCropPreview();x&&_.h$(this.hostElement,"ytd-backstage-image-preview-coordinates-update",x)};
_.a.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.h$(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.a.deleteImage=function(){_.h$(this.hostElement,"ytd-backstage-image-preview-delete")};
_.a.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.a.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var x=this.generateCropPreview();x&&_.h$(this.hostElement,"ytd-backstage-image-preview-coordinates-save",x)};
_.a.getPreviewOffset=function(x,G,D){return G&&x?(D==="X"&&_.Am("HTML_DIR")==="rtl"?300/G*x:300/G*x*-1)+"px":"0px"};
_.a.getSimpleText=function(x){return x?_.u7(x):""};
_.a.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}};
_.Nq.Object.defineProperties(SC.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var x=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Wg(this.a11yConfig.imageVerticalPosition,{x_percent:""+x,y_percent:""+(100-x)})+"\n"+_.Wg(this.a11yConfig.verticalRepositionInstruction)}x=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Wg(this.a11yConfig.imageHorizontalPosition,{x_percent:""+x,y_percent:""+(100-x)})+"\n"+_.Wg(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 x,G,D=(x=this.instruction)==null?void 0:(G=x.previewInstruction)==null?void 0:G.editButtonLabel;return D?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:D,accessibilityData:{accessibilityData:{label:this.getSimpleText(D)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var x,G,D,K,z=this.editOnlyMode?(x=this.instruction)==null?void 0:(G=x.editInstruction)==null?void 0:G.saveImagesButtonLabel:(D=this.instruction)==null?void 0:(K=D.editInstruction)==null?void 0:K.saveButtonLabel;return z?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:z,accessibilityData:{accessibilityData:{label:this.getSimpleText(z)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var x,G,D=(x=this.instruction)==null?void 0:(G=x.previewInstruction)==null?void 0:G.deleteButtonLabel;return D?{size:"SIZE_SMALL",text:D,accessibilityData:{accessibilityData:{label:this.getSimpleText(D)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var x,G,D=(x=this.instruction)==null?void 0:(G=x.editInstruction)==null?void 0:G.cancelButtonLabel;x=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return D?{style:x,size:"SIZE_SMALL",text:D,accessibilityData:{accessibilityData:{label:this.getSimpleText(D)}}}: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"}}});
SC.prototype.onEditOnlyModeUpdate=SC.prototype.onEditOnlyModeUpdate;SC.prototype.onImageChange=SC.prototype.onImageChange;_.q([_.R(),_.N("design:type",V4L)],SC.prototype,"imageData",void 0);_.q([_.R(),_.N("design:type",Object)],SC.prototype,"instruction",void 0);_.q([_.R(),_.N("design:type",Object)],SC.prototype,"a11yConfig",void 0);_.q([_.R(),_.N("design:type",Number)],SC.prototype,"imageWidth",void 0);_.q([_.R(),_.N("design:type",Number)],SC.prototype,"imageHeight",void 0);
_.q([_.R(),_.N("design:type",Number)],SC.prototype,"displayScale",void 0);_.q([_.R(),_.N("design:type",Object)],SC.prototype,"imageDisplayOffsetTop",void 0);_.q([_.R(),_.N("design:type",Object)],SC.prototype,"imageDisplayOffsetLeft",void 0);_.q([_.R(),_.N("design:type",Object)],SC.prototype,"pickerDisplayOffsetTop",void 0);_.q([_.R(),_.N("design:type",Object)],SC.prototype,"pickerDisplayOffsetLeft",void 0);_.q([_.R(),_.N("design:type",Object)],SC.prototype,"showPreviewContainer",void 0);
_.q([_.R(),_.N("design:type",Object)],SC.prototype,"startPicker",void 0);_.q([_.R(),_.N("design:type",Number)],SC.prototype,"pickerOffsetX",void 0);_.q([_.R(),_.N("design:type",Number)],SC.prototype,"pickerOffsetY",void 0);_.q([_.R(),_.N("design:type",Object)],SC.prototype,"repositionOptional",void 0);_.q([_.R(),_.N("design:type",Object)],SC.prototype,"editOnlyMode",void 0);_.q([_.cD("#picker-container"),_.N("design:type",HTMLElement)],SC.prototype,"JSC$13529_pickerContainer",void 0);
_.q([_.cD("#picker"),_.N("design:type",HTMLElement)],SC.prototype,"picker",void 0);_.q([_.cD("#preview-clipper"),_.N("design:type",HTMLElement)],SC.prototype,"previewClipper",void 0);_.q([_.cD("#image-in-picker-background"),_.N("design:type",HTMLImageElement)],SC.prototype,"JSC$13529_imageInBackground",void 0);_.q([_.cD("#image-in-picker"),_.N("design:type",HTMLImageElement)],SC.prototype,"JSC$13529_imageInPicker",void 0);
_.q([_.cD("#image-in-preview-clipper"),_.N("design:type",HTMLImageElement)],SC.prototype,"JSC$13529_imageInPreviewClipper",void 0);_.q([_.U("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],SC.prototype,"altLabelForImage",null);_.q([_.U("imageHeight","imageWidth"),_.N("design:type",Number),_.N("design:paramtypes",[])],SC.prototype,"pickerSize",null);
_.q([_.U("imageHeight","imageWidth"),_.N("design:type",Object),_.N("design:paramtypes",[])],SC.prototype,"imageOrientationStyle",null);_.q([_.U("instruction"),_.N("design:type",Object),_.N("design:paramtypes",[])],SC.prototype,"editButton",null);_.q([_.U("instruction","editOnlyMode"),_.N("design:type",Object),_.N("design:paramtypes",[])],SC.prototype,"saveButton",null);_.q([_.U("instruction"),_.N("design:type",Object),_.N("design:paramtypes",[])],SC.prototype,"deleteButton",null);
_.q([_.U("instruction","editOnlyMode"),_.N("design:type",Object),_.N("design:paramtypes",[])],SC.prototype,"cancelButton",null);_.q([_.U("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.N("design:type",Number),_.N("design:paramtypes",[])],SC.prototype,"cropOffsetTop",null);_.q([_.U("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.N("design:type",Number),_.N("design:paramtypes",[])],SC.prototype,"cropOffsetLeft",null);
_.q([_.U("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],SC.prototype,"pickerBackgroundStyle",null);_.q([_.U("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],SC.prototype,"pickerDisplayStyle",null);_.q([_.U("cropOffsetLeft","cropOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],SC.prototype,"imageInPickerStyle",null);
_.q([_.U("cropOffsetLeft","cropOffsetTop","pickerSize"),_.N("design:type",String),_.N("design:paramtypes",[])],SC.prototype,"previewClipperStyle",null);_.q([_.Z6("imageData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],SC.prototype,"onImageChange",null);_.q([_.Z6("editOnlyMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],SC.prototype,"onEditOnlyModeUpdate",null);
_.q([_.U("showPreviewContainer"),_.N("design:type",String),_.N("design:paramtypes",[])],SC.prototype,"pickerModeStyle",null);SC=_.q([_.d({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],SC);
_.w(SC,"ytd-backstage-image-preview-renderer",function(){if(wIo!==void 0)return wIo;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return wIo=x},{mode:1});var qZu;var N3s={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 vvk;var J8J;var nN=function(){var x=_.n.apply(this,arguments)||this;x.a11yConfig=N3s;x.imageDisplayOffsetTop=0;x.imageDisplayOffsetLeft=0;x.pickerDisplayOffsetTop=0;x.pickerDisplayOffsetLeft=0;x.cropCoordinatesSaved=!1;x.previewSize=0;x.startPicker=!1;x.repositionOptional=!1;return x};
_.m(nN,_.n);_.a=nN.prototype;_.a.created=function(){_.I8.requestAvailability()};
_.a.ready=function(){};
_.a.onArrowKeysDown=function(x){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){x.detail.keyboardEvent.preventDefault();var G=0,D=0,K="";switch(x.detail.keyboardEvent.key){case "ArrowUp":B3O(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?K=this.a11yConfig.reachBottomOfImage:G=this.imageHeight*.05*-1;break;case "ArrowDown":B3O(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?K=this.a11yConfig.reachTopOfImage:
G=this.imageHeight*.05;break;case "ArrowLeft":B3O(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?K=this.a11yConfig.reachRightOfImage:D=this.imageWidth*.05*-1;break;case "ArrowRight":B3O(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?K=this.a11yConfig.reachLeftOfImage:D=this.imageWidth*.05}K&&_.Wg(K)&&_.h$(this.hostElement,"iron-announce",{text:_.Wg(K)});if(D||G)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+G)),x=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),x=_.Wg(this.a11yConfig.imageVerticalPosition,{x_percent:""+x,y_percent:""+(100-x)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+D)),x=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),x=_.Wg(this.a11yConfig.imageHorizontalPosition,{x_percent:""+x,y_percent:""+(100-x)})),x&&_.h$(this.hostElement,"iron-announce",{text:x})}};
_.a.getPreviewPosition=function(x,G,D,K){return Math.round(100*(x+G*.5-D)/K)};
_.a.displayImage=function(){var x=this.JSC$13540_pickerContainer.getBoundingClientRect().width,G=this.JSC$13540_pickerContainer.getBoundingClientRect().height,D=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),K=this.JSC$13540_imageInBackground.naturalWidth,z=this.JSC$13540_imageInBackground.naturalHeight;this.displayScale=Math.max(D/K,D/z);this.imageWidth=K*this.displayScale;this.imageHeight=z*this.displayScale;this.pickerDisplayOffsetLeft=(x-D)/2;this.pickerDisplayOffsetTop=
(G-D)/2;this.imageDisplayOffsetLeft=z>K?this.pickerDisplayOffsetLeft:(x-this.imageWidth)/2;this.imageDisplayOffsetTop=K>z?this.pickerDisplayOffsetTop:(G-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.a.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$13540_imageInBackground.src=this.imageData.toString(),this.JSC$13540_imageInPicker.src=this.imageData.toString(),this.JSC$13540_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.a.getSignedPosition=function(x,G,D){return G==="X"&&_.Am("HTML_DIR")==="rtl"?D==="-"?x+"px":x*-1+"px":D==="-"?x*-1+"px":x+"px"};
_.a.pickerMove=function(x){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var G=this.pickerOffsetX-x.clientX,D=this.pickerOffsetY-x.clientY;this.pickerOffsetX=x.clientX;this.pickerOffsetY=x.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
D)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-G))}};
_.a.pickerMoveStart=function(x){this.startPicker=!0;this.pickerOffsetX=x.clientX;this.pickerOffsetY=x.clientY};
_.a.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.a.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.h$(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.a.getPreviewOffset=function(x,G,D,K){return G&&x&&D?(K==="X"&&_.Am("HTML_DIR")==="rtl"?D/G*x:D/G*x*-1)+"px":"0px"};
_.a.getSimpleText=function(x){return x?_.u7(x):""};
_.a.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var x=this.cropOffsetTop/this.imageHeight,G=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,D=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,K=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.kA(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.h$(this.hostElement,"yt-img-crop-coordinates-update",{top:x,right:G,bottom:D,left:K})}};
_.Nq.Object.defineProperties(nN.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var x=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Wg(this.a11yConfig.imageVerticalPosition,{x_percent:""+x,y_percent:""+(100-x)})+"\n"+_.Wg(this.a11yConfig.verticalRepositionInstruction)}x=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Wg(this.a11yConfig.imageHorizontalPosition,{x_percent:""+x,y_percent:""+(100-x)})+"\n"+_.Wg(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 x,G=(x=this.learnMore.runs[0])==null?void 0:x.navigationEndpoint,D;return((D=_.Y(G,_.iV))==null?void 0:D.url)||void 0}}}});
nN.prototype.onImageDataChange=nN.prototype.onImageDataChange;_.q([_.R(),_.N("design:type",Object)],nN.prototype,"imageData",void 0);_.q([_.R(),_.N("design:type",Object)],nN.prototype,"instruction",void 0);_.q([_.R(),_.N("design:type",Object)],nN.prototype,"a11yConfig",void 0);_.q([_.R(),_.N("design:type",Number)],nN.prototype,"imageWidth",void 0);_.q([_.R(),_.N("design:type",Number)],nN.prototype,"imageHeight",void 0);_.q([_.R(),_.N("design:type",Number)],nN.prototype,"displayScale",void 0);
_.q([_.R(),_.N("design:type",Object)],nN.prototype,"imageDisplayOffsetTop",void 0);_.q([_.R(),_.N("design:type",Object)],nN.prototype,"imageDisplayOffsetLeft",void 0);_.q([_.R(),_.N("design:type",Object)],nN.prototype,"pickerDisplayOffsetTop",void 0);_.q([_.R(),_.N("design:type",Object)],nN.prototype,"pickerDisplayOffsetLeft",void 0);_.q([_.R(),_.N("design:type",Object)],nN.prototype,"cropCoordinatesSaved",void 0);_.q([_.R(),_.N("design:type",Object)],nN.prototype,"previewSize",void 0);
_.q([_.R(),_.N("design:type",Object)],nN.prototype,"startPicker",void 0);_.q([_.R(),_.N("design:type",Number)],nN.prototype,"pickerOffsetX",void 0);_.q([_.R(),_.N("design:type",Number)],nN.prototype,"pickerOffsetY",void 0);_.q([_.R(),_.N("design:type",Object)],nN.prototype,"repositionOptional",void 0);_.q([_.cD("#picker-container"),_.N("design:type",HTMLElement)],nN.prototype,"JSC$13540_pickerContainer",void 0);_.q([_.cD("#picker"),_.N("design:type",HTMLElement)],nN.prototype,"picker",void 0);
_.q([_.cD("#image-in-picker-background"),_.N("design:type",HTMLImageElement)],nN.prototype,"JSC$13540_imageInBackground",void 0);_.q([_.cD("#image-in-picker"),_.N("design:type",HTMLImageElement)],nN.prototype,"JSC$13540_imageInPicker",void 0);_.q([_.cD("#image-in-preview-clipper"),_.N("design:type",HTMLImageElement)],nN.prototype,"JSC$13540_imageInPreviewClipper",void 0);_.q([_.cD("#full-image-as-preview"),_.N("design:type",HTMLImageElement)],nN.prototype,"imageAsPreview",void 0);
_.q([_.U("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],nN.prototype,"altLabelForImage",null);_.q([_.U("imageHeight","imageWidth"),_.N("design:type",Number),_.N("design:paramtypes",[])],nN.prototype,"pickerSize",null);_.q([_.U("imageHeight","imageWidth"),_.N("design:type",Object),_.N("design:paramtypes",[])],nN.prototype,"imageOrientationStyle",null);
_.q([_.U("instruction.previewInstruction.editButtonLabel"),_.N("design:type",Object),_.N("design:paramtypes",[])],nN.prototype,"editButton",null);_.q([_.U("instruction.editInstruction.saveButtonLabel"),_.N("design:type",Object),_.N("design:paramtypes",[])],nN.prototype,"saveButton",null);_.q([_.U("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.N("design:type",Number),_.N("design:paramtypes",[])],nN.prototype,"cropOffsetTop",null);
_.q([_.U("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.N("design:type",Number),_.N("design:paramtypes",[])],nN.prototype,"cropOffsetLeft",null);_.q([_.U("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],nN.prototype,"pickerBackgroundStyle",null);_.q([_.U("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],nN.prototype,"pickerDisplayStyle",null);
_.q([_.U("cropOffsetLeft","cropOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],nN.prototype,"imageInPickerStyle",null);_.q([_.U("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.N("design:type",String),_.N("design:paramtypes",[])],nN.prototype,"previewClipperStyle",null);_.q([_.yf("imageData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nN.prototype,"onImageDataChange",null);
_.q([_.U("cropCoordinatesSaved"),_.N("design:type",String),_.N("design:paramtypes",[])],nN.prototype,"pickerModeStyle",null);_.q([_.U("instruction.editInstruction.learnMore"),_.N("design:type",Object),_.N("design:paramtypes",[])],nN.prototype,"learnMore",null);_.q([_.U("learnMore"),_.N("design:type",Object),_.N("design:paramtypes",[])],nN.prototype,"learnMoreUrl",null);nN=_.q([_.HD({is:"yt-img-crop-picker",disableElementRegistration:!0})],nN);
_.w(nN,"yt-img-crop-picker",function(){if(J8J===void 0){var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;vvk===void 0&&(vvk=document.createElement("template"));var K=vvk;D.call(G,K.content.cloneNode(!0),x.content.firstChild);J8J=x}x=J8J;return x},{mode:2});var iy=function(){var x=_.n.apply(this,arguments)||this;x.errorMessage="";x.hasPreview=!1;x.isBackstagePost=!1;x.dismissButtonOverrides={size:"XS"};return x};
_.m(iy,_.n);_.a=iy.prototype;_.a.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"}}}};
_.a.detached=function(){this.removeOverlay()};
_.a.setPreview=function(x){_.kA(this.hostElement).querySelector("#preview-picker").imageData=x;this.hasPreview=!0;_.h$(this.hostElement,"yt-backstage-image-select-preview")};
_.a.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var x=_.kA(this.hostElement).querySelector("#dropzone");x.classList.remove("dragover");x.classList.remove("error");_.h$(this.hostElement,"yt-backstage-image-select-cancel")};
_.a.setupOverlay=function(){var x=this.imageUploadEndpoint;this.removeOverlay();if(x&&x.imageValidationInfo){var G=_.kA(this.hostElement).querySelector("#dropzone"),D=_.kA(this.hostElement).querySelector("#select");this.overlay=new iz(x.uploadUrl,x.channelId,x.imageValidationInfo.maxFileSizeMb,x.imageValidationInfo.allowedMaxAspectRatio,G,D,!0);_.Lz(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.Lz(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.Lz(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.Lz(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.Lz(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.a.removeOverlay=function(){this.overlay&&(_.cA(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.cA(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.cA(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.cA(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.cA(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.a.onDragOver=function(x){var G=_.kA(this.hostElement).querySelector("#dropzone");_.E4(G,"dragover",x.value)};
_.a.onPreview=function(x){this.setPreview(x.value)};
_.a.onImageError=function(x){if(x.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var G;x=(G=this.data)==null?void 0:G.fileSizeError}else if(x.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var D;x=(D=this.data)==null?void 0:D.invalidError}else if(x.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var K;x=(K=this.data)==null?void 0:K.invalidAspectRatioError}else return;this.errorMessage=_.u7(x);_.kA(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.a.onImageAlert=function(x){this.onImageError(x)};
_.a.uploadPromise=function(){var x=this,G=this.overlay&&this.overlay.uploadPromise();if(G)return G.catch(function(){throw Error(x.data?_.u7(x.data.uploadFailureError):"");})};
_.Nq.Object.defineProperties(iy.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var x,G;if((x=this.data)==null?0:(G=x.icon)==null?0:G.iconType)return _.aP(this.data.icon.iconType)}}});
iy.prototype.setupOverlay=iy.prototype.setupOverlay;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],iy.prototype,"rendererStamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],iy.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],iy.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],iy.prototype,"imageUploadEndpoint",void 0);_.q([_.R(),_.N("design:type",Object)],iy.prototype,"errorMessage",void 0);
_.q([_.R(),_.N("design:type",iz)],iy.prototype,"overlay",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],iy.prototype,"hasPreview",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],iy.prototype,"isBackstagePost",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],iy.prototype,"selectionCancel",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],iy.prototype,"previewCancel",null);
_.q([_.U("data.icon.iconType"),_.N("design:type",Object),_.N("design:paramtypes",[])],iy.prototype,"icon",null);_.q([_.R(),_.N("design:type",Object)],iy.prototype,"dismissButtonOverrides",void 0);_.q([_.yf("imageUploadEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],iy.prototype,"setupOverlay",null);iy=_.q([_.d({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],iy);
_.w(iy,"ytd-backstage-image-select-renderer",function(){if(qZu!==void 0)return qZu;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return qZu=x},{mode:1});var fGh;var t4Z;var gy=function(){var x=_.n.apply(this,arguments)||this;x.selected=!1;return x};
_.m(gy,_.n);_.a=gy.prototype;_.a.computeSelected=function(x){return x==null?void 0:x.selected};
_.a.computeTransform=function(x,G,D){var K,z,y=(z=(K=this.imageContainer)==null?void 0:K.getBoundingClientRect())!=null?z:{width:0,height:0};K=Math.max(y.width/G,y.height/D);D=D*K*x.top;return"translateX("+this.getSignedPosition(G*K*x.left,"X","-")+") translateY("+this.getSignedPosition(D,"Y","-")+")"};
_.a.getSignedPosition=function(x,G,D){return G==="X"&&_.Am("HTML_DIR")==="rtl"?D==="-"?x+"px":x*-1+"px":D==="-"?x*-1+"px":x+"px"};
_.a.onClick=function(){var x;_.h$(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(x=this.data)==null?void 0:x.image)};
_.a.onKeyPress=function(x){if(x.keyCode===13)this.onClick()};
_.Nq.Object.defineProperties(gy.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var x,G;return((x=this.data)==null?void 0:(G=x.image)==null?void 0:G.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.data)!=null&&x.image){var G;x=(G=this.data)==null?void 0:G.image;return x.previewCoordinates.top!==0||x.previewCoordinates.left!==0?(G=this.computeTransform(x.previewCoordinates,x.naturalWidth,x.naturalHeight),x.naturalHeight>=x.naturalWidth?"width:inherit;transform:"+G+";":"height:inherit;transform:"+G+";"):x.naturalHeight>=x.naturalWidth?"width:inherit;":"height:inherit;"}}}});
gy.prototype.onKeyPress=gy.prototype.onKeyPress;_.q([_.cD(".image-container"),_.N("design:type",HTMLElement)],gy.prototype,"imageContainer",void 0);_.q([_.R(),_.N("design:type",Object)],gy.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.N("design:type",Object)],gy.prototype,"selected",void 0);_.q([_.U("data.image"),_.N("design:type",Object),_.N("design:paramtypes",[])],gy.prototype,"thumbnailUrl",null);
_.q([_.U("data.image","data.image.previewCoordinates"),_.N("design:type",Object),_.N("design:paramtypes",[])],gy.prototype,"thumbnailStyle",null);_.q([_.oe("keypress"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],gy.prototype,"onKeyPress",null);gy=_.q([_.d({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],gy);
_.w(gy,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(t4Z!==void 0)return t4Z;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return t4Z=x},{mode:2});var uy=function(x,G,D){D=D===void 0?!1:D;_.T2.call(this);var K=this;this.dropZoneOverlay=new Di(x);this.selectOverlay=D?new KB(G,"multiple_file",["image/*"]):new KB(G,"single_file",["image/*"]);this.handler=new _.Ev(this);_.WZ(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(G,"click",function(){K.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.m(uy,_.T2);uy.prototype.onChange=function(x){var G;(G=x.files)!=null&&G.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:x.files}))};var dy=function(){var x=_.n.apply(this,arguments)||this;x.addImageErrorMessage="";x.errorMessage="";x.images=[];x.selectedImageIndex=0;x.modern=_.B("web_modern_buttons");x.maxNumImagesPerPost=_.Gz("max_num_images_per_post_web_ui");x.JSC$13555_imageId=0;return x};
_.m(dy,_.n);_.a=dy.prototype;_.a.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.h$(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.a.observeDragToReorder=function(){var x=this;if(this.showImagesPreview){var G,D=bM9(_.qZ.getInstance(),(G=this.data)==null?void 0:G.dragToReorderTooltip);_.Fj.addLowPriorityJob(function(){_.zl(x.hostElement,D,x.thumbnailDragDropArea)})}};
_.a.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}}};
_.a.computeThumbnail=function(x){return(x==null?void 0:x.localImageSrc)||void 0};
_.a.onRendererstamperFinished=function(){_.E3u(this.ytReorderableBehavior,_.kA(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.kA(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.a.handleDrop=function(x){var G=x.currDragItem;if(G!=null&&G.data){x=this.images[this.selectedImageIndex];var D=G.data.image,K=this.images.indexOf(D)||0;G=_.uO(G.parentNode.children,G);this.images.splice(K,1);this.images.splice(G,0,D);this.images=[].concat(_.B5(this.images));this.selectedImageIndex=this.images.indexOf(x)}};
_.a.setUpImagePicker=function(){var x=this.imageUploadEndpoint;x&&x.imageValidationInfo&&(this.uploadManager=new Iq(x.uploadUrl,x.channelId),this.initialPicker||(this.initialPicker=new uy(this.dropzone,this.selectLink,!0),_.Lz(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new uy(this.addImageButtonContainer,this.addImageSelectButton),_.Lz(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.Lz(this.JSC$13555_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.Lz(this.JSC$13555_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.Lz(_.kA(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.a.detached=function(){this.initialPicker&&(_.cA(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.cA(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.a.onInitialSelectImages=function(x){var G=this;return _.T(function(D){return _.Z(D,G.onSelectImages(x,!1),0)})};
_.a.onAddImage=function(x){var G=this;return _.T(function(D){return _.Z(D,G.onSelectImages(x,!0),0)})};
_.a.onSelectImages=function(x,G){var D=this,K,z,y,c,W,e,Q,p,V,L,r,H,O,A,g,u,f,v,P,k;return _.T(function(cL){switch(cL.nextAddress){case 1:G?D.addImageErrorMessage="":(D.images=[],D.errorMessage="");K=x.detail;z=D.validateImages([].concat(_.B5(K)));if(z!=="")return G?D.addImageErrorMessage=z:D.errorMessage=z,cL.return();y=[].concat(_.B5(K)).map(function(bO){return(new S1(D.maxAspectRatio,!1,!0)).transform(bO)});
return _.Z(cL,Promise.allSettled(y),2);case 2:c=cL.yieldResult,W=_.l(c.entries()),e=W.next();case 3:if(e.done){cL.jumpTo(5);break}Q=e.value;p=_.l(Q);V=p.next().value;L=p.next().value;r=V;H=L;if(H.status!=="fulfilled"){g=A=O=void 0;G?D.addImageErrorMessage=_.u7((O=D.data)==null?void 0:O.invalidError):D.errorMessage=D.errorMessage===""?_.u7((A=D.data)==null?void 0:A.invalidError):_.u7((g=D.data)==null?void 0:g.multiFileError);cL.jumpTo(4);break}u=H.value;u.cropped&&_.h$(D.hostElement,"yt-backstage-multi-image-cropped");
if(u.invalidAspectRatio){P=v=f=void 0;G?D.addImageErrorMessage=_.u7((f=D.data)==null?void 0:f.invalidAspectRatioError):D.errorMessage=D.errorMessage===""?_.u7((v=D.data)==null?void 0:v.invalidAspectRatioError):_.u7((P=D.data)==null?void 0:P.multiFileError);cL.jumpTo(4);break}return _.Z(cL,baE(D.JSC$13555_imageId,x.detail[r],u.transformedData),8);case 8:k=cL.yieldResult,D.images.push(k),D.JSC$13555_imageId++;case 4:e=W.next();cL.jumpTo(3);break;case 5:if(D.errorMessage!==""||D.addImageErrorMessage!==
"")return cL.return();G?RYE(D.uploadManager,[D.images[D.images.length-1]]):RYE(D.uploadManager,D.images);D.images=[].concat(_.B5(D.images));D.selectedImageIndex=G?Math.max(D.images.length-1,0):0;_.h$(D.hostElement,"yt-backstage-multi-image-select");_.c5(cL)}})};
_.a.onThumbnailClick=function(x){if(x=x.event_.detail)this.selectedImageIndex=this.images.indexOf(x)};
_.a.validateImages=function(x){if(x.length>this.maxNumImagesPerPost){var G;return _.u7((G=this.data)==null?void 0:G.multiImageExceedMaxImageCountError)}var D=1048576*this.maxFileSizeMb;x=x.filter(function(y){return y.size>D}).length;
if(x===0)return"";var K,z;x=x>1?(K=this.data)==null?void 0:K.multiFileError:(z=this.data)==null?void 0:z.fileSizeError;return _.u7(x)};
_.a.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.B5(this.images));this.selectedImageIndex=0};
_.a.repositionImage=function(x){this.images[this.selectedImageIndex].previewCoordinates=x.event_.detail;this.images=[].concat(_.B5(this.images))};
_.a.getAllUploadStatuses=function(){var x=this,G,D,K,z;return _.T(function(y){if(y.nextAddress==1)return _.Z(y,x.uploadManager.getAllUploadStatuses(),2);G=y.yieldResult;D=_.l(G);for(K=D.next();!K.done;K=D.next())if(z=K.value,z.encryptedBlobId===void 0)return y.return(SZE(x.uploadManager));return y.return(G)})};
_.a.hasImages=function(){return this.images.length>0};
_.a.cancel=function(){for(var x=this.uploadManager,G=_.l(x.imagesUploadData),D=G.next();!D.done;D=G.next())x.cancel(D.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.h$(this.hostElement,"yt-backstage-multi-image-cancel")};
_.Nq.Object.defineProperties(dy.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var x,G;return((x=this.imageUploadEndpoint)==null?void 0:(G=x.imageValidationInfo)==null?void 0:G.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var x,G;return((x=this.imageUploadEndpoint)==null?void 0:(G=x.imageValidationInfo)==null?void 0:G.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var x,G;if((x=this.data)==null?0:(G=x.icon)==null?0:G.iconType)return _.aP(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.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 x=this;return(this.images||[]).map(function(G,D){return{renderer:{image:G,selected:D===x.selectedImageIndex}}})}}});
dy.prototype.setUpImagePicker=dy.prototype.setUpImagePicker;dy.prototype.onRendererstamperFinished=dy.prototype.onRendererstamperFinished;dy.prototype.observeDragToReorder=dy.prototype.observeDragToReorder;dy.prototype.observeAddImageError=dy.prototype.observeAddImageError;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],dy.prototype,"rendererStamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],dy.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.hW7),_.N("design:type",Object)],dy.prototype,"ytReorderableBehavior",void 0);_.q([_.cD("#dropzone"),_.N("design:type",HTMLElement)],dy.prototype,"dropzone",void 0);_.q([_.cD("#select-link"),_.N("design:type",HTMLElement)],dy.prototype,"selectLink",void 0);_.q([_.cD("#thumbnail-drag-drop-area"),_.N("design:type",HTMLElement)],dy.prototype,"thumbnailDragDropArea",void 0);_.q([_.cD("#add-image-button-container"),_.N("design:type",HTMLElement)],dy.prototype,"addImageButtonContainer",void 0);
_.q([_.cD("#add-image-button"),_.N("design:type",HTMLElement)],dy.prototype,"addImageSelectButton",void 0);_.q([_.cD("#image-preview-container"),_.N("design:type",Object)],dy.prototype,"JSC$13555_imagePreviewContainer",void 0);_.q([_.R(),_.N("design:type",Object)],dy.prototype,"addImageErrorMessage",void 0);_.q([_.R(),_.N("design:type",Object)],dy.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],dy.prototype,"errorMessage",void 0);
_.q([_.R(),_.N("design:type",Object)],dy.prototype,"imageUploadEndpoint",void 0);_.q([_.R(),_.N("design:type",Array)],dy.prototype,"images",void 0);_.q([_.R(),_.N("design:type",uy)],dy.prototype,"initialPicker",void 0);_.q([_.R(),_.N("design:type",uy)],dy.prototype,"addImagePicker",void 0);_.q([_.R(),_.N("design:type",Iq)],dy.prototype,"uploadManager",void 0);_.q([_.R(),_.N("design:type",Object)],dy.prototype,"selectedImageIndex",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],dy.prototype,"modern",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],dy.prototype,"maxNumImagesPerPost",void 0);_.q([_.U("imageUploadEndpoint"),_.N("design:type",Number),_.N("design:paramtypes",[])],dy.prototype,"maxAspectRatio",null);_.q([_.U("imageUploadEndpoint"),_.N("design:type",Number),_.N("design:paramtypes",[])],dy.prototype,"maxFileSizeMb",null);
_.q([_.U("data.icon.iconType"),_.N("design:type",Object),_.N("design:paramtypes",[])],dy.prototype,"dropIcon",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],dy.prototype,"selectionCancel",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],dy.prototype,"previewCancel",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],dy.prototype,"dataForAddImageButton",null);
_.q([_.U("errorMessage"),_.N("design:type",String),_.N("design:paramtypes",[])],dy.prototype,"dropzoneClass",null);_.q([_.U("images"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],dy.prototype,"showImagesPreview",null);_.q([_.U("images"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],dy.prototype,"containMaxImages",null);_.q([_.yf("addImageErrorMessage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dy.prototype,"observeAddImageError",null);
_.q([_.yf("showImagesPreview"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dy.prototype,"observeDragToReorder",null);_.q([_.U("images","selectedImageIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],dy.prototype,"selectedImageData",null);_.q([_.U("images","selectedImageIndex"),_.N("design:type",Array),_.N("design:paramtypes",[])],dy.prototype,"thumbnailRenderers",null);
_.q([_.oe("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dy.prototype,"onRendererstamperFinished",null);_.q([_.yf("imageUploadEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dy.prototype,"setUpImagePicker",null);dy=_.q([_.d({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],dy);
_.w(dy,"ytd-backstage-multi-image-select-renderer",function(){if(fGh!==void 0)return fGh;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return fGh=x},{mode:1});var kNJ;var PR7;var Evs;var wy=function(){var x=_.n.apply(this,arguments)||this;x.boundCaptureFocus=function(G){x.onCaptureFocus(G)};
return x};
_.m(wy,_.n);_.a=wy.prototype;_.a.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.a.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.a.onCaptureFocus=function(x){_.gA(x).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.a.getIconType=function(x){return x?"yt-icons:"+x.toLowerCase():null};
_.a.onSelect=function(){var x;if((x=this.data)==null?0:x.onSelectCommand)if(_.B("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var G;((G=_.Y(this.data.onSelectCommand.commandMetadata,_.fC))==null?0:G.url)?_.h$(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.Eo().resolve(_.hm).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.Nq.Object.defineProperties(wy.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.u7(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}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],wy.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],wy.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],wy.prototype,"data",void 0);_.q([_.cD("#item"),_.N("design:type",HTMLElement)],wy.prototype,"item",void 0);_.q([_.U("data.label"),_.N("design:type",String),_.N("design:paramtypes",[])],wy.prototype,"label",null);
_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],wy.prototype,"value",null);wy=_.q([_.d({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],wy);
_.w(wy,"ytd-privacy-dropdown-item-renderer",function(){if(Evs!==void 0)return Evs;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Evs=x},{mode:1});var qS=function(){var x=_.n.apply(this,arguments)||this;x.value="";x.label="";x.disabled=!1;return x};
_.m(qS,_.n);_.a=qS.prototype;_.a.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"}}}};
_.a.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.a.dataChanged=function(){this.reset()};
_.a.valueChanged=function(){var x;if(this.value&&(x=this.data)!=null&&x.entries){x=_.l(this.data.entries);for(var G=x.next();!G.done;G=x.next())if((G=this.getRendererForEntry(G.value))&&this.getItemRendererValue(G)===this.value){this.label=this.ytComponentBehavior.getSimpleString(G.label);break}}};
_.a.setInitialLabel=function(){if(this.data&&this.data.entries)for(var x=_.l(this.data.entries),G=x.next();!G.done;G=x.next())if(G=this.getRendererForEntry(G.value)){if(G.isSelected){this.label=this.ytComponentBehavior.getSimpleString(G.label);break}this.data.label&&(this.label=this.data.label)}};
_.a.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var x=_.l(this.data.entries),G=x.next();!G.done;G=x.next()){G=this.getRendererForEntry(G.value);var D=void 0;if((D=G)==null?0:D.isSelected)return this.getItemRendererValue(G)||-1}return-1};
_.a.getItemRendererValue=function(x){return"stringValue"in x||"int32Value"in x?x.stringValue||x.int32Value||null:null};
_.a.getRendererForEntry=function(x){return x.dropdownItemRenderer||x.privacyDropdownItemRenderer||x.navigationDropdownItemRenderer||null};
_.a.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Xt("value-changed",this.value))};
_.a.updateValueFromBinding=function(x){this.value=x.detail.value};
qS.prototype.valueChangedForBinding=qS.prototype.valueChangedForBinding;qS.prototype.valueChanged=qS.prototype.valueChanged;qS.prototype.dataChanged=qS.prototype.dataChanged;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],qS.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],qS.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],qS.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],qS.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],qS.prototype,"value",void 0);_.q([_.R(),_.N("design:type",Object)],qS.prototype,"label",void 0);_.q([_.cD("#entries"),_.N("design:type",Object)],qS.prototype,"entries",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],qS.prototype,"disabled",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qS.prototype,"dataChanged",null);
_.q([_.Z6("value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qS.prototype,"valueChanged",null);_.q([_.yf("value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qS.prototype,"valueChangedForBinding",null);qS=_.q([_.d({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],qS);
_.w(qS,"ytd-flat-dropdown-renderer",function(){if(PR7!==void 0)return PR7;var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return PR7=x},{mode:1});var hYs;var NS=function(){var x=_.n.apply(this,arguments)||this;x.quizOptions=[];x.explanationPlaceholderText="";x.optionPlaceholderText="";x.correctAnswerIndex=-1;x.isMarkAnswerTooltipShown=!1;x.timer=0;return x};
_.m(NS,_.n);_.a=NS.prototype;_.a.dataChanged=function(){this.optionPlaceholderText=_.u7(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.u7(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.a.onMarkCorrectAnswer=function(x){var G,D=((G=this.quizOptions[this.correctAnswerIndex])==null?void 0:G.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[x.model.index]=Object.assign({},this.quizOptions[x.model.index],{explanationText:D,isCorrect:!0});this.correctAnswerIndex=x.model.index;this.quizOptions=[].concat(_.B5(this.quizOptions))};
_.a.updatePlaceholderTexts=function(){for(var x=!1,G=[],D=0;D<this.quizOptions.length;D++){var K=this.optionPlaceholderText+" "+(D+1),z=void 0;((z=this.quizOptions[D])==null?void 0:z.placeholderText)!==K?(x=!0,G.push(Object.assign({},this.quizOptions[D],{placeholderText:K}))):G.push(this.quizOptions[D])}x&&(this.quizOptions=G);this.isValid()?_.h$(this.hostElement,"yt-commentbox-post-enable"):_.h$(this.hostElement,"yt-commentbox-post-disable")};
_.a.getSimpleString=function(x){return _.u7(x)};
_.a.createQuizOptions=function(x){var G=[],D;x=(D=x==null?void 0:x.minQuizOptions)!=null?D:0;for(D=0;D<x;D++)G.push(this.createQuizOption());return G};
_.a.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.B5(this.quizOptions),[this.createQuizOption()]))};
_.a.onInput=function(){this.quizOptions=[].concat(_.B5(this.quizOptions))};
_.a.onExplanationInput=function(){_.h$(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.a.onRemoveQuizOption=function(x){this.quizOptions.splice(x.model.index,1);x.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:x.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.B5(this.quizOptions));this.quizOptions.length===0&&_.h$(this.hostElement,"yt-quiz-attachment-dismiss")};
_.a.updateHintRenderer=function(){var x=this;clearTimeout(this.timer);this.timer=setTimeout(function(){x.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.a.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var x=0,G=0,D=_.l(this.quizOptions),K=D.next();!K.done;K=D.next()){K=K.value;var z=void 0;if(((z=K.optionText)==null?void 0:z.trim())!==""||K.isCorrect){K.isCorrect&&G++;z=void 0;if(this.hasCustomOptionText&&((z=K.optionText)==null?void 0:z.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;x++}}return x>=
Number(this.editorInfo.minQuizOptions)&&G===1};
_.a.getPostCreateOptions=function(){for(var x=[],G=_.l(this.quizOptions),D=G.next();!D.done;D=G.next()){D=D.value;var K=void 0;((K=D.optionText)==null?void 0:K.trim())!==""&&x.push({pollOption:{text:D.optionText,explanation:D.explanationText},isCorrect:D.isCorrect})}return x};
_.a.getExplanationText=function(){var x;return((x=this.quizOptions[this.correctAnswerIndex])==null?void 0:x.explanationText)||""};
_.a.maybeDisplayMarkAnswerEduToolTip=function(){var x,G,D,K,z,y,c;this.shouldShowMarkAnswerTooltip()&&((x=this.editorInfo)==null?0:(G=x.markAnswerButton)==null?0:(D=G.buttonRenderer)==null?0:(K=D.hint)==null?0:(z=K.hintRenderer)==null?0:(y=z.content)==null?0:(c=y.bubbleHintRenderer)==null?0:c.text)&&(_.qZ.getInstance(),x=NZ(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,(x==null?void 0:x.length)>0&&this.optionSelectors&&_.lb(x[0],this.optionSelectors[0]))};
_.a.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var x=0,G=_.l(this.quizOptions),D=G.next();!D.done;D=G.next()){D=D.value;var K=void 0;((K=D.optionText)==null?void 0:K.trim())!==""&&x++;if(D.isCorrect)return!1}return x<2?!1:!0};
_.a.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.a.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.a.updateOptionTextFromBinding=function(x){if(x.target){var G=Array.from(_.kA(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(x.target);if(G>=0){var D;this.quizOptions[G].optionText=(D=x.detail.value)!=null?D:""}}};
_.Nq.Object.defineProperties(NS.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var x,G,D=(x=this.editorInfo)==null?void 0:(G=x.addOptionButton)==null?void 0:G.buttonRenderer;D&&(D.style="STYLE_SUGGESTIVE",D.size="SIZE_SMALL",D.isDisabled=!this.isAllowedToAddOption);return(D==null?0:D.text)?D:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var x,G;return this.quizOptions.length<((G=(x=this.editorInfo)==null?void 0:x.maxQuizOptions)!=null?G:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(x){var G;return(G=x.optionText)==null?void 0:G.trim()})}}});
NS.prototype.updatePlaceholderTexts=NS.prototype.updatePlaceholderTexts;NS.prototype.dataChanged=NS.prototype.dataChanged;_.q([_.R(),_.N("design:type",Object)],NS.prototype,"editorInfo",void 0);_.q([_.R(),_.N("design:type",Array)],NS.prototype,"quizOptions",void 0);_.q([_.R(),_.N("design:type",Object)],NS.prototype,"explanationPlaceholderText",void 0);_.q([_.Ta(".option-selector-button"),_.N("design:type",Array)],NS.prototype,"optionSelectors",void 0);
_.q([_.Z6("editorInfo"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NS.prototype,"dataChanged",null);_.q([_.U("editorInfo","isAllowedToAddOption","quizOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],NS.prototype,"addAnswerButton",null);_.q([_.U("editorInfo","quizOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],NS.prototype,"isAllowedToAddOption",null);
_.q([_.Z6("quizOptions"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NS.prototype,"updatePlaceholderTexts",null);_.q([_.U("quizOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],NS.prototype,"hasCustomOptionText",null);NS=_.q([_.d({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],NS);
_.w(NS,"ytd-backstage-quiz-editor-renderer",function(){if(hYs!==void 0)return hYs;var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-checked="[[item.isCorrect]]" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" role="radio" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return hYs=x},{mode:2});var xAk;var G9E=(bQ.FIRSTDAYOFWEEK+1)%7;var DAo;var K09=[],zdZ=0,a1Z=0;zdZ=0;a1Z=24;if(.25*(a1Z-zdZ)<0)DAo=[];else{for(var owJ=zdZ;owJ<a1Z;owJ+=.25)K09.push(owJ);DAo=K09}var yqo=DAo.map(function(x){x=x*60*60;return{secondsSinceMidnight:x,text:(new n3(7)).format(new Date(0,0,0,0,0,x))}});var l18;var vU=function(){var x=_.n.apply(this,arguments)||this;x.skipNextOpenDialog=!1;x.errorMessage="";return x};
_.m(vU,_.n);_.a=vU.prototype;_.a.attached=function(){var x=this,G=new MutationObserver(function(){x.JSC$13598_calendarMain.scrollHeight>0&&(G.disconnect(),x.calendarConfig&&x.calendarConfig.selectedDate&&x.scrollToDate())});
G.observe(this.JSC$13598_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){G.disconnect()},1E3)};
_.a.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.a.onDateTextChange=function(){if(this.calendarConfig){var x=this.validateDateText();x.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(x.details)):this.textbox.setAttribute("invalid","")}};
_.a.handleDayClick=function(x){x.model.day.date&&(this.commitDate(x.model.day.date),this.dialog.close())};
_.a.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var x=IGD(this.calendarConfig.selectedDate,this.renderData);x!==void 0&&this.JSC$13598_calendarMain.scrollToIndex(x)}};
_.a.scrollToNextMonth=function(){this.JSC$13598_calendarMain.scrollToIndex(this.JSC$13598_calendarMain.firstVisibleIndex+1)};
_.a.scrollToPrevMonth=function(){this.JSC$13598_calendarMain.firstVisibleIndex===0&&this.JSC$13598_calendarMain.scrollTo(0,0);this.JSC$13598_calendarMain.scrollToIndex(this.JSC$13598_calendarMain.firstVisibleIndex-1)};
_.a.onFormSubmit=function(x){x.preventDefault();this.calendarConfig&&(x=this.validateDateText(),x.isValid&&(this.commitDate(x.details),this.dialog.close()))};
_.a.onEscOrClickingOutside=function(x){x=x.detail.path&&!!x.detail.path.length&&x.detail.path[0];if(x.classList.contains("ytd-calendar-date-picker")){x===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var G=0;G<this.dropdownButton.children.length;G++)this.dropdownButton.children[G]===x&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}x=this.textbox.value!==this.dateText;G=this.validateDateText();x&&G.isValid&&this.commitDate(G.details);this.dialog.close();this.textbox.value=
this.dateText};
_.a.commitDate=function(x){this.calendarConfig&&(this.set("calendarConfig.selectedDate",x),_.h$(this.hostElement,"ytd-calendar-date-selected",x))};
_.a.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var x=this.textbox.value;var G=new Date;x=(new t4P(2)).parse(x,G,{validate:!0})===x.length?Fth(G):void 0;if(!x)return this.errorMessage=_.Wg("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};G=this.calendarConfig.start;var D=this.calendarConfig.end;if(s1n(x,G))return this.errorMessage=_.Wg("ENTER_DATE_OR_LATER",{allowed_date:$bL(G)}),{isValid:!1,details:void 0};if(s1n(D,x))return this.errorMessage=
_.Wg("ENTER_DATE_OR_EARLIER",{allowed_date:$bL(D)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:x}};
_.Nq.Object.defineProperties(vU.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?$bL(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var x=this.calendarConfig,G=[],D=0;D<7;D++)G.push(bQ.NARROWWEEKDAYS[(D+G9E)%7]);D=[];for(var K=new Date(x.start.year,x.start.month);K.getFullYear()<x.end.year||K.getFullYear()===x.end.year&&K.getMonth()<=x.end.month;){var z=D,y=z.push,c=K.getFullYear(),W=K.getMonth(),e=x,Q=void 0,p=[],V=Object.freeze({extraCssClass:"invisible",debugClass:""}),L=new Date(c,W),r=Fth(L);L=L.getDay();for(var H=Fth(new Date);r.month===
W;){L!==G9E&&Q||(Q=Array.from({length:7}).fill(V),p.push(Q));var O={date:{year:c,month:W,day:r.day},extraCssClass:"",debugClass:""};e.selectedDate&&O.date&&r8$(O.date,e.selectedDate)&&(O.extraCssClass+=" selected");if(s1n(r,e.start)||s1n(e.end,r))O.extraCssClass+=" disabled";r8$(r,H)&&(O.extraCssClass+=" today");O.extraCssClass=O.extraCssClass.trim();Q[(L-G9E+7)%7]=O;r=mbP(r);L=(L+1)%7}y.call(z,{weeks:p,monthLabel:bQ.SHORTMONTHS[W]+" "+c,year:c,month:W,monthLabelExtraCssClass:p[0][2]===V?"shift-down-label":
""});K.setMonth(K.getMonth()+1)}return{months:D,daysOfWeekLabel:G}}}}});
vU.prototype.onEscOrClickingOutside=vU.prototype.onEscOrClickingOutside;vU.prototype.scrollToDate=vU.prototype.scrollToDate;_.q([_.R(),_.N("design:type",Object)],vU.prototype,"calendarConfig",void 0);_.q([_.R(),_.N("design:type",Object)],vU.prototype,"skipNextOpenDialog",void 0);_.q([_.R(),_.N("design:type",Object)],vU.prototype,"errorMessage",void 0);_.q([_.cD("#textbox"),_.N("design:type",HTMLInputElement)],vU.prototype,"textbox",void 0);
_.q([_.cD("#calendar-dialog"),_.N("design:type",Object)],vU.prototype,"dialog",void 0);_.q([_.cD("#calendar-main"),_.N("design:type",Object)],vU.prototype,"JSC$13598_calendarMain",void 0);_.q([_.cD("#date-picker"),_.N("design:type",HTMLElement)],vU.prototype,"dropdownButton",void 0);_.q([_.U("calendarConfig.selectedDate"),_.N("design:type",String),_.N("design:paramtypes",[])],vU.prototype,"dateText",null);
_.q([_.U("calendarConfig","calendarConfig.selectedDate"),_.N("design:type",Object),_.N("design:paramtypes",[])],vU.prototype,"renderData",null);_.q([_.yf("renderData","calendarConfig.selectedDate"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vU.prototype,"scrollToDate",null);_.q([_.oe("iron-overlay-canceled"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],vU.prototype,"onEscOrClickingOutside",null);
vU=_.q([_.HD({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],vU);
_.w(vU,"ytd-calendar-date-picker",function(){if(l18!==void 0)return l18;var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" 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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return l18=x},{mode:2});var cqq=_.Wg("UTC_OFFSET_FORMAT",{utc_offset:(new n3("Z")).format(new Date)}),TF9=(new Date).getTimezoneOffset()*-60,W0o=new Date,edh,Z0E=S5(W0o.getTimezoneOffset());edh=$59(C0q(Z0E,W0o));var M0o=_.Wg("LOCAL_TIME_GMT_LABEL",{gmt_text:edh.replace("+0","+").replace("-0","-").replace(":00","")}),J9=function(){var x=_.n.apply(this,arguments)||this;x.selectedTimeIndex=0;x.selectedTimezoneIndex=0;x.timeOfDayOptions=yqo;return x};
_.m(J9,_.n);_.a=J9.prototype;_.a.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.a.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var x=HaO();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=x,this.selectedTimeIndex=0;else{var G=CRQ(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},x,{selectedDate:G.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(D){return D.secondsSinceMidnight===G.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.a.onDatePicked=function(x){this.selectedDate=x.detail};
_.a.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.h$(this.hostElement,"ytd-date-time-selection-cancelled")};
_.a.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var x=this.selectedDate;x=new Date(x.year,x.month,x.day);_.h$(this.hostElement,"ytd-date-time-selection-update",Math.floor(x.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+x.getTimezoneOffset()*60))}};
_.a.getTimezoneFormat=function(x){return x.localizedDisplayText?x.localizedDisplayText:_.Wg("TIMEZONE_FORMAT",{utc_offset_text:""+x.localizedUtcOffset,city_name:""+x.localizedName})};
_.a.updateSelectedTimeIndexFromBinding=function(x){this.selectedTimeIndex=x.detail.value};
_.a.updateSelectedTimezoneIndexFromBinding=function(x){this.selectedTimezoneIndex=x.detail.value};
_.Nq.Object.defineProperties(J9.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var x=this.data.timezoneOptions;var G={name:"Etc/Unknown",localizedName:_.Wg("LOCAL_TIME_LABEL"),localizedUtcOffset:cqq,utcOffsetSec:""+TF9,localizedDisplayText:M0o};x?x.length&&x[0].name!==G.name&&(x[0].localizedDisplayText||(G.localizedDisplayText=""),x.unshift(G)):x=[G];return x}}},
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]}}});
J9.prototype.onDateTimeTimezoneChange=J9.prototype.onDateTimeTimezoneChange;J9.prototype.onDatePicked=J9.prototype.onDatePicked;J9.prototype.updateDefaultSelectedValue=J9.prototype.updateDefaultSelectedValue;_.q([_.R(),_.N("design:type",Object)],J9.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],J9.prototype,"calendarConfig",void 0);_.q([_.R(),_.N("design:type",Object)],J9.prototype,"selectedDate",void 0);_.q([_.R(),_.N("design:type",Object)],J9.prototype,"selectedTimeIndex",void 0);
_.q([_.R(),_.N("design:type",Object)],J9.prototype,"selectedTimezoneIndex",void 0);_.q([_.cD("#time-listbox"),_.N("design:type",Object)],J9.prototype,"timeListBox",void 0);_.q([_.cD("#timezone-listbox"),_.N("design:type",Object)],J9.prototype,"timezoneListBox",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],J9.prototype,"rendererStamperBehavior",void 0);_.q([_.U("data.timezoneOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],J9.prototype,"timeZones",null);
_.q([_.Z6("data","timeZones"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],J9.prototype,"updateDefaultSelectedValue",null);_.q([_.U("selectedTimezoneIndex","timeZones"),_.N("design:type",Object),_.N("design:paramtypes",[])],J9.prototype,"selectedTimezone",null);_.q([_.U("selectedTimeIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],J9.prototype,"selectedTime",null);
_.q([_.oe("ytd-calendar-date-selected"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],J9.prototype,"onDatePicked",null);_.q([_.yf("selectedTimezone","selectedTime","selectedDate"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],J9.prototype,"onDateTimeTimezoneChange",null);J9=_.q([_.d({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],J9);
_.w(J9,"ytd-date-time-picker-renderer",function(){if(xAk!==void 0)return xAk;var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return xAk=x},{mode:1});var Qvk;var fN=function(){var x=_.n.apply(this,arguments)||this;x.boundOnTapDismissButton=function(){x.dismissTapHandler()};
x.dismissButtonOverrides={size:"XS"};return x};
_.m(fN,_.n);fN.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}}}}}};
fN.prototype.dismissTapHandler=function(){_.h$(this.hostElement,"yt-backstage-attachment-dismissed")};
fN.prototype.computeAttachmentType=function(x){return x?x.backstageImageRenderer?"image":x.videoRenderer?"video":"none":"none"};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],fN.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],fN.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],fN.prototype,"attachmentPreview",void 0);_.q([_.R(),_.N("design:type",Object)],fN.prototype,"dismissButton",void 0);_.q([_.R(),_.N("design:type",Object)],fN.prototype,"boundOnTapDismissButton",void 0);
_.q([_.R(),_.N("design:type",Object)],fN.prototype,"dismissButtonOverrides",void 0);_.q([_.R({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.N("design:type",String)],fN.prototype,"attachmentType",void 0);fN=_.q([_.d({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],fN);
_.w(fN,"ytd-backstage-dismissable-attachment",function(){if(Qvk!==void 0)return Qvk;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Qvk=x},{mode:1});var pNu;var t9=function(){var x=_.n.apply(this,arguments)||this;x.selectedVideoId=void 0;x.picker=void 0;x.dismissButtonOverrides={size:"XS"};x.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return x};
_.m(t9,_.n);_.a=t9.prototype;_.a.onServiceRequestCompleted=function(x){x.stopPropagation()};
_.a.handleAddVideoPreviewAction=function(x){x=this.get("addVideoPreviewAction",x);this.onGetVideoPreviewSuccess(x)};
_.a.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}}}}}};
_.a.onLaunchVideoPicker=function(x){var G=this,D=_.u7(this.get("addVideoLinkAction.title",x)),K=this.get("addVideoLinkAction.onePickHostId",x);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",x);K&&(this.picker||(D=_.H4u(_.Zh$(K).setTitle(D).addView(rEh()).addView(BMs()),function(z){G.onPickVideo(z)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",x)||D.addView("youtube"),this.picker=D.build()),this.picker.setVisible(!0))};
_.a.onPickVideo=function(x){if(x)if(x.action==="cancel")_.h$(this.hostElement,"yt-video-link-button-cancel");else if(x.action==="picked"){x=x.docs;if(!x||x.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(x=(x==null?0:x.length)?x[0]:void 0)?x.id:void 0;this.setVideoPreview()}};
_.a.setVideoPreview=function(){var x=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){x.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.a.onGetVideoPreviewSuccess=function(x){if(x&&x.videoPreview&&x.cancelButton)this.videoPreview=x.videoPreview,this.cancelButton=x.cancelButton,_.h$(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.a.onGetVideoPreviewError=function(){this.cancel()};
_.a.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.h$(this.hostElement,"yt-video-link-cancel")};
_.a.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
t9.prototype.onServiceRequestCompleted=t9.prototype.onServiceRequestCompleted;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],t9.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],t9.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],t9.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],t9.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],t9.prototype,"videoPreview",void 0);_.q([_.R(),_.N("design:type",Object)],t9.prototype,"cancelButton",void 0);_.q([_.R(),_.N("design:type",Object)],t9.prototype,"getVideoPreviewCommand",void 0);_.q([_.R(),_.N("design:type",Object)],t9.prototype,"dismissButtonOverrides",void 0);
_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],t9.prototype,"onServiceRequestCompleted",null);t9=_.q([_.d({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],t9);
_.w(t9,"ytd-backstage-video-link-attachment",function(){if(pNu!==void 0)return pNu;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return pNu=x},{mode:1});var V0Z;var b0q;var L0k;var kM=function(){return _.n.apply(this,arguments)||this};
_.m(kM,_.n);kM.prototype.dataChanged=function(){this.active=!1};
kM.prototype.onTap=function(){_.h$(this.hostElement,"yt-select-emoji-suggestion",this.data)};
kM.prototype.identity=function(x){return x};
_.Nq.Object.defineProperties(kM.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var x,G,D,K;if((x=this.data)==null?0:(G=x.image)==null?0:(D=G.thumbnails)==null?0:(K=D[0])==null?0:K.url)return x=this.data.image.thumbnails[0].url,x.startsWith("data:image/svg+xml")?WC(x):_.V$(x)}}});
kM.prototype.dataChanged=kM.prototype.dataChanged;_.q([_.R(),_.N("design:type",Object)],kM.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],kM.prototype,"active",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kM.prototype,"dataChanged",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],kM.prototype,"imageSrc",null);
kM=_.q([_.d({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],kM);
_.w(kM,"ytd-emoji-suggestion",function(){if(L0k!==void 0)return L0k;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return L0k=x},{mode:1});var BFu=/.*([:@#].*?)$/,PU=function(){var x=_.n.apply(this,arguments)||this;x.suggestions=[];x.suggestionIndex=-1;x.JSC$13626_lastSuggestionRange=null;return x};
_.m(PU,_.n);_.a=PU.prototype;_.a.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.a.getSuggestions=function(x){var G=[],D=zkZ(this.emojiManager,x.substr(0,3));if(D)for(var K in D)if(K.toLocaleLowerCase().indexOf(x)===0){var z=D[K];if(z&&z.emojiId){z=Ft(this.emojiManager,z.emojiId);var y=void 0,c=void 0,W=void 0,e=void 0,Q=((y=z)==null?0:y.isCustomEmoji)?(c=z)==null?void 0:(W=c.shortcuts)==null?void 0:W[0]:(e=z)==null?void 0:e.emojiId;y=void 0;G.push({suggestion:{image:(y=z)==null?void 0:y.image,alt:Q,text:K}});if(G.length>=64)break}}return G?G.sort(function(p,V){return V.suggestion.text<
p.suggestion.text?-1:V.suggestion.text===p.suggestion.text?0:1}):null};
_.a.insertSuggestion=function(x){_.h$(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13626_lastSuggestionRange,text:x.alt});this.dropdown.opened=!1};
_.a.updateSuggestionsAtCaret=function(x){this.updateSuggestions(x,this.retrieveTextBeforeRange(x))};
_.a.offsetStartOfRangeBy=function(x,G){x.startOffset>=G&&x.setStart(x.startContainer,x.startOffset-G)};
_.a.updateSuggestions=function(x,G){var D=this;this.JSC$13626_lastSuggestionRange&&(this.JSC$13626_lastSuggestionRange.detach(),this.JSC$13626_lastSuggestionRange=null);if((G=BFu.exec(G))&&G.length&&(G=G[G.length-1].toLocaleLowerCase(),G.length>2||G===":_")&&(this.offsetStartOfRangeBy(x,G.length),this.JSC$13626_lastSuggestionRange=x,(x=this.getSuggestions(G))&&x.length)){this.suggestions=x;_.w1(this,function(){D.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(x.length-1);return}this.dropdown.opened=!1};
_.a.onKeyDown=function(x){if(this.dropdown.opened)switch(x.key){case "Escape":this.dropdown.opened=!1;x.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);x.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);x.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),x.preventDefault()}};
_.a.onKeyUp=function(x,G){switch(x.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(G);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(G)}};
_.a.onKeyPress=function(x){x.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),x.preventDefault())};
_.a.changeSuggestionIndex=function(x){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(x+this.suggestions.length)%this.suggestions.length,x=this.dropdownContent.children[this.suggestionIndex],x.active=!0,this.dropdownContent.scrollTop=x.offsetTop)};
_.a.retrieveTextBeforeRange=function(x){var G=x.startContainer;return G&&G.nodeType===Node.TEXT_NODE?G.textContent.substr(0,x.startOffset):""};
PU.prototype.onKeyPress=PU.prototype.onKeyPress;PU.prototype.onKeyUp=PU.prototype.onKeyUp;PU.prototype.onKeyDown=PU.prototype.onKeyDown;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],PU.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Array)],PU.prototype,"suggestions",void 0);_.q([_.R(),_.N("design:type",_.Hx)],PU.prototype,"emojiManager",void 0);_.q([_.R(),_.N("design:type",Number)],PU.prototype,"verticalSuggestionsOffset",void 0);
_.q([_.cD("#dropdown"),_.N("design:type",Object)],PU.prototype,"dropdown",void 0);_.q([_.cD("#dropdown-content"),_.N("design:type",HTMLDivElement)],PU.prototype,"dropdownContent",void 0);_.q([_.oe("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],PU.prototype,"onKeyDown",null);_.q([_.oe("keyup"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent,Range]),_.N("design:returntype")],PU.prototype,"onKeyUp",null);
_.q([_.oe("keypress"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],PU.prototype,"onKeyPress",null);PU=_.q([_.d({disableElementRegistration:!0,is:"ytd-emoji-input"})],PU);
_.w(PU,"ytd-emoji-input",function(){if(b0q!==void 0)return b0q;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return b0q=x},{mode:2});var rqs;var EL=function(){var x=_.n.apply(this,arguments)||this;x.hasMaxOptions=!1;return x};
_.m(EL,_.n);_.a=EL.prototype;_.a.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.a.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.a.setPrefilledChoices=function(x){var G=this;this.set("pollOptions",[]);var D;for(D=0;D<Math.min(x.length,this.data.maxPollOptions);D++)this.push("pollOptions",x[D].substring(0,this.data.maxPollOptionChars));for(;D<this.data.minPollOptions;D++)this.push("pollOptions","");this.hasMaxOptions=D>=this.data.maxPollOptions;_.w1(this,function(){for(var K=G.pollOptions,z=_.kA(G.hostElement).querySelectorAll(".poll-option-input"),y=0;y<z.length;y++)z[y].value=K[y]})};
_.a.focusChanged=function(){_.K7(this.hostElement)};
_.a.onInput=function(){var x=this;_.Ao(this,"onInput",function(){x.isValid()?_.h$(x.hostElement,"yt-commentbox-post-enable"):_.h$(x.hostElement,"yt-commentbox-post-disable")},300)};
_.a.setPollOptions=function(){var x=[],G,D=((G=this.data)==null?0:G.minPollOptions)?this.data.minPollOptions:0;for(G=0;G<D;G++)x.push("");return x};
_.a.addPollOption=function(){var x=this;_.h$(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.Fj.addLowPriorityJob(function(){var G;(G=_.kA(x.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||G.focus()})};
_.a.onRemovePollOption=function(x){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.h$(this.hostElement,"yt-poll-attachment-dismiss")):(x=this.repeat.indexForElement(x.target.parentNode),x!==null&&(this.splice("pollOptions",x,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.h$(this.hostElement,"yt-commentbox-post-enable"))))};
_.a.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.a.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var x=0,G=this.pollOptions.length;x<G;x++)if(this.pollOptions[x].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.a.getPollOptions=function(){return this.pollOptions};
_.a.setPollOptionsFromInputs=function(){for(var x=_.kA(this.hostElement).querySelectorAll(".poll-option-input"),G=0;G<x.length;G++)this.pollOptions[G]=x[G].value.trim()};
_.a.clearPollOptions=function(){var x=_.kA(this.hostElement).querySelectorAll(".poll-option-input");x=_.l(x);for(var G=x.next();!G.done;G=x.next())G.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.a.getSimpleString=function(x){return _.u7(x)};
_.a.updateValueFromBinding=function(x){if(x.target&&this.pollOptions){var G=Array.from(_.kA(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(x.target);if(G>=0){var D;this.pollOptions[G]=(D=x.detail.value)!=null?D:"";this.notifyPath("pollOptions."+G)}}};
EL.prototype.dataChanged=EL.prototype.dataChanged;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],EL.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],EL.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Array)],EL.prototype,"pollOptions",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],EL.prototype,"hasMaxOptions",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],EL.prototype,"enableCreationBox",void 0);
_.q([_.cD("#repeat"),_.N("design:type",rc)],EL.prototype,"repeat",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EL.prototype,"dataChanged",null);EL=_.q([_.d({disableElementRegistration:!0,is:"ytd-poll-attachment"})],EL);
_.w(EL,"ytd-poll-attachment",function(){if(rqs!==void 0)return rqs;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return rqs=x},{mode:2});var sv8;var Yy0;var mAh;var H0k;var h9=function(){return _.n.apply(this,arguments)||this};
_.m(h9,_.n);_.Nq.Object.defineProperties(h9.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],h9.prototype,"rendererBehaviors",void 0);_.q([_.R(),_.N("design:type",Object)],h9.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],h9.prototype,"focused",void 0);_.q([_.R({reflectToAttribute:!0}),_.U("focused"),_.N("design:type",Object),_.N("design:paramtypes",[])],h9.prototype,"ariaSelected",null);h9=_.q([_.HD({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],h9);
_.w(h9,"yt-user-mention-suggestion-renderer",function(){if(H0k===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;mAh===void 0&&(mAh=document.createElement("template"));var K=mAh;D.call(G,K.content.cloneNode(!0),x.content.firstChild);H0k=x}x=H0k;return x},{mode:2});var $Au;var F0Z;var xX=function(){var x=_.n.apply(this,arguments)||this;x.focusedSuggestionIndex=-1;return x};
_.m(xX,_.n);_.a=xX.prototype;_.a.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.a.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.a.setFocusedSuggestionIndex=function(x){!this.data||!this.data.suggestions||x<0||x>=this.data.suggestions.length||(this.focusedSuggestionIndex=x,x=this.getSuggestionId(x),this._setFocusedSuggestionId(x))};
_.a.advanceSuggestion=function(x){this.focusedSuggestionIndex===-1||x!==-1&&x!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+x),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.a.ensureSuggestionVisible=function(x){x=this.getSuggestionId(x);x=_.kA(this.hostElement).querySelector("[id="+x+"]");x!=null&&(x.offsetTop<this.hostElement.scrollTop?x.scrollIntoView(!0):x.offsetTop+x.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&x.scrollIntoView(!1))};
_.a.getSuggestionId=function(x){return"user-mention-suggestion-"+x};
_.a.onSuggestionTap=function(x){var G=_.Y(x.model.item,THo);this.ytRendererBehavior.logExplicitClick(G);_.h$(this.hostElement,"yt-user-mention-suggestion-selected",{data:G,index:x.model.index})};
_.a.onSuggestionMouseMove=function(x){x.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(x.model.index)};
_.a.isSuggestionFocused=function(x,G){return x===G};
_.a.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.a.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Xt("focused-suggestion-id-changed",this.focusedSuggestionId))};
xX.prototype.focusedSuggestionIdChangedForBinding=xX.prototype.focusedSuggestionIdChangedForBinding;xX.prototype.onDomChange=xX.prototype.onDomChange;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],xX.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],xX.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],xX.prototype,"focusedSuggestionIndex",void 0);_.q([_.R({readOnly:!0}),_.N("design:type",String)],xX.prototype,"focusedSuggestionId",void 0);
_.q([_.oe("dom-change"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],xX.prototype,"onDomChange",null);_.q([_.yf("focusedSuggestionId"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xX.prototype,"focusedSuggestionIdChangedForBinding",null);xX=_.q([_.HD({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],xX);
_.w(xX,"yt-user-mention-suggestions-dropdown",function(){if(F0Z===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;$Au===void 0&&($Au=document.createElement("template"));var K=$Au;D.call(G,K.content.cloneNode(!0),x.content.firstChild);F0Z=x}x=F0Z;return x},{mode:2});var GD=function(){var x=_.n.apply(this,arguments)||this;x.suggestionsResponse=null;x.activeMention=null;x.selectionChangeListener=x.onSelectionChange.bind(x);x.handlesEnabled=_.B("enable_handles_in_mention_suggest_posts");x.handlesInMentionSuggestionsEnabled=_.B("handles_in_mention_suggest_posts");x.zeroPrefixMentionSuggestionEnabled=_.B("enable_zero_prefix_mention_suggestion_web");x.pendingQuery=null;x.flowNonce=null;return x};
_.m(GD,_.n);_.a=GD.prototype;_.a.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.a.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.a.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.a.hasSuggestions=function(x){return!!(x&&x.suggestions&&x.suggestions.length>0)};
_.a.onInput=function(){var x=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var G=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),D=this.activeMention.JSC$9250_getText().slice(-1)===" ",K=this.activeMention.JSC$9250_getText().slice(-2,-1)===" ",z="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9250_getText().slice(-2,-1))>=
0;z=this.zeroPrefixMentionSuggestionEnabled&&z;if(this.activeMention.isCollapsed()||(G||K||z)&&D)this.cancelActiveMention();else{var y=this.activeMention.JSC$9250_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.Ao(this,"requestSuggestions",function(){x.requestSuggestions(y)},100)}}}};
_.a.onServiceRequestSent=function(x){x.stopPropagation()};
_.a.onServiceRequestCompleted=function(x){x.stopPropagation();x=x.detail.data;x.query&&(!this.pendingQuery||this.pendingQuery!==x.query)||!this.zeroPrefixMentionSuggestionEnabled&&x.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=x,this.hasSuggestions(x)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.a.onServiceRequestError=function(x){x.stopPropagation()};
_.a.onUserMentionSuggestionSelected=function(x){this.selectSuggestion(x.detail.data,x.detail.index)};
_.a.onSelectionChange=function(){if(this.activeMention){var x=_.Zk(),G=this.activeMention.JSC$9250_containsRange(x);x=x&&this.containsHelper(this.dropdown,x.getContainer());G||x||this.cancelActiveMention()}};
_.a.containsHelper=function(x,G){var D;if(((D=window.ShadyDOM)==null?void 0:D.noPatch)===!0)return x.contains(G);for(;G;){if(G===x)return!0;G=G instanceof ShadowRoot?G.host:G.parentNode}return!1};
_.a.maybeStartSuggest=function(){var x=_.Zk();if(x&&x.isCollapsed()){var G=x.JSC$9250_getStartNode(),D=x.JSC$9250_getStartOffset();if(G instanceof Text&&!(D<1)){var K=G.textContent;!(K=K&&K.charAt(D-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(K)<0||(this.activeMention=_.He(G,D-1,x.JSC$9250_getEndNode(),x.JSC$9250_getEndOffset()),this.flowNonce=Hy(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.a.updateActiveMention=function(){if(this.activeMention){var x=_.Zk();x&&x.isCollapsed()&&(this.activeMention=_.He(this.activeMention.JSC$9250_getStartNode(),this.activeMention.JSC$9250_getStartOffset(),x.JSC$9250_getEndNode(),x.JSC$9250_getEndOffset()))}};
_.a.requestSuggestions=function(x){if(this.activeMention){var G={suggestions_query:x};this.pendingQuery=x;_.KW(this.hostElement,[this.suggestionsEndpoint,G])}};
_.a.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()};
_.a.focusPreviousSuggestion=function(x){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),x.preventDefault())};
_.a.focusNextSuggestion=function(x){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),x.preventDefault())};
_.a.selectFocusedSuggestion=function(x){if(this.hasSuggestions(this.suggestionsResponse)){var G=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.Y(G,THo)&&(this.selectSuggestion(_.Y(G,THo),this.dropdown.focusedSuggestionIndex),x.preventDefault())}};
_.a.selectSuggestion=function(x,G){if(x){var D=this.activeMention;if(D){var K=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&x.handle?_.Y2(K,"\u00a0\u2068@"+x.handle+"\u2069\u00a0"):this.handlesEnabled?_.Y2(K,"\u00a0"+x.displayName+"\u00a0"):_.Y2(K,"\u00a0@"+x.displayName+"\u00a0");mu(K,"/channel/"+x.channelId);K.classList.add("yt-formatted-string","yt-simple-endpoint");K.setAttribute("spellcheck","false");D.isCollapsed()||D.JSC$9250_removeContents();D.insertNode(K,!0);x=document.createTextNode(" ");
K.parentNode.insertBefore(x,K.nextSibling);window.getSelection().collapse(x,1);G={suggestionSelected:{suggestionIndex:G}};if(this.zeroPrefixMentionSuggestionEnabled){var z;G.suggestionSelected.isZeroPrefix=((z=this.suggestionsResponse)==null?void 0:z.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",G);this.cancelActiveMention();_.h$(this.hostElement,"yt-mention-inserted")}}};
_.a.getPositionTarget=function(x){return x&&x.getBrowserRangeObject()};
_.a.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.a.onFocusedSuggestionIdChanged=function(x){var G=_.VeD(this.hostElement)[0];G&&(x.detail.value?G.setAttribute("aria-activedescendant",x.detail.value):G.removeAttribute("aria-activedescendant"))};
_.a.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.a.logGELEvent=function(x,G){x={eventType:x,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};G&&(x=Object.assign(x,G));_.Fv("userMentionAutoCompleteBoxEvent",x)};
GD.prototype.onDomChange=GD.prototype.onDomChange;GD.prototype.onUserMentionSuggestionSelected=GD.prototype.onUserMentionSuggestionSelected;GD.prototype.onServiceRequestError=GD.prototype.onServiceRequestError;GD.prototype.onServiceRequestCompleted=GD.prototype.onServiceRequestCompleted;GD.prototype.onServiceRequestSent=GD.prototype.onServiceRequestSent;GD.prototype.onInput=GD.prototype.onInput;_.q([_.I(_.Tb),_.N("design:type",Object)],GD.prototype,"ironA11yKeysBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],GD.prototype,"suggestionsEndpoint",void 0);_.q([_.R(),_.N("design:type",Object)],GD.prototype,"suggestionsResponse",void 0);_.q([_.R(),_.N("design:type",Object)],GD.prototype,"activeMention",void 0);_.q([_.cD("#dropdown"),_.N("design:type",Object)],GD.prototype,"dropdown",void 0);_.q([_.cD("#iron-dropdown"),_.N("design:type",Object)],GD.prototype,"ironDropdown",void 0);
_.q([_.oe("input"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],GD.prototype,"onInput",null);_.q([_.oe("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],GD.prototype,"onServiceRequestSent",null);_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],GD.prototype,"onServiceRequestCompleted",null);
_.q([_.oe("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],GD.prototype,"onServiceRequestError",null);_.q([_.oe("yt-user-mention-suggestion-selected"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],GD.prototype,"onUserMentionSuggestionSelected",null);
_.q([_.oe("dom-change"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],GD.prototype,"onDomChange",null);GD=_.q([_.HD({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],GD);
_.w(GD,"yt-user-mention-autosuggest-input",function(){if(Yy0===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;sv8===void 0&&(sv8=document.createElement("template"));var K=sv8;D.call(G,K.content.cloneNode(!0),x.content.firstChild);Yy0=x}x=Yy0;return x},{mode:2});var DZ=null;
_.BD({is:"ytd-commentbox",_template:function(){if(V0Z!==void 0)return V0Z;var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="EXPAND" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return V0Z=x},
behaviors:[_.teL.YtHostElementBehavior,_.Tb,_.tG.YtActionHandlerBehavior,_.j$.YtComponentBehavior,_.fF.YtRendererstamperBehavior,_.Lcu.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(x,G){return _.zm(x.entities,"aadcGuidelinesStateEntityPayload",G)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(x,G){return _.zm(x.entities,"commentboxStateEntity",G)},
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 _.Ch}},
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:_.B("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.B("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",_.ae(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(x){this.fire(x?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(x){this.set("submitButtonDisabled",void 0);this.clear();x&&this.computeIsEmojiButtonDisplayed_(x)&&(x=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&x.updateEmojiCategories()},
observePrefilledImage_:function(x,G,D){this.isValidPrefilledImage_(x,G,D)&&(this.prefilledAttachment_="image",this.prefilledImageData_=G,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(x,G){this.isValidPrefilledVideo_(x,G)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(x){x&&x.pollData&&x.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(x.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.GI();this.focus()},
detached:function(){document.removeEventListener("tap",_.ae(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(x){x=x.detail;x=x.isCustomEmoji?x.shortcuts[0]:x.emojiId;var G=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(G,x);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var x=_.Zk();if(x){x=x.getBrowserRangeObject();for(var G=x.commonAncestorContainer;G;){if(G===this.getEditableTextArea_())return x;G=G.parentNode}}x=this.getEditableTextArea_();x=_.mK(x,x.childNodes.length);x.select();return x.getBrowserRangeObject()},
insertTextWithEmojis_:function(x,G,D){(G=this.emojiManager.createDocumentFragment(G,!0,!1,D===void 0?!0:D))&&G.childNodes.length!==0&&(x.collapsed||x.deleteContents(),D=G.lastChild,x.insertNode(G),_.fu8(D).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var x=_.Zk();if(x){var G=x.JSC$9250_getStartNode(),D=x.JSC$9250_getEndNode();if(j1Q(G)&&j1Q(D)){var K=x.JSC$9250_getStartOffset(),z;if(_.Dh&&G.nodeType===Node.ELEMENT_NODE&&(z=_.yQo(G)))_.mK(z,0).select();else{z=TF(G)?G:_.Xn(G,TF);var y=TF(D)?D:_.Xn(D,TF);if(z||y)if(x.isCollapsed()){if(G.nodeType===Node.TEXT_NODE){x=!0;K===G.length&&(x=!1);if(DZ==="end"||DZ==="right")x=!1;G=G.parentNode;x=[].concat(_.B5(G.parentNode.childNodes)).indexOf(G)+(x?0:1);_.mK(G.parentNode,x).select()}}else z?
z.previousSibling&&z.previousSibling.length>0?_.He(D,x.JSC$9250_getEndOffset(),z.previousSibling,z.previousSibling.length-1).select():(G=document.createTextNode("\u200b"),z.parentNode.insertBefore(G,z),_.He(D,x.JSC$9250_getEndOffset(),G,0).select()):y&&(y.nextSibling&&y.nextSibling.length>0?_.He(G,x.JSC$9250_getStartOffset(),y.nextSibling,1).select():(D=document.createTextNode("\u200b"),y.parentNode.insertBefore(D,y.nextSibling),_.He(G,x.JSC$9250_getStartOffset(),D,D.length).select()));DZ=null}}else DZ=
null}else DZ=null},
leftKeyPressed_:function(){DZ="left"},
rightKeyPressed_:function(){DZ="right"},
endKeyPressed_:function(){DZ="end"},
maybeDeleteChip_:function(){var x=SZD(!0);if(x){var G=_.Zk(),D=G.JSC$9250_getStartNode();G=G.JSC$9250_getStartOffset();_.LZ(D,G,x,x.childNodes.length).select()}},
maybeBackspaceChip_:function(){var x=SZD(!1);if(x){var G=_.Zk(),D=G.JSC$9250_getStartNode();G=G.JSC$9250_getStartOffset();_.LZ(D,G,x,0).select()}},
maybeBackspaceChipWordMode_:function(x){var G=_.Zk();if(G.isCollapsed()){var D=G.JSC$9250_getStartNode();G=G.JSC$9250_getStartOffset();var K=nvC(D,G,!0);K&&(_.LZ(D,G,K,0).select(),document.execCommand("delete"),x.preventDefault(),x.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(x){var G=_.Zk();if(G.isCollapsed()){var D=G.JSC$9250_getStartNode();G=G.JSC$9250_getStartOffset();var K=nvC(D,G,!1);K&&(_.LZ(D,G,K,K.childNodes.length).select(),document.execCommand("delete"),x.preventDefault(),x.stopImmediatePropagation())}},
onTap_:function(x){if(!x.defaultPrevented&&(x.currentTarget.tagName==="YTD-COMMENTBOX"&&TF(x.target)&&x.preventDefault(),this.isEmojiPickerDisplayed)){var G=this.$$("#emojis"),D=this.$$("#emoji-button"),K=this.getEditableTextArea_();if((x=x.path?x.path:x.composedPath&&x.composedPath())&&!x.includes(G)&&!x.includes(K)&&!x.includes(D))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(x,G,D){return x==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&G!==void 0&&G.encryptedBlobId!==null&&G.sourceExternalVideoId!==null&&D!==void 0&&D.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(x,G){return x==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!G&&!!G.videoRenderer&&!!G.videoRenderer.videoId},
isValidPrefilledAttachment_:function(x,G,D){return this.isValidPrefilledImage_(x,G,D)||this.isValidPrefilledVideo_(x,D)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.B("enable_multi_image_post_creation")){var x=this.$$("ytd-backstage-multi-image-select-renderer");x&&x.hasImages()&&x.cancel()}else(x=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&x.cancel();(x=this.$["poll-attachment"])&&this.hasPoll_&&x.clearPollOptions();(x=this.$["image-poll-attachment"])&&this.hasImagePoll_&&x.resetPollOptions();(x=this.$["quiz-attachment"])&&this.hasQuiz_&&x.resetQuizOptions();
(x=this.$["video-link-attachment"])&&this.hasVideo_&&x.cancel();(x=this.$["access-restrictions-selector"].firstElementChild)&&x.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 _.kA(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.kA(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(x,G){x=XIL(x,this.emojiManager,G).cloneNode(!0);for(G=x.firstChild;G;)if(G.nodeType!==1)G=G.nextSibling;else switch(G.tagName){case "BR":var D=_.Vd();_.QVi(D,G);G=D.nextSibling;break;case "DIV":(D=G.lastChild)&&G.nextSibling&&_.rg(_.Vd(),D);G.previousSibling&&(G.previousSibling.nodeType===1||G.previousSibling.nodeType===3&&!G.previousSibling.textContent.endsWith("\n"))&&_.B_(_.Vd(),G);D&&D.nodeName==="BR"&&_.VF(D);D=G;G.hasChildNodes()?(G=G.firstChild,
_.pLJ(D)):(G=G.nextSibling,_.VF(D));break;default:G=G.nextSibling}return ian(x)},
onAddImageError_:function(x){x.stopPropagation();this.errorMessage_=_.gK(x.detail)},
setTextAreaValue_:function(x){x||(x="");var G=this.getEditableFormattedString_();G.text="";this.getEditableTextArea_().innerText="";typeof x==="string"&&(x={runs:[{text:x}]});G.text=x},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();DZ=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var x=this.getEditableTextArea_();x&&(_.mK(x,x.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Am("HTML_DIR")==="rtl"){var x=this.getEditableTextArea_(),G=this.getTextAreaValue()!==""?"auto":"rtl";x.setAttribute("dir",G)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var x;return y3n((x=this.$["quiz-attachment"])==null?void 0:x.getExplanationText())||y3n(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var x=null;if(this.isEmojiButtonDisplayed){var G=this.getInputRange_();G&&(x=this.emojiInput.retrieveTextBeforeRange(G))}this.insertText_(x,!0);this.updateCharCount_();this.setSubmitButton_();x=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=x.scrollHeight>x.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var x=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:x})},
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(x){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(x)},
onPasteEmoji_:function(x){x.preventDefault();x.stopImmediatePropagation();x=x.clipboardData.getData("text/plain");this.insertText_(x,!1,!1)},
insertText_:function(x,G,D){G=G===void 0?!1:G;D=D===void 0?!0:D;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&x){var K=this.getInputRange_().cloneRange();this.emojiManager&&K&&(G&&this.emojiInput.offsetStartOfRangeBy(K,x.length),this.insertTextWithEmojis_(K,x,D),Oa$(this.getEditableTextArea_().lastChild)||(K=this.getInputRange_().cloneRange()),K&&(this.emojiInput.updateSuggestions(K,x),this.updateSuggestionOffset_(K)))}},
setSubmitButton_:function(){if(this.data){var x=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",G=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(x||G){var D=this.getTextAreaValue().trim();G=D===this.previousText_;D=!D||this.aboveCharLimit_;x&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(D=this.aboveCharLimit_);this.submitButtonDisabled=
G||D||!this.getTextLength();x&&_.B("enable_post_scheduling")&&(this.submitButtonDisabled=G&&!this.scheduledPublishTimeSec_||D)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.u7,computeCreationBoxClass_:function(x){return x?"focused":"not-focused"},
computeFooterMessageClass_:function(x,G){return G?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(x,G){return G?G:x},
computeFooterMessageHidden_:function(x,G){return!G&&!x},
computePlaceholderText_:function(x,G,D){return(D==="video"||D==="image")&&(x==null?0:x.prefilledPlaceholderText)?x==null?void 0:x.prefilledPlaceholderText:G==="poll"||G==="image-poll"?x==null?void 0:x.pollPostPlaceholderText:G==="quiz"?x==null?void 0:x.quizPostPlaceholderText:G==="image"?x==null?void 0:x.imagePostPlaceholderText:x==null?void 0:x.placeholderText},
computeHideAttachmentButtons_:function(x,G,D,K){return x===void 0?!1:K&&this.getSimpleString(K)===this.getSimpleString(x.rateLimitErrorMessage)?!0:G!=="none"||D!=="none"||!x.videoLinkButton&&!x.pollButton&&!x.imagePollButton&&!x.quizButton&&!x.imageButton},
computeHideDismissableAttachment_:function(x){return x!=="image"&&x!=="video"},
computeHasVideo_:function(x){return x==="video"},
computeHasImage_:function(x){return x==="image"},
computeHasPoll_:function(x){return x==="poll"},
computeHasImagePoll_:function(x){return x==="image-poll"},
computeHasQuiz_:function(x){return x==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(x){return x&&x.backstageAttachment?x.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!x.backstageAttachment.quizRenderer&&!x.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(x){if(this.isValidPrefilledAttachment_(x.purpose,x.prefilledImageData,x.backstageAttachment))return x.backstageAttachment},
computeEditAttachment_:function(x){if(this.computePrefilledContent_(x)===void 0)return x.backstageAttachment},
computeAuthorThumbnailDimension_:function(x,G){return x&&!G?24:40},
computeImageUploadEndpoint_:function(x){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",x)},
computeRateLimitErrorCommands_:function(x){var G,D;return x==null?void 0:(G=x.advancedTierFeatures)==null?void 0:(D=G.rateLimit)==null?void 0:D.rateLimitCommands},
computeIsBackstageComment_:function(x){return!(!x||x!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(x){return this.get("submitButton.buttonRenderer.serviceEndpoint",x)||this.get("replyButton.buttonRenderer.serviceEndpoint",x)||this.get("postButton.buttonRenderer.serviceEndpoint",x)},
computeSubmitButtonOverride:function(){if(_.B("web_modern_buttons")){var x,G;return{segmentedPosition:this.dropdownSchedulePanel_||!((x=this.data)==null?0:(G=x.postOptionsMenu)==null?0:G.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.B("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(x,G){x=this.get("submitButton.buttonRenderer",x)||this.get("replyButton.buttonRenderer",x)||this.get("postButton.buttonRenderer",x);G&&(x=G);x&&(x=Object.assign({},x),x.serviceEndpoint=void 0,x.isDisabled=this.submitButtonDisabled);return x},
computeHasExternalLinksAccess_:function(x){if(_.B("enable_rfa_external_links")){var G,D,K;return(K=x==null?void 0:(G=x.advancedTierFeatures)==null?void 0:(D=G.externalLinks)==null?void 0:D.allowExternalLinks)!=null?K:!0}return!0},
computeIsEmojiButtonDisplayed_:function(x){return x.emojiButton&&x.emojiPicker&&x.emojiPicker.emojiPickerRenderer&&x.emojiPicker.emojiPickerRenderer.categories?x.emojiPicker.emojiPickerRenderer.categories.find(function(G){return G.emojiPickerCategoryRenderer?G.emojiPickerCategoryRenderer.emojiIds&&G.emojiPickerCategoryRenderer.emojiIds.length>0:G.emojiPickerUpsellCategoryRenderer?G.emojiPickerUpsellCategoryRenderer.emojis&&G.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(x){return x.charLimit?x.charLimit:null},
computeDropdownSchedulingPanel_:function(x,G){if(x==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&G)return G},
computeInlineSchedulingPanel_:function(x,G){if(x==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&G)return G},
computeHideAuthorThumbnail_:function(x,G){return x||this.computeUseIdentityChip_(G)},
computeHideIdentityChipRenderer_:function(x,G){return x||!this.computeUseIdentityChip_(G)},
computeUseIdentityChip_:function(x){return!!x&&!!x.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(x){var G,D,K,z;(x==null?0:(G=x.detail)==null?0:(D=G.endpoint)==null?0:D.ypcGetOffersEndpoint)||(x==null?0:(K=x.detail)==null?0:(z=K.endpoint)==null?0:z.ypcOffersEndpoint)?(x.stopPropagation(),_.KW(this,[x.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",x)&&(x.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(x){this.addedAttachment="video";this.selectedVideoId_=x.detail.videoId},
commentboxStateEntityChanged_:function(x){var G=this;(x==null?void 0:x.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(x==null?void 0:x.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){G.focus()})},
onYtServiceRequestSent_:function(x,G){if(G.actions)for(x=_.l(G.actions),G=x.next();!G.done;G=x.next())G.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(x){this.isLoading=!1;var G=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",x),D,K,z,y=x==null?void 0:(D=x.detail)==null?void 0:(K=D.data)==null?void 0:(z=K.actionResult)==null?void 0:z.commentboxStateEntityKey;if(G)this.errorMessage_=G;else if(y){var c;this.dismissData_=x==null?void 0:(c=x.detail)==null?void 0:c.data;this.commentboxStateKey_=y}else{this.clear();var W;this.fire("yt-commentbox-dismiss",x==null?void 0:(W=x.detail)==
null?void 0:W.data)}},
onYtServiceRequestError_:function(x){x.stopPropagation();this.isLoading=!1;var G,D;if(((G=this.data)==null?void 0:G.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((D=this.data)==null?void 0:D.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(G=this.get("detail.error.args",x)||[],G.length>1&&G[1].message){this.handlePostsServiceRequestError_(G[1].message);return}(x=this.get("detail.error.message",x))?this.errorMessage_=this.data.errorMessage||_.gK(x):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(x){if(_.B("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var G=_.l(this.rateLimitErrorCommands),D=G.next();!D.done;D=G.next())if(D=D.value,D.errorLabel===x){_.lb(D.command,this.hostElement);return}this.errorMessage_=_.gK(x)},
submitIfNotBackstagePost_:function(x){if(!this.isBackstagePost)this.onSubmit_(x)},
onSubmit_:function(x){var G=this,D,K,z,y,c,W,e,Q,p,V,L,r,H,O,A;return _.T(function(g){switch(g.nextAddress){case 1:x.stopPropagation();if(!G.serviceEndpoint||!G.isValidInput_())return g.return();if(G.shouldShowPostAadcNotice_())return G.showPostAadcNotice_(),g.return();if(G.shouldShowCommentAadcNotice_())return G.showCommentAadcNotice_(),g.return();if(!(G.$$("ytd-backstage-multi-image-select-renderer")&&G.hasImage_&&_.B("enable_multi_image_post_creation"))){g.jumpTo(2);break}D=G.$$("ytd-backstage-multi-image-select-renderer");
return _.Z(g,D.getAllUploadStatuses(),3);case 3:K=g.yieldResult;if(!K)return g.return();z=_.l(K);for(y=z.next();!y.done;y=z.next())if(c=y.value,c.encryptedBlobId===void 0)return G.isLoading=!1,e=W=void 0,G.errorMessage_=(e=(W=G.imageUploadEndpoint_)==null?void 0:W.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?e:null,g.return();return g.return(G.submitForm_(void 0,void 0,void 0,void 0,D.images,G.taggedVideoId_));case 2:if(!G.hasImagePoll_||!G.$["image-poll-attachment"]){g.jumpTo(4);
break}return _.Z(g,G.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:Q=g.yieldResult;if(!Q)return g.return();p=_.l(Q);for(V=p.next();!V.done;V=p.next())if(L=V.value,!L.encryptedBlobId)return G.isLoading=!1,r=void 0,G.errorMessage_=(r=G.data.errorMessage)!=null?r:null,g.return();case 4:O=(H=G.$$("ytd-backstage-image-select-renderer"))&&H.uploadPromise(),A=G.getSharedPostId_(),O?O.then(function(){G.submitForm_.apply(G,_.B5(_.rC.apply(0,arguments)))}).catch(function(u){G.isLoading=!1;
G.errorMessage_=_.gK(u.message)}):G.selectedVideoId_?G.submitForm_(void 0,G.selectedVideoId_):G.prefilledAttachment_==="image"?G.submitForm_(G.prefilledImageData_.encryptedBlobId,void 0,void 0,G.prefilledImageData_.sourceExternalVideoId,void 0,G.taggedVideoId_):G.prefilledAttachment_==="video"?G.submitForm_(void 0,G.data.backstageAttachment.videoRenderer.videoId):A?G.submitForm_(void 0,void 0,A):G.taggedVideoId_!==void 0?G.submitForm_(void 0,void 0,void 0,void 0,void 0,G.taggedVideoId_):G.submitForm_(),
_.c5(g)}})},
openSchedulingPanel:function(x){x&&x.scheduleButton&&x.scheduleButton.buttonRenderer&&(this.scheduleButton_=x.scheduleButton.buttonRenderer);x&&x.dateTimePicker&&this.set("data.schedulingDateTimePicker",x.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(x){x.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(x){x.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(x){x.stopPropagation();x.detail.alertMessage&&(this.alertMessage_=x.detail.alertMessage)},
onImageSelected_:function(x){x.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(x){x.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(x){x.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(x.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(x){x.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(x){var G=this.$["video-link-attachment"];G&&G.onLaunchVideoPicker(x)},
onAttachmentDismiss_:function(x){x.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"&&_.B("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.B("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 x;if(this.addedAttachment==="image-poll"&&((x=this.$["image-poll-attachment"])==null||!x.isValid()))return!1;var G;if(this.addedAttachment==="quiz"&&((G=this.$["quiz-attachment"])==null||!G.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;x=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(x=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")x=!0;return x||!!this.getTextAreaValue().trim()},
submitForm_:function(x,G,D,K,z,y){var c=this.getTextAreaValue().trim(),W={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&c===this.previousText_&&(c=void 0);c!==void 0&&(W.comment_text=c);this.isLoading=!0;y!=void 0&&(W.tagged_video_id=y);x?(W.image_blob_id=x,this.imagePreviewCoordinates_&&(W.image_preview_coordinates=this.imagePreviewCoordinates_)):G?W.attached_video_id=G:D?W.shared_post_id=D:z&&z.length>0&&(W.images_data=z.map(function(e){return{encryptedBlobId:e.encryptedBlobId,
previewCoordinates:e.previewCoordinates}}));
K&&(W.source_video_id=K);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(W.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(W.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(W.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.B("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(W.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.B("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(W.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.KW(this,[this.serviceEndpoint,W])},
onIsInputFocusChanged_:function(x,G){x?this.fire("yt-autonav-pause-focus"):G!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(x){var G=this.getEditableTextArea_();[].concat(_.B5(x.dataTransfer.items)).forEach(function(D){D.kind==="string"&&D.type.match("^text/plain")&&D.getAsString(function(K){G.appendChild(document.createTextNode(K))})});
x.preventDefault()},
preventDefault_:function(x){x.preventDefault()},
onSuggestionInsert_:function(x){this.insertTextWithEmojis_(x.detail.range,x.detail.text)},
onEmojiSuggestionClick_:function(x){this.emojiInput.insertSuggestion(x.detail)},
computeSubmitButtonClass_:function(x,G){return!G||x?"":"with-options"},
updateSuggestionOffset_:function(x){if(this.emojiInput&&_.kA(this.emojiInput).querySelector("#dropdown")){var G=this.getEditableTextArea_().getBoundingClientRect().bottom,D=x.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(G-D)+5;G=this.getEditableTextArea_().getBoundingClientRect().left;x=x.getBoundingClientRect().left-G;_.kA(this.emojiInput).querySelector("#dropdown").style.marginLeft=x+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(x){if(_.B("enable_post_scheduling")&&this.data&&this.data.purpose){x=x.detail;if(Math.floor(Date.now()/1E3)>=x)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var G=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(G)||G!==x?this.scheduledPublishTimeSec_=x:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=x;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var x=["image-button","image-poll-button","poll-button"];_.B("enable_quiz_creation")&&x.push("quiz-button");_.B("auto_convert_posts_video_tag")||x.push("video-link-button");return x},
getButtonRenderer:function(x,G){if(x)switch(G){case "video-link-button":var D;return((D=x.videoLinkButton)==null?void 0:D.buttonRenderer)||void 0;case "image-button":var K;return((K=x.imageButton)==null?void 0:K.buttonRenderer)||void 0;case "poll-button":var z;return((z=x.pollButton)==null?void 0:z.buttonRenderer)||void 0;case "image-poll-button":var y;return((y=x.imagePollButton)==null?void 0:y.buttonRenderer)||void 0;case "quiz-button":var c;return((c=x.quizButton)==null?void 0:c.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var x;return(x=this.data)==null||!x.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var x,G;return!((x=this.data)==null||!x.openAadcDialog)&&!((G=this.aadcGuidelinesState_)==null||!G.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.Am("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var x;((x=this.data)==null?0:x.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Xj("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(x){x.clickTrackingParams&&_.en().clickCommand(x);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.xO(this,"yt-close-popup-action")},
onHideIdentityChip:function(x){var G;this.set("data.placeholderText",(G=x.hideIdentityChipAction)==null?void 0:G.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var Ke=function(){var x=_.n.apply(this,arguments)||this;x.isOpen=!1;x.modern=_.B("web_modern_buttons");x.roundedContainer=!0;x.dropdownButtonOverride=_.B("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;x.inPopupContainer=!1;x.isCommentboxLoading=!1;var G=["image-button","image-poll-button","poll-button"];_.B("enable_quiz_creation")&&G.push("quiz-button");_.B("auto_convert_posts_video_tag")||G.push("video-link-button");x.attachmentButtonIds=G;x.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 x};
_.m(Ke,_.n);_.a=Ke.prototype;_.a.computeButtonOverride=function(){var x;return((x=this.data)==null?0:x.postOptionsMenu)&&_.B("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.a.configureRendererStamper=function(){var x={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"EXPAND"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.B("auto_convert_posts_video_tag")||(x["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return x};
_.a.ready=function(){var x=this,G=_.kA(this.hostElement).querySelector("#placeholder-area"),D=function(K){x.onOpen(K)};
G.addEventListener("tap",D);G.addEventListener("keypress",D)};
_.a.showButtonEduTooltip=function(){var x,G,D,K,z,y,c;if(_.B("enable_quiz_creation")&&((x=this.data)==null?0:(G=x.quizButton)==null?0:(D=G.buttonRenderer)==null?0:(K=D.hint)==null?0:(z=K.hintRenderer)==null?0:(y=z.content)==null?0:(c=y.bubbleHintRenderer)==null?0:c.text)&&(_.qZ.getInstance(),x=NZ(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(x==null?void 0:
x.length)>0)){this.ytComponentBehavior.resolveCommand(x[0],{form:{element:this.quizButton}});return}var W;if((W=this.data)==null?0:W.imagePollButtonTooltip)if(_.qZ.getInstance(),W=NZ(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(W==null?void 0:W.length)>0){this.ytComponentBehavior.resolveCommand(W[0],{form:{element:this.imagePollButton}});return}var e;_.B("enable_multi_image_post_creation")&&
((e=this.data)==null?0:e.multiImageButtonTooltip)&&(_.qZ.getInstance(),e=NZ(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(e==null?void 0:e.length)>0&&this.ytComponentBehavior.resolveCommand(e[0],{form:{element:this.imageButton}}))};
_.a.onCreatePollAction=function(x){_.Y(x,rRk)&&(this.JSC$13681_commentbox.addedAttachment="poll",this.openDialog())};
_.a.onAddVideoLinkAction=function(x){if(_.Y(x,Bvu))this.JSC$13681_commentbox.onAddVideoLink(x)};
_.a.onShowSchedulingPanelCommand=function(x){(x=_.Y(x,kFE))&&this.openSchedulingPanel(x)};
_.a.onCreateImagePollCommand=function(x){_.Y(x,KLs)&&(this.JSC$13681_commentbox.openImagePollComponent(),this.openDialog())};
_.a.onCreateQuizCommand=function(x){_.Y(x,zri)&&(this.JSC$13681_commentbox.openQuizComponent(),this.openDialog())};
_.a.openSchedulingPanel=function(x){_.B("enable_post_scheduling")&&(this.openDialog(),this.JSC$13681_commentbox.openSchedulingPanel(x))};
_.a.onCreateCommentAction=function(x){this.get("createCommentAction.contents",x)&&(this.JSC$13681_commentbox.clear(),this.closeDialog())};
_.a.onOpen=function(x){x instanceof KeyboardEvent&&x.type==="keypress"&&x.keyCode!==13&&x.keyCode!==32||(this.data.prepareAccountEndpoint?_.h$(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.a.onYtCommentboxDismiss=function(){this.closeDialog()};
_.a.onYtCommentboxLoadingStart=function(x){x.stopPropagation();this.isCommentboxLoading=!0};
_.a.onYtCommentboxLoadingEnd=function(x){x.stopPropagation();this.isCommentboxLoading=!1};
_.a.onYtVideoLinkButtonCancel=function(x){x.stopPropagation();this.onOpen(x)};
_.a.onYtVideoLinkSelected=function(x){x.stopPropagation();this.onOpen(x)};
_.a.onIronSelect=function(x){x.stopPropagation();x.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=x.detail.item.value&&(this.accessRestriction?(this.accessRestriction=x.detail.item.value,this.onOpen(x)):this.accessRestriction=x.detail.item.value)};
_.a.onYtNavigate=function(x){this.get("detail.endpoint.backstageImageUploadEndpoint",x)&&(this.JSC$13681_commentbox.addedAttachment="image",this.JSC$13681_commentbox.submitButtonDisabled=!0,this.onOpen(x))};
_.a.onRequestSent=function(x){if(_.B("web_button_rework"))for(var G=_.l(x.detail),D=G.next();!D.done;D=G.next())_.Y(D.value,Q6h)&&(this.JSC$13681_commentbox.addedAttachment="image",this.JSC$13681_commentbox.submitButtonDisabled=!0,this.onOpen(x))};
_.a.openDialog=function(){this.JSC$13681_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13681_commentbox.focus()};
_.a.onPopupClosed=function(){_.qZ.getInstance()};
_.a.computeCreationDisabled=function(x){return!!x};
_.a.computeIsCreationDialog=function(x){return!!x&&x==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.a.computeDisabledPostButton=function(x){if(!x)return null;x.isDisabled=!0;return x};
_.a.computeIsCreationDialogWithHeader=function(x){return!this.inPopupContainer&&!!x&&!!x.authorText&&x.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.a.computeIsHeaderHidden=function(x,G){return!x||G};
_.a.computeDropdownRendererClasses=function(x){return x?["text-secondary-style"]:[]};
_.a.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var x=_.kA(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;x&&x.reset()};
Ke.prototype.onPopupClosed=Ke.prototype.onPopupClosed;Ke.prototype.onRequestSent=Ke.prototype.onRequestSent;Ke.prototype.onYtNavigate=Ke.prototype.onYtNavigate;Ke.prototype.onIronSelect=Ke.prototype.onIronSelect;Ke.prototype.onYtVideoLinkSelected=Ke.prototype.onYtVideoLinkSelected;Ke.prototype.onYtVideoLinkButtonCancel=Ke.prototype.onYtVideoLinkButtonCancel;Ke.prototype.onYtCommentboxLoadingEnd=Ke.prototype.onYtCommentboxLoadingEnd;Ke.prototype.onYtCommentboxLoadingStart=Ke.prototype.onYtCommentboxLoadingStart;
Ke.prototype.onYtCommentboxDismiss=Ke.prototype.onYtCommentboxDismiss;Ke.prototype.showButtonEduTooltip=Ke.prototype.showButtonEduTooltip;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Ke.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Ke.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Ke.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],Ke.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Ke.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Ke.prototype,"isOpen",void 0);_.q([_.R({computed:"computeButtonOverride(data)"}),_.N("design:type",Object)],Ke.prototype,"buttonOverride",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Ke.prototype,"modern",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Ke.prototype,"roundedContainer",void 0);_.q([_.R(),_.N("design:type",Object)],Ke.prototype,"dropdownButtonOverride",void 0);_.q([_.R({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.N("design:type",Boolean)],Ke.prototype,"creationDisabled",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ke.prototype,"enableCreationBox",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.N("design:type",Boolean)],Ke.prototype,"isCreationDialog",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Ke.prototype,"inPopupContainer",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.N("design:type",Boolean)],Ke.prototype,"isCreationDialogWithHeader",void 0);_.q([_.R(),_.N("design:type",Object)],Ke.prototype,"accessRestriction",void 0);
_.q([_.R({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.N("design:type",Array)],Ke.prototype,"dropdownRendererClasses",void 0);_.q([_.R(),_.N("design:type",Object)],Ke.prototype,"isCommentboxLoading",void 0);_.q([_.R(),_.N("design:type",Array)],Ke.prototype,"attachmentButtonIds",void 0);_.q([_.cD("#image-button"),_.N("design:type",HTMLElement)],Ke.prototype,"imageButton",void 0);
_.q([_.cD("#image-poll-button"),_.N("design:type",HTMLElement)],Ke.prototype,"imagePollButton",void 0);_.q([_.cD("#quiz-button"),_.N("design:type",HTMLElement)],Ke.prototype,"quizButton",void 0);_.q([_.cD("#commentbox"),_.N("design:type",Object)],Ke.prototype,"JSC$13681_commentbox",void 0);_.q([_.yf("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ke.prototype,"showButtonEduTooltip",null);
_.q([_.oe("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ke.prototype,"onYtCommentboxDismiss",null);_.q([_.oe("yt-commentbox-loading-start"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ke.prototype,"onYtCommentboxLoadingStart",null);
_.q([_.oe("yt-commentbox-loading-end"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ke.prototype,"onYtCommentboxLoadingEnd",null);_.q([_.oe("yt-video-link-button-cancel"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ke.prototype,"onYtVideoLinkButtonCancel",null);
_.q([_.oe("yt-video-link-selected"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ke.prototype,"onYtVideoLinkSelected",null);_.q([_.oe("iron-select"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ke.prototype,"onIronSelect",null);_.q([_.oe("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ke.prototype,"onYtNavigate",null);
_.q([_.oe("yt-service-request-sent-button-renderer"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ke.prototype,"onRequestSent",null);_.q([_.oe("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ke.prototype,"onPopupClosed",null);Ke=_.q([_.d({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],Ke);
_.w(Ke,"ytd-backstage-post-dialog-renderer",function(){if(kNJ!==void 0)return kNJ;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return kNJ=x},{mode:1});var C39;var I1k;var zD=function(){return _.n.apply(this,arguments)||this};
_.m(zD,_.n);_.a=zD.prototype;_.a.computeHeartButtonStyle=function(x){return(x==null?0:x.styleType)?x.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.a.onYtButtonTap=function(){if(this.data.isEnabled){var x=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(x=this.getEndpoint(x))&&_.Eo().resolve(_.hm).resolveCommand(x,{form:{element:this.hostElement}})}else(x=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(x)};
_.a.toggle=function(x){this.set("data.isHearted",x!==void 0?x:!this.data.isHearted)};
_.a.getEndpoint=function(x){var G,D=(G=this.data)==null?void 0:G.heartEndpoint,K;G=(K=this.data)==null?void 0:K.unheartEndpoint;if(D&&G)return x?G:D};
_.a.computeButtonAccessibility=function(x,G){var D,K,z=x==null?void 0:(D=x.heartedAccessibility)==null?void 0:(K=D.accessibilityData)==null?void 0:K.label,y,c;x=x==null?void 0:(y=x.unheartedAccessibility)==null?void 0:(c=y.accessibilityData)==null?void 0:c.label;return G?z:x};
_.Nq.Object.defineProperties(zD.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 x;return _.B("kevlar_system_icons")&&!((x=this.data)==null||!x.isHearted)}}});
zD.prototype.onYtButtonTap=zD.prototype.onYtButtonTap;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],zD.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.i9),_.N("design:type",Object)],zD.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],zD.prototype,"data",void 0);_.q([_.U("data.isHearted"),_.N("design:type",Object),_.N("design:paramtypes",[])],zD.prototype,"heartTooltip",null);
_.q([_.U("data.isHearted"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],zD.prototype,"iconFilled",null);_.q([_.R({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.N("design:type",String)],zD.prototype,"buttonAccessibility",void 0);_.q([_.R({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.N("design:type",String)],zD.prototype,"heartButtonStyle",void 0);
_.q([_.oe("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zD.prototype,"onYtButtonTap",null);zD=_.q([_.d({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],zD);
_.w(zD,"ytd-creator-heart-renderer",function(){if(I1k!==void 0)return I1k;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return I1k=x},{mode:1});var aM=function(){var x=_.n.apply(this,arguments)||this;x.hasCreatorReply=!1;x.buttonOverrides={size:"S",iconPosition:"icon-only"};x.replyButtonOverrides={size:"S",type:"text"};x.forceIconButton=!_.B("web_modern_buttons");x.modern=_.B("web_modern_buttons");x.buttonTooltipPosition="bottom";x.systemIcons=_.B("kevlar_system_icons");x.replyDialog=null;return x};
_.m(aM,_.n);_.a=aM.prototype;
_.a.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]]"}}}}}};
_.a.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.a.dataChange=function(){this.replyDialog&&_.kA(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var x,G,D;this.isLiked=this.systemIcons&&!!((x=this.data)==null?0:(G=x.likeButton)==null?0:(D=G.toggleButtonRenderer)==null?0:D.isToggled)};
_.a.computeShowVoteCountBeginning=function(x,G){return x===void 0||G===void 0?!0:x.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!G&&this.ytRendererBehavior.getSimpleString(G)!=="0"};
_.a.computeShowVoteCountEnd=function(x,G){return x===void 0||G===void 0?!0:x.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!G&&this.ytRendererBehavior.getSimpleString(G)!=="0"};
_.a.computeShowCommentCount=function(x,G){return x===void 0||G===void 0?!0:x.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!G&&this.ytRendererBehavior.getSimpleString(G)!=="0"};
_.a.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.a.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.a.showReplyDialog=function(x){x&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.kA(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=x,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.a.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.a.onRequestSent=function(x){if(_.B("web_button_rework")){x=_.l(x.detail);for(var G=x.next();!G.done;G=x.next())(G=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",G.value))&&this.showReplyDialog(G)}};
_.a.onYtNavigate=function(x){var G,D;(x=(G=_.Y(x.detail.endpoint,_.Vu7))==null?void 0:(D=G.dialog)==null?void 0:D.commentReplyDialogRenderer)&&this.showReplyDialog(x)};
_.a.onYtServiceRequestSent=function(x,G){x.stopPropagation();if(G.actions)for(x=0;x<G.actions.length;x++){var D=_.Y(G.actions[x],mtq);D&&this.handleUpdateCommentVoteAction(D)}};
_.a.handleUpdateCommentVoteAction=function(x){this.voteCount=x.voteCount||_.gK("0");x.voteStatus==="LIKE"?this.JSC$13692_ytdDislikeToggleButtonRenderer.toggle(!1):x.voteStatus==="DISLIKE"?this.JSC$13692_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13692_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13692_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.a.computeReplyButtonHidden=function(x){return x};
_.a.computeReplyButtonBeginning=function(x){return(x==null?0:x.replyButton)&&x.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?x.replyButton:void 0};
_.a.computeReplyButtonEnd=function(x){return(x==null?0:x.replyButton)&&x.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?x.replyButton:void 0};
_.a.computeActionButtonStyle=function(x){return(x==null?0:x.style)?x.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.a.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.a.onYtToggleButton=function(x){var G,D;this.isLiked=this.systemIcons&&!!((G=x.detail)==null?0:(D=G.actions)==null?0:D.like)};
aM.prototype.onYtToggleButton=aM.prototype.onYtToggleButton;aM.prototype.onButtonTooltipPositionChanged=aM.prototype.onButtonTooltipPositionChanged;aM.prototype.onYtServiceRequestSent=aM.prototype.onYtServiceRequestSent;aM.prototype.onYtNavigate=aM.prototype.onYtNavigate;aM.prototype.onRequestSent=aM.prototype.onRequestSent;aM.prototype.onYtCommentboxDismiss=aM.prototype.onYtCommentboxDismiss;aM.prototype.dataChange=aM.prototype.dataChange;
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],aM.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],aM.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],aM.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],aM.prototype,"voteCount",void 0);_.q([_.R(),_.N("design:type",Object)],aM.prototype,"commentCount",void 0);_.q([_.R(),_.N("design:type",Object)],aM.prototype,"replyThumbnail",void 0);
_.q([_.R(),_.N("design:type",Object)],aM.prototype,"hasCreatorReply",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],aM.prototype,"enableCreationBox",void 0);_.q([_.R({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.N("design:type",String)],aM.prototype,"actionButtonsStyle",void 0);_.q([_.R({computed:"computeReplyButtonBeginning(data)"}),_.N("design:type",Object)],aM.prototype,"replyButtonBeginning",void 0);
_.q([_.R({computed:"computeReplyButtonEnd(data)"}),_.N("design:type",Object)],aM.prototype,"replyButtonEnd",void 0);_.q([_.R(),_.N("design:type",Object)],aM.prototype,"buttonOverrides",void 0);_.q([_.R(),_.N("design:type",Object)],aM.prototype,"replyButtonOverrides",void 0);_.q([_.R(),_.N("design:type",Object)],aM.prototype,"forceIconButton",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],aM.prototype,"useCommentIcon",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],aM.prototype,"modern",void 0);_.q([_.R(),_.N("design:type",Object)],aM.prototype,"buttonTooltipPosition",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],aM.prototype,"systemIcons",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],aM.prototype,"isLiked",void 0);_.q([_.cD("ytd-button-renderer"),_.N("design:type",Object)],aM.prototype,"ytdReplyButtonRenderer",void 0);
_.q([_.cD("#like-button"),_.N("design:type",Object)],aM.prototype,"JSC$13692_ytdLikeToggleButtonRenderer",void 0);_.q([_.cD("#dislike-button"),_.N("design:type",Object)],aM.prototype,"JSC$13692_ytdDislikeToggleButtonRenderer",void 0);_.q([_.cD("#reply-dialog"),_.N("design:type",HTMLElement)],aM.prototype,"replyDialogElement",void 0);_.q([_.cD("#reply-button"),_.N("design:type",HTMLElement)],aM.prototype,"replyButtonElement",void 0);
_.q([_.cD("#reply-button-end"),_.N("design:type",HTMLElement)],aM.prototype,"replyButtonEndElement",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aM.prototype,"dataChange",null);_.q([_.oe("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],aM.prototype,"onYtCommentboxDismiss",null);
_.q([_.oe("yt-service-request-sent-button-renderer"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],aM.prototype,"onRequestSent",null);_.q([_.oe("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],aM.prototype,"onYtNavigate",null);
_.q([_.oe("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Ou]),_.N("design:returntype")],aM.prototype,"onYtServiceRequestSent",null);_.q([_.yf("buttonTooltipPosition"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aM.prototype,"onButtonTooltipPositionChanged",null);
_.q([_.oe("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],aM.prototype,"onYtToggleButton",null);aM=_.q([_.d({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],aM);
_.w(aM,"ytd-comment-action-buttons-renderer",function(){if(C39!==void 0)return C39;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return C39=x},{mode:1});var jvZ;var oM=function(){return _.n.apply(this,arguments)||this};
_.m(oM,_.n);oM.prototype.focus=function(){_.kA(this.hostElement).querySelector("#commentbox").focus()};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],oM.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],oM.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],oM.prototype,"zeroStepChannelCreationRenderer",void 0);oM=_.q([_.d({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],oM);
_.w(oM,"ytd-comment-dialog-renderer",function(){if(jvZ!==void 0)return jvZ;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return jvZ=x},{mode:1});var O0k;var yi=function(){var x=_.n.apply(this,arguments)||this;x.buttonOverrides={size:"S",iconPosition:"icon-only"};x.replyButtonOverrides={size:"S",type:"text"};return x};
_.m(yi,_.n);_.a=yi.prototype;_.a.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.a.detached=function(){this.replyBox&&this.replyBox.remove()};
_.a.showReplyDialog=function(x){if(x){var G=this.replyBox;G||(G=document.createElement("ytd-comment-reply-dialog-renderer"),G.id="replybox",_.kA(this.replyDialogDiv).appendChild(G));G.data=x;this.replyDialogDiv.hidden=!1;G.openDialog()}};
_.a.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.a.onYtServiceRequestSent=function(x,G){x.stopPropagation();if(G.actions)for(var D=0;D<G.actions.length;D++){var K=_.Y(G.actions[D],mtq);K?this.handleUpdateCommentVoteAction(K):x.target===this.heartButton&&this.toggleHeartState()}};
_.a.handleUpdateCommentVoteAction=function(x){var G;(G=this.toolbarState)!=null&&G.key&&this.ytdReduxBehavior.dispatch(_.sg("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:x.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":x.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.a.toggleHeartState=function(){var x;(x=this.toolbarState)!=null&&x.key&&this.ytdReduxBehavior.dispatch(_.sg("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.Nq.Object.defineProperties(yi.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var x,G,D;return(((x=this.toolbarState)==null?void 0:x.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(G=this.toolbarData)==null?void 0:G.likeCountLiked:(D=this.toolbarData)==null?void 0:D.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.toolbarSurface)==null?void 0:x.commentDisabledActionCommand)!==void 0}},
isSubscribersOnlyComments:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.toolbarSurface)==null?void 0:x.subscribersOnlySnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.toolbarSurface)==null?void 0:x.prepareAccountCommand)!==void 0&&!_.B("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var x,G=_.Y((x=this.toolbarSurface)==null?void 0:x.prepareAccountCommand,_.IP),D,K,z,y,c,W,e,Q,p;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((D=this.toolbarSharedData)==null||!D.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((K=this.toolbarState)==null?void 0:K.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:G!=null?G:_.Y((z=this.toolbarSurface)==null?void 0:z.likeCommand,_.IP),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:G!=null?G:_.Y((y=this.toolbarSurface)==null?void 0:y.unlikeCommand,_.IP),defaultCommand:this.isVisiblyDisabled?_.Y((c=this.toolbarSurface)==null?void 0:c.commentDisabledActionCommand,_.IP):void 0,defaultTooltip:(W=this.toolbarData)==null?void 0:W.likeInactiveTooltip,toggledTooltip:(e=this.toolbarData)==null?void 0:e.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(Q=this.toolbarData)==null?void 0:Q.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(p=this.toolbarSharedData)==null?void 0:p.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var x,G=_.Y((x=this.toolbarSurface)==null?void 0:x.prepareAccountCommand,_.IP),D,K,z,y,c,W,e,Q,p,V;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((D=this.toolbarSharedData)==null||!D.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((K=this.toolbarState)==null?void 0:K.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:G!=null?G:_.Y((z=this.toolbarSurface)==null?void 0:z.dislikeCommand,_.IP),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:G!=null?G:_.Y((y=this.toolbarSurface)==null?void 0:y.undislikeCommand,_.IP),defaultCommand:this.isVisiblyDisabled?_.Y((c=this.toolbarSurface)==null?void 0:c.commentDisabledActionCommand,_.IP):void 0,defaultTooltip:(W=this.toolbarData)==null?void 0:W.dislikeInactiveTooltip,toggledTooltip:(e=this.toolbarData)==null?void 0:
e.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(Q=this.toolbarSharedData)==null?void 0:Q.dislikeReplyButtonA11y:(p=this.toolbarSharedData)==null?void 0:p.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(V=this.toolbarSharedData)==null?void 0:V.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var x,G,D;if(((x=this.toolbarState)==null?void 0:x.heartState)!==void 0&&((G=this.toolbarState)==null?void 0:G.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((D=this.toolbarState)==null?void 0:D.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var K,z,y,c,W,e,Q,p,V,L,r,H,O,A;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(K=this.toolbarData)==null?void 0:K.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((z=this.toolbarState)==null?void 0:z.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((y=this.toolbarState)==null?void 0:y.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((c=this.toolbarState)==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((W=this.toolbarState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.Y((e=this.toolbarSurface)==null?void 0:e.heartCommand,
_.IP),unheartEndpoint:this.isVisiblyDisabled?void 0:_.Y((Q=this.toolbarSurface)==null?void 0:Q.unheartCommand,_.IP),disabledEndpoint:this.isVisiblyDisabled?_.Y((p=this.toolbarSurface)==null?void 0:p.commentDisabledActionCommand,_.IP):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(V=this.toolbarData)==null?void 0:V.heartActiveTooltip,unheartedTooltip:(L=this.toolbarData)==null?void 0:L.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((r=
this.toolbarState)==null?void 0:r.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(H=this.toolbarSharedData)==null?void 0:H.unheartButtonA11y:(O=this.toolbarSharedData)==null?void 0:O.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(A=this.toolbarSharedData)==null?void 0:A.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.toolbarSurface)==null||!x.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var x,G,D,K;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubscribersOnlyComments?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(x=this.commentStrings)==null?void 0:x.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubscribersOnlyComments?void 0:_.Y((G=this.toolbarSurface)==null?void 0:G.replyCommand,_.IP),command:this.isVisiblyDisabled?_.Y((D=this.toolbarSurface)==null?void 0:D.commentDisabledActionCommand,
_.IP):this.isSubscribersOnlyComments?_.Y((K=this.toolbarSurface)==null?void 0:K.subscribersOnlySnackbarCommand,_.IP):void 0}}}});
yi.prototype.onYtServiceRequestSent=yi.prototype.onYtServiceRequestSent;yi.prototype.hideReplyDialogDiv=yi.prototype.hideReplyDialogDiv;_.q([_.R(),_.N("design:type",Object)],yi.prototype,"commentStrings",void 0);_.q([_.R(),_.N("design:type",Boolean)],yi.prototype,"isReply",void 0);_.q([_.R(),_.N("design:type",Object)],yi.prototype,"toolbarData",void 0);_.q([_.R(),_.N("design:type",Object)],yi.prototype,"toolbarSharedData",void 0);
_.q([_.R(),_.N("design:type",String)],yi.prototype,"toolbarStateKey",void 0);_.q([_.R(),_.N("design:type",String)],yi.prototype,"toolbarSurfaceKey",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],yi.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],yi.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],yi.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.cD("#reply-dialog"),_.N("design:type",HTMLElement)],yi.prototype,"replyDialogDiv",void 0);_.q([_.cD("#replybox"),_.N("design:type",Object)],yi.prototype,"replyBox",void 0);_.q([_.cD("ytd-creator-heart-renderer"),_.N("design:type",Object)],yi.prototype,"heartButton",void 0);_.q([_.R({selector:function(x,G){return _.zm(x.entities,"engagementToolbarStateEntityPayload",G)},
selectorArgs:["toolbarStateKey"]}),_.N("design:type",Object)],yi.prototype,"toolbarState",void 0);_.q([_.R({selector:Zvh,selectorArgs:["toolbarSurfaceKey"]}),_.N("design:type",Object)],yi.prototype,"toolbarSurface",void 0);_.q([_.R(),_.N("design:type",Object)],yi.prototype,"buttonOverrides",void 0);_.q([_.oe("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yi.prototype,"hideReplyDialogDiv",null);
_.q([_.U("toolbarData","toolbarState"),_.N("design:type",String),_.N("design:paramtypes",[])],yi.prototype,"likeCount",null);_.q([_.U("likeCount"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],yi.prototype,"showLikeCount",null);_.q([_.U("toolbarSurface"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],yi.prototype,"isVisiblyDisabled",null);_.q([_.U("toolbarSurface"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],yi.prototype,"isSubscribersOnlyComments",null);
_.q([_.U("toolbarSurface"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],yi.prototype,"hasPrepareAccountCommand",null);_.q([_.U("toolbarData","toolbarState","toolbarSurface"),_.N("design:type",Object),_.N("design:paramtypes",[])],yi.prototype,"likeToggleButtonRenderer",null);_.q([_.U("isReply","toolbarData","toolbarState","toolbarSurface"),_.N("design:type",Object),_.N("design:paramtypes",[])],yi.prototype,"dislikeToggleButtonRenderer",null);
_.q([_.U("toolbarData","toolbarState","toolbarSurface"),_.N("design:type",Object),_.N("design:paramtypes",[])],yi.prototype,"creatorHeartSupportedRenderer",null);_.q([_.U("toolbarSurface"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],yi.prototype,"hasReplyCommand",null);_.q([_.U("toolbarSurface","commentStrings","isVisiblyDisabled"),_.N("design:type",Object),_.N("design:paramtypes",[])],yi.prototype,"replyButtonRenderer",null);
_.q([_.R(),_.N("design:type",Object)],yi.prototype,"replyButtonOverrides",void 0);_.q([_.oe("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Ou]),_.N("design:returntype")],yi.prototype,"onYtServiceRequestSent",null);yi=_.q([_.d({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],yi);
_.w(yi,"ytd-comment-engagement-bar",function(){if(O0k!==void 0)return O0k;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return O0k=x},{mode:1});var XNk;var l$=function(){return _.n.apply(this,arguments)||this};
_.m(l$,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],l$.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],l$.prototype,"data",void 0);l$=_.q([_.d({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],l$);
_.w(l$,"ytd-comment-inline-thumbnail-renderer",function(){if(XNk!==void 0)return XNk;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return XNk=x},{mode:1});var Aqo;var cF=function(){return _.n.apply(this,arguments)||this};
_.m(cF,_.n);_.q([_.R(),_.N("design:type",Object)],cF.prototype,"data",void 0);cF=_.q([_.d({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],cF);
_.w(cF,"ytd-comment-pause-composer-renderer",function(){if(Aqo!==void 0)return Aqo;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Aqo=x},{mode:1});var UAi;var Rd7;var TD=function(){var x=_.n.apply(this,arguments)||this;x.isOpen=!1;return x};
_.m(TD,_.n);_.a=TD.prototype;_.a.dataChanged=function(){this.isOpen=!1};
_.a.onTap=function(){this.data&&(this.data.navigationEndpoint?_.h$(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.a.focus=function(){this.JSC$13718_commentbox.focus()};
_.a.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.a.openDialog=function(){this.isOpen=!0;this.JSC$13718_commentbox.focus();this.JSC$13718_commentbox.maybeHeightChanged()};
TD.prototype.onYtCommentboxDismiss=TD.prototype.onYtCommentboxDismiss;TD.prototype.dataChanged=TD.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],TD.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],TD.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],TD.prototype,"isOpen",void 0);_.q([_.cD("#commentbox"),_.N("design:type",Object)],TD.prototype,"JSC$13718_commentbox",void 0);
_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TD.prototype,"dataChanged",null);_.q([_.oe("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],TD.prototype,"onYtCommentboxDismiss",null);TD=_.q([_.d({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],TD);
_.w(TD,"ytd-comment-reply-dialog-renderer",function(){if(Rd7!==void 0)return Rd7;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Rd7=x},{mode:1});var Sy9;var WF=function(){return _.n.apply(this,arguments)||this};
_.m(WF,_.n);_.Nq.Object.defineProperties(WF.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var x,G,D=(x=this.data)==null?void 0:(G=x.icon)==null?void 0:G.iconType;return D?"yt-icons:"+D.toLowerCase():null}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],WF.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],WF.prototype,"data",void 0);_.q([_.R(),_.U("data.icon"),_.N("design:type",Object),_.N("design:paramtypes",[])],WF.prototype,"icon",null);WF=_.q([_.d({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],WF);
_.w(WF,"ytd-pinned-comment-badge-renderer",function(){if(Sy9!==void 0)return Sy9;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Sy9=x},{mode:1});var nw9;var i07={},gwZ={input:!0,meta:!0,br:!0,link:!0,img:!0},eE=null;i07.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(){eE==null&&(eE=document.createElement("tp-yt-paper-tooltip"),eE.offset=8,eE.fitToVisibleBounds=!0)},
onMouseOver_:function(x){if(x=_.Xn(x.target,function(z){return z==this||z.getAttribute&&z.getAttribute("shared-tooltip-text")}.bind(this),!0)){var G=x.getAttribute("shared-tooltip-text");
if(G){var D=this,K=null;x!=this&&(x.tagName.toLowerCase()in gwZ?D=x.parentElement:D=x,x.id&&(K=x.id));this.polymerController.createTooltipIfRequired_();if(eE.parentElement!=D||eE.for!=K)(0,_.D6)(eE).textContent=G,_.kA(D).appendChild(eE),eE.for=K,eE.animationDelay=this.polymerController.sharedTooltipAnimationDelay,eE.position=this.polymerController.sharedTooltipPosition}}}};var ZZ=function(){return _.n.apply(this,arguments)||this};
_.m(ZZ,_.n);ZZ.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]]"}}}}}};
ZZ.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
ZZ.prototype.colorChanged=function(){var x,G,D,K=(x=this.data)==null?void 0:(G=x.color)==null?void 0:(D=G.basicColorPaletteData)==null?void 0:D.foregroundBodyColor;K&&(this.rgbBadgeColor=_.In(K));_.kA(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
ZZ.prototype.tooltipChanged=function(){var x;((x=this.data)==null?0:x.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
ZZ.prototype.tooltipChanged=ZZ.prototype.tooltipChanged;ZZ.prototype.colorChanged=ZZ.prototype.colorChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],ZZ.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],ZZ.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(i07.YtSharedTooltipBehavior),_.N("design:type",Object)],ZZ.prototype,"ytSharedTooltipBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],ZZ.prototype,"data",void 0);
_.q([_.R({value:"#4285F4"}),_.N("design:type",String)],ZZ.prototype,"rgbBadgeColor",void 0);_.q([_.yf("data.color"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ZZ.prototype,"colorChanged",null);_.q([_.yf("data.tooltip"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ZZ.prototype,"tooltipChanged",null);ZZ=_.q([_.d({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],ZZ);
_.w(ZZ,"ytd-sponsor-comment-badge-renderer",function(){if(nw9!==void 0)return nw9;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return nw9=x},{mode:1});var u9Z;var dAi;var Mn=function(){return _.n.apply(this,arguments)||this};
_.m(Mn,_.n);Mn.prototype.computeState=function(x){switch(x==null?void 0:x.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"}};
Mn.prototype.updateStateIdentifier=function(x){if(this.viewModel.triStateKey){var G=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.sg("triStateButtonStateEntityPayload",G,{key:G,stateIdentifier:x}))}};
Mn.prototype.onClick=function(){var x=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(){x.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){x.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.Nq.Object.defineProperties(Mn.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 x;return((x=this.data)==null?void 0:x.buttonText)||""}}});
_.q([_.R(),_.N("design:type",Object)],Mn.prototype,"viewModel",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Mn.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],Mn.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Mn.prototype,"ytRendererBehavior",void 0);_.q([_.R({selector:MhV,selectorArgs:["viewModel.triStateKey"]}),_.N("design:type",Object)],Mn.prototype,"triStateButtonStateEntity",void 0);
_.q([_.R({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.N("design:type",String)],Mn.prototype,"state",void 0);_.q([_.U("viewModel","state"),_.N("design:type",Object),_.N("design:paramtypes",[])],Mn.prototype,"data",null);_.q([_.U("data"),_.N("design:type",String),_.N("design:paramtypes",[])],Mn.prototype,"buttonText",null);Mn=_.q([_.d({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],Mn);
_.w(Mn,"ytd-tri-state-button-view-model",function(){if(dAi!==void 0)return dAi;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return dAi=x},{mode:1});var wN8;var qyJ;var Qi=function(){var x=_.n.apply(this,arguments)||this;x.defaultIconToFilled=!_.B("kevlar_fill_comment_chip_icon_killswitch");return x};
_.m(Qi,_.n);Qi.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
Qi.prototype.dataChanged=function(){if(this.data){var x,G;((x=this.data.chipColorPalette)==null?0:x.backgroundColor)&&((G=this.data.chipColorPalette)==null?0:G.foregroundTitleColor)&&_.K7(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.jT(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.jT(this.data.chipColorPalette.foregroundTitleColor)});var D;((D=this.data)==null?0:D.command)?(_.K7(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.K7(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}};
Qi.prototype.onTap=function(){var x;if(this.data&&(x=this.data)!=null&&x.command){var G;this.ytComponentBehavior.resolveCommand((G=this.data)==null?void 0:G.command)}};
Qi.prototype.getIconSize=function(){return _.B("kevlar_fill_comment_chip_icon_killswitch")?24:12};
Qi.prototype.onTap=Qi.prototype.onTap;Qi.prototype.dataChanged=Qi.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Qi.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Qi.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.Tb),_.N("design:type",Object)],Qi.prototype,"ironA11yKeysBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Qi.prototype,"data",void 0);
_.q([_.R(),_.N("design:type",Object)],Qi.prototype,"basePriceText",void 0);_.q([_.R(),_.N("design:type",Object)],Qi.prototype,"chipIcon",void 0);_.q([_.R(),_.N("design:type",Object)],Qi.prototype,"defaultIconToFilled",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qi.prototype,"dataChanged",null);_.q([_.oe("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qi.prototype,"onTap",null);
Qi=_.q([_.HD({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],Qi);
_.w(Qi,"yt-pdg-comment-chip-renderer",function(){if(qyJ===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;wN8===void 0&&(wN8=document.createElement("template"));var K=wN8;D.call(G,K.content.cloneNode(!0),x.content.firstChild);qyJ=x}x=qyJ;return x},{mode:2});var pe=function(){var x=_.n.apply(this,arguments)||this;x.useSmallAvatars=_.B("small_avatars_for_comments");x.webWatchCompactComments=_.B("web_watch_compact_comments");x.editDialog=null;return x};
_.m(pe,_.n);_.a=pe.prototype;_.a.onShow=function(){_.CW("cmv",void 0,"wn_comments")};
_.a.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"}}}};
_.a.detached=function(){this.editDialog=null;this.expander.reset()};
_.a.updateBackgroundColor=function(){if(this.backgroundColor){var x={"--ytd-comment-paid-background-color":_.jT(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.K7(this.hostElement,x)}else _.K7(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.a.resetExpander=function(){var x;(x=this.expander)==null||x.reset()};
_.a.openEditDialog=function(x){x.dialog&&(this.editDialog=x.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.a.onYtNavigate=function(x){var G=x.detail.endpoint;if(G=_.Y(G,_.biZ)||_.Y(G,_.LR8))x.stopPropagation(),this.openEditDialog(G)};
_.a.onYtCommentboxDismiss=function(){this.editDialog=null;_.K7(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.a.onAuthorThumbnailClicked=function(){var x=this;_.B("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(G,D){x.onAuthorThumbnailEndpointSuccess(D)},
onServerError:function(G,D){_.O9(new _.LL("Failed to resolve the command",D))}}})};
_.a.onAuthorThumbnailEndpointSuccess=function(x){if((x=x==null?void 0:x.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(x,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();x=x==null?void 0:x.clickTrackingParams;var G=_.Fx();x&&G&&_.en().graftServerVe(x,G)}};
_.a.logScreenVe=function(){_.EV(_.en(),66557)};
_.a.onYtCommentboxResize=function(x){var G;(x==null?0:(G=x.detail)==null?0:G.height)&&_.K7(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":x.detail.height+"px"})};
_.Nq.Object.defineProperties(pe.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 x,G=(x=this.commentEntity)==null?void 0:x.author;return G&&(G.isCreator||G.isVerified||G.isArtist)?{renderer:{authorEndpoint:G.channelPageEndpoint?_.Y(G.channelPageEndpoint,_.IP):_.Y(G.channelCommand,_.IP),authorText:{runs:[{text:G.displayName}]},color:G.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:G.isArtist?{iconType:"AUDIO_BADGE"}:
G.isVerified?{iconType:G.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:G.isArtist||G.isVerified?G.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var x,G=(x=this.commentEntity)==null?void 0:x.author;return G!=null&&G.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:G.sponsorBadgeUrl}]},tooltip:G.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var x;return _.Y((x=this.commentSurfaceEntity)==null?void 0:x.pdgCommentChip,_.fCE)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var x;return this.voiceReplyContainerViewModel&&((x=this.voiceReplyContainerViewModel)==null?void 0:x.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var x;return _.Y((x=this.commentSurfaceEntity)==null?void 0:x.voiceReplyContainerViewModel,O6q)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var x;return this.voiceReplyContainerViewModel&&(x=this.voiceReplyContainerViewModel)!=null&&x.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var x,G;return(G=(x=this.commentSurfaceEntity)==null?void 0:x.commentBackgroundColor)!=null?G:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.B("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var x,G;return(((x=this.commentEntity)==null?void 0:(G=x.properties)==null?void 0:G.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var x,G;if(_.B("enable_profile_cards_on_comments")&&((x=this.commentEntity)==null?0:(G=x.author)==null?0:G.profileCardEndpoint)&&this.viewModel.allowProfileCard){var D,K;return _.Y((D=this.commentEntity)==null?void 0:(K=D.author)==null?void 0:K.profileCardEndpoint,_.IP)}var z,y;return _.Y((z=this.commentEntity)==null?void 0:(y=z.avatar)==null?void 0:y.endpoint,_.IP)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var x,G;if(_.B("enable_profile_cards_on_comments")&&((x=this.commentEntity)==null?0:(G=x.author)==null?0:G.channelPageEndpoint)){var D,K;return _.Y((D=this.commentEntity)==null?void 0:(K=D.author)==null?void 0:K.channelPageEndpoint,_.IP)}var z,y;return _.Y((z=this.commentEntity)==null?void 0:(y=z.avatar)==null?void 0:y.endpoint,_.IP)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var x,G,D,K,z=(x=this.commentEntity)==null?void 0:(G=x.avatar)==null?void 0:(D=G.image)==null?void 0:(K=D.sources)==null?void 0:K[0];return z?{thumbnails:[{url:z.url,width:z.width,height:z.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var x,G;return((x=this.commentEntity)==null?0:(G=x.author)==null?0:G.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var x,G;return((x=this.commentEntity)==null?void 0:(G=x.author)==null?void 0:G.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var x,G;return((x=this.commentEntity)==null?void 0:(G=x.properties)==null?void 0:G.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var x;return _.Y((x=this.commentSurfaceEntity)==null?void 0:x.publishedTimeCommand,_.IP)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var x,G;if(((x=this.commentEntity)==null?0:x.translatedContent)&&((G=this.translateButtonState)==null?void 0:G.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var D;if((D=this.voiceReplyContainerViewModel)==null?0:D.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var K,z;return((K=this.commentEntity)==null?void 0:(z=K.properties)==null?void 0:z.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var x,G;return((x=this.commentSharedEntity)==null?void 0:(G=x.strings)==null?void 0:G.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var x,G;return((x=this.commentSharedEntity)==null?void 0:(G=x.strings)==null?void 0:G.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.commentEntity)==null||!x.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var x,G,D=(G=_.Y((x=this.viewModel)==null?void 0:x.translateButton,jpk))!=null?G:{},K,z,y,c,W,e,Q,p,V,L,r;return Object.assign({},D,{untoggledStateData:Object.assign({},D.untoggledStateData,{buttonText:(K=this.commentEntity)==null?void 0:(z=K.translateData)==null?void 0:z.text}),togglingStateData:Object.assign({},D.togglingStateData,{buttonText:(y=this.commentSharedEntity)==null?
void 0:(c=y.strings)==null?void 0:c.translatingText}),toggledStateData:Object.assign({},D.toggledStateData,{buttonText:(W=this.commentSharedEntity)==null?void 0:(e=W.strings)==null?void 0:e.seeOriginalText}),transitionCommand:((Q=this.commentEntity)==null?0:Q.translatedContent)?void 0:_.Y((p=this.commentEntity)==null?void 0:(V=p.translateData)==null?void 0:V.translateComment,_.IP),triStateKey:(L=this.commentEntity)==null?void 0:(r=L.properties)==null?void 0:r.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var x,G,D;return((G=_.Y(_.Y((x=this.toolbarSurface)==null?void 0:x.menuCommand,_.IP),Bq9))==null?void 0:(D=G.menu)==null?void 0:D.menuRenderer)||null}}});
pe.prototype.onYtCommentboxResize=pe.prototype.onYtCommentboxResize;pe.prototype.onYtCommentboxDismiss=pe.prototype.onYtCommentboxDismiss;pe.prototype.onYtNavigate=pe.prototype.onYtNavigate;pe.prototype.resetExpander=pe.prototype.resetExpander;pe.prototype.updateBackgroundColor=pe.prototype.updateBackgroundColor;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],pe.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],pe.prototype,"ytdReduxBehavior",void 0);
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],pe.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],pe.prototype,"ytRendererstamperBehavior",void 0);_.q([_.cD("#author-thumbnail > button"),_.N("design:type",HTMLElement)],pe.prototype,"authorThumbnailAnchor",void 0);_.q([_.R({reflectToAttribute:!0}),_.U("viewModel"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pe.prototype,"linked",null);
_.q([_.U("viewModel","linked"),_.N("design:type",Object),_.N("design:paramtypes",[])],pe.prototype,"linkedCommentBadge",null);_.q([_.R({reflectToAttribute:!0}),_.U("viewModel"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pe.prototype,"pinned",null);_.q([_.U("viewModel","pinned"),_.N("design:type",Object),_.N("design:paramtypes",[])],pe.prototype,"pinnedCommentBadge",null);
_.q([_.U("commentEntity","commentSharedEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],pe.prototype,"authorCommentBadge",null);_.q([_.R({reflectToAttribute:!0}),_.U("authorCommentBadge"),_.N("design:type",Object),_.N("design:paramtypes",[])],pe.prototype,"hasAuthorBadge",null);_.q([_.U("commentEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],pe.prototype,"sponsorCommentBadge",null);
_.q([_.R({reflectToAttribute:!0}),_.U("sponsorCommentBadge"),_.N("design:type",Object),_.N("design:paramtypes",[])],pe.prototype,"hasSponsorBadge",null);_.q([_.U("commentSurfaceEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],pe.prototype,"pdgCommentChipRenderer",null);_.q([_.R({reflectToAttribute:!0}),_.U("voiceReplyContainerViewModel"),_.N("design:type",Object),_.N("design:paramtypes",[])],pe.prototype,"hasVoiceReply",null);
_.q([_.U("commentSurfaceEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],pe.prototype,"voiceReplyContainerViewModel",null);_.q([_.U("voiceReplyContainerViewModel"),_.N("design:type",Object),_.N("design:paramtypes",[])],pe.prototype,"voiceReplyUnavailableText",null);_.q([_.R(),_.N("design:type",Object)],pe.prototype,"data",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],pe.prototype,"viewModel",null);
_.q([_.R({selector:function(x,G){return _.zm(x.entities,"commentSharedEntityPayload",G)},
selectorArgs:["viewModel.sharedKey"]}),_.N("design:type",Object)],pe.prototype,"commentSharedEntity",void 0);_.q([_.R({selector:function(x,G){return _.zm(x.entities,"commentEntityPayload",G)},
selectorArgs:["viewModel.commentKey"]}),_.N("design:type",Object)],pe.prototype,"commentEntity",void 0);_.q([_.R({selector:function(x,G){return _.zm(x.entities,"commentSurfaceEntityPayload",G)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.N("design:type",Object)],pe.prototype,"commentSurfaceEntity",void 0);_.q([_.R({selector:Zvh,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.N("design:type",Object)],pe.prototype,"toolbarSurface",void 0);_.q([_.R({selector:MhV,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.N("design:type",Object)],pe.prototype,"translateButtonState",void 0);
_.q([_.U("commentSurfaceEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],pe.prototype,"backgroundColor",null);_.q([_.R({reflectToAttribute:!0}),_.U("viewModel"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pe.prototype,"optimalReadingWidthComments",null);_.q([_.cD("ytd-expander"),_.N("design:type",Object)],pe.prototype,"expander",void 0);
_.q([_.yf("backgroundColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pe.prototype,"updateBackgroundColor",null);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],pe.prototype,"useSmallAvatars",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],pe.prototype,"webWatchCompactComments",void 0);_.q([_.R({reflectToAttribute:!0}),_.U("commentEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],pe.prototype,"isReply",null);
_.q([_.U("commentEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],pe.prototype,"authorThumbnailEndpoint",null);_.q([_.U("commentEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],pe.prototype,"authorNameEndpoint",null);_.q([_.U("commentEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],pe.prototype,"authorThumbnail",null);_.q([_.U("commentEntity"),_.N("design:type",String),_.N("design:paramtypes",[])],pe.prototype,"authorTextClass",null);
_.q([_.U("commentEntity"),_.N("design:type",String),_.N("design:paramtypes",[])],pe.prototype,"authorChannelName",null);_.q([_.U("commentEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],pe.prototype,"publishedTime",null);_.q([_.U("commentSurfaceEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],pe.prototype,"publishedTimeCommand",null);
_.q([_.U("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.N("design:type",Object),_.N("design:paramtypes",[])],pe.prototype,"contentText",null);_.q([_.yf("contentText"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pe.prototype,"resetExpander",null);_.q([_.U("commentEntity"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pe.prototype,"shouldShowReadMoreInitially",null);
_.q([_.U("commentSharedEntity"),_.N("design:type",String),_.N("design:paramtypes",[])],pe.prototype,"expandText",null);_.q([_.U("commentSharedEntity"),_.N("design:type",String),_.N("design:paramtypes",[])],pe.prototype,"collapseText",null);_.q([_.U("commentEntity"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pe.prototype,"shouldShowTranslateButton",null);
_.q([_.U("commentEntity","commentSharedEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],pe.prototype,"translateButton",null);_.q([_.U("toolbarSurface"),_.N("design:type",Object),_.N("design:paramtypes",[])],pe.prototype,"overflowMenuRenderer",null);_.q([_.R(),_.N("design:type",Object)],pe.prototype,"editDialog",void 0);_.q([_.cD("ytd-comment-dialog-renderer"),_.N("design:type",Object)],pe.prototype,"editCommentDialogContainer",void 0);
_.q([_.cD("ytd-comment-reply-dialog-renderer"),_.N("design:type",Object)],pe.prototype,"editReplyDialogContainer",void 0);_.q([_.oe("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],pe.prototype,"onYtNavigate",null);_.q([_.oe("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],pe.prototype,"onYtCommentboxDismiss",null);
_.q([_.oe("yt-commentbox-resize"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],pe.prototype,"onYtCommentboxResize",null);pe=_.q([_.d({disableElementRegistration:!0,is:"ytd-comment-view-model"})],pe);
_.w(pe,"ytd-comment-view-model",function(){if(u9Z!==void 0)return u9Z;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return u9Z=x},{mode:_.Ge("kevlar_poly_si_batch_j025")?1:2});var Vi=function(){var x=_.n.apply(this,arguments)||this;x.modern=_.B("web_modern_buttons");x.isWatchGrid=_.B("kevlar_watch_grid");x.buttonOverrides={style:"call-to-action"};x.JSC$13764_spinnerEl=null;return x};
_.m(Vi,_.n);_.a=Vi.prototype;_.a.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.a.configureRendererStamper=function(){return{"data.teaserContents":{id:"teaser-replies",mapping:{commentViewModel:{component:"ytd-comment-view-model"}}},"data.contents":{id:"contents",mapping:{commentViewModel:{component:"ytd-comment-view-model"},continuationItemRenderer:{component:"ytd-continuation-item-renderer",params:{showButton:!0,isCommentsSection:!1},properties:{buttonOverrides:"[[buttonOverrides]]"}}}}}};
_.a.attached=function(){this.isShowRepliesVisible=!0};
_.a.dataChanged=function(){var x=this.expanderContents;x&&(x.hidden=!0);this.isLoading=!1};
_.a.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.a.isLoadingChanged=function(){this.isLoading&&!this.JSC$13764_spinnerEl&&(this.JSC$13764_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.kA(this.expanderContents).appendChild(this.JSC$13764_spinnerEl));this.JSC$13764_spinnerEl&&(this.JSC$13764_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var x;(x=this.contents)==null||x.classList.remove("reloading")}};
_.a.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var x=_.Y(this.data.viewReplies,_.$V);x&&this.ytRendererBehavior.logExplicitClick(x)};
_.a.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var x=_.Y(this.data.hideReplies,_.$V);x&&this.ytRendererBehavior.logExplicitClick(x)};
_.a.isShowMoreChanged=function(){var x=_.kA(this.hostElement).querySelector("#expander-contents");x&&(x.hidden=this.isShowRepliesVisible)};
_.a.computeAlign=function(){if(this.modern){var x;return!((x=this.data)==null?0:x.viewRepliesCreatorThumbnail)}};
_.Nq.Object.defineProperties(Vi.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var x,G=(x=this.data)==null?void 0:x.contents;return!!G&&G.length>0&&!!G[G.length-1].continuationItemRenderer}}});
Vi.prototype.isShowMoreChanged=Vi.prototype.isShowMoreChanged;Vi.prototype.isLoadingChanged=Vi.prototype.isLoadingChanged;Vi.prototype.triggerFirstContinuation=Vi.prototype.triggerFirstContinuation;Vi.prototype.dataChanged=Vi.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Vi.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Vi.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.I(_.Oh),_.N("design:type",Object)],Vi.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Vi.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Vi.prototype,"modern",void 0);_.q([_.R(),_.N("design:type",Boolean)],Vi.prototype,"isLoading",void 0);_.q([_.R({value:!0}),_.N("design:type",Boolean)],Vi.prototype,"isShowRepliesVisible",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],Vi.prototype,"useNewFormatting",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Vi.prototype,"isWatchGrid",void 0);_.q([_.R(),_.N("design:type",Object)],Vi.prototype,"buttonOverrides",void 0);_.q([_.cD("#expander-contents"),_.N("design:type",HTMLElement)],Vi.prototype,"expanderContents",void 0);_.q([_.cD("ytd-continuation-item-renderer"),_.N("design:type",Object)],Vi.prototype,"continuationItemRenderer",void 0);_.q([_.cD("#contents"),_.N("design:type",HTMLElement)],Vi.prototype,"contents",void 0);
_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vi.prototype,"dataChanged",null);_.q([_.U("data.contents"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Vi.prototype,"hasContinuation",null);_.q([_.oe("yt-expander-more-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vi.prototype,"triggerFirstContinuation",null);
_.q([_.yf("isLoading"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vi.prototype,"isLoadingChanged",null);_.q([_.yf("isShowRepliesVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vi.prototype,"isShowMoreChanged",null);Vi=_.q([_.d({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],Vi);
_.w(Vi,"ytd-comment-replies-renderer",function(){if(UAi!==void 0)return UAi;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return UAi=x},{mode:1});var NFZ;var b$=function(){var x=_.n.apply(this,arguments)||this;x.isOpen=!1;x.commentDialog=null;x.useSmallAvatars=_.B("small_avatars_for_comments");x.useSmallAvatarsEngagementPanelOnly=_.B("small_avatars_for_comments_ep");x.placeholderFocusListener=null;x.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return x};
_.m(b$,_.n);_.a=b$.prototype;_.a.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]]"}}}}}};
_.a.ready=function(){var x=this,G=_.kA(this.hostElement).querySelector("#placeholder-area"),D=_.kA(this.hostElement).querySelector("#simplebox-placeholder"),K=function(z){z.stopPropagation();z instanceof KeyboardEvent&&z.type==="keypress"&&z.keyCode!==13&&z.keyCode!==32||x.openDialog()};
this.placeholderFocusListener=K;D.addEventListener("focus",this.placeholderFocusListener);G.addEventListener("tap",K);G.addEventListener("keypress",K)};
_.a.maybeRemoveFocusEventListener=function(){var x;(x=this.data)!=null&&x.prepareAccountEndpoint&&!_.B("web_comments_simplebox_modal_focus_on_tap_ks")&&(x=_.kA(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(x.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.a.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.a.openDialog=function(){this.data&&(this.data.prepareAccountEndpoint?_.B("web_comment_simplebox_resolve_polymer_command_ks")?_.y2.instance.resolveCommand(this.data.prepareAccountEndpoint):_.lb(this.data.prepareAccountEndpoint,this.hostElement):(this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)}),this.isOpen=!0,_.kA(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()))};
_.a.onYtCommentboxDismiss=function(x){x.stopPropagation();this.isOpen=!1};
_.a.onCreateCommentAction=function(x){this.get("createCommentAction.contents",x)&&(this.isOpen=!1)};
_.a.computeCommentDialog=function(x){return{placeholderText:x.placeholderText,authorThumbnail:x.authorThumbnail,submitButton:x.submitButton,imageButton:x.imageButton,cancelButton:x.cancelButton,emojiButton:x.emojiButton,emojis:x.emojis,emojiPicker:x.emojiPicker,aadcGuidelinesStateEntityKey:x.aadcGuidelinesStateEntityKey,openAadcDialog:x.openAadcDialog,unicodeEmojisUrl:x.unicodeEmojisUrl}};
_.a.onHideIdentityChip=function(x){_.Y(x,spZ)&&this.set("data.placeholderText",_.Y(x,spZ).placeholderText)};
b$.prototype.onYtCommentboxDismiss=b$.prototype.onYtCommentboxDismiss;b$.prototype.dataChanged=b$.prototype.dataChanged;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],b$.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],b$.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],b$.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],b$.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],b$.prototype,"isOpen",void 0);_.q([_.R(),_.N("design:type",Object)],b$.prototype,"commentDialog",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],b$.prototype,"engagementPanel",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],b$.prototype,"useSmallAvatars",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],b$.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],b$.prototype,"enableCreationBox",void 0);_.q([_.R(),_.N("design:type",Boolean)],b$.prototype,"showCreateDialog",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],b$.prototype,"dataChanged",null);
_.q([_.oe("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],b$.prototype,"onYtCommentboxDismiss",null);b$=_.q([_.d({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],b$);
_.w(b$,"ytd-comment-simplebox-renderer",function(){if(NFZ!==void 0)return NFZ;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return NFZ=x},{mode:1});var vwZ;_.HH("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var Le=function(){var x=_.n.apply(this,arguments)||this;x.addHoverEffect=_.B("swatcheroo_comments_hover_effect");return x};
_.m(Le,_.n);Le.prototype.onTap=function(x){if(this.addHoverEffect&&!this.engagementPanel&&!_.u_(_.gA(x)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var G;((G=window.getSelection())==null?0:G.toString().length)||_.lb({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
Le.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.Nq.Object.defineProperties(Le.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.data)!=null&&x.commentViewModel)return _.Y(this.data.commentViewModel,IUE)}}});
Le.prototype.onTap=Le.prototype.onTap;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Le.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Le.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Le.prototype,"addHoverEffect",void 0);_.q([_.R(),_.N("design:type",Object)],Le.prototype,"data",void 0);
_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Le.prototype,"commentViewModel",null);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],Le.prototype,"engagementPanel",void 0);_.q([_.oe("tap"),_.oe("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Le.prototype,"onTap",null);Le=_.q([_.d({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],Le);
_.w(Le,"ytd-comment-thread-renderer",function(){if(vwZ!==void 0)return vwZ;var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer"> </ytd-comment-view-model>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer"></div>\n');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return vwZ=x},{mode:_.Ge("kevlar_poly_si_batch_j025")?1:2});var Jqs;var BF=function(){var x=_.n.apply(this,arguments)||this;x.modernTypography=_.B("web_modern_typography");x.compactHeader=_.B("web_watch_compact_comments_header");x.hidePanelButton=!1;x.isPostSchedulingEnabled=_.B("enable_post_scheduling");x.hasFinishedStamping=!1;x.JSC$13782_handleOpenPostCommentDialogActionAfterStamp=!1;x.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return x};
_.m(BF,_.n);_.a=BF.prototype;
_.a.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"}}}};
_.a.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.a.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$13782_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.a.onYtServiceRequestSent=function(x,G){if(!_.B("kevlar_command_handler")&&G.actions)for(x=0;x<G.actions.length;x++){var D=G.actions[x];_.Y(D,kFE)&&_.kA(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.Y(D,kFE))}};
_.a.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var x;if(this.getPrefilledBackstagePostDialog((x=this.data)==null?void 0:x.actions)){_.kA(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var G=_.kA(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;G&&_.w1(this,function(){G.focus();G.openDialog&&G.openDialog()})}}else this.hasActionsChange=!0};
_.a.computeIsBackstage=function(x){return x};
_.a.onYtCommentboxDismiss=function(){_.kA(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.a.removePrefilledDialog=function(x){if(x==null?0:x.actions){for(var G=x.actions.length-1;G>=0;G--){var D=void 0;((D=_.Y(x.actions[G],p$Z))==null?0:D.dialog)&&delete x.actions[G]}this.set("data",void 0);this.set("data",x)}};
_.a.getPrefilledBackstagePostDialog=function(x){if(x)for(var G=0;G<x.length;G++){var D=x[G],K=void 0;if((K=_.Y(D,p$Z))==null?0:K.dialog)return _.Y(D,p$Z).dialog}return null};
_.a.computeBackstagePostDialog=function(x){return x&&(this.getPrefilledBackstagePostDialog(x.actions)||x.createRenderer)};
_.a.dataChanged=function(){if(this.data){var x=this.data.customEmojis,G=this.data.unicodeEmojisUrl;_.Ch.clear();G&&_.hnZ(_.Ch,G);x&&_.Ch.load(x)}};
_.a.handleSignalActionOpenPostCommentDialogAction=function(){var x=_.kA(this.hostElement).querySelector("ytd-comment-simplebox-renderer");x?x.openDialog():this.JSC$13782_handleOpenPostCommentDialogActionAfterStamp=!0};
_.Nq.Object.defineProperties(BF.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.B("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var x,G,D,K,z,y,c;return!this.hidePanelButton&&_.B("kevlar_watch_comments_panel_button")&&((c=_.Y((x=this.data)==null?void 0:(G=x.sortMenu)==null?void 0:(D=G.sortFilterSubMenuRenderer)==null?void 0:(K=D.subMenuItems)==null?void 0:(z=K[0])==null?void 0:(y=z.serviceEndpoint)==null?void 0:y.commandMetadata,_.fC))==null?void 0:c.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.Wg("MINIPLAYER_EXPAND_LABEL"),text:_.gK(_.Wg("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
BF.prototype.dataChanged=BF.prototype.dataChanged;BF.prototype.onYtCommentboxDismiss=BF.prototype.onYtCommentboxDismiss;BF.prototype.observePrefilledBackstagePostDialog=BF.prototype.observePrefilledBackstagePostDialog;BF.prototype.onYtServiceRequestSent=BF.prototype.onYtServiceRequestSent;BF.prototype.onStampFinished=BF.prototype.onStampFinished;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],BF.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],BF.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],BF.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],BF.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],BF.prototype,"modernTypography",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],BF.prototype,"compactHeader",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],BF.prototype,"engagementPanel",void 0);_.q([_.R(),_.N("design:type",Object)],BF.prototype,"hidePanelButton",void 0);_.q([_.R({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.N("design:type",Boolean)],BF.prototype,"isBackstage",void 0);_.q([_.R({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.N("design:type",Object)],BF.prototype,"backstagePostDialog",void 0);
_.q([_.R(),_.N("design:type",Object)],BF.prototype,"isPostSchedulingEnabled",void 0);_.q([_.R({reflectToAttribute:!0}),_.U("data","showCommentsPanelButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],BF.prototype,"useSpaceBetween",null);_.q([_.R({reflectToAttribute:!0}),_.U("data","hidePanelButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],BF.prototype,"showCommentsPanelButton",null);
_.q([_.U("data","showCommentsPanelButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],BF.prototype,"commentsPanelButtonData",null);_.q([_.oe("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BF.prototype,"onStampFinished",null);_.q([_.oe("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Ou]),_.N("design:returntype")],BF.prototype,"onYtServiceRequestSent",null);
_.q([_.yf("data.actions"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BF.prototype,"observePrefilledBackstagePostDialog",null);_.q([_.oe("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],BF.prototype,"onYtCommentboxDismiss",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BF.prototype,"dataChanged",null);
BF=_.q([_.d({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],BF);
_.w(BF,"ytd-comments-header-renderer",function(){if(Jqs!==void 0)return Jqs;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Jqs=x},{mode:1});var f1h;var rp=function(){return _.n.apply(this,arguments)||this};
_.m(rp,_.n);_.q([_.R(),_.N("design:type",Object)],rp.prototype,"data",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],rp.prototype,"ytRendererBehavior",void 0);rp=_.q([_.d({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],rp);
_.w(rp,"ytd-destination-button-renderer",function(){if(f1h!==void 0)return f1h;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return f1h=x},{mode:1});var t0h;var sm=function(){var x=_.n.apply(this,arguments)||this;x.isRichGrid=!1;x.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};x.modernTypography=_.B("web_modern_typography");return x};
_.m(sm,_.n);_.a=sm.prototype;_.a.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.a.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.a.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.a.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var x;if((x=this.data)==null||!x.isExpanded){x=this.hostElement.clientWidth;var G;if(x&&(G=this.data)!=null&&G.destinationButtons){G=Math.floor((x+4)/214);x=this.data.destinationButtons.length;var D=Math.ceil(x/G);this.fullyVisibleRows=x%G===1&&D===2?1:Math.min(D,2);this.isShowMoreVisible=this.fullyVisibleRows<D}}}};
_.a.updateRichGridDestinationButtonsVisibility=function(){var x,G;if(this.isRichGrid&&((x=this.data)==null||!x.isExpanded)&&(G=this.data)!=null&&G.destinationButtons){x=this.richGridItemsPerRow+1;G=this.data.destinationButtons.length;var D=Math.ceil(G/x);this.fullyVisibleRows=G%x===1&&D===2?1:Math.min(D,2);this.isShowMoreVisible=this.fullyVisibleRows<D}};
_.a.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
sm.prototype.updateRichGridDestinationButtonsVisibility=sm.prototype.updateRichGridDestinationButtonsVisibility;_.q([_.R(),_.N("design:type",Object)],sm.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Number)],sm.prototype,"fullyVisibleRows",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],sm.prototype,"isShowMoreVisible",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],sm.prototype,"isRichGrid",void 0);
_.q([_.R({selector:_.m8,value:0}),_.N("design:type",Number)],sm.prototype,"richGridItemsPerRow",void 0);_.q([_.R(),_.N("design:type",Object)],sm.prototype,"gridStateActionMap",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],sm.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],sm.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],sm.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],sm.prototype,"ytdReduxBehavior",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],sm.prototype,"modernTypography",void 0);_.q([_.yf("data","richGridItemsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sm.prototype,"updateRichGridDestinationButtonsVisibility",null);
sm=_.q([_.d({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],sm);
_.w(sm,"ytd-destination-shelf-renderer",function(){if(t0h!==void 0)return t0h;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return t0h=x},{mode:1});var k9k;var YX=function(){return _.n.apply(this,arguments)||this};
_.m(YX,_.n);YX.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"}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],YX.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],YX.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],YX.prototype,"data",void 0);YX=_.q([_.d({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],YX);
_.w(YX,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(k9k!==void 0)return k9k;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return k9k=x},{mode:1});var P3o;var mB=function(){var x=_.n.apply(this,arguments)||this;x.disableAnimation=!1;x.isSlimlineSurvey=!1;x.isSlimlineSurveyFollowUp=!1;x.isShortsStyle=!1;return x};
_.m(mB,_.n);mB.prototype.onTap=function(x){x.preventDefault();this.data&&_.h$(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.Nq.Object.defineProperties(mB.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 x,G,D,K,z;return((x=this.data)==null?0:x.checked)?(G=this.data)==null?void 0:(D=G.onStateIcon)==null?void 0:D.iconType:(K=this.data)==null?void 0:(z=K.defaultStateIcon)==null?void 0:z.iconType}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],mB.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],mB.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],mB.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],mB.prototype,"disableAnimation",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],mB.prototype,"isSlimlineSurvey",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],mB.prototype,"isSlimlineSurveyFollowUp",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],mB.prototype,"isShortsStyle",void 0);_.q([_.U("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],mB.prototype,"isAnimatedIcon",null);
_.q([_.U("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.N("design:type",Number),_.N("design:paramtypes",[])],mB.prototype,"iconSize",null);_.q([_.U("isShortsStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],mB.prototype,"isDarkTheme",null);_.q([_.U("data.checked"),_.N("design:type",Object),_.N("design:paramtypes",[])],mB.prototype,"icon",null);mB=_.q([_.d({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],mB);
_.w(mB,"ytd-rating-survey-option-renderer",function(){if(P3o!==void 0)return P3o;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return P3o=x},{mode:2});var Ew7;var HF=function(){var x=_.n.apply(this,arguments)||this;x.firstResponseText=null;x.lastResponseText=null;x.selectedNonStarOption=null;x.hideOptions=!1;x.hideUndoButton=!0;x.disableAnimation=!1;x.showResponseRangeText=!1;x.selectedRatingIndex=-1;x.isSlimlineSurvey=!1;x.isSlimlineSurveyFollowUp=!1;x.isShortsStyle=!1;x.slimlineSurveyRatingSelectedIndex=-1;return x};
_.m(HF,_.n);_.a=HF.prototype;_.a.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.a.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.a.onOptionChange=function(x,G){var D=this;x=G.onStateIcon&&G.defaultStateIcon&&G.onStateIcon.iconType===G.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(c,W){c.responseText===G.responseText?D.isSlimlineSurvey?(D.selectedRatingIndex=W,D.ytdReduxBehavior.dispatch(DEq(W))):(D.setSurveyOptionValue(W,!0,"checked"),D.setSurveyOptionValue(W,!0,"selected")):(D.setSurveyOptionValue(W,!1,"checked"),D.setSurveyOptionValue(W,
!1,"selected"))});
else if(x)this.selectedNonStarOption=G,this.hideOptions=!0;else{var K=this.ytRendererBehavior.getSimpleString(G.responseText),z=!0;this.getOptionRenderers().forEach(function(c,W){D.setSurveyOptionValue(W,z,"checked");D.setSurveyOptionValue(W,!1,"selected");D.ytRendererBehavior.getSimpleString(c.responseText)===K&&(z=!1,D.setSurveyOptionValue(W,!0,"selected"))})}x=G.responseEndpoint;
var y;G.followUpCommand&&(y=_.Y(G.followUpCommand,qk9));this.isSlimlineSurvey?(this.resetComponent(),_.xO(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.xO(this.hostElement,"ytd-inline-survey-rating-select-action",[x,y])};
_.a.showSelectedOption=function(){var x=this;_.Fj.addJob(function(){var G=x.getOptionRenderers()[x.slimlineSurveyRatingSelectedIndex];x.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),G)},8,100)};
_.a.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(x){var G;return(G=_.Y(x,vpJ))!=null?G:{}}):[]};
_.a.onUndoClick=function(){this.resetComponent();_.xO(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.a.setSurveyOptionValue=function(x,G,D){this.notifyPath("data.ratings."+x+".ratingSurveyOptionRenderer."+D);this.set("data.ratings."+x+".ratingSurveyOptionRenderer."+D,G)};
_.a.resetComponent=function(){var x=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var G=this.getOptionRenderers(),D,K;this.firstResponseText=(K=(D=G[0])==null?void 0:D.responseText)!=null?K:null;var z,y;this.lastResponseText=(y=(z=G[G.length-1])==null?void 0:z.responseText)!=null?y:null;G.forEach(function(c,W){x.setSurveyOptionValue(W,!1,"checked");x.setSurveyOptionValue(W,!1,"selected")})};
_.Nq.Object.defineProperties(HF.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
HF.prototype.onOptionChange=HF.prototype.onOptionChange;HF.prototype.dataChanged=HF.prototype.dataChanged;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],HF.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],HF.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],HF.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],HF.prototype,"data",void 0);
_.q([_.R(),_.N("design:type",Object)],HF.prototype,"firstResponseText",void 0);_.q([_.R(),_.N("design:type",Object)],HF.prototype,"lastResponseText",void 0);_.q([_.R(),_.N("design:type",Object)],HF.prototype,"selectedNonStarOption",void 0);_.q([_.R(),_.N("design:type",Object)],HF.prototype,"hideOptions",void 0);_.q([_.R(),_.N("design:type",Object)],HF.prototype,"hideUndoButton",void 0);_.q([_.R(),_.N("design:type",Object)],HF.prototype,"disableAnimation",void 0);
_.q([_.R(),_.N("design:type",Object)],HF.prototype,"showResponseRangeText",void 0);_.q([_.R(),_.N("design:type",Object)],HF.prototype,"selectedRatingIndex",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],HF.prototype,"isSlimlineSurvey",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],HF.prototype,"isSlimlineSurveyFollowUp",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],HF.prototype,"isShortsStyle",void 0);_.q([_.R({selector:function(x){return x.ui.slimlineSurveyRatingSelectedIndex}}),
_.N("design:type",Object)],HF.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.q([_.U("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],HF.prototype,"isSingleSelect",null);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HF.prototype,"dataChanged",null);
_.q([_.oe("ytd-rating-survey-option-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],HF.prototype,"onOptionChange",null);HF=_.q([_.d({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],HF);
_.w(HF,"ytd-rating-survey-renderer",function(){if(Ew7!==void 0)return Ew7;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Ew7=x},{mode:1});var hdo;var xQE;var GoZ;var vvQ=(bQ.FIRSTDAYOFWEEK+1)%7,DQZ=function(x,G,D,K){var z="";if(K.selection&&dbE(K.selection))Q4(x,K.selection)&&(z+=" selected");else if(K.selection&&wIf(K.selection)){var y=K.selection.selectionState||"START_DATE";Q4(x,K.selection.start)&&(z+=" period-start ",y==="START_DATE"&&(z+="selected"));Q4(x,K.selection.end)&&(z+=" period-end ",y==="END_DATE"&&(z+="selected"));p1(x,K.selection.start)||p1(K.selection.end,x)||(z+=" highlighted")}if(p1(G,K.start)||p1(K.end,G))z+=" disabled";K.circleToday&&
Q4(G,D)&&(z+=" today");return z};var $X=function(){return _.n.apply(this,arguments)||this};
_.m($X,_.n);_.a=$X.prototype;_.a.attached=function(){var x=this;_.w1(this,function(){x.JSC$13816_calendarMain.scrollHeight>0&&(x.calendarConfig.selection?x.scrollToDate(qZ$(x.calendarConfig.selection)):x.scrollToDate(x.calendarConfig.end))})};
_.a.updateSelection=function(x){x=J83(Object.assign({},this.calendarConfig,{selection:x}),DQZ);this.splice.apply(this,["renderData.months",0,x.length].concat(_.B5(x)))};
_.a.scrollToDate=function(x){this.renderData&&(x=fGE(x,this.renderData),x!==void 0&&this.JSC$13816_calendarMain.scrollToIndex(x))};
_.a.scrollToNextMonth=function(){this.JSC$13816_calendarMain.scrollToIndex(this.JSC$13816_calendarMain.firstVisibleIndex+1)};
_.a.scrollToPrevMonth=function(){this.JSC$13816_calendarMain.firstVisibleIndex===0&&this.JSC$13816_calendarMain.scrollTo(0,0);this.JSC$13816_calendarMain.scrollToIndex(this.JSC$13816_calendarMain.firstVisibleIndex-1)};
_.a.handleDayClick=function(x){_.xO(this.hostElement,"ytd-calendar-date-clicked",[x.model.day.date])};
_.a.handleDayMouseDown=function(x){x.preventDefault();_.xO(this.hostElement,"ytd-calendar-date-mousedown",[x.model.day.date])};
_.a.handleDayMouseUp=function(x){_.xO(this.hostElement,"ytd-calendar-date-mouseup",[x.model.day.date])};
_.a.handleDayMouseEnter=function(x){x.preventDefault();_.xO(this.hostElement,"ytd-calendar-date-mouseenter",[x.model.day.date])};
_.a.handleDayMouseLeave=function(x){_.xO(this.hostElement,"ytd-calendar-date-mouseleave",[x.model.day.date])};
_.Nq.Object.defineProperties($X.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var x=this.calendarConfig,G=DQZ;G=G===void 0?DQZ:G;for(var D=[],K=0;K<7;K++)D.push(bQ.NARROWWEEKDAYS[(K+vvQ)%7]);return{months:J83(x,G),daysOfWeekLabel:D}}}});
_.q([_.R(),_.N("design:type",Object)],$X.prototype,"calendarConfig",void 0);_.q([_.cD("#calendar-main"),_.N("design:type",Object)],$X.prototype,"JSC$13816_calendarMain",void 0);_.q([_.U("calendarConfig"),_.N("design:type",Object),_.N("design:paramtypes",[])],$X.prototype,"renderData",null);$X=_.q([_.d({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],$X);
_.w($X,"ytd-scrollable-calendar",function(){if(GoZ!==void 0)return GoZ;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return GoZ=x},{mode:2});var K2Z;var zI0;var FZ=function(){var x=_.n.apply(this,arguments)||this;x.hideCharCounter=!1;x.hideLabel=!1;x.noLabelFloat=!1;x.autoValidate=!0;x.invalid=!1;x.disabled=!1;x.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return x};
_.m(FZ,_.n);_.a=FZ.prototype;_.a.reset=function(x){this.value=x&&this.data?this.data.value=x:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.a.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.a.focusTextInput=function(){this.input.focus()};
_.a.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()};
_.a.valueChanged=function(){var x,G;if(((x=this.data)==null?0:x.value)||((G=this.data)==null?void 0:G.value)==="")this.value=this.data.value;else{var D;((D=this.data)==null?void 0:D.value)!==void 0||this.value||(this.value="")}};
_.a.computeLabel=function(x,G){return G?"":_.u7(x)};
_.a.computeAriaLabel=function(x,G){return G?_.u7(x):""};
_.a.computeErrorMessage=function(x,G,D,K){!x&&G?x=D||this.strings.REQUIRED_LABEL:(x=_.u7(K),x=_.Td(x,"&")?"document"in _.Df?h6O(x):xmC(x):x);return x};
_.a.computeType=function(x){return x==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.a.onTextValueChanged=function(x){this.value=x.detail.value;var G;(G=this.onValueChanged)==null||G.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.a.handleUpdateTextInputFormFieldRendererCommand=function(x){(x=_.Y(x,WHh))&&this.data&&this.data.id===x.id&&(x.invalid!==void 0&&(this.invalid=x.invalid),x.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",x.invalidValueErrorMessage))};
_.a.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Xt("value-changed",this.value))};
_.a.updateInvalidFromBinding=function(x){this.invalid=x.detail.value};
_.Nq.Object.defineProperties(FZ.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var x;return!((x=this.data)==null||!x.isMultiline)}}});
FZ.prototype.valueChangedForBinding=FZ.prototype.valueChangedForBinding;FZ.prototype.valueChanged=FZ.prototype.valueChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],FZ.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],FZ.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],FZ.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],FZ.prototype,"data",void 0);_.q([_.R(),_.N("design:type",String)],FZ.prototype,"value",void 0);_.q([_.R(),_.N("design:type",String)],FZ.prototype,"pattern",void 0);_.q([_.R(),_.N("design:type",String)],FZ.prototype,"errorMessage",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],FZ.prototype,"componentStyle",void 0);_.q([_.R(),_.N("design:type",Object)],FZ.prototype,"hideCharCounter",void 0);
_.q([_.R(),_.N("design:type",Object)],FZ.prototype,"hideLabel",void 0);_.q([_.R(),_.N("design:type",Object)],FZ.prototype,"noLabelFloat",void 0);_.q([_.R(),_.N("design:type",Function)],FZ.prototype,"onValueChanged",void 0);_.q([_.R(),_.N("design:type",Boolean)],FZ.prototype,"isMultilineOverride",void 0);_.q([_.R(),_.N("design:type",Object)],FZ.prototype,"autoValidate",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],FZ.prototype,"invalid",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],FZ.prototype,"disabled",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],FZ.prototype,"enableOverlayTheme",void 0);_.q([_.R({value:{REQUIRED_LABEL:_.Wg("REQUIRED_LABEL",void 0,"Required")}}),_.N("design:type",Object)],FZ.prototype,"strings",void 0);_.q([_.cD("#input"),_.N("design:type",Object)],FZ.prototype,"input",void 0);
_.q([_.U("data","isMultilineOverride"),_.N("design:type",Object),_.N("design:paramtypes",[])],FZ.prototype,"isMultiline",null);_.q([_.Z6("data.value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],FZ.prototype,"valueChanged",null);_.q([_.yf("value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],FZ.prototype,"valueChangedForBinding",null);FZ=_.q([_.HD({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],FZ);
_.w(FZ,"yt-text-input-form-field-renderer",function(){if(zI0===void 0){var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-text-input-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_text_input_form_field_renderer.yt.text.input.form.field.renderer.css.js--\x3e<template is="dom-if" if="[[isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-textarea id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" max-rows="5" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" rows="[[data.rows]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-textarea>\n</template>\n<template is="dom-if" if="[[!isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-input id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="[[!data.hideCharCounter]]" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" type="[[computeType(data.type)]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-input>\n</template>\n');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;K2Z===void 0&&(K2Z=document.createElement("template"));var K=K2Z;D.call(G,K.content.cloneNode(!0),x.content.firstChild);zI0=x}x=zI0;return x},{mode:2});var Ce=function(){var x=_.n.apply(this,arguments)||this;x.data=void 0;x.selectionState="START_DATE";x.isStartDateInvalid=!1;x.isEndDateInvalid=!1;x.autoapply=!1;x.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 x};
_.m(Ce,_.n);_.a=Ce.prototype;_.a.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"}}}}};
_.a.focus=function(){this.startDateInput.focus()};
_.a.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:V4(this.data.selection.start),end:V4(this.data.selection.end)})};
_.a.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.a.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.oT(this.selectionState)}};
_.a.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.a.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.a.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.a.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var x=this.calendar.calendarConfig,G=x.end;x=kN3({start:x.start,end:this.endDate||G},this.startDateInput.value||"");this.isStartDateInvalid=!x.isValid;x.isValid&&(x=x.value,this.selection=this.endDate?{start:x,end:this.endDate}:x,this.calendar.scrollToDate(x));this.updateInvalidState()}};
_.a.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var x=this.calendar.calendarConfig,G=x.start;x=kN3({start:this.startDate||G,end:x.end},this.endDateInput.value||"");this.isEndDateInvalid=!x.isValid;x.isValid&&(x=x.value,this.selection={start:this.startDate,end:x},this.calendar.scrollToDate(x));this.updateInvalidState()}};
_.a.handleCalendarDateClicked=function(x){var G=this.selection&&qZ$(this.selection),D=this.selection&&N3V(this.selection);G&&!p1(x,G)&&this.selectionState==="END_DATE"?(this.selection={start:G,end:x},this.selectionState="START_DATE"):(D&&!p1(D,x)?this.selection={start:x,end:D}:this.selection=x,this.selectionState="END_DATE")};
_.a.handleCalendarDateMouseDown=function(x){this.selection&&!dbE(this.selection)&&(this.dragPivot=Q4(x,this.selection.start)?this.selection.end:Q4(x,this.selection.end)?this.selection.start:x)};
_.a.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.a.handleCalendarDateMouseEnter=function(x){this.dragPivot&&(this.selection={start:function(G,D){return p1(G,D)?G:D}(this.dragPivot,x),
end:function(G,D){return p1(G,D)?D:G}(this.dragPivot,x)},this.dragPivot||(this.selectionState="START_DATE"))};
_.a.handleCalendarDateMouseLeave=function(){};
_.a.handleCalendarSubmitDateRange=function(){this.selection&&!dbE(this.selection)&&_.xO(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.a.updateInvalidState=function(){var x=function(G,D){D?G.setAttribute("invalid",""):G.removeAttribute("invalid")};
x(this.startDateInput,this.isStartDateInvalid);x(this.endDateInput,this.isEndDateInvalid)};
_.a.updateDateStrings=function(){this.selection&&(dbE(this.selection)?uPn(this.selection):(uPn(this.selection.start),uPn(this.selection.end)))};
_.a.updateCalendarSelection=function(x){this.calendar.updateSelection(Object.assign({},x,{selectionState:this.selectionState}))};
_.a.updateIsStartDateInvalidFromBinding=function(x){this.isStartDateInvalid=x.detail.value};
_.a.updateIsEndDateInvalidFromBinding=function(x){this.isEndDateInvalid=x.detail.value};
_.a.updateStartDateStringFromBinding=function(){};
_.a.updateEndDateStringFromBinding=function(){};
_.Nq.Object.defineProperties(Ce.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:V4(this.data.dateRangeStart),end:V4(this.data.dateRangeEnd),selection:{start:V4(this.data.selection.start),end:V4(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&qZ$(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&N3V(this.selection)}}});
Ce.prototype.resetTextboxes=Ce.prototype.resetTextboxes;Ce.prototype.observeSelection=Ce.prototype.observeSelection;Ce.prototype.dataChanged=Ce.prototype.dataChanged;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],Ce.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Ce.prototype,"ytRendererstamperBehavior",void 0);_.q([_.cD("#calendar"),_.N("design:type",Object)],Ce.prototype,"calendar",void 0);
_.q([_.cD("#start-date"),_.N("design:type",Object)],Ce.prototype,"startDateInput",void 0);_.q([_.cD("#end-date"),_.N("design:type",Object)],Ce.prototype,"endDateInput",void 0);_.q([_.R(),_.N("design:type",Object)],Ce.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],Ce.prototype,"selection",void 0);_.q([_.R(),_.N("design:type",String)],Ce.prototype,"selectionState",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ce.prototype,"calendarConfig",null);
_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ce.prototype,"errorMessage",null);_.q([_.U("selection"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ce.prototype,"startDate",null);_.q([_.U("selection"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ce.prototype,"endDate",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ce.prototype,"dataChanged",null);
_.q([_.yf("selection","selectionState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ce.prototype,"observeSelection",null);_.q([_.yf("selectionState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ce.prototype,"resetTextboxes",null);Ce=_.q([_.d({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],Ce);
_.w(Ce,"ytd-date-period-picker-renderer",function(){if(xQE!==void 0)return xQE;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return xQE=x},{mode:1});var IM=function(){var x=_.n.apply(this,arguments)||this;var G={};x.actionMap=(G["ytd-date-period-picker-apply"]="handleDateRangeUpdated",G);return x};
_.m(IM,_.n);IM.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
IM.prototype.handleDateRangeUpdated=function(){};
_.q([_.R(),_.N("design:type",Object)],IM.prototype,"data",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],IM.prototype,"actionHandlerBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],IM.prototype,"rendererstamperBehavior",void 0);IM=_.q([_.d({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],IM);
_.w(IM,"ytd-report-history-section-header-renderer",function(){if(hdo!==void 0)return hdo;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return hdo=x},{mode:1});var a3E;var oxi;var yPJ;var jE=function(){return _.n.apply(this,arguments)||this};
_.m(jE,_.n);_.Nq.Object.defineProperties(jE.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var x,G;return((x=this.data)==null?0:(G=x.icon)==null?0:G.iconType)?_.aP(this.data.icon.iconType):""}}});
_.q([_.R(),_.N("design:type",Object)],jE.prototype,"data",void 0);_.q([_.U("data"),_.N("design:type",String),_.N("design:paramtypes",[])],jE.prototype,"icon",null);jE=_.q([_.d({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],jE);
_.w(jE,"ytd-report-history-table-text-cell-renderer",function(){if(yPJ!==void 0)return yPJ;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return yPJ=x},{mode:1});var Om=function(){return _.n.apply(this,arguments)||this};
_.m(Om,_.n);Om.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Om.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Om.prototype,"data",void 0);Om=_.q([_.d({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],Om);
_.w(Om,"ytd-report-history-table-reason-cell-renderer",function(){if(oxi!==void 0)return oxi;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return oxi=x},{mode:1});var XZ=function(){return _.n.apply(this,arguments)||this};
_.m(XZ,_.n);XZ.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"}}}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],XZ.prototype,"rendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],XZ.prototype,"data",void 0);XZ=_.q([_.d({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],XZ);
_.w(XZ,"ytd-report-history-table-cell-renderer",function(){if(a3E!==void 0)return a3E;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);
return a3E=x},{mode:1});var l38;var AJ=function(){var x=_.n.apply(this,arguments)||this;x.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 x};
_.m(AJ,_.n);AJ.prototype.onDataChanged=function(){var x;if((x=this.data)==null?0:x.style)this.componentStyle=this.getStyleName(this.data.style)};
AJ.prototype.getCellForColumn=function(x){return this.cells.find(function(G){var D;return((D=_.Y(G==null?void 0:G.cell,tIu)||_.Y(G==null?void 0:G.cell,fhs))==null?void 0:D.columnId)===x.type})};
AJ.prototype.getClassForColumn=function(x){switch(x){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
AJ.prototype.getStyleName=function(x){switch(x){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.Nq.Object.defineProperties(AJ.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var x;return(((x=this.data)==null?void 0:x.cells)||[]).map(function(G){return _.Y(G,Jeo)})}}});
AJ.prototype.onDataChanged=AJ.prototype.onDataChanged;_.q([_.R(),_.N("design:type",Object)],AJ.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Array)],AJ.prototype,"columnRenderData",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],AJ.prototype,"componentStyle",void 0);_.q([_.U("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],AJ.prototype,"cells",null);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],AJ.prototype,"onDataChanged",null);AJ=_.q([_.d({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],AJ);
_.w(AJ,"ytd-report-history-table-row-renderer",function(){if(l38!==void 0)return l38;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return l38=x},{mode:1});var cP7;var TSE;var PRd={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},EvV={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var Um=function(){return _.n.apply(this,arguments)||this};
_.m(Um,_.n);Um.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"}}}}}};
Um.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.Nq.Object.defineProperties(Um.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?0:x.columns)?K0n(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return G9D(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var x=this.tableSpec,G=PRd;G=G===void 0?EvV:G;G=DAf(x.columnDimensions,x.columnsToShow||[],G);x=0;G=_.l(G);for(var D=G.next();!D.done;D=G.next())D=D.value,x+=D.minWidth+D.paddingLeft+D.paddingRight;return x}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.q([_.I(_.Oh),_.N("design:type",Object)],Um.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Um.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Um.prototype,"data",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Um.prototype,"tableSpec",null);_.q([_.U("tableSpec"),_.N("design:type",Array),_.N("design:paramtypes",[])],Um.prototype,"columnRenderData",null);
_.q([_.U("tableSpec"),_.N("design:type",Number),_.N("design:paramtypes",[])],Um.prototype,"totalMinWidth",null);_.q([_.U("totalMinWidth"),_.N("design:type",String),_.N("design:paramtypes",[])],Um.prototype,"tableWidthStyle",null);Um=_.q([_.d({is:"ytd-table-renderer",disableElementRegistration:!0})],Um);
_.w(Um,"ytd-table-renderer",function(){if(TSE!==void 0)return TSE;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return TSE=x},{mode:1});var RM=function(){return _.n.apply(this,arguments)||this};
_.m(RM,_.n);RM.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}}}}}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],RM.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],RM.prototype,"data",void 0);RM=_.q([_.d({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],RM);
_.w(RM,"ytd-report-reason-history-modal-renderer",function(){if(cP7!==void 0)return cP7;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return cP7=x},{mode:1});var W2E;var eIu;var ZKs;var SE=function(){return _.n.apply(this,arguments)||this};
_.m(SE,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],SE.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],SE.prototype,"data",void 0);SE=_.q([_.d({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],SE);
_.w(SE,"ytd-profile-column-stats-entry-renderer",function(){if(ZKs!==void 0)return ZKs;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return ZKs=x},{mode:1});var M6Z;var ne=function(){return _.n.apply(this,arguments)||this};
_.m(ne,_.n);ne.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],ne.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],ne.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],ne.prototype,"data",void 0);ne=_.q([_.d({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],ne);
_.w(ne,"ytd-profile-column-stats-renderer",function(){if(M6Z!==void 0)return M6Z;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return M6Z=x},{mode:1});var Q2k;var i$=function(){return _.n.apply(this,arguments)||this};
_.m(i$,_.n);_.Nq.Object.defineProperties(i$.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.data)==null||!x.useThumbnailSize)return 80;var G,D;x=(G=this.data)==null?void 0:(D=G.thumbnail)==null?void 0:D.thumbnails;var K;return x&&((K=x[0])==null?void 0:K.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.data)==null||!x.useThumbnailSize)return 80;var G,D;x=(G=this.data)==null?void 0:(D=G.thumbnail)==null?void 0:D.thumbnails;var K;return x&&((K=x[0])==null?void 0:K.height)||80}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],i$.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],i$.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],i$.prototype,"componentStyle",void 0);_.q([_.U("data.useThumbnailSize"),_.N("design:type",Object),_.N("design:paramtypes",[])],i$.prototype,"thumbnailWidth",null);
_.q([_.U("data.useThumbnailSize"),_.N("design:type",Object),_.N("design:paramtypes",[])],i$.prototype,"thumbnailHeight",null);i$=_.q([_.d({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],i$);
_.w(i$,"ytd-profile-column-user-info-renderer",function(){if(Q2k!==void 0)return Q2k;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Q2k=x},{mode:1});var gp=function(){return _.n.apply(this,arguments)||this};
_.m(gp,_.n);gp.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]]"}}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],gp.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],gp.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],gp.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],gp.prototype,"componentStyle",void 0);gp=_.q([_.d({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],gp);
_.w(gp,"ytd-profile-column-renderer",function(){if(eIu!==void 0)return eIu;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return eIu=x},{mode:1});var u$=function(){var x=_.n.apply(this,arguments)||this;x.componentStyle="NON_CENTERED_PROFILE";return x};
_.m(u$,_.n);u$.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
u$.prototype.getIcon=function(x){return x?"settings:"+x.toLowerCase():null};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],u$.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],u$.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],u$.prototype,"data",void 0);u$=_.q([_.d({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],u$);
_.w(u$,"ytd-page-introduction-renderer",function(){if(W2E!==void 0)return W2E;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return W2E=x},{mode:1});var pJ7;var dp=function(){return _.n.apply(this,arguments)||this};
_.m(dp,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],dp.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],dp.prototype,"data",void 0);dp=_.q([_.d({is:"ytd-report-description-renderer",disableElementRegistration:!0})],dp);
_.w(dp,"ytd-report-description-renderer",function(){if(pJ7!==void 0)return pJ7;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return pJ7=x},{mode:1});var V69;var bKs;var wp=function(){return _.n.apply(this,arguments)||this};
_.m(wp,_.n);wp.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],wp.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],wp.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],wp.prototype,"data",void 0);wp=_.q([_.d({is:"ytd-video-report-renderer",disableElementRegistration:!0})],wp);
_.w(wp,"ytd-video-report-renderer",function(){if(bKs!==void 0)return bKs;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return bKs=x},{mode:1});var L2Z;_.HH("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.HH("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var qn=function(){return _.n.apply(this,arguments)||this};
_.m(qn,_.n);qn.prototype.configureRendererStamper=function(){return{"data.button":{id:"message-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.icon":{id:"icon",mapping:{iconType:{component:"yt-icon",properties:{icon:"[[data.icon.iconType]]"}}}},"data.thumbnail":{id:"thumbnail",mapping:{messageThumbnailRenderer:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail.messageThumbnailRenderer.thumbnailDetails]]"}}}}}};
qn.prototype.computeMessageStyle=function(x){return x};
qn.prototype.computeButtonOverride=function(x){var G;if((x==null?0:(G=x.style)==null?0:G.value)&&x.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],qn.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],qn.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],qn.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],qn.prototype,"shelf",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],qn.prototype,"panel",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.N("design:type",Boolean)],qn.prototype,"componentStyle",void 0);_.q([_.R({computed:"computeButtonOverride(data)"}),_.N("design:type",Object)],qn.prototype,"buttonOverride",void 0);qn=_.q([_.d({is:"ytd-message-renderer",disableElementRegistration:!0})],qn);
_.w(qn,"ytd-message-renderer",function(){if(L2Z!==void 0)return L2Z;var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<div id="thumbnail" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return L2Z=x},{mode:1});var Nn=function(){return _.n.apply(this,arguments)||this};
_.m(Nn,_.n);Nn.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"}}}};
Nn.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
Nn.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.Nq.Object.defineProperties(Nn.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var x,G;return!!(((x=this.data)==null?0:x.header)&&((G=this.data)==null?0:G.table))}}});
Nn.prototype.onRequestError=Nn.prototype.onRequestError;_.q([_.I(_.Oh),_.N("design:type",Object)],Nn.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Nn.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Nn.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Nn.prototype,"data",void 0);
_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Nn.prototype,"isUnifiedReportHistory",null);_.q([_.oe("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Nn.prototype,"onRequestError",null);Nn=_.q([_.d({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],Nn);
_.w(Nn,"ytd-report-history-section-renderer",function(){if(V69!==void 0)return V69;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return V69=x},{mode:1});var BSo;var vF=function(){var x=_.n.apply(this,arguments)||this;x.answerExpanded=!1;return x};
_.m(vF,_.n);vF.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],vF.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],vF.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],vF.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],vF.prototype,"answerExpanded",void 0);vF=_.q([_.d({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],vF);
_.w(vF,"ytd-handles-claiming-faq-renderer",function(){if(BSo!==void 0)return BSo;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return BSo=x},{mode:1});var rPi;var JJ=function(){return _.n.apply(this,arguments)||this};
_.m(JJ,_.n);_.q([_.R(),_.N("design:type",Object)],JJ.prototype,"data",void 0);JJ=_.q([_.d({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],JJ);
_.w(JJ,"ytd-handles-claiming-faq-section-renderer",function(){if(rPi!==void 0)return rPi;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return rPi=x},{mode:1});var s2E;var fe=function(){var x=_.n.apply(this,arguments)||this;x.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";x.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";x.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";x.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";x.leftSquiggly=x.leftSquigglyLight;x.rightSquiggly=x.rightSquigglyLight;
x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};x.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return x};
_.m(fe,_.n);_.a=fe.prototype;_.a.updateLeftSquigglyStyle=function(){_.K7(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.a.updateRightSquigglyStyle=function(){_.K7(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.a.ready=function(){var x=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(x)};
_.a.onDarkModeToggledAction=function(x){x!==this.isDarkTheme&&(this.set("isDarkTheme",x),x?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.a.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
fe.prototype.updateRightSquigglyStyle=fe.prototype.updateRightSquigglyStyle;fe.prototype.updateLeftSquigglyStyle=fe.prototype.updateLeftSquigglyStyle;_.q([_.R(),_.N("design:type",Object)],fe.prototype,"data",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],fe.prototype,"isDarkTheme",void 0);_.q([_.R(),_.N("design:type",String)],fe.prototype,"leftSquiggly",void 0);_.q([_.R(),_.N("design:type",String)],fe.prototype,"rightSquiggly",void 0);
_.q([_.yf("leftSquiggly"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fe.prototype,"updateLeftSquigglyStyle",null);_.q([_.yf("rightSquiggly"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fe.prototype,"updateRightSquigglyStyle",null);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],fe.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],fe.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],fe.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],fe.prototype,"actionButtonOverride",void 0);fe=_.q([_.d({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],fe);
_.w(fe,"ytd-handles-claiming-header-renderer",function(){if(s2E!==void 0)return s2E;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return s2E=x},{mode:1});var YS7;var tJ=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};x.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";x.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";x.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";x.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
x.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";x.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";x.image0SquigglyBackground=x.image0LightSquigglyBackground;x.image1SquigglyBackground=x.image1LightSquigglyBackground;x.image3SquigglyBackground=x.image3LightSquigglyBackground;return x};
_.m(tJ,_.n);_.a=tJ.prototype;_.a.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.a.onDataChanged=function(){this.updateTitleAndImages()};
_.a.onThemeChanged=function(){this.updateTitleAndImages()};
_.a.onDarkModeToggledAction=function(x){x!==this.isDarkTheme&&(this.isDarkTheme=x)};
_.a.updateImage0SquigglyBackground=function(){_.K7(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.a.updateImage1SquigglyBackground=function(){_.K7(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.a.updateImage3SquigglyBackground=function(){_.K7(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.a.updateTitleAndImages=function(){var x,G;((x=this.data)==null?void 0:(G=x.titleImages)==null?void 0:G.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))};
tJ.prototype.updateImage3SquigglyBackground=tJ.prototype.updateImage3SquigglyBackground;tJ.prototype.updateImage1SquigglyBackground=tJ.prototype.updateImage1SquigglyBackground;tJ.prototype.updateImage0SquigglyBackground=tJ.prototype.updateImage0SquigglyBackground;tJ.prototype.onThemeChanged=tJ.prototype.onThemeChanged;tJ.prototype.onDataChanged=tJ.prototype.onDataChanged;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],tJ.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],tJ.prototype,"isDarkTheme",void 0);_.q([_.R(),_.N("design:type",Object)],tJ.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],tJ.prototype,"title0",void 0);_.q([_.R(),_.N("design:type",Object)],tJ.prototype,"title1",void 0);_.q([_.R(),_.N("design:type",Object)],tJ.prototype,"title2",void 0);_.q([_.R(),_.N("design:type",Object)],tJ.prototype,"title3",void 0);
_.q([_.R(),_.N("design:type",Object)],tJ.prototype,"title4",void 0);_.q([_.R(),_.N("design:type",Object)],tJ.prototype,"image0",void 0);_.q([_.R(),_.N("design:type",Object)],tJ.prototype,"image1",void 0);_.q([_.R(),_.N("design:type",Object)],tJ.prototype,"image2",void 0);_.q([_.R(),_.N("design:type",Object)],tJ.prototype,"image3",void 0);_.q([_.R(),_.N("design:type",Object)],tJ.prototype,"image4",void 0);_.q([_.R(),_.N("design:type",String)],tJ.prototype,"image0SquigglyBackground",void 0);
_.q([_.R(),_.N("design:type",String)],tJ.prototype,"image1SquigglyBackground",void 0);_.q([_.R(),_.N("design:type",String)],tJ.prototype,"image3SquigglyBackground",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tJ.prototype,"onDataChanged",null);_.q([_.yf("isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tJ.prototype,"onThemeChanged",null);
_.q([_.yf("image0SquigglyBackground"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tJ.prototype,"updateImage0SquigglyBackground",null);_.q([_.yf("image1SquigglyBackground"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tJ.prototype,"updateImage1SquigglyBackground",null);
_.q([_.yf("image3SquigglyBackground"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tJ.prototype,"updateImage3SquigglyBackground",null);tJ=_.q([_.d({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],tJ);
_.w(tJ,"ytd-handles-claiming-title-images-section-renderer",function(){if(YS7!==void 0)return YS7;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return YS7=x},{mode:1});var mQh;var kX=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return x};
_.m(kX,_.n);kX.prototype.ready=function(){var x=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(x)};
kX.prototype.onDarkModeToggledAction=function(x){x!==this.isDarkTheme&&this.set("isDarkTheme",x)};
kX.prototype.onCopyButtonClick=function(){var x=this,G,D,K;return _.T(function(z){return(G=x.data)!=null&&G.primaryChannelUrl?_.Z(z,navigator.clipboard.writeText(((D=x.data)==null?0:D.encodedChannelUrl)?x.data.encodedChannelUrl:"https://"+_.u7((K=x.data)==null?void 0:K.primaryChannelUrl)),0):z.jumpTo(0)})};
_.q([_.R(),_.N("design:type",Object)],kX.prototype,"data",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],kX.prototype,"ytComponentBehavior",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],kX.prototype,"isDarkTheme",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],kX.prototype,"ytActionHandlerBehavior",void 0);kX=_.q([_.d({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],kX);
_.w(kX,"ytd-handles-claiming-update-social-renderer",function(){if(mQh!==void 0)return mQh;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return mQh=x},{mode:1});var HKk;var PF=function(){var x=_.n.apply(this,arguments)||this;x.JSC$13911_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";x.JSC$13911_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};x.squigglyBackground=x.JSC$13911_squigglyBackgroundLight;return x};
_.m(PF,_.n);PF.prototype.updateSquigglyBackgroundStyle=function(){_.K7(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
PF.prototype.ready=function(){var x=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",x);this.squigglyBackground=x?this.JSC$13911_squigglyBackgroundDark:this.JSC$13911_squigglyBackgroundLight};
PF.prototype.onDarkModeToggledAction=function(x){x!==this.isDarkTheme&&(this.set("isDarkTheme",x),this.squigglyBackground=x?this.JSC$13911_squigglyBackgroundDark:this.JSC$13911_squigglyBackgroundLight)};
PF.prototype.updateSquigglyBackgroundStyle=PF.prototype.updateSquigglyBackgroundStyle;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],PF.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],PF.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],PF.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],PF.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],PF.prototype,"isDarkTheme",void 0);_.q([_.R(),_.N("design:type",String)],PF.prototype,"squigglyBackground",void 0);_.q([_.yf("squigglyBackground"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],PF.prototype,"updateSquigglyBackgroundStyle",null);PF=_.q([_.d({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],PF);
_.w(PF,"ytd-handles-claiming-vanity-info-renderer",function(){if(HKk!==void 0)return HKk;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return HKk=x},{mode:1});var $Qq;var Em=function(){var x=_.n.apply(this,arguments)||this;x.JSC$13914_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";x.JSC$13914_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";x.squigglyBackground=x.JSC$13914_squigglyBackgroundLight;x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return x};
_.m(Em,_.n);_.a=Em.prototype;_.a.ready=function(){var x=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(x)};
_.a.onDarkModeToggledAction=function(x){x!==this.isDarkTheme&&(this.set("isDarkTheme",x),this.squigglyBackground=x?this.JSC$13914_squigglyBackgroundDark:this.JSC$13914_squigglyBackgroundLight)};
_.a.updateSquigglyBackgroundStyle=function(){_.K7(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.a.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.a.detached=function(){this.stop()};
_.a.stop=function(){this.playerElement.stop()};
_.a.setupVideoPlayer=function(){var x=this,G,D;return _.T(function(K){G=x.data.videoId;D="http://i1.ytimg.com/vi/"+G+"/maxresdefault.jpg";x.playerElement.loadVideoWithPlayerVars({video_id:G,iurlhq:D});_.c5(K)})};
Em.prototype.onDataChanged=Em.prototype.onDataChanged;Em.prototype.updateSquigglyBackgroundStyle=Em.prototype.updateSquigglyBackgroundStyle;_.q([_.R({value:!1}),_.N("design:type",Boolean)],Em.prototype,"isDarkTheme",void 0);_.q([_.R(),_.N("design:type",String)],Em.prototype,"squigglyBackground",void 0);_.q([_.cD("#player"),_.N("design:type",Object)],Em.prototype,"playerElement",void 0);_.q([_.R(),_.N("design:type",Object)],Em.prototype,"data",void 0);
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],Em.prototype,"ytActionHandlerBehavior",void 0);_.q([_.yf("squigglyBackground"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Em.prototype,"updateSquigglyBackgroundStyle",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Em.prototype,"onDataChanged",null);
Em=_.q([_.d({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],Em);
_.w(Em,"ytd-handles-claiming-video-item-renderer",function(){if($Qq!==void 0)return $Qq;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return $Qq=x},{mode:1});var F2s;var xu=function(){var x=_.WD.apply(this,arguments)||this;x.dragging=!1;x.dragMouseStart=0;x.dragOffsetStart=0;x.containerWidthDiff=0;x.boundPrevClick=function(){x.set("offset",hJ(x,x.offset-(x.scrollDistance||320)))};
x.boundNextClick=function(){x.set("offset",hJ(x,x.offset+(x.scrollDistance||320)))};
x.boundScrollContainerMouseDown=function(G){x.dragMouseStart=G.clientX;x.dragOffsetStart=x.offset;x.dragging=!0};
x.boundScrollContainerDrag=function(G){x.dragging&&x.set("offset",hJ(x,x.dragOffsetStart-(G.clientX-x.dragMouseStart)))};
x.boundMouseUp=function(){x.onMouseUp()};
x.boundWheelScroll=function(G){var D=0;Math.abs(G.deltaX)>=Math.abs(G.deltaY)?D=G.deltaX:G.shiftKey&&(D=G.deltaY);D!==0&&(x.offset+=D,G.stopPropagation(),G.preventDefault())};
x.boundChipCloudChipScrollIntoView=function(G){(G=G.detail)&&x.scrollChipIntoView(G)};
return x};
_.m(xu,_.WD);xu.prototype.attached=function(){var x=_.kA(this.hostElement).querySelector("#scroll-container");x.addEventListener("wheel",this.boundWheelScroll);x.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);x.style.touchAction="pan-y";x.addEventListener("pointerdown",this.boundScrollContainerMouseDown);x.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
xu.prototype.detached=function(){var x=_.kA(this.hostElement).querySelector("#scroll-container");x.removeEventListener("wheel",this.boundWheelScroll);x.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);x.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);x.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
xu.prototype.reset=function(){this.set("offset",0);_.w1(this,this.setContainerWidthDiff);G6(this)};
var hJ=function(x,G){return Math.min(Math.max(G,0),x.containerWidthDiff)};
xu.prototype.onMouseUp=function(){this.dragging=!1};
xu.prototype.transformContainer=function(){this.offset=hJ(this,this.offset);var x=_.Am("HTML_DIR")==="rtl"?"":"-";_.kA(this.hostElement).querySelector("#chips").style.transform="translateX("+x+this.offset+"px)";G6(this)};
var G6=function(x){_.w1(x,x.setButtonsState)};
xu.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=hJ(this,this.offset));this.atStart=this.offset<=0};
xu.prototype.setContainerWidthDiff=function(){var x=_.kA(this.hostElement).querySelector("#scroll-container"),G=_.kA(this.hostElement).querySelector("#chips");x&&G&&(this.containerWidthDiff=G.clientWidth-x.clientWidth)};
xu.prototype.scrollChipIntoView=function(x){var G=_.kA(this.hostElement).querySelector("#scroll-container");if(G){var D=this.atStart?0:106,K=this.atEnd?0:106;x.offsetLeft<this.offset+D?this.offset=hJ(this,x.offsetLeft-D):x.offsetLeft+x.clientWidth>this.offset+G.clientWidth-K&&(this.offset=hJ(this,x.offsetLeft+x.clientWidth+K-G.clientWidth))}};
xu.prototype.transformContainer=xu.prototype.transformContainer;_.q([_.R({value:0}),_.N("design:type",Number)],xu.prototype,"offset",void 0);_.q([_.R({value:!0,reflectToAttribute:!0}),_.N("design:type",Boolean)],xu.prototype,"atStart",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],xu.prototype,"atEnd",void 0);_.q([_.R(),_.N("design:type",Number)],xu.prototype,"scrollDistance",void 0);
_.q([_.yf("offset"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xu.prototype,"transformContainer",null);xu=_.q([_.e2()],xu);var CJk;var I39;var XJk=_.Nv(function(x){var G=x.data;x=_.l(_.eO(!1,void 0,"icHmSe"));var D=x.next().value,K=x.next().value;x={};x=_.ym("ytChipShapeChip",function(){a:switch(G==null?void 0:G().state){case 0:var y="ytChipShapeActive";break a;case 1:y="ytChipShapeDisabled";break a;default:y="ytChipShapeInactive"}return y},function(){var y=G().type===1||G().type===2,c=G();
return y||c!=null&&c.startIcon?c==null||!c.startIcon||c!=null&&c.text?y?"ytChipShapeEndIconPadding":(c==null?0:c.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(x.ytChipShapeFocused=function(){var y;
return D()&&((y=G())==null?void 0:y.state)!==1},x));
var z=function(y){if((G==null?void 0:G().state)!==1){var c,W;(W=(c=G()).onTap)==null||W.call(c,y)}};
return _.M("chip-shape",{class:"ytChipShapeHost","on:focusin":_.WH(function(){var y=_.Eo().resolve(_.P6(_.Ee));if(y){K(y.isKeyBoardInUse());var c,W;(W=(c=G()).onFocusIn)==null||W.call(c)}return!1}),
"on:focusout":_.WH(function(){K(!1);return!1})},_.M(j2s,{shouldWrapInButton:function(){return G().type!==2},
selected:function(){return G().state===0},
onClick:z,isDropdown:function(){return G().type===1},
accessibilityLabel:function(){return G().accessibilityLabel}},_.M("div",{class:x},_.M(_.b,{cond:function(){return G().startIcon},
then:function(){return _.M(_.Qm,{icon:function(){var y;return(y=G())==null?void 0:y.startIcon},
className:function(){return G().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return G().text},_.M(OKu,{shape:G,
onClick:z}))))},"zb");
XJk.idomCompat=!0;var j2s=_.Nv(function(x){var G=_.WH(function(D){x.onClick(D);return!1});
return _.M(_.b,{cond:x.shouldWrapInButton,then:function(){return _.M("button",{class:"ytChipShapeButtonReset","on:click":G,role:function(){return x.isDropdown()?"combobox":"tab"},
"aria-label":x.accessibilityLabel,"aria-selected":x.selected},x.children)},
else:function(){return x.children}})},"Ab"),OKu=_.Nv(function(x){var G=x.shape;
var D=x.onClick;var K=_.WH(function(z){D(z);return!1});
return _.M(_.so,null,_.M(_.B6,{when:function(){return G().type===1}},function(){return _.M(_.Qm,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.M(_.B6,{when:function(){return G().type===2}},function(){return _.M("button",{class:"ytChipShapeButtonReset",
"on:click":K},_.M(_.Qm,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.M(_.B6,{when:function(){return G().type===0}},function(){return _.M(_.xT,null)}))},"Bb");_.tn(XJk,"chip-shape",{props:{data:_.ik}});var Dl=function(){var x=_.n.apply(this,arguments)||this;x.disableDeselectEvent=!1;x.modern=_.B("web_modern_typography");x.useChipShape=_.B("web_chip_shape_defrag");x.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return x};
_.m(Dl,_.n);_.a=Dl.prototype;_.a.beforeRegister=function(){_.B("web_chip_shape_defrag")||(this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"})};
_.a.attached=function(){this.useChipShape||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","tab"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0"))};
_.a.onSelectChipCommand=function(x){if(!this.selected&&this.data&&(x=_.Y(x,DV0),x.targetId&&x.targetId===this.data.targetId))this.onTap()};
_.a.onFilterChipTransformCommand=function(x){if(!this.selected&&this.data){var G;(x=(G=_.Y(x,aUZ))==null?void 0:G.chipUniqueId)&&x===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.a.dataChanged=function(){var x=this;_.w1(this,function(){x.data&&x.data.isSelected&&!x.selected&&(x.scrollChipIntoView(),x.onTap())})};
_.a.selectionChanged=function(){this.useChipShape||this.hostElement.setAttribute("aria-selected",""+this.selected)};
_.a.computeChipStyle=function(x){return x!=null?x:"STYLE_DEFAULT"};
_.a.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.xO(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.xO(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.a.onFocus=function(){var x=_.Eo().resolve(_.P6(_.Ee));x&&x.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.a.scrollChipIntoView=function(){_.h$(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.Nq.Object.defineProperties(Dl.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return cqO({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
Dl.prototype.onFocus=Dl.prototype.onFocus;Dl.prototype.onTap=Dl.prototype.onTap;Dl.prototype.selectionChanged=Dl.prototype.selectionChanged;Dl.prototype.dataChanged=Dl.prototype.dataChanged;_.q([_.I(_.Zm),_.N("design:type",Object)],Dl.prototype,"ironButtonState",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Dl.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],Dl.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Dl.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.Tb),_.N("design:type",Object)],Dl.prototype,"ironA11yKeysBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Dl.prototype,"disableDeselectEvent",void 0);_.q([_.R(),_.N("design:type",Object)],Dl.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.U("data.icon"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Dl.prototype,"hasIcon",null);
_.q([_.R({reflectToAttribute:!0}),_.U("data.uniqueId"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Dl.prototype,"isGnomeChip",null);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Dl.prototype,"modern",void 0);_.q([_.R({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.N("design:type",String)],Dl.prototype,"chipStyle",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Dl.prototype,"selected",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Dl.prototype,"useChipShape",void 0);_.q([_.U("data","selected"),_.N("design:type",Object),_.N("design:paramtypes",[])],Dl.prototype,"chipShapeData",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Dl.prototype,"dataChanged",null);_.q([_.yf("selected"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Dl.prototype,"selectionChanged",null);
_.q([_.oe("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Dl.prototype,"onTap",null);_.q([_.oe("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Dl.prototype,"onFocus",null);Dl=_.q([_.HD({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],Dl);
_.w(Dl,"yt-chip-cloud-chip-renderer",function(){if(I39===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;CJk===void 0&&(CJk=document.createElement("template"));var K=CJk;D.call(G,K.content.cloneNode(!0),x.content.firstChild);I39=x}x=I39;return x},{mode:2});var Kq=function(){var x=_.n.apply(this,arguments)||this;x.isDarkTheme=!1;x.notSticky=!1;x.transparentBackground=!1;x.shouldHide=!1;x.disableSticky=!1;x.fluidWidth=!1;x.isClipList=!1;x.defaultChipIndex=0;x.isPlaylist=!1;x.playlistVotingAnimationEnabled=_.B("web_enable_voting_animation");x.toolbarHeight=0;x.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return x};
_.m(Kq,_.n);_.a=Kq.prototype;
_.a.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}}}}}};
_.a.attached=function(){var x=this;document.addEventListener("scroll",_.ae(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var G;this.toolbarHeight=((G=document.querySelector("ytd-masthead"))==null?void 0:G.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(D){x.handleIntersect(D)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){x.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.a.detached=function(){var x;(x=this.intersectionObserver)==null||x.disconnect();var G;(G=this.resizeObserver)==null||G.disconnect();document.removeEventListener("scroll",_.ae(this,this.updateChipBarWidthAndTop))};
_.a.dataChanged=function(){var x=this,G,D,K;((K=_.Y((G=this.data)==null?void 0:(D=G.contents)==null?void 0:D[0],ml0))==null?void 0:K.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var z=this.findSelectedChipIndex();this.selectedIndex!==z&&(this.selectedIndex=-1);_.w1(this,function(){x.selectedIndex=z;x.updating=!1;x.ytScrollableChipCloudBehavior.reset()})};
_.a.findSelectedChipIndex=function(){var x;if((x=this.data)==null||!x.contents)return 0;x=this.data.contents;for(var G=0;G<x.length;G++){var D=void 0;if((D=_.Y(x[G],ml0))==null?0:D.isSelected)return G}return 0};
_.a.computeStyle=function(x){return x};
_.a.handleChipCloudChipSelectAction=function(x){x=this.JSC$13933_chipsSelector.indexOf(x);x>-1&&this.JSC$13933_chipsSelector.selectIndex(x)};
_.a.handleChipCloudChipDeselectAction=function(){if(_.B("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var x,G,D,K=(D=_.Y((x=this.data)==null?void 0:(G=x.contents)==null?void 0:G[0],ml0))==null?void 0:D.navigationEndpoint;K&&_.xO(this.hostElement,"yt-browse-section-list-reload-endpoint",[K]);this.JSC$13933_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.a.onGuideIsExpandedChanged=function(){var x=this.ytScrollableChipCloudBehavior;_.w1(x,x.setContainerWidthDiff);G6(this.ytScrollableChipCloudBehavior)};
_.a.onResize=function(){var x=this.ytScrollableChipCloudBehavior;_.w1(x,x.setContainerWidthDiff);G6(this.ytScrollableChipCloudBehavior)};
_.a.onDarkModeToggledAction=function(x){this.isDarkTheme=x};
_.a.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.a.handleIntersect=function(x){this.notSticky=this.isChannelPageGrid||this.disableSticky||x[0].intersectionRatio===1};
_.a.updateDimensions=function(){var x=this.ytRendererBehavior.parentComponent;if(x){var G,D=(G=x.headerElement)!=null?G:x;_.K7(this.hostElement,{"--ytd-rich-grid-chips-bar-width":D.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.a.updateSelectedIndexFromBinding=function(x){this.selectedIndex=x.detail.value};
_.a.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var x;(x=this.sortFilterHeaderRendererElement)==null||x.setAttribute("is-playlist-page-with-filters","")}};
_.a.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(aei(!this.notSticky))};
_.Nq.Object.defineProperties(Kq.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 x,G,D=(x=this.data)==null?void 0:(G=x.contents)==null?void 0:G.find(function(K){return _.Y(K,Ir7)});
return{sortFilterHeaderRenderer:_.Y(D,Ir7)}}}});
Kq.prototype.dispatchChipBarIsSticky=Kq.prototype.dispatchChipBarIsSticky;Kq.prototype.isPlaylistPageChanged=Kq.prototype.isPlaylistPageChanged;Kq.prototype.updateChipBarWidthAndTop=Kq.prototype.updateChipBarWidthAndTop;Kq.prototype.onResize=Kq.prototype.onResize;Kq.prototype.onGuideIsExpandedChanged=Kq.prototype.onGuideIsExpandedChanged;Kq.prototype.dataChanged=Kq.prototype.dataChanged;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Kq.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Kq.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],Kq.prototype,"actionHandlerBehavior",void 0);_.q([_.I(_.Lg),_.N("design:type",Object)],Kq.prototype,"ironResizableBehavior",void 0);_.q([_.I(),_.N("design:type",xu)],Kq.prototype,"ytScrollableChipCloudBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],Kq.prototype,"ytdReduxBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],Kq.prototype,"data",void 0);_.q([_.R({value:0}),_.N("design:type",Number)],Kq.prototype,"selectedIndex",void 0);_.q([_.R({value:320}),_.N("design:type",Number)],Kq.prototype,"scrollDistance",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Kq.prototype,"isDarkTheme",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Kq.prototype,"notSticky",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Kq.prototype,"transparentBackground",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.N("design:type",String)],Kq.prototype,"componentStyle",void 0);_.q([_.R({selector:_.zzQ}),_.N("design:type",Boolean)],Kq.prototype,"guideIsExpanded",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Kq.prototype,"shouldHide",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Kq.prototype,"disableSticky",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Kq.prototype,"fluidWidth",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Kq.prototype,"isClipList",void 0);_.q([_.R(),_.N("design:type",Object)],Kq.prototype,"defaultChipIndex",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Kq.prototype,"isPlaylist",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],Kq.prototype,"playlistVotingAnimationEnabled",void 0);_.q([_.cD("#chips"),_.N("design:type",Object)],Kq.prototype,"JSC$13933_chipsSelector",void 0);_.q([_.cD("ytd-sort-filter-header-renderer"),_.N("design:type",HTMLElement)],Kq.prototype,"sortFilterHeaderRendererElement",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Kq.prototype,"updating",void 0);
_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kq.prototype,"dataChanged",null);_.q([_.yf("guideIsExpanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kq.prototype,"onGuideIsExpandedChanged",null);_.q([_.oe("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kq.prototype,"onResize",null);
_.q([_.Z6("isChannelPageGrid","disableSticky","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kq.prototype,"updateChipBarWidthAndTop",null);_.q([_.U("componentStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Kq.prototype,"isChannelPageGrid",null);_.q([_.U("componentStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Kq.prototype,"isHashtagLandingPage",null);
_.q([_.yf("isPlaylistPage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kq.prototype,"isPlaylistPageChanged",null);_.q([_.U("componentStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Kq.prototype,"isPlaylistPage",null);_.q([_.U("componentStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Kq.prototype,"isDisableDeselectEvent",null);
_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Kq.prototype,"sortFilterHeaderRendererData",null);_.q([_.R({reflectToAttribute:!0,selector:_.WPV}),_.N("design:type",String)],Kq.prototype,"frostedGlassMode",void 0);_.q([_.yf("notSticky"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kq.prototype,"dispatchChipBarIsSticky",null);Kq=_.q([_.d({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],Kq);
_.w(Kq,"ytd-feed-filter-chip-bar-renderer",function(){if(F2s!==void 0)return F2s;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return F2s=x},{mode:1});var AP8;var UQ0=_.Nv(function(x){var G=x.data;var D=x.buttonIndex;var K=x.selectedIndex;var z=x.onSelect;var y=function(){return D()===K()},c=function(){var W,e;
return(e=(W=G().text)==null?void 0:W.content)!=null?e:""};
x=_.wW3();return _.M("yt-toggleable-image-button-view-model",{class:function(){var W={};W=(W["toggleable-image-button-view-model-wiz"]=!0,W[""]=!0,W["toggleable-image-button-view-model-wiz__semi-transparent"]=K()!==-1&&!y(),W);return _.cH(W)},
tabindex:0,"aria-label":c,"aria-pressed":y,role:"button","on:keydown":x,"on:click":_.WH(function(){z(G().onSubmitCommand);return!1})},_.M(_.b,{cond:function(){return G().logo},
then:function(W){return _.M(_.wk,{data:W,className:function(){var e={};e=(e["toggleable-image-button-view-model-wiz__image"]=!0,e["toggleable-image-button-view-model-wiz__circular-radius"]=!(!G().backgroundColor||!G().backgroundColorDarkMode),e["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(y()&&G().backgroundColor&&G().backgroundColorDarkMode),e);return _.cH(e)},
alt:c,useWidth:!1,style:function(){if(y()&&G().backgroundColor&&G().backgroundColorDarkMode){var e=O4(Number(G().backgroundColorDarkMode),"1");var Q=O4(Number(G().backgroundColor),"1");e="background: linear-gradient(180deg,"+e+","+Q+") border-box;"}else e="";return e}})}}),_.M(_.b_,{model:{borderRadius:"16px"}}),_.M("p",{class:function(){var W={};
W=(W["toggleable-image-button-view-model-wiz__label"]=!0,W["toggleable-image-button-view-model-wiz__bold-text"]=y(),W);return _.cH(W)}},_.M(_.vq,{text:function(){return G().text}})))},"Cb");
UQ0.idomCompat=!0;var SSi=_.Nv(function(x){var G=x.data;x=_.l(_.eO({index:-1,command:{}},void 0,"Zcqtsb"));var D=x.next().value,K=x.next().value;return _.M("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.M("div",{class:"nudge-form-view-model-wiz__form-options"},_.M(_.bA,{data:function(){return G().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(z,y){return _.M(UQ0,{data:z.data,buttonIndex:y,selectedIndex:function(){return D().index},
onSelect:function(c){K({index:y(),command:c})}})}})),_.M(_.vq,{text:function(){return G().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.M("div",{class:"nudge-form-view-model-wiz__submit"},_.M(_.bA,{data:function(){return G().submitButton}},{buttonViewModel:function(z){return _.M(RIZ,{data:z.data,
isDisabled:function(){return D().index===-1},
onClick:function(){_.UI(D().command)}})}})))},"Db");
SSi.idomCompat=!0;var RIZ=_.Nv(function(x){var G=_.V9(function(){return Object.assign({},x.data(),{state:x.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.M(_.Cs,{data:G,onClick:x.onClick})},"Eb");_.tn(SSi,"yt-nudge-form-view-model",{props:{data:_.ik}});var z6=function(){var x=_.n.apply(this,arguments)||this;x.roundedContainer=!0;x.buttonUpdate=_.B("web_modern_buttons");x.isDarkMode=!1;x.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return x};
_.m(z6,_.n);_.a=z6.prototype;_.a.computeNudgeStyle=function(x){return x?"modernized-nudge":""};
_.a.handleDarkModeToggledAction=function(x){this.isDarkMode=x};
_.a.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.a.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"}}}};
_.a.computeIsHorizontalButtons=function(x){return x?!!x.applyModernizedStyle&&!!x.enableHorizontalButtons&&!!x.secondaryButton:!1};
_.Nq.Object.defineProperties(z6.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var x,G;return(G=(x=this.data)==null?void 0:x.backgroundStyle)!=null?G:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var x,G;return(G=(x=this.data)==null?void 0:x.contentsLocation)!=null?G:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null?0:x.lightIconImage)}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],z6.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],z6.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.CS),_.N("design:type",Object)],z6.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],z6.prototype,"actionHandlerBehavior",void 0);
_.q([_.R({reflectToAttribute:!0}),_.U("isHideEnclosingAction"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],z6.prototype,"isHidden",null);_.q([_.R(),_.N("design:type",Object)],z6.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],z6.prototype,"roundedContainer",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],z6.prototype,"buttonUpdate",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.N("design:type",String)],z6.prototype,"nudgeStyle",void 0);_.q([_.R({reflectToAttribute:!0}),_.U("data.trimStyle"),_.N("design:type",String),_.N("design:paramtypes",[])],z6.prototype,"trimStyle",null);_.q([_.R({reflectToAttribute:!0}),_.U("data.backgroundStyle"),_.N("design:type",String),_.N("design:paramtypes",[])],z6.prototype,"backgroundStyle",null);
_.q([_.R({reflectToAttribute:!0}),_.U("data.contentsLocation"),_.N("design:type",String),_.N("design:paramtypes",[])],z6.prototype,"contentsLocation",null);_.q([_.R({reflectToAttribute:!0}),_.U("data.disableDropShadow"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],z6.prototype,"noShadow",null);_.q([_.R({reflectToAttribute:!0}),_.U("data.lightIconImage"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],z6.prototype,"noIcon",null);
_.q([_.R({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.N("design:type",Boolean)],z6.prototype,"isHorizontalButtons",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Object)],z6.prototype,"isDarkMode",void 0);z6=_.q([_.d({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],z6);
_.w(z6,"ytd-feed-nudge-renderer",function(){if(AP8!==void 0)return AP8;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return AP8=x},{mode:_.Ge("kevlar_poly_si_batch_j028")?1:2});var nx0;var iKZ;var ax=function(){var x=_.n.apply(this,arguments)||this;x.collapsed=!1;x.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return x};
_.m(ax,_.n);ax.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"}}}};
ax.prototype.handleRatingSelect=function(){var x;((x=this.data)==null?0:x.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
ax.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],ax.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],ax.prototype,"actionHandlerBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],ax.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],ax.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.CS),_.N("design:type",Object)],ax.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],ax.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],ax.prototype,"collapsed",void 0);ax=_.q([_.d({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],ax);
_.w(ax,"ytd-slimline-survey-renderer",function(){if(iKZ!==void 0)return iKZ;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return iKZ=x},{mode:1});var gxu;var ox=function(){return _.n.apply(this,arguments)||this};
_.m(ox,_.n);ox.prototype.maybeGetBackgroundColor=function(x){return this.isDarkMode?x.section2Color:x.section3Color};
ox.prototype.colorPaletteChanged=function(){var x=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;x&&(x==null?0:x.secondaryTitleColor)&&this.maybeGetBackgroundColor(x)?(this.hostElement.style.backgroundColor=_.In(this.maybeGetBackgroundColor(x)),this.hostElement.style.color=_.In(x.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
ox.prototype.colorPaletteChanged=ox.prototype.colorPaletteChanged;_.q([_.I(_.$l),_.N("design:type",Object)],ox.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],ox.prototype,"data",void 0);_.q([_.R({selector:function(x){return x.ui.darkModeIsEnabled}}),
_.N("design:type",Boolean)],ox.prototype,"isDarkMode",void 0);_.q([_.R(),_.N("design:type",Object)],ox.prototype,"lightColorPalette",void 0);_.q([_.R(),_.N("design:type",Object)],ox.prototype,"darkColorPalette",void 0);_.q([_.yf("darkColorPalette","lightColorPalette","data","isDarkMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ox.prototype,"colorPaletteChanged",null);ox=_.q([_.d({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],ox);
_.w(ox,"ytd-endorsement-header-renderer",function(){if(gxu!==void 0)return gxu;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return gxu=x},{mode:1});_.tn(_.B2,"yt-decorated-avatar-view-model",{props:{data:_.ik,className:_.ik}});var yk=function(){var x=_.n.apply(this,arguments)||this;x.fullHeight=_.B("web_rich_grid_media_full_height");x.showChannelAvatar=!0;x.hasPlaylistThumbnail=!1;x.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};x.prepareThumbnailForPageTransition=function(){_.B("web_thumbnail_to_watch_transition")&&(x.thumbnail.style.viewTransitionName="thumbnail-to-watch",x.cleanupThumbnailAfterPageTransition(x.thumbnail))};
return x};
_.m(yk,_.n);_.a=yk.prototype;
_.a.configureRendererStamper=function(){return{lazyLoadMenu:aH,immediateLoadMenu:{id:"immediate-load-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.thumbnailUnderlay":{id:"thumbnail-underlay",mapping:{endorsementHeaderRenderer:{component:"ytd-endorsement-header-renderer",properties:{lightColorPalette:"[[data.thumbnail.lightColorPalette]]",darkColorPalette:"[[data.thumbnail.darkColorPalette]]"}}}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyRenderer:"ytd-slimline-survey-renderer"}},"data.buttons":{id:"buttons",
mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model",properties:{overrides:"[[avatarStackViewModelOverrides]]"}},
decoratedAvatarViewModel:"yt-decorated-avatar-view-model"}}}};
_.a.attached=function(){this.updateInlinePreviewHoverListeners()};
_.a.detached=function(){this.clearInlinePreviewHoverListeners()};
_.a.shouldLazyLoadMenu=function(){var x=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.B("kevlar_modern_downloads_page")||!x};
_.a.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13959_inlinePreviewHoverListener=uA({mediaRenderer:this,lockupElement:this.JSC$13959_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.a.getVideoPreviewOpts=function(){var x={},G;if((G=this.data)==null?0:G.multipleInlinePlaybackEndpoint)x=UeJ;this.isRadio&&(x=AAh);return _.B("web_thumbnail_to_watch_transition")?Object.assign({},x,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):x};
_.a.clearInlinePreviewHoverListeners=function(){var x;(x=this.JSC$13959_inlinePreviewHoverListener)==null||EH(x)};
_.a.getOwner=function(){var x,G,D;return((x=this.data)==null?void 0:(G=x.channelThumbnailSupportedRenderers)==null?void 0:G.channelThumbnailWithLinkRenderer)||_.Y((D=this.data)==null?void 0:D.showProviderChannelThumbnail,p10)};
_.a.updateLockupSize=function(){var x;((x=this.getOwner())==null?0:x.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.a.getFeedbackEndpoint=function(x){if(_.Y(x,_.H1))return x;var G,D;x=(D=(G=_.Y(x,_.oI))==null?void 0:G.commands)!=null?D:[];G=_.l(x);for(D=G.next();!D.done;D=G.next())if(D=this.getFeedbackEndpoint(D.value))return D;return null};
_.a.computeNavigationEndpoint=function(x){return UlV(x==null?void 0:x.navigationEndpoint)};
_.a.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var x=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(x)!==JSON.stringify(this.data)&&this.set("data",x)}};
_.a.onDataChanged=function(){var x=this,G=this.getOwner();if(G){this.set("data.owner",G);var D,K,z,y,c,W=((D=this.data)==null?void 0:(K=D.shortBylineText)==null?void 0:(z=K.runs)==null?void 0:(y=z[0])==null?void 0:y.text)||((c=G.name)==null?void 0:c.simpleText);this.set("data.owner.title",W)}var e,Q,p,V,L,r;G=((e=this.data)==null?void 0:(Q=e.thumbnailRenderer)==null?void 0:Q.playlistVideoThumbnailRenderer)||((p=this.data)==null?void 0:(V=p.thumbnailRenderer)==null?void 0:V.playlistCustomThumbnailRenderer)||
((L=this.data)==null?void 0:(r=L.thumbnailRenderer)==null?void 0:r.showCustomThumbnailRenderer);var H;((H=this.data)==null?0:H.thumbnail)||!G||this.set("data.thumbnail",G.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){x.updateLockupSize()});
var O;if(e=((O=this.data)==null?void 0:O.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(e);var A;((A=this.dismissActionToReplayEntity)==null?0:A.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.a.onHiddenChanged=function(){this.updateLockupSize()};
_.a.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.xO(this.hostElement,"yt-terminate-video-preview-action");else{var x;(x=this.videoTitleLink)==null||x.focus()}};
_.a.metadataColorChanged=function(){var x;if(this.metadataColor&&((x=this.videoTitle)==null?0:x.style))this.videoTitle.style.color=_.In(this.metadataColor);else{var G,D;!this.metadataColor&&((G=this.videoTitle)==null?0:(D=G.style)==null?0:D.color)&&(this.videoTitle.style.color="")}};
_.a.onDetailsClick=function(x){var G=this.computedNavigationEndpoint;G&&(_.u_(_.gA(x),this.hostElement,["A","BUTTON"])||_.h$(this.hostElement,"yt-navigate",{endpoint:G}))};
_.a.cleanupThumbnailAfterPageTransition=function(x){_.dBh(document,"yt-page-type-changed",function(){x.style.viewTransitionName=""})};
_.a.onRendererTap=function(){this.prepareThumbnailForPageTransition();var x,G,D=((x=this.data)==null?void 0:x.serviceEndpoint)||this.getFeedbackEndpoint((G=this.data)==null?void 0:G.navigationEndpoint);D&&_.Y(D,_.H1)&&this.ytComponentBehavior.resolveCommand(D)};
_.a.onMouseDown=function(x){var G=x.target,D=this.computedNavigationEndpoint,K;x=G.href||((K=_.Y(D==null?void 0:D.commandMetadata,_.fC))==null?void 0:K.url);K=G.data||D;x&&K&&jRL(x,K)};
_.a.computeVideoTitleText=function(){var x;if((x=this.data)==null?0:x.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.a.computeHasPlaylistThumbnail=function(x){var G,D,K,z,y;if((((G=x.thumbnailRenderer)==null?0:G.playlistVideoThumbnailRenderer)||((D=x.thumbnailRenderer)==null?0:D.playlistCustomThumbnailRenderer)||((K=x.thumbnailRenderer)==null?0:K.showCustomThumbnailRenderer)||((z=x.thumbnailRenderer)==null?0:z.playlistVideoThumbnailRenderer)||((y=x.thumbnailRenderer)==null?0:y.playlistCustomThumbnailRenderer))&&x.thumbnailOverlays)for(G=0;G<x.thumbnailOverlays.length;G++)if(D=void 0,(D=x.thumbnailOverlays[G])==
null?0:D.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Nq.Object.defineProperties(yk.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.B("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var x;return(x=this.data)==null?void 0:x.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var x;return(x=this.data)==null?void 0:x.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.JSC$13959_inlinePreviewHoverListener)==null?0:mZ(x))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.lo(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var x,G;return((x=this.data)==null?void 0:x.videoId)||((G=this.data)==null?void 0:G.playlistId)||""}}});
yk.prototype.onMouseDown=yk.prototype.onMouseDown;yk.prototype.metadataColorChanged=yk.prototype.metadataColorChanged;yk.prototype.onIsDismissedChanged=yk.prototype.onIsDismissedChanged;yk.prototype.onHiddenChanged=yk.prototype.onHiddenChanged;yk.prototype.onDataChanged=yk.prototype.onDataChanged;yk.prototype.handleReloadDownloadsInfo=yk.prototype.handleReloadDownloadsInfo;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],yk.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],yk.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],yk.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.CS),_.N("design:type",Object)],yk.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.I(_.RG),_.N("design:type",Object)],yk.prototype,"ytdLockupBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],yk.prototype,"ytdReduxBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],yk.prototype,"data",void 0);_.q([_.R(),_.N("design:type",String)],yk.prototype,"entitySelectorType",void 0);_.q([_.R(),_.N("design:type",Boolean)],yk.prototype,"noEndpoints",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],yk.prototype,"isRadio",void 0);_.q([_.R({reflectToAttribute:!0,selector:_.Y_}),_.N("design:type",Boolean)],yk.prototype,"miniMode",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],yk.prototype,"fullHeight",void 0);
_.q([_.R(),_.N("design:type",Boolean)],yk.prototype,"showDarkVideoMetadata",void 0);_.q([_.R(),_.N("design:type",Boolean)],yk.prototype,"showLightVideoMetadata",void 0);_.q([_.R(),_.N("design:type",Number)],yk.prototype,"metadataColor",void 0);_.q([_.R(),_.N("design:type",Object)],yk.prototype,"showChannelAvatar",void 0);_.q([_.R(),_.N("design:type",Boolean)],yk.prototype,"hidden",void 0);_.q([_.R({value:!0}),_.N("design:type",Boolean)],yk.prototype,"showYtInteraction",void 0);
_.q([_.R(),_.N("design:type",String)],yk.prototype,"dismissedContentId",void 0);_.q([_.R({selectorArgs:["dismissedContentId"],selector:Vhf}),_.N("design:type",Object)],yk.prototype,"dismissActionToReplayEntity",void 0);
_.q([_.R({selectorArgs:["entitySelectorType","mediaId"],selector:function(x,G,D){if(_.B("kevlar_modern_downloads_page")&&D&&G&&G!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(G){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var K=QLQ(x,D);if(K){G=_.C3(x,D);var z=j5(x,D),y=$6h(x,D);x=OA(x,D);var c=KaC(K,G,z,y);z=c.shortViewCountText;var W=c.publishedTimeText;c=c.badges;var e=x>0;y=G$3(K,G,y,x);K=_.Z2(G)||G==="TRANSFER_STATE_FAILED"||G==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!e5(K.policyEntity)?
void 0:XRE(D,x,K.videoEntity.lengthSeconds);G==="TRANSFER_STATE_PAUSED_BY_USER"&&D&&!_.B("dl_resume_click_killswitch")&&(K={offlineVideoEndpoint:{videoId:D,action:"ACTION_RESUME"}});D={shortViewCountText:z,publishedTimeText:W,badges:c,isWatched:e,navigationEndpoint:K,thumbnailOverlays:y}}else D=void 0;return D;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(G=poL(x,D))if(K=_.I_(x,D),y=_.V1f(x,D),K!=="TRANSFER_STATE_UNKNOWN"){D=DZV(G,K,y,D,Ted(x));break a}D=void 0}return D;default:_.O9(new _.LL("Error: entitySelectorType defined but not matched in selector.",
x,G))}}}),
_.N("design:type",Object)],yk.prototype,"entityDrivenState",void 0);_.q([_.R({computed:"computeVideoTitleText(data)"}),_.N("design:type",Object)],yk.prototype,"videoTitleText",void 0);_.q([_.R({computed:"computeHasPlaylistThumbnail(data)"}),_.N("design:type",Object)],yk.prototype,"hasPlaylistThumbnail",void 0);_.q([_.R({computed:"computeNavigationEndpoint(data)"}),_.N("design:type",Object)],yk.prototype,"computedNavigationEndpoint",void 0);
_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],yk.prototype,"typographyBump",void 0);_.q([_.R({reflectToAttribute:!0}),_.U("typographyBump"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],yk.prototype,"typographyBumpV2",null);_.q([_.cD("#video-title"),_.N("design:type",HTMLElement)],yk.prototype,"videoTitle",void 0);_.q([_.cD("#video-title-link"),_.N("design:type",HTMLElement)],yk.prototype,"videoTitleLink",void 0);
_.q([_.cD("#thumbnail"),_.N("design:type",HTMLElement)],yk.prototype,"thumbnail",void 0);_.q([_.cD("#dismissible"),_.N("design:type",HTMLElement)],yk.prototype,"JSC$13959_dismissibleMedia",void 0);_.q([_.U("data.menu"),_.N("design:type",Object),_.N("design:paramtypes",[])],yk.prototype,"lazyLoadMenu",null);_.q([_.U("data.menu"),_.N("design:type",Object),_.N("design:paramtypes",[])],yk.prototype,"immediateLoadMenu",null);
_.q([_.Z6("entityDrivenState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yk.prototype,"handleReloadDownloadsInfo",null);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yk.prototype,"onDataChanged",null);_.q([_.Z6("hidden"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yk.prototype,"onHiddenChanged",null);
_.q([_.yf("isDismissed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yk.prototype,"onIsDismissedChanged",null);_.q([_.yf("metadataColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yk.prototype,"metadataColorChanged",null);_.q([_.oe("mousedown"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],yk.prototype,"onMouseDown",null);
_.q([_.U("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],yk.prototype,"isHovered",null);_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],yk.prototype,"useAvatar",null);_.q([_.U("data","entitySelectorType"),_.N("design:type",String),_.N("design:paramtypes",[])],yk.prototype,"mediaId",null);yk=_.q([_.d({is:"ytd-rich-grid-media",disableElementRegistration:!0})],yk);
var uls=_.x$()(yk,"ytd-rich-grid-media",function(){if(nx0!==void 0)return nx0;var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" dark$="[[showDarkVideoMetadata]]" hidden="[[hidden]]" light$="[[showLightVideoMetadata]]" on-click="onRendererTap" class="style-scope ytd-rich-grid-media"><div id="thumbnail" class="style-scope ytd-rich-grid-media"><ytd-thumbnail data="[[data]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-thumbnail><ytd-playlist-thumbnail data="[[data]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-playlist-thumbnail></div><div id="thumbnail-underlay" on-click="onDetailsClick" hidden="[[!data.thumbnailUnderlay]]" class="style-scope ytd-rich-grid-media"></div><div id="details" on-click="onDetailsClick" class="style-scope ytd-rich-grid-media"><div id="avatar-container" class="yt-simple-endpoint style-scope ytd-rich-grid-media" hidden="[[!showChannelAvatar]]"><a id="avatar-link" class="yt-simple-endpoint style-scope ytd-rich-grid-media" href$="[[computeHref_(data.owner.navigationEndpoint)]]" data="[[data.owner.navigationEndpoint]]" title="[[data.owner.title]]" tabindex="-1" hidden="[[useAvatar]]"><yt-img-shadow id="avatar-image" thumbnail="[[data.owner.thumbnail]]" width="48" class="style-scope ytd-rich-grid-media"></yt-img-shadow></a><div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-rich-grid-media"></div></div><div id="meta" class="style-scope ytd-rich-grid-media"><h3 class="style-scope ytd-rich-grid-media"><ytd-badge-supported-renderer class="top-badge style-scope ytd-rich-grid-media" collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]"></ytd-badge-supported-renderer><a id="video-title-link" class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-media" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[computedNavigationEndpoint]]"><yt-formatted-string id="video-title" text="[[videoTitleText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string></a></h3><ytd-video-meta-block class="grid style-scope ytd-rich-grid-media" data="[[data]]" metadata-color="[[metadataColor]]" mini-mode="[[miniMode]]" radio-meta="[[isRadio]]" rich-meta="" typography-bump="[[typographyBump]]"></ytd-video-meta-block><ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-media" badges="[[data.badges]]" hidden="[[!data.badges]]"></ytd-badge-supported-renderer><ytd-badge-supported-renderer class="title-badge style-scope ytd-rich-grid-media" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]"></ytd-badge-supported-renderer><yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string><div id="buttons" class="style-scope ytd-rich-grid-media"></div></div><div id="menu" class="style-scope ytd-rich-grid-media"></div><div id="immediate-load-menu" class="style-scope ytd-rich-grid-media"></div></div><div id="attached-survey" class="style-scope ytd-rich-grid-media"></div></div><div id="dismissed" light$="[[showLightVideoMetadata]]" dark$="[[showDarkVideoMetadata]]" class="style-scope ytd-rich-grid-media"><div id="dismissed-content" class="style-scope ytd-rich-grid-media"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-media" hidden="[[!showYtInteraction]]"></yt-interaction>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return nx0=x},{mode:_.Ge("kevlar_poly_si_batch_j072")?1:2});var dQs;var lS=function(){var x=_.n.apply(this,arguments)||this;x.removeMaxWidth=!0;x.insetMetadata=!1;return x};
_.m(lS,_.n);_.a=lS.prototype;_.a.configureRendererStamper=function(){return{innerMenu:aH,outerMenu:Object.assign({},aH,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.a.onDataChanged=function(){var x,G=((x=this.data)==null?void 0:x.trackingParams)||"";G&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(G));var D;((D=this.dismissActionToReplayEntity)==null?0:D.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.a.attached=function(){this.updateInlinePreviewHoverListeners()};
_.a.detached=function(){this.clearInlinePreviewHoverListeners()};
_.a.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$13964_inlinePreviewHoverListener=uA({mediaRenderer:this,lockupElement:this.JSC$13964_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:R7Z})};
_.a.clearInlinePreviewHoverListeners=function(){var x;(x=this.JSC$13964_inlinePreviewHoverListener)==null||EH(x)};
_.a.onRendererTap=function(){var x,G,D=(x=this.data)==null?void 0:(G=x.serviceEndpoints)==null?void 0:G[0];_.Y(D,_.H1)&&this.componentBehavior.resolveCommand(D)};
_.a.onDetailsClick=function(x){var G,D=(G=this.data)==null?void 0:G.navigationEndpoint;D&&(_.u_(_.gA(x),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(D))};
_.a.onShow=function(){var x=this.data;x.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(x.onFirstVisibleCommand),delete x.onFirstVisibleCommand)};
_.Nq.Object.defineProperties(lS.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var x;return this.insetMetadata?void 0:(x=this.data)==null?void 0:x.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var x;return this.insetMetadata?(x=this.data)==null?void 0:x.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var x=this.data;if(x!=null&&x.badge&&(x=_.Y(x.badge,VYq))){var G,D,K;return[{metadataBadgeRenderer:{label:((G=x.label)==null?void 0:(D=G.runs)==null?void 0:D[0].text)||((K=x.label)==null?void 0:K.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var x=this.data;return Object.assign({},x.headline,{accessibility:x.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var x,G,D;return this.isSlimShort?(x=this.computedTitle)==null?void 0:(G=x.accessibility)==null?void 0:(D=G.accessibilityData)==null?void 0:D.label:void 0}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.JSC$13964_inlinePreviewHoverListener)==null?0:mZ(x))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
lS.prototype.onDataChanged=lS.prototype.onDataChanged;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],lS.prototype,"componentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],lS.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.RG),_.N("design:type",Object)],lS.prototype,"ytdLockupBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],lS.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.I(_.CS),_.N("design:type",Object)],lS.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],lS.prototype,"ytdReduxBehavior",void 0);_.q([_.cD("ytd-thumbnail"),_.N("design:type",HTMLElement)],lS.prototype,"thumbnail",void 0);_.q([_.cD("#dismissible"),_.N("design:type",HTMLElement)],lS.prototype,"JSC$13964_dismissibleMedia",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],lS.prototype,"removeMaxWidth",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],lS.prototype,"insetMetadata",void 0);_.q([_.R(),_.N("design:type",String)],lS.prototype,"dismissedContentId",void 0);_.q([_.R({selectorArgs:["dismissedContentId"],selector:Vhf}),_.N("design:type",Object)],lS.prototype,"dismissActionToReplayEntity",void 0);_.q([_.U("insetMetadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],lS.prototype,"thumbnailObjectFit",null);
_.q([_.U("data","insetMetadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],lS.prototype,"innerMenu",null);_.q([_.U("data","insetMetadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],lS.prototype,"outerMenu",null);_.q([_.R(),_.N("design:type",Object)],lS.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,selector:_.Y_}),_.N("design:type",Boolean)],lS.prototype,"miniMode",void 0);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lS.prototype,"onDataChanged",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],lS.prototype,"shortsBadges",null);_.q([_.U("data"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],lS.prototype,"isShort",null);
_.q([_.U("data"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],lS.prototype,"isSlimShort",null);_.q([_.U("data","isShort"),_.N("design:type",Object),_.N("design:paramtypes",[])],lS.prototype,"computedTitle",null);_.q([_.U("isSlimShort","computedTitle"),_.N("design:type",Object),_.N("design:paramtypes",[])],lS.prototype,"computedAccessibilityLabel",null);
_.q([_.U("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],lS.prototype,"isHovered",null);lS=_.q([_.d({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],lS);
_.w(lS,"ytd-rich-grid-slim-media",function(){if(dQs!==void 0)return dQs;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return dQs=x},{mode:_.Ge("kevlar_poly_si_batch_j063")?1:2});var wJq;var qSE;var cX=function(){var x=_.n.apply(this,arguments)||this;x.darkerDarkTheme=_.B("web_darker_dark_theme");return x};
_.m(cX,_.n);cX.prototype.computeIcon=function(x){return x&&x.iconType?"yt-sys-icons:"+x.iconType.toLowerCase():""};
cX.prototype.onMouseEnter=function(){this.isHovered=!0};
cX.prototype.onMouseLeave=function(){this.isHovered=!1};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],cX.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],cX.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],cX.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],cX.prototype,"data",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],cX.prototype,"isHovered",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],cX.prototype,"darkerDarkTheme",void 0);cX=_.q([_.d({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],cX);
_.w(cX,"ytd-expand-on-hover-card-renderer",function(){if(qSE!==void 0)return qSE;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return qSE=x},{mode:1});var NSZ,vxq=function(){if(NSZ!==void 0)return NSZ;var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return NSZ=x};_.HH("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var T6=function(){var x=_.n.apply(this,arguments)||this;x.compactStyle=!1;x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return x};
_.m(T6,_.n);_.a=T6.prototype;_.a.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.a.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"}}}};
_.a.computeHideDot=function(x){return!(x&&x.subscriberCountText&&x.videoCountText)||this.compactStyle};
_.a.hasDualButtons=function(x){return x&&x.purchaseButton&&x.subscribeButton};
_.a.backgroundColorChanged=function(){if(this.data!==void 0){var x=this.data.backgroundColor;this.isDarkTheme&&(x=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=x!=null?_.In(x):"transparent"}};
_.a.onDarkModeToggledAction=function(x){this.isDarkTheme=x};
_.a.onTap=function(x){var G,D,K=((G=this.data)==null?void 0:G.navigationEndpoint)||((D=this.data)==null?void 0:D.serviceEndpoint);_.Y(K,_.hc)&&(K&&_.Eo().resolve(_.hm).resolveCommand(K,{form:{element:this.hostElement}}),x.preventDefault())};
_.a.computeChannelEndpoint=function(x){return _.Y(x,_.hc)?null:x};
_.a.computeHrefEndpoint=function(x){return _.Y(x,_.hc)?null:this.componentBehavior.computeHref_(x)};
_.a.computeChannelRendererStyle=function(x){return x};
_.a.computeIconSize=function(x){return x?108:136};
_.Nq.Object.defineProperties(T6,{template:{configurable:!0,enumerable:!0,get:function(){return vxq()}}});
T6.prototype.backgroundColorChanged=T6.prototype.backgroundColorChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],T6.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],T6.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.i9),_.N("design:type",Object)],T6.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],T6.prototype,"componentBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],T6.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Boolean)],T6.prototype,"isDarkTheme",void 0);_.q([_.R({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.N("design:type",String)],T6.prototype,"channelRendererStyle",void 0);_.q([_.R({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],T6.prototype,"dualButtons",void 0);_.q([_.R({reflectToAttribute:!0,value:function(){return _.B("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],T6.prototype,"useBiggerThumbs",void 0);_.q([_.R({reflectToAttribute:!0,value:function(){return _.Db("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],T6.prototype,"biggerThumbStyle",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],T6.prototype,"compactStyle",void 0);_.q([_.yf("data","isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],T6.prototype,"backgroundColorChanged",null);T6=_.q([_.d({is:"ytd-channel-renderer",disableElementRegistration:!0})],T6);_.w(T6,"ytd-channel-renderer",function(){return vxq()},{mode:1});var JPZ;var f3E;_.HH("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var WX=function(){var x=_.n.apply(this,arguments)||this;x.displayItemCount=2;x.collections=_.B("web_modern_collections_v2");x.hasPlaylistThumbnail=!1;x.stackThumbnailSize="large";return x};
_.m(WX,_.n);_.a=WX.prototype;_.a.attached=function(){this.updateInlinePreviewHoverListeners()};
_.a.detached=function(){this.clearInlinePreviewHoverListeners()};
_.a.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.a.computeFirstVideos=function(x,G){return x&&G?x.slice(0,G):[]};
_.a.computeThumbnailWidth=function(x,G){return x?G==="BIG"?500:G==="MASSIVE"?600:G==="MEDIUM"?450:420:360};
_.a.computeThumbnailHeight=function(x,G){return x?G==="BIG"?280:G==="MASSIVE"?337:234:202};
_.a.clearInlinePreviewHoverListeners=function(){var x;(x=this.JSC$13977_inlinePreviewHoverListener)==null||EH(x)};
_.a.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13977_inlinePreviewHoverListener=uA({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:UeJ,thumbnailElement:this.thumbnail})};
_.a.computeHasPlaylistThumbnail=function(x){var G,D;if((((G=x.thumbnailRenderer)==null?0:G.playlistVideoThumbnailRenderer)||((D=x.thumbnailRenderer)==null?0:D.playlistCustomThumbnailRenderer))&&x.thumbnailOverlays)for(G=0;G<x.thumbnailOverlays.length;G++)if(D=void 0,(D=x.thumbnailOverlays[G])==null?0:D.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Nq.Object.defineProperties(WX.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.JSC$13977_inlinePreviewHoverListener)==null?0:mZ(x))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
WX.prototype.dataChanged=WX.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],WX.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.RG),_.N("design:type",Object)],WX.prototype,"ytdLockupBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],WX.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],WX.prototype,"displayItemCount",void 0);_.q([_.R({reflectToAttribute:!0,value:function(){return _.B("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],WX.prototype,"useBiggerThumbs",void 0);_.q([_.R({reflectToAttribute:!0,value:function(){return _.Db("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],WX.prototype,"biggerThumbsStyle",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],WX.prototype,"collections",void 0);_.q([_.R({computed:"computeHasPlaylistThumbnail(data)"}),_.N("design:type",Object)],WX.prototype,"hasPlaylistThumbnail",void 0);_.q([_.R(),_.N("design:type",String)],WX.prototype,"stackThumbnailSize",void 0);_.q([_.cD("ytd-thumbnail"),_.N("design:type",HTMLElement)],WX.prototype,"thumbnail",void 0);
_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WX.prototype,"dataChanged",null);_.q([_.U("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],WX.prototype,"isHovered",null);WX=_.q([_.d({is:"ytd-radio-renderer",disableElementRegistration:!0})],WX);
_.w(WX,"ytd-radio-renderer",function(){if(f3E!==void 0)return f3E;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return f3E=x},{mode:_.Ge("kevlar_poly_si_batch_j058")?1:2});var t6s;_.HH("itemSectionRenderer","showRenderer","ytd-show-renderer");var eD=function(){return _.n.apply(this,arguments)||this};
_.m(eD,_.n);eD.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
eD.prototype.computeThumbnailWidth=function(x){return x?360:246};
eD.prototype.computeUseProminentThumbs=function(x){return x};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],eD.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],eD.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],eD.prototype,"data",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],eD.prototype,"isSearch",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.N("design:type",Boolean)],eD.prototype,"useProminentThumbs",void 0);eD=_.q([_.d({is:"ytd-show-renderer",disableElementRegistration:!0})],eD);
_.w(eD,"ytd-show-renderer",function(){if(t6s!==void 0)return t6s;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return t6s=x},{mode:1});_.HH("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var Zl=function(){var x=_.n.apply(this,arguments)||this;x.isRichGrid=!1;return x};
_.m(Zl,_.n);Zl.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"}}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Zl.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Zl.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Zl.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Zl.prototype,"isRichGrid",void 0);Zl=_.q([_.d({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],Zl);
_.w(Zl,"ytd-feed-entry-renderer",function(){if(JPZ!==void 0)return JPZ;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return JPZ=x},{mode:1});var ko9;var MG=function(){return _.n.apply(this,arguments)||this};
_.m(MG,_.n);MG.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.q([_.I(_.$l),_.N("design:type",Object)],MG.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],MG.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],MG.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],MG.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,selector:_.m8,value:3}),_.N("design:type",Number)],MG.prototype,"itemsPerRow",void 0);
MG=_.q([_.d({is:"ytd-link-card-renderer",disableElementRegistration:!0})],MG);
_.w(MG,"ytd-link-card-renderer",function(){if(ko9!==void 0)return ko9;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return ko9=x},{mode:1});var PJZ;var Qk=function(){return _.n.apply(this,arguments)||this};
_.m(Qk,_.n);_.a=Qk.prototype;_.a.configureRendererStamper=function(){return{"data.menu":aH,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.a.onRendererTap=function(x){if(!this.ytdDismissibleItemBehavior.isDismissed){var G,D=(G=this.data)==null?void 0:G.navigationEndpoint;D&&!_.u_(_.gA(x),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(D)?_.u_(_.gA(x),this.hostElement,["A"])||_.h$(this.hostElement,"yt-navigate",{endpoint:D}):this.ytComponentBehavior.resolveCommand(D,{}))}};
_.a.maybeComputeHref=function(x){return this.ytComponentBehavior.computeHref_(x,!0)};
_.a.getNavigationCommand=function(x){return this.isNavigationCommand(x)?x:null};
_.a.isNavigationCommand=function(x){return x?_.Y(x,_.TU)||_.Y(x,_.d5)||_.Y(x,_.iV)?!0:!1:!1};
Qk.prototype.onRendererTap=Qk.prototype.onRendererTap;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Qk.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Qk.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.CS),_.N("design:type",Object)],Qk.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Qk.prototype,"ytComponentBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],Qk.prototype,"data",void 0);_.q([_.oe("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Qk.prototype,"onRendererTap",null);Qk=_.q([_.d({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],Qk);
_.w(Qk,"ytd-lumiere-promo-item-image-renderer",function(){if(PJZ!==void 0)return PJZ;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return PJZ=x},{mode:1});var Exk;var pq=function(){return _.n.apply(this,arguments)||this};
_.m(pq,_.n);pq.prototype.computeLandscapeThumbnail=function(){var x;return((x=this.data)==null?void 0:x.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],pq.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],pq.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],pq.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,selector:_.Y_}),_.N("design:type",Boolean)],pq.prototype,"miniMode",void 0);_.q([_.R({reflectToAttribute:!0,selector:_.m8}),_.N("design:type",Number)],pq.prototype,"itemsPerRow",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.N("design:type",Boolean)],pq.prototype,"landscapeThumbnail",void 0);pq=_.q([_.d({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],pq);
_.w(pq,"ytd-lumiere-shelf-details-renderer",function(){if(Exk!==void 0)return Exk;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Exk=x},{mode:_.Ge("kevlar_poly_si_batch_j076")?1:2});var hIq;var Vk=function(){return _.n.apply(this,arguments)||this};
_.m(Vk,_.n);Vk.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Vk.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Vk.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Vk.prototype,"data",void 0);Vk=_.q([_.d({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],Vk);
_.w(Vk,"ytd-primetime-promo-details-renderer",function(){if(hIq!==void 0)return hIq;var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return hIq=x},{mode:1});var x4J;var bS=function(){return _.n.apply(this,arguments)||this};
_.m(bS,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],bS.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],bS.prototype,"data",void 0);bS=_.q([_.d({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],bS);
_.w(bS,"ytd-panel-show-style-metadata-renderer",function(){if(x4J!==void 0)return x4J;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return x4J=x},{mode:1});var GTh;var Lq=function(){return _.n.apply(this,arguments)||this};
_.m(Lq,_.n);_.a=Lq.prototype;_.a.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.a.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.a.computeThumbnail=function(x){if(x)return x.smallFormFactorBackgroundThumbnail||x.largeFormFactorBackgroundThumbnail};
_.a.maybeComputeHref=function(x){return this.ytComponentBehavior.computeHref_(x,!0)};
_.a.isNavigationCommand=function(x){return x?_.Y(x,_.TU)||_.Y(x,_.d5)||_.Y(x,_.iV)?!0:!1:!1};
_.a.getNavigationCommand=function(x){return this.isNavigationCommand(x)?x:null};
Lq.prototype.onPanelTap=Lq.prototype.onPanelTap;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Lq.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Lq.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Lq.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Lq.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],Lq.prototype,"roundedContainer",void 0);_.q([_.R({reflectToAttribute:!0,value:_.B("web_modern_buttons")}),_.N("design:type",Boolean)],Lq.prototype,"modernButtons",void 0);_.q([_.oe("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Lq.prototype,"onPanelTap",null);Lq=_.q([_.d({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],Lq);
_.w(Lq,"ytd-primetime-promo-panel-renderer",function(){if(GTh!==void 0)return GTh;var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return GTh=x},{mode:1});_.tn(_.Nv(function(x){x=_.qv(x,{data:{},useFullWidth:!1});var G=x.data,D=x.useFullWidth,K=function(){return G().caption},z=function(){return G().image},y=function(){return _.jn(G().onTap)};
x={};x=_.ym("ytTeaserCardViewModelHost",(x.ytTeaserCardViewModelUseFullWidth=function(){return D()},x));
return _.M("teaser-card-view-model",{class:x},_.M(_.b,{cond:function(){return y()},
then:function(){return _.M(BLs,{className:"ytTeaserCardViewModelLink",command:y,forceNewState:!0,useATagConfig:!0},_.M("div",{class:"ytTeaserCardViewModelImageContainer"},_.M(_.b,{cond:z,then:function(c){return _.M(_.wk,{data:c,className:"ytTeaserCardViewModelImage",alt:""})}})),_.M("p",{class:"ytTeaserCardViewModelCaption"},K))}}))},"Fb"),"teaser-card-view-model",{props:{data:_.ik,
useFullWidth:_.ik}});var D4k=new _.wq("RICH_GRID_VIDEO_RENDERER_TOKEN");_.tn(_.Nv(function(x){var G=x.data;var D=x.showYtInteractionInContent;var K=function(){return!!G().selectableFeedback};
x=_.l(_.eO(!1,void 0,"nblDw"));var z=x.next().value,y=x.next().value;_.FQ(function(){var L=_.Y(G().primaryButton,_.Bq);(L==null?0:L.isToggled)&&y(L.isToggled)});
x=_.WH(function(L){if(!K())return!1;if(z()){var r;var H=(r=G().selectableFeedback)==null?void 0:r.onDeselect}else{var O;H=(O=G().selectableFeedback)==null?void 0:O.onSelect}H&&_.UI(H,{form:{element:L.target}});y(!z());if(L=_.Y(G().primaryButton,_.Bq))L.isToggled=z();return!1});
var c=function(){if(!K()){var L,r=(L=G().loggingDirectives)==null?void 0:L.trackingParams;r&&_.DO(_.Eo().resolve(_.ph),r)}},W=_.qGf(),e=function(){var L;
return K()?(L=G().selectableFeedback)==null?void 0:L.a11yLabel:void 0},Q=function(){return K()?{toggled:z()}:{}},p=_.Eo().resolve(_.P6(D4k)),V={};
return _.M("yt-feedback-item-renderer",{class:_.ym("ytFeedbackItemRendererHost",(V.ytFeedbackItemRendererSelectableFeedback=K,V)),"on:click":x,"on:keydown":W,title:e,"aria-label":e,"aria-pressed":function(){return K()?z():void 0},
tabindex:function(){return K()?0:void 0},
role:function(){return K()?"button":void 0}},_.M("div",{class:"ytFeedbackItemRendererContentContainer"},_.M(_.bA,{data:function(){return G().content}},{videoRenderer:function(L){return _.M(p,{data:L.data,
showYtInteraction:D})},
lockupViewModel:function(L){return _.M(_.kc,{data:L.data,containerType:2})}})),_.M("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.M(_.bA,{data:function(){return G().primaryButton}},{toggleButtonViewModel:function(L){return _.M(_.rl,{data:L.data,
buttonShapeOverrides:Q,disableExplicitClickLogging:!0,onToggle:c})}})))},"Gb"),"yt-feedback-item-renderer",{props:{data:_.ik,
showYtInteractionInContent:_.ik}});var BX=function(){var x=_.n.apply(this,arguments)||this;x.isShortsGrid=!1;x.isCompactGrid=!1;x.isShortsPanelGrid=!1;x.renderedFromRichGrid=!1;x.isInFirstColumn=!1;x.noGutterMargins=!1;x.isInlineGroupItem=!1;x.insetMetadata=!1;x.noBottomMarginInAds=_.B("web_no_bottom_margin_for_home_ad_buttons");x.force16By9ThumbnailAspectRatio=!1;x.useCompactList=!1;x.containerType=2;x.thumbnailTargetWidth=9999;x.isResponsiveGrid=!1;x.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};x.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};x.hoverListener=x.hover.bind(x);x.leaveListener=x.leave.bind(x);x.highlighted=!1;x.JSC$14012_unsubscribeFromInlinePreviewIsActive=function(){};
return x};
_.m(BX,_.n);_.a=BX.prototype;_.a.computeContainerType=function(){return this.useCompactList?3:2};
_.a.computeThumbnailTargetWidth=function(){var x;return(x=this.itemWidth)!=null?x:9999};
_.a.updateIsInFirstColumn=function(){var x;this.isInFirstColumn=((x=this.data)==null?void 0:x.colIndex)===0};
_.a.observerContainerType=function(){if(this.lockup){var x=this.lockup;x.containerType=this.containerType;x.sizing=this.sizing;x.typographyBump=this.typographyBump;x.itemWidth=this.itemWidth}this.richGridMedia&&_.B("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.B("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.a.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.a.leave=function(x){x=x.relatedTarget;var G=document.querySelector("ytd-video-preview");x&&G&&_.Pi(G).contains(x)||this.removeAndCleanupHighlight()};
_.a.hover=function(){var x;if(!this.highlighted&&(!_.B("web_enable_rich_item_on_focus_effect")||(x=this.data)!=null&&x.onFocusEffect)){var G,D;((G=this.data)==null?void 0:(D=G.onFocusEffect)==null?void 0:D.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(x=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:x,boxShadow:"0 0 0 10px "+x}));var K,z;((K=this.data)==null?void 0:(z=K.onFocusEffect)==null?void 0:
z.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.a.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};
_.a.registerHoverHighlightListeners=function(){var x=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$14012_unsubscribeFromInlinePreviewIsActive=_.la(_.wK(),_.yzd,function(G){x.highlighted&&!G&&x.removeAndCleanupHighlight()})};
_.a.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$14012_unsubscribeFromInlinePreviewIsActive()};
_.a.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.a.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.a.getBackgroundColor=function(){var x,G,D=(x=this.data)==null?void 0:(G=x.onFocusEffect)==null?void 0:G.onFocusColor;if(D){if(document.documentElement.hasAttribute("dark")&&(D==null?0:D.darkTheme))return _.In(D==null?void 0:D.darkTheme);if(D==null?0:D.lightTheme)return _.In(D==null?void 0:D.lightTheme)}};
_.a.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var x=_.CC(),G,D,K;x&&((G=this.data)==null?0:G.trackingParams)&&((D=this.data)==null?void 0:D.colIndex)!=null&&((K=this.data)==null?void 0:K.rowIndex)!=null&&_.wB(x,_.V2(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.a.isSlimMediaRenderer=function(x){return!!_.Y(x==null?void 0:x.content,_.fzs)||!!_.Y(x==null?void 0:x.content,J3k)||!!_.Y(x==null?void 0:x.content,_.Ho)||!!_.Y(x==null?void 0:x.content,MYZ)};
_.a.isPostRenderer=function(){var x,G;return!!_.Y((x=this.data)==null?void 0:x.content,xtZ)||!!_.Y((G=this.data)==null?void 0:G.content,G0J)};
_.a.computeIsGameCardShelf=function(){var x;return!!_.Y((x=this.data)==null?void 0:x.content,GE8)};
_.a.computeIsMiniGameCardShelf=function(){var x,G;return!!_.Y((x=this.data)==null?void 0:x.content,VwZ)||!!_.Y((G=this.data)==null?void 0:G.content,bXu)};
_.a.computeIsTeaserCard=function(){var x;return!!_.Y((x=this.data)==null?void 0:x.content,bXu)};
_.a.computeIsSelectableFeedbackItem=function(){var x,G;return!((G=_.Y((x=this.data)==null?void 0:x.content,_.Bg9))==null||!G.selectableFeedback)};
_.a.computeContainsLumierePosters=function(){var x,G;return((G=_.Y((x=this.data)==null?void 0:x.content,WJh))==null?void 0:G.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.a.computeIsExpandOnHoverCardShelf=function(){var x;return!!_.Y((x=this.data)==null?void 0:x.content,Tvq)};
_.a.computeIsLinkCardShelf=function(){var x;return!!_.Y((x=this.data)==null?void 0:x.content,Beh)};
_.a.computeIsReelItemStyleAvatarCircle=function(x){var G;return((G=_.Y(x==null?void 0:x.content,_.Ho))==null?void 0:G.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.a.computeIsLinkCardFullWidth=function(x,G){var D;return((D=_.Y(x==null?void 0:x.content,Beh))==null?void 0:D.useFullWidth)||G<=2};
_.Nq.Object.defineProperties(BX.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){return this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.B("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.B("web_enable_rich_item_on_focus_effect")||_.B("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return _.B("web_shorts_2_by_3_lockups_no_home")&&this.isHomeShelf?0:this.isInlineGroupItem?2:this.isShortsPanelGrid||_.B("web_shorts_2_by_3_lockups_study")||_.B("web_shorts_2_by_3_lockups_home")&&this.isHomeShelf?1:0}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
BX.prototype.richGridHoverHighlightChanged=BX.prototype.richGridHoverHighlightChanged;BX.prototype.observerContainerType=BX.prototype.observerContainerType;BX.prototype.updateIsInFirstColumn=BX.prototype.updateIsInFirstColumn;_.q([_.I(_.$l),_.N("design:type",Object)],BX.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],BX.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],BX.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],BX.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.RG),_.N("design:type",Object)],BX.prototype,"ytdLockupBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],BX.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.N("design:type",Boolean)],BX.prototype,"isPost",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.N("design:type",Boolean)],BX.prototype,"containsLumierePosters",void 0);_.q([_.R({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.N("design:type",Boolean)],BX.prototype,"isSlimMedia",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.N("design:type",Boolean)],BX.prototype,"isGameCardShelf",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.N("design:type",Boolean)],BX.prototype,"isMiniGameCardShelf",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.N("design:type",Boolean)],BX.prototype,"isTeaserCard",void 0);_.q([_.R({computed:"computeIsSelectableFeedbackItem(data)"}),_.N("design:type",Boolean)],BX.prototype,"isSelectableFeedbackItem",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],BX.prototype,"isShortsGrid",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],BX.prototype,"isSlimGrid",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],BX.prototype,"isCompactGrid",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],BX.prototype,"isShortsPanelGrid",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.N("design:type",Boolean)],BX.prototype,"isExpandOnHoverCardShelf",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.N("design:type",Boolean)],BX.prototype,"isLinkCardShelf",void 0);_.q([_.R({reflectToAttribute:!0,selector:_.m8,value:3}),_.N("design:type",Number)],BX.prototype,"itemsPerRow",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],BX.prototype,"renderedFromRichGrid",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],BX.prototype,"isInFirstColumn",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],BX.prototype,"noGutterMargins",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],BX.prototype,"isInlineGroupItem",void 0);_.q([_.R(),_.N("design:type",Object)],BX.prototype,"insetMetadata",void 0);
_.q([_.R(),_.N("design:type",Object)],BX.prototype,"noBottomMarginInAds",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],BX.prototype,"isShelfItem",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.N("design:type",Boolean)],BX.prototype,"isReelItemStyleAvatarCircle",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.N("design:type",Boolean)],BX.prototype,"isLinkCardFullWidth",void 0);
_.q([_.R(),_.N("design:type",Object)],BX.prototype,"force16By9ThumbnailAspectRatio",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],BX.prototype,"useCompactList",void 0);_.q([_.R(),_.N("design:type",String)],BX.prototype,"sizing",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],BX.prototype,"typographyBump",void 0);_.q([_.R(),_.N("design:type",Number)],BX.prototype,"itemWidth",void 0);_.q([_.R(),_.N("design:type",Boolean)],BX.prototype,"isHomeShelf",void 0);
_.q([_.R(),_.N("design:type",Boolean)],BX.prototype,"isHomeGrid",void 0);_.q([_.cD("yt-lockup-view-model"),_.N("design:type",HTMLElement)],BX.prototype,"lockup",void 0);_.q([_.cD("ytd-rich-grid-media"),_.N("design:type",HTMLElement)],BX.prototype,"richGridMedia",void 0);_.q([_.cD("ytd-ad-slot-renderer"),_.N("design:type",HTMLElement)],BX.prototype,"adSlotRenderer",void 0);_.q([_.R({computed:"computeContainerType(useCompactList)"}),_.N("design:type",Object)],BX.prototype,"containerType",void 0);
_.q([_.R({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.N("design:type",Object)],BX.prototype,"thumbnailTargetWidth",void 0);_.q([_.U("showYtInteractionOnRichItem"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],BX.prototype,"showYtInteractionOnRichGridMedia",null);_.q([_.U("isSelectableFeedbackItem","richGridHoverHighlight"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],BX.prototype,"showYtInteractionOnRichItem",null);
_.q([_.U("typographyBump","isHomeGrid"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],BX.prototype,"richTypographyBump",null);_.q([_.R({reflectToAttribute:!0}),_.U("isShortsGrid","isCompactGrid"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],BX.prototype,"richGridHoverHighlight",null);_.q([_.U("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.N("design:type",Number),_.N("design:paramtypes",[])],BX.prototype,"shortsLockupViewModelAspectRatio",null);
_.q([_.U("isInlineGroupItem"),_.N("design:type",Number),_.N("design:paramtypes",[])],BX.prototype,"shortsLockupViewModelScrimStyle",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BX.prototype,"updateIsInFirstColumn",null);_.q([_.yf("containerType","sizing","typographyBump"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BX.prototype,"observerContainerType",null);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],BX.prototype,"isResponsiveGrid",void 0);_.q([_.R(),_.N("design:type",Object)],BX.prototype,"lockupExperiments",void 0);_.q([_.yf("richGridHoverHighlight"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BX.prototype,"richGridHoverHighlightChanged",null);BX=_.q([_.d({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],BX);
_.KXs=_.x$()(BX,"ytd-rich-item-renderer",function(){if(wJq===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);wJq=x}x=wJq;return x},{mode:_.Ge("kevlar_poly_si_batch_j028")?1:2});var b0O={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var $A$=_.gK(_.Wg("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var zb9;var rX=function(){var x=_.n.apply(this,arguments)||this;x.useResponsiveGrid=!1;x.hidden=!1;x.standardShelfMargins=_.B("web_rich_grid_standard_shelf_margins");x.isShowMoreHidden=!1;x.isExpanded=!1;x.isInnerShelf=!1;x.allVideosCount=0;x.allPlaylistCount=0;x.haveSmartDownloadsCompleted=!1;x.isShowLessHidden=!0;x.restrictContentsOverflow=!1;x.firstShownIndex=0;x.horizontalOffset=0;x.atEnd=!0;x.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};x.nextClick=function(){var G;(G=x.data)!=null&&G.contents&&(x.firstShownIndex+=x.currentElementsPerRow,x.updateHorizontalOffset(),x.updateHorizontalItemVisibility())};
x.previousClick=function(){var G;(G=x.data)!=null&&G.contents&&(x.firstShownIndex-=x.currentElementsPerRow,x.updateHorizontalOffset(),x.updateHorizontalItemVisibility())};
return x};
_.m(rX,_.n);_.a=rX.prototype;
_.a.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:_.Am("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.a.attached=function(){this.requestElementsPerRow()};
_.a.refreshGridLayoutNew=function(){var x;if((x=this.data)!=null&&x.contents&&this.containerWidth){var G;((G=this.data.responsiveContainerConfiguration)==null?0:G.responsiveSize)?(x=_.I1Q(this.data.responsiveContainerConfiguration,this.containerWidth),x=_.wl(Object.assign({},x,{standardUnitMinWidth:this.standardUnitMinWidth}))):x=_.wl({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=x.typographyBump;if(this.elementsPerRow!==
x.numItems||this.gutter!==x.gutter)this.elementsPerRow=x.numItems,this.gutter=x.gutter,this.itemWidth=x.itemWidth,_.K7(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":x.gutter+"px"})}};
_.a.computeSizing=function(){if(!this.isLumiere){var x=_.f5O(this.data);if(x)return x;if(_.B("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.a.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.a.computeButton=function(x){var G=_.Y(x,_.$V);x=Object.assign({},_.Y(x,_.$V));return G?(x.text||(x.text={simpleText:x.tooltip}),x.style="STYLE_MONO_OUTLINE",x.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",x):G};
_.a.onRowIndexChange=function(){var x=_.CC(),G,D;((G=this.data)==null?0:G.trackingParams)&&((D=this.data)==null?void 0:D.rowIndex)!=null&&x&&_.wB(x,_.V2(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.a.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var x,G=((x=this.getRichItemRenderers()[0])==null?void 0:x.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*G;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.a.requestElementsPerRow=function(){_.h$(this.hostElement,"yt-request-elements-per-row")};
_.a.onUpdateElementsPerRowAction=function(x,G,D,K,z,y){if(this.containerWidth!==y&&(this.containerWidth=y,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&x&&G&&D&&K&&z&&(this.elementsPerRow!==x||this.postsPerRow!==G||this.slimItemsPerRow!==D||this.gameCardsPerRow!==K||this.miniGameCardsPerRow!==z)&&(this.elementsPerRow=x,this.postsPerRow=G,this.slimItemsPerRow=D,this.gameCardsPerRow=K,this.miniGameCardsPerRow=z,this.updateItemVisibility())};
_.a.getRichItemRenderers=function(){return _.kA(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.a.updateItemVisibility=function(){var x=this;if(this.data&&this.data.contents){var G=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(K,z){var y;((y=x.data)==null?0:y.isExpanded)?(K.hidden=z>G-1,K.ytRendererBehavior.markDirty()):K.hidden=z>x.currentElementsPerRow-1||z>G-1});
var D=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||D||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||D||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.a.setHeightToSingleRow=function(){var x=this.getRichItemRenderers(),G=Number.parseInt(getComputedStyle(x[0]).marginBottom,10)||0;x=x.slice(0,this.currentElementsPerRow).reduce(function(D,K){return Math.max(D,K.getBoundingClientRect().height+G)},0);
this.contents.style.height=x+"px"};
_.a.focusNextExpandedItem=function(){var x;((x=this.data)==null?0:x.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.a.focusItem=function(x,G){var D=this.getRichItemRenderers();if(D[x]&&(x=D[x].querySelector(".focus-on-expand"))){if(G){var K;(K=D[this.currentElementsPerRow])==null||K.scrollIntoView({behavior:"smooth",block:"center"})}x.focus({preventScroll:!0})}};
_.a.onDataChange=function(){var x=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var G;if((G=this.data)==null?0:G.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.w1(this,function(){x.updateItemVisibility()});
var D;if((D=this.data)==null?0:D.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.K7(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),G=0;G<this.data.contents.length;G++)D=_.Y(this.data.contents[G],_.Bo)||{},D.colIndex=G,D.rowIndex=this.data.rowIndex};
_.a.handleRerenderDownloadsData=function(){_.B("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())};
_.a.blockInlinePreview=function(x){var G=this,D;return _.T(function(K){(D=G.inlinePreviewIsEnabled)&&G.ytdReduxBehavior.dispatch(_.zK7(!1));return K.return(new Promise(function(z){x(function(){D&&G.ytdReduxBehavior.dispatch(_.zK7(!0));z()})}))})};
_.a.expandShelf=function(){var x=this;if(this.data){var G,D=(G=_.Y(this.data.showMoreButton,_.$V))==null?void 0:G.trackingParams;D&&_.DO(_.en(),D);this.data.isExpanded=!0;this.blockInlinePreview(function(K){x.setHeightToSingleRow();x.updateItemVisibility();x.contents.style.height=x.contents.scrollHeight+"px";_.Fj.addJob(function(){x.contents.style.height="auto";x.focusNextExpandedItem();K()},2,200)})}};
_.a.collapseShelf=function(){var x=this;return _.T(function(G){if(G.nextAddress==1){if(!x.data)return G.return();x.data.isExpanded=!1;return _.Z(G,x.blockInlinePreview(function(D){x.contents.style.height=x.contents.scrollHeight+"px";x.setHeightToSingleRow();_.Fj.addJob(function(){x.updateItemVisibility();x.contents.style.height="auto";D()},2,200)}),2)}_.h$(x.hostElement,"yt-rich-shelf-renderer-collapse",x.data.trackingParams);
x.focusItem(0,!1);_.c5(G)})};
_.a.updateArrowButtonStatus=function(){var x=this.getRichItemRenderers().length;if(!_.B("web_rich_shelf_renderer_use_data_contents_killswitch")){var G,D;x=((G=this.data)==null?void 0:(D=G.contents)==null?void 0:D.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=x};
_.a.onChildElementFocus=function(x){this.hasChevronButtons&&(x=x.target.closest("#contents > *"),this.contents.contains(x)&&(x.offsetLeft<this.horizontalOffset?this.previousClick():x.offsetLeft+x.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.a.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.Am("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.a.updateHorizontalOffset=function(){var x=this.getRichItemRenderers(),G=x.length;if(!_.B("web_rich_shelf_renderer_use_data_contents_killswitch")){var D,K;G=((D=this.data)==null?void 0:(K=D.contents)==null?void 0:K.length)||0}var z;x=((z=x[0])==null?void 0:z.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>G?this.firstShownIndex=G-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*x};
_.a.isSlimMediaShelfRenderer=function(){var x,G,D,K=(D=_.Y((x=this.data)==null?void 0:(G=x.contents)==null?void 0:G[0],_.Bo))==null?void 0:D.content;return!!(_.Y(K,_.fzs)||_.Y(K,J3k)||_.Y(K,_.Ho)||_.Y(K,MYZ))};
_.a.isGameCardShelf=function(){var x,G,D,K=(D=_.Y((x=this.data)==null?void 0:(G=x.contents)==null?void 0:G[0],_.Bo))==null?void 0:D.content;return!!_.Y(K,GE8)};
_.a.isGnomeShelf=function(){var x,G,D,K=(D=_.Y((x=this.data)==null?void 0:(G=x.contents)==null?void 0:G[0],_.Bo))==null?void 0:D.content;return!!_.Y(K,_.Bg9)};
_.a.isMiniGameCardShelf=function(){var x,G,D,K=(D=_.Y((x=this.data)==null?void 0:(G=x.contents)==null?void 0:G[0],_.Bo))==null?void 0:D.content;return!!_.Y(K,VwZ)||!!_.Y(K,bXu)};
_.a.hasGameBoxArtAvatarStyle=function(){var x;return((x=this.data)==null?void 0:x.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.a.hasRoundedGameBoxArtAvatarStyle=function(){var x;return((x=this.data)==null?void 0:x.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.a.isShortsShelf=function(){var x,G,D,K=(D=_.Y((x=this.data)==null?void 0:(G=x.contents)==null?void 0:G[0],_.Bo))==null?void 0:D.content;return!!_.Y(K,_.Ho)||!!_.Y(K,MYZ)};
_.a.isPostShelfRenderer=function(){var x,G,D,K=(D=_.Y((x=this.data)==null?void 0:(G=x.contents)==null?void 0:G[0],_.Bo))==null?void 0:D.content;return!(!_.Y(K,xtZ)&&!_.Y(K,G0J))};
_.a.isLumiereShelf=function(){var x,G,D=_.Y((x=this.data)==null?void 0:(G=x.contents)==null?void 0:G[0],_.Bo);return!!_.Y(D==null?void 0:D.content,WJh)};
_.a.isLumiereShelfWithPosters=function(){var x,G,D=_.Y((x=this.data)==null?void 0:(G=x.contents)==null?void 0:G[0],_.Bo),K;return((K=_.Y(D==null?void 0:D.content,WJh))==null?void 0:K.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.a.isExpandOnHoverCardShelf=function(){var x,G,D,K=(D=_.Y((x=this.data)==null?void 0:(G=x.contents)==null?void 0:G[0],_.Bo))==null?void 0:D.content;return!!_.Y(K,Tvq)};
_.a.computeHasFeaturedBadge=function(){var x,G,D=_.Y((x=this.data)==null?void 0:(G=x.badges)==null?void 0:G[0],_.LH9);return D?D.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.a.computeHasPaygatedFeaturedBadge=function(){var x,G,D=_.Y((x=this.data)==null?void 0:(G=x.badges)==null?void 0:G[0],_.LH9);return D?(D==null?void 0:D.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.a.computeHeaderHidden=function(){var x,G,D,K,z,y;return!((x=this.data)==null?0:x.icon)&&!((G=this.data)==null?0:G.title)&&!((D=this.data)==null?0:D.subtitle)&&!((K=this.data)==null?0:K.thumbnail)&&!((z=this.data)==null?0:z.badges)&&!((y=this.data)==null?0:y.menu)};
_.a.showCtaButton=function(){var x;return!((x=this.data)==null||!x.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.a.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.a.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.a.computeForce16By9ThumbnailAspectRatio=function(){var x,G;return((x=this.data)==null?void 0:(G=x.responsiveContainerConfiguration)==null?void 0:G.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.a.onSectionReactiveDismissal=function(x,G,D){var K,z;var y=(K=this.data)==null?void 0:(z=K.targetingContext)==null?void 0:z.targetGroupId;this&&y&&G.targetGroupId&&y.includes(G.targetGroupId)?(K=this.rowIndex,x=K===void 0?!1:!(G.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&K<=x)):x=!1;x&&(this.hidden=D)};
_.Nq.Object.defineProperties(rX.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var x=this.elementsPerRow;this.isPostShelfRenderer()?x=this.postsPerRow:this.isSlimMediaShelfRenderer()?x=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?x=this.slimItemsPerRow-1:this.isGameCardShelf()?x=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(x=this.miniGameCardsPerRow);return x}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.B("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var x,G;return!((x=this.data)==null||!x.previousButton)&&!((G=this.data)==null||!G.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 x;return((x=_.Eo().resolve(_.wG).getCurrentPage())==null?void 0:x.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var x,G,D,K;return!((x=this.data)==null?0:(G=x.thumbnail)==null?0:(D=G.accessibility)==null?0:(K=D.accessibilityData)==null?0:K.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
rX.prototype.onChildElementFocus=rX.prototype.onChildElementFocus;rX.prototype.handleRerenderDownloadsData=rX.prototype.handleRerenderDownloadsData;rX.prototype.onDataChange=rX.prototype.onDataChange;rX.prototype.onRowIndexChange=rX.prototype.onRowIndexChange;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],rX.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],rX.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.CS),_.N("design:type",Object)],rX.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],rX.prototype,"actionHandlerBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],rX.prototype,"ytdReduxBehavior",void 0);_.q([_.R({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.N("design:type",Object)],rX.prototype,"useResponsiveGrid",void 0);_.q([_.R(),_.N("design:type",Object)],rX.prototype,"data",void 0);
_.q([_.R(),_.N("design:type",Number)],rX.prototype,"standardUnitMinWidth",void 0);_.q([_.R({reflectToAttribute:!0,value:3}),_.N("design:type",Number)],rX.prototype,"elementsPerRow",void 0);_.q([_.R({value:3}),_.N("design:type",Number)],rX.prototype,"postsPerRow",void 0);_.q([_.R({value:6}),_.N("design:type",Number)],rX.prototype,"slimItemsPerRow",void 0);_.q([_.R({value:6}),_.N("design:type",Number)],rX.prototype,"gameCardsPerRow",void 0);
_.q([_.R({value:6}),_.N("design:type",Number)],rX.prototype,"miniGameCardsPerRow",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],rX.prototype,"hidden",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],rX.prototype,"standardShelfMargins",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],rX.prototype,"isShowMoreHidden",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],rX.prototype,"isExpanded",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],rX.prototype,"isInnerShelf",void 0);_.q([_.R({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.N("design:type",Boolean)],rX.prototype,"isShorts",void 0);_.q([_.R({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.N("design:type",Boolean)],rX.prototype,"isLumiere",void 0);_.q([_.R({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.N("design:type",Boolean)],rX.prototype,"hasBoxArtThumbnailStyle",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.N("design:type",Boolean)],rX.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.N("design:type",Boolean)],rX.prototype,"hasFeaturedBadge",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.N("design:type",Boolean)],rX.prototype,"hasPaygatedFeaturedBadge",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.N("design:type",Boolean)],rX.prototype,"isHeaderHidden",void 0);_.q([_.R({selector:_.M1d}),_.N("design:type",Object)],rX.prototype,"allVideosCount",void 0);_.q([_.R({selector:C3n}),_.N("design:type",Object)],rX.prototype,"allPlaylistCount",void 0);_.q([_.R({selector:m6D}),_.N("design:type",Object)],rX.prototype,"haveSmartDownloadsCompleted",void 0);
_.q([_.R({selectorArgs:["entitySelectorType"],selector:function(x,G){if(_.B("kevlar_modern_downloads_page")&&G&&G!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var D=x.entities;switch(G){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":G=_.Bk(D);x=Bb(G);var K=_.MW(G);D=_.sA(D);D=_.tN(BF$(K,D,G.length));return{contents:x,subtitle:D};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return D=_.Bk(D),{contents:Bb(D)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return D=
_.rK(D),{contents:Bb(D)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return D=_.vo3(D),{contents:Bb(D)};default:_.O9(new _.LL("Error: entitySelectorType defined but not matched in selector.",x,G))}}}}),
_.N("design:type",Object)],rX.prototype,"entityDrivenRichShelfData",void 0);_.q([_.R({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.N("design:type",Boolean)],rX.prototype,"hasTopCtaButton",void 0);_.q([_.R({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.N("design:type",Boolean)],rX.prototype,"hasBottomCtaButton",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.N("design:type",Boolean)],rX.prototype,"force16By9ThumbnailAspectRatio",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],rX.prototype,"isShowLessHidden",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],rX.prototype,"restrictContentsOverflow",void 0);_.q([_.R({selector:_.liL}),_.N("design:type",Boolean)],rX.prototype,"inlinePreviewIsEnabled",void 0);
_.q([_.R({computed:"computeSizing(data)"}),_.N("design:type",String)],rX.prototype,"sizing",void 0);_.q([_.R(),_.N("design:type",Boolean)],rX.prototype,"typographyBump",void 0);_.q([_.R(),_.N("design:type",Number)],rX.prototype,"itemWidth",void 0);_.q([_.R(),_.N("design:type",Object)],rX.prototype,"firstShownIndex",void 0);_.q([_.R(),_.N("design:type",Object)],rX.prototype,"horizontalOffset",void 0);_.q([_.R(),_.N("design:type",Object)],rX.prototype,"atEnd",void 0);
_.q([_.cD("#contents"),_.N("design:type",HTMLElement)],rX.prototype,"contents",void 0);_.q([_.yf("data.rowIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rX.prototype,"onRowIndexChange",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rX.prototype,"onDataChange",null);
_.q([_.yf("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rX.prototype,"handleRerenderDownloadsData",null);_.q([_.oe("focusin"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],rX.prototype,"onChildElementFocus",null);_.q([_.R({reflectToAttribute:!0}),_.U("data","isHomePage"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],rX.prototype,"isTruncated",null);
_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],rX.prototype,"hideBottomDivider",null);_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],rX.prototype,"hasChevronButtons",null);_.q([_.U("firstShownIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],rX.prototype,"previousButtonOverride",null);
_.q([_.U("atEnd"),_.N("design:type",Object),_.N("design:paramtypes",[])],rX.prototype,"nextButtonOverride",null);_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],rX.prototype,"isHomePage",null);_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],rX.prototype,"thumbnailAriaHidden",null);_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],rX.prototype,"initiallyIsExpanded",null);
_.q([_.U("data"),_.N("design:type",String),_.N("design:paramtypes",[])],rX.prototype,"entitySelectorType",null);rX=_.q([_.d({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],rX);
_.atu=_.x$()(rX,"ytd-rich-shelf-renderer",function(){if(zb9===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);zb9=x}x=zb9;return x},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.Ge("kevlar_poly_si_batch_j028")?1:2});var oEk;_.tn(iPh,"yt-slimline-survey-view-model",{props:{data:_.ik}});var sN=function(){var x=_.n.apply(this,arguments)||this;x.tileLottieAnimationRef={};x.backgroundLottieAnimationRef={};x.isOnHoverBehaviorForLottieEnabled=!0;x.useBiggerShowcaseImage=_.B("enable_desktop_search_bigger_thumbs");x.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return x};
_.m(sN,_.n);_.a=sN.prototype;_.a.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.a.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.a.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var x=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);x!==this.hasTile&&this.set("hasTile",x);x=this.hasLogo(this.data)||!!this.data.badgeText;x!==this.hasMetadata&&this.set("hasMetadata",x);x=this.data.overflowButton?!1:x;x!==this.showLogoImage&&this.set("showLogoImage",x);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.a.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.a.currentColorChanged=function(){this.updateButtonPalette()};
_.a.computeBackgroundStyle=function(x){if(x&&this.data){var G=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var D=_.Ph((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);D&&G.push('background-image: url("'+D+'");')}var K;((K=x.basicColorData)==null?void 0:K.backgroundColor)!==void 0&&G.push("background-color: "+_.jT(x.basicColorData.backgroundColor)+";");return G.join("")}};
_.a.onDarkModeToggledAction=function(x){x!==this.isDarkTheme&&this.set("isDarkTheme",x)};
_.a.getCurrentLogo=function(x,G){if(x)return G?x.darkLogoImage:x.lightLogoImage};
_.a.getCurrentStaticTileImage=function(x,G){if(this.hasStaticTile(x))return x.darkTileImage?G?x.darkTileImage:x.tileImage:x.tileImage};
_.a.computeTitleStyle=function(x){if(this.data&&this.data.title&&x&&x.basicColorData&&x.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.In(x.basicColorData.foregroundTitleColor)+";"};
_.a.computeSubtitleStyle=function(x){if(this.data&&this.data.subtitle&&x&&x.basicColorData&&x.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.In(x.basicColorData.foregroundBodyColor)+";"};
_.a.computeSupplementalStyle=function(x){if(this.data&&this.data.supplementalText&&x&&x.supplementalTextColor!==void 0)return x=_.In(x.supplementalTextColor),"color:"+x+";--yt-endpoint-color:"+x+";--yt-endpoint-hover-color:"+x+";--yt-endpoint-visited-color:"+x+";--yt-formatted-string-bold-font-weight:700;"};
_.a.computeBadgeStyle=function(x){if(this.data&&this.data.badgeText&&x&&x.basicColorData&&x.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.In(x.basicColorData.foregroundActivatedColor)+";"};
_.a.computeDismissIconStyle=function(x){var G,D;if((x==null?0:(G=x.dismissButtonColorData)==null?0:G.foregroundTitleColor)&&(x==null?0:(D=x.dismissButtonColorData)==null?0:D.backgroundColor))return"--yt-button-color:"+_.jT(x.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.jT(x.dismissButtonColorData.backgroundColor)+";"};
_.a.computeOverflowIconStyle=function(x){var G,D;if((x==null?0:(G=x.dismissButtonColorData)==null?0:G.foregroundTitleColor)&&(x==null?0:(D=x.dismissButtonColorData)==null?0:D.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.jT(x.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.jT(x.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.jT(x.dismissButtonColorData.foregroundTitleColor)+";"};
_.a.computeBannerStyle=function(x){return x?x.toLowerCase().replace(/_/g,"-"):""};
_.a.computeLocation=function(x){switch(x==null?void 0:x.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.a.shouldShowTileSection=function(x,G,D){return!this.shouldExpandLogo(x,G,D)&&G};
_.a.shouldShowExpandedLogoSection=function(x,G,D){return this.shouldExpandLogo(x,G,D)&&x!==void 0&&this.hasLogo(x)};
_.a.shouldExpandLogo=function(x,G,D){return x&&G?!1:D>=2};
_.a.hasStaticTile=function(x){return!(x==null||!x.tileImage)};
_.a.hasTileLottie=function(x){var G;return!!(x==null?0:(G=x.tileLottie)==null?0:G.url)};
_.a.hasLogo=function(x){return this.getCurrentLogo(x,this.isDarkTheme)!==void 0};
_.a.getLogoHeight=function(x){return this.logoWithPadding(x)?"26":"20"};
_.a.getExpandedLogoHeight=function(x){return this.logoWithPadding(x)?"31":"24"};
_.a.getLogoImageId=function(x){return this.logoWithPadding(x)?"logo-image-with-padding":"logo-image"};
_.a.hasBackgroundLottie=function(x){var G;return!!(x==null?0:(G=x.backgroundLottie)==null?0:G.url)};
_.a.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var x,G;(x=this.tileLottieAnimationRef)==null||(G=x.lottieEl)==null||G.play();var D,K;(D=this.backgroundLottieAnimationRef)==null||(K=D.lottieEl)==null||K.play()}};
_.a.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var x,G;(x=this.tileLottieAnimationRef)==null||(G=x.lottieEl)==null||G.pause();var D,K;(D=this.backgroundLottieAnimationRef)==null||(K=D.lottieEl)==null||K.pause()}};
_.a.pauseLottie=function(){var x,G;(x=this.tileLottieAnimationRef)==null||(G=x.lottieEl)==null||G.pause();var D,K;(D=this.backgroundLottieAnimationRef)==null||(K=D.lottieEl)==null||K.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.a.performPrimaryButtonAction=function(){var x,G,D;((x=this.data)==null?0:(G=x.primaryButton)==null?0:(D=G.buttonRenderer)==null?0:D.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.a.requestElementsPerRow=function(){_.h$(this.hostElement,"yt-request-elements-per-row")};
_.a.updateButtonPalette=function(){if(this.data&&this.currentColorData){var x;((x=this.data.dismissButton)==null?0:x.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 G;if((G=this.data.primaryButton)==null?0:G.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 D;if((D=this.data.secondaryButton)==
null?0:D.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 K;((K=this.data.primaryButton)==null?0:K.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var z;((z=this.data.secondaryButton)==null?0:z.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.a.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var x=this.getTileLottieDataBasedOnTheme(),G,D;if(x.url!==((G=this.tileLottiePlayerProps)==null?void 0:(D=G.animationConfig)==null?void 0:D.path)){var K,z;(K=this.tileLottieAnimationRef)==null||(z=K.lottieEl)==null||z.destroy();var y;this.isOnHoverBehaviorForLottieEnabled=!((y=x.settings)==null?0:y.autoplay);var c,W;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(W=(c=x.settings)==null?void 0:c.autoplay)!=null?W:!1,loop:this.getLottieLoopValue(x.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof x.url==="string"?this.tileLottiePlayerProps.animationConfig.path=x.url:this.tileLottiePlayerProps.animationConfig.animationData=x.url}}};
_.a.getOverflowButton=function(x){return _.Y(x.overflowButton,LL8)};
_.a.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var x=this.getBackgroundLottieDataBasedOnTheme(),G,D;if(x.url!==((G=this.backgroundLottiePlayerProps)==null?void 0:(D=G.animationConfig)==null?void 0:D.path)){var K,z;(K=this.backgroundLottieAnimationRef)==null||(z=K.lottieEl)==null||z.destroy();var y;this.isOnHoverBehaviorForLottieEnabled=!((y=x.settings)==null?0:y.autoplay);var c,W;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(W=(c=x.settings)==null?void 0:c.autoplay)!=null?W:!1,loop:this.getLottieLoopValue(x.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof x.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=x.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
x.url}}};
_.a.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var x;((x=this.tileLottieAnimationRef)==null?void 0:x.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var G;((G=this.backgroundLottieAnimationRef)==null?void 0:G.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.a.getTileLottieDataBasedOnTheme=function(){var x;if(this.isDarkTheme&&((x=this.data)==null?0:x.darkThemeTileLottie))return this.data.darkThemeTileLottie;var G;return((G=this.data)==null?0:G.tileLottie)?this.data.tileLottie:{}};
_.a.getBackgroundLottieDataBasedOnTheme=function(){var x;if(this.isDarkTheme&&((x=this.data)==null?0:x.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var G;return((G=this.data)==null?0:G.backgroundLottie)?this.data.backgroundLottie:{}};
_.a.onUpdateElementsPerRowAction=function(x){x&&this.elementsPerRow!==x&&(this.elementsPerRow=x)};
_.a.getLottieLoopValue=function(x){return x?x.loop!==void 0?x.loop:x.loopCount?x.loopCount-1:!0:!0};
_.a.logoWithPadding=function(x){var G,D,K;return(x=(G=this.getCurrentLogo(x,this.isDarkTheme))==null?void 0:(D=G.thumbnails)==null?void 0:(K=D[0])==null?void 0:K.height)&&x%31===0?!0:!1};
sN.prototype.currentColorChanged=sN.prototype.currentColorChanged;sN.prototype.themeChanged=sN.prototype.themeChanged;sN.prototype.dataChanged=sN.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],sN.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],sN.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.CS),_.N("design:type",Object)],sN.prototype,"ytdDismissibleItemBehavior",void 0);
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],sN.prototype,"actionHandlerBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],sN.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],sN.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],sN.prototype,"primaryButton",void 0);_.q([_.R(),_.N("design:type",Object)],sN.prototype,"secondaryButton",void 0);
_.q([_.R({reflectToAttribute:!0,value:3}),_.N("design:type",Number)],sN.prototype,"elementsPerRow",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],sN.prototype,"isDarkTheme",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],sN.prototype,"hasTile",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],sN.prototype,"hasMetadata",void 0);
_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],sN.prototype,"showLogoImage",void 0);_.q([_.R(),_.N("design:type",Object)],sN.prototype,"currentColorData",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.N("design:type",String)],sN.prototype,"bannerStyle",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.N("design:type",String)],sN.prototype,"location",void 0);
_.q([_.R(),_.N("design:type",Object)],sN.prototype,"tileLottiePlayerProps",void 0);_.q([_.R(),_.N("design:type",Object)],sN.prototype,"tileLottieAnimationRef",void 0);_.q([_.R(),_.N("design:type",Object)],sN.prototype,"backgroundLottiePlayerProps",void 0);_.q([_.R(),_.N("design:type",Object)],sN.prototype,"backgroundLottieAnimationRef",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],sN.prototype,"useBiggerShowcaseImage",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],sN.prototype,"isHideEnclosingAction",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sN.prototype,"dataChanged",null);_.q([_.Z6("isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sN.prototype,"themeChanged",null);
_.q([_.Z6("currentColorData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sN.prototype,"currentColorChanged",null);sN=_.q([_.d({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],sN);
_.w(sN,"ytd-statement-banner-renderer",function(){if(oEk!==void 0)return oEk;var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="metadata-container" hidden="[[!showLogoImage]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-img-shadow dimension="height" height$="[[getLogoHeight(data)]]" hidden="[[shouldExpandLogo(data, hasTile, elementsPerRow)]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-img-shadow>\n            <div id="badge-container" style$="[[computeBadgeStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="36" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[!data.overflowButton]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return oEk=x},{mode:1});var yH9;var Yu=function(){var x=_.n.apply(this,arguments)||this;x.isSearch=!1;x.hideShelfHeader=!1;x.engagementPanel=!1;x.disableMouseScroll=!0;x.useFloorScrolling=!0;x.modernTypography=_.B("web_modern_typography");return x};
_.m(Yu,_.n);Yu.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.Wg("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.Wg("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
Yu.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Yu.prototype.onDataChanged=Yu.prototype.onDataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Yu.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Yu.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Yu.prototype,"isSearch",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Yu.prototype,"hideShelfHeader",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Yu.prototype,"engagementPanel",void 0);_.q([_.R(),_.N("design:type",Object)],Yu.prototype,"disableMouseScroll",void 0);_.q([_.R(),_.N("design:type",Object)],Yu.prototype,"useFloorScrolling",void 0);_.q([_.R(),_.N("design:type",Object)],Yu.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Yu.prototype,"modernTypography",void 0);
_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Yu.prototype,"onDataChanged",null);Yu=_.q([_.d({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],Yu);
_.w(Yu,"ytd-reel-shelf-renderer",function(){if(yH9!==void 0)return yH9;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return yH9=x},{mode:_.Ge("kevlar_poly_si_batch_j028")?1:2});var lt7;var cHJ=_.Nv(function(x){var G=x.data;x=x.useSmallFont;var D={},K={};return _.M("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.M(_.b,{cond:function(){return G().favicon},
then:function(z){return _.M(_.wk,{data:z,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.M("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.M(_.vq,{text:function(){return G().title},
className:_.ym("yt-channel-external-link-view-model-wiz__title",(D["yt-channel-external-link-view-model-wiz__title--title-small-font"]=x,D)),ellipsisTruncate:!0,userInput:!0}),_.M(_.vq,{text:function(){return G().link},
className:_.ym("yt-channel-external-link-view-model-wiz__link",(K["yt-channel-external-link-view-model-wiz__link--link-small-font"]=x,K)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Hb");
cHJ.idomCompat=!0;_.tn(cHJ,"yt-channel-external-link-view-model",{props:{data:_.ik,useSmallFont:_.ik}});_.HH("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var mA=function(){var x=_.n.apply(this,arguments)||this;x.revealButtonClass="button";x.businessEmailDisplayState="HIDE_SECTION";return x};
_.m(mA,_.n);_.a=mA.prototype;_.a.refit=function(){var x=this;_.Xw(function(){_.Gl(x.hostElement,"yt-refit-popups-action")});
_.w1(this,function(){_.Gl(x.hostElement,"yt-refit-popups-action")})};
_.a.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Uf("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA")};
_.a.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"};
_.a.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.a.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"}}}};
_.a.computeEmailHref=function(x){return"mailto:"+x};
_.a.computeSafeUrl=function(x){if(x)return _.V$(x)};
_.a.linkEndpoint=function(x){return _.Y(x.onTap,_.IP)};
_.a.linkEndpointToHref=function(x){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(x))};
_.a.onYtServiceRequestCompleted=function(x){var G;if((G=x.detail.data)==null?0:G.businessEmail)this.businessEmail=x.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var D;if((D=x.detail.data)==null?0:D.errorMessage)this.businessEmailErrorMessage=x.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.a.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var x=this.JSC$14116_captchaTextarea.value;if(x){x={recaptcha_response_token:x,channel_id:this.metadata.channelId};var G=_.Y(this.metadata.onBusinessEmailRevealClickCommand,_.IP);G&&this.ytComponentBehavior.resolveCommand(G,{form:x})}}};
_.a.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Nq.Object.defineProperties(mA.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var x;return _.Y((x=this.data)==null?void 0:x.metadata,QpZ)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.Y(this.metadata.businessEmailRevealButton,_.Ls)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var x=new URL(this.metadata.canonicalChannelUrl);return x.host+x.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 _.Y(this.metadata.learnMoreOnTap,_.IP)}}});
mA.prototype.onYtServiceRequestCompleted=mA.prototype.onYtServiceRequestCompleted;mA.prototype.businessEmailMetadataChanged=mA.prototype.businessEmailMetadataChanged;mA.prototype.refit=mA.prototype.refit;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],mA.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],mA.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],mA.prototype,"ytRendererstamperBehavior",void 0);_.q([_.cD("#g-recaptcha-response"),_.N("design:type",HTMLTextAreaElement)],mA.prototype,"JSC$14116_captchaTextarea",void 0);_.q([_.R(),_.N("design:type",Object)],mA.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],mA.prototype,"revealButtonClass",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],mA.prototype,"metadata",null);
_.q([_.U("metadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],mA.prototype,"revealButton",null);_.q([_.U("metadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],mA.prototype,"channelDisplayUrl",null);_.q([_.Z6("metadata"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mA.prototype,"refit",null);_.q([_.U("metadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],mA.prototype,"formattedDescription",null);
_.q([_.U("metadata","learnMoreCommand"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],mA.prototype,"shouldRendereVerifiedPhoneStatus",null);_.q([_.U("metadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],mA.prototype,"learnMoreCommand",null);_.q([_.R(),_.N("design:type",String)],mA.prototype,"businessEmailDisplayState",void 0);_.q([_.R(),_.N("design:type",String)],mA.prototype,"businessEmail",void 0);
_.q([_.R(),_.N("design:type",String)],mA.prototype,"businessEmailErrorMessage",void 0);_.q([_.Z6("metadata"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mA.prototype,"businessEmailMetadataChanged",null);_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],mA.prototype,"onYtServiceRequestCompleted",null);
mA=_.q([_.d({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],mA);
_.w(mA,"ytd-about-channel-renderer",function(){if(lt7!==void 0)return lt7;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return lt7=x},{mode:1});var TYk;var HX=function(){return _.n.apply(this,arguments)||this};
_.m(HX,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],HX.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],HX.prototype,"data",void 0);HX=_.q([_.d({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],HX);
_.w(HX,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(TYk!==void 0)return TYk;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return TYk=x},{mode:1});var WXi;var $u=function(){return _.n.apply(this,arguments)||this};
_.m($u,_.n);$u.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],$u.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],$u.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],$u.prototype,"aligment",void 0);$u=_.q([_.d({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],$u);
_.w($u,"ytd-channel-list-sub-menu-renderer",function(){if(WXi!==void 0)return WXi;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return WXi=
x},{mode:1});var eb9;var FE=function(){return _.n.apply(this,arguments)||this};
_.m(FE,_.n);FE.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}}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],FE.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],FE.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],FE.prototype,"data",void 0);FE=_.q([_.d({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],FE);
_.w(FE,"ytd-channel-sub-menu-renderer",function(){if(eb9!==void 0)return eb9;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return eb9=x},{mode:1});var Zbi;var MkZ;var Cq=function(){var x=_.n.apply(this,arguments)||this;x.isCompact=!1;return x};
_.m(Cq,_.n);_.Nq.Object.defineProperties(Cq.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var x,G;return((G=_.Y((x=this.data)==null?void 0:x.endpoint,_.iV))==null?void 0:G.target)==="TARGET_NEW_WINDOW"}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Cq.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Cq.prototype,"componentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Cq.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Cq.prototype,"isCompact",void 0);_.q([_.U("isCompact"),_.N("design:type",Number),_.N("design:paramtypes",[])],Cq.prototype,"thumbnailWidth",null);
_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Cq.prototype,"openNewWindow",null);Cq=_.q([_.d({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],Cq);
_.w(Cq,"ytd-media-lockup-renderer",function(){if(MkZ!==void 0)return MkZ;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return MkZ=x},{mode:1});var Qt7;var Ix=function(){return _.n.apply(this,arguments)||this};
_.m(Ix,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Ix.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Ix.prototype,"componentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Ix.prototype,"data",void 0);Ix=_.q([_.d({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],Ix);
_.w(Ix,"ytd-structured-description-channel-lockup-renderer",function(){if(Qt7!==void 0)return Qt7;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Qt7=x},{mode:1});var p3Z;var jD=function(){var x=_.n.apply(this,arguments)||this;x.isCompact=!1;x.collections=_.B("web_modern_collections_v2");x.collectionsStackColor=_.B("modernize_structured_description_playlist_lockups_v2");return x};
_.m(jD,_.n);jD.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:_.B("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.Nq.Object.defineProperties(jD.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var x,G,D,K,z,y;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(x=this.data)==null?void 0:(G=x.thumbnail)==null?void 0:G.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(D=this.data)==null?void 0:(K=D.thumbnail)==null?void 0:K.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(z=this.data)==null?void 0:(y=z.thumbnail)==
null?void 0:y.vibrantColorPalette:void 0}}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],jD.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],jD.prototype,"componentBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],jD.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],jD.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],jD.prototype,"showSidePanelThumbnailOverlay",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],jD.prototype,"isCompact",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],jD.prototype,"collections",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],jD.prototype,"collectionsStackColor",void 0);_.q([_.U("data"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],jD.prototype,"twoLineTitle",null);
_.q([_.U("data","collections","collectionsStackColor"),_.N("design:type",Object),_.N("design:paramtypes",[])],jD.prototype,"collectionStack",null);jD=_.q([_.d({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],jD);
_.w(jD,"ytd-structured-description-playlist-lockup-renderer",function(){if(p3Z!==void 0)return p3Z;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return p3Z=x},{mode:1});var VkE;var ON=function(){return _.n.apply(this,arguments)||this};
_.m(ON,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],ON.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],ON.prototype,"componentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],ON.prototype,"data",void 0);ON=_.q([_.d({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],ON);
_.w(ON,"ytd-structured-description-video-lockup-renderer",function(){if(VkE!==void 0)return VkE;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return VkE=x},{mode:2});var XE=function(){return _.n.apply(this,arguments)||this};
_.m(XE,_.n);
XE.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}}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],XE.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],XE.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],XE.prototype,"data",void 0);XE=_.q([_.d({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],XE);
_.w(XE,"ytd-compact-infocard-renderer",function(){if(Zbi!==void 0)return Zbi;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Zbi=x},{mode:1});var bbs;var AF=function(){var x=_.n.apply(this,arguments)||this;x.useModernCollectionsV2=_.B("web_modern_collections_v2");return x};
_.m(AF,_.n);AF.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Nq.Object.defineProperties(AF.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.B("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.B("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.B("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],AF.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],AF.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.CS),_.N("design:type",Object)],AF.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],AF.prototype,"ytdReduxBehavior",void 0);_.q([_.R({selector:_.X4}),_.N("design:type",Object)],AF.prototype,"isGridViewEnabled",void 0);
_.q([_.U("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],AF.prototype,"watchFeedBigThumbs",null);_.q([_.U("isGridViewEnabled","data"),_.R({reflectToAttribute:!0,value:"168"}),_.N("design:type",String),_.N("design:paramtypes",[])],AF.prototype,"thumbnailWidth",null);_.q([_.U("isGridViewEnabled","data"),_.R({reflectToAttribute:!0,value:"94"}),_.N("design:type",String),_.N("design:paramtypes",[])],AF.prototype,"customThumbnailSize",null);
_.q([_.R(),_.N("design:type",Object)],AF.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],AF.prototype,"useModernCollectionsV2",void 0);AF=_.q([_.d({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],AF);
_.w(AF,"ytd-compact-playlist-renderer",function(){if(bbs!==void 0)return bbs;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return bbs=x},{mode:1});var LX9;var UN=function(){var x=_.n.apply(this,arguments)||this;x.darkerDarkTheme=_.B("web_darker_dark_theme");x.roundedContainer=!0;x.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return x};
_.m(UN,_.n);_.a=UN.prototype;_.a.attached=function(){this.requestElementsPerRow()};
_.a.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"}}}};
_.a.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.a.computeViewStyle=function(x){return x.style?x.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.a.onUpdateElementsPerRowAction=function(x){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&x===1};
_.a.requestElementsPerRow=function(){_.h$(this.hostElement,"yt-request-elements-per-row")};
UN.prototype.dataChanged=UN.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],UN.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],UN.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.CS),_.N("design:type",Object)],UN.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],UN.prototype,"actionHandlerBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],UN.prototype,"data",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],UN.prototype,"hideThumbnail",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.N("design:type",String)],UN.prototype,"viewStyle",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],UN.prototype,"darkerDarkTheme",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],UN.prototype,"roundedContainer",void 0);
_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UN.prototype,"dataChanged",null);UN=_.q([_.d({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],UN);
_.w(UN,"ytd-compact-promoted-item-renderer",function(){if(LX9!==void 0)return LX9;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return LX9=x},{mode:1});var BY0;var Rx=function(){var x=_.n.apply(this,arguments)||this;x.collections=_.B("web_modern_collections_v2");return x};
_.m(Rx,_.n);Rx.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
Rx.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
Rx.prototype.onYtNavigate=function(x,G){var D=this;if(G.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",G)){var K=this.get("watchEndpoint.videoId",G.endpoint),z=_.Gl(this.hostElement,"yt-get-current-video-id-action")[0];_.B("kevlar_mix_handle_first_endpoint_different")&&K&&z&&K!==z||(x.stopPropagation(),_.vH().getPlayerPromise().then(function(y){if(y.getPlayerState()===0&&D.data.secondaryNavigationEndpoint)var c=D.data.secondaryNavigationEndpoint;else{c=
Object.assign({},G.endpoint);var W=_.Y(c.commandMetadata,_.fC);W&&(y=Math.floor(y.getCurrentTime()),W.url=_.Nh(W.url,{t:y}),!_.B("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(W=_.Y(c,_.d5)))&&(W.startTimeSeconds=y)}_.h$(D.hostElement,"yt-navigate",{endpoint:c})}))}};
_.Nq.Object.defineProperties(Rx.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.B("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.B("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var x,G,D,K,z,y;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(x=this.data)==null?void 0:(G=x.thumbnail)==null?void 0:G.sampledThumbnailColor,vibrantColorPalette:(D=this.data)==null?void 0:(K=D.thumbnail)==null?void 0:K.vibrantColorPalette,darkColorPalette:(z=this.data)==null?void 0:(y=z.thumbnail)==null?void 0:y.darkColorPalette,experimentEnabled:this.collections}}}});
Rx.prototype.onYtNavigate=Rx.prototype.onYtNavigate;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Rx.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.l9.YtEndpointBehavior),_.N("design:type",Object)],Rx.prototype,"ytEndpointBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Rx.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.CS),_.N("design:type",Object)],Rx.prototype,"ytdDismissibleItemBehavior",void 0);
_.q([_.I(_.RG),_.N("design:type",Object)],Rx.prototype,"ytdLockupBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],Rx.prototype,"ytdReduxBehavior",void 0);_.q([_.R({selector:_.X4}),_.N("design:type",Object)],Rx.prototype,"isGridViewEnabled",void 0);_.q([_.U("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Rx.prototype,"watchFeedBigThumbs",null);
_.q([_.U("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.N("design:type",String),_.N("design:paramtypes",[])],Rx.prototype,"thumbnailWidth",null);_.q([_.R(),_.N("design:type",Object)],Rx.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],Rx.prototype,"collections",void 0);_.q([_.U("data","collections"),_.N("design:type",Object),_.N("design:paramtypes",[])],Rx.prototype,"collectionStack",null);
_.q([_.oe("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],Rx.prototype,"onYtNavigate",null);Rx=_.q([_.d({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],Rx);
_.w(Rx,"ytd-compact-radio-renderer",function(){if(BY0!==void 0)return BY0;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return BY0=x},{mode:1});var rHk;var SD=function(){return _.n.apply(this,arguments)||this};
_.m(SD,_.n);SD.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
SD.prototype.computeRendererStyle=function(x){return x.style?x.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.q([_.R(),_.N("design:type",Object)],SD.prototype,"data",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],SD.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],SD.prototype,"rendererBehavior",void 0);_.q([_.R({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.N("design:type",String)],SD.prototype,"rendererStyle",void 0);
SD=_.q([_.d({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],SD);
_.w(SD,"ytd-compact-text-promo-renderer",function(){if(rHk!==void 0)return rHk;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return rHk=x},{mode:1});var stq;var nq=function(){var x=_.n.apply(this,arguments)||this;x.isShortsStyle=!1;return x};
_.m(nq,_.n);_.a=nq.prototype;_.a.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"}}}};
_.a.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.h$(this.hostElement,"yt-disable-lockup-interaction"):_.h$(this.hostElement,"yt-enable-lockup-interaction"))};
_.a.isMetaBlockEmpty=function(x){return!x||!x.longBylineText&&!x.shortBylineText&&!x.shortViewCountText&&!x.viewCountText};
_.a.computeHasOneLineTitle=function(x){return this.forceOneLineTitle||!(x==null||!x.buttons)};
_.a.computeDisableInteraction=function(){var x;return!((x=this.data)==null?0:x.navigationEndpoint)};
_.a.hasSingularTopStandaloneBadge=function(){var x;return!((x=this.data)==null||!x.topStandaloneBadge)};
_.Nq.Object.defineProperties(nq.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.B("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.B("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 x;return this.hasSingularTopStandaloneBadge()?[(x=this.data)==null?void 0:x.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var x;return this.shouldShowTopBadges?((x=this.data)==null?void 0:x.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
nq.prototype.disableInteractionChanged=nq.prototype.disableInteractionChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],nq.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],nq.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.CS),_.N("design:type",Object)],nq.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.I(_.RG),_.N("design:type",Object)],nq.prototype,"ytdLockupBehavior",void 0);
_.q([_.I(_.$l),_.N("design:type",Object)],nq.prototype,"ytdReduxBehavior",void 0);_.q([_.R({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.N("design:type",Boolean)],nq.prototype,"metaBlockEmpty",void 0);_.q([_.R({selector:_.X4}),_.N("design:type",Object)],nq.prototype,"isGridViewEnabled",void 0);_.q([_.U("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],nq.prototype,"watchFeedBigThumbs",null);
_.q([_.U("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.N("design:type",String),_.N("design:paramtypes",[])],nq.prototype,"thumbnailWidth",null);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],nq.prototype,"isShortsStyle",void 0);_.q([_.R(),_.N("design:type",Object)],nq.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.N("design:type",Boolean)],nq.prototype,"hasOneLineTitle",void 0);
_.q([_.R(),_.N("design:type",Boolean)],nq.prototype,"hideThumbnail",void 0);_.q([_.R(),_.N("design:type",Boolean)],nq.prototype,"forceOneLineTitle",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.N("design:type",Boolean)],nq.prototype,"disableInteraction",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],nq.prototype,"musicMetadataVideoLockup",void 0);
_.q([_.yf("disableInteraction"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nq.prototype,"disableInteractionChanged",null);_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],nq.prototype,"shouldShowTopBadges",null);_.q([_.U("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],nq.prototype,"topBadges",null);
_.q([_.U("shouldShowTopBadges","data"),_.N("design:type",Array),_.N("design:paramtypes",[])],nq.prototype,"inlineMetadataBadges",null);_.q([_.U("shouldShowTopBadges"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],nq.prototype,"shouldShowBadgesBelowMetadata",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],nq.prototype,"compactTitleClass",null);nq=_.q([_.d({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],nq);
_.w(nq,"ytd-compact-video-renderer",function(){if(stq!==void 0)return stq;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return stq=x},{mode:_.Ge("kevlar_poly_si_batch_j067")?1:2});var Y70;_.HH("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var iS=function(){return _.n.apply(this,arguments)||this};
_.m(iS,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],iS.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],iS.prototype,"data",void 0);iS=_.q([_.d({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],iS);
_.w(iS,"ytd-counterfactual-renderer",function(){if(Y70!==void 0)return Y70;var x=document.createElement("template");_.F(x,"\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");x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Y70=x},{mode:1});var m4s;var gX=function(){var x=_.n.apply(this,arguments)||this;x.hidden=!1;return x};
_.m(gX,_.n);gX.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.Eo().resolve(_.hm).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
gX.prototype.computeHidden=function(x){return!!x};
_.Nq.Object.defineProperties(gX.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}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],gX.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],gX.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.N("design:type",Object)],gX.prototype,"hidden",void 0);_.q([_.U("data.label"),_.N("design:type",String),_.N("design:paramtypes",[])],gX.prototype,"label",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],gX.prototype,"value",null);
gX=_.q([_.d({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],gX);
_.w(gX,"ytd-dropdown-item-renderer",function(){if(m4s!==void 0)return m4s;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return m4s=x},{mode:1});var Hbh;var $40;var uS=function(){return _.n.apply(this,arguments)||this};
_.m(uS,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],uS.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],uS.prototype,"data",void 0);_.q([_.R({computed:"getSimpleString(data.label)"}),_.N("design:type",String)],uS.prototype,"label",void 0);uS=_.q([_.d({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],uS);
_.w(uS,"ytd-navigation-dropdown-item-renderer",function(){if($40!==void 0)return $40;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return $40=x},{mode:1});var dX=function(){var x=_.n.apply(this,arguments)||this;x.disabled=!1;x.value="";x.noLabelFloat=!1;x.noUnderline=!1;x.usePrimaryColor=!1;x.hasBackground=!1;x.verticalAlign="top";x.autosize=!1;x.minAutosizeWidth=100;x.autosizeFont="14px Roboto";return x};
_.m(dX,_.n);_.a=dX.prototype;_.a.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"}}}};
_.a.open=function(){this.inputEl.open()};
_.a.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.a.dataChanged=function(){this.reset()};
_.a.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Xt("value-changed",this.value))};
_.a.stopPropagation=function(x){x.stopPropagation()};
_.a.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var x=this.canvas.getContext("2d");x&&(x.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(x.measureText(this.inputEl.value).width)+24)+"px")}};
_.a.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var x=0,G=this.data.entries.length;x<G;x++){var D=this.data.entries[x],K;for(K in D)if(D.hasOwnProperty(K)){var z=D[K];if("isSelected"in z&&z.isSelected)return"stringValue"in z?z.stringValue||"":"int32Value"in z?z.int32Value||0:0}}return null};
_.a.updateValueFromBinding=function(x){this.value=x.detail.value};
_.Nq.Object.defineProperties(dX.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 x=0,G=this.data.entries.length;x<G;x++){var D=this.data.entries[x],K;for(K in D)if(D.hasOwnProperty(K)){var z=D[K];if("isSelected"in z&&z.isSelected&&"label"in z)return this.ytRendererBehavior.getSimpleString(z.label)}}return null}}});
dX.prototype.autoSizeLabel=dX.prototype.autoSizeLabel;dX.prototype.stopPropagation=dX.prototype.stopPropagation;dX.prototype.valueChangedForBinding=dX.prototype.valueChangedForBinding;dX.prototype.dataChanged=dX.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],dX.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],dX.prototype,"ytRendererStamperBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],dX.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],dX.prototype,"disabled",void 0);_.q([_.R(),_.N("design:type",Object)],dX.prototype,"value",void 0);_.q([_.R(),_.N("design:type",Object)],dX.prototype,"noLabelFloat",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],dX.prototype,"noUnderline",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],dX.prototype,"theme",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],dX.prototype,"usePrimaryColor",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],dX.prototype,"hasBackground",void 0);_.q([_.R(),_.N("design:type",Object)],dX.prototype,"verticalAlign",void 0);_.q([_.R(),_.N("design:type",Object)],dX.prototype,"autosize",void 0);_.q([_.R(),_.N("design:type",Object)],dX.prototype,"minAutosizeWidth",void 0);_.q([_.R(),_.N("design:type",Object)],dX.prototype,"autosizeFont",void 0);
_.q([_.cD("#entries"),_.N("design:type",Object)],dX.prototype,"entries",void 0);_.q([_.cD("#input"),_.N("design:type",Object)],dX.prototype,"inputEl",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dX.prototype,"dataChanged",null);_.q([_.Z6("value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dX.prototype,"valueChangedForBinding",null);
_.q([_.oe("iron-overlay-opened"),_.oe("iron-overlay-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],dX.prototype,"stopPropagation",null);_.q([_.oe("iron-select"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dX.prototype,"autoSizeLabel",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],dX.prototype,"label",null);
dX=_.q([_.d({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],dX);
_.w(dX,"ytd-dropdown-renderer",function(){if(Hbh!==void 0)return Hbh;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Hbh=x},{mode:1});var FX8;var wX=function(){var x=_.n.apply(this,arguments)||this;x.isConstrainedList=!1;return x};
_.m(wX,_.n);wX.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"}}}};
wX.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
wX.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
wX.prototype.computeViewAllHidden=function(x,G){return x||!G.viewAllEndpoint};
wX.prototype.fillRestIfNoShowMore=wX.prototype.fillRestIfNoShowMore;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],wX.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],wX.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.fS.YtLazyListBehavior),_.N("design:type",Object)],wX.prototype,"ytLazyListBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],wX.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],wX.prototype,"isConstrainedList",void 0);_.q([_.Z6("data","canShowMore"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wX.prototype,"fillRestIfNoShowMore",null);wX=_.q([_.d({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],wX);
_.w(wX,"ytd-expanded-shelf-contents-renderer",function(){if(FX8!==void 0)return FX8;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return FX8=x},{mode:_.Ge("kevlar_poly_si_batch_j025")?1:2});var CWk;var qG=function(){return _.n.apply(this,arguments)||this};
_.m(qG,_.n);qG.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}}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],qG.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],qG.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],qG.prototype,"data",void 0);qG=_.q([_.d({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],qG);
_.w(qG,"ytd-feed-channel-filter-header-renderer",function(){if(CWk!==void 0)return CWk;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return CWk=x},{mode:1});var It0;var jt0;var Obo;var NG=function(){return _.n.apply(this,arguments)||this};
_.m(NG,_.n);_.a=NG.prototype;_.a.onClick=function(x){var G,D=(G=this.data)==null?void 0:G.sectionEndpoint;!_.u_(_.gA(x),this.hostElement,["A".toString()])&&D&&_.h$(this.hostElement,"yt-navigate",{endpoint:D})};
_.a.computeHasSectionEndpoint=function(x){return(x==null?void 0:x.sectionEndpoint)!==void 0};
_.a.computeShowHeaderAsLink=function(x){return(x==null?void 0:x.header)!==void 0&&(x==null?void 0:x.sectionEndpoint)!==void 0};
_.a.computeShowSubheaderAsLink=function(x){return(x==null?void 0:x.subheader)!==void 0&&(x==null?void 0:x.sectionEndpoint)!==void 0&&(x==null?void 0:x.header)===void 0};
_.a.getHeaderAsLinkClass=function(x){var G=[],D;(x==null?0:(D=x.headerIcon)==null?0:D.iconType)&&G.push("header-link-active");return G.join(" ")};
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],NG.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],NG.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],NG.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],NG.prototype,"data",void 0);
_.q([_.R({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],NG.prototype,"hasSectionEndpoint",void 0);_.q([_.R({computed:"computeShowHeaderAsLink(data)"}),_.N("design:type",Boolean)],NG.prototype,"showHeaderAsLink",void 0);_.q([_.R({computed:"computeShowSubheaderAsLink(data)"}),_.N("design:type",Boolean)],NG.prototype,"showSubheaderAsLink",void 0);NG=_.q([_.d({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],NG);
_.w(NG,"ytd-medical-panel-section-renderer",function(){if(Obo!==void 0)return Obo;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Obo=x},{mode:1});var vX=function(){var x=_.n.apply(this,arguments)||this;x.isExpanded=!1;x.roundedContainer=!0;x.skipRoundingTop=!1;x.toggleExpandableSection=function(){x.isExpanded=!x.isExpanded};
return x};
_.m(vX,_.n);
vX.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]]"}}}}}};
vX.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
vX.prototype.dataChanged=vX.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],vX.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],vX.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],vX.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],vX.prototype,"isExpanded",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],vX.prototype,"roundedContainer",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],vX.prototype,"skipRoundingTop",void 0);_.q([_.R(),_.N("design:type",Object)],vX.prototype,"toggleExpandableSection",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vX.prototype,"dataChanged",null);vX=_.q([_.d({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],vX);
_.w(vX,"ytd-medical-panel-content-renderer",function(){if(jt0!==void 0)return jt0;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return jt0=x},{mode:1});_.HH("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var JF=function(){var x=_.n.apply(this,arguments)||this;x.roundedContainer=!0;x.amsterdamEnabled=_.B("enable_desktop_amsterdam_info_panels");x.hasTitle=!1;x.linkIcon="OPEN_IN_NEW";x.isDismissed=!1;return x};
_.m(JF,_.n);
JF.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"}}}};
JF.prototype.computeHasTitle=function(x){return!(x==null||!x.title)};
JF.prototype.onClick=function(x){var G,D=(G=this.data)==null?void 0:G.headerEndpoint;!_.u_(_.gA(x),this.hostElement,["BUTTON".toString()])&&D&&this.ytComponentBehavior.resolveCommand(D)};
_.Nq.Object.defineProperties(JF.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 x;return((x=this.data)==null?void 0:x.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var x,G;return((x=this.data)==null?void 0:x.disableBottomDivider)||!((G=this.data)==null?0:G.title)}}});
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],JF.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],JF.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],JF.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],JF.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],JF.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],JF.prototype,"roundedContainer",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],JF.prototype,"amsterdamEnabled",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.N("design:type",Object)],JF.prototype,"hasTitle",void 0);
_.q([_.R({type:_.B("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.U("data.background"),_.N("design:type",Object),_.N("design:paramtypes",[])],JF.prototype,"background",null);_.q([_.R({type:_.B("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.U("data.titleStyle"),_.N("design:type",Object),_.N("design:paramtypes",[])],JF.prototype,"titleStyle",null);
_.q([_.R({type:_.B("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.U("data.titleStyle"),_.N("design:type",Object),_.N("design:paramtypes",[])],JF.prototype,"showLinkIcon",null);_.q([_.R(),_.N("design:type",String)],JF.prototype,"linkIcon",void 0);_.q([_.R({type:_.B("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],JF.prototype,"hideDivider",null);
_.q([_.R({selectorArgs:["data.dismissStateEntityKey"],selector:function(x,G){x=_.zm(x.entities,"dismissState",G);return(x==null?void 0:x.isDismissed)||(x==null?void 0:x.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(x==null?void 0:x.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.N("design:type",Object)],JF.prototype,"isDismissed",void 0);JF=_.q([_.d({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],JF);
_.w(JF,"ytd-info-panel-container-renderer",function(){if(It0!==void 0)return It0;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return It0=x},{mode:1});var X3h;_.HH("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var fq=function(){var x=_.n.apply(this,arguments)||this;x.modernTypography=_.B("web_modern_typography");return x};
_.m(fq,_.n);fq.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
fq.prototype.computeStyle=function(x){return x?x:""};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],fq.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],fq.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],fq.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.N("design:type",String)],fq.prototype,"titleStyle",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],fq.prototype,"modernTypography",void 0);fq=_.q([_.d({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],fq);
_.w(fq,"ytd-item-section-header-renderer",function(){if(X3h!==void 0)return X3h;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return X3h=x},{mode:1});var AHh;var U4q,Rbq=function(){return U4q!==void 0?U4q:U4q=document.createElement("template")};
document.head.appendChild(Rbq().content);var S7J;_.tF=new _.wq("VOTING_ANIMATION_CONTROLLER_TOKEN");var ibZ=_.Nv(function(x){var G=x.data;var D=_.qi(),K=_.qi();x=_.l(_.eO("VOTE_STATUS_NONE",void 0,"FVF7mc"));var z=x.next().value,y=x.next().value,c=_.lA(jvP,function(){var L;return(L=G())==null?void 0:L.entityKey}),W=_.B("web_enable_voting_animation")||_.B("enable_music_web_cairo_voting_animation");
_.FQ(function(){var L;((L=G().initialState)==null?0:L.status)&&y(G().initialState.status)});
var e=function(){var L,r,H=(r=(L=G().initialState)==null?void 0:L.votes)!=null?r:0,O;L=(O=G().initialState)==null?void 0:O.status;return L==="VOTE_STATUS_UPVOTED"?H-1:L==="VOTE_STATUS_DOWNVOTED"?H+1:H},Q=function(){return z()==="VOTE_STATUS_UPVOTED"?e()+1:z()==="VOTE_STATUS_DOWNVOTED"?e()-1:e()},p=function(L){var r=L?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
y(r);var H=Q(),O=_.Eo().resolve(_.P6(_.tF)),A=c();A&&(L&&(A==null?0:A.upvoteDefaultButtonOnTap)?_.UI(A.upvoteDefaultButtonOnTap,{form:{element:D.value},disableClickTracking:!0}):(A==null?0:A.upvoteToggledButtonOnTap)&&_.UI(A.upvoteToggledButtonOnTap,{form:{element:D.value},disableClickTracking:!0}));var g;L=(g=A==null?void 0:A.enableOptimisticReordering)!=null?g:G().enableOptimisticReordering;W&&O&&G().itemId&&L&&nEE(O,G().itemId,H,r)},V=function(L){var r=L?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
y(r);var H=Q(),O=_.Eo().resolve(_.P6(_.tF)),A=c();A&&(L&&(A==null?0:A.downvoteDefaultButtonOnTap)?_.UI(A.downvoteDefaultButtonOnTap,{form:{element:K.value},disableClickTracking:!0}):(A==null?0:A.downvoteToggledButtonOnTap)&&_.UI(A.downvoteToggledButtonOnTap,{form:{element:K.value},disableClickTracking:!0}));var g;L=(g=A==null?void 0:A.enableOptimisticReordering)!=null?g:G().enableOptimisticReordering;W&&O&&G().itemId&&L&&nEE(O,G().itemId,H,r)};
x={};x=_.ym("ytVotingViewModelVoteCount",(x.ytVotingViewModelVoteCountDisabled=function(){return G().isDisabled},x));
return _.M("voting-view-model",{class:"ytVotingViewModelHost"},_.M("div",{el:D},_.M(_.bA,{data:function(){var L=_.Y(G().upvoteButton,_.Bq);return{toggleButtonViewModel:Object.assign({},L,{isToggled:z()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(L){return _.M(_.rl,{data:L.data,
onToggle:p})}})),_.M("div",{class:x},function(){var L,r,H;
return z()==="VOTE_STATUS_UPVOTED"?(L=G().initialState)==null?void 0:L.compactVotesUpvoted:z()==="VOTE_STATUS_DOWNVOTED"?(r=G().initialState)==null?void 0:r.compactVotesDownvoted:(H=G().initialState)==null?void 0:H.compactVotes}),_.M("div",{el:K},_.M(_.bA,{data:function(){var L=_.Y(G().downvoteButton,_.Bq);
return{toggleButtonViewModel:Object.assign({},L,{isToggled:z()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(L){return _.M(_.rl,{data:L.data,
onToggle:V})}})))},"Ib");_.tn(_.Nv(function(x){var G=x.data;return _.M("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.M("div",{class:_.ym("ytEngagementBarViewModelEngagementBarWrapper",x.className)},_.M(_.bA,{data:function(){return G().actions}},{votingViewModel:ibZ})))},"Jb"),"engagement-bar-view-model",{props:{data:_.ik,
className:_.ik}});var ku=function(){var x=_.n.apply(this,arguments)||this;x.amsterdamPostMvp=_.B("web_amsterdam_post_mvp_playlists");x.cairoCollabPlaylistPostMvp=_.B("web_collab_playlist_thumbnail_size");x.playlistVotingAnimationEnabled=_.B("web_enable_voting_animation");x.downloadProgress=0;x.transferState="TRANSFER_STATE_UNKNOWN";x.downloadState="DOWNLOAD_STATE_UNKNOWN";x.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";x.offlineVideoPolicyExpirationTimestamp=0;return x};
_.m(ku,_.n);_.a=ku.prototype;_.a.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"}}}};
_.a.canReorderChanged=function(){this.persistentDragHandle=_.B("kevlar_playlist_drag_handles")&&this.canReorder};
_.a.onDrag=function(){if(this.thumbnail){var x=_.kA(this.thumbnail).querySelector("yt-image");x&&(x.shouldRenderLazy=!1)}};
_.a.onMenuOverlayChanged=function(x,G){this.menuOpened=G};
_.a.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.a.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.a.onContentsTap=function(x){var G,D=(G=this.data)==null?void 0:G.serviceEndpoints;if(D&&D.length===1&&_.Y(D[0],JwL)&&!_.u_(_.gA(x),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(D[0]);else{var K;(G=(K=this.data)==null?void 0:K.navigationEndpoint)&&_.B("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?gEE(_.Eo().resolve(_.O$),G):(_.or().playlistSuggestionsShelfActivation=
!0,_.uN7(_.Eo().resolve(_.O$),G)):G&&!_.u_(_.gA(x),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.B("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.h$(this.hostElement,"yt-navigate",{endpoint:G}):this.ytComponentBehavior.resolveCommand(G))}};
_.a.computeStyle=function(x){return x?x.toLowerCase().replace(/_/g,"-"):""};
_.a.computeThumbnailWidth=function(x){return x==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:this.amsterdamPostMvp?160:this.cairoCollabPlaylistPostMvp?200:120};
_.a.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=KaC(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))}};
_.a.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.a.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.a.dataChanged=function(){if(this.data){var x,G,D,K=((x=this.downloadRenderData)==null?void 0:x.badges)&&((G=this.downloadRenderData)==null?void 0:G.badges)!==((D=this.data)==null?void 0:D.badges),z,y,c;x=((z=this.downloadRenderData)==null?void 0:z.thumbnailOverlays)&&((y=this.downloadRenderData)==null?void 0:y.thumbnailOverlays)!==((c=this.data)==null?void 0:c.thumbnailOverlays);(!this.downloadRenderData||K||x)&&this.downloadStateChanged()}};
_.a.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var x,G,D=(x=this.data.menu)==null?void 0:(G=x.menuRenderer)==null?void 0:G.items;if(D)for(x=_.l(D),G=x.next();!G.done;G=x.next())if(G=G.value,D=void 0,_.Y((D=G.menuServiceItemRenderer)==null?void 0:D.serviceEndpoint,_.YV)){var K=D=void 0,z=void 0;G=(D=G)==null?void 0:(K=D.menuServiceItemRenderer)==null?void 0:(z=K.serviceEndpoint)==null?void 0:z.playlistEditEndpoint;z=K=void 0;if(D=(K=G)==null?void 0:(z=K.actions)==null?void 0:
z[0])K=void 0,D.setVideoId=(K=this.data)==null?void 0:K.setVideoId;z=K=D=void 0;if(G=(D=G)==null?void 0:(K=D.clientActions)==null?void 0:(z=K[0])==null?void 0:z.playlistRemoveVideosAction)D=void 0,G.setVideoIds=[(D=this.data)==null?void 0:D.setVideoId]}}};
_.Nq.Object.defineProperties(ku.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
ku.prototype.setVideoIdChanged=ku.prototype.setVideoIdChanged;ku.prototype.dataChanged=ku.prototype.dataChanged;ku.prototype.downloadStateChanged=ku.prototype.downloadStateChanged;ku.prototype.onMenuOverlayChanged=ku.prototype.onMenuOverlayChanged;ku.prototype.canReorderChanged=ku.prototype.canReorderChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],ku.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],ku.prototype,"ytdReduxBehavior",void 0);
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],ku.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.RG),_.N("design:type",Object)],ku.prototype,"ytdLockupBehavior",void 0);_.q([_.I(_.CS),_.N("design:type",Object)],ku.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],ku.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],ku.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],ku.prototype,"amsterdamPostMvp",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],ku.prototype,"canReorder",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],ku.prototype,"menuOpened",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],ku.prototype,"handleIsHovered",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],ku.prototype,"persistentDragHandle",void 0);
_.q([_.R(),_.N("design:type",Object)],ku.prototype,"downloadRenderData",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],ku.prototype,"styleType",void 0);_.q([_.R({computed:"computeThumbnailWidth(data.style)"}),_.N("design:type",Number)],ku.prototype,"thumbnailWidth",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],ku.prototype,"isDownloads",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],ku.prototype,"cairoCollabPlaylistPostMvp",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],ku.prototype,"playlistVotingAnimationEnabled",void 0);_.q([_.R({selector:j5,selectorArgs:["data.videoId"]}),_.N("design:type",Object)],ku.prototype,"downloadProgress",void 0);_.q([_.R(),_.N("design:type",Number)],ku.prototype,"relativeDateReference",void 0);
_.q([_.R({selector:_.C3,selectorArgs:["data.videoId"]}),_.N("design:type",Object)],ku.prototype,"transferState",void 0);_.q([_.R({selector:$6h,selectorArgs:["data.videoId"]}),_.N("design:type",Object)],ku.prototype,"downloadState",void 0);_.q([_.R({selector:ezD,selectorArgs:["data.videoId"]}),_.N("design:type",Object)],ku.prototype,"offlinePolicyAction",void 0);_.q([_.R({selector:ZB3,selectorArgs:["data.videoId"]}),_.N("design:type",Object)],ku.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.q([_.R({selector:QLQ,selectorArgs:["data.videoId"]}),_.N("design:type",Object)],ku.prototype,"entityInfo",void 0);_.q([_.R({selector:_.Hk}),_.N("design:type",Boolean)],ku.prototype,"miniplayerIsActive",void 0);_.q([_.U("data"),_.N("design:type",String),_.N("design:paramtypes",[])],ku.prototype,"playlistVideoId",null);_.q([_.cD("#thumbnail"),_.N("design:type",Object)],ku.prototype,"thumbnail",void 0);
_.q([_.Z6("canReorder"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ku.prototype,"canReorderChanged",null);_.q([_.oe("yt-menu-overlay-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Boolean]),_.N("design:returntype")],ku.prototype,"onMenuOverlayChanged",null);
_.q([_.Z6("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ku.prototype,"downloadStateChanged",null);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ku.prototype,"dataChanged",null);
_.q([_.Z6("data.setVideoId"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ku.prototype,"setVideoIdChanged",null);ku=_.q([_.d({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],ku);
_.w(ku,"ytd-playlist-video-renderer",function(){if(S7J!==void 0)return S7J;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);x.content.insertBefore(Rbq().content.cloneNode(!0),x.content.firstChild);return S7J=x},{mode:1});var d4i;var PX=function(){return _.n.apply(this,arguments)||this};
_.m(PX,_.n);_.q([_.R(),_.N("design:type",Object)],PX.prototype,"data",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],PX.prototype,"rendererBehavior",void 0);PX=_.q([_.d({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],PX);
_.w(PX,"ytd-premium-browse-footer-renderer",function(){if(d4i!==void 0)return d4i;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return d4i=x},{mode:1});var w30;var EN=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return x};
_.m(EN,_.n);_.a=EN.prototype;_.a.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.a.handleDarkModeToggledAction=function(x){this.isDarkTheme=x};
_.a.computeHeaderLogoThumbnail=function(x,G){if(x)return G?x.darkLogo:x.lightLogo};
_.a.computeHeaderLogoHeight=function(x,G){var D,K,z;return(x=(D=this.computeHeaderLogoThumbnail(x,G))==null?void 0:(K=D.thumbnails)==null?void 0:(z=K[0])==null?void 0:z.height)&&x%31===0?"31":"24"};
_.a.computeHeaderLogoMarginBottom=function(x,G){return this.computeHeaderLogoHeight(x,G)==="24"?"0":"-7"};
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],EN.prototype,"actionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],EN.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],EN.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Boolean)],EN.prototype,"isDarkTheme",void 0);_.q([_.R({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.N("design:type",Object)],EN.prototype,"themeLogo",void 0);
_.q([_.R({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.N("design:type",String)],EN.prototype,"logoHeight",void 0);_.q([_.R({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.N("design:type",String)],EN.prototype,"logoMarginBottom",void 0);EN=_.q([_.d({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],EN);
_.w(EN,"ytd-primetime-promo-header-renderer",function(){if(w30!==void 0)return w30;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return w30=x},{mode:1});var q77;var vEi=_.Nv(function(x){var G=_.WH(function(z){var y;(y=x.onClick)==null||y.call(x,z)}),D={},K={};
return _.M("yt-shelf-header-layout",{class:_.ym("shelf-header-layout-wiz",(D["shelf-header-layout-wiz--disable-horizontal-padding"]=x.disableHorizontalPadding,D["shelf-header-layout-wiz--disable-vertical-padding"]=x.disableVerticalPadding,D["shelf-header-layout-wiz--responsive"]=x.useResponsiveLayout,D["shelf-header-layout-wiz--narrow"]=function(){var z,y;return((z=x.useResponsiveLayout)==null?void 0:z.call(x))&&((y=x.forceSmallLayout)==null?void 0:y.call(x))},D["shelf-header-layout-wiz--is-overlay"]=
x.isOverlay,D["shelf-header-layout-wiz--tappable"]=!!x.onClick,D)),
"on:click":G,tabindex:x.onClick?0:void 0},_.M(_.b,{cond:x.leadingIcon,then:function(z){return _.M("div",{class:"shelf-header-layout-wiz__leading-icon"},_.M(_.Qm,{icon:z}))},
else:function(){return _.M(_.b,{cond:x.hasLeadingImage,then:function(){var z,y={};return _.M("div",{class:_.ym("shelf-header-layout-wiz__leading-image",(y["shelf-header-layout-wiz__leading-image--circular-image"]=x.circularImage,y))},(z=x.leadingImage)==null?void 0:z.call(x))}})}}),_.M("div",{class:"shelf-header-layout-wiz__label-container"},_.M(_.b,{cond:x.hasSuperlabel,
then:function(){var z;return _.M("div",{class:"shelf-header-layout-wiz__superlabel"},(z=x.superlabel)==null?void 0:z.call(x))}}),_.M("div",{class:"shelf-header-layout-wiz__title-row"},_.M(NY8,{text:x.title,
className:_.ym("shelf-header-layout-wiz__title",(K["shelf-header-layout-wiz__title--small-title"]=x.forceSmallLayout,K)),tagLevel:x.tagLevel}),_.M(_.b,{cond:x.hasDetail,then:function(){var z;return _.M("div",{class:"shelf-header-layout-wiz__detail"},(z=x.detail)==null?void 0:z.call(x))}})),_.M(_.b,{cond:x.hasSublabel,
then:function(){var z;return _.M("div",{class:"shelf-header-layout-wiz__sublabel"},(z=x.sublabel)==null?void 0:z.call(x))}})),_.M(_.b,{cond:x.hasTrailingActions,
then:function(){var z;return _.M("div",{class:"shelf-header-layout-wiz__trailing-actions"},(z=x.trailingActions)==null?void 0:z.call(x))}}))},"Kb");
vEi.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};
var NY8=_.Nv(function(x){var G=x.text;var D=x.className;var K=x.tagLevel;return _.M(_.so,null,_.M(_.B6,{when:function(){return(K==null?void 0:K())===0}},function(){return _.M("h2",{class:D},G())}),_.M(_.B6,{when:function(){return(K==null?void 0:K())===1}},function(){return _.M("h3",{class:D},G())}),_.M(_.B6,{when:function(){return(K==null?void 0:K())===2}},function(){return _.M("h4",{class:D},G())}),_.M(_.rT,null,function(){return _.M("h2",{class:D},G())}))},"Lb");var tko,JH9,fts;_.hF=_.Nv(function(x){var G=x.data;return _.M("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:_.Ms({"background-color":function(){return O0Q(G().backgroundColor)?_.jT(O0Q(G().backgroundColor)):void 0}})},_.M(vEi,{hasDetail:!1,
title:function(){return _.M(_.vq,{text:function(){return G().headline}})},
hasTitle:!0,sublabel:function(){return _.M(JH9,{data:G})},
hasSublabel:function(){return!!G().sublabel||!!G().bottomBadge},
superlabel:function(){return _.M(fts,{data:G})},
hasSuperlabel:function(){return!!G().superlabel||!!G().topBadge},
leadingImage:function(){return _.M(tko,{leadingAccessory:function(){return G().leadingAccessory}})},
hasLeadingImage:function(){return!!G().leadingAccessory},
trailingActions:function(){return _.M(_.bA,{data:function(){return G().trailingActions}},{flexibleActionsViewModel:sJ})},
hasTrailingActions:function(){return!!G().trailingActions},
disableHorizontalPadding:x.disableHorizontalPadding,disableVerticalPadding:x.disableVerticalPadding,forceSmallLayout:x.forceSmallLayout,useResponsiveLayout:x.useResponsiveLayout,isOverlay:x.isOverlay,onClick:function(D){if(_.ns(G().rendererContext)){var K=_.SU(G().rendererContext);K&&_.OI(K,{form:{element:D.target,event:D}})}}}))},"Mb");
tko=_.Nv(function(x){var G=x.leadingAccessory;return _.M(_.xT,null,_.M(_.b,{cond:function(){var D;return(D=G().image)!=null?D:_.NF(G().themedImage)},
then:function(D){return _.M(_.wk,{data:D,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.M(_.b,{cond:function(){return _.Y(G().avatar,_.gl)},
then:function(D){return _.M(_.Lj,{data:D})}}))},"Nb");
JH9=_.Nv(function(x){var G=x.data;return _.M(_.xT,null,_.M(_.b,{cond:function(){return _.Y(G().bottomBadge,s89)},
then:function(D){var K={};return _.M(_.v2,{data:D,class:_.ym((K.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!D()&&!!G().sublabel},K))})}}),_.M(_.b,{cond:function(){return G().sublabel},
then:function(D){return _.M(_.vq,{text:D})}}))},"Ob");
fts=_.Nv(function(x){var G=x.data;return _.M(_.xT,null,_.M(_.b,{cond:function(){return _.Y(G().topBadge,s89)},
then:function(D){var K={};return _.M(_.v2,{data:D,class:_.ym((K.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!D()&&!!G().superlabel},K))})}}),_.M(_.b,{cond:function(){return G().superlabel},
then:function(D){return _.M(_.vq,{text:D})}}))},"Pb");_.tn(_.hF,"yt-section-header-view-model",{props:{data:_.ik,className:_.ik,disableHorizontalPadding:_.ik,disableVerticalPadding:_.ik,forceSmallLayout:_.ik,useResponsiveLayout:_.ik,isOverlay:_.ik}});_.HH("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var xj=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return x};
_.m(xj,_.n);_.a=xj.prototype;_.a.attached=function(){this.requestElementsPerRow()};
_.a.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"}}}};
_.a.onDataChange=function(){var x=this;_.w1(this,function(){x.updateItemVisibility()})};
_.a.onUpdateElementsPerRowAction=function(x){x&&this.elementsPerRow!==x&&(this.elementsPerRow=x,this.updateItemVisibility())};
_.a.updateItemVisibility=function(){var x=this;this.data&&this.data.panels&&_.kA(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(G,D){G.hidden=D>x.elementsPerRow-1})};
_.a.requestElementsPerRow=function(){_.h$(this.hostElement,"yt-request-elements-per-row")};
xj.prototype.onDataChange=xj.prototype.onDataChange;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],xj.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.CS),_.N("design:type",Object)],xj.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],xj.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],xj.prototype,"actionHandlerBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],xj.prototype,"data",void 0);_.q([_.R({value:3}),_.N("design:type",Number)],xj.prototype,"elementsPerRow",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xj.prototype,"onDataChange",null);xj=_.q([_.d({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],xj);
_.w(xj,"ytd-primetime-promo-renderer",function(){if(q77!==void 0)return q77;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return q77=x},{mode:1});var kT7;var Gq=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return x};
_.m(Gq,_.n);Gq.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
Gq.prototype.handleButtonRefreshAction=function(x){if(x=_.Y(x,n5J))this.set("data.button",x.membershipButton),this.notifyPath("data.button")};
_.Nq.Object.defineProperties(Gq.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var x,G;return((x=this.data)==null?void 0:(G=x.avatars)==null?void 0:G.slice(0,8))||[]}}});
_.q([_.R(),_.N("design:type",Object)],Gq.prototype,"data",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],Gq.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Gq.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Gq.prototype,"rendererBehavior",void 0);_.q([_.U("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],Gq.prototype,"avatars",null);
Gq=_.q([_.d({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],Gq);
_.w(Gq,"ytd-recognition-shelf-renderer",function(){if(kT7!==void 0)return kT7;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return kT7=x},{mode:1});var PWo;var EEs;var DM=function(){var x=_.n.apply(this,arguments)||this;x.modernButtons=_.B("web_modern_buttons");return x};
_.m(DM,_.n);_.a=DM.prototype;
_.a.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]",lockupExperiments:"[[lockupExperiments]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",
showRenderer:"ytd-show-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.a.dataChanged=function(){this.collapsed=!0};
_.a.computeVisibleItems=function(x,G){return x!==void 0&&x.items?G?x.items.slice(0,this.data.collapsedItemCount):x.items:[]};
_.a.computeHideShowMore=function(x,G,D){return x>=G||!D};
_.a.computeHideShowAll=function(x,G,D){return!(x&&G)||D};
_.a.onMoreClick=function(){this.collapsed=!1};
_.Nq.Object.defineProperties(DM.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.B("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.Db("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.B("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
DM.prototype.dataChanged=DM.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],DM.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],DM.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],DM.prototype,"data",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],DM.prototype,"isSearch",void 0);
_.q([_.R({computed:"computeVisibleItems(data,collapsed)"}),_.N("design:type",Array)],DM.prototype,"visibleItems",void 0);_.q([_.R({value:!0}),_.N("design:type",Boolean)],DM.prototype,"collapsed",void 0);_.q([_.R({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.N("design:type",Boolean)],DM.prototype,"hideShowMore",void 0);
_.q([_.R({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.N("design:type",Boolean)],DM.prototype,"hideShowAll",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],DM.prototype,"modernButtons",void 0);_.q([_.U("isSearch"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],DM.prototype,"typographyBump",null);
_.q([_.U("isSearch"),_.N("design:type",Object),_.N("design:paramtypes",[])],DM.prototype,"lockupExperiments",null);_.q([_.U("isSearch"),_.N("design:type",String),_.N("design:paramtypes",[])],DM.prototype,"thumbnailWidth",null);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DM.prototype,"dataChanged",null);DM=_.q([_.d({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],DM);
_.w(DM,"ytd-vertical-list-renderer",function(){if(EEs!==void 0)return EEs;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return EEs=x},{mode:1});var hbJ=_.gv(["#"]);_.HH("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var K_=function(){var x=_.n.apply(this,arguments)||this;x.isConstrainedList=!1;x.modernTypography=_.B("web_modern_typography");return x};
_.m(K_,_.n);_.a=K_.prototype;
_.a.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"}}}};
_.a.computeThumbnailStyle=function(x){return x||""};
_.a.computePlaceAnnotationUnderTitle=function(){var x;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((x=this.data)==null?void 0:x.thumbnailStyle)||"")};
_.a.computeHrefWithDefault=function(x){return this.ytComponentBehavior.computeHref_(x)||_.s2(hbJ)};
_.a.computeIsPromoShelf=function(x){var G;return(x=x==null?void 0:(G=x[0])==null?void 0:G.metadataBadgeRenderer)?x.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.a.computePlaceBadgeBesideTitle=function(x){var G;return(x==null?0:(G=x[0])==null?0:G.metadataBadgeRenderer)?!this.computeIsPromoShelf(x):!1};
_.a.computeMenuIcon=function(x){return this.computeIsPromoShelf(x)?"yt-icons:more_vert":"yt-icons:more"};
_.a.onDataChange=function(){var x,G;((x=this.data)==null?0:(G=x.content)==null?0:G.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.a.onLockupRequested=function(x){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&x.detail&&x.detail.videoIds){for(var G=this.data.content.gridRenderer.items,D=new Set,K=_.l(x.detail.videoIds),z=K.next();!z.done;z=K.next())D.add(z.value);x.detail.returnValue=G.filter(function(y){return y.gridVideoRenderer&&y.gridVideoRenderer.videoId&&D.has(y.gridVideoRenderer.videoId)}).map(function(y){return y.gridVideoRenderer})}};
_.a.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
K_.prototype.onLockupRequested=K_.prototype.onLockupRequested;K_.prototype.onDataChange=K_.prototype.onDataChange;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],K_.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.CS),_.N("design:type",Object)],K_.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],K_.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],K_.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.Lg),_.N("design:type",Object)],K_.prototype,"ironResizableBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],K_.prototype,"data",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],K_.prototype,"isSearch",void 0);_.q([_.R(),_.N("design:type",Object)],K_.prototype,"isConstrainedList",void 0);_.q([_.R({reflectToAttribute:!0,value:function(){return _.B("kevlar_fluid_dismiss")}}),
_.N("design:type",Boolean)],K_.prototype,"enableFluidDismiss",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.N("design:type",String)],K_.prototype,"thumbnailStyle",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],K_.prototype,"modernTypography",void 0);_.q([_.R({computed:"computeMenuIcon(data.badges)"}),_.N("design:type",String)],K_.prototype,"menuIcon",void 0);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],K_.prototype,"onDataChange",null);_.q([_.oe("yt-lockup-requested"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],K_.prototype,"onLockupRequested",null);K_=_.q([_.d({is:"ytd-shelf-renderer",disableElementRegistration:!0})],K_);
_.w(K_,"ytd-shelf-renderer",function(){if(PWo!==void 0)return PWo;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return PWo=x},{mode:1});var xw8;var zq=function(){return _.n.apply(this,arguments)||this};
_.m(zq,_.n);zq.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.Nq.Object.defineProperties(zq.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],zq.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],zq.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],zq.prototype,"data",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],zq.prototype,"isPlaylist",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],zq.prototype,"isClipList",void 0);
_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],zq.prototype,"isPlaylistPageWithFilters",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],zq.prototype,"hasTitle",null);_.q([_.R(),_.U("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.N("design:type",Object),_.N("design:paramtypes",[])],zq.prototype,"isRightAligned",null);
zq=_.q([_.d({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],zq);
_.w(zq,"ytd-sort-filter-header-renderer",function(){if(xw8!==void 0)return xw8;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return xw8=x},{mode:1});var Gro;var a9=function(){var x=_.n.apply(this,arguments)||this;x.enableRightArrowHidden=_.B("channel_details_shelf_resize_observer");return x};
_.m(a9,_.n);a9.prototype.attached=function(){var x=this;this.enableRightArrowHidden&&(this.JSC$14247_throttledOnResize=new _.Jc(function(){x.ytdHorizontalListBehavior.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var G;
(G=x.JSC$14247_throttledOnResize)==null||G.fire()}),this.resizeObserver.observe(this.hostElement))};
a9.prototype.detached=function(){if(this.enableRightArrowHidden){var x;(x=this.resizeObserver)==null||x.disconnect();var G;(G=this.JSC$14247_throttledOnResize)==null||G.dispose()}};
a9.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]]"}}}}}};
a9.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.Nq.Object.defineProperties(a9.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.B("enable_creator_details_shelf_m2")){var x=[],G;((G=this.data)==null?0:G.creatorVideosButton)&&x.push(this.data.creatorVideosButton);var D;((D=this.data)==null?0:D.creatorAboutButton)&&x.push(this.data.creatorAboutButton);G=_.l(this.data.creatorCustomUrlButtons||[]);for(D=G.next();!D.done;D=G.next())x.push(D.value);return x}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.B("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],a9.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],a9.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.tp.YtdHorizontalListBehavior),_.N("design:type",Object)],a9.prototype,"ytdHorizontalListBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],a9.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],a9.prototype,"engagementPanel",void 0);
_.q([_.R(),_.N("design:type",Object)],a9.prototype,"enableRightArrowHidden",void 0);_.q([_.U("enableRightArrowHidden","atEnd"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],a9.prototype,"hideRightArrow",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],a9.prototype,"creatorCustomUrlButtons",null);
_.q([_.R({reflectToAttribute:!0}),_.U("data","creatorCustomUrlButtons"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],a9.prototype,"showCreatorCustomUrlButtons",null);_.q([_.U("showCreatorCustomUrlButtons"),_.N("design:type",Number),_.N("design:paramtypes",[])],a9.prototype,"channelAvatarSize",null);a9=_.q([_.d({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],a9);
_.w(a9,"ytd-video-description-infocards-section-renderer",function(){if(Gro!==void 0)return Gro;var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_" hidden="[[hideRightArrow]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Gro=x},{mode:_.Ge("kevlar_poly_si_batch_j067")?1:2});var DwZ;var o9=function(){return _.n.apply(this,arguments)||this};
_.m(o9,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],o9.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],o9.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],o9.prototype,"data",void 0);_.q([_.R({computed:"computeIcon_(data.infoIcon)"}),_.N("design:type",Object)],o9.prototype,"infoIcon",void 0);o9=_.q([_.d({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],o9);
_.w(o9,"ytd-eom-settings-disclaimer-renderer",function(){if(DwZ!==void 0)return DwZ;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return DwZ=x},{mode:1});var KME;var yV=function(){return _.n.apply(this,arguments)||this};
_.m(yV,_.n);_.Nq.Object.defineProperties(yV.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.suppressPaddingDisclaimer)}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],yV.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],yV.prototype,"componentBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],yV.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],yV.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],yV.prototype,"suppressPaddingDisclaimer",null);yV=_.q([_.d({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],yV);
_.w(yV,"ytd-product-list-header-renderer",function(){if(KME!==void 0)return KME;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return KME=x},{mode:1});var zE7;var lE=function(){return _.n.apply(this,arguments)||this};
_.m(lE,_.n);lE.prototype.computeThumbnailStyle=function(x){if(x&&(x=_.In(x)))return"background-color:"+x+";"};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],lE.prototype,"rendererBehaviors",void 0);_.q([_.R(),_.N("design:type",Object)],lE.prototype,"data",void 0);lE=_.q([_.d({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],lE);
_.w(lE,"ytd-hashtag-tile-renderer",function(){if(zE7!==void 0)return zE7;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return zE7=x},{mode:1});var a$0;var cB=function(){return _.n.apply(this,arguments)||this};
_.m(cB,_.n);cB.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}}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],cB.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],cB.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],cB.prototype,"data",void 0);cB=_.q([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],cB);
_.w(cB,"ytd-sponsorships-alert-renderer",function(){if(a$0!==void 0)return a$0;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return a$0=x},{mode:1});var ok8;var Tq=function(){return _.n.apply(this,arguments)||this};
_.m(Tq,_.n);Tq.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.Nq.Object.defineProperties(Tq.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.B("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.B("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.q([_.I(_.CS),_.N("design:type",Object)],Tq.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.I(_.RG),_.N("design:type",Object)],Tq.prototype,"ytdLockupBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Tq.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Tq.prototype,"ytRendererBehavior",void 0);_.q([_.R({selector:_.X4}),_.N("design:type",Object)],Tq.prototype,"isGridViewEnabled",void 0);
_.q([_.U("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Tq.prototype,"watchFeedBigThumbs",null);_.q([_.U("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.N("design:type",String),_.N("design:paramtypes",[])],Tq.prototype,"thumbnailWidth",null);_.q([_.R(),_.N("design:type",Object)],Tq.prototype,"data",void 0);Tq=_.q([_.d({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],Tq);
_.w(Tq,"ytd-compact-movie-renderer",function(){if(ok8!==void 0)return ok8;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return ok8=x},{mode:1});var y5u;var l$Z;var c5s=_.Am("HTML_DIR")==="rtl",WB=function(){var x=_.n.apply(this,arguments)||this;x.engagementPanel=!1;x.maxLines=2;x.expandButtonOffset=0;x.showExpandButton=!1;x.isTruncated=!1;x.isExpanded=!1;x.currentSnippetType=2;x.alwaysShowExpandButton=!1;x.JSC$14264_lastWidth=NaN;x.observer=null;x.left=0;x.right=0;x.mid=0;x.longestSnippetLength=0;x.isFinalSnippet=!1;x.isFirstMutation=!1;x.isResetMutation=!1;x.OVERFLOW_THRESHOLD=5;return x};
_.m(WB,_.n);_.a=WB.prototype;_.a.onClick=function(x){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.u_(_.gA(x)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var G;if((G=window.getSelection())==null||!G.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.a.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.a.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.a.updateTextOnSnippetTypeChange=function(){_.B("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.a.setUpBinarySearch=function(x){x=x*this.maxLines/8;this.left=0;var G,D;this.right=Math.min(x*2,(D=(G=this.simpleText)==null?void 0:G.length)!=null?D:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.a.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.a.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.O9(new _.LL("AttributedSnippet is empty when the description is not empty",this.text))};
_.a.mutationCallback=function(){if(this.observer!=null){var x=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var G=Math.floor(x*this.maxLines/8);this.setSnippetText(this.text,G);G!==0||this.attributedTextIsEmpty()||_.O9(new _.LL("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;x=x*this.maxLines/8;this.left=0;var D;this.right=Math.min(x*2,(D=(G=this.simpleText)==null?void 0:G.length)!=null?D: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)}}};
_.a.mutationObserve=function(x){var G=this;this.observer||(this.observer=new MutationObserver(function(){G.mutationCallback()}));
this.observer.observe(x,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.a.attached=function(){var x=this;_.w1(this,function(){x.resize()})};
_.a.isExpandedChanged=function(){_.h$(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.a.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)};
_.a.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var x="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((c5s?"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",x);this.snippetContainer.style.setProperty("mask-image",
x)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(c5s?"right":"left",this.expandButtonOffset+"px")};
_.a.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.a.setSnippetText=function(x,G){x||(x={});if(_.gk(x)){var D=OqO(x,G);D.attachmentRuns||D.commandRuns||D.decorationRuns||D.styleRuns||D.alignment||D.lineBreakMode?this.attributedSnippetTextEl?(_.B("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=OqO(x,G),this.attributedSnippetTextEl.headerRuns=jxE(G,this.headerRuns)):this.attributedSnippetText={data:OqO(x,G),headerRuns:jxE(G,this.headerRuns)},this.currentSnippetType=0):_.O9(new _.LL("Tried to set snippet text when HTML element was null",
x)):(this.plainSnippetText.textContent=Sn(x.content||"",G),this.currentSnippetType=2)}else{a:{D=XNQ(x,G);if(D.runs){D=_.l(D.runs);for(var K=D.next();!K.done;K=D.next())if(K=K.value,K.bold||K.deemphasize||K.italics||K.strikethrough||K.textColor||K.navigationEndpoint||_.Y(K,FB)){D=!0;break a}}D=!1}D?this.formattedSnippetText?(this.formattedSnippetText.text=XNQ(x,G),this.currentSnippetType=1):_.O9(new _.LL("Tried to set snippet text when HTML element was null",x)):(this.plainSnippetText.textContent=
Sn(_.u7(x),G),this.currentSnippetType=2)}};
_.a.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.a.attributedTextIsEmpty=function(){var x=this.text;if(!_.gk(x))return!0;var G;return((G=x.content)==null?void 0:G.length)===0?!0:!1};
_.a.resize=function(x){if(this.snippetText){if(x===void 0?0:x)this.JSC$14264_lastWidth=NaN;var G=this.hostElement.offsetWidth;if(G!==this.JSC$14264_lastWidth&&!this.isExpanded)if(this.JSC$14264_lastWidth=G,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;x=0;var D,K;G=Math.min(G*this.maxLines/8*2,(K=(D=this.simpleText)==null?void 0:D.length)!=null?K:0)-1;for(D=0;x<=G;)K=Math.floor(x+(G-x)/2),this.setSnippetText(this.text,K),this.isOverflowing()?G=K-1:(x=K+1,D=K);this.setSnippetText(this.text,D);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.a.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.a.onExpandClick=function(){var x=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.B("inline_expander_reset_focus_killswitch")||_.w1(this,function(){var G;((G=_.Eo().resolve(_.P6(_.Ee)))==null?0:G.isKeyBoardInUse())&&_.vS(x.hostElement)});
_.h$(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.a.onCollapseClick=function(){this.collapse();_.h$(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.a.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.a.computeExpandButtonOffset=function(){var x=this.expandSizer;return x?c5s?x.offsetParent?x.offsetParent.offsetWidth-x.offsetWidth-x.offsetLeft:0:x.offsetLeft:0};
_.Nq.Object.defineProperties(WB.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.gk(this.text)?this.text.content||"":_.u7(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 _.gk(this.text)?!0:this.text&&_.B("web_replace_formatted_with_attributed_string")&&h8P(this.text)?(this.text=_.$$(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}}});
WB.prototype.onTextChanged=WB.prototype.onTextChanged;WB.prototype.updateMaskAndExpandButtonOffset=WB.prototype.updateMaskAndExpandButtonOffset;WB.prototype.updateSnippetContainerMaxHeight=WB.prototype.updateSnippetContainerMaxHeight;WB.prototype.isExpandedChanged=WB.prototype.isExpandedChanged;WB.prototype.updateTextOnSnippetTypeChange=WB.prototype.updateTextOnSnippetTypeChange;WB.prototype.updateIsFormattedExpanded=WB.prototype.updateIsFormattedExpanded;WB.prototype.updateIsAttributedExpanded=WB.prototype.updateIsAttributedExpanded;
WB.prototype.onClick=WB.prototype.onClick;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],WB.prototype,"componentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],WB.prototype,"text",void 0);_.q([_.R(),_.N("design:type",Array)],WB.prototype,"headerRuns",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],WB.prototype,"engagementPanel",void 0);_.q([_.R(),_.N("design:type",Object)],WB.prototype,"maxLines",void 0);
_.q([_.R(),_.N("design:type",String)],WB.prototype,"expandLabel",void 0);_.q([_.R(),_.N("design:type",String)],WB.prototype,"collapseLabel",void 0);_.q([_.R(),_.N("design:type",Object)],WB.prototype,"expandCommand",void 0);_.q([_.R(),_.N("design:type",Object)],WB.prototype,"expandButtonOffset",void 0);_.q([_.U("text"),_.N("design:type",String),_.N("design:paramtypes",[])],WB.prototype,"simpleText",null);
_.q([_.oe("click"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],WB.prototype,"onClick",null);_.q([_.U("text","isExpanded"),_.N("design:type",Object),_.N("design:paramtypes",[])],WB.prototype,"expandedText",null);_.q([_.U("headerRuns","isExpanded"),_.N("design:type",Object),_.N("design:paramtypes",[])],WB.prototype,"expandedHeaderRuns",null);
_.q([_.U("text"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],WB.prototype,"hasAttributedStringText",null);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],WB.prototype,"showExpandButton",void 0);_.q([_.U("collapseLabel","isExpanded"),_.N("design:type",Object),_.N("design:paramtypes",[])],WB.prototype,"showCollapseButton",null);_.q([_.R(),_.N("design:type",Object)],WB.prototype,"isTruncated",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],WB.prototype,"isExpanded",void 0);_.q([_.R(),_.N("design:type",Boolean)],WB.prototype,"isAttributedExpanded",void 0);_.q([_.yf("isExpanded","hasAttributedStringText"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WB.prototype,"updateIsAttributedExpanded",null);_.q([_.R(),_.N("design:type",Boolean)],WB.prototype,"isFormattedExpanded",void 0);
_.q([_.yf("isExpanded","hasAttributedStringText"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WB.prototype,"updateIsFormattedExpanded",null);_.q([_.R(),_.N("design:type",Number)],WB.prototype,"currentSnippetType",void 0);_.q([_.U("currentSnippetType"),_.N("design:type",Object),_.N("design:paramtypes",[])],WB.prototype,"useAttributedSnippet",null);
_.q([_.U("currentSnippetType"),_.N("design:type",Object),_.N("design:paramtypes",[])],WB.prototype,"useFormattedSnippet",null);_.q([_.U("currentSnippetType"),_.N("design:type",Object),_.N("design:paramtypes",[])],WB.prototype,"usePlainSnippet",null);_.q([_.R(),_.N("design:type",Object)],WB.prototype,"alwaysShowExpandButton",void 0);_.q([_.yf("currentSnippetType"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WB.prototype,"updateTextOnSnippetTypeChange",null);
_.q([_.R(),_.N("design:type",Object)],WB.prototype,"attributedSnippetText",void 0);_.q([_.cD("#snippet"),_.N("design:type",HTMLElement)],WB.prototype,"snippetContainer",void 0);_.q([_.cD("#snippet-text"),_.N("design:type",HTMLElement)],WB.prototype,"snippetText",void 0);_.q([_.cD("#plain-snippet-text"),_.N("design:type",HTMLElement)],WB.prototype,"plainSnippetText",void 0);_.q([_.cD("#formatted-snippet-text"),_.N("design:type",Object)],WB.prototype,"formattedSnippetText",void 0);
_.q([_.cD("#attributed-snippet-text"),_.N("design:type",Object)],WB.prototype,"attributedSnippetTextEl",void 0);_.q([_.cD("#expand"),_.N("design:type",HTMLElement)],WB.prototype,"expandButton",void 0);_.q([_.cD("#expand-sizer"),_.N("design:type",HTMLElement)],WB.prototype,"expandSizer",void 0);_.q([_.Z6("isExpanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WB.prototype,"isExpandedChanged",null);
_.q([_.yf("isExpanded","maxLines"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WB.prototype,"updateSnippetContainerMaxHeight",null);_.q([_.yf("isTruncated","showExpandButton","expandButtonOffset"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WB.prototype,"updateMaskAndExpandButtonOffset",null);
_.q([_.Z6("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WB.prototype,"onTextChanged",null);WB=_.q([_.d({is:"ytd-text-inline-expander",disableElementRegistration:!0})],WB);
_.w(WB,"ytd-text-inline-expander",function(){if(l$Z===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);l$Z=x}x=l$Z;return x},{mode:2});var eW=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return x};
_.m(eW,_.n);eW.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
eW.prototype.handleUpdateDescriptionAction=function(x){if(x=_.Y(x,_.voJ))if(x.attributedDescription)this.set("data.attributedDescriptionBodyText",x.attributedDescription);else if(x.description){var G;((G=this.data)==null?0:G.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.$$(x.description)):this.set("data.descriptionBodyText",x.description)}};
_.Nq.Object.defineProperties(eW.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var x,G;return!((x=this.data)==null||!x.attributedDescriptionBodyText)||!((G=this.data)==null||!G.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.data)==null?0:x.collapsedLineCount){var G;return(G=this.data)==null?void 0:G.collapsedLineCount}x=_.Gz("web_watch_description_collapsed_default_lines",12);if(_.B("ww_desc_line_page_size_ks"))return x;G=Math.round(_.ZD().height*_.Gz("web_watch_description_screen_height_percentage",.5)/20);return Math.max(G,x)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var x,G,D;return(D=(x=this.data)==null?void 0:x.descriptionBodyText)!=null?D:(G=this.data)==null?void 0:G.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.sourceAttributions}}});
eW.prototype.panelContentVisibleChanged=eW.prototype.panelContentVisibleChanged;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],eW.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],eW.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],eW.prototype,"componentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],eW.prototype,"data",void 0);
_.q([_.R(),_.N("design:type",Boolean)],eW.prototype,"panelContentVisible",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],eW.prototype,"engagementPanel",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],eW.prototype,"shortsPanel",void 0);_.q([_.cD("#inline-expander"),_.N("design:type",Object)],eW.prototype,"inlineExpander",void 0);
_.q([_.yf("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],eW.prototype,"panelContentVisibleChanged",null);_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],eW.prototype,"hasDescriptionText",null);_.q([_.U("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],eW.prototype,"collapsedLines",null);
_.q([_.U("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.N("design:type",Object),_.N("design:paramtypes",[])],eW.prototype,"descriptionText",null);_.q([_.U("data","data.headerRuns"),_.N("design:type",Object),_.N("design:paramtypes",[])],eW.prototype,"headerRuns",null);_.q([_.U("data","data.sourceAttributions"),_.N("design:type",Object),_.N("design:paramtypes",[])],eW.prototype,"sourceAttributions",null);
eW=_.q([_.d({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],eW);
_.w(eW,"ytd-expandable-video-description-body-renderer",function(){if(y5u!==void 0)return y5u;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return y5u=x},{mode:_.Ge("kevlar_poly_si_batch_j028")?1:2});var TZJ;var WMs=_.Nv(function(x){var G=x.data;return _.M("factoid-renderer",{class:"ytwFactoidRendererHost"},_.M("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return G().accessibilityText}},_.M("span",{class:"ytwFactoidRendererValue"},_.M(_.vq,{text:function(){return G().value}})),_.M("span",{class:"ytwFactoidRendererLabel"},_.M(_.vq,{text:function(){return G().label}}))))},"Qb");_.tn(WMs,"factoid-renderer",{props:{data:_.ik}});_.tn(_.Nv(function(x){var G=x.data;return _.M("upload-time-factoid-renderer",null,_.M(_.bA,{data:function(){return G().factoid}},{factoidRenderer:WMs}))},"Rb"),"upload-time-factoid-renderer",{props:{data:_.fz}});_.tn(_.Nv(function(x){var G=x.data;return _.M("view-count-factoid-renderer",null,_.M(_.bA,{data:function(){return G().factoid}},{factoidRenderer:WMs}))},"Sb"),"view-count-factoid-renderer",{props:{data:_.fz}});var ZM=function(){var x=_.n.apply(this,arguments)||this;x.shortsPanel=!1;x.engagementPanel=!1;x.watchWhileSdp=_.B("shorts_desktop_watch_while_sdp");return x};
_.m(ZM,_.n);ZM.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"}}}}};
_.Nq.Object.defineProperties(ZM.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var x;return(x=this.data)==null?void 0:x.channel}}});
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],ZM.prototype,"componentBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],ZM.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],ZM.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],ZM.prototype,"shortsPanel",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],ZM.prototype,"engagementPanel",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],ZM.prototype,"watchWhileSdp",void 0);_.q([_.U("shortsPanel","engagementPanel","data.channel"),_.N("design:type",Object),_.N("design:paramtypes",[])],ZM.prototype,"showChannelInfo",null);ZM=_.q([_.d({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],ZM);
_.w(ZM,"ytd-video-description-header-renderer",function(){if(TZJ!==void 0)return TZJ;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return TZJ=x},{mode:1});var eE0;var Mo=function(){return _.n.apply(this,arguments)||this};
_.m(Mo,_.n);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Mo.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Mo.prototype,"ytRendererBehavior",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],Mo.prototype,"noPadding",void 0);_.q([_.R(),_.N("design:type",Object)],Mo.prototype,"data",void 0);Mo=_.q([_.d({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],Mo);
_.w(Mo,"ytd-list-item-view-model",function(){if(eE0!==void 0)return eE0;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return eE0=x},{mode:1});var Z5s;var M3q;var Q59;var p8E;var QV=function(){var x=_.n.apply(this,arguments)||this;x.adaptiveFullWidth=!1;x.modernButtons=_.B("web_modern_buttons");x.buttonOverrides={style:"call-to-action",type:"filled"};x.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return x};
_.m(QV,_.n);QV.prototype.handleSetTimestamp_=function(x){this.data&&this.data.shortUrl&&(_.kA(this.hostElement).querySelector("#share-url").value=x.isSet?_.Ox(this.data.shortUrl,"t",x.timestamp):this.data.shortUrl)};
QV.prototype.handleSignalActionCopyShareUrl_=function(x,G){(_.B("killswitch_copy_link_target_check")||_.kA(this.hostElement).querySelector("#copy-button")===G)&&this.copyUrlToClipboard()};
QV.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.kA(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
QV.prototype.computeStyle_=function(x){return x?x.toLowerCase().replace(/_/g,"-"):""};
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],QV.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],QV.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],QV.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.N("design:type",String)],QV.prototype,"rendererStyle",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],QV.prototype,"adaptiveFullWidth",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],QV.prototype,"modernButtons",void 0);_.q([_.R(),_.N("design:type",Object)],QV.prototype,"buttonOverrides",void 0);QV=_.q([_.HD({is:"yt-copy-link-renderer",disableElementRegistration:!0})],QV);
_.w(QV,"yt-copy-link-renderer",function(){if(p8E===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;Q59===void 0&&(Q59=document.createElement("template"));var K=Q59;D.call(G,K.content.cloneNode(!0),x.content.firstChild);p8E=x}x=p8E;return x},{mode:2});_.HH("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var p_=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return x};
_.m(p_,_.n);_.a=p_.prototype;_.a.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.a.attached=function(){this.keyboardFocused=!1};
_.a.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var x=_.Eo().resolve(_.P6(_.Ee));x&&(this.keyboardFocused=x.isKeyBoardInUse())}};
_.a.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.a.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}};
_.a.onChange_=function(){if(this.data){var x=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;x&&this.ytComponentBehavior.resolveCommand(x);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.a.handleUpdateToggleAction_=function(x){(x=_.Y(x,E1J))&&this.data&&x.targetId==this.data.targetId&&this.set("data.toggled",x.toggled)};
_.a.toBoolean_=function(x){return!!x};
_.a.reset=function(){};
_.a.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Xt("data-changed",this.data))};
_.a.updateDataToggledFromBinding=function(x){this.set("data.toggled",x.detail.value)};
p_.prototype.dataChangedForBinding=p_.prototype.dataChangedForBinding;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],p_.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],p_.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],p_.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],p_.prototype,"ytRendererBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],p_.prototype,"data",void 0);_.q([_.R({computed:"computeDescription_(data.*)"}),_.N("design:type",Object)],p_.prototype,"description_",void 0);_.q([_.R({value:function(){return!!_.Eo().resolve(_.P6(_.Ee))&&_.B("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.N("design:type",Boolean)],p_.prototype,"useKeyboardFocused",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],p_.prototype,"keyboardFocused",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],p_.prototype,"dataChangedForBinding",null);p_=_.q([_.HD({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],p_);
_.w(p_,"yt-toggle-form-field-renderer",function(){if(M3q===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;Z5s===void 0&&(Z5s=document.createElement("template"));var K=Z5s;D.call(G,K.content.cloneNode(!0),x.content.firstChild);M3q=x}x=M3q;return x},{mode:2});var V3J;var b5u;var VV=function(){var x=_.n.apply(this,arguments)||this;x.isDarkTheme=!1;x.isSearch=!1;x.darkerDarkTheme=_.B("web_darker_dark_theme");x.noTopMargin=_.B("kevlar_watch_no_top_margin");x.maskFade=_.B("web_watch_chips_mask_fade");x.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 x};
_.m(VV,_.n);_.a=VV.prototype;_.a.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}}}}}};
_.a.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.a.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.a.dataChanged=function(){var x=this.getSelectedIndex();if(x>0)this.selected=x;else{this.selected=0;var G,D;(G=this.ytScrollableChipCloudBehavior)==null||(D=G.reset)==null||D.call(G)}};
_.a.getSelectedIndex=function(){var x;if((x=this.data)==null||!x.chips)return-1;x=-1;for(var G,D=0;D<((G=this.data)==null?void 0:G.chips.length);D++){var K=void 0,z=void 0;if((K=this.data)==null?0:(z=K.chips[D].chipCloudChipRenderer)==null?0:z.isSelected){x=D;break}}return x};
_.a.onResize=function(){var x=this.ytScrollableChipCloudBehavior;_.w1(x,x.setContainerWidthDiff);G6(this.ytScrollableChipCloudBehavior)};
_.a.onDarkModeToggledAction=function(x){this.isDarkTheme=x};
_.a.handleRelatedChipCommand=function(x,G){x=this.JSC$14291_chipsSelector.indexOf(G);x!==-1&&this.JSC$14291_chipsSelector.selectIndex(x)};
_.a.handleChipCloudChipSelectAction=function(x){x=this.JSC$14291_chipsSelector.indexOf(x);x>-1&&this.JSC$14291_chipsSelector.selectIndex(x)};
_.a.handleChipCloudChipDeselectAction=function(){var x=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14291_chipsSelector&&((x==null?0:x.continuationCommand)?_.KW(this.hostElement,[x]):(x==null?0:x.searchEndpoint)?this.ytComponentBehavior.resolveCommand(x):x&&_.zl(this.hostElement,[x],this.hostElement),this.JSC$14291_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.a.updateSelectedFromBinding=function(x){this.selected=x.detail.value};
VV.prototype.onResize=VV.prototype.onResize;VV.prototype.dataChanged=VV.prototype.dataChanged;VV.prototype.isSearchChanged=VV.prototype.isSearchChanged;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],VV.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],VV.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],VV.prototype,"actionHandlerBehavior",void 0);
_.q([_.I(_.Lg),_.N("design:type",Object)],VV.prototype,"ironResizableBehavior",void 0);_.q([_.I(),_.N("design:type",xu)],VV.prototype,"ytScrollableChipCloudBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],VV.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],VV.prototype,"data",void 0);_.q([_.R({value:0}),_.N("design:type",Number)],VV.prototype,"selected",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],VV.prototype,"isDarkTheme",void 0);_.q([_.R({value:160}),_.N("design:type",Number)],VV.prototype,"scrollDistance",void 0);_.q([_.R(),_.N("design:type",Object)],VV.prototype,"isSearch",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],VV.prototype,"darkerDarkTheme",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],VV.prototype,"noTopMargin",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],VV.prototype,"maskFade",void 0);_.q([_.cD("#chips"),_.N("design:type",Object)],VV.prototype,"JSC$14291_chipsSelector",void 0);_.q([_.yf("isSearch"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],VV.prototype,"isSearchChanged",null);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],VV.prototype,"dataChanged",null);
_.q([_.oe("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],VV.prototype,"onResize",null);VV=_.q([_.HD({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],VV);
_.w(VV,"yt-chip-cloud-renderer",function(){if(b5u===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;V3J===void 0&&(V3J=document.createElement("template"));var K=V3J;D.call(G,K.content.cloneNode(!0),x.content.firstChild);b5u=x}x=b5u;return x},{mode:2});var LME,BZi=function(){return LME!==void 0?LME:LME=document.createElement("template")};
document.head.appendChild(BZi().content);var r5q;var s5Z=document.head,Yz0=s5Z.appendChild,mw9;if(r5q===void 0){var H5q=document.createElement("template");_.F(H5q,"");H5q.content.insertBefore(BZi().content.cloneNode(!0),H5q.content.firstChild);r5q=H5q}mw9=r5q;Yz0.call(s5Z,mw9.content);var $wJ=_.Nv(function(x){var G=x.data;return _.M("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.M("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.M("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.M(_.b,{cond:function(){return _.NF(G().image)},
then:function(D){return _.M("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.M(_.wk,{data:D,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.M("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.M(_.vq,{text:function(){return G().title}})),_.M("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.M(_.vq,{text:function(){return G().subtitle}})))),_.M(_.b,{cond:function(){var D;
return(D=G())==null?void 0:D.hasBottomDivider},
then:function(){return _.M("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Tb");var FME=_.Nv(function(x){var G=x.data;return _.M("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.M("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.M(_.bA,{data:function(){var D;return(D=G().offerPlanDetailsItem)!=null?D:[]}},{offerPlanDetailsItemViewModel:function(D){return _.M("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.M($wJ,{data:D.data}))}})),_.M("div",null,_.M(_.b,{cond:function(){return G().hasBottomDivider},
then:function(){return _.M("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.M("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.M("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.M("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.M("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Ub");var CYk=_.Nv(function(x){var G=x.data;x=_.l(_.eO(!1,void 0,"SpEGQd"));var D=x.next().value,K=x.next().value,z=_.WH(function(){K(!D());return!1}),y=function(){var c;
return(c=G().offerPlanDetailsContainer)!=null?c:[]};
return _.M("lp-complex-offer-card-details-view-model",null,_.M("div",null,_.M(_.b,{cond:function(){return D()},
then:function(){return _.M("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.M("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":z,"aria-expanded":D},_.M(_.vq,{text:function(){return G().expandedTitle}})),_.M("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.M(_.bA,{data:y},{offerPlanDetailsContainerViewModel:function(c){return _.M("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.M(FME,{data:c.data}))}})),_.M("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.M(_.vq,{text:function(){return G().legalText}})))},
else:function(){return _.M("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":z,"aria-expanded":D},_.M(_.vq,{text:function(){return G().collapsedTitle}}),_.M("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.M(_.Qm,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Vb");var I$E=_.Nv(function(x){var G=x.data;return _.M("lp-complex-offer-card-option-view-model",null,_.M("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.M(_.b,{cond:function(){return G().topDividerText},
then:function(){return _.M("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.M("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.M("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.M("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.M(_.vq,{text:function(){return G().topDividerText}}))))}}),_.M(_.b,{cond:function(){return G().planPricingPrimary},
then:function(){return _.M("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.M(_.vq,{text:function(){return G().planPricingPrimary}}))}}),_.M(_.b,{cond:function(){return G().planPricingSecondary},
then:function(){return _.M("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.M(_.vq,{text:function(){return G().planPricingSecondary}}))}}),_.M(_.b,{cond:function(){return G().primaryButton},
then:function(){return _.M("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.M(_.bA,{data:function(){return G().primaryButton}},{buttonViewModel:function(D){return _.M(_.Cs,{data:D.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Wb");var j50=_.Nv(function(x){var G=x.data;var D=function(){var y;return((y=G())==null?void 0:y.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
x={};var K={},z={};return _.M("ytm-lp-complex-offer-card-view-model",null,_.M("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.M("div",{class:_.ym((x.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=D,x),"ytmLpComplexOfferCardViewModelCardContainer")},_.M(_.b,{cond:function(){var y;return(y=G())==null?void 0:y.bannerText},
then:function(){return _.M("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.M("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.M(_.vq,{text:function(){return G().bannerText}})))}}),_.M(_.b,{cond:function(){return _.NF(G().logo)},
then:function(y){var c={};return _.M("div",{class:_.ym((c.ytmLpComplexOfferCardViewModelLogoAlignLeft=D,c),"ytmLpComplexOfferCardViewModelLogo")},_.M(_.wk,{data:y,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.M("div",{class:_.ym((K.ytmLpComplexOfferCardViewModelTitleAlignLeft=D,K),"ytmLpComplexOfferCardViewModelTitle")},_.M(_.vq,{text:function(){return G().title}})),_.M(_.b,{cond:function(){var y;
return(y=G())==null?void 0:y.subtitle},
then:function(){var y={};return _.M("div",{class:_.ym((y.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=D,y),"ytmLpComplexOfferCardViewModelSubtitle")},_.M(_.vq,{text:function(){return G().subtitle}}))}}),_.M(_.b,{cond:function(){return G().planPricingPrimary},
then:function(){return _.M("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.M(_.vq,{text:function(){return G().planPricingPrimary}}))}}),_.M(_.b,{cond:function(){return G().planPricingSecondary},
then:function(){return _.M("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.M(_.vq,{text:function(){return G().planPricingSecondary}}))}}),_.M(_.b,{cond:function(){return G().purchaseButton},
then:function(){return _.M("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.M(_.bA,{data:function(){return G().purchaseButton}},{buttonViewModel:function(y){return _.M(_.Cs,{data:y.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.M(_.b,{cond:function(){var y;
return(y=G())==null?void 0:y.offerOptions},
then:function(){return _.M("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.M(_.bA,{data:function(){return G().offerOptions}},{lpComplexOfferCardOptionViewModel:I$E}))}}),_.M("div",{class:_.ym((z.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=D,z),"ytmLpComplexOfferCardViewModelLegalText")},_.M(_.vq,{text:function(){return G().legalText}})),_.M(_.b,{cond:function(){var y;
return(y=G())==null?void 0:y.offerCardDetails},
then:function(){return _.M("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.M(_.bA,{data:function(){return G().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:CYk}))}}))))},"Xb");var O5u=_.Nv(function(x){var G=x.data;var D=function(){var c;return((c=G())==null?void 0:c.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
x={};var K={},z={},y={};return _.M("ytm-lp-complex-offer-card-section-view-model",null,_.M("div",{class:_.ym("ytmLpComplexOfferCardSectionViewModelHost")},_.M("div",{class:_.ym((x.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=D,x),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.M("div",{class:_.ym((K.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=D,K),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.M("h2",{class:_.ym((z.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
D,z),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.M(_.vq,{text:function(){return G().title}}))),_.M(_.b,{cond:function(){var c;
return(c=G())==null?void 0:c.subtitle},
then:function(){var c={},W={};return _.M("div",{class:_.ym((c.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=D,c),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.M("div",{class:_.ym((W.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=D,W),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.M(_.vq,{text:function(){return G().subtitle}})))}}),_.M("div",{class:_.ym((y.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=D,y),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.M(_.bA,{data:function(){var c;
return(c=G().offerPlans)!=null?c:[]}},{lpComplexOfferCardViewModel:function(c){return _.M("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.M(j50,{data:c.data}))}})))))},"Yb");var X88=_.Nv(function(x){return _.M("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.M("div",{class:"ytLpCouponBannerViewModelIcon"},_.M(_.Qm,{icon:function(){return"price_tag"}})),_.M("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.M("div",{class:"ytLpCouponBannerViewModelContent"},_.M("div",{class:"ytLpCouponBannerViewModelHeading"},_.M(_.vq,{text:function(){var G;
return(G=x.data())==null?void 0:G.title}})),_.M("div",{class:"ytLpCouponBannerViewModelBody"},_.M(_.vq,{text:function(){var G;
return(G=x.data())==null?void 0:G.subtitle}})))))},"Zb");
X88.idomCompat=!0;_.bE=ZxJ.getInstance();var A5q=_.Nv(function(x){return _.M("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":x.shouldAriaHideContent},_.M("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:x.questionId},_.M(_.vq,{text:x.question})))},"$b"),Uw7=_.Nv(function(x){var G=x.data;
var D=x.themeOverride;x=_.l(_.eO(!1,void 0,"ljTVPd"));var K=x.next().value,z=x.next().value;x=_.WH(function(){z(!K());return!1});
var y=function(){return K()?"EXPAND_LESS":"EXPAND_MORE"},c=("faq-container"+_.st(_.bE)).toString(),W="faq-question-and-answers-section-question"+_.st(_.bE),e={},Q={};
return _.M("faq-entry-view-model-c3",null,_.M("div",{class:_.ym("yt-lp-faq-entry-view-model",(e["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return D==null?void 0:D().useDarkTheme},e))},_.M("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":x,role:"button","aria-expanded":K,"aria-labelledby":W.toString(),"tab-index":"0"},_.M(A5q,{question:function(){return G().question},
questionId:W,shouldAriaHideContent:!0}),_.M(_.b,{cond:function(){return K()!==void 0},
then:function(){return _.M("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.M(_.Qm,{icon:y,ariaHidden:!0}),_.M("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.M("div",{class:_.ym("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(Q["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!K()},Q))},_.M("div",{id:c},_.M(_.LT,{each:function(){return G().answers||[]}},function(p){return _.M("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.M(_.vq,{text:p}))})))))},"ac");
Uw7.idomCompat=!0;var REk=_.Nv(function(x){var G=x.data;var D=x.themeOverride;x={};return _.M("lp-faq-section-view-model-c3",null,_.M("div",{class:_.ym("yt-lp-faq-section-view-model",(x["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return G().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},x["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(D==null||!D().useDarkTheme)},x))},_.M("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.M(_.b,{cond:function(){return G().header},
then:function(K){return _.M("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.M(_.vq,{text:K}))}}),_.M("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.M(_.bA,{data:function(){return G().faqs}},{faqEntryViewModel:function(K){return _.M(Uw7,{data:K.data,
themeOverride:D})}})),_.M("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.M(_.LT,{each:function(){return G().footers||[]}},function(K){return _.M(_.vq,{text:K})})),_.M(_.b,{cond:function(){return G().legal},
then:function(K){return _.M("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.M(_.vq,{text:K}))}}))))},"bc");
REk.idomCompat=!0;var SzZ=_.Nv(function(x){var G=x.data;var D=x.themeOverride;_.FQ(function(){var c=G().gtmId;c&&_.pF(c,_.Am("GL",""))});
var K={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var c,W,e;return(e=(c=G().logo)==null?void 0:(W=c.accessibilityData)==null?void 0:W.label)!=null?e:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},z=_.Eo().resolve(_.P6(_.ib)),y=function(){return z&&z()||(D==null?void 0:D().useDarkTheme)};
return _.M("lp-header-section-view-model",null,_.M("div",{class:function(){var c=G().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",W=G().marginType==="LP_SECTION_MARGIN_TYPE_TOP",e=D==null?void 0:D().useDarkTheme,Q=["lp-header-section-view-model"];c&&Q.push("lp-header-section-view-model--ptc-layout-type");W&&Q.push("lp-header-section-view-model__lp-header-section-margin");e&&Q.push("lp-header-section-view-model--premium-force-dark-mode");return Q.join(" ")}},_.M(_.b,{cond:function(){return G().logo},
then:function(){return _.M("div",null,_.M(_.b,{cond:y,then:function(){return _.M(_.b,{cond:function(){var c;return(c=G().logo)==null?void 0:c.imageDark},
then:function(c){return _.M(_.wk,Object.assign({},{data:c},K))}})},
else:function(){return _.M(_.b,{cond:function(){var c;return(c=G().logo)==null?void 0:c.imageLight},
then:function(c){return _.M(_.wk,Object.assign({},{data:c},K))}})}}))}}),_.M(_.b,{cond:function(){return G().title},
then:function(c){return _.M("div",{class:"lp-header-section-view-model__lp-header-title"},_.M(_.vq,{text:c}))}}),_.M("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.M(_.b,{cond:function(){return G().subtitles},
then:function(c){return _.M(_.LT,{each:c},function(W){return _.M("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.M(_.vq,{text:W}))})}})),_.M(_.b,{cond:function(){return G().additionalInfo},
then:function(c){return _.M("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.M(_.vq,{text:c}))}}),_.M("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.M(_.b,{cond:function(){return G().primaryButton},
then:function(c){return _.M("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.M(_.bA,{data:c},{buttonViewModel:_.Cs}))}}),_.M(_.b,{cond:function(){return G().secondaryButton},
then:function(c){return _.M("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.M(_.bA,{data:c},{buttonViewModel:_.Cs}))}})),_.M(_.b,{cond:function(){return G().otherOffersInfo},
then:function(c){return _.M("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.M(_.vq,{text:c}))}}),_.M("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.M(_.b,{cond:function(){return G().billingInfo},
then:function(c){return _.M(_.LT,{each:c},function(W){return _.M("div",null,_.M(_.vq,{text:W}))})}}))))},"cc");
SzZ.idomCompat=!0;var nk9=_.Nv(function(x){var G=x.data;var D=_.wc(x.themeOverride,{useDarkTheme:!1});x={};x=_.ym("ytm-lp-headline-section-view-model",(x["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return D().useDarkTheme},x));
return _.M("lp-headline-section-view-model",null,_.M("div",{class:x},_.M("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.M(_.vq,{text:function(){return G().title}})),_.M(_.b,{cond:function(){return G().subtitle},
then:function(K){return _.M("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.M(_.vq,{text:K}))}})))},"dc");var i5i=_.Nv(function(x){var G=x.data;var D=x.themeOverride;var K=_.Eo().resolve(_.P6(_.ib)),z=function(){return K&&K()||(D==null?void 0:D().useDarkTheme)},y=function(){var Q,p;
var V=z()?(Q=G().textBackgroundImage)==null?void 0:Q.imageDark:(p=G().textBackgroundImage)==null?void 0:p.imageLight;return xoE((V==null?void 0:V.sources)||[])},c=function(){var Q,p;
return z()?(Q=G().featureImage)==null?void 0:Q.imageDark:(p=G().featureImage)==null?void 0:p.imageLight},W=function(){return G().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},e=function(){var Q,p;
return z()?(Q=G().logo)==null?void 0:Q.imageDark:(p=G().logo)==null?void 0:p.imageLight};
return _.M("ytm-lp-large-feature-section-view-model",null,_.M("div",{class:function(){var Q=G().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",p=G().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",V=(G().index||0)%2===1,L=D==null?void 0:D().useDarkTheme,r=["yt-lp-large-feature-section-view-model"];Q?r.push("yt-lp-large-feature-section-view-model--music-feature-type"):p?r.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):V||r.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
L&&r.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return r.join(" ")}},_.M("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.M(_.b,{cond:c,
then:function(){return _.M(_.wk,{data:function(){return c()},
alt:function(){var Q,p,V;return(V=(Q=G().featureImage)==null?void 0:(p=Q.accessibilityData)==null?void 0:p.label)!=null?V:""},
contentMode:W})}})),_.M("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var Q;return((Q=y())==null?0:Q.url)?"background-image: url("+_.V$(y().url)+");":""}},_.M("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.M(_.b,{cond:e,
then:function(){return _.M(_.wk,{data:function(){return e()},
alt:function(){var Q,p,V;return(V=(Q=G().logo)==null?void 0:(p=Q.accessibilityData)==null?void 0:p.label)!=null?V:""},
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"})}}),_.M(_.b,{cond:function(){return G().eyebrowText},
then:function(){return _.M("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.M(_.vq,{text:function(){return G().eyebrowText}}))}}),_.M(_.b,{cond:function(){return G().title},
then:function(){return _.M("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.M(_.vq,{text:function(){return G().title}}))}}),_.M(_.b,{cond:function(){return G().subtitles},
then:function(){return _.M("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.M(_.LT,{each:function(){return G().subtitles||[]}},function(Q){return _.M(_.vq,{text:Q})}))}})))))},"ec");
i5i.idomCompat=!0;var gkZ=_.Nv(function(x){return _.M("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.M("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.M(_.Qm,{icon:function(){var G;return(G=x.data())==null?void 0:G.iconType},
className:function(){var G;return((G=x.data())==null?void 0:G.style)==="LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytLpFeatureListItemViewModelFeatureListIconGreen":"ytLpFeatureListItemViewModelFeatureListIconDefault"}}),_.M("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.M(_.vq,{text:function(){var G;
return(G=x.data())==null?void 0:G.text}}))))},"fc");var uy0=_.Nv(function(x){x=_.qv(x,{config:void 0,themeOverride:void 0});var G=x.data,D=x.config,K=x.themeOverride;x={};x=_.ym("ytm-lp-offer-card-option-view-model",(x["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var W;return(W=K())==null?void 0:W.useDarkTheme},x));
var z=_.WH(function(){var W,e;(W=D())==null||(e=W.handleRadioButtonClick)==null||e.call(W,G());return!1}),y=function(){var W;
return(W=D())==null?void 0:W.shouldDisplayRadioButton},c=function(){var W;
return(W=G().featureListItems)!=null?W:[]};
return _.M("ytm-lp-offer-card-option-view-model",null,_.M("div",{class:x,"on:click":_.WH(function(){if(y()){var W,e;(W=D())==null||(e=W.handleRadioButtonClick)==null||e.call(W,G())}return!1})},_.M(_.b,{cond:y,
then:function(){return _.M("div",null,_.M("input",{type:"radio","on:click":z,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var W;return!((W=D())==null||!W.isOptionSelected)}}))}}),_.M("div",null,_.M("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.M(_.vq,{text:function(){return G().eyebrowText}})),_.M("div",{class:"ytm-lp-offer-card-option-view-model__title"},_.M(_.vq,{text:function(){return G().title}})),_.M("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},
_.M(_.vq,{text:function(){return G().subtitle}})),_.M(_.b,{cond:function(){return c().length>0},
then:function(){return _.M("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.M(_.bA,{data:c},{lpFeatureListItemViewModel:gkZ}))}}),_.M("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.M(_.vq,{text:function(){return G().description}})))))},"gc");
uy0.idomCompat=!0;var dwu=_.Nv(function(x){var G=x.data;var D=x.themeOverride;x=_.l(_.ZX(function(){var y,c=(y=G().offerOptions)==null?void 0:y[0];return _.Y(c,lr8)||{}}));
var K=x.next().value,z=x.next().value;x={};return _.M("ytm-lp-offer-card-view-model",null,_.M("div",{class:_.ym("ytm-lp-offer-card-view-model",(x["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(D==null||!D().useDarkTheme)},x))},_.M("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.M(_.b,{cond:function(){return G().titleIconType},
then:function(){return _.M("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.M(_.Qm,{icon:function(){var y;return((y=G().titleIconType)==null?void 0:y.toString())||""}}))}}),_.M("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.M(_.vq,{text:function(){return G().title}})),_.M(_.bA,{data:function(){return G().titleBadge}},{badgeViewModel:function(y){return _.M("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.M(_.v2,{data:y.data}))}})),_.M("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.M(_.bA,{data:function(){return G().offerOptions}},{lpOfferCardOptionViewModel:function(y){var c=y.data;
return _.M(_.xT,null,_.M("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.M(uy0,{data:c,config:function(){var W;return{shouldDisplayRadioButton:(G().offerOptions||[]).length>1,isOptionSelected:c().id===((W=K())==null?void 0:W.id),handleRadioButtonClick:function(e){return void z(e)}}},
themeOverride:D}))}})),_.M("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.M(_.bA,{data:function(){var y;
return(y=K())==null?void 0:y.purchaseButtonOverride}},{buttonViewModel:_.Cs}))))},"hc");
dwu.idomCompat=!0;var w8s=_.Nv(function(x){var G=x.data;var D=x.themeOverride;x={};x=_.ym("ytm-lp-offer-card-section-view-model",(x["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var K;return D==null?void 0:(K=D())==null?void 0:K.useDarkTheme},x));
return _.M("ytm-lp-offer-card-section-view-model",null,_.M("div",{class:x},_.M(_.b,{cond:function(){return G().title!==void 0},
then:function(){return _.M("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.M("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.M(_.vq,{text:function(){return G().title}})),_.M(_.b,{cond:function(){return G().subtitle},
then:function(){return _.M("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.M(_.vq,{text:function(){return G().subtitle}}))}}))}}),_.M("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.M(_.bA,{data:function(){return G().offerCards}},{lpOfferCardViewModel:function(K){return _.M("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.M(dwu,{data:K.data,
themeOverride:D}))}})),_.M(_.b,{cond:function(){return G().footer},
then:function(){return _.M("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.M(_.vq,{text:function(){return G().footer}}))}})))},"ic");var qzi=_.Nv(function(x){var G=x.data;return _.M("lp-offer-table-cell-content-view-model",null,_.M("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.M(_.so,null,_.M(_.B6,{when:function(){return G().title}},function(){return _.M(_.vq,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return G().title}})}),_.M(_.B6,{when:function(){return G().subTitle}},function(){return _.M(_.vq,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return G().subTitle}})}),_.M(_.B6,{when:function(){return G().featureDescription}},function(){return _.M(_.vq,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return G().featureDescription}})}),_.M(_.B6,{when:function(){return G().description}},function(){return _.M(_.vq,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return G().description}})}),_.M(_.B6,{when:function(){return G().iconType}},function(){return _.M("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.M(_.Qm,{icon:function(){return G().iconType.toString()}}))}),_.M(_.B6,{when:function(){return G().purchaseButton}},function(){return _.M(_.bA,{data:function(){return G().purchaseButton}},{buttonViewModel:function(D){return _.M("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.M(_.Cs,{data:D.data}))}})}),_.M(_.B6,{when:function(){return G().note}},function(){return _.M(_.vq,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return G().note}})}),_.M(_.B6,{when:function(){return G().featureDetail}},function(){return _.M(_.vq,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return G().featureDetail}})}),_.M(_.B6,{when:function(){return G().badge}},function(){return _.M(_.bA,{data:function(){return G().badge}},{badgeViewModel:_.v2})}))))},"jc");
qzi.idomCompat=!0;var NZk=_.Nv(function(x){var G=x.data;return _.M("lp-offer-table-cell-view-model",null,_.M("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(G().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;"}}},_.M(_.bA,{data:function(){return G().contents}},{lpOfferTableCellContentViewModel:qzi})))},
"kc");
NZk.idomCompat=!0;var vkE=_.Nv(function(x){var G=x.data;var D=x.lpTableIsFirstRow;var K=x.lpTableIsLastRow;var z=function(){return(D==null?0:D())?"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"},y=function(){return(D==null?0:D())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(K==null?0:K())?"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 _.M("ytm-lp-offer-table-row-view-model",null,_.M("div",{class:"yt-lp-offer-table-row-view-model"},_.M(_.bA,{data:function(){return G().rowHeaderCell}},{lpOfferTableCellViewModel:function(c){return _.M("div",{class:z},_.M(NZk,{data:c.data}))}}),_.M(_.bA,{data:function(){return G().contentCells}},{lpOfferTableCellViewModel:function(c){return _.M("div",{class:y},_.M(NZk,{data:c.data}))}})))},"lc");
vkE.idomCompat=!0;var J57=_.Nv(function(x){var G=x.data;var D=x.themeOverride;var K=_.Eo().resolve(_.P6(_.ib)),z=function(){return _.Y(G().logo,sL7)||{}};
x={};return _.M("ytm-lp-offer-table-section-view-model",null,_.M("div",{class:"yt-lp-offer-table-view-model"},_.M(_.b,{cond:function(){var y,c;return K&&K()||(D==null?0:D().useDarkTheme)?(y=z())==null?void 0:y.imageDark:(c=z())==null?void 0:c.imageLight},
then:function(y){return _.M(_.wk,{data:y,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var c,W,e;return(e=(c=z())==null?void 0:(W=c.accessibilityData)==null?void 0:W.label)!=null?e:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.M("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.M(_.vq,{text:function(){return G().title}})),_.M("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.M(_.vq,{text:function(){return G().subtitle}})),_.M(_.b,{cond:function(){return G().disclaimers},
then:function(y){return _.M("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.M(_.LT,{each:y},function(c){return _.M("div",null,_.M(_.vq,{text:c}))}))}}),_.M("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.M(_.bA,{data:function(){return G().rows}},{lpOfferTableRowViewModel:function(y,c){return _.M(vkE,{data:y.data,
lpTableIsFirstRow:function(){return c()===0},
lpTableIsLastRow:function(){return c()===G().rows.length-1}})}})),_.M("div",{class:_.ym((x["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return G().hasFooterBackground},x))},_.M(_.b,{cond:function(){return G().footer},
then:function(){return _.M("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.M(_.vq,{text:function(){return G().footer}}))}}),_.M(_.b,{cond:function(){return G().footerTitle},
then:function(){return _.M("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.M(_.vq,{text:function(){return G().footerTitle}}))}}),_.M(_.b,{cond:function(){return G().footerDescription},
then:function(){return _.M("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.M(_.vq,{text:function(){return G().footerDescription}}))}}))))},"mc");
J57.idomCompat=!0;var f$9=_.Nv(function(x){var G=x.data;var D=x.themeOverride;var K=_.Eo().resolve(_.P6(_.ib)),z=function(){var W;return D==null?void 0:(W=D())==null?void 0:W.useDarkTheme},y=function(){var W,e;
return K&&K()||z()?(W=G().image)==null?void 0:W.imageDark:(e=G().image)==null?void 0:e.imageLight};
x={};x=_.ym("ytm-lp-small-feature-section-view-model",(x["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=z,x));var c=function(){var W,e,Q;return(Q=(W=G().image)==null?void 0:(e=W.accessibilityData)==null?void 0:e.label)!=null?Q:""};
return _.M("ytm-lp-small-feature-section-view-model",{class:x},_.M(_.b,{cond:function(){return y()&&!TFn},
then:function(){return _.M("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.M(_.wk,{data:function(){return y()},
alt:c,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.M("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.M("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.M(_.b,{cond:function(){return G().title},
then:function(W){return _.M(_.vq,{text:W})}})),_.M("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.M(_.vq,{text:function(){return G().description}}))))},"nc");
f$9.idomCompat=!0;var t3s=_.Nv(function(x){var G=x.data;var D=x.themeOverride;x={};return _.M("ytm-lp-small-feature-section-group-view-model",null,_.M("div",{class:_.ym("ytm-lp-small-feature-section-group-view-model",(x["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(D==null||!D().useDarkTheme)},x))},_.M("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.M(_.bA,{data:function(){return G().smallFeatures}},{lpSmallFeatureSectionViewModel:function(K){return _.M("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.M(f$9,{data:K.data,
themeOverride:D}))}}))))},"oc");
t3s.idomCompat=!0;_.tn(_.Nv(function(x){var G=x.data;var D=function(){return G().forcedTheme==="USER_INTERFACE_THEME_DARK"},K=function(){return G().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},z=function(){var c="",W,e;
var Q=_.Eo().resolve(_.P6(_.ib));Q=D()||(Q==null?0:Q())?(W=G().themedImageViewModel)==null?void 0:W.imageDark:(e=G().themedImageViewModel)==null?void 0:e.imageLight;(W=xoE((Q==null?void 0:Q.sources)||[]))&&W.url&&(c=K()?"background-image: linear-gradient(to bottom, transparent, "+(G().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.V$(W.url)+");":"background-image: url("+_.V$(W.url)+");");return c},y=function(){return{useDarkTheme:D()}};
x={};return _.M("yt-section-group-view-model",null,_.M("div",{class:_.ym("yt-lp-section-group-view-model",(x["yt-lp-section-group-view-model--premium-force-dark-mode"]=D,x["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return G().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},x))},_.M(_.b,{cond:function(){return z().length},
then:function(){var c={};return _.M("div",{class:_.ym("yt-lp-section-group-view-model__bg-image",(c["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=K,c)),style:z})}}),_.M("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.M(_.bA,{data:function(){return G().sections}},{lpFaqSectionViewModel:function(c){return _.M(REk,{data:c.data,
themeOverride:y})},
lpHeaderSectionViewModel:function(c){return _.M(SzZ,{data:c.data,themeOverride:y})},
lpHeadlineSectionViewModel:function(c){return _.M(nk9,{data:c.data,themeOverride:y})},
lpLargeFeatureSectionViewModel:function(c){return _.M(i5i,{data:c.data,themeOverride:y})},
lpOfferCardSectionViewModel:function(c){return _.M(w8s,{data:c.data,themeOverride:y})},
lpComplexOfferCardSectionViewModel:function(c){return _.M(O5u,{data:c.data})},
lpOfferTableSectionViewModel:function(c){return _.M(J57,{data:c.data,themeOverride:y})},
lpSmallFeatureSectionGroupViewModel:function(c){return _.M(t3s,{data:c.data,themeOverride:y})},
lpCouponBannerViewModel:function(c){return _.M(X88,{data:c.data})}}))))},"pc"),"yt-section-group-view-model",{props:{data:_.ik}});var Rdd=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.krs=_.Nv(function(x){function G(){if(Rdd.has(x.data().displayType)){var Q=!K(),p;if((p=x.disableDeselection)==null||!p.call(x)||Q){x.data().selected=Q;p=Object.assign({},c(),{selected:Q});W(p);var V;(V=x.callback)==null||V.call(x,p,Q)}}}
var D=_.qi(),K=function(){var Q,p;return!!(((Q=x.selected)==null?void 0:Q.call(x))!==void 0?(p=x.selected)==null?0:p.call(x):c().selected)},z=_.l(_.ZX(x.data)),y=z.next().value;
z=z.next().value;var c=y,W=z,e=_.lA(UAh,function(){return x.data().chipEntityKey||""});
return _.M("chip-view-model",{class:"ytChipViewModelHost",el:D},_.M(XJk,{data:function(){var Q,p=Object.assign({},c(),{selected:K()}),V=e(),L=(Q=x.disableDeselection)==null?void 0:Q.call(x);a:switch(p.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":Q=1;break a;default:Q=0}return{text:(V==null?void 0:V.text)||p.text,state:p.disabled?1:p.selected?0:2,type:Q,onTap:Syn(p,D,G,L),accessibilityLabel:p.accessibilityLabel||p.text}}}))},"qc");
_.krs.idomCompat={callbacks:{callback:!0}};_.PYZ=_.Nv(function(x){var G=_.lA(Aqf,function(){var c;return(c=x.data())==null?void 0:c.chipBarStateEntityKey}),D=function(){return x.data().disableDeselection},K=_.l(_.ZX(function(){var c;
if(((c=G())==null?void 0:c.selectedIndex)!=void 0)return G().selectedIndex;var W,e;c=_.l(((W=x.data())==null?void 0:(e=W.chips)==null?void 0:e.entries())||[]);for(W=c.next();!W.done;W=c.next()){W=_.l(W.value);e=W.next().value;W=W.next().value;var Q=void 0;if((Q=_.Y(W,_.j1))==null?0:Q.selected)return e}return-1})),z=K.next().value,y=K.next().value;
return _.M("chip-bar-view-model",{class:_.ym("ytChipBarViewModelHost",x.className),role:"tablist"},_.M(_.bA,{data:function(){return x.data().chips}},{chipViewModel:function(c,W){return _.M("div",{class:"ytChipBarViewModelChipWrapper"},_.M(_.krs,{data:c.data,
selected:function(){return W()===z()},
callback:function(e,Q){e=!!Q;Q=W();y(e?Q:-1);var p,V=(p=x.data())==null?void 0:p.chipBarStateEntityKey;V&&e&&_.dc(_.cq("chipBarStateEntity",V,{key:V,selectedIndex:Q}))},
disableDeselection:x.disableDeselection||D}))}}))},"rc");_.tn(_.PYZ,"chip-bar-view-model",{props:{data:_.fz,className:_.fz,disableDeselection:_.fz}});_.Eku=_.Nv(function(x){var G=x.data;x={};return _.M("divider-view-model",{class:_.ym("divider-view-model-wiz",(x["divider-view-model-wiz__inset-thin-padding"]=function(){return G().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},x))},_.M("div",{class:_.ym("divider-view-model-wiz__base-divider",function(){return nwn(G().dividerStyle)}),
style:_.Ms({"background-color":function(){return G().backgroundColor?_.In(G().backgroundColor):void 0}})}))},"sc");
_.Eku.idomCompat=!0;_.tn(_.Eku,"divider-view-model",{props:{data:_.ik}});var sH=new Map,rj=new Map,u9f=0,Y5;var f1E=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],P3f={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var hEh,xKo;hEh=function(x){return function(G){return function(){return String(G())+x}}};
_.L_=hEh("px");xKo=hEh("s");var DKJ=_.Nv(function(x){function G(P){return function(){var k=r().numItemsPerGridRow,cL=P()*k;k=cL+k;var bO,mE;return(mE=(bO=K().contents)==null?void 0:bO.slice(cL,k))!=null?mE:[]}}
var D=_.qv(x,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),K=D.data,z=D.layoutContainerWidth,y=D.shouldUseOwnContainerSize,c=D.marginSettings;D=_.l(_.eO(!0,void 0,"qgr2Je"));var W=D.next().value,e=D.next().value,Q=function(){var P,k=(P=_.Y(K().showMoreButton,_.Ls))==null?void 0:P.trackingParams;k&&_.DO(_.en(),k);e(!1)},p=function(){var P,k=(P=_.Y(K().showLessButton,_.Ls))==null?void 0:P.trackingParams;
k&&_.DO(_.en(),k);e(!0)};
D=_.qi();var V=_.hdf(D,{canHaveZeroSize:!1}),L=function(){var P;return(P=K().contentAspectRatio)!=null?P:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},r=_.V9(function(){var P=_.wl({containerWidth:y()&&V.width()>0?V.width()||z():z(),
sizing:"EXTRA_COMPACT",marginSettings:c(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:P.maxContainerWidth,numItemsPerGridRow:P.numItems,contentPadding:y()?P.margin:P.contentMargin,itemWidth:P.itemWidth,itemMargin:P.gutter/2}},void 0,"pqVdjc"),H=function(){if(K().enableVerticalExpansion){if(W())return O();
var P,k,cL=(k=(P=K().contents)==null?void 0:P.length)!=null?k:0;return Math.ceil(cL/r().numItemsPerGridRow)}return r().numItemsPerGridRow<=2?2:1},O=function(){var P;
return Math.ceil(((P=K().minCollapsedItemCount)!=null?P:1)/r().numItemsPerGridRow)},A=function(){return K().enableVerticalExpansion&&K().showLessButton&&!W()&&H()>O()},g=function(){var P,k;
return K().enableVerticalExpansion&&K().showMoreButton&&W()&&((k=(P=K().contents)==null?void 0:P.length)!=null?k:0)>r().numItemsPerGridRow*O()},u=function(){return!A()},f=function(){return!g()},v={};
return _.M("grid-shelf-view-model",{class:_.ym("ytGridShelfViewModelHost",x.className,(v.ytGridShelfViewModelHostHasBottomButton=function(){return A()||g()},v)),
el:D,style:_.Ms({"margin-left":(0,_.L_)(function(){return r().contentPadding}),
"margin-right":(0,_.L_)(function(){return r().contentPadding})})},_.M(_.b,{cond:function(){return _.Y(K().header,U7h)},
then:function(P){return _.M(_.hF,{data:P,disableHorizontalPadding:!0})}}),_.M("div",null,_.M(_.LT,{each:function(){return Array(H())}},function(P,k){return _.M(G5i,{className:x.className,
items:G(k),responsiveGridShelfLayout:r,contentAspectRatio:L})})),_.M("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.M(_.bA,{data:function(){return K().showMoreButton}},{buttonViewModel:function(P){return _.M("div",{hidden:f},_.M(_.Cs,{data:P.data,
onClick:Q}))}}),_.M(_.bA,{data:function(){return K().showLessButton}},{buttonViewModel:function(P){return _.M("div",{hidden:u},_.M(_.Cs,{data:P.data,
onClick:p}))}})))},"tc");
DKJ.idomCompat=!0;var G5i=_.Nv(function(x){var G=x.items;var D=x.responsiveGridShelfLayout;var K=x.contentAspectRatio;x=x.className;var z=_.qi();gwf(z,function(){a:{var c=z.value;for(var W=G(),e=[],Q=0;Q<W.length;Q++){var p=_.Y(W[Q],MYZ);if(!p||p==null||!p.inlinePlayerData){c=null;break a}var V=c.children.item(Q);if(!V){c=null;break a}e.push({thumbnailElement:V,videoData:p})}c={gridVideoPreviewData:{gridItems:e}}}return c});
var y=(0,_.L_)(function(){return-D().itemMargin});
return _.M("div",{el:z,class:_.ym("ytGridShelfViewModelGridShelfRow",x),style:_.Ms({"margin-left":y,"margin-right":y})},_.M(_.bA,{data:G,replacementWrapper:function(c){return _.M(KNu,{responsiveGridShelfLayout:D},c)}},{shortsLockupViewModel:function(c){return _.M(KNu,{responsiveGridShelfLayout:D},_.M(wQ9,{data:c.data,
aspectRatio:function(){return K()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"uc"),KNu=_.Nv(function(x){return _.M("div",{style:_.Ms({width:(0,_.L_)(function(){return x.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+x.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},x.children)},"vc");
DKJ.idomCompat=!0;_.tn(DKJ,"grid-shelf-view-model",{props:{data:_.ik,layoutContainerWidth:_.ik,shouldUseOwnContainerSize:_.ik,marginSettings:_.ik,className:_.ik}});_.zBu=_.Nv(function(x){var G=_.l(_.eO(!1,void 0,"YYtxR")),D=G.next().value,K=G.next().value;G={};return _.M("yt-alert-banner-view-model",{class:_.ym("ytAlertBannerViewModelHost",x.className,function(){var z;a:switch((z=x.data())==null?void 0:z.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":z="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":z="ytAlertBannerViewModelWarning";break a;default:z="ytAlertBannerViewModelInformational"}return z},(G.ytAlertBannerViewModelDismissed=
D,G.ytAlertBannerViewModelFullbleed=x.fullbleed,G.ytAlertBannerViewModelNarrow=x.narrow,G.ytAlertBannerViewModelIsInRichGrid=x.isInRichGrid,G))},_.M(_.b,{cond:function(){var z;
return!((z=x.data())==null?0:z.hideIcon)},
then:function(){return _.M("div",{class:"ytAlertBannerViewModelIcon"},_.M(_.Qm,{icon:function(){return"info_circle"}}))}}),_.M("div",{class:"ytAlertBannerViewModelOuterContainer"},_.M("div",{class:"ytAlertBannerViewModelContainer"},_.M("div",{class:"ytAlertBannerViewModelContent"},_.M("div",{class:"ytAlertBannerViewModelHeading"},_.M(_.vq,{text:function(){var z;
return(z=x.data())==null?void 0:z.heading}})),_.M("div",{class:"ytAlertBannerViewModelBody"},_.M(_.vq,{text:function(){var z;
return(z=x.data())==null?void 0:z.body}})))),_.M(_.bA,{data:function(){var z;
return(z=x.data())==null?void 0:z.actionButton}},{buttonViewModel:function(z){return _.M(_.Cs,{data:z.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.M(_.bA,{data:function(){var z;
return(z=x.data())==null?void 0:z.dismissButton}},{buttonViewModel:function(z){return _.M(_.Cs,{data:z.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var y;((y=x.data())==null?0:y.disableLocalDismissBehavior)||K(!0)}})}}))},"wc");_.tn(_.zBu,"yt-alert-banner-view-model",{props:{data:_.ik,fullbleed:_.ik,narrow:_.ik,isInRichGrid:_.ik,className:_.ik}});var xQD;xQD=_.MF({chipViewModel:_.krs,buttonViewModel:_.Cs});_.axJ=_.TY(GoP,{callbacks:{callback:!0}});_.E9(GoP);_.tn(_.axJ,"chips-shelf-view-model",{props:{data:_.ik,callback:_.fz,enableSingleChipSelection:_.ik,disableChipsScrollAnimation:_.ik}});var oN0=_.Nv(function(x){x=_.qv(x,{disabled:!1});var G=x.active,D=x.disabled;x={};x=_.ym("ytSwitchShapeTrack",(x.ytSwitchShapeTrackActive=function(){return G()},x.ytSwitchShapeTrackDisabled=function(){return D()},x));
var K={};K=_.ym("ytSwitchShapeKnob",(K.ytSwitchShapeKnobActive=function(){return G()},K));
return _.M("switch-shape",{class:"ytSwitchShapeHost"},_.M("div",{class:x}),_.M("div",{class:K}))},"xc");var yLo=_.Nv(function(x){var G=_.qv(x,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),D=G.data;x=G.className;var K=G.handleOnTapEventInParent,z=G.parentActive;G=_.l(_.ZX(function(){var V;return(V=z())!=null?V:D().switchedOnByDefault||!1}));
var y=G.next().value,c=G.next().value,W=function(){return D().isDisabled},e=_.qi();
G=_.WH(function(V){return V.key==="Enter"?(V.preventDefault(),e.value.click(),!1):!0});
var Q=_.WH(function(V){if(D().handleOnTapEventInParent||K())return!0;if(W())return!1;K2f(D(),y(),V);c(!y());return!1}),p={};
p=_.ym("ytSwitchButtonViewModelButton",(p.ytSwitchButtonViewModelTappable=function(){return!W()},p));
return _.M("switch-button-view-model",{class:_.ym("ytSwitchButtonViewModelHost",x)},_.M("button",{el:e,class:p,"on:click":Q,"on:keydown":G,"aria-label":function(){return y()?D().a11yLabelSwitchedOn:D().a11yLabelSwitchedOff},
"aria-checked":y,"aria-disabled":W,role:"switch"},_.M(oN0,{active:y,disabled:W})))},"yc");var cL0=_.Nv(function(x){var G=_.qv(x,{checked:!1});x=G.name;var D=G.onChange,K=G.onClick,z=G.checked,y=G.labelRenderable,c=G.hasLeadingLabel,W=G.labelClass,e=G.isCompact,Q=G.selectElementClass;G=G.disableHorizontalPadding;var p="checkbox"+_.st(_.bE),V=_.WH(function(H){K==null||K(H);return!1}),L=_.WH(function(H){D==null||D(H);
return!1}),r={};
return _.M("checkbox-shape",null,_.M("label",{class:_.ym("checkbox-shape-wiz",W,(r["checkbox-shape-wiz--compact"]=e,r["checkbox-shape-wiz--disable-horizontal-padding"]=G,r))},_.M("input",{class:"checkbox-shape-wiz__input",id:p,checked:z,name:x,type:"checkbox","prop:checked":z,"on:change":L,"on:click":V}),_.M(_.b,{cond:function(){return!(c==null?0:c())},
then:function(){return _.M(lxJ,{isLeading:!0,selectElementClass:Q})}}),_.M(_.b,{cond:function(){return!!y},
then:function(){return _.M("div",{class:"checkbox-shape-wiz__label"},y==null?void 0:y())}}),_.M(_.b,{cond:c,
then:function(){return _.M(lxJ,{isLeading:!1,selectElementClass:Q})}})))},"zc");
cL0.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var lxJ=_.Nv(function(x){var G=x.selectElementClass;x={};return _.M("div",{class:_.ym("checkbox-shape-wiz__checkbox",G,(x["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(G==null?0:G())},x)),
"aria-hidden":"true"},_.M(_.Qm,{icon:_.B("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.M(_.Qm,{icon:_.B("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Ac");_.BB=_.Nv(function(x){var G=x.name;var D=x.onChange;var K=x.onClick;var z=x.checked;var y=x.labelRenderable;var c=x.useCheckIcon;var W=x.hasLeadingLabel;var e=x.labelClass;var Q=x.isCompact;var p=x.selectElementClass;var V=x.ariaLabel;x=x.className;var L="radio"+_.st(_.bE),r=_.qi(),H=_.WH(function(f){r.value.checked=!(z==null||!z());D==null||D(f);return!1}),O=_.WH(function(f){K==null||K(f);
return!1}),A=_.l(_.eO(!1,void 0,"v5AMrb")),g=A.next().value,u=A.next().value;
A={};return _.M("radio-shape",{class:_.ym("radio-shape-wiz",x)},_.M("input",{el:r,class:"radio-shape-wiz__input",id:L,"prop:checked":z,name:G,type:"radio","on:change":H,"on:click":O,"aria-label":V,"on:focusin":_.WH(function(){var f;((f=_.Eo().resolve(_.P6(_.Ee)))==null?0:f.isKeyBoardInUse())&&u(!0)}),
"on:focusout":_.WH(function(){u(!1)})}),_.M("label",{class:_.ym("radio-shape-wiz__label-container",e,(A["radio-shape-wiz--compact"]=Q,A["radio-shape-wiz__label-container--keyboard-focused"]=g,A)),
for:L},_.M(_.b,{cond:function(){return!(W==null?0:W())},
then:function(){return _.M(Tw0,{checked:z,useCheckIcon:c,isLeading:!0,selectElementClass:p})}}),_.M(_.b,{cond:function(){return!!y},
then:function(){return _.M("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(V==null?0:V())?"true":"false"}},y==null?void 0:y())}}),_.M(_.b,{cond:W,
then:function(){return _.M(Tw0,{checked:z,useCheckIcon:c,isLeading:!1,selectElementClass:p})}})))},"Bc");
_.BB.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var Tw0=_.Nv(function(x){var G=x.useCheckIcon;var D=x.selectElementClass;x=function(){return(G==null?0:G())?"CHECK":_.B("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var K={};return _.M("div",{class:_.ym("radio-shape-wiz__radio",D,(K["radio-shape-wiz__radio--check-icon"]=G,K["radio-shape-wiz__radio--radio-default-style"]=function(){return!(D==null?0:D())},K)),
"aria-hidden":"true"},_.M(_.Qm,{icon:x}),_.M(_.Qm,{icon:x,active:function(){return!(G==null?0:G())}}))},"Cc");_.rJ=_.Nv(function(x){function G(){var Fi;((Fi=_.Eo().resolve(_.P6(_.Ee)))==null?0:Fi.isKeyBoardInUse())&&n$(!0)}
function D(){n$(!1)}
var K=x.data;var z=x.isMenuItem;var y=x.isCompact;var c=x.onTap;var W=x.trailingAccessory;var e=x.hideSelectionTextChevron;var Q=x.disabled;var p=x.inPopup;var V=x.disableHorizontalPadding;x=x.isOverlay;var L=_.B("apply_button_role_to_list_item"),r=_.F8(function(Fi){a:{var pf=K();if((pf==null?0:pf.entitySelectorType)&&(pf==null?0:pf.entityKey))switch(pf.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":Fi=_.wvh(Fi,pf.entityKey);Fi=Fi==null?void 0:
Fi.value;pf=!1;Fi==="CAPTIONS_UNAVAILABLE"&&(pf=!0,Fi="");Fi=Object.assign({},!!Fi&&{selectionText:{content:Fi}},{isSelected:!!Fi},!!Fi&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:pf});break a;default:Fi={}}else Fi={}}return Fi}),H=function(){return _.B("enable_web_shorts_captions_language_command")?Object.assign({},K(),r()):K()},O=function(){return!(H().isSelected===void 0||!H().selectionStyle||H().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
A=function(){return(_.ns(H().rendererContext)||c)&&!O()},g=function(){return _.ns(H().rendererContext)||O()},u={};
x=_.ym("yt-list-item-view-model-wiz",(u["yt-list-item-view-model-wiz--is-overlay"]=x,u["yt-list-item-view-model-wiz--keyboard-focused"]=function(){return!L&&wn()},u));
u={};var f=_.ym("yt-list-item-view-model-wiz__label",(u["yt-list-item-view-model-wiz__container"]=function(){return!O()},u["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!H().isDisabled||!(Q==null||!Q())},u["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!H().subtitle},u["yt-list-item-view-model-wiz__container--compact"]=y,u["yt-list-item-view-model-wiz__container--tappable"]=A,u["yt-list-item-view-model-wiz__container--in-popup"]=p,u["yt-list-item-view-model-wiz--keyboard-focused"]=
function(){return L&&wn()},u["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(V==null?void 0:V())&&!O()},u));
u={};var v=_.ym("yt-list-item-view-model-wiz__container",(u["yt-list-item-view-model-wiz__container--tappable"]=g,u["yt-list-item-view-model-wiz__container--compact"]=y,u["yt-list-item-view-model-wiz__container--in-popup"]=p,u["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(V==null?void 0:V())&&O()},u)),P=function(){return H().leadingImage||H().leadingAccessory},k=_.ym("yt-list-item-view-model-wiz__image-container",function(){return P()?"yt-list-item-view-model-wiz__trailing":
"yt-list-item-view-model-wiz__leading"});
p=_.qi();var cL=_.qi(),bO=L?cL:p,mE=_.Nv(function(){return _.M(_.b,{cond:function(){return L},
then:function(){return _.M("div",{class:f,el:cL,role:function(){return g()||A()?"button":void 0},
tabindex:function(){return c||A()?0:void 0},
"on:keydown":$C,"on:click":jf},_.M(WNZ,{data:H,hideSelectionTextChevron:e,trailingAccessory:W}))},
else:function(){return _.M("div",{class:f,el:cL},_.M(WNZ,{data:H,hideSelectionTextChevron:e,trailingAccessory:W}))}})},"Dc");
mE.idomCompat=!0;_.iA(p,function(){return H().rendererContext});
var jf=_.WH(function(Fi){return void(c==null?void 0:c(Fi))}),$C=_.wW3(),OD=_.l(_.eO(!1,void 0,"inP9Dc"));
u=OD.next().value;OD=OD.next().value;var wn=u,n$=OD;_.FQ(function(){A()&&(bO.value.addEventListener("focusin",G),bO.value.addEventListener("focusout",D));_.Fq(function(){bO.value&&A()&&(bO.value.removeEventListener("focusin",G),bO.value.removeEventListener("focusout",D))})});
u=_.WH(function(){return!0});
return _.M("yt-list-item-view-model",{el:p,class:x,role:function(){return(z==null?0:z())?"menuitem":"listitem"},
tabindex:function(){var Fi=A();Fi=L?void 0:c||Fi?0:void 0;return Fi},
"on:keydown":L?u:$C,"on:click":L?u:jf},_.M(_.b,{cond:O,then:function(){return _.M(_.so,null,_.M(_.B6,{when:function(){return H().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.M(cL0,{labelRenderable:function(){return _.M(mE,null)},
isCompact:y,checked:function(){return H().isSelected},
hasLeadingLabel:function(){return!!P()},
labelClass:v,selectElementClass:k,disableHorizontalPadding:V})}),_.M(_.B6,{when:function(){return H().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.M(_.BB,{labelRenderable:function(){return _.M(mE,null)},
isCompact:y,checked:function(){return H().isSelected},
hasLeadingLabel:function(){return!!P()},
labelClass:v,selectElementClass:k})}),_.M(_.B6,{when:function(){return H().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.M(_.BB,{labelRenderable:function(){return _.M(mE,null)},
isCompact:y,checked:function(){return H().isSelected},
hasLeadingLabel:function(){return!!P()},
labelClass:v,selectElementClass:k,useCheckIcon:!0})}),_.M(_.rT,null,function(){return _.M(mE,null)}))},
else:function(){return _.M(mE,null)}}))},"Ec");
_.rJ.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var WNZ=_.Nv(function(x){var G=x.data;var D=x.hideSelectionTextChevron;var K=x.trailingAccessory;return _.M(_.xT,null,_.M(eBu,{data:G,isLeading:!0,hideSelectionTextChevron:function(){return!(D==null||!D())}}),_.M(ZIs,{data:G}),_.M(_.b,{cond:function(){return!!K},
then:function(){return _.M("div",{class:"yt-list-item-view-model-wiz__trailing"},K==null?void 0:K())},
else:function(){return _.M(eBu,{data:G,isLeading:!1,hideSelectionTextChevron:function(){return!(D==null||!D())}})}}))},"Fc"),eBu=_.Nv(function(x){var G=x.data;
var D=x.isLeading;var K=x.hideSelectionTextChevron;var z=_.ym("yt-list-item-view-model-wiz__button-container");x={};var y=_.ym("yt-list-item-view-model-wiz__image-container",(x["yt-list-item-view-model-wiz__leading"]=D,x["yt-list-item-view-model-wiz__trailing"]=function(){return!D()},x)),c=function(){return D()?G().leadingImage:G().trailingImage},W=_.ym("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
x={};var e=_.ym("yt-list-item-view-model-wiz__accessory",(x["yt-list-item-view-model-wiz__leading"]=D,x["yt-list-item-view-model-wiz__trailing"]=function(){return!D()},x)),Q=function(){a:switch(G().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var p="expand_more";
break a;default:p="chevron_right"}return p};
return _.M(_.b,{cond:function(){var p=G(),V=D();return!!(V&&(p.leadingImage||p.leadingAccessory)||!V&&(p.trailingImage||p.trailingButton||p.trailingButtons||p.selectionText))},
then:function(){return _.M(_.xT,null,_.M(_.b,{cond:c,then:function(p){return _.M("div",{class:y,"aria-hidden":"true"},_.M(_.wk,{data:p,alt:"",preserveWidth:!0,preserveHeight:!0,className:W}))}}),_.M(_.b,{cond:function(){return D()&&G().leadingAccessory},
then:function(){return _.M("div",{class:y},_.M(_.bA,{data:function(){return G().leadingAccessory}},{avatarViewModel:function(p){return _.M(_.Lj,{data:p.data,
avatarButtonCustomClassName:W})},
collectionThumbnailViewModel:UNi}))}}),_.M(_.b,{cond:function(){return!D()&&G().trailingButton},
then:function(){return _.M("div",{class:z},_.M(_.bA,{data:function(){return G().trailingButton}},{buttonViewModel:function(p){return _.M(_.Cs,{data:p.data,
className:e})}}))}}),_.M(_.b,{cond:function(){var p;
return!D()&&((p=G().trailingButtons)==null?void 0:p.buttons)},
then:function(){return _.M("div",{class:z},_.M(_.bA,{data:function(){var p;return(p=G().trailingButtons)==null?void 0:p.buttons}},{buttonViewModel:function(p){return _.M(_.Cs,{data:p.data,
className:e})},
accountLinkButtonViewModel:function(p){return _.M($N3,{data:p.data,className:function(){return e()||""}})},
switchButtonViewModel:function(p){return _.M(yLo,{data:p.data,className:e})},
subscribeButtonViewModel:function(p){return _.M(_.Bt,{data:p.data,isOverlay:!1,animateWidth:!1,className:e})},
toggleButtonViewModel:function(p){return _.M(_.rl,{data:p.data,className:e})}}))}}),_.M(_.b,{cond:function(){return!D()&&!!G().selectionText},
then:function(){return _.M(_.xT,null,_.M(_.vq,{text:function(){return G().selectionText},
className:_.ym("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.M(_.b,{cond:function(){return!K()},
then:function(){return _.M(_.Qm,{icon:Q,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Gc"),ZIs=_.Nv(function(x){var G=x.data;
return _.M(_.b,{cond:function(){return G().title||G().subtitle},
then:function(){return _.M("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.M("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.M(_.b,{cond:function(){return G().title},
then:function(D){return _.M(_.vq,{text:D,className:"yt-list-item-view-model-wiz__title"})}})),_.M(_.b,{cond:function(){return G().subtitle},
then:function(D){return _.M(_.vq,{text:D,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Hc");_.MoZ=_.Nv(function(x){var G=x.data;var D=x.onTap;var K=x.onSwitch;var z=x.overrideDisabled;x=x.disableHorizontalPadding;var y=_.l(_.ZX(function(){var V;return((V=a3D(p()))==null?void 0:V.switchedOnByDefault)||!1})),c=y.next().value,W=y.next().value;
y=_.l(_.eO(!1,void 0,"ZHBkbb"));var e=y.next().value,Q=y.next().value,p=function(){var V;if(!(V=G().switchButton)){var L=G();V=z==null?void 0:z();L={switchOnCommand:L.switchOnCommand,switchOffCommand:L.switchOffCommand,switchedOnByDefault:L.switchedOnByDefault,isDisabled:L.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:L.a11yLabelSwitchedOn,a11yLabelSwitchedOff:L.a11yLabelSwitchedOff};V!==void 0&&(L.isDisabled=V);V={switchButtonViewModel:L}}return V};
return _.M("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.M(_.rJ,{data:function(){return{title:G().title,subtitle:G().attributedSubtitle,leadingImage:G().leadingImage,leadingAccessory:G().leadingAccessory,isDisabled:G().isDisabled}},
onTap:function(V){var L=a3D(p());!L||L.isDisabled||G().ignoreTapUntilCommandCompletes&&e()||(D==null||D(V),K2f(L,c(),V,G().ignoreTapUntilCommandCompletes,Q),W(!c()),K==null||K(c()))},
trailingAccessory:function(){return _.M(_.bA,{data:p},{switchButtonViewModel:function(V){return _.M(yLo,{data:V.data,parentActive:c,handleOnTapEventInParent:!!D})}})},
disableHorizontalPadding:x}))},"Ic");var Q3o=_.Wg("DOWNLOAD",{},"Download"),p4k=_.Wg("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),Voh=_.Wg("RETRY",{},"Retry"),bIZ=_.Wg("PAUSE_DOWNLOADING",{},"Pause downloading"),LNs=_.Wg("RESUME_DOWNLOAD",{},"Resume download"),oxh={text:Q3o,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},mI={text:p4k,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},cPd={text:Voh,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
yP3={text:bIZ,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},l3C={text:LNs,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var Bws=_.Nv(function(x){var G=function(){var W=x.data();W=_.SU(W.rendererContext);var e;return(e=_.Y(W,_.zx))==null?void 0:e.videoId},D=_.F8(function(W){var e=G(),Q=eI$(x.data());
return e?_.C3(W,e):Q?_.I_(W,Q):"TRANSFER_STATE_UNKNOWN"}),K=_.lA(_.HBD,G),z=_.F8(function(W){return _.LPL(W,G(),eI$(x.data()))}),y=function(){return W2D(D(),K(),_.SU(x.data().rendererContext),!!eI$(x.data()))},c=function(){return z()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.M("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:c},_.M(_.b,{cond:function(){return!c()},
then:function(){return _.M(_.b,{cond:y,then:function(W){return _.M(_.LT,{each:W},function(e){return _.M(_.rJ,{data:e,isCompact:x.isCompact,isMenuItem:x.isMenuItem,inPopup:x.inPopup,disableHorizontalPadding:x.disableHorizontalPadding})})}})}}))},"Jc");
Bws.idomCompat=!0;_.rLE=_.Nv(function(x){var G=x.data;var D=x.isCompact;var K=x.hideSelectionTextChevron;var z=x.inPopup;var y=x.isOverlay;var c=x.disableHorizontalPadding;var W=function(){return ZKL(G())&&(z==null?void 0:z())};
x={};return _.M("yt-list-view-model",{class:_.ym("yt-list-view-model-wiz",(x["yt-list-view-model-wiz--kaios-spat-nav"]=TFn&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",x)),role:function(){return W()?"menu":"list"},
style:_.Ms({"max-height":function(){var e,Q=(e=G())==null?void 0:e.visibleElementCount;if(Q)return Q2Q(G())?(Q+.5)*48+"px":(Q+.5)*40+"px"}})},_.M(_.bA,{data:function(){return G().listItems}},{listItemViewModel:function(e){return _.M(_.rJ,{data:e.data,
isMenuItem:W,isCompact:D,hideSelectionTextChevron:K,inPopup:z,isOverlay:y,disableHorizontalPadding:c})},
downloadListItemViewModel:function(e){return _.M(Bws,{data:e.data,isMenuItem:W,isCompact:D,inPopup:z,disableHorizontalPadding:c})},
switchListItemViewModel:function(e){return _.M(_.MoZ,{data:e.data,disableHorizontalPadding:c})}}))},"Kc");
_.rLE.idomCompat=!0;var s3u=_.Nv(function(x){var G=x.data;var D=x.isOverlay;x={};return _.M("yt-course-perks-view-model",{class:_.ym("ytwCoursePerksViewModelHost",(x.ytwCoursePerksViewModelHostOverlay=D,x))},_.M("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.M(_.vq,{text:function(){return G().title}})),_.M("div",null,_.M(_.b,{cond:function(){return G().perks},
then:function(K){return _.M(_.rLE,{data:function(){return{listItems:K()}},
isCompact:!0,isOverlay:D})}})))},"Lc");_.tn(s3u,"yt-course-perks-view-model",{props:{data:_.fz,isOverlay:_.fz}});_.tn(_.Nv(function(x){var G=x.data;return _.M("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.M("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.M(_.vq,{text:function(){return G().title}})),_.M("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.M(_.vq,{text:function(){return G().progressSummary}})),_.M("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.M("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.Ms({width:function(){return G().progressPercentage*100+"%"}})})))},"Mc"),"yt-course-progress-view-model",{props:{data:_.ik}});var Y0Z=_.Nv(function(x){var G={};return _.M("yt-progress-view-model",{class:_.ym("ytwProgressViewModelHost",(G.ytwProgressViewModelHostOverlay=_.wc(x.isOverlay,!1),G))},_.M(_.b,{cond:function(){return x.data().progressSummary},
then:function(D){return _.M("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.M(_.vq,{text:D}))}}),_.M("div",{class:"ytwProgressViewModelHostProgressContainer"},_.M(_.b,{cond:function(){return x.data().leadingLabel},
then:function(D){return _.M("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.M(_.vq,{text:D}))}}),_.M("div",{class:"ytwProgressViewModelHostProgressBar"},_.M("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(x.data().progressPercentage||0)*100+"%"}}))))},"Nc");var s8=_.Nv(function(x){var G=x.starNumber;var D=x.data;var K=function(){var z;return((z=D())==null?void 0:z.rating)||0};
return _.M(_.b,{cond:function(){return G()},
then:function(z){return _.M(_.so,null,_.M(_.B6,{when:function(){return K()>=z()-.25}},function(){return _.M("div",{class:"ytStarRatingViewModelHostStar"},_.M(_.Qm,{icon:"STAR_FILLED"}))}),_.M(_.B6,{when:function(){return K()>=z()-.75}},function(){return _.M("div",{class:"ytStarRatingViewModelHostStar"},_.M(_.Qm,{icon:"STAR_HALF"}))}),_.M(_.rT,null,function(){return _.M("div",{class:"ytStarRatingViewModelHostStar"},_.M(_.Qm,{icon:"STAR_BORDER"}))}))}})},"Oc"),mKZ=_.Nv(function(x){x=x.data;
return _.M("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.M(s8,{starNumber:1,data:x}),_.M(s8,{starNumber:2,data:x}),_.M(s8,{starNumber:3,data:x}),_.M(s8,{starNumber:4,data:x}),_.M(s8,{starNumber:5,data:x}))},"Pc");_.tn(_.Nv(function(x){var G=_.qv(x,{}).data;return _.M("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.M("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.M(_.vq,{text:function(){var D;return(D=G())==null?void 0:D.title}})),_.M("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.M(_.b,{cond:function(){return G().starProgressViewModels},
then:function(D){return _.M("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.M(_.bA,{data:D},{progressViewModel:Y0Z}))}}),_.M("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.M("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.M(_.vq,{text:function(){var D;
return(D=G())==null?void 0:D.averageRatingLabel}})),_.M(_.b,{cond:function(){return G().zeroStateText},
then:function(D){return _.M("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.M(_.vq,{text:D}))}}),_.M(_.b,{cond:function(){return G().starRatingViewModel},
then:function(D){return _.M("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.M(_.bA,{data:D},{starRatingViewModel:mKZ}))}}),_.M("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.M(_.vq,{text:function(){var D;
return(D=G())==null?void 0:D.totalRatingsCountLabel}})))))},"Qc"),"yt-course-ratings-view-model",{props:{data:_.fz}});var HIh;HIh={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"}};_.$K8=_.Nv(function(x){var G=_.qi(),D=_.Dw();_.H6(function(){requestAnimationFrame(function(){var z;(z=D.lottieEl)==null||z.addEventListener("DOMLoaded",function(){var y;(y=x.onLottieLoaded)==null||y.call(x)})});
var K=x.data().browseEndpoint;K&&_.UI(K)});
return _.M("yt-learning-journey-loader-view-model",{class:_.ym("learningJourneyLoaderViewModelHost",x.className),"data-target-id":function(){var K;return((K=x.data)==null?void 0:K.call(x).targetId)||""},
el:G},_.M(_.l_,{className:_.ym("learningJourneyLoaderViewModelLoader",x.className),animationName:function(){return HIh.animationConfig.name},
data:HIh,animationRef:D}))},"Rc");_.tn(_.$K8,"yt-learning-journey-loader-view-model",{props:{data:_.ik,className:_.fz,onLottieLoaded:_.fz}});_.FNq=_.Nv(function(x){var G=function(){return x.data()},D=_.l(_.eO(-1,void 0,"vug48")),K=D.next().value,z=D.next().value,y=function(p){return K()===p},c=function(p){return G().correctAnswerIndex===p},W=function(){return K()!==-1},e=function(){return K()===G().correctAnswerIndex},Q=_.WH(function(){z(-1);
return!1});
return _.M("learning-journey-quiz-view-model",{class:_.ym("learningJourneyQuizViewModelHost",x.className),style:_.Ms({background:function(){return FD(Hb(G())).backgroundColor}})},_.M(_.b,{cond:function(){return!!G().video},
then:function(){return _.M("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.Ms({background:function(){return FD(Hb(G())).videoBackgroundColor}})},_.M(_.bA,{data:function(){return G().video}},{lockupViewModel:function(p){return _.M(_.kc,{data:p.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.M("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.M("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.M("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.M("div",{class:"learningJourneyQuizViewModelHostQuizHeader"},_.M("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
style:_.Ms({color:function(){return FD(Hb(G())).primaryTextColor}}),
"client-ve-type":function(){var p=W(),V=e();return p?V?264685:264684:264683}},_.M(_.vq,{text:function(){var p=G(),V=W(),L=e();
return V?L?p.successTitle:p.failureTitle:p.questionHeaderText}})),_.M("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.M(_.b,{cond:W,
then:function(){return _.M("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover","on:click":Q,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.M("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.Ms({fill:function(){return FD(Hb(G())).primaryTextColor}})},_.M("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"})))}}),
_.M(_.bA,{data:function(){return G().overflowMenu}},{buttonViewModel:function(p){return _.M(_.Cs,{data:p.data})}}))),_.M("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.Ms({color:function(){return FD(Hb(G())).secondaryTextColor}}),
"client-ve-type":264688},_.M(_.vq,{text:function(){var p=G();return W()?p.explanationText:p.questionSubheaderText}}))),_.M("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.M(_.LT,{each:function(){return G().optionsData||[]}},function(p,V){var L={};
return _.M("div",{class:_.ym("learningJourneyQuizViewModelHostQuizOptions",(L.learningJourneyQuizViewModelHostQuizHover=function(){return!W()},L.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return e()&&y(V())},L.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!e()&&y(V())},L.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return W()&&!y(V())},L)),
"on:click":_.WH(function(){if(W())return!1;z(V());return!1}),
style:_.Ms({background:function(){return W()&&y(V())?"":FD(Hb(G())).optionColor}}),
role:"button","aria-disabled":W,"tab-index":"0","client-ve-type":264686},_.M(_.b,{cond:W,then:function(){return _.M("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var r=V();return c(r)?"0 0 24 24":"0 -960 960 960"},
class:"learningJourneyQuizViewModelHostQuizOptionIcon",style:_.Ms({fill:function(){return FD(Hb(G())).primaryTextColor}})},_.M("path",{d:function(){var r=V();
return c(r)?"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"}}))}}),_.M(_.vq,{text:p.optionText}))})))))},"Sc");
_.FNq.idomCompat=!0;_.tn(_.FNq,"learning-journey-quiz-view-model",{props:{data:_.ik,className:_.ik}});var C6Z=_.Nv(function(x){var G=_.qi();_.iA(G,function(){return x.data().rendererContext});
var D=_.qv(x,{palette:void 0,isLastItem:!1}),K=D.palette,z=D.isLastItem,y=function(){return x.data().isHighlighted},c=function(){var Q;
return pJd((Q=K())==null?void 0:Q.iconDisabledColor)},W=function(){var Q;
return pJd((Q=K())==null?void 0:Q.primaryTitleColor)},e=function(){var Q;
return pJd((Q=K())==null?void 0:Q.secondaryTitleColor)};
D={};return _.M("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:G},_.M(_.bA,{data:function(){return x.data().thumbnail}},{thumbnailViewModel:_.dR}),_.M("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.M("div",{class:_.ym("ytMacroMarkerListItemViewModelTimeDescription",(D.ytMacroMarkerListItemViewModelHighlighted=y,D)),
style:_.Ms({"background-color":function(){return y()?W():c()},
color:function(){return y()?"":e()}})},_.M(_.vq,{text:function(){return x.data().timestamp}})),_.M("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.Ms({"background-color":function(){return z()?"transparent":c()}})}),_.M("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(y()?W():e())}},_.M(_.vq,{text:function(){return x.data().title}}))))},"Tc");_.Yj=_.Nv(function(x){function G(cs){g("transform:translateX("+(_.Am("HTML_DIR")==="rtl"?"":"-")+cs+"px)")}
function D(cs){return Math.min(Math.max(cs,0),A()-k())}
function K(){var cs=v()+jf();return z()?(Math.round(k()/cs)||1)*cs:0}
var z=function(){return x.data().items||[]},y=function(){return x.data().previousButton},c=function(){return x.data().nextButton},W=function(){var cs,G8;
return(G8=(cs=x.disableArrows)==null?void 0:cs.call(x))!=null?G8:!1},e=function(){var cs;
return!((cs=x.forceNarrowLayout)==null||!cs.call(x))},Q=_.qi(),p=_.qi(),V=_.l(_.eO(0,void 0,"D4aXB")),L=V.next().value,r=V.next().value;
V=_.l(_.eO(0,void 0,"GQlHRc"));var H=V.next().value,O=V.next().value,A=H;H=_.l(_.eO("",void 0,"Bw1Yz"));V=H.next().value;var g=H.next().value;H=_.l(_.eO(0,void 0,"buTjVb"));var u=H.next().value,f=H.next().value,v=u;H=_.l(_.eO(0,void 0,"GIAWN"));u=H.next().value;var P=H.next().value,k=u;H=_.l(_.eO(!1,void 0,"cenvwc"));var cL=H.next().value,bO=H.next().value;H=_.l(_.eO(0,void 0,"LSY2Ub"));u=H.next().value;var mE=H.next().value,jf=u;H=_.l(_.eO(0,void 0,"oS46jc"));var $C=H.next().value,OD=H.next().value,
wn=function(){var cs,G8=(cs=x.data())==null?void 0:cs.responsiveContainerConfiguration,T7,Wd;return G8?JAD(G8==null?void 0:G8.responsiveSize):(Wd=(T7=x.sizing)==null?void 0:T7.call(x))!=null?Wd:"STANDARD"};
H=_.V9(function(){return!W()&&L()>0},void 0,"KINjJe");
u=_.V9(function(){return!W()&&L()<A()-k()},void 0,"Ea00Ib");
var n$=function(){r(D(L()-K()));G(L())},Fi=function(){r(D(L()+K()));
G(L())},pf=function(){Q.value!==null&&M0()},UE;
_.FQ(function(){M0();window.ResizeObserver?(UE=new ResizeObserver(_.TE(pf,0)),UE.observe(Q.value)):window.addEventListener("resize",pf)});
_.Fq(function(){if(window.ResizeObserver){var cs;(cs=UE)==null||cs.disconnect()}else window.removeEventListener("resize",pf)});
var M0=function(){var cs=Q.value.clientWidth,G8=x.includeMargin!==void 0?x.includeMargin():!1,T7;var Wd=x.hasPeek!==void 0?x.hasPeek():!((T7=x.data())==null||!T7.hasPeek);cs=_.wl({containerWidth:cs,hasPeek:Wd,sizing:wn(),marginSettings:G8?e()?4:1:0});mE(cs.gutter);OD(cs.margin);f(cs.itemWidth);bO(cs.maxContainerWidth<528||e());P(cs.maxContainerWidth);z()&&O((cs.itemWidth+cs.gutter)*z().length-cs.gutter)};
return _.M("horizontal-shelf-view-model",{class:_.ym("ytwHorizontalShelfViewModelHost",x.className),el:Q},_.M(_.b,{cond:function(){var cs;return x.data().header&&!((cs=x.horizontalShelfExperiments)==null?0:cs.call(x).hideHeader)},
then:function(){return _.M("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.Ms({width:function(){return k()+"px"},
padding:function(){return"0 "+$C()+"px"}})},_.M(_.bA,{data:function(){return x.data().header}},{sectionHeaderViewModel:function(cs){return _.M(_.hF,{data:cs.data,
disableHorizontalPadding:!0,forceSmallLayout:cL,useResponsiveLayout:!0})}}))}}),_.M("div",{class:"ytwHorizontalShelfViewModelOuterContainer",
style:_.Ms({"margin-top":function(){var cs,G8=x.data().header&&!((cs=x.horizontalShelfExperiments)==null?0:cs.call(x).hideHeader),T7;return(((T7=x.ensureMarginTop)==null?0:T7.call(x))&&!G8?12:0)+"px"}})},_.M("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.Ms({width:function(){return k()+"px"},
padding:function(){return"0 "+$C()+"px"},
overflow:function(){return W()?"auto":"hidden"}})},_.M("div",{class:"ytwHorizontalShelfViewModelItems",
el:p,style:V},_.M(_.bA,{data:z},{macroMarkerListItemViewModel:function(cs,G8){return _.M("div",{style:_.Ms({width:function(){return v()+"px"},
"margin-right":function(){return(G8()===z().length-1?0:jf())+"px"}})},_.M(C6Z,{data:cs.data,
palette:_.wc(x.palette),isLastItem:function(){return G8()===z().length-1}}))},
lockupViewModel:function(cs,G8){var T7=cs.data;return _.M("div",{style:_.Ms({width:function(){return v()+"px"},
"margin-right":function(){return(G8()===z().length-1?0:jf())+"px"}})},_.M(_.kc,{data:T7,
containerType:4,sizing:wn,protectBackground:x.protectBackground,thumbnailFixedWidth:function(){return V6n(T7())+"px"},
thumbnailTargetWidth:function(){return V6n(T7())}}))}}))),_.M(_.b,{cond:H,
then:function(){return _.M("div",{class:"ytwHorizontalShelfViewModelLeftArrow"},_.M(_.bA,{data:y},{buttonViewModel:function(cs){return _.M(_.Cs,{data:cs.data,onClick:n$})}}))}}),_.M(_.b,{cond:u,
then:function(){return _.M("div",{class:"ytwHorizontalShelfViewModelRightArrow"},_.M(_.bA,{data:c},{buttonViewModel:function(cs){return _.M(_.Cs,{data:cs.data,onClick:Fi})}}))}})))},"Uc");
_.Yj.idomCompat=!0;var Ix8=_.Nv(function(x){var G=function(){return x.data().targetId||""},D=function(){var H;
return((H=x.data())==null?void 0:H.expansionEntityKey)||""},K=_.lA(_.wvh,D),z=!0,y=function(){var H;
return((H=K())==null?void 0:H.value)===G()},c=function(H){_.dc(_.cq("stringEntity",D(),{key:D(),
value:H?G():""}))};
_.H6(function(){z=!1;x.data().isExpanded&&c(!0)});
var W=function(){if(y()){var H=!0;x.onCollapse!==void 0&&(H=x.onCollapse());H&&c(!1)}else c(!0)},e=_.WH(W),Q=function(){var H;
return(((H=x.accordionStyle)==null?void 0:H.call(x))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},p=_.qi(),V=function(){var H,O;
return(O=(H=_.Y(x.data().rendererContext,_.Wo))==null?void 0:H.label)!=null?O:""},L={},r={};
return _.M("yt-accordion-item-view-model",{class:_.ym("ytAccordionItemViewModelHost",x.className,(L.ytAccordionItemViewModelExpanded=function(){return y()},L.ytAccordionItemViewModelHidden=function(){var H;
return(H=x.hideIfNotExpanded)==null?void 0:H.call(x)},L.ytAccordionItemViewModelMini=Q,L)),
"data-target-id":G},_.M("div",{class:"ytAccordionItemViewModelContainer"},_.M("div",{class:"ytAccordionItemViewModelLeftSection","on:click":e,title:V},_.M(_.vq,{text:function(){return x.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:V})),_.M("div",{class:"ytAccordionItemViewModelRightSection"},_.M(_.bA,{data:function(){return y()?x.data().expandButton:x.data().collapseButton}},{buttonViewModel:function(H){return _.M(_.Cs,{data:H.data,
className:"ytAccordionItemViewModelToggleButton",onClick:W})}}))),_.M("div",{class:"ytAccordionItemViewModelContainer"},_.M("div",{class:_.ym("ytAccordionItemViewModelContent",(r.ytAccordionItemViewModelExpandedSubtitle=function(){return y()},r)),
el:p,style:_.Ms({"max-height":function(){return z?"auto":y()?p.value.scrollHeight+"px":"0"}})},_.M(_.b,{cond:function(){return!Q()},
then:function(){return _.M(_.vq,{text:function(){return x.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.M(_.bA,{data:function(){return x.data().content}},{horizontalShelfViewModel:function(H){return _.M(_.Yj,{data:H.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Vc");_.j39=_.Nv(function(x){var G=_.l((0,_.oFs)(x.data)).next().value,D=function(){return x.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},K=function(){return D()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},z=_.l(_.eO(!0,void 0,"FVec2e")),y=z.next().value,c=z.next().value,W=function(){return K()&&y()},e=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){c(!y())}}},Q=_.WH(function(){G().onTitleTap&&_.UI(G().onTitleTap||{})});
z={};return _.M("yt-accordion-view-model",{class:_.ym("ytAccordionViewModelHost",(z.ytAccordionViewModelMinimized=function(){return W()},z)),
"data-target-id":function(){return x.data().targetId||""}},_.M(_.b,{cond:function(){return K()||!!G().title},
then:function(){return _.M("div",{class:"ytAccordionViewModelHeader"},_.M("div",{class:"ytAccordionViewModelTitleSection"},_.M("div",{class:"ytAccordionViewModelTitleWrapper"},_.M(_.b,{cond:function(){return!!x.data().headerIcon},
then:function(){return _.M(_.Qm,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var p;return(p=x.data().headerIcon)==null?void 0:p.iconType}})}}),_.M("div",{class:"ytAccordionViewModelTitle",
"on:click":Q},_.M(_.vq,{className:"ytAccordionViewModelTitleText",text:function(){return G().title}})))),_.M("div",{class:"ytAccordionViewModelButtonSection"},_.M(_.b,{cond:K,
then:function(){return _.M(fs,{data:e,iconName:function(){return W()?"chevron_down":"chevron_collapse"}})}})))}}),_.M("div",{class:"ytAccordionViewModelContent"},_.M(_.bA,{data:function(){return G().contents}},{accordionItemViewModel:function(p){return _.M(Ix8,{data:p.data,
className:"ytAccordionViewModelRow",accordionStyle:D,hideIfNotExpanded:W,onCollapse:function(){return K()?(c(!0),!1):!0}})}})),_.M("div",null,_.M(_.b,{cond:function(){return!K()&&(!!G().disclaimerFooter||!!G().footer)},
then:function(){return _.M("div",{class:"ytAccordionViewModelFooter"},_.M(_.vq,{text:function(){return G().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.M(_.bA,{data:function(){return x.data().footer}},{flexibleActionsViewModel:function(p){return _.M(sJ,{data:p.data,
layout:0})}}))}})))},"Wc");_.tn(_.j39,"yt-accordion-view-model",{props:{data:_.ik}});_.tn(_.Nv(function(x){var G,D=(G=_.Eo().resolve(_.P6(_.ib)))==null?void 0:G(),K=_.l(_.eO(!1,void 0,"BxguL"));G=K.next().value;var z=K.next().value;K=_.l(_.eO(!0,void 0,"WTCeFf"));var y=K.next().value,c=K.next().value,W=_.qi(),e=function(H){z(!0);H={learningJourneyFormData:{query:H}};_.UI(x.data().searchEndpoint||{},{form:{formData:H}});return!1},Q=_.WH(function(H){H.target.closest("button-view-model")&&z(!0)});
K=_.WH(function(){c(W.value.value.length===0)});
var p=_.WH(function(H){if(H.key==="Enter"&&!H.shiftKey&&!y()){var O=H.target;H.preventDefault();e(O.value)}}),V={},L={},r={};
return _.M("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.M("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.M(_.wk,{data:function(){return x.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.M("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.M("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.M("div",{class:_.ym("ytLearningJourneyZeroStateSearchBar",(V.ytLearningJourneyZeroStateSearchBarDark=D,V))},_.M("textarea",{class:_.ym("ytLearningJourneyZeroStateTextInput",(L.ytLearningJourneyZeroStateTextInputDark=D,L)),el:W,"on:keyup":K,"on:keydown":p,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.M("div",{class:_.ym("ytLearningJourneyZeroStateSearchButtonContainer",(r.ytLearningJourneyZeroStateSearchButtonContainerDark=D,r))},_.M(_.Cs,{data:function(){return _.Y(x.data().searchButton,_.Ls)},
className:"search-button",onClick:function(){return e(W.value.value)},
buttonOverrides:function(){return{disabled:y(),style:D?"mono-inverse":"mono",size:"XL"}}}))),_.M(_.b,{cond:function(){return!!x.data().errorBanner},
then:function(){return _.M("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer"},_.M(_.bA,{data:function(){return x.data().errorBanner}},{alertBannerViewModel:function(H){return _.M(_.zBu,{data:H.data,
"client-ve-type":264617})}}))}})),_.M(_.b,{cond:G,
then:function(){return _.M("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.M(_.bA,{data:function(){return x.data().loader}},{learningJourneyLoaderViewModel:function(H){return _.M(_.$K8,{data:H.data})}}))},
else:function(){return _.M("div",null,_.M(_.b,{cond:function(){return!!x.data().learningJourneyShelf},
then:function(){return _.M("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.M("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return x.data().learningJourneySectionTitle}),_.M(_.bA,{data:function(){return x.data().learningJourneyShelf}},{horizontalShelfViewModel:_.Yj}))}}),_.M("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.M("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return x.data().suggestedJourneySectionTitle}),
_.M("div",{"on:click":Q},_.M(_.bA,{data:function(){return x.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(H){return _.M(sJ,{data:H.data,
layout:1})}}))))}}))},"Xc"),"yt-learning-journey-zero-state",{props:{data:_.ik}});var OIJ=_.Nv(function(x){var G=x.data;return _.M("ytvl-live-leaderboard-item-action-content-view-model",{class:_.ym("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.M(_.vq,{text:function(){var D;return(D=G())==null?void 0:D.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.M(_.bA,{data:function(){return G().actionButton}},{buttonViewModel:function(D){return _.M(_.Cs,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:D.data})}}))},"Yc");var X4s=_.Nv(function(x){var G=x.data;return _.M("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.ym("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.M(_.vq,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var D;return(D=G())==null?void 0:D.displayName},
ellipsisTruncate:!0}),_.M(_.bA,{data:function(){return G().badge}},{buttonViewModel:function(D){return _.M(_.Cs,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:D.data})}}))},"Zc");_.tn(_.Nv(function(x){var G=x.data;return _.M("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.M("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.M(_.vq,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var D;return(D=G())==null?void 0:D.rank}})),_.M("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.M(_.bA,{data:function(){return G().avatar}},{avatarViewModel:_.Lj})),_.M("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.M(_.bA,{data:function(){return G().content}},{liveLeaderboardItemChannelContentViewModel:X4s,
liveLeaderboardItemActionContentViewModel:OIJ})),_.M(_.vq,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var D;return(D=G())==null?void 0:D.points}}))},"$c"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.ik}});_.tn(_.Nv(function(x){var G=x.data;return _.M("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.M(_.vq,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var D,K;return(D=G())==null?void 0:(K=D.ranking)==null?void 0:K.rank}}),_.M("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.M(_.bA,{data:function(){return G().avatar}},{avatarViewModel:_.Lj})),_.M(_.vq,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var D,K;return(D=G())==null?void 0:(K=D.channelContent)==null?void 0:K.channelName}}),_.M(_.vq,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var D;return(D=G())==null?void 0:D.points}}))},"ad"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.ik}});var ALs=_.Nv(function(x){x=_.qv(x,{wrapper:!1}).wrapper;return _.M(_.b,{cond:x,then:function(){return _.M("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.M("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.M("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"bd");
ALs.idomCompat=!0;var UKq=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],RB7=_.Nv(function(x){var G=x.data;var D=_.qi(),K=_.V9(function(){return G().command},void 0,"tJY20c");
_.$9(function(){K()&&_.OI(K(),{form:{element:D.value}})});
return _.M("div",{el:D,class:"YtQrCodeRendererHostContainer"},_.M(_.b,{cond:function(){return G().qrCodeImage},
then:function(z){return _.M(_.wk,{data:z,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.M(_.b,{cond:function(){return G().spinner},
then:function(){return _.M(ALs,null)}})}}),_.M(_.b,{cond:function(){return G().label},
then:function(z){return _.M(_.vq,{text:z,className:"YtQrCodeRendererHostLabel"})}}),_.M(_.b,{cond:function(){return G().labels},
then:function(z){return _.M("div",{class:"YtQrCodeRendererHostLabels"},_.M(_.LT,{each:z},function(y){return _.M(_.vq,{text:y})}))}}))},"dd");_.tn(_.Nv(function(x){var G=x.data;var D=_.V9(function(){return G().qrEntityKey},void 0,"joYCxd"),K=_.V9(function(){return G().deleteEntityOnDismiss},void 0,"x3yAde"),z=_.V9(function(){return G().command},void 0,"dJe1Re"),y=_.lA(LmP,D);
x=_.V9(function(){return G().qrCodeImage},void 0,"qM5dZe");
var c=_.V9(function(){return G().style&&UKq.includes(G().style)},void 0,"CaNEkf"),W=_.qi();
_.Pw(W,{visibilityCallback:function(e){e&&z()&&_.OI(z())},
showOption:{calledOnce:!0,state:"visible"}});_.FQ(function(){_.Fq(function(){K()&&D()&&_.iD().dispatch(_.cq("qrCodeEntity",D()))})});
return _.M("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:W},_.M(_.b,{cond:c,then:function(){return _.M(_.b,{cond:y,then:function(e){return _.M(RB7,{data:e})}})}}),_.M(_.b,{cond:x,
then:function(e){return _.M(_.wk,{data:e,alt:""})}}))},"cd"),"yt-qr-code-renderer",{props:{data:_.ik}});_.S0E=_.Nv(function(x){var G=x.data;var D=x.topbarOffset;var K,z=((K=_.Eo().resolve(_.P6(_.ib)))==null?void 0:K())||!1;return _.M("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var y=G();var c,W,e=z?(c=y.config)==null?void 0:c.darkThemeBackgroundColor:(W=y.config)==null?void 0:W.lightThemeBackgroundColor;y=e?_.In(e):void 0;y="background-color: "+y+";";D!==void 0&&(y+="top: -"+D()+"px;");return y},
"aria-hidden":!0},_.M(_.b,{cond:function(){var y,c,W;return!!((y=G().backgroundImageConfig)==null?0:(c=y.image)==null?0:(W=c.sources)==null?0:W.length)},
then:function(){return _.M(_.wk,{data:function(){var y;return(y=G().backgroundImageConfig)==null?void 0:y.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.M("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+bKL(z,G().gradientColorConfig)+";"}}))},"ed");
_.S0E.idomCompat=!0;var m4=_.Nv(function(x){var G=x.className;var D=x.data;var K=x.isOverlay;var z=x.maxLinesOverride;var y=x.useMediumText;x=_.qi();var c=function(){return D().alwaysShowTruncationText},W=function(){return D().truncationText},e=function(){return y!==void 0&&y()?"medium":"small"},Q=function(){return K!==void 0&&K()?"overlay":"default"},p=function(){var O,A;
return(A=(O=_.Y(D().rendererContext,_.Wo))==null?void 0:O.label)!=null?A:""},V=_.l(_.eO(!1,void 0,"mkuWzb")),L=V.next().value,r=V.next().value;
_.iA(x,function(){return D().rendererContext});
V=_.WH(function(){D().expandOnTap&&r(!L());return!1});
var H={};return _.M("yt-description-preview-view-model",{el:x,class:_.ym("yt-description-preview-view-model-wiz",G,(H["yt-description-preview-view-model-wiz--clickable"]=function(){var O;return!((O=_.Y(D().rendererContext,GGO))==null||!O.onTap)},H["yt-description-preview-view-model-wiz--is-overlay"]=K,H)),
"on:click":V},_.M(_.b,{cond:function(){return D().description},
then:function(O){return _.M(_.b,{cond:L,then:function(){var A={};return _.M("div",{class:_.ym("yt-description-preview-view-model-wiz__description",(A["yt-description-preview-view-model-wiz__description--medium-text"]=y,A))},_.M(_.vq,{text:O}))},
else:function(){return _.M(l5Z,{text:O,alwaysShowTruncationText:c,truncationText:W,maxLines:function(){var A;return(A=z==null?void 0:z())!=null?A:D().maxLines},
textStyle:Q,accessibilityLabel:p,textSize:e})}})}}))},"fd");
m4.idomCompat=!0;var nN8=_.Nv(function(x){var G=x.data;var D=x.isOverlay;return _.M("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.M("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.M(_.bA,{data:function(){return G().header}},{sectionHeaderViewModel:function(K){return _.M(_.hF,{data:K.data,
isOverlay:D})}})),_.M("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.M(_.bA,{data:function(){return G().channelInfoButtons}},{flexibleActionsViewModel:sJ})),_.M("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.M(_.bA,{data:function(){return G().description}},{descriptionPreviewViewModel:function(K){return _.M(m4,{data:K.data,
isOverlay:D})}})))},"gd");
nN8.idomCompat=!0;var iIu=_.Nv(function(x){var G=x.data;var D={};return _.M("factoid-view-model",{class:_.ym("ytwFactoidViewModelHost",(D.ytwFactoidViewModelHostOverlay=x.isOverlay,D))},_.M(_.vq,{text:function(){return G().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.M(_.vq,{text:function(){return G().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"hd");
iIu.idomCompat=!0;var gN9=_.Nv(function(x){var G=x.data;var D=x.isOverlay;return _.M("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.M(_.bA,{data:function(){return G().factoids}},{factoidViewModel:function(K){return _.M(iIu,{data:K.data,
isOverlay:D})}}))},"id");
gN9.idomCompat=!0;_.uSu=_.Nv(function(x){var G=x.data;var D=x.isOverlay;return _.M("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.M(_.bA,{data:function(){return G().items}},{channelInfoViewModel:function(K){return _.M("div",{class:"ytwCourseMetadataViewModelHostItem"},_.M(nN8,{data:K.data,
isOverlay:D}))},
coursePerksViewModel:function(K){return _.M("div",{class:"ytwCourseMetadataViewModelHostItem"},_.M(s3u,{data:K.data,isOverlay:D}))},
descriptionPreviewViewModel:function(K){return _.M("div",{class:"ytwCourseMetadataViewModelHostItem"},_.M(m4,{data:K.data,isOverlay:D}))},
factoidsRowViewModel:function(K){return _.M("div",{class:"ytwCourseMetadataViewModelHostItem"},_.M(gN9,{data:K.data,isOverlay:D}))},
progressViewModel:function(K){return _.M("div",{class:"ytwCourseMetadataViewModelHostItem"},_.M(Y0Z,{data:K.data,isOverlay:D}))}}))},"jd");var dK7=_.Nv(function(x){return _.M("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.M(_.bA,{data:function(){return x.data().content}},{courseMetadataViewModel:function(G){return _.M(_.uSu,{data:G.data,
isOverlay:x.isOverlay})},
progressViewModel:function(G){return _.M(Y0Z,{data:G.data})}}))},"kd");var w49=_.Nv(function(x){var G=x.data;x=x.className;var D=_.qi(),K=function(){var y;return _.ns((y=G())==null?void 0:y.rendererContext)},z={};
z=(z["dynamic-text-view-model-wiz"]=!0,z["dynamic-text-view-model-wiz--tappable"]=function(){return K()},z);
_.iA(D,function(){var y;return(y=G())==null?void 0:y.rendererContext});
return _.M("yt-dynamic-text-view-model",{el:D,role:function(){return K()?"link":void 0},
tabindex:function(){return K()?0:void 0},
class:_.ym(x,z)},_.M("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var y,c,W;return(W=(c=_.Y((y=G())==null?void 0:y.rendererContext,_.Wo))==null?void 0:c.label)!=null?W:""}},_.M(_.vq,{text:function(){return G().text},
userInput:!0})))},"ld");
w49.idomCompat=!0;_.q07=_.Nv(function(x){var G=x.data;var D=x.isPositionRelative;var K=_.Ni(),z=_.BSf("(max-width: 527.9px)"),y=function(){var c,W;return(W=(c=G())==null?void 0:c.style)!=null?W:"IMAGE_BANNER_STYLE_FULL_BLEED"};
x={};x=(x["yt-image-banner-view-model-wiz"]=!0,x["yt-image-banner-view-model-wiz--inset"]=function(){return rPh(y())},x["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.If(!0)&&!(D==null?0:D())},x["yt-image-banner-view-model-wiz--small-inset"]=function(){return rPh(y())&&z()},x["yt-image-banner-view-model-wiz--tappable"]=function(){var c;
return _.If(K.value)&&_.ns((c=G())==null?void 0:c.rendererContext)},x);
_.iA(K,function(){var c;return(c=G())==null?void 0:c.rendererContext});
return _.M("yt-image-banner-view-model",{el:K,class:_.ym(x)},_.M(_.b,{cond:function(){var c;return(c=G())==null?void 0:c.image},
then:function(){return _.M(_.wk,{data:function(){return G().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.M(_.bA,{data:function(){var c;
return(c=G())==null?void 0:c.overlays}},{thumbnailHoverOverlayViewModel:bu}))},"md");
_.q07.idomCompat=!0;var NwJ;NwJ=_.Nv(function(x){var G=x.condition;var D=x.content;return _.M(_.b,{cond:G,then:function(){return _.M("div",{class:"page-header-view-model-wiz__scroll-container"},D())},
else:function(){return D()}})},"nd");
_.vNu=_.Nv(function(x){var G=x.data;var D=x.noPadding;var K=x.enableBanner;var z=x.cinematicContainerTopbarOffset;var y=x.allowCinematicContainerOverflow;var c=x.displayAsSidebar;var W=x.displayAsPanel;var e=s2D(),Q=function(){return!!G().image||!!G().animatedImage},p=function(){return!!G().background},V=function(){return(c==null?0:c())||(W==null?0:W())?1:e()},L=function(){return V()===1},r=function(){return L()||V()===2},H=function(){return V()===4},O=function(){var $C=G();
var OD=!!G().heroImage;var wn=V(),n$=YSd(G()),Fi=c==null?void 0:c(),pf=!$C.metadata,UE;if(UE=OD?_.Y($C.heroImage,YdE):_.Y($C.animatedImage||$C.image,YdE)){$C=UE.style;var M0=UE.layoutMode;if(M0!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(UE=Tzn(cwL(UE)),OD)OD=L2P(wn,$C,M0,UE,Fi);else b:if(pf)OD=wn===1?{size:48}:{size:72};else switch(wn){case 1:OD={size:72};break b;case 2:OD={size:120};break b;default:OD=n$<4?{size:120}:{size:160}}else OD=void 0}else OD={size:0};return OD};
x={};x=_.ym((x["page-header-view-model-wiz"]=!0,x["page-header-view-model-wiz--no-padding"]=function(){return!(D==null||!D())},x["page-header-view-model-wiz--small-top-padding"]=function(){return L()&&!G().actions||V()===2&&!(Q()||G().heroImage)},x["page-header-view-model-wiz--small-bottom-padding"]=function(){return r()&&!G().actions},x["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(y==null?0:y())},x["page-header-view-model-wiz--display-as-sidebar"]=c,x["page-header-view-model-wiz--display-as-panel"]=
W,x));
var A={},g=_.ym((A["page-header-view-model-wiz__page-header-headline"]=!0,A["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){var $C;return($C=O())==null?void 0:$C.allowFullWidth},A)),u=function(){var $C;
return r()&&!(($C=O())==null?0:$C.allowFullWidth)},f=function(){return L()&&(!!G().heroImage||Q())&&YSd(G())>0},v=function(){return f()&&(W==null?void 0:W())};
A={};var P=_.ym((A["page-header-view-model-wiz__page-header-title"]=!0,A["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!f()},A["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return f()&&!v()},A["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=v,A["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=p,A));
A={};var k=_.ym((A["page-header-view-model-wiz__page-header-headline-image"]=!0,A["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!G().heroImage&&r()},A));
A={};var cL=_.ym((A["page-header-view-model-wiz__page-header-banner-container"]=K,A["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var $C;return(K==null?void 0:K())&&(($C=_.Y(G().banner,_.Hgs))==null?void 0:$C.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},A));
A={};var bO=_.ym((A["page-header-view-model-wiz__page-header-content-metadata"]=!0,A["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=p,A));A={};var mE=_.ym((A["page-header-view-model-wiz__page-header-flexible-actions"]=!0,A["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!G().metadata||r()},A["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!r()},A));
A={};var jf=_.ym((A["page-header-view-model-wiz__page-header-attribution"]=!0,A["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=p,A));return _.M("yt-page-header-view-model",{class:x},_.M(_.b,{cond:p,then:function(){return _.M("div",{class:"page-header-view-model-wiz__page-header-background"},_.M(_.bA,{data:function(){return G().background}},{cinematicContainerViewModel:function($C){return _.M(_.S0E,{data:$C.data,
topbarOffset:z})}}))}}),_.M(NwJ,{condition:function(){return!(c==null||!c())},
content:function(){return _.M("div",{class:"page-header-view-model-wiz__page-header-content"},_.M(_.b,{cond:function(){return(K==null?void 0:K())&&G().banner},
then:function(){return _.M("div",{class:cL},_.M(_.bA,{data:function(){return G().banner}},{imageBannerViewModel:_.q07}))}}),_.M("div",{class:g},_.M(_.b,{cond:Q,
then:function(){return _.M(_.bA,{data:function(){var $C;if(!($C=G().animatedImage)){$C=G();if(Q()){var OD=$C=Object.assign({},$C),wn=V(),n$=YSd(G()),Fi=OD.image,pf=_.Y(Fi,m7s),UE=pf==null?void 0:pf.avatar,M0=_.Y(UE,_.gl);if(Fi&&UE&&M0){switch(wn){case 1:M0.avatarImageSize="AVATAR_SIZE_XL";break;case 2:M0.avatarImageSize="AVATAR_SIZE_XXL";break;default:n$<4?M0.avatarImageSize="AVATAR_SIZE_XXL":M0.avatarImageSize="AVATAR_SIZE_XXXL"}_.B("web_enable_sink_page_header_view_model")&&(_.Hh(UE,_.gl,Object.assign({},
M0)),pf.avatar=Object.assign({},UE),_.Hh(Fi,m7s,Object.assign({},pf)),OD.image=Object.assign({},Fi))}}$C=$C.image}return $C}},{contentPreviewImageViewModel:function($C){return _.M(_.JK,{data:$C.data,
className:k,imageSizeConfig:O})},
decoratedAvatarViewModel:function($C){return _.M(_.B2,{data:$C.data,className:k})}})}}),_.M(_.b,{cond:function(){return!!G().heroImage&&!u()},
then:function(){return _.M(_.bA,{data:function(){return G().heroImage}},{contentPreviewImageViewModel:function($C){return _.M(_.JK,{data:$C.data,
className:k,imageSizeConfig:O})}})}}),_.M("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.M(_.b,{cond:function(){return!!G().heroImage&&u()},
then:function(){return _.M("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.M(_.bA,{data:function(){return G().heroImage}},{contentPreviewImageViewModel:function($C){return _.M(_.JK,{data:$C.data,
className:k,imageSizeConfig:O})}}))}}),_.M(_.bA,{data:function(){return G().title}},{dynamicTextViewModel:function($C){return _.M(w49,{data:$C.data,
className:P})}}),_.M(_.bA,{data:function(){return G().metadata}},{contentMetadataViewModel:function($C){return _.M(_.PZi,{data:$C.data,
layout:function(){return L()?1:0},
className:bO,isOverlay:p,useMediumText:H})}}),_.M(_.b,{cond:function(){return G().description&&!L()},
then:function(){return _.M(_.bA,{data:function(){return G().description}},{descriptionPreviewViewModel:function($C){return _.M(m4,{data:$C.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:p,maxLinesOverride:function(){return L()?void 0:1},
useMediumText:H})}})}}),_.M(_.b,{cond:function(){return G().attribution&&!r()},
then:function(){return _.M(_.bA,{data:function(){return G().attribution}},{attributionViewModel:function($C){return _.M(qGZ,{data:$C.data,
className:jf,useMediumText:H})}})}}),_.M(_.b,{cond:function(){return G().actions&&!r()},
then:function(){return _.M(_.bA,{data:function(){return G().actions}},{flexibleActionsViewModel:function($C){return _.M(sJ,{data:$C.data,
layout:function(){return mQE(V())},
className:mE})}})}}))),_.M("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.M(_.b,{cond:function(){return G().description&&L()},
then:function(){return _.M(_.bA,{data:function(){return G().description}},{descriptionPreviewViewModel:function($C){return _.M(m4,{data:$C.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:p,maxLinesOverride:function(){return L()?void 0:1},
useMediumText:H})}})}}),_.M(_.b,{cond:function(){return G().attribution&&r()},
then:function(){return _.M(_.bA,{data:function(){return G().attribution}},{attributionViewModel:function($C){return _.M(qGZ,{data:$C.data,
className:jf,useMediumText:H})}})}}),_.M(_.b,{cond:function(){return G().actions&&r()},
then:function(){return _.M(_.bA,{data:function(){return G().actions}},{flexibleActionsViewModel:function($C){return _.M(sJ,{data:$C.data,
layout:function(){return mQE(V())},
className:mE})}})}})),_.M("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.M(_.bA,{data:function(){return G().bottomMetadataFlexibleContainer}},{flexibleContainer:function($C){return _.M(dK7,{data:$C.data,
isOverlay:p})}})))}}))},"od");
_.vNu.idomCompat=!0;_.tn(_.Nv(function(x){var G=_.l(_.eO(!1,void 0,"vVRl3b")),D=G.next().value,K=G.next().value;return _.M("yt-official-card-view-model",{class:_.ym("ytOfficialCardViewModelHost",x.className),style:_.Ms({"background-color":function(){var z,y=O0Q((z=x.data())==null?void 0:z.backgroundColor);return y?_.jT(y):void 0}})},_.M(_.bA,{data:function(){return x.data().header}},{pageHeaderViewModel:function(z){return _.M(_.vNu,{data:z.data,
noPadding:!0})}}),_.M(_.bA,{data:function(){return x.data().contents}},{horizontalShelfViewModel:function(z){return _.M(_.Yj,{data:z.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0}})}}),_.M(_.b,{cond:D,
then:function(){return _.M("div",{class:"ytOfficialCardViewModelExpandedContent"},_.M(_.bA,{data:function(){return x.data().expandedContents}},{horizontalShelfViewModel:function(z){return _.M(_.Yj,{data:z.data,
sizing:"MINI"})}}),_.M("div",{class:"ytOfficialCardViewModelCollapseButton"},_.M(_.bA,{data:function(){return x.data().collapseButton}},{buttonViewModel:function(z){return _.M(_.Cs,{data:z.data,
onClick:function(){K(!D())}})}})))},
else:function(){return _.M("div",{class:"ytOfficialCardViewModelExpandButton"},_.M(_.bA,{data:function(){return x.data().expandButton}},{buttonViewModel:function(z){return _.M(_.Cs,{data:z.data,
onClick:function(){K(!D())}})}}))}}))},"pd"),"yt-official-card-view-model",{props:{data:_.ik,
className:_.ik}});var HKQ=_.MF({buttonViewModel:_.Cs});_.E9($QO);_.KH($QO,"ytw-search-friction-view-model",{propNames:["data"]});_.HB=_.Nv(function(x){var G=_.qi(),D,K=(D=_.Eo().resolve(_.P6(_.ib)))==null?void 0:D();_.$9(function(){var z=G.value;var y=new kLV,c=new Map(y.JSC$7312_sanitizerTable.globalAttributePolicies);c.set("style",{policyAction:4});y.JSC$7312_sanitizerTable=new W_(y.JSC$7312_sanitizerTable.allowedElements,y.JSC$7312_sanitizerTable.elementPolicies,y.JSC$7312_sanitizerTable.allowedGlobalAttributes,c,y.JSC$7312_sanitizerTable.globallyAllowedAttributePrefixes);var W=["data-time"];if(W===void 0)c=new Set(y.JSC$7312_sanitizerTable.globallyAllowedAttributePrefixes),
c.add("data-"),y.JSC$7312_sanitizerTable=new W_(y.JSC$7312_sanitizerTable.allowedElements,y.JSC$7312_sanitizerTable.elementPolicies,y.JSC$7312_sanitizerTable.allowedGlobalAttributes,y.JSC$7312_sanitizerTable.globalAttributePolicies,c);else{c=new Set(y.JSC$7312_sanitizerTable.allowedGlobalAttributes);W=_.l(W);for(var e=W.next();!e.done;e=W.next()){e=e.value;if(e.indexOf("data-")!==0)throw Error("qa`"+e);c.add(e)}y.JSC$7312_sanitizerTable=new W_(y.JSC$7312_sanitizerTable.allowedElements,y.JSC$7312_sanitizerTable.elementPolicies,
c,y.JSC$7312_sanitizerTable.globalAttributePolicies,y.JSC$7312_sanitizerTable.globallyAllowedAttributePrefixes)}c=new Set(y.JSC$7312_sanitizerTable.allowedGlobalAttributes);c.add("class");y.JSC$7312_sanitizerTable=new W_(y.JSC$7312_sanitizerTable.allowedElements,y.JSC$7312_sanitizerTable.elementPolicies,c,y.JSC$7312_sanitizerTable.globalAttributePolicies,y.JSC$7312_sanitizerTable.globallyAllowedAttributePrefixes);_.n9(z,_.NdE(y.build(),CJQ(x.text())));I3n(G.value)});
D={};return _.M("div",null,_.M("markdown-div",{class:_.ym("ytwMarkdownDivHost",(D.ytwMarkdownDivDark=K,D.ytwMarkdownDivHostSmall=function(){var z;return((z=x.isSmallText)==null?void 0:z.call(x))||!1},D)),
el:G}))},"qd");
_.HB.idomCompat=!0;var JLE=_.Nv(function(x){var G=x.imageData;var D=_.wc(x.isInList,!1),K=function(){return D()?{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 _.M("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.M(_.b,{cond:function(){return G().image},
then:function(z){return _.M(_.wk,{data:z,alt:function(){return K().alt},
contentMode:function(){return K().contentMode},
targetWidth:function(){return K().targetWidth},
targetHeight:function(){return K().targetHeight},
className:function(){return K().className}})}}),_.M("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.M("div",{class:_.ym("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.M(_.vq,{text:function(){return G().title}})),_.M(_.LT,{each:function(){var z;
return(z=G().description)!=null?z:[]}},function(z){return _.M("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.M(FA,{content:z}))})))},"rd"),fxi=_.Nv(function(x){var G=x.list;
var D=function(){var K;return(K=G().items)!=null?K:[]};
return _.M("div",{class:"ytwGenAiRichTextViewModelListContent"},_.M(_.b,{cond:function(){return G().title},
then:function(K){return _.M("div",{class:_.ym("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.M(_.vq,{text:K}))}}),_.M(_.b,{cond:function(){return G().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.M("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.M(_.LT,{each:D},function(K){return _.M("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.M(FA,{content:K,isInList:!0}))}))}}),_.M(_.b,{cond:function(){return G().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.M("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.M(_.LT,{each:D},function(K){return _.M("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.M(FA,{content:K,isInList:!0}))}))}}),_.M(_.b,{cond:function(){return G().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.M("div",{class:"ytwGenAiRichTextViewModelImageList"},_.M(_.LT,{each:D},function(K){return _.M("div",{class:"ytwGenAiRichTextViewModelListItem"},_.M(FA,{content:K,isInList:!0}))}))}}))},"sd"),tos=_.Nv(function(x){var G=x.table;
return _.M("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.M("thead",null,_.M("tr",null,_.M(_.LT,{each:function(){var D,K;return(K=(D=G().header)==null?void 0:D.cells)!=null?K:[]}},function(D){return _.M("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.M(_.LT,{each:function(){return D.contents}},function(K){return _.M(FA,{content:K})}))}))),_.M("tbody",null,_.M(_.LT,{each:function(){var D;
return(D=G().rows)!=null?D:[]}},function(D){return _.M("tr",null,_.M(_.LT,{each:function(){return D.cells}},function(K){return _.M("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.M(_.LT,{each:function(){return K.contents}},function(z){return _.M(FA,{content:z})}))}))})))},"td"),FA=_.Nv(function(x){var G=x.content;
var D=_.wc(x.isInList,!1),K=function(){var z,y;return(y=(z=G().contentBlock)==null?void 0:z.contents)!=null?y:[]};
return _.M("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.M(_.b,{cond:function(){return G().text},
then:function(z){return _.M(_.vq,{className:"ytwGenAiRichTextViewModelText",text:z})}}),_.M(_.b,{cond:function(){return G().image},
then:function(z){return _.M(JLE,{imageData:z,isInList:D})}}),_.M(_.b,{cond:function(){return G().list},
then:function(z){return _.M(fxi,{list:z})}}),_.M(_.b,{cond:function(){return G().contentBlock},
then:function(){return _.M("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.M(_.LT,{each:K},function(z){return _.M(FA,{content:z,isInList:!1})}))}}),_.M(_.b,{cond:function(){return G().table},
then:function(z){return _.M(tos,{table:z})}}))},"ud"),k5s=_.Nv(function(x){var G={};
G=_.cH("ytwGenAiRichTextViewModelHost",(G.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.Db("search_overview_link_style")),G));return _.M("gen-ai-rich-text-view-model",{class:G},_.M(FA,{content:function(){return x.data().content}}))},"vd");_.E9(j2L);_.E9(C1);_.P6h=_.Nv(function(x){var G=x.data;var D=function(){var O;return((O=G().loadingUi)!=null?O:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},K=function(){return G().isLoading&&(D()==="UNSPECIFIED"||D()==="GHOST_CARD")},z=function(){return!G().isLoading},y=function(){return!!G().content&&!G().contents},c=function(){return!!G().contents},W=function(){return!!G().nextQueryButtons},e=function(){return G().isLoading&&D()==="INVISIBLE"},Q=function(){var O,A;
return(A=(O=G().headerIcon)==null?void 0:O.iconType)!=null?A:""},p=function(){var O;
return(O=G().content)!=null?O:""},V=function(){return!!G().sourcesSection},L,r=!((L=_.Eo().resolve(_.P6(_.ib)))==null||!L()),H=_.V9(function(){var O=[],A=G().contents;
if(A)for(var g=0;g<A.length;g++){var u=_.Y(A&&A[g],ADs);u&&O.push(u)}return O},void 0,"ycU97e");
_.FQ(function(){G().isLoading||_.Fs("so_re",void 0,"search_overview_answer")});
return _.M("ytd-overview-answer-view-model",{class:function(){var O={};O=(O.ytdOverviewAnswerViewModelHost=!0,O.ytdOverviewAnswerViewModelDarkBackground=r&&!e(),O.ytdOverviewAnswerViewModelLightBackground=!r&&!e(),O);return _.cH(O)}},_.M(_.b,{cond:function(){return!e()},
then:function(){return _.M(_.xT,null,_.M("h2",null,_.M("div",{class:"ytdOverviewAnswerViewModelHeader"},_.M(_.b,{cond:Q,then:function(O){return _.M("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.M(_.Qm,{icon:O}))}}),_.M("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.M("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return G().headerText}),_.M("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.M(_.vq,{text:function(){return G().headerSubtext}}))))),_.M(_.b,{cond:K,
then:function(){return j2L()}}),_.M(_.b,{cond:z,
then:function(){return _.M(_.xT,null,_.M(_.b,{cond:y,then:function(){return _.M("div",{class:"ytdOverviewAnswerViewModelText"},_.M(_.HB,{text:p,isSmallText:!0}))}}),_.M(_.b,{cond:c,
then:function(){return _.M("div",{class:"ytdOverviewAnswerViewModelRichText"},_.M(_.LT,{each:H},function(O){return _.M(k5s,{data:O})}))}}),_.M(_.b,{cond:W,
then:function(){return _.M("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.M(_.bA,{data:function(){return G().nextQueryButtons}},{buttonViewModel:function(O){return _.M(_.Cs,{data:O.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.Yj}))}}),_.M("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.M("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.M(_.b,{cond:function(){return!!_.Y(G().likeButtonViewModel,_.YL)&&!!_.Y(G().dislikeButtonViewModel,_.mY)},
then:function(){return _.M("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.M(_.mp,{data:function(){return _.Y(G().likeButtonViewModel,_.YL)},
disableIconAnimation:!0}),_.M(_.Yn,{data:function(){return _.Y(G().dislikeButtonViewModel,_.mY)}}))}})),_.M(_.b,{cond:function(){var O;
return(O=G().sourcesSection)==null?void 0:O.headerText},
then:function(O){return _.M("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.M(_.vq,{text:O}))}})),_.M(_.b,{cond:V,
then:function(){return _.M("div",{class:"ytdOverviewAnswerViewModelSources"},_.M(_.bA,{data:function(){var O;return(O=G().sourcesSection)==null?void 0:O.sourcesShelf}},{buttonViewModel:_.Cs,
horizontalShelfViewModel:function(O){return _.M(_.Yj,{data:O.data,includeMargin:!0,hasPeek:!0})}}))}}),_.M(_.b,{cond:function(){return G().disclaimerText},
then:function(){return _.M("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.M(_.vq,{text:function(){return G().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"wd");var ENq=_.Nv(function(x){var G=x.data;var D=x.active;var K=_.qi();_.$9(function(){var z,y,c,W=((z=_.Eo().resolve(_.P6(_.ib)))==null?0:z())?(y=G())==null?void 0:y.darkThemeColorPalette:(c=G())==null?void 0:c.lightThemeColorPalette;W&&(W.additiveBackground&&K.value.style.setProperty("--timestamp-active-background-color",_.jT(W.additiveBackground)),W.textSecondary&&K.value.style.setProperty("--timestamp-active-color",_.In(W.textSecondary)))},"KHcbwb");
x={};return _.M("transcript-segment-view-model",{class:_.ym("ytwTranscriptSegmentViewModelHost",(x.ytwTranscriptSegmentViewModelHostActive=D,x.ytwTranscriptSegmentViewModelHostModern=_.B("enable_timeline_view_modern_transcript")||_.B("enable_timeline_view_modern_transcript_fe"),x)),el:K},_.M(_.b,{cond:function(){var z;return(z=G())==null?void 0:z.timestamp},
then:function(z){var y={};return _.M("div",{class:_.ym("ytwTranscriptSegmentViewModelTimestamp",(y.ytwTranscriptSegmentViewModelTimestampActive=D,y))},z)}}),_.M(_.vq,{text:function(){var z,y,c;
return(c=(z=G())==null?void 0:z.attributedText)!=null?c:{content:(y=G())==null?void 0:y.simpleText}},
linkInheritColor:!0}))},"xd");var hBh=_.Nv(function(x){var G=x.data;return _.M("div",{class:"yt-video-attributes-section-view-model__header"},_.M("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return G().headerTitle}),_.M(_.b,{cond:function(){return G().headerSubtitle},
then:function(){return _.M("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return G().headerSubtitle})}}))},"yd"),xT9=_.Nv(function(x){function G(O){return Math.max(Math.min(O,0),Q()-W())}
var D=x.data;var K,z=_.qi(function(O){if(_.B("web_metadata_carousel_elref_bugfix")){var A=function(){p(O.clientWidth)};
A();window.ResizeObserver&&(K=new ResizeObserver(A),K.observe(O))}}),y=_.qi(function(O){e(O.scrollWidth)}),c=_.l(_.eO(0,void 0,"I9GbH"));
x=c.next().value;c=c.next().value;var W=x,e=c;c=_.l(_.eO(0,void 0,"eQAn5b"));x=c.next().value;c=c.next().value;var Q=x,p=c;x=_.l(_.eO(0,void 0,"VU3lg"));var V=x.next().value,L=x.next().value;_.FQ(function(){if(!_.B("web_metadata_carousel_elref_bugfix")){var O=function(){e(y.value.scrollWidth);p(z.value.clientWidth)};
O();if(window.ResizeObserver){var A=new ResizeObserver(O);A.observe(z.value);_.Fq(function(){A.disconnect()})}}});
_.Fq(function(){if(_.B("web_metadata_carousel_elref_bugfix")){var O;(O=K)==null||O.disconnect()}});
var r=function(){L(G(V()+Q()))},H=function(){L(G(V()-Q()))};
return _.M("yt-video-attributes-section-view-model",null,_.M("div",{class:"yt-video-attributes-section-view-model"},_.M(_.b,{cond:function(){return D().headerTitle},
then:function(){return _.M(hBh,{data:D})}}),_.M("div",{class:_.ym("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:z},_.M("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.Ms({transform:function(){var O=V();_.Am("HTML_DIR")==="rtl"&&(O*=-1);return"translateX("+O+"px)"}}),
el:y},_.M(_.bA,{data:function(){return D().videoAttributeViewModels}},{videoAttributeViewModel:cAZ}))),_.M(_.bA,{data:function(){return D().footerButton}},{buttonViewModel:function(O){return _.M(_.Cs,{data:O.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.M(_.b,{cond:function(){return V()<0&&D().previousButton},
then:function(){return _.M("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.M(_.bA,{data:function(){return D().previousButton}},{buttonViewModel:function(O){return _.M(_.Cs,{data:O.data,
onClick:r})}}))}}),_.M(_.b,{cond:function(){return V()>Q()-W()&&D().nextButton},
then:function(){return _.M("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.M(_.bA,{data:function(){return D().nextButton}},{buttonViewModel:function(O){return _.M(_.Cs,{data:O.data,
onClick:H})}}))}})))},"zd");
xT9.idomCompat=!0;var Gh0=_.Nv(function(x){var G=x.data;var D=x.active;var K={},z={};return _.M("timeline-item-view-model",{class:_.ym("ytwTimelineItemViewModelHost",(K.ytwTimelineItemViewModelHostChapterChild=x.chapterChild,K.ytwTimelineItemViewModelModern=_.B("enable_timeline_view_modern_transcript")||_.B("enable_timeline_view_modern_transcript_fe"),K))},_.M("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.M("div",{class:_.ym("ytwTimelineItemViewModelTimestamp",(z.ytwTimelineItemViewModelTimestampActive=
D,z))},function(){return G().timestamp})),_.M("div",{class:"ytwTimelineItemViewModelContentItems"},_.M(_.bA,{data:function(){return G().contentItems}},{transcriptSegmentViewModel:function(y){return _.M(ENq,{data:y.data,
active:D})},
videoAttributesSectionViewModel:xT9})))},"Ad");var DT8=_.Nv(function(x){var G=x.data;x={};return _.M("timeline-chapter-view-model",{class:_.ym("ytwTimelineChapterViewModelHost")},_.M("div",{class:_.ym("ytwTimelineChapterViewModelTitle",(x.ytwTimelineChapterViewModelModern=_.B("enable_timeline_view_modern_transcript")||_.B("enable_timeline_view_modern_transcript_fe"),x))},function(){return G().title}),_.M(_.bA,{data:function(){return G().contents}},{timelineItemViewModel:function(D){return _.M(Gh0,{data:D.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(D){return _.M(xT9,{data:D.data})}}))},"Bd");var KQ8=_.Nv(function(x){var G=x.data;var D=_.qi(),K=_.lA(_.MvE,function(){var y;return(y=G().markersEngagementPanelSyncEntityKey)!=null?y:""}),z=function(){var y;
return((y=K())==null?void 0:y.activeItemIndex)===G().index};
return _.M("macro-markers-panel-item-view-model",{class:_.ym("ytwMacroMarkersPanelItemViewModelHost",{"is-active":z}),el:D,"on:click":_.WH(function(y){var c,W,e,Q,p;return _.T(function(V){if(V.nextAddress==1)return y.stopPropagation(),_.RO(_.Ug(y),D.value,["A".toString(),"BUTTON".toString()])?V.return():(c=_.jn(G().onTap))?_.Z(V,_.xL(),2):V.return();W=V.yieldResult;Q=(e=_.Y(c,_.d5))==null?void 0:e.startTimeSeconds;Q===void 0||(p=W)!=null&&p.seekTo(Q,!0);_.c5(V)})}),
tabindex:0},_.M(_.bA,{data:function(){var y;return(y=G())==null?void 0:y.item}},{timelineChapterViewModel:function(y){return _.M(DT8,{data:y.data,
active:z})},
timelineItemViewModel:function(y){return _.M(Gh0,{data:y.data,active:z})},
videoAttributeViewModel:cAZ}))},"Cd");
KQ8.idomCompat=!0;_.tn(KQ8,"macro-markers-panel-item-view-model",{props:{data:_.ik}});_.tn(xT9,"yt-video-attributes-section-view-model",{props:{data:_.ik}});var zLs=_.Nv(function(x){var G=function(){var D,K,z;return(z=(D=x.data().leadingLogoAccessibility)==null?void 0:(K=D.accessibilityData)==null?void 0:K.label)!=null?z:""};
return _.M("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.M(_.b,{cond:function(){return x.data().leadingLogo},
then:function(D){return _.M(_.wk,{className:"ytwFantasySectionHeaderViewModelLogo",data:D,alt:G})}}),_.M("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.M(_.vq,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return x.data().title}}),_.M(_.vq,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return x.data().subtitle}})),_.M(_.bA,{data:function(){return x.data().trailingButton}},{buttonViewModel:function(D){return _.M(_.Cs,{data:D.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Dd");var aW9=_.Nv(function(x){var G={};G=_.ym("ytwFantasyTeamViewModelHost",(G.ytwFantasyTeamViewModelCompact=function(){var z;return!((z=x.compact)==null||!z.call(x))},G.ytwFantasyTeamViewModelUser=function(){return x.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},G.ytwFantasyTeamViewModelOpponent=function(){return x.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},G));
var D=function(){var z,y,c;return(c=(z=x.data().teamLogoAccessibility)==null?void 0:(y=z.accessibilityData)==null?void 0:y.label)!=null?c:""},K=_.lA(pcn,function(){return x.data().teamEntityKey});
return _.M("ytw-fantasy-team-view-model",{class:G},_.M(_.b,{cond:function(){return x.data().teamLogo},
then:function(z){return _.M(_.wk,{className:"ytwFantasyTeamViewModelLogo",data:z,alt:D})}}),_.M("div",{class:"ytwFantasyTeamViewModelMetadata"},_.M("div",{class:"ytwFantasyTeamViewModelHeader"},_.M(_.vq,{className:"ytwFantasyTeamViewModelScore",
text:function(){var z;return(z=K())==null?void 0:z.score}}),_.M(_.Qm,{icon:function(){var z;
return(z=K())==null?void 0:z.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.M(_.vq,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var z;return(z=K())==null?void 0:z.projectedScore}})),_.M(_.vq,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return x.data().primaryText}}),_.M(_.vq,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return x.data().secondaryText}}),_.M(_.vq,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return x.data().tertiaryText}})),_.M(_.vq,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var z;return(z=K())==null?void 0:z.score}}))},"Ed");_.tn(_.Nv(function(x){return _.M("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.M("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.M(_.bA,{data:function(){return x.data().summaryHeader}},{fantasySectionHeaderViewModel:zLs})),_.M(_.bA,{data:function(){return x.data().userTeam}},{fantasyTeamViewModel:aW9}),_.M(_.bA,{data:function(){return x.data().opponentTeam}},{fantasyTeamViewModel:aW9}))},"Fd"),"fantasy-league-summary-view-model",{props:{data:_.ik}});var oHs=_.Nv(function(x){var G=_.qv(x,{shape:{},useCustomTabRenderable:!1}),D=G.shape;G=G.useCustomTabRenderable;var K=x.customTabRenderable,z=function(){return D().disabled},y=function(){return D().selected},c=function(){return D().title},W=function(){return D().icon},e=_.qi();
x=_.WH(function(V){var L;if(!z()&&((L=D().aTagConfig)==null?0:L.onclick))D().aTagConfig.onclick(V);return!1});
var Q=_.WH(function(V){if(V.key==="Enter"||V.key==="ArrowUp"||V.key==="ArrowDown")V.preventDefault(),e.value.click();return!1}),p={};
return _.M("yt-tab-shape",{class:_.ym("yt-tab-shape-wiz",function(){return D().className},(p["yt-tab-shape-wiz__tab--last-tab"]=function(){return D().isLastTab},p["yt-tab-shape-wiz--host-disabled"]=z,p["yt-tab-shape-wiz--host-clickable"]=!K,p)),
role:K?void 0:"tab","aria-selected":y!=null?y:!1,"aria-disabled":z,tabindex:K?void 0:0,"on:click":x,"on:keydown":Q,el:e,"tab-identifier":function(){return D().identifier},
"tab-title":c},_.M(_.b,{cond:G,then:function(){return K()},
else:function(){var V={},L={};return _.M(_.xT,null,_.M("div",{class:_.ym("yt-tab-shape-wiz__tab",(V["yt-tab-shape-wiz__tab--tab-selected"]=y,V))},_.M(_.b,{cond:W,then:function(r){return _.M(_.Qm,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return r().iconType}})}}),c),_.M("div",{class:_.ym("yt-tab-shape-wiz__tab-bar",(L["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=y,L))}))}}))},"Gd");
oHs.idomCompat={callbacks:{customTabRenderable:!0}};_.lWu=_.Nv(function(x){var G=x.shape;x=_.l(_.eO(48,void 0,"r9IBlb"));var D=x.next().value,K=x.next().value;x=_.l(_.eO(0,void 0,"Bd7rmd"));var z=x.next().value,y=x.next().value,c=function(){return G().tabs},W=_.qi(),e=function(){var Q,p;
return(p=(Q=c())==null?void 0:Q.findIndex(function(V){return V.selected}))!=null?p:-1};
_.FQ(function(){var Q=W.value.querySelectorAll("yt-tab-shape"),p=e()>-1?Q[e()]:void 0;_.Fj.addJob(function(){K((p==null?void 0:p.getBoundingClientRect().width)||0)},8,0)});
_.$9(function(){var Q=e(),p=_.Fj.addJob(function(){var V,L=((V=W.value)==null?void 0:V.querySelectorAll("yt-tab-shape"))||[],r;K(((r=Q>-1?L[Q]:void 0)==null?void 0:r.getBoundingClientRect().width)||0);for(r=V=0;r<Q;r++)V+=L[r].offsetWidth+24;_.Am("HTML_DIR")==="rtl"&&(V=-V);y(V)},8,0);
_.Fq(function(){_.Fj.cancelJob(p)})});
x={};return _.M("yt-tab-group-shape",{class:_.ym("yt-tab-group-shape-wiz",(x["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return G().isOverflowHidden},x)),
el:W},_.M(_.b,{cond:c,then:function(Q){return _.M(_.xT,null,_.M("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.M(_.LT,{each:Q},function(p,V){return _.M(oHs,{shape:function(){return Object.assign({},p,{isLastTab:V()===Q().length-1})},
customTabRenderable:p.customTabRenderable,useCustomTabRenderable:!!p.customTabRenderable})})),_.M(y48,{width:D,
sliderOffset:z}))}}))},"Hd");
_.lWu.idomCompat=!0;var y48=_.Nv(function(x){var G=_.wc(x.sliderOffset,0),D=x.width;return _.M("div",{class:"yt-tab-group-shape-wiz__slider",style:_.Ms({width:function(){return D()+"px"},
transform:function(){return"translateX("+G()+"px)"}})})},"Id");var c4Z=_.Nv(function(x){var G=function(){var y,c,W;return(W=(y=x.data().playerLogoAccessibility)==null?void 0:(c=y.accessibilityData)==null?void 0:c.label)!=null?W:""},D=_.lA(Vv$,function(){return x.data().playerEntityKey}),K={};
K=_.ym("ytwFantasyPlayerViewModelHost",(K.ytwFantasyPlayerViewModelPlaying=function(){var y;return!((y=D())==null||!y.isPlayerPlaying)},K.ytwFantasyPlayerViewModelOnField=function(){var y;
return((y=D())==null?void 0:y.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},K.ytwFantasyPlayerViewModelRedZone=function(){var y;
return((y=D())==null?void 0:y.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},K));
var z=function(){var y,c,W,e=((y=_.Eo().resolve(_.P6(_.ib)))==null?0:y())?(c=x.data().playerLogoBackgroundColor)==null?void 0:c.darkTheme:(W=x.data().playerLogoBackgroundColor)==null?void 0:W.lightTheme;return e===void 0?"":_.jT(e)};
return _.M("ytw-fantasy-player-view-model",{class:K},_.M(_.b,{cond:function(){return x.data().playerLogo},
then:function(y){return _.M("div",{class:"ytwFantasyPlayerViewModelLogo"},_.M("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.M(_.wk,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.Ms({"background-color":z}),data:y,alt:G})),_.M("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.M(_.Qm,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.M("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.M("div",{class:"ytwFantasyPlayerViewModelHeader"},_.M(_.vq,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var y;return(y=x.data())==null?void 0:y.playerNameText}}),_.M(_.vq,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var y;return(y=x.data())==null?void 0:y.playerDescriptionText}})),_.M("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.M(_.vq,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var y;return(y=D())==null?void 0:y.gamePeriodText}}),_.M(_.vq,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var y;return(y=x.data())==null?void 0:y.opponentTeamText}}),_.M(_.vq,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var y;return(y=D())==null?void 0:y.gameStatusText}}),_.M(_.vq,{className:_.ym("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var y;return(y=D())==null?void 0:y.playerStatusText}})),_.M("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.M(_.vq,{text:function(){var y;
return(y=D())==null?void 0:y.playerStatsText}}))),_.M(_.vq,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var y;return(y=D())==null?void 0:y.fantasyScore}}))},"Jd");var TW8=_.Nv(function(x){return _.M("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.M(_.b,{cond:function(){return x.data().players},
then:function(G){return _.M(_.bA,{data:G},{fantasyPlayerViewModel:c4Z})}}))},"Kd");var WQo=_.Nv(function(x){var G=_.l(_.ZX(function(){var z;return(z=x.data().selectedTabIdentifierKey)!=null?z:""})),D=G.next().value,K=G.next().value;
_.H6(function(){var z;(z=x.setSelectedTabSignal)==null||z.call(x,D)});
return _.M("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.M("div",{class:"ytTabbedViewModelTabGroup"},_.M(_.lWu,{shape:function(){var z=x.data(),y=[],c={tabs:y};if(!z.tabs)return c;z=_.l(z.tabs);for(var W=z.next(),e={};!W.done;e={tabViewModel:void 0},W=z.next())if(e.tabViewModel=_.Y(W.value,wpo),e.tabViewModel){var Q=W=void 0;y.push({aTagConfig:{onclick:function(p){return function(){var V;K((V=p.tabViewModel.tabIdentifier)!=null?V:"")}}(e)},
identifier:e.tabViewModel.tabIdentifier,selected:D()===e.tabViewModel.tabIdentifier,title:(Q=(W=e.tabViewModel.title)==null?void 0:W.content)!=null?Q:""})}return c}})),_.M(_.bA,{data:function(){var z,y=_.l((z=x.data().tabs)!=null?z:[]);
for(z=y.next();!z.done;z=y.next())if((z=_.Y(z.value,wpo))&&z.tabIdentifier===D())return z.content}},{fantasyRosterViewModel:TW8}))},"Ld");_.tn(_.Nv(function(x){var G=_.l(OK$()),D=G.next().value,K=G.next().value;return _.M("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.M(_.vq,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return x.data().title}}),_.M(_.b,{cond:function(){return x.data().tabbedViewModel},
then:function(z){return _.M(_.bA,{data:z},{tabbedViewModel:function(y){return _.M(WQo,{data:y.data,setSelectedTabSignal:K})}})}}),_.M(_.b,{cond:function(){var z,y=(z=_.Y(x.data().tabbedViewModel,qds))==null?void 0:z.tabs;
z=_.Y(y==null?void 0:y[0],wpo);y=_.Y(y==null?void 0:y[1],wpo);var c=z==null?void 0:z.tabIdentifier;if(D()===c){var W,e;if(!((W=_.Y(z==null?void 0:z.content,wVs))==null?0:(e=W.players)==null?0:e.length))return x.data().noUserTeamPlayersText}else{var Q,p;if(!((Q=_.Y(y==null?void 0:y.content,wVs))==null?0:(p=Q.players)==null?0:p.length))return x.data().noOpponentTeamPlayersText}},
then:function(z){return _.M(_.vq,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:z})}}))},"Md"),"ytw-fantasy-matchup-view-model",{props:{data:_.ik}});_.tn(_.Nv(function(x){return _.M("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.M(_.vq,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return x.data().title}}),_.M(_.b,{cond:function(){return x.data().matchupTeamPairs},
then:function(G){return _.M(_.LT,{each:G,keyBy:"INDEX"},function(D){return _.M("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.M(_.bA,{data:function(){return[D().firstTeam,D().secondTeam]}},{fantasyTeamViewModel:function(K){return _.M(aW9,{data:K.data,
compact:!0})}}))})}}))},"Nd"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.ik}});_.tn(_.Nv(function(x){var G=function(){var z,y,c;return(c=(z=x.data().userLogoAccessibility)==null?void 0:(y=z.accessibilityData)==null?void 0:y.label)!=null?c:""},D=function(){var z,y,c;
return(c=(z=x.data().opponentLogoAccessibility)==null?void 0:(y=z.accessibilityData)==null?void 0:y.label)!=null?c:""},K=_.lA(Qu3,function(){return x.data().entityKey});
return _.M("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.M("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.M(_.b,{cond:function(){return x.data().userLogo},
then:function(z){return _.M(_.wk,{className:"ytwFantasyWinProbabilityViewModelLogo",data:z,alt:G})}}),_.M("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.M(_.vq,{text:function(){return x.data().title}})),_.M(_.b,{cond:function(){return x.data().opponentLogo},
then:function(z){return _.M(_.wk,{className:"ytwFantasyWinProbabilityViewModelLogo",data:z,alt:D})}})),_.M("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.M("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.M(_.vq,{text:function(){var z;
return(z=K())==null?void 0:z.userWinNumberLabel}})),_.M("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.M("div",{class:_.ym("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.Ms({flex:function(){var z,y;return(y=(z=K())==null?void 0:z.userWinNumber)!=null?y:50}})}),_.M("div",{class:_.ym("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.Ms({flex:function(){var z,y;return(y=(z=K())==null?void 0:z.opponentWinNumber)!=null?y:50}})})),_.M("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.M(_.vq,{text:function(){var z;
return(z=K())==null?void 0:z.opponentWinNumberLabel}}))))},"Od"),"fantasy-win-probability-view-model",{props:{data:_.ik}});_.HH("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var C_=function(){var x=_.n.apply(this,arguments)||this;x.darkerPanels=_.B("web_watch_darker_panels");x.commentsHidePanelButton=!1;x.isWatchGrid=!1;x.continuationShowButton=!1;x.isSearch=!1;x.isConstrainedList=!1;x.isWatch=!1;x.eligibleToSwitchToGrid=!1;x.notSticky=!1;x.epRestyle=!1;x.isCarouselInFeed=!0;x.topSpacingZero=!1;x.continuationIsInitialLoad=!0;x.enableSqueezebackPanels=_.B("web_shorts_enable_squeezeback_panels");x.enableAnchoredPanel=_.B("desktop_shorts_v2_anchored_panel");x.mastheadHeight=
0;x.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};x.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return x};
_.m(C_,_.n);_.a=C_.prototype;_.a.updateLockupContainerTypes=function(x){if(this.eligibleToSwitchToGrid){var G;(G=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||G.forEach(function(D){D.containerType=x})}};
_.a.getItemsPath=function(){return"data.contents"};
_.a.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.a.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",
properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:"ytd-channel-featured-content-renderer",channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",
chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",
compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",
emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",
feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",
handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",
labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:"yt-section-header-view-model",settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",
properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",
subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},
webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",
errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",
expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},
learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},
reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.B("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.B("kevlar_low_priority_continuation")}}};
_.a.created=function(){this.JSC$14496_cachedViewportHeight=_.Am("initialInnerHeight")||window.innerHeight};
_.a.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.a.handleIntersect=function(x){this.notSticky=x[0].intersectionRatio===1};
_.a.attached=function(){var x=this;document.addEventListener("scroll",_.ae(this,this.updateHeaderState));var G;this.mastheadHeight=((G=document.querySelector("ytd-masthead"))==null?void 0:G.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(D){x.handleIntersect(D)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){x.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.a.detached=function(){document.removeEventListener("scroll",_.ae(this,this.updateHeaderState));var x;(x=this.intersectionObserver)==null||x.disconnect();var G;(G=this.resizeObserver)==null||G.disconnect()};
_.a.updated=function(x){x.has("data")&&this.updateHeaderState()};
_.a.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(aei(!this.notSticky))};
_.a.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var x=_.kA(this.hostElement).querySelector("ytd-comments-header-renderer");x&&(x.hidePanelButton=this.commentsHidePanelButton)}};
_.a.onRetrieveLocation=function(x,G){this.containsComments()&&(this.firstCommentsLoaded=G.hasComments=!0)};
_.a.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.a.onLoadReloadContinuation=function(x,G){var D=this;x.stopPropagation();this.isReloading=!0;_.h$(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(K){var z=_.Eo().resolve(_.mg);K=G(K);z.postData(K).then(function(y){D.onReloadContinuationData(y)})}})};
_.a.onReloadContinuationData=function(x){if(x=this.get("response.continuationContents.itemSectionContinuation",x)||this.get("response.contents.itemSectionRenderer",x)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",x)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",x))this.set("data.contents",x.contents||x.results),x.header&&this.set("data.header",x.header),this.set("data.continuations",
x.continuations||[]);this.isReloading=!1};
_.a.computeContentsClass=function(x){return x?"reloading":""};
_.a.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.a.computeSectionIdentifier=function(x){return x==null?void 0:x.sectionIdentifier};
_.a.computeFitContainer=function(x){return(x==null?void 0:x.sectionIdentifier)==="youchat-item-section"};
_.a.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.B("kevlar_disable_comments_auto_load")};
_.a.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.a.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.a.computeHasDestinationShelfRenderer=function(x){var G,D;return!!(x==null?0:(G=x.contents)==null?0:(D=G[0])==null?0:D.destinationShelfRenderer)};
_.a.computeHasSectionGroupViewModel=function(x){var G,D;return!!(x==null?0:(G=x.contents)==null?0:(D=G[0])==null?0:D.sectionGroupViewModel)};
_.a.computeHasQrCodeRenderer=function(x){var G,D;return!!(x==null?0:(G=x.contents)==null?0:(D=G[0])==null?0:D.qrCodeRenderer)};
_.a.computeStaticCommentsHeader=function(x){return x&&this.containsComments()};
_.a.computeEpRestyle=function(x){return _.B("web_ep_restyling")&&x&&this.containsComments()};
_.a.computeIsContinuationCommentSection=function(x){return(x==null?void 0:x.targetId)==="shorts-engagement-panel-comments-section"||(x==null?void 0:x.targetId)==="comments-section"||(x==null?void 0:x.targetId)==="engagement-panel-comments-section"};
_.a.computeSuppressPaddingDisclaimer=function(){var x,G,D,K;return!!((x=this.data)==null?0:(G=x.contents)==null?0:(D=G[0])==null?0:(K=D.productListHeaderRenderer)==null?0:K.suppressPaddingDisclaimer)};
_.a.computeHeaderStyle=function(x){switch(x==null?void 0:x.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.a.dataChanged=function(){this.firstCommentsLoaded=!1};
_.a.observeDataContentsLength=function(){var x,G;((x=this.data)==null?0:(G=x.contents)==null?0:G.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.a.onYtDismissibleItemDismissedChange=function(x){this._setItemDismissed(x.type==="yt-dismissible-item-dismissed")};
_.a.triggerContinuations=function(){for(var x=_.kA(this.hostElement).querySelector("#continuations").children,G=0;G<x.length;G++)x[G].trigger()};
_.a.triggerInitialContinuations=function(){for(var x=_.kA(this.hostElement).querySelector("#continuations").children,G=0;G<x.length;G++)x[G].triggerIfNotPreviouslyTriggered()};
_.a.handleYtItemSectionContinuation=function(x,G){var D;G&&((D=this.data)==null?void 0:D.sectionIdentifier)!==G||(this.set("data.continuations",[x]),this.triggerContinuations())};
_.a.handleYtItemSectionReplace=function(x,G){var D;G&&((D=this.data)==null?void 0:D.sectionIdentifier)!==G||(this.set("data.contents",x),this.set("data.continuations",[]))};
_.a.computeUseHeightHack=function(x){return x&&!_.B("kevlar_disable_height_hack")};
_.a.computeTopSpacingZero=function(x){return x};
_.a.continuationShowButtonChanged=function(){var x=_.kA(this.hostElement).querySelector("ytd-continuation-item-renderer");x&&(x.showButton=this.continuationShowButton)};
_.a.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Xt("data-changed",this.data))};
_.Nq.Object.defineProperties(C_.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.B("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 x,G,D;return!!((x=this.data)==null?0:(G=x.contents)==null?0:(D=G[0])==null?0:D.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var x,G,D,K,z,y,c;return!!((x=this.data)==null?0:(G=x.contents)==null?0:(D=G[0])==null?0:(K=D.shelfRenderer)==null?0:(z=K.content)==null?0:(y=z.gridRenderer)==null?0:(c=y.targetId)==null?0:c.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var x,G,D;return!!((x=this.data)==null?0:(G=x.contents)==null?0:(D=G[0])==null?0:D.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var x,G,D;return!!((x=this.data)==null?0:(G=x.contents)==null?0:(D=G[0])==null?0:D.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.Db("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.B("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.B("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){if(this.isSearchDova)return Math.ceil((this.JSC$14496_cachedViewportHeight-130)/150)},
set:function(){}}});
C_.prototype.dataChangedForBinding=C_.prototype.dataChangedForBinding;C_.prototype.continuationShowButtonChanged=C_.prototype.continuationShowButtonChanged;C_.prototype.onYtDismissibleItemDismissedChange=C_.prototype.onYtDismissibleItemDismissedChange;C_.prototype.observeDataContentsLength=C_.prototype.observeDataContentsLength;C_.prototype.dataChanged=C_.prototype.dataChanged;C_.prototype.onServiceRequestCompleted=C_.prototype.onServiceRequestCompleted;C_.prototype.onLoadReloadContinuation=C_.prototype.onLoadReloadContinuation;
C_.prototype.onRetrieveLocation=C_.prototype.onRetrieveLocation;C_.prototype.commentsHidePanelButtonChanged=C_.prototype.commentsHidePanelButtonChanged;C_.prototype.dispatchChipBarIsSticky=C_.prototype.dispatchChipBarIsSticky;C_.prototype.updateLockupContainerTypes=C_.prototype.updateLockupContainerTypes;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],C_.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],C_.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],C_.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.fS.YtLazyListBehavior),_.N("design:type",Object)],C_.prototype,"ytLazyListBehavior",void 0);_.q([_.I(_.Xr.YtNextContinuationBehavior),_.N("design:type",Object)],C_.prototype,"ytNextContinuationBehavior",void 0);
_.q([_.I(_.Oh),_.N("design:type",Object)],C_.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],C_.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],C_.prototype,"ytdReduxBehavior",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],C_.prototype,"darkerPanels",void 0);_.q([_.R(),_.N("design:type",Object)],C_.prototype,"data",void 0);
_.q([_.R(),_.N("design:type",Boolean)],C_.prototype,"engagementPanel",void 0);_.q([_.R(),_.N("design:type",Object)],C_.prototype,"commentsHidePanelButton",void 0);_.q([_.R(),_.N("design:type",Object)],C_.prototype,"isWatchGrid",void 0);_.q([_.R(),_.N("design:type",Object)],C_.prototype,"continuationShowButton",void 0);_.q([_.R({computed:"computeIsContinuationCommentSection(data)"}),_.N("design:type",Boolean)],C_.prototype,"continuationIsCommentsSection",void 0);
_.q([_.R({value:!0}),_.N("design:type",Boolean)],C_.prototype,"autoFill",void 0);_.q([_.R(),_.N("design:type",Boolean)],C_.prototype,"continuationDisablePrescanVisibility",void 0);_.q([_.R(),_.N("design:type",Boolean)],C_.prototype,"isReloading",void 0);_.q([_.R(),_.N("design:type",Object)],C_.prototype,"isSearch",void 0);_.q([_.R(),_.N("design:type",Object)],C_.prototype,"isConstrainedList",void 0);_.q([_.R(),_.N("design:type",Object)],C_.prototype,"isWatch",void 0);
_.q([_.R(),_.N("design:type",Object)],C_.prototype,"eligibleToSwitchToGrid",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],C_.prototype,"notSticky",void 0);_.q([_.R({selector:_.X4}),_.N("design:type",Object)],C_.prototype,"isGridViewEnabled",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.N("design:type",Object)],C_.prototype,"epRestyle",void 0);
_.q([_.U("isWatch"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],C_.prototype,"hideShortsShelfHeader",null);_.q([_.U("isSearch","isWatch"),_.N("design:type",String),_.N("design:paramtypes",[])],C_.prototype,"thumbnailWidth",null);_.q([_.U("isSearch","isWatch"),_.N("design:type",String),_.N("design:paramtypes",[])],C_.prototype,"sizing",null);
_.q([_.U("isWatch","isGridViewEnabled","data"),_.R({reflectToAttribute:!0}),_.N("design:type",Number),_.N("design:paramtypes",[])],C_.prototype,"lockupContainerType",null);_.q([_.yf("lockupContainerType","data"),_.N("design:type",Function),_.N("design:paramtypes",[Number]),_.N("design:returntype")],C_.prototype,"updateLockupContainerTypes",null);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],C_.prototype,"pageSubtype",void 0);
_.q([_.R({computed:"computeContainerWidth()"}),_.N("design:type",Number)],C_.prototype,"containerWidth",void 0);_.q([_.R(),_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],C_.prototype,"isPlaylist",null);_.q([_.R(),_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],C_.prototype,"isClipList",null);_.q([_.R(),_.N("design:type",Object)],C_.prototype,"isCarouselInFeed",void 0);
_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],C_.prototype,"isPlaylistVideoContainer",null);_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],C_.prototype,"isSearchFrictionPage",null);_.q([_.R({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.N("design:type",Boolean)],C_.prototype,"useHeightHack",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.N("design:type",Object)],C_.prototype,"topSpacingZero",void 0);_.q([_.R({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.N("design:type",Boolean)],C_.prototype,"showButton",void 0);_.q([_.R(),_.N("design:type",Boolean)],C_.prototype,"firstCommentsLoaded",void 0);_.q([_.R(),_.N("design:type",Object)],C_.prototype,"continuationIsInitialLoad",void 0);
_.q([_.R(),_.N("design:type",Boolean)],C_.prototype,"isSearchDova",void 0);_.q([_.R({reflectToAttribute:!0,readOnly:!0}),_.N("design:type",Boolean)],C_.prototype,"itemDismissed",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.N("design:type",String)],C_.prototype,"sectionIdentifier",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.N("design:type",String)],C_.prototype,"fitContainer",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.N("design:type",Boolean)],C_.prototype,"hasDestinationShelfRenderer",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.N("design:type",Boolean)],C_.prototype,"staticCommentsHeader",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],C_.prototype,"enableSqueezebackPanels",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],C_.prototype,"enableAnchoredPanel",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.N("design:type",Boolean)],C_.prototype,"hasSectionGroupViewModel",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.N("design:type",Boolean)],C_.prototype,"hasQrCodeRenderer",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.N("design:type",Boolean)],C_.prototype,"suppressDisclaimerSeparator",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.N("design:type",String)],C_.prototype,"headerStyle",void 0);_.q([_.U("isSearch"),_.N("design:type",Object),_.N("design:paramtypes",[])],C_.prototype,"lockupExperiments",null);
_.q([_.U("isSearch"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],C_.prototype,"typographyBump",null);_.q([_.cD("#header"),_.N("design:type",HTMLElement)],C_.prototype,"header",void 0);_.q([_.yf("notSticky"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],C_.prototype,"dispatchChipBarIsSticky",null);
_.q([_.yf("commentsHidePanelButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],C_.prototype,"commentsHidePanelButtonChanged",null);_.q([_.oe("yt-retrieve-location"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],C_.prototype,"onRetrieveLocation",null);
_.q([_.oe("yt-load-reload-continuation"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Function]),_.N("design:returntype")],C_.prototype,"onLoadReloadContinuation",null);_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],C_.prototype,"onServiceRequestCompleted",null);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],C_.prototype,"dataChanged",null);
_.q([_.Z6("data.contents.length"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],C_.prototype,"observeDataContentsLength",null);_.q([_.oe("yt-dismissible-item-dismissed"),_.oe("yt-dismissible-item-undismissed"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],C_.prototype,"onYtDismissibleItemDismissedChange",null);
_.q([_.yf("continuationShowButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],C_.prototype,"continuationShowButtonChanged",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],C_.prototype,"dataChangedForBinding",null);C_=_.q([_.d({is:"ytd-item-section-renderer",disableElementRegistration:!0})],C_);
_.w(C_,"ytd-item-section-renderer",function(){if(AHh!==void 0)return AHh;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return AHh=x},{mode:1});var eLi;var SSh=_.gK(_.Wg("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var XJQ={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var ZAi={},RIP=(ZAi[0]={title:_.tN(_.Wg("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.tN(_.Wg("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:JN("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},ZAi[1]={title:_.tN(_.Wg("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:JN("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},ZAi);_.HH("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var I9=function(){var x=_.n.apply(this,arguments)||this;x.allVideosCount=0;x.allPlaylistCount=0;x.shouldRenderDownloadsBanner=!1;x.hasOptedIntoSmartDownloads=!1;x.areAllSmartDownloadsDeleted=!1;x.smartDownloadsCompleted=!1;return x};
_.m(I9,_.n);I9.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
I9.prototype.attached=function(){this.downloadsToRenderChanged()};
I9.prototype.detached=function(){this.set("renderableData",{})};
I9.prototype.downloadsToRenderChanged=function(){var x=_.wK().getState().entities,G=_.Bk(x),D=_.B("kevlar_playlist_dl_page_killswitch")?GcV(x):_.rK(x),K=_.kb$(x),z=_.MW(G);x=_.sA(x);this.set("renderableData",iKf(D,G,K,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,z,x))};
I9.prototype.downloadsToRenderChanged=I9.prototype.downloadsToRenderChanged;_.q([_.I(_.$l),_.N("design:type",Object)],I9.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],I9.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],I9.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],I9.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],I9.prototype,"renderableData",void 0);_.q([_.R({selector:_.M1d}),_.N("design:type",Object)],I9.prototype,"allVideosCount",void 0);_.q([_.R({selector:C3n}),_.N("design:type",Object)],I9.prototype,"allPlaylistCount",void 0);_.q([_.R({selector:_.rzD}),_.N("design:type",Object)],I9.prototype,"shouldRenderDownloadsBanner",void 0);_.q([_.R({selector:_.sLd}),_.N("design:type",Object)],I9.prototype,"hasOptedIntoSmartDownloads",void 0);
_.q([_.R({selector:_.YVE}),_.N("design:type",Object)],I9.prototype,"areAllSmartDownloadsDeleted",void 0);_.q([_.R({selector:m6D}),_.N("design:type",Object)],I9.prototype,"smartDownloadsCompleted",void 0);_.q([_.Z6("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","allPlaylistCount"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],I9.prototype,"downloadsToRenderChanged",null);
I9=_.q([_.d({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],I9);
_.w(I9,"ytd-offline-item-section-renderer",function(){if(eLi!==void 0)return eLi;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return eLi=x},
{mode:1});var MQE;var QB9;var jW=function(){return _.n.apply(this,arguments)||this};
_.m(jW,_.n);
jW.prototype.onDataChanged=function(){if(this.JSC$14522_lastData){var x=this.getFilterClass(this.JSC$14522_lastData.status);x&&this.hostElement.classList.remove(x)}var G;(x=this.getFilterClass((G=this.data)==null?void 0:G.status))&&this.hostElement.classList.add(x);x==="selected"?_.kA(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.kA(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");x==="disabled"?_.kA(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.kA(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14522_lastData=this.data};
jW.prototype.getFilterClass=function(x){switch(x){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
jW.prototype.onDataChanged=jW.prototype.onDataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],jW.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],jW.prototype,"data",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jW.prototype,"onDataChanged",null);jW=_.q([_.d({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],jW);
_.w(jW,"ytd-search-filter-renderer",function(){if(QB9!==void 0)return QB9;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return QB9=x},{mode:_.Ge("kevlar_poly_si_batch_j075")?1:2});var O8=function(){return _.n.apply(this,arguments)||this};
_.m(O8,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],O8.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],O8.prototype,"data",void 0);O8=_.q([_.d({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],O8);
_.w(O8,"ytd-search-filter-group-renderer",function(){if(MQE!==void 0)return MQE;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return MQE=x},{mode:_.Ge("kevlar_poly_si_batch_j075")?1:2});var pfs;var XA=function(){return _.n.apply(this,arguments)||this};
_.m(XA,_.n);XA.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.GI());this.isCollapsed=!this.isCollapsed};
XA.prototype.navigateToAboutTheseResultsPage=function(){var x=Q$("https://www.youtube.com/howyoutubeworks/product-features/search/");x?_.jr(window,x,"_blank"):_.RE(Error("Nh"))};
XA.prototype.dataChanged=function(){this.isCollapsed=!0};
XA.prototype.computeShowBottomBorder=function(){var x,G,D;return!!((x=this.data)==null?0:(G=x.button)==null?0:G.toggleButtonRenderer)||!((D=this.data)==null||!D.aboutTheseResultsButton)};
XA.prototype.dataChanged=XA.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],XA.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],XA.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.N("design:type",Boolean)],XA.prototype,"showBottomBorder",void 0);_.q([_.R(),_.N("design:type",Boolean)],XA.prototype,"renderCollapsibleMenu",void 0);
_.q([_.R(),_.N("design:type",Boolean)],XA.prototype,"isCollapsed",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],XA.prototype,"dataChanged",null);XA=_.q([_.d({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],XA);
_.w(XA,"ytd-search-sub-menu-renderer",function(){if(pfs!==void 0)return pfs;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return pfs=x},{mode:1});var VQs;var bAs=new _.wq("SECTION_LIST_RENDERER_TOKEN");var LQ8;var Af=function(){return _.n.apply(this,arguments)||this};
_.m(Af,_.n);Af.prototype.computeStyle=function(x){return x?x.toLowerCase().replace(/_/g,"-"):""};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Af.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Af.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],Af.prototype,"headerStyle",void 0);Af=_.q([_.d({is:"ytd-text-header-renderer",disableElementRegistration:!0})],Af);
_.w(Af,"ytd-text-header-renderer",function(){if(LQ8!==void 0)return LQ8;var x=document.createElement("template");_.F(x,"\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");x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return LQ8=x},{mode:1});var BWJ;var U8=function(){return _.n.apply(this,arguments)||this};
_.m(U8,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],U8.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],U8.prototype,"data",void 0);U8=_.q([_.d({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],U8);
_.w(U8,"ytd-minor-moment-header-renderer",function(){if(BWJ!==void 0)return BWJ;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return BWJ=x},{mode:1});var r48;var R9=function(){return _.n.apply(this,arguments)||this};
_.m(R9,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],R9.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],R9.prototype,"data",void 0);R9=_.q([_.d({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],R9);
_.w(R9,"ytd-minor-moment-setting-alert-renderer",function(){if(r48!==void 0)return r48;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return r48=x},{mode:1});var sBq;var YKJ;var SW=function(){var x=_.n.apply(this,arguments)||this;x.booleanSettingById=!1;x.smartDownloadsEnabledVE=_.BH(128287);x.smartDownloadsDisabledVE=_.BH(128286);x.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return x};
_.m(SW,_.n);_.a=SW.prototype;_.a.attachSmartDownloadsSettingVes=function(){var x;this.activeVeForLogging||((x=this.data)==null?void 0:x.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.hz(_.en(),this.smartDownloadsEnabledVE),_.hz(_.en(),this.smartDownloadsDisabledVE))};
_.a.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.h$(this.hostElement,"yt-settings-switch-ready")};
_.a.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.a.onSwitchChange=function(x){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(x=_.uo(x).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.B("kevlar_settings_switch_resolve_command_killswitch")?_.Eo().resolve(_.hm).resolveCommand(x,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(x)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.a.handleUpdateSettingsSwitch=function(x){(x=_.Y(x,ce7))&&this.data&&this.data.id===x.id&&this.set("data.enabled",!!x.enabled)};
_.a.onToggleSettingsSwitch=function(x,G){this.data&&this.data.id===x&&this.set("data.enabled",G!=null?G:!this.data.enabled)};
_.a.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.de.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.a.maybeLogSmartDownloadsSettingVisibility=function(){var x=_.CC(),G;x&&((G=this.data)==null?void 0:G.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.i0(x,[this.smartDownloadsEnabledVE]),_.gB(x,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.i0(x,[this.smartDownloadsDisabledVE]),_.gB(x,[this.smartDownloadsEnabledVE])))};
_.a.maybeLogSmartDownloadsSettingClick=function(){var x;((x=this.data)==null?void 0:x.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.G$(_.en(),this.activeVeForLogging)};
_.a.updateDataEnabledFromBinding=function(x){this.set("data.enabled",x.detail.value)};
_.Nq.Object.defineProperties(SW.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var x=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!x&&(x=this.ytRendererBehavior.getSimpleString(this.data.title));return x}}});
SW.prototype.dataChanged=SW.prototype.dataChanged;_.q([_.I(_.$l),_.N("design:type",Object)],SW.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],SW.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],SW.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],SW.prototype,"ytComponentBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],SW.prototype,"data",void 0);_.q([_.R({selector:function(x,G){if(Object.keys(x==null?void 0:x.entities).length)switch(G){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return D6O(x.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.N("design:type",Object)],SW.prototype,"booleanSettingById",void 0);_.q([_.R(),_.N("design:type",_.$m)],SW.prototype,"activeVeForLogging",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],SW.prototype,"toggleAriaLabel",null);_.q([_.Z6("data"),_.Z6("booleanSettingById"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],SW.prototype,"dataChanged",null);
SW=_.q([_.d({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],SW);
_.w(SW,"ytd-settings-switch-renderer",function(){if(YKJ!==void 0)return YKJ;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return YKJ=x},{mode:1});var n_=function(){return _.n.apply(this,arguments)||this};
_.m(n_,_.n);n_.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}}}}};
_.Nq.Object.defineProperties(n_.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var x=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(x+=" remove-left-margin");this.data.extraBottomSpace&&(x+=" extra-bottom-space");return x}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],n_.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],n_.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],n_.prototype,"data",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],n_.prototype,"contentsClassName",null);n_=_.q([_.d({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],n_);
_.w(n_,"ytd-minor-moment-setting-section-renderer",function(){if(sBq!==void 0)return sBq;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return sBq=x},{mode:1});var mTs;var iE=function(){return _.n.apply(this,arguments)||this};
_.m(iE,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],iE.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],iE.prototype,"componentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],iE.prototype,"data",void 0);iE=_.q([_.d({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],iE);
_.w(iE,"ytd-empty-product-details-renderer",function(){if(mTs!==void 0)return mTs;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return mTs=x},{mode:1});var HAu;var $T7;var gJ=function(){var x=_.n.apply(this,arguments)||this;x.expanded=!0;return x};
_.m(gJ,_.n);gJ.prototype.getBadgeRowClass=function(x,G,D){for(var K=_.l(this.hostElement.querySelectorAll("yt-img-shadow")),z=K.next();!z.done;z=K.next())z.value.onShow();x=x.selected;return D?x!==-1?x===G?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(x!==void 0?x:0)===G?"badge-line":"badge-hidden"};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],gJ.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],gJ.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],gJ.prototype,"expanded",void 0);gJ=_.q([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],gJ);
_.w(gJ,"ytd-sponsorships-loyalty-badges-renderer",function(){if($T7!==void 0)return $T7;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return $T7=x},{mode:1});var FQ7;var uE=function(){var x=_.n.apply(this,arguments)||this;x.expanded=!0;return x};
_.m(uE,_.n);uE.prototype.getContainerClasses=function(x,G){x=x?"expanded":"collapsed";G&&(x+=" item");return x};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],uE.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],uE.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],uE.prototype,"expanded",void 0);uE=_.q([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],uE);
_.w(uE,"ytd-sponsorships-perk-renderer",function(){if(FQ7!==void 0)return FQ7;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return FQ7=x},{mode:1});var Cj8;var dJ=function(){var x=_.n.apply(this,arguments)||this;x.expanded=!0;return x};
_.m(dJ,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],dJ.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],dJ.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],dJ.prototype,"expanded",void 0);dJ=_.q([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],dJ);
_.w(dJ,"ytd-sponsorships-perks-renderer",function(){if(Cj8!==void 0)return Cj8;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Cj8=x},{mode:1});var wJ=function(){var x=_.n.apply(this,arguments)||this;x.isCollapsed=!1;return x};
_.m(wJ,_.n);wJ.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
wJ.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
wJ.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var x;this.expandCollapseButton=_.Y((x=this.data)==null?void 0:x.expandButton,_.$V)}else{var G;this.expandCollapseButton=_.Y((G=this.data)==null?void 0:G.collapseButton,_.$V)}};
wJ.prototype.updateExpandCollapseButton=wJ.prototype.updateExpandCollapseButton;wJ.prototype.onDataChanged=wJ.prototype.onDataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],wJ.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],wJ.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],wJ.prototype,"isCollapsed",void 0);_.q([_.R(),_.N("design:type",Object)],wJ.prototype,"expandCollapseButton",void 0);
_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wJ.prototype,"onDataChanged",null);_.q([_.Z6("data","isCollapsed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wJ.prototype,"updateExpandCollapseButton",null);wJ=_.q([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],wJ);
_.w(wJ,"ytd-sponsorships-expandable-perks-renderer",function(){if(HAu!==void 0)return HAu;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return HAu=x},{mode:1});var IWo;var qo=function(){return _.n.apply(this,arguments)||this};
_.m(qo,_.n);qo.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],qo.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],qo.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],qo.prototype,"data",void 0);qo=_.q([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],qo);
_.w(qo,"ytd-sponsorships-actionable-message-renderer",function(){if(IWo!==void 0)return IWo;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return IWo=x},{mode:1});var jBk;var No=function(){return _.n.apply(this,arguments)||this};
_.m(No,_.n);_.a=No.prototype;_.a.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.a.getExpansionIcon=function(x){return x?"COLLAPSE":"EXPAND"};
_.a.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.a.computeMessageContainerStyle=function(x){var G=x.expandableItems?" style-clickable":"";return x.messageContainerStyle?x.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+G:"style-unspecified"+G};
_.a.isSinglePerk=function(x){return!!x.messageContainerStyle&&(x.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||x.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.a.onExpandedChanged=function(){var x=this;if(this.expanded)for(var G=_.l(this.hostElement.querySelectorAll("yt-img-shadow")),D=G.next();!D.done;D=G.next())D.value.onShow();_.w1(this,function(){_.h$(x.hostElement,"yt-refit")})};
_.a.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
No.prototype.onDataChanged=No.prototype.onDataChanged;No.prototype.onExpandedChanged=No.prototype.onExpandedChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],No.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],No.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],No.prototype,"data",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],No.prototype,"expanded",void 0);
_.q([_.yf("expanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],No.prototype,"onExpandedChanged",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],No.prototype,"onDataChanged",null);No=_.q([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],No);
_.w(No,"ytd-sponsorships-expandable-message-renderer",function(){if(jBk!==void 0)return jBk;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return jBk=x},{mode:_.Ge("kevlar_poly_si_batch_j028")?1:2});var OAJ;var vB=function(){return _.n.apply(this,arguments)||this};
_.m(vB,_.n);vB.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"}}}}};
vB.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.Y(this.data.endButton,_.$V).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
vB.prototype.onDataChanged=vB.prototype.onDataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],vB.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],vB.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],vB.prototype,"data",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vB.prototype,"onDataChanged",null);
vB=_.q([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],vB);
_.w(vB,"ytd-sponsorships-heading-renderer",function(){if(OAJ!==void 0)return OAJ;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return OAJ=x},{mode:1});var Xfh;var Jf=function(){return _.n.apply(this,arguments)||this};
_.m(Jf,_.n);_.q([_.R(),_.N("design:type",Object)],Jf.prototype,"data",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Jf.prototype,"ytRendererBehavior",void 0);Jf=_.q([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],Jf);
_.w(Jf,"ytd-sponsorships-links-renderer",function(){if(Xfh!==void 0)return Xfh;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Xfh=x},{mode:1});var A4q;var f_=function(){return _.n.apply(this,arguments)||this};
_.m(f_,_.n);_.a=f_.prototype;_.a.onDataChanged=function(){if(this.data&&this.data.expandableItems){var x;(x=_.kA(this.hostElement).querySelector("tp-yt-paper-button"))==null||x.setAttribute("role","button")}else{var G;(G=_.kA(this.hostElement).querySelector("tp-yt-paper-button"))==null||G.removeAttribute("role")}};
_.a.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.a.getExpansionIcon=function(x){return x?"COLLAPSE":"EXPAND"};
_.a.getTileClasses=function(x){return x?"tile expandable-tile":"tile"};
_.a.getButtonDisabled=function(x){return x?void 0:""};
f_.prototype.onDataChanged=f_.prototype.onDataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],f_.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],f_.prototype,"data",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],f_.prototype,"expanded",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],f_.prototype,"onDataChanged",null);
f_=_.q([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],f_);
_.w(f_,"ytd-sponsorships-list-tile-renderer",function(){if(A4q!==void 0)return A4q;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return A4q=x},{mode:1});var UTE;var RLu;var tf=function(){return _.n.apply(this,arguments)||this};
_.m(tf,_.n);tf.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],tf.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],tf.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],tf.prototype,"data",void 0);tf=_.q([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],tf);
_.w(tf,"ytd-sponsorships-promotion-renderer",function(){if(RLu!==void 0)return RLu;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return RLu=x},{mode:1});var SKs;var kj=function(){return _.n.apply(this,arguments)||this};
_.m(kj,_.n);kj.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],kj.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],kj.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],kj.prototype,"data",void 0);kj=_.q([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],kj);
_.w(kj,"ytd-sponsorships-purchase-option-renderer",function(){if(SKs!==void 0)return SKs;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return SKs=x},{mode:1});var nHq;var iAE;var PB=function(){return _.n.apply(this,arguments)||this};
_.m(PB,_.n);_.q([_.R(),_.N("design:type",Object)],PB.prototype,"data",void 0);PB=_.q([_.d({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],PB);
_.w(PB,"ytd-ypc-offer-promo-renderer",function(){if(iAE!==void 0)return iAE;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return iAE=x},{mode:1});var E8=function(){return _.n.apply(this,arguments)||this};
_.m(E8,_.n);_.a=E8.prototype;
_.a.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"}}}}};
_.a.expansionCTA=function(x,G){return x&&(G?x.collapseCallToAction:x.expansionCallToAction)};
_.a.getExpansionIcon=function(x){return x?"COLLAPSE":"EXPAND"};
_.a.expansionCallToActionTap=function(){var x=this;this.expanded=!this.expanded;_.w1(this,function(){_.h$(x.hostElement,"yt-refit")})};
_.a.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var x,G=(x=this.data)==null?void 0:x.onVisible;G&&this.ytComponentBehavior.resolveCommand(G)};
_.a.computeDisplayTitle=function(x){return!(!x||this.titledisplaystatus!=="show")};
_.a.computeDisplaySeparator=function(){return!1};
_.a.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
E8.prototype.onDataChanged=E8.prototype.onDataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],E8.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],E8.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],E8.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],E8.prototype,"data",void 0);
_.q([_.R({value:!1}),_.N("design:type",Boolean)],E8.prototype,"expanded",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],E8.prototype,"purchaseButtonClicked",void 0);_.q([_.R({reflectToAttribute:!0,value:"show"}),_.N("design:type",String)],E8.prototype,"titledisplaystatus",void 0);_.q([_.R({computed:"computeDisplayTitle(data.title)"}),_.N("design:type",Boolean)],E8.prototype,"displayTitle",void 0);
_.q([_.R({computed:"computeDisplaySeparator(data)"}),_.N("design:type",Boolean)],E8.prototype,"displaySeparator",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],E8.prototype,"onDataChanged",null);E8=_.q([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],E8);
_.w(E8,"ytd-sponsorships-tier-renderer",function(){if(nHq!==void 0)return nHq;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return nHq=x},{mode:2});var hf=function(){return _.n.apply(this,arguments)||this};
_.m(hf,_.n);
hf.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"}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],hf.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],hf.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],hf.prototype,"data",void 0);hf=_.q([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],hf);
_.w(hf,"ytd-sponsorships-management-renderer",function(){if(UTE!==void 0)return UTE;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return UTE=x},{mode:1});var gHu;var xf=function(){return _.n.apply(this,arguments)||this};
_.m(xf,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],xf.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],xf.prototype,"data",void 0);xf=_.q([_.d({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],xf);
_.w(xf,"ytd-open-in-native-app-view-model",function(){if(gHu!==void 0)return gHu;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return gHu=x},{mode:_.Ge("kevlar_poly_si_batch_j028")?1:2});var uzq;var dTq;var wf8=_.gv(["top-"]),qKE=_.gv(["bottom-"]),NWi=_.gv(["left-"]),vH7=_.gv(["right-"]),J49={},fWZ=function(x,G,D){x.removeAttribute("top-"+D);x.removeAttribute("bottom-"+D);x.removeAttribute("left-"+D);x.removeAttribute("right-"+D);G&&(G.top&&_.iH([_.Es(wf8)],x,"top-"+D,G.top),G.bottom&&_.iH([_.Es(qKE)],x,"bottom-"+D,G.bottom),G.left&&_.iH([_.Es(NWi)],x,"left-"+D,G.left),G.right&&_.iH([_.Es(vH7)],x,"right-"+D,G.right))};
J49.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(x){var G,D=_.kA((G=this.hostElement)!=null?G:this),K;G=this.cardItemBoxBehaviorMarginTargetId&&D?D.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(K=this.hostElement)!=null?K:this;fWZ(G,x,"margin")},
cardItemContainerPaddingChanged_:function(x){var G,D=_.kA((G=this.hostElement)!=null?G:this),K;G=this.cardItemBoxBehaviorPaddingTargetId&&D?D.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(K=this.hostElement)!=null?K:this;fWZ(G,x,"padding")}}];var GV={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 tQk;var khh;var Dd=function(){return _.n.apply(this,arguments)||this};
_.m(Dd,_.n);Dd.prototype.textColorChanged_=function(){this.hostElement.style.color=GV[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
Dd.prototype.textColorChanged_=Dd.prototype.textColorChanged_;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Dd.prototype,"ytRendererBehavior",void 0);_.q([_.I(J49.YtCardItemBoxBehavior),_.N("design:type",Object)],Dd.prototype,"ytCardItemBoxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Dd.prototype,"data",void 0);_.q([_.yf("data.textColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Dd.prototype,"textColorChanged_",null);
Dd=_.q([_.HD({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],Dd);
_.w(Dd,"yt-card-item-text-renderer",function(){if(khh===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;tQk===void 0&&(tQk=document.createElement("template"));var K=tQk;D.call(G,K.content.cloneNode(!0),x.content.firstChild);khh=x}x=khh;return x},{mode:2});var PjZ;var EHi;var K8=function(){return _.n.apply(this,arguments)||this};
_.m(K8,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],K8.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],K8.prototype,"data",void 0);K8=_.q([_.HD({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],K8);
_.w(K8,"yt-card-item-badge-renderer",function(){if(EHi===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;PjZ===void 0&&(PjZ=document.createElement("template"));var K=PjZ;D.call(G,K.content.cloneNode(!0),x.content.firstChild);EHi=x}x=EHi;return x},{mode:2});var hLs;var xP8;var zV=function(){return _.n.apply(this,arguments)||this};
_.m(zV,_.n);zV.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],zV.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],zV.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],zV.prototype,"data",void 0);zV=_.q([_.HD({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],zV);
_.w(zV,"yt-card-item-text-collection-renderer",function(){if(xP8===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;hLs===void 0&&(hLs=document.createElement("template"));var K=hLs;D.call(G,K.content.cloneNode(!0),x.content.firstChild);xP8=x}x=xP8;return x},{mode:2});var GMu;var DPo;var au=function(){return _.n.apply(this,arguments)||this};
_.m(au,_.n);au.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]]"}}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],au.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],au.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],au.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Number)],au.prototype,"iconSize",void 0);au=_.q([_.HD({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],au);
_.w(au,"yt-card-item-text-with-button-renderer",function(){if(DPo===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;GMu===void 0&&(GMu=document.createElement("template"));var K=GMu;D.call(G,K.content.cloneNode(!0),x.content.firstChild);DPo=x}x=DPo;return x},{mode:2});var ou=function(){return _.n.apply(this,arguments)||this};
_.m(ou,_.n);ou.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"}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],ou.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],ou.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],ou.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],ou.prototype,"data",void 0);ou=_.q([_.d({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],ou);
_.w(ou,"ytd-commerce-cart-summary-line-item-renderer",function(){if(dTq!==void 0)return dTq;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return dTq=x},{mode:1});_.HH("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var y5=function(){var x=_.n.apply(this,arguments)||this;x.hidden=!1;return x};
_.m(y5,_.n);_.a=y5.prototype;_.a.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"}}}}};
_.a.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.a.updateSummary=function(){var x=this.commerceCartCheckoutButtonEntity,G;if(((G=this.data)==null?0:G.cartButton)&&x.checkoutSummaryText){var D,K=Iy((D=this.data)==null?void 0:D.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+K+".cardItemTextRenderer.text",j8(x.checkoutSummaryText));if(x.checkoutDetailText){var z;D=Iy((z=this.data)==null?void 0:z.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+D+".cardItemTextRenderer.text",j8(x.checkoutDetailText))}if(x.checkoutAdditionalMetadataText){var y;
z=Iy((y=this.data)==null?void 0:y.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+z+".cardItemTextRenderer.text",j8(x.checkoutAdditionalMetadataText))}}else x.estimatedTotalPrice&&(y=Iy((K=this.data)==null?void 0:K.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+y+".cardItemTextRenderer.text",j8(x.estimatedTotalPrice)))};
_.a.updateIsHidden=function(){var x,G=(x=this.commerceCartCheckoutButtonEntity)==null?void 0:x.isHidden;G!==void 0&&(this.hidden=G)};
_.a.updateCheckoutButton=function(){var x,G=(x=this.commerceCartCheckoutButtonEntity)==null?void 0:x.isDisabled;G!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",G);var D;x=(D=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:D.innertubeCommand;x!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",x);var K;D=(K=this.commerceCartCheckoutButtonEntity)==null?void 0:K.checkoutButtonText;D!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:D})};
y5.prototype.entityChanged=y5.prototype.entityChanged;_.q([_.I(_.$l),_.N("design:type",Object)],y5.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],y5.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],y5.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],y5.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],y5.prototype,"fullWidth",void 0);_.q([_.R(),_.N("design:type",Object)],y5.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],y5.prototype,"compact",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],y5.prototype,"hidden",void 0);
_.q([_.R({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:Q7C}),_.N("design:type",Object)],y5.prototype,"commerceCartCheckoutButtonEntity",void 0);_.q([_.yf("commerceCartCheckoutButtonEntity","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],y5.prototype,"entityChanged",null);y5=_.q([_.d({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],y5);
_.w(y5,"ytd-commerce-cart-checkout-button-renderer",function(){if(uzq!==void 0)return uzq;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return uzq=x},{mode:2});var KCo;_.zTJ={};
_.zTJ.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",_.ae(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.ae(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(x){!this.tappableItemBehaviorTapEnabled||x.keyCode!==13&&x.keyCode!==32||x.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var x=this.data.onTap;x.ypcGetCartEndpoint?(_.KW(this.hostElement,[x]),this.tappableItemBehaviorTapEnabled=!1):x.ypcOffersEndpoint?_.KW(this.hostElement,[x]):_.zl(this.hostElement,[x],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(x){this.tappableItemBehaviorTapEnabled=!!x},
tappableItemBehaviorOnTapEnabledChanged_:function(){var x=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(x.setAttribute("tabIndex",0),x.setAttribute("role","button")):(x.removeAttribute("tabIndex"),x.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(x){x.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var aVZ;var oIq;var l8=function(){return _.n.apply(this,arguments)||this};
_.m(l8,_.n);l8.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.$7("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.$7("sharingToggleButtonAndDefaultButton")}}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],l8.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],l8.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],l8.prototype,"data",void 0);l8=_.q([_.HD({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],l8);
_.w(l8,"yt-card-item-actions-renderer",function(){if(oIq===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;aVZ===void 0&&(aVZ=document.createElement("template"));var K=aVZ;D.call(G,K.content.cloneNode(!0),x.content.firstChild);oIq=x}x=oIq;return x},{mode:2});var y0i;var lVE;var c07;var TIi;var WCo;var eTi;var cc=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return x};
_.m(cc,_.n);cc.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
cc.prototype.handleDarkModeToggledAction_=function(x){this.isDarkTheme_=x};
cc.prototype.computeThemeImage_=function(x,G){if(!x||!x.imageLight)return!1;this.isCircular_=x.isCircular;x.imageWidth&&(this.hostElement.style.width=x.imageWidth+"px");x.imageHeight&&(this.hostElement.style.height=x.imageHeight+"px");x.borderWidth&&(this.image.style.borderWidth=x.borderWidth+"px",this.image.style.borderStyle="solid");x.borderColor&&(this.image.style.borderColor=_.jT(x.borderColor));return G&&x.imageDark?x.imageDark:x.imageLight};
cc.prototype.computeThemeIcon_=function(x){var G,D;if(!(x==null?0:(G=x.themedIcon)==null?0:(D=G.icon)==null?0:D.iconType))return!1;this.icon.style.color=GV[x.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(x.imageWidth||18)+"px";this.icon.style.height=(x.imageHeight||18)+"px";return _.aP(x.themedIcon.icon.iconType)};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],cc.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],cc.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(J49.YtCardItemBoxBehavior),_.N("design:type",Object)],cc.prototype,"ytCardItemBoxBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],cc.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],cc.prototype,"data",void 0);
_.q([_.R({value:!1}),_.N("design:type",Boolean)],cc.prototype,"fit",void 0);_.q([_.R(),_.N("design:type",Boolean)],cc.prototype,"isDarkTheme_",void 0);_.q([_.R({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.N("design:type",Object)],cc.prototype,"themeImage_",void 0);_.q([_.R({computed:"computeThemeIcon_(data)"}),_.N("design:type",Object)],cc.prototype,"themeIcon_",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Object)],cc.prototype,"isCircular_",void 0);
_.q([_.cD("#image"),_.N("design:type",Object)],cc.prototype,"image",void 0);_.q([_.cD("#icon"),_.N("design:type",Object)],cc.prototype,"icon",void 0);cc=_.q([_.HD({is:"yt-themed-image-renderer",disableElementRegistration:!0})],cc);
_.w(cc,"yt-themed-image-renderer",function(){if(eTi===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;WCo===void 0&&(WCo=document.createElement("template"));var K=WCo;D.call(G,K.content.cloneNode(!0),x.content.firstChild);eTi=x}x=eTi;return x},{mode:2});var TV=function(){return _.n.apply(this,arguments)||this};
_.m(TV,_.n);TV.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"}}}}};
TV.prototype.computeImagePlacement_=function(x){return x||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],TV.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],TV.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],TV.prototype,"data",void 0);_.q([_.R({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.N("design:type",String)],TV.prototype,"imagePlacement",void 0);
TV=_.q([_.HD({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],TV);
_.w(TV,"yt-card-item-text-with-image-renderer",function(){if(TIi===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;c07===void 0&&(c07=document.createElement("template"));var K=c07;D.call(G,K.content.cloneNode(!0),x.content.firstChild);TIi=x}x=TIi;return x},{mode:2});var Wc=function(){return _.n.apply(this,arguments)||this};
_.m(Wc,_.n);Wc.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"}}}}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Wc.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Wc.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Wc.prototype,"data",void 0);Wc=_.q([_.HD({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],Wc);
_.w(Wc,"yt-card-item-error-renderer",function(){if(lVE===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;y0i===void 0&&(y0i=document.createElement("template"));var K=y0i;D.call(G,K.content.cloneNode(!0),x.content.firstChild);lVE=x}x=lVE;return x},{mode:2});var Zpu;var MgZ;_.HH("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var ev=function(){return _.n.apply(this,arguments)||this};
_.m(ev,_.n);_.a=ev.prototype;
_.a.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"}}}}};
_.a.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.a.backgroundColorChanged_=function(){var x,G=(x=this.data)==null?void 0:x.backgroundColor;x=GV[G||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.kA(this.hostElement).querySelector("#main-content").style.backgroundColor=x};
_.a.headerPromoBackgroundColorChanged_=function(){var x,G=(x=this.data)==null?void 0:x.headerPromoBackgroundColor;x=GV[G||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.kA(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=x};
_.a.errorRendererVisibilityChanged_=function(){var x=this.isExpanded_,G;this.isErrorRendererVisible_=!((G=this.data)==null||!G.errorRenderer)&&!x};
_.a.onYtToggleButton_=function(x,G){this.isExpanded_=G.toggled};
ev.prototype.onYtToggleButton_=ev.prototype.onYtToggleButton_;ev.prototype.errorRendererVisibilityChanged_=ev.prototype.errorRendererVisibilityChanged_;ev.prototype.headerPromoBackgroundColorChanged_=ev.prototype.headerPromoBackgroundColorChanged_;ev.prototype.backgroundColorChanged_=ev.prototype.backgroundColorChanged_;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],ev.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],ev.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(J49.YtCardItemBoxBehavior),_.N("design:type",Object)],ev.prototype,"ytCardItemBoxBehavior",void 0);_.q([_.I(_.zTJ.YtTappableItemBehavior),_.N("design:type",Object)],ev.prototype,"ytTappableItemBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],ev.prototype,"data",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],ev.prototype,"isExpanded_",void 0);
_.q([_.R({value:!1}),_.N("design:type",Boolean)],ev.prototype,"isErrorRendererVisible_",void 0);_.q([_.yf("data.backgroundColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ev.prototype,"backgroundColorChanged_",null);_.q([_.yf("data.headerPromoBackgroundColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ev.prototype,"headerPromoBackgroundColorChanged_",null);
_.q([_.yf("data.errorRenderer","isExpanded_"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ev.prototype,"errorRendererVisibilityChanged_",null);_.q([_.oe("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[Event,Object]),_.N("design:returntype")],ev.prototype,"onYtToggleButton_",null);ev=_.q([_.HD({is:"yt-card-item-renderer",disableElementRegistration:!0})],ev);
_.w(ev,"yt-card-item-renderer",function(){if(MgZ===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;Zpu===void 0&&(Zpu=document.createElement("template"));var K=Zpu;D.call(G,K.content.cloneNode(!0),x.content.firstChild);MgZ=x}x=MgZ;return x},{mode:2});_.HH("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var Zd=function(){var x=_.n.apply(this,arguments)||this;x.hidden=!1;return x};
_.m(Zd,_.n);_.a=Zd.prototype;_.a.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.a.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.a.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var x,G=(x=this.commerceCartHeaderEntity)==null?void 0:x.isHidden;G!==void 0&&(this.hidden=G)}};
_.a.updateTitle=function(){var x=this.commerceCartHeaderEntity.isDisabled,G,D,K=(D=_.Y((G=this.data)==null?void 0:G.item,V1Z))==null?void 0:D.headingRenderer;K&&(G=Iy(K,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+G+".0.cardItemTextRenderer.textColor",x?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.a.updateSummaryText=function(){var x=this.commerceCartHeaderEntity;if(this.compact){var G,D,K=(D=_.Y((G=this.data)==null?void 0:G.item,V1Z))==null?void 0:D.headingRenderer;K&&(G=Iy(K,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+G+".1.cardItemTextRenderer.text",x.shortHeaderSummaryText?j8(x.shortHeaderSummaryText):x.headerSummaryText?j8(x.headerSummaryText):""))}else{var z;if(G=(z=_.Y((K=this.data)==null?void 0:K.item,V1Z))==null?void 0:z.additionalInfoRenderer)G=Iy(G,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+G+".text",x.headerSummaryText?j8(x.headerSummaryText):"")}};
_.a.updateCheckoutButton=function(){var x=this.commerceCartHeaderEntity,G,D,K=(D=_.Y((G=this.data)==null?void 0:G.item,V1Z))==null?void 0:D.additionalInfoRenderer;G=Iy(K,"buttonRenderer");var z;D=(z=this.commerceCartHeaderEntity)==null?void 0:z.isButtonDisabled;var y;z=(y=this.commerceCartHeaderEntity)==null?void 0:y.isButtonHidden;D!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+G+".buttonRenderer.isDisabled",D);z!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
z);var c;x=(c=x.checkoutButtonCommand)==null?void 0:c.innertubeCommand;x!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+G+".buttonRenderer.command",x)};
Zd.prototype.entityChanged=Zd.prototype.entityChanged;_.q([_.I(_.$l),_.N("design:type",Object)],Zd.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Zd.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Zd.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Zd.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],Zd.prototype,"compact",void 0);_.q([_.R({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(x,G){return _.zm(x.entities,"commerceCartHeaderEntity",G)}}),
_.N("design:type",Object)],Zd.prototype,"commerceCartHeaderEntity",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Zd.prototype,"hidden",void 0);_.q([_.yf("commerceCartHeaderEntity","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Zd.prototype,"entityChanged",null);Zd=_.q([_.d({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],Zd);
_.w(Zd,"ytd-commerce-cart-header-renderer",function(){if(KCo!==void 0)return KCo;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return KCo=x},{mode:1});var Qw0;var pMq=_.TE(function(x,G){var D;return(D=x.onChangeCallback)==null?void 0:D.call(x,G)},1E3),Vg0=_.Nv(function(x){var G=x.data;
var D=x.iconMinus;x=x.iconPlus;var K=function(){return!!G().disabled},z=_.l(_.eO(0,void 0,"r56zNb")),y=z.next().value,c=z.next().value;
z={};z=_.ym("yt-spec-quantity-incrementer-shape__icon",(z["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return K()||y()===(G().onRemoveCommand?0:1)},z));
var W={};W=_.ym("yt-spec-quantity-incrementer-shape__icon",(W["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return y()>=G().maxValue||K()},W));
var e={};e=_.ym("yt-spec-quantity-incrementer-shape__text",(e["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return y()>G().maxValue},e["yt-spec-quantity-incrementer-shape__text--text-disabled"]=K,e));
var Q=_.WH(function(){if(y()===1){var V,L;(L=(V=G()).onRemoveCommand)==null||L.call(V)}V=y()>G().maxValue?G().maxValue:y()-1;c(V);pMq(G(),V);return!1}),p=_.WH(function(){if(y()===G().maxValue)return!1;
var V=y()+1;c(V);pMq(G(),V);return!1});
_.H6(function(){c(G().value)});
return _.M("quantity-incrementer-shape",null,_.M("div",{class:"yt-spec-quantity-incrementer-shape"},_.M("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return y()===(G().onRemoveCommand?0:1)||K()},
"aria-label":function(){return y()!==1?G().minusLabel:G().minimumReachedLabel},
"on:click":Q},_.M(_.b_,{model:{circular:!0}}),_.M("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.M("div",{class:z},D()))),_.M("div",{class:e},y),_.M("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return y()>=G().maxValue||K()},
"aria-label":function(){return y()!==G().maxValue?G().plusLabel:G().maximumReachedLabel},
"on:click":p},_.M(_.b_,{model:{circular:!0}}),_.M("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.M("div",{class:W},x())))))},"Pd");_.tn(_.Nv(function(x){function G(){D().onRemoveCommand&&_.UI(D().onRemoveCommand)}
var D=x.data;var K=_.lA(rT3,function(){return D().quantityIncrementerEntityKey});
return _.M("yt-quantity-incrementer-view-model",null,_.M(Vg0,{data:function(){var z=D(),y;var c=K()?!((y=K())==null||!y.disabled):!1;var W;y=K()?(W=K())==null?void 0:W.quantity:D().quantity;return dQL(z,c,G,y)},
iconMinus:function(){return _.M(_.Qm,{icon:"BAR_HORIZONTAL",className:_.cH("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.M(_.Qm,{icon:"ADD",className:_.cH("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"Qd"),"yt-quantity-incrementer-view-model",{props:{data:_.ik}});var MI=function(){var x=_.n.apply(this,arguments)||this;x.compact=!1;x.hasQuantityIncrementer=!1;return x};
_.m(MI,_.n);MI.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"}}}};
MI.prototype.computeHasQuantityIncrementer=function(){var x;return!!_.Y((x=this.data)==null?void 0:x.picker,rzE)};
MI.prototype.onLabelClick=function(){var x;(x=this.dropdownEl)==null||x.open()};
_.q([_.cD("ytd-dropdown-renderer"),_.N("design:type",Object)],MI.prototype,"dropdownEl",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],MI.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],MI.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],MI.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],MI.prototype,"quantityColor",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],MI.prototype,"compact",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.N("design:type",Object)],MI.prototype,"hasQuantityIncrementer",void 0);MI=_.q([_.d({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],MI);
_.w(MI,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(Qw0!==void 0)return Qw0;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Qw0=x},{mode:1});var bpZ;var LCE;var Q5=function(){return _.n.apply(this,arguments)||this};
_.m(Q5,_.n);Q5.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Q5.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
Q5.prototype.updateTitle=function(){var x=this.disabledCartItemEntity;x.disableActionName&&this.set("data.title",j8(x.disableActionName))};
Q5.prototype.updateButton=function(){var x,G=(x=this.disabledCartItemEntity.undoCommand)==null?void 0:x.innertubeCommand;G!==void 0&&(this.set("data.actionButton.buttonRenderer.command",G),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
Q5.prototype.entityChanged=Q5.prototype.entityChanged;_.q([_.I(_.$l),_.N("design:type",Object)],Q5.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Q5.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Q5.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(x,G){return _.zm(x.entities,"disabledCartItemEntity",G)}}),
_.N("design:type",Object)],Q5.prototype,"disabledCartItemEntity",void 0);_.q([_.R(),_.N("design:type",Object)],Q5.prototype,"data",void 0);_.q([_.yf("disabledCartItemEntity","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Q5.prototype,"entityChanged",null);Q5=_.q([_.d({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],Q5);
_.w(Q5,"ytd-disabled-cart-item-renderer",function(){if(LCE!==void 0)return LCE;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return LCE=x},{mode:1});_.HH("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var p8=function(){var x=_.n.apply(this,arguments)||this;x.compact=!1;x.hidden=!1;x.errorHidden=!1;x.noOnTap=!1;return x};
_.m(p8,_.n);_.a=p8.prototype;
_.a.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"}}}};
_.a.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.a.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var x=this.firstButtonElement;x.alignByText=!0;x.iconAlignByText=!0}};
_.a.computeNoOnTap=function(x){return!x};
_.a.updateQuantityColor=function(){if(this.pickerElement){var x,G=(x=this.commerceCartItemEntity)==null?void 0:x.quantityColor;this.pickerElement.quantityColor=G}};
_.a.updateTotalPriceColor=function(){var x,G=(x=this.commerceCartItemEntity)==null?void 0:x.totalPriceColor;if(G){var D;x=_.Y((D=this.data)==null?void 0:D.quantityPicker,LPs);if(D=_.Y(x==null?void 0:x.price,bBq))D.textColor=G}};
_.a.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var x,G=(x=this.commerceCartItemEntity)==null?void 0:x.isHidden;G!==void 0&&(this.hidden=G)}};
_.a.updateHideErrorMessage=function(){var x,G=(x=this.commerceCartItemEntity)==null?void 0:x.hideErrorMessage;G!==void 0&&(this.errorHidden=G)};
_.a.updateQuantity=function(){var x=this,G,D=(G=this.commerceCartItemEntity)==null?void 0:G.quantity,K;G=(K=this.commerceCartItemEntity)==null?void 0:K.totalPrice;if(D){this.updateTotalPriceColor();this.updateQuantityColor();var z;K=_.Y((z=this.data)==null?void 0:z.quantityPicker,LPs);if(z=_.Y(K==null?void 0:K.price,bBq))z.text=G?{simpleText:G.content}:void 0;if(G=_.Y(K==null?void 0:K.picker,rzE))G.quantity=D;var y;if(z=(y=_.Y(K==null?void 0:K.picker,HyZ))==null?void 0:y.entries){y=!1;G=void 0;z=
_.l(z);for(K=z.next();!K.done;K=z.next())K=K.value,K.dropdownItemRenderer&&(G||(G=K.dropdownItemRenderer),K.dropdownItemRenderer.isSelected=!1,D===K.dropdownItemRenderer.int32Value&&(y=!0,K.dropdownItemRenderer.isSelected=!0));!y&&G&&(G.isSelected=!0)}_.w1(this,function(){var c;x.set("data.quantityPicker",_.YS.unsafeClone((c=x.data)==null?void 0:c.quantityPicker))})}};
p8.prototype.onYtRendererstamperFinished=p8.prototype.onYtRendererstamperFinished;p8.prototype.entityChanged=p8.prototype.entityChanged;_.q([_.R(),_.N("design:type",Object)],p8.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],p8.prototype,"compact",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],p8.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],p8.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],p8.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],p8.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(x,G){return _.zm(x.entities,"commerceCartItemEntity",G)}}),
_.N("design:type",Object)],p8.prototype,"commerceCartItemEntity",void 0);_.q([_.R(),_.N("design:type",Object)],p8.prototype,"quantityPicker",void 0);_.q([_.R(),_.N("design:type",Object)],p8.prototype,"compactQuantityPicker",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],p8.prototype,"hidden",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],p8.prototype,"errorHidden",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.N("design:type",Object)],p8.prototype,"noOnTap",void 0);_.q([_.cD("ytd-commerce-cart-item-quantity-picker-renderer"),_.N("design:type",Object)],p8.prototype,"pickerElement",void 0);_.q([_.cD("yt-button-renderer"),_.N("design:type",Element)],p8.prototype,"firstButtonElement",void 0);
_.q([_.yf("commerceCartItemEntity","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],p8.prototype,"entityChanged",null);_.q([_.oe("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],p8.prototype,"onYtRendererstamperFinished",null);p8=_.q([_.d({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],p8);
_.w(p8,"ytd-commerce-cart-item-renderer",function(){if(bpZ!==void 0)return bpZ;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return bpZ=x},{mode:_.Ge("kevlar_poly_si_batch_j028")?1:2});var BIJ;var r08;var V5=function(){return _.n.apply(this,arguments)||this};
_.m(V5,_.n);V5.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}}}}}};
V5.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
V5.prototype.updateCheckoutLineItems=function(){var x,G=(x=this.commerceCartCheckoutButtonEntity)==null?void 0:x.checkoutLineItems;G&&(x=G.map(function(D){a:{var K=D.price,z=D.description;switch(D.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":D={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:j8(z),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",
left:"CARD_ITEM_UX_SPACE_4"}}},price:{cardItemTextRenderer:{text:j8(K),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}};break a;default:D={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:j8(z),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",
right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",left:"CARD_ITEM_UX_SPACE_0"}}},price:{cardItemTextRenderer:{text:j8(K),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}}}}return D}),this.set("data.summaryLineItems",x))};
V5.prototype.updateIsHidden=function(){var x,G=(x=this.commerceCartCheckoutButtonEntity)==null?void 0:x.isHidden;G!==void 0&&(this.hostElement.hidden=G)};
V5.prototype.entityChanged=V5.prototype.entityChanged;_.q([_.I(_.$l),_.N("design:type",Object)],V5.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],V5.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],V5.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],V5.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],V5.prototype,"data",void 0);_.q([_.R({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:Q7C}),_.N("design:type",Object)],V5.prototype,"commerceCartCheckoutButtonEntity",void 0);_.q([_.yf("commerceCartCheckoutButtonEntity","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],V5.prototype,"entityChanged",null);V5=_.q([_.d({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],V5);
_.w(V5,"ytd-commerce-cart-summary-renderer",function(){if(r08!==void 0)return r08;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return r08=x},{mode:1});var sw0={};sw0.InjectBehavior=[vnP.InjectBehavior];var Y1Z;var mP8;var b8=function(){return _.n.apply(this,arguments)||this};
_.m(b8,_.n);
b8.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:_.$7("menuRenderer")}}};
b8.prototype.onMenuTap=function(x){x.stopPropagation()};
_.Nq.Object.defineProperties(b8.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 x,G;return!(((x=this.data)==null||!x.sectionHeading)&&((G=this.data)==null?void 0:G.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var x,G;return!(((x=this.data)==null||!x.image)&&((G=this.data)==null?void 0:G.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var x,G;return!(((x=this.data)==null||!x.menu)&&((G=this.data)==null?void 0:G.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],b8.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],b8.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.zTJ.YtTappableItemBehavior),_.N("design:type",Object)],b8.prototype,"ytTappableItemBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],b8.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0}),_.U("data.accessibilityData"),_.N("design:type",String),_.N("design:paramtypes",[])],b8.prototype,"ariaLabel",null);_.q([_.U("data.sectionHeading","data.layout"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],b8.prototype,"sectionHeadingVisible",null);_.q([_.U("data.image","data.layout"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],b8.prototype,"imageVisible",null);
_.q([_.U("data.menu","data.layout"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],b8.prototype,"menuVisible",null);b8=_.q([_.HD({is:"yt-activity-item-renderer",disableElementRegistration:!0})],b8);
_.w(b8,"yt-activity-item-renderer",function(){if(mP8===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;Y1Z===void 0&&(Y1Z=document.createElement("template"));var K=Y1Z;D.call(G,K.content.cloneNode(!0),x.content.firstChild);mP8=x}x=mP8;return x},{mode:2});var Hpk;var $P9;var FC0;var CeZ;var L8=function(){return _.n.apply(this,arguments)||this};
_.m(L8,_.n);
L8.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"}}}}};
L8.prototype.backgroundColorChanged_=function(){var x,G=(x=this.data)==null?void 0:x.backgroundColor;this.hostElement.style.backgroundColor=GV[G||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
L8.prototype.backgroundColorChanged_=L8.prototype.backgroundColorChanged_;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],L8.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],L8.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],L8.prototype,"data",void 0);
_.q([_.yf("data.backgroundColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],L8.prototype,"backgroundColorChanged_",null);L8=_.q([_.HD({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],L8);
_.w(L8,"yt-offer-item-upsell-renderer",function(){if(CeZ===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;FC0===void 0&&(FC0=document.createElement("template"));var K=FC0;D.call(G,K.content.cloneNode(!0),x.content.firstChild);CeZ=x}x=CeZ;return x},{mode:2});_.HH("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var Bc=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};x.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return x};
_.m(Bc,_.n);_.a=Bc.prototype;
_.a.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:_.$7("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.a.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.a.computeContainerStyle_=function(x){return x};
_.a.computeContainerIsHidden_=function(x){return x&&!!x.isHidden};
_.a.computeShowSpinner_=function(x,G){return x&&G==="in-progress"};
_.a.computeShowMoreContentsButton_=function(x,G,D,K,z){return!(!(K&&K.length||z&&z.length&&D)||!x||G)};
_.a.onToggleButton_=function(x){var G=this;x.stopPropagation();this.isExpanded_=x.detail&&x.detail.toggled;var D,K;this.isExpanded_&&!this.data.continuationSection.length&&((D=this.data)==null?0:(K=D.continuation)==null?0:K.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.h$(this.hostElement,"yt-load-next-continuation",function(z){return G.getContinuationUrl_(G.data.continuation.onClickContinuationData,z)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.KW(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.a.onShowMoreContentsButtonClicked_=function(x){var G=this;x.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.h$(this.hostElement,"yt-load-next-continuation",function(D){return G.getContinuationUrl_(G.data.continuations[0].nextContinuationData,D)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.KW(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.a.getContinuationUrl_=function(x,G){var D=x.continuation;x=x.clickTrackingParams;var K=_.CC();x&&K&&_.u0(K,_.V2(x));return _.Nh(G,{continuation:D})};
_.a.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var x=_.kA(this.hostElement).querySelector("#continuation-section");x&&(x=x.querySelectorAll("ytmusic-item-section-renderer"))&&x.forEach(function(G){return G.classList.add("memberships-and-purchases")})};
_.a.dataChanged_=function(){var x;this.isExpanded_=!((x=this.data)==null||!x.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.a.updateCardOnClickCommand_=function(x){x=_.Y(x,czq);var G,D;this.data&&((G=this.data)==null?0:G.targetId)&&x&&x.targetId===((D=this.data)==null?void 0:D.targetId)&&x.onClickCommand&&(this.data.onClickCommand=x.onClickCommand,this.isOnClickCommand_=!0)};
_.a.backgroundColorChanged_=function(){var x,G=(x=this.data)==null?void 0:x.backgroundColor;this.hostElement.style.backgroundColor=GV[G||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Bc.prototype.backgroundColorChanged_=Bc.prototype.backgroundColorChanged_;Bc.prototype.dataChanged_=Bc.prototype.dataChanged_;Bc.prototype.nextContinuationDataUpdated_=Bc.prototype.nextContinuationDataUpdated_;Bc.prototype.onToggleButton_=Bc.prototype.onToggleButton_;_.q([_.I(_.Oh),_.N("design:type",Object)],Bc.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],Bc.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Bc.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.Xr.YtNextContinuationBehavior),_.N("design:type",Object)],Bc.prototype,"ytNextContinuationBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Bc.prototype,"ytRendererBehavior",void 0);_.q([_.I(sw0.InjectBehavior),_.N("design:type",Object)],Bc.prototype,"injectBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Bc.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Bc.prototype,"compact",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Bc.prototype,"isExpanded_",void 0);_.q([_.R({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.N("design:type",String)],Bc.prototype,"containerStyle_",void 0);_.q([_.R({value:"not-started"}),_.N("design:type",String)],Bc.prototype,"continuationStatus_",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.N("design:type",Boolean)],Bc.prototype,"showSpinner_",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],Bc.prototype,"isOnClickCommand_",void 0);_.q([_.R({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.N("design:type",Boolean)],Bc.prototype,"showMoreContentsButton_",void 0);
_.q([_.R({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(x,G){return!G||x.entities?null:_.zm(x.entities,"cardItemContainerEntity",G)}}),
_.N("design:type",Object)],Bc.prototype,"cardItemContainerEntity_",void 0);_.q([_.oe("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Bc.prototype,"onToggleButton_",null);_.q([_.oe("yt-next-continuation-data-updated"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Bc.prototype,"nextContinuationDataUpdated_",null);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Bc.prototype,"dataChanged_",null);_.q([_.yf("data.backgroundColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Bc.prototype,"backgroundColorChanged_",null);Bc=_.q([_.HD({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],Bc);
_.w(Bc,"yt-card-item-container-renderer",function(){if($P9===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;Hpk===void 0&&(Hpk=document.createElement("template"));var K=Hpk;D.call(G,K.content.cloneNode(!0),x.content.firstChild);$P9=x}x=$P9;return x},{mode:2});var r7=function(){return _.n.apply(this,arguments)||this};
_.m(r7,_.n);r7.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"}}}};
r7.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
r7.prototype.computeLoadingHidden=function(){var x;return!((x=this.commerceCartPageStateEntity)==null?0:x.cartActionInProgress)};
r7.prototype.updateNotification=function(){var x,G=(x=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:x.summaryText;G&&this.set("data.cartNotification",j8(G))};
r7.prototype.notificationEntityChanged=r7.prototype.notificationEntityChanged;_.q([_.I(_.$l),_.N("design:type",Object)],r7.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],r7.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],r7.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],r7.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],r7.prototype,"data",void 0);_.q([_.R({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(x,G){return _.zm(x.entities,"commerceCartExpandableNotificationEntity",G)}}),
_.N("design:type",Object)],r7.prototype,"commerceCartExpandableNotificationEntity",void 0);_.q([_.R({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(x,G){return _.zm(x.entities,"commerceCartPageStateEntity",G)}}),
_.N("design:type",Object)],r7.prototype,"commerceCartPageStateEntity",void 0);_.q([_.cD("#spinner"),_.N("design:type",HTMLElement)],r7.prototype,"spinner",void 0);_.q([_.yf("commerceCartExpandableNotificationEntity","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],r7.prototype,"notificationEntityChanged",null);r7=_.q([_.d({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],r7);
_.w(r7,"ytd-commerce-cart-renderer",function(){if(BIJ!==void 0)return BIJ;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return BIJ=x},{mode:1});var IVE;var sQ=function(){var x=_.n.apply(this,arguments)||this;x.bigImage=!1;return x};
_.m(sQ,_.n);_.Nq.Object.defineProperties(sQ.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.placeholderImageUrl}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],sQ.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],sQ.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],sQ.prototype,"bigImage",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],sQ.prototype,"placeholderImageUrl",null);sQ=_.q([_.d({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],sQ);
_.w(sQ,"ytd-empty-product-shelf-renderer",function(){if(IVE!==void 0)return IVE;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return IVE=x},{mode:1});var jwJ;var Yf=function(){var x=_.n.apply(this,arguments)||this;x.itemStyle="link-item";x.watchMetadataRefresh=!1;x.skinnyMode=!1;x.metaPanel=!1;x.inStructuredDescription=!1;x.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};x.updateOnResizeDebouncer=null;return x};
_.m(Yf,_.n);_.a=Yf.prototype;_.a.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.a.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"}}}}};
_.a.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.a.attachVEs=function(x){x.trackingParams&&_.en().graftServerVe(x.trackingParams)};
_.a.handleUpdateMerchShelfAction=function(x){var G=this,D=_.Y(x.updateMerchandiseShelfAction.merchandiseShelf,_.vh7);D&&(D.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){G.attachVEs(D);G.data=D},Number(D.renderDelayMs))):(this.attachVEs(D),this.data=D))};
_.a.updateOnResize=function(){if(this.JSC$14690_scrollContainer!==void 0&&this.JSC$14690_scrollContainer.clientWidth!==0&&this.items!==void 0){var x=this.JSC$14690_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-x));this.ytdHorizontalListBehavior.reposition_();var G;switch((G=this.data)==null?void 0:G.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var D,
K;((D=this.data)==null?void 0:(K=D.items)==null?void 0:K.length)===1?this.itemStyle="cta-item":this.itemStyle=x>=740?"large-item":"small-item"}}};
_.a.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.kG(this.updateOnResizeDebouncer,_.ny.after(100),this.updateOnResize)};
Yf.prototype.debouncedUpdateOnResize=Yf.prototype.debouncedUpdateOnResize;Yf.prototype.dataChanged=Yf.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Yf.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Yf.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.tp.YtdHorizontalListBehavior),_.N("design:type",Object)],Yf.prototype,"ytdHorizontalListBehavior",void 0);
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Yf.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],Yf.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Yf.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Yf.prototype,"itemStyle",void 0);_.q([_.R({value:6}),_.N("design:type",Number)],Yf.prototype,"initialCount",void 0);
_.q([_.R({value:"data.items"}),_.N("design:type",String)],Yf.prototype,"itemsPath",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Yf.prototype,"watchMetadataRefresh",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Yf.prototype,"skinnyMode",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Yf.prototype,"metaPanel",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Yf.prototype,"inStructuredDescription",void 0);
_.q([_.cD("#items"),_.N("design:type",HTMLDivElement)],Yf.prototype,"items",void 0);_.q([_.cD("#scroll-container"),_.N("design:type",HTMLDivElement)],Yf.prototype,"JSC$14690_scrollContainer",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Yf.prototype,"dataChanged",null);_.q([_.oe("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Yf.prototype,"debouncedUpdateOnResize",null);
Yf=_.q([_.d({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],Yf);
_.w(Yf,"ytd-merch-shelf-renderer",function(){if(jwJ!==void 0)return jwJ;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return jwJ=x},{mode:2});var Op0;var mm=function(){var x=_.n.apply(this,arguments)||this;x.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 x};
_.m(mm,_.n);_.a=mm.prototype;
_.a.addBackstagePostAction=function(x){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(x=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",x))&&(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:x}):this.set("data.contents",[{backstagePostThreadRenderer:x}]))};
_.a.addBackstageCommentAction=function(x){var G=this.get("addBackstageCommentAction.parentId",x);x=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",x);if(G&&x){G=this.postIdToIndices(G);for(var D=0;D<G.length;D++){var K=G[D];if(K<0)break;K="data.contents."+K+".backstagePostThreadRenderer.comments";this.get(K)&&(this.get(K+".backstageCommentsRenderer.contents")&&this.push(K+".backstageCommentsRenderer.contents",{commentThreadRenderer:x}),this.get(K+".backstageCommentsRenderer.teaserContents")?
this.push(K+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:x}):this.set(K+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:x}]))}}};
_.a.addBackstageReplyAction=function(x){var G=this.get("addBackstageReplyAction.parentId",x);x=this.get("addBackstageReplyAction.renderer.commentRenderer",x);G&&x&&this.setCreatorReply(G,x)};
_.a.banAuthorAction=function(x){var G=this.get("banAuthorAction.commentId",x);G&&(x=this.get("banAuthorAction.parentCommentId",x)||this.getParentPostId(G),this.removeFromStream(G,x))};
_.a.hideReportedCommentAction=function(x){var G=this.get("hideReportedCommentAction.commentId",x);G&&((x=this.get("hideReportedCommentAction.parentCommentId",x))||(x=this.getParentPostId(G)),this.removeFromStream(G,x))};
_.a.replaceBackstageCommentAction=function(x){var G=this.get("replaceBackstageCommentAction.commentId",x),D=this.get("replaceBackstageCommentAction.parentId",x);x=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",x);if(G&&D&&x){D=this.postIdToIndices(D);for(var K=0;K<D.length;K++){var z=D[K];if(z<0)break;var y=this.commentIdToIndex(G,z,!1);if(y>=0){var c=this.get("data.contents."+z+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+y+".commentThreadRenderer.replies.commentRepliesRenderer");
c&&(x.replies={commentRepliesRenderer:c});this.splice("data.contents."+z+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",y,1,{commentThreadRenderer:x})}y=this.commentIdToIndex(G,z,!0);if(y>=0){if(c=this.get("data.contents."+z+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(y+".commentThreadRenderer.replies.commentRepliesRenderer")))x.replies={commentRepliesRenderer:c};this.splice("data.contents."+z+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
y,1,{commentThreadRenderer:x})}}}};
_.a.replaceBackstagePostAction=function(x){var G=this.get("replaceBackstagePostAction.itemId",x);if(G){G=this.postIdToIndices(G);for(var D=0;D<G.length;D++){var K=G[D];if(K<0)break;var z=this.getPostRendererType(K),y=this.get("replaceBackstagePostAction.renderer."+z,x);if(!y&&z!=="sharedPostRenderer")break;var c=!1;y||(c=!0,y=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",x));if(!y)break;var W={};c?(_.Hh(W,h_q,y),this.set("data.contents."+K+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
W)):(_.Hh(W,new _.J(z),y),this.set("data.contents."+K+".backstagePostThreadRenderer.post",W))}}};
_.a.replaceBackstageReplyAction=function(x){var G=this.get("replaceBackstageReplyAction.replyId",x),D=this.get("replaceBackstageReplyAction.parentId",x);x=this.get("replaceBackstageReplyAction.renderer.commentRenderer",x);G&&x&&D&&this.setCreatorReply(D,x)};
_.a.removeCommentAction=function(x){var G=this.get("removeCommentAction.commentId",x);if(G){var D=this.get("removeCommentAction.parentCommentId",x);D&&this.get("removeCommentAction.isCreatorReply",x)?this.setCreatorReply(D,void 0):(D||(D=this.getParentPostId(G)),this.removeFromStream(G,D))}};
_.a.setCreatorReply=function(x,G){var D=this.getParentPostId(x);if(D){D=this.postIdToIndices(D);for(var K=0;K<D.length;K++){var z=D[K];if(z<0)break;var y=this.commentIdToIndex(x,z,!1);if(y>=0){var c="data.contents."+z+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+y;y=c+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";c+=".commentThreadRenderer.replies";G==void 0?(this.set(c,{}),this.set(y,!1)):(this.set(c,{commentRepliesRenderer:{teaserContents:[{commentRenderer:G}]}}),
this.set(c+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(y,!0))}y=this.commentIdToIndex(x,z,!0);y>=0&&(y="data.contents."+z+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+y,z=y+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",y+=".commentThreadRenderer.replies",G==void 0?(this.set(y,{}),this.set(z,!1)):(this.set(y,{commentRepliesRenderer:{teaserContents:[{commentRenderer:G}]}}),this.set(z,!0)))}}};
_.a.removeFromStream=function(x,G){if(G){G=this.postIdToIndices(G);for(var D=0;D<G.length;D++){var K=G[D];if(K<0)break;var z=this.commentIdToIndex(x,K,!1);z>=0&&this.splice("data.contents."+K+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",z,1);z=this.commentIdToIndex(x,K,!0);z>=0&&this.splice("data.contents."+K+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",z,1);K="data.contents."+K+".backstagePostThreadRenderer.post.backstagePostRenderer";
z=K+".backstageAttachment.pollRenderer.votedCommentId";this.get(z)===x&&(this.set(z,null),this.set(K+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(G=this.postIdToIndices(x).reverse(),D=0;D<G.length;D++){K=G[D];if(K<0)break;z=this.getPostRendererType(K);var y=this.get("backstagePostThreadRenderer.post."+z,this.data.contents[K]);y.postId===x?this.splice("data.contents",K,1):z==="sharedPostRenderer"&&this.set("data.contents."+K+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);y.scheduledPublishTimeSec&&_.xO(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.a.postIdToIndices=function(x){for(var G=[],D=0;D<this.data.contents.length;D++){var K=this.getPostRendererType(D);this.get("backstagePostThreadRenderer.post."+K+".postId",this.data.contents[D])===x&&G.push(D);if(K==="sharedPostRenderer"){var z=this.get("backstagePostThreadRenderer.post."+K+".originalPost.backstagePostRenderer.postId",this.data.contents[D]);K=this.get("backstagePostThreadRenderer.post."+K+".originalPost.postRenderer.postId",this.data.contents[D]);z!==x&&K!==x||G.push(D)}}return G};
_.a.commentIdToIndex=function(x,G,D){if(G<0)return-1;var K,z,y,c,W=_.Y((K=this.data)==null?void 0:(z=K.contents)==null?void 0:(y=z[G])==null?void 0:(c=y.backstagePostThreadRenderer)==null?void 0:c.comments,PQ9);return(G=D?W==null?void 0:W.teaserContents:W==null?void 0:W.contents)&&G.length?G.findIndex(function(e){return _.Y(e,H6u).comment.commentRenderer.commentId===x}):-1};
_.a.getParentPostId=function(x){x=x.split(".");if(x[1])return x[0]};
_.a.getPostRendererType=function(x){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[x])?"sharedPostRenderer":"backstagePostRenderer"};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],mm.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],mm.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],mm.prototype,"data",void 0);mm=_.q([_.d({disableElementRegistration:!0,is:"ytd-backstage-items"})],mm);
_.w(mm,"ytd-backstage-items",function(){if(Op0!==void 0)return Op0;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Op0=
x},{mode:1});var XMk;_.BD({is:"ytd-comments",_template:function(){if(XMk!==void 0)return XMk;var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer id="sections" can-schedule-jobs="[[canScheduleJobs]]" comments-hide-panel-button="[[hidePanelButton]]" continuation-disable-prescan-visibility="[[disablePrescanVisibility]]" data="{{data}}" engagement-panel="[[engagementPanel]]" initial-count="2" is-watch-grid="[[isWatchGrid]]" class="style-scope ytd-comments">\n</ytd-item-section-renderer>\n');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return XMk=x},
behaviors:[_.teL.YtHostElementBehavior,_.nS.YtPlayerListenerBehavior,_.h.YtRendererBehavior,_.tG.YtActionHandlerBehavior],properties:{data:{type:Object,observer:"dataChanged_"},isBackstage:{type:Boolean,computed:"computeIsBackstage_(data.header.commentsHeaderRenderer.isBackstageContent)",reflectToAttribute:!0},disablePrescanVisibility:{type:Boolean,value:!0},canScheduleJobs:{type:Boolean,value:!0},engagementPanel:{type:Boolean,reflectToAttribute:!0},hidePanelButton:{type:Boolean,value:!1},isWatchGrid:{type:Boolean,
value:!1}},actionMap:{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-create-comment-reply-action":"createCommentReplyAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"},listeners:{"yt-retrieve-location":"onRetrieveLocation_"},observers:["contentsChanged_(data.contents.*)",
"headerChanged_(data.header)"],created:function(){this.RenderingPriority={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100};this.initCommentsCsi_()},
contentsChanged_:function(x){x&&x.value&&x.path==="data.contents"&&this.tickForCommentsTimer_("cml")},
headerChanged_:function(x){x&&this.tickForCommentsTimer_("cmhl")},
initCommentsCsi_:function(){_.$O("wn_comments");var x=_.CC();x&&_.Hg({clientScreenNonce:x},"wn_comments");this.tickForCommentsTimer_("cmi")},
createCommentAction_:function(x){x=wJO(x);var G,D,K;if(x=(G=x)==null?void 0:(D=G.createCommentAction)==null?void 0:(K=D.contents)==null?void 0:K.commentThreadRenderer){var z,y,c,W,e,Q;!this.isBackstage&&((z=this.data)==null?0:(y=z.header)==null?0:(c=y.commentsHeaderRenderer)==null?0:(W=c.createRenderer)==null?0:(e=W.commentSimpleboxRenderer)==null?0:(Q=e.zeroStep)==null?0:Q.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",
{});var p,V,L,r;this.isBackstage&&((p=this.data)==null?0:(V=p.header)==null?0:(L=V.commentsHeaderRenderer)==null?0:(r=L.zeroStateMessage)==null?0:r.backstageZeroStateRenderer)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(x)}},
doReplyInsert_:function(x,G,D,K){K?this.splice(x,K,0,G):this.push(x,G)},
getRepliesPath_:function(x){return"data.contents."+x+".commentThreadRenderer.replies"},
getRepliesContentsPath_:function(x,G){x=this.getRepliesPath_(x);return G?x+".commentRepliesRenderer.teaserContents":x+".commentRepliesRenderer.contents"},
createCommentReplyAction_:function(x){x=wJO(x);var G,D,K=(G=x)==null?void 0:(D=G.createCommentReplyAction)==null?void 0:D.parentCommentId,z,y;if(G=(z=x)==null?void 0:(y=z.createCommentReplyAction)==null?void 0:y.contents)if(K=this.commentIdToIndex_(K),!(K<0))if(z=this.getRepliesPath_(K),this.get(z)){var c,W;x=(c=x)==null?void 0:(W=c.createCommentReplyAction)==null?void 0:W.replyToCommentId;c=this.getRepliesContentsPath_(K,!1);this.get(c)&&(W=this.get(c).length,z=c+"."+(W-1)+".continuationItemRenderer",
this.get(z+".button")?(z=this.replyIdToIndex_(x,K,!1),this.doReplyInsert_(c,G,z,W-1)):this.get(z)||(W=this.replyIdToIndex_(x,K,!1),this.doReplyInsert_(c,G,W,null)));c=this.getRepliesContentsPath_(K,!0);this.get(c)?(K=this.replyIdToIndex_(x,K,!0),(!x||K>=0)&&this.doReplyInsert_(c,G,K,null)):this.set(c,[G])}else this.set(z,{commentRepliesRenderer:{teaserContents:[G]}})},
hideReportedCommentAction_:function(x){var G,D=x==null?void 0:(G=x.hideReportedCommentAction)==null?void 0:G.commentId;if(D){var K;x=x==null?void 0:(K=x.hideReportedCommentAction)==null?void 0:K.parentCommentId;D=D.replace("#",".");x||(x=this.getParentCommentId_(D));this.remove_(D,x)}},
getParentCommentId_:function(x){x=x.split(".");if(x[1])return x[0]},
removeCommentAction_:function(x){var G,D=x==null?void 0:(G=x.removeCommentAction)==null?void 0:G.commentId;if(D){var K;x=x==null?void 0:(K=x.removeCommentAction)==null?void 0:K.parentCommentId;D=D.replace("#",".");x||(x=this.getParentCommentId_(D));this.remove_(D,x)}},
pinCommentAction_:function(x){x=wJO(x);var G,D,K=(G=x)==null?void 0:(D=G.pinCommentAction)==null?void 0:D.commentId;K&&(x=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",x))&&(this.remove_(K),this.insert_(x,!0))},
unpinCommentAction_:function(x){x=wJO(x);var G,D,K=(G=x)==null?void 0:(D=G.unpinCommentAction)==null?void 0:D.commentId;if(K){var z,y,c;if(x=(z=x.unpinCommentAction)==null?void 0:(y=z.actionResult)==null?void 0:(c=y.update)==null?void 0:c.commentThreadRenderer)this.remove_(K),this.insert_(x)}},
banAuthorAction_:function(x){var G,D=x==null?void 0:(G=x.banAuthorAction)==null?void 0:G.commentId;if(D){var K;x=x==null?void 0:(K=x.banAuthorAction)==null?void 0:K.parentCommentId;D=D.replace("#",".");x||(x=this.getParentCommentId_(D));this.remove_(D,x)}},
commentIdToIndex_:function(x){var G;return x&&(G=this.data)!=null&&G.contents?this.data.contents.findIndex(function(D){var K,z;return x===((D==null?void 0:(K=D.commentThreadRenderer)==null?void 0:K.commentViewModel)&&((z=_.Y(D.commentThreadRenderer.commentViewModel,IUE))==null?void 0:z.commentId))}):-1},
insert_:function(x,G){var D,K;if((D=this.data)==null?0:(K=D.contents)==null?0:K.some(function(y){return!(y==null||!y.commentThreadRenderer)}))for(D=0,K=this.data.contents.length;D<K;D++){var z=this.data.contents[D].commentThreadRenderer;
if(this.RenderingPriority[x.renderingPriority]>=this.RenderingPriority[z.renderingPriority]){G&&this.RenderingPriority[x.renderingPriority]==this.RenderingPriority[z.renderingPriority]?this.splice("data.contents",D,1,{commentThreadRenderer:x}):this.splice("data.contents",D,0,{commentThreadRenderer:x});break}}else this.set("data.contents",[{commentThreadRenderer:x}])},
doReplyRemove_:function(x,G,D){x=this.replyIdToIndex_(x,G,D);x<0||(G=this.getRepliesContentsPath_(G,D),this.splice(G,x,1))},
remove_:function(x,G){G=this.commentIdToIndex_(G);G<0?(G=this.commentIdToIndex_(x),G<0||this.splice("data.contents",G,1)):(this.doReplyRemove_(x,G,!1),this.doReplyRemove_(x,G,!0))},
replyIdToIndex_:function(x,G,D){if(G<0)return-1;G=this.getRepliesContentsPath_(G,D);G=this.get(G);if(!G||!G.length)return-1;D=0;for(var K=G.length;D<K;D++){var z=void 0,y=void 0;if(((z=G[D])==null?void 0:(y=z.commentViewModel)==null?void 0:y.commentId)===x)return D}return-1},
computeIsBackstage_:function(x){return!!x},
tickForCommentsTimer_:function(x){_.CW(x,void 0,"wn_comments")},
reloadComments_:function(x){x&&x.reloadCommentsCommand&&x.reloadCommentsCommand.command&&x.reloadCommentsCommand.command.continuationCommand&&_.KW(this,[x.reloadCommentsCommand.command])}});var Hc=function(){return _.WD.apply(this,arguments)||this};
_.m(Hc,_.WD);_.a=Hc.prototype;_.a.bindIf=function(x,G,D){return x?G:D};
_.a.bindIfDefined=function(x,G){return x!==void 0?x:G};
_.a.booleanString=function(x){return(!!x).toString()};
_.a.equals=function(){for(var x=_.rC.apply(0,arguments),G=x[0],D=1;D<x.length;D++)if(G!=x[D])return!1;return!0};
_.a.isGreaterThan=function(x,G){return x>G};
_.a.isLessThan=function(x,G){return x<G};
_.a.logicalAND=function(){for(var x=_.rC.apply(0,arguments),G=!!x[0],D=1;D<x.length;D++)G=G&&!!x[D];return G};
_.a.logicalOR=function(){for(var x=_.rC.apply(0,arguments),G=!!x[0],D=1;D<x.length;D++)G=G||!!x[D];return G};
_.a.toBool=function(x){return!!x};
Hc.prototype.toBool=Hc.prototype.toBool;Hc.prototype.logicalOR=Hc.prototype.logicalOR;Hc.prototype.logicalAND=Hc.prototype.logicalAND;Hc.prototype.isLessThan=Hc.prototype.isLessThan;Hc.prototype.isGreaterThan=Hc.prototype.isGreaterThan;Hc.prototype.equals=Hc.prototype.equals;Hc.prototype.booleanString=Hc.prototype.booleanString;Hc.prototype.bindIfDefined=Hc.prototype.bindIfDefined;Hc.prototype.bindIf=Hc.prototype.bindIf;Hc=_.q([_.e2()],Hc);_.A0J=[Hc.prototype];var UPs;var RTi;var $f=function(){return _.n.apply(this,arguments)||this};
_.m($f,_.n);$f.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
$f.prototype.onBackIconTap_=function(){window.history.back()};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],$f.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],$f.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],$f.prototype,"data",void 0);$f=_.q([_.HD({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],$f);
_.w($f,"yt-header-with-back-renderer",function(){if(RTi===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;UPs===void 0&&(UPs=document.createElement("template"));var K=UPs;D.call(G,K.content.cloneNode(!0),x.content.firstChild);RTi=x}x=RTi;return x},{mode:2});var S1Z;var nIZ;var Fe=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return x};
_.m(Fe,_.n);_.a=Fe.prototype;_.a.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.a.onDarkModeToggledAction=function(x){x!==this.isDarkTheme&&(this.isDarkTheme=x,this.setUrl())};
_.a.dataChanged=function(){var x=this;if(this.data){var G=this.setUrl();G&&_.qV({destination:window,iframe:this.iframe,origin:_.G7Z(G.toString()),channelName:"yt-iframe",onMessage:function(D){(D=x.getCommunicationCommand(D.data))&&x.ytComponentBehavior.resolveCommand(D)},
onEstablished:function(){}})}};
_.a.setUrl=function(){if(this.data&&this.data.iframeUrl){var x=_.CU(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(x)return _.C9(this.iframe,x),x}};
_.a.getCommunicationCommand=function(x){var G;if((G=this.data)!=null&&G.onCommunicationCommandsMap){G=this.data.onCommunicationCommandsMap.find(function(z){return z.key===x});
if(G==null?0:G.value)return G==null?void 0:G.value;try{var D=x6E(_.eZ(x)),K=this.data.onCommunicationCommandsMap.find(function(z){return z.key===(D==null?void 0:_.rP(D,1))});
if(K==null?0:K.value)return K==null?void 0:K.value}catch(z){}}};
Fe.prototype.dataChanged=Fe.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Fe.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Fe.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],Fe.prototype,"actionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Fe.prototype,"data",void 0);
_.q([_.R({value:!1}),_.N("design:type",Boolean)],Fe.prototype,"isDarkTheme",void 0);_.q([_.cD("#iframe"),_.N("design:type",HTMLIFrameElement)],Fe.prototype,"iframe",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fe.prototype,"dataChanged",null);Fe=_.q([_.HD({is:"yt-iframe-renderer",disableElementRegistration:!0})],Fe);
_.w(Fe,"yt-iframe-renderer",function(){if(nIZ===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;S1Z===void 0&&(S1Z=document.createElement("template"));var K=S1Z;D.call(G,K.content.cloneNode(!0),x.content.firstChild);nIZ=x}x=nIZ;return x},{mode:2});_.C8=function(x){_.Ya.call(this);this.callback=x;this.bezier=new Xk7(0,0,.4,0,.2,1,1,1);this.delay=new _.fo(this.next,window,this);this.JSC$14721_animating=!1;_.WZ(this,this.delay)};
_.m(_.C8,_.Ya);_.C8.prototype.isAnimating=function(){return this.JSC$14721_animating};
_.C8.prototype.start=function(x,G,D){this.config={from:x,to:G,duration:D,startTime:(0,_.kK)()};this.JSC$14721_animating=!0;this.next()};
_.C8.prototype.stop=function(){this.delay.stop();this.JSC$14721_animating=!1;this.config=void 0};
_.C8.prototype.next=function(){if(this.config){var x=this.config,G=x.from,D=x.to,K=x.duration;x=x.startTime;var z=(0,_.kK)()-x;x=this.bezier;K=UWi(x,z/K);if(K==0)x=x.y0;else if(K==1)x=x.y3;else{z=ew(x.y0,x.y1,K);var y=ew(x.y1,x.y2,K);x=ew(x.y2,x.y3,K);z=ew(z,y,K);y=ew(y,x,K);x=ew(z,y,K)}x=_.$1(x,0,1);this.callback(G+(D-G)*x);x<1?this.delay.start():this.JSC$14721_animating=!1}};_.Iu=new _.wq("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var ip9={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},uMs=function(x,G,D,K){_.Ya.call(this);this.JSC$14729_miniAppId=x;this.localReleaseId=G;this.derivedDeviceInterface=D;this.isForeground=K;this.JSC$14729_playNonceResolver=new _.Kt;this.playPingTimerId=NaN;this.playPingIntervalMs=_.Gz("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.Gz("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.B("enable_displaying_ppn");this.JSC$14729_miniAppClientDataProvider=_.Eo().resolve(_.Iu);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;gI8(this);var z=setTimeout(function(){_.O9(new _.LL("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14729_playNonceResolver.promise.then(function(){clearTimeout(z)})};
_.m(uMs,_.Ya);var wMh=function(x,G){x.JSC$14729_playNonceResolver.resolve(G!=null?G:Hy(8));x.enableDisplayingPpn&&dPq(x).then(function(D){x.JSC$14729_miniAppClientDataProvider.clientData.set("post_play_nonce",D)})},dPq=function(x){return _.T(function(G){return G.nextAddress==1?_.Z(G,x.JSC$14729_playNonceResolver.promise,2):G.return(G.yieldResult)})},gI8=function(x){var G,D;
_.T(function(K){if(K.nextAddress==1)return _.Z(K,x.JSC$14729_playNonceResolver.promise,2);G=K.yieldResult;D={miniAppInfo:{externalPostId:x.JSC$14729_miniAppId,localReleaseId:x.localReleaseId,postPlayNonce:G,derivedDeviceInterface:x.derivedDeviceInterface}};_.Hg(D);_.c5(K)})},NIJ=function(x){x.state!==0?_.O9(new _.LL("[MiniAppPlayLogger] recordPlayStart failed with state "+ip9[x.state])):(x.state=1,jv(x,"ma_cl"),OQ(x,"PLAY_EVENT_TYPE_PLAY_START"),q1Z(x))},vI7=function(x){x.isForeground=!1;
OQ(x,"PLAY_EVENT_TYPE_PLAY_PAUSE")},J0s=function(x){x.state!==1&&x.state!==2?_.O9(new _.LL("[MiniAppPlayLogger] recordPlayEnd failed with state "+ip9[x.state])):(x.state=3,window.clearInterval(x.playPingTimerId),x.playPingTimerId=NaN,Gsf(),OQ(x,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},fVZ=function(x,G){x.state===2&&x.gameReady&&(x.firstClickRecorded?Date.now()-x.clickRecordedMs<x.playClickIntervalMs||(x.clickRecordedMs=Date.now(),OQ(x,"PLAY_EVENT_TYPE_PLAY_CLICK")):G&&(jv(x,"ma_fua"),OQ(x,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),x.firstClickRecorded=!0,x.clickRecordedMs=Date.now()))};
uMs.prototype.logError=function(x){var G=this,D;_.T(function(K){if(K.nextAddress==1)return x.metadata.externalPostId=G.JSC$14729_miniAppId,D=x.metadata,_.Z(K,Promise.race([G.JSC$14729_playNonceResolver.promise,new Promise(function(z){setTimeout(function(){z("")},3E4)})]),2);
D.postPlayNonce=K.yieldResult;x.metadata.localReleaseId=G.localReleaseId;x.loggingError.level="WARNING";_.I4(x.loggingError,x.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:x.metadata});_.c5(K)})};
var tgi=function(x,G,D,K){var z,y,c,W,e,Q;_.T(function(p){if(p.nextAddress==1)return _.Z(p,x.JSC$14729_playNonceResolver.promise,2);z=p.yieldResult;y={externalPostId:x.JSC$14729_miniAppId,localReleaseId:x.localReleaseId,postPlayNonce:z,sdkVersion:D,api:G};K!==void 0&&(y.networkRequestsMeasurement={networkRequests:_.GH(K,1),cachedRequests:_.GH(K,2),transferredBytes:_.GH(K,3)},(c=K)==null?0:_.lr(c,dH,6))&&(y.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((W=_.hv(K,
dH,6))==null?void 0:Yp(W,1))||"0",cacheHits:((e=_.hv(K,dH,6))==null?void 0:Yp(e,2))||"0",cachedBytes:((Q=_.hv(K,dH,6))==null?void 0:Yp(Q,3))||"0"});_.Fv("miniAppSdkUsage",y);_.c5(p)})},PeZ=function(x,G,D){var K,z,y,c,W,e,Q,p,V,L,r,H,O,A,g,u;
_.T(function(f){if(f.nextAddress==1)return _.Z(f,x.JSC$14729_playNonceResolver.promise,2);K=f.yieldResult;z={externalPostId:x.JSC$14729_miniAppId,localReleaseId:x.localReleaseId,postPlayNonce:K,sdkVersion:D,measurementWindow:{startTimestampMs:String(Lr(G,1)),endTimestampMs:String(Lr(G,2))},frameRate:{averageFrameTimeDeltaMs:BV(G,3),averageFrameIdleTimeMs:BV(G,4)}};_.lr(G,wH,5)&&(z.networkRequests={networkRequests:(y=ko(G))==null?void 0:_.GH(y,1),cachedRequests:(c=ko(G))==null?void 0:_.GH(c,2),transferredBytes:(W=
ko(G))==null?void 0:_.GH(W,3),sameOriginStatusCodeToCounts:kMZ((e=ko(G))==null?void 0:G8h(e,4)),crossOriginStatusCodeToCounts:kMZ((Q=ko(G))==null?void 0:G8h(Q,5))},(p=ko(G))==null?0:_.lr(p,dH,6))&&(z.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((V=ko(G))==null?void 0:(L=_.hv(V,dH,6))==null?void 0:Yp(L,1))||"0",cacheHits:((r=ko(G))==null?void 0:(H=_.hv(r,dH,6))==null?void 0:Yp(H,2))||"0",cachedBytes:((O=ko(G))==null?void 0:(A=_.hv(O,dH,6))==null?void 0:Yp(A,3))||"0"});_.lr(G,
fwJ,7)&&(z.gameCapture={averageFrameTimeDeltaMs:(g=_.hv(G,fwJ,7))==null?void 0:BV(g,1),averageFrameIdleTimeMs:(u=_.hv(G,fwJ,7))==null?void 0:BV(u,2)});_.Fv("miniAppPerformanceMetrics",z);_.c5(f)})},EIE=function(x,G,D){var K,z;
return _.T(function(y){if(y.nextAddress==1)return _.Z(y,x.JSC$14729_playNonceResolver.promise,2);K=y.yieldResult;z={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:x.JSC$14729_miniAppId,postPlayNonce:K,miniAppReleaseId:x.localReleaseId},derivedDeviceInterface:x.derivedDeviceInterface,adTriggerType:G};z.rejectedReason=D||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.Fv("miniAppAdEvent",z);_.c5(y)})};
uMs.prototype.disposeInternal=function(){_.Ya.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var OQ=function(x,G,D,K){D=D===void 0?{}:D;K=K===void 0?!1:K;var z,y,c,W;_.T(function(e){if(e.nextAddress==1)return z=x.isForeground,y=x.beforeReady,_.Z(e,x.JSC$14729_playNonceResolver.promise,2);c=e.yieldResult;W={externalPostId:x.JSC$14729_miniAppId,localReleaseId:x.localReleaseId,derivedDeviceInterface:x.derivedDeviceInterface,postPlayNonce:c,type:G};D.sequenceGroup=c;W.playState=y?"PLAY_STATE_NOT_READY":z?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.Fv("miniAppPlayEvent",W,D);
K&&_.CE();_.c5(e)})},jv=function(x,G){var D;
_.T(function(K){if(K.nextAddress==1)return D=(0,_.kK)(),_.Z(K,x.JSC$14729_playNonceResolver.promise,2);_.Fs(G,D);_.c5(K)})},q1Z=function(x){isNaN(x.playPingTimerId)&&(x.playPingTimerId=_.yR(function(){x.state!==1&&x.state!==2?_.O9(new _.LL("[MiniAppPlayLogger] reportPlayPing failed with state "+ip9[x.state])):OQ(x,"PLAY_EVENT_TYPE_PLAY_PING")},x.playPingIntervalMs))},kMZ=function(x){return Array.from(x.entries()).map(function(G){var D=_.l(G);
G=D.next().value;D=D.next().value;return{key:G,value:D}})};var hTh=_.Gz("show_mini_app_ad_frequency_cap_ms",0),xfh=function(){this.showAdIntervalMs=hTh;this.isRateLimited=!0},GiZ=function(x,G){setTimeout(function(){return x.isRateLimited=!1},x.showAdIntervalMs);
x.showMiniAppAdCommand=G.showMiniAppAdCommand;x.isEmbeddedInWebview=G.isEmbeddedInWebview;x.playLogger=G.playLogger},KT0=function(x,G){var D;
return _.T(function(K){if(K.nextAddress==1){if(!x.showMiniAppAdCommand||!x.isEmbeddedInWebview)return K.return(Dfh(x,G,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(x.isRateLimited)return K.return(Dfh(x,G,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));x.adResolver=new _.Kt;D=Mwi(new ZXi,G);XD(x.showMiniAppAdCommand,QmZ(D));x.isRateLimited=!0;setTimeout(function(){return x.isRateLimited=!1},x.showAdIntervalMs);
return _.Z(K,x.adResolver.promise,2)}return K.return(K.yieldResult)})};
xfh.prototype.onAdFinished=function(x){x=Hsi(x);var G;(G=this.adResolver)==null||G.resolve(x)};
var Dfh=function(x,G,D){var K;return _.T(function(z){if(z.nextAddress==1)z=_.Z(z,(K=x.playLogger)==null?void 0:EIE(K,t6V(G),D),2);else{var y=z.return;var c=new mF9;c=_.xW(c,1,2);z=y.call(z,c)}return z})};var zN7=new _.wq("INNERTUBE_MANAGER_TOKEN");var an0=function(){this.callbacks={}};
an0.prototype.initialize=function(x){var G=this;this.callbacks=x;window.youtubewebview?window.youtubewebview.onmessage=function(D){o6E(G,D)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(D){o6E(G,D)})};
var o6E=function(x,G){if(G.data)try{var D=x6E(G.data);if(_.gb(_.yW(D,1))!=null){var K=yZi(_.rP(D,2));switch(_.rP(D,1)){case "yt-mini-app-load-audio-state":var z,y;(y=(z=x.callbacks).onAudioStateLoaded)==null||y.call(z,_.br(K,pE(K,re,1)));break;case "yt-mute-mini-app":var c,W;(W=(c=x.callbacks).onMuteMiniApp)==null||W.call(c);break;case "yt-unmute-mini-app":var e,Q;(Q=(e=x.callbacks).onUnmuteMiniApp)==null||Q.call(e);break;case "yt-playable-exit":var p,V;(V=(p=x.callbacks).onExit)==null||V.call(p);
break;case "yt-post-play-nonce":var L,r;(r=(L=x.callbacks).onPostPlayNonceReceived)==null||r.call(L,mH(K,2,re));break;case "yt-confirm-exit-mini-app":var H,O;(O=(H=x.callbacks).confirmExitMiniApp)==null||O.call(H);break;case "yt-confirm-exit-mini-app-edu":var A,g;(g=(A=x.callbacks).confirmExitMiniAppEdu)==null||g.call(A);break;case "yt-benchmarking-response":var u,f;(f=(u=x.callbacks).onNativeBenchmarkingMessageReceived)==null||f.call(u,mH(K,2,re));break;case "yt-mini-app-load-3p-consent-state":var v,
P;(P=(v=x.callbacks).multiplayer3pAckStateLoaded)==null||P.call(v,_.br(K,pE(K,re,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var k,cL;(cL=(k=x.callbacks).exitMiniAppSeenStateLoaded)==null||cL.call(k,_.br(K,pE(K,re,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var bO,mE;(mE=(bO=x.callbacks).onNavigateToNewMiniApp)==null||mE.call(bO);break;case "yt-game-data-available":var jf,$C;($C=(jf=x.callbacks).onGameDataAvailable)==null||$C.call(jf,mH(K,2,re));break;case "yt-pause-mini-app":var OD,
wn;(wn=(OD=x.callbacks).onPauseMiniApp)==null||wn.call(OD);break;case "yt-resume-mini-app":var n$,Fi;(Fi=(n$=x.callbacks).onResumeMiniApp)==null||Fi.call(n$);break;case "yt-playable-ad-finished":var pf,UE;(UE=(pf=x.callbacks).onAdFinished)==null||UE.call(pf,mH(K,2,re))}}else _.O9(Error("Oh"))}catch(M0){_.I4(Error("Ph"))}else _.O9(Error("Qh"))};var PJP=function(x){this.rpcErrorCode=x};var Xe=function(x,G,D){this.intervalMs=x;this.apiFunc=G;this.type=D;this.schedulerReady=!0};
Xe.prototype.call=function(x){var G=this,D;return _.T(function(K){if(K.nextAddress==1){if(G.type!==1&&x===G.cachedValue)return K.return();G.pendingApiRequestResolver||(G.pendingApiRequestResolver=new _.Kt);D=G.pendingApiRequestResolver.promise;G.cachedValue=x;return _.Z(K,yd7(G),2)}return K.return(D)})};
Xe.prototype.flush=function(x){x=x===void 0?!1:x;var G=this;return _.T(function(D){return G.cachedValue===void 0?D.return():_.Z(D,G.apiFunc(G.cachedValue,x),0)})};
var yd7=function(x){var G,D,K;return _.T(function(z){switch(z.nextAddress){case 1:if(!x.schedulerReady||!x.pendingApiRequestResolver)return z.return();x.schedulerReady=!1;G=x.pendingApiRequestResolver;x.pendingApiRequestResolver=void 0;_.Kl(z,2);if(x.cachedValue===void 0){z.jumpTo(4);break}return _.Z(z,x.apiFunc(x.cachedValue),5);case 5:D=z.yieldResult,G.resolve(D);case 4:_.iI(z,3);break;case 2:K=_.lX(z),G.reject(K);case 3:setTimeout(function(){return _.T(function(y){x.schedulerReady=!0;return _.Z(y,
yd7(x),0)})},x.intervalMs),_.c5(z)}})};var x43=window.location.origin+"/miniapp_cloudsaves",ExQ=[400,401],lnu=_.Gz("cloud_save_game_data_rate_limit_ms",3E3),WTi=function(x){var G=this;this.JSC$14773_miniAppId=x;this.loadAttempts=0;this.cloudSaveIntervalMs=lnu;this.initialDownloadDataSucceeded=!1;this.JSC$14773_playNonceResolver=new _.Kt;this.scottyUploadRateLimiter=new Xe(this.cloudSaveIntervalMs,function(D,K){return cdq(G,D,K)},2);
this.downloadDataPromise=Ttk(this);this.downloadDataPromise.then(function(){G.initialDownloadDataSucceeded=!0}).catch(function(){})},eNu=function(x,G){G.then(function(D){return x.JSC$14773_playNonceResolver.resolve(D)})},ZYs=function(x){return _.T(function(G){return x.cachedData===void 0?G.return(x.downloadDataPromise):G.return(x.cachedData)})},MdJ=function(x,G){return _.T(function(D){x.cachedData=G;
if(!x.initialDownloadDataSucceeded)throw Error("Rh");return _.Z(D,x.scottyUploadRateLimiter.call(G),0)})},QUs=function(){return new Promise(function(x){setTimeout(x,1E3,"")})},pEs=function(x,G){var D,K;
return _.T(function(z){if(z.nextAddress==1)return D=x.JSC$14773_miniAppId,_.Z(z,Promise.race([x.JSC$14773_playNonceResolver.promise,QUs()]),2);K={"X-YouTube-MiniAppId":D,"X-YouTube-PostPlayNonce":z.yieldResult};"DELEGATED_SESSION_ID"in _.Oo&&Rpf(G,K);return z.return(K)})},cdq=function(x,G,D){D=D===void 0?!1:D;
return _.T(function(K){return kon()?_.B("enable_cloud_save_error_popup_after_retry")?K.return(new Promise(function(z,y){var c,W,e,Q,p;return _.T(function(V){switch(V.nextAddress){case 1:c=0,W=!0,Q=e=null;case 2:if(!(W&&c++<2)){V.jumpTo(4);break}_.Kl(V,5);return _.Z(V,Vdu(x,G,D),7);case 7:e=V.yieldResult;W=e.ok?!1:!ExQ.includes(e.status);_.iI(V,2);break;case 5:Q=p=_.lX(V);W=hIO(Q);V.jumpTo(2);break;case 4:e?e.ok?(AC(x,lnu),z()):(AC(x,x.cloudSaveIntervalMs*2),y(Error("Sh`"+String(e.status),{cause:{rpcErrorCode:e.status}}))):
(AC(x,x.cloudSaveIntervalMs*2),y(Q||Error("Th"))),_.c5(V)}})})):K.return(new Promise(function(z,y){var c,W;
return _.T(function(e){if(e.nextAddress==1){if(x.JSC$14773_miniAppId==="")return y(Error("Uh")),e.return();_.Kl(e,2);return _.Z(e,Vdu(x,G,D),4)}if(e.nextAddress!=2)return c=e.yieldResult,c.ok?(AC(x,lnu),z()):(AC(x,x.cloudSaveIntervalMs*2),y(Error("Sh`"+String(c.status),{cause:{rpcErrorCode:c.status}}))),_.iI(e,0);W=_.lX(e);AC(x,x.cloudSaveIntervalMs*2);y(W);_.c5(e)})})):K.return()})},Vdu=function(x,G,D){D=D===void 0?!1:D;
var K,z,y;return _.T(function(c){if(c.nextAddress==1)return K=_.PY((new TextEncoder).encode(G)),z=GTE(),_.Z(c,pEs(x,z),2);y=c.yieldResult;return c.return(fetch(z,{method:"POST",body:new Blob([K]),headers:y,keepalive:D}))})},Ttk=function(x){var G,D;
return _.T(function(K){if(K.nextAddress==1){if(!kon())return K.return("");if(x.JSC$14773_miniAppId==="")throw Error("Uh");if(x.loadAttempts>2)return K.return(x.downloadDataPromise);_.Kl(K,2);return _.Z(K,bY9(x),4)}if(K.nextAddress!=2)return G=K.yieldResult,K.return(G);D=_.lX(K);if(hIO(D)&&++x.loadAttempts<2)return K.return(Ttk(x));throw D;})},bY9=function(x){var G,D,K,z,y;
return _.T(function(c){switch(c.nextAddress){case 1:return _.Kl(c,2),G=GTE(),_.Z(c,pEs(x,G),4);case 4:return D=c.yieldResult,_.Z(c,fetch(G,{method:"GET",headers:D}),5);case 5:return K=c.yieldResult,K.ok?_.Z(c,K.text(),6):c.return(Promise.reject(Error("Vh`"+String(K.status),{cause:new PJP(K.status)})));case 6:return z=c.yieldResult,c.return((new TextDecoder).decode(_.eZ(z)));case 2:return y=_.lX(c),c.return(Promise.reject(y))}})},AC=function(x,G){x.cloudSaveIntervalMs=G;
x.scottyUploadRateLimiter.intervalMs=x.cloudSaveIntervalMs};
WTi.prototype.flush=function(){var x=this;return _.T(function(G){return x.initialDownloadDataSucceeded?_.Z(G,x.scottyUploadRateLimiter.flush(!0),0):G.return()})};var LT7=fg(J7(1),N7(1)),Bt0=fg(J7(1),N7(3)),UQ=function(x){this.callbacks=x};
_.a=UQ.prototype;_.a.onAudioToggled=function(x,G){(G===void 0||G)&&_.hi("yt-mini-app-is-audio-enabled",x,2592E3)};
_.a.onPause=function(){this.onAudioToggled(!1,!1)};
_.a.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.a.returnNativeBenchmarkingMessage=function(){};
_.a.sendGameData=function(){};
_.a.sendStartGameFrameCapture=function(){};
var D4Q=function(x,G,D){this.callbacks=x;var K=this;this.sdkVersion=new _.Kt;this.channel=new Tmn(_.qV({destination:window,iframe:G,origin:(new URL(D.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var z=Ru;var y=J7(5);var c=new UFi;c=_.$p(c,1,1E4);y=_.DB(y,4,wqq,c);z(K,y);K.onAudioToggled(K.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){K.sdkVersion.resolve("")},1E4)};
_.m(D4Q,UQ);_.a=D4Q.prototype;_.a.onAudioToggled=function(x,G){UQ.prototype.onAudioToggled.call(this,x,G===void 0?!0:G);G=Ru;var D=J7(2),K=new Xq8;x=_.aK(K,1,x);x=_.DB(D,3,wqq,x);G(this,x)};
_.a.onPause=function(){UQ.prototype.onPause.call(this);Ru(this,J7(3))};
_.a.onResume=function(){UQ.prototype.onResume.call(this);Ru(this,J7(4))};
_.a.returnNativeBenchmarkingMessage=function(x){var G=Ru,D=J7(6);var K=N7(_.lr(x,Sw,1)?1:2);x=_.lr(x,Sw,1)?x:null;K=_.DB(K,5,vp,x);G(this,fg(D,K))};
_.a.sendGameData=function(x){var G=Ru,D=J7(7);x=_.DB(D,5,wqq,x);G(this,x)};
_.a.sendStartGameFrameCapture=function(){Ru(this,J7(9))};
var Sv=function(x,G,D){var K,z,y;return _.T(function(c){if(c.nextAddress==1)return K=x.callbacks,z=K.onSdkCalled,y=G,_.Z(c,x.sdkVersion.promise,2);z.call(K,y,c.yieldResult,D);_.c5(c)})};
D4Q.prototype.onMessage=function(){var x=this;return ZQ$(Pp,function(G){var D,K,z,y,c,W,e,Q,p,V,L,r,H,O,A,g,u,f,v,P,k,cL,bO,mE,jf,$C,OD,wn,n$,Fi,pf,UE,M0,cs,G8,T7,Wd,Fc,lO,Bs,Xi,uC,Y8,fu,g4,vs;return _.T(function(as){switch(as.nextAddress){case 1:if(!ELi(G.data))return _.O9(Error("Wh")),as.return();D=_.sk(G.data,1);_.B("enable_iframe_message_get_type_via_fields")&&(K=G.data,D=z=_.sk(K,1));switch(D){case 8:if(G.data.hasMetadata()){var d9=x.sdkVersion,Lf=d9.resolve;var Lu=G.data.getMetadata();Lu=_.rP(Lu,
1);Lf.call(d9,Lu);clearTimeout(x.sdkVersionTimeoutId)}break;case 6:return as.jumpTo(2);case 16:if(!_.cV(G.data,vLh,14,Ed))return as.return();y=_.HV(G.data,vLh,14,Ed);(W=(c=x.callbacks).onGameFrameReceived)==null||W.call(c,y);return as.return();case 17:if(!_.cV(G.data,Nli,15,Ed))return as.return();(Q=(e=x.callbacks).onGameAudioReceived)==null||Q.call(e,_.HV(G.data,Nli,15,Ed));return as.return();case 1:if(d9=_.HV(G.data,nLk,2,Ed))switch(_.sk(d9,1)){case 1:x.callbacks.onFirstFrameReady();if(_.B("enable_network_request_logging_on_game_events")&&
_.lr(d9,wH,4)){Sv(x,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.hv(d9,wH,4));break}Sv(x,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(Lu=(Lf=x.callbacks).onGameReady)==null||Lu.call(Lf);if(_.B("enable_network_request_logging_on_game_events")&&_.lr(d9,wH,4)){Sv(x,"MINI_APP_SDK_API_GAME_READY",_.hv(d9,wH,4));break}Sv(x,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.cV(d9,q7,3,iss))x.callbacks.onResourceLoaded(_.HV(d9,q7,3,iss))}return as.return();case 3:return as.jumpTo(3);case 4:return as.jumpTo(4);
case 2:return as.jumpTo(5);case 9:return as.jumpTo(6);case 10:return x.callbacks.onClick(),as.return();case 5:return as.jumpTo(7);case 11:if(!_.cV(G.data,gH,9,Ed))return as.return();p=_.HV(G.data,gH,9,Ed);(L=(V=x.callbacks).onBenchmarkingMessageReceived)==null||L.call(V,p);d9=G.reply;Lf=J7(1);Lu=N7(1);var Cu=new gH;var ex=new Uint8Array(Asf(p,pE(p,FYs,6))|0);Cu=Ww(Cu,5,FYs,_.nu(ex,!1));Lu=_.DB(Lu,5,vp,Cu);d9.call(G,fg(Lf,Lu));return as.return();case 12:return as.jumpTo(8);case 13:return as.jumpTo(9);
case 15:if(!_.B("enable_open_yt_content"))return G.reply(Bt0),as.return();if(!_.cV(G.data,qgE,12,Ed))return G.reply(fg(J7(1),N7(2))),as.return();d9=_.HV(G.data,qgE,12,Ed);r=_.rP(d9,1);x.callbacks.onOpenYTContent(r);G.reply(LT7);return as.return();case 14:return as.jumpTo(10);default:return as.return()}as.jumpTo(0);break;case 2:if(!_.cV(G.data,t7,5,Ed))return as.return();Lf=G.data;d9=pE(Lf,Ed,5);Lf=Lf.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(d9=$0(Lf,Lf[_.sE]|0,t7,d9))||(d9=t7[qk])||
(d9=new t7,$8(d9.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),d9=t7[qk]=d9);H=d9;d9=_.hO(H,uK,1,_.xa());O=_.l(d9);A=O.next();case 12:if(A.done){as.jumpTo(14);break}g=A.value;u=new _.LL;u.level=_.sk(g,2)===1?"WARNING":"ERROR";f=zbn(g.getSource());return _.Z(as,x.sdkVersion.promise,15);case 15:v={source:f,sdkVersion:as.yieldResult};_.sc(_.yW(g,6))!=null?(u.message=g.getMessage(),u.stack=_.rP(g,5),v.sdkErrorType=at$(_.sk(g,6)),_.sc(_.yW(g,7))!=null&&(v.sdkApi=oEQ(_.sk(g,7)))):u.stack=void 0;
k=P=void 0;(k=(P=x.callbacks).onError)==null||k.call(P,{loggingError:u,metadata:v});A=O.next();as.jumpTo(12);break;case 14:return as.return();case 3:return _.Kl(as,16),d9=x.callbacks,Lf=d9.onSave,Lu=_.HV(G.data,Acs,4,Ed),Lu=_.rP(Lu,1),_.Z(as,Lf.call(d9,Lu),18);case 18:G.reply(LT7);_.iI(as,17);break;case 16:return cL=_.lX(as),bO=Aj,mE=cL,jf=x.callbacks,$C="MINI_APP_SDK_API_SAVE_DATA",_.Z(as,x.sdkVersion.promise,19);case 19:bO(mE,jf,$C,as.yieldResult),G.reply(Bt0);case 17:return _.Z(as,Sv(x,"MINI_APP_SDK_API_SAVE_DATA"),
20);case 20:return as.return();case 4:return _.Kl(as,21),_.Z(as,x.callbacks.onLoad(),23);case 23:OD=as.yieldResult;d9=G.reply;Lf=J7(1);Lu=N7(1);Cu=new Acs;Cu=_.Z_(Cu,1,OD);Lu=_.DB(Lu,3,vp,Cu);d9.call(G,fg(Lf,Lu));_.iI(as,22);break;case 21:return wn=_.lX(as),n$=Aj,Fi=wn,pf=x.callbacks,UE="MINI_APP_SDK_API_LOAD_DATA",_.Z(as,x.sdkVersion.promise,24);case 24:n$(Fi,pf,UE,as.yieldResult),G.reply(Bt0);case 22:return _.Z(as,Sv(x,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return as.return();case 5:_.Kl(as,
26);x.callbacks.onSendHighScore(AE(_.HV(G.data,kxi,3,Ed).getValue()));G.reply(fg(J7(1),N7(1)));_.iI(as,27);break;case 26:return M0=_.lX(as),cs=Aj,G8=M0,T7=x.callbacks,Wd="MINI_APP_SDK_API_SEND_SCORE",_.Z(as,x.sdkVersion.promise,28);case 28:cs(G8,T7,Wd,as.yieldResult),G.reply(Bt0);case 27:return _.Z(as,Sv(x,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return as.return();case 6:if(!_.cV(G.data,PAZ,8,Ed)){as.jumpTo(30);break}d9=_.HV(G.data,PAZ,8,Ed);d9=_.sk(d9,1);return _.Z(as,Sv(x,oEQ(d9)),30);case 30:return as.return();
case 7:return d9=G.reply,Lf=J7(1),Lu=N7(1),Cu=x.callbacks.getLanguage(),Lu=Ww(Lu,4,vp,iC(Cu)),d9.call(G,fg(Lf,Lu)),_.Z(as,Sv(x,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return as.return();case 8:if(!_.cV(G.data,tUi,10,Ed))return as.return();Fc=_.HV(G.data,tUi,10,Ed);lO=x.callbacks;Bs=lO.onSdkPerformanceUpdate;return _.Z(as,x.sdkVersion.promise,33);case 33:return Bs.call(lO,Fc,as.yieldResult),as.return();case 9:d9=G.data;Lf=pE(d9,Ed,11);if(_.gb(_.yW(d9,Lf))==null)return G.reply(fg(J7(1),N7(2))),
as.return();Xi=mH(G.data,11,Ed);x.callbacks.onShareInviteCode(Xi);G.reply(LT7);return _.Z(as,Sv(x,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return as.return();case 10:if(_.cV(G.data,Osk,13,Ed)){as.jumpTo(35);break}return _.Z(as,x.callbacks.onShowMiniAppAd(2),36);case 36:return uC=as.yieldResult,G.reply(fg(J7(1),u47(uC))),_.Z(as,Sv(x,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return as.return();case 35:d9=_.HV(G.data,Osk,13,Ed);a:switch(_.sk(d9,1)){case 1:d9={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:d9={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:d9={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}Y8=d9;fu=Y8.adType;g4=Y8.sdkApi;d9=x.callbacks;Lf=d9.onShowMiniAppAd;Lu=_.HV(G.data,Osk,13,Ed);Lu=_.rP(Lu,2);return _.Z(as,Lf.call(d9,fu,Lu||void 0),38);case 38:return vs=as.yieldResult,G.reply(fg(J7(1),u47(vs))),_.Z(as,Sv(x,g4),39);case 39:return as.return()}})})};
var Ru=function(x,G){_.T(function(D){x.channel.send(G);_.c5(D)})},UH=function(x,G,D){this.callbacks=x;
var K=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;x=ygD(G,(new URL(D.toString())).origin);this.gameSnacks=new $RQ(x);this.gameSnacks.page.onReady(function(){K.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){K.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var z,y;(y=(z=K.callbacks).onGameReady)==null||y.call(z)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(z,y){try{K.callbacks.onSendHighScore(y)}catch(c){Aj(c,K.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(z,y){var c;return _.T(function(W){if(W.nextAddress==1)return _.Kl(W,2),_.Z(W,K.callbacks.onSave(K.decoder.decode(y)),4);if(W.nextAddress!=2)return _.iI(W,0);c=_.lX(W);Aj(c,K.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return W.return()})});
this.gameSnacks.storage.onLoad(function(){var z,y;return _.T(function(c){if(c.nextAddress==1)return _.Kl(c,2),_.Z(c,K.callbacks.onLoad(),4);if(c.nextAddress!=2)return z=c.yieldResult,c.return(K.encoder.encode(z));y=_.lX(c);Aj(y,K.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return c.return(K.encoder.encode(""))})});
this.gameSnacks.init()};
_.m(UH,UQ);UH.prototype.onAudioToggled=function(x,G){UQ.prototype.onAudioToggled.call(this,x,G===void 0?!0:G);var D;(D=this.gameSnacks)==null||D.audio.update(x)};
UH.prototype.onPause=function(){UQ.prototype.onPause.call(this);var x;(x=this.gameSnacks)==null||x.game.pause()};
UH.prototype.onResume=function(){UQ.prototype.onResume.call(this);var x;(x=this.gameSnacks)==null||x.game.resume()};var rd9=yHn,sUh=_.Nv(function(x){var G=x.data;var D=x.loadingProgress;x=_.l(_.eO("",void 0,"LYYTdd"));var K=x.next().value,z=x.next().value;x=_.l(_.eO(!1,void 0,"K0waae"));var y=x.next().value,c=x.next().value,W=[],e=function(){return"transform: scaleX("+(_.If(D)||0)+")"},Q=null,p=function(){var H;
return(H=G()&&Q)!=null?H:Q=G().showAnniversaryAnimation?6:rd9()};
_.$9(function(){var H;if(G().timeOutMessages&&((H=G().timeOutMessages)==null?0:H.length)){Q=null;H=_.l(W);for(var O=H.next();!O.done;O=H.next())clearTimeout(O.value);W.length=0;ltd(G().timeOutMessages,W,z,c)}});
var V=function(){return!!G().persistentErrorMessageTitle},L=function(){return D!==void 0},r=function(){return G().title};
return _.M("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.M("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.M("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.M("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var H,O=(H=G().backgroundImage)==null?void 0:H.sources,A;return(O==null?0:O.length)?"background-image: url("+((A=O[0])==null?void 0:A.url)+")":
""}}),_.M("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.M(_.b,{cond:function(){return!V()},
then:function(){var H={};return _.M("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.M("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.M(_.l_,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+p()},
data:function(){var O="loading_animation_"+p();return{animationConfig:{name:O,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+O+".json",loop:!0,autoplay:!0}}}})),_.M("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.M(_.b,{cond:r,
then:function(){return _.M("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},r)}}),_.M("p",{class:_.ym("mini-app-splash-screen-view-model-wiz__timeout-message",(H["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return y()},H)),
"aria-live":"polite"},K),_.M(_.b,{cond:L,then:function(){return _.M("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.M("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:e}))}})))}}),_.M(_.b,{cond:V,
then:function(){return _.M("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.M("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return G().persistentErrorMessageTitle}),_.M(_.b,{cond:function(){return!!G().persistentErrorMessageDescription},
then:function(){return _.M("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return G().persistentErrorMessageDescription})}}))}})))},"Rd");var YWs=new _.wq("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var mfh=fx;fx=function(x){function G(D){if(D){var K,z;(K=D.__spec)==null||(z=K.didUnmount)==null||z.call(K);for(K=0;K<D.childNodes.length;K++)G(D.childNodes[K])}}
mfh==null||mfh(x);sI(function(){for(var D=0;D<x.length;D++)G(x[D])})};var HYq=_.Nv(function(x){var G=x.data;var D=x.score;var K=x.formattedScore;var z=x.onScoreChanged;var y=x.isEmbeddedInWebview;var c=_.Ni(),W=function(){var r;return _.Y(G==null?void 0:(r=G())==null?void 0:r.buttonViewModel,_.Ls)},e=function(){var r;
return(D==null?void 0:D())||Number(G==null?void 0:(r=G())==null?void 0:r.lastScore)||0},Q=function(){var r;
return(K==null?void 0:K())||((r=W())==null?void 0:r.title)||""},p,V=1;
if(x=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))x=Number(x),V=isNaN(x)?1:x/100;_.$9(function(){z==null||z(e());var r;var H=_.jn((r=W())==null?void 0:r.onTap);if(H){r=_.Y(H,bg0);var O,A,g;r=_.Y(r==null?void 0:(O=r.panelLoadingStrategy)==null?void 0:(A=O.inlineContent)==null?void 0:(g=A.dialogViewModel)==null?void 0:g.customContent,p_9)}else r=void 0;if(O=r)O.score=Q()});
x=_.WH(function(){var r,H,O=G==null?void 0:(r=G())==null?void 0:(H=r.loggingDirectives)==null?void 0:H.trackingParams;O&&_.DO(_.Eo().resolve(_.ph),O);return!1});
_.FQ(function(){if(c.value){var r=c.value.querySelector("button"),H=W();r&&H&&cH3(r,H);t2("yt-share-playable-with-high-score",function(){var O=e().toString(),A=G==null?void 0:G().onShareHighScoreCommand,g=G==null?void 0:G().highScoreShareClientParamIdentifier,u=y==null?void 0:y();A&&(u?(g=new y7k,O=_.Z_(g,2,O),XD(A,O.JSC$10272_serializeBinary())):g&&(_.Eo().resolve(YWs).clientParams.set(g,{miniAppClientParams:{highScore:O}}),vxO(A,!1)))})}});
var L=function(){var r=W();r&&(D==null?0:D())&&r.accessibilityText&&(r.accessibilityText=r.accessibilityText.replace(p,Q()));p=Q();return{numberValue:e(),numberText:Q(),heightPx:36,fontSizeMultiplier:V,shouldAnimate:!(D==null||!D())&&!0}};
return _.M("yt-mini-app-score-button-view-model",{class:function(){var r={};return _.cH("mini-app-score-button-view-model-wiz",(r["mini-app-score-button-view-model-wiz--is-visible"]=e()!==0,r))},
el:c,"on:click":x},ka(!1,function(){return _.M("span",{style:"display:none;"},e)}),_.M(_.bA,{data:function(){var r;
return G==null?void 0:(r=G())==null?void 0:r.buttonViewModel}},{buttonViewModel:function(r){return _.M(_.Cs,{data:r.data,
animatedTextProps:L})}}))},"Sd");var jUZ=_.Nv(function(x){var G,D=(G=_.xt("yt-mini-app-is-theater-mode-enabled"))!=null?G:!1,K=_.B("enable_playable_container_save_button"),z=_.B("enable_play_next_destination_page_in_toolbar");G={};return _.M("ytm-mini-app-top-bar-view-model",null,_.M("div",{class:_.ym("yt-mini-app-top-bar-view-model",(G["yt-mini-app-top-bar-view-model--mobile"]=!1,G["yt-mini-app-top-bar-view-model--desktop"]=!0,G))},_.M("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.M(_.b,{cond:function(){var y;
return!!x.data().backButtonEdu&&!((y=x.isExitMiniAppSeen)==null?0:y.call(x))},
then:function(){return _.M(_.bA,{data:function(){return x.data().backButtonEdu}},{buttonViewModel:_.Cs})},
else:function(){return _.M(_.bA,{data:function(){return x.data().backButton}},{buttonViewModel:_.Cs})}}),_.M(_.b,{cond:function(){return x.data().viewAllButton&&!0},
then:function(){return _.M(_.bA,{data:function(){return x.data().viewAllButton}},{buttonViewModel:_.Cs})}}),_.M(_.b,{cond:function(){return x.data().title&&!0},
then:function(){return _.M("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return x.data().title})}})),_.M("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.M(_.b,{cond:function(){var y;
return(y=x.isDesktopPlayPage)==null?void 0:y.call(x)},
then:function(){return _.M(_.xT,null,_.M($fk,{highScoreButton:function(){return x.data().highScoreButton},
score:x.score,formattedScore:x.formattedScore,onScoreChanged:x.onScoreChanged,isEmbeddedInWebview:x.isEmbeddedInWebview}),_.M(FTu,{enableSaveButton:function(){return _.If(K)},
saveButton:function(){return x.data().saveButton},
isSaved:x.isSaved,onSaveToggled:function(){return x.onSaveToggled}}),_.M(Cci,{menuButton:function(){return x.data().menuButton}}))},
else:function(){return _.M(_.b,{cond:function(){return!1},
then:function(){return _.M(_.bA,{data:function(){return x.data().playPageButton}},{buttonViewModel:function(y){return _.M(_.Cs,{data:y.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.M($fk,{highScoreButton:function(){return x.data().highScoreButton},
score:x.score,formattedScore:x.formattedScore,onScoreChanged:x.onScoreChanged,isEmbeddedInWebview:x.isEmbeddedInWebview})}})}})),_.M("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.M(_.bA,{data:function(){return x.data().muteButton}},{toggleButtonViewModel:function(y){var c=y.data;
return _.M(_.rl,{data:function(){var W,e;return Object.assign({},c(),{isToggled:(e=(W=x.isAudioEnabled)==null?void 0:W.call(x))!=null?e:!0})},
onToggle:x.onAudioToggled,useOutlinedIcon:!0})}}),_.M(_.bA,{data:function(){return x.data().theatreModeButton}},{toggleButtonViewModel:function(y){var c=y.data;
return _.M("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.M(_.rl,{data:function(){return Object.assign({},c(),{isToggled:D})},
useOutlinedIcon:!0}))}}),_.M(Ins,{fullscreenButton:function(){return x.data().fullscreenButton}}),_.M(_.b,{cond:function(){return _.If(z)&&x.data().viewAllButton&&!1},
then:function(){return _.M(_.bA,{data:function(){return x.data().viewAllButton}},{buttonViewModel:_.Cs})}}),_.M(_.b,{cond:function(){var y;
return!((y=x.isDesktopPlayPage)==null?0:y.call(x))},
then:function(){return _.M(_.xT,null,_.M(FTu,{enableSaveButton:function(){return _.If(K)},
saveButton:function(){return x.data().saveButton},
isSaved:x.isSaved,onSaveToggled:function(){return x.onSaveToggled}}),_.M(Cci,{menuButton:function(){return x.data().menuButton}}))}}))))},"Td");
jUZ.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var Cci=_.Nv(function(x){return _.M(_.bA,{data:x.menuButton},{buttonViewModel:_.Cs})},"Ud"),FTu=_.Nv(function(x){var G=x.enableSaveButton;
var D=x.saveButton;var K=x.isSaved;var z=x.onSaveToggled;return _.M(_.b,{cond:function(){return G()&&!(D==null||!D())},
then:function(){return _.M(_.bA,{data:function(){var y=_.Y(D==null?void 0:D(),_.Bq),c;return{toggleButtonViewModel:Object.assign({},y,{isToggled:(c=K==null?void 0:K())!=null?c:!(y==null||!y.isToggled)})}}},{toggleButtonViewModel:function(y){return _.M(_.rl,{data:y.data,
onToggle:z})}})}})},"Vd"),$fk=_.Nv(function(x){var G=x.highScoreButton;
var D=x.score;var K=x.formattedScore;var z=x.onScoreChanged;var y=x.isEmbeddedInWebview;return _.M(_.bA,{data:G},{miniAppScoreButtonViewModel:function(c){return _.M(HYq,{data:c.data,score:D,formattedScore:K,onScoreChanged:z,isEmbeddedInWebview:y})}})},"Wd"),Ins=_.Nv(function(x){x=x.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.M(_.xT,null):_.M(_.bA,{data:x},{buttonViewModel:_.Cs})},"Xd");_.OYJ=new _.wq("DESKTOP_CURRENT_PAGE");var n6i=_.Nv(function(x){var G=x.data;var D=_.B("force_active_time_logging_webview"),K=!1,z=new an0,y=void 0,c=void 0,W=_.Eo().resolve(zN7),e=new xfh,Q=void 0,p=void 0,V=[],L=void 0,r=void 0,H=!1,O=!1,A=!1,g=!1,u=new _.Kt,f=_.Eo().resolve(YWs),v=_.Eo().resolve(_.Iu),P=_.Eo().resolve(_.P6(lm)),k,cL=(k=_.Eo().resolve(_.P6(_.OYJ)))==null?void 0:k.getCurrentPage(),bO=!1,mE=0,jf=function(NL){NL.preventDefault();return NL.returnValue=""},$C;
x=_.l(_.eO(!(($C=_.xt("yt-mini-app-is-audio-enabled"))!=null&&!$C),void 0,"HKETIe"));var OD=x.next().value,wn=x.next().value,n$;$C=_.l(_.eO(!((n$=_.xt("exit-mini-app-seen-state"))==null||!n$),void 0,"YikM9"));var Fi=$C.next().value,pf=$C.next().value;n$=_.l(_.eO(!1,void 0,"iTNqCb"));var UE=n$.next().value,M0=n$.next().value;n$=_.l(_.eO(void 0,void 0,"bU3Vbf"));var cs=n$.next().value,G8=n$.next().value;n$=_.l(_.eO(void 0,void 0,"qd4Zt"));var T7=n$.next().value,Wd=n$.next().value;n$=_.l(_.eO(!0,void 0,
"Cqc83e"));var Fc=n$.next().value,lO=n$.next().value;n$=_.l(_.eO(!1,void 0,"oHovIe"));var Bs=n$.next().value,Xi=n$.next().value;n$=_.l(_.eO(void 0,void 0,"aeN11"));var uC=n$.next().value,Y8=n$.next().value;n$=_.l(_.eO(0,void 0,"AEGRyb"));var fu=n$.next().value,g4=n$.next().value,vs=_.qi(),as=function(){return G().isEmbeddedInWebview},d9=function(){return G().hasPlayNextShelf};
t2("yt-page-type-changed",function(NL){if(_.B("enable_is_mini_app_page_active_bugfix"))NL.detail.newPageSubtype!=="mini_app"&&Fc()&&Cu();else if(NL=_.fA$()==="mini_app",NL!==Fc())if(lO(NL),NL){var lC;NL=(lC=G().playableId)==null?void 0:lC.toString();NL!==void 0&&window.location.href.includes(NL)&&!O&&(g=!0,Lf(),eX(QJ.value))}else NL||Cu()});
t2("yt-action",function(NL){NL.detail.actionName==="yt-engagement-panel-visible-changed"&&NL.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&NL.detail.args[2]==="PAmini_app_panel"&&Cu();_.B("enable_is_mini_app_page_active_bugfix")?NL.detail.actionName==="yt-history-load"&&!Fc()&&(cL==null?0:cL.active)?(lO(!0),Lf(),eX(QJ.value)):NL.detail.actionName==="yt-history-load"&&Fc()&&!G().isEmbeddedInWebview&&bX():Fc()&&NL.detail.actionName==="yt-history-load"&&(g?g=!1:G().isEmbeddedInWebview||bX())});
_.Fq(function(){Lu()});
_.$9(function(){Lf()});
var Lf=function(){var NL=G().playableId,lC=G().localReleaseId,lU=G().derivedDeviceInterface;if(O)_.O9(new _.LL("[MiniAppContainerViewModel] onEnter was called more than once"));else{O=!0;y=new uMs(NL,lC,lU,document.visibilityState==="visible");NIJ(y);c=new WTi(NL);XE7(W,NL);GiZ(e,{showMiniAppAdCommand:G().showMiniAppAdCommand,isEmbeddedInWebview:G().isEmbeddedInWebview,playLogger:y});r$O()&&(r=document.body.style.backgroundColor,_.H_(document.body,"background-color","black"));Vx();VJ();u=new _.Kt;
if(G().isEmbeddedInWebview){if(NL=(new URLSearchParams(window.location.search)).get("postPlayNonce"))wMh(y,NL),bO=!0;z.initialize({onAudioStateLoaded:function(nf){yj(nf)},
onMuteMiniApp:function(){yj(!1)},
onUnmuteMiniApp:function(){yj(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(nf){bO||(wMh(y,nf),bO=!0)},
confirmExitMiniApp:function(){var nf,H5,fl;return _.T(function(IS){if(IS.nextAddress==1)return G().confirmExitMiniAppCommand?_.Z(IS,Promise.race([u.promise,Promise.resolve(!1)]),2):IS.return();(nf=IS.yieldResult)?!G().confirmExitMiniAppCommandEdu||(fl=(H5=Fi)==null?void 0:H5())!=null&&fl?Ll(G().confirmExitMiniAppCommand):(Ll(G().confirmExitMiniAppCommandEdu),_.hi("exit-mini-app-seen-state","true",2592E6)):Ll(G().closeMiniAppCommand);_.c5(IS)})},
onNativeBenchmarkingMessageReceived:function(nf){nf=Iwq(_.q7d(nf));if(_.cV(nf,_.OH,3,$F8)){var H5=_.HV(nf,_.OH,3,$F8),fl=JPP();var IS=AE(fl.getSeconds())-AE(H5.getSeconds());H5=_.GH(fl,2)-_.GH(H5,2);IS<0&&H5>0?(IS+=1,H5-=1E9):IS>0&&H5<0&&(--IS,H5+=1E9);IS=(new Sw).setSeconds(IS);IS=_.Y0(IS,2,_.Yi(H5),0);_.GW(nf,1,IS)}var MV;(MV=p)==null||MV.returnNativeBenchmarkingMessage(nf)},
multiplayer3pAckStateLoaded:function(nf){bX(nf)},
exitMiniAppSeenStateLoaded:function(nf){G().confirmExitMiniAppCommandEdu&&pf(nf)},
onNavigateToNewMiniApp:function(){Ll(G().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(nf){nf=new URLSearchParams(nf);var H5=void 0;nf.has("invite_code")&&(H5=new Sg8,nf=nf.get("invite_code"),H5=_.Z_(H5,1,nf));if(nf=H5){var fl;(fl=p)==null||fl.sendGameData(nf)}},
onPauseMiniApp:function(){K=!0;ex()},
onResumeMiniApp:function(){K=!0;y$()},
onAdFinished:function(nf){e.onAdFinished(nf)}});
G().showMultiplayer3pConsentDialogCommand||u.resolve(!0);Ll(G().onContainerReadyCommand)}else wMh(y),u.resolve(!0);eNu(c,dPq(y));dPq(y).then(function(nf){nf={miniAppPlayData:{postPlayNonce:nf}};var H5,fl=(H5=G().loggingDirectives)==null?void 0:H5.trackingParams;fl&&_.en().stateChanged(fl,nf)});
NL=G().showSignInDialogCommand;!kon()&&NL&&(_.hi("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),Ll(NL));G().confirmExitMiniAppCommand&&P&&(NL=qSD(G().confirmExitMiniAppCommand))&&(P.customConfirmationCommand=NL)}},Lu=function(){r&&_.H_(document.body,"background-color",r);
H=!1;L&&L.release();c.flush().catch(function(NL){_.O9(NL)});
W.flush().catch(function(NL){_.O9(NL)});
J0s(y);Ag();p=void 0;AdZ(f)},Cu=function(){lO(!1);
Lu();M0(!1);Y8(void 0);G8(void 0);Wd(void 0);mE=0;g4(0);O=!1},ex=function(){var NL;
(NL=p)==null||NL.onPause();L&&L.release();c.flush().catch(function(lC){_.O9(lC)});
W.flush().catch(function(lC){_.O9(lC)});
vI7(y)},y$=function(){var NL;
(NL=p)==null||NL.onResume();VJ();NL=y;NL.isForeground=!0;OQ(NL,"PLAY_EVENT_TYPE_PLAY_RESUME")},yj=function(NL){var lC;
(lC=p)==null||lC.onAudioToggled(NL);wn(NL)},bX=function(NL){G().showMultiplayer3pConsentDialogCommand&&(G().isEmbeddedInWebview&&NL!==void 0&&u.resolve(NL),!NL&&_.fA$()==="mini_app"&&Ll(G().showMultiplayer3pConsentDialogCommand))},l0=function(){var NL,lC,lU,nf;
return _.T(function(H5){if(H5.nextAddress==1){!G().isLivestream||G().disableVideoCapture||(NL=p)!=null&&NL.sendStartGameFrameCapture();lC=(new URL(window.location.href)).searchParams;if(lC.has("invite_code")){var fl=new Sg8,IS=lC.get("invite_code");lU=_.Z_(fl,1,IS);(nf=p)==null||nf.sendGameData(lU)}UE()||(M0(!0),fl=y,fl.state!==1?_.O9(new _.LL("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+ip9[fl.state])):(_.KL("mini_app_ids_without_game_ready").includes(fl.JSC$14729_miniAppId)&&(fl.gameReady=
!0),fl.state=2,fl.beforeReady=!1,jv(fl,"ma_ffr"),OQ(fl,"PLAY_EVENT_TYPE_PLAY_READY")));return _.Z(H5,u.promise,2)}Ll(G().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();G().isEmbeddedInWebview||bX();_.c5(H5)})},g9=function(){var NL=y;
NL.gameReady=!0;jv(NL,"ma_gr")},FO=function(NL){var lC;
return _.T(function(lU){if(lU.nextAddress==1)return _.Kl(lU,2),_.Z(lU,MdJ(c,NL),4);if(lU.nextAddress!=2)return _.iI(lU,0);lC=_.lX(lU);Ll(G().showSavingErrorPopupCommand);throw lC;})},Ec=function(){var NL,lC;
return _.T(function(lU){if(lU.nextAddress==1)return _.Kl(lU,2),_.Z(lU,ZYs(c),4);if(lU.nextAddress!=2)return NL=lU.yieldResult,lU.return(NL);lC=_.lX(lU);Ll(G().showLoadingErrorDialogCommand);throw lC;})},h6=function(NL){y.logError(NL)},TZ=function(NL,lC,lU){tgi(y,NL,lC,lU)},uX=function(NL,lC){PeZ(y,NL,lC)},RW=function(){!D&&G().isEmbeddedInWebview||_.hu();
fVZ(y,!0);H||(window.addEventListener("beforeunload",jf,{capture:!0}),H=!0)},aA=function(NL){var lC,lU,nf,H5,fl,IS,MV;
return _.T(function(QW){if(QW.nextAddress==1)return W&&(!Q||Q<NL)&&NL>0?_.Z(QW,Ufs(W,NL),3):QW.jumpTo(0);lC=QW.yieldResult;lU=_.l(lC);nf=lU.next().value;H5=lU.next().value;fl=nf;IS=H5;((MV=fl)==null?0:MV.displayString)&&IS&&(G8(IS),Wd(fl.displayString));_.c5(QW)})},PC=function(NL){var lC=G().onBenchmarkingMessageReceivedCommand;
if(lC){var lU=JPP();_.DB(NL,3,$F8,lU);XD(lC,jOk(NL))}},zy=function(NL){var lC=G().onGameFrameReceivedCommand;
if(lC){var lU=new ZXi;var nf=new cZh;var H5=Lr(NL,1);nf=_.bV(nf,1,H5);NL=_.rP(NL,2);NL=_.Z_(nf,2,NL);lU=_.GW(lU,2,NL);XD(lC,QmZ(lU))}},sD=function(NL){var lC=G().onGameAudioDataReceivedCommand;
if(lC){var lU=new ZXi;var nf=new Wqq;NL=_.rP(NL,1);nf=_.Z_(nf,1,NL);lU=_.GW(lU,4,nf);XD(lC,QmZ(lU))}},Sf=function(){var NL=new URLSearchParams(window.location.search);
if(G().isEmbeddedInWebview&&NL&&NL.get("override_hl")==="true"&&NL.get("hl"))return NL.get("hl");NL=document.documentElement.lang;return NL!==""?NL:_.XX},dn=function(NL){var lC=G().onShareInviteCodeCommand;
if(lC)if(G().isEmbeddedInWebview){var lU=new y7k;NL=_.Z_(lU,1,NL);XD(lC,c79(NL))}else lU=G().inviteCodeShareClientParamIdentifier,f.clientParams.set(lU,{miniAppClientParams:{inviteCode:NL}}),Ll(lC)},Ws=function(NL){var lC,lU,nf;
return _.T(function(H5){if(H5.nextAddress==1)return lC=G().onMiniAppOpenYtContentRequested,W&&_.B("enable_open_yt_content")&&lC?_.Z(H5,RN7(W,NL),3):H5.jumpTo(0);lU=H5.yieldResult;if(lU==="OK")if(G().isEmbeddedInWebview){var fl=new aF7;nf=Ww(fl,2,re,iC(NL));XD(lC,lFJ(nf))}else v.clientData.set("video_id",NL),Ll(lC);_.c5(H5)})},aT=function(NL){mE+=_.GH(NL,3);
NL=Math.min(Math.log(1+mE/15E6*9)/Math.log(10),.99);g4(NL);Cm(NL)},Cm=_.TE(function(NL){var lC=G().updateLoadingProgressCommand;
if(lC){var lU=new aF7;NL=Ww(lU,3,re,_.cY(NL));XD(lC,lFJ(NL))}},100),Zc=function(NL){return KT0(e,NL)},VJ=function(){var NL,lC;
((NL=_.bIf())==null?void 0:(lC=NL.wakeLock)==null?void 0:lC.request)!=null&&_.bIf().wakeLock.request("screen").then(function(lU){L=lU}).catch(function(){})},QJ=_.qi();
_.$9(function(){G().isSupportedCountry&&(kon()||_.B("enable_sign_in_promo")||!G().showSignInDialogCommand?eX(QJ.value):Ll(G().onMiniAppReadyCommand))});
var BY=function(){return _.M("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return UE()?0:-1},
el:QJ})},eX=function(NL,lC){lC=lC===void 0?!1:lC;
var lU=os();lU&&(lC||lU.toString()!==NL.getAttribute("src"))&&(p=KXL(G().source,{isAudioEnabled:OD,onFirstFrameReady:l0,onGameReady:g9,onSave:FO,onLoad:Ec,onError:h6,onSdkCalled:TZ,onSdkPerformanceUpdate:uX,onClick:RW,onSendHighScore:aA,onBenchmarkingMessageReceived:PC,getLanguage:Sf,onShareInviteCode:dn,onResourceLoaded:aT,onOpenYTContent:Ws,onShowMiniAppAd:Zc,onGameFrameReceived:zy,onGameAudioReceived:sD},NL,lU),Q2(NL,"load",function(){jv(y,"ma_il");Q2(NL,"load",function(){eX(NL,!0)})}),_.C9(NL,
lU))},os=function(){var NL=G().url;
if(NL&&(NL=_.CU(NL),NL!==null)){if(G().source&&G().source==="MINI_APP_SOURCE_GAMESNACKS")NL=_.Gj(NL,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.B("enable_origin_query_parameter_bugfix")){var lC=_.B1(_.ttD(NL.toString()));lC=new URLSearchParams(lC||"");lC.set("origin",window.location.origin);lC=lC.toString();NL=_.lH(NL).toString();NL=_.oF(Pnf.exec(NL)[0]+(lC.trim()?"#"+lC:""))}return NL}},bH=function(){var NL={};
NL=_.ym("yt-mini-app-container-view-model__loading-screen",(NL["yt-mini-app-container-view-model__loading-screen--fade-out"]=UE,NL));var lC=function(){return UE()?1:fu()};
return _.M("div",{class:NL},_.M(_.bA,{data:function(){return G().splashScreen}},{miniAppSplashScreenViewModel:function(lU){return _.M(sUh,{data:lU.data,
loadingProgress:lC})}}))},Vx=function(){V=[];
V.push(_.Lz(window,"visibilitychange",function(){A||K&&as()||(document.visibilityState==="visible"?y$():ex())}));
V.push(_.Lz(window,"pagehide",function(){Lu()}));
V.push(_.Lz(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&vs.value.dispatchEvent(new Event("tap"))},0)}));
V.push(_.Lz(vs.value,"pointerdown",function(){fVZ(y,!1)},!0));
V.push(_.Lz(vs.value,"pause",function(){A=!0;ex()}));
V.push(_.Lz(vs.value,"play",function(){A=!1;y$()}));
V.push(_.Lz(vs.value,"exit",function(){Lu()}));
var NL=navigator.keyboard,lC=NL&&NL.lock;V.push(_.Lz(window,Pxh,function(){Xi(hc7());hc7()?(G().hasPlayNextShelf&&Qy("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),lp("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),lC&&NL.lock(["Escape"])):(G().hasPlayNextShelf&&lp("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),Qy("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),lC&&NL.unlock())}));
G().showMultiplayer3pConsentDialogCommand&&V.push(_.Lz(window,"yt-playables-ack-3p-data-usage",function(){SWi(W)}));
G().confirmExitMiniAppCommandEdu&&V.push(_.Lz(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.hi("exit-mini-app-seen-state","true",2592E6)}))},Ag=function(){V.forEach(function(NL){pz(NL)});
window.removeEventListener("beforeunload",jf,{capture:!0})},Ll=function(NL){NL&&vxO(NL,G().isEmbeddedInWebview||!1)},lp=function(NL,lC){NL=_.l(vs.value.getElementsByClassName(NL));
for(var lU=NL.next();!lU.done;lU=NL.next())lU.value.classList.add(lC)},Qy=function(NL,lC){NL=_.l(vs.value.getElementsByClassName(NL));
for(var lU=NL.next();!lU.done;lU=NL.next())lU.value.classList.remove(lC)};
return function(){var NL={};NL=_.ym("yt-mini-app-container-view-model",(NL["yt-mini-app-container-view-model--desktop"]=!0,NL["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return G().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},NL["yt-mini-app-container-view-model--ios-web-view"]=r$O(),NL["yt-mini-app-container-view-model--no-top-bar"]=function(){return!G().topBar},NL["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return G().hasPlayNextShelf},NL["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return G().hasPlayNextShelf},NL["yt-mini-app-container-view-model--show-peek-below"]=function(){return!Bs()&&G().hasPlayNextShelf},NL));
var lC={};lC=_.ym("yt-mini-app-container-view-model__content",(lC["yt-mini-app-container-view-model__content--desktop-content"]=!0,lC["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return G().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},lC["yt-mini-app-container-view-model--desktop-play-page"]=function(){return G().hasPlayNextShelf},lC));
return _.M("mini-app-container-view-model",{el:vs},_.M("div",{class:NL},_.M(_.b,{cond:function(){return G().topBar&&!Bs()},
then:function(){return _.M(_.bA,{data:function(){return G().topBar}},{miniAppTopBarViewModel:function(lU){return _.M(jUZ,{data:lU.data,
isAudioEnabled:OD,onAudioToggled:function(nf){yj(nf)},
score:cs,formattedScore:T7,onScoreChanged:function(nf){Q=nf},
isEmbeddedInWebview:as,isSaved:uC,onSaveToggled:function(nf){Y8(nf)},
isExitMiniAppSeen:Fi,isDesktopPlayPage:d9})}})}}),_.M("div",{class:lC},_.M(_.b,{cond:Fc,
then:function(){return BY()}}),_.M(_.b,{cond:function(){return!G().isEmbeddedInWebview},
then:function(){return bH()}}))))}()},"Yd");
n6i.idomCompat=!0;_.tn(n6i,"mini-app-container-view-model",{props:{data:_.ik}});var iYs=_.Nv(function(x){var G=x.data;return _.M("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.M("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.WH(function(){var D=G().onTap;D&&_.UI(D)})},_.M(_.b,{cond:function(){return G().icon},
then:function(D){return _.M(_.Qm,{icon:function(){return D().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.M("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return G().title})))},"Zd");
iYs.idomCompat=!0;var g6Z=_.Nv(function(x){var G=_.qi(),D=_.l(_.eO(void 0,void 0,"kFCJ0c")),K=D.next().value,z=D.next().value;D=_.l(_.eO(void 0,void 0,"PIPgWd"));var y=D.next().value,c=D.next().value;D=_.l(_.eO(void 0,void 0,"rV66ob"));var W=D.next().value,e=D.next().value,Q=function(){var g=K();return g!==void 0?Math.abs(g):void 0},p=function(){var g=Q();
return g===void 0||g<=3},V=function(){var g=Q();
var u=y(),f=W();g=g!==void 0&&u!==void 0&&f!==void 0?u-f-g:void 0;return g===void 0||g<=3},L=function(g){G.value&&G.value.scrollBy({top:0,
left:(_.Am("HTML_DIR")==="rtl"?-1:1)*g*G.value.clientWidth,behavior:"smooth"})},r=function(){var g;
z((g=G.value)==null?void 0:g.scrollLeft);var u;c((u=G.value)==null?void 0:u.scrollWidth);var f;e((f=G.value)==null?void 0:f.clientWidth)},H=function(){L(-.5)},O=function(){L(.5)};
D=_.WH(function(){r()});
_.H6(function(){r();if(G.value){var g=new ResizeObserver(r);g.observe(G.value);_.Fq(function(){g.disconnect()})}});
var A={};return _.M("yt-sponsorships-scrollable-shelf",{class:_.ym("ytdSponsorshipsScrollableShelfHost",x.className)},_.M("div",{class:_.ym("ytdSponsorshipsScrollableShelfContent",(A.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return x.data().previousButton&&x.data().nextButton&&!p()&&!V()},A.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return x.data().previousButton&&!p()&&V()},A.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return x.data().nextButton&&
p()&&!V()},A)),
el:G,"on:scroll":D},x.children),_.M(_.b,{cond:function(){return!p()},
then:function(){return _.M(_.bA,{data:function(){return x.data().previousButton}},{buttonViewModel:function(g){return _.M(_.Cs,{data:g.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:H})}})}}),_.M(_.b,{cond:function(){return!V()},
then:function(){return _.M(_.bA,{data:function(){return x.data().nextButton}},{buttonViewModel:function(g){return _.M(_.Cs,{data:g.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:O})}})}}))},"$d");
g6Z.idomCompat=!0;var df8=_.Nv(function(x){var G=x.data;x={};return _.M("yt-sponsorships-hub",{class:_.ym("ytdSponsorshipsHubHost",(x.ytdSponsorshipsHubHostIndented=function(){return G().indented},x))},_.M("div",{class:"ytdSponsorshipsHubHeader"},_.M("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.M("div",{class:"ytdSponsorshipsHubAvatar"},_.M(_.bA,{data:function(){return G().avatar}},{avatarViewModel:_.Lj})),_.M(_.b,{cond:function(){return G().badgeImage},
then:function(D){return _.M("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.M("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.M("div",{class:"ytdSponsorshipsHubBadge"},_.M(_.wk,{data:D,targetWidth:24,targetHeight:24,alt:""}))))}})),_.M("div",{class:"ytdSponsorshipsHubDetails"},_.M("div",{class:"ytdSponsorshipsHubTierName"},function(){return G().tierName}),_.M("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return G().membershipType}),_.M("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return G().membershipDurationOrExpiry})),_.M("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.M(_.bA,{data:function(){return G().manageButton}},{buttonViewModel:function(D){return _.M(_.Cs,{data:D.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.M(_.bA,{data:function(){return G().actionMenuButton}},{buttonViewModel:function(D){return _.M(_.Cs,{data:D.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.M("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return G().perksTitle}),_.M(g6Z,{data:function(){return{previousButton:G().previousPerkButton,
nextButton:G().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.M("div",{class:"ytdSponsorshipsHubPerkCards"},_.M(_.bA,{data:function(){return G().perkCards}},{sponsorshipsHubPerkCardViewModel:iYs}),_.M(_.b,{cond:function(){return G().viewAllPerksButton},
then:function(D){return _.M(uJ9,{data:D})}}))))},"ae");
df8.idomCompat=!0;var uJ9=_.Nv(function(x){var G=x.data;return _.M("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.M(_.bA,{data:function(){return G().button}},{buttonViewModel:_.Cs}),_.M("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.M("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return G().title}),_.M("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return G().subtitle})))},"be");
uJ9.idomCompat=!0;_.tn(df8,"yt-sponsorships-hub",{props:{data:_.ik}});_.wEZ=_.Nv(function(x){var G=x.data;return _.M("yt-dual-avatar-view-model",{class:"ytDualAvatarViewModelHost",style:_.Ms({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var D;return((D=G().badgeCutoutRadius)!=null?D:14)+"px"}})},_.M("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.M(_.bA,{data:function(){return G().startAvatar}},{avatarViewModel:_.Lj}),_.M(_.bA,{data:function(){return G().endAvatar}},{avatarViewModel:_.Lj})),_.M(_.bA,{data:function(){return G().badge}},{contentPreviewImageViewModel:function(D){return _.M("div",
{class:"ytDualAvatarViewModelBadge"},_.M(_.JK,{data:D.data}))}}))},"ce");
_.wEZ.idomCompat=!0;var NtZ=_.Nv(function(x){var G=x.data;var D,K=!((D=_.Eo().resolve(_.P6(_.ib)))==null||!D());x=_.V9(function(){var p,V,L=K?(p=G().header)==null?void 0:p.backgroundColorDarkMode:(V=G().header)==null?void 0:V.backgroundColorLightMode;if(L!==void 0)return _.jT(L)},void 0,"UX2G6c");
D=_.V9(function(){var p,V;return K?(p=G().header)==null?void 0:p.backgroundImagePart1Dark:(V=G().header)==null?void 0:V.backgroundImagePart1Light},void 0,"GPAi1d");
var z=_.V9(function(){var p,V;return K?(p=G().header)==null?void 0:p.backgroundImagePart2Dark:(V=G().header)==null?void 0:V.backgroundImagePart2Light},void 0,"nboJld"),y=_.V9(function(){return _.Am("HTML_DIR")==="rtl"},void 0,"LGJceb"),c=_.qi(),W=!1,e=function(){var p=c.value;
if(p&&!W){var V,L=(V=p.parentElement)==null?void 0:V.parentElement;if(L)for(p=p.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),V=0;V<p.length;++V){var r=p[V];if(r instanceof HTMLElement){L.scrollTo({top:r.offsetTop+r.clientHeight/2-L.clientHeight/2,behavior:"smooth"});W=!0;break}}}};
_.FQ(function(){var p=c.value;if(p){var V=new ResizeObserver(e);V.observe(p);_.Fq(function(){V.disconnect()})}});
var Q={};return _.M("yt-sponsorships-perks-list",{el:c,class:_.ym("ytdSponsorshipsPerksListHost",(Q.ytdSponsorshipsPerksListHorizontalPadding=function(){return G().horizontalPaddingEnabled},Q))},_.M("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.M("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.Ms({"background-color":x})},_.M("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.M(_.b,{cond:D,then:function(p){var V={};return _.M("div",{class:_.ym((V.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=K,V.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!K,V.ytdSponsorshipsPerksListFlipped=y,V))},_.M(_.wk,{data:p,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.M("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.M(_.b,{cond:z,
then:function(p){var V={};return _.M("div",{class:_.ym((V.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=K,V.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!K,V.ytdSponsorshipsPerksListFlipped=y,V))},_.M(_.wk,{data:p,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.M("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.M(_.bA,{data:function(){var p;
return(p=G().header)==null?void 0:p.dualAvatar}},{dualAvatarViewModel:_.wEZ})))),_.M("div",{class:"ytdSponsorshipsPerksListBody"},_.M("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return G().title}),_.M(_.b,{cond:function(){return G().perks},
then:function(p){return _.M(_.LT,{each:p},function(V,L){var r={};return _.M("div",{class:_.ym("ytdSponsorshipsPerksListPerkContainer",(r.ytdSponsorshipsPerksListSelectedPerk=function(){var H=L(),O=G().selectedPerkIndex;return H===O},r))},_.M(_.b,{cond:function(){return L()>0},
then:function(){return _.M("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.M("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.M(_.b,{cond:function(){return V.icon},
then:function(H){return _.M(_.Qm,{icon:function(){return H().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.M("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.M("div",{class:"ytdSponsorshipsPerksListPerkTitle"},V.title),_.M("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.M(_.vq,{text:V.description})),_.M(_.b,{cond:function(){return V.instructions},
then:function(){var H,O;return _.M("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.M("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(H=V.instructions)==null?void 0:H.title),_.M("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.M(_.vq,{text:(O=V.instructions)==null?void 0:O.text})))}}))),_.M(_.b,{cond:function(){return V.emoji},
then:function(H){return _.M("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.M(_.LT,{each:function(){return H()}},function(O){return _.M(_.wk,{data:O,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.M(qWZ,{data:V}))})}})))},"de");
NtZ.idomCompat=!0;var qWZ=_.Nv(function(x){var G=x.data;var D=function(c,W){return c===W},K=function(){var c=G();
c=_.Y(c==null?void 0:c.badgesShelf,ZgZ);return c!==void 0&&c!==null?c:{previousButton:{},nextButton:{}}},z=_.Ni(),y=function(){var c=z.value;
if(c){var W=c.parentElement;if(W){c=c.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var e=0;e<c.length;++e){var Q=c[e];if(Q instanceof HTMLElement){W.scrollTo({left:Q.offsetLeft+Q.clientWidth/2-W.clientWidth/2,behavior:"instant"});break}}}}};
_.FQ(function(){var c=z.value;if(c){var W=new ResizeObserver(y);W.observe(c);_.Fq(function(){W.disconnect()})}});
return _.M("div",null,_.M(_.b,{cond:function(){return G().badges},
then:function(c){return _.M(g6Z,{data:K},_.M("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:z},_.M(_.LT,{each:function(){return c()}},function(W,e){var Q={},p={},V={};
return _.M("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.M(_.b,{cond:function(){return e()>0},
then:function(){return _.M("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.M("div",{class:_.ym("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(Q.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return D(e(),G().currentBadgeIndex)},Q.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!D(e(),G().currentBadgeIndex)},Q))},_.M("div",{class:_.ym("ytdSponsorshipsPerksListLoyaltyBadge",(p.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return D(e(),
G().currentBadgeIndex)},p.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!D(e(),G().currentBadgeIndex)},p))},_.M(_.b,{cond:function(){return W.image},
then:function(L){var r={};return _.M("div",{class:_.ym((r.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return D(e(),G().currentBadgeIndex)},r.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!D(e(),G().currentBadgeIndex)},r))},_.M(_.wk,{data:L,
alt:""}))}})),_.M("div",{class:_.ym("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(V.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return D(e(),G().currentBadgeIndex)},V))},W.title)))})))}}))},"ee");
qWZ.idomCompat=!0;_.tn(NtZ,"yt-sponsorships-perks-list",{props:{data:_.ik}});_.tn(_.Nv(function(x){return _.M("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.M(_.b,{cond:function(){return x.data().image},
then:function(G){return _.M(_.wk,{className:"ytwFantasyEmptyStateViewModelImage",data:G,ariaHidden:!0,alt:""})}}),_.M(_.vq,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return x.data().title}}),_.M(_.vq,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return x.data().subtitle}}),_.M(_.bA,{data:function(){return x.data().primaryButton}},{buttonViewModel:function(G){return _.M(_.Cs,{data:G.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"fe"),"ytw-fantasy-empty-state-view-model",{props:{data:_.ik}});var v6h;var TYQ=_.MF({buttonRenderer:_.RH});_.E9(WXh);_.KH(WXh,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var n8=function(){var x=_.n.apply(this,arguments)||this;x.hideJoinButtonBeforeSubscribed=_.B("hide_join_button_before_subscribed");x.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return x};
_.m(n8,_.n);_.a=n8.prototype;_.a.hasShowDialogCommand=function(x){return!!_.Y(x,bg0)};
_.a.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"}}}};
_.a.updateJoinButtonOverrides=function(){var x,G;(x=_.kA(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(G=x.polymerController)==null||G.set("overrides",this.joinButtonOverrides);if(x=_.kA(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))x.overrides=this.joinButtonOverrides};
_.a.handleButtonRefreshAction=function(x){if(x=_.Y(x,n5J))this.set("data.membershipButton",x.membershipButton),this.notifyPath("data.membershipButton")};
_.a.onYtServiceRequestError=function(x){_.kL(this.hostElement,x.detail.error.message)};
_.a.onTap=function(){var x;(x=this.data)!=null&&x.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)};
_.a.handleUnsubscribeAction=function(){var x,G,D;((x=this.data)==null?void 0:(G=x.membershipButton)==null?void 0:(D=G.buttonRenderer)==null?void 0:D.style)==="STYLE_PRIMARY"&&_.kA(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.Nq.Object.defineProperties(n8.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.subscriptionStateEntity)==null||!x.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var x,G=(x=this.data)==null?void 0:x.membershipButton,D;x=(G==null?void 0:G.buttonRenderer)||_.Y(G==null?void 0:(D=G.timedAnimationButtonRenderer)==null?void 0:D.buttonRenderer,_.$V);return(x==null?void 0:x.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(x==null?void 0:x.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(x==null?void 0:x.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var x;if(this.hasShowDialogCommand((x=this.data)==null?void 0:x.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var x;if(this.hasShowDialogCommand((x=this.data)==null?void 0:x.navigationEndpoint))return"button"}}});
n8.prototype.onTap=n8.prototype.onTap;n8.prototype.onYtServiceRequestError=n8.prototype.onYtServiceRequestError;n8.prototype.updateJoinButtonOverrides=n8.prototype.updateJoinButtonOverrides;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],n8.prototype,"actionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],n8.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],n8.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],n8.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],n8.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.sd),_.N("design:type",Object)],n8.prototype,"ironButtonState",void 0);_.q([_.R(),_.N("design:type",Object)],n8.prototype,"data",void 0);
_.q([_.U("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.N("design:type",Object),_.N("design:paramtypes",[])],n8.prototype,"hideJoin",null);_.q([_.R(),_.N("design:type",String)],n8.prototype,"subscribeKey",void 0);_.q([_.R({selectorArgs:["subscribeKey"],selector:T6f}),_.N("design:type",Object)],n8.prototype,"subscriptionStateEntity",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],n8.prototype,"hideJoinButtonBeforeSubscribed",void 0);
_.q([_.U("subscriptionStateEntity"),_.R({reflectToAttribute:!0}),_.N("design:type",Object),_.N("design:paramtypes",[])],n8.prototype,"subscribed",null);_.q([_.U("subscribed","data.membershipButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],n8.prototype,"joinButtonOverrides",null);_.q([_.U("data.navigationEndpoint"),_.N("design:type",Object),_.N("design:paramtypes",[])],n8.prototype,"channelNameTabIndex",null);
_.q([_.U("data.navigationEndpoint"),_.N("design:type",Object),_.N("design:paramtypes",[])],n8.prototype,"channelNameRole",null);_.q([_.yf("joinButtonOverrides"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],n8.prototype,"updateJoinButtonOverrides",null);_.q([_.oe("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],n8.prototype,"onYtServiceRequestError",null);
_.q([_.oe("tap"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],n8.prototype,"onTap",null);n8=_.q([_.d({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],n8);
var Jd7=_.x$()(n8,"ytd-video-owner-renderer",function(){if(v6h===void 0){var x=document.createElement("template");_.F(x,'\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]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" 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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);v6h=x}x=v6h;return x},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.tn(_.Nv(function(x){var G=x.data;var D;x=_.l(_.eO(!((D=_.xt("yt-mini-app-is-theater-mode-enabled"))==null||!D),void 0,"LUeOgf"));var K=x.next().value,z=x.next().value,y;D=(y=_.Eo().resolve(_.P6(bAs)))!=null?y:function(){return _.M("div",null)};
_.wu("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){z(!0);_.hi("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.wu("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){z(!1);_.hi("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
y={};x={};var c={};return _.M("mini-app-play-page-renderer",{class:_.ym("miniAppPlayPageRendererHost",(y.miniAppPlayPageRendererHostDetailsView=function(){return!K()},y))},_.M("div",{class:_.ym("miniAppPlayPageRendererGameContainer",(x.miniAppPlayPageRendererGameContainerDetailsView=function(){return!K()},x))},_.M(_.bA,{data:function(){return G().containerViewModel}},{miniAppContainerViewModel:n6i}),_.M(_.b,{cond:function(){return G().channel&&G().subscribeButton},
then:function(){return _.M("div",{class:"miniAppPlayPageRendererChannelContainer"},_.M(_.bA,{data:function(){return G().channel}},{videoOwnerRenderer:function(W){return _.M(Jd7,{data:W.data})}}),_.M(_.bA,{data:function(){return G().subscribeButton}},{subscribeButtonViewModel:function(W){return _.M(_.Bt,{data:W.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.M(_.b,{cond:function(){return!K()&&G().description},
then:function(){return _.M("div",{class:"miniAppPlayPageRendererMiniAppDescriptionWrapper"},_.M("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return G().description}))}})),_.M("div",{class:_.ym("miniAppPlayPageRendererPlayNextContainer",(c.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!K()},c))},_.M(_.bA,{data:function(){return G().sectionList}},{sectionListRenderer:D})))},"ge"),"mini-app-play-page-renderer",{props:{data:_.ik}});var i8=function(){var x=_.n.apply(this,arguments)||this;x.isSearch=!1;x.isConstrainedList=!1;x.hasChipsBar=!1;x.inReplyPanel=!1;x.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"}};x.monitorScroll=!0;x.SCROLL_ANIMATION_DURATION_MS=300;x.nextContinuation={continuationType:"sectionListContinuation"};return x};
_.m(i8,_.n);_.a=i8.prototype;
_.a.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(x){switch(x.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:_.B("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.B("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.a.created=function(){var x=this;this.JSC$14867_scrollAnimation=new _.C8(function(G){x.hostElement.scrollTop=G})};
_.a.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.a.getItemsPath=function(){return"data.contents"};
_.a.replacePrimaryContent=function(x){this.set("data.contents",x)};
_.a.computeHasSortFilter=function(x){return!!x&&!!x.sortFilterSubMenuRenderer};
_.a.computeShouldScrollInPanel=function(x){var G;return!!(x==null?0:(G=x.scrollPaneStyle)==null?0:G.scrollable)};
_.a.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.E4(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.a.scrollToTop=function(){this.hostElement.scrollTop=0};
_.a.scrollToItemSection=function(x){if(x=this.getItemByIdentifier(x))x=this.getScrollPositionForItem(x),this.hostElement.scrollTop!==x&&this.JSC$14867_scrollAnimation.start(this.hostElement.scrollTop,x,this.SCROLL_ANIMATION_DURATION_MS)};
_.a.getItemByIdentifier=function(x){var G=this.contents.querySelectorAll("ytd-item-section-renderer");if(G&&G.length!==0){var D=Array.from(G).findIndex(function(K){return K.sectionIdentifier===x});
return G[D===-1?0:D]}};
_.a.getScrollPositionForItem=function(x){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===x)return 0;x=_.ji(x).y+this.hostElement.scrollTop-_.ji(this.hostElement).y;return Math.min(x,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.Nq.Object.defineProperties(i8.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.targetId)==="browse-feedFEclips"}}});
i8.prototype.onScroll=i8.prototype.onScroll;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],i8.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],i8.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.fS.YtLazyListBehavior),_.N("design:type",Object)],i8.prototype,"ytLazyListBehavior",void 0);_.q([_.I(_.Xr.YtNextContinuationBehavior),_.N("design:type",Object)],i8.prototype,"ytNextContinuationBehavior",void 0);
_.q([_.I(_.A0J),_.N("design:type",Object)],i8.prototype,"ytBooleanLogicBehavior",void 0);_.q([_.I(_.Oh),_.N("design:type",Object)],i8.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],i8.prototype,"data",void 0);_.q([_.R({value:2}),_.N("design:type",Number)],i8.prototype,"initialCount",void 0);_.q([_.R({value:!0}),_.N("design:type",Boolean)],i8.prototype,"autoFill",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.N("design:type",Boolean)],i8.prototype,"hasSortFilter",void 0);_.q([_.R({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.N("design:type",Boolean)],i8.prototype,"hideBottomSeparator",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.N("design:type",Boolean)],i8.prototype,"shouldScrollInPanel",void 0);
_.q([_.R(),_.N("design:type",Object)],i8.prototype,"isSearch",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],i8.prototype,"isConstrainedList",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],i8.prototype,"responsiveSizing",void 0);_.q([_.R(),_.N("design:type",Object)],i8.prototype,"hasChipsBar",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],i8.prototype,"pageSubtype",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],i8.prototype,"engagementPanel",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],i8.prototype,"liveChatEngagementPanel",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],i8.prototype,"inReplyPanel",void 0);_.q([_.cD("#action-button"),_.N("design:type",HTMLElement)],i8.prototype,"actionButton",void 0);_.q([_.R(),_.N("design:type",Object)],i8.prototype,"scrollUpButtonData",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],i8.prototype,"engagementPanelDropdown",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],i8.prototype,"engagementPanelDialog",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],i8.prototype,"isClipList",null);_.q([_.cD("#contents"),_.N("design:type",HTMLElement)],i8.prototype,"monitorScrollElement",void 0);_.q([_.cD("#contents"),_.N("design:type",HTMLElement)],i8.prototype,"contents",void 0);
_.q([_.oe("scroll"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],i8.prototype,"onScroll",null);i8=_.q([_.d({is:"ytd-section-list-renderer",disableElementRegistration:!0})],i8);
var fnJ=_.x$()(i8,"ytd-section-list-renderer",function(){if(VQs===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);VQs=x}x=VQs;return x},{mode:1});var tdJ;var kiE;var Pc9;var E6k;var g7=function(){return _.n.apply(this,arguments)||this};
_.m(g7,_.n);g7.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
g7.prototype.onLikeButtonClick=function(x){x.stopPropagation();x.preventDefault()};
_.Nq.Object.defineProperties(g7.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.data)!=null&&x.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)})}}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],g7.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],g7.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],g7.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],g7.prototype,"ytRendererStamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],g7.prototype,"data",void 0);
_.q([_.R({selectorArgs:["data.likeStatusEntityKey"],selector:CH}),_.N("design:type",Object)],g7.prototype,"likeStatusEntity",void 0);_.q([_.U("data","likeStatusEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],g7.prototype,"likeButtonRenderer",null);g7=_.q([_.d({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],g7);
_.w(g7,"ytd-slim-metadata-toggle-button-renderer",function(){if(E6k!==void 0)return E6k;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);
return E6k=x},{mode:1});var u8=function(){var x=_.n.apply(this,arguments)||this;x.minimizePipBreakages=_.B("web_pip_minimize_breakages");x.showEqualizer=_.B("web_enable_playlist_video_lockup_equalizer");x.watchColorUpdate=_.B("kevlar_watch_color_update");x.actionMap={};return x};
_.m(u8,_.n);_.a=u8.prototype;_.a.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"}}}};
_.a.computeEditableClass=function(x){return x&&x.menu?"editable":""};
_.a.computeSelected=function(x){return!(x==null||!x.selected)};
_.a.computeUseColorPalette=function(x){return!!((x==null?0:x.lightColorPalette)&&(x==null?0:x.darkColorPalette))};
_.a.computeLargerPlaylistThumbs=function(x,G){return _.B("web_enable_playlist_bigger_thumbnails")&&!G};
_.a.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.a.onYtServiceRequestSent=function(x,G){G.endpoint&&this.isHideEnclosingAction(G.endpoint)&&!this.selected&&nlo(_.jK(),this.data.videoId)};
_.a.isHideEnclosingAction=function(x){var G=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",x);x=this.get("likeEndpoint.status",x)==="INDIFFERENT";return G||x};
_.a.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.a.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.Nq.Object.defineProperties(u8.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.B("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var x;return!!(this.withinMiniplayer&&((x=this.data)==null?0:x.actionButtons))}}});
u8.prototype.onYtServiceRequestSent=u8.prototype.onYtServiceRequestSent;u8.prototype.canReorderChanged=u8.prototype.canReorderChanged;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],u8.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],u8.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],u8.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.RG),_.N("design:type",Object)],u8.prototype,"ytdLockupBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],u8.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],u8.prototype,"withinMiniplayer",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],u8.prototype,"minimizePipBreakages",void 0);_.q([_.R({computed:"computeSelected(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],u8.prototype,"selected",void 0);
_.q([_.R({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],u8.prototype,"useColorPalette",void 0);_.q([_.R({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.N("design:type",Boolean)],u8.prototype,"largerPlaylistThumbs",void 0);_.q([_.R(),_.N("design:type",Object)],u8.prototype,"showEqualizer",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],u8.prototype,"canReorder",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],u8.prototype,"touchPersistentDragHandle",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],u8.prototype,"handleIsHovered",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],u8.prototype,"watchColorUpdate",void 0);_.q([_.R(),_.N("design:type",String),_.N("design:paramtypes",[])],u8.prototype,"reorderIcon",null);
_.q([_.U("largerPlaylistThumbs"),_.N("design:type",Number),_.N("design:paramtypes",[])],u8.prototype,"thumbnailWidth",null);_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],u8.prototype,"showActionButtons",null);_.q([_.Z6("canReorder"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],u8.prototype,"canReorderChanged",null);
_.q([_.oe("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Ou]),_.N("design:returntype")],u8.prototype,"onYtServiceRequestSent",null);u8=_.q([_.d({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],u8);
_.w(u8,"ytd-playlist-panel-video-renderer",function(){if(Pc9!==void 0)return Pc9;var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Pc9=x},{mode:2});var d7=function(){return _.n.apply(this,arguments)||this};
_.m(d7,_.n);d7.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],d7.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],d7.prototype,"data",void 0);d7=_.q([_.d({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],d7);
_.w(d7,"ytd-playlist-panel-supported-items",function(){if(kiE!==void 0)return kiE;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return kiE=
x},{mode:1});EOi=!0;Mni("\\P{N}");var ebn;var hNu=_.Wg("END_OF_PLAYLIST",void 0,"End of playlist"),x8J=_.Wg("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),w7=function(){var x=_.n.apply(this,arguments)||this;x.minimizePipBreakages=_.B("web_pip_minimize_breakages");x.updatedCoursePanel=_.B("move_three_dot_menu_to_playlist_panel_header_for_courses");x.hideHeaderText=!1;x.useColorPalette=!1;x.collapsed=!1;x.collapsedPreServerOverride="not_tracked";x.isHovered=!1;x.modernPanels=_.B("kevlar_watch_modern_panels");
x.expandLabel=_.Wg("MINIPLAYER_EXPAND_LABEL");x.collapseLabel=_.Wg("MINIPLAYER_COLLAPSE_LABEL");x.isFloating=!1;x.metaPanel=!1;x.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};x.currentIndex=void 0;return x};
_.m(w7,_.n);_.a=w7.prototype;
_.a.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"}}}};
_.a.created=function(){this.scrollThrottle=new _.Jc(this.onThrottledScroll,1E3,this)};
_.a.onMouseEnter=function(){this.isHovered=!0};
_.a.onMouseLeave=function(){this.isHovered=!1};
_.a.computeOverflowMenuData=function(x){return x&&x.menu?x.menu:null};
_.a.computeCollapsible=function(x){return!x};
_.a.computeHasPlaylistButtons=function(x){return!(!x||!x.playlistButtons)};
_.a.computeHasSeparateSaveButton=function(x){return!(!x||!x.saveButton)};
_.a.computeHasToolbarButton=function(x,G){return!(!x||!(G||x.saveButton||x.menu))};
_.a.computePlaylistType=function(x){if(x&&x.playlistId)return x.playlistId.substring(0,4)};
_.a.computeCanReorder=function(x){return x?x.playlistId&&x.playlistId.startsWith("TLPQ")?!0:!!x.isEditable&&!x.isInfinite:!1};
_.a.attached=function(){var x=this;try{_.Eo().resolve(_.HG).setPlaylistComponent(this.hostElement)}catch(G){if(_.B("kevlar_park_on_playlist_token_killswitch"))throw G;_.Fp().parkOrScheduleJob(function(){_.Eo().resolve(_.HG).setPlaylistComponent(x.hostElement)},2,"ci")}_.Py(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.a.detached=function(){_.Ef(this.hostElement)};
_.a.computeTrailingIcon=function(x,G,D){return D?G?"yt-icons:collapse":"yt-icons:close":G?"yt-icons:expand":_.B("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.a.computeIndexMessage=function(x,G){return Qtd(x+1)+" / "+Qtd(G)};
_.a.onRenderStamperFinished=function(){if(this.scrollForStampDom){var x=!0;this.isHovered&&(x=!1);if(this.collapsed||this.hidden)x=!1;x&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.a.collapseChanged=function(){var x=this;this.collapsed||(_.Vs(this.ytTaskEmitterBehavior.getTaskManager(),function(){x.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.a.hiddenChanged=function(){var x=this;this.hidden||_.Vs(this.ytTaskEmitterBehavior.getTaskManager(),function(){x.scrollToCurrentVideo()})};
_.a.setupReordering=function(){var x=_.kA(this.hostElement).querySelector("#items");QHi?_.E3u(this.ytReorderableBehavior,x,x,"playlist-drag-handle"):_.E3u(this.ytReorderableBehavior,x,x)};
_.a.scrollToCurrentVideo=function(){var x=this;_.Fj.addJob(function(){var G=_.kA(x.hostElement).querySelector("#items");if(G){G.style.setProperty("padding-bottom","");var D=_.kA(x.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(D){G=D.parentElement||_.Qd(document);var K=G||_.Qd(document);var z=_.ji(D),y=_.ji(K),c=_.dLk(K);if(K==_.Qd(document)){var W=z.x-K.scrollLeft;z=z.y-K.scrollTop}else W=z.x-y.x-c.left,z=z.y-y.y-c.top;D=nCE(D);y=K.clientHeight-
D.height;c=K.scrollLeft;var e=K.scrollTop;c+=W-(K.clientWidth-D.width)/2;K=new _.$S(c,e+(z-y/2));G.scrollLeft=K.x;G.scrollTop=K.y}}},8)};
_.a.dataChanged=function(){var x=this;_.PTq(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.w1(this,function(){_.Bw(x.ytTaskEmitterBehavior.getTaskManager(),function(){x.ytRendererBehavior.markDirty();x.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.a.onTheaterModeChanged=function(){_.B("web_watch_imax_theater_mode")&&(this.isTheaterMode?this.setCollapsed(!0):this.setCollapsed(!1))};
_.a.onFullscreenChanged=function(){_.B("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.a.updateNowPlayingOverlay=function(){_.B("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.a.onPlaylistLockupNowPlaying=function(x,G){G&&(this.activeNowPlayingRenderer=G);this.updateNowPlayingOverlay()};
_.a.onScroll=function(){this.scrollThrottle.fire()};
_.a.onThrottledScroll=function(){var x=this;_.Bw(this.ytTaskEmitterBehavior.getTaskManager(),function(){x.ytRendererBehavior.markDirty()})};
_.a.onToggleExpanded=function(x){!this.collapsible||x&&(_.uo(x).tagName==="A"||_.u_(_.gA(x),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.a.setCollapsed=function(x){this.collapsible&&(this.collapsed=x,_.Gl(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.a.handleCollapsedFromData=function(x){if(x){var G=x.playlistPanelCollapseState;G==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||G==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),G=G==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==G&&this.setCollapsed(G)):this.currentPlaylistId!==x.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(G=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==G&&this.setCollapsed(G),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=x.playlistId}};
_.a.handleDrop=function(x){var G=x.currDragItem;x=G.data.playlistSetVideoId;var D=_.uO(G.parentNode.childNodes,G),K=void 0;D>0&&(K=G.parentNode.childNodes[D-1].data.playlistSetVideoId);G=_.jK();if(G.responsePlaylistData&&G.responsePlaylistData.contents){var z=wGf(x,G.responsePlaylistData);G.responsePlaylistData=(0,_.YS.unsafeClone)(G.responsePlaylistData);YDL(G.responsePlaylistData.contents,z,D);G.queueProxy?ZS7(G.queueProxy,z,D,x,K):G.playlistProxy&&ZS7(G.playlistProxy,z,D,x,K);_.O3(G,_.Xp(G,G.response?
G.response.autoplayRenderer:void 0))}};
_.a.handleDarkModeChange=function(x){x!==this.isDarkTheme&&(this.isDarkTheme=x)};
_.a.colorPaletteChanged=function(){var x,G=((x=this.data)==null?void 0:x.contents)||[],D;x=_.l(G);for(G=x.next();!G.done;G=x.next()){G=G.value;var K=void 0;if((K=G.playlistPanelVideoRenderer)==null?0:K.selected){x=G.playlistPanelVideoRenderer;K=G=void 0;(D=this.isDarkTheme?(G=x)==null?void 0:G.darkColorPalette:(K=x)==null?void 0:K.lightColorPalette)&&_.Y7(this.hostElement,D);break}}this.useColorPalette=!!D};
_.Nq.Object.defineProperties(w7.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var x,G;return!((x=this.data)==null||!x.playlistId)&&!((G=this.data)==null||!G.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var x=_.Eo().resolve(_.P6(_.HG)),G;if(((G=this.data)==null?0:G.contents)&&(x==null?0:x.hasAutoplayData())){var D;if(((D=this.playlistLoopStateEntity)==null?void 0:D.state)==="PLAYLIST_LOOP_STATE_ONE"){if(x=this.data.currentIndex,x!==void 0){var K,z;var y=(K=this.data.contents[x])==null?void 0:(z=K.playlistPanelVideoRenderer)==null?void 0:z.title}}else{var c,W=(c=_.Y(x.getAutoplayEndpoint(),_.d5))==null?void 0:c.videoId,e,Q;y=(e=this.data.contents.find(function(p){var V;
return((V=p.playlistPanelVideoRenderer)==null?void 0:V.videoId)===W}))==null?void 0:(Q=e.playlistPanelVideoRenderer)==null?void 0:Q.title}return y}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)!=null&&x.nextVideoLabel?this.nextVideoTitle?_.u7(this.data.nextVideoLabel)+":":hNu:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var x;if(((x=this.data)==null?0:x.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN")return _.gK(x8J);var G;return(G=this.data)==null?void 0:G.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var x,G,D,K=(x=this.data)==null?void 0:(G=x.playlistButtons)==null?void 0:(D=G.menuRenderer)==null?void 0:D.topLevelButtons;if(K)for(x=_.l(K),G=x.next();!G.done;G=x.next())if(G=G.value,G.playlistLoopButtonRenderer)return G.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var x;return!!(this.collapsed&&((x=this.data)==null?0:x.nextVideoLabel))}}});
w7.prototype.colorPaletteChanged=w7.prototype.colorPaletteChanged;w7.prototype.onPlaylistLockupNowPlaying=w7.prototype.onPlaylistLockupNowPlaying;w7.prototype.updateNowPlayingOverlay=w7.prototype.updateNowPlayingOverlay;w7.prototype.onFullscreenChanged=w7.prototype.onFullscreenChanged;w7.prototype.onTheaterModeChanged=w7.prototype.onTheaterModeChanged;w7.prototype.dataChanged=w7.prototype.dataChanged;w7.prototype.hiddenChanged=w7.prototype.hiddenChanged;w7.prototype.collapseChanged=w7.prototype.collapseChanged;
w7.prototype.onRenderStamperFinished=w7.prototype.onRenderStamperFinished;w7.prototype.onMouseLeave=w7.prototype.onMouseLeave;w7.prototype.onMouseEnter=w7.prototype.onMouseEnter;_.q([_.I(_.Lg),_.N("design:type",Object)],w7.prototype,"ironResizableBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],w7.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],w7.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.I(tFq.YtPlaylistPanelBehavior),_.N("design:type",Object)],w7.prototype,"ytPlaylistPanelBehavior",void 0);_.q([_.I(_.qz.YtTaskEmitterBehavior),_.N("design:type",Object)],w7.prototype,"ytTaskEmitterBehavior",void 0);_.q([_.I(_.hW7),_.N("design:type",Object)],w7.prototype,"ytReorderableBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],w7.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],w7.prototype,"ytdReduxBehavior",void 0);
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],w7.prototype,"actionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],w7.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],w7.prototype,"autoplayData",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],w7.prototype,"withinMiniplayer",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],w7.prototype,"minimizePipBreakages",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],w7.prototype,"updatedCoursePanel",void 0);_.q([_.R({computed:"setMenuData_(data)"}),_.N("design:type",Object)],w7.prototype,"menuRendererData",void 0);_.q([_.R({computed:"computeOverflowMenuData(data)"}),_.N("design:type",Object)],w7.prototype,"overflowMenuDataTopRow",void 0);_.q([_.R({computed:"computeOverflowMenuData(data)"}),_.N("design:type",Object)],w7.prototype,"overflowMenuData",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],w7.prototype,"hideHeaderText",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],w7.prototype,"useColorPalette",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.N("design:type",Boolean)],w7.prototype,"collapsible",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],w7.prototype,"collapsed",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],w7.prototype,"hidden",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.N("design:type",Boolean)],w7.prototype,"hasPlaylistButtons",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.N("design:type",Boolean)],w7.prototype,"hasSeparateSaveButton",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.N("design:type",Boolean)],w7.prototype,"hasToolbar",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.N("design:type",String)],w7.prototype,"playlistType",void 0);_.q([_.R(),_.N("design:type",Object)],w7.prototype,"isHovered",void 0);_.q([_.R({selectorArgs:["playlistLoopStateEntityKey"],selector:_.paP}),_.N("design:type",Object)],w7.prototype,"playlistLoopStateEntity",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],w7.prototype,"modernPanels",void 0);_.q([_.R({value:56}),_.N("design:type",Number)],w7.prototype,"scrollMargin",void 0);_.q([_.R({computed:"computeCanReorder(data)"}),_.N("design:type",Boolean)],w7.prototype,"canReorder",void 0);_.q([_.R(),_.N("design:type",Object)],w7.prototype,"expandLabel",void 0);_.q([_.R(),_.N("design:type",Object)],w7.prototype,"collapseLabel",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],w7.prototype,"isFloating",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],w7.prototype,"metaPanel",void 0);_.q([_.R({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.N("design:type",String)],w7.prototype,"trailingIcon",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],w7.prototype,"isDarkTheme",void 0);
_.q([_.R({selector:_.Hk}),_.N("design:type",Boolean)],w7.prototype,"miniplayerIsActive",void 0);_.q([_.R({selector:function(x){return x.watch.playerState}}),
_.N("design:type",Number)],w7.prototype,"playerState",void 0);_.q([_.R({selector:_.Og}),_.N("design:type",Boolean)],w7.prototype,"isFullscreen",void 0);_.q([_.R({selector:_.jU}),_.N("design:type",Boolean)],w7.prototype,"isTheaterMode",void 0);_.q([_.R(),_.N("design:type",Object)],w7.prototype,"activeNowPlayingRenderer",void 0);_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],w7.prototype,"moveThreeDotMenuToTopRow",null);
_.q([_.U("data","autoplayData","playlistLoopStateEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],w7.prototype,"nextVideoTitle",null);_.q([_.U("data","nextVideoTitle"),_.N("design:type",String),_.N("design:paramtypes",[])],w7.prototype,"nextVideoLabel",null);_.q([_.U("collapsed"),_.N("design:type",String),_.N("design:paramtypes",[])],w7.prototype,"buttonAriaLabel",null);
_.q([_.U("data","playlistId","longBylineText"),_.N("design:type",Object),_.N("design:paramtypes",[])],w7.prototype,"mixLongByLine",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],w7.prototype,"playlistLoopStateEntityKey",null);_.q([_.oe("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],w7.prototype,"onMouseEnter",null);
_.q([_.oe("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],w7.prototype,"onMouseLeave",null);_.q([_.R({reflectToAttribute:!0}),_.U("data","collapsed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],w7.prototype,"showNextVideoHeader",null);_.q([_.oe("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],w7.prototype,"onRenderStamperFinished",null);
_.q([_.yf("collapsed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],w7.prototype,"collapseChanged",null);_.q([_.yf("hidden"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],w7.prototype,"hiddenChanged",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],w7.prototype,"dataChanged",null);
_.q([_.yf("isTheaterMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],w7.prototype,"onTheaterModeChanged",null);_.q([_.yf("isFullscreen"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],w7.prototype,"onFullscreenChanged",null);_.q([_.yf("playerState","miniplayerIsActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],w7.prototype,"updateNowPlayingOverlay",null);
_.q([_.oe("yt-playlist-lockup-now-playing-active"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],w7.prototype,"onPlaylistLockupNowPlaying",null);_.q([_.yf("data","isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],w7.prototype,"colorPaletteChanged",null);w7=_.q([_.d({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],w7);
_.Gt0=_.x$()(w7,"ytd-playlist-panel-renderer",function(){if(tdJ===void 0){var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);tdJ=x}x=tdJ;return x},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var D88;var qI=function(){var x=_.n.apply(this,arguments)||this;x.modern=_.B("web_button_rework");return x};
_.m(qI,_.n);qI.prototype.computeShouldButtonBeVertical=function(x,G){return x||G};
qI.prototype.onYtServiceRequestSent=function(x,G){(x=_.Y(G.endpoint,_.Ry))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.cq("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:x.status})):this.handleLikeEndpoint(x))};
qI.prototype.computelikeStatusEntityKey=function(x){return x==null?void 0:x.likeStatusEntityKey};
qI.prototype.handleLikeEndpoint=function(x){x.status==="LIKE"?this.JSC$14892_ytdDislikeToggleButtonRenderer.toggle(!1):x.status==="DISLIKE"?this.JSC$14892_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$14892_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$14892_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.Nq.Object.defineProperties(qI.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var x;return LXn(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(x=this.likeStatusEntity)==null?void 0:x.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var x;if(this.data&&((x=this.data)==null||!x.hideDislikeButton)){var G;return LXn(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(G=this.likeStatusEntity)==null?void 0:G.likeStatus)}}}});
qI.prototype.onYtServiceRequestSent=qI.prototype.onYtServiceRequestSent;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],qI.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],qI.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],qI.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],qI.prototype,"vertical",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],qI.prototype,"textTransform",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],qI.prototype,"useShortsIcon",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],qI.prototype,"underIconLabel",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],qI.prototype,"modern",void 0);_.q([_.R({value:"left"}),_.N("design:type",String)],qI.prototype,"buttonTooltipPosition",void 0);
_.q([_.R(),_.N("design:type",Object)],qI.prototype,"overrides",void 0);_.q([_.cD("#like-button"),_.N("design:type",Object)],qI.prototype,"JSC$14892_ytdLikeToggleButtonRenderer",void 0);_.q([_.cD("#dislike-button"),_.N("design:type",Object)],qI.prototype,"JSC$14892_ytdDislikeToggleButtonRenderer",void 0);_.q([_.U("data","likeStatusEntity.likeStatus"),_.N("design:type",Object),_.N("design:paramtypes",[])],qI.prototype,"likeButton",null);
_.q([_.U("data","likeStatusEntity.likeStatus"),_.N("design:type",Object),_.N("design:paramtypes",[])],qI.prototype,"dislikeButton",null);_.q([_.R({computed:"computelikeStatusEntityKey(data)"}),_.N("design:type",String)],qI.prototype,"likeStatusEntityKey",void 0);_.q([_.R({selectorArgs:["likeStatusEntityKey"],selector:CH}),_.N("design:type",Object)],qI.prototype,"likeStatusEntity",void 0);
_.q([_.oe("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Ou]),_.N("design:returntype")],qI.prototype,"onYtServiceRequestSent",null);qI=_.q([_.d({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],qI);
var K99=_.x$()(qI,"ytd-like-button-renderer",function(){if(D88===void 0){var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-like-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[likeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n</ytd-toggle-button-renderer>\n<template is="dom-if" if="[[dislikeButton]]" class="style-scope ytd-like-button-renderer">\n    <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[dislikeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n    </ytd-toggle-button-renderer>\n</template>\n');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);D88=x}x=D88;return x},{mode:1});_.zwZ={};
_.zwZ.YtConditionalRendererBehavior=[_.h.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(x,G){var D=this,K,z;return _.T(function(y){switch(y.nextAddress){case 1:if(!G)return D.hidden=!0,D.showSpinner=!1,y.return();if((K=x)==null?0:(z=K.visibilityCondition)==null?0:z.mode)switch(x.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return y.jumpTo(5);default:return y.jumpTo(6)}D.showSpinner=
!1;D.hidden=!0;return _.Z(y,D.shouldShow_(x),4);case 4:D.hidden=!y.yieldResult;y.jumpTo(0);break;case 5:return _.Z(y,D.shouldShow_(x),8);case 8:D.showSpinner=y.yieldResult;D.hidden=!1;y.jumpTo(0);break;case 6:return D.showSpinner=!1,_.Z(y,D.shouldShow_(x),9);case 9:D.hidden=!y.yieldResult,_.c5(y)}})},
shouldShow_:function(x){return x&&x.supportedDatas&&x.supportedDatas.rendererVisibilityConditionData&&x.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(x.supportedDatas.rendererVisibilityConditionData.showIf):x&&x.visibilityCondition&&x.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(x.visibilityCondition.showIf):x&&x.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(x.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(x){switch(x){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(x){switch(x){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var x=_.xO(this.hostElement,"yt-get-mdx-status");return x.length==1&&x[0].connected},
isLocationPermissionGranted_:function(){var x;return _.T(function(G){return G.nextAddress==1?navigator.permissions?_.Z(G,navigator.permissions.query({name:"geolocation"}),3):G.jumpTo(2):G.nextAddress!=2?(x=G.yieldResult,G.return(Promise.resolve(x.state==="granted"))):G.return(Promise.resolve(!1))})}}];var ass=function(x,G){G=G===void 0?{}:G;return function(D){var K=document.createElement(x),z;var y=(z=K.polymerController)!=null?z:K;A9E(K,y,D,G);return K}}("yt-icon"),og8=_.B("web_bypass_polymer_yt_icon")&&_.B("kevlar_use_wil_icons")?_.Nv(function(x){var G=x.icon;
var D=x.active;var K=x.className;var z=x.style;var y=x.dataSelected;var c=x.dataDisabled;var W=x.role;var e=x.themeOverride;var Q=x.animateIcon;var p=x.ariaHidden;var V=x.ariaExpanded;var L=x.ariaLabel;var r=x.id;var H=x.iconFilter;var O=function(){var u=G==null?void 0:G(),f=null,v=void 0;u&&(u=PP.computeIcon(u),u=cJL(u),u.length&&(f=u[1],v=u[0]));return{iconName:f,iconSetName:v}},A=function(){return PP.getIconShapeData(O().iconName,D==null?void 0:D(),void 0,void 0,O().iconSetName,_.Eo().resolve(_.oP))},
g=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:H==null?void 0:H()}};
return _.M(_.b,{cond:Q,then:function(){return _.M(ass,{icon:G,active:D,className:K,style:z,dataSelected:y,dataDisabled:c,role:W,themeOverride:e,ariaHidden:p,ariaExpanded:V,ariaLabel:L,id:r,iconFilter:H})},
else:function(){return _.M(_.b,{cond:A,then:function(u){return _.M(XcP,{data:u,options:g})}})}})},"he"):ass;var ysq=function(x){var G=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];q4n();_.Jv("ytglobal.ytUtilActivityCallback_",function(){_.Gl(x,"yt-user-activity")});
new Ep(function(){return G.JSC$14906_onMouseMove});
document.addEventListener("scroll",function(){return G.onScroll});
window.addEventListener("resize",function(){return G.onResize})},lsu=function(x,G,D){G in x.eventJobIds||(D=_.rv().addLowPriorityJob(function(){_.hu();
delete x.eventJobIds[G]},D),x.eventJobIds[G]=D)};
ysq.prototype.onScroll=function(x){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):x.target===document&&lsu(this,"scroll",200)};
ysq.prototype.onResize=function(){lsu(this,"resize",200)};
ysq.prototype.JSC$14906_onMouseMove=function(){lsu(this,"mousemove",100)};
_.NE=function(x){x.scrollEventsToIgnore+=1;x.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){x.scrollEventsToIgnore--},500))};var cs9=function(x){this.element=x;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
cs9.prototype.showFeedbackDialog=function(x,G,D,K){var z=Taq();if(!z)return!1;var y=jtL();y.productId=z;G&&(y.flow="submit",y.report={description:G});D&&(Taq()==="59"?y.callback=_.SR(function(){_.Fv("userFeedbackEvent",{});D()}):y.callback=_.SR(D));
y.bucket=K||_.Am("GOOGLE_FEEDBACK_BUCKET","Other");W9s(y);x=ewu(this,"GFEEDBACK",x);try{_.$Xo(y,x)}catch(c){return _.RE(c),!1}return!0};
cs9.prototype.showHelpDialog=function(x,G,D){var K=this,z=Taq();if(!z)return!1;var y={helpCenterPath:"/youtube",productData:ewu(this,"GUIDED_HELP",D)};W9s(y);var c=jtL();c.context=x||y.productData.context||"default";c.defaultHelpArticleId=G;c.enableSendFeedback=!0;(_.nT("gapi.load")||function(W,e){return e()})("client",function(){try{var W=eGq(z,y);
if(_.B("web_always_load_chat_support")&&!K.chatSupportLoaded)try{W.JSC$7983_loadChatSupport(c),K.chatSupportLoaded=!0}catch(e){}W.startHelp(c)}catch(e){_.RE(e)}})};
var Taq=function(){var x=_.Am("GOOGLE_FEEDBACK_PRODUCT_ID");x||_.RE(Error("$h"));return x},W9s=function(x){x&&(x.locale=_.B("kevlar_help_use_locale")?_.Am("INNERTUBE_CONTEXT_HL","en"):_.Am("HTML_LANG","en"))},ewu=function(x,G,D){var K=x.productData;
delete K.origin;K.device=_.Q3();var z;a:{if(z=document.createElement("canvas")){var y=z.getContext("experimental-webgl",{stencil:!0});if(y){var c=y.getExtension("WEBGL_debug_renderer_info");if(c){z=y.getParameter(c.UNMASKED_RENDERER_WEBGL);break a}}if(y=z.getContext("webgl")){z=y.getParameter(y.RENDERER);break a}}z=null}K.gpu=z;K.isSDC=!!_.Am("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(z=_.Am("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.YS.extend(K,z);_.CWQ(G,K);_.ItL(K);(x=_.Gl(x.element,"yt-get-autonav-pause-debug-state"))&&
x.length&&(K.autonav_pause_state=x[0]);x=_.Tj();K.browser_resolution=x.width+"\u00d7"+x.height+"@"+(window.devicePixelRatio||1)+"x";D&&_.YS.extend(K,D);return K};
cs9.prototype.resetProductData=function(){this.productData={}};var Zn0=function(x){this.feedbackManager=new cs9(x)};
Zn0.prototype.showFeedbackDialog=function(x,G,D,K){return this.feedbackManager.showFeedbackDialog(x,G,D,K)};
Zn0.prototype.showHelpDialog=function(x,G,D){return this.feedbackManager.showHelpDialog(x,G,D)};var Mcs=function(){this.baseUrl="";this.aTag=document.createElement("a")},ojE=function(x,G,D){D=D===void 0?{}:D;
D.pbj||(D.pbj=1);D=_.Cb$(G,D);x.baseUrl&&D&&!_.v6(D)[1]&&!_.Jm(D)&&(G=x.baseUrl,oV(G,"/")&&(G=G.slice(0,-1)),_.zd(D,"/")&&(D=D.slice(1)),D=G+"/"+D);mu(x.aTag,Q$(D||""));return x.aTag.href};
Mcs.prototype.fetchData=function(x){return _.stO(x)};
Mcs.prototype.postData=function(x,G){var D={method:"POST"};if(G){for(var K=_.l(Object.keys(G)),z=K.next();!z.done;z=K.next()){z=z.value;var y=G[z];_.G7(y)&&(G[z]=JSON.stringify(y))}D.postParams=G}return _.stO(x,D)};
_.yfu=function(x,G,D,K,z){x=ojE(x,G,D);if(!x)throw K=Error("ai"),Object.assign(K,{params:G}),K;return _.stO(x,z,K)};
Mcs.prototype.requestDataForServiceEndpoint=function(x,G){if(_.Y(x,_.apO))return this.fetchData("/getAccountSwitcherEndpoint");G=G||{};var D=_.Y(x,nGh);D?G.se=D.base64EncodedServiceEndpoint:G.sej=JSON.stringify(x);(D=_.CC())&&_.B("enable_service_ajax_csn")&&(G.csn=D);G.theme=_.Lt();_.Y(x,Ki3)&&_.Am("DELEGATION_CONTEXT")&&(G.delegation_context=JSON.stringify(_.Am("DELEGATION_CONTEXT")));D=null;for(var K in x)if(oV(K,"Endpoint")||oV(K,"Command")){D=K;break}if(!D){var z=Error("bi");Object.assign(z,{params:x});
_.HzQ(z,"WARNING");return new _.T1(function(c,W){W(z)})}K={name:D};
var y;(D=(y=_.Y(x,_.cg))==null?void 0:y.signal)&&(K.signal=D);(y=_.wT(window.location.href))&&y.internalcountrycode&&(K.internalcountrycode=y.internalcountrycode);y="/service_ajax";_.B("debug_forward_web_query_parameters")&&(y=_.gBn(y,window.location.search));y=_.Nh(y,K);x.clickTrackingParams&&_.vy(y,{itct:x.clickTrackingParams});return this.postData(y,G)};_.QC0=new _.wq("GFEEDBACK_TOKEN");var p78;var Vco;var bn8;var L9q;var NI=function(){var x=_.n.apply(this,arguments)||this;x.compact=!1;return x};
_.m(NI,_.n);NI.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
NI.prototype.computeHasIcon_=function(x){return!!x};
NI.prototype.isSignInIcon_=function(x){return x=="yt-icons:prompted_sign_in"};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],NI.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],NI.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.zwZ.YtConditionalRendererBehavior),_.N("design:type",Object)],NI.prototype,"ytConditionalRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],NI.prototype,"data",void 0);
_.q([_.R({computed:"computeIcon_(data.icon)"}),_.N("design:type",Object)],NI.prototype,"icon_",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.N("design:type",Boolean)],NI.prototype,"hasIcon_",void 0);_.q([_.R({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.N("design:type",Boolean)],NI.prototype,"signInIcon_",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],NI.prototype,"compact",void 0);
NI=_.q([_.HD({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],NI);
_.w(NI,"yt-player-error-message-renderer",function(){if(L9q===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;bn8===void 0&&(bn8=document.createElement("template"));var K=bn8;D.call(G,K.content.cloneNode(!0),x.content.firstChild);L9q=x}x=L9q;return x},{mode:2});var Ba0;var rsE;var vc=function(){return _.n.apply(this,arguments)||this};
_.m(vc,_.n);vc.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
vc.prototype.computeIcon_=function(x){return x?"yt-icons:"+x.iconType.toLowerCase():"error_outline"};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],vc.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],vc.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],vc.prototype,"data",void 0);_.q([_.R({computed:"computeIcon_(data.icon)"}),_.N("design:type",Object)],vc.prototype,"icon_",void 0);vc=_.q([_.HD({is:"yt-player-kav-renderer",disableElementRegistration:!0})],vc);
_.w(vc,"yt-player-kav-renderer",function(){if(rsE===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;Ba0===void 0&&(Ba0=document.createElement("template"));var K=Ba0;D.call(G,K.content.cloneNode(!0),x.content.firstChild);rsE=x}x=rsE;return x},{mode:2});_.tn(_.Nv(function(x){var G=_.qi(),D=_.l(_.eO(0,void 0,"gCmSbf")),K=D.next().value,z=D.next().value;D=_.l(_.eO(null,void 0,"Rj9zMe"));var y=D.next().value,c=D.next().value;_.FQ(function(){AHE(G.value,z,c);G.value.scrollIntoView()});
D=U4O.bind(null,x.data,K);t2("resize",function(){var W=y();if(K()===1&&W!==null){var e;(e=window.grecaptcha)==null||e.reset(W)}});
return _.M("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.M("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.M("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var W,e;return(W=x.data().accessibility)==null?void 0:(e=W.accessibilityData)==null?void 0:e.label}),_.M(_.vq,{text:D,
className:_.ym("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.M("div",{el:G,class:"ytwPlayerCaptchaViewModelGridItem"})))},"ie"),"yt-player-captcha-view-model",{props:{data:_.fz}});var RbO=!1;_.sCi=_.Nv(function(x){var G=x.data;return _.M("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.M(_.b,{cond:function(){return G().icon},
then:function(D){return _.M("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.M(_.wk,{data:D,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.M(_.b,{cond:function(){return G().title},
then:function(D){return _.M("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.M(_.vq,{text:D}))}}),_.M(_.b,{cond:function(){return G().description},
then:function(D){return _.M("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.M(_.vq,{text:D}))}}),_.M(_.bA,{data:function(){return G().primaryButton}},{buttonViewModel:function(D){return _.M(_.Cs,{data:D.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.M(_.bA,{data:function(){return G().secondaryButton}},{buttonViewModel:function(D){return _.M(_.Cs,{data:D.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"je");
_.sCi.idomCompat=!0;var Y5s=_.Nv(function(x){var G=x.data;_.wj();return _.M("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.M("div",{class:"player-interstitial-renderer-wiz__scrim"},_.M(_.bA,{data:function(){return G().content}},{interstitialViewModel:_.sCi})))},"ke");
Y5s.idomCompat=!0;_.tn(Y5s,"yt-player-interstitial-renderer",{props:{data:_.ik}});var JC=function(){var x=_.n.apply(this,arguments)||this;x.noBackground=!1;x.compact=!1;x.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return x};
_.m(JC,_.n);JC.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"}}}};
JC.prototype.onUpdatePlayerErrorMessageCommand_=function(x){if(_.Y(x,EJZ)){var G;if(x=(G=_.Y(x,EJZ))==null?void 0:G.newPlayerErrorMessageRenderer)this.data=x}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],JC.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],JC.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],JC.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],JC.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],JC.prototype,"status",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],JC.prototype,"noBackground",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],JC.prototype,"compact",void 0);JC=_.q([_.HD({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],JC);
var m8u=_.x$()(JC,"yt-playability-error-supported-renderers",function(){if(Vco===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;p78===void 0&&(p78=document.createElement("template"));var K=p78;D.call(G,K.content.cloneNode(!0),x.content.firstChild);Vco=x}x=Vco;return x},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var S73=void 0,ibf=void 0;var d4h=new PHJ;var Hn9=function(x){this.store=x;this.i9l=new _.x1Z},dPO=function(x,G,D){var K,z;
if(!(z=((K=G.playabilityStatus)==null?void 0:K.status)!=="OK")){x=x.store;var y;z=G.offlineState&&((y=G.videoDetails)==null?0:y.videoId)?_.B("enable_pl_r_c_cd")?LUn(x.getState().entities,G.videoDetails.videoId):!!J7L(x.getState().entities,G.videoDetails.videoId):!1}if(z)return!0;z=JHn(G);if(z===1){if(_.B("ab_v_vid_sig")){var c,W=(c=G.videoDetails)==null?void 0:c.videoId;if(!W||!D||W!==D){var e;G=new _.LL("282054944_vid",{bLH:D,tUa:(e=G.videoDetails)==null?void 0:e.videoId});_.I4(G)}}return!0}mzd=
0;var Q,p;e=(W=G.auxiliaryUi)==null?void 0:(Q=W.messageRenderers)==null?void 0:(p=Q.bkaEnforcementMessageViewModel)==null?void 0:p.displayType;if(z!==3&&(e==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||e==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;e={reason:_.tN(_.Wg("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.B("ks_something_wrong_learn_more")?M0f("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.tN(_.Wg("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:_.tN("282054944")};$8q(G,{playerErrorMessageRenderer:e});return!1},wME=function(x,G){if(dzQ(G)){_.y7(1,!0);
var D=(D=dzQ(G))&&_.nED()?D:void 0;D?($8q(G,{enforcementMessageViewModel:D}),x.i9l.increment("IN_PLAYER"),_.y7(5)):(x.i9l.increment("SKIP_DISPLAY"),_.y7(2))}},$8q=function(x,G){x.playabilityStatus=Object.assign({},x.playabilityStatus,{status:"ERROR",
errorScreen:G});x.videoDetails=void 0};
Hn9.prototype.handleResponse=function(x,G){if(x.playabilityStatus){var D,K,z,y=(G==null?void 0:(D=G.innerTubeRequest)==null?void 0:D.videoId)||(G==null?void 0:(K=G.innerTubeRequest)==null?void 0:(z=K.playerRequest)==null?void 0:z.videoId);dPO(this,x,y)&&wME(this,x)}};
Hn9[dq]=[z0];var gIC=new _.wq("ADBLOCK_DETECTION_SERVICE_TOKEN");var Jj=function(x){this.aXa=x};
Jj.prototype.bindInnertubeChallengeFetcher=function(x){this.aXa.bicf(x)};
Jj.prototype.registerChallengeFetchedCallback=function(x){this.aXa.bcr(x)};
Jj.prototype.getLatestChallengeResponse=function(){return this.aXa.blc()};var jCi;_.f8=function(x,G,D){var K=this;this.network=x;this.options=G;this.networkStatusManager=D;this.qq=null;if(G.useBotguardEverywhere){var z=new _.Kt;this.qq=z.promise;_.Df.ytAtRC&&_.eU(_.Fj,function(){var y,c;return _.T(function(W){if(W.nextAddress==1){if(!_.Df.ytAtRC)return W.return();y=F9Z(null);return _.Z(W,K.sH(y),2)}c=W.yieldResult;_.Df.ytAtRC&&_.Df.ytAtRC(JSON.stringify(c));_.c5(W)})});
EEL().then(function(y){var c,W,e,Q;return _.T(function(p){if(p.nextAddress==1)return y.bindInnertubeChallengeFetcher(function(V){return K.sH(F9Z(V))}),_.Z(p,IEP(),2);
c=p.yieldResult;W=y.getLatestChallengeResponse();e=W.challenge;if(!e)throw Error("ci");Q={challenge:e,oH:vb(e),hf:c,bgChallenge:new qX};z.resolve(Q);y.registerChallengeFetchedCallback(function(V){V=V.challenge;if(!V)throw Error("di");V={challenge:V,oH:vb(V),hf:c,bgChallenge:new qX};K.qq=Promise.resolve(V)});
_.c5(p)})})}else G.preload&&CwZ(this,new Promise(function(y){_.Bw(_.Fj,function(){y(Is9(K))},0)}))};
jCi=function(x){var G={preload:!0,useBotguardEverywhere:!0},D=!1;if(typeof G==="boolean")var K={preload:G};else typeof G==="undefined"?K={preload:!0}:(K=G,D=!!G.cb8);G=D?void 0:new _.w$;_.f8.instance=new _.f8(x,K,G);return _.f8.instance};
_.f8.prototype.dxa=function(){var x=this;return _.T(function(G){return G.nextAddress==1?_.Z(G,Promise.race([x.qq,null]),2):G.return(!!G.yieldResult)})};
_.f8.prototype.tIc=function(x,G,D){var K=this,z,y,c;return _.T(function(W){K.qq===null&&CwZ(K,Is9(K));z=!1;y={};c=function(){var e,Q,p;return _.T(function(V){switch(V.nextAddress){case 1:return _.Z(V,K.qq,2);case 2:e=V.yieldResult;y.challenge=e.challenge;if(!e.hf){"c1a"in e.oH&&(y.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");V.jumpTo(3);break}Q=Object.assign({},{c:e.challenge,e:x},G);_.Kl(V,4);z=!0;if(_.B("attbs")&&!K.options.useBotguardEverywhere){p=_.E0i(e.hf,{vA:Q});V.jumpTo(6);break}return _.Z(V,
e.hf.snapshot({vA:Q}),7);case 7:p=V.yieldResult;case 6:p?y.webResponse=p:y.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.iI(V,3);break;case 4:_.lX(V),y.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(x==="ENGAGEMENT_TYPE_PLAYBACK"){var L=e.oH,r={};if(L.c6a){var H=Number(_.Am("DCLKSTAT",0));r.reportingStatus=String(Number(L.c)^(isNaN(H)?0:H))}L.c6b&&(r.broadSpectrumDetectionResult=String(Number(L.c)^Number(_.Am("CATSTAT",0))));y.adblockReporting=r}return V.return(y)}})};
return W.return(Promise.race([c(),Onu(D,function(){var e=Object.assign({},y);z&&(e.error="ATTESTATION_ERROR_VM_TIMEOUT");return e})]))})};
var F9Z=function(x){var G={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};x&&(G.interpreterHash=x);return G},Is9=function(x,G){G=G===void 0?0:G;
var D,K,z,y,c,W,e,Q,p,V,L,r;return _.T(function(H){switch(H.nextAddress){case 1:D=F9Z(xc7().fyq);if(_.B("att_fet_ks"))return _.Kl(H,7),_.Z(H,x.sH(D),9);_.Kl(H,4);return _.Z(H,X7h(x,D),6);case 6:c=H.yieldResult;z=c.liU;y=c.yuf;K=c;_.iI(H,3);break;case 4:return _.lX(H),_.O9(Error("ei`"+G)),AsZ(x,864E5),H.return({challenge:"",oH:{},hf:void 0,bgChallenge:void 0});case 9:K=H.yieldResult;if(!K)throw Error("fi");if(!K.challenge)throw Error("gi");z=K.challenge;y=vb(z);if("c1a"in y&&(!K.bgChallenge||!K.bgChallenge.program))throw Error("hi");
_.iI(H,3);break;case 7:W=_.lX(H);_.O9(W);G++;if(G>=5)return _.O9(Error("ei`"+G)),AsZ(x,864E5),H.return({challenge:"",oH:{},hf:void 0,bgChallenge:void 0});e=1E3*Math.pow(2,G-1)+Math.random()*1E3;return H.return(new Promise(function(O){_.Bw(_.Fj,function(){O(Is9(x,G))},e)}));
case 3:Q=PWf(y);AsZ(x,Q*1E3);p=void 0;if(!("c1a"in y&&K.bgChallenge)){H.jumpTo(10);break}V=kTd(K.bgChallenge);_.Kl(H,11);return _.Z(H,Dco(xc7(),V),13);case 13:_.iI(H,12);break;case 11:return L=_.lX(H),_.O9(L),H.return({challenge:z,oH:y,hf:p,bgChallenge:V});case 12:return _.Kl(H,14),p=new _.sR({challenge:V,f3:{kp:"aGIf"}}),_.Z(H,p.vcI,16);case 16:_.iI(H,10);break;case 14:r=_.lX(H),_.O9(r),p=void 0;case 10:return H.return({challenge:z,oH:y,hf:p,bgChallenge:V})}})};
_.f8.prototype.sH=function(x){var G=this,D;return _.T(function(K){D=G.networkStatusManager;if(!D||D.isNetworkAvailable())return K.return(G.network.sH(x));_.II("att_pna",void 0,"attestation_challenge_fetch");return K.return(new Promise(function(z){D.listenOnce("publicytnetworkstatus-online",function(){G.network.sH(x).then(z)})}))})};
var U8s=function(x){if(!x)throw Error("fi");if(!x.challenge)throw Error("gi");var G=x.challenge,D=vb(G);if("c1a"in D&&(!x.bgChallenge||!x.bgChallenge.program))throw Error("hi");return Object.assign({},x,{liU:G,yuf:D})},X7h=function(x,G){var D,K,z,y,c;
return _.T(function(W){switch(W.nextAddress){case 1:D=void 0,K=0,z={};case 2:if(!(K<5)){W.jumpTo(4);break}if(!(K>0)){W.jumpTo(5);break}z.dqj=1E3*Math.pow(2,K-1)+Math.random()*1E3;return _.Z(W,new Promise(function(e){return function(Q){_.Bw(_.Fj,function(){Q(void 0)},e.dqj)}}(z)),5);
case 5:return _.Kl(W,7),_.Z(W,x.sH(G),9);case 9:return y=W.yieldResult,W.return(U8s(y));case 7:D=c=_.lX(W),c instanceof Error&&_.O9(c);case 8:K++;z={dqj:void 0};W.jumpTo(2);break;case 4:throw D;}})},CwZ=function(x,G){x.qq=G},Rw0=function(x){var G,D,K;
return _.T(function(z){if(z.nextAddress==1)return _.Z(z,Promise.race([x.qq,null]),2);G=z.yieldResult;var y=Is9(x);x.qq=y;(D=G)==null||(K=D.hf)==null||K.dispose();_.c5(z)})},AsZ=function(x,G){var D=Date.now()+G,K=function(){var z;
return _.T(function(y){z=D-Date.now();return z<1E3?_.Z(y,Rw0(x),0):(_.Bw(_.Fj,K,Math.min(z,6E4)),y.jumpTo(0))})};
K()},Onu=function(x,G){return new Promise(function(D){_.Bw(_.Fj,function(){D(G())},x)})};var S58=function(){};
S58.prototype.processContext=function(x){var G=_.f8.instance;if(!G)return _.RL();var D=KMD(x);return D?new UV(G.tIc(D,Grf(x),500).then(function(K){var z;(x==null?0:(z=x.innerTubeRequest)==null?0:z.context)||(x.innerTubeRequest.context={});z=x.innerTubeRequest.context;z.request||(z.request={});z.request.attestationResponseData=K})):_.RL()};var ngi=function(x){this.innertubeTransportService=x};
ngi.prototype.sH=function(x){_.II("att_fsr",void 0,"attestation_challenge_fetch");return _.ma(this.innertubeTransportService,x,_.qW(_.Pzh)).then(function(G){_.II("att_frr",void 0,"attestation_challenge_fetch");return G})};_.inE=function(x){this.innertubeTransportService=x};var ggo=new _.wq("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var u7u=function(){},w79=function(x,G,D,K,z){var y=_.Am("YPC_MB_URL");
_.nkn(y).then(function(){d8k(y,x,G,D,K,z)})},d8k=function(x,G,D,K,z,y){try{var c=payments.business.integration,W=payments.business.integration.Style.create().withMaterialDesignStyle(),e=c.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.B("enable_window_constrained_buy_flow_dialog")&&(e=e.usingPopupStyle("windowConstrained"));y&&(e=e.usingCloseCallback(y));var Q=D?D:_.Am("YPC_GB_LANGUAGE"),p=_.Am("SESSION_INDEX");c.bootstrap.fromPaymentsUrl(x);c.bootstrap.asMashupMode(e).usingGaiaIndex(p).usingLocale(Q).usingStyle(W).usingDefaultActivityStatusChangeHandler().inStandaloneContext(c.standaloneContextAuthId.forGaia()).purchaseManager(G,function(V){K&&K(V)}).load(void 0,z)}catch(V){throw z&&z(V),_.I4(V),V;
}};var q5o=new _.wq("PURCHASE_MANAGER_TOKEN");var Na7=function(){var x=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return x.videos},
getContinuationsPresent:function(){return x.continuationsPresent},
setVideos:function(G){x.videos=G},
getRecommendedVideos:function(){return x.recommendedVideos},
setRecommendedVideos:function(G){x.recommendedVideos=G}}};
Na7.prototype.addVideos=function(x){x&&(this.videos=x.filter(function(G){return!!_.a$L(G)}).map(function(G){var D=_.a$L(G);
a:{var K;if(G.playlistVideoRenderer&&((K=G.playlistVideoRenderer)==null?0:K.voteSortTiebreaker))var z=G.playlistVideoRenderer.voteSortTiebreaker;else{if(_.Y(G,tj)){var y;if(K=(z=_.Y(G,tj))==null?void 0:(y=z.playlistItemData)==null?void 0:y.voteSortTiebreaker){z=K;break a}}z=""}}return{itemId:D,videoId:_.l$f(G),voteCount:_.c5L(G),voteSortTiebreaker:z}}),this.continuationsPresent=!!_.Y(x[x.length-1],_.hj))};
var vgE=function(x,G){return x.videos.findIndex(function(D){return D.itemId===G})},JsJ=function(x,G){return x.recommendedVideos.findIndex(function(D){return D.itemId===G})},fsE=function(x){x={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:x}}}}};_.Eo().resolve(_.hm).resolveCommand(x)};var tck=function(){Na7.apply(this,arguments)};
_.m(tck,Na7);
var nEE=function(x,G,D,K){if(!x.parentElem)throw Error("mi");var z=vgE(x,G);z===-1&&(z=JsJ(x,G),z=z!==-1?z+x.videos.length:-1);if(z===-1)throw Error("ni");var y=z>=x.videos.length?x.recommendedVideos[z-x.videos.length]:x.videos[z];y.voteCount=D;y.voteSortTiebreaker=Date.now().toString();z>=x.videos.length?x.recommendedVideos.splice(z-x.videos.length,1):x.videos.splice(z,1);var c=x.videos;for(var W=0,e=c.length-1;W<=e;){var Q=Math.floor((W+e)/2);if(c[Q].voteCount<y.voteCount)e=Q-1;else if(c[Q].voteCount>y.voteCount)W=
Q+1;else{a:{var p=y.voteSortTiebreaker;var V=c[Q].voteSortTiebreaker;if(p.length!==V.length)p=p.length>V.length;else{for(var L=0;L<p.length;L++){var r=p.charCodeAt(L),H=V.charCodeAt(L);if(r>H){p=!0;break a}if(r<H)break}p=!1}}p?e=Q-1:W=Q+1}}c=W;if(c===-1)throw Error("oi");x.videos.splice(c,0,y);z!==c&&ktZ(x,z,c,G,D,K)},ktZ=function(x,G,D,K,z,y){var c,W=(c=x.parentElem)==null?void 0:c.children,e=Math.min(G,D),Q=Math.max(G,D);
if(W)for(c=e;c<=Q;c++)W[c].style.viewTransitionName="item-"+String(c);document.startViewTransition(function(){if(x.parentElem){var p=x.parentElem.children;if(!(!p||G<0||G>=p.length||D<0||D>=p.length)){var V=p[G];if(V){V.remove();x.showRefreshPill=D>=x.videos.length-1&&x.continuationsPresent;if(!x.showRefreshPill){p=p[D]||null;var L;(L=x.parentElem)==null||L.insertBefore(V,p)}_.h$(x.parentElem,"yt-update-video-data-voting-animation",{toIdx:D,itemId:K,newVoteCount:z,voteStatus:y,hideItem:x.showRefreshPill})}}}}).finished.then(function(){if(W)for(var p=
e;p<=Q;p++)W[p].style.viewTransitionName="";
if(x.showRefreshPill)fsE(_.Wg("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var V;if(V=p=(V=x.parentElem)==null?void 0:V.children[D])V=p.getBoundingClientRect(),p=V.bottom,V=!(V.top>=0&&p<=x.clientHeight);V&&(V=_.e7(G>D?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(G-D)),fsE(V))}})};var hwE=function(x,G){var D=this;x?this.innertubeTransportServicePromise=Promise.resolve(x):G&&(this.innertubeTransportServicePromise=G(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new Xe(3E3,function(K){return Pwq(D,K)},0);
this.validateMiniAppVideoIdRateLimiter=new Xe(3E3,function(K){return Eg7(D,K)},1)},XE7=function(x,G){x.JSC$15018_miniAppId=G;
x.reportMiniAppValueRateLimiter=new Xe(3E3,function(D){return Pwq(x,D)},0);
x.validateMiniAppVideoIdRateLimiter=new Xe(3E3,function(D){return Eg7(x,D)},1)},Ufs=function(x,G){var D;
return _.T(function(K){if(K.nextAddress==1)return _.Z(K,x.reportMiniAppValueRateLimiter.call(G),2);D=K.yieldResult;return K.return([D,G])})},Pwq=function(x,G){var D,K,z,y,c,W,e;
return _.T(function(Q){switch(Q.nextAddress){case 1:return _.Z(Q,x.innertubeTransportServicePromise,2);case 2:return D=Q.yieldResult,K=_.qW(zJ7),z=Date.now(),y={externalPostId:x.JSC$15018_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(z/1E3),nanos:Math.round(z%1E3*1E6)},intValue:""+G}},_.Kl(Q,3),_.Z(Q,_.ma(D,y,K),5);case 5:c=Q.yieldResult;_.iI(Q,4);break;case 3:throw W=_.lX(Q),W;case 4:if(c){if("error"in c&&c.error)throw c.error;if(c.errorMetadata)throw Error("pi`"+
c.errorMetadata.status);if(e=c.userStatResult)return Q.return(e);throw Error("qi");}throw Error("ri");}})},SWi=function(x){var G,D,K,z,y;
_.T(function(c){switch(c.nextAddress){case 1:return _.Z(c,x.innertubeTransportServicePromise,2);case 2:return G=c.yieldResult,D=_.qW(zJ7),K={externalPostId:x.JSC$15018_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.Kl(c,3),_.Z(c,_.ma(G,K,D),5);case 5:z=c.yieldResult;_.iI(c,4);break;case 3:throw y=_.lX(c),y;case 4:if(z==null)throw Error("ri");if("error"in z&&z.error)throw z.error;if(z.errorMetadata)throw Error("pi`"+z.errorMetadata.status);_.c5(c)}})};
hwE.prototype.flush=function(){var x=this;return _.T(function(G){return G.nextAddress==1?_.Z(G,x.reportMiniAppValueRateLimiter.flush(),2):_.Z(G,x.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var RN7=function(x,G){return _.T(function(D){return D.nextAddress==1?_.Z(D,x.validateMiniAppVideoIdRateLimiter.call(G),2):D.return(D.yieldResult)})},Eg7=function(x,G){var D,K,z,y,c,W;
return _.T(function(e){switch(e.nextAddress){case 1:return _.Z(e,x.innertubeTransportServicePromise,2);case 2:return D=e.yieldResult,K=_.qW(k$7),z={videoId:G},_.Kl(e,3),_.Z(e,_.ma(D,z,K),5);case 5:y=e.yieldResult;_.iI(e,4);break;case 3:throw c=_.lX(e),c;case 4:if(y){if("error"in y&&y.error)throw y.error;if(y.errorMetadata)throw Error("pi`"+y.errorMetadata.status);if(W=y.playabilityStatus)return e.return(W.status);throw Error("si");}throw Error("ri");}})};
hwE[dq]=[_.P6(_.Hi),_.P6(C4E)];var xak=function(){this.clientData=new Map};
xak.prototype.getData=function(x){return this.clientData.get(x)};var GvZ=function(x){this.store=x};
GvZ.prototype.handleResponse=function(x){(x=_.Y(x.frameworkUpdates,i_))&&_.ck(x,this.store)};
GvZ[dq]=[_.$t];var Da9=new _.wq("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var K6i={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_forty:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_spinner:[[0,
1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],
search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_list:[[0,
1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,
1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var zg8=new _.wq("ICON_SET_TOKEN"),aaq=new _.wq("ICON_URL_PROVIDER_TOKEN"),oQ8=new _.wq("PREFETCH_ICONS_TOKEN"),yYo=new _.wq("ICON_MAP_FN_TOKEN");var tC={},lah=(tC.ACCESS_TIME="clock",tC.ACCOUNT_BOX="person_account",tC.ACCOUNT_BOX_CAIRO="person_account_cairo",tC.ACCOUNT_CIRCLE="person_circle",tC.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",tC.ACCOUNT_LINKED="account_link_success",tC.ACCOUNT_UNLINKED="account_link",tC.ADD_FRIEND="people",tC.ADD_MODERATOR="shield_add",tC.ADD_TO_LIBRARY=Pb("add"),tC.ADD_TO_PLAYLIST="add",tC.ADD_TO_QUEUE_TAIL="list_queue",tC.ADD_TO_REMOTE_QUEUE="list_music",tC.ADD_TO_WATCH_LATER="clock",tC.ADD_VIDEO_LINK="film_strip_add",
tC.ALERT_WARN_RED="alert_triangle",tC.ARROW_BACK="arrow_left",tC.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",tC.ARROW_DROP_DOWN="chevron_down",tC.ARROW_DROP_UP="chevron_up",tC.ARROW_FORWARD="arrow_right",tC.AUDIOTRACK="audio",tC.AUTO_AWESOME="sparkle",tC.AVATAR_ANONYMOUS="person_circle",tC.AVATAR_LOGGED_OUT="person_circle",tC.BACK="arrow_left",tC.BAR_CHART="bar_graph",tC.BLOCK="slash_circle_left",tC.BLOCK_USER="slash_circle_left",tC.BOOKMARK_BORDER="bookmark",tC.BREAKING_NEWS_ALT_1="article_alert",
tC.BROADCAST_CAIRO="podcast_cairo",tC.BUG_REPORT="bug",tC.CAMERA_ALT="camera",tC.CAMPAIGN="megaphone",tC.CANCEL="x_circle",tC.CAPTIONS="closed_caption",tC.CAST_OUTLINE="chromecast",tC.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",tC.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",tC.CHAT="message_bubble_left",tC.CHAT_BUBBLE="message_bubble_empty",tC.CHAT_SPARK="spark_message_bubble_left",tC.CHECK_BOX_OUTLINE_BLANK="box_empty",tC.CHECK_CIRCLE_OUTLINE="check_circle",tC.CHECK_CIRCLE_THICK="check_circle",tC.CLARIFY=
"article_clarify",tC.CLOSED_CAPTION_SELECTED="closed_caption",tC.CLOSE="x_mark",tC.CLOUD_UPLOAD="cloud_arrow_up",tC.COLLAPSE="chevron_up",tC.COLLAPSE_CAIRO="chevron_up_cairo",tC.COLLECTION="layers",tC.COLOR_LENS="palette",tC.COMMENT="message_bubble_right",tC.CONSENT_SHIELD="person_shield",tC.CONTENT_CUT="scissors",tC.CONTENT_CUT_CAIRO="scissors_cairo",tC.COURSE=_.B("web_enable_course_icon_update")?"creator_academy":"lightbulb",tC.COURSE_CAIRO=_.B("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",tC.CREATION_LIVE="radar_live",tC.CREATION_POST="box_pencil",tC.CREATION_UPLOAD="my_videos",tC.CREATION_UPLOAD_RED="upload",tC.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",tC.CREATOR_STUDIO="youtube_studio",tC.DASHBOARD="grid_asymmetrical",tC.DELETE="trash_can",tC.DELETE_SWEEP="trash_can",tC.DESKTOP="laptop",tC.DISLIKE="thumb_down",tC.DISLIKE_SELECTED="thumb_down",tC.DISMISSAL="x_mark",tC.DISMISS_QUEUE="list_remove",tC.DONE_ALL="check_double",tC.DOWN_ARROW="arrow_down",tC.DO_NOT_DISTURB=
"slash_circle_left",tC.DRAFT="paper_corner_folded",tC.DRAG_HANDLE="bars_2",tC.EDIT="pencil",tC.EMOJI="face_very_happy",tC.EMOJI_FLAGS="flag",tC.EMOJI_OBJECTS="lightbulb",tC.EMOJI_PEOPLE="face_very_happy",tC.EMOJI_RECENT="clock",tC.EMPTY_HEART="heart",tC.EMPTY_LIKE="thumb_up",tC.ERROR_BLACK="alert_circle",tC.ERROR_OUTLINE="alert_circle",tC.EXIT_APP="arrow_in",tC.EXIT_TO_APP="arrow_in",tC.EXPAND="chevron_down",tC.EXPAND_ALL="chevron_expand",tC.EXPAND_CAIRO="chevron_down_cairo",tC.EXPAND_LESS="chevron_up",
tC.EXPAND_MORE="chevron_down",tC.EXPLORE="compass",tC.EXPLORE_DESTINATION="compass",tC.EXTERNAL_LINK="open_new",tC.FAB_UPLOAD="upload",tC.FACE_HAPPY_OUTLINE="face_happy",tC.FACT_CHECK="article_check",tC.FASHION_LOGO="fashion",tC.FASHION_LOGO_CAIRO="fashion_cairo",tC.FAVORITE="heart",tC.FEEDBACK="message_bubble_alert",tC.FEEDBACK_CAIRO="message_bubble_alert_cairo",tC.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",tC.FILL_ARROW_SOLID_UP_16="arrow_solid_up",tC.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
tC.FILTER="menu_filter",tC.FIRST_PAGE="chevron_first",tC.FLAG="flag",tC.FULL_HEART="heart",tC.GAME_CONSOLE_DPAD="game_console_dpad",tC.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",tC.GAMING_LOGO="gaming",tC.GAMING_LOGO_CAIRO="gaming_cairo",tC.GO_TO_PAGE="arrow_right",tC.GROUPS="people_group",tC.HAPPY="face_happy",tC.HEALTH_AND_SAFETY="shield_plus",tC.HELP="question_circle",tC.HELP_CAIRO="question_circle_cairo",tC.HELP_OUTLINE="question_circle",tC.HIDE="slash_circle_left",tC.IMAGE="image",
tC.INFINITY_ICON="infinity",tC.INFO="info_circle",tC.INFO_OUTLINE="info_circle",tC.INSERT_CHART_OUTLINED="bar_graph_box_vertical",tC.INSERT_PHOTO="image",tC.KEEP="pin",tC.KEEP_OFF="pin_off",tC.KEYBOARD="keyboard",tC.KEYBOARD_ARROW_DOWN="chevron_down",tC.KEYBOARD_ARROW_UP="chevron_up",tC.KIDS_BLOCK="slash_circle_left",tC.LANGUAGE="globe",tC.LAST_PAGE="chevron_last",tC.LAUNCH="open_new",tC.LEARNING="lightbulb",tC.LEARNING_CAIRO="lightbulb_cairo",tC.LIBRARY_ADD=Pb("library_add"),tC.LIBRARY_OUTLINE="library",
tC.LIBRARY_REMOVE=Pb(),tC.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",tC.LIKES_PLAYLIST="thumb_up",tC.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",tC.LIKE="thumb_up",tC.LIKE_SELECTED="thumb_up",tC.LIVE="radar_live",tC.LIVE_CAIRO="radar_live_cairo",tC.LIVE_UNLISTED="link",tC.LOCATION_ON="location_point",tC.LOCATION_PIN="location_point",tC.LOOP="arrow_repeat",tC.LOOP_ACTIVE="arrow_repeat",tC.LOOP_ONE="arrow_repeat_1",tC.LOOP_ONE_ACTIVE="arrow_repeat_1",tC.MEH="face_meh",tC.MEMBERS_ONLY_MODE_OFF="message_bubble_left",
tC.MESSAGE="message_bubble_left",tC.MICROPHONE_ON="mic",tC.MIX="youtube_mix",tC.MONETIZATION_ON="dollar_sign_circle",tC.MONEY_FILL="dollar_sign_container",tC.MONEY_FILL_JPY="yen_sign_container",tC.MONEY_HEART="dollar_sign_heart",tC.MORE_HORIZ="overflow_horizontal",tC.MORE_VERT="overflow_vertical",tC.MUSIC="audio",tC.MUSIC_CAIRO="audio_cairo",tC.MUSIC_NOTE_SYMBOL="music",tC.MUSIC_SHUFFLE="arrow_shuffle",tC.MY_CHANNEL="person_circle",tC.MY_LOCATION="location_point",tC.NEWS_STORY="news",tC.NEXT="chevron_right",
tC.NOTIFICATIONS="bell",tC.NOTIFICATIONS_ACTIVE="bell_on",tC.NOTIFICATIONS_CAIRO="bell_cairo",tC.NOTIFICATIONS_DONE_CHECKMARK="check",tC.NOTIFICATIONS_INBOX="bell",tC.NOTIFICATIONS_NONE="bell",tC.NOTIFICATIONS_OFF="bell_off",tC.NOT_INTERESTED="slash_circle_left",tC.OFFICIAL_ARTIST_BADGE="audio",tC.OFFLINE_CLOUD="cloud_off",tC.OFFLINE_DOWNLOAD="download",tC.OFFLINE_DOWNLOAD_CAIRO="download_cairo",tC.OFFLINE_PAUSE="pause",tC.OPEN_IN_NEW="open_new",tC.OUTLINE_ADJUST="adjust",tC.OUTLINE_ARROW_SOLID_DOWN_16=
"arrow_solid_down",tC.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",tC.OUTLINE_BAG="bag",tC.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",tC.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",tC.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",tC.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",tC.PAID="dollar_sign",tC.PAUSE_OUTLINED="pause",tC.PAYMENT="credit_card",tC.PERSON_RADAR_FILLED="person_radar",tC.PHONE_DOWNLOAD="mobile_download",tC.PLAYABLES_LOGO="tic_tac_toe",tC.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",
tC.PLAYLISTS="list_play_arrow",tC.PLAYLISTS_CAIRO="list_play_arrow_cairo",tC.PLAYLIST_ADD=Pb("list_add"),tC.PLAYLIST_ADD_CHECK=Pb("list_check"),tC.PLAYLIST_PLAY="list_play_arrow",tC.PLAY_ALL="play_arrow",tC.PLAY_CIRCLE="play_arrow_circle",tC.PLAY_OUTLINED="play_arrow_circle",tC.PRIVACY_INFO="shield",tC.PRIVACY_PRIVATE="lock",tC.PRIVACY_PUBLIC="earth",tC.PRIVACY_UNLISTED="link",tC.PROMOTE="megaphone",tC.PURCHASES="price_tag",tC.PURCHASE_SUPER_CHAT="super_chat",tC.PURCHASE_SUPER_STICKER="super_sticker",
tC.QUESTION_ANSWER="message_bubble_question",tC.QUEUE_PLAY_LAST="list_queue_last",tC.QUEUE_PLAY_NEXT="list_play_arrow",tC.REMIX_FILLED="youtube_shorts_remix",tC.REMOVE="bar_circle",tC.REMOVE_CIRCLE="bar_circle",tC.REMOVE_CIRCLE_OUTLINE="bar_circle",tC.REMOVE_DONE="check_double_off",tC.REMOVE_FROM_HISTORY="bar_circle",tC.REMOVE_FROM_PLAYLIST="bar_circle",tC.REMOVE_MODERATOR="shield_off",tC.REPLAY="arrow_circle",tC.REPLAY_10="skip_back_10",tC.REPORT_PROBLEM="alert_triangle",tC.SAD="face_sad",tC.SAVE_PLAYLIST=
Pb("library_add"),tC.SCHEDULE="clock",tC.SCHOOL="creator_academy",tC.SCREEN_FULLSCREEN="screen_full",tC.SEARCH_HISTORY="arrow_time",tC.SELL="price_tag",tC.SETTINGS="gear",tC.SETTINGS_CAIRO="gear_cairo",tC.SETTINGS_LIGHT="gear",tC.SETTINGS_MATERIAL="gear",tC.SHARE_ARROW="share",tC.SHIELD_WITH_AVATAR="person_shield",tC.SHOPPING_BAG="bag",tC.SHOPPING_BAG_CAIRO="bag_cairo",tC.SHOPPING_CART="cart",tC.SHORTS_COMMENT="youtube_shorts_message_bubble_right",tC.SHORTS_DISLIKE="youtube_shorts_thumb_down",tC.SHORTS_LIKE=
"youtube_shorts_thumb_up",tC.SHORTS_SHARE="youtube_shorts_share",tC.SHUFFLE="arrow_shuffle",tC.SLOW_MODE_OFF="message_bubble_left",tC.SOCIAL="people",tC.SORT="menu_sort",tC.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",tC.SPEED_1X="1x",tC.SPEED_1_POINT_2X="1_point_2x",tC.SPEED_1_POINT_5X="1_point_5x",tC.SPEED_1_POINT_8X="1_point_8x",tC.SPEED_2X="2x",tC.SPEED_POINT_2X="point_2x",tC.SPEED_POINT_8X="point_8x",tC.SPONSORSHIP_STAR=_.B("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",tC.STAFF_PICK=
"spotlight",tC.START_DVR="add",tC.STAR_BORDER="star",tC.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",tC.STICKER_EMOTICON="face_happy",tC.STOP_DVR="stop",tC.SUBSCRIBE="youtube_logo_icon",tC.SUBSCRIBE_PLUS="add_cairo",tC.SUBSCRIPTION_MANAGER="gear",tC.SUPERVISOR_ACCOUNT="people",tC.SUPER_CHAT_FOR_GOOD="hands_heart",tC.SWAP_HORIZ="arrow_swap_horizontal",tC.SWITCH_ACCOUNTS="person_account",tC.TAB_ACCOUNT="person",tC.TAB_ACTIVITY="bell",tC.TAB_BOOKMARK="bookmark",tC.TAB_EXPLORE="compass",tC.TAB_HOME=
"home",tC.TAB_HOME_CAIRO="home_cairo",tC.TAB_INBOX="mail",tC.TAB_LIKED="thumb_up",tC.TAB_MUSIC_PREMIUM="youtube_music",tC.TAB_SHORTS="youtube_shorts",tC.TAB_SHORTS_CAIRO="youtube_shorts_cairo",tC.TAB_SUBSCRIPTIONS="subscriptions",tC.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",tC.TAB_TRENDING="fire",tC.TIMER="stopwatch",tC.TRAILER="youtube_originals",tC.TRENDING="fire",tC.TRENDING_CAIRO="fire_cairo",tC.TRENDING_UP="rating_up",tC.TROPHY="trophy",tC.TROPHY_CELEBRATIONS="fireworks",tC.TUNE="adjust",
tC.UNBLOCK_USER="bar_circle",tC.UNLIMITED="youtube_logo_icon",tC.UNPLUGGED_LIVE_GUIDE="radar_live",tC.UNPLUGGED_SPORTS="eye_off",tC.UPLOADS="library",tC.UP_ARROW="arrow_up",tC.VERTICAL_ALIGN_BOTTOM="download",tC.VERY_HAPPY="face_very_happy",tC.VERY_SAD="face_very_sad",tC.VIDEOGAME_ASSET="gaming",tC.VIDEOS="play_arrow_circle",tC.VIDEO_CALL="video_camera_add",tC.VIDEO_LIBRARY_WHITE="library",tC.VIDEO_YOUTUBE="youtube_logo_icon",tC.VIEW_LIST="list_view",tC.VIEW_LIST_CAIRO="list_view_cairo",tC.VISIBILITY=
"eye",tC.VISIBILITY_OFF="eye_off",tC.VOLUME_MUTE="volume_off",tC.VOLUME_UP="volume_on",tC.WALLPAPER="image",tC.WARNING="alert_triangle",tC.WATCH_HISTORY="arrow_time",tC.WATCH_HISTORY_CAIRO="arrow_time_cairo",tC.WATCH_LATER="clock",tC.WATCH_LATER_CAIRO="clock_cairo",tC.WATCH_RELATED_MIX="youtube_mix",tC.WHAT_TO_WATCH="home",tC.YOUTUBE_MUSIC_MONOCHROME="youtube_music",tC.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",tC.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",tC.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",tC.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",tC.YT_OUTLINE_MUSIC_24="music",tC);var kf={},cY0=(kf.ACCESS_TIME="clock",kf.ACCOUNT_BOX="person_square",kf.ACCOUNT_BOX_CAIRO="person_square",kf.ACCOUNT_CIRCLE="person_circle",kf.ACCOUNT_CIRCLE_CAIRO="person_circle",kf.ACCOUNT_LINKED="account_link",kf.ACCOUNT_UNLINKED="account_link",kf.ADD_CIRCLE="add_circle",kf.ADD_FRIEND="person_child",kf.ADD_TO_LIBRARY="bookmark",kf.ADD_TO_PLAYLIST="add",kf.ADD_TO_QUEUE_TAIL="queue",kf.ADD_TO_REMOTE_QUEUE="playlist_audio",kf.ADD_TO_WATCH_LATER="clock",kf.ADD_VIDEO_LINK="film_strip_add",kf.ADMIN_PANEL_SETTINGS=
"gear",kf.ALERT_WARN_RED="alert_triangle",kf.ALIGN_LEFT="text_align_left",kf.ARROWS_ALERT="arrow_split_alert",kf.ARROW_BACK="arrow_left",kf.ARROW_CIRCLE="arrow_counterclockwise",kf.ARROW_CIRCLE_PLAY="replay",kf.ARROW_CIRCLE_RIGHT="arrow_clockwise",kf.ARROW_DIAGONAL="arrow_up_left",kf.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",kf.ARROW_DROP_DOWN="triangle_down",kf.ARROW_DROP_UP="triangle_up",kf.ARROW_FORWARD="arrow_right",kf.ARROW_PAUSE="pause_history",kf.ARROW_UNDO="undo",kf.ARTICLE="text_page",kf.ARTICLE_ALERT=
"text_page_alert",kf.ARTICLE_CHECK="text_page_check",kf.ARTICLE_CLARIFY="text_page_info",kf.AUDIOTRACK="audio",kf.AUDIO_BADGE="audio_badge",kf.AUDIO_SURROUND="surround_sound",kf.AVATAR_ANONYMOUS="person_circle",kf.AVATAR_LOGGED_OUT="person_circle",kf.BACK="arrow_left",kf.BAR_CHART="chart_bar",kf.BAR_CIRCLE="minus_circle",kf.BAR_HORIZONTAL="minus",kf.BLOCK="circle_slash",kf.BLOCK_USER="circle_slash",kf.BOOKMARK_BORDER="bookmark",kf.BOX_OPEN_CHECK="quiz",kf.BOX_PENCIL="square_pencil",kf.BREAKING_NEWS_ALT_1=
"text_page_alert",kf.BROADCAST="podcast",kf.BROADCAST_CAIRO="podcast",kf.BUG_REPORT="bug",kf.CAMERA_ALT="camera",kf.CAMPAIGN="megaphone",kf.CANCEL="x_circle",kf.CAPTIONS="closed_captions",kf.CAST_ICON="chromecast",kf.CAST_OUTLINE="chromecast",kf.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",kf.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",kf.CHAT="text_bubble",kf.CHAT_BUBBLE="bubble",kf.CHECK_BOX="check_square",kf.CHECK_BOX_OUTLINE_BLANK="square",kf.CHECK_CIRCLE_FILLED="check_circle",kf.CHECK_CIRCLE_OUTLINE=
"check_circle",kf.CHECK_CIRCLE_THICK="check_circle",kf.CHECK_DOUBLE="check_done",kf.CHECK_DOUBLE_OFF="check_done_slash",kf.CHEVRON_LEFT="chevron_left",kf.CHEVRON_RIGHT="chevron_right",kf.CHEVRON_RIGHT_CAIRO="chevron_right",kf.CIRCLES_OVERLAP="account_link",kf.CLAPPERBOARD_CAIRO="clapperboard",kf.CLARIFY="text_page_info",kf.CLOCK_ARROWS="clock_split",kf.CLOCK_ARROWS_ALERT="clock_split_alert",kf.CLOSED_CAPTION="closed_captions",kf.CLOSED_CAPTION_SELECTED="closed_captions",kf.CLOSE="x",kf.CLOUD_UPLOAD=
"cloud_arrow_up",kf.COLLAPSE="chevron_up",kf.COLLAPSE_CAIRO="chevron_up",kf.COLLECTION="square3d_stack",kf.COLOR_LENS="paint_palette",kf.COMMENT="text_bubble",kf.CONSENT_SHIELD="person_shield",kf.CONTENT_CUT="scissors",kf.CONTENT_CUT_CAIRO="scissors",kf.COURSE="graduation_cap",kf.COURSE_CAIRO="graduation_cap",kf.CREATION_LIVE="live",kf.CREATION_POST="square_pencil",kf.CREATION_UPLOAD="video",kf.CREATION_UPLOAD_RED="upload",kf.CREATOR_ACADEMY="graduation_cap",kf.CREATOR_STUDIO="youtube_studio",kf.DARK_THEME=
"theme",kf.DELETE="trash_can",kf.DELETE_SWEEP="trash_can",kf.DESKTOP="laptop",kf.DISLIKE="thumb_down",kf.DISLIKE_SELECTED="thumb_down",kf.DISMISSAL="x",kf.DISMISS_QUEUE="playlist_x",kf.DOGFOOD="pawprint",kf.DOLLAR_SIGN="dollar_sign_circle",kf.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",kf.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",kf.DOWN_ARROW="arrow_down",kf.DO_NOT_DISTURB="circle_slash",kf.DRAFT="document",kf.EARTH="globe",kf.EDIT="pencil",kf.EMOJI="face_very_happy",kf.EMOJI_FLAGS="flag",kf.EMOJI_OBJECTS=
"lightbulb",kf.EMOJI_PEOPLE="face_very_happy",kf.EMOJI_RECENT="clock",kf.EMPTY_HEART="heart",kf.EMPTY_LIKE="thumb_up",kf.ERROR_BLACK="alert_circle",kf.ERROR_OUTLINE="alert_circle",kf.ERROR_WHITE="alert_circle",kf.EXIT_APP="arrow_in",kf.EXIT_TO_APP="arrow_in",kf.EXPAND="chevron_down",kf.EXPAND_ALL="chevron_expand",kf.EXPAND_CAIRO="chevron_down",kf.EXPAND_LESS="chevron_up",kf.EXPAND_MORE="chevron_down",kf.EXPLORE="compass",kf.EXPLORE_DESTINATION="compass",kf.EXTERNAL_LINK="arrow_up_right",kf.EYE_OFF=
"eye_slash",kf.FAB_UPLOAD="upload",kf.FACE_HAPPY_OUTLINE="face_happy",kf.FACE_MEH="face_neutral",kf.FACT_CHECK="text_page_check",kf.FASHION_LOGO="fashion",kf.FASHION_LOGO_CAIRO="fashion",kf.FAVORITE="thumb_up",kf.FEEDBACK="alert_bubble",kf.FEEDBACK_CAIRO="alert_bubble",kf.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",kf.FILL_ARROW_SOLID_UP_16="arrow_solid_up",kf.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",kf.FLAG_CAIRO="flag",kf.FLASH_OFF="flash_slash",kf.FLASH_ON="flash",kf.FULL_HEART="heart",kf.GAMING_LOGO=
"gaming",kf.GAMING_LOGO_CAIRO="gaming",kf.GO_TO_PAGE="arrow_right",kf.GROUPS="person3",kf.HAND_SWIPE_LEFT="gesture_swipe_left",kf.HAND_SWIPE_RIGHT="gesture_swipe_right",kf.HAPPY="face_happy",kf.HEALTH_AND_SAFETY="shield_health",kf.HEART_BOX="heart_cube",kf.HELP="help_circle",kf.HELP_CAIRO="help_circle",kf.HELP_OUTLINE="help_circle",kf.HIDE="circle_slash",kf.INCOGNITO_CAIRO="incognito",kf.INFINITY_ICON="infinity",kf.INFO="info_circle",kf.INFO_OUTLINE="info_circle",kf.INSERT_CHART_OUTLINED="chart_bar_square",
kf.INSERT_PHOTO="image",kf.KEEP="pin",kf.KEEP_OFF="pin_slash",kf.KEYBOARD="keyboard",kf.KEYBOARD_ARROW_DOWN="chevron_down",kf.KEYBOARD_ARROW_UP="chevron_up",kf.KIDS_BLOCK="circle_slash",kf.LANGUAGE="globe",kf.LAUNCH="arrow_up_right",kf.LEARNING="lightbulb",kf.LEARNING_CAIRO="lightbulb",kf.LIBRARY_ADD="bookmark",kf.LIBRARY_IMAGE="image_stack",kf.LIBRARY_MUSIC="audio_square_stack",kf.LIBRARY_OUTLINE="play_square_stack",kf.LIBRARY_REMOVE="bookmark",kf.LIBRARY_SAVED="check_square_stack",kf.LIKES_PLAYLIST=
"thumb_up",kf.LIKES_PLAYLIST_CAIRO="thumb_up",kf.LIKE="thumb_up",kf.LIKE_SELECTED="thumb_up",kf.LIST_QUEUE="queue",kf.LIVE_CAIRO="live",kf.LIVE_UNLISTED="link",kf.LOCATION_ON="location_pin",kf.LOCATION_PIN="location_pin",kf.LOCATION_POINT="location_pin",kf.LOOP="repeat",kf.LOOP_ACTIVE="repeat",kf.LOOP_ONE="repeat1",kf.LOOP_ONE_ACTIVE="repeat1",kf.MEET="google_meet",kf.MEH="face_neutral",kf.MEMBERSHIPS="memberships",kf.MEMBERS_ONLY_MODE_OFF="text_bubble",kf.MENU_FILTER="filter",kf.MESSAGE="text_bubble",
kf.MESSAGE_BUBBLE_GEAR="bubble_gear",kf.MESSAGE_BUBBLE_LEFT="text_bubble",kf.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",kf.MESSAGE_BUBBLE_OVERLAP="bubble_stack",kf.MESSAGE_BUBBLE_QUESTION="help_bubble",kf.MICROPHONE_ON="mic",kf.MONETIZATION_ON="dollar_sign_circle",kf.MONEY_FILL="dollar_sign_rectangle",kf.MONEY_FILL_JPY="yen_sign_rectangle",kf.MONEY_HAND="dollar_sign_circle_hand",kf.MONEY_HEART="dollar_sign_heart",kf.MOON_Z="sleep_timer",kf.MORE_HORIZ="overflow_horizontal",kf.MORE_VERT="overflow_vertical",
kf.MUSIC="audio",kf.MUSIC_CAIRO="audio",kf.MUSIC_EXPLICIT_BADGE="explicit",kf.MUSIC_NEW_RELEASE="audio_badge",kf.MUSIC_NOTE_SYMBOL="audio",kf.MUSIC_SCISSORS="audio_scissors",kf.MUSIC_SHUFFLE="shuffle",kf.MY_CHANNEL="person_circle",kf.MY_LOCATION="location_pin",kf.MY_VIDEOS="video",kf.MY_VIDEOS_CAIRO="video",kf.NEWS_CAIRO="news",kf.NEWS_STORY="news",kf.NEXT="chevron_right",kf.NOTE_ADD="bubble_pencil",kf.NOTIFICATIONS="bell",kf.NOTIFICATIONS_ACTIVE="bell_waves",kf.NOTIFICATIONS_CAIRO="bell",kf.NOTIFICATIONS_DONE_CHECKMARK=
"check",kf.NOTIFICATIONS_INBOX="bell",kf.NOTIFICATIONS_NONE="bell",kf.NOTIFICATIONS_OFF="bell_slash",kf.NOT_INTERESTED="circle_slash",kf.OFFICIAL_ARTIST_BADGE="audio",kf.OFFLINE_CLOUD="cloud_slash",kf.OFFLINE_DOWNLOAD="download",kf.OFFLINE_DOWNLOAD_CAIRO="download",kf.OFFLINE_PAUSE="pause",kf.OPEN_IN_NEW="arrow_up_right",kf.OUTLINE_ADJUST="adjust",kf.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",kf.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",kf.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",kf.OUTLINE_ARROW_SOLID_UP_16=
"arrow_solid_up",kf.OUTLINE_BAG="bag",kf.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",kf.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",kf.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",kf.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",kf.PAID="dollar_sign_circle",kf.PAUSE_OUTLINED="pause",kf.PAYMENT="credit_card",kf.PEOPLE="person_child",kf.PEOPLE_2="person2_rectangle",kf.PEOPLE_GROUP="person3",kf.PEOPLE_NOTE="bubble_asterisk",kf.PERSON_2="person2",kf.PERSON_ACCOUNT="person_square_stack",kf.PERSON_MINUS=
"person_x",kf.PERSON_MUSIC="person_audio",kf.PERSON_RADAR="person_waves",kf.PERSON_RADAR_FILLED="person_waves",kf.PERSON_SETTING="person_gear",kf.PHONE="phone",kf.PHONE_DOWNLOAD="mobile_arrow_down",kf.PICTURE_IN_PICTURE="picture_in_picture",kf.PLAYABLES_LOGO="playables",kf.PLAYABLES_LOGO_CAIRO="playables",kf.PLAYLISTS="playlist",kf.PLAYLISTS_CAIRO="playlist",kf.PLAYLIST_ADD_CHECK="bookmark",kf.PLAY_ALL="play",kf.PLAY_ARROW="play",kf.PLAY_ARROW_CIRCLE="play_circle",kf.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",
kf.PLAY_CIRCLE="play_circle",kf.PLAY_OUTLINED="play_circle",kf.PODCAST_ADD="podcast_add",kf.PODCAST_CHECK="podcast_check",kf.PRIVACY_INFO="shield_x",kf.PRIVACY_PRIVATE="lock",kf.PRIVACY_PUBLIC="globe",kf.PRIVACY_UNLISTED="link",kf.PROMOTE="megaphone",kf.PURCHASES="price_tag",kf.PURCHASE_SUPER_CHAT="super_chat",kf.PURCHASE_SUPER_STICKER="super_sticker",kf.QUESTION_ANSWER="help_bubble",kf.QUESTION_CIRCLE="help_circle",kf.QUEUE_PLAY_LAST="queue_last",kf.QUEUE_PLAY_NEXT="playlist",kf.QUOTATION_MARK="quote",
kf.RADAR_LIVE="live",kf.REMOVE="minus_circle",kf.REMOVE_CIRCLE="minus_circle",kf.REMOVE_CIRCLE_OUTLINE="minus_circle",kf.REMOVE_FROM_HISTORY="minus_circle",kf.REMOVE_FROM_PLAYLIST="minus_circle",kf.REPLAY="arrow_counterclockwise",kf.REPLAY_10="skip10_back",kf.REPLAY_ARROW="replay",kf.REPORT_PROBLEM="alert_triangle",kf.RSS_OFF="rss_slash",kf.SAD="face_sad",kf.SAVE_PLAYLIST="bookmark",kf.SCHEDULE="clock",kf.SCHOOL="graduation_cap",kf.SCREEN_DEFAULT="player_default",kf.SCREEN_FULLSCREEN="player_full_enter",
kf.SCREEN_LIGHT="ambient_mode",kf.SCREEN_ROTATION="rotate_portrait",kf.SCREEN_SWITCH="player_switch",kf.SEARCH_CAIRO="search",kf.SEARCH_HISTORY="history",kf.SELL="price_tag",kf.SETTINGS="gear",kf.SETTINGS_CAIRO="gear",kf.SETTINGS_LIGHT="gear",kf.SETTINGS_MATERIAL="gear",kf.SETTINGS_REMOTE="remote_waves",kf.SHARE="share",kf.SHARE_ARROW="share",kf.SHARE_CAIRO="share",kf.SHIELD="shield_x",kf.SHIELD_OFF="shield_slash",kf.SHIELD_WITH_AVATAR="person_shield",kf.SHOPPING_BAG="bag",kf.SHOPPING_BAG_CAIRO="bag",
kf.SHOPPING_CART="cart",kf.SHORTS_COMMENT="text_bubble",kf.SHORTS_DISLIKE="thumb_down",kf.SHORTS_LIKE="thumb_up",kf.SHORTS_SHARE="share",kf.SKIP_FORWARD_30="skip30_forward",kf.SLASH_CIRCLE_RIGHT="circle_slash",kf.SLOW_MODE_OFF="text_bubble",kf.SOCIAL="person_child",kf.SPARKLE="sparkles",kf.SPARK_IMAGE="image_spark",kf.SPARK_RADAR="spark_waves",kf.SPARK_VIDEO="video_spark",kf.SPEAKER_GROUP="speaker_stack",kf.SPEAKER_OFF="speaker_slash",kf.SPEED_1X="n1x",kf.SPEED_1_POINT_2X="n1point2x",kf.SPEED_1_POINT_5X=
"n1point5x",kf.SPEED_1_POINT_8X="n1point8x",kf.SPEED_2X="n2x",kf.SPONSORSHIP_STAR="memberships",kf.SPORTS="basketball",kf.SPOTLIGHT="spotlight",kf.STAFF_PICK="spotlight",kf.START_DVR="add",kf.STAR_BORDER="star",kf.STAR_HALF="star_half_filled",kf.STAR_SHOOTING="hype",kf.STICKER="sticker",kf.STICKER_EMOTICON="face_happy",kf.STOP_DVR="stop",kf.SUBSCRIBE="youtube",kf.SUBSCRIBE_PLUS="add",kf.SUBSCRIPTION_MANAGER="gear",kf.SUPERSTAR="super_star",kf.SUPERVISOR_ACCOUNT="person_child",kf.SWAP_HORIZ="arrow_swap_horizontal",
kf.SWITCH_ACCOUNTS="person_square_stack",kf.TAB_ACCOUNT="person",kf.TAB_ACTIVITY="bell",kf.TAB_BOOKMARK="bookmark",kf.TAB_EXPLORE="compass",kf.TAB_HOME="home",kf.TAB_HOME_CAIRO="home",kf.TAB_INBOX="mail",kf.TAB_LIKED="thumb_up",kf.TAB_MUSIC_PREMIUM="youtube_music",kf.TAB_SHORTS="shorts",kf.TAB_SHORTS_CAIRO="shorts",kf.TAB_SUBSCRIPTIONS="subscriptions",kf.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",kf.TAB_TRENDING="trending",kf.TARGET="target",kf.TARGET_ADD="target_add",kf.TEMPLATE_ADD="template_add",
kf.TEXT="font",kf.TIMER="stopwatch",kf.TRENDING_CAIRO="trending",kf.TRENDING_UP="arrow_trend_up",kf.TROPHY_CAIRO="trophy",kf.TROPHY_CELEBRATIONS="fireworks",kf.TROPHY_STAR="star_trophy",kf.TUNE="adjust",kf.UNBLOCK_USER="minus_circle",kf.UNFAVORITE="thumb_down",kf.UNLIMITED="youtube",kf.UNPLUGGED_LIVE_GUIDE="live",kf.UNPLUGGED_SPORTS="eye_slash",kf.UPLOADS="play_square_stack",kf.UP_ARROW="arrow_up",kf.VERTICAL_ALIGN_BOTTOM="chevron_down_end",kf.VERTICAL_ALIGN_TOP="chevron_up_end",kf.VERY_HAPPY="face_very_happy",
kf.VERY_SAD="face_very_sad",kf.VIDEOS="play_circle",kf.VIDEO_CALL="video_camera_add",kf.VIDEO_LIBRARY_WHITE="play_square_stack",kf.VIDEO_QUALITY_4K="n4k",kf.VIDEO_QUALITY_8K="n8k",kf.VIDEO_YOUTUBE="youtube",kf.VIEW_LIST_CAIRO="view_list",kf.VIEW_MODULE="view_column3_row2",kf.VISIBILITY="eye",kf.VISIBILITY_OFF="eye_slash",kf.VOLUME_DOWN="volume_min",kf.VOLUME_MUTE="volume_mute",kf.VOLUME_OFF="volume_mute",kf.VOLUME_STABLE="stable_volume",kf.VOLUME_UP="volume_max",kf.WALLPAPER="image",kf.WARNING="alert_triangle",
kf.WATCH_HISTORY="history",kf.WATCH_HISTORY_CAIRO="history",kf.WATCH_LATER="clock",kf.WATCH_LATER_CAIRO="clock",kf.WATCH_RELATED_MIX="mix",kf.WHAT_TO_WATCH="home",kf.YOUTUBE_LINKED_TV="tv_mobile",kf.YOUTUBE_MUSIC_MONOCHROME="youtube_music",kf.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",kf.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",kf.YOUTUBE_SHORTS_ARROW_UP="arrow_up",kf.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",kf.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",kf.YOUTUBE_SHORTS_OUTLINE_24=
"shorts",kf);var Tfs={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,8,16],[1,8,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,5,24],
[1,5,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,4,24],[1,4,20],[1,4,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_circle:[[0,9,24],[1,9,16],[1,9,24]],alert_triangle:[[0,8,12],[0,8,24],[1,8,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,36],[1,
1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,7,24],[1,7,24]],arrow_left:[[1,
7,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],arrow_solid_up:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,9,12],[0,9,16],[0,9,24],[1,9,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,1,24],[1,1,
24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,8,24],[1,8,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,9,24],[1,9,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,10,
12],[0,10,16],[0,10,24],[1,10,16],[1,10,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,8,18],[1,8,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,1,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
6,16,!0],[0,6,18,!0],[0,6,24,!0],[1,6,16,!0],[1,6,18,!0],[1,6,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,8,16],[1,8,18],[1,8,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,8,24],[1,8,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,3,24],[1,3,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,7,24],[1,7,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,9,24],[1,9,16],[1,9,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,4,16],[0,4,24],[1,4,12],[1,4,16],[1,4,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,10,16],[0,10,24],[1,10,16],[1,10,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,21,12],[0,21,24],[1,21,16],[1,21,24]],dollar_sign_off:[[1,3,24]],download:[[0,10,24],[1,10,16],[1,10,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,
24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,5,24],[1,5,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],
face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_unhappy:[[0,8,24],[0,8,36],[1,8,24],[1,8,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],film_strip:[[0,6,24],[1,6,24]],film_strip_add:[[1,2,24]],
filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,8,24],[1,8,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,4,16],[0,4,24],[1,4,24]],football:[[0,3,24],[1,3,24]],
gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,8,24],[1,8,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,3,24]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,
24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,17,13],[0,17,24],[1,17,16],[1,17,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,2,16],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,
1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,9,16],[1,9,18],[1,9,20],[1,9,24]],journey:[[1,1,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],
library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,7,18],[1,7,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],
live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,11,12],[0,11,24],[1,11,12],[1,11,16],[1,11,18],[1,11,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,
3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,8,12],[0,8,16],[0,8,18],[0,8,24],[1,8,24]],mention:[[1,4,16],[1,4,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,
1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,10,24],[1,10,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,
3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,
2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note_add:[[1,1,16],[1,1,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,5,24],[1,5,32]],overflow_vertical:[[1,11,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,7,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,8,16],[1,
8,18],[1,8,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,6,12],[0,6,13],[0,6,16],[0,6,24],[0,6,48],[1,6,13],[1,6,16],[1,6,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,6,24]],person_box:[[1,5,24]],person_circle:[[0,9,24],[1,9,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],
person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,2,24],[1,2,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,6,12],[0,6,24],[1,6,16],[1,6,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,3,
24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,8,16],[1,8,24],[1,8,40]],pound:[[1,3,24]],presentation:[[1,2,24]],presentation_remove:[[1,1,24]],price_tag:[[0,7,12],[0,7,24],[1,7,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,1,24]],quotation_mark:[[0,
1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,7,12],[0,7,24],
[1,7,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,
1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,11,24],[1,11,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,2,24]],shadow_soft:[[0,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,10,24,!0],[0,10,32,!0],[1,10,16,!0],[1,10,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,
1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,
1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,5,24]],skip_previous:[[0,5,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],
[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,8,12],[0,8,16],[0,8,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],
speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],star_circle:[[0,3,12],[0,3,16],[0,3,18],[0,3,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,3,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,
1,24]],subscriptions:[[0,10,24],[1,10,18],[1,10,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,
1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,2,24]],thumb_down:[[0,21,16],[0,21,24],[0,21,36],[1,21,16],[1,21,24],[1,21,36]],thumb_up:[[0,19,16],[0,19,24],[0,19,36],[1,19,16],[1,19,24],[1,19,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,2,24],[1,2,24]],tic_tac_toe:[[0,
4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,2,24]],trash_can:[[1,9,16],[1,9,18],[1,9,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,
1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,7,12],[0,7,16],[0,7,24],[1,7,16],[1,7,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,8,24],[1,8,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,4,16],[1,4,24]],video_stitch:[[1,2,24]],volume_down:[[0,2,24],[1,2,24]],
volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,2,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,2,24],[1,2,24]],x:[[1,9,18],[1,9,24]],x_cairo:[[1,1,24]],x_circle:[[1,7,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,
6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],
youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],
[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,1,24],[1,1,24]]};var W6u={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,8,24]],add_circle:[[0,5,24],[1,5,24]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,4,24],[1,4,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_bubble:[[1,1,24]],alert_circle:[[0,9,24],[1,9,24]],alert_octagon:[[0,2,24],[1,2,24]],alert_triangle:[[0,8,24],[1,8,24]],ambient_mode:[[1,1,
24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,1,24]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,7,24]],arrow_left:[[1,7,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,3,24],[1,3,24]],
arrow_solid_up:[[0,3,24],[1,3,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,1,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,1,24]],audio:[[0,9,24],[1,9,24]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,
24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,8,24],[1,8,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],
[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_gear:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,24]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,9,24],[1,9,24]],camera_audio:[[1,5,24]],camera_flip:[[1,
4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,2,24],[1,2,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,10,24]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,
24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,8,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_right:[[1,6,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,8,24],[1,8,24]],chromecast_mobile:[[1,3,24]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,2,24],[1,2,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,9,24],[1,9,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,
3,24]],cloud_arrow_up:[[0,5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,1,24]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,4,24],[1,4,24]],csv:[[0,2,
24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,10,24],[1,10,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,
1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[1,21,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],download:[[1,10,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,1,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,5,24],[1,5,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_happy:[[0,9,24],[1,9,24]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,2,24],[1,2,24]],face_paintbrush:[[1,
2,24]],face_sad:[[0,9,24],[1,9,24]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,8,24],[1,8,24]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,9,24],[1,9,24]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,6,24],[1,6,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,
8,24],[1,8,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_underline:[[1,
1,24]],football:[[0,3,24],[1,3,24]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,8,24],[1,8,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,3,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,
2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,2,24],[1,2,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,17,24],[1,17,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,1,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,
2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,2,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,9,24]],info_circle_spark:[[1,1,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,
2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],
link:[[1,7,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,11,24],[1,11,24]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,8,24],[1,8,24]],memberships_gift:[[1,1,24]],mention:[[1,4,24]],menu:[[1,1,24]],mic:[[0,10,24],[1,10,24]],mic_slash:[[1,
1,24]],minus:[[1,1,24]],minus_circle:[[0,2,24],[1,2,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,2,24],[1,2,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,
1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,5,24]],overflow_vertical:[[1,11,24]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,7,24],[1,7,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,
8,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,1,24],[1,1,24]],person_add:[[0,6,24],[1,6,24]],person_audio:[[0,1,24],[1,1,24]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[1,9,24]],person_circle_slash:[[1,2,24]],person_gear:[[1,1,24]],person_shield:[[1,7,24]],person_square:[[0,1,24],[1,1,24]],person_square_stack:[[0,1,24],[1,1,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,
1,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,2,24],[1,2,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,6,24],[1,6,24]],pin_slash:[[0,1,24],[1,1,24]],play:[[0,1,24],[1,1,24]],play_circle:[[0,1,24],[1,1,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,1,24],[1,1,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,
1,24]],player_full_enter_portrait:[[1,1,24]],player_full_exit:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,1,24]],playlist_add:[[1,1,24]],playlist_audio:[[0,1,24],[1,1,24]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,1,24]],playlist_x:[[1,1,24]],podcast:[[0,3,24],[1,3,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,
2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,8,24]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,7,24],[1,7,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,
24]],repeat:[[0,1,24],[1,1,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,1,24]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,1,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,7,24],[1,7,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,10,24],[1,10,24]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,
1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[1,10,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,2,24],[1,2,24]],shorts:[[0,2,24],[1,2,24]],shorts_empty:[[0,2,24],[1,2,24]],shuffle:[[0,2,24],[1,2,24]],skip10_back:[[1,1,24]],skip10_forward:[[1,
1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,1,24]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,5,24],[1,5,24]],skip_previous:[[0,5,24],[1,5,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,1,
24]],spacebar:[[1,2,24]],spark:[[0,8,24],[1,8,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[1,1,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],
square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,5,24],[1,5,24]],star_circle:[[0,3,24],[1,3,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,3,24],[1,3,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,10,24],[1,10,24]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],
super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,2,24],[1,2,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,
24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,21,24],[1,21,24]],thumb_up:[[0,19,24],[1,19,24]],thumb_up_down:[[0,2,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,2,24]],trash_can:[[0,9,24],[1,9,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,
3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,7,24],[1,7,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[1,8,24]],video_camera_add:[[1,2,24]],video_link:[[1,4,24]],video_spark:[[1,1,24]],video_stitch:[[1,2,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,
1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,2,24]],waveform_spark:[[1,1,24]],wrench:[[1,2,24]],x:[[1,9,24]],x_circle:[[0,7,24],[1,7,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,
7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var ego={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",CLOSED_CAPTION_DELHI_PLAYER:"CAPTIONS",CLOSED_CAPTION_DELHI_PLAYER_FILLED:"CAPTIONS",PLAYER_FULL_ENTER_DELHI_PLAYER:"PLAYER_FULL_ENTER",PLAYER_FULL_EXIT_DELHI_PLAYER:"PLAYER_FULL_EXIT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},
Pc=function(x){this.iconUrlProvider=x};
Pc.prototype.resolveIcon=function(x,G){var D=ego[x.iconName.toUpperCase()];D&&(x.iconName=D);var K=x.iconName;K=K.replace(/-/g,"_");x=Object.assign({},x,{iconName:this.mapIconTypeToStandardName(K,!!D)||K.toLowerCase()});if(_.B("enable_web_delhi_icons")||D){var z;return WML(W6u,x,((z=this.iconUrlProvider)==null?void 0:z.getYtStandardUrl)||M3O,G)}var y;return WML(Tfs,x,((y=this.iconUrlProvider)==null?void 0:y.getYtStandardUrl)||Z5V,G)};
Pc.prototype.mapIconTypeToStandardName=function(x,G){return _.B("enable_web_delhi_icons")||G?cY0[x.toUpperCase()]:lah[x.toUpperCase()]};
Pc[dq]=[_.P6(aaq)];var ZDZ=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),MaE=function(x){this.urlProvider=this.iconUrlProvider=x};
_.m(MaE,Pc);
MaE.prototype.resolveIcon=function(x,G){x.iconName==="youtube_logo"&&(x.iconName="yt-logo-updated");if(x.iconName==="youtube_premium_logo"||x.iconName==="youtube_red_logo")x.iconName="yt-logo-red-updated";var D=Object.assign({},x);x.iconName==="menu"&&(_.B("enable_web_delhi_icons")||(D.iconName="bars_3"),D.iconStyle="youtube_outline");x.iconSetName==="socialNetworksRound"&&(x.iconName==="mail"&&(D.iconName="email"),x.iconName==="embed"&&(D.iconSize=60));x.iconName==="more"&&(D.iconName="overflow_horizontal");
x.iconName==="fullscreen"&&(D.iconName="screen_full");x.iconName==="premium_standalone"&&(D.iconName="premium_standalone_cairo");_.B("enable_connect_icon_update_web")&&x.iconName==="account_linked"&&(D.iconName="circles_overlap_check",D.iconStyle="youtube_fill");_.B("enable_connect_icon_update_web")&&x.iconName==="account_unlinked"&&(D.iconName="circles_overlap",D.iconStyle="youtube_outline");ZDZ.has(x.iconName)&&(D.iconStyle="youtube_fill");x=Object.assign({},D,{iconName:(Pc.prototype.mapIconTypeToStandardName.call(this,
D.iconName)||D.iconName).toLowerCase()});var K;return(x=WML(K6i,x,((K=this.urlProvider)==null?void 0:K.getUrl)||Q5n,G))?x:Pc.prototype.resolveIcon.call(this,D,G)};
MaE[dq]=[_.P6(aaq)];_.Qaq=1;var EQ=function(){};
_.m(EQ,Fr);EQ.prototype.resolveCommand=function(x){var G,D;return _.T(function(K){G=_.Y(x,i1k);if(!G)return K.return();D=Number(G.enableDelayedPacfLoggingTvMs);if(isNaN(D)){var z=xM();Nz9(z,G,0)}else Nz9(xM(),G,D);_.c5(K)})};_.hC=function(){};
_.m(_.hC,Fr);
_.hC.prototype.resolveCommand=function(x,G){var D=this,K,z,y,c,W,e,Q;return _.T(function(p){K=_.Y(x,g5i);y=(z=G.form)==null?void 0:z.element;W=(c=y)==null?void 0:c.closest("ytd-enforcement-message-view-model");if(!K||!W)return p.return();D.allowAdsAction||(e=K.fundingChoiceInstructionPageUrl,D.allowAdsAction=new Mi0(window,_.CU(e)));var V=D.allowAdsAction;V.wallElement=W;V.allowAdsPopup.style.setProperty("display","flex","important");var L=V.scrollManager;L.originalBodyOverflow=L.JSC$8007_domHelper.JSC$7337_document_.body.style.overflow;L.JSC$8007_domHelper.JSC$7337_document_.body.style.overflow=
"hidden";V.wallElement.style.setProperty("display","none","important");$1s(V.accessibilityManager,V.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((Q=D.allowAdsAction.allowAdsPopup)&&Q instanceof HTMLElement)for(V=_.l(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),L=V.next();!L.done;L=V.next()){var r=_.l(L.value);L=r.next().value;r=r.next().value;Q.style.setProperty(L,r)}_.c5(p)})};
_.hC.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var x3=function(){};
_.m(x3,Fr);x3.prototype.resolveCommand=function(x){var G;return _.T(function(D){G=_.Y(x,PFi);if(!G)return D.return();pXn(x);_.c5(D)})};var GJ=function(x){this.JSC$15058_commandHandler=x};
_.m(GJ,Fr);
GJ.prototype.resolveCommand=function(x){var G=this,D,K,z,y,c,W,e,Q;return _.T(function(p){if(p.nextAddress==1){D=_.Y(x,s68);if((K=D)==null||!K.text||!navigator.clipboard)return p.return();_.Kl(p,2);return _.Z(p,navigator.clipboard.writeText(D.text),4)}if(p.nextAddress!=2){if(!D.successActions||D.successActions.length===0)return p.return();z=_.l(D.successActions);for(y=z.next();!y.done;y=z.next())c=y.value,G.JSC$15058_commandHandler.resolveCommand(c);return _.iI(p,0)}_.lX(p);if(!D.failureActions||D.failureActions.length===
0)return p.return();W=_.l(D.failureActions);for(e=W.next();!e.done;e=W.next())Q=e.value,G.JSC$15058_commandHandler.resolveCommand(Q);_.c5(p)})};
GJ[dq]=[_.hm];var DR=function(x){this.JSC$15062_commandHandler=x};
_.m(DR,Fr);
DR.prototype.resolveCommand=function(x,G){var D=this,K,z,y,c,W,e,Q,p,V,L;return _.T(function(r){switch(r.nextAddress){case 1:K=_.Y(x,zis);if(!K)return r.return();_.Kl(r,2);if(!K.imageBytes&&!K.imageUrl)throw Error("ti");if(!K.imageUrl){if(K.imageBytes){y=K.imageBytes;c=y.replace(/-/g,"+").replace(/_/g,"/");var H=V33(c);z=_.L9(H)}r.jumpTo(4);break}return _.Z(r,fetch(K.imageUrl),5);case 5:return W=r.yieldResult,_.Z(r,W.blob(),6);case 6:e=r.yieldResult,z=_.L9(e);case 4:V=(Q=G)==null?void 0:(p=Q.form)==
null?void 0:p.element;L=document.createElement("a");mu(L,z);V.appendChild(L);L.download="";L.click();V.removeChild(L);URL.revokeObjectURL(_.ZB(z));K.successCommand&&D.JSC$15062_commandHandler.resolveCommand(K.successCommand);_.iI(r,0);break;case 2:_.lX(r),K.errorCommand&&D.JSC$15062_commandHandler.resolveCommand(K.errorCommand),_.c5(r)}})};
DR[dq]=[_.hm];var KG=function(x){this.store=x};
_.m(KG,Fr);KG.prototype.resolveCommand=function(x){var G=this,D,K,z;return _.T(function(y){K=(D=_.Y(x,_.R00))==null?void 0:D.entityBatchUpdate;if(!K)return y.jumpTo(0);z=Object.assign({},K,{mutations:[].concat(_.B5(K.mutations||[]))});return _.Z(y,_.ck(z,G.store),0)})};var pK9=function(x){this.JSC$15069_commandHandler=x;this.feedbackDialogMap=new Map};
pK9.prototype.openDialog=function(x,G){(x=this.feedbackDialogMap.get(x))&&this.JSC$15069_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:x}},G)};
pK9[dq]=[_.hm];var zJ=new _.wq("FEEDBACK_CONTROLLER_TOKEN");var aR=new _.wq("APP_STORE_TOKEN");var oR=function(x,G){this.store=x;this.controller=G};
_.m(oR,Fr);oR.prototype.resolveCommand=function(x,G){var D=this,K,z,y,c,W,e,Q,p,V,L,r,H,O,A,g,u,f;return _.T(function(v){if(v.nextAddress==1){K=_.Y(x,_.H1);if(y=(z=K)==null?void 0:z.contentId)for(W=_.l(((c=K)==null?void 0:c.actions)||[]),e=W.next();!e.done;e=W.next())Q=e.value,Vaq(D,Q,y);L=(p=G)==null?void 0:(V=p.form)==null?void 0:V.element;return _.Z(v,_.KW(L,[x]).catch(function(){}),2)}r=v.yieldResult;
((H=r)==null?0:(O=H.data)==null?0:(A=O.feedbackResponses)==null?0:A.length)&&(u=(g=r.data.feedbackResponses[0])==null?void 0:g.followUpDialog)&&y&&(f=D.controller)!=null&&f.feedbackDialogMap.set(y,u);_.c5(v)})};
var Vaq=function(x,G,D){var K=_.Y(G,_.oI);if(K){K=_.l(K.commands||[]);for(var z=K.next();!z.done;z=K.next())Vaq(x,z.value,D)}_.Y(G,_.Zi)&&x.store.dispatch(_.cq("commandEntity",YwL(D),{key:D,command:G}));_.Y(G,SH0)&&x.store.dispatch(_.cq("commandEntity",YwL(D),{key:D,command:G}))};
oR[dq]=[aR,zJ];var yK=function(x){this.controller=x};
_.m(yK,Fr);yK.prototype.resolveCommand=function(x,G){var D=this,K,z,y,c;return _.T(function(W){K=_.Y(x,_.Sm);y=(z=K)==null?void 0:z.targetId;if(((c=K)==null?void 0:c.signal)!=="TELL_US_WHY"||!y)return W.return();D.controller.openDialog(y,G);_.c5(W)})};
yK[dq]=[zJ];var lT=function(x){this.store=x};
_.m(lT,Fr);lT.prototype.resolveCommand=function(x,G){var D=this,K,z,y,c,W,e,Q;return _.T(function(p){K=_.Y(x,HA$);y=(z=K)==null?void 0:z.contentId;e=(c=G)==null?void 0:(W=c.form)==null?void 0:W.element;Q=_.KW(e,[x]);y&&D.undo(y);return _.Z(p,Q,0)})};
lT.prototype.undo=function(x){this.store.dispatch(_.cq("commandEntity",YwL(x),{key:x,command:void 0}))};
lT[dq]=[aR];var cv=function(x){this.JSC$15084_commandHandler=x};
_.m(cv,Fr);cv.prototype.resolveCommand=function(x){var G=this,D,K,z,y,c,W,e,Q;return _.T(function(p){D=_.Y(x,EpZ);K=D.flowStateKey;z=D.validationFailureCommand;y=D.submitValidFormCommand;c=uD(_.k5,[K||""]);W=_.Y(c,x2E);((e=W)==null?0:e.isValid)&&y&&G.JSC$15084_commandHandler.resolveCommand(y);((Q=W)==null?0:Q.isValid)||!z||G.JSC$15084_commandHandler.resolveCommand(z);_.c5(p)})};
cv[dq]=[_.hm];var TJ=function(x){this.innertubeTransportService=x};
_.m(TJ,Fr);TJ.prototype.resolveCommand=function(x,G){var D=this,K;return _.T(function(z){return _.Z(z,_.Rl(D.innertubeTransportService,x,(K=G)==null?void 0:K.form).then(function(y){var c,W;G==null||(c=G.commandController)==null||(W=c.onSuccess)==null||W.call(c,x,y)},function(y){var c,W;
G==null||(c=G.commandController)==null||(W=c.onServerError)==null||W.call(c,x,y)}),0)})};
TJ[dq]=[_.Hi];var Wv=function(){};
_.m(Wv,Fr);Wv.prototype.resolveCommand=function(x){var G,D,K,z;return _.T(function(y){if(G=_.Y(x,_.lis)){if(D=G.gtmId)K=_.Am("GL",""),_.pF(D,K);(z=G.gtmData)&&_.Vb(z)}_.c5(y)})};var eF=function(x,G){this.innertubeTransportService=x;this.JSC$15095_actionRouter=G};
_.m(eF,Fr);eF.prototype.resolveCommand=function(x){var G=this,D,K;return _.T(function(z){D=_.Y(x,o1J);if(!D)return z.return();K=D.command;if(!K)return z.return();G.JSC$15095_actionRouter.triggerAction("yt-insert-rich-section-action",D);return _.Z(z,_.Rl(G.innertubeTransportService,K,{disableCache:!0}),0)})};
eF[dq]=[_.Hi,uz];LMD.bind(null,Cd);var bDs=LMD.bind(null,lAu);r5O.bind(null,Cd);var L6Z=r5O.bind(null,lAu);YzL.bind(null,Cd);var Bf8=YzL.bind(null,lAu);var ZR=function(){};
_.m(ZR,Fr);
ZR.prototype.resolveCommand=function(x){var G,D,K,z,y,c,W,e,Q,p;return _.T(function(V){G=_.Y(x,Rti);if(!G)return V.return();K=((D=G.operations)==null?void 0:D.operations)||[];z=_.l(K);for(y=z.next();!y.done;y=z.next())if(c=y.value,c.insertItemSectionContent){var L=c.insertItemSectionContent,r=L.contents||[];L.insertByPositionInSection?bDs(L.insertByPositionInSection.sectionTargetId,r,L.insertByPositionInSection.position):L.insertByRelativePositionInSection&&L.insertByRelativePositionInSection.sectionTargetId&&L.insertByRelativePositionInSection.itemTargetId&&
L6Z(L.insertByRelativePositionInSection.sectionTargetId,L.insertByRelativePositionInSection.itemTargetId,r,L.insertByRelativePositionInSection.relativePosition)}else c.replaceSection?(L=c.replaceSection,r={},L.replaceByTargetId?r=L.replaceByTargetId:L.replaceByGroupId&&(r={targetId:L.replaceByGroupId.groupId,newContent:L.replaceByGroupId.newContent,undoKey:""}),r.newContent&&W$J(r.targetId,{continuationItems:[r.newContent]})):c.removeItem?(L=c.removeItem,L.removeByTargetId&&L.sectionTargetId&&Bf8(L.sectionTargetId,
L.removeByTargetId.targetIds||[])):c.removeSection&&(c.removeSection.removeByTargetId?(W=void 0,rY9(((W=c.removeSection)==null?void 0:W.removeByTargetId.targetIds)||[])):c.removeSection.removeByGroupId&&(e=void 0,rY9(((e=c.removeSection)==null?void 0:e.removeByGroupId.groupIds)||[])));p=((Q=G.operations)==null?void 0:Q.scrollConfig)||{};sak(p);_.c5(V)})};
var rY9=function(x){x=_.l(x);for(var G=x.next();!G.done;G=x.next())W$J(G.value,{continuationItems:[]})},sak=function(x){if(x.scrollToItem){var G=x.scrollToItem.item||{},D=G.itemTargetId;
G=G.sectionTargetId;if(D&&G){var K=document.querySelector("[data-target-id="+G+"]"),z=K==null?void 0:K.querySelector("[data-target-id="+D+"]");K&&z&&setTimeout(function(){var y=z.offsetTop-K.offsetTop,c;if(((c=x.scrollToItem)==null?void 0:c.scrollPosition)==="SCROLL_POSITION_CENTER")y-=K.offsetHeight/2,y+=z.offsetHeight/2;else{var W;((W=x.scrollToItem)==null?void 0:W.scrollPosition)==="SCROLL_POSITION_END"&&(y-=K.offsetHeight,y+=z.offsetHeight)}K.scroll({top:y,behavior:"smooth"})},100)}}};var Mr=new _.wq("CLIENT_NAME_TOKEN");var YFZ=new _.wq("DEFAULT_STORE_EXPIRATION_TOKEN");var uML=new _.wq("CLIENT_LOCATION_SERVICE_TOKEN");var QK=function(x,G,D){this.clientName=x||_.Am("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=G||_.s4.getInstance();this.JSC$15123_commandHandler=D||_.y2.instance};
_.m(QK,Fr);QK.prototype.resolveCommand=function(x){var G=this,D,K;return _.T(function(z){K=(D=_.Y(x,NgE))==null?void 0:D.onComplete;G.clientLocationService.clearLocationPlayabilityToken(G.clientName);K&&G.JSC$15123_commandHandler.resolveCommand(K);_.c5(z)})};
QK[dq]=[Mr,uML,_.hm];var pG=function(x){this.innertubeTransportService=x};
_.m(pG,Fr);pG.prototype.resolveCommand=function(x,G){var D=this,K,z,y,c;return _.T(function(W){y=(K=G)==null?void 0:(z=K.form)==null?void 0:z.element;return _.Z(W,_.Rl(D.innertubeTransportService,x,(c=G)==null?void 0:c.form).then(function(e){rIf(y,new CustomEvent("yt-service-request-completed"),{data:e},_.Am("openPopupConfig"))}),0)})};
pG[dq]=[_.Hi];var VK=function(){};
_.m(VK,Fr);VK.prototype.resolveCommand=function(x){var G,D;return _.T(function(K){G=_.Y(x,zso);D=document.querySelector("mini-app-container-view-model");if(!G||!D)return K.return();G.isPlaying?D.dispatchEvent(new Event("play")):D.dispatchEvent(new Event("pause"));_.c5(K)})};var bT=function(){};
_.m(bT,Fr);bT.prototype.resolveCommand=function(x){var G,D,K,z,y,c,W;return _.T(function(e){G=_.Y(x,D6q);if((D=G)==null||!D.paramKeys)return e.return();K=G.paramKeys;z=_.wM(window.location.href);y=_.l(K);for(c=y.next();!c.done;c=y.next())W=c.value,z.JSC$8039_queryData_.remove(W);window.history.replaceState(window.history.state,document.title,z.toString());_.c5(e)})};var maZ=function(){this.dropdownMap=new Map};_.HDi=new _.wq("DROPDOWN_CONTROLLER_TOKEN");var LG=function(x){this.controller=x};
_.m(LG,Fr);LG.prototype.resolveCommand=function(x){var G=this,D,K,z,y;return _.T(function(c){D=_.Y(x,RiZ);if(!D)return c.return();K=D;z=K.dropdownId;y=K.selectedOptionIndex;if(z===void 0||y===void 0)return c.return();var W=G.controller.dropdownMap.get(z);W&&W(y);_.c5(c)})};
LG[dq]=[_.HDi];var Bv=function(x){this.controller=x};
_.m(Bv,Fr);Bv.prototype.resolveCommand=function(x){var G=this,D;return _.T(function(K){return(D=_.Y(x,hsE))?_.Z(K,G.controller.closeDialog(),0):K.return()})};
Bv[dq]=[_.LM];var ro=function(x){this.controller=x};
_.m(ro,Fr);ro.prototype.resolveCommand=function(x){var G=this,D,K;return _.T(function(z){D=_.Y(x,U_q);if(!D)return z.return();var y,c=D.panelIdentifier||((y=D.identifier)==null?void 0:y.tag);if(!c)throw Error("ui");return(K=c)?_.Z(z,G.controller.hidePanel(K),0):z.jumpTo(0)})};
ro[dq]=[_.VT];var sM=function(x,G){this.innertubeTransportService=x;this.controller=G};
_.m(sM,Fr);sM.prototype.resolveCommand=function(x){var G=this,D,K,z,y;return _.T(function(c){if(c.nextAddress==1)return D=_.Y(x,Ryk),(K=D)!=null&&K.panelId?_.Z(c,G.controller.getReloadContinuation(D.panelId),2):c.return();if(c.nextAddress!=3)return(z=c.yieldResult)?_.Z(c,_.Rl(G.innertubeTransportService,x,{continuation:z}),3):c.return();y=c.yieldResult;return _.Z(c,G.controller.updatePanel(D.panelId,y.content,!1),0)})};
sM[dq]=[_.Hi,_.VT];var Y3=function(x,G,D){this.innertubeTransportService=x;this.JSC$15159_screenManager=G;this.JSC$15159_commandHandler=D};
_.m(Y3,Fr);
Y3.prototype.resolveCommand=function(x){var G=this,D,K,z,y,c,W;return _.T(function(e){if(e.nextAddress==1){D=_.Y(x,_.HiE);if(!D)return e.return();if(D.commands)for(K=_.l(D.commands),z=K.next();!z.done;z=K.next())y=z.value,G.JSC$15159_commandHandler.resolveCommand(y,{disableClickTracking:!0});c=_.V2(x.clickTrackingParams);_.EV(G.JSC$15159_screenManager,21760,c,{layer:7,parentLayer:0});return _.Z(e,_.Rl(G.innertubeTransportService,x),2)}W=e.yieldResult;if(!W)return e.return();G.JSC$15159_screenManager.graftServerVe(W.trackingParams,c,
7);_.c5(e)})};
Y3[dq]=[_.Hi,_.ph,_.hm];var mc=new _.wq("PANEL_LOADING_STRATEGY_TOKEN");var Hv=function(x,G){this.controller=x;this.panelLoadingStrategy=G};
_.m(Hv,Fr);
Hv.prototype.resolveCommand=function(x,G){var D=this,K,z,y;return _.T(function(c){K=_.Y(x,bg0);if((z=K)==null||!z.panelLoadingStrategy)return c.return();y=function(W){var e,Q,p,V,L,r,H,O,A;return _.T(function(g){Q=_.Y((e=W.dialogViewModel)==null?void 0:e.header,Sd9);p={viewModel:W.dialogViewModel};V={};if(H=_.B("web_enable_dialog_header_label")?(L=Q)==null?void 0:(r=L.headline)==null?void 0:r.content:void 0)V.ariaLabel=H;K.dismissOnBackgroundTap===!1&&(V.isModal=!0);return W.dialogViewModel?_.Z(g,
D.controller.openDialog(p,(O=G)==null?void 0:(A=O.form)==null?void 0:A.element,V),0):g.return()})};
return _.Z(c,D.panelLoadingStrategy.execute({command:x,data:K.panelLoadingStrategy,renderFn:y,createScreenConfig:{layer:4}}),0)})};
Hv[dq]=[_.LM,mc];var $3=function(x,G,D){this.innertubeTransportService=x;this.controller=G;this.JSC$15179_screenManager=D};
_.m($3,Fr);
$3.prototype.resolveCommand=function(x,G){var D=this,K,z,y,c,W,e,Q,p,V,L,r,H;return _.T(function(O){switch(O.nextAddress){case 1:K=_.Y(x,_.mJ);if(!K)return O.return();var A,g=K.panelIdentifier||((A=K.identifier)==null?void 0:A.tag);if(!g)throw Error("ui");z=g;return _.Z(O,D.controller.isVisible(z,!0),2);case 2:if((y=O.yieldResult)&&K.blockIfPanelOpen)return O.return();e=(W=(c=D.controller).getPanelContent)==null?void 0:W.call(c,z);if(!(A=e))if(K){var u;A=((u=K.globalConfiguration)==null?void 0:u.initialState)||
K.engagementPanel;if(u=!A)u=!!(K==null?0:(g=K.engagementPanelPresentationConfigs)==null?0:g.engagementPanelPopupPresentationConfig);u&&(A=_.mwn(K.panelIdentifier,K.identifier))}else A=void 0;Q=A;p=K.engagementPanelPresentationConfigs;V=K.engagementPanelExtras;return _.Z(O,D.controller.showPanel(z,Q,p,V,(L=G)==null?void 0:(r=L.form)==null?void 0:r.element),3);case 3:if(!K.globalConfiguration){O.jumpTo(0);break}_.EV(D.JSC$15179_screenManager,32633);return _.Z(O,_.Rl(D.innertubeTransportService,x),5);
case 5:return H=O.yieldResult,D.JSC$15179_screenManager.graftServerVe(H.trackingParams),_.Z(O,D.controller.updatePanel(z,H.content,!0,V,void 0,H.updatePanelContinuationData),0)}})};
$3[dq]=[_.Hi,_.VT,_.ph];var FW=function(x,G){this.controller=x;this.panelLoadingStrategy=G};
_.m(FW,Fr);FW.prototype.resolveCommand=function(x,G){var D=this,K,z,y,c,W,e;return _.T(function(Q){K=_.Y(x,_.Tx);if((z=K)==null||!z.panelLoadingStrategy)return Q.return();W=$a9(D.controller,(y=G)==null?void 0:(c=y.form)==null?void 0:c.element);e=function(p){return _.T(function(V){return p.sheetViewModel?_.Z(V,D.controller.openSheet({viewModel:p.sheetViewModel},W),0):V.return()})};
return _.Z(Q,D.panelLoadingStrategy.execute({command:x,data:K.panelLoadingStrategy,renderFn:e,createScreenConfig:{layer:0}}),0)})};
FW[dq]=[_.bm,mc];var CG=function(x,G){this.controller=x;this.JSC$15187_commandHandler=G};
_.m(CG,Fr);CG.prototype.resolveCommand=function(x,G){var D=this,K,z,y;return _.T(function(c){if(c.nextAddress==1){K=_.Y(x,ghs);var W=_.Y(K.showCommand,_.mJ),e,Q,p=(Q=W==null?void 0:W.panelIdentifier)!=null?Q:W==null?void 0:(e=W.identifier)==null?void 0:e.tag;if(!p)throw Error("vi");z=p;return _.Z(c,D.controller.isVisible(z),2)}return(y=c.yieldResult)?_.Z(c,D.controller.hidePanel(z),0):_.Z(c,D.JSC$15187_commandHandler.resolveCommand(K.showCommand,G),0)})};
CG[dq]=[_.VT,_.hm];var IR=function(x,G,D){this.innertubeTransportService=x;this.controller=G;this.JSC$15190_screenManager=D};
_.m(IR,Fr);
IR.prototype.resolveCommand=function(x){var G=this,D,K,z,y,c,W,e,Q,p,V,L,r,H,O,A,g,u,f,v,P,k,cL;return _.T(function(bO){switch(bO.nextAddress){case 1:return K=D=_.Y(x,uu7),z=K.targetPanelIdentifier,y=K.contentSourcePanelIdentifier,c=K.globalConfiguration,((W=z)==null?0:W.tag)&&((e=y)==null?0:e.tag)?c?_.Z(bO,G.controller.showPanel(z.tag,_.mwn(z.tag,z),void 0,void 0,void 0),5):_.Z(bO,(L=(V=G.controller).getPanel)==null?void 0:L.call(V,y.tag),4):bO.return();case 4:r=bO.yieldResult;Q=(H=r)==null?void 0:
(A=(O=H).getPanelContent)==null?void 0:A.call(O);bO.jumpTo(3);break;case 5:return _.Z(bO,_.Rl(G.innertubeTransportService,x),6);case 6:g=bO.yieldResult,((u=g)==null?0:u.trackingParams)&&G.JSC$15190_screenManager.graftServerVe(g.trackingParams),Q=(f=g)==null?void 0:f.content,p=(v=g)==null?void 0:v.updatePanelContinuationData;case 3:if(k=(P=Q)==null?void 0:P.engagementPanelSectionListRenderer)return _.Z(bO,G.controller.showPanel(z.tag,void 0,void 0,void 0,void 0,{content:k.content,secondaryHeaderContent:(cL=
k.header)!=null?cL:{},targetId:k.targetId},p),0);bO.jumpTo(0)}})};
IR[dq]=[_.Hi,_.VT,_.ph];var jF=function(x,G){this.JSC$15199_commandHandler=x;this.store=G};
_.m(jF,Fr);
jF.prototype.resolveCommand=function(x){var G=this,D,K,z,y,c,W;return _.T(function(e){if(e.nextAddress==1)return(D=_.Y(x,Pds))?_.Z(e,_.xL(),2):e.return();K=e.yieldResult;if(!K)return e.return();var Q=K,p=G.store,V=(z=D)==null?void 0:z.languageCode,L=(y=D)==null?void 0:y.isAutoTranslated;if(Q.getVideoData&&_.$w3(Q).length){V=CYQ(Q,V,L);var r=_.K3("/youtube/app/player_caption_language_entity_key","stringEntity",2),H;p.dispatch(_.cq("stringEntity",r,{key:r,value:L?(V==null?void 0:(H=V.translationLanguage)==null?
void 0:H.languageName)||"":(V==null?void 0:V.displayName)||(V==null?void 0:V.languageName)||""}));V?Q.setOption("captions","track",V):(Q.setOption("captions","stickyLoading",{}),Q.setOption("captions","track",{}))}c=K.isSubtitlesOn()?_.Wg("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):_.Wg("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");W=_.vk(c);G.JSC$15199_commandHandler.resolveCommand(W);_.c5(e)})};
jF[dq]=[_.hm,z0];var OM=function(x,G){this.shortsPlayerPromise=x;this.JSC$15203_commandHandler=G};
_.m(OM,Fr);
OM.prototype.resolveCommand=function(x){var G=this,D,K,z,y,c,W,e,Q;return _.T(function(p){if(p.nextAddress==1)return(D=_.Y(x,Ziq))?_.Z(p,G.shortsPlayerPromise,2):p.return();K=p.yieldResult;var V=I$D(K);V!=null&&V.length||(K.loadModule("captions"),V=I$D(K));z=V;if((y=z)==null||!y.length)return c=_.Wg("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),W=_.vk(c),G.JSC$15203_commandHandler.resolveCommand(W),p.return();K.toggleSubtitles();e=K.isSubtitlesOn()?_.Wg("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.Wg("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");Q=_.vk(e);G.JSC$15203_commandHandler.resolveCommand(Q);_.c5(p)})};
OM[dq]=[_.Eb8,_.hm];var XW=function(x){this.JSC$15206_playerPromise=x};
_.m(XW,Fr);XW.prototype.resolveCommand=function(x){var G=this,D,K,z,y;return _.T(function(c){if(c.nextAddress==1)return(D=_.Y(x,nhZ))?_.Z(c,G.JSC$15206_playerPromise,2):c.return();K=c.yieldResult;z=K.getVideoData().video_id;D.videoId===z&&(y=Number(D.offsetFromVideoStartMilliseconds),y>=0&&K.seekTo(y/1E3));_.c5(c)})};
XW[dq]=[_.k7];var F6i=_.K3("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),AI=function(x){this.store=x};
_.m(AI,Fr);
var CtJ=function(x){var G,D,K,z;return _.T(function(y){if(y.nextAddress==1)return G=_.Am("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,D=_.Am("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,K=G||D,x.mainAppPlayer=new gE(K),_.Z(y,x.mainAppPlayer.api,2);z=y.yieldResult;z.addEventListener("onStateChange",x.JSC$15210_playerStateChangeListener.bind(x));document.addEventListener("yt-page-data-updated",x.pauseOnNavigation.bind(x));window.addEventListener("state-navigatestart",
x.pauseOnNavigation.bind(x));_.c5(y)})};
AI.prototype.JSC$15210_playerStateChangeListener=function(x){switch(x){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"}Ia8(this)};
var Ia8=function(x){x.store.dispatch(_.cq("sfvAudioItemCurrentlyPlayingEntity",F6i,{key:F6i,externalVideoId:x.externalVideoId,sfvAudioItemPlaybackState:x.playbackState,nowPlayingEntityValue:x.nowPlayingEntityValue}))};
AI.prototype.pauseOnNavigation=function(){var x=this,G,D,K,z;return _.T(function(y){if(y.nextAddress==1){if(!x.mainAppPlayer){var c=new _.LL("Error: mainAppPlayer is unavailable",x.mainAppPlayer);_.I4(c);return y.return()}return _.Z(y,x.mainAppPlayer.api,2)}G=y.yieldResult;K=(D=G)==null?void 0:D.getPlayerState();K!==1||(z=G)!=null&&z.pauseVideo();_.c5(y)})};
AI.prototype.playVideo=function(x,G,D){var K=this,z,y;return _.T(function(c){if(c.nextAddress==1)return _.Z(c,(z=K.mainAppPlayer)==null?void 0:z.api,2);y=c.yieldResult;if(!K.mainAppPlayer||!y){var W=new _.LL("Error: mainAppPlayer is unavailable",K.mainAppPlayer);_.I4(W);return c.return()}return _.Z(c,K.mainAppPlayer.loadVideoWithPlayerVars({videoId:K.externalVideoId,audio_only:"1",start:x/1E3,end:x/1E3+G,player_params:D}),0)})};
AI.prototype.pauseVideo=function(){var x=this,G,D;return _.T(function(K){if(K.nextAddress==1){if(!x.mainAppPlayer){var z=new _.LL("Error: mainAppPlayer is unavailable",x.mainAppPlayer);_.I4(z);return K.return()}return _.Z(K,x.mainAppPlayer.api,2)}G=K.yieldResult;(D=G)==null||D.pauseVideo();_.c5(K)})};
AI.prototype.resolveCommand=function(x){var G=this,D,K,z,y,c,W,e,Q,p,V,L,r,H,O,A,g,u,f,v;return _.T(function(P){if(P.nextAddress==1)return D=_.Y(x,cDE),z=(K=D)==null?void 0:K.nowPlayingEntityValue,c=(y=D)==null?void 0:y.externalVideoId,V=Number((p=(W=D)==null?void 0:(e=W.defaultStartPoints)==null?void 0:(Q=e[0])==null?void 0:Q.offsetMs)!=null?p:"0"),g=Number((A=(L=D)==null?void 0:(r=L.defaultStartPoints)==null?void 0:(H=r[0])==null?void 0:(O=H.duration)==null?void 0:O.seconds)!=null?A:"15"),v=(f=
(u=D)==null?void 0:u.playerParams)!=null?f:"",z&&c?G.mainAppPlayer?P.jumpTo(2):_.Z(P,CtJ(G),2):P.return();if(P.nextAddress!=6){if(G.nowPlayingEntityValue&&z===G.nowPlayingEntityValue)return G.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.Z(P,G.pauseVideo(),0):_.Z(P,G.playVideo(V,g,v),0);G.externalVideoId=c;G.nowPlayingEntityValue=z;G.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.Z(P,G.playVideo(V,g,v),6)}Ia8(G);return P.jumpTo(0)})};
AI[dq]=[z0];var UM=function(x){this.JSC$15229_commandHandler=x};
_.m(UM,Fr);UM.prototype.resolveCommand=function(x,G){var D=this,K,z,y,c,W;return _.T(function(e){if(e.nextAddress==1)return(K=_.Y(x,E2Z))?_.Z(e,_.xL(),2):e.return();z=e.yieldResult;if(!z)return e.return();(y=Uwd(z))?D.JSC$15229_commandHandler.resolveCommand(y,G):(c=_.Wg("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),W=_.vk(c),D.JSC$15229_commandHandler.resolveCommand(W));_.c5(e)})};
UM[dq]=[_.hm];var RR=function(x){this.JSC$15232_playerPromise=x};
_.m(RR,Fr);RR.prototype.resolveCommand=function(x){var G=this,D,K,z,y,c;return _.T(function(W){if(W.nextAddress==1){D=_.Y(x,iwh);if(!D)return W.return();K=D.overlayRenderer;return K?(z=_.Y(K,PK8))?_.Z(W,G.JSC$15232_playerPromise,3):W.jumpTo(0):W.return()}y=W.yieldResult;y.renderChapterSeekingAnimation(1,_.u7(z.text),(c=z.icon)==null?void 0:c.iconType);_.c5(W)})};
RR[dq]=[_.k7];var SF=function(x){this.store=x};
_.m(SF,Fr);
SF.prototype.resolveCommand=function(x){var G=this,D,K,z;return _.T(function(y){if(y.nextAddress==1){D=_.Y(x,xVk);if(!D)return y.return();K="";(z=G.store.getState().collabInviteLink)&&D.id===z.playlistId?K=z.inviteLinkURL:D.shortUrl&&(K=D.shortUrl);return K?_.Z(y,navigator.clipboard.writeText(K),3):y.jumpTo(0)}var c={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Wg("COPY_LINK_SUCCESS_TOAST")}}}}};_.Eo().resolve(_.hm).resolveCommand(c);_.c5(y)})};
SF[dq]=[aR];var nG=function(x,G){this.innertubeTransportService=x;this.JSC$15242_commandHandler=G};
_.m(nG,Fr);nG.prototype.resolveCommand=function(x,G){var D=this,K,z,y,c,W,e,Q,p,V,L;return _.T(function(r){if(r.nextAddress==1)return(K=_.Y(x,_.IL))?_.Z(r,_.Rl(D.innertubeTransportService,x,(z=G)==null?void 0:z.form),2):r.return();(y=r.yieldResult)&&y.errorMetadata&&(c=y,W=_.vk(c.error.message),D.JSC$15242_commandHandler.resolveCommand(W));e=y;if((Q=e)==null?0:Q.actions)for(p=_.l(e.actions),V=p.next();!V.done;V=p.next())L=V.value,D.JSC$15242_commandHandler.resolveCommand(L);_.c5(r)})};
nG[dq]=[_.Hi,_.hm];var iT=function(){};
_.m(iT,Fr);iT.prototype.resolveCommand=function(x){var G;return _.T(function(D){G=_.Y(x,Nvo);if(!G)return D.return();(new h2h(G)).show();_.c5(D)})};_.go=new _.wq("PLAYLIST_EDIT_CONTROLLER_TOKEN");var uT=function(x,G,D,K){this.store=x;this.innertubeTransportService=G;this.controller=D;this.JSC$15250_commandHandler=K};
_.m(uT,Fr);
uT.prototype.resolveCommand=function(x,G){var D=this,K,z,y,c,W,e,Q,p,V,L,r,H,O,A,g,u,f,v,P,k,cL,bO,mE,jf,$C,OD;return _.T(function(wn){if(wn.nextAddress==1){K=_.Y(x,_.YV);if(!K)return wn.return();if(K.clientActions){z=_.l(K.clientActions);for(y=z.next();!y.done;y=z.next())c=y.value,D.JSC$15250_commandHandler.resolveCommand(c);var n$,Fi=G==null?void 0:(n$=G.form)==null?void 0:n$.element;Fi&&_.h$(Fi,"yt-dismissible-item-action",K.clientActions)}return _.Z(wn,_.Rl(D.innertubeTransportService,x,(W=G)==
null?void 0:W.form),2)}if(e=wn.yieldResult)e.errorMetadata?(Q=e,p=_.vk(Q.error.message),D.JSC$15250_commandHandler.resolveCommand(p),"error"in e&&((V=G)==null?0:(L=V.commandController)==null?0:L.onServerError)&&((r=G)==null||(H=r.commandController)==null||H.onServerError(x,e))):(O=G)==null||(A=O.commandController)==null||(u=(g=A).onSuccess)==null||u.call(g,x,e);f=e;((v=f)==null?0:v.collaborationInviteLink)&&K.playlistId&&(_.B("web_enable_invite_collaborators_link")||_.B("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
D.store.dispatch(_.EO({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:K.playlistId,inviteLinkUrl:f.collaborationInviteLink}}));((P=f)==null?0:P.redirectEndpoint)&&D.JSC$15250_commandHandler.resolveCommand(f.redirectEndpoint);((k=f)==null?0:(cL=k.newHeader)==null?0:cL.playlistHeaderRenderer)?jao(D.controller,f.newHeader.playlistHeaderRenderer):((bO=f)==null?0:(mE=bO.newHeader)==null?0:mE.musicEditablePlaylistDetailHeaderRenderer)&&jao(D.controller,f.newHeader.musicEditablePlaylistDetailHeaderRenderer);
D.controller.playlistVideoListElement&&((jf=f)==null?0:($C=jf.playlistEditResults)==null?0:(OD=$C[0])==null?0:OD.playlistEditVideoAddedResultData)&&((Fi=D.controller.playlistVideoListElement)==null||Fi.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:f.playlistEditResults[0].playlistEditVideoAddedResultData})));_.c5(wn)})};
uT[dq]=[aR,_.Hi,_.go,_.hm];var wo=function(x,G){this.controller=x;this.JSC$15260_commandHandler=G};
_.m(wo,Fr);wo.prototype.resolveCommand=function(x,G){var D=this,K,z,y;return _.T(function(c){K=_.Y(x,GKu);D.controller.showRefreshPill&&((z=K)==null?0:z.command)&&(D.JSC$15260_commandHandler.resolveCommand((y=K)==null?void 0:y.command,G),D.controller.showRefreshPill=!1);_.c5(c)})};
wo[dq]=[_.tF,_.hm];var qr=function(x,G){this.store=x;this.JSC$15264_commandHandler=G||_.y2.instance};
_.m(qr,Fr);qr.prototype.resolveCommand=function(x,G){var D=this,K,z,y,c,W,e,Q,p,V,L;return _.T(function(r){K=_.Y(x,MIq);z=D.store.getState().radioButtonGroup;if((y=K)==null?0:y.command)D.JSC$15264_commandHandler.resolveCommand((c=K)==null?void 0:c.command,G);else if(((W=K)==null?void 0:W.formId)===z.currentFormId)for(e=Object.values(z.commandsMap),Q=_.l(e),p=Q.next();!p.done;p=Q.next()){V=p.value;L=_.jn(V);if(!L)return r.return();D.JSC$15264_commandHandler.resolveCommand(L,G)}_.c5(r)})};
qr[dq]=[aR];var Nr=new _.wq("USER_PREFS");var vv=function(x){this.JSC$15268_prefCookie=x};
_.m(vv,Fr);vv.prototype.resolveCommand=function(x){var G=this,D;return _.T(function(K){(D=_.Y(x,S$i))&&typeof D.useListView==="boolean"&&(_.Qg(0,155,D.useListView),G.JSC$15268_prefCookie.save());_.c5(K)})};
vv[dq]=[Nr];var JI=function(x){this.JSC$15272_prefCookie=x};
_.m(JI,Fr);JI.prototype.resolveCommand=function(x){var G=this,D,K,z,y,c;return _.T(function(W){D=_.Y(x,JRo);if((K=D)==null||!K.gl)return W.return();z=D.gl;y={persist_gl:"1",gl:z};G.JSC$15272_prefCookie.set("gl",z);G.JSC$15272_prefCookie.save();c=loJ(y);_.U4(c);_.c5(W)})};
JI[dq]=[Nr];var fG=function(x){this.JSC$15276_prefCookie=x};
_.m(fG,Fr);fG.prototype.resolveCommand=function(x){var G=this,D,K;return _.T(function(z){D=_.Y(x,KHh);if(!D)return z.return();K=!1;D.flagNum&&typeof D.value==="boolean"?(_.Qg(0,D.flagNum,D.value),K=!0):D.key&&typeof D.stringValue==="string"&&(G.JSC$15276_prefCookie.set(D.key,D.stringValue),K=!0);K&&G.JSC$15276_prefCookie.save();_.c5(z)})};
fG[dq]=[Nr];var tI=new _.wq("PREF_STORAGE_PROMISE_TOKEN");var k3=function(x){this.JSC$15280_prefStoragePromise=x};
_.m(k3,Fr);k3.prototype.resolveCommand=function(x){var G=this,D,K;return _.T(function(z){if(z.nextAddress==1)return(D=_.Y(x,ah8))?_.Z(z,G.JSC$15280_prefStoragePromise,2):z.return();K=z.yieldResult;return K===void 0||D.key===void 0||D.value===void 0?z.return():_.Z(z,K.set(D.key,D.value),0)})};
k3[dq]=[tI];var ODq=function(x){this.innertubeTransportService=x};
_.m(ODq,Fr);ODq.prototype.resolveCommand=function(x,G){var D=this,K,z;return _.T(function(y){(K=_.Y(x,_.XRh))&&K&&K.isFirstRequest&&(_.$O("search_overview_answer"),_.Fs("so_rq",void 0,"search_overview_answer"));return _.Z(y,_.Rl(D.innertubeTransportService,x,(z=G)==null?void 0:z.form),0)})};
ODq[dq]=[_.Hi];var XK8=function(){};
_.m(XK8,Fr);
XK8.prototype.resolveCommand=function(x){var G,D,K,z,y,c,W,e,Q;return _.T(function(p){G=_.Y(x,SRu);if((D=G)==null?0:D.sectionIdentifier){if(G.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(z=(K=document.getElementsByTagName(G.sectionIdentifier))==null?void 0:K.item(0))z.scrollIntoView({behavior:"smooth"}),(y=RSV(z))&&y.focus({preventScroll:!0});return p.return()}c=document.querySelector("[section-identifier="+G.sectionIdentifier+"]");W=document.querySelector("[section-identifier="+G.referenceSectionIdentifier+
"]");if(!c)return p.return();e=G.verticalScrollOffsetDp?G.verticalScrollOffsetDp:0;W&&(e-=W.offsetTop);window.scrollTo({top:c.offsetTop+e,behavior:"smooth"});(Q=RSV(c))&&Q.focus({preventScroll:!0})}_.c5(p)})};var Pv=function(){};
_.m(Pv,Fr);
Pv.prototype.resolveCommand=function(x){var G,D,K,z,y,c,W;return _.T(function(e){if(e.nextAddress==1){G=_.Y(x,am9);if(!G||!G.imageBytes||!navigator.clipboard)return e.return();if(G.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.I4(Error("xi")),e.return();_.Kl(e,2);K=(D=G)==null?void 0:D.imageBytes;z=K.replace(/-/g,"+").replace(/_/g,"/");y=V33(z);c={};W=[new ClipboardItem((c[y.type]=y,c))];return _.Z(e,navigator.clipboard.write(W),4)}if(e.nextAddress!=2)return _.iI(e,0);
_.lX(e);_.c5(e)})};var EM=function(x,G){this.innertubeTransportService=x;this.JSC$15295_commandHandler=G};
_.m(EM,Fr);EM.prototype.resolveCommand=function(x,G){var D=this,K,z,y,c,W;return _.T(function(e){if(e.nextAddress==1)return(K=_.Y(x,ooq))?_.Z(e,_.Rl(D.innertubeTransportService,x,(z=G)==null?void 0:z.form),2):e.return();(y=e.yieldResult)&&y.errorMetadata&&K.onFailureCommand&&D.JSC$15295_commandHandler.resolveCommand(K.onFailureCommand);c=y;((W=c)==null?0:W.shareCommand)&&D.JSC$15295_commandHandler.resolveCommand(c.shareCommand,G);_.c5(e)})};
EM[dq]=[_.Hi,_.hm];var hI=function(){};
_.m(hI,Fr);hI.prototype.resolveCommand=function(x){var G,D;return _.T(function(K){G=_.Y(x,htk);if(!G||!navigator.share)return K.return();D={url:G.url};try{return K.return(navigator.share(D))}catch(z){}_.c5(K)})};var xD=function(){};
_.m(xD,Fr);xD.prototype.resolveCommand=function(){return _.T(function(x){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.c5(x)})};var G_=function(x){this.JSC$15305_navigationConfirmationService=x};
_.m(G_,Fr);G_.prototype.resolveCommand=function(){var x=this;return _.T(function(G){x.JSC$15305_navigationConfirmationService.cancelPendingNavigation();_.c5(G)})};
G_[dq]=[lm];var Dp=function(x){this.JSC$15308_screenManager=x};
_.m(Dp,Fr);Dp.prototype.resolveCommand=function(x,G){var D=this,K,z,y,c,W,e,Q;return _.T(function(p){z=(K=G.form)==null?void 0:K.event;c=(y=G.form)==null?void 0:y.element;if(!z)throw new _.LL("Event not passed in when resolving command");W=_.l(z.composedPath());for(e=W.next();!e.done;e=W.next())if(Q=e.value,Q.tagName==="YT-COPY-LINK-RENDERER")return Q.copyUrlToClipboard(),c&&_.X8(D.JSC$15308_screenManager,c),p.return();_.c5(p)})};
Dp[dq]=[_.ph];var KR=function(){this.JSC$15312_miniAppClientDataProvider=_.Eo().resolve(_.Iu)};
_.m(KR,Fr);KR.prototype.resolveCommand=function(){var x=this,G,D;return _.T(function(K){if(x.JSC$15312_miniAppClientDataProvider.clientData.has("video_id")){var z=x.JSC$15312_miniAppClientDataProvider,y=z.clientData.get("video_id");y&&z.clientData.delete("video_id");G="https://youtube.com/watch?v="+y;D=Q$(G);if(D===void 0)throw Error("yi`"+G);_.jr(window,D)}_.c5(K)})};var z_=function(){};
_.m(z_,Fr);z_.prototype.resolveCommand=function(){return _.T(function(x){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.c5(x)})};var ag=function(){};
_.m(ag,Fr);ag.prototype.resolveCommand=function(){var x;return _.T(function(G){if(G.nextAddress==1)return _.Z(G,_.oJf(window.document.documentElement),2);(x=document.querySelector("mini-app-container-view-model iframe"))&&x.focus();_.c5(G)})};var og=function(x){this.JSC$15319_navigationConfirmationService=x};
_.m(og,Fr);
og.prototype.resolveCommand=function(){var x=this;return _.T(function(G){var D=x.JSC$15319_navigationConfirmationService,K=_.Eo().resolve(_.WP),z;if(((z=D.navigateParams)==null?void 0:z.data)!==void 0){var y;_.vDo(K,D.navigateParams.endpoint,D.navigateParams.data,(y=D.navigateParams.navigationType)!=null?y:1,D.navigateParams.tempData,D.navigateParams.isMiniplayer,void 0,!0);D.navigateParams=void 0;D.customConfirmationCommand=void 0}else D.navigateParams&&(K.navigate(D.navigateParams.endpoint,D.navigateParams.reload,
D.navigateParams.params,D.navigateParams.tempData,D.navigateParams.requestType,D.navigateParams.createScreenConfig,!0),D.navigateParams=void 0,D.customConfirmationCommand=void 0);_.c5(G)})};
og[dq]=[lm];var yL=function(){};
_.m(yL,Fr);yL.prototype.resolveCommand=function(){return _.T(function(x){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.c5(x)})};var lB=function(x){this.JSC$15324_prefStorage=x};
_.m(lB,Fr);lB.prototype.resolveCommand=function(){var x=this,G,D;return _.T(function(K){switch(K.nextAddress){case 1:return _.Z(K,x.JSC$15324_prefStorage,2);case 2:return(G=K.yieldResult)?_.Z(K,G.set("sfvle",!1),3):K.return();case 3:return _.Z(K,G.set("sfvles",!0),4);case 4:D=_.M5(),_.Qg(0,203,!1),_.Qg(0,204,!0),D.save(),_.c5(K)}})};
lB[dq]=[tI];var c9=function(x){this.JSC$15327_prefStorage=x};
_.m(c9,Fr);c9.prototype.resolveCommand=function(){var x=this,G,D;return _.T(function(K){switch(K.nextAddress){case 1:return _.Z(K,x.JSC$15327_prefStorage,2);case 2:return(G=K.yieldResult)?_.Z(K,G.set("sfvle",!0),3):K.return();case 3:return _.Z(K,G.set("sfvles",!0),4);case 4:D=_.M5(),_.Qg(0,203,!0),_.Qg(0,204,!0),D.save(),_.c5(K)}})};
c9[dq]=[tI];var AYq=new _.wq("SNACKBAR_CONTROLLER_TOKEN");var T_=function(x){this.controller=x};
_.m(T_,Fr);T_.prototype.resolveCommand=function(x){var G=this,D,K,z;return _.T(function(y){D=_.Y(x,LU9);if(!D)return y.return();K=_.Y(D.content,Og8);if(!K)return y.return();var c=G.controller,W=K,e=(z=D.animationStyle)!=null?z:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(c.showSnackbarFn)c.showSnackbarFn({snackbarViewModel:W,animationStyle:e,durationMs:D.durationSeconds*1E3});else throw Error("gj");_.c5(y)})};
T_[dq]=[AYq];var W9=function(){};
_.m(W9,Fr);W9.prototype.resolveCommand=function(x){var G;return _.T(function(D){G=_.Y(x,z00);if(!G||typeof G.key!=="string"||typeof G.value!=="string")return D.return();window.localStorage.setItem(G.key,G.value);_.c5(D)})};var et=function(x){this.store=x};
_.m(et,Fr);et.prototype.resolveCommand=function(x){var G=this,D;return _.T(function(K){D=_.Y(x,mTV);if(!D||!D.stepId||!D.token)return K.return();G.store.dispatch(xEE({stepId:D.stepId,token:D.token,isSelected:!1}));_.c5(K)})};
et[dq]=[aR];var Zp=function(x,G,D){this.innertubeTransportService=x;this.store=G;this.JSC$15343_screenManager=D};
_.m(Zp,Fr);
Zp.prototype.resolveCommand=function(x){var G=this,D,K,z,y,c,W,e,Q,p,V,L,r,H,O,A,g,u,f,v,P,k,cL,bO;return _.T(function(mE){D=_.Y(x,yRo);if(!D||(K=D.stepIds)==null||!K.length)return mE.return();z=G.store.getState().talkToRecs;y=[];c=[];W=_.l(D.stepIds);for(e=W.next();!e.done;e=W.next())for(Q=e.value,p=void 0,(V=(p=z.stepStates[Q])==null?void 0:p.userQuery)&&c.push({userQuery:V.userQuery,userQueryToken:V.token}),L=void 0,r=(L=z.stepStates[Q])==null?void 0:L.selectionStates,H=_.l(Object.entries(r)),O=
H.next();!O.done;O=H.next())A=O.value,g=_.l(A),u=g.next().value,f=g.next().value,v=u,P=f,P.isSelected&&y.push(v);k={selectedChipTokens:y,userQueries:c,submittedStepIds:D.stepIds};cL={browseTalk2recsFormData:k};D.browseEndpoint?(bO=x,_.Hh(bO,_.TU,D.browseEndpoint)):D.command&&(bO=D.command);return bO?_.Z(mE,_.Rl(G.innertubeTransportService,bO,{formData:cL,disableCache:!0}).then(function(jf){(jf==null?0:jf.trackingParams)&&G.JSC$15343_screenManager.graftServerVe(jf==null?void 0:jf.trackingParams)}),
0):mE.return()})};
Zp[dq]=[_.Hi,aR,_.ph];var M$=function(x){this.store=x};
_.m(M$,Fr);M$.prototype.resolveCommand=function(x){var G=this,D;return _.T(function(K){D=_.Y(x,YK3);if(!D||!D.stepId||!D.token)return K.return();G.store.dispatch(xEE({stepId:D.stepId,token:D.token,isSelected:!0}));_.c5(K)})};
M$[dq]=[aR];var QL=function(x){this.store=x};
_.m(QL,Fr);QL.prototype.resolveCommand=function(x,G){var D=this,K,z,y,c,W;return _.T(function(e){K=_.Y(x,lU9);if(!K||!K.stepId||!K.userQueryToken)return e.return();W=(c=(z=G)==null?void 0:(y=z.form)==null?void 0:y.userQuery)!=null?c:"";D.store.dispatch(_.EO({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:K.stepId,userQueryToken:K.userQueryToken,userQuery:W}}));_.c5(e)})};
QL[dq]=[aR];_.Uai=new _.wq("TIMELY_ACTIONS_CONTROLLER_TOKEN");var pR=function(x){this.controller=x};
_.m(pR,Fr);pR.prototype.resolveCommand=function(x){var G=this,D,K,z,y;return _.T(function(c){D=_.Y(x,A3J);if(!D)return c.return();K=D;z=K.id;y=K.isVisible;if(z===void 0||y===void 0)return c.return();var W;(W=G.controller.timelyActionsMap.get(z))==null||W(z,y);_.c5(c)})};
pR[dq]=[_.Uai];var RgZ=function(){this.timelyActionsMap=new Map};var VL=function(x){this.JSC$15370_commandHandler=x};
_.m(VL,Fr);VL.prototype.resolveCommand=function(x){var G=this,D,K,z,y,c;return _.T(function(W){D=_.Y(x,_.e1);if(!D)return W.return();y=(K=D.item)==null?void 0:(z=K.notificationTextRenderer)==null?void 0:z.successResponseText;if(!y)return W.return();c=_.NW(y);G.JSC$15370_commandHandler.resolveCommand(c);_.c5(W)})};
VL[dq]=[_.hm];var bB=function(x,G){this.innertubeTransportService=x;this.JSC$15375_playerApiPromise=G};
_.m(bB,Fr);
bB.prototype.resolveCommand=function(x){var G=this,D,K,z,y,c,W,e,Q,p;return _.T(function(V){if(V.nextAddress==1)return _.Z(V,G.JSC$15375_playerApiPromise,2);D=V.yieldResult;K=D.getOption("captions","track");z=Object.assign({},_.Y(x,_.HrJ));(c=(y=D.getVideoData())==null?void 0:y.video_id)?z.externalVideoId=c:_.iM(Error("zi"));if((W=K)==null?0:W.languageCode)z.languageCode=K.languageCode;if((e=K)==null?0:e.kind)z.kind=K.kind;if((Q=K)==null?0:Q.name)z.name=K.name;p=Object.assign({},x,{getTranscriptEndpoint:z});return _.Z(V,
_.Rl(G.innertubeTransportService,p),0)})};
bB[dq]=[_.Hi,_.k7];var LR=function(){};
_.m(LR,Fr);LR.prototype.resolveCommand=function(x){var G,D,K,z,y,c,W,e;return _.T(function(Q){G=_.Y(x,Zrh);if((D=G)==null||!D.paramKeyValuePairs)return Q.return();K=window.location.href;z=_.l(G.paramKeyValuePairs);for(y=z.next();!y.done;y=z.next())c=y.value,c.key&&c.value&&(W={},K=_.qh(K,(W[c.key]=c.value,W)));e=_.Eo().resolve(_.ad);_.zp(e,K);_.c5(Q)})};var B9=function(x,G){this.JSC$15382_commandHandler=x;this.innertubeTransportService=G};
_.m(B9,Fr);
B9.prototype.resolveCommand=function(x,G){var D=this,K,z,y,c,W,e,Q,p,V,L,r,H,O,A,g,u,f;return _.T(function(v){switch(v.nextAddress){case 1:return(y=(K=G)==null?void 0:(z=K.form)==null?void 0:z.element)&&_.uQ(y),c=_.M5().get("hl"),W="",_.Kl(v,2),_.Z(v,i5h(c),4);case 4:W=v.yieldResult;_.iI(v,3);break;case 2:return _.lX(v),y&&_.dj(y),_.I4(Error("Bi"),"ERROR"),v.return();case 3:e=_.Y(x,aiZ);if(!e)return y&&_.dj(y),v.return();(V=(Q=e.commerceActionConfig)==null?void 0:(p=Q.commandLifeCycleConfig)==null?
void 0:p.onStartCommand)&&D.JSC$15382_commandHandler.resolveCommand(V);return _.Z(v,_.Rl(D.innertubeTransportService,x,{client_data:{paymentsClientToken:{token:W}}}),5);case 5:(L=v.yieldResult)?(y&&_.dj(y),((A=L)==null?0:A.command)&&D.JSC$15382_commandHandler.resolveCommand(L.command),(f=(g=e.commerceActionConfig)==null?void 0:(u=g.commandLifeCycleConfig)==null?void 0:u.onSuccessCommand)&&D.JSC$15382_commandHandler.resolveCommand(f)):(y&&_.dj(y),_.I4(Error("Ci")),(O=(r=e.commerceActionConfig)==null?
void 0:(H=r.commandLifeCycleConfig)==null?void 0:H.onFailureCommand)&&D.JSC$15382_commandHandler.resolveCommand(O)),_.c5(v)}})};
B9[dq]=[_.hm,_.Hi];var rD=function(x,G,D){this.store=x;this.JSC$15398_commandHandler=G;this.innertubeTransportService=D};
_.m(rD,Fr);
rD.prototype.resolveCommand=function(x,G){var D=this,K,z,y,c,W,e,Q,p,V;return _.T(function(L){K=_.Y(x,oV8);z=K.googlePaymentPayload;K.onStartCommand&&D.JSC$15398_commandHandler.resolveCommand(K.onStartCommand);y=z.encryptedPurchaseParams;c=z.ypcLogWalletAnalyticDataEndpoint;W=K.serializedTransactionFlowLoggingParams;e=z.serializedPaymentsClientParams;Q=K.ypcCujContext;V=dw$(D.innertubeTransportService,(p=G)==null?void 0:p.form,y,c,W,e,Q);return L.return(V.then(function(r){gkP(G==null?void 0:G.form,
!1);var H=D.store,O=D.JSC$15398_commandHandler,A=r.integratorData;A==null||A===""||r.error!=null?(String(r.error)==="-1"&&K.onDismissCommand?O.resolveCommand(K.onDismissCommand):String(r.error)!=="-1"&&K.onFailureCommand&&O.resolveCommand(K.onFailureCommand),String(r.error)!=="-1"&&String(r.error)!=="132"&&_.I4(Error("Di"),"ERROR")):(K.googlePaymentEntityKey&&H.dispatch(_.cq("commerceAcquisitionClientPayloadEntity",K.googlePaymentEntityKey,{key:K.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:A,
fundsGuaranteeCallbackClientData:r.integratorClientCallbackData}}})),K.onSuccessCommand&&O.resolveCommand(K.onSuccessCommand));_.aI()},function(r){gkP(G==null?void 0:G.form,!1);
_.I4(r,"ERROR");K.onFailureCommand&&D.JSC$15398_commandHandler.resolveCommand(K.onFailureCommand)}))})};
rD[dq]=[z0,_.hm,_.Hi];var sT=function(x,G){this.JSC$15402_commandHandler=x;this.purchaseManager=G};
_.m(sT,Fr);
sT.prototype.resolveCommand=function(x){var G=this,D,K,z,y,c,W,e,Q,p;return _.T(function(V){D=_.Y(x,yz7);((K=D)==null?0:(z=K.commandLifeCycleConfig)==null?0:z.onStartCommand)&&G.JSC$15402_commandHandler.resolveCommand(D.commandLifeCycleConfig.onStartCommand);if(!((y=D)==null?0:(c=y.googlePaymentPurchaseManagerPayload)==null?0:c.securePayloadBytes))return _.I4(Error("Ei"),"ERROR"),V.return();W=HC8(_.eZ(D.googlePaymentPurchaseManagerPayload.securePayloadBytes));e=_.M5().get("hl");Q=_.Ss();w79(W.serialize(),
e,function(L){Q.resolve(L)},function(L){Q.reject(L)},Q.resolve);
p=Q.promise;return V.return(p.then(function(L){if(L)if(L==null?0:L.errorCode){_.I4(Error("Fi`"+L.errorCode),"ERROR");var r,H;((r=D)==null?0:(H=r.commandLifeCycleConfig)==null?0:H.onFailureCommand)&&G.JSC$15402_commandHandler.resolveCommand(D.commandLifeCycleConfig.onFailureCommand)}else if(L==null?0:L.isCancelled){var O,A;((O=D)==null?0:(A=O.commandLifeCycleConfig)==null?0:A.onCancelCommand)&&G.JSC$15402_commandHandler.resolveCommand(D.commandLifeCycleConfig.onCancelCommand)}else{var g,u;((g=D)==
null?0:(u=g.commandLifeCycleConfig)==null?0:u.onSuccessCommand)&&G.JSC$15402_commandHandler.resolveCommand(D.commandLifeCycleConfig.onSuccessCommand)}},function(L){_.I4(L,"ERROR");
var r,H;((r=D)==null?0:(H=r.commandLifeCycleConfig)==null?0:H.onFailureCommand)&&G.JSC$15402_commandHandler.resolveCommand(D.commandLifeCycleConfig.onFailureCommand)}))})};
sT[dq]=[_.hm,q5o];var SFo=function(x,G){this.JSC$15410_commandHandler=x;this.commandAllowlistOverride=G;var D;this.commandAllowlist=(D=this.commandAllowlistOverride)!=null?D:nH};
SFo.prototype.handleResponse=function(x,G,D){var K,z=G==null?void 0:(K=G.config)==null?void 0:K.command;if(!z||this.commandAllowlist.some(function(y){return!!_.Y(z,y)})){G=void 0;
D!==void 0&&(G={form:{element:D}});x.onResponseReceivedCommand&&this.JSC$15410_commandHandler.resolveCommand(x.onResponseReceivedCommand,G);x.onResponseReceivedAction&&this.JSC$15410_commandHandler.resolveCommand(x.onResponseReceivedAction,G);x.onResponseReceivedEndpoint&&this.JSC$15410_commandHandler.resolveCommand(x.onResponseReceivedEndpoint,G);x.command&&this.JSC$15410_commandHandler.resolveCommand(x.command,G);if(x.onResponseReceivedCommands)for(D=_.l(x.onResponseReceivedCommands),K=D.next();!K.done;K=
D.next())this.JSC$15410_commandHandler.resolveCommand(K.value,G);if(x.onResponseReceivedActions)for(D=_.l(x.onResponseReceivedActions),K=D.next();!K.done;K=D.next())this.JSC$15410_commandHandler.resolveCommand(K.value,G);if(x.onResponseReceivedEndpoints)for(D=_.l(x.onResponseReceivedEndpoints),K=D.next();!K.done;K=D.next())this.JSC$15410_commandHandler.resolveCommand(K.value,G);if(x.actions)for(x=_.l(x.actions),D=x.next();!D.done;D=x.next())this.JSC$15410_commandHandler.resolveCommand(D.value,G)}};
SFo[dq]=[_.hm,_.P6(cl3)];var nQE=new _.wq("INNERTUBE_TOKEN_SERVICE");var iDh=new _.wq("SCHEDULER_TOKEN");var gQE=function(x){this.scheduler=x;x={};this.tokenMap=(x.app={},x.user={},x)};
gQE.prototype.handleResponse=function(x,G){if(!G)throw Error("Gi");var D;if(x=(D=x.responseContext)==null?void 0:D.innertubeTokenJar){if(x.appTokens){var K,z,y;D=(K=G.innerTubeRequest.context)==null?void 0:(z=K.request)==null?void 0:(y=z.innertubeTokenJar)==null?void 0:y.appTokens;uYq(this,x.appTokens,this.tokenMap.app,D)}if(x.userTokens){var c,W,e;G=(c=G.innerTubeRequest.context)==null?void 0:(W=c.request)==null?void 0:(e=W.innertubeTokenJar)==null?void 0:e.userTokens;uYq(this,x.userTokens,this.tokenMap.user,
G)}}};
gQE.prototype.processContext=function(x){x.request||(x.request={});var G=Object.keys(this.tokenMap.app).length,D=Object.keys(this.tokenMap.user).length;if(G||D)x.request.innertubeTokenJar={},G&&(x.request.innertubeTokenJar.appTokens=[].concat(_.B5(Object.values(this.tokenMap.app).flat()))),D&&(x.request.innertubeTokenJar.userTokens=[].concat(_.B5(Object.values(this.tokenMap.user).flat())))};
var uYq=function(x,G,D,K){G=_.l(G);for(var z=G.next(),y={};!z.done;y={token$jscomp$137:void 0},z=G.next()){y.token$jscomp$137=z.value;if(y.token$jscomp$137.type===void 0)throw new _.LL("InnerTube token has no type",y.token$jscomp$137);if(y.token$jscomp$137.clearTokens)D[y.token$jscomp$137.type]=[];else if(y.token$jscomp$137.value!==void 0){D[y.token$jscomp$137.type]||(D[y.token$jscomp$137.type]=[]);if(K!==void 0&&K.length){z=_.l(K);for(var c=z.next(),W={};!c.done;W={requestToken:void 0},c=z.next())W.requestToken=
c.value,c=D[y.token$jscomp$137.type].findIndex(function(e){return function(Q){return Q===e.requestToken||(0,_.YS.equals)(Q,e.requestToken)}}(W)),c>-1&&D[y.token$jscomp$137.type].splice(c,1)}D[y.token$jscomp$137.type].push(y.token$jscomp$137);
y.token$jscomp$137.maxAgeSeconds&&Number(y.token$jscomp$137.maxAgeSeconds)>0&&x.scheduler.addLowPriorityJob(function(e){return function(){var Q=D[e.token$jscomp$137.type].indexOf(e.token$jscomp$137);Q>-1&&D[e.token$jscomp$137.type].splice(Q,1)}}(y),Number(y.token$jscomp$137.maxAgeSeconds)*1E3)}else throw new _.LL("InnerTube token has no value",y.token$jscomp$137);
}};
gQE[dq]=[iDh];var dau=new _.wq("LOCAL_INNERTUBE_ROUTER_TOKEN"),wKJ=new _.wq("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var YD=function(x){this.serviceMap=x};
YD.prototype.shouldPreferLocalResponse=function(x,G){return(x=qF0(this,x))?x.shouldPreferLocalResponse(G):!1};
YD.prototype.localInnertubeResponse=function(x,G){var D=this,K;return _.T(function(z){return(K=qF0(D,x))?z.return(K.localInnertubeResponse(G)):z.return(Promise.reject(Error("Hi")))})};
YD.prototype.canProvideFallbackResponse=function(x,G){return(x=qF0(this,x))?x.canProvideFallbackResponse(G):!1};
YD.prototype.localFallbackInnertubeResponse=function(x,G){var D=this,K;return _.T(function(z){return(K=qF0(D,x))?z.return(K.localFallbackInnertubeResponse(G)):z.return(Promise.reject(Error("Hi")))})};
var qF0=function(x,G){G=_.c0(G);return G?(x=x.serviceMap[G])?x:null:null};
YD[dq]=[wKJ];var p6=function(){};
p6.prototype.shouldPreferLocalResponse=function(){return!1};
p6.prototype.localInnertubeResponse=function(){return _.T(function(x){return x.return(Promise.reject(Error("Ii")))})};
p6.prototype.canProvideFallbackResponse=function(){return!0};
p6.prototype.localFallbackInnertubeResponse=function(){var x,G,D;return _.T(function(K){x=L1("CLOSE_POPUP");G={openPopupAction:qzh()};D={actions:[x,G]};return K.return(D)})};var MQD=function(x,G){this.JSC$15460_upliftPromise=x;this.store=G};
_.a=MQD.prototype;_.a.shouldPreferLocalResponse=function(x){var G=x.videoId,D;if(D=G)D=LUn(this.store.getState().entities,x.videoId);return D&&BHh(this.store.getState().entities,G)?vkD(this.store.getState().entities,x.playlistId):!1};
_.a.localInnertubeResponse=function(x){var G=this,D;return _.T(function(K){return(D=G.getPlayerResponse(x))?K.return(Promise.resolve(D)):K.return(Promise.reject(Error("Ji")))})};
_.a.canProvideFallbackResponse=function(x){return!!x.videoId};
_.a.localFallbackInnertubeResponse=function(x){var G=this,D;return _.T(function(K){if(K.nextAddress==1)return _.Z(K,G.JSC$15460_upliftPromise,2);D=G.getPlayerResponse(x);var z;D?z=K.return(Promise.resolve(D)):z=Vy(G.store.getState().entities,x.videoId)?K.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.tN(_.Wg("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:QvQ()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
K.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.tN(_.Wg("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:M0f()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return z})};
_.a.getPlayerResponse=function(x){return J7L(this.store.getState().entities,x.videoId)};var QS=function(x,G){this.localPlayerService=x;this.localWatchNextService=G};
QS.prototype.shouldPreferLocalResponse=function(x){var G=x.playerRequest;x=x.watchNextRequest;return!!(G&&this.localPlayerService.shouldPreferLocalResponse(G)&&x&&this.localWatchNextService.shouldPreferLocalResponse(x))};
QS.prototype.localInnertubeResponse=function(x){var G=this,D,K,z,y;return _.T(function(c){if(c.nextAddress==1){D=x.playerRequest;K=x.watchNextRequest;if(!D||!K)throw new _.LL("Missing streaming request",x);return _.Z(c,G.localPlayerService.localInnertubeResponse(D),2)}if(c.nextAddress!=3)return z=c.yieldResult,_.Z(c,G.localWatchNextService.localInnertubeResponse(K),3);y=c.yieldResult;return c.return({playerResponse:z,watchNextResponse:y})})};
QS.prototype.canProvideFallbackResponse=function(x){var G=x.playerRequest;x=x.watchNextRequest;return!!(G&&this.localPlayerService.canProvideFallbackResponse(G)&&x&&this.localWatchNextService.canProvideFallbackResponse(x))};
QS.prototype.localFallbackInnertubeResponse=function(x){var G=this,D,K,z,y;return _.T(function(c){if(c.nextAddress==1)return D=x.playerRequest,K=x.watchNextRequest,D&&K?_.Z(c,G.localPlayerService.localFallbackInnertubeResponse(D),2):c.return(Promise.reject(new _.LL("Missing streaming request",x)));if(c.nextAddress!=3)return z=c.yieldResult,_.Z(c,G.localWatchNextService.localFallbackInnertubeResponse(K),3);y=c.yieldResult;return c.return({playerResponse:z,watchNextResponse:y})})};var eJ=function(x){this.JSC$15470_persistentStorePromiseAccessor=x};
eJ.prototype.shouldPreferLocalResponse=function(){return!1};
eJ.prototype.localInnertubeResponse=function(){return _.T(function(x){return x.return(Promise.reject(Error("Ki")))})};
eJ.prototype.canProvideFallbackResponse=function(){return!0};
eJ.prototype.localFallbackInnertubeResponse=function(){var x=this,G,D;return _.T(function(K){return K.nextAddress==1?_.Z(K,x.JSC$15470_persistentStorePromiseAccessor(),2):K.nextAddress!=3?(G=K.yieldResult)?_.Z(K,G.get("service:guide:fallback"),3):K.return(Promise.reject(Error("Li"))):(D=K.yieldResult)&&_.DU(D)?K.return(J5d(_.DU(D))):K.return(Promise.reject(Error("Mi")))})};var VS=function(){};
VS.prototype.shouldPreferLocalResponse=function(){return!1};
VS.prototype.localInnertubeResponse=function(){return _.T(function(x){return x.return(Promise.reject(Error("Ni")))})};
VS.prototype.canProvideFallbackResponse=function(){return!0};
VS.prototype.localFallbackInnertubeResponse=function(){var x,G,D;return _.T(function(K){x=L1("CLOSE_POPUP");G={openPopupAction:qzh()};D={actions:[x,G]};return K.return(D)})};var W1=function(){this.urlMap=Nfk;this.fallbackCommand=_.yM};
W1.prototype.shouldPreferLocalResponse=function(x){return(x=x.url)?!!vQs(this,x):!1};
W1.prototype.localInnertubeResponse=function(x){var G=this,D;return _.T(function(K){return(D=x.url)?K.return(JY7(x,vQs(G,D))):K.return(Promise.reject(Error("Oi")))})};
W1.prototype.canProvideFallbackResponse=function(){return!0};
W1.prototype.localFallbackInnertubeResponse=function(x){var G=this,D,K,z,y,c,W,e;return _.T(function(Q){D=x.url;if(!D)return Q.return(JY7(x,G.fallbackCommand));if(K=vQs(G,D))return Q.return(JY7(x,K));z=void 0;y=_.c0(D);y==="/watch"&&(c=_.uP(D,"v"))&&(e=(W=_.uP(D,"list"))!=null?W:void 0,z=_.fW(c,e));z||(z=G.fallbackCommand);return Q.return(JY7(x,z))})};
var vQs=function(x,G){if(G)return x.urlMap[_.Sq(G)]},JY7=function(x,G){G&&x.parentTrackingParams&&(G.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:x.parentTrackingParams}},G.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:G})};var ZU=function(x,G,D){this.JSC$15480_upliftPromise=x;this.store=G;this.JSC$15480_persistentStorePromiseAccessor=D};
ZU.prototype.shouldPreferLocalResponse=function(){return!1};
ZU.prototype.localInnertubeResponse=function(){return _.T(function(x){return x.return(Promise.reject(Error("Pi")))})};
ZU.prototype.canProvideFallbackResponse=function(){return!0};
ZU.prototype.localFallbackInnertubeResponse=function(){var x=this;return _.T(function(G){return G.return(fak(x))})};
var fak=function(x){var G,D;return _.T(function(K){if(K.nextAddress==1)return _.Z(K,G0(x.JSC$15480_upliftPromise,x.store),2);G=K.yieldResult;D={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[NZQ(G)]}}}};return K.return(tas(x,D))})},tas=function(x,G){var D,K;
return _.T(function(z){if(z.nextAddress==1)return _.Z(z,x.JSC$15480_persistentStorePromiseAccessor(),2);if(z.nextAddress!=3)return D=z.yieldResult,_.Z(z,K6(D),3);K=z.yieldResult;return z.return({responseContext:{},contents:G,topbar:K})})};var c1=function(x,G,D){this.JSC$15487_upliftPromise=x;this.store=G;this.JSC$15487_persistentStorePromiseAccessor=D};
c1.prototype.shouldPreferLocalResponse=function(x){var G=x.videoId;return G&&LUn(this.store.getState().entities,G)&&BHh(this.store.getState().entities,G)?vkD(this.store.getState().entities,x.playlistId):!1};
c1.prototype.localInnertubeResponse=function(x){var G=this,D,K;return _.T(function(z){if(z.nextAddress==1)return(D=x.videoId)?_.Z(z,G.JSC$15487_upliftPromise,2):z.return(Promise.reject(Error("Qi")));if(z.nextAddress!=3)return _.Z(z,kvZ(G,x,D),3);K=z.yieldResult;return z.return(Pth(G,K,D))})};
c1.prototype.canProvideFallbackResponse=function(x){return x.videoId?!0:!1};
c1.prototype.localFallbackInnertubeResponse=function(x){var G=this,D,K,z,y;return _.T(function(c){switch(c.nextAddress){case 1:return(D=x.videoId)?_.Z(c,G.JSC$15487_upliftPromise,2):c.return(Promise.reject(Error("Qi")));case 2:return _.Z(c,kvZ(G,x,D),3);case 3:K=c.yieldResult;if(Vy(G.store.getState().entities,D)){c.jumpTo(4);break}return _.Z(c,G0(G.JSC$15487_upliftPromise,G.store),5);case 5:return z=c.yieldResult,c.return(EQZ(K,z));case 4:return LUn(G.store.getState().entities,D)&&BHh(G.store.getState().entities,
D)?c.return(Pth(G,K,D)):(y={title:_.tN(_.Wg("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:QvQ()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},c.return(EQZ(K,y)))}})};
var kvZ=function(x,G,D){var K,z,y,c,W;return _.T(function(e){if(e.nextAddress==1)return K=G.playlistId,z=_.fW(D,K),_.Z(e,x.JSC$15487_persistentStorePromiseAccessor(),2);if(e.nextAddress!=3)return y=e.yieldResult,_.Z(e,K6(y),3);c=e.yieldResult;W={responseContext:{},currentVideoEndpoint:z,topbar:c};return e.return(W)})},Pth=function(x,G,D){if(x=Vy(x.store.getState().entities,D)){var K;
D=x.videoEntity;var z,y={title:kO(D.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.Pg((K=D.localizedStrings)==null?void 0:K.viewCount),viewCount:_.Pg((z=D.localizedStrings)==null?void 0:z.viewCount)}}};D.publishedTimestampMillis&&(y.dateText=_.Pg(U6V(new Date(Number(D.publishedTimestampMillis)))));K={videoPrimaryInfoRenderer:y};z=x.videoEntity;x=x.channelEntity;x={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:kO(_.Wg("SHOW_MORE",void 0,"Show more")),
showLessText:kO(_.Wg("SHOW_LESS",void 0,"Show less")),description:z.formattedDescription,owner:{videoOwnerRenderer:{title:kO(x.title),thumbnail:x.avatar}}}};G.contents={twoColumnWatchNextResults:{results:{results:{contents:[K,x]}}}}}return G},EQZ=function(x,G){x.contents={singleColumnWatchNextResults:{results:{results:{contents:[NZQ(G)]}}}};
return x};var Mt=function(x,G,D){this.JSC$15492_upliftPromise=x;this.store=G;this.JSC$15492_persistentStorePromiseAccessor=D};
Mt.prototype.shouldPreferLocalResponse=function(){return!1};
Mt.prototype.localInnertubeResponse=function(){return _.T(function(x){return x.return(Promise.reject(Error("Ri")))})};
Mt.prototype.canProvideFallbackResponse=function(){return!0};
Mt.prototype.localFallbackInnertubeResponse=function(){var x=this,G,D,K,z;return _.T(function(y){switch(y.nextAddress){case 1:return _.Z(y,x.JSC$15492_persistentStorePromiseAccessor(),2);case 2:return G=y.yieldResult,_.Z(y,K6(G),3);case 3:return D=y.yieldResult,K={responseContext:{},topbar:D},_.Z(y,x.JSC$15492_upliftPromise,4);case 4:return _.Z(y,G0(x.JSC$15492_upliftPromise,x.store),5);case 5:return z=y.yieldResult,K.watchStatus={backgroundPromoRenderer:z},y.return(K)}})};var hgh=new _.wq("ENDPOINT_MAP");var xRh=function(){var x=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return x.sequenceMap}}},vuZ=function(x,G,D){var K,z=(K=G.config)==null?void 0:K.sequenceStrategy;
if(!z)return D();x.sequenceMap.has(z.sequenceKey)||x.sequenceMap.set(z.sequenceKey,[]);x=x.sequenceMap.get(z.sequenceKey);switch(z.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return GwZ(x,G,D);case "REQUEST_SEQUENCE_TYPE_REPLACE":return DRs(x,G,D);default:throw new _.LL("Request could not be sequenced",G);}},GwZ=function(x,G,D){var K,z,y;
return _.T(function(c){x.length>0?(z=x[x.length-1],K=z.responsePromise.then(function(){return D()})):K=D();
y={request:G,responsePromise:K};x.push(y);Klk(x,y);return c.return(y.responsePromise)})},DRs=function(x,G,D){D=D();
if(x.length>0)for(var K=_.l(x),z=K.next();!z.done;z=K.next())z.value.responsePromise=D;var y={request:G,responsePromise:D};x.push(y);Klk(x,y);return Promise.resolve().then(function(){return x.indexOf(y)>0?y.responsePromise.then(function(c){return Object.assign({},c,{sequenceMetaData:{skipProcessing:!0}})}):y.responsePromise})},Klk=function(x,G){G.responsePromise.then(function(){var D=x.indexOf(G);
D>-1&&x.splice(D,1)})};var z6E=new _.wq("REQUEST_SEQUENCING");var mi=function(){};
_.m(mi,E3);mi.prototype.getApiPaths=function(){return[]};
mi.prototype.getExtension=function(x){return _.Y(x,CQs)};
mi.prototype.JSC$10995_buildRequest=function(x,G){x.recaptchaToken=G.recaptchaToken};
mi.prototype.getApiUrl=function(){return"/das_captcha"};var H9=function(){};
_.m(H9,E3);H9.prototype.getApiPaths=function(){return zm9};
H9.prototype.getExtension=function(x){return _.Y(x,Dts)};
H9.prototype.JSC$10995_buildRequest=function(x,G,D){D=D===void 0?{}:D;G.createBackstagePostParams&&(x.createBackstagePostParams=G.createBackstagePostParams);D.comment_text&&(x.commentText=D.comment_text);if(D.attached_video_id)x.videoAttachment={videoId:D.attached_video_id};else if(D.image_poll_options)x.pollAttachmentData={options:D.image_poll_options};else if(D.poll_options)x.pollAttachment={choices:D.poll_options};else if(D.quiz_options)x.quizAttachmentData={options:D.quiz_options};else if(D.image_blob_id)x.imageAttachment=
{encryptedBlobId:D.image_blob_id},D.source_video_id&&(x.imageAttachment.sourceExternalVideoId=D.source_video_id),D.image_preview_coordinates&&(x.imageAttachment.previewCoordinates=JSON.parse(D.image_preview_coordinates));else if(D.images_data)x.imagesAttachment={imagesData:D.images_data};else if(D.clip_external_video_id!==void 0||D.clip_offset_ms!==void 0||D.clip_duration_ms!==void 0){var K,z,y,c,W;x.clipAttachment={externalVideoId:(y=D.clip_external_video_id)!=null?y:"",offsetMs:(c=(K=D.clip_offset_ms)==
null?void 0:K.toString())!=null?c:"",durationMs:(W=(z=D.clip_duration_ms)==null?void 0:z.toString())!=null?W:""}}else D.shared_post_id&&(x.sharedPostAttachment={postId:D.shared_post_id});D.tagged_video_id&&(x.postCreationData={taggedVideoId:D.tagged_video_id});D.access_restrictions&&(typeof D.access_restrictions==="number"&&(G=D.access_restrictions,x.accessRestrictions={restriction:G!==1&&G===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof D.access_restrictions==="string"&&
(x.accessRestrictionsParams=D.access_restrictions));D.scheduled_publish_time_sec&&(x.scheduledPublishTimeSec=D.scheduled_publish_time_sec.toString())};var $D=function(){};
_.m($D,E3);$D.prototype.getApiPaths=function(){return WaE};
$D.prototype.getExtension=function(x){return _.Y(x,yDu)};
$D.prototype.JSC$10995_buildRequest=function(x,G,D){D=D===void 0?{}:D;G.decorateMessageParams&&(x.params=G.decorateMessageParams);D.text&&(x.text=D.text)};var FR=function(){};
_.m(FR,E3);FR.prototype.getApiPaths=function(){return OJ8};
FR.prototype.getExtension=function(x){return _.Y(x,KJq)};
FR.prototype.JSC$10995_buildRequest=function(x,G,D){D=D===void 0?{}:D;D.video_id&&(x.videoId=D.video_id)};var CR=function(){};
_.m(CR,E3);CR.prototype.getApiPaths=function(){return nPZ};
CR.prototype.getExtension=function(x){return _.Y(x,_.cg)};
CR.prototype.JSC$10995_buildRequest=function(x,G,D){D.suggestions_query&&(x.input=D.suggestions_query)};var Ig=function(){};
_.m(Ig,E3);Ig.prototype.getApiPaths=function(){return pPJ};
Ig.prototype.getExtension=function(x){return _.Y(x,ztq)};
Ig.prototype.JSC$10995_buildRequest=function(x,G,D){D.comment_text!==void 0&&(x.commentText=D.comment_text);D.scheduled_publish_time_sec&&(x.scheduledPublishTimeSec=D.scheduled_publish_time_sec.toString());x.updateBackstagePostParams=G.updateBackstagePostParams};var jt=function(){};
_.m(jt,E3);jt.prototype.getApiPaths=function(){return f1};
jt.prototype.getExtension=function(x){return _.Y(x,_.Il)};
jt.prototype.JSC$10995_buildRequest=function(x,G,D){D.formData&&(x.formData=D.formData);G.token?x.continuation=G.token:G.continuationTokenKey&&(D=_.wK().getState(),G=_.zm(D.entities,"continuationTokenEntity",G.continuationTokenKey))&&(x.continuation=String(G.continuationToken))};
var a88=function(){};
_.m(a88,E3);_.a=a88.prototype;_.a.getApiPaths=function(){return f1};
_.a.getExtension=function(x){return _.Y(x,_.TU)};
_.a.isNavigationCommand=function(){return!0};
_.a.JSC$11002_getStoreKey=function(x){if((x=this.getExtension(x))&&x.browseId){var G={browseId:x.browseId};x.browseEndpointContextSupportedConfigs&&(G.browseEndpointContextSupportedConfigs=JSON.stringify(x.browseEndpointContextSupportedConfigs));x.params&&(G.params=x.params);x.query&&(G.query=x.query);return _.ux("browse",G)}};
_.a.JSC$10995_buildRequest=function(x,G,D){G.browseId&&(x.browseId=G.browseId);G.params&&(x.params=G.params);G.query&&(x.query=G.query);D.formData?x.formData=D.formData:G.formData&&(x.formData=G.formData);G.browseId==="FEsubscriptions"&&_.M5().getFlag(155)&&(x.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");G.browseId==="SPaccount_playback"&&(D=_.M5(),x.formData||(x.formData={}),x.formData.accountSettingsFormData={flagCaptionsDefaultOff:D.getFlag(65),flagAutoCaptionsDefaultOn:D.getFlag(66),
flagDisableInlinePreview:D.getFlag(186),flagAudioDescriptionDefaultOn:D.getFlag(198)});if(G.browseId==="FEwhat_to_watch"){D=_.M5();var K=D.getFlag(196);D.getFlag(197)&&(x.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:K}}})}G.browseId==="FEwhat_to_watch"&&(G=_.M5().getFlag(186),x.inlineSettingStatus=G?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.a.getRequestConfig=function(x,G){G=G===void 0?{}:G;var D={};if(x=this.JSC$11002_getStoreKey(x,G))D.storeStrategy={storeKey:x,disableCache:G.disableCache};_.B("web_log_browse_ticks_ks")||(D.requestTick="br_s",D.responseTick="br_r");return D};var OT=function(){};
_.m(OT,E3);OT.prototype.getApiPaths=function(){return EV7};
OT.prototype.getExtension=function(x){return _.Y(x,sXE)};
OT.prototype.JSC$10995_buildRequest=function(x,G,D){x.legacyYoutubeChannelUsername=D.legacyYouTubeChannelUsername||"";x.legacyYoutubeChannelPassword=D.legacyYouTubeChannelPassword||""};var Al=function(){};
_.m(Al,E3);Al.prototype.getApiPaths=function(){return otu};
Al.prototype.getExtension=function(x){return _.Y(x,et8)};
Al.prototype.JSC$10995_buildRequest=function(x,G,D){D.recaptcha_response_token&&(x.recaptchaResponseToken=D.recaptcha_response_token);D.channel_id&&(x.channelId=D.channel_id)};var UT=function(){};
_.m(UT,E3);UT.prototype.getApiPaths=function(){return V$J};
UT.prototype.getExtension=function(x){return _.Y(x,b6s)};
UT.prototype.JSC$10995_buildRequest=function(x,G,D){G.externalChannelId&&(x.externalChannelId=G.externalChannelId);D.handle&&(x.handleUpdate={handle:D.handle},G.handleEditSource&&(x.handleUpdate.handleEditSource=G.handleEditSource))};var Rg=function(){};
_.m(Rg,E3);Rg.prototype.getApiPaths=function(){return rG8};
Rg.prototype.getExtension=function(x){return _.Y(x,X10)};
Rg.prototype.JSC$10995_buildRequest=function(x,G,D){G.request&&(x.channelId=G.request.channelId);var K;if(D==null?0:(K=D.uploadDefaults)==null?0:K.emojiReactionSet)x.uploadDefaultsRequest||(x.uploadDefaultsRequest={}),x.uploadDefaultsRequest.emojiReactionSet=D.uploadDefaults.emojiReactionSet};var St=function(){};
_.m(St,E3);St.prototype.getApiPaths=function(){return mz7};
St.prototype.getExtension=function(x){return _.Y(x,Z6J)};
St.prototype.JSC$10995_buildRequest=function(x,G,D){G.externalChannelId&&(x.externalChannelId=G.externalChannelId);G.channelHandleEntityKey&&(x.channelHandleEntityKey=G.channelHandleEntityKey);G.handleEditSource&&(x.handleEditSource=G.handleEditSource);D.handle?x.handle=D.handle:D.name&&(x.name=D.name)};var nR=function(){};
_.m(nR,E3);nR.prototype.getApiPaths=function(){return G$J};
nR.prototype.getExtension=function(x){return _.Y(x,uCh)};
nR.prototype.JSC$10995_buildRequest=function(x,G){G.actions?x.actions=G.actions:G.action&&(x.actions=[G.action])};var iB=function(){};
_.m(iB,E3);iB.prototype.getApiPaths=function(){return DZs};
iB.prototype.getExtension=function(x){return _.Y(x,_.Il)};
iB.prototype.JSC$10995_buildRequest=function(x,G){G.token&&(x.continuation=G.token)};var gD=function(){};
_.m(gD,E3);gD.prototype.getApiPaths=function(){return IOE};
gD.prototype.getExtension=function(x){return _.Y(x,_.Il)};
gD.prototype.JSC$10995_buildRequest=function(x,G){x.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";G.token&&(x.fetchCommentsParams={continuation:G.token})};var uB=function(){};
_.m(uB,E3);uB.prototype.getApiPaths=function(){return yiu};
uB.prototype.getExtension=function(x){return _.Y(x,gG9)};
uB.prototype.JSC$10995_buildRequest=function(x,G,D){D=D===void 0?{}:D;G.createReplyParams&&(x.createReplyParams=G.createReplyParams);G.commentText&&(x.commentText=_.u7(G.commentText));D.comment_text&&(x.commentText=D.comment_text);D.image_blob_id&&(x.imageAttachment={encryptedBlobId:D.image_blob_id});D.botguard_response&&(x.botguardResponse=D.botguard_response)};
_.Nq.Object.defineProperties(uB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var dD=function(){};
_.m(dD,E3);dD.prototype.getApiPaths=function(){return lOZ};
dD.prototype.getExtension=function(x){return _.Y(x,_.iy0)};
dD.prototype.JSC$10995_buildRequest=function(x,G,D){D=D===void 0?{}:D;G.createCommentParams&&(x.createCommentParams=G.createCommentParams);G.commentText&&(x.commentText=_.u7(G.commentText));G.videoPositionMention&&(x.videoPositionMention=G.videoPositionMention);G.sources&&(x.sources=G.sources);D.comment_text&&(x.commentText=D.comment_text);D.attached_video_id?x.videoAttachment={videoId:D.attached_video_id}:D.poll_options?x.pollAttachment={choices:D.poll_options}:D.image_blob_id?x.imageAttachment=
{encryptedBlobId:D.image_blob_id}:D.shared_post_id&&(x.sharedPostAttachment={postId:D.shared_post_id});D.access_restrictions&&typeof D.access_restrictions==="number"&&(G=D.access_restrictions,x.accessRestrictions={restriction:G!==1&&G===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});D.botguard_response&&(x.botguardResponse=D.botguard_response)};
_.Nq.Object.defineProperties(dD.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var wD=function(){};
_.m(wD,E3);wD.prototype.getApiPaths=function(){return bFJ};
wD.prototype.getExtension=function(x){return _.Y(x,wRZ)};
wD.prototype.JSC$10995_buildRequest=function(x,G,D){G.commentText&&(x.replyText=_.u7(G.commentText));D.comment_text&&(x.replyText=D.comment_text);x.updateReplyParams=G.updateReplyParams};
_.Nq.Object.defineProperties(wD.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var q$=function(){};
_.m(q$,E3);q$.prototype.getApiPaths=function(){return L3q};
q$.prototype.getExtension=function(x){return _.Y(x,dls)};
q$.prototype.JSC$10995_buildRequest=function(x,G,D){G.commentText&&(x.commentText=_.u7(G.commentText));D.comment_text&&(x.commentText=D.comment_text);x.updateCommentParams=G.updateCommentParams};
_.Nq.Object.defineProperties(q$.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var N$=function(){};
_.m(N$,E3);N$.prototype.getApiPaths=function(){return B2J};
N$.prototype.getExtension=function(x){return _.Y(x,Cho)};
N$.prototype.JSC$10995_buildRequest=function(x,G){G.settings&&(x.settings=G.settings)};var v9=function(){};
_.m(v9,E3);v9.prototype.getApiPaths=function(){return sr8};
v9.prototype.getExtension=function(x){return _.Y(x,MJ0)};
v9.prototype.JSC$10995_buildRequest=function(x,G){G.channelCreationToken&&(x.channelCreationToken=G.channelCreationToken);G.source&&(x.source=G.source)};var Jl=function(){};
_.m(Jl,E3);Jl.prototype.getApiPaths=function(){return oPJ};
Jl.prototype.getExtension=function(x){return _.Y(x,VJ0)};
Jl.prototype.JSC$10995_buildRequest=function(x,G,D){D=D===void 0?{}:D;if(D.name&&(D.given_name||D.family_name))x=new _.LL("channel creation cannot set both GAIA and YouTube names",G),_.I4(x);else{if(G.zeroStepChannelCreationParams){if(!D.comment_text){x=new _.LL("zero_step_create_comment_params but no zero_step_texts",G);_.I4(x);return}x.zeroStepChannelCreationParams=G.zeroStepChannelCreationParams;x.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(x.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
D.comment_text,D.botguard_response&&(x.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=D.botguard_response))}x.channelCreationToken=G.channelCreationToken;D.given_name&&(x.givenName=D.given_name);D.family_name&&(x.familyName=D.family_name);G.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(x.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(D.name||D.handle||D.avatar_url||D.encryptedBlobId||D.isNameChanged!==void 0||D.isHandleChanged!==void 0||D.isDefaultProfilePhoto!==
void 0||D.obakeImageSource)x.overrideChannelCreationParams={},D.name&&(x.overrideChannelCreationParams.name=D.name),D.handle&&(x.overrideChannelCreationParams.handle=D.handle),D.avatar_url&&(x.overrideChannelCreationParams.avatarUrl=D.avatar_url),D.encryptedBlobId&&(x.overrideChannelCreationParams.blobEncryptionId=D.encryptedBlobId),D.enableIdentityForAllChannelCreationDialog&&(D.encryptedBlobId?x.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
D.isDefaultProfilePhoto!==void 0&&(x.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=D.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),D.isNameChanged!==void 0&&(x.overrideChannelCreationParams.identityForAllChannelCreationNameTag=D.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),D.isHandleChanged!==
void 0&&(x.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=D.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),D.obakeImageSource&&(x.overrideChannelCreationParams.obakeImageSourceType=D.obakeImageSource))}};var fR=function(){};
_.m(fR,E3);fR.prototype.getApiPaths=function(x){return(x=this.getExtension(x))&&x.status==="DISLIKE"?Qri:x&&x.status==="INDIFFERENT"?GPZ:wGo};
fR.prototype.getExtension=function(x){return _.Y(x,_.Ry)};
fR.prototype.JSC$10995_buildRequest=function(x,G){G.target&&(x.target=G.target);if(G=this.getParams(G))x.params=G};
fR.prototype.getParams=function(x){switch(x==null?void 0:x.status){case "DISLIKE":return x.dislikeParams;case "INDIFFERENT":return x.removeLikeParams;default:return x==null?void 0:x.likeParams}};var tl=function(){};
_.m(tl,E3);tl.prototype.getApiPaths=function(){return W3s};
tl.prototype.getExtension=function(x){return _.Y(x,hqi)};
tl.prototype.JSC$10995_buildRequest=function(x,G){G.settingItemId&&(x.settingItemId=G.settingItemId);G.stringValue!=null&&G.stringValue!==void 0?x.newValue={stringValue:G.stringValue}:G.intValue?x.newValue={intValue:G.intValue}:G.boolValue!==null&&G.boolValue!==void 0?x.newValue={boolValue:G.boolValue}:(x=new _.LL("Unknown value type for SetSettingEndpoint.",G),_.I4(x))};var kD=function(){};
_.m(kD,E3);kD.prototype.getApiPaths=function(){return ZFu};
kD.prototype.getExtension=function(x){return _.Y(x,pph)||void 0};
kD.prototype.JSC$10995_buildRequest=function(x,G,D){D=D===void 0?{}:D;G.channelIds&&(x.channelIds=G.channelIds);G.siloName&&(x.siloName=G.siloName);G.params&&(x.params=G.params);D.botguardResponse&&(x.botguardResponse=D.botguardResponse);D.feature&&(x.clientFeature=D.feature)};
_.Nq.Object.defineProperties(kD.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var P9=function(){};
_.m(P9,E3);P9.prototype.getApiPaths=function(){return QQk};
P9.prototype.getExtension=function(x){return _.Y(x,x7u)||void 0};
P9.prototype.JSC$10995_buildRequest=function(x,G){G.channelIds&&(x.channelIds=G.channelIds);G.siloName&&(x.siloName=G.siloName);G.params&&(x.params=G.params)};
_.Nq.Object.defineProperties(P9.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ET=function(x){this.shareClientParamsProvider=x};
_.m(ET,E3);ET.prototype.getApiPaths=function(){return Ai9};
ET.prototype.getExtension=function(x){return _.Y(x,m9q)||_.Y(x,_.HiE)||_.Y(x,Yt9)};
ET.prototype.JSC$10995_buildRequest=function(x,G){G.serializedShareEntity&&(x.serializedSharedEntity=G.serializedShareEntity);if(G.clientParamIdentifier){var D;if((D=this.shareClientParamsProvider)==null?0:D.clientParams.has(G.clientParamIdentifier)){D=this.shareClientParamsProvider;G=G.clientParamIdentifier;var K=D.clientParams.get(G);K&&D.clientParams.delete(G);x.clientParams=K}}};
ET[dq]=[YWs];var hl=function(){};
_.m(hl,E3);hl.prototype.getApiPaths=function(){return t1Z};
hl.prototype.getExtension=function(x){return _.Y(x,XVo)};
hl.prototype.JSC$10995_buildRequest=function(x,G){G.params&&(x.params=G.params)};var xz=function(){};
_.m(xz,E3);xz.prototype.getApiPaths=function(){return pGo};
xz.prototype.getExtension=function(x){return _.Y(x,Ihh)};
xz.prototype.JSC$10995_buildRequest=function(x,G){G.dismissal&&(x.items=[G.dismissal])};
_.Nq.Object.defineProperties(xz.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var GB=function(){};
_.m(GB,E3);GB.prototype.getApiPaths=function(){return up8};
GB.prototype.getExtension=function(x){return _.Y(x,_.H1)||void 0};
GB.prototype.JSC$10995_buildRequest=function(x,G,D){x.feedbackTokens=[];G.feedbackToken&&x.feedbackTokens.push(G.feedbackToken);if(G=G.cpn||D.cpn)x.feedbackContext={cpn:G};x.isFeedbackTokenUnencrypted=!!D.is_feedback_token_unencrypted;x.shouldMerge=!1;D.extra_feedback_tokens&&(x.shouldMerge=!0,x.feedbackTokens=x.feedbackTokens.concat(D.extra_feedback_tokens))};
_.Nq.Object.defineProperties(GB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ca=function(){};
_.m(ca,E3);ca.prototype.getApiPaths=function(){return up8};
ca.prototype.getExtension=function(x){return _.Y(x,_.cg)};
ca.prototype.JSC$10995_buildRequest=function(x,G,D){D.feedback_tokens&&(x.feedbackTokens=D.feedback_tokens,x.shouldMerge=!0)};
_.Nq.Object.defineProperties(ca.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var TB=function(){};
_.m(TB,E3);TB.prototype.getApiPaths=function(){return up8};
TB.prototype.getExtension=function(x){return _.Y(x,HA$)};
TB.prototype.JSC$10995_buildRequest=function(x,G){G.undoToken&&(x.feedbackTokens=[G.undoToken]);G.isUndoTokenUnencrypted&&(x.isFeedbackTokenUnencrypted=G.isUndoTokenUnencrypted)};
_.Nq.Object.defineProperties(TB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Wa=function(){};
_.m(Wa,E3);Wa.prototype.getApiPaths=function(){return HFs};
Wa.prototype.getExtension=function(x){return _.Y(x,$VZ)};
Wa.prototype.JSC$10995_buildRequest=function(x,G){G.nextEndpoint&&_.Y(G.nextEndpoint,_.iV)?x.nextEndpoint={urlEndpoint:_.Y(G.nextEndpoint,_.iV)}:G.nextEndpoint&&_.Y(G.nextEndpoint,_.d5)&&(x.nextEndpoint={watchEndpoint:_.Y(G.nextEndpoint,_.d5)});G.setRacy&&(x.setRacy=G.setRacy);G.setControvercy&&(x.setControvercy=G.setControvercy)};var eh=function(x){this.JSC$15673_storeWithEntities=x};
_.m(eh,E3);eh.prototype.getApiPaths=function(){return bJJ};
eh.prototype.getExtension=function(x){return _.Y(x,Prk)};
eh.prototype.JSC$10995_buildRequest=function(x,G){G.flowId&&(x.flowId=G.flowId);G.targetId&&(x.targetId=G.targetId);G.continuation&&(x.continuation=G.continuation);var D=G.flowStateEntityKey;if(G.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&D&&this.JSC$15673_storeWithEntities){var K;if(G=(K=this.JSC$15673_storeWithEntities.getState())==null?void 0:K.entities)if(K=_.x_(D).entityType,K=_.zm(G,K,D))x.flowState=K,x.flowStateEntityKey=D}};
_.Nq.Object.defineProperties(eh.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
eh[dq]=[z0];var osk=function(){};
_.m(osk,E3);_.a=osk.prototype;_.a.getApiPaths=function(){return gPq};
_.a.JSC$11002_getStoreKey=function(){return _.ux("guide")};
_.a.getRequestConfig=function(){var x=this.JSC$11002_getStoreKey(),G;x&&(G={storeStrategy:{storeKey:x}});return G};
_.a.isNavigationCommand=function(){return!0};
_.a.getExtension=function(x){return _.Y(x,_.cg)};
_.a.JSC$10995_buildRequest=function(x){x.fetchLiveState=!0};var ZT=function(){};
_.m(ZT,E3);ZT.prototype.getApiPaths=function(){return hzJ};
ZT.prototype.getExtension=function(x){return _.Y(x,Rrk)};
ZT.prototype.JSC$10995_buildRequest=function(){};var M3=function(){};
_.m(M3,E3);M3.prototype.getApiPaths=function(){return xZJ};
M3.prototype.getExtension=function(x){return _.Y(x,SqZ)};
M3.prototype.JSC$10995_buildRequest=function(){};var Q8=function(){};
_.m(Q8,E3);Q8.prototype.getApiPaths=function(){return fiq};
Q8.prototype.getExtension=function(x){return _.Y(x,_.Il)};
Q8.prototype.JSC$10995_buildRequest=function(x,G){G.token&&(x.continuation=G.token);var D,K;x==null||(D=x.context)==null||(K=D.user)==null||delete K.onBehalfOfUser};
Q8.prototype.getRequestConfig=function(x){var G={},D;if(((D=this.getExtension(x))==null?void 0:D.sessionIndex)!==void 0){var K;G={authStrategy:{sessionIndex:(K=this.getExtension(x))==null?void 0:K.sessionIndex}}}return G};var pv=function(){};
_.m(pv,E3);pv.prototype.JSC$10995_getRequest=function(x){var G=this.getExtension(x),D=x="";if(G==null?0:G.popup)x="true";if(G==null?0:G.disableSignout)D="true";G={};return{input:"/getAccountSwitcherEndpoint",requestShell:g5("/getAccountSwitcherEndpoint","GET",(G["X-YouTube-Delegation-Context"]=_.Am("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),G["X-YouTube-Account-Switcher-Popup"]=x,G["X-YouTube-Account-Switcher-Disable-Signout"]=D,G)),innerTubeRequest:{}}};
pv.prototype.getApiPaths=function(){return[]};
pv.prototype.getExtension=function(x){return _.Y(x,_.apO)};
pv.prototype.JSC$10995_buildRequest=function(){};var V8=function(){};
_.m(V8,E3);V8.prototype.JSC$10995_getRequest=function(x){var G="/cross_account_channel_transfer";(x=this.getExtension(x))&&(G=VSh(G,{target_session:x.targetSessionIndex,source_rapt:x.sourceRapt,rapt:x.targetRapt}));return{input:G,requestShell:g5(G,"GET"),innerTubeRequest:{}}};
V8.prototype.getApiPaths=function(){return[]};
V8.prototype.getExtension=function(x){return _.Y(x,UXs)};
V8.prototype.JSC$10995_buildRequest=function(){};var b5=function(){};
_.m(b5,E3);b5.prototype.getApiPaths=function(){return Laq};
b5.prototype.isNavigationCommand=function(){return!0};
b5.prototype.getExtension=function(x){return _.Y(x,_.cg)};
b5.prototype.JSC$10995_buildRequest=function(x){var G=_.M5().get("gsml","");G&&(x.safetyModeLockerObfuscatedGaiaId=G);x.userInterfaceTheme=_.Lt(!0);_.Bi()?x.deviceTheme="DEVICE_THEME_SELECTED":_.yXP()?x.deviceTheme="DEVICE_THEME_SUPPORTED":x.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var Lv=function(){};
_.m(Lv,E3);Lv.prototype.getApiPaths=function(){return fiq};
Lv.prototype.getExtension=function(x){return _.Y(x,R_Z)};
Lv.prototype.JSC$10995_buildRequest=function(x,G){if(G&&G.requestType&&(x.requestType=G.requestType,G.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||G.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var D=G.nextUrl;D&&(_.L7Q(D)||tm(D))&&(x.nextNavendpoint={urlEndpoint:{url:D}})}G&&G.channelSwitcherQuery&&(x.channelSwitcherQuery=G.channelSwitcherQuery);G&&G.triggerChannelCreation&&(x.triggerChannelCreation=G.triggerChannelCreation);var K;if(G==null?0:(K=G.contentOwnerConfig)==
null?0:K.externalContentOwnerId)x.contentOwnerConfig=G.contentOwnerConfig;x.callCircumstance=G&&G.requestType&&G.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var z,y;G=x==null?void 0:(z=x.context)==null?void 0:(y=z.user)==null?void 0:y.onBehalfOfUser;if(G!==void 0){x.obfuscatedSelectedGaiaId=G;var c,W;x==null||(c=x.context)==null||(W=c.user)==null||delete W.onBehalfOfUser}var e,Q;if(z=x==null?void 0:(e=x.context)==null?void 0:(Q=e.user)==null?
void 0:Q.serializedDelegationContext)x.selectedSerializedDelegationContext=z};var Ba=function(){};
_.m(Ba,E3);Ba.prototype.getApiPaths=function(){return XGZ};
Ba.prototype.getExtension=function(x){return _.Y(x,jy7)};
Ba.prototype.JSC$10995_buildRequest=function(x,G){G.profileOwnerExternalChannelId&&(x.profileOwnerExternalChannelId=G.profileOwnerExternalChannelId);G.profileCardContext&&(x.profileCardContext=G.profileCardContext)};var r6=function(){};
_.m(r6,E3);r6.prototype.getApiPaths=function(){return kci};
r6.prototype.getExtension=function(x){return _.Y(x,$9J)};
r6.prototype.JSC$10995_buildRequest=function(x,G){G.params&&(x.params=G.params)};var si=function(){};
_.m(si,E3);si.prototype.getApiPaths=function(){return aOo};
si.prototype.getExtension=function(x){return _.Y(x,_.u6h)};
si.prototype.JSC$10995_buildRequest=function(x,G){if(G=G.createBroadcastRequest)x.useMasks=G.useMasks,x.broadcastType=G.broadcastType,x.broadcastSource=G.broadcastSource,x.broadcastMetadata=G.broadcastMetadata,x.broadcastMetadataMask=G.broadcastMetadataMask,x.videoMetadata=G.videoMetadata,x.videoMetadataMask=G.videoMetadataMask,x.liveChatSettingsUpdate=G.liveChatSettingsUpdate,x.liveChatSettingsUpdateMask=G.liveChatSettingsUpdateMask,x.cloneVideoId=G.cloneVideoId,x.cloneWithOverrides=G.cloneWithOverrides,
x.targetEntity=G.targetEntity,x.scheduledRedirectMetadata=G.scheduledRedirectMetadata};var Yz=function(){};
_.m(Yz,E3);Yz.prototype.getApiPaths=function(){return ciZ};
Yz.prototype.getExtension=function(x){return _.Y(x,g2J)};
Yz.prototype.JSC$10995_buildRequest=function(x,G,D){D=D===void 0?{}:D;G.params&&(x.params=G.params);D.questionText&&(x.questionText=D.questionText);D.optionText&&D.optionText.length>0&&(x.optionText=D.optionText)};var mk=function(){};
_.m(mk,E3);mk.prototype.getApiPaths=function(){return emh};
mk.prototype.getExtension=function(x){return _.Y(x,n2E)};
mk.prototype.JSC$10995_buildRequest=function(x,G){G.params&&(x.params=G.params)};var Ha=function(){};
_.m(Ha,E3);Ha.prototype.getApiPaths=function(){return mZ7};
Ha.prototype.getExtension=function(x){return _.Y(x,AZs)};
Ha.prototype.JSC$10995_buildRequest=function(x,G){G.params&&(x.params=G.params)};var $z=function(){};
_.m($z,E3);$z.prototype.getApiPaths=function(){return $ZZ};
$z.prototype.getExtension=function(x){return _.Y(x,U20)};
$z.prototype.JSC$10995_buildRequest=function(x,G,D){G.params&&(x.params=G.params);G.continuation&&(x.continuation=G.continuation);D.currentPlayerState&&D.currentPlayerState.playerOffsetMs&&(x.currentPlayerState={playerOffsetMs:D.currentPlayerState.playerOffsetMs.toString()})};var FI=function(){};
_.m(FI,E3);FI.prototype.getApiPaths=function(){return FaZ};
FI.prototype.getExtension=function(x){return _.Y(x,X_h)};
FI.prototype.JSC$10995_buildRequest=function(x,G,D){G.params&&(x.params=G.params);D.continuation&&(x.continuation=D.continuation);"hidden"in D&&(x.webClientInfo={isDocumentHidden:D.hidden});D.isInvalidationTimeoutRequest&&(x.isInvalidationTimeoutRequest=D.isInvalidationTimeoutRequest);D.invalidationPayload&&(G=OX8(_.eZ(kT(D.invalidationPayload))),x.invalidationPayloadLastPublishAtUsec=Yp(G,2));D.reloadActionPanel&&(x.reloadActionPanel=D.reloadActionPanel);D.fullReload&&(x.fullReload=D.fullReload);
D.currentPlayerState&&(x.currentPlayerState=D.currentPlayerState)};var Cv=function(){};
_.m(Cv,E3);Cv.prototype.getApiPaths=function(){return q3s};
Cv.prototype.getExtension=function(x){return _.Y(x,iXh)};
Cv.prototype.JSC$10995_buildRequest=function(x,G){x.params=G.params};var I7=function(){};
_.m(I7,E3);I7.prototype.getApiPaths=function(){return HJs};
I7.prototype.getExtension=function(x){return _.Y(x,w$7)};
I7.prototype.JSC$10995_buildRequest=function(x,G){G.params&&(x.params=G.params)};var jh=function(){};
_.m(jh,E3);jh.prototype.getApiPaths=function(){return CaZ};
jh.prototype.getExtension=function(x){return _.Y(x,qt7)};
jh.prototype.JSC$10995_buildRequest=function(x,G){G.params&&(x.params=G.params)};var Oi=function(){};
_.m(Oi,E3);Oi.prototype.getApiPaths=function(){return NQk};
Oi.prototype.getExtension=function(x){return _.Y(x,u$9)};
Oi.prototype.JSC$10995_buildRequest=function(x,G){G.params&&(x.params=G.params)};var XI=function(){};
_.m(XI,E3);XI.prototype.getApiPaths=function(){return Jis};
XI.prototype.getExtension=function(x){return _.Y(x,d2i)};
XI.prototype.JSC$10995_buildRequest=function(x,G){G.params&&(x.params=G.params)};var AB=function(){};
_.m(AB,E3);AB.prototype.getApiPaths=function(){return Dzo};
AB.prototype.getExtension=function(x){return _.Y(x,ICi)};
AB.prototype.JSC$10995_buildRequest=function(x,G){G.params&&(x.params=G.params)};var Ui=function(){};
_.m(Ui,E3);Ui.prototype.getApiPaths=function(){return cGZ};
Ui.prototype.getExtension=function(x){return _.Y(x,_.w_Z)};
Ui.prototype.JSC$10995_buildRequest=function(x,G,D){D=D===void 0?{}:D;G.params&&(x.params=G.params);D.client_message_id&&(x.clientMessageId=D.client_message_id);D.recaptcha_token&&(x.recaptchaToken=D.recaptcha_token);D.rich_message&&D.rich_message.text_segments?(G=D.rich_message.text_segments.map(function(K){var z={};K.text&&(z.text=K.text);K.emoji_id&&(z.emojiId=K.emoji_id);return z}),x.richMessage={textSegments:G}):D.message&&(x.message=D.message);
D.currentPlayerState&&(x.currentPlayerState=D.currentPlayerState)};var R7=function(){};
_.m(R7,E3);R7.prototype.getApiPaths=function(){return T29};
R7.prototype.getExtension=function(x){return _.Y(x,qxi)};
R7.prototype.JSC$10995_buildRequest=function(x,G){G.params&&(x.params=G.params)};var Sh=function(){};
_.m(Sh,E3);Sh.prototype.getApiPaths=function(){return M$s};
Sh.prototype.getExtension=function(x){return _.Y(x,v2s)};
Sh.prototype.JSC$10995_buildRequest=function(x,G,D){G.isUserInitiated&&(x.isUserInitiated=G.isUserInitiated);G.initiationSource&&(x.initiationSource=G.initiationSource);D.locationInfo&&(x.context.client.locationInfo=D.locationInfo)};var nv=function(){};
_.m(nv,E3);nv.prototype.getApiPaths=function(){return vPJ};
nv.prototype.getExtension=function(x){return _.Y(x,d_Z)};
nv.prototype.JSC$10995_buildRequest=function(x,G,D){G.metadataUpdateRequest&&(G=G.metadataUpdateRequest,x.encryptedVideoId=G.encryptedVideoId,G.liveChat&&(G=G.liveChat,x.liveChat||(x.liveChat={}),G.performAsExternalChannelId&&(x.liveChat.performAsExternalChannelId=G.performAsExternalChannelId),G.source&&(x.liveChat.source=G.source)));var K;if(D==null?0:(K=D.liveChat)==null?0:K.liveChatSettings)x.liveChat||(x.liveChat={}),D=D.liveChat.liveChatSettings,x.liveChat.newLiveChatSettings=D,x.liveChat.newLiveChatSettingsMask||
(x.liveChat.newLiveChatSettingsMask={}),D.emojiReactionSet&&(x.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var i5=function(){};
_.m(i5,E3);i5.prototype.getApiPaths=function(){return Yek};
i5.prototype.getExtension=function(x){return _.Y(x,_.Gbk)};
i5.prototype.JSC$10995_buildRequest=function(x,G,D){D.continuation?x.continuation=D.continuation:G.videoId&&(x.videoId=G.videoId);D.clientParams&&(x.clientParams=D.clientParams)};var g6=function(){};
_.m(g6,E3);g6.prototype.getApiPaths=function(){return IOE};
g6.prototype.getExtension=function(x){return _.Y(x,_.sV)};
g6.prototype.JSC$10995_buildRequest=function(x,G){x.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";x.fetchCommentsParams={};G.videoId&&(x.fetchCommentsParams.encryptedVideoId=G.videoId);G.postId&&(x.fetchCommentsParams.postId=G.postId);G.externalChannelId&&(x.fetchCommentsParams.externalChannelId=G.externalChannelId);G.linkedCommentId&&(x.fetchCommentsParams.linkedCommentId=G.linkedCommentId);(0,_.YS.isEmpty)(x.fetchCommentsParams)&&delete x.fetchCommentsParams};var u5=function(){};
_.m(u5,E3);u5.prototype.getApiPaths=function(){return f1};
u5.prototype.JSC$10995_buildRequest=function(x){x.browseId="FEnotifications_inbox"};
u5.prototype.getExtension=function(x){return _.Y(x,_.cg)};var d6=function(){};
_.m(d6,E3);d6.prototype.getApiPaths=function(){return IOE};
d6.prototype.JSC$10995_buildRequest=function(x,G){G.signal==="GET_NOTIFICATIONS_MENU"&&(x.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");G.ctoken&&(x.ctoken=G.ctoken)};
var yhk=function(){};
_.m(yhk,d6);yhk.prototype.getExtension=function(x){return _.Y(x,_.cg)};
var l8u=function(){};
_.m(l8u,d6);l8u.prototype.getExtension=function(x){return _.Y(x,Ykh)};var w6=function(){};
_.m(w6,E3);w6.prototype.getApiPaths=function(){return S3o};
w6.prototype.getExtension=function(x){return _.Y(x,_.cg)};
w6.prototype.JSC$10995_buildRequest=function(){};var q3=function(){};
_.m(q3,E3);q3.prototype.getApiPaths=function(){return fO8};
q3.prototype.getExtension=function(x){return _.Y(x,vGZ)||void 0};
q3.prototype.JSC$10995_buildRequest=function(x,G){G.params&&(x.params=G.params);G.secondaryParams&&(x.secondaryParams=G.secondaryParams)};var N3=function(){};
_.m(N3,E3);N3.prototype.getApiPaths=function(){return tKZ};
N3.prototype.getExtension=function(x){return _.Y(x,FR0)};
N3.prototype.JSC$10995_buildRequest=function(x,G){G.undo&&(x.undo=G.undo);G.serializedOptOut&&(x.serializedOptOut=G.serializedOptOut);G.serializedRecordInteractionsRequest&&(x.serializedRecordInteractionsRequest=G.serializedRecordInteractionsRequest)};var va=function(){};
_.m(va,E3);va.prototype.getApiPaths=function(){return EPs};
va.prototype.getExtension=function(x){return _.Y(x,Clo)};
va.prototype.JSC$10995_buildRequest=function(x,G){G.serializedInteractionsRequest&&(x.serializedRecordNotificationInteractionsRequest=G.serializedInteractionsRequest)};var JB=function(){};
_.m(JB,E3);JB.prototype.getApiPaths=function(){return Dwf};
JB.prototype.getExtension=function(x){return _.Y(x,ZRO)};
JB.prototype.JSC$10995_buildRequest=function(x,G,D){G=G===void 0?{}:G;D=D===void 0?{}:D;G.videoId?x.videoId=G.videoId:G.playlistId&&(x.playlistId=G.playlistId);var K,z=(K=G.offlineWebClientEligibility)!=null?K:D.offlineWebClientEligibility;z&&(x.offlineWebClientEligibility=z);var y;if(K=(y=G.preferredFormatType)!=null?y:D.preferredFormatType)x.preferredFormatType=K;var c;if(y=(c=G.lastOfflineQualitySettingsSavedMs)!=null?c:D.lastOfflineQualitySettingsSavedMs)x.lastOfflineQualitySettingsSavedMs=y;
G.params&&(x.params=G.params)};var fv=function(){};
_.m(fv,E3);fv.prototype.getApiPaths=function(){return ge};
fv.prototype.getExtension=function(x){return _.Y(x,_.Il)};
fv.prototype.JSC$10995_buildRequest=function(x,G,D){D=D===void 0?{}:D;G.token&&(x.continuation=G.token);D.formData&&(x.formData=D.formData)};var tB=function(){};
_.m(tB,E3);tB.prototype.getApiPaths=function(){return ge};
tB.prototype.getExtension=function(x){return _.Y(x,Ryk)};
tB.prototype.JSC$10995_buildRequest=function(x,G,D){D=D===void 0?{}:D;x.continuation=D.continuation};var kz=function(){};
_.m(kz,E3);kz.prototype.getApiPaths=function(){return ge};
kz.prototype.getExtension=function(x){return _.Y(x,_.mJ)};
kz.prototype.JSC$10995_buildRequest=function(x,G){var D,K=G.panelIdentifier||((D=G.identifier)==null?void 0:D.tag);K&&(x.panelId=K);var z;if((z=G.globalConfiguration)==null?0:z.params){var y;x.params=(y=G.globalConfiguration)==null?void 0:y.params}};
_.Nq.Object.defineProperties(kz.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Pa=function(){};
_.m(Pa,E3);Pa.prototype.getApiPaths=function(){return ge};
Pa.prototype.getExtension=function(x){return _.Y(x,bg0)};
Pa.prototype.JSC$10995_buildRequest=function(x,G){G.panelLoadingStrategy&&PYf(x,G.panelLoadingStrategy)};var Ei=function(){};
_.m(Ei,E3);Ei.prototype.getApiPaths=function(){return ge};
Ei.prototype.getExtension=function(x){return _.Y(x,gJo)};
Ei.prototype.JSC$10995_buildRequest=function(x,G){G.loadingStrategy&&PYf(x,G.loadingStrategy)};var hB=function(){};
_.m(hB,E3);hB.prototype.getApiPaths=function(){return ge};
hB.prototype.getExtension=function(x){return _.Y(x,_.Tx)};
hB.prototype.JSC$10995_buildRequest=function(x,G){G.panelLoadingStrategy&&PYf(x,G.panelLoadingStrategy)};var x4=function(){};
_.m(x4,E3);x4.prototype.getApiPaths=function(){return ge};
x4.prototype.getExtension=function(x){return _.Y(x,uu7)};
x4.prototype.JSC$10995_buildRequest=function(x,G){var D,K=(D=G.contentSourcePanelIdentifier)==null?void 0:D.tag;K&&(x.panelId=K);var z;if((z=G.globalConfiguration)==null?0:z.params){var y;x.params=(y=G.globalConfiguration)==null?void 0:y.params}};var GO=function(){};
_.m(GO,E3);GO.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
GO.prototype.getExtension=function(x){return _.Y(x,d9u)};
GO.prototype.JSC$10995_buildRequest=function(x,G){G.params&&(x.params=G.params)};var D0=function(){};
_.m(D0,E3);D0.prototype.getApiPaths=function(){return sQZ};
D0.prototype.getExtension=function(x){return _.Y(x,Nqs)};
D0.prototype.JSC$10995_buildRequest=function(x,G){G.externalChannelId&&(x.externalChannelId=G.externalChannelId);G.superChatAction&&(x.superChatAction=G.superChatAction);G.superStickersAction&&(x.superStickersAction=G.superStickersAction)};var KO=function(){};
_.m(KO,E3);KO.prototype.getApiPaths=function(){return BQE};
KO.prototype.getExtension=function(x){return _.Y(x,Uls)||_.Y(x,QgL)};
KO.prototype.JSC$10995_buildRequest=function(x,G){G.videoIds?x.videoIds=G.videoIds:G.videoId&&(x.videoIds=[G.videoId]);G.playlistId&&(x.playlistId=G.playlistId);G.params&&(x.params=G.params);x.excludeWatchLater=!1};var zO=function(){};
_.m(zO,E3);zO.prototype.getApiPaths=function(){return TQZ};
zO.prototype.getExtension=function(x){return _.Y(x,_.IL)};
zO.prototype.JSC$10995_buildRequest=function(x,G,D){D.create_playlist_title?x.title=D.create_playlist_title:G.title&&(x.title=G.title);if(D.create_playlist_privacy_status&&typeof D.create_playlist_privacy_status==="number"){a:{var K=D.create_playlist_privacy_status;if(K!==0){if(K===1){K="PUBLIC";break a}if(K===2){K="UNLISTED";break a}}K="PRIVATE"}x.privacyStatus=K}else G.privacyStatus&&(x.privacyStatus=G.privacyStatus);D.create_playlist_description&&(x.description=D.create_playlist_description);G.videoIds&&
(x.videoIds=G.videoIds);G.params&&(x.params=G.params);G.sourcePlaylistId&&(x.sourcePlaylistId=G.sourcePlaylistId)};var ai=function(){};
_.m(ai,E3);ai.prototype.getApiPaths=function(){return ZJ0};
ai.prototype.getExtension=function(x){return _.Y(x,qqs)};
ai.prototype.JSC$10995_buildRequest=function(x,G){x.playlistId=G.playlistId};var oi=function(){};
_.m(oi,E3);oi.prototype.getApiPaths=function(){return jr8};
oi.prototype.getExtension=function(x){return _.Y(x,rx8)};
oi.prototype.JSC$10995_buildRequest=function(x,G){G.playlistId&&(x.playlistId=G.playlistId);G.params&&(x.params=G.params)};var yv=function(){};
_.m(yv,E3);yv.prototype.getApiPaths=function(){return Paq};
yv.prototype.getExtension=function(x){return _.Y(x,_.YV)||void 0};
yv.prototype.JSC$10995_buildRequest=function(x,G){G.actions&&(x.actions=G.actions);G.params&&(x.params=G.params);G.playlistId&&(x.playlistId=G.playlistId)};var lL=function(){};
_.m(lL,E3);_.a=lL.prototype;_.a.getApiPaths=function(){return hmh};
_.a.getExtension=function(x){return _.Y(x,_.MB)};
_.a.JSC$10995_buildRequest=function(x,G){G.videoId&&(x.playerRequest={videoId:G.videoId},G.playerParams&&(x.playerRequest.params=G.playerParams),G.racyCheckOk&&(x.playerRequest.racyCheckOk=!!G.racyCheckOk),G.contentCheckOk&&(x.playerRequest.contentCheckOk=!!G.contentCheckOk));G.params&&(x.params=G.params);G.inputType&&(x.inputType=G.inputType);x.disablePlayerResponse=!0};
_.a.getRequestConfig=function(x){var G;(x=this.JSC$11002_getStoreKey(x))&&(G={storeStrategy:{storeKey:x}});_.B("web_log_reels_ticks")&&(G=G||{},G.requestTick="r_wrs",G.responseTick="r_wrr");return G};
_.a.JSC$11002_getStoreKey=function(x){x=this.getExtension(x);if(_.B("shorts_controller_retrieve_seedless_sequence_v2")){if((x==null?void 0:x.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.ux("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if((_.B("web_prefetch_riw_for_next_video")||_.B("web_shorts_prefetch_service_enabled"))&&x!=null&&x.videoId){var G={videoId:x.videoId};x.params&&(G.params=x.params);return _.ux("reel_item_watch",G)}};var cn=function(){};
_.m(cn,E3);_.a=cn.prototype;_.a.getApiPaths=function(){return xz9};
_.a.getExtension=function(x){return _.Y(x,_.MB)};
_.a.JSC$10995_buildRequest=function(x,G,D){D=D===void 0?{}:D;x.sequenceParams=G.sequenceParams;var K;((K=D)==null?0:K.contentPlaybackContext)&&_.B("web_shorts_prefetch_service_enabled")&&(x.playbackContext={contentPlaybackContext:D.contentPlaybackContext})};
_.a.JSC$11002_getStoreKey=function(x){if(_.B("shorts_controller_retrieve_seedless_sequence_v2")&&(x=this.getExtension(x),x==null?0:x.sequenceParams))return _.ux("reel_watch_sequence",{sequenceParams:x.sequenceParams})};
_.a.getRequestConfig=function(x){x=this.JSC$11002_getStoreKey(x);var G;x&&(G={storeStrategy:{storeKey:x}});_.B("reel_watch_sequence_request_log_ticks")&&(G=G||{},G.requestTick="r_wsrs",G.responseTick="r_wsrr",G.processorTick="r_wsrp");return G};
var TO=function(){};
_.m(TO,E3);TO.prototype.getApiPaths=function(){return xz9};
TO.prototype.getExtension=function(x){return _.Y(x,_.Il)};
TO.prototype.JSC$10995_buildRequest=function(x,G,D){D=D===void 0?{}:D;G.token&&(x.continuation=G.token);var K;((K=D)==null?0:K.contentPlaybackContext)&&_.B("web_shorts_prefetch_service_enabled")&&(x.playbackContext={contentPlaybackContext:D.contentPlaybackContext})};
TO.prototype.getRequestConfig=function(x){x=this.JSC$11002_getStoreKey(x);var G;x&&(G={storeStrategy:{storeKey:x}});_.B("reel_watch_sequence_request_log_ticks")&&(G=G||{},G.requestTick="r_wsrs",G.responseTick="r_wsrr",G.processorTick="r_wsrp");return G};var Wn=function(){};
_.m(Wn,E3);Wn.prototype.getApiPaths=function(){return VK9};
Wn.prototype.getExtension=function(x){return _.Y(x,_.kKq)};
Wn.prototype.JSC$10995_buildRequest=function(x,G,D){D=D===void 0?{}:D;G.flagAction&&(x.action=G.flagAction);G.flagRequestType&&(x.flagRequestType=G.flagRequestType);G.additionalDetailCheckboxChecked&&(x.additionalDetailCheckboxChecked=G.additionalDetailCheckboxChecked);G.legalCheckboxChecked&&(x.legalCheckboxChecked=G.legalCheckboxChecked);G={};D.flag_issue_type!==void 0&&(G.issue=D.flag_issue_type);D.flag_affiliation!==void 0&&(G.affiliation=D.flag_affiliation);D.flag_full_name&&(G.fullName=D.flag_full_name);
Object.keys(G).length&&(x.legalReportDetails=G);if(D.flag_description||D.text)x.userComments=D.flag_description||D.text;G={};D.minutes!==void 0&&D.seconds!==void 0&&(G.minutes=D.minutes,G.seconds=D.seconds);D.vss_id&&(G.vssId=D.vss_id);Object.keys(G).length&&(x.videoReportDetails=G);G={};D.video_ids&&(G.videoIds=D.video_ids);D.impersonated_channel_url&&(G.impersonatedChannelUrl=D.impersonated_channel_url);Object.keys(G).length&&(x.channelAbuseReportDetails=G)};
_.Nq.Object.defineProperties(Wn.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var eP=function(){};
_.m(eP,E3);eP.prototype.getApiPaths=function(){return Y3s};
eP.prototype.getExtension=function(x){return _.Y(x,Yx9)};
eP.prototype.JSC$10995_buildRequest=function(x,G){G.blockedForKidsContent&&(x.blockedForKidsContent=G.blockedForKidsContent)};var Z0=function(){};
_.m(Z0,E3);Z0.prototype.getApiPaths=function(){return K3Z};
Z0.prototype.getExtension=function(x){return _.Y(x,Mtf)};
Z0.prototype.JSC$10995_buildRequest=function(x,G,D){x.params=G.params;D.impersonated_channel_url&&(x.impersonatedChannelUrl=D.impersonated_channel_url)};var Mj=function(){};
_.m(Mj,E3);Mj.prototype.getApiPaths=function(){return dZo};
Mj.prototype.getExtension=function(x){return _.Y(x,_.m20)};
Mj.prototype.JSC$10995_buildRequest=function(x,G){G.items&&(x.items=G.items);G.kidGaiaId&&(x.kidGaiaId=G.kidGaiaId)};var Qv=function(){};
_.m(Qv,E3);Qv.prototype.getApiPaths=function(){return ri7};
Qv.prototype.getExtension=function(x){return _.Y(x,_.XRh)};
Qv.prototype.JSC$10995_buildRequest=function(x,G){G.params&&(x.params=G.params);G.targetId&&(x.targetId=G.targetId)};var pO=function(){};
_.m(pO,E3);pO.prototype.getApiPaths=function(){return yGs};
pO.prototype.getExtension=function(x){return _.Y(x,mVh)};
pO.prototype.JSC$10995_buildRequest=function(x,G){G.externalVideoId&&(x.externalVideoId=G.externalVideoId);G.query&&(x.query=G.query);G.sourceTimelines&&(x.sourceTimelines=G.sourceTimelines)};var Vv=function(){};
_.m(Vv,E3);Vv.prototype.getApiPaths=function(){return lHi};
Vv.prototype.getExtension=function(x){return _.Y(x,_.Il)||void 0};
Vv.prototype.JSC$10995_buildRequest=function(x,G){G.token&&(x.continuation=G.token)};
_.chk=function(){};
_.m(_.chk,E3);_.a=_.chk.prototype;_.a.getApiPaths=function(){return lHi};
_.a.getExtension=function(x){return _.Y(x,_.Wi)||void 0};
_.a.isNavigationCommand=function(){return!0};
_.a.JSC$11002_getStoreKey=function(x,G){G=G===void 0?{}:G;if(!G.disableCache&&(x=this.getExtension(x))&&x.query)return G={query:x.query},x.params&&(G.params=x.params),_.ux("search",G)};
_.a.JSC$10995_buildRequest=function(x,G,D){G.query&&(x.query=G.query);G.params&&(x.params=G.params);if(!_.B("web_forward_suggest_stats_killswitch")){var K=_.Y(G,Mus);K&&(x.suggestStats=K)}var z;!_.B("kevlar_searchbox_stats_killswitch")&&((z=D.tempData)==null?0:z.gs_l)&&!_.Y(G,Mus)&&(x.webSearchboxStatsUrl="/search?oq="+(D.tempData.oq||"")+"&gs_l="+D.tempData.gs_l);var y;if((y=D.tempData)==null?0:y.entityMid)G=x.suggestionSearchParams||{},G.entityMid=D.tempData.entityMid,x.suggestionSearchParams=G};
_.a.getRequestConfig=function(x,G){G=G===void 0?{}:G;x=this.JSC$11002_getStoreKey(x,G);var D;x&&(D={storeStrategy:{storeKey:x}});_.B("web_log_search_ticks_ks")||(D=D||{},D.requestTick="sr_s",D.responseTick="sr_r");return D};var bL=function(){};
_.m(bL,E3);bL.prototype.getApiPaths=function(){return UZs};
bL.prototype.getExtension=function(x){return _.Y(x,ooq)};
bL.prototype.JSC$10995_buildRequest=function(x,G){G.serializedGetSharingProviderDataParams&&(x.serializedGetSharingProviderDataParams=G.serializedGetSharingProviderDataParams)};var LO=function(){};
_.m(LO,E3);LO.prototype.getApiPaths=function(){return RmJ};
LO.prototype.getExtension=function(x){return _.Y(x,NP8)};
LO.prototype.JSC$10995_buildRequest=function(x,G){G.endpoint&&(x.endpoint=G.endpoint);G.action&&(x.action=G.action)};var Bn=function(){};
_.m(Bn,E3);Bn.prototype.getApiPaths=function(){return MKJ};
Bn.prototype.getExtension=function(x){return _.Y(x,NUZ)};
Bn.prototype.JSC$10995_buildRequest=function(x,G){x.videoId=G.videoId;G.scheduledRedirectMetadataSourceVideoId&&(x.scheduledRedirectMetadata={sourceVideoId:G.scheduledRedirectMetadataSourceVideoId})};var rs=function(){};
_.m(rs,E3);rs.prototype.getApiPaths=function(){return eJi};
rs.prototype.getExtension=function(x){return _.Y(x,_.uaZ)};
rs.prototype.JSC$10995_buildRequest=function(x,G){x.params=G.params;x.correctionText=G.correctionText};var sr=function(){};
_.m(sr,E3);sr.prototype.getApiPaths=function(){return xwC};
sr.prototype.getExtension=function(x){return _.Y(x,_.HrJ)};
sr.prototype.JSC$10995_buildRequest=function(x,G){G.params&&(x.params=G.params);x.searchQuery=G.searchQuery;x.languageCode=G.languageCode;x.kind=G.kind;x.name=G.name;x.externalVideoId=G.externalVideoId};var Y4=function(){};
_.m(Y4,E3);Y4.prototype.getApiPaths=function(){return F37};
Y4.prototype.getExtension=function(x){return _.Y(x,Gcs)};
Y4.prototype.JSC$10995_buildRequest=function(x,G){G.params&&(x.params=G.params)};var mD=function(x){this.JSC$15948_storeWithEntities=x};
_.m(mD,E3);mD.prototype.getApiPaths=function(){return Ka8};
mD.prototype.getExtension=function(x){return _.Y(x,KPE)||_.Y(x,aiZ)};
mD.prototype.JSC$10995_buildRequest=function(x,G,D){D.client_data&&(x.clientData=D.client_data);if(G.commerceActionConfig){var K=G.commerceActionConfig;G=K.actionId;K=K.commerceActionParams;G&&(x.actionId=G);K&&(x.commerceActionParams=K)}else{var z=G.actionId,y=G.commerceActionParams;D=G.entityKeys;z&&(x.actionId=z);y&&(x.commerceActionParams=y);var c;G=(K=this.JSC$15948_storeWithEntities)==null?void 0:(c=K.getState())==null?void 0:c.entities;if(D&&G){K=[];c=_.l(D);for(D=c.next();!D.done;D=c.next())if(z=
D.value,D=_.x_(z).entityType,z=_.zm(G,D,z))y={},K.push((y[D]=z,y));x.entityMutationPayloads=K}}};
mD.prototype.getRequestConfig=function(x){var G,D=(G=_.Y(x,KPE))==null?void 0:G.requestSequenceType;if(D&&x.clickTrackingParams&&D!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:x.clickTrackingParams,sequenceType:D}}};
mD[dq]=[z0];var Hn=function(){};
_.m(Hn,E3);Hn.prototype.getApiPaths=function(){return Ckq};
Hn.prototype.getExtension=function(x){return _.Y(x,_.YVh)};
Hn.prototype.JSC$10995_buildRequest=function(x,G){G.feedbackData&&(x.feedbackData=G.feedbackData);G.params&&(x.itemParams=G.params)};
_.Nq.Object.defineProperties(Hn.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var $4=function(){};
_.m($4,E3);$4.prototype.getApiPaths=function(){return IHk};
$4.prototype.getExtension=function(x){return _.Y(x,m6E)};
$4.prototype.JSC$10995_buildRequest=function(x,G,D){D.payments_payload&&(x.paymentsPayload=D.payments_payload);D.offer_params&&(x.offerParams=D.offer_params);G.transactionParams&&(x.transactionParams=G.transactionParams)};var FG=function(){};
_.m(FG,E3);FG.prototype.getApiPaths=function(){return jQ7};
FG.prototype.getExtension=function(x){return _.Y(x,_.HBE)};
FG.prototype.JSC$10995_buildRequest=function(x,G,D){D=D===void 0?{}:D;G.buybucketParams&&(x.buybucketData={params:G.buybucketParams},G.stickerParams?x.buybucketData.stickerParams=G.stickerParams:(D.rich_chat_message?x.buybucketData.richChatMessage=D.rich_chat_message:D.chat_message_text&&(x.buybucketData.chatMessageText=D.chat_message_text),D.purchase_price_micros&&(x.buybucketData.purchasePriceMicros=D.purchase_price_micros.toString())));G.donationAmountMicros&&(x.tipAmountMicros=G.donationAmountMicros,
G.tipParams&&(x.tipParams=G.tipParams));G.offerParams&&(x.offerParams=G.offerParams);G.productData&&(x.productData=G.productData);G.transactionParams&&(x.transactionParams=G.transactionParams)};var CO=function(){};
_.m(CO,E3);CO.prototype.getApiPaths=function(){return OFs};
CO.prototype.getExtension=function(x){return _.Y(x,Czs)};
CO.prototype.JSC$10995_buildRequest=function(x,G){G.updateFopParams&&(x.updateFopParams=G.updateFopParams)};var Ii=function(){};
_.m(Ii,E3);Ii.prototype.getApiPaths=function(){return XPk};
Ii.prototype.getExtension=function(x){return _.Y(x,_.hc)};
Ii.prototype.JSC$10995_buildRequest=function(x,G){G.couponCode&&(x.couponCode=G.couponCode);G.params&&(x.itemParams=G.params)};var jP=function(){};
_.m(jP,E3);jP.prototype.getApiPaths=function(){return AGi};
jP.prototype.getExtension=function(x){return _.Y(x,_.zzk)};
jP.prototype.JSC$10995_buildRequest=function(x,G,D){D=D===void 0?{}:D;G.params&&(x.params=G.params);D.ctk&&(x.clientToken=D.ctk)};var Or=function(x){this.JSC$15983_storeWithEntities=x};
_.m(Or,E3);Or.prototype.getApiPaths=function(){return Uzq};
Or.prototype.getExtension=function(x){return _.Y(x,_.OV)};
Or.prototype.JSC$10995_buildRequest=function(x,G,D){D.purchase_price_micros&&(x.productData={pdgData:{purchasePriceMicros:D.purchase_price_micros.toString()}},D.rich_chat_message&&(x.productData.pdgData.richChatMessage=D.rich_chat_message),D.currency_code&&(x.productData.pdgData.currencyCode=D.currency_code));G.transactionParams&&(x.transactionParams=G.transactionParams);G.clientLocationContext&&(x.clientLocationContext=G.clientLocationContext);D.payments_payload&&(x.paymentsPayload=D.payments_payload);
D.funds_guarantee_callback_client_data&&(x.fundsGuaranteeCallbackClientData=D.funds_guarantee_callback_client_data);var K,z;D=(K=this.JSC$15983_storeWithEntities)==null?void 0:(z=K.getState())==null?void 0:z.entities;if(G.entityKeys&&D){K=[];G=_.l(G.entityKeys);for(z=G.next();!z.done;z=G.next()){var y=z.value;z=_.x_(y).entityType;if(y=_.zm(D,z,y)){var c={};K.push((c[z]=y,c))}}x.entityMutationPayloads=K}};
Or[dq]=[z0];var XG=function(){};
_.m(XG,E3);XG.prototype.getApiPaths=function(){return RJs};
XG.prototype.getExtension=function(x){return _.Y(x,$6i)};
XG.prototype.JSC$10995_buildRequest=function(x,G,D){D=D===void 0?{}:D;D.backend_analytics&&(x.serializedBackendAnalyticsEvent=D.backend_analytics);G.offerParams&&(x.offerParams=G.offerParams)};var AV=function(){};
_.m(AV,E3);AV.prototype.getApiPaths=function(){return XPk};
AV.prototype.getExtension=function(x){return _.Y(x,JwL)};
AV.prototype.JSC$10995_buildRequest=function(x,G){G.params&&(x.itemParams=G.params)};var Ur=function(){};
_.m(Ur,E3);Ur.prototype.getApiPaths=function(){return Seo};
Ur.prototype.getExtension=function(x){return _.Y(x,_.Te7)};
Ur.prototype.JSC$10995_buildRequest=function(x,G,D){D.resume_time_ms&&(x.resumeTimeMs=D.resume_time_ms);G.pauseParams&&(x.pauseParams=G.pauseParams)};var Ri=function(){};
_.m(Ri,E3);Ri.prototype.getApiPaths=function(){return nt8};
Ri.prototype.getExtension=function(x){return _.Y(x,_.FPs)};
Ri.prototype.JSC$10995_buildRequest=function(x,G,D){D=D===void 0?{}:D;D.c&&(x.redeemCode=D.c);D.rd&&(x.riskData=D.rd);D.ctk&&(x.clientToken=D.ctk)};var SP=function(){};
_.m(SP,E3);SP.prototype.getApiPaths=function(){return iFZ};
SP.prototype.getExtension=function(x){return _.Y(x,_.WPs)};
SP.prototype.JSC$10995_buildRequest=function(x,G){G.resumeParams&&(x.resumeParams=G.resumeParams)};var nO=function(x,G){this.clientName=x;this.defaultExpirationDelayMs=G};
nO.prototype.put=function(x,G){var D=this,K;return _.T(function(z){K=Object.assign({},G.data);K.key=x;K.clientName=D.clientName;K.expireTimestampMs===void 0&&(K.expireTimestampMs=(Math.round((0,_.kK)())+D.defaultExpirationDelayMs).toString());return z.return(D.putInternal(x,K))})};
nO[dq]=[Mr,YFZ];var Tm9=function(){nO.apply(this,arguments);this.JSC$16013_responseStore=new Map};
_.m(Tm9,nO);_.a=Tm9.prototype;_.a.get=function(x){var G=this;return _.T(function(D){return D.return(DQ(G,x))})};
_.a.putInternal=function(x,G){var D=this,K,z,y;return _.T(function(c){K=D.defaultExpirationDelayMs;G.expireTimestampMs&&(K=Number(G.expireTimestampMs)-Math.round((0,_.kK)()),z=_.Gz("mweb_override_response_store_expiration_ms"),z>0&&z<K&&(K=z));y=setTimeout(function(){D.remove(x)},K);
D.JSC$16013_responseStore.set(x,{entryData:G,timer:y});_.c5(c)})};
_.a.remove=function(x){var G=this;return _.T(function(D){Wlu(G,x);_.c5(D)})};
_.a.removeAll=function(){var x=this;return _.T(function(G){x.JSC$16013_responseStore.forEach(function(D){clearTimeout(D.timer)});
x.JSC$16013_responseStore.clear();_.c5(G)})};
_.a.has=function(x){return!!this.JSC$16013_responseStore.get(x)};
_.a.getKeys=function(){return this.JSC$16013_responseStore.keys()};
var DQ=function(x,G){if(x=x.JSC$16013_responseStore.get(G))return new _.Gp(x.entryData)},Wlu=function(x,G){var D=x.JSC$16013_responseStore.get(G);
D&&(clearTimeout(D.timer),x.JSC$16013_responseStore.delete(G))};var Ek$;var G5h=function(x,G,D){nO.call(this,x,G);this.token=D};
_.m(G5h,nO);_.a=G5h.prototype;_.a.get=function(x){var G=this,D,K;return _.T(function(z){return z.nextAddress==1?_.Z(z,xKf(G.token),2):z.nextAddress!=3?(D=z.yieldResult,_.Z(z,D.get("ResponseStore",[x,G.clientName]),3)):(K=z.yieldResult)?z.return(new _.Gp(K)):z.return(void 0)})};
_.a.putInternal=function(x,G){var D=this,K;return _.T(function(z){if(z.nextAddress==1)return _.Z(z,xKf(D.token),2);K=z.yieldResult;return _.Z(z,K.put("ResponseStore",G),0)})};
_.a.remove=function(x){var G=this,D;return _.T(function(K){if(K.nextAddress==1)return _.Z(K,xKf(G.token),2);D=K.yieldResult;return K.return(D.delete("ResponseStore",[x,G.clientName]))})};
_.a.removeAll=function(){var x=this,G;return _.T(function(D){if(D.nextAddress==1)return _.Z(D,xKf(x.token),2);G=D.yieldResult;return _.Z(D,$UZ(G,IDBKeyRange.only(x.clientName)),0)})};
_.a.has=function(){throw Error("Si");};_.iL=new _.wq("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var e60=function(x){var G;this.stateTagsData=(G=x.responseContext)==null?void 0:G.stateTags},ZQu=function(x){var G;
return((G=x.stateTagsData)==null?void 0:G.stateTagsModified)||[]};var ML7;ML7=function(x){this.JSC$16026_responseStore=x};
_.Rp=function(x,G,D){if(!_.B("state_tags_killswitch")){var K=new e60(G);if(ZQu(K).length>0){var z=x.JSC$16026_responseStore.getKeys();z=_.l(z);for(var y=z.next();!y.done;y=z.next()){y=y.value;var c=DQ(x.JSC$16026_responseStore,y);if(c){var W=_.DU(c);a:{var e=void 0;c=ZQu(K);W=((e=(new e60(W)).stateTagsData)==null?void 0:e.relevantStateTags)||[];e=_.l(W);for(W=e.next();!W.done;W=e.next())if(W=W.value,W.stateTag!=null&&c.includes(W.stateTag)&&W.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){c=
!0;break a}c=!1}c&&Wlu(x.JSC$16026_responseStore,y)}}}}var Q;K=(Q=G.responseContext)==null?void 0:Q.maxAgeSeconds;_.B("web_prefetch_riw_for_next_video")&&!K&&G.status==="REEL_ITEM_WATCH_STATUS_SUCCEEDED"&&(K=3600);D&&K&&Number(K)>0&&(G=Eu(G,K),x.JSC$16026_responseStore.put(D,new _.Gp(G)))};
ML7.prototype.handleResponse=function(x,G){if(!G)throw Error("Ti");var D,K;G=(D=G.config)==null?void 0:(K=D.storeStrategy)==null?void 0:K.storeKey;_.Rp(this,x,G)};
ML7[dq]=[_.xn];_.S1P=new _.wq("STORE_RESPONSE_PROCESSOR_TOKEN");var Qjs=function(x){this.JSC$16029_responseStore=x};
Qjs.prototype.handleResponse=function(x,G){if(G.input.match(_.qW(xz9))){var D;if(x==null?0:(D=x.entries)==null?0:D.length)for(x=_.l(x.entries),G=x.next();!G.done;G=x.next()){D=G.value.command;var K=void 0;G=(K=_.Y(D,_.MB))==null?void 0:K.unserializedPrefetchData;if(!D||!G)break;K=(new lL).JSC$11002_getStoreKey(D);var z=_.Y(G,pRu),y=void 0,c=void 0,W=void 0,e=_.Gz("web_shorts_prefetch_service_ttl_seconds")>0?_.Gz("web_shorts_prefetch_service_ttl_seconds"):Number((W=(y=z)==null?void 0:(c=y.responseContext)==
null?void 0:c.maxAgeSeconds)!=null?W:3600);K&&e>0&&(z=Eu(z,e),this.JSC$16029_responseStore.put(K,new _.Gp(z)));D=(new KF).JSC$11002_getStoreKey(D);G=_.Y(G,xlZ);y=z=K=void 0;c=_.Gz("web_shorts_prefetch_service_ttl_seconds")>0?_.Gz("web_shorts_prefetch_service_ttl_seconds"):Number((y=(K=G)==null?void 0:(z=K.responseContext)==null?void 0:z.maxAgeSeconds)!=null?y:3600);D&&c>0&&(G=Eu(G,c),this.JSC$16029_responseStore.put(D,new _.Gp(G)))}}};
Qjs[dq]=[_.xn];var pjs=function(x){this.innertubeTransportService=x};
pjs[dq]=[_.Hi];var VLZ=new _.wq("SUBMIT_API_SERVICE_TOKEN");var gs=function(){this.scheduler=_.rv()},bQ0;
gs.prototype.pause=function(){throw Error("Ui");};
gs.prototype.resume=function(){throw Error("Ui");};
gs.prototype.queue=function(x){var G=this,D=_.Ss(),K=_.Bw(this.scheduler,function(){try{var z;if(_.y2.instance)var y=_.y2.instance;else{var c=new _.LL("Error: Unexpected uninitialized CommandHandler.");_.I4(c);y=void 0}(z=y)==null||z.resolveCommand(x.command);D.resolve()}catch(W){D.reject(W)}});
D.promise.thenCatch(function(z){z instanceof _.S8&&G.scheduler.cancelJob(K)});
return D.promise};
gs.prototype.queueAll=function(x){var G=new Map;x=_.l(x);for(var D=x.next();!D.done;D=x.next())D=D.value,G.set(D.id,this.queue(D));return G};var BmJ=function(x,G){var D=this;this.taskModel=x;this.onTaskCancelledCallback=G;this.resolver=_.Ss();x=x.proto.prefetchConfig;if(!x)throw Error("Vi");if(!x.prefetchAction)throw Error("Wi");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(K){K instanceof _.S8&&(Ll8(D,D.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),D.onTaskCancelledCallback(D.taskModel.id,D.jobId),D.tick("pcc"));
throw K;});
this.timerName=this.taskModel.id;_.$O(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},rhZ=function(x){switch(x.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},Ll8=function(x,G){_.Hg({prefetchInfo:{cancellationReason:G}},x.timerName)};
BmJ.prototype.tick=function(x){_.Fs(x,void 0,this.timerName)};var ds=function(){var x=this;this.scheduler=_.rv();this.maxInflightTasks=_.Gz("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.Gz("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new t50;this.onTaskCancelled=function(G,D){D&&x.scheduler.cancelJob(D);sjh(x,G);uL(x,3)}},Y68=function(){ds.instance||(ds.instance=new ds);
return ds.instance};
ds.prototype.pause=function(){this.prefetchCoordinatorState=0};
ds.prototype.resume=function(){uL(this,0)};
ds.prototype.queue=function(x){x=mR9(this,x);uL(this,1);return x};
ds.prototype.queueAll=function(x){var G=new Map;x=_.l(x);for(var D=x.next();!D.done;D=x.next())D=D.value,G.set(D.id,mR9(this,D));uL(this,1);return G};
var mR9=function(x,G){var D=x.allPrefetchTasks.get(G.id);if(D)return D.cancellablePromise;try{var K=new BmJ(G,x.onTaskCancelled)}catch(y){return _.rk(y)}D=K;D.tick("pcq");var z={prefetchInfo:{taskId:D.taskModel.id,isPrefetch:!0,fetchAction:D.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:D.taskModel.command.clickTrackingParams}};D.taskModel.csn&&(z.clientScreenNonce=D.taskModel.csn);_.Hg(z,D.timerName);x.allPrefetchTasks.set(G.id,K);x.drainingHeap.insert(-rhZ(K),K);return K.cancellablePromise},
uL=function(x,G){x.prefetchCoordinatorState===G&&(x.prefetchCoordinatorState=2,HQE(x))},HQE=function(x){for(var G={};x.prefetchCoordinatorState!==0;G={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(x.inflightPrefetchTasks.size>=x.maxInflightTasks){x.prefetchCoordinatorState=3;break}G.prefetchTask$jscomp$1=x.drainingHeap.remove();if(!G.prefetchTask$jscomp$1){x.prefetchCoordinatorState=1;break}G.taskId$jscomp$3=G.prefetchTask$jscomp$1.taskModel.id;if(x.allPrefetchTasks.has(G.taskId$jscomp$3)){var D=-1;x.coordinatorTimeoutMs>0&&(D=_.Bw(x.scheduler,function(K){return function(){ws(x,K.taskId$jscomp$3,Error("Xi"))}}(G),x.coordinatorTimeoutMs));
x.inflightPrefetchTasks.set(G.taskId$jscomp$3,D);if(!x.JSC$16047_commandHandler){if(!_.y2.instance){ws(x,G.taskId$jscomp$3,Error("Yi"));continue}x.JSC$16047_commandHandler=_.y2.instance}a:switch(G.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":D=1;break a;default:D=0}G.prefetchTask$jscomp$1.jobId=x.scheduler.addJob(function(K){return function(){K.prefetchTask$jscomp$1.tick("pcr");try{x.JSC$16047_commandHandler.resolveCommand(K.prefetchTask$jscomp$1.taskModel.command)||
ws(x,K.taskId$jscomp$3,Error("Zi"))}catch(z){ws(x,K.taskId$jscomp$3,z)}}}(G),D,0)}}},$Rk=function(x,G){(G=sjh(x,G))!=null&&(G.resolver.resolve(),G.tick("pce"));
uL(x,3)},ws=function(x,G,D){(G=sjh(x,G,D))!=null&&(G.resolver.reject(D),G.tick("pcc"),Ll8(G,"CANCELLATION_REASON_ERROR"),Math.random()<=_.Gz("prefetch_coordinator_error_logging_sampling_rate")&&(D=new _.LL("Prefetch Command failed.",G.taskModel.id,D.message),_.I4(D)));
uL(x,3)},sjh=function(x,G,D){var K=x.allPrefetchTasks.get(G);
K?((D=x.inflightPrefetchTasks.get(G))&&D!==-1&&x.scheduler.cancelJob(D),x.inflightPrefetchTasks.delete(G),x.allPrefetchTasks.delete(G)):_.O9(new _.LL("Unexpected missing prefetch task when deleting task.",G,D==null?void 0:D.message));return K};var Flq=function(x,G,D,K,z){this.id=x;this.triggerOn=G;this.cancelOn=D;this.command=K;this.proto=z};
_.Nq.Object.defineProperties(Flq.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var Cfo=function(){this.JSC$16052_prefetchCoordinator=Y68();bQ0||(bQ0=new gs);this.defaultCoordinator=bQ0},I8J;
Cfo.getInstance=function(){I8J||(I8J=new Cfo);return I8J};
Cfo.prototype.get=function(x){switch(x){case 0:return this.JSC$16052_prefetchCoordinator;default:return this.defaultCoordinator}};var qj=function(){this.coordinatorSupplier=Cfo.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},Xjq=function(x){var G=_.CC()||void 0,D=Object.keys(jjq)[0];
if(D){var K=x.taskIdByTriggerId.get(D);if(K!=null){x.taskIdByTriggerId.delete(D);D=[];K=_.l(K);for(var z=K.next();!z.done;z=K.next())if(z=x.tasks.get(z.value))G!=="UNDEFINED_CSN"&&(z.csn=G),D.push(z);D=zB$(D);G=[];D=_.l(D);for(K=D.next();!K.done;K=D.next()){z=_.l(K.value);K=z.next().value;z=z.next().value;K=x.coordinatorSupplier.get(K).queueAll(z);K=_.l(K);var y=K.next();for(z={};!y.done;z={taskId$jscomp$9:void 0},y=K.next()){var c=_.l(y.value);y=c.next().value;c=c.next().value;z.taskId$jscomp$9=
y;y=c;G.push(z.taskId$jscomp$9);x.queuedPromisesByTask.set(z.taskId$jscomp$9,_.M_(y,function(W){return function(){OQs(x,W.taskId$jscomp$9)}}(z)))}}}}else _.O9(new _.LL("Unexpected malformed TriggerEvent."))};
qj.prototype.trigger=function(x,G){var D=this,K=this.tasks.get(x);if(!K||this.queuedPromisesByTask.has(x))return!1;AhJ(this,x,K.triggerOn);G!=="UNDEFINED_CSN"&&(K.csn=G);G=this.coordinatorSupplier.get(K.taskType).queue(K);this.queuedPromisesByTask.set(x,_.M_(G,function(){OQs(D,x)}));
return!0};
qj.prototype.cancel=function(x){var G=this.queuedPromisesByTask.get(x);if(G)G.cancel();else return OQs(this,x)};
var OQs=function(x,G){x.queuedPromisesByTask.delete(G);var D=x.tasks.get(G);if(!D)return!1;x.tasks.delete(G);AhJ(x,G,D.triggerOn);(D=KN$(D.cancelOn))&&(x=x.taskIdByCancelId.get(D))&&x.delete(G);return!0},AhJ=function(x,G,D){(D=Object.keys(D)[0])&&(x=x.taskIdByTriggerId.get(D))&&x.delete(G)};var jjq={taskRegistered:{}},Nj=function(){qj.instance||(qj.instance=new qj);this.JSC$16061_taskManager=qj.instance};
_.m(Nj,Fr);
Nj.prototype.resolveCommand=function(x){var G=this,D,K;return _.T(function(z){D=_.Y(x,VVi);if((K=D)==null||!K.tasks){var y=new _.LL("RegisterTasksCommand is missing tasks.");_.I4(y);return z.return()}y=G.JSC$16061_taskManager;for(var c=_.l(D.tasks),W=c.next();!W.done;W=c.next())if(W=W.value,W=W.id&&W.triggerOn&&W.cancelOn&&W.command?new Flq(W.id,W.triggerOn,W.cancelOn,W.command,W):void 0,W){var e=Object.keys(W.triggerOn)[0];if(e){var Q=KN$(W.cancelOn);Q?(y.tasks.set(W.id,W),y.taskIdByTriggerId.has(e)||y.taskIdByTriggerId.set(e,
new Set),y.taskIdByTriggerId.get(e).add(W.id),y.taskIdByCancelId.has(Q)||y.taskIdByCancelId.set(Q,new Set),y.taskIdByCancelId.get(Q).add(W.id)):_.O9(new _.LL("Unexpected malformed cancelOn field."))}else _.O9(new _.LL("Unexpected malformed triggerOn field."))}else _.O9(new _.LL("Unexpected malformed Task proto."));Xjq(G.JSC$16061_taskManager);_.c5(z)})};var URs={},R6q=(URs.rendered={priority:0,callback:function(){var x={};x.numCpu=navigator.hardwareConcurrency;var G={};G.ramGb=_.Df.navigator.deviceMemory;var D={staticContext:{}};G.ramGb&&ax3(G.ramGb)&&(D.staticContext.memoryTotalKbytes=(G.ramGb*1048576).toString());x.numCpu&&ax3(x.numCpu)&&(D.staticContext.cpuCores=x.numCpu);if(_.B("web_enable_adaptive_appl_signal")){x={};G=_.j7("rses_dpj");var K=_.j7("rsef_dpj");G&&G>0&&K&&K>0&&(G=Math.ceil(K-G),G>0&&(x.loadLatency=G));x.loadLatency&&ax3(x.loadLatency)&&
(D.appL=x.loadLatency.toString())}_.Fv("applicationStarted",D)}},URs);var S6Z=new _.wq("WINDOW_ON_ERROR"),ns7=new _.wq("ERROR_WEIGHT_MAPS"),iQ8=new _.wq("INIT_ERROR");var gsh={},u0u=(gsh.initialized={priority:10,callback:function(x){x.injector.resolve(iQ8)()}},gsh);var dRJ=function(){},wjZ=function(){var x=_.nT("meta_logger_impl");
x||(x=new dRJ,_.Jv("meta_logger_impl",x));return x},q6q=function(){wjZ().csiSubscriptionKey=eDd("meta_logging_csi_event",function(x){var G=x.timerName;
if(x=x.timelineData){_.$O(G,{startTime:x.startTime},G);x.infos&&_.Hg(x.infos,G);for(var D=_.l(Object.keys(x.ticks)),K=D.next();!K.done;K=D.next())K=K.value,_.Fs(K,x.ticks[K],G)}})};
dRJ.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&Q_f(this.csiSubscriptionKey)};var Nmu={},vsJ=(Nmu.initialized={priority:10,callback:function(){q6q()}},Nmu);var Jh9=function(x,G){this.innertubeClientName=x;this.JSC$16077_prefCookie=G};
Jh9.prototype.record=function(){if(_.B("web_li_record_binary_eval_tick")){var x=_.j7("rsef_dpj");var G=_.j7("rses_dpj");x=x!==void 0&&G!==void 0?Math.round(x-G):void 0;if(x!==void 0&&x>0){G=_.xt(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var D=this.poolSize;if(!(G.valuesSeen>=1E9)){if(G.valuesSample.length<D)G.valuesSample.push(x);else{var K=Math.floor(Math.random()*(G.valuesSeen+1));K<D&&(G.valuesSample[K]=x)}G.valuesSeen+=1}_.hi(this.storagePrefix+"-"+this.innertubeClientName,
G,2592E3);x=G.valuesSample;G=oNL(x);x=x.length<5?void 0:G<400?1:G<1700?2:3;x!==void 0&&(this.JSC$16077_prefCookie.set(this.cookiePrefix+this.innertubeClientName,x),this.JSC$16077_prefCookie.save())}}else _.GP(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$16077_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$16077_prefCookie.save()};
Jh9[dq]=[Mr,Nr];var f8s=function(){Jh9.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.m(f8s,Jh9);var tLq=new _.wq("PAGE_LOAD_TIME_TOKEN");var kwE=new _.wq("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var vn=function(x,G){this.JSC$16098_storeWithEntities=x;this.JSC$16098_commandHandler=G;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
vn.prototype.start=function(){this.JSC$16098_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
vn.prototype.observeDownloadingEntities=function(){var x=_.MVh(this.JSC$16098_storeWithEntities.getState().entities).map(function(K){return Q8O(K)});
if(x.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var G={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:pN$()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.tN(_.Wg("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$16098_commandHandler.resolveCommand(G)}this.downloadingEntities=x}else if(this.downloadingEntities.length){var D=ZgP(this.JSC$16098_storeWithEntities.getState().entities).map(function(K){return Q8O(K)});
this.downloadingEntities.filter(function(K){return D.includes(K)}).length&&(x={openPopupAction:w8V()},this.JSC$16098_commandHandler.resolveCommand(x));
this.downloadingEntities=[]}};
vn[dq]=[z0,_.hm];var Pf8;_.JV=function(x,G,D,K,z,y,c,W){this.JSC$16101_playerApiPromise=x;this.JSC$16101_commandHandler=G;this.JSC$16101_screenManager=D;this.offlineWebClientEligibility=K;this.JSC$16101_prefStorage=z;this.JSC$16101_actionRouter=y;this.entityTypeMap=c;this.JSC$16101_persistentStorePromiseAccessor=W;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
Pf8=function(){var x=_.Eo().resolve(_.JV),G;_.T(function(D){if(D.nextAddress==1)return x.downloadFailureListenerBound?D.return():_.Z(D,x.JSC$16101_playerApiPromise,2);G=D.yieldResult;G.addEventListener("onOfflineOperationFailure",function(K){if(K.failureReason&&K.entityKey&&K.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(K.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var z=_.x_(K.entityKey).entityId;z&&x.JSC$16101_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
z)}else if(_.B("kevlar_woffle")){z=x.JSC$16101_commandHandler;var y=z.resolveCommand;K=K.failureReason;var c=_.Wg("TRANSFER_FAILED",void 0,"Download failed");K==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(c=_.Wg("STORAGE_FULL",void 0,"Storage full"));y.call(z,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.tN(c),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
x.downloadFailureListenerBound=!0;_.c5(D)})};
_.JV.prototype.deleteVideo=function(x,G){var D=this,K,z,y;return _.T(function(c){if(c.nextAddress==1)return _.Z(c,D.JSC$16101_playerApiPromise,2);K=c.yieldResult;y={offlineLoggingData:{offlineDeleteReason:(z=G)!=null?z:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.Z(c,K.queueOfflineAction(x,D.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",y),0)})};
_.JV.prototype.pauseVideoDownload=function(x){var G=this,D;return _.T(function(K){if(K.nextAddress==1)return _.Z(K,G.JSC$16101_playerApiPromise,2);D=K.yieldResult;D.pauseVideoDownload(x);_.c5(K)})};
_.JV.prototype.resumeVideoDownload=function(x){var G=this,D;return _.T(function(K){if(K.nextAddress==1)return _.Z(K,G.JSC$16101_playerApiPromise,2);D=K.yieldResult;return _.Z(K,D.resumeVideoDownload(x),0)})};
_.JV[dq]=[_.k7,_.hm,_.ph,kwE,tI,uz,wxs,DH];var Ess=new _.wq("DOWNLOAD_STATE_STORE_TOKEN");var h6q=function(x,G){this.JSC$16120_persistentStorePromiseAccessor=x;this.store=G;this.upliftCompletionResolver=new _.Kt},Dms=function(){var x=_.Eo().resolve(xm8),G;
_.T(function(D){switch(D.nextAddress){case 1:if(x.upliftImplPromise)return D.return(x.upliftImplPromise);_.Kl(D,2);x.upliftImplPromise=GLu(x);return _.Z(D,x.upliftImplPromise,4);case 4:x.upliftCompletionResolver.resolve();_.iI(D,3);break;case 2:throw G=_.lX(D),x.upliftCompletionResolver.reject(G),G;case 3:return D.return(x.upliftImplPromise)}})},GLu=function(x){var G,D,K;
return _.T(function(z){switch(z.nextAddress){case 1:return _.Uo("LOGGED_IN")?_.Z(z,x.JSC$16120_persistentStorePromiseAccessor(),2):z.return();case 2:G=z.yieldResult;if(!G)return _.Fs("vdeur"),z.return();_.Fs("vdeus");_.Kl(z,3);return _.Z(z,KoZ(G),5);case 5:D=z.yieldResult;x.store.dispatch(sc3(D));G.observe(function(y){YBL(x.store,y)});
_.iI(z,4);break;case 3:throw K=_.lX(z),_.Fs("vdeur"),K;case 4:_.Fs("vdeuc"),_.c5(z)}})},KoZ=function(x){var G;
return _.T(function(D){if(D.nextAddress==1)return _.Z(D,ZIL(x),2);G=D.yieldResult;return D.return(G.reduce(function(K,z){if(!z.data||!z.key||!z.entityType)return K;K[z.entityType]||(K[z.entityType]={});K[z.entityType][z.key]=z.data;return K},{}))})};
h6q[dq]=[DH,_.$t];var xm8;xm8=new _.wq("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.fO=new _.wq("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var tV=function(x,G){this.JSC$16123_persistentStorePromiseAccessor=x;this.transportService=G};
tV.prototype.refresh=function(){var x=this,G,D,K,z;return _.T(function(y){if(y.nextAddress==1)return _.Uo("LOGGED_IN")?_.Z(y,x.JSC$16123_persistentStorePromiseAccessor(),2):y.return();if(y.nextAddress!=3)return(G=y.yieldResult)?_.Z(y,t3V(G),3):y.return();if((D=y.yieldResult)&&!(Number(D.data.refreshTimestampMs||0)<(0,_.kK)()))return y.return();K={browseId:"SPaccount_downloads"};z=_.qW(f1);_.ma(x.transportService,K,z).then(function(c){var W;if(G&&(c==null?void 0:(W=c.responseContext)==null?void 0:
W.maxAgeSeconds)!==0){var e;W=(c==null?void 0:(e=c.responseContext)==null?void 0:e.maxAgeSeconds)||604800;e=String(Math.floor((0,_.kK)())+W*1E3);G.put("service:downloads_settings:fallback",new _.Gp({innertubeResponse:c,refreshTimestampMs:e}))}});
_.c5(y)})};
tV[dq]=[_.iL,_.Hi];var k4=function(x,G){this.JSC$16127_playerPromise=x;this.store=G;this.started=!1};
k4.prototype.start=function(){var x=this,G;return _.T(function(D){if(D.nextAddress==1)return x.started?D.return():_.Z(D,x.JSC$16127_playerPromise,2);G=D.yieldResult;G.addEventListener("onOrchestrationBecameLeader",x.updateIsLeader.bind(x,!0));G.addEventListener("onOrchestrationLostLeader",x.updateIsLeader.bind(x,!1));if(G.isOrchestrationLeader)x.updateIsLeader(G.isOrchestrationLeader());else{var K=new _.LL("Function isOrchestrationLeader is undefined",{"player.isReady":G.isReady(),"player.playVideo":G.playVideo?
"defined":"undefined"});_.I4(K);x.updateIsLeader(!1)}x.started=!0;_.c5(D)})};
k4.prototype.updateIsLeader=function(x){this.store.dispatch(_.EO({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:x}}))};
k4[dq]=[_.k7,_.$t];var z1u=function(x,G){this.networkStatusManager=x;this.JSC$16130_prefStoragePromise=G;this.redirectsToPreload=["https://youtube.com"]},ajZ=function(){var x=_.Eo().resolve(z1u),G,D,K,z,y,c;
_.T(function(W){switch(W.nextAddress){case 1:return _.Z(W,x.JSC$16130_prefStoragePromise,2);case 2:G=W.yieldResult;if(!(D=G)){W.jumpTo(3);break}return _.Z(W,G.get("yt-redirect-prefetch-id"),4);case 4:D=W.yieldResult;case 3:if(D||!x.networkStatusManager.isNetworkAvailable())return W.return();K={cache:"reload",redirect:"manual"};z=_.l(x.redirectsToPreload);y=z.next();case 5:if(y.done){if(!G){W.jumpTo(0);break}return _.Z(W,G.set("yt-redirect-prefetch-id",!0,86400),0)}c=y.value;_.Kl(W,8);return _.Z(W,
_.Df.fetch(c,K),10);case 10:_.iI(W,6);break;case 8:_.lX(W);case 6:y=z.next(),W.jumpTo(5)}})};var Pn=function(x){x?(this.container=x,this.containerWasInjected=!0):this.containerWasInjected=!1};
Pn.prototype.openDialog=function(x,G,D){var K=this,z;return _.T(function(y){(z=K.container)==null||z.openDialog(x,G,D);_.c5(y)})};
Pn.prototype.closeDialog=function(){var x=this,G;return _.T(function(D){(G=x.container)==null||G.closeDialog();_.c5(D)})};
Pn.prototype.isDialogOpen=function(){var x=this,G,D;return _.T(function(K){return K.return((D=(G=x.container)==null?void 0:G.isDialogOpen())!=null?D:!1)})};
Pn[dq]=[_.P6(Zvi)];_.oeu=new _.wq("POPUP_CONTROLLER_TOKEN");var ybE=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
ybE.prototype.registerPanel=function(x,G){if(x){this.panelMap.set(x,G);var D=this.pendingPanelResolvers.get(x);D&&(D.resolve(G),this.pendingPanelResolvers.delete(x))}};
ybE.prototype.getPanel=function(x){var G=this,D;return _.T(function(K){return(D=G.panelMap.get(x))?K.return(D):K.return(lji(G,x))})};
var lji=function(x,G){var D,K;return _.T(function(z){if(D=x.pendingPanelResolvers.get(G))return z.return(D.promise);K=new _.Kt;x.pendingPanelResolvers.set(G,K);return z.return(K.promise)})},cbs=function(x){ybE.call(this);
var G=this;this.popupController=x;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return G.panelMap.size}}};
_.m(cbs,ybE);_.a=cbs.prototype;_.a.getReloadContinuation=function(x){var G=this,D;return _.T(function(K){if(K.nextAddress==1)return _.Z(K,G.getPanel(x),2);D=K.yieldResult;return K.return(D.getReloadContinuation())})};
_.a.showPanel=function(x,G,D,K,z,y,c){var W=this,e,Q,p,V;return _.T(function(L){if(L.nextAddress==1){c&&W.updatePanelContinuationDatas.set(x,c);if((e=D)==null?0:(Q=e.engagementPanelPopupPresentationConfig)==null?0:Q.popupType){p=D.engagementPanelPopupPresentationConfig.popupType;z===void 0&&(z=document.body);var r=L.return,H=W.popupController,O=H.openPopup;a:switch(p){case "PANEL_POPUP_TYPE_DIALOG":var A="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":A="DROPDOWN";break a;default:throw Error("aj`"+
p);}return r.call(L,O.call(H,x,G,A,z))}return _.Z(L,W.getPanel(x),2)}V=L.yieldResult;(G||y)&&V.updatePanel(G,!1,K,y);V.showPanel(K);_.c5(L)})};
_.a.hidePanel=function(x){var G=this,D;return _.T(function(K){if(K.nextAddress==1)return _.Z(K,G.getPanel(x),2);D=K.yieldResult;D.hidePanel();G.popupController.closePopup(x);_.c5(K)})};
_.a.isVisible=function(x,G){var D=this,K;return _.T(function(z){if(z.nextAddress==1)return G&&!D.panelMap.has(x)?z.return(!1):_.Z(z,D.getPanel(x),2);K=z.yieldResult;return z.return(K.isVisible())})};
_.a.updatePanel=function(x,G,D,K,z,y){D=D===void 0?!1:D;var c=this,W;return _.T(function(e){if(e.nextAddress==1){if(!G&&!z)return e.return();y&&c.updatePanelContinuationDatas.set(x,y);return _.Z(e,c.getPanel(x),2)}W=e.yieldResult;W.updatePanel(G,D,K,z);_.c5(e)})};
_.a.registerPanelContent=function(x,G){x&&this.panelContentMap.set(x,G)};
_.a.getPanelContent=function(x){return this.panelContentMap.get(x)};
_.a.getUpdatePanelContinuationData=function(x){return this.updatePanelContinuationDatas.get(x)};
cbs[dq]=[_.oeu];var Er=function(x,G){this.innertubeTransportService=x;this.JSC$16146_screenManager=G},TdJ=function(x){var G;
return!((G=x.panelLoadingStrategy)==null||!G.requestTemplate)};
Er.prototype.makeRequest=function(x){var G=this,D,K;return _.T(function(z){switch(z.nextAddress){case 1:if(!TdJ(G)){z.jumpTo(2);break}_.Kl(z,3);return _.Z(z,_.Rl(G.innertubeTransportService,x),5);case 5:return D=z.yieldResult,D?z.return(D.content):(_.I4(Error("bj")),z.return(void 0));case 3:K=_.lX(z),_.I4(K);case 2:return z.return(void 0)}})};
Er.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
Er.prototype.execute=function(x){var G=this,D,K,z,y,c,W,e,Q,p,V;return _.T(function(L){if(L.nextAddress==1){D=x;K=D.data;z=D.fallbackVe;y=D.parentVe;c=D.createScreenConfig;W=D.renderFn;e=D.command;G.panelLoadingStrategy=K;var r,H,O=((r=G.panelLoadingStrategy)==null?0:r.screenVe)?(H=G.panelLoadingStrategy)==null?void 0:H.screenVe:z;O&&_.EV(G.JSC$16146_screenManager,O,y,c);return(Q=G.getContent())?_.Z(L,W(Q),2):L.jumpTo(2)}return L.nextAddress!=4?TdJ(G)?_.Z(L,G.makeRequest(e),4):L.return():(V=p=L.yieldResult)?
_.Z(L,W(V),0):L.return()})};
Er[dq]=[_.Hi,_.ph];var hV=function(){};
hV.prototype.getContainer=function(){return _.t$()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
hV.prototype.openSheet=function(x,G){var D=this,K,z,y,c,W,e;return _.T(function(Q){switch(Q.nextAddress){case 1:return K={stack:[],error:void 0,hasError:!1},_.Kl(Q,2,3),z=PZ,_.Z(Q,D.isSheetOpen(),5);case 5:y=Q.yieldResult;sUE(K,HTL(z));if(y){if(G&&D.currentTarget===G)return(c=D.getContainer())==null||c.closeSheet(),Q.return();D.pendingData={data:x,target:$a9(D,G)};return Q.return()}x.viewModel&&(x={viewModel:x.viewModel});(W=D.getContainer())==null||W.openSheet(x,G);D.currentTarget=G;case 3:_.zA(Q);
YWV(K);_.y6(Q,0);break;case 2:e=_.lX(Q),K.error=e,K.hasError=!0,Q.jumpTo(3)}})};
hV.prototype.closeSheet=function(){var x=this,G;return _.T(function(D){if(D.nextAddress==1)return _.Z(D,(G=x.getContainer())==null?void 0:G.closeSheet(),2);if(D.nextAddress!=4)return x.currentTarget=void 0,x.pendingData?_.Z(D,x.openSheet(x.pendingData.data,x.pendingData.target),4):D.jumpTo(0);x.pendingData=void 0;_.c5(D)})};
hV.prototype.isSheetOpen=function(){var x=this,G,D;return _.T(function(K){return K.return((D=(G=x.getContainer())==null?void 0:G.isSheetOpen())!=null?D:!1)})};
var $a9=function(x,G){if(!_.B("web_parent_target_for_sheets"))return G;var D,K;return(K=(D=x.getContainer())==null?void 0:D.getParentTarget(G))!=null?K:G};var ap=window.documentPictureInPicture;var HIE=_.gv(["dark"]),$KC=_.gv(["system-icons"]),FNO=_.gv(["typography"]),C6f=_.gv(["lang"]),IxC=_.gv(["style"]),rLD=_.gv(["dir"]),s3$=_.gv(["rounded-container"]),Y0f=_.gv(["style"]),OI3=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],xZ=function(x){this.JSC$16158_clientRoot=x;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
xZ.prototype.openWindow=function(x){var G=this,D,K;return _.T(function(z){if(z.nextAddress==1)return window.documentPictureInPicture&&_.IV()&&!G.currentPipWindow?_.Z(z,(D=ap?ap:null)==null?void 0:D.requestWindow(x),2):z.return(!1);if(z.nextAddress!=3){K=z.yieldResult;if(!K)return z.return(!1);K.addEventListener("pagehide",function(){Woi(G)});
K.addEventListener("resize",G.handlePipWindowResize);G.pipWindowResizeDelay=new _.fo(function(){G.currentPipWindow&&_.xO(G.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.cu(G.currentPipWindow.innerWidth,G.currentPipWindow.innerHeight)])},K);
j3n(K);ALV(K);return _.Z(z,BwV(K),3)}if(!VoE())return z.return(!1);G.currentPipWindow=K;G.JSC$16158_eventForwarder=X4L(K,G.JSC$16158_clientRoot);G.pipWindowResizeDelay.start();return z.return(!0)})};
xZ.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var Woi=function(x){if(x.currentPipWindow){var G,D;(G=ap?ap:null)==null||(D=G.window)==null||D.close();x.currentPipWindow.removeEventListener("resize",x.handlePipWindowResize);var K;(K=x.pipWindowResizeDelay)==null||K.dispose();x.pipWindowResizeDelay=void 0;var z;(z=x.JSC$16158_eventForwarder)==null||z.stop();x.JSC$16158_eventForwarder=void 0;G=_.l(x.onCloseCallbacks);for(D=G.next();!D.done;D=G.next())D=D.value,D();x.onCloseCallbacks=[];x.currentPipWindow=null}};
xZ.prototype.getWindow=function(){return this.currentPipWindow};
var e1s=function(x,G){var D;(D=x.onCloseCallbacks)==null||D.push(G)};
xZ.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.IV()};
_.Nq.Object.defineProperties(xZ.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
xZ[dq]=[U$Z];var Zc9=new _.wq("PICTURE_IN_PICTURE_CONTROLLER");var UKO=function(x,G){this.lengthY=this.lengthX=0;this.lengthX=G.x-x.x;this.lengthY=G.y-x.y};var MN0=function(){},jao=function(x,G){var D;
(D=x.headerElement)==null||D.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:G}))};var Q$8=function(){};
Q$8.prototype.openPopup=function(x,G,D,K){var z=this,y;return _.T(function(c){if(!z.container)return c.return();y={openPopupAction:{popup:G,popupType:D,uniqueId:x}};return c.return(z.container.handleOpenPopupAction(y,K))})};
Q$8.prototype.closePopup=function(x){this.container&&this.container.closePopup(x)};var prZ=function(){this.openTunnels=new Map},GBd=function(x,G,D){if(uS$(D)){var K=_.uP(D,"gclid");
D={handleEvent:function(W){G&&!G.closed&&typeof G.postMessage==="function"&&W&&W.origin&&W.source===G&&W.data&&W.data.action==="gcl_setup"&&G.postMessage(Object.assign({},{action:"gcl_transfer"},K&&{gclid:K},{gadSource:2}),W.origin)}};
for(var z=_.l(x.openTunnels),y=z.next();!y.done;y=z.next()){var c=_.l(y.value);y=c.next().value;c=c.next().value;if(y.closed)try{window.removeEventListener("message",c),x.openTunnels.delete(y)}catch(W){_.I4(W)}}G&&x.openTunnels.size<15&&(x.openTunnels.set(G,D),window.addEventListener("message",D))}};var VNs=function(){this.clientParams=new Map},AdZ=function(x){for(var G=_.l(x.clientParams.keys()),D=G.next();!D.done;D=G.next())D=D.value,D.startsWith("yt-mini-app-share")&&x.clientParams.delete(D)};var bch=function(x,G){_.Ya.call(this);var D=this;this.shortsController=x;this.storeWithShorts=G;x=_.la(this.storeWithShorts,_.M4E,function(K){if(K){var z,y=(z=D.shortsController.getRoot())==null?void 0:z.getPlayer(),c;(z=(c=D.shortsController.alternativePlayerContainerElement)==null?void 0:c.getPlayerContainer())&&(y==null||y.appendTo(z))}else{var W;c=(W=D.shortsController.alternativePlayerContainerElement)==null?void 0:W.getPlayerContainer().querySelector("#player");z=D.shortsController.activeIndex;
(W=(y=D.shortsController.getRoot())==null?void 0:y.querySelector('ytd-reel-video-renderer[id="'+z+'"] #player-container'))&&(c==null||c.appendTo(W,void 0,!0))}});
this.addOnDisposeCallback(x)};
_.m(bch,_.Ya);var G3=function(x,G,D,K,z){var y=this;this.storeWithShorts=x;this.ephemeralResponseStore=G;this.store=D;this.innertubeTransportService=K;this.innertubeTransportLoader=z;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.F8(_.lQ);this.isShortsPipActive=_.F8(_.cb);this.nextReelVe=_.BH(56921);this.prevReelVe=_.BH(56922);this.backButtonVe=_.BH(22156);this.TEST_ONLY={getActiveModules:function(){return y.activeModules}}},tes,kp0,Loh;
G3.prototype.initOrDisposeActiveModules=function(x){x?this.activeModules.push(new bch(this,this.storeWithShorts)):(_.Pu(this.activeModules),this.activeModules.length=0)};
G3.prototype.getRoot=function(){return this.rootElement};
G3.prototype.setActiveIndex=function(x){this.activeIndex=x};
_.wt7=function(x,G){var D,K,z,y,c,W,e;return _.T(function(Q){switch(Q.nextAddress){case 1:return D=new lL,(K=D.JSC$11002_getStoreKey(G))&&x.ephemeralResponseStore.has(K)?_.Z(Q,x.ephemeralResponseStore.get(K),7):_.Z(Q,Loh(x,G),4);case 4:z=Q.yieldResult;if(!K){Q.jumpTo(3);break}y=Eu(z,3600);return _.Z(Q,x.ephemeralResponseStore.put(K,new _.Gp(y)),3);case 7:z=(c=Q.yieldResult)==null?void 0:_.DU(c);case 3:return((W=z)==null?0:W.replacementEndpoint)&&(e=_.Y(z.replacementEndpoint,_.MB))&&z.sequenceContinuation&&
(e.sequenceParams=z.sequenceContinuation),Q.return(z)}})};
tes=function(x,G){G=(new cn).JSC$11002_getStoreKey(G);return!!G&&x.ephemeralResponseStore.has(G)};
kp0=function(x,G,D){var K,z,y,c,W;_.T(function(e){if(e.nextAddress==1){K=new cn;z=K.JSC$11002_getStoreKey(G);if(!z)return e.return();if(D.reelWatchSequenceResponse)return y=Eu(D.reelWatchSequenceResponse,3600),x.ephemeralResponseStore.put(z,new _.Gp(y)),e.jumpTo(0);if(!x.ephemeralResponseStore.has(z))return e.jumpTo(0);W=D;return _.Z(e,x.ephemeralResponseStore.get(z),4)}W.reelWatchSequenceResponse=(c=e.yieldResult)==null?void 0:_.DU(c);_.c5(e)})};
Loh=function(x,G){var D=D===void 0?{}:D;var K,z,y;return _.T(function(c){switch(c.nextAddress){case 1:if(x.innertubeTransportService){K=x.innertubeTransportService;c.jumpTo(2);break}if(!x.innertubeTransportLoader){_.RE(Error("dj"));c.jumpTo(2);break}return _.Z(c,x.innertubeTransportLoader(),4);case 4:K=c.yieldResult;case 2:return _.Z(c,(z=K)==null?void 0:_.Rl(z,G,D),5);case 5:return y=c.yieldResult,c.return(y)}})};
_.Nq.Object.defineProperties(G3.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
G3[dq]=[AMq,_.xn,z0,_.P6(_.Hi),_.P6(C4E)];_.Bdu=new _.wq("STORAGE_MANAGER_TOKEN");var rb0=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},s$8;
rb0.prototype.enqueue=function(x,G){G===1?this.currentPersistentToast=x:this.queue.push(x);this.openToast()};
rb0.prototype.openToast=function(){var x;(x=this.currentToast)!=null&&x.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.YUJ=new _.wq("TOAST_MANAGER_TOKEN");var mmZ;_.Hcu=_.Nv(function(x){return _.M("basic-content-view-model",{class:_.ym("ytBasicContentViewModelHost",_.wc(x.className))},_.M(_.b,{cond:function(){return x.data().headline},
then:function(G){return _.M("div",{class:"ytBasicContentViewModelHeadline"},_.M(_.vq,{text:G}))}}),_.M(_.LT,{each:function(){return x.data().paragraphs||[]},
keyBy:"INDEX"},function(G){return _.M("div",{class:"ytBasicContentViewModelParagraph"},_.M(_.b,{cond:function(){var D=G();return!!(D.header||D.customHeader||D.headline)},
then:function(){return _.M(mmZ,{paragraph:G})}}),_.M(_.b,{cond:function(){return G().asset||G().text},
then:function(){return _.M("div",{class:"ytBasicContentViewModelParagraphContent"},_.M(_.b,{cond:function(){return G().asset},
then:function(D){return _.M("div",{class:"ytBasicContentViewModelParagraphAsset"},_.M(_.bA,{data:D},{contentPreviewImageViewModel:_.JK}))}}),_.M(_.b,{cond:function(){return G().text},
then:function(D){return _.M("div",{class:"ytBasicContentViewModelParagraphText"},_.M(_.vq,{text:D}))}}))}}))}))},"le");
mmZ=_.Nv(function(x){var G=x.paragraph;return _.M(_.xT,null,_.M(_.b,{cond:function(){return G().headline},
then:function(D){return _.M(_.vq,{text:D,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.M(_.bA,{data:function(){return G().header||G().customHeader}},{sectionHeaderViewModel:function(D){return _.M(_.hF,{data:D.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"me");var Foq=_.Nv(function(x){var G=_.qi(),D=_.WH(function(K){if(!_.RO(_.Ug(K),G.value,["A".toString(),"BUTTON".toString()])){var z;(z=x.expandedCallback)==null||z.call(x,!1)}});
return _.M("yt-expandable-metadata-header-view-model",{el:G,class:"ytExpandableMetadataHeaderViewModelHost"},_.M(_.b,{cond:function(){return x.expanded()},
then:function(){return _.M("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":D},_.M("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.M(_.b,{cond:function(){return x.data().expandedTitleImage},
then:function(K){return _.M("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.M(_.wk,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:K}))}}),_.M("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.M("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.M(_.vq,{text:function(){return x.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.M(_.vq,{text:function(){return x.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.M(_.vq,{text:function(){return x.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.M("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.M(_.bA,{data:function(){return x.data().infoButton}},{buttonViewModel:_.Cs}),_.M(_.bA,{data:function(){return x.data().collapseButton}},{buttonViewModel:function(K){return _.M(_.Cs,{data:K.data,
onClick:function(){var z;(z=x.expandedCallback)==null||z.call(x,!1)}})}})))},
else:function(){return _.M($mo,Object.assign({},x))}}))},"ne"),Cn0=_.Nv(function(x){return _.M("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.M(_.b,{cond:function(){return x.data().collapsedLabelImage},
then:function(G){return _.M("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.M(_.wk,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:G,alt:""}))}}),_.M(_.vq,{text:function(){return x.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"oe"),$mo=_.Nv(function(x){return _.M("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.WH(function(){var G;return void((G=x.expandedCallback)==null?void 0:G.call(x,!0))})},_.M("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.M(_.b,{cond:function(){return x.data().collapsedImage},
then:function(G){return _.M("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.M(_.wk,{width:16,height:16,data:G,alt:""}))}}),_.M(_.b,{cond:function(){return x.data().showLeadingCollapsedLabel},
then:function(){return _.M(Cn0,Object.assign({},x))}}),_.M("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.M(_.vq,{text:function(){return x.data().collapsedTitle}}))),_.M("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.M(_.b,{cond:function(){return!x.data().showLeadingCollapsedLabel},
then:function(){return _.M(Cn0,Object.assign({},x))}}),_.M(_.bA,{data:function(){return x.data().infoButton}},{buttonViewModel:_.Cs}),_.M(_.bA,{data:function(){return x.data().expandButton}},{buttonViewModel:function(G){return _.M(_.Cs,{data:G.data,
onClick:function(){var D;(D=x.expandedCallback)==null||D.call(x,!0)}})}})))},"pe");_.Ijk=_.Nv(function(x){var G=_.l(_.ZX(function(){return x.data().initiallyExpanded})),D=G.next().value,K=G.next().value,z,y=(z=_.Eo().resolve(_.P6(_.ib)))==null?void 0:z(),c=function(){var W=x.data().colorData;
if(W)return y?W==null?void 0:W.darkColorPalette:W==null?void 0:W.lightColorPalette};
return _.M("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.Ms({"background-color":function(){var W=c();return(W==null?0:W.section2Color)?_.jT(W.section2Color):""}})},_.M(_.bA,{data:function(){return x.data().header}},{expandableMetadataHeaderViewModel:function(W){return _.M(Foq,{data:W.data,
expanded:function(){return!!D()},
expandedCallback:function(e){K(e)}})}}),_.M(_.b,{cond:function(){return D()},
then:function(){return _.M("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.M(_.bA,{data:function(){return x.data().expandedContent}},{horizontalShelfViewModel:function(W){return _.M(_.Yj,{data:W.data,
includeMargin:!0,forceNarrowLayout:!0,palette:c})},
videoSummaryContentViewModel:function(W){return _.M(TNs,{data:W.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(W){return _.M(_.kc,{data:W.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(W){return _.M(_.Hcu,{data:W.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.M(_.bA,{data:function(){return x.data().expandedBottomButtons}},{buttonViewModel:function(W){return _.M("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.M(_.Cs,{data:W.data}))}}))}}))},"qe");var j$q=_.Nv(function(x){var G=x.text;var D=x.marqueeSpacing;var K=x.scrollDelay;var z=x.scrollDuration;var y=x.enableMarqueeScroll;x=x.large;var c=_.l(_.eO(!1,void 0,"kfNqfd")),W=c.next().value,e=c.next().value,Q=_.l(_.eO(0,void 0,"bYgZbf"));c=Q.next().value;var p=Q.next().value,V=_.qi();Q=_.qi();var L=_.qi(),r=_.Eo().resolve(_.ub);_.$9(function(){if(y()){var A=L.value.getBoundingClientRect().width,g=V.value.getBoundingClientRect().width;if(A>g){var u=(r==="ltr"?-1:1)*(A+(D?D():16));Promise.resolve().then(function(){e(!0);
p(u)})}}});
var H={},O={};return _.M("marquee-scroll",{class:_.ym("ytMarqueeScrollHost",(H.ytMarqueeScrollHostLarge=x,H)),el:V},_.M("div",{id:"marquee-scroll-inner-container",class:_.ym("ytMarqueeScrollInnerContainer",(O.ytMarqueeScrollAnimationEnabled=function(){return W()},O)),
el:Q,style:_.Ms({gap:D?(0,_.L_)(D):"16px","animation-duration":z?xKo(z):"16s","animation-delay":K?xKo(K):"3s","--marquee-translate":(0,_.L_)(c)})},_.M("span",{el:L,dir:"auto"},_.M(_.vq,{text:G,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.M(_.b,{cond:W,then:function(){return _.M("span",{"aria-hidden":"true",dir:"auto"},_.M(_.vq,{text:G,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"re");_.Oc7=_.Nv(function(x){var G=x.data;var D=x.overlayDensity;x=_.WH(function(){G().onTapCommand&&_.UI(G().onTapCommand);return!1});
var K=_.wW3(),z={};return _.M("reel-sound-metadata-view-model",{class:_.ym("ytReelSoundMetadataViewModelHost",(z.ytReelSoundMetadataViewModelHostLarge=function(){return(D==null?void 0:D())===1},z)),
"on:click":x,tabindex:0,role:"button","on:keydown":K},_.M("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.M(_.b,{cond:function(){return G().musicIcon},
then:function(y){return _.M(_.wk,{data:y,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon"})}}),_.M("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.M(j$q,{text:function(){return G().soundMetadata},
enableMarqueeScroll:function(){return!!G().enableMarqueeScroll},
large:function(){return(D==null?void 0:D())===1}}))))},"se");var Xrs,Abh,D4,neh,gei,SUs,wrh,dmi;Xrs=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];Abh=_.Gz("wil_icon_max_concurrent_fetches",Infinity);
D4=function(x,G,D){var K=this;this.iconSet=x;this.appDirection=G;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.Df.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.B("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.B("wil_icon_network_first");this.renderWhenIdle=_.B("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.B("wil_icon_load_immediately");this.isPurging=!1;x=function(){K.cacheStorageAvailable&&(K.cacheStorageAsync=_.Df.caches.open("yt-icons").then(function(y){return K.cacheStorageSync=y}).catch(function(){K.cacheStorageAvailable=!1}))};
D=(D==null?void 0:D())||{};D=_.l(Object.entries(D));for(G=D.next();!G.done;G=D.next()){var z=_.l(G.value);G=z.next().value;z=z.next().value;z=Zy(z);Umq(z);this.iconCache[G]=z.cloneNode(!0)}this.isPurging=R1s(this);this.isPurging instanceof Promise?this.isPurging.then(x):x()};
_.juE=function(x,G){var D=x.resolveIcon(G);return D?x.renderingMode===1?SUs(x,D,x.renderingMode):(G=x.iconCache[D.url])?(G=G.cloneNode(!0),neh(x,G),SUs(x,D,x.renderingMode,G)):_.ic9(x,D).then(function(K){var z=K?0:1;neh(x,K);return SUs(x,D,z,K)}):(_.jm(new _.LL("Icon not found",{iconShape:G})),function(){})};
neh=function(x,G){if(G){x.counter+=1;x="_yt"+x.counter;G=[G].concat(_.B5(G.getElementsByTagName("*")));G=_.l(G);for(var D=G.next();!D.done;D=G.next())if(D=D.value,D.tagName==="style"&&D.textContent)D.textContent=gei(D.textContent,x,!0);else for(var K=_.l(D.attributes),z=K.next();!z.done;z=K.next()){z=z.value;z.name==="id"&&(z.value+=x);["mask","fill","clip-path"].includes(z.name)&&(z.value=gei(z.value,x));if(z.name==="style"){var y=D.style;try{y.cssText=gei(y.cssText,x,!0)}catch(p){var c=void 0,W=
void 0,e=void 0,Q=void 0;KP({error:((c=p)==null?void 0:(e=(W=c).toString)==null?void 0:e.call(W))||"",el:D.outerHTML,style:!!y,cssText:(Q=y)==null?void 0:Q.cssText})}}z.name==="xlink:href"&&(z.value=z.value.replace(/#(.*)/,"#$1"+x))}}};
gei=function(x,G,D){var K=/url\(["']?#(.*?)["']?\)/;(D===void 0?0:D)&&(K=/url\(["']?#(.*?)["']?\)/g);return x.replace(K,"url(#$1"+G+")")};
SUs=function(x,G,D,K){return function(z,y){var c=Object.assign({},{iconColor:"currentcolor",iconWidth:G.size+"px",iconHeight:G.size+"px",iconDisplay:"block"},y);y=_.p4("DIV");var W=c.iconColor,e=c.iconFilter;c="width: "+c.iconWidth+"; height: "+c.iconHeight+"; display: "+c.iconDisplay+";";e&&(c+=" filter: "+e+";");D===0&&(c+=" fill: "+W+";");D===1&&(e=G.url,c+=" -webkit-mask: url("+e+") no-repeat center / cover; mask: url("+(e+") no-repeat center / cover; background-color: ")+W);G.allowMirroring&&
x.appDirection==="rtl"&&(c+=" transform: scale(-1, 1); transform-origin: center center;");y.setAttribute("style",c);D===0&&K&&y.appendChild(K);z.appendChild(y)}};
_.ic9=function(x,G){var D,K,z;return _.T(function(y){D=function(c){return $Y(c)};
K=G.url;if(!u19(K))throw Error("ej");z=dmi(x,K);return y.return(z.then(function(c){return c.clone().text()}).then(function(c){var W=D(c);
c=G.size;var e=_.p4("DIV");_.n9(e,W);W=_.VF(e.firstElementChild!==void 0?e.firstElementChild:_.Vfk(e.firstChild,!0));c=Umq(W,c);x.iconCache[K]=c.cloneNode(!0);delete x.responsePromises[K];return c}).catch(function(){}))})};
wrh=function(x){var G,D=(G=x.requestAninmationFrameResolver)==null?void 0:G.promise;D||(x.requestAninmationFrameResolver=new _.Kt,D=x.requestAninmationFrameResolver.promise,_.Df.requestAnimationFrame(function(){var K;(K=x.requestAninmationFrameResolver)==null||K.resolve();x.requestAninmationFrameResolver=null}));
return D};
dmi=function(x,G){var D,K;return _.T(function(z){if(z.nextAddress==1)return x.waitForAnimationFrame?_.Z(z,wrh(x),2):z.jumpTo(2);D=x.responsePromises[G];D||(K=function(){var y,c,W;return _.T(function(e){switch(e.nextAddress){case 1:if(!x.cacheStorageAvailable){y=void 0;e.jumpTo(2);break}if(c=x.cacheStorageSync){e.jumpTo(3);break}return _.Z(e,x.cacheStorageAsync,4);case 4:c=e.yieldResult;case 3:y=c;case 2:return W=y,x.isNetworkFirstStrategy?e.return(x.fetchAndUpdateCache(G,W).catch(x.getCacheStorageResponse.bind(x,
G,W))):e.return(x.getCacheStorageResponse(G,W).catch(x.fetchAndUpdateCache.bind(x,G,W)))}})},D=x.renderWhenIdle?new Promise(function(y,c){_.Bw(_.Fj,function(){K().then(y).catch(c)},10)}):K(),x.responsePromises[G]=D);
return z.return(D.catch(function(y){delete x.responsePromises[G];KP({error:(y==null?0:y.toString)?y.toString():"",url:G});throw y;}))})};
D4.prototype.fetchAndUpdateCache=function(x,G){var D=this;return _.T(function(K){return K.return(qUq(D,x).then(function(z){Ndh(D,x,z,G);return z}))})};
var qUq=function(x,G){var D;return _.T(function(K){if(x.numFetches<Abh)return x.numFetches+=1,K.return(ve0(x,G).finally(function(){--x.numFetches;if(Object.keys(x.queuedResponseResolvers).length){var z=Object.keys(x.queuedResponseResolvers)[0],y=x.queuedResponseResolvers[z];delete x.queuedResponseResolvers[z];y.resolve(qUq(x,z))}}));
D=new _.Kt;x.queuedResponseResolvers[G]=D;return K.return(D.promise)})},ve0=function(x,G,D){D=D===void 0?2:D;
var K;return _.T(function(z){K={credentials:"same-origin",priority:"low"};return z.return(_.Df.fetch(G,K).then(function(y){return y.ok?y:Promise.reject(Error("fj`"+y.status+"`"+y.statusText))}).catch(function(y){if(D>0)return ve0(x,G,D-1);
throw y;}))})},Ndh=function(x,G,D,K){_.T(function(z){return K?z.return(new Promise(function(y){_.Bw(_.Fj,function(){var c,W;
return _.T(function(e){switch(e.nextAddress){case 1:if(!x.isNetworkFirstStrategy){c=void 0;e.jumpTo(2);break}return _.Z(e,K.match(G).catch(function(){}),3);
case 3:c=e.yieldResult;case 2:if(W=c){e.jumpTo(4);break}return _.Z(e,K.put(G,D.clone()).catch(function(Q){KP({error:(Q==null?0:Q.toString)?Q.toString():"",url:G})}),4);
case 4:y(),_.c5(e)}})},50)})):z.return()})};
D4.prototype.getCacheStorageResponse=function(x,G){return _.T(function(D){return G?D.return(G.match(x).then(function(K){return K&&K.ok?K:Promise.reject()})):D.return(Promise.reject())})};
var Umq=function(x,G){G===void 0||x.getAttribute("viewBox")||x.setAttribute("viewBox","0 0 "+G+" "+G);x.setAttribute("focusable","false");x.setAttribute("aria-hidden","true");try{x.style.pointerEvents="none",x.style.display="inherit",x.style.width="100%",x.style.height="100%"}catch(z){var D;KP({error:((D=z)==null?0:D.toString)?z.toString():""});try{x.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(y){var K;KP({error:((K=y)==null?0:K.toString)?y.toString():
""})}}return x},u19=function(x){for(var G=_.l(Xrs),D=G.next();!D.done;D=G.next())if(x.startsWith(D.value)&&x.endsWith(".svg"))return!0;
return!1};
D4.prototype.resolveIcon=function(x){return this.iconSet.resolveIcon(x)};
var KP=function(x){_.O9(new _.LL("Error in IconManager",x))},R1s=function(x){if(_.B("wil_icons_cache_purge_killswitch"))return!1;
try{var G=_.Df.localStorage}catch(y){return!1}if(!G||!x.cacheStorageAvailable)return!1;var D=function(y){try{var c;(c=G)==null||c.setItem("yt-icons-last-purged",y.toString())}catch(e){var W;KP({error:((W=e)==null?0:W.toString)?e.toString():""})}},K=Number(G.getItem("yt-icons-last-purged"));
if(!K)return K=new Date,K=K.setDate(K.getDate()-Math.floor(Math.random()*90+1)),D(K),!1;if(function(y,c){y=new Date(y);c=new Date(c);return c.getMonth()-y.getMonth()+12*(c.getFullYear()-y.getFullYear())}(K,Date.now())<3)return!1;
try{return _.Df.caches.delete("yt-icons").then(function(y){y&&D(Date.now());return y}).catch(function(){return!1}).finally(function(){x.isPurging=!1})}catch(y){var z;
KP({error:((z=y)==null?0:z.toString)?y.toString():""});return!1}};
D4[dq]=[zg8,_.ub,_.P6(yYo)];_.z3=function(x,G){this.iconManager=x;this.iconsToFetch=G};
_.z3[dq]=[_.oP,_.P6(oQ8)];var Jbq=function(){};var fji=function(x,G,D){this.requestKey=x;this.kgY=G;this.tsh=D;this.j1K=function(){return new XMLHttpRequest};
this.rKD=void 0;this.uUn=[]};
fji.prototype.getLatestChallengeResponse=function(){return this.tsh};
var QFE=function(x,G,D){var K,z,y,c;return _.T(function(W){if(W.nextAddress==1){_.$O("attestation_challenge_fetch");_.Fs("att_fs",void 0,"attestation_challenge_fetch");if(!x.rKD)throw new _.pw(9,"Missing fetcher");return _.Z(W,x.rKD(G,D),2)}K=W.yieldResult;y=(z=K)==null?void 0:z.bgChallenge;if(!y)throw new _.pw(15,"Missing field");x.tsh=K;x.uUn.forEach(function(e){e(K)});
c=kTd(y);_.Fs("att_fc",void 0,"attestation_challenge_fetch");xlP("attestation_challenge_fetch");return W.return(c)})},i9q=function(x,G){var D,K,z,y,c;
return _.T(function(W){switch(W.nextAddress){case 1:D=new yF(100,3E5,.25,2),K=void 0;case 2:if(!(D.currBackoffCount_<10)){W.jumpTo(4);break}_.Kl(W,5);if(!(D.currBackoffCount_>0)){W.jumpTo(7);break}return _.Z(W,dKd(D.getValue()),7);case 7:return _.Z(W,tNJ(x,G),9);case 9:return z=W.yieldResult,W.return(z);case 5:y=_.lX(W);y instanceof _.pw?K=y:(c=y instanceof Error?y.message:"Unknown",K=new _.pw(9,c));Hfq(D);W.jumpTo(2);break;case 4:if(K)throw K;throw new _.pw(9,"Unknown error");}})},tNJ=function(x,
G){G=zoZ(aBh(new KuJ,G),x.requestKey);
var D=new _.Kt,K=x.j1K();K.open("POST",x.kgY);K.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");K.setRequestHeader("Content-Type","application/json+protobuf");K.onload=function(){if(_.OoV(K)){var z=Mzk(K.responseText);D.resolve(z)}else D.reject(new _.pw(_.cZ(_.zz(K)),K.statusText))};
K.onerror=function(){D.reject(new _.pw(_.cZ(_.zz(K)),K.statusText))};
K.send(G.serialize());return D.promise};var Pno=function(x){this.networkStatusManager=x;this.isDownloaded=krL===void 0?function(){return!1}:krL;
this.isReady=!1;this.hkM=kLs(this)},kLs=function(x){var G;
return _.T(function(D){if(D.nextAddress==1)return _.Z(D,IEP(),2);if(D.nextAddress!=3)return G=D.yieldResult,_.Z(D,U0s(G),3);x.uK=D.yieldResult;q0d(x.uK).then(function(){x.isReady=!0});
return D.return(x.uK)})},Eek=function(x,G,D){x.uK?(x=x.uK.i4({vA:D,
mE3:!0,em2:!0}),G.serviceIntegrityDimensions={poToken:x}):_.I4(Error("hj"))};
Pno.prototype.processContext=function(x){var G=this;if(!x.input.match(_.qW(k$7)))return _.RL();var D=x.innerTubeRequest,K=D.videoId;return!K||this.isDownloaded(D)||this.networkStatusManager&&!this.uK&&!this.networkStatusManager.isNetworkAvailable()?_.RL():this.uK?this.isReady?(Eek(this,D,K),_.RL()):new UV(q0d(this.uK).then(function(){Eek(G,D,K)})):new UV(this.hkM.then(function(z){return _.T(function(y){if(y.nextAddress==1)return _.Z(y,q0d(z),2);
Eek(G,D,K);_.c5(y)})}))};var h1q=new _.wq("WEB_PO_CONTEXT_PROCESSOR");var xLf=function(x,G){var D=this;this.xhF=0;var K;this.qJg=(K=G==null?void 0:G.qJg)!=null?K:window;this.networkStatusManagerPromise=G==null?void 0:G.networkStatusManagerPromise;var z;this.requestKey=(z=G==null?void 0:G.requestKey)!=null?z:_.Db("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var y;this.tKp=(y=G==null?void 0:G.tKp)!=null?y:function(e){return new Yh(e)};
var c;K=(c=G==null?void 0:G.rNQ)!=null?c:function(e,Q,p){return new fji(e,Q,p)};
this.bgChallenge=kTd(x.bgChallenge);this.ttlSeconds=PWf(vb(x.challenge||""));this.zD=K(this.requestKey,_.B("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.Df.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",x);w4n(this.zD);var W;this.cPF=(W=G==null?void 0:G.cPF)!=null?W:function(e){_.Lz(D.qJg.document,"visibilitychange",function(){D.qJg.document.visibilityState===
"visible"&&e()})}},DL8=function(x){if(!x.hf){var G={maxAttempts:5,
uyn:x.ttlSeconds*1E3};Nw3(x.qJg);x.hf=x.tKp({zD:x.zD,f3:{disable:_.B("html5_web_po_disable_remote_logging"),kp:"aGIf",njr:$qf("html5_web_po_experiment_ids"),f4c:_.B("wpo_dis_lfdms")?0:1E3,xt:_.B("wpo_gel_strz")?function(K){var z=ty8.get(K);z||(z=new fe7(K),z=new eB(z),ty8.set(K,z));return z}:void 0},
vJa:G,vup:x.bgChallenge,lVv:vN$});x.xhF=Date.now();TC9(x.hf,function(){x.xhF=Date.now()});
AEL(x.hf,function(){return _.T(function(K){return K.return(GdY(x))})});
var D=x.umI.bind(x);x.networkStatusManagerPromise&&x.ttlSeconds>0&&x.networkStatusManagerPromise.then(function(K){K.listen("publicytnetworkstatus-online",D)});
x.cPF(D)}};
xLf.prototype.umI=function(){if(Date.now()>this.xhF+this.ttlSeconds*1E3){var x;(x=this.hf)==null||c_s(x)}};
var GdY=function(x){if(x.c7D)return x.c7D;if(!x.hf)throw Error("ij");x.c7D=new F6({hf:x.hf,zD:x.zD,vWe:!0,onError:vN$});return x.c7D},fxh=function(x,G){x=new xLf(x,G);
DL8(x);GdY(x)};var az=function(x,G){this.store=x;this.queue=[];this.supportsFocus=_.B("web_ephemeral_actions_focus");G==null||G.addEventListener("yt-navigate-start",this.reset.bind(this))};
az.prototype.enqueue=function(x){var G=x.command,D=x.durationMs,K=x.elementToFocus;var z=x.label;var y=x.elementToFocus;x.command?z=_.Wg("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:z,shortcut:_.Wg("SHIFT_PLUS_ENTER")}):y&&this.supportsFocus&&(x=z+". "+_.Wg("SHIFT_PLUS_ENTER")+" for more information.",z=_.Wg("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:z,shortcut:_.Wg("SHIFT_PLUS_ENTER")},x));D={announcement:z,durationMs:D!=null?D:this.supportsFocus?8E3:void 0};G?D.command=G:K&&this.supportsFocus&&(K.classList.add("ephemeral-action-focusable-element"),
D.selector=K.tagName+".ephemeral-action-focusable-element");this.queue.push(D);KEO(this)};
az.prototype.activate=function(x){var G=_.TwL(this.store.getState());if(G){if(G==null?0:G.command)_.OI(G.command),this.store.dispatch(NVo(null));(G==null?0:G.selector)&&this.supportsFocus&&(G=document.querySelector(G.selector),_.hF3(G));x.preventDefault()}};
var KEO=function(x){if(!_.TwL(x.store.getState())&&x.queue.length){var G=x.queue.shift();G&&(x.previousAnnouncement===G.announcement&&(G.announcement+="\u00a0"),x.store.dispatch(NVo(G)),x.previousAnnouncement=G.announcement,x.timeoutId=setTimeout(function(){if(G.selector&&x.supportsFocus){var D;(D=document.querySelector(G.selector))==null||D.classList.remove("ephemeral-action-focusable-element")}x.store.dispatch(NVo(null));KEO(x)},G.durationMs))}};
az.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(NVo(null));this.queue.length=0;this.timeoutId=void 0};
az[dq]=[_.$t,_.WP];_.oz=new _.wq("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var zPx=new _.wq("AUTH_SERVICE_TOKEN");var P6E=_.gv(["about:blank"]),k5L;var aff=new _.wq("API_IFRAME_TOKEN"),oCi=new _.wq("FETCH_FN_TOKEN"),yQc=new _.wq("PARSE_FN_TOKEN"),lfi=new _.wq("WINDOW_REQUEST_TOKEN");var p5E;p5E=new _.wq("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.cQO=new _.wq("MISC_UI_SHARED_FLAGS_TOKEN");var Tnk=function(){};
Tnk.prototype.getFlag=function(x){if(x.configType!==2)throw Error("jj");return WEk(x)};
var WEk=function(x){switch(x.flagType){case "bool":return _.B(x.flagName);case "int":return _.tk(_.Gz(x.flagName));case "double":return _.Gz(x.flagName);case "string":return _.Db(x.flagName);case "int32_list":return $qf(x.flagName);case "int64_list":return $qf(x.flagName).map(function(G){return _.tk(G)});
case "string_list":return _.KL(x.flagName);default:throw Error("kj");}};var yP=function(x,G,D){G=G===void 0?{}:G;rU.call(this,D===void 0?"uninitialized":D);this.env=x;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}];G.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=G.shouldWaitOnAsyncImmediate)};
_.m(yP,rU);yP.prototype.init=function(x){var G=this,D;return _.T(function(K){if(K.nextAddress==1)return G.processPluginOptions.shouldWaitOnAsyncImmediate?_.Z(K,x(G.env),2):(x(G.env),K.jumpTo(2));if(K.nextAddress!=4)return G.jobSet?_.Z(K,G.jobSet.completedResolver.promise,4):K.jumpTo(4);D=_.Fp();D.parkOrScheduleJob(function(){G.transition("rendering")},10,"ci");
_.c5(K)})};
yP.prototype.initialRender=function(x){var G=this,D;return _.T(function(K){if(K.nextAddress==1)return G.processPluginOptions.shouldWaitOnAsyncImmediate?_.Z(K,x(G.env),2):(x(G.env),K.jumpTo(2));if(K.nextAddress!=4)return G.jobSet?_.Z(K,G.jobSet.completedResolver.promise,4):K.jumpTo(4);D=_.Fp();D.parkOrScheduleJob(function(){G.transition("rendered")},10,"cr");
_.c5(K)})};
yP.prototype.afterRenderImmediate=function(x){var G=this,D;return _.T(function(K){if(K.nextAddress==1)return G.processPluginOptions.shouldWaitOnAsyncImmediate?_.Z(K,x(G.env),2):(x(G.env),K.jumpTo(2));if(K.nextAddress!=4)return G.jobSet?_.Z(K,G.jobSet.completedResolver.promise,4):K.jumpTo(4);D=_.Fp();D.parkOrScheduleJob(function(){G.transition("after-render-deferred")},10,"carml");
_.c5(K)})};
yP.prototype.afterRenderDeferred=function(x){var G=this;return _.T(function(D){x(G.env);_.c5(D)})};var ePk={},Z$6=(ePk.rendered={priority:0,callback:function(x){Jvs(x.injector.resolve(ru))}},ePk);var Mfk=!1,oHL=0,DTC=null,aWn=null;var QVO=new _.wq("NETWORK_SLI_TOKEN");var pLj=function(x,G,D,K){this.networkSli=x;this.fetchFn=G;this.parseFn=D;this.requestFn=K};
pLj.prototype.fetch=function(x,G,D){var K=this,z,y,c;return _.T(function(W){z=Vf6(K,x,G);c=(y=K.fetchFn)!=null?y:fetch;return W.return(c(z).then(function(e){return K.handleResponse(e,D)}).catch(function(e){_.O9(e);
if((D==null?0:D.expectJsonStrict)&&e instanceof lk&&e.errorType===1)return Promise.reject(e)}))})};
var NXi=function(x,G,D,K){var z,y,c,W,e,Q;return _.T(function(p){switch(p.nextAddress){case 1:return z=Vf6(x,G,D),_.Kl(p,2),_.Z(p,fetch(z),4);case 4:y=p.yieldResult;_.iI(p,3);break;case 2:throw _.lX(p),new lk(2,"Failed to parse streaming response",z.url);case 3:if(!y.redirected&&!y.ok)throw(c=x.networkSli)==null||c.failure(),new _.LL("Streaming fetch request not ok",z.url);if(!y.body)throw new _.LL("No response body in streaming response",z.url);W=y.body.pipeThrough(new TextDecoderStream).getReader();
e=new _.fZ;Q={};return p.return(b$T(x,W,e,fRC,Q,K))}})},Vf6=function(x,G,D){if(x.networkSli){var K=_.c0(_.J$(G,"key"))||"/UNKNOWN_PATH";
x.networkSli.start(K)}K=D;_.B("wug_networking_gzip_request")&&(K=g_h(D));var z;return new ((z=x.requestFn)!=null?z:window.Request)(G,K)},b$T=function(x,G,D,K,z,y){var c,W,e,Q,p,V,L,r,H;
return _.T(function(O){if(O.nextAddress==1)return _.Z(O,G.read(),2);c=O.yieldResult;W=c.value;if(e=c.done)return(Q=x.networkSli)==null||Q.success(),O.return(z);try{p=D.parse(W)}catch(A){throw new lk(1,"Failed to parse streaming response",W);}if(p!=null)for(V=_.l(p),L=V.next();!L.done;L=V.next())r=L.value,K(z,r),H=void 0,(H=y)==null||H(z,r);return O.return(b$T(x,G,D,K,z,y))})};
pLj.prototype.handleResponse=function(x,G){var D,K=(D=this.parseFn)!=null?D:JSON.parse;D=x.text().then(function(z){if((G==null?0:G.jspbResponseCtor)&&x.ok)return KzV(G.jspbResponseCtor,z);z=z.replace(")]}'","");if((G==null?0:G.expectJsonStrict)&&z)try{var y=K(z)}catch(W){throw new lk(1,"JSON parsing failed after fetch");}var c;return(c=y)!=null?c:K(z)});
x.redirected||x.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),D=D.then(function(z){_.O9(new _.LL("Error: API fetch failed",x.status,x.url,z));return Object.assign({},z,{errorMetadata:{status:x.status}})}));
return D};
pLj[dq]=[_.P6(QVO),_.P6(oCi),_.P6(yQc),_.P6(lfi)];var LEb=new _.wq("NETWORK_MANAGER_TOKEN");var Bni=[1,2,4,8,16,30],sVY=function(x){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=x.maxTimeMs;this.maxFrameCount=x.maxFrameCount===void 0?Math.ceil(60*x.maxTimeMs/1E3):x.maxFrameCount;x=_.l(Bni);for(var G=x.next();!G.done;G=x.next())this.brokenFrameSummarizers.push(new rQx(G.value/60*1E3))},YDY=function(x){var G=x.frameCountInternal>=x.maxFrameCount;
return x.elapsedTimeMs>=x.maxTimeMs||G},mLi=function(x){for(var G=[],D=_.l(x.brokenFrameSummarizers),K=D.next();!K.done;K=D.next())K=K.value,K=K.brokenFrameCount!==0?{severityMs:Math.round(K.targetFrameTimeMs),
eventCount:K.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(K.averageDurationBetweenEventsMs)}:void 0,K&&G.push(K);return{summaries:G,monitoringDurationMs:Math.round(x.elapsedTimeMs)}};
_.Nq.Object.defineProperties(sVY.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 rQx=function(x){this.targetFrameTimeMs=x;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.Nq.Object.defineProperties(rQx.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var H$O=function(){};
H$O.prototype.start=function(x,G){var D=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var K=new sVY({maxTimeMs:x});this.monitor=K;this.lastSummaryInternal=void 0;this.metadataToLog=G;return new Promise(function(z){var y=function(c){if(c===void 0)D.stop(),z(void 0);else if(D.monitor!==K)c=Object.assign({},mLi(K),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),z(c);else{var W=D.monitor;if(!YDY(W)){W.frameCountInternal++;if(W.prevTime===void 0)W.startTime=
c;else for(var e=c-W.prevTime,Q=_.l(W.brokenFrameSummarizers),p=Q.next();!p.done;p=Q.next()){p=p.value;var V=p.currTimeMs;p.currTimeMs+=e;e>p.targetFrameTimeMs+2&&(p.brokenFrameCount++,p.timeOfFirstBrokenFrameMs===void 0&&(p.timeOfFirstBrokenFrameMs=V),p.timeOfLastBrokenFrameMs=V)}W.prevTime=c}YDY(D.monitor)?z(D.stop()):_.Fj.addJob(y,5,0)}};
_.Fj.addJob(y,5,0)})};
H$O.prototype.stop=function(x){if(!this.monitor)return this.lastSummaryInternal;var G=Object.assign({},mLi(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(G.monitoringDurationMs){x=x!=null?x:this.metadataToLog;var D={droppedFramesSummary:G,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};x&&(D[x.type]=x.data);_.Fv("manualSmoothnessMeasurement",D)}this.monitor=void 0;this.lastSummaryInternal=G;this.metadataToLog=void 0;return G};_.$LT=new _.wq("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var FEY;FEY=function(x){this.JSC$16278_expiringStorage=new rx(x)};
_.COj=function(x){if(_.y4C()&&(x=_.QZh(_.VR()+"::"+x)))return new FEY(x)};
FEY.prototype.set=function(x,G,D){D=D!==void 0?Date.now()+D:void 0;this.JSC$16278_expiringStorage.set(x,G,D)};
FEY.prototype.get=function(x){return this.JSC$16278_expiringStorage.get(x)};
FEY.prototype.remove=function(x){this.JSC$16278_expiringStorage.remove(x)};var Ifx=new _.wq("SESSION_STORAGE");_.lZ=function(){};
_.lZ.getInstance=function(){var x=_.nT("ytglobal.storage_");x||(x=new _.lZ,_.Jv("ytglobal.storage_",x));return x};
_.lZ.prototype.estimate=function(){var x,G,D;return _.T(function(K){x=navigator;return((G=x.storage)==null?0:G.estimate)?K.return(x.storage.estimate()):((D=x.webkitTemporaryStorage)==null?0:D.queryUsageAndQuota)?K.return(lW$()):K.return()})};
_.Jv("ytglobal.storageClass_",_.lZ);var jVc=!1;var O$k=_.gv(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),XLf=_.gv(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var Nfk={"/":_.yM,"/?feature=ytca":_.yM,"/feed/downloads":_.edE};var T0=function(x,G,D){this.JSC$16291_upliftPromise=x;this.store=G;this.JSC$16291_persistentStorePromiseAccessor=D};
T0.prototype.shouldPreferLocalResponse=function(x){return x.browseId==="FEdownloads"||x.browseId==="FEsmart_downloads"&&_.B("kevlar_modern_downloads_page")?!0:!1};
T0.prototype.localInnertubeResponse=function(x){var G=this;return _.T(function(D){return x.browseId==="FEdownloads"?_.B("kevlar_modern_downloads_page")?D.return(AQ6(G)):D.return(ULi(G)):x.browseId==="FEsmart_downloads"&&_.B("kevlar_modern_downloads_page")?D.return(RP6(G)):D.return(Promise.reject(Error("mj")))})};
T0.prototype.canProvideFallbackResponse=function(){return!0};
T0.prototype.localFallbackInnertubeResponse=function(x){var G=this,D,K,z;return _.T(function(y){switch(y.nextAddress){case 1:return _.Z(y,G.JSC$16291_persistentStorePromiseAccessor(),2);case 2:D=y.yieldResult;if(x.browseId!=="SPaccount_downloads"||!D){y.jumpTo(3);break}return _.Z(y,t3V(D),4);case 4:if(K=y.yieldResult)return y.return(_.DU(K));case 3:return x.browseId==="FEwhat_to_watch"?y.return(SDf(G)):(z=_.B("web_offline_continuation_automatic_retry")||_.B("web_offline_continuation_retry_button"))&&
x.continuation?y.return(nCc(G)):y.return(i$f(G))}})};
var SDf=function(x){var G;return _.T(function(D){if(D.nextAddress==1)return _.Z(D,x.JSC$16291_upliftPromise,2);G=_.vo3(x.store.getState().entities);return G.length?D.return(gC6(x,G)):D.return(i$f(x))})},ULi=function(x){var G,D;
return _.T(function(K){if(K.nextAddress==1)return _.Z(K,x.JSC$16291_upliftPromise,2);if(K.nextAddress!=3)return G=uhO([{offlineItemSectionRenderer:{}}]),_.Z(K,dL6(x,G),3);D=K.yieldResult;D.onResponseReceivedActions=[L1("REFRESH_DOWNLOADS")];return K.return(D)})},AQ6=function(x){var G,D,K,z,y,c,W,e,Q,p,V,L,r;
return _.T(function(H){if(H.nextAddress==1)return _.Z(H,x.JSC$16291_upliftPromise,2);if(H.nextAddress!=3)return G=x.store.getState(),D=G.entities,K=_.Bk(D),z=_.rK(D),y=_.sLd(G),c=_.rzD(G),W=_.YVE(G),e=_.kb$(D),Q=_.MW(K),p=_.sA(D),V={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.svC(K,z,e,y,c,Q,p,W),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},L=_.Wg("DOWNLOADS",void 0,"Downloads"),_.Z(H,wLx(x,V,L),3);r=H.yieldResult;
r.onResponseReceivedActions=[L1("REFRESH_DOWNLOADS")];return H.return(r)})},RP6=function(x){var G,D,K,z,y,c,W,e,Q;
return _.T(function(p){if(p.nextAddress==1)return _.Z(p,x.JSC$16291_upliftPromise,2);if(p.nextAddress!=3)return G=x.store.getState(),D=G.entities,K=_.Bk(D),z=_.MW(K),y=_.sA(D),c={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.mAE(K),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},W=_.Wg("SMART_DOWNLOADS",void 0,"Smart downloads"),e=BF$(z,y),_.Z(p,wLx(x,c,W,e),3);Q=p.yieldResult;Q.onResponseReceivedActions=[L1("REFRESH_DOWNLOADS")];
return p.return(Q)})},i$f=function(x){var G,D;
return _.T(function(K){if(K.nextAddress==1)return _.Z(K,G0(x.JSC$16291_upliftPromise,x.store),2);G=K.yieldResult;D=uhO([NZQ(G)]);return K.return(dL6(x,D))})},nCc=function(x){var G,D,K,z;
return _.T(function(y){if(y.nextAddress==1)return G={},D=x.store.getState().continuation.continuationCommand,_.Hh(G,_.Il,D),_.Z(y,G0(x.JSC$16291_upliftPromise,x.store,G,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);K=y.yieldResult;z={};_.Hh(z,_.ARZ,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:K}}}],targetId:"browse-feedFEwhat_to_watch"});return y.return({responseContext:{},onResponseReceivedActions:[z]})})},uhO=function(x){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:x}}}}]}}},gC6=function(x,G){var D,K;
return _.T(function(z){var y={contents:Bb(G)};D=y&&y.contents?y:{};_.B("kevlar_modern_downloads_page")&&(D=Object.assign({},_.H0Q(G),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));K={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:D}}}]}};return z.return(dL6(x,K))})},dL6=function(x,G){var D,K;
return _.T(function(z){if(z.nextAddress==1)return _.Z(z,x.JSC$16291_persistentStorePromiseAccessor(),2);if(z.nextAddress!=3)return D=z.yieldResult,_.Z(z,K6(D),3);K=z.yieldResult;return z.return({responseContext:{},contents:G,topbar:K})})},wLx=function(x,G,D,K){var z,y;
return _.T(function(c){if(c.nextAddress==1)return _.Z(c,x.JSC$16291_persistentStorePromiseAccessor(),2);if(c.nextAddress!=3)return z=c.yieldResult,_.Z(c,K6(z),3);y=c.yieldResult;var W=c.return;var e=K;e=e===void 0?"":e;e={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:D}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.Wg("SETTINGS",void 0,"Settings"),accessibilityText:_.Wg("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:JN("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:e}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:D};
return W.call(c,{responseContext:{},contents:G,topbar:y,header:{pageHeaderRenderer:e}})})};var qDf=function(){this.moduleRegistry={};this.fetchCount=0};
qDf.prototype.isFetching=function(){return this.fetchCount>0};
var Xm=function(x,G){x.moduleRegistry[G.toString()]={asyncId:G,isFetching:!1};return x};
qDf.prototype.JSC$16302_loadModules=function(){for(var x=this,G=new Map,D=[],K=_.l(_.rC.apply(0,arguments)),z=K.next();!z.done;z=K.next()){z=z.value;var y=this.moduleRegistry[z];y?y.resolver?G.set(z,y.resolver):(y.resolver=new _.Kt,G.set(z,y.resolver),D.push(y.asyncId),y.isFetching=!0):(y=new _.Kt,G.set(z,y),y.resolve(void 0))}D.length&&(this.fetchCount+=1,_.M_(_.ti.getMultipleAsync.apply(_.ti,_.B5(D)).then(function(c){for(var W=0;W<D.length;W++){var e=c[W],Q=x.moduleRegistry[D[W].toString()];Q.isFetching=
!1;Q.resolver.resolve(e)}}).catch(function(c){for(var W=_.l(D),e=W.next();!e.done;e=W.next()){e=e.value;
var Q=x.moduleRegistry[e.toString()];Q.resolver=void 0;Q.isFetching=!1;G.get(e.toString()).reject(c)}}),function(){--x.fetchCount}));
return Promise.all([].concat(_.B5(G.values())).map(function(c){return c.promise}))};_.AR=new _.wq("MODULE_REGISTRY_TOKEN");var Nn6={},vCf=(Nn6.rendered={priority:0,callback:function(x){a:{var G=void 0;try{var D;b:{if(_.fNC()){var K=_.MqP(_.VR()+"::pom");if(K){var z=new Mz(K);break b}}z=void 0}var y=(D=z)==null?void 0:D.get("role_text");if(!y)break a;G={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:y}]}}}}}}catch(e){}G&&x.injector.resolve(_.hm).resolveCommand(G)}try{var c=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(c){var W=JSON.parse(c);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
W&&x.injector.resolve(_.hm).resolveCommand(W)}}catch(e){}}},Nn6);var JQc,ffx={},tfk=(ffx.initialized={priority:10,callback:function(){JQc=L6()}},ffx.rendering={callback:function(x){var G;
return _.T(function(D){if(D.nextAddress==1)return _.Z(D,JQc,2);G=D.yieldResult;if(!G.endpoint)throw Error("oj`"+_.Df.location.href);Y1(x,G);_.c5(D)})}},ffx);var kdx={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(_.B5(_.B("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(x){var G=x.stack;if(G.includes("chrome://")||G.includes("chrome-extension://")||x.message.includes("chrome-extension://")||G.includes("moz-extension://")||G.includes("local.adguard.org")||G.includes("auctioneer3.50million.club")||G.includes("youtubedownloader")||G.includes("youtube_home_page")||G.includes("is_youtube_video_no_longer_available")||
G.includes("switchScreenSizeHack")||G.includes("yt_main_big_banner.js")||G.includes("YouTubeCenter.js")||G.includes("/mytube.js")||G.includes("JSON.parseWrapper")||G.includes("/inj_js/common.js")||G.includes("firebug-lite")||G.includes(".repl.co/")||G.includes("linkfix")||G.includes("playAfterAd")||x.message.includes("Access is denied for this document")&&G.includes("<anonymous>")||x.fileName==="user-script"||x.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
G.includes("<anonymous>"))return!0;if(G.includes("https://www.youtube.com"))return!1;x=G.split("\n");if(!x.length)return!1;if(x.length<=3&&G.includes("s.onloadeddata"))return!0;G=0;for(var D=_.l(x),K=D.next();!K.done;K=D.next())K=K.value,(K.includes("https://")||K.includes("http://"))&&G++;return G/x.length>.95},
weight:0},{callback:function(x){return x.message==="Unknown Error"&&x.name.indexOf("NS_")===0},
weight:100},{callback:function(x){if(!_.E$)return!1;var G=x.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||x.message.includes("available to complete this operation"),D=x.stack.includes("webcomponents")&&x.message==="Object doesn't support this action";x=x.message.includes("object that does not implement interface Element");return G||D||x},
weight:0},{callback:function(x){return x.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(x){return x.message==="Operation is not supported"&&(x.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(x){return x.stack.includes("eval code (eval (code:1:1)")||x.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(x){return x.message.includes("Permission denied")&&x.stack.includes("this.domHandler")?!0:x.name.includes("TypeError")&&x.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(x){if(!x.stack)return!1;var G=x.stack.trim().split("\n");G.length&&G[0].endsWith("Error: "+x.message)&&G.shift();G.length&&G[G.length-1].includes("at window.onerror (")&&G.pop();if(!G.length)return!0;if(x.message==="Script error.")return G[0].includes("www.youtube.com")||G.length>=2&&G[0].startsWith("at new")&&G[1].startsWith("at window.onerror");if(x.message==="Unexpected token")return!0;x=_.l(G);for(G=x.next();!G.done;G=x.next())if(G=G.value,!(G.includes("<anonymous>")||
G.startsWith("load@")||G.startsWith("global code@")||G.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(x){return x.message==="Cannot read property 'experiments'"&&x.stack.includes("/s/player/")},
weight:500},{callback:function(x){return x.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(x){return x.stack.includes("/embed.js")?(x.params&&x.params&&(x.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.B("use_error_suppression"))var x=_.Am("SUPPRESS_CLIENT_ERRORS",!1);else{if(x=_.Kr)x=/Chrome\/(\d+)/.exec(_.Q3()),x=(x?parseFloat(x[1]):NaN)>=66;x=!(x||_.Dh&&_.GK(65)||_.Xf&&_.GK(12.1)||NU&&_.GK(79))}return x},
weight:500}]};var POf={},ECC=(POf.initialized={priority:10,callback:function(x){x.injector.addProvider({provide:U$Z,useValue:x.root});x.injector.addProvider({provide:S6Z,useValue:Wwf});x.injector.addProvider({provide:ns7,useValue:kdx});var G={};x.injector.addProvider((G.provide=iQ8,G.useFactory=function(D,K){return function(){cLL(D,K)}},G[dq]=[S6Z,
ns7],G));x.injector.addProvider({provide:od,useClass:od})}},POf);var hPj={},x0T=(hPj.initialized={priority:3,callback:function(){var x;if(x=y$3()){x=x.replace("/",".");var G=_.M5();G.set("tz",x);G.save();x=!0}else x=!1;x||(x=_.M5(),x.set("utco",-Math.floor((new Date).getTimezoneOffset())),x.save())}},hPj);var G7x={},D0b=(G7x.initialized={priority:10,callback:function(x){x.injector.resolve(od).start();x=_.Rn();var G=_.Uo("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.Uo("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.Uo("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.Uo("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.yS(_.Own(),{mainAppWeb:Object.assign({},x,{pageType:G})});_.yS(A33(),{mainAppWeb:Object.assign({},x,{pageType:G})});
_.yS(U_O(),{mainAppWeb:x});_.yS(RyQ(),{mainAppWeb:x});abh(function(){_.lh(U_O(),"FAILURE");_.lh(RyQ(),"FAILURE")});
r4C();sBO();nbO()}},G7x);var Khi={},zZj=(Khi.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.Fs("dl"),_.Fp().processSignal("pcl");else{var x=function(){_.Fs("dl");_.Fp().processSignal("pcl");window.removeEventListener("load",x)};
window.addEventListener("load",x)}}},Khi);var aox={},o8C=(aox.rendering={priority:0,callback:function(){var x=_.Fp();x.parkOrScheduleJob(function(){x.processSignal("eocs")},10,"eor",5E3)}},aox);var ykb=function(){};
_.m(ykb,Fr);
ykb.prototype.resolveCommand=function(x,G){var D,K,z,y,c,W,e,Q;return _.T(function(p){z=(D=_.Y(x,_.Vu7))==null?void 0:(K=D.dialog)==null?void 0:K.commentReplyDialogRenderer;if(!z)throw new _.LL("No dialog in createCommentReplyDialogEndpoint");c=(y=G.form)==null?void 0:y.event;if(!c)throw new _.LL("Event not passed in when resolving command");W=_.l(c.composedPath());for(e=W.next();!e.done;e=W.next())if(Q=e.value,Q.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||Q.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return Q.showReplyDialog(z),p.return();
_.c5(p)})};var cW=function(x){this.pageRequestService=x;this.JSC$16317_prefetchCoordinator=Y68()};
_.m(cW,Fr);cW.prototype.resolveCommand=function(x){var G=this,D,K,z,y;return _.T(function(c){if(c.nextAddress==1){D=_.Y(x,Pl7);if((K=D)==null||!K.taskId)throw Error("pj");z=D.taskId;_.Kl(c,2);return _.Z(c,_.JM8(G.pageRequestService,x,{},"").then(function(W){if(!W)throw Error("qj");},function(W){throw Error("rj`"+W);
}),4)}if(c.nextAddress!=2)return $Rk(G.JSC$16317_prefetchCoordinator,z),_.iI(c,0);
y=_.lX(c);ws(G.JSC$16317_prefetchCoordinator,z,y);_.c5(c)})};
cW[dq]=[bh];var T3=function(x){this.innertubeTransportService=x};
_.m(T3,Fr);T3.prototype.resolveCommand=function(x){var G=this,D,K;return _.T(function(z){D=_.Y(x,hqi);if(D.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||D.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")K=D.boolValue?2:1,_.de.getInstance().setState(K,!0,!0);return _.Z(z,_.Rl(G.innertubeTransportService,x),0)})};
T3[dq]=[_.Hi];var WW={},loj=(WW.addToPlaylistEndpoint=vg(pG),WW.addToToastAction=vg(VL),WW.adsControlFlowOpportunityReceivedCommand=vg(EQ),WW.captionLanguageSelectActionCommand=vg(jF),WW.captionPickerEndpoint=vg(OM),WW.changeMiniAppPlayStateCommand=vg(VK),WW.changeTimelyActionVisibilityCommand=vg(pR),WW.channelCreationFormEndpoint=vg(TJ),WW.clearLocationCommand=vg(QK),WW.clearUrlParamCommand=vg(bT),WW.copyLinkCommand=vg(SF),WW.copyTextEndpoint=vg(GJ),WW.createCommentReplyDialogEndpoint=jbC(ykb),WW.createPlaylistServiceEndpoint=
vg(nG),WW.dismissDialogEndpoint=vg(Bv),WW.entityUpdateCommand=vg(KG),WW.feedbackEndpoint=vg(oR),WW.getAnswerCommand=vg(ODq),WW.getPaymentsClientTokenCommand=vg(B9),WW.getTranscriptEndpoint=vg(bB),WW.googlePaymentBillingCommand=vg(rD),WW.googlePaymentPurchaseManagerCommand=vg(sT),WW.hideEngagementPanelEndpoint=vg(ro),WW.insertRichSectionCommand=vg(eF),WW.listMutationCommand=vg(ZR),WW.logGtmCommand=vg(Wv),WW.notifyDropdownOptionSelectedCommand=vg(LG),WW.openAdAllowlistInstructionCommand=vg(_.hC),WW.openOnePickAddVideoModalCommand=
vg(iT),WW.persistSubscriptionsDisplayPreferencesCommand=vg(vv),WW.pingingEndpoint=vg(x3),WW.playlistEditEndpoint=vg(uT),WW.playlistVotingRefreshPopupCommand=vg(wo),WW.refreshPanelEndpoint=vg(sM),WW.saveImageToDeviceEndpoint=vg(DR),WW.scrollToSectionEndpoint=jbC(XK8),WW.seekToVideoTimestampCommand=vg(XW),WW.selectCountryCommand=vg(JI),WW.setCookieCommand=vg(fG),WW.setLocalStorageCommand=vg(W9),WW.setPrefStorageEntryCommand=vg(k3),WW.setSettingEndpoint=vg(T3),WW.sfvAudioItemPlaybackCommand=vg(AI),WW.shareImageCommand=
vg(Pv),WW.sharingProviderDataCommand=vg(EM),WW.showCaptionLanguageSelectActionCommand=vg(UM),WW.showDialogCommand=vg(Hv),WW.showEngagementPanelEndpoint=vg($3),WW.showSheetCommand=vg(FW),WW.showSnackbarCommand=vg(T_),WW.showTransientPlayerScrimOverlayCommand=vg(RR),WW.submitFormWithValidationFlowCommand=vg(cv),WW.talkToRecsDeselectCommand=vg(et),WW.talkToRecsNextCommand=vg(Zp),WW.talkToRecsSelectCommand=vg(M$),WW.talkToRecsUpdateTextCommand=vg(QL),WW.toggleEngagementPanelCommand=vg(CG),WW.undoFeedbackEndpoint=
vg(lT),WW.updateEngagementPanelContentCommand=vg(IR),WW.updateUrlParamCommand=vg(LR),WW.verifyCommand=vg(TJ),WW.webNativeShareCommand=vg(hI),WW.webSubmitFormCommand=vg(qr),WW.ACK_PLAYABLES_3P_DATA_CONSENT=vg(xD),WW.CANCEL_NAVIGATION=vg(G_),WW.COPY_SHARE_URL=vg(Dp),WW.MINI_APP_EXIT_DIALOG_SEEN=vg(z_),WW.MINI_APP_OPEN_URL=vg(KR),WW.REQUEST_MINI_APP_FULLSCREEN=vg(ag),WW.RESUME_NAVIGATION=vg(og),WW.SHARE_PLAYABLE_WITH_HIGH_SCORE=vg(yL),WW.TELL_US_WHY=vg(yK),WW);
_.B("web_enable_prefetching_videos_on_home")&&(loj.prefetchWatchCommand=vg(cW),loj.registerTasksCommand=vg(Nj));_.B("enable_share_panel_navigation_logging_fix_on_web")&&(loj.shareEntityServiceEndpoint=vg(Y3));var hJu=Object.assign({},loj);var ckj={},T9c=(ckj.initialized={priority:10,callback:FQd},ckj);var WhY={},eZf=(WhY.initialized={callback:function(x){var G={},D={};uRn().install((G.document_disposed={callback:function(){_.B("finalize_all_timelines")?Gsf():ms();KQC("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.ED3();var K=x.injector.resolve(od);K.intervalId!==void 0&&(K.intervalId&&_.Fj.cancelJob(K.intervalId),K.intervalId=void 0,--K.currentPartitionIndex,K=sgE(K),K>0&&gVi({mainAppWeb:_.Rn(),survivalSli:{partitionMinute:K,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));jLJ(Xg);Az!=null&&
Az.flush();EA&&EA.snapshotAndFlush();K=_.l(ty8.values());for(var z=K.next();!z.done;z=K.next())z.value.snapshotAndFlush()}},G),(D.flush_logs={callback:function(){_.CE()}},D))}},WhY);var Zuf={},MZc=(Zuf.rendered={priority:0,callback:function(){var x=new trs;x.increment("STARTED");if(_.Am("LOGGED_IN")&&_.Am("SERVER_VERSION")!=="test"&&_.Am("SERVER_VERSION")!=="dev"&&!AbE()&&!XrV()){x.increment("EXECUTING");var G=document.createElement("iframe");G.style.display="none";_.LzL(G,2,_.V$("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.Am("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(G);x.increment("DONE")}}},Zuf);var Qsf={},psb=(Qsf.rendered={callback:function(){Y68().resume()}},Qsf);var VZ6={acknowledgeChannelTouStrikeCommand:Q7(hl),addToPlaylistServiceEndpoint:Q7(KO),addToPlaylistEndpoint:Q7(KO),addUpcomingEventReminderEndpoint:Q7(r6),browseEndpoint:Q7(a88),channelCreationFormEndpoint:Q7(v9),channelCreationServiceEndpoint:Q7(Jl),claimLegacyYoutubeChannelEndpoint:Q7(OT),clearSearchHistoryEndpoint:Q7(ZT),clearWatchHistoryEndpoint:Q7(M3),commerceActionCommand:pt(mD),createBackstagePostEndpoint:Q7(H9),createBroadcastCommand:Q7(si),createCommentEndpoint:Q7(dD),createCommentReplyEndpoint:Q7(uB),
createLiveChatPollEndpoint:Q7(Yz),createPlaylistServiceEndpoint:Q7(zO),crossAccountChannelTransferEndpoint:Q7(V8),deleteLiveChatMessageCommand:Q7(mk),deletePlaylistEndpoint:Q7(ai),deleteVideoEndpoint:Q7(Bn),dismissalEndpoint:Q7(xz),feedbackEndpoint:Q7(GB),flagEndpoint:Q7(Wn),getAccountSwitcherEndpoint:Q7(pv),verifyCommand:Q7(mi),getAccountsListInnertubeEndpoint:Q7(Lv),getCommentsFromInboxCommand:Q7(g6),getDownloadActionCommand:Q7(JB),getFlowCommand:pt(eh),getKidsBlocklistPickerCommand:Q7(eP),getNotificationMenuEndpoint:Q7(l8u),
getPaymentInstrumentsParamsCommand:Q7(jP),getPaymentsClientTokenCommand:pt(mD),getPdgBuyFlowCommand:Q7(GO),getReportFormEndpoint:Q7(Z0),getSearchInVideoCommand:Q7(pO),getAnswerCommand:Q7(Qv),getSurveyCommand:Q7(LO),getTranscriptEndpoint:Q7(sr),getPostVideoPreviewEndpoint:Q7(FR),decorateMessageEndpoint:Q7($D),likeEndpoint:Q7(fR),liveChatActionEndpoint:Q7(Cv),liveChatEndpoint:Q7(FI),liveChatItemContextMenuEndpoint:Q7(Ha),liveChatPurchaseMessageEndpoint:Q7(I7),liveChatReplayEndpoint:Q7($z),manageLiveChatUserEndpoint:Q7(Oi),
metadataUpdateCommand:Q7(nv),moderateLiveChatEndpoint:Q7(XI),modifyChannelNotificationPreferenceEndpoint:Q7(q3),notificationOptOutEndpoint:Q7(N3),openSuperStickerBuyFlowCommand:Q7(jh),performCommentActionEndpoint:Q7(nR),playlistEditEndpoint:Q7(yv),playlistEditorEndpoint:Q7(oi),profileCardCommand:Q7(Ba),recordNotificationInteractionsEndpoint:Q7(va),reelWatchEndpoint:Q7(lL),refreshPanelEndpoint:Q7(tB),removeUpcomingEventReminderEndpoint:Q7(AB),resolveLocationCommand:Q7(Sh),revealBusinessEmailCommand:Q7(Al),
searchEndpoint:Q7(_.chk),sendLiveChatMessageEndpoint:Q7(Ui),sendLiveChatVoteEndpoint:Q7(R7),setSettingEndpoint:Q7(tl),shareEntityServiceEndpoint:pt(ET),sharingProviderDataCommand:Q7(bL),showEngagementPanelEndpoint:Q7(kz),showMoreDrawerCommand:Q7(Ei),showSheetCommand:Q7(hB),showDialogCommand:Q7(Pa),subscribeEndpoint:Q7(kD),transcriptSubmitCaptionCorrectionCommand:Q7(rs),undoFeedbackEndpoint:Q7(TB),unsubscribeEndpoint:Q7(P9),updateBackstagePostEndpoint:Q7(Ig),updateCommentEndpoint:Q7(q$),updateCommentReplyEndpoint:Q7(wD),
updateCommentsSettingsEndpoint:Q7(N$),updateCreatorChannelInnertubeCommand:Q7(Rg),updateKidsBlacklistEndpoint:Q7(Mj),updateEngagementPanelContentCommand:Q7(x4),updatePdgFeatureEnablementCommand:Q7(D0),updatedMetadataEndpoint:Q7(i5),validateChannelHandleCommand:Q7(St),updateChannelPageSettingsEndpoint:Q7(UT),verifyAgeEndpoint:Q7(Wa),watchEndpoint:pt(KF),whitelistEditEndpoint:Q7(Y4),ypcCancelRecurrenceEndpoint:Q7(Hn),ypcCompleteTransactionEndpoint:Q7($4),ypcFixInstrumentEndpoint:Q7(CO),ypcGetCartEndpoint:Q7(FG),
ypcGetOffersEndpoint:Q7(Ii),ypcHandleTransactionEndpoint:pt(Or),ypcLogWalletAnalyticDataEndpoint:Q7(XG),ypcOffersEndpoint:Q7(AV),ypcPauseSubscriptionCommand:Q7(Ur),ypcRedeemCodeEndpoint:Q7(Ri),ypcResumeSubscriptionCommand:Q7(SP),ypcUpdateFopEndpoint:Q7(CO)},e9={},buj=(e9.GET_ACCOUNT_MENU=Q7(b5),e9.GET_NOTIFICATIONS_MENU=Q7(yhk),e9.GET_NOTIFICATIONS_INBOX=Q7(u5),e9.GET_UNSEEN_NOTIFICATION_COUNT=Q7(w6),e9.GET_USER_MENTION_SUGGESTIONS=Q7(CR),e9.LOAD_GUIDE=Q7(osk),e9.SUBMIT_FEEDBACK=Q7(ca),e9),Z4={},
Lhf=(Z4.CONTINUATION_REQUEST_TYPE_BROWSE=Q7(jt),Z4.CONTINUATION_REQUEST_TYPE_SEARCH=Q7(Vv),Z4.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=Q7(aQ),Z4.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=Q7(Q8),Z4.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=Q7(gD),Z4.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=Q7(iB),Z4.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=Q7(TO),Z4.CONTINUATION_REQUEST_TYPE_GET_PANEL=Q7(fv),Z4),B98={player:pt(KF),watchNext:Q7(zP)},rkj={player:pt(KF),reelItemWatch:Q7(lL),reelWatchSequence:Q7(cn)},
ssT={watchEndpoint:pt(oQ)},YEj={commandEndpointMap:VZ6,signalEndpointMap:buj,continuationEndpointMap:Lhf,watchEndpointMap:B98,reelWatchEndpointMap:rkj,streamingEndpointMap:ssT};var m04,Hu8,$08,Fhk={disableAllTransitions:(Hu8=(m04=window).matchMedia)==null?void 0:($08=Hu8.call(m04,"(prefers-reduced-motion: reduce)"))==null?void 0:$08.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["zoom",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}]])};var CqO=new _.wq("VIEW_TRANSITION_MANAGER_CONFIG_TOKEN");_.MN=new _.wq("VIEW_TRANSITION_MANAGER_TOKEN");var Io8=function(x){this.config=x;this.transitionTasksMap=new Map;x=_.l(x.transitionConfigs);for(var G=x.next();!G.done;G=x.next())G=_.l(G.value).next().value,this.transitionTasksMap.set(G,[])};
Io8[dq]=[CqO];var CjC={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData:void 0,toastData:void 0,playabilityStatus:void 0,isDisabled:!1,isReadyToResume:!1,watchWhile:!1,playerVe:void 0,expandVe:void 0,closeVe:void 0,readyToResumeVe:void 0,readyToResumeCloseVe:void 0,repositionVe:void 0,resizeVe:void 0};var jBQ=["videoPrimaryInfoRenderer","title"],OA3=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var jsY;jsY=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.Oub=_.Nv(function(x){x=_.qv(x,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var G=x.data,D=x.playlistData,K=x.expanded,z=x.onExpandClick,y=x.isReadyToResume,c=function(){var p;return!((p=D())==null||!p.contents)},W=function(){var p=D();
return p&&p.totalVideos&&p.currentIndex!==void 0?p.currentIndex+1+" / "+p.totalVideos:""};
x=_.WH(function(){_.QP(_.Eo().resolve(_.O$));return!1});
var e=_.WH(function(){c()&&z&&z()}),Q={};
return _.M("ytd-miniplayer-info-bar",{class:_.ym("ytdMiniplayerInfoBarHost",(Q.ytdMiniplayerInfoBarHasPlaylistData=c,Q)),"on:click":e},_.M("div",{class:"ytdMiniplayerInfoBarContent"},_.M("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":x},_.M(_.vq,{text:function(){var p=G();var V=D();if(V==null?0:V.contents){var L;p=(L=_.vP3(V))==null?void 0:L.title}else p=p==null?void 0:p.miniplayerTitle;return A4O(p)},
noEndpoints:!0,ellipsisTruncate:!0})),_.M("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.M(_.b,{cond:y,then:function(){return _.M(AB7,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:jsY})}}),_.M("h1",null,_.M(_.vq,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var p=G();var V=D();p=y()?{simpleText:_.Wg("CONTINUE_WATCHING",void 0,"Continue watching")}:(V==null?0:V.contents)?V.titleText:p==null?void 0:p.miniplayerSubtitle;return A4O(p)},
noEndpoints:!0,ellipsisTruncate:!0})),_.M(_.b,{cond:function(){return!!W()&&!y()},
then:function(){return _.M("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.M("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.M("span",null,W))}}))),_.M(_.b,{cond:c,
then:function(){return _.M("div",{class:"ytdMiniplayerInfoBarExpand"},_.M(fs,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(p){z&&(z(),p.stopPropagation())}}},
iconName:function(){return K()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"te");var Xsk;Xsk=_.Nv(function(x){return _.M("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.M(fs,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:x.onTap}},
iconName:"yt-icons:close"}))},"ue");
_.Ak4=_.Nv(function(x){x=_.qv(x,{playabilityStatus:void 0,isDisabled:!1});var G=x.size,D=x.playabilityStatus,K=x.isDisabled,z=_.qi();x=_.l(_.eO(void 0,void 0,"bJr0Se"));var y=x.next().value,c=x.next().value;x=_.F8(_.cb);var W=!1,e=function(){return G().height<=0};
_.$9(function(){var L=G(),r=e(),H=y();H&&!r&&H.setInternalSize(L.width,L.height)});
_.H6(function(){var L,r,H;return _.T(function(O){if(O.nextAddress==1){L=_.Eo().resolve(_.O$);r=L.getPlayerElement();if(!L.isMiniplayerActive()||!r||!z.value)return O.return();r.appendTo(z.value);return _.Z(O,r.getPlayerPromise(),2)}H=O.yieldResult;H.setSizeStyle(!1,!0);c(H);_.c5(O)})});
_.Fq(function(){Q()});
_.$9(function(){var L=y();if(L)if(K()){var r=L.getPlayerState();(W=r===-1||r===1||r===3)&&L.pauseVideo()}else Q()});
var Q=function(){if(W){W=!1;var L;(L=y())==null||L.playVideo()}},p=_.WH(function(){_.QP(_.Eo().resolve(_.O$))}),V={};
return _.M("ytd-miniplayer-player-container",{class:_.ym("ytdMiniplayerPlayerContainerHost",(V.ytdMiniplayerPlayerContainerHidden=e,V.ytdMiniplayerPlayerContainerHostShortsPip=x,V)),style:_.Ms({width:function(){return G().width+"px"},
height:function(){return G().height+"px"}})},_.M("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:z}),_.M(_.b,{cond:function(){return!!D()&&!_.nNC(D())},
then:function(){return _.M(m8u,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var L;return((L=D())==null?void 0:L.errorScreen)||null},
status:function(){var L;return((L=D())==null?void 0:L.status)||null}})}}),_.M(_.b,{cond:K,
then:function(){return _.M("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":p},_.M(Xsk,{onTap:function(){_.Eo().resolve(_.O$).close()}}))}}))},"ve");_.U0Y=_.Nv(function(x){var G=x.toastData;var D=_.qi();x=_.l(_.ZX(function(){return!!G()}));
var K=x.next().value,z=x.next().value;x=_.l(_.eO(!1,void 0,"xkrBze"));var y=x.next().value,c=x.next().value,W=function(){var p;return _.u7((p=G())==null?void 0:p.data.title)};
_.FQ(function(){_.I8.requestAvailability();G()&&z(!1)});
var e,Q;_.$9(function(){K()&&(_.h$(D.value,"iron-announce",{text:G().label+" "+W()}),e&&_.Fj.cancelJob(e),e=_.Fj.addLowPriorityJob(function(){c(!0)},2500))});
_.$9(function(){y()&&(Q&&_.Fj.cancelJob(Q),Q=_.Fj.addLowPriorityJob(function(){z(!1);c(!1)},300))});
x={};return _.M("ytd-miniplayer-toast",{el:D,class:_.ym("ytdMiniplayerToastHost",(x.ytdMiniplayerToastOpening=function(){return K()},x.ytdMiniplayerToastClosing=function(){return y()},x))},_.M(_.b,{cond:function(){var p;
return(p=G())==null?void 0:p.data},
then:function(p){return _.M(uG7,{className:"ytdMiniplayerToastThumbnail",data:p,width:78})}}),_.M("div",{class:"ytdMiniplayerToastInfo"},_.M("div",{class:"ytdMiniplayerToastLabel"},function(){var p;
return(p=G())==null?void 0:p.label}),_.M("div",{class:"ytdMiniplayerToastTitle"},W)))},"we");var qKD;var fWP=new Set,J4n=null;var khE=null;var SEc=_.Nv(function(x){var G=x.progressState;var D=x.multiMarkersPlayerBarRenderer;var K=x.progressBarWidth;var z=function(){return xPC(D())},y=function(){return KCf(G())},c=function(){return K()*(G().playedTime/G().videoDuration)};
return _.M("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.M(_.LT,{each:z},function(W,e){return _.M(RZO,{modifiedProps:y,chapters:z,index:e,playedProgressWidth:c,backgroundGradientPosition:function(){var Q=y(),p=z(),V=e(),L=c();return(Q.playedTime-Ip(_.Y(p[V],C6)))/Q.playedTime*L}})}))},"xe"),RZO=_.Nv(function(x){var G=x.modifiedProps;
var D=x.chapters;var K=x.index;var z=x.playedProgressWidth;var y=x.backgroundGradientPosition;x={};x=_.ym("ytChapteredProgressBarChapteredPlayerBarChapter",(x.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return c().isScrubbing},x.ytChapteredProgressBarHoveredMacroMarker=function(){return c().scrubberHovering},x.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return c().videoPosition==="seen"},x));
var c=function(){return zT3(G(),D(),K())},W=function(){var e=G();
var Q=D(),p=K();if(zT3(e,Q,p).videoPosition!=="active")e=0;else{var V=Ip(_.Y(Q[p],C6));e=(e.playedTime-V)/((Ip(_.Y(Q[p+1],C6))||e.videoDuration)-V)}return e};
return _.M("div",{class:x,style:_.Ms({width:function(){var e=G(),Q=D(),p=K(),V=_.Y(Q[p],C6);Q=_.Y(Q[p+1],C6);return(Q?Ip(Q)-Ip(V):e.videoDuration-Ip(V))/e.videoDuration*100+"%"},
"background-color":function(){a:{var e=c();switch(e.videoPosition){case "pending":e=e.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":e=e.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:e=""}}return e},
"background-size":function(){return(aVP(c())?z():"")+"px"},
"background-position-x":function(){return(aVP(c())?y():"")+"px"}})},_.M("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var e=G(),Q=D(),p=K();if(zT3(e,Q,p).videoPosition==="seen")var V=0;else V=Ip(_.Y(Q[p],C6)),Q=Ip(_.Y(Q[p+1],C6))||e.videoDuration,e=e.videoDuration*e.percentLoaded,V=Q<=e?1:V>=e?0:(e-V)/(Q-V);return"width: "+V*100+"%"}}),_.M("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.Ms({width:function(){return W()*100+"%"},
"background-size":function(){return(aVP(c(),W())?z():"")+"px"},
"background-position-x":function(){return(aVP(c(),W())?y():"")+"px"}})}))},"ye");var n8i=function(x,G){G=G===void 0?Z7Z:G;var D,K=[],z,y=!1;return function(){var c=_.rC.apply(0,arguments);if(y&&D===this&&G(c,K))return z;z=x.apply(this,c);y=!0;D=this;K=c;return z}}(function(x){var G=x.heatMarkers,D=x.minHeightDp===void 0?0:x.minHeightDp,K=x.maxHeightDp===void 0?60:x.maxHeightDp;
var z=z===void 0?!1:z;var y=1E3/G.length;x=[];x.push({x:0,y:100});for(var c=0;c<G.length;c++){var W=void 0,e=((W=_.Y(G[c],kbu))==null?void 0:W.heatMarkerIntensityScoreNormalized)||0;W=(c+.5)*y;e=100-_.$1(e*100,D/321*100,K/321*100);c!==0||z||x.push({x:0,y:e});x.push({x:W,y:e});c===G.length-1&&x.push({x:1E3,y:e})}x.push({x:1E3,y:100});G="";for(D=0;D<x.length;D++)z=x[D],D===0?z="M "+z.x.toFixed(1)+","+z.y.toFixed(1):(K=RBd(x[D-1],x[D-2],z),y=RBd(z,x[D-1],x[D+1],!0),z=" C "+(K.x.toFixed(1)+","+K.y.toFixed(1)+
" "+y.x.toFixed(1)+","+y.y.toFixed(1)+" "+z.x.toFixed(1)+","+z.y.toFixed(1))),G+=z;return G});var iu8=_.Nv(function(x){var G=x.progressBarProps;var D=x.config;var K={};x=_.ym("ytHeatSeekerHost",(K.ytHeatSeekerHighContrast=x.highContrast,K));var z=function(){return iAD(D().chapterData)};
return _.M("yt-progress-bar-heatseeker",{class:x,style:function(){var y;return"height: 320px; display: "+(G().isDragging&&((y=z())==null?0:y.heatMarkers)?"block":"none")}},_.M(_.b,{cond:z,
then:function(y){return _.M(_.b,{cond:function(){return y().heatMarkers},
then:function(){return _.M("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.M("path",{d:function(){return n8i(y())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"ze");var g8x=_.Nv(function(x){var G=x.progressBarProps;var D=x.config;x={};x=_.ym("ytProgressBarLineProgressBarLine",(x.ytProgressBarLineProgressBarLineRounded=function(){return D().rounded},x.ytProgressBarLineProgressBarLineBottomInset=function(){return D().position===2},x));
return _.M("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.M("div",{class:x},_.M("div",{class:"ytProgressBarLineProgressBarBackground"}),_.M("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+G().percentLoaded*100+"%"}}),_.M("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var K=G();return"width: "+(K.videoDuration?_.$1(K.hoveredTime/K.videoDuration,0,1):0)*100+"%"}}),_.M("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+RL$(G())*100+"%"}})))},"Ae");
g8x.idomCompat=!0;var uij=_.Nv(function(x){var G=x.progressBarProps;var D=x.playheadData;var K=x.interpolateDotPosition;var z=x.hidePlayhead;x={};var y=_.ym("ytProgressBarPlayheadProgressBarPlayheadDot",(x.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return G().isDragging},x.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!G().isDragging&&z()},x));
return _.M("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.Ms({"margin-left":function(){return SKV(G())*100+"%"},
transform:function(){return"translateX(-"+(K()?SKV(G())*12:6)+"px)"}})},_.M(_.b,{cond:function(){var c;
return(c=_.wc(D)())==null?void 0:c.playheadImage},
then:function(c){var W={};return _.M("div",{class:_.ym("ytProgressBarPlayheadProgressBarPlayheadCustom",(W.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return G().isDragging},W.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!G().isDragging&&z()},W)),
style:_.Ms({"transform-origin":function(){return(K()?SKV(G())*20:10)+"px center"}})},_.M(_.wk,{data:c,
alt:"","aria-hidden":"true"}))},
else:function(){return _.M("div",{class:y,style:_.Ms({"transform-origin":function(){return(K()?SKV(G())*12:6)+"px center"}})})}}))},"Be");
uij.idomCompat=!0;var pP=function(x,G,D,K,z,y){this.getProgressBarRect=x;this.updateProgressBarRect=G;this.getFilmstripYPosition=D;this.setFineScrubbingDraggedTime=K;this.updateFilmStripDraggedYDistance=z;this.resetFilmStripYOffset=y;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.Jc(this.onThrottledSeek,100,this)},d08=function(x,G,D){return function(K){x.handleClick(K,G(),D())}},N9T=function(x,G){return function(D){ws6(x,
D,qEC(D),G())}},v8Y=function(x,G){return function(D){ws6(x,D,{x:D.clientX,
y:D.clientY},G())}},fo6=function(x,G,D){return function(K){var z=G(),y=D();
JkT(x,K,qEC(K),z,y,!0);if(y.onTouchMove)y.onTouchMove(z)}},k7b=function(x,G,D){return function(K){tZ4(x,K,G(),D())}},PqO=function(x,G){return function(){x.handleMouseLeave(G())}},E88=function(x,G,D){return function(){var K=G(),z=D();
VP(x,K,z);if(z.onTouchEnd)z.onTouchEnd(K)}},hZb=function(x,G,D){return function(){var K=G(),z=D();
VP(x,K,z);if(z.onTouchEnd)z.onTouchEnd(K)}},xkf=function(x,G,D){return function(){VP(x,G(),D())}},G8O=function(x){return function(G){if(G.keyCode===39||G.keyCode===38){var D,K;
(D=x())==null||(K=D.playerApi)==null||K.seekBy(5,void 0,void 0,72)}else if(G.keyCode===37||G.keyCode===40){var z,y;(z=x())==null||(y=z.playerApi)==null||y.seekBy(-5,void 0,void 0,71)}}},DkY=function(x,G,D){return function(K){!D().disableScrubbing&&x.startPosition&&tZ4(x,K,G(),D())}},Kf4=function(x,G,D){return function(){if(!D().disableScrubbing)if(x.startPosition){var K=G(),z=D();
VP(x,G(),D());if(z.onTouchEnd)z.onTouchEnd(K)}else G().setState({isDragging:!1})}},qEC=function(x){x=x.touches[0];
return{x:x.clientX,y:x.clientY}},tZ4=function(x,G,D,K){if(G.buttons!==1){if(G.movementX||G.movementY)G.preventDefault(),G.stopPropagation(),x=z4c(x,D,G.clientX),D.setState({isHovering:!0,
hoveredTime:x*D.videoDuration})}else acT(D),JkT(x,G,{x:G.clientX,y:G.clientY},D,K,!1)};
pP.prototype.handleMouseLeave=function(x){acT(x)};
var acT=function(x){x.isHovering&&x.setState({isHovering:!1,hoveredTime:0})},ws6=function(x,G,D,K){x.startPosition||(x.startPosition=D,x.updateProgressBarRect(),x.controlsWereVisibleBeforeDragging=K.controlsVisible,G.stopPropagation(),_.B("medium_progress_bar_modification")||G.preventDefault())},JkT=function(x,G,D,K,z,y){if(x.startPosition)if(y&&z.isInlinePlayback&&x.startPosition&&!x.hasDraggedTheMinimumDistance&&Math.abs(D.y-x.startPosition.y)>Math.abs(D.x-x.startPosition.x))VP(x,K,z);
else if(G.preventDefault(),G.stopPropagation(),K.videoDuration&&(x.startPosition&&!x.hasDraggedTheMinimumDistance&&(x.hasDraggedTheMinimumDistance=Math.abs(D.x-x.startPosition.x)>=1),z.enableFineScrubbing&&(x.startPosition&&(x.isDraggedForFineScrubbing=-(D.y-x.startPosition.y)>=60),!x.startPosition||D.y>=x.startPosition.y||(K.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:oIO(K.draggedTime,K,z.chapterData)}),x.setFineScrubbingDraggedTime(K.draggedTime),x.updateFilmStripDraggedYDistance(x.startPosition.y,
D.y,K))),x.hasDraggedTheMinimumDistance)){G=z4c(x,K,D.x);if(x.isDraggedForFineScrubbing){var c;(c=K.playerApi)==null||c.pauseVideo();K.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:K.draggedTime,filmStripXDistance:oIO(G*K.videoDuration,K,z.chapterData)})}z.enableFineScrubbing&&(!z.enableFineScrubbing||x.getFilmstripYPosition(K)<68)||K.setState({draggedTime:G*K.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:x.controlsWereVisibleBeforeDragging});var W;(W=
z.cancelAutohideControlsFn)==null||W.call(z)}},VP=function(x,G,D){var K=D.enableFineScrubbing&&G.fineScrubbingActiveState!=="off";
if(G.isDragging||K){K={isDragging:!1,playedTime:G.draggedTime,controlsVisible:x.controlsWereVisibleBeforeDragging};D.enableFineScrubbing&&G.fineScrubbingActiveState!=="on"&&(x.resetFilmStripYOffset(),K.fineScrubbingActiveState="off");var z=z===void 0?khE:z;var y=_.CC(0);y&&z&&_.dB(y,z,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:Math.round(G.playedTime*1E3),endMediaTimeMs:Math.round(G.draggedTime*1E3),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}});G.setState(K);
x.seekThrottle.fire(G.draggedTime,G,7);_.B("mweb_new_progress_bar_play_on_seek")&&x.resumeVideo(G);D.unmuteOnSeek&&(D=G.playerApi,G.volumeMuted&&(D==null||D.unMute()))}else G.setState({controlsVisible:!G.controlsVisible}),(y=D.triggerAutohideControlsAfterDelayFn)==null||y.call(D);x.startPosition=null;x.hasDraggedTheMinimumDistance=!1;x.isDraggedForFineScrubbing=!1;x.controlsWereVisibleBeforeDragging=!1};
pP.prototype.handleClick=function(x,G,D){this.updateProgressBarRect();x.stopPropagation();x=z4c(this,G,x.clientX)*G.videoDuration;G.setState({playedTime:x});if(G.playerState!==2){var K;(K=D.triggerAutohideControlsAfterDelayFn)==null||K.call(D)}this.seekThrottle.fire(x,G,7)};
var z4c=function(x,G,D){x=x.getProgressBarRect(G);return _.$1(0,(D-x.left)/x.width,1)};
pP.prototype.resumeVideo=function(x){if(x.draggedTime<x.videoDuration){var G;(G=x.playerApi)==null||G.playVideo()}};
pP.prototype.onThrottledSeek=function(x,G,D){if(G=G.playerApi){var K;if((K=G.getVideoData())==null?0:K.isLive)K=this.getProgressState(G),x+=(K==null?void 0:K.seekableStart)||0;G.seekTo(x,void 0,void 0,void 0,D)}};
pP.prototype.getProgressState=function(x){var G=x==null?void 0:x.getPresentingPlayerType();return x==null?void 0:x.getProgressState(G)};var lcb,y6Y,c6Y,Wff,oiC,e4c,Zfc,Mxf,QTO;lcb=_.Nv(function(x){var G=x.progressBarProps;var D=x.config;var K=x.progressBarWidthPx;var z=x.chapterData;var y=WCf(G,function(){return D().isShortsPage}),c=function(){return!G().isHovering&&!D().isShortsPage};
x={};var W=_.ym("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(x.ytPlayerStoryboardHostMwebShorts=function(){return D().isShortsPage&&!1},x));
return _.M("yt-player-storyboard",null,_.M(_.b,{cond:function(){return G().isDragging||G().isHovering},
then:function(){return _.M(_.b,{cond:y,then:function(e){return _.M(_.b,{cond:c,then:function(){return _.M("div",{class:W,"aria-hidden":"true"},_.M(oiC,{props:G,config:D,isBigboard:!0,chapterData:z}))},
else:function(){return _.M(y6Y,{props:G,frame:e,config:D,progressBarWidthPx:K,chapterData:z})}})}})}}))},"Ce");
_.Tbk=_.Nv(function(x){var G=x.progressBarProps;var D=WCf(G,x.isShortsPage);return _.M("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.M(_.b,{cond:function(){return G().isDragging||G().isHovering},
then:function(){return _.M(_.b,{cond:D,then:function(K){return _.M(c6Y,{frame:K,props:G,isBigboard:!0})}})}}))},"De");
y6Y=_.Nv(function(x){var G=x.props;var D=x.frame;var K=x.config;var z=x.progressBarWidthPx;x=x.chapterData;var y={};y=_.ym("ytPlayerStoryboardHost",(y.ytPlayerStoryboardHostMwebShorts=function(){return K().isShortsPage&&!1},y.ytPlayerStoryboardHostInlinePlayer=function(){return K().isInlinePlayer},y.ytPlayerStoryboardHostFadeIn=function(){return K().useFadeInAnimation},y));
return _.M("div",{class:y,"aria-hidden":"true",style:function(){var c=G(),W=y0h(D()),e=z();c=lVD(c)/c.videoDuration;var Q=e*c,p=W/2+6;W=e-(W/2+6);return"left: "+(Q<=p?p/e*100:Q>=W?W/e*100:c*100)+"%"}},_.M(_.b,{cond:function(){var c=G();
return!(K().isShortsPage&&c.videoDuration<15)},
then:function(){return _.M(c6Y,{frame:D,props:G,isBigboard:!1})}}),_.M(oiC,{props:G,
config:K,isBigboard:!1,chapterData:x}))},"Ee");
c6Y=_.Nv(function(x){var G=x.frame;var D=x.props;var K=x.isBigboard;var z=function(){var W,e;return(e=(W=D().playerApi)==null?void 0:W.getVideoContentRect())!=null?e:{width:0,height:0}},y=function(){return y0h(G())},c=function(){var W=G();
return W?W.height/W.rows:0};
x={};x=_.ym((x.ytPlayerStoryboardBigboardImageWrapper=K,x.ytPlayerStoryboardStoryboardImageWrapper=function(){return!K()},x));
return _.M("div",{class:x,style:function(){return"width: "+(K()?z().width:y())+"px; height: "+(K()?z().height:c())+"px;"}},_.M(Wff,{frame:G,
storyboardWidth:y,storyboardHeight:c,storyboardScale:function(){return(K()?z().width:y())/y()}}))},"Fe");
Wff=_.Nv(function(x){var G=x.frame;var D=x.storyboardWidth;var K=x.storyboardHeight;var z=x.storyboardScale;var y=function(){var c=G().row,W=G().column,e=D(),Q=K(),p=z();return{left:-W*e*p,top:-c*Q*p}};
return _.M("img",{src:function(){return G().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+y().left+"px; top: "+y().top+"px; width: "+G().width*z()+"px; height: "+G().height*z()+"px;"}})},"Ge");
oiC=_.Nv(function(x){var G=x.props;var D=x.config;var K=x.isBigboard;var z=x.chapterData;x={};x=_.ym("ytPlayerStoryboardMetadata",(x.ytPlayerStoryboardMetadataBigboard=K,x));return _.M("div",{class:x},_.M(_.b,{cond:K,then:function(){return _.M(_.xT,null,_.M(e4c,{props:G,config:D}),_.M(_.b,{cond:function(){a:{var y=G();var c=D(),W=z(),e;if((c==null?0:c.activeChapter)&&((e=_.Y(c==null?void 0:c.activeChapter,C6))==null?0:e.title))y=!0;else{c=_.l(gH$(W));for(c=c.next();!c.done;c=c.next()){y=(c=_.Y(c.value,
Eo0))&&c0d(y,c);break a}y=!1}}return y},
then:function(){return _.M(Zfc,{props:G,config:D,isBigboard:!0,chapterData:z})}}))},
else:function(){return _.M(_.xT,null,_.M(Zfc,{props:G,config:D,isBigboard:!0,chapterData:z}),_.M(e4c,{props:G,config:D}))}}))},"He");
e4c=_.Nv(function(x){var G=x.props;var D=x.config;x={};x=_.ym("ytPlayerStoryboardTimestamp",(x.ytPlayerStoryboardTimestampShorts=function(){return D().isShortsPage},x.ytPlayerStoryboardTimestampIsHovering=function(){return G().isHovering||D().isShortsPage&&!0},x));
return _.M("div",{class:x},_.M(_.xT,null,function(){return _.TIh(lVD(G()))}))},"Ie");
Zfc=_.Nv(function(x){var G=x.props;var D=x.config;var K=x.isBigboard;var z=x.chapterData;x={};K=_.ym("ytPlayerStoryboardTitle",(x.ytPlayerStoryboardTitleBigboard=K,x));return _.M("div",{class:K},_.M(_.b,{cond:function(){return!D().isShortsPage},
then:function(){return _.M(Mxf,{props:G,activeChapter:function(){return D().activeChapter},
chapterData:z})}}))},"Je");
Mxf=_.Nv(function(x){var G=x.props;var D=x.activeChapter;var K=x.chapterData;return _.M(_.xT,null,_.M(_.LT,{each:function(){return gH$(K())},
keyBy:"INDEX"},function(z){return _.M(_.xT,null,_.M(_.b,{cond:function(){return _.Y(z(),Eo0)&&c0d(G(),_.Y(z(),Eo0))},
then:function(){return _.M(QTO,{timedMarker:function(){return _.Y(z(),Eo0)}})}}))}),_.M(_.b,{cond:function(){var z;
return D()&&((z=_.Y(D(),C6))==null?void 0:z.title)},
then:function(z){return _.M(_.vq,{text:z,noPreWrap:!0})}}))},"Ke");
QTO=_.Nv(function(x){var G=x.timedMarker;return _.M(_.xT,null,_.M("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.M(_.Qm,{icon:function(){return G().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.M(_.vq,{text:function(){return G().label},
noPreWrap:!0}))},"Le");_.pYY=_.Nv(function(x){var G=x.progressBarProps;var D=x.playheadData;var K=x.config;x=_.qi();var z=_.qi(),y=_.qi(),c=_.l(_.eO({width:0,left:0},void 0,"NcXsUb")),W=c.next().value,e=c.next().value,Q=function(){y.value&&e(y.value.getBoundingClientRect())},p=function(){W().width<=0&&Q();
return W()};
t2("resize",Q);var V=new pP(p,function(){},function(){return 0},function(){},function(){},function(){}),L=function(){return G()};
c=_.l(_.eO(!1,void 0,"ZsF6Xc"));var r=c.next().value,H=c.next().value;c=_.WH(function(){H(!0);K().position===2?setTimeout(function(){Q()},100):Q()});
var O=_.WH(function(){H(!1);PqO(V,L)()}),A=_.WH(function(n$){K().doSeekOnClick&&d08(V,L,K)(n$);
return!1}),g=_.WH(function(n$){N9T(V,L)(n$);
return!1}),u=_.WH(function(n$){v8Y(V,L)(n$);
return!1}),f=_.WH(function(n$){fo6(V,L,K)(n$);
return!1}),v=_.WH(function(n$){k7b(V,L,K)(n$);
return!1}),P=_.WH(function(){E88(V,L,K)();
return!1}),k=_.WH(function(){hZb(V,L,K)();
return!1}),cL=_.WH(function(){xkf(V,L,K)();
return!1}),bO=_.WH(function(n$){G8O(L)(n$);
return!1});
t2("mousemove",DkY(V,L,K));t2("mouseup",Kf4(V,L,K));_.FQ(function(){Pjf(z.value);H(!1);Q();Kf4(V,L,K)()});
var mE={};mE=_.ym("ytPlayerProgressBarHost",function(){return K().className},(mE.ytPlayerProgressBarHostReadOnly=function(){return K().disableScrubbing},mE.ytPlayerProgressBarHostHidden=function(){return K().hideProgressBar&&!r()},mE.ytPlayerProgressBarHostLowerPlayer=function(){return K().position===0},mE.ytPlayerProgressBarHostBottomEdge=function(){return K().position===1},mE.ytPlayerProgressBarHostBottomInset=function(){return K().position===2},mE.ytPlayerProgressBarHostCustom=function(){return K().position===
3},mE));
var jf={},$C=_.ym("ytPlayerProgressBarBackground",(jf.ytPlayerProgressBarBackgroundHide=function(){return K().position===2&&!r()&&!G().isDragging},jf));
jf={};jf=_.ym("ytPlayerProgressBarDragContainer",(jf.ytPlayerProgressBarDragContainerBottomEdge=function(){return K().position===1},jf));
var OD={};OD=_.ym("ytPlayerProgressBarProgressBar",(OD.ytPlayerProgressBarProgressBarInset=function(){return K().position===2},OD.ytPlayerProgressBarProgressBarInsetMinimized=function(){return K().position===2&&!r()&&!G().isDragging},OD));
var wn=function(){return Math.floor(RL$(G())*100)};
return _.M("yt-progress-bar",{el:x,class:mE},_.M(_.b,{cond:function(){return K().position===2},
then:function(){return _.M("div",{class:$C})}}),_.M("div",{el:z,
"on:click":A,"on:touchstart":g,"on:touchmove":f,"on:mouseenter":c,"on:mousedown":u,"on:mouseleave":O,"on:mousemove":v,"on:mouseup":k,"on:touchend":P,"on:touchcancel":cL,"on:keydown":bO,class:jf,role:"slider","aria-valuenow":wn,"aria-valuetext":function(){return wn()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return G().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.Wg("SEEK_SLIDER")},_.M("div",{el:y,class:OD},_.M(iu8,{progressBarProps:G,config:K,highContrast:function(){return!!K().isInlinePlayback}}),_.M(_.b,{cond:function(){return K().chapterData&&uzO(K().chapterData)},
then:function(){return _.M(SEc,{progressState:G,multiMarkersPlayerBarRenderer:function(){return K().chapterData},
progressBarWidth:function(){return W().width}})},
else:function(){return _.M(g8x,{progressBarProps:G,config:K})}}),_.M(uij,{progressBarProps:G,
playheadData:D,interpolateDotPosition:function(){return K().position!==2},
hidePlayhead:function(){return K().playheadDotBehavior===1&&!r()}}))),_.M(lcb,{progressBarProps:G,
config:function(){return{activeChapter:DPf(G(),K().chapterData),getProgressBarWidthPx:function(){return p().width},
isShortsPage:!!K().isShortsPage,isInlinePlayer:!!K().isInlinePlayback,useFadeInAnimation:!!K().isInlinePlayback}},
progressBarWidthPx:function(){return W().width},
chapterData:function(){return K().chapterData}}))},"Me");
_.pYY.idomCompat=!0;Object.assign({},_.dTO(),{setState:function(){},
domMeasurements:{},appApi:_.UTD(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var Vx8;
_.bfC=_.Nv(function(){var x,G=(x=_.jJ(eTh().playerApi))!=null?x:void 0;x=_.l(_.eO(!1,void 0,"HLFBmb"));var D=x.next().value,K=x.next().value;x=_.l(_.eO(!1,void 0,"lHH9bc"));var z=x.next().value,y=x.next().value;x=_.l(_.eO(!1,void 0,"zsY7yd"));var c=x.next().value,W=x.next().value;x=_.l(_.eO(!1,void 0,"KeHQgc"));var e=x.next().value,Q=x.next().value;x=_.l(_.eO(0,void 0,"gLLCj"));var p=x.next().value,V=x.next().value;x=_.l(_.eO(0,void 0,"s3RYkf"));var L=x.next().value,r=x.next().value;x=_.l(_.eO(!1,void 0,
"Dn608e"));var H=x.next().value,O=x.next().value;x=_.l(_.eO(0,void 0,"AnkH1b"));var A=x.next().value,g=x.next().value;x=_.l(_.eO(0,void 0,"QYNL0b"));var u=x.next().value,f=x.next().value;x=_.l(_.eO("",void 0,"Yzw45d"));var v=x.next().value,P=x.next().value;x=_.l(_.eO(-1,void 0,"iiVI0c"));var k=x.next().value,cL=x.next().value,bO=_.V9(function(){var mE={controlsVisible:D(),isOverlayHidden:z(),shouldWaitToHideControls:c(),isDragging:e(),isHovering:H(),videoDuration:A(),playedTime:u(),videoId:v(),draggedTime:L(),
hoveredTime:p(),playerState:k()};return Object.assign({},_.dTO(),mE,{domMeasurements:{},setState:function(jf){jf.controlsVisible!==void 0&&K(jf.controlsVisible);jf.isOverlayHidden!==void 0&&y(jf.isOverlayHidden);jf.shouldWaitToHideControls!==void 0&&W(jf.shouldWaitToHideControls);jf.isDragging!==void 0&&Q(jf.isDragging);jf.isHovering!==void 0&&O(jf.isHovering);jf.draggedTime!==void 0&&r(jf.draggedTime);jf.hoveredTime!==void 0&&V(jf.hoveredTime);jf.videoDuration!==void 0&&g(jf.videoDuration);jf.playedTime!==
void 0&&f(jf.playedTime);jf.videoId!==void 0&&P(jf.videoId);jf.playerState!==void 0&&cL(jf.playerState)},
appApi:_.UTD(),playerApi:G})},void 0,"ZW7y9");
_.H6(function(){G==null||G.addEventListener("onVideoProgress",vHd(bO));G==null||G.addEventListener("onVideoDataChange",NWh(bO));G==null||G.addEventListener("onStateChange",wfC(bO))});
_.Fq(function(){if(G==null?0:G.isReady())G==null||G.removeEventListener("onVideoProgress",vHd(bO)),G==null||G.removeEventListener("onVideoDataChange",NWh(bO)),G==null||G.removeEventListener("onStateChange",wfC(bO))});
return _.M("desktop-shorts-player-controls",null,_.M(Vx8,{playerControlsProps:bO}))},"Ne");
Vx8=_.Nv(function(x){var G=x.playerControlsProps;return _.M("div",{class:"desktopShortsPlayerControlsWizHost"},_.M(_.pYY,{progressBarProps:G,config:function(){return{isShortsPage:!0,hideProgressBar:G().videoDuration<30&&G().playerState!==2&&!G().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"Oe");_.E9(_.pMO);_.LfC=_.Nv(function(x){var G=x.data;return _.M("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.M(_.hG,{command:function(){return G().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.M(_.b,{cond:function(){return G().iconName},
then:function(D){return _.M(_.Qm,{icon:D})}}),_.M("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return G().text}),_.M(_.b,{cond:function(){return G().showEndChevron},
then:function(){return _.M(_.Qm,{icon:"CHEVRON_RIGHT"})}})))},"Pe");var BbO=_.Nv(function(x){var G=x.data;var D=x.overlayDensity;x={};return _.M("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.M(_.bA,{data:function(){return G().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(K){var z=K.data;
return _.M(_.B2,{data:function(){return(D==null?void 0:D())===1?Object.assign({},z(),{avatar:{avatarViewModel:Object.assign({},_.Y(z().avatar,_.gl),{avatarImageSize:"AVATAR_SIZE_48"})}}):z()}})}}),_.M(_.bA,{data:function(){return G().avatarStackViewModel}},{avatarStackViewModel:function(K){return _.M(_.rR,{data:K.data})}}),_.M(_.vq,{className:_.ym("ytReelChannelBarViewModelChannelName",(x.ytReelChannelBarViewModelChannelNameLarge=function(){return(D==null?void 0:D())===1},x)),
text:function(){return G().channelName},
linkInheritColor:!0,userInput:!0}),_.M("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.M(_.bA,{data:function(){return G().subscribeButtonViewModel}},{subscribeButtonViewModel:function(K){var z=K.data;
return _.M(_.Bt,{data:function(){return(D==null?void 0:D())===1?Object.assign({},z(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},z().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):z()},
isOverlay:!1})},
buttonViewModel:_.Cs})),_.M("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.M(_.bA,{data:function(){var K,z;return(z=_.Y((K=G())==null?void 0:K.sponsorButtonViewModel,QbE))==null?void 0:z.sponsorButton}},{buttonViewModel:function(K){return _.M(_.Cs,{data:K.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Qe");var r6c=_.Nv(function(x){var G={};return _.M("yt-reel-multi-format-link-view-model",{class:_.ym("ytReelMultiFormatLinkViewModelHost",(G.ytReelMultiFormatLinkViewModelHostTall=!0,G.ytReelMultiFormatLinkViewModelHostLarge=function(){var D;return((D=x.overlayDensity)==null?void 0:D.call(x))===1},G))},_.M(_.hG,{ariaLabel:function(){return x.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return _.jn(x.data().command)},
dangerousStopPropagation:!1},_.M("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.M(_.b,{cond:function(){return x.data().icon},
then:function(D){return _.M(_.wk,{data:D,className:"ytReelMultiFormatLinkViewModelIcon",alt:""})}}),_.M(_.vq,{text:function(){return x.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Re");
r6c.idomCompat=!0;var sT8=_.Nv(function(x){var G=x.data;var D=x.overlayDensity;var K=_.qi();x=_.l(_.eO(!1,void 0,"xDqzhe"));var z=x.next().value,y=x.next().value;x=_.l(_.eO(!1,void 0,"LI9CFd"));var c=x.next().value,W=x.next().value,e=function(){return G().isMultiLineSa},Q=_.lA(b8d,function(){var f,v;
return(v=(f=G().toggleableContent)==null?void 0:f.entityKey)!=null?v:""}),p=function(){var f,v,P;
return(P=G().toggleableContent)!=null&&P.entityKey?(v=(f=Q())==null?void 0:f.value)!=null?v:!1:!1},V=function(){var f,v,P,k,cL,bO,mE,jf,$C,OD,wn;
return G().toggleableContent?p()?(f=G().toggleableContent)==null?void 0:f.toggledData:(v=G().toggleableContent)==null?void 0:v.untoggledData:{primaryText:(jf=(P=G().defaultContent)==null?void 0:P.primaryText)!=null?jf:G().text,secondaryText:(k=G().defaultContent)==null?void 0:k.secondaryText,onTapCommand:($C=(cL=G().defaultContent)==null?void 0:cL.onTapCommand)!=null?$C:G().onTapCommand,icon:(OD=(bO=G().defaultContent)==null?void 0:bO.icon)!=null?OD:G().icon,image:(wn=(mE=G().defaultContent)==null?
void 0:mE.image)!=null?wn:G().image}},L=function(){return e()?G().trailingTapTarget:void 0};
x=function(f,v){return function(){return z()?v:f}};
var r={leadingSection:x("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),secondaryText:x("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:x("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:x("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")};x={};x=_.ym((x.ytShortsSuggestedActionViewModelStaticHost=function(){return!e()},x.ytShortsSuggestedActionViewModelDynamicHost=e,x.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return e()&&c()},x.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return e()&&!c()},x));
_.FQ(function(){if(e()){var f=0,v;if((v=G().animationParams)==null?0:v.shouldExpand){var P,k;f=((k=(P=G().animationParams)==null?void 0:P.expansionDelaySecs)!=null?k:0)*1E3}var cL,bO=((cL=G().animationParams)==null?0:cL.shouldExpand)?setTimeout(function(){y(!0)},f):void 0,mE,jf;
f=((mE=G().animationParams)==null?0:mE.visibilityDelaySecs)?((jf=G().animationParams)==null?NaN:jf.visibilityDelaySecs)*1E3:0;var $C=setTimeout(function(){W(!0)},f);
_.Fq(function(){bO&&clearTimeout(bO);clearTimeout($C)})}});
var H=function(f){_.UI(f,Object.assign({},{form:{element:K.value}}))},O=_.WH(function(){var f,v=(f=V())==null?void 0:f.onTapCommand;
v&&H(v)}),A=_.WH(function(){var f,v;
if(f=(v=L())==null?void 0:v.onTapCommand)return H(f),!1}),g=_.Ms({"vertical-align":"bottom",
"border-radius":function(){var f;return e()?((f=G().defaultContent)==null?0:f.isCircleImage)?"50%":"4px":"0px"},
width:function(){var f,v,P;return e()&&((f=G().defaultContent)==null?0:f.imageSize)?((P=(v=G().defaultContent)==null?void 0:v.imageSize)!=null?P:24)+"px":null},
height:function(){var f,v,P;return e()&&((f=G().defaultContent)==null?0:f.imageSize)?((P=(v=G().defaultContent)==null?void 0:v.imageSize)!=null?P:24)+"px":null}}),u={};
return _.M("yt-shorts-suggested-action-view-model",{class:x,el:K},_.M("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.M("button",{class:_.ym(function(){return e()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var f;
return(f=G().useFullRoundedBorder)!=null&&f?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!L()&&e()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":e()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var f;
return(f=G().disableFixedHeight)!=null&&f?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(u.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(D==null?void 0:D())===1},u)),
"on:click":O},_.M(_.b_,{model:{color:4}}),_.M("div",{class:_.ym(function(){return e()?r.leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.M(_.b,{cond:function(){var f;
return(f=V())==null?void 0:f.image},
then:function(f){return _.M(_.wk,{data:f,alt:"",className:function(){return e()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:g})}}),_.M(_.b,{cond:function(){var f,v;
return(f=V())==null?void 0:(v=f.icon)==null?void 0:v.iconType},
then:function(f){return _.M(_.Qm,{icon:f,active:p,className:function(){return e()?z()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.M("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.M(_.b,{cond:function(){var f;
return(f=V())==null?void 0:f.primaryText},
then:function(f){return _.M("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.M(_.vq,{text:f}))}}),_.M(_.b,{cond:function(){var f;
return(f=V())==null?void 0:f.secondaryText},
then:function(f){return _.M("div",{class:r.secondaryText},_.M(_.vq,{text:f}))}}))),_.M(_.b,{cond:L,
then:function(f){return _.M("div",{class:r.trailingSection,"aria-label":function(){var v;return(v=f().a11yLabel)!=null?v:""},
"on:click":A,role:"button",tabindex:0},_.M(_.b_,{model:{color:4}}),_.M(_.Qm,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Se");var Ycc=_.Nv(function(x){var G=x.data;var D=x.overlayDensity;var K=_.qi();x=_.WH(function(c){if(_.RO(_.Ug(c),K.value,["A".toString()]))return!1;(c=G().truncatedTextOnTapCommand)&&_.UI(c);return!1});
var z={},y={};return _.M("yt-shorts-video-title-view-model",{el:K,class:_.ym("ytShortsVideoTitleViewModelHost",(z.ytShortsVideoTitleViewModelHostClickable=function(){return!!G().truncatedTextOnTapCommand},z)),
"on:click":x},_.M("h2",{class:_.ym("ytShortsVideoTitleViewModelShortsVideoTitle",(y.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(D==null?void 0:D())===1},y))},_.M(_.vq,{text:function(){return G().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"Te");_.mkO=_.Nv(function(x){var G=x.data;var D=x.overlayDensity;return _.M("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.M(_.bA,{data:function(){return G().metadataItems}},{badgeViewModel:function(K){return _.M("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.M(_.v2,{data:K.data}))},
playerDisclosureViewModel:function(K){return _.M("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.M(_.LfC,{data:K.data}))},
shortsSuggestedActionViewModel:function(K){return _.M("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.M(sT8,{data:K.data,overlayDensity:D}))},
reelChannelBarViewModel:function(K){return _.M("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.M(BbO,{data:K.data,overlayDensity:D}))},
reelMultiFormatLinkViewModel:function(K){return _.M("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.M(r6c,{data:K.data,overlayDensity:D}))},
shortsVideoTitleViewModel:function(K){return _.M("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.M(Ycc,{data:K.data,overlayDensity:D}))},
reelSoundMetadataViewModel:function(K){return _.M("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.M(_.Oc7,{data:K.data,overlayDensity:D}))},
toggleButtonViewModel:function(K){return _.M("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.M(_.rl,{data:K.data}))}}))},"Ue");var HfC=_.Nv(function(x){var G=_.qv(x,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),D=G.size,K=G.onTap,z=G.disabled,y=G.tooltipText;return _.M("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.M(fs,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:D(),disabled:z(),tooltipText:y(),onTap:K}},
iconName:x.iconType}))},"Ve"),$k8=_.Nv(function(x){function G(p){p.stopPropagation();
p.code==="ArrowUp"?(p.preventDefault(),LCD(W.value)):p.code==="ArrowDown"?(p.preventDefault(),BI3(W.value)):p.code==="KeyM"?VgL():(p.code==="KeyK"||p.code==="Space")&&bpP(e())}
var D=_.qv(x,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});x=D.previousButtonDisabled;var K=D.nextButtonDisabled,z=D.data,y=D.playabilityStatus,c=D.previewThumbnail,W=_.qi(),e=_.F8(_.czO),Q;_.H6(function(){(Q=_.C2(W.value))&&Q.addEventListener("keydown",G)});
_.Fq(function(){var p;(p=Q)==null||p.removeEventListener("keydown",G)});
D=function(){var p,V,L;return(p=z())==null?void 0:(V=p.reelPlayerOverlayRenderer)==null?void 0:(L=V.likeButton)==null?void 0:L.likeButtonRenderer};
return _.M("ytd-shorts-miniplayer-overlay",{el:W,class:"ytdShortsMiniplayerOverlayHost"},_.M("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.Ms({"background-image":function(){var p=c();return p?'url("'+_.Ph(p.thumbnails)+'")':""}})}),_.M("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.M("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.M(HfC,{iconType:function(){var p=e();
return p===2||p===-1||p===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){bpP(e())},
tooltipText:function(){var p=e();return p===1||p===3?_.Wg("PLAYER_LABEL_PAUSE"):_.Wg("PLAYER_LABEL_PLAY")}}),_.M(_.pMO,null)),_.M("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.M(HfC,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:x,onTap:function(){LCD(W.value)},
tooltipText:_.Wg("PREVIOUS_VIDEO_LABEL")}),_.M(HfC,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:K,onTap:function(){BI3(W.value)},
tooltipText:_.Wg("NEXT_VIDEO_LABEL")}),_.B("web_shorts_pip_like_button")?_.M("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.M(K99,{buttonTooltipPosition:"left",data:D,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.M("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.M(_.b,{cond:function(){var p,V;return _.Y((p=z())==null?void 0:(V=p.reelPlayerOverlayRenderer)==null?void 0:V.metapanel,
_.WL9)},
then:function(p){return _.M("div",{class:_.ym("ytdShortsMiniplayerOverlayInteractive")},_.M(_.mkO,{data:p}))}})),_.M("div",{class:_.ym("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var p;return!((p=z())==null||!p.adsOverlay)||y()&&!S0D(y())}},_.M("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.M(_.bfC,null)))),_.M(_.b,{cond:function(){var p=z(),V,L;
p=_.Y(p==null?void 0:(V=p.adsOverlay)==null?void 0:(L=V.fulfillmentContent)==null?void 0:L.fulfilledLayout,qHo);return _.Y(p==null?void 0:p.renderingContent,t8i)},
then:function(p){return _.M("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.M(y8E,{data:p}))}}))},"We");var r0C=_.Nv(function(){var x=_.l(_.eO(new _.cu(NaN,NaN),void 0,"HSMFk")),G=x.next().value,D=x.next().value;x=_.l(_.eO(!1,void 0,"uaAxwf"));var K=x.next().value,z=x.next().value,y=_.l(_.eO(!1,void 0,"nVSwef"));x=y.next().value;var c=y.next().value,W=_.Eo().resolve(_.O$).miniplayerPropSignalMap[0],e=W.data,Q=W.shortsData,p=W.nextButtonDisabled,V=W.shortsPreviewThumbnail,L=W.previousButtonDisabled,r=W.externalPlaylistData;y=W.toastData;var H=W.playabilityStatus,O=W.isDisabled,A=W.playerVe,g=W.closeVe;
W=_.F8(_.cb);_.wu("yt-pip-window-resized",function(P){D(P)});
_.wu("yt-activate-pip-miniplayer",function(){return _.T(function(P){c(!0);_.c5(P)})});
var u=function(){var P;return!((P=r())==null||!P.contents)&&K()},f=function(){var P=G(),k=!!e(),cL=u();
P=P.clone();k&&(P.height-=76);cL&&(P.height-=285);return P},v=function(){z(!K())};
_.$9(function(){var P=A(),k=_.CC(11),cL=_.Fx(11);k&&cL&&P&&(_.RI(k,cL,P),cL=g())&&(_.S7(k,P,[cL]),_.i0(k,[cL]))});
return _.M("ytd-pip-container",{class:"ytdPipContainerHost"},_.M(_.b,{cond:x,then:function(){return _.M(_.Ak4,{isDisabled:O,playabilityStatus:H,size:f})}}),_.M(_.b,{cond:e,
then:function(){return _.M(_.Oub,{data:e,expanded:K,onExpandClick:v,playlistData:r})}}),_.M(_.b,{cond:u,
then:function(){return _.M("div",{class:"ytdPipContainerPlaylistPanel"},_.M(_.Gt0,{data:r,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.M(_.b,{cond:W,
then:function(){return _.M($k8,{data:Q,nextButtonDisabled:p,previousButtonDisabled:L,playabilityStatus:H,previewThumbnail:V})}}),_.M("div",{class:"ytdPipContainerToast"},_.M(_.U0Y,{toastData:y})))},"Xe");var bZ=function(x,G){var D=this;this.pipController=x;this.JSC$16461_clientRoot=G;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=IWf();this.watchPipEnabled=_.B("web_watch_pip");this.shortsPipEnabled=_.B("web_shorts_pip");this.JSC$16461_watchWhileEnabled=_.B("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;_.la(_.wK(),_.aiP,function(K){D.isSingleOptionSurveyActive=K});
this.JSC$16461_onPlayerPlayVideo=this.JSC$16461_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);_.uV(_.gu.getInstance(),this.miniplayerServiceActionMap,this.JSC$16461_clientRoot);x.pictureInPictureSupported()&&_.Fv("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},nDJ,Scf,XYO,nif,ifT,gEE;
bZ.prototype.handleMediaSessionPipActivation=function(){var x=this,G;return _.T(function(D){_.or().mediaSessionPipActivation=!0;G=_.Eo().resolve(_.wG);return G.isOnWatch()&&x.watchPipEnabled?(_.or().watchPipActivation=!0,_.FfT(x,G.data),D.jumpTo(0)):G.isOnShorts()&&x.shortsPipEnabled?(_.or().shortsPipActivation=!0,_.CC4(x),D.jumpTo(0)):x.isMiniplayerActive()&&x.watchPipEnabled&&!x.watchWhileMode?_.Z(D,Ic6(x),0):D.jumpTo(0)})};
var Ic6=function(x){var G,D,K,z;return _.T(function(y){if(y.nextAddress==1)return G=!x.miniplayerToPipMode,D=x.playerElement,K=x.miniplayerData,z=x.watchResponse,_.Z(y,x.deactivate(),2);if(y.nextAddress!=3)return G?(_.or().mediaSessionPipActivation=!0,_.or().watchPipActivation=!0):_.or().miniplayerButtonActivation=!0,_.Z(y,x.activate(D,K,z),3);x.miniplayerToPipMode=G;_.c5(y)})};
bZ.prototype.onDownloadedVideoDeleted=function(x){var G,D=_.Y((G=this.miniplayerData)==null?void 0:G.watchEndpoint,_.d5),K,z;D&&((K=this.watchResponse)==null?void 0:(z=K.playerResponse)==null?void 0:z.offlineState)!==void 0&&(G=D.videoId)&&x&&G===x&&this.close()};
bZ.prototype.onShowMiniplayerCommand=function(x){var G=this,D,K,z,y,c,W,e,Q,p,V,L,r,H;return _.T(function(O){switch(O.nextAddress){case 1:return D=_.Y(x,G2o),z=(K=D)==null?void 0:K.miniplayerCommand,y=_.Y(z,_.d5),z&&y&&!G.active?_.Z(O,_.QM.getInstance(),2):O.return();case 2:return c=O.yieldResult,_.Z(O,(W=c)==null?void 0:W.get("yt-miniplayer-shown-video-id"),3);case 3:e=O.yieldResult;Q=y.videoId;if(!Q||e===Q)return O.return();p=_.Eo().resolve(_.wG);if(p.isOnWatch())return _.O9(Error("Aj")),O.return();
V={channelItem:{externalId:btoa(Q)}};G.readyToResumeVe=_.BH(121253,void 0,void 0,V);_.or().showMiniplayerCommandActivation=!0;return _.Z(O,_.uN7(G,z,!0),4);case 4:return G.active?(_.LP(G,{readyToResumeVe:G.readyToResumeVe,continueWatching:!0,premiumBranding:!((L=D)==null||!L.showPremiumBranding)}),_.B("ytd_miniplayer_to_wiz")&&_.LP(G,{isReadyToResume:!0}),G.isReadyToResume=!0):_.LP(G,{continueWatching:!0,premiumBranding:!((r=D)==null||!r.showPremiumBranding)}),_.Z(O,(H=c)==null?void 0:H.set("yt-miniplayer-shown-video-id",
y.videoId),5);case 5:G.readyToResumeVe=void 0,_.c5(O)}})};
bZ.prototype.init=function(x){this.miniplayerEl?_.O9(new _.LL("MiniplayerService already initialized.")):this.miniplayerEl=x};
bZ.prototype.isInitialized=function(){var x=!!this.miniplayerEl;x||_.O9(new _.LL("MiniplayerService used before initialized."));return x};
_.FfT=function(x,G){if(x.isInitialized()){var D=_.XfE(G.response,G.playerResponse),K=_.Eo().resolve(_.wG).getPlayerFromWatch();_.or().currentEndpoint=D.watchEndpoint||null;x.activate(K,D,G)}};
_.CC4=function(x){if(x.isInitialized()){var G=_.Eo().resolve(_.wG).getPlayerFromShorts();x.activate(G)}};
nDJ=function(x,G){var D;(D=!x.isInitialized())||(D=_.Eo().resolve(_.wG).isOnWatch()&&x.watchPipMode,D=!(x.isMiniplayerActive()&&(_.or().userActivation||_.or().lockupActivation||D)));if(D)return!1;jTf(x,G)?_.QP(x):gEE(x,G);return x.watchPipMode?!_.Eo().resolve(_.wG).isOnWatch():!0};
bZ.prototype.isMiniplayerActive=function(){return this.active};
var jTf=function(x,G){var D;G=(D=_.Y(G,_.d5))==null?void 0:D.videoId;var K,z;x=(z=_.Y((K=x.miniplayerData)==null?void 0:K.watchEndpoint,_.d5))==null?void 0:z.videoId;return G!=null&&G===x};
bZ.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.h$(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.xO(this.miniplayerEl,"yt-navigate-home-action"))};
_.uN7=function(x,G,D,K){D=D===void 0?!1:D;var z,y,c;return _.T(function(W){switch(W.nextAddress){case 1:if(x.active){W.jumpTo(2);break}z=_.Eo().resolve(_.wG);if(c=(y=x.playerElement)!=null?y:z.getPlayerFromWatch()){W.jumpTo(3);break}return _.Z(W,_.Eo().resolve(_.k7),4);case 4:c=z.getPlayerFromWatch();case 3:if(!c){_.O9(Error("Cj"));W.jumpTo(2);break}return _.Z(W,x.activate(c,K),2);case 2:return x.active?_.Z(W,gEE(x,G,D),0):W.return()}})};
bZ.prototype.activate=function(x,G,D){var K=this,z,y,c,W,e,Q,p,V,L;return _.T(function(r){switch(r.nextAddress){case 1:if(!K.isInitialized())return r.return();if(!x)return _.O9(Error("Cj")),r.return();if(_.lNq()||K.isMiniplayerActive())var H=!0;else H=_.or().watchPipActivation||_.or().watchWhileActivation,_.Eo().resolve(_.wG).isOnWatch()&&!H?(_.O9(new _.LL("miniplayer activated on watch page")),H=!0):H=_.or().watchWhileActivation?K.userDeactivatedWatchWhile||!!document.pictureInPictureElement||VoE():
!1;if(H)return yXZ(),r.return();z=_.or().mediaSessionPipActivation;y=_.or().shortsPipActivation;c=_.or().watchPipActivation;e=(W=_.or().watchWhileActivation)||c;Q=c||y;if(!K.pictureInPictureEnabled()||!Q){r.jumpTo(2);break}return _.Z(r,Off(K,z),3);case 3:if(!r.yieldResult)return _.O9(Error("Bj")),yXZ(),r.return();case 2:return K.setActive(!0),K.watchResponse=D,K.playerElement=x,K.updateMiniplayerData(G),_.Z(r,XYO(K,x),4);case 4:if(!K.active)return _.O9(new _.LL("miniplayer deactivated during activation")),
K.removePlayerListeners(),r.return();H=_.Eo().resolve(_.HG);H.addEventListener("yt-navigate",_.ae(K,K.onPlaylistNavigate));H.addEventListener("yt-playlist-data-updated",_.ae(K,K.JSC$16461_onPlaylistDataUpdated));K.JSC$16461_onPlaylistDataUpdated();yXZ();K.JSC$16461_watchWhileEnabled&&_.A6j(K,W);K.pictureInPictureEnabled()&&K.shortsPipEnabled&&(K.shortsPipMode=y,_.wK().dispatch(fN8(K.shortsPipMode)));K.pictureInPictureEnabled()&&K.watchPipEnabled&&(K.watchPipMode=c,_.LNV(K.handleMediaSessionPipActivation));
K.player&&(p=K.player.getPlayerState(),V=p===1,_.wK().dispatch(K1Z(p)),_.Gl(K.miniplayerEl,"yt-miniplayer-play-state-changed",[V]),_.or().isVideoPlaying=V);_.Gl(K.miniplayerEl,"yt-miniplayer-endpoint-changed");Ukb(K);_.R4k(K);return K.shortsPipMode||K.watchPipMode?_.Z(r,_.Dq(K.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.B("ytd_miniplayer_to_wiz")?_.Z(r,_.Dq(K.miniplayerEl,"yt-activate-miniplayer",[e]),6):_.Z(r,_.Dq(K.miniplayerEl,"yt-activate-miniplayer-action",[x,e]),6);case 6:if(K.watchResponse&&
!_.B("miniplayer_copy_screen_on_activation_killswitch")){H=K.getScreenLayer();var O=_.CC(0),A=pA$(0);O&&A&&(_.jq(O,A,H),H===0&&MHL(void 0,0))}Scf(K);nif(K,!0);(L=K.getPlayerElement())==null||L.focusOnPlayer();_.c5(r)}})};
bZ.prototype.updateMiniplayerData=function(x){this.miniplayerData=x;_.LP(this,{data:x})};
_.R4k=function(x){var G,D,K=((G=x.miniplayerData)==null?void 0:(D=G.miniplayerRenderer)==null?void 0:D.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";G=x.watchWhileMode||x.watchPipMode?K&&!_.Eo().resolve(_.wG).isOnWatch():K;_.LP(x,{isDisabled:G});var z,y;D=_.Y((z=x.miniplayerData)==null?void 0:(y=z.miniplayerRenderer)==null?void 0:y.minimizedEndpoint,_.bz);G&&D&&_.Eo().resolve(_.bm).openSheet({openPopupActionCommand:{openPopupAction:D}},x.miniplayerEl)};
Scf=function(x){if(x.watchResponse&&!ifT(x)){var G,D=(G=x.watchResponse.playerResponse)==null?void 0:G.trackingParams;D&&(_.LP(x,{expandVe:_.BH(35989),closeVe:_.BH(34699),readyToResumeCloseVe:_.BH(131070),repositionVe:_.BH(226204),resizeVe:_.BH(226205)}),_.LP(x,{playerVe:_.V2(D)}))}};
XYO=function(x,G){return _.T(function(D){if(D.nextAddress==1)return G.preparePlayer(),_.Z(D,G.getPlayerPromise(),2);x.player=D.yieldResult;x.player&&(x.player.addEventListener("onPlayVideo",x.JSC$16461_onPlayerPlayVideo),x.player.addEventListener("onCloseMiniplayer",x.onPlayerCloseMiniplayer),x.player.addEventListener("onExpandMiniplayer",x.onPlayerExpandMiniplayer),x.player.addEventListener("onStateChange",x.onPlayerStateChange));_.c5(D)})};
_.a=bZ.prototype;_.a.JSC$16461_onPlayerPlayVideo=function(x){var G=x.sessionData&&"autonav"in x.sessionData,D;x.sessionData&&x.sessionData.itct&&(D=x.sessionData.itct);var K=x.watchEndpoint;G=K&&G?_.m$E(K,D):_.fW(x.videoId,x.listId||void 0,D);x.sessionData&&_.vy(_.Y(G.commandMetadata,_.fC).url,x.sessionData);gEE(this,G)};
_.a.onPlayerExpandMiniplayer=function(){_.QP(this)};
_.a.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.a.onPlayerStateChange=function(){if(this.player){var x=this.player.getPlayerState(),G=x===1;_.wK().dispatch(K1Z(x));_.wK().dispatch(_.olE(x));_.Gl(this.miniplayerEl,"yt-miniplayer-play-state-changed",[G]);_.or().isVideoPlaying=G;if(x===0){G=!_.de.getInstance().isAutoplaySetExplicitly();var D,K,z,y,c,W,e=(D=this.watchResponse.response)==null?void 0:(K=D.contents)==null?void 0:(z=K.twoColumnWatchNextResults)==null?void 0:(y=z.autoplay)==null?void 0:(c=y.autoplay)==null?void 0:(W=c.autoplayExplicitChoiceDialogRenderer)==
null?void 0:W.confirmDialogRenderer;G&&e&&this.player.setAutonavState(1)}x===0&&this.watchWhileMode&&this.deactivate()}};
_.a.onPlaylistNavigate=function(x,G){var D=this,K,z,y,c,W,e,Q;return _.T(function(p){if(p.nextAddress==1){if(!_.Y(G.endpoint,_.d5))return p.return();_.or().currentEndpoint=G.endpoint;_.Gl(D.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.Eo().resolve(_.wG).isOnWatch()&&(D.watchWhileMode||D.watchPipMode))return p.return();x.stopPropagation();(y=(z=_.Y((K=G.endpoint)==null?void 0:K.commandMetadata,_.fC))==null?void 0:z.url)&&G.tempData&&!_.YS.isEmpty(G.tempData)&&_.vy(y,G.tempData);c={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};W=new lQi(function(){return D.getPlayerElement()},c,{layer:D.getScreenLayer()});
e=function(V){W.processChunk({endpoint:G.endpoint,data:V})};
gif(D);D.miniplayerFetchRequest=uOi(D,G.endpoint,e);_.Kl(p,2);return _.Z(p,D.miniplayerFetchRequest,4)}if(p.nextAddress!=2)return Q=p.yieldResult,dkf(D,Q),_.iI(p,0);_.lX(p);_.c5(p)})};
_.a.JSC$16461_onPlaylistDataUpdated=function(){var x=_.Eo().resolve(_.HG).getPlaylistData();this.hasPlaylistData=!!x;_.LP(this,{externalPlaylistData:x||{}})};
_.a.close=function(x){if(this.isInitialized())if(x){if(!((this.watchWhileMode||this.watchPipMode)&&_.Eo().resolve(_.wG).isOnWatch()||this.shortsPipMode)){var G;(G=this.getPlayerElement())==null||G.stop()}this.deactivate()}else _.jK().closeMiniplayer(this.miniplayerEl)};
_.a.deactivate=function(x){var G=this,D,K,z,y;return _.T(function(c){if(c.nextAddress==1){if(!G.isInitialized()||!G.active)return c.return();G.setActive(!1);gif(G);(D=!!x&&jTf(G,x))&&G.isSingleOptionSurveyActive&&_.xO(G.miniplayerEl,"yt-show-watch-page-survey",[G.isSingleOptionSurveyActive]);return _.Z(c,wYY(G),2)}if(c.nextAddress!=3){nif(G,!1);G.isReadyToResume=!1;G.watchResponse=void 0;G.updateMiniplayerData(void 0);G.shortsPipMode&&(G.shortsPipMode=!1,_.wK().dispatch(fN8(G.shortsPipMode)),Woi(G.pipController),
(K=G.player)==null||K.setInternalSize(NaN,NaN));G.watchPipMode&&(G.watchPipMode=!1,Woi(G.pipController));(z=G.watchWhileMode)&&_.A6j(G,!1);G.removePlayerListeners();var W=_.Eo().resolve(_.HG);W.removeEventListener("yt-navigate",_.ae(G,G.onPlaylistNavigate));W.removeEventListener("yt-playlist-data-updated",_.ae(G,G.JSC$16461_onPlaylistDataUpdated));_.or().currentEndpoint=null;_.Gl(G.miniplayerEl,"yt-miniplayer-endpoint-changed");G.playerElement=null;yXZ();return G.shortsPipMode||G.watchPipMode?c.jumpTo(3):
_.Z(c,_.Dq(G.miniplayerEl,_.B("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[D,z]),3)}(y=G.player)==null||y.setInternalSize(NaN,NaN);G.player=null;_.c5(c)})};
var wYY=function(x){var G;return _.T(function(D){G=_.Eo().resolve(_.wG);return x.shortsPipMode?_.Z(D,G.movePlayerToShorts(x.playerElement),0):_.Z(D,G.movePlayerToWatch(x.playerElement),0)})};
bZ.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16461_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
bZ.prototype.setActive=function(x){this.active=x;this.isSingleOptionSurveyActive?_.xO(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.xO(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.wK().dispatch(_.EO({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.A6j=function(x,G){x.watchWhileMode=G;_.LP(x,{watchWhile:G})};
nif=function(x,G){if(!ifT(x))if(x.shortsPipMode||x.watchPipMode){var D;(D=x.player)==null||D.setDocumentPictureInPicture(G)}else{var K;(K=x.player)==null||K.setMinimized(G)}};
ifT=function(x){return x.watchWhileMode&&_.B("kevlar_watch_while_counterfactual")};
_.QP=function(x){var G;return _.T(function(D){switch(D.nextAddress){case 1:if(!x.isInitialized())return D.return();_.Kl(D,2);return _.Z(D,x.miniplayerFetchRequest,4);case 4:_.iI(D,3);break;case 2:_.lX(D);case 3:x.watchResponse&&x.miniplayerData&&x.miniplayerData.watchEndpoint?(G={url:x.watchResponse.url,endpoint:x.miniplayerData.watchEndpoint,data:x.watchResponse,miniplayer:!0},_.h$(x.miniplayerEl,"yt-navigate-cache",G)):x.miniplayerData&&x.miniplayerData.watchEndpoint&&_.h$(x.miniplayerEl,"yt-navigate",
{endpoint:x.miniplayerData.watchEndpoint}),_.c5(D)}})};
gEE=function(x,G,D){var K,z,y,c;return _.T(function(W){if(W.nextAddress==1){if(jTf(x,G))return W.return();_.or().currentEndpoint=G;_.Gl(x.miniplayerEl,"yt-miniplayer-endpoint-changed");_.Gl(x.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.or().isVideoPlaying=!1;K={clientParams:{miniplayer:!0,autoSaveToQueue:!D}};z=new lQi(function(){return x.getPlayerElement()},K,{layer:x.getScreenLayer(),
parentLayer:0},void 0,x.readyToResumeVe);y=function(e){var Q,p,V=Object.assign({},(Q=e.playerResponse)==null?void 0:(p=Q.playerConfig)==null?void 0:p.playbackStartConfig,{startPaused:!0}),L;D&&((L=e.playerResponse)==null?0:L.playerConfig)&&(e.playerResponse.playerConfig.playbackStartConfig=V);z.processChunk({endpoint:G,data:e})};
gif(x);x.miniplayerFetchRequest=uOi(x,G,y);_.Kl(W,2);return _.Z(W,x.miniplayerFetchRequest,4)}if(W.nextAddress!=2)return c=W.yieldResult,dkf(x,c),_.iI(W,0);_.lX(W);_.c5(W)})};
bZ.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var gif=function(x){x.miniplayerFetchRequest&&(x.miniplayerFetchRequest.cancel&&x.miniplayerFetchRequest.cancel("Active request obsolete"),x.miniplayerFetchRequest=null)},uOi=function(x,G,D){var K=_.cP.instance,z,y=(z=_.Y(G.commandMetadata,_.fC))==null?void 0:z.url,c;
z=!y||_.B("disable_miniplayer_tempdata")?{}:(c=KRV(y))!=null?c:{};return U$(K,G,z,window.location.href,"watch",function(W,e){D(e)},function(W){return W!==x.miniplayerFetchRequest})},dkf=function(x,G){var D;
_.T(function(K){if(!G)return K.return();x.watchResponse=G;Scf(x);Ukb(x);D=_.XfE(G.response,G.playerResponse);if(x.isMiniplayerActive()){G.response&&(x.playerElement.watchNextData=G.response);var z=_.YS.getValueByKeys.apply(_.YS,[G].concat(_.B5(bSh)));_.YS.getValueByKeys.apply(_.YS,[G].concat(_.B5(YnZ)))&&z&&_.Eo().resolve(_.HG).setAutoplayRenderer(z);if(z)if(_.B("kevlar_is_pupi_enabled")){var y,c,W,e,Q,p=((y=G.response)==null?0:(c=y.playerOverlays)==null?0:(W=c.playerOverlayRenderer)==null?0:(e=W.autonavToggle)==
null?0:(Q=e.autoplaySwitchButtonRenderer)==null?0:Q.enabled)?2:1;_.de.getInstance().setState(p,!1,!1)}else y=p$f()?2:1,(p=x.player)==null||p.setAutonavState(y);x.updateMiniplayerData(D);_.R4k(x)}_.c5(K)})},Ukb=function(x){var G,D,K=(G=x.watchResponse)==null?void 0:(D=G.playerResponse)==null?void 0:D.playabilityStatus,z;
G=K==null?void 0:(z=K.miniplayer)==null?void 0:z.miniplayerRenderer;(G==null?void 0:G.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&G.minimizedEndpoint&&_.KW(x.miniplayerEl,[G.minimizedEndpoint]);_.LP(x,{miniplayerRenderer:G,playabilityStatus:K})};
bZ.prototype.openToast=function(x,G){_.LP(this,{toastData:{data:x,label:G}})};
_.LP=function(x,G){var D=x.miniplayerEl,K;for(K in G)D[K]=G[K];(0,x.miniplayerPropSignalMap[1])(G)};
bZ.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var x;return this.playerElement?this.playerElement:(x=_.kA(this.miniplayerEl).querySelector("#player-container"))==null?void 0:x.firstElementChild};
bZ.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var Off=function(x,G){G=G===void 0?!1:G;var D,K,z,y,c,W,e;return _.T(function(Q){if(Q.nextAddress==1){D=navigator.userActivation.isActive||G;if(!D||!x.pictureInPictureSupported())return Q.return(!1);K=qcx(x);z=K.width;y=K.height;return _.Z(Q,x.pipController.openWindow({width:z,height:y}),2)}c=Q.yieldResult;W=x.pipController.getWindow();if(!W||!c)return Q.return(!1);W.document.body.style.overflow="hidden";e=swL(W);e1s(x.pipController,function(){Nb8(x);e()});
return Q.return(!0)})},qcx=function(x){var G=_.or().shortsPipActivation,D,K;
x=G?.5625:(K=(D=x.player)==null?void 0:D.getVideoAspectRatio())!=null?K:16/9;D=Math.min(window.innerWidth,window.innerHeight)/2;G=G?0:76;return x>1?new _.cu(D,G+D/x):new _.cu(D*x,G+D)},Nb8=function(x){var G;
_.T(function(D){G=_.Eo().resolve(_.wG);return G.isOnWatch()&&x.watchPipMode||G.isOnShorts()&&x.shortsPipMode?_.Z(D,x.deactivate(),0):x.miniplayerToPipMode?_.Z(D,Ic6(x),0):x.watchPipMode?_.Z(D,_.QP(x),0):D.jumpTo(0)})};
bZ.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.Nq.Object.defineProperties(bZ.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
bZ[dq]=[Zc9,U$Z];var vib="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(" "),
J6b="add_circle alert_bubble audio bag bell clapperboard clock copy creator_studio_red_logo download download fashion flag gaming gear help_circle history home lightbulb live menu mic news offline_no_content overflow_horizontal overflow_vertical play_square_stack playlist podcast search subscriptions thumb_up trash_can trending trophy unplugged_logo video video_camera_add x youtube_kids_round youtube_music youtube_round youtube_shorts yt-logo-updated".split(" "),fcf="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
txj="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var k8k=null;var PCi={},EiY=(PCi.initialized={priority:10,callback:function(x){var G=_.Eo();G.addProvider({provide:p5E,useClass:Tnk});G.addProvider({provide:_.cQO,useFactory:function(){return new Vzh}});
G.addProvider({provide:Mr,useValue:_.Am("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});G.addProvider({provide:YFZ,useValue:5184E6});G.addProvider({provide:iDh,useValue:_.rv()});G.addProvider({provide:tLq,useClass:Nyo});G.addProvider({provide:ID,useClass:ID});G.addProvider({provide:_.k7,useFactory:function(){return kSJ.promise}});
G.addProvider({provide:_.Eb8,useFactory:function(){return _.P9Z.promise}});
G.addProvider({provide:rBn,useValue:function(){var W;return((W=_.Ns())==null?void 0:W.getPlayer())||null}});
var D={};G.addProvider((D.provide=_.iL,D.useFactory=function(W,e){return function(){return DK3(W,e)}},D[dq]=[Mr,
YFZ],D));D={};G.addProvider((D.provide=_.xn,D.useClass=Tm9,D[dq]=[Mr,YFZ],D));D={};G.addProvider((D.provide=_.S1P,D.useClass=ML7,D[dq]=[_.xn],D));G.addProvider({provide:aR,useFactory:_.wK});G.addProvider({provide:z0,useFactory:_.wK});G.addProvider({provide:Ess,useFactory:_.wK});G.addProvider({provide:AMq,useFactory:_.wK});G.addProvider({provide:_.$t,useFactory:_.wK});G.addProvider({provide:DH,useValue:_.yy});G.addProvider({provide:zPx,useClass:Lsh});G.addProvider({provide:Da9,useClass:GvZ});G.addProvider({provide:mD,
useClass:mD});G.addProvider({provide:KF,useClass:KF});G.addProvider({provide:zP,useClass:zP});G.addProvider({provide:oQ,useClass:oQ});G.addProvider({provide:Or,useClass:Or});G.addProvider({provide:eh,useClass:eh});G.addProvider({provide:ET,useClass:ET});G.addProvider({provide:hgh,useValue:YEj});G.addProvider({provide:_.ph,useFactory:_.en});G.addProvider({provide:Nr,useFactory:_.M5});D={};G.addProvider((D.provide=bAV,D.useFactory=function(W){return function(e){var Q=Q===void 0?{}:Q;var p,V,L=(V=_.Y((p=
e.endpoint)==null?void 0:p.commandMetadata,_.fC))==null?void 0:V.rootVe;if(L){var r,H;if(p=e.previousCsn||((H=_.Y((r=e.endpoint)==null?void 0:r.commandMetadata,jb8))==null?void 0:H.parentCsn)){var O=O===void 0?{}:O;if(p!==_.CC(O.layer)||L!==pA$(O.layer))r3L(p,O.cttAuthInfo,O.layer||0),MHL(p,O.layer||0),r=O.layer||0,_.XQ(QYP(r===void 0?0:r),L);Q.parentCsn=p}e.endpoint&&p?JGq(W,e.endpoint,Q):_.EV(W,L,void 0,Q);var A;((A=e.response)==null?0:A.trackingParams)&&W.graftServerVe(e.response.trackingParams);
var g;((g=e.playerResponse)==null?0:g.trackingParams)&&W.graftServerVe(e.playerResponse.trackingParams);var u;((u=e.reelWatchSequenceResponse)==null?0:u.trackingParams)&&W.graftServerVe(e.reelWatchSequenceResponse.trackingParams)}}},D[dq]=[_.ph],D));
D={};G.addProvider((D.provide=xm8,D.useClass=h6q,D[dq]=[DH,_.$t],D));D={};G.addProvider((D.provide=k4,D.useClass=k4,D[dq]=[_.k7,_.$t],D));D={};G.addProvider((D.provide=vn,D.useClass=vn,D[dq]=[z0,_.hm],D));G.addProvider({provide:_.oeu,useClass:Q$8});D={};G.addProvider((D.provide=_.VT,D.useClass=cbs,D[dq]=[_.oeu],D));G.addProvider({provide:_.bm,useClass:hV});G.addProvider({provide:AYq,useClass:Jbq});G.addProvider({provide:_.LM,useClass:Pn});D={};G.addProvider((D.provide=_.go,D.useClass=MN0,D[dq]=[_.go],
D));G.addProvider({provide:_.tF,useClass:tck});G.addProvider({provide:TJ,useClass:TJ});G.addProvider({provide:pG,useClass:pG});G.addProvider({provide:mc,useClass:Er});D={};G.addProvider((D.provide=FW,D.useClass=FW,D[dq]=[_.bm,mc],D));_.B("web_enable_feedback_endpoint_resolver")&&(D={},G.addProvider((D.provide=oR,D.useClass=oR,D[dq]=[aR,zJ],D)),G.addProvider({provide:zJ,useClass:pK9}));_.B("web_enable_feedback_endpoint_resolver_batch_2")&&(D={},G.addProvider((D.provide=lT,D.useClass=lT,D[dq]=[aR],
D)),D={},G.addProvider((D.provide=yK,D.useClass=yK,D[dq]=[zJ],D)));D={};G.addProvider((D.provide=Hv,D.useClass=Hv,D[dq]=[_.LM,mc],D));D={};G.addProvider((D.provide=Bv,D.useClass=Bv,D[dq]=[_.LM],D));D={};G.addProvider((D.provide=$3,D.useClass=$3,D[dq]=[_.Hi,_.VT],D));D={};G.addProvider((D.provide=Y3,D.useClass=Y3,D[dq]=[_.Hi,_.ph],D));G.addProvider({provide:Pv,useClass:Pv});D={};G.addProvider((D.provide=qr,D.useClass=qr,D[dq]=[aR],D));G.addProvider({provide:T_,useClass:T_});D={};G.addProvider((D.provide=
et,D.useClass=et,D[dq]=[aR],D));D={};G.addProvider((D.provide=Zp,D.useClass=Zp,D[dq]=[_.Hi,aR],D));D={};G.addProvider((D.provide=M$,D.useClass=M$,D[dq]=[aR],D));D={};G.addProvider((D.provide=QL,D.useClass=QL,D[dq]=[aR],D));D={};G.addProvider((D.provide=ro,D.useClass=ro,D[dq]=[_.VT],D));D={};G.addProvider((D.provide=Dp,D.useClass=Dp,D[dq]=[_.ph],D));D={};G.addProvider((D.provide=lB,D.useClass=lB,D[dq]=[tI],D));D={};G.addProvider((D.provide=c9,D.useClass=c9,D[dq]=[tI],D));G.addProvider({provide:ag,
useClass:ag});G.addProvider({provide:og,useClass:og});G.addProvider({provide:G_,useClass:G_});D={};G.addProvider((D.provide=CG,D.useClass=CG,D[dq]=[_.VT,_.hm],D));G.addProvider({provide:ZR,useClass:ZR});D={};G.addProvider((D.provide=sM,D.useClass=sM,D[dq]=[_.Hi,_.VT],D));G.addProvider({provide:VK,useClass:VK});D={};G.addProvider((D.provide=uT,D.useClass=uT,D[dq]=[aR,_.Hi,_.go],D));D={};G.addProvider((D.provide=nG,D.useClass=nG,D[dq]=[_.Hi,_.hm],D));G.addProvider({provide:szh,useValue:p8D});G.addProvider({provide:FOu,
useValue:fMf});G.addProvider({provide:iT,useClass:iT});D={};G.addProvider((D.provide=SF,D.useClass=SF,D[dq]=[aR],D));D={};G.addProvider((D.provide=wo,D.useClass=wo,D[dq]=[_.tF,_.hm],D));D={};G.addProvider((D.provide=cv,D.useClass=cv,D[dq]=[_.hm],D));G.addProvider({provide:KG,useFactory:function(){return new KG(_.wK())}});
G.addProvider({provide:uML,useFactory:_.s4.getInstance});D={};G.addProvider((D.provide=QK,D.useClass=QK,D[dq]=[Mr,uML,_.hm],D));G.addProvider({provide:Wv,useClass:Wv});G.addProvider({provide:EQ,useClass:EQ});G.addProvider({provide:x3,useClass:x3});G.addProvider({provide:_.hC,useClass:_.hC});G.addProvider({provide:bB,useClass:bB});D={};G.addProvider((D.provide=AI,D.useClass=AI,D[dq]=[z0],D));D={};G.addProvider((D.provide=UM,D.useClass=UM,D[dq]=[_.hm],D));_.B("web_enable_prefetching_videos_on_home")&&
(G.addProvider({provide:Nj,useClass:Nj}),G.addProvider({provide:cW,useClass:cW}));D={};G.addProvider((D.provide=VL,D.useClass=VL,D[dq]=[_.hm],D));G.addProvider({provide:GJ,useClass:GJ});D={};G.addProvider((D.provide=EM,D.useClass=EM,D[dq]=[_.Hi,_.hm],D));D={};G.addProvider((D.provide=DR,D.useClass=DR,D[dq]=[_.hm],D));G.addProvider({provide:T3,useClass:T3});G.addProvider({provide:OM,useClass:OM});D={};G.addProvider((D.provide=jF,D.useClass=jF,D[dq]=[z0,_.hm],D));D={};G.addProvider((D.provide=rD,D.useClass=
rD,D[dq]=[z0,_.hm,_.Hi],D));D={};G.addProvider((D.provide=sT,D.useClass=sT,D[dq]=[_.hm],D));D={};G.addProvider((D.provide=B9,D.useClass=B9,D[dq]=[_.hm,_.Hi],D));D={};G.addProvider((D.provide=RR,D.useClass=RR,D[dq]=[_.k7],D));D={};G.addProvider((D.provide=XW,D.useClass=XW,D[dq]=[_.k7],D));G.addProvider({provide:fG,useClass:fG});G.addProvider({provide:k3,useClass:k3});G.addProvider({provide:W9,useClass:W9});G.addProvider({provide:hI,useClass:hI});G.addProvider({provide:JI,useClass:JI});G.addProvider({provide:bT,
useClass:bT});G.addProvider({provide:vv,useClass:vv});_.B("kevlar_enable_mss_lazy_load")&&G.addProvider({provide:_.AR,useClass:qDf});G.addProvider({provide:_.yb,useClass:G3});G.addProvider({provide:uz,useFactory:function(){return _.gu.getInstance()}});
G.addProvider({provide:kwE,useFactory:p4Q});G.addProvider({provide:tI,useFactory:function(){return _.QM.getInstance()}});
G.addProvider({provide:wxs,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});D={};G.addProvider((D.provide=_.JV,D.useClass=_.JV,D[dq]=[_.k7,_.hm,_.ph,kwE,tI,uz,wxs,DH],D));G.addProvider({provide:_.ad,useClass:bRE});G.addProvider({provide:_.HDi,useClass:maZ});D={};G.addProvider((D.provide=LG,D.useClass=LG,D[dq]=[_.HDi],D));D={};G.addProvider((D.provide=_.fO,D.useFactory=function(W){return W.upliftCompletionResolver.promise},D[dq]=[xm8],D));
D=_.Uo("IS_SHELL_LOAD")?"aa":"eocs";var K=_.Uo("IS_SHELL_LOAD")?3:2;_.Fp().parkOrScheduleJob(function(){Dms()},K,D);
_.Fp().parkOrScheduleJob(function(){_.Eo().resolve(k4).start()},2,"eocs");
_.Fp().parkOrScheduleJob(function(){Pf8()},2,"eocs");
_.Fp().parkOrScheduleJob(function(){_.Eo().resolve(vn).start()},2,"eocs");
_.B("kevlar_debug_data_app_registration_ks")||JlV();G.addProvider({provide:_.su,useValue:new ysq(x.root)});G.addProvider({provide:nE,useValue:new n$P});G.addProvider({provide:_.QC0,useValue:new Zn0(x.root)});G.addProvider({provide:_.mg,useValue:new Mcs});G.addProvider({provide:_.WP,useClass:ct});G.addProvider({provide:Zc9,useClass:xZ});_.B("kevlar_network_sli_killswitch")||G.addProvider({provide:QVO,useValue:X29});G.addProvider({provide:aff,useFactory:ENO});_.B("web_bind_fetch")&&(D={},G.addProvider((D.provide=
oCi,D.useFactory=hBE,D[dq]=[_.P6(aff)],D)));_.B("web_bind_parse")&&(D={},G.addProvider((D.provide=yQc,D.useFactory=xTn,D[dq]=[_.P6(aff)],D)));_.B("web_bind_window_request")&&(D={},G.addProvider((D.provide=lfi,D.useFactory=GhL,D[dq]=[_.P6(aff)],D)));D={};G.addProvider((D.provide=wKJ,D.useFactory=QBn,D[dq]=[_.fO,aR,_.iL],D));D={};G.addProvider((D.provide=dau,D.useClass=YD,D[dq]=[wKJ],D));G.addProvider({provide:z6E,useClass:xRh});G.addProvider({provide:nQE,useClass:gQE});D=[].concat(_.B5(nH));_.B("web_continuation_response_processing")&&
D.push(_.Il);D.push(KPE);_.B("enable_share_panel_navigation_logging_fix_on_web")&&D.push(_.HiE);G.addProvider({provide:cl3,useValue:D});G.addProvider({provide:q1f,useClass:SFo});G.addProvider({provide:LEb,useClass:pLj});D={};G.addProvider((D.provide=gIC,D.useClass=Hn9,D[dq]=[z0],D));_.Fj.addLowPriorityJob(function(){uNd()});
D={};G.addProvider((D.provide=SJs,D.useFactory=function(W){return function(e){var Q,p=(Q=_.Y(e.commandMetadata,_.fC))==null?void 0:Q.url;if(!p)throw new _.LL("No URL for PBJ Command",e);p=VSh(p,{pbj:"1"});Q=Rpf(p,{})||{};Q=Object.assign({},Q,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.Am("STS").toString()});e=_.W0({command:JSON.stringify(e),session_token:_.Am("XSRF_TOKEN")});return W.fetch(p,{method:"POST",headers:Q,body:e})}},D[dq]=[LEb],D));
D=[];D.push(G.resolve(nQE));K={};K=(K.client_location=_.s4.getInstance(),K.consistency=_.Wef(),K.entities=G.resolve(Da9),K.response_received_commands=G.resolve(q1f),K.store=G.resolve(_.S1P),K.tokens=G.resolve(nQE),K);if(_.B("web_shorts_prefetch_service_enabled")){var z=new Qjs(G.resolve(_.xn));K.shorts_prefetch=z}K.adblock_detection=G.resolve(gIC);G.addProvider({provide:_.w$,useClass:_.w$});z=G.resolve(hgh);var y=[];if(_.B("PremiumClientSharedConfig__enable_att_context_processor")||_.B("enable_att_for_transcript_request_on_web_client"))G.addProvider({provide:ggo,
useClass:S58}),y.push(G.resolve(ggo));if(_.B("owl_pl_await")){var c={};G.addProvider((c.provide=h1q,c.useFactory=function(W){return new Pno(W)},c[dq]=[_.w$],c));
y.push(G.resolve(h1q))}uEE(z,G.resolve(LEb),G.resolve(zPx),K,G.resolve(_.xn),D,y,G.resolve(dau),G.resolve(z6E));G.addProvider({provide:_.Hi,useValue:_.Aa.instance});_.B("start_client_gcf")&&G.addProvider({provide:ru,useValue:qji()});G.addProvider({provide:z1u,useFactory:function(){return new z1u(_.Eo().resolve(_.w$),_.QM.getInstance())}});
_.Fp().parkOrScheduleJob(function(){ajZ()},1,"eocs");
D={};G.addProvider((D.provide=tV,D.useClass=tV,D[dq]=[_.iL,_.Hi],D));G.addProvider({provide:_.Bdu,useFactory:_.lZ.getInstance});_.Fp().parkOrScheduleJob(function(){_.Eo().resolve(tV).refresh()},0,"eocs");
nno(YEj.watchEndpointMap||{},z.reelWatchEndpointMap||{},x.injector.resolve(_.Hi));G.addProvider({provide:bh,useValue:_.cP.instance});_.B("kevlar_signal_collection_killswitch")||(D={},G.addProvider((D.provide=f8s,D.useClass=f8s,D[dq]=[Mr,Nr],D)),_.Fp().parkOrScheduleJob(function(){_.Eo().resolve(f8s).record()},1,"eocs"));
_.B("web_debug_handler_registration_killswitch")||_.Fp().parkOrScheduleJob(function(){NDE("DOWNLOAD_PES",Q3f);_.B("offline_client_state_export_ks")||NDE("OFFLINE_CLIENT_STATE",eB$)},0,"eocs");
_.B("kevlar_prevent_polymer_dynamic_font_load")&&_.Fp().parkOrScheduleJob(function(){var W=[_.xS(O$k),_.xS(XLf)];W=_.l(W);for(var e=W.next();!e.done;e=W.next()){e=e.value;var Q=document.createElement("link");_.gC(Q,e,"stylesheet");document.head.appendChild(Q)}},1,"eocs");
D=x.injector.resolve(_.Hi);_.inE.instance=new _.inE(D);hb3(jCi(new ngi(D)));D={};x.injector.addProvider((D.provide=kq,D.useFactory=function(W){(W=W==null?void 0:W.getCurrentPage())?W=W.visibilityObserver:(k8k||(k8k=VMO()),W=k8k);return W},D[dq]=[_.P6(_.wG)],D.skipCache=!0,D));
G.addProvider({provide:_.O$,useClass:bZ});G.addProvider({provide:lm,useClass:HR9});x.injector.addProvider({provide:jqs,useValue:og8});G.addProvider({provide:yT8,useValue:p3P});G.addProvider({provide:_.ib,useValue:FXC});x=G.addProvider;s$8||(s$8=new rb0);x.call(G,{provide:_.YUJ,useValue:s$8});G.addProvider({provide:_.ub,useValue:_.Am("HTML_DIR")==="rtl"?"rtl":"ltr"});G.addProvider({provide:zg8,useClass:MaE});G.addProvider({provide:_.oP,useClass:D4});_.Eo().addProvider({provide:oQ8,useValue:_.B("enable_web_delhi_icons")?
J6b.concat(txj):vib.concat(fcf)});G.addProvider({provide:_.z3,useClass:_.z3});G.addProvider({provide:_.$LT,useValue:new H$O});G.addProvider({provide:zN7,useClass:hwE});G.addProvider({provide:xD,useClass:xD});G.addProvider({provide:KR,useClass:KR});x={};G.addProvider((x.provide=IR,x.useClass=IR,x[dq]=[_.Hi,_.VT],x));G.addProvider({provide:LR,useClass:LR});G.addProvider({provide:YWs,useClass:VNs});G.addProvider({provide:yL,useClass:yL});G.addProvider({provide:D4k,useValue:uls});G.addProvider({provide:_.Iu,
useClass:xak});_.B("enable_payments_purchase_manager")&&G.addProvider({provide:q5o,useClass:u7u});G.addProvider({provide:Ifx,useFactory:function(){return function(W){return _.COj(W)}}});
G.addProvider({provide:_.Uai,useClass:RgZ});x={};G.addProvider((x.provide=pR,x.useClass=pR,x[dq]=[_.Uai],x));G.addProvider({provide:z_,useClass:z_});G.addProvider({provide:bAs,useValue:fnJ});G.addProvider({provide:Rvs,useValue:_.Ijk});G.addProvider({provide:D3f,useClass:prZ});G.addProvider({provide:CqO,useValue:Fhk});x={};G.addProvider((x.provide=_.MN,x.useClass=Io8,x[dq]=[CqO],x));_.B("web_ephemeral_actions")&&(x={},G.addProvider((x.provide=_.oz,x.useClass=az,x[dq]=[_.$t,_.WP],x)));if(_.B("web_explore_hub_on_hover")||
_.B("web_client_explore_hub_on_hover"))x={},G.addProvider((x.provide=eF,x.useClass=eF,x[dq]=[_.Hi,uz],x));G.addProvider({provide:IdC,useValue:suV});x={};G.addProvider((x.provide=VLZ,x.useClass=pjs,x[dq]=[_.Hi],x))}},PCi);var h4j={},xH4=(h4j.initialized={priority:10,callback:function(){if(!Mfk){q4n();KQC("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.yR(_.Zq(KQC,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.B("log_heartbeat_with_lifecycles")){var x={};wE.instance||(wE.instance=new wE);wE.instance.install((x.document_visible={callback:zLL,priority:10},x.document_hidden={callback:zLL,priority:10},x))}else _.PS(document,"visibilitychange",zLL);Mfk=!0}(x=_.CC())&&x!=="UNDEFINED_CSN"&&ey3(x)}},h4j);var G4f={},DHf=(G4f.initialized={callback:function(x){var G=_.BH(232091),D=x.injector.resolve(_.ph);_.hz(D,G);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?Y1f()&&_.G$(D,G):(x=x.injector.resolve(Ifx)("refresh_detector"))&&(x.get("first_tab_load")?_.G$(D,G):x.set("first_tab_load","1"))}},G4f);var KzT={},zUO=(KzT.initialized={priority:10,callback:OpL},KzT);var a7f={},o06=(a7f.initialized={priority:0,callback:function(){var x=new fBZ,G="other";_.Kr?G="chrome":_.Dh?G="firefox":_.Xf?G="safari":NU&&(G="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(D){x.increment(_.pL(),D,G)}).catch(function(){x.increment(_.pL(),!1,G)}):x.increment(_.pL(),!1,G)}},a7f);var ygc={},l7b=(ygc.rendering={priority:8,callback:XMQ},ygc);var cgO={},Th6=(cgO.rendering={priority:10,callback:vId},cgO.rendered={callback:NI3},cgO),Wz8={},eUx=(Wz8.rendering={callback:vId},Wz8.rendered={callback:NI3},Wz8);var ZmO=!1,MXf={},QSC=(MXf.initialized={priority:10,callback:function(){ZmO||(Bu3({didPatch:function(x){x.el&&TLD(x.el,x.props)},
didUnmount:function(x){l43(x.el)}}),ZmO=!0)}},MXf);var pdc=/^\/shorts\/?$/;_.XQ("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(_.B("kevlar_enable_mss")){_.GZO(new CVs);var VXi=!0,bmO,BW;VXi=VXi===void 0?!1:VXi;bmO=bmO===void 0?!1:bmO;BW=BW===void 0?{}:BW;var Lzk=BW.cssRowKey||"",BhO=BW.combinedSignature||"";!Lzk&&window&&window._F_cssRowKey&&(Lzk=window._F_cssRowKey,!BhO&&window._F_combinedSignature&&(BhO=window._F_combinedSignature));if(Lzk&&typeof window._F_installCss!=="function")throw Error("td");var rgx=BW.loaderClass||_.Cy,rL=gTV("base-js"),sSc,Y_b=dhL("",rL);sSc=_.oF(Y_b);var sG=new rgx(sSc,Lzk,BhO,VXi,bmO),mHc=
BW.useCors||rL&&rL.hasAttribute("crossorigin"),Hmf=BW.corsMode||rL&&rL.getAttribute("crossorigin");mHc&&(sG.useCors_=mHc);Hmf&&(sG.corsMode_=Hmf);BW.urlMaxLength&&(sG.urlMaxLength=BW.urlMaxLength);BW.fetchPriority&&(sG.fetchPriority=BW.fetchPriority);var $Hf=jB();$Hf.JSC$8061_loader_=sG;$Hf.setBatchModeEnabled(!0)}
(function(){var x=document.querySelector("ytd-app");if(!x)throw Error("Dj");x=new yP({root:x,injector:_.Eo()});x.install(xH4);var G={};x.install((G.initialized={priority:10,callback:leE},G));_.B("wp_lat_b")&&(G={},x.install((G.initialized={priority:10,callback:function(){toL()}},G)));
G={};x.install((G.rendered={priority:0,callback:aeh},G));G={};x.install((G.rendered={priority:0,callback:function(){_.Fj.addLowPriorityJob(function(){_.Qaq>1&&(EbC(),K1f())},4E4)}},G));
x.install(zZj);x.install(DHf);x.install(QSC);jVc||(jVc=!0,Object.assign(Kx,{handleError:c4f,enableComponentStacksInErrorMessages:!1,enableLazyTsx:_.B("mweb_enable_wiz_lazy_tsx")||_.B("kevlar_enable_wiz_lazy_tsx")}),Igf=dOJ,bEf=TWC,UiD=qLD,OEn=Nyf,_.B("ytwiz_enable_debug_component_props")&&uvP());x.install(eZf);x.install(ECC);x.install(D0b);x.install(u0u);x.install(vsJ);x.install(T9c);x.install(EiY);_.B("kevlar_enable_mss_lazy_load")&&x.install(zUO);x.install(x0T);x.install(o06);if(!_.Uo("IS_SHELL_LOAD")||
_.B("kevlar_fetch_initial_data_promise_client")||_.B("sw_nav_preload_pbj")){var D=_.c0(window.location.href);G=D&&D==="/watch";D=D&&D.match(pdc);G?x.install(eUx):D?x.install(l7b):x.install(Th6)}else x.install(tfk);x.install(o8C);_.B("web_enable_prefetching_videos_on_home")&&x.install(psb);_.B("start_client_gcf")&&x.install(Z$6);x.install(R6q);(new trs).increment("INSTALLED");x.install(MZc);x.install(vCf);x.transition("initialized")})();
_.DD=[[["ZTE0a3hodHlvd3Vqa2luZCM=","ZHB3dXJlM2JwdmFsdWUjcWhl"],"TElTRUNPTkRTI2dkbml6czk1czN6QURfUExBQ0VNRU5UX0tJTkRfTUlM"]];_.GU=["c3ZmM3cwcmdsb2JhbENhbGxiYWNrcyMzbHhkag==","b3JtYWxpdHlEZXRlY3RlZCN3bmc0aXpnMnQ2emZvbkFibg==","b25BZFNraXAjeGpyaXhkNjFnbjYw","YXdfcGxheWVyX3Jlc3BvbnNlIzlkaDA4MWI0MmNwbHI=","eWVyQWRzI2lpMGE5OHo1aGVhNXBsYQ=="];_.Ai="c3ZmM3cwcmdsb2JhbENhbGxiYWNrcyMzbHhkag== b3JtYWxpdHlEZXRlY3RlZCN3bmc0aXpnMnQ2emZvbkFibg== b25BZFNraXAjeGpyaXhkNjFnbjYw YXdfcGxheWVyX3Jlc3BvbnNlIzlkaDA4MWI0MmNwbHI= X2tzI2o2cmM4cWh3OGk0d2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBz YWJfc2FfZWYjb256OGo4aG8zcDF1 eWVyQWRzI2lpMGE5OHo1aGVhNXBsYQ==".split(" ");
_._ModuleManager_initialize=function(x,G){if(!_.Fk){if(!_.IK)return;_.GZO(_.IK())}_.Fk.setAllModuleInfoString(x,G)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5/sy6:2,3/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syc:2/syd:6,a,d/sye/syf:5/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/syl:o/nmfa2d:h,n,p/sym:7,o/syn:g,h,p,r/CF909:n,s/Tm0L3c:s/L3n37:g,h,n,r/iuT5Oc',['sy2','sy3','sy8','syc','sya','sy6','syi','syh','sye','syd','syb','sy1','syk','sy7','sy5','sym','syl','syg','syf','syj','syn','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.$Z=function(x,G,D,K,z){var y={};G&&(y[G]=D);K?y.errorType=K:z&&(y.errorReason=z);_.Fv(x,y);_.CE()};
_.FU=function(x){var G=_.Fp();return _.jGs(G,x,1)};
_.BD({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 x=this.query;x&&(this.full||x[0]==="("||(x="("+x+")"),this._mq=window.matchMedia(x),this._add(),this.queryHandler(this._mq))},
queryHandler:function(x){this._setQueryMatches(x.matches)}});var S_Y;var n0C;var imb=function(){};
_.a=imb.prototype;_.a.addOwnKeyBinding=function(){};
_.a.removeOwnKeyBindings=function(){};
_.a.keyboardEventMatchesKeys=function(){};
_.a._collectKeyBindings=function(){};
_.a._prepKeyBindings=function(){};
_.a._addKeyBinding=function(){};
_.a._resetKeyEventListeners=function(){};
_.a._listenKeyEventListeners=function(){};
_.a._unlistenKeyEventListeners=function(){};
_.a._onKeyBindingEvent=function(){};
_.a._triggerKeyHandler=function(){};
_.a._tapHandler=function(){};
_.a._focusChanged=function(){};
_.a._detectKeyboardFocus=function(){};
_.a._userActivate=function(){};
_.a._upHandler=function(){};
_.a._spaceKeyDownHandler=function(){};
_.a._spaceKeyUpHandler=function(){};
_.a._asyncClick=function(){};
_.a._pressedChanged=function(){};
_.a._ariaActiveAttributeChanged=function(){};
_.a._activeChanged=function(){};
_.a._controlStateChanged=function(){};
_.a._changedButtonState=function(){};
_.a._focusBlurHandler=function(){};
_.a._disabledChanged=function(){};
_.a._changedControlState=function(){};
_.a._downHandler=function(){};
_.a.ensureRipple=function(){};
_.a.getRipple=function(){};
_.a.hasRipple=function(){};
_.a._noinkChanged=function(){};
_.a._focusedChanged=function(){};
_.a._createRipple=function(){};
_.a.registered=function(){};
_.a._invalidChanged=function(){};
_.a.hasValidator=function(){};
_.a.validate=function(){};
_.a._getValidity=function(){};
_.a._requiredChanged=function(){};
_.a._valueChanged=function(){};
_.a._checkedChanged=function(){};
_.a._buttonStateChanged=function(){};
_.a._setPressed=function(){};
_.a._setPointerDown=function(){};
_.a._setReceivedFocusFromKeyboard=function(){};
_.a._setFocused=function(){};
imb=_.BD({is:"tp-yt-paper-radio-button",_template:function(){if(n0C!==void 0)return n0C;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;S_Y===void 0&&(S_Y=document.createElement("template"));var K=S_Y;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return n0C=x},
behaviors:[_.Mss],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(){_.w1(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var x=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),G=Math.floor(3*x);G%2!==x%2&&G++;this.updateStyles({"--paper-radio-button-ink-size":G+"px"})}})}});var g0O;var ucT;_.BD({_template:function(){if(ucT!==void 0)return ucT;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;g0O===void 0&&(g0O=document.createElement("template"));var K=g0O;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return ucT=x},
is:"tp-yt-paper-radio-group",behaviors:[_.Fyi],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(x){var G=this._valueToItem(x);if(!G||!G.hasAttribute("disabled")){if(this.selected){G=this._valueToItem(this.selected);if(this.selected==x)if(this.allowEmptySelection)x="";else{G&&(G.checked=!0);return}G&&
(G.checked=!1)}_.Re.select.apply(this,[x]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(x){this._focusPrevious();x.preventDefault();this._activateFocusedItem()},
_onDownKey:function(x){this._focusNext();x.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(x){_.$vo._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(x){_.$vo._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.Re._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.bK._resetTabindices.apply(this,arguments);this.items.forEach(function(x){x.removeAttribute("aria-selected")},this)}});var dHj;_.HH("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var CP=function(){return _.n.apply(this,arguments)||this};
_.m(CP,_.n);_.a=CP.prototype;_.a.computeHasPrimaryIcon=function(x){return!(!x.icon&&!x.thumbnail)};
_.a.computeHasSecondary=function(x){return!(!x.secondaryIcon&&!x.secondaryNotificationText)};
_.a.computeHideSecondaryString=function(x){return!_.B("disable_hide_empty_secondary_string")&&!x.secondaryNotificationText};
_.a.computeCompactLinkStyle=function(x){return x?x.toLowerCase().replace(/_/g,"-"):""};
_.a.computeHasFitHeight=function(x){return x==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.a.isActiveEndpoint=function(x){return(x=this.get("commandMetadata.webCommandMetadata.url",x))?_.c0(window.location.href)!=="/account_transfer_channel"&&_.c0(window.location.href)!=="/gaia_link"&&_.c0(window.location.href)!=="/channel_switcher"||x!=="/account"?_.c0(window.location.href)===x:!0:!1};
_.a.onTap=function(){var x;((x=this.data)==null?0:x.serviceEndpoint)&&_.KW(this.hostElement,[this.data.serviceEndpoint])};
CP.prototype.onTap=CP.prototype.onTap;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],CP.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],CP.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.N("design:type",Boolean)],CP.prototype,"active",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.N("design:type",String)],CP.prototype,"compactLinkStyle",void 0);
_.q([_.R({computed:"computeIcon_(data.icon)"}),_.N("design:type",Object)],CP.prototype,"icon",void 0);_.q([_.R({computed:"computeIcon_(data.secondaryIcon)"}),_.N("design:type",Object)],CP.prototype,"secondaryIcon",void 0);_.q([_.R({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],CP.prototype,"hasSecondary",void 0);_.q([_.R({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],CP.prototype,"hideSecondaryString",void 0);
_.q([_.oe("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],CP.prototype,"onTap",null);CP=_.q([_.d({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],CP);
_.w(CP,"ytd-compact-link-renderer",function(){if(dHj!==void 0)return dHj;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return dHj=x},{mode:1});var wdc;_.HH("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var Iz=function(){var x=_.n.apply(this,arguments)||this;x.role="link";x.tabindex="0";x.actionMap=_.B("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 x};
_.m(Iz,_.n);_.a=Iz.prototype;_.a.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.Lt()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.a.getCurrentTheme=function(){return _.Bi()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Lt()};
_.a.onThemeSelected=function(x,G){var D=x||G?x:_.bo(),K=(D&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!D&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.lNO(_.c0(window.location.href));_.Qg(0,165,x);_.Qg(0,174,G);this.prefs.save();K&&_.xO(this.hostElement,"yt-dark-mode-toggled-action",[D]);_.xO(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.a.onTap=function(){this.data.serviceEndpoint&&_.KW(this.hostElement,[this.data.serviceEndpoint])};
_.a.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.a.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.a.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
Iz.prototype.onTap=Iz.prototype.onTap;Iz.prototype.dataChanged=Iz.prototype.dataChanged;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],Iz.prototype,"actionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Iz.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.iK),_.N("design:type",Object)],Iz.prototype,"paperItemBehaviors",void 0);_.q([_.R(),_.N("design:type",Object)],Iz.prototype,"data",void 0);_.q([_.R({value:function(){return _.M5()}}),
_.N("design:type",_.N9)],Iz.prototype,"prefs",void 0);_.q([_.R(),_.N("design:type",Object)],Iz.prototype,"label",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Iz.prototype,"role",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Iz.prototype,"tabindex",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Iz.prototype,"dataChanged",null);
_.q([_.oe("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Iz.prototype,"onTap",null);Iz=_.q([_.d({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],Iz);
_.w(Iz,"ytd-toggle-theme-compact-link-renderer",function(){if(wdc!==void 0)return wdc;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return wdc=x},{mode:1});
}catch(e){_._DumpException(e)}
try{
var Nhc,v0c;_.j9=function(x){return!!x.getOptions("captions")};
_.q_i=function(x){return(x=x.getOption("captions","track"))?!!x.displayName:!1};
_.OG=function(x,G){_.Fm(G,x,function(){return Nhc[G]},function(D){Nhc[G]=D;
if(!_.B("mweb_player_ve_show_ks")){var K=_.CC(0);K&&D&&_.nW(K,D)}})};
_.XU=function(x){(x=Nhc[x])&&_.G$(_.en(),x)};
Nhc={};var Jgc;/*

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
*/
_.BD({_template:function(){if(Jgc!==void 0)return Jgc;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;v0c===void 0&&(v0c=document.createElement("template"));var K=v0c;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return Jgc=x},
is:"tp-yt-paper-checkbox",behaviors:[_.Mss],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.w1(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var x=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),G="px",D=x.match(/[A-Za-z]+$/);D!==null&&(G=D[0]);x=parseFloat(x);D=8/3*x;G==="px"&&(D=Math.floor(D),D%2!==x%2&&D++);this.updateStyles({"--paper-checkbox-ink-size":D+
G})}})},
_computeCheckboxClass:function(x,G){var D="";x&&(D+="checked ");G&&(D+="invalid");return D},
_computeCheckmarkClass:function(x){return x?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.eaZ._createRipple.call(this)}});var f7C=new _.J("radioButtonSurveyOptionRenderer"),tXx=new _.J("checkboxSurveyOptionRenderer");var k4i;var PU6;var E0O=0,AT=function(){var x=_.n.call(this)||this;x.selected=!1;x.isOverlay=!1;x.inputId="toggle-option-"+E0O;E0O++;return x};
_.m(AT,_.n);AT.prototype.onTap=function(){_.h$(this.hostElement,"ytd-toggle-option-clicked")};
_.q([_.R(),_.N("design:type",String)],AT.prototype,"label",void 0);_.q([_.R(),_.N("design:type",String)],AT.prototype,"inputId",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],AT.prototype,"selected",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],AT.prototype,"isOverlay",void 0);AT=_.q([_.d({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.N("design:paramtypes",[])],AT);
_.w(AT,"ytd-toggle-option-renderer",function(){if(PU6!==void 0)return PU6;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return PU6=x},{mode:1});var UG=function(){var x=_.n.apply(this,arguments)||this;x.isToggleOption=!1;x.isOverlay=!1;return x};
_.m(UG,_.n);UG.prototype.onTap=function(x){x.preventDefault();this.data&&(x=!this.data.checked,this.set("data.checked",x),_.h$(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:x,value:this.data.value}))};
_.Nq.Object.defineProperties(UG.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
UG.prototype.onTap=UG.prototype.onTap;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],UG.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],UG.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],UG.prototype,"isToggleOption",void 0);_.q([_.R(),_.N("design:type",Object)],UG.prototype,"isOverlay",void 0);_.q([_.U("data.responseText"),_.N("design:type",String),_.N("design:paramtypes",[])],UG.prototype,"label",null);
_.q([_.oe("ytd-toggle-option-clicked"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],UG.prototype,"onTap",null);UG=_.q([_.d({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],UG);
_.w(UG,"ytd-checkbox-survey-option-renderer",function(){if(k4i!==void 0)return k4i;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return k4i=x},{mode:1});var hUk;var xc8;var Rz=function(){var x=_.n.apply(this,arguments)||this;x.checked=!1;x.isToggleOption=!1;return x};
_.m(Rz,_.n);Rz.prototype.onTap=function(){this.data&&(this.checked?_.xO(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.xO(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
Rz.prototype.onTap=Rz.prototype.onTap;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Rz.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Rz.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],Rz.prototype,"checked",void 0);_.q([_.R(),_.N("design:type",Object)],Rz.prototype,"isToggleOption",void 0);_.q([_.oe("ytd-toggle-option-clicked"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Rz.prototype,"onTap",null);
Rz=_.q([_.d({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],Rz);
_.w(Rz,"ytd-radio-button-survey-option-renderer",function(){if(xc8!==void 0)return xc8;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return xc8=x},{mode:1});var S9=function(){var x=_.n.apply(this,arguments)||this;x.disableAnimation=!1;x.isToggleOption=!0;x.followUpSurveyCommand=null;x.selectedRatingEndpoint=null;x.isSlimlineSurveyFollowUp=!1;x.isShortsStyle=!1;x.styleOverrideAttribute=!0;x.isDarkMode=!1;x.isSubmitted=!1;x.roundedContainer=!0;x.improveShortsResponseRate=_.B("web_improve_shorts_response_rate");x.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 x};
_.m(S9,_.n);_.a=S9.prototype;
_.a.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"}}}}};
_.a.attached=function(){var x=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(D){var K;if((K=D[0])!=null&&K.isIntersecting){_.Te().reportShown(x.hostElement);var z;(z=x.intersectionObserver)==null||z.unobserve(x.hostElement)}},{rootMargin:"0px",
threshold:.6});var G;(G=this.intersectionObserver)==null||G.observe(this.hostElement)};
_.a.onDarkModeToggledAction=function(x){this.isDarkMode=x};
_.a.dataChanged=function(){var x;if(((x=this.data)==null?void 0:x.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var G;((G=this.data)==null?void 0:G.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var D,K,z,y;this.darkColorPalette=(D=this.data)==null?void 0:(K=D.inlineContent)==null?void 0:(z=K.compactVideoRenderer)==null?void 0:(y=z.thumbnail)==null?
void 0:y.darkColorPalette;var c,W,e,Q;this.lightColorPalette=(c=this.data)==null?void 0:(W=c.inlineContent)==null?void 0:(e=W.compactVideoRenderer)==null?void 0:(Q=e.thumbnail)==null?void 0:Q.lightColorPalette;var p,V;if(((p=this.data)==null?0:(V=p.inlineContent)==null?0:V.compactVideoRenderer)&&this.isShortsStyle){var L,r,H,O;x=_.Ph((L=this.data)==null?void 0:(r=L.inlineContent)==null?void 0:(H=r.compactVideoRenderer)==null?void 0:(O=H.thumbnail)==null?void 0:O.thumbnails);_.K7(this.hostElement,
{"--yt-background-url":"url("+x+")"})}};
_.a.handleRequestCompletion=function(){this.hostElement.hidden&&_.h$(this.hostElement,"yt-dismissible-item-dismissed")};
_.a.onPopupClosed=function(x){var G;((G=x.detail)==null?void 0:G.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.xO(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.a.handleInlineSurveyRatingSelect=function(x,G){var D=this;this.selectedRatingEndpoint=x;this.followUpSurveyCommand=G;this.expanded=!!x;this.getOptionRenderers().forEach(function(K,z){D.notifyPath("followUpSurveyCommand.followUpOptions."+z+".checkboxSurveyOptionRenderer.checked");D.set("followUpSurveyCommand.followUpOptions."+z+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),x=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.xO(this.hostElement,"yt-reel-non-video-content-dismissal-command",[x]))};
_.a.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.xO(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var x,G=(x=this.data)==null?void 0:x.dismissalEndpoint;G&&this.ytComponentBehavior.resolveCommand(G)}};
_.a.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.xO(this.hostElement,"yt-close-popup-action"))};
_.a.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var x=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{x=this.getOptionRenderers().filter(function(K){return K.checked});
if(x.length===0)return;x=x.map(function(K){return K.responseEndpoint})}var G=[];
x.forEach(function(K,z){z!==0&&(K=_.Y(K,_.H1))&&K.feedbackToken&&G.push(K.feedbackToken)});
if(x=x[0]){var D={};G.length>0&&(D.extra_feedback_tokens=G);this.ytComponentBehavior.resolveCommand(x,{form:D})}}};
_.a.getOptionRenderers=function(){var x=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(G){x.isSingleSelect=!!_.Y(G,f7C);return x.isSingleSelect?_.Y(G,f7C):_.Y(G,tXx)}):[]};
_.a.handleInlineSurveyOptionSelect=function(x){x=this.optionSelector.indexOf(x);x!==-1&&this.optionSelector.selectIndex(x)};
_.a.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.a.maybeGetBackgroundColor=function(x){return this.isDarkMode?x.section2Color:x.section3Color};
_.a.colorPaletteChanged=function(){var x=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;x=x&&this.maybeGetBackgroundColor(x);this.dismissibleEl.style.backgroundColor=!x||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.In(x)};
_.Nq.Object.defineProperties(S9.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
S9.prototype.colorPaletteChanged=S9.prototype.colorPaletteChanged;S9.prototype.onPopupClosed=S9.prototype.onPopupClosed;S9.prototype.handleRequestCompletion=S9.prototype.handleRequestCompletion;S9.prototype.dataChanged=S9.prototype.dataChanged;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],S9.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],S9.prototype,"actionHandlerBehavior",void 0);
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],S9.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],S9.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.CS),_.N("design:type",Object)],S9.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.cD("#follow-up-survey-options"),_.N("design:type",Object)],S9.prototype,"optionSelector",void 0);_.q([_.R(),_.N("design:type",Object)],S9.prototype,"data",void 0);
_.q([_.R(),_.N("design:type",Object)],S9.prototype,"disableAnimation",void 0);_.q([_.R(),_.N("design:type",Object)],S9.prototype,"isToggleOption",void 0);_.q([_.R(),_.N("design:type",Object)],S9.prototype,"followUpSurveyCommand",void 0);_.q([_.R(),_.N("design:type",Object)],S9.prototype,"selectedRatingEndpoint",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],S9.prototype,"expanded",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],S9.prototype,"isSlimlineSurveyFollowUp",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],S9.prototype,"isShortsStyle",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],S9.prototype,"styleOverrideAttribute",void 0);_.q([_.R(),_.N("design:type",Boolean)],S9.prototype,"isSingleSelect",void 0);_.q([_.R(),_.N("design:type",Object)],S9.prototype,"isDarkMode",void 0);
_.q([_.R(),_.N("design:type",Object)],S9.prototype,"lightColorPalette",void 0);_.q([_.R(),_.N("design:type",Object)],S9.prototype,"darkColorPalette",void 0);_.q([_.U("selectedRatingEndpoint","isShortsStyle"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],S9.prototype,"isOptionSelected",null);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],S9.prototype,"roundedContainer",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],S9.prototype,"improveShortsResponseRate",void 0);_.q([_.cD("#dismissible"),_.N("design:type",HTMLElement)],S9.prototype,"dismissibleEl",void 0);_.q([_.cD("#dismiss-button yt-icon-button"),_.N("design:type",HTMLElement)],S9.prototype,"dismissButtonEl",void 0);_.q([_.cD("#inline-survey-header yt-icon-button"),_.N("design:type",HTMLElement)],S9.prototype,"inlineHeaderDismissButtonEl",void 0);
_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S9.prototype,"dataChanged",null);_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S9.prototype,"handleRequestCompletion",null);_.q([_.oe("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],S9.prototype,"onPopupClosed",null);
_.q([_.yf("darkColorPalette","lightColorPalette","isDarkMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S9.prototype,"colorPaletteChanged",null);S9=_.q([_.d({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],S9);
_.w(S9,"ytd-inline-survey-renderer",function(){if(hUk!==void 0)return hUk;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return hUk=x},{mode:1});var GW8=["en-CA","en","es-MX","fr-CA"];_.Dcc=_.Nv(function(x){var G=_.qv(x,{isOverlay:!1,isModern:!1}),D=G.captionIconType,K=G.onClick;x=G.ariaLabel;var z=G.ariaPressed,y=G.isOverlay,c=G.isModern;G=_.qi(function(Q){_.OG(Q,127299)});
var W=_.WH(function(Q){_.XU(127299);K==null||K(Q);return!1}),e={};
return _.M("ytm-closed-captioning-button",{class:_.ym("ytmClosedCaptioningButtonHost",(e.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return D()===-1&&y()},e.ytmClosedCaptioningButtonIconDisabled=function(){return D()===-1&&!y()},e))},_.M("button",{el:G,
class:"ytmClosedCaptioningButtonButton",title:x,"aria-label":x,"aria-pressed":z,"on:click":W},_.M(_.Qm,{icon:function(){var Q="";var p=c()?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";var V=_.M5().get("hl");p=!V||GW8.includes(V)?p:"SUBTITLES";V=D();switch(V){case -1:case 0:Q=p;break;case 1:Q=p+"_FILLED";break;default:_.oT(V)}return Q}})))},"Ye");
_.Dcc.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.Ne=function(x){return function(G,D){var K=x||D.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(G,D,{get:function(){var z;return this.$?this.$[K]:(z=_.lD(this))==null?void 0:z.querySelector("#"+K)},
enumerable:!0,configurable:!0})}};_.vQ=function(x){x=x===void 0?!1:x;_.Ya.call(this);this.pubSub_=new _.e_(x);_.WZ(this,this.pubSub_)};
_.tR(_.vQ,_.Ya);_.vQ.prototype.subscribe=function(x,G,D){return this.isDisposed()?0:this.pubSub_.subscribe(x,G,D)};
_.vQ.prototype.unsubscribe=function(x,G,D){return this.isDisposed()?!1:this.pubSub_.unsubscribe(x,G,D)};
_.vQ.prototype.unsubscribeByKey=function(x){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(x)};
_.vQ.prototype.publish=function(x,G){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var $$i=function(){_.$Z("ypcRedeemFlowStarted")},le=function(x){_.$Z("ypcRedeemFlowFailed",void 0,void 0,void 0,x)},Fij=function(x,G,D){G&&D&&(x.videos.forEach(function(K){K.videoId===G&&(K.itemId=D)}),x.recommendedVideos.forEach(function(K){K.videoId===G&&(K.itemId=D)}))};var CBf;var IpT;/*

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
*/
_.BD({_template:function(){if(IpT!==void 0)return IpT;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;CBf===void 0&&(CBf=document.createElement("template"));var K=CBf;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return IpT=x},
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(x,G){var D=this._resolveSrc(x);D!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",x===""||G?this._setLoading(!1):(this._resolvedSrc=D,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 x=this.$.sizedImgDiv.style,G=this.$.placeholder.style;x.backgroundSize=G.backgroundSize=this.sizing;x.backgroundPosition=G.backgroundPosition=this.sizing?this.position:"";x.backgroundRepeat=G.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(x){x=_.GR(x,this.$.baseURIAnchor.href);x.length>=2&&x[0]==="/"&&x[1]!=="/"&&(x=(location.origin||location.protocol+"//"+location.host)+x);return x}});var jgO;var ORx;_.BD({_template:function(){if(ORx!==void 0)return ORx;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;jgO===void 0&&(jgO=document.createElement("template"));var K=jgO;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return ORx=x},
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(x){return x?"false":"true"},
_headingChanged:function(x){var G=this.getAttribute("heading"),D=this.getAttribute("aria-label");typeof D==="string"&&D!==G||this.setAttribute("aria-label",x)},
_computeHeadingClass:function(x){return x?" over-image":""},
_computeAnimated:function(x){return x}});var X9x=new _.J("addRendererToItemSectionAction");var AlY;var cM=function(){return _.n.apply(this,arguments)||this};
_.m(cM,_.n);cM.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],cM.prototype,"rendererBehavior",void 0);_.q([_.I(_.CS),_.N("design:type",Object)],cM.prototype,"dismissibleItemBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],cM.prototype,"rendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],cM.prototype,"data",void 0);cM=_.q([_.d({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],cM);
_.w(cM,"ytd-comment-history-entry-renderer",function(){if(AlY!==void 0)return AlY;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return AlY=x},{mode:1});var U$x;_.HH("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.HH("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var TM=function(){return _.n.apply(this,arguments)||this};
_.m(TM,_.n);_.a=TM.prototype;_.a.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.a.onKeyUp=function(x){if(x.keyCode===13)this.onTap()};
_.a.onTap=function(){this.data.recordClickEndpoint&&_.Eo().resolve(_.hm).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var x=this.data.navigationEndpoint;x&&_.Y(x,_.sV)&&_.Eo().resolve(_.hm).resolveCommand(x,{form:{element:this.hostElement}})};
_.a.readChanged=function(){var x;_.E4(this.hostElement,"unread",!((x=this.data)==null?0:x.read))};
_.a.dataChanged=function(){this.data&&_.E4(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.a.computeThumbnailSize=function(){var x;return((x=this.data)==null?0:x.highPriorityNotification)?32:48};
_.a.getEndpointURL=function(x){return x&&!_.Y(x,_.sV)?this.componentBehavior.computeHref_(x):null};
_.a.getEndpointData=function(x){return x&&!_.Y(x,_.sV)?x:null};
TM.prototype.computeThumbnailSize=TM.prototype.computeThumbnailSize;TM.prototype.dataChanged=TM.prototype.dataChanged;TM.prototype.readChanged=TM.prototype.readChanged;TM.prototype.onKeyUp=TM.prototype.onKeyUp;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],TM.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],TM.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],TM.prototype,"componentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],TM.prototype,"data",void 0);_.q([_.R({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.N("design:type",Number)],TM.prototype,"thumbnailSize",void 0);_.q([_.oe("keyup"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],TM.prototype,"onKeyUp",null);
_.q([_.yf("data.read"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TM.prototype,"readChanged",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TM.prototype,"dataChanged",null);_.q([_.yf("data.highPriorityNotification"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TM.prototype,"computeThumbnailSize",null);
TM=_.q([_.d({is:"ytd-notification-renderer",disableElementRegistration:!0})],TM);
_.w(TM,"ytd-notification-renderer",function(){if(U$x!==void 0)return U$x;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return U$x=x},{mode:1});var Rjx;var WM=function(){return _.n.apply(this,arguments)||this};
_.m(WM,_.n);WM.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"}}}};
WM.prototype.computeActionButtonClass=function(x){return!x.actionButtons||x.actionButtons.length<=1?"single-button":x.description?"vertical-buttons":"horizontal-buttons"};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],WM.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],WM.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],WM.prototype,"data",void 0);WM=_.q([_.d({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],WM);
_.w(WM,"ytd-playlist-show-metadata-renderer",function(){if(Rjx!==void 0)return Rjx;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Rjx=x},{mode:1});var STb;_.HH("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var eg=function(){return _.n.apply(this,arguments)||this};
_.m(eg,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],eg.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],eg.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],eg.prototype,"data",void 0);eg=_.q([_.d({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],eg);
_.w(eg,"ytd-purchase-item-renderer",function(){if(STb!==void 0)return STb;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return STb=x},{mode:1});var nDj;var iRY={};iRY.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(x){if(x)return x.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(x){if(x==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.HH("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var ZV=function(){return _.n.apply(this,arguments)||this};
_.m(ZV,_.n);ZV.prototype.onYtNavigate=function(x){var G=this.openPopupBehavior.getNavigationEndpointPopupAction(x.detail.endpoint);G&&(x.stopPropagation(),this.openPopupBehavior.openPopup(G))};
ZV.prototype.onYtNavigate=ZV.prototype.onYtNavigate;_.q([_.I(iRY.YtSimpleTextSectionBehavior),_.N("design:type",Object)],ZV.prototype,"ytSimpleTextSectionBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],ZV.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.i9),_.N("design:type",Object)],ZV.prototype,"openPopupBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],ZV.prototype,"data",void 0);
_.q([_.oe("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],ZV.prototype,"onYtNavigate",null);ZV=_.q([_.d({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],ZV);
_.w(ZV,"ytd-simple-text-section-renderer",function(){if(nDj!==void 0)return nDj;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return nDj=x},{mode:1});var gDC;_.HH("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var MP=function(){return _.n.apply(this,arguments)||this};
_.m(MP,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],MP.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],MP.prototype,"data",void 0);MP=_.q([_.d({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],MP);
_.w(MP,"ytd-unlimited-page-feature-info-renderer",function(){if(gDC!==void 0)return gDC;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return gDC=x},{mode:1});var uRb;var d$f;var Qo=function(){return _.n.apply(this,arguments)||this};
_.m(Qo,_.n);Qo.prototype.dataChanged=function(){if(this.data){var x=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);x&&(x=_.k$(x,screen.width),this.hostElement.style.backgroundImage="url("+x+")")}};
Qo.prototype.dataChanged=Qo.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Qo.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Qo.prototype,"data",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qo.prototype,"dataChanged",null);Qo=_.q([_.d({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],Qo);
_.w(Qo,"ytd-post-redemption-section-renderer",function(){if(d$f!==void 0)return d$f;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return d$f=x},{mode:1});var w9j;var pp=function(){return _.n.apply(this,arguments)||this};
_.m(pp,_.n);pp.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],pp.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],pp.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],pp.prototype,"data",void 0);pp=_.q([_.d({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],pp);
_.w(pp,"ytd-ypc-post-redemption-renderer",function(){if(w9j!==void 0)return w9j;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return w9j=x},{mode:1});_.HH("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var Vo=function(){var x=_.n.apply(this,arguments)||this;x.MIN_CODE_LENGTH=12;x.MAX_CODE_LENGTH=24;return x};
_.m(Vo,_.n);_.a=Vo.prototype;_.a.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.a.created=function(){this.riskService=new _.REQ;this.loadPaymentThenable=_.nkn(_.Am("YPC_MB_URL"))};
_.a.ready=function(){var x=this;this.code.addEventListener("keypress",function(G){x.onCodeInputKeypress(G)})};
_.a.dataChanged=function(){var x=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(G){G=_.l(G);for(var D=G.next();!D.done;D=G.next())D=D.value,D.type==="attributes"&&D.attributeName==="dark"&&x.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.a.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var x=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+x+")")}};
_.a.computeRedeemButton=function(x){(x=this.get("redeemButton.buttonRenderer",x))&&(x=Object.assign({},x,{serviceEndpoint:void 0}));return x};
_.a.onRedeemButtonTap=function(x){x.stopPropagation();$$i();this.redeemCode()};
_.a.redeemCode=function(){var x=this;this.isLoading=!0;var G=this.riskService.init();_.Zz([G,this.loadPaymentThenable]).then(function(){var D=x.data.redeemButton.buttonRenderer.serviceEndpoint,K=_.SzP(),z=payments.business.integration.ClientTokenFactory.createClientToken(_.Y(D,_.FPs).countryCode,K);K={c:x.code.value.trim(),rd:window.btoa(K),ctk:z};D&&_.Eo().resolve(_.hm).resolveCommand(D,{form:Object.assign({},K,{element:x.hostElement})})},function(){x.showGenericError();
le("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.RE(Error("Rl"))})};
_.a.onYtServiceRequestCompleted=function(x){x.stopPropagation();this.isLoading=!1;var G,D;this.errorMessage=(G=x.detail)==null?void 0:(D=G.data)==null?void 0:D.errorMessage;var K,z;this.postRedemptionRenderer=(K=x.detail)==null?void 0:(z=K.data)==null?void 0:z.renderer;var y,c;if(x=(y=x.detail)==null?void 0:(c=y.data)==null?void 0:c.redirectEndpoint)this.isLoading=!0,_.h$(this.hostElement,"yt-navigate",{endpoint:x});this.errorMessage?le("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
x)&&_.$Z("ypcRedeemFlowSucceeded")};
_.a.onYtServiceRequestError=function(x){x.stopPropagation();this.isLoading=!1;if(x=this.get("detail.error.message",x))this.errorMessage=_.gK(x);le("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.a.onInvokeInstrumentManagerActionCompleted=function(x){x.stopPropagation();this.redeemCode()};
_.a.onInvokeInstrumentManagerActionError=function(x){x.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",x)){case "instrumentManagerLoadError":this.showGenericError();le("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();le("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.$Z("ypcRedeemFlowCancelled")}};
_.a.onInput=function(){var x=this;_.Ao(this,"onInput",function(){var G=x.code.value.trim();x.redeemButtonDisabled=G.length<x.MIN_CODE_LENGTH||G.length>x.MAX_CODE_LENGTH},200)};
_.a.onCodeInputKeypress=function(x){x.keyCode!==13||this.redeemButtonDisabled||this.isLoading||($$i(),this.redeemCode())};
_.a.computeImageUrl=function(x){return x?_.k$(x.thumbnails,600):null};
_.a.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
Vo.prototype.onInvokeInstrumentManagerActionError=Vo.prototype.onInvokeInstrumentManagerActionError;Vo.prototype.onInvokeInstrumentManagerActionCompleted=Vo.prototype.onInvokeInstrumentManagerActionCompleted;Vo.prototype.onYtServiceRequestError=Vo.prototype.onYtServiceRequestError;Vo.prototype.onYtServiceRequestCompleted=Vo.prototype.onYtServiceRequestCompleted;Vo.prototype.dataChanged=Vo.prototype.dataChanged;
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Vo.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Vo.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Vo.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],Vo.prototype,"isLoading",void 0);_.q([_.R(),_.N("design:type",Boolean)],Vo.prototype,"redeemButtonDisabled",void 0);
_.q([_.R(),_.N("design:type",Object)],Vo.prototype,"errorMessage",void 0);_.q([_.R(),_.N("design:type",Object)],Vo.prototype,"postRedemptionRenderer",void 0);_.q([_.R(),_.N("design:type",Object)],Vo.prototype,"observer",void 0);_.q([_.cD("#code"),_.N("design:type",HTMLInputElement)],Vo.prototype,"code",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vo.prototype,"dataChanged",null);
_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Vo.prototype,"onYtServiceRequestCompleted",null);_.q([_.oe("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Vo.prototype,"onYtServiceRequestError",null);
_.q([_.oe("yt-invoke-instrument-manager-action-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Vo.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.q([_.oe("yt-invoke-instrument-manager-action-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Vo.prototype,"onInvokeInstrumentManagerActionError",null);Vo=_.q([_.d({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],Vo);
_.w(Vo,"ytd-redeem-code-renderer",function(){if(uRb!==void 0)return uRb;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return uRb=x},{mode:1});var qTf;_.HH("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var be=function(){var x=_.n.apply(this,arguments)||this;x.businessEmailDisplayState="HIDE_SECTION";return x};
_.m(be,_.n);_.a=be.prototype;_.a.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}}}}}};
_.a.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"};
_.a.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.a.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Uf("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.a.onYtServiceRequestCompleted=function(x){var G;if((G=x.detail.data)==null?0:G.businessEmail)this.businessEmail=x.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var D;if((D=x.detail.data)==null?0:D.errorMessage)this.businessEmailErrorMessage=x.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.a.computeEmailHref=function(x){return"mailto:"+x};
_.a.computeSafeUrl=function(x){if(x)return _.V$(x)};
_.a.onBusinessEmailCaptchaSubmit=function(){var x;(x=this.data)!=null&&x.onBusinessEmailRevealClickCommand&&(x=this.JSC$19076_captchaTextarea.value)&&(x={recaptcha_response_token:x,channel_id:this.data.channelId},_.Eo().resolve(_.hm).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},x,{element:this.hostElement})}))};
_.a.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Nq.Object.defineProperties(be.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 x,G;return!((x=this.data)==null||!x.primaryLinks)&&!((G=this.data)==null?0:G.links)&&this.data.primaryLinks.every(function(D){return D.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var x,G;return!((x=this.data)==null||!x.primaryLinks)&&!((G=this.data)==null?0:G.links)&&!this.shouldShowNewLinks}}});
be.prototype.onYtServiceRequestCompleted=be.prototype.onYtServiceRequestCompleted;be.prototype.dataChanged=be.prototype.dataChanged;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],be.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],be.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],be.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.cD("#g-recaptcha-response"),_.N("design:type",HTMLTextAreaElement)],be.prototype,"JSC$19076_captchaTextarea",void 0);_.q([_.R(),_.N("design:type",Object)],be.prototype,"data",void 0);_.q([_.R(),_.N("design:type",String)],be.prototype,"businessEmailDisplayState",void 0);_.q([_.R(),_.N("design:type",String)],be.prototype,"businessEmail",void 0);_.q([_.R(),_.N("design:type",String)],be.prototype,"businessEmailErrorMessage",void 0);
_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],be.prototype,"hideDetailsSection",null);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],be.prototype,"dataChanged",null);_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],be.prototype,"shouldShowNewLinks",null);_.q([_.U("data","shouldShowLinks"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],be.prototype,"shouldShowLegacyLinks",null);
_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],be.prototype,"onYtServiceRequestCompleted",null);be=_.q([_.d({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],be);
_.w(be,"ytd-channel-about-metadata-renderer",function(){if(qTf!==void 0)return qTf;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return qTf=x},{mode:1});var NDf;_.HH("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var Lp=function(){return _.n.apply(this,arguments)||this};
_.m(Lp,_.n);Lp.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"}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Lp.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Lp.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Lp.prototype,"data",void 0);Lp=_.q([_.d({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],Lp);
_.w(Lp,"ytd-channel-featured-content-renderer",function(){if(NDf!==void 0)return NDf;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return NDf=x},{mode:1});var vDc;_.HH("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var BM=function(){var x=_.n.apply(this,arguments)||this;x.roundContainer=!0;x.amsterdamEnabled=_.B("enable_desktop_amsterdam_info_panels");return x};
_.m(BM,_.n);_.a=BM.prototype;_.a.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.a.dataChanged=function(){this.imageWidth=this.imageHeight=24;var x=this.data;x.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!x.style&&x.image&&x.image.thumbnails.length&&(x=x.image.thumbnails[0],this.imageWidth=x.width||0,this.imageHeight=x.height||0)};
_.a.computeSource=function(x){return x.secondarySource?_.u7(x.secondarySource):_.u7(x.source)};
_.a.computeClarifyStyle=function(x){return x?x.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.a.isLargeStyle=function(x){return x==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.a.computeBackgroundStyle=function(x){return x?x.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.a.computeHasActionButton=function(x){return!!x.actionButton};
_.a.computeHasBottomSection=function(x){return!!x.ctaHasBottomSection};
_.a.computeIsSourceMissing=function(x){return x.ctaHasBottomSection===!1?!0:x&&this.computeSource(x)?!1:!0};
_.a.computeSecondaryEndpoint=function(x){return x.secondaryEndpoint||x.endpoint};
BM.prototype.dataChanged=BM.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],BM.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],BM.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],BM.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Number)],BM.prototype,"imageWidth",void 0);_.q([_.R(),_.N("design:type",Number)],BM.prototype,"imageHeight",void 0);
_.q([_.R({computed:"computeSecondaryEndpoint(data)"}),_.N("design:type",Object)],BM.prototype,"secondaryEndpoint",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.N("design:type",Boolean)],BM.prototype,"hasActionButton",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.N("design:type",Boolean)],BM.prototype,"hasBottomSection",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.N("design:type",Boolean)],BM.prototype,"missingSource",void 0);_.q([_.R({computed:"computeIcon_(data.icon)"}),_.N("design:type",String)],BM.prototype,"icon",void 0);_.q([_.R({computed:"computeIcon_(data.secondaryIcon)"}),_.N("design:type",String)],BM.prototype,"secondaryIcon",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.N("design:type",String)],BM.prototype,"clarifyStyle",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.N("design:type",String)],BM.prototype,"backgroundStyle",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],BM.prototype,"roundContainer",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],BM.prototype,"amsterdamEnabled",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BM.prototype,"dataChanged",null);
BM=_.q([_.d({is:"ytd-clarification-renderer",disableElementRegistration:!0})],BM);
_.w(BM,"ytd-clarification-renderer",function(){if(vDc!==void 0)return vDc;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return vDc=x},{mode:1});var JlT;var fp6;var rI=function(){var x=_.n.apply(this,arguments)||this;x.amsterdamEnabled=_.B("enable_desktop_amsterdam_info_panels");return x};
_.m(rI,_.n);_.a=rI.prototype;_.a.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.a.computeIcon=function(x){return x?"yt-icons:"+x.toLowerCase():null};
_.a.computeUseContacts=function(x){return!!x.contacts&&x.contacts.length>0};
_.a.computePhoneContact=function(x){var G,D;return(G=x.contacts)==null?void 0:(D=G.find(function(K){var z;return(K==null?void 0:(z=K.icon)==null?void 0:z.iconType)==="PHONE"}))==null?void 0:D.actionText};
_.a.computeSmsContact=function(x){var G,D;return(G=x.contacts)==null?void 0:(D=G.find(function(K){var z;return(K==null?void 0:(z=K.icon)==null?void 0:z.iconType)==="SMS"}))==null?void 0:D.actionText};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],rI.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],rI.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],rI.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],rI.prototype,"amsterdamEnabled",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.N("design:type",Boolean)],rI.prototype,"useContacts",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.N("design:type",String)],rI.prototype,"phoneContact",void 0);rI=_.q([_.d({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],rI);
_.w(rI,"ytd-single-action-emergency-support-renderer",function(){if(fp6!==void 0)return fp6;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return fp6=x},{mode:1});_.HH("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var s1=function(){var x=_.n.apply(this,arguments)||this;x.roundedContainer=!0;x.amsterdamEnabled=_.B("enable_desktop_amsterdam_info_panels");return x};
_.m(s1,_.n);s1.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"}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],s1.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],s1.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],s1.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],s1.prototype,"roundedContainer",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],s1.prototype,"amsterdamEnabled",void 0);
s1=_.q([_.d({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],s1);
_.w(s1,"ytd-emergency-onebox-renderer",function(){if(JlT!==void 0)return JlT;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return JlT=x},{mode:1});var ttc;_.HH("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var YI=function(){return _.n.apply(this,arguments)||this};
_.m(YI,_.n);YI.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"}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],YI.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],YI.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],YI.prototype,"data",void 0);YI=_.q([_.d({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],YI);
_.w(YI,"ytd-exploratory-results-renderer",function(){if(ttc!==void 0)return ttc;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return ttc=x},{mode:1});var k_6;_.HH("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var mC=function(){var x=_.n.apply(this,arguments)||this;x.messageData=null;return x};
_.m(mC,_.n);_.a=mC.prototype;_.a.onServiceRequestCompleted=function(x,G){x=G.actions||[];G=0;for(var D=x.length;G<D;G++){var K=x[G],z=void 0,y=void 0;if((z=_.Y(K,_.Zi))==null?0:(y=z.item)==null?0:y.messageRenderer)this.messageData=_.Y(K,_.Zi).item.messageRenderer}};
_.a.dataChanged=function(){var x=this.data;this.hostElement.hidden=!1;_.E4(this.hostElement,"is-channel",x&&!x.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.a.computeThumbnailWidth=function(x){return x?126:56};
_.a.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.a.onSubmitTap=function(){var x=this.data,G=this.selectedResponseIndex;x!==void 0&&G!==void 0&&(x=x.responses[G],x.responseData&&_.Eo().resolve(_.hm).resolveCommand(x.responseData,{form:{element:this.hostElement}}))};
_.a.onDismissTap=function(){this.hostElement.hidden=!0;var x=this.data;x!==void 0&&x.dismissalEndpoint&&_.Eo().resolve(_.hm).resolveCommand(x.dismissalEndpoint,{form:{element:this.hostElement}})};
_.a.updateSelectedResponseIndexFromBinding=function(x){this.selectedResponseIndex=x.detail.value};
mC.prototype.onSelectedResponseIndexChange=mC.prototype.onSelectedResponseIndexChange;mC.prototype.dataChanged=mC.prototype.dataChanged;mC.prototype.onServiceRequestCompleted=mC.prototype.onServiceRequestCompleted;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],mC.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],mC.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],mC.prototype,"messageData",void 0);
_.q([_.R(),_.N("design:type",Number)],mC.prototype,"selectedResponseIndex",void 0);_.q([_.cD("#submit-button"),_.N("design:type",HTMLButtonElement)],mC.prototype,"submitButton",void 0);_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.gG]),_.N("design:returntype")],mC.prototype,"onServiceRequestCompleted",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mC.prototype,"dataChanged",null);
_.q([_.yf("selectedResponseIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mC.prototype,"onSelectedResponseIndexChange",null);mC=_.q([_.d({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],mC);
_.w(mC,"ytd-feedback-elicitation-single-question-renderer",function(){if(k_6!==void 0)return k_6;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return k_6=x},{mode:1});var PBf;var HM=function(){return _.n.apply(this,arguments)||this};
_.m(HM,_.n);HM.prototype.computeThumbnailWidth=function(x){return x?602:428};
HM.prototype.updateWideFromBinding=function(x){this.wide=x.detail.value};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],HM.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],HM.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Boolean)],HM.prototype,"wide",void 0);HM=_.q([_.d({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],HM);
_.w(HM,"ytd-newspaper-hero-video-renderer",function(){if(PBf!==void 0)return PBf;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return PBf=x},{mode:1});var EDj;var $I=function(){return _.n.apply(this,arguments)||this};
_.m($I,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],$I.prototype,"rendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],$I.prototype,"data",void 0);$I=_.q([_.d({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],$I);
_.w($I,"ytd-newspaper-mini-video-renderer",function(){if(EDj!==void 0)return EDj;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return EDj=x},{mode:1});var hjf;_.HH("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var FM=function(){return _.n.apply(this,arguments)||this};
_.m(FM,_.n);FM.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"}}}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],FM.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],FM.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],FM.prototype,"data",void 0);FM=_.q([_.d({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],FM);
_.w(FM,"ytd-newspaper-renderer",function(){if(hjf!==void 0)return hjf;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return hjf=x},{mode:1});var x38;_.HH("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var Cp=function(){var x=_.n.apply(this,arguments)||this;x.isSegment=!1;x.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};x.nextContinuation={continuationType:"playlistVideoListContinuation"};return x};
_.m(Cp,_.n);_.a=Cp.prototype;_.a.attached=function(){_.Eo();var x;(x=_.Eo().resolve(_.P6(_.go)))!=null&&(x.playlistVideoListElement=this.hostElement)};
_.a.detached=function(){var x;(x=_.Eo().resolve(_.P6(_.go)))!=null&&(x.playlistVideoListElement=void 0);x=_.Eo().resolve(_.P6(_.tF));_.B("web_enable_voting_animation")&&x&&(x.parentElem=void 0,x.videos=[],x.continuationsPresent=!1,x.showRefreshPill=!1)};
_.a.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"}}}}}};
_.a.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.a.dataChanged=function(){var x=_.Eo().resolve(_.P6(_.tF));if(_.B("web_enable_voting_animation")&&this.data&&x){var G=_.kA(this.hostElement).querySelector("#contents");G&&(x.parentElem=G);x.addVideos(this.data.contents)}_.PTq(this.ytReorderableBehavior)};
_.a.onRendererstamperFinished=function(){this.canReorder&&_.E3u(this.ytReorderableBehavior,_.kA(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.a.onPlaylistReloading=function(){this.isReloading=!0};
_.a.onUpdateSetVideoId=function(x){if(x.detail&&this.data&&this.data.contents){var G=x.detail;x=this.data.contents.findIndex(function(z){var y;return((y=z.playlistVideoRenderer)==null?void 0:y.videoId)===G.videoId});
if(!(x<0)&&G.setVideoId&&(this.set("data.contents."+x+".playlistVideoRenderer.setVideoId",G.setVideoId),_.B("web_enable_voting_animation"))){var D;if(x=_.Y((D=this.data.contents[x].playlistVideoRenderer)==null?void 0:D.engagementBar,_.okC)){var K;(K=x.actions)==null||K.forEach(function(z){if(z=_.Y(z,_.y5$))z.itemId=G.setVideoId})}(D=_.Eo().resolve(_.P6(_.tF)))&&Fij(D,G.videoId,G.setVideoId)}}};
_.a.computeContentsClass=function(x){return x?"reloading":""};
_.a.computeIsSortable=function(x,G){return x&&G>0&&!this.isSegment&&!_.B("shorts_in_playlists_web")};
_.a.computeIsEditable=function(x){return x};
_.a.computeCanReorder=function(x){return x};
_.a.handlePlaylistRemoveVideosAction=function(x){if(this.get("playlistRemoveVideosAction.setVideoIds",x)&&this.data&&this.data.contents){x=_.Y(x,_.n1s).setVideoIds;for(var G=this.data.contents.length-1;G>=0;){var D=this.data.contents[G].playlistVideoRenderer;D&&D.setVideoId&&x.includes(D.setVideoId)&&this.splice("data.contents",G,1);G--}_.xO(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.a.updateIndices=function(){if(this.data&&this.data.contents)for(var x=0;x<this.data.contents.length;x++)this.set("data.contents."+x+".playlistVideoRenderer.index",_.gK(String(x+1)))};
_.a.handleDrop=function(x){x=x.currDragItem;var G=_.uO(x.parentNode.childNodes,x),D=this.data.contents.splice(Number(_.u7(x.data.index))-1,1)[0];this.data.contents.splice(G,0,D);G=G?this.get("contents."+(G-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();x=this.buildReorderServiceEndpoint(x.data.setVideoId,G);this.ytComponentBehavior.resolveCommand(x)};
_.a.buildReorderServiceEndpoint=function(x,G){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",x),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",G),this.data.onReorderEndpoint):null};
_.a.handleUpdatePlaylistAction=function(x){var G;(x=_.Y((G=_.Y(x,_.i6i))==null?void 0:G.updatedRenderer,_.DlZ))&&this.canReorder!==x.canReorder&&this.set("data.canReorder",x.canReorder);x&&x.contents&&(this.set("data.contents",x.contents),this.isReloading=!1);x&&x.continuations&&this.set("data.continuations",x.continuations)};
_.a.handleAddRendererToItemSectionAction=function(x){var G,D=(G=_.Y(x,X9x))==null?void 0:G.renderer,K;D&&((K=_.Y(x,X9x))==null?void 0:K.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,D),x=_.Eo().resolve(_.P6(_.tF)),_.B("web_enable_voting_animation")&&x&&(D&&(G=_.a$L(D))&&x.recommendedVideos.push({itemId:G,videoId:_.l$f(D),voteCount:_.c5L(D),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.a.isVotingEnabledOnPlaylist=function(x){if(!x)return!1;x=_.l(x);for(x=x.next();!x.done;x=x.next()){var G=void 0;return!!_.Y((G=x.value.playlistVideoRenderer)==null?void 0:G.engagementBar,_.okC)}return!1};
_.a.onAppendContinuationItemsActionFinished=function(){var x;this.isVotingEnabledOnPlaylist((x=this.data)==null?void 0:x.contents)&&(this.updateIndices(),x=_.Eo().resolve(_.P6(_.tF)),_.B("web_enable_voting_animation")&&x&&this.data&&x.addVideos(this.data.contents))};
_.a.updateVideoData=function(x){if(x.detail&&this.data&&this.data.contents){var G=x.detail;x=G.toIdx;var D=G.itemId,K=G.newVoteCount,z=G.voteStatus;G=G.hideItem;var y,c,W=(y=this.data)==null?void 0:(c=y.contents)==null?void 0:c.findIndex(function(V){return _.a$L(V)===D});
if(!(W<0)){y=this.data.contents[W];var e;if((e=y.playlistVideoRenderer)==null?0:e.voteCount)y.playlistVideoRenderer.voteCount=K;var Q;if(e=_.Y((Q=y.playlistVideoRenderer)==null?void 0:Q.engagementBar,_.okC)){var p;(p=e.actions)==null||p.forEach(function(V){(V=_.Y(V,_.y5$))&&V.initialState&&(V.initialState.votes=K,V.initialState.status=z)})}this.data.contents.splice(W,1);
G||this.data.contents.splice(x,0,y);this.updateIndices()}}};
Cp.prototype.updateVideoData=Cp.prototype.updateVideoData;Cp.prototype.onAppendContinuationItemsActionFinished=Cp.prototype.onAppendContinuationItemsActionFinished;Cp.prototype.onUpdateSetVideoId=Cp.prototype.onUpdateSetVideoId;Cp.prototype.onPlaylistReloading=Cp.prototype.onPlaylistReloading;Cp.prototype.onRendererstamperFinished=Cp.prototype.onRendererstamperFinished;Cp.prototype.dataChanged=Cp.prototype.dataChanged;
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Cp.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Cp.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],Cp.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.Xr.YtNextContinuationBehavior),_.N("design:type",Object)],Cp.prototype,"ytNextContinuationBehavior",void 0);
_.q([_.I(_.hW7),_.N("design:type",Object)],Cp.prototype,"ytReorderableBehavior",void 0);_.q([_.I(_.Oh),_.N("design:type",Object)],Cp.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Cp.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Cp.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Boolean)],Cp.prototype,"isReloading",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Cp.prototype,"isSegment",void 0);_.q([_.R({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.N("design:type",Boolean)],Cp.prototype,"isSortable",void 0);_.q([_.R({computed:"computeIsEditable(data.isEditable)"}),_.N("design:type",Boolean)],Cp.prototype,"isEditable",void 0);_.q([_.R({computed:"computeCanReorder(data.canReorder)"}),_.N("design:type",Boolean)],Cp.prototype,"canReorder",void 0);
_.q([_.R({value:101}),_.N("design:type",Number)],Cp.prototype,"scrollMargin",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Cp.prototype,"dataChanged",null);_.q([_.oe("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Cp.prototype,"onRendererstamperFinished",null);
_.q([_.oe("yt-playlist-reloading"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Cp.prototype,"onPlaylistReloading",null);_.q([_.oe("yt-update-set-video-id"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Cp.prototype,"onUpdateSetVideoId",null);
_.q([_.oe("yt-append-continuation-items-action-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Cp.prototype,"onAppendContinuationItemsActionFinished",null);_.q([_.oe("yt-update-video-data-voting-animation"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Cp.prototype,"updateVideoData",null);Cp=_.q([_.d({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],Cp);
_.w(Cp,"ytd-playlist-video-list-renderer",function(){if(x38!==void 0)return x38;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return x38=x},{mode:_.Ge("kevlar_poly_si_batch_j047")?1:2});var GB8;var Iw=function(){return _.n.apply(this,arguments)||this};
_.m(Iw,_.n);Iw.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"}}}}};
Iw.prototype.onTextWrapperTap=function(x){var G=this.data&&this.data.navigationEndpoint;G&&!_.u_(_.gA(x),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.h$(this.hostElement,"yt-navigate",{endpoint:G})};
Iw.prototype.dataChanged=function(){var x=this.get("data.offerButton.buttonRenderer.serviceEndpoint");x&&x.commandMetadata&&_.Y(x.commandMetadata,_.LB)&&_.Y(x.commandMetadata,_.LB).fireAutomatically&&_.Eo().resolve(_.hm).resolveCommand(x,{form:{element:this.hostElement}})};
Iw.prototype.dataChanged=Iw.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Iw.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Iw.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.RG),_.N("design:type",Object)],Iw.prototype,"ytdLockupBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Iw.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,value:function(){return _.B("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],Iw.prototype,"useBiggerThumbs",void 0);_.q([_.R({reflectToAttribute:!0,value:function(){return _.Db("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],Iw.prototype,"biggerThumbsStyle",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],Iw.prototype,"leftAligned",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Iw.prototype,"dataChanged",null);Iw=_.q([_.d({disableElementRegistration:!0,is:"ytd-movie-renderer"})],Iw);
_.w(Iw,"ytd-movie-renderer",function(){if(GB8!==void 0)return GB8;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return GB8=x},{mode:1});var D3c;var jg=function(){var x=_.n.apply(this,arguments)||this;x.rounded=!0;x.pageAttachedTo=void 0;x.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return x};
_.m(jg,_.n);jg.prototype.attached=function(){this.pageAttachedTo=_.Eo().resolve(_.wG).getCurrentPage();_.h$(this.hostElement,"yt-player-attached",this.player)};
jg.prototype.detached=function(){var x;if((x=this.pageAttachedTo)==null?0:x.hostElement)_.h$(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
jg.prototype.dataChanged=function(){var x;if((x=this.data)==null?0:x.videoId)x={video_id:this.data.videoId,autoplay:!0},!_.B("miniplayer_stop_channel_video_autoplay_killswitch")&&_.Eo().resolve(_.O$).isMiniplayerActive()&&(x.pause_at_start=!0,x.autoplay=!1),this.player.loadVideoWithPlayerVars(x)};
jg.prototype.handleSignalActionPausePlayer=function(){_.vH().pause()};
jg.prototype.dataChanged=jg.prototype.dataChanged;_.q([_.R(),_.N("design:type",Object)],jg.prototype,"data",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],jg.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],jg.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],jg.prototype,"rounded",void 0);_.q([_.cD("#player"),_.N("design:type",Object)],jg.prototype,"player",void 0);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jg.prototype,"dataChanged",null);jg=_.q([_.d({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],jg);
_.w(jg,"ytd-channel-video-player-renderer",function(){if(D3c!==void 0)return D3c;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return D3c=x},{mode:1});var Kk6;var zOc;var aTi;var O1=function(){var x=_.n.apply(this,arguments)||this;x.playing=!1;x.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.Do(x);x.active=!1;return x};
_.m(O1,_.n);_.a=O1.prototype;_.a.detached=function(){this.stop()};
_.a.play=function(){var x=this,G,D,K,z,y;return _.T(function(c){if(c.nextAddress==1)return x.active=!0,G=x.get("data.inlinePlaybackEndpoint.watchEndpoint"),D=G.videoId||x.data.videoId,K=G.startTimeSeconds||0,z=G.playerParams||null,_.B("kevlar_player_update_killswitch")?_.Z(c,x.playerEl.update({args:{video_id:D,startSeconds:K,player_params:z}}),2):(x.playerEl.loadVideoWithPlayerVars({video_id:D,startSeconds:K,player_params:z,autoplay:!0}),c.jumpTo(2));if(c.nextAddress!=4)return _.Z(c,x.playerEl.getPlayerPromise(),
4);y=c.yieldResult;y.unloadModule("annotations_module");y.addEventListener("onStateChange",function(W){x.onPlayerStateChange(W)});
_.c5(c)})};
_.a.onPlayerStateChange=function(x){if(this.active)switch(this.playing=x===1,x){case 1:_.h$(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.h$(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.a.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.a.resize=function(){var x=this,G;return _.T(function(D){if(D.nextAddress==1)return _.Z(D,x.playerEl.getPlayerPromise(),2);G=D.yieldResult;G.setSize(NaN,NaN);_.c5(D)})};
_.q([_.R(),_.N("design:type",Object)],O1.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],O1.prototype,"playing",void 0);_.q([_.R(),_.N("design:type",Object)],O1.prototype,"playerId",void 0);_.q([_.cD("#player"),_.N("design:type",Object)],O1.prototype,"playerEl",void 0);O1=_.q([_.d({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],O1);
_.w(O1,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(aTi!==void 0)return aTi;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return aTi=x},{mode:1});var oz4;var yBj;var XM=function(){var x=_.n.apply(this,arguments)||this;x.width=0;return x};
_.m(XM,_.n);_.a=XM.prototype;_.a.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.ae(this,this.onEnded));this.mp4El.addEventListener("error",_.ae(this,this.onError))};
_.a.detached=function(){this.videoEl.removeEventListener("ended",_.ae(this,this.onEnded));this.mp4El.removeEventListener("error",_.ae(this,this.onError))};
_.a.play=function(){var x=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var G=this.videoEl.play();G?G.then(function(){x.handleVideoStartPlaying()}).catch(function(){_.h$(x.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.h$(this.hostElement,"yt-video-thumbnail-not-playing")};
_.a.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.a.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.a.dataChanged=function(){var x;if((x=this.data)==null?0:x.thumbnailPlaceholder)x=_.k$(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+x+")";this.stop();this.autoplay&&this.play()};
_.a.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.a.onEnded=function(){this.stop();_.h$(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.a.onError=function(){_.h$(this.hostElement,"yt-video-thumbnail-error")};
_.a.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.a.getVideoThumbnail=function(x){if(x&&x.length)return x[0]};
XM.prototype.dataChanged=XM.prototype.dataChanged;_.q([_.R(),_.N("design:type",Object)],XM.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],XM.prototype,"animatePlaceholderOnEntrance",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],XM.prototype,"autoplay",void 0);_.q([_.R({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.N("design:type",Object)],XM.prototype,"videoThumbnail",void 0);
_.q([_.R(),_.N("design:type",Boolean)],XM.prototype,"loop",void 0);_.q([_.R(),_.N("design:type",Boolean)],XM.prototype,"isVideoPlaying",void 0);_.q([_.R(),_.N("design:type",Object)],XM.prototype,"width",void 0);_.q([_.cD("#mp4"),_.N("design:type",HTMLElement)],XM.prototype,"mp4El",void 0);_.q([_.cD("#placeholder"),_.N("design:type",HTMLElement)],XM.prototype,"placeholderEl",void 0);_.q([_.cD("#video"),_.N("design:type",HTMLVideoElement)],XM.prototype,"videoEl",void 0);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],XM.prototype,"dataChanged",null);XM=_.q([_.HD({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],XM);
_.w(XM,"yt-video-as-thumbnail-details",function(){if(yBj===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;oz4===void 0&&(oz4=document.createElement("template"));var K=oz4;D.call(G,K.content.cloneNode(!0),x.content.firstChild);yBj=x}x=yBj;return x},{mode:2});var A0=function(){var x=_.n.apply(this,arguments)||this;x.disableGridStateAware=!1;x.animationEnabled=_.B("enable_web_ketchup_hero_animation");x.transitioningOut=!1;x.narrow=!1;x.narrower=!1;x.isCarouselInFeed=!1;x.videoTimeoutJobId=0;x.panelTimeoutJobId=0;x.panelTimeoutJobStartMs=0;x.actionMap={"yt-window-resized":"onWindowResized"};return x};
_.m(A0,_.n);_.a=A0.prototype;_.a.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.a.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.a.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var x;this.player&&((x=this.data)==null?0:x.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.a.attached=function(){this.onWindowResized()};
_.a.detached=function(){this.clearTimeouts()};
_.a.onWindowResized=function(){this.updateSize()};
_.a.computePanelLayout=function(x){return x&&x.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.a.playVideo=function(){var x;this.video&&((x=this.data)==null?0:x.videoThumbnail)&&this.video.play();var G;this.player&&((G=this.data)==null?0:G.inlinePlaybackRenderer)&&this.player.play()};
_.a.stopVideo=function(){var x;this.video&&((x=this.data)==null?0:x.videoThumbnail)&&this.video.stop();var G;this.player&&((G=this.data)==null?0:G.inlinePlaybackRenderer)&&this.player.stop()};
_.a.transitionOut=function(){var x=this;this.transitioningOut=!0;return new Promise(function(G){var D=function(){_.kA(x.hostElement).querySelector("#action-button").removeEventListener("animationend",D);_.Fj.cancelJob(K);G();x.transitioningOut=!1};
var K=_.Bw(_.Fj,D,1E3);_.kA(x.hostElement).querySelector("#action-button").addEventListener("animationend",D);x.player&&(x.player.playing=!1)})};
_.a.computeMetadataOrder=function(x){return x&&x.metadataOrder&&x.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?x.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.a.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.a.computeAvatarSize=function(x){return x&&x.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.a.onContentClick=function(x){if(!_.u_(_.gA(x),this.hostElement,["A".toString(),"BUTTON".toString()])){var G;if((G=this.data)==null?0:G.navigationEndpoint){var D;this.componentBehavior.resolveCommand((D=this.data)==null?void 0:D.navigationEndpoint)}}};
_.a.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.a.setBackgroundImage=function(x){if(x=this.getBackgroundImageUrl(x))_.kA(this.hostElement).querySelector("#hero").style.backgroundImage="url("+x+")"};
_.a.setScrimLayer=function(x){var G=this.getScrimLayerColorStops(x);x=((x==null?void 0:x.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(x=180);_.Am("HTML_DIR")==="rtl"&&(x=-x);G&&(_.kA(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+x+"deg, "+G+")")};
_.a.isNarrower=function(){return this.hostElement.clientWidth<A0.NARROW_VERSION_SIZE};
_.a.getScrimLayerColorStops=function(){var x,G=(x=this.data)==null?void 0:x.scrimColorValues;if(!G)return null;if(G.length===1)return x=_.jT(G[0]),x+" 0%, "+x+" 100%";if(G.length===3){var D=[0,72,98];return G.map(function(K,z){return _.jT(K)+" "+D[z]+"%"}).join(",")}return null};
_.a.getBackgroundImageUrl=function(x){return x&&x.largeFormFactorBackgroundThumbnail?_.k$((x.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||x.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.a.onPlaying=function(){this.startVideoTimeout()};
_.a.onEnded=function(){this.rotate()};
_.a.startPanelTimeout=function(){var x=this;if(!this.panelTimeoutJobId){var G=this.get("data.minPanelDisplayDurationMs");G&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.Bw(_.Fj,function(){x.rotate()},G))}};
_.a.startVideoTimeout=function(){var x=this;if(!this.videoTimeoutJobId){_.Fj.cancelJob(this.panelTimeoutJobId);var G=Date.now()-this.panelTimeoutJobStartMs;G=Math.max(0,this.get("data.minPanelDisplayDurationMs")-G);G=Math.max(this.get("data.minVideoPlayDurationMs")||0,G);this.videoTimeoutJobId=_.Bw(_.Fj,function(){x.rotate()},G)}};
_.a.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.Fj.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.Fj.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.a.rotate=function(){this.clearTimeouts();_.h$(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.Nq.Object.defineProperties(A0.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.kA(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.kA(this.hostElement).querySelector("#video")}}});
_.Nq.Object.defineProperties(A0,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
A0.prototype.onEnded=A0.prototype.onEnded;A0.prototype.onPlaying=A0.prototype.onPlaying;A0.prototype.dataChanged=A0.prototype.dataChanged;_.q([_.I(_.jy),_.N("design:type",Object)],A0.prototype,"ytdGridStateAwareBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],A0.prototype,"componentBehavior",void 0);_.q([_.I(_.XL.YtdGuideStateAwareBehavior),_.N("design:type",Object)],A0.prototype,"ytdGuideStateAwareBehavior",void 0);
_.q([_.I(_.A0J),_.N("design:type",Object)],A0.prototype,"ytBooleanLogicBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],A0.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],A0.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],A0.prototype,"ytRendererBehavior",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],A0.prototype,"disableGridStateAware",void 0);_.q([_.R(),_.N("design:type",Object)],A0.prototype,"data",void 0);_.q([_.R({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.N("design:type",String)],A0.prototype,"panelLayout",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],A0.prototype,"animationEnabled",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],A0.prototype,"transitioningOut",void 0);
_.q([_.R({computed:"computeMetadataOrder(data)"}),_.N("design:type",Boolean)],A0.prototype,"metadataOrder",void 0);_.q([_.R({computed:"computeByline(data)"}),_.N("design:type",Object)],A0.prototype,"byline",void 0);_.q([_.R({computed:"computeAvatarSize(data)"}),_.N("design:type",Number)],A0.prototype,"avatarSize",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],A0.prototype,"narrow",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],A0.prototype,"narrower",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],A0.prototype,"layoutStyle",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],A0.prototype,"isCarouselInFeed",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],A0.prototype,"dataChanged",null);_.q([_.oe("yt-default-promo-panel-renderer-playing"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],A0.prototype,"onPlaying",null);
_.q([_.oe("yt-default-promo-panel-renderer-ended"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],A0.prototype,"onEnded",null);A0=_.q([_.d({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],A0);
_.w(A0,"ytd-default-promo-panel-renderer",function(){if(zOc!==void 0)return zOc;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return zOc=x},{mode:1});_.HH("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var U1=function(){var x=_.n.apply(this,arguments)||this;x.narrower=!1;x.dotMenuVisible=!1;x.paginationThumbnailsVisible=!1;x.active=!0;x.disableGridStateAware=!1;x.actionMap={"yt-window-resized":"onWindowResized"};return x};
_.m(U1,_.n);_.a=U1.prototype;_.a.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]]"}}}}}};
_.a.attached=function(){document.addEventListener("yt-page-type-changed",_.ae(this,this.onPageTypeChange));this.currentPageSubtype=_.lo(location.pathname);this.onWindowResized()};
_.a.detached=function(){this.jobId&&_.Fj.cancelJob(this.jobId);this.updateSizeJobId&&_.Fj.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.ae(this,this.onPageTypeChange))};
_.a.onPageTypeChange=function(x){this.active=x.detail.newPageSubtype===this.currentPageSubtype};
_.a.onWindowResized=function(){this.updateSize()};
_.a.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.a.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.a.setCarouselItem=function(x){x>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.Fj.cancelJob(this.jobId);var G=this.getCurrentPanelElement();G&&G.stopVideo();this.currentItemIndex=x%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(G||(G=this.getCurrentPanelElement()),G.playVideo()):this.startRotationJob()};
_.a.scrollThumbnails=function(x){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var G=this.getCurrentPaginationElement();if(G){var D=_.kA(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?D.style.transform="translateX(0)":(G=G.offsetWidth+8,D.style.transform="translateX(-"+G*(x-Math.ceil(Math.floor(this.overlay.offsetWidth/G)/2)+1)+"px)")}}};
_.a.onDataChanged=function(){var x=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.Vs(_.Fj,function(){x.getCurrentPanelElement().updateSize();x.updateSize()}))};
_.a.getCurrentPanelElement=function(){return _.kA(_.kA(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.a.getCurrentPaginationElement=function(){return _.kA(_.kA(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.a.getNavigationClass=function(x,G){return x===G?"selected":""};
_.a.getNavigationDurationStyle=function(x){return"animation-duration:"+(this.get("data.carouselItems."+x+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.a.onNavigationTap=function(x){var G=this,D=x.model.index;D!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){G.setCarouselItem(D)}),this.autorotateActive=!1)};
_.a.onVideoThumbnailEnded=function(){var x=this;if(this.shouldRotate()){var G=this.getCurrentPaginationElement();G&&(G.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){G.classList.remove("finished");x.setNextCarouselItem()}))}};
_.a.onVideoThumbnailError=function(){this.startRotationJob()};
_.a.onVideoNotPlaying=function(){this.startRotationJob()};
_.a.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.a.startRotationJob=function(){var x=this;_.Fj.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.Fj.addLowPriorityJob(function(){x.getCurrentPanelElement().transitionOut().then(function(){x.setNextCarouselItem()})},this.rotationTimeout))};
_.a.computeDotMenuVisible=function(x,G){return!!x&&!!x.carouselItems&&x.carouselItems.length>1&&!x.paginationThumbnails||!!G};
_.a.computePaginationThumbnailsVisible=function(x,G){var D,K;return((K=x==null?void 0:(D=x.paginationThumbnails)==null?void 0:D.length)!=null?K:0)>1&&!G};
_.a.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.a.computePaginatorAlignment=function(x){return(x==null?void 0:x.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.a.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.a.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.a.isNarrower=function(x){return(x!=null?x:0)<A0.NARROW_VERSION_SIZE};
U1.prototype.activeChanged=U1.prototype.activeChanged;U1.prototype.onVideoNotPlaying=U1.prototype.onVideoNotPlaying;U1.prototype.onVideoThumbnailError=U1.prototype.onVideoThumbnailError;U1.prototype.onVideoThumbnailEnded=U1.prototype.onVideoThumbnailEnded;U1.prototype.onDataChanged=U1.prototype.onDataChanged;_.q([_.I(_.jy),_.N("design:type",Object)],U1.prototype,"ytdGridStateAwareBehavior",void 0);
_.q([_.I(_.XL.YtdGuideStateAwareBehavior),_.N("design:type",Object)],U1.prototype,"ytdGuideStateAwareBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],U1.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],U1.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],U1.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],U1.prototype,"currentItem",void 0);
_.q([_.R(),_.N("design:type",Number)],U1.prototype,"currentItemIndex",void 0);_.q([_.R(),_.N("design:type",Number)],U1.prototype,"rotationTimeout",void 0);_.q([_.R(),_.N("design:type",Number)],U1.prototype,"loopCount",void 0);_.q([_.R({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.N("design:type",String)],U1.prototype,"paginatorAlignment",void 0);_.q([_.R(),_.N("design:type",Number)],U1.prototype,"jobId",void 0);
_.q([_.R(),_.N("design:type",Number)],U1.prototype,"updateSizeJobId",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],U1.prototype,"isCarouselInFeed",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],U1.prototype,"narrower",void 0);_.q([_.R({computed:"computeDotMenuVisible(data, narrower)"}),_.N("design:type",Object)],U1.prototype,"dotMenuVisible",void 0);
_.q([_.R({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.N("design:type",Object)],U1.prototype,"paginationThumbnailsVisible",void 0);_.q([_.R({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.N("design:type",String)],U1.prototype,"layoutType",void 0);_.q([_.R({value:!0,reflectToAttribute:!0}),_.N("design:type",Boolean)],U1.prototype,"autorotateActive",void 0);_.q([_.R(),_.N("design:type",Object)],U1.prototype,"active",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],U1.prototype,"disableGridStateAware",void 0);_.q([_.cD("#overlay"),_.N("design:type",HTMLElement)],U1.prototype,"overlay",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],U1.prototype,"onDataChanged",null);
_.q([_.oe("yt-video-thumbnail-ended"),_.oe("yt-default-promo-panel-renderer-rotate"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],U1.prototype,"onVideoThumbnailEnded",null);_.q([_.oe("yt-video-thumbnail-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],U1.prototype,"onVideoThumbnailError",null);
_.q([_.oe("yt-video-thumbnail-not-playing"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],U1.prototype,"onVideoNotPlaying",null);_.q([_.Z6("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],U1.prototype,"activeChanged",null);U1=_.q([_.d({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],U1);
_.w(U1,"ytd-carousel-item-renderer",function(){if(Kk6!==void 0)return Kk6;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Kk6=x},{mode:2});var lTj;var cBk;var T6c;var Wkf;var Rw=function(){var x=_.n.apply(this,arguments)||this;x.originalQuery=null;x.originalEndpoint=null;return x};
_.m(Rw,_.n);Rw.prototype.computeShowOriginalQueryWithoutEndpoint_=function(x,G){return!(!x||G)};
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Rw.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Rw.prototype,"correctedText",void 0);_.q([_.R(),_.N("design:type",Object)],Rw.prototype,"correctedQuery",void 0);_.q([_.R(),_.N("design:type",Object)],Rw.prototype,"correctedEndpoint",void 0);_.q([_.R(),_.N("design:type",Object)],Rw.prototype,"originalText",void 0);_.q([_.R(),_.N("design:type",Object)],Rw.prototype,"originalQuery",void 0);
_.q([_.R(),_.N("design:type",Object)],Rw.prototype,"originalEndpoint",void 0);_.q([_.R({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.N("design:type",Boolean)],Rw.prototype,"showOriginalQueryWithoutEndpoint",void 0);Rw=_.q([_.HD({is:"yt-search-query-correction",disableElementRegistration:!0})],Rw);
_.w(Rw,"yt-search-query-correction",function(){if(Wkf===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;T6c===void 0&&(T6c=document.createElement("template"));var K=T6c;D.call(G,K.content.cloneNode(!0),x.content.firstChild);Wkf=x}x=Wkf;return x},{mode:2});_.HH("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var Sg=function(){return _.n.apply(this,arguments)||this};
_.m(Sg,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Sg.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Sg.prototype,"data",void 0);Sg=_.q([_.HD({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],Sg);
_.w(Sg,"yt-did-you-mean-renderer",function(){if(cBk===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;lTj===void 0&&(lTj=document.createElement("template"));var K=lTj;D.call(G,K.content.cloneNode(!0),x.content.firstChild);cBk=x}x=cBk;return x},{mode:2});var eOb;var ZvO;_.HH("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var np=function(){return _.n.apply(this,arguments)||this};
_.m(np,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],np.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],np.prototype,"data",void 0);np=_.q([_.HD({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],np);
_.w(np,"yt-including-results-for-renderer",function(){if(ZvO===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;eOb===void 0&&(eOb=document.createElement("template"));var K=eOb;D.call(G,K.content.cloneNode(!0),x.content.firstChild);ZvO=x}x=ZvO;return x},{mode:2});var MhT;var Q7i;_.HH("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var ie=function(){return _.n.apply(this,arguments)||this};
_.m(ie,_.n);ie.prototype.computeExtraClasses_=function(x,G){var D="";x&&(D+=" "+x.toLowerCase().replace(/_/g,"-"));G&&(D+=" "+G.toLowerCase().replace(/_/g,"-"));return D};
ie.prototype.computeUrlImg_=function(){var x=this.data;x.image&&(_.kA(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.k$(x.image.thumbnails,Number.MAX_VALUE)+")")};
ie.prototype.computeUrlImg_=ie.prototype.computeUrlImg_;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],ie.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],ie.prototype,"data",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ie.prototype,"computeUrlImg_",null);ie=_.q([_.HD({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],ie);
_.w(ie,"yt-music-pass-feature-info-renderer",function(){if(Q7i===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;MhT===void 0&&(MhT=document.createElement("template"));var K=MhT;D.call(G,K.content.cloneNode(!0),x.content.firstChild);Q7i=x}x=Q7i;return x},{mode:2});var pa4;var Vhx;_.HH("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var gI=function(){return _.n.apply(this,arguments)||this};
_.m(gI,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],gI.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],gI.prototype,"data",void 0);gI=_.q([_.HD({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],gI);
_.w(gI,"yt-no-results-found-showing-results-for-renderer",function(){if(Vhx===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;pa4===void 0&&(pa4=document.createElement("template"));var K=pa4;D.call(G,K.content.cloneNode(!0),x.content.firstChild);Vhx=x}x=Vhx;return x},{mode:2});var bvj;var LkT;_.HH("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var ue=function(){return _.n.apply(this,arguments)||this};
_.m(ue,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],ue.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],ue.prototype,"data",void 0);ue=_.q([_.HD({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],ue);
_.w(ue,"yt-results-without-quotes-renderer",function(){if(LkT===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;bvj===void 0&&(bvj=document.createElement("template"));var K=bvj;D.call(G,K.content.cloneNode(!0),x.content.firstChild);LkT=x}x=LkT;return x},{mode:2});var B6O;var rBb;_.HH("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var dI=function(){return _.n.apply(this,arguments)||this};
_.m(dI,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],dI.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],dI.prototype,"data",void 0);dI=_.q([_.HD({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],dI);
_.w(dI,"yt-search-no-results-renderer",function(){if(rBb===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;B6O===void 0&&(B6O=document.createElement("template"));var K=B6O;D.call(G,K.content.cloneNode(!0),x.content.firstChild);rBb=x}x=rBb;return x},{mode:2});var s7b;var Yij;_.HH("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var wI=function(){return _.n.apply(this,arguments)||this};
_.m(wI,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],wI.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],wI.prototype,"data",void 0);wI=_.q([_.HD({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],wI);
_.w(wI,"yt-showing-results-for-renderer",function(){if(Yij===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;s7b===void 0&&(s7b=document.createElement("template"));var K=s7b;D.call(G,K.content.cloneNode(!0),x.content.firstChild);Yij=x}x=Yij;return x},{mode:2});var m3c;var Hvc;var $3C;var Fkj;var qP=function(){var x=_.n.apply(this,arguments)||this;x.answerExpanded=!1;return x};
_.m(qP,_.n);qP.prototype.toggleAnswer_=function(x){var G=_.uo(x);G&&G.classList.contains("yt-simple-endpoint")||(x.preventDefault(),x.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
qP.prototype.toggleAnswer_=qP.prototype.toggleAnswer_;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],qP.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],qP.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],qP.prototype,"answerExpanded",void 0);_.q([_.oe("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],qP.prototype,"toggleAnswer_",null);
qP=_.q([_.HD({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],qP);
_.w(qP,"yt-generic-faq-question-renderer",function(){if(Fkj===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;$3C===void 0&&($3C=document.createElement("template"));var K=$3C;D.call(G,K.content.cloneNode(!0),x.content.firstChild);Fkj=x}x=Fkj;return x},{mode:2});_.HH("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var NP=function(){return _.n.apply(this,arguments)||this};
_.m(NP,_.n);NP.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],NP.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],NP.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],NP.prototype,"data",void 0);NP=_.q([_.HD({is:"yt-faq-section-renderer",disableElementRegistration:!0})],NP);
_.w(NP,"yt-faq-section-renderer",function(){if(Hvc===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;m3c===void 0&&(m3c=document.createElement("template"));var K=m3c;D.call(G,K.content.cloneNode(!0),x.content.firstChild);Hvc=x}x=Hvc;return x},{mode:2});var C5b;var ITf;_.HH("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var vM=function(){return _.n.apply(this,arguments)||this};
_.m(vM,_.n);
vM.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"}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],vM.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],vM.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],vM.prototype,"data",void 0);vM=_.q([_.HD({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],vM);
_.w(vM,"yt-offer-item-expanded-renderer",function(){if(ITf===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;C5b===void 0&&(C5b=document.createElement("template"));var K=C5b;D.call(G,K.content.cloneNode(!0),x.content.firstChild);ITf=x}x=ITf;return x},{mode:2});var j7j;var Ovj;_.HH("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var J0=function(){return _.n.apply(this,arguments)||this};
_.m(J0,_.n);
J0.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"}}}}};
J0.prototype.computeFullWidthMode=function(x){return!(!x||!x.fullWidthMode)};
J0.prototype.computeBorderlessMode=function(x){return!(!x||!x.borderlessMode)};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],J0.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],J0.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],J0.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.N("design:type",Boolean)],J0.prototype,"fullWidthMode",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.N("design:type",Boolean)],J0.prototype,"borderlessMode",void 0);J0=_.q([_.HD({is:"yt-offer-item-renderer",disableElementRegistration:!0})],J0);
_.w(J0,"yt-offer-item-renderer",function(){if(Ovj===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;j7j===void 0&&(j7j=document.createElement("template"));var K=j7j;D.call(G,K.content.cloneNode(!0),x.content.firstChild);Ovj=x}x=Ovj;return x},{mode:2});var Xaf;var AB8;_.HH("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var fp=function(){return _.n.apply(this,arguments)||this};
_.m(fp,_.n);fp.prototype.computeAriaLevel_=function(x){return this.getLevelID_(x)};
fp.prototype.getLevelID_=function(x){return(x=x.match(/[0-9]+$/))&&x.length==1?x[0]:"1"};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],fp.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],fp.prototype,"data",void 0);_.q([_.R({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.N("design:type",String)],fp.prototype,"ariaLevel",void 0);_.q([_.R({value:"heading",reflectToAttribute:!0}),_.N("design:type",String)],fp.prototype,"role",void 0);
_.q([_.R({value:-1,reflectToAttribute:!0}),_.N("design:type",Number)],fp.prototype,"tabindex",void 0);fp=_.q([_.HD({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],fp);
_.w(fp,"yt-subscription-product-header-renderer",function(){if(AB8===void 0){var x=document.createElement("template");_.F(x,"\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");x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;Xaf===void 0&&(Xaf=document.createElement("template"));var K=Xaf;D.call(G,K.content.cloneNode(!0),x.content.firstChild);AB8=x}x=AB8;return x},{mode:2});var U3f;var ROc;_.HH("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var t0=function(){return _.n.apply(this,arguments)||this};
_.m(t0,_.n);t0.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:_.$7("menuRenderer"),events:!0}}};
t0.prototype.onStampFinished_=function(){_.kA(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
t0.prototype.onStampFinished_=t0.prototype.onStampFinished_;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],t0.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],t0.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],t0.prototype,"data",void 0);_.q([_.oe("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],t0.prototype,"onStampFinished_",null);
t0=_.q([_.HD({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],t0);
_.w(t0,"yt-subscription-product-renderer",function(){if(ROc===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;U3f===void 0&&(U3f=document.createElement("template"));var K=U3f;D.call(G,K.content.cloneNode(!0),x.content.firstChild);ROc=x}x=ROc;return x},{mode:2});var SiO;var nz8;_.HH("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var kI=function(){return _.n.apply(this,arguments)||this};
_.m(kI,_.n);kI.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
kI.prototype.imageScrimColorValuesChanged_=function(){var x,G=(x=this.data)==null?void 0:x.imageScrimColorValues;_.kA(this.hostElement).querySelector("#scrim").style.backgroundColor=G?_.jT(G[0]):"transparent"};
kI.prototype.imageScrimColorValuesChanged_=kI.prototype.imageScrimColorValuesChanged_;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],kI.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],kI.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],kI.prototype,"data",void 0);
_.q([_.yf("data.imageScrimColorValues"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kI.prototype,"imageScrimColorValuesChanged_",null);kI=_.q([_.HD({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],kI);
_.w(kI,"yt-subscription-product-upsell-offer-renderer",function(){if(nz8===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;SiO===void 0&&(SiO=document.createElement("template"));var K=SiO;D.call(G,K.content.cloneNode(!0),x.content.firstChild);nz8=x}x=nz8;return x},{mode:2});var ivc;var gz4;var uIO;var d3j;var waf;var qiC;var PM=function(){return _.n.apply(this,arguments)||this};
_.m(PM,_.n);PM.prototype.onYtServiceRequestError_=function(x){_.kL(this.hostElement,x.detail.error.message)};
PM.prototype.onYtServiceRequestError_=PM.prototype.onYtServiceRequestError_;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],PM.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],PM.prototype,"data",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],PM.prototype,"collapsible",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],PM.prototype,"isManageRed",void 0);
_.q([_.oe("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],PM.prototype,"onYtServiceRequestError_",null);PM=_.q([_.HD({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],PM);
_.w(PM,"yt-single-ypc-offer-renderer",function(){if(qiC===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;waf===void 0&&(waf=document.createElement("template"));var K=waf;D.call(G,K.content.cloneNode(!0),x.content.firstChild);qiC=x}x=qiC;return x},{mode:2});var E1=function(){return _.n.apply(this,arguments)||this};
_.m(E1,_.n);E1.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],E1.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],E1.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],E1.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],E1.prototype,"isManageRed",void 0);E1=_.q([_.HD({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],E1);
_.w(E1,"yt-single-ypc-offer-list-renderer",function(){if(d3j===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;uIO===void 0&&(uIO=document.createElement("template"));var K=uIO;D.call(G,K.content.cloneNode(!0),x.content.firstChild);d3j=x}x=d3j;return x},{mode:2});var N6c;var vzC;_.HH("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var h0=function(){return _.n.apply(this,arguments)||this};
_.m(h0,_.n);h0.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],h0.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],h0.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],h0.prototype,"data",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],h0.prototype,"isManageRed",void 0);h0=_.q([_.HD({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],h0);
_.w(h0,"yt-ypc-offers-list-renderer",function(){if(vzC===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;N6c===void 0&&(N6c=document.createElement("template"));var K=N6c;D.call(G,K.content.cloneNode(!0),x.content.firstChild);vzC=x}x=vzC;return x},{mode:2});_.HH("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var x6=function(){return _.n.apply(this,arguments)||this};
_.m(x6,_.n);
x6.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}}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],x6.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],x6.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],x6.prototype,"data",void 0);x6=_.q([_.HD({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],x6);
_.w(x6,"yt-unlimited-manage-subscription-page-renderer",function(){if(gz4===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;ivc===void 0&&(ivc=document.createElement("template"));var K=ivc;D.call(G,K.content.cloneNode(!0),x.content.firstChild);gz4=x}x=gz4;return x},{mode:2});var JBf;var fTf;var Gi=function(){return _.n.apply(this,arguments)||this};
_.m(Gi,_.n);_.a=Gi.prototype;_.a.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.a.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.a.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.a.onKeypress_=function(x){x.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.a.handleHeaderTap_=function(x){x.preventDefault();x.stopPropagation();this.expandOffers_()};
_.a.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.a.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
Gi.prototype.dataChanged_=Gi.prototype.dataChanged_;_.q([_.I(_.Tb),_.N("design:type",Object)],Gi.prototype,"ironA11yKeysBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Gi.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Gi.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Gi.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],Gi.prototype,"offersVisible_",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Gi.prototype,"dataChanged_",null);Gi=_.q([_.HD({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],Gi);
_.w(Gi,"yt-collapsible-ypc-offer-renderer",function(){if(fTf===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;JBf===void 0&&(JBf=document.createElement("template"));var K=JBf;D.call(G,K.content.cloneNode(!0),x.content.firstChild);fTf=x}x=fTf;return x},{mode:2});var th4;var kBO;_.HH("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var Dn=function(){return _.n.apply(this,arguments)||this};
_.m(Dn,_.n);_.a=Dn.prototype;_.a.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.a.dataChanged_=function(){if(this.data.backgroundImage){var x=_.k$(this.data.backgroundImage.thumbnails,screen.width),G=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=G?"linear-gradient(180deg, "+G+"), url("+x+")":"url("+x+")";this.data.gtmId&&_.pF(this.data.gtmId,_.Am("GL",""))}};
_.a.onYtServiceRequestError_=function(x){_.kL(this.hostElement,x.detail.error.message)};
_.a.getScrimLayerColorStops_=function(){var x,G,D=(x=this.data.unlimitedHeaderV2Data)==null?void 0:(G=x.unlimitedHeaderV2Data)==null?void 0:G.scrimLayerColors;if(!D)return null;var K=100/D.length;return D.map(function(z,y){y*=K;return _.jT(z)+" "+y+"%"}).join(",")};
_.a.computeLogoWithPadding=function(x){var G,D,K;return(x=(G=x.unlimitedLogoImage)==null?void 0:(D=G.thumbnails)==null?void 0:(K=D[0])==null?void 0:K.height)&&x%31===0?!0:!1};
Dn.prototype.onYtServiceRequestError_=Dn.prototype.onYtServiceRequestError_;Dn.prototype.dataChanged_=Dn.prototype.dataChanged_;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Dn.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Dn.prototype,"ytRendererBehavior",void 0);_.q([_.R({computed:"computeLogoWithPadding(data)"}),_.N("design:type",Boolean)],Dn.prototype,"logoWithPadding",void 0);
_.q([_.R(),_.N("design:type",Object)],Dn.prototype,"data",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Dn.prototype,"dataChanged_",null);_.q([_.oe("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Dn.prototype,"onYtServiceRequestError_",null);Dn=_.q([_.HD({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],Dn);
_.w(Dn,"yt-unlimited-page-header-renderer",function(){if(kBO===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;th4===void 0&&(th4=document.createElement("template"));var K=th4;D.call(G,K.content.cloneNode(!0),x.content.firstChild);kBO=x}x=kBO;return x},{mode:2});var P5C;var Ez6;_.HH("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var KY=function(){return _.n.apply(this,arguments)||this};
_.m(KY,_.n);KY.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],KY.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],KY.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],KY.prototype,"data",void 0);KY=_.q([_.HD({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],KY);
_.w(KY,"yt-unlimited-user-notification-renderer",function(){if(Ez6===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;P5C===void 0&&(P5C=document.createElement("template"));var K=P5C;D.call(G,K.content.cloneNode(!0),x.content.firstChild);Ez6=x}x=Ez6;return x},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.lyi=_.Nv(function(x){var G=_.qv(x,{numberOfChips:5}).numberOfChips;return _.M("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.M(_.LT,{each:function(){return Array(G==null?void 0:G())}},function(){return _.M("div",{class:"ytGhostChipShelfChip"})}))},"jg");_.cm8=_.Nv(function(x){var G=_.Dw(),D=_.Eo().resolve(_.ub);_.H6(function(){requestAnimationFrame(function(){var z;(z=G.lottieEl)==null||z.addEventListener("DOMLoaded",function(){var y;(y=x.onLottieLoaded)==null||y.call(x)})})});
var K={};return _.M("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var z;return((z=x.data)==null?void 0:z.call(x).targetId)||""}},_.M(_.l_,{className:_.ym((K.ytChatLoadingViewModelRtl=D==="rtl",K)),
animationName:"YOUCHAT_LOADER",data:function(){var z;return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:((z=x.data)==null?void 0:z.call(x).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"}}},
animationRef:G}))},"kg");
}catch(e){_._DumpException(e)}
try{
var A_b,Uc6,Rof,S28,nYT,i9C,gYY,dcf,kWc,kZ,trT,NCf,fBx,J_i,vYj,q2T,PHj,EYc,ho8,x1x,PW,GAf,D1f,KVj,lYO,y1O,oRf,zGY,aYC,WVb,eGC,Zl6,Mz6,p5c,B4x,Ys4,m1x,HlT,FVx,IY6,Ol4,X5O,A1c,U1k,SsY,nRf,il6,gR8,uFi,d1i,w5f,N4O,tzf,fYO,vRc,kAb,J1Y,PXc,Gjc,xY8,ERf,hGc,hT,DYb,KFb,a_j,l_Y,Mik,Qhc,puj,Vi8,b26,LFk,B0j,rOO,shY,Yax,H2b,$Yj,FFk,c1T,T4i,WFf;
_.fP=function(x){var G=new _.LL("Error accessing DB");return _.sJh().then(function(D){return new Promise(function(K,z){try{var y=D.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(x);y.onsuccess=function(){var c=y.result;K(c?c.value:null)};
y.onerror=function(){G.params={key:x,source:"onerror"};z(G)}}catch(c){G.params={key:x,
thrownError:String(c)},z(G)}})},function(){return null})};
_.XCf=function(x,G){var D=_.pdD(G);D!=="javascript:"&&D!=="data:"&&x.setAttribute("href",G)};
A_b=function(x,G){return _.zm(x.entities,"flowStateEntity",G)};
Uc6=function(x){return _.iO(x,function(G){return G.languageCode==="en"})};
Rof=function(x){var G=tT;if(_.q_i(x))x.setOption("captions","stickyLoading",{}),x.setOption("captions","track",{});else{var D=_.iO(_.$w3(x),function(K){return K.displayName===G});
x.setOption("captions","track",D)}};
S28=function(x){if(!x)return 0;var G=x.getPresentingPlayerType(),D=x.getVideoData();return D&&D.isLive?(x=x.getProgressState(G),x.seekableEnd-x.seekableStart):x.getDuration(G)};
nYT=function(x,G){for(var D=_.l(Object.keys(x)),K=D.next();!K.done;K=D.next())if(K=K.value,x[K]!==G[K])return!1;return!0};
i9C=function(){return document.getElementById("player-control-overlay")};
gYY=function(x){x!==-1&&!_.B("player_controls_log_creation_killswitch")&&i9C()&&(_.Fs("pcu_cs",x),_.Fs("pcu_ce"))};
dcf=function(x){return _.M("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(x.subscribeButton?[x.subscribeButton,x.channelAccess]:[x.channelAccess]).map(function(G){return _.M("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.M("div",{class:"yt-profile-identity-info-view-model-wiz--button"},u_f(G)))}))};
_.wC6=function(x){var G=x.data;x=x.hideDivider;var D={};D=(D["yt-profile-identity-info-view-model-wiz__frame"]=!0,D["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!G.channelBanner,D);D={class:_.cH(D)};var K,z={imageBannerViewModel:{image:(K=G.channelBanner)==null?void 0:K.image,style:"IMAGE_BANNER_STYLE_INSET"}};K=_.M("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},G.channelBanner?_.M("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
u_f(z,{imageBannerViewModel:{isPositionRelative:!0}})):null);z=_.M("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},u_f(G.avatar));var y;var c=_.M("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.M("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},G.channelDisplayName),G.verifiedOrOacBadge?_.M("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.M(_.wk,{data:{thumbnails:[{url:(y=G.verifiedOrOacBadge)==null?void 0:y.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);y=_.M("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},c,u_f(G.threeDotMenu));c=_.M("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.M("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.M("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},G.channelHandle),G.channelPronouns&&G.channelHandle?_.M("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.M("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},G.channelPronouns)),_.M("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.M("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},G.leftOfBulletInfo),G.leftOfBulletInfo&&G.rightOfBulletInfo?_.M("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.M("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},G.rightOfBulletInfo)));y=_.M("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},y,c);return _.M("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.M("div",D,K,_.M("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},z,y),G.channelDescription?_.M("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},G.channelDescription):
null,dcf(G),x?null:_.M("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
kWc=function(x,G){var D=_.wc(x,{}),K=q2T("top",G),z=q2T("bottom",G),y=q2T("left",G),c=q2T("right",G);return _.Ms({top:function(){return kZ(D().position,K)},
bottom:function(){return kZ(D().position,z)},
left:function(){return kZ(D().position,y)},
right:function(){return kZ(D().position,c)},
position:function(){return kZ(D().positionType,NCf)},
height:function(){return kZ(D().height,PW)},
width:function(){return kZ(D().width,PW)},
"min-width":function(){return kZ(D().minWidth,PW)},
"min-height":function(){return kZ(D().minHeight,PW)},
"max-width":function(){return kZ(D().maxWidth,PW)},
"max-height":function(){return kZ(D().maxHeight,PW)},
"aspect-ratio":function(){return kZ(D().aspectRatio,String)},
"margin-top":function(){return kZ(D().margin,K)},
"margin-bottom":function(){return kZ(D().margin,z)},
"margin-left":function(){return kZ(D().margin,y)},
"margin-right":function(){return kZ(D().margin,c)},
"padding-top":function(){return kZ(D().padding,K)},
"padding-bottom":function(){return kZ(D().padding,z)},
"padding-left":function(){return kZ(D().padding,y)},
"padding-right":function(){return kZ(D().padding,c)},
"flex-direction":function(){return kZ(D().flexDirection,vYj)},
"justify-content":function(){return kZ(D().justifyContent,J_i)},
"align-items":function(){return kZ(D().alignItems,fBx)},
"flex-grow":function(){return kZ(D().flexGrow,String)},
"flex-shrink":function(){return kZ(D().flexShrink,String)},
"flex-basis":function(){return kZ(D().flexBasis,PW)},
"align-self":function(){return kZ(D().alignSelf,fBx)},
"flex-wrap":function(){return kZ(D().flexWrap,trT)},
"align-content":function(){return kZ(D().alignContent,fBx)}})};
kZ=function(x,G){return x!==void 0?G(x):void 0};
trT=function(x){switch(x){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
NCf=function(x){switch(x){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
fBx=function(x){switch(x){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"}};
J_i=function(x){switch(x){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"}};
vYj=function(x){switch(x){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"}};
q2T=function(x,G){var D=G==="rtl";switch(x){case "top":var K=PHj;break;case "bottom":K=EYc;break;case "left":K=ho8;break;default:K=x1x}return function(z){return kZ(K(z,D),PW)}};
PHj=function(x){var G=x.top;var D=x.vertical;x=x.all;var K;return(K=G!=null?G:D)!=null?K:x};
EYc=function(x){var G=x.bottom;var D=x.vertical;x=x.all;var K;return(K=G!=null?G:D)!=null?K:x};
ho8=function(x,G){var D=x.left;var K=x.end;var z=x.start;var y=x.horizontal;x=x.all;var c,W;return(W=(c=D!=null?D:G?K:z)!=null?c:y)!=null?W:x};
x1x=function(x,G){var D=x.right;var K=x.end;var z=x.start;var y=x.horizontal;x=x.all;var c,W;return(W=(c=D!=null?D:G?z:K)!=null?c:y)!=null?W:x};
PW=function(x){var G=x.value;switch(x.unit){case "YPC_DIMENSION_UNIT_POINT":return G+"px";case "YPC_DIMENSION_UNIT_FRACTION":return G+"%";default:return""+G}};
GAf=function(x){switch(x){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"}};
D1f=function(x){var G=x!=null?x:{};x=G.fontRole;var D=G.fontSize;G=G.fontWeight;if(x!==null&&D!==null)switch(x){case "YPC_FONT_ROLE_DISPLAY":switch(D){case "YPC_FONT_SIZE_L":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(D){case "YPC_FONT_SIZE_L":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return G===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(D){case "YPC_FONT_SIZE_XL":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
KVj=function(x,G){return _.zm(x.entities,"pdpStateEntity",G)};
lYO=function(x,G,D){function K(Q){return Object.values(Q).map(function(p){var V=p.productId;p=p.pricingOptionIndex;return zGY(z(V).pricingOptions,p).pricingOptionId})}
function z(Q){return W().get(Q)}
function y(Q){Q=K(Q);D(Q)}
var c=aYC([x,G],function(Q,p){var V=Q==null?void 0:Q.selectedPricingOptions;Q={};var L=!0;if(V&&p.length)for(var r=_.l(p),H=r.next();!H.done;H=r.next()){H=H.value;var O=oRf(H.pricingOptions,function(A){a:{A=A.pricingOptionId;for(var g=_.l(V),u=g.next();!u.done;u=g.next())if(u.value===A){A=!0;break a}A=!1}return A});
O>=0&&(L=!1,Q[H.groupId]={productId:H.productId,pricingOptionIndex:O})}L&&p.length&&(Q[p[0].groupId]={productId:p[0].productId,pricingOptionIndex:0});return Q}),W=aYC([G],function(Q){return new Map(Q.map(function(p){return[p.productId,
p]}))}),e=aYC([G],function(Q){var p=new Map;
Q=_.l(Q);for(var V=Q.next();!V.done;V=Q.next()){var L=V.value;V=L.groupId;var r=L.productId;L=_.l(y1O(L.pricingOptions));for(var H=L.next();!H.done;H=L.next()){var O=_.l(H.value);H=O.next().value;O=O.next().value;p.set(O.pricingOptionId,{groupId:V,productId:r,index:H,pricingOption:O})}}return p});
return{getProductById:z,isProductSelected:function(Q){var p=z(Q);if(!p)return!1;var V;return((V=c()[p.groupId])==null?void 0:V.productId)===Q},
getSelectedPricingOptions:function(){return Object.values(c()).map(function(Q){var p=Q.productId;Q=Q.pricingOptionIndex;return zGY(z(p).pricingOptions,Q)})},
getSelectedProductByGroupId:function(Q){var p;return(Q=(p=c()[Q])==null?void 0:p.productId)?z(Q):void 0},
onProductSelected:function(Q){var p=z(Q);if(p){var V=c(),L;if(((L=V[p.groupId])==null?void 0:L.productId)!==Q){var r,H;L=(H=(r=V[p.groupId])==null?void 0:r.pricingOptionIndex)!=null?H:0;r=0;for(H=p.pricingOptions[Symbol.iterator]();!H.next().done;)++r;r<=L&&(L=0);r={};y(Object.assign({},V,(r[p.groupId]={productId:Q,pricingOptionIndex:L},r)))}}},
onPricingOptionSelected:function(Q){var p=e().get(Q);if(p){Q=p.groupId;var V=p.productId;p=p.index;var L=c(),r,H;if(((r=L[Q])==null?void 0:r.productId)!==V||((H=L[Q])==null?void 0:H.pricingOptionIndex)!==p){var O,A;r=(A=(O=L[Q])==null?void 0:O.pricingGroupAttributes)!=null?A:[];O={};y(Object.assign({},L,(O[Q]={productId:V,pricingOptionIndex:p,pricingGroupAttributes:r},O)))}}},
onClearGroupSelected:function(Q){var p=c();p[Q]&&(p=Object.fromEntries(Object.entries(p).filter(function(V){return _.l(V).next().value!==Q})),y(p))}}};
y1O=function(x){return function D(){var K,z,y,c,W;return c1T(D,function(e){switch(e.nextAddress){case 1:_.o0(e,2),K=0,z=_.l(x),y=z.next();case 4:if(y.done){e.jumpTo(2);break}c=y.value;W=T4i;return _.Z(e,[K++,c],7);case 7:W(e.yieldResult);y=z.next();e.jumpTo(4);break;case 2:_.zA(e),_.y6(e,0)}})}()};
oRf=function(x,G){x=_.l(y1O(x));for(var D=x.next();!D.done;D=x.next()){var K=_.l(D.value);D=K.next().value;K=K.next().value;if(G(K))return D}return-1};
zGY=function(x,G){x=_.l(y1O(x));for(var D=x.next();!D.done;D=x.next()){var K=_.l(D.value);D=K.next().value;K=K.next().value;if(D===G)return K}};
aYC=function(x,G){var D,K;return function(){for(var z=x.map(function(c){return c()}),y=0;y<z.length;y++)if(!D||z[y]!==D[y]){D=z;
K=G.apply(null,_.B5(z));break}return K}};
WVb=function(x){var G;return!!(x.productId&&x.groupId&&((G=x.pricingOptions)==null?0:G.length)&&x.pricingOptions.every(function(D){return D.pricingOptionId}))};
eGC=function(x,G,D){return lYO(x,aYC([G],function(K){return K.filter(WVb)}),D)};
Zl6=function(x,G){return G.length===0?[x]:[x.slice(0,G[0]),x.slice(G[0])].filter(function(D){return D.length>0})};
Mz6=function(x){switch(x){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""}};
p5c=function(x,G,D,K){K=Object.assign({},K);_.Hh(K,Q0f,{selectedOptionId:x,primaryButtonOverride:D});_.iD().dispatch(_.cq("flowStateEntity",G,K))};
_.LVO=function(){if(!Vzf){var x=_.l(_.eO(new Map,void 0,"UJImUe"));Vzf=x.next().value;blY=x.next().value}return Vzf};
B4x=function(x){if(x)return _.LVO()().get(x)};
_.r1b=function(x,G){if(x&&G){var D=_.LVO();D().set(x,G);x=D();blY(new Map(x))}};
_.s0b=function(x){return{onSubmit:function(){var G;(G=B4x(x()))==null||G.onSubmit()},
isValid:function(){var G=B4x(x());return G?G.isValid():!0},
isSubmitting:function(){var G,D;return!!((G=B4x(x()))==null?0:(D=G.isSubmitting)==null?0:D.call(G))}}};
Ys4=function(x,G){return _.zm(x.entities,"contextNoteFeedEntityPayload",G)};
m1x=function(x){x.style.height="auto";x.style.height=x.scrollHeight+"px"};
HlT=function(x){return[x.syncStep,x.asyncStep].filter(function(G){return G!==void 0})};
FVx=function(x){var G,D,K;if(x=(G=x.structuredContextNoteFormSchema)==null?void 0:(D=G.fieldSchemas)==null?void 0:(K=D.noteBody)==null?void 0:K.validationSchema)for(G=_.l(HlT(x)),D=G.next();!D.done;D=G.next()){D=D.value.rules;if(!D)break;D=_.l(D);for(D=D.next();!D.done;D=D.next())return _.Y(D.value,_.$1T)}};
IY6=function(x){if(x){x=_.l(HlT(x));for(var G=x.next();!G.done;G=x.next()){G=G.value.rules;if(!G)break;G=_.l(G);for(G=G.next();!G.done;G=G.next())return _.Y(G.value,CXO)}}};
Ol4=function(x){if(x){x=_.l(HlT(x));for(var G=x.next();!G.done;G=x.next()){G=G.value.rules;if(!G)break;G=_.l(G);for(G=G.next();!G.done;G=G.next())return _.Y(G.value,j0C)}}};
X5O=function(x){x=/^https?:\/\//.test(x)?x:"http://"+x;try{var G=_.wM(x)}catch(D){return!1}if(G.toString()!==x)return!1;x=G.JSC$8039_domain_.split(".");return x.length>1&&x.every(function(D){return!!D})};
A1c=function(x,G,D,K){var z;K=(z=K.structuredContextNoteData)==null?void 0:z.createCommentEndpoint;if(z=_.Y(K,_.iy0))return z.commentText=_.gK(x),z.videoPositionMention=G,z.sources=D,K};
U1k=function(x){return x==null?void 0:x.stringValue};
SsY=function(x,G,D){x=x.map(function(K,z){return{listItemViewModel:{title:K.title,subtitle:K.subtitle,leadingImage:K.leadingImage,trailingImage:z===G?RGx:void 0,rendererContext:{commandContext:{onTap:K.onTap}}}}});
return Object.assign({},D&&{header:{panelHeaderViewModel:{title:D}}},{content:{listViewModel:{listItems:x}}})};
nRf=function(x,G){if(x&&G)switch(G){case "SELECTION_TYPE_BOOL":return x.boolValue;case "SELECTION_TYPE_INT":return x.intValue;case "SELECTION_TYPE_STRING":return x.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return x.privacyStatusValue}};
il6=function(x){var G;x=(G=x.options)==null?void 0:G.findIndex(function(D){return D.isSelected});
return x===void 0?-1:x};
gR8=function(x,G,D){var K=function(){return x().label},z={},y=_.ym("ytDropdownViewModelLabel",(z.ytDropdownViewModelLabelError=G,z));
return _.M(_.b,{cond:function(){return x().label&&!(D()===-1&&x().label&&!x().placeholderText)},
then:function(){return _.M("div",{class:y},_.M(_.vq,{text:K}))}})};
uFi=function(x,G){var D={};D=_.ym("ytDropdownViewModelTitle",(D.ytDropdownViewModelTitlePlaceholder=function(){return G()===-1},D));
return _.M("div",{class:D},_.M(_.vq,{text:function(){var K=x();var z=G();if(z===-1)K=K.placeholderText?K.placeholderText:K.label;else{var y,c;K=(y=K.options)==null?void 0:(c=y[z])==null?void 0:c.title}return K}}))};
d1i=function(x,G){var D=function(){return x().hint};
return _.M(_.xT,null,_.M(_.b,{cond:function(){return D()&&!G()},
then:function(){return _.M("div",{class:_.ym("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.M(_.vq,{text:D,className:"ytDropdownViewModelSupportText"}))}}),_.M(_.b,{cond:G,
then:function(){return _.M("div",{id:"dropdown-view-model-error",role:"alert",class:_.ym("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.M(_.Qm,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.M(_.vq,{text:G,className:"ytDropdownViewModelSupportText"}))}}))};
w5f=function(x,G){var D=_.Eo().resolve(_.HDi);_.FQ(function(){var K=x().id;K&&D!=null&&D.dropdownMap.set(K,G)})};
N4O=function(x){x=_.Y(x.scheduleButton,qsx);x=_.Y(x==null?void 0:x.primaryButton,_.Ls);x=_.Y(x==null?void 0:x.onTap,_.IP);var G,D,K=((D=_.Y(x,_.oI))==null?void 0:D.commands)||[x];D=_.l(K);for(x=D.next();!x.done&&!(G=_.Y(x.value,_.u6h));x=D.next());var z;G=(z=G)==null?void 0:z.createBroadcastRequest;if(!G)throw Error("Fj");return G};
tzf=function(x,G,D){D=D===void 0?{}:D;var K,z;return _.T(function(y){if(K=vRc(G))return y.return(K);(z=J1Y(x,G,D))&&fYO(G,z);return y.return(z)})};
fYO=function(x,G){var D=kAb(x);D&&G.then(function(K){_.Eo().resolve(_.xn).put(D,new _.Gp({innertubeResponse:K}))})};
vRc=function(x){if(x=kAb(x)){var G=_.Eo().resolve(_.xn);if(G.has(x))return G.get(x).then(function(D){return D==null?void 0:_.DU(D)})}return null};
kAb=function(x){var G=_.Y(x.endpoint,_.d5);if(G!=null&&G.videoId)return G={videoId:G.videoId},_.B("web_imp_player_mute_params")&&(G.mutedAtStart=x.startPlaybackInMutedState),_.ux("inline_playback",G)};
J1Y=function(x,G,D){x=_.Rl(x,G.endpoint,PXc(G,D)).then(function(K){return K});
return Promise.resolve(x)};
PXc=function(x,G){G=_.B("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!x.startPlaybackInMutedState},G):Object.assign({},{vis:5,autonav:"1"},G);var D;G={contentPlaybackContext:_.V7(G,(D=_.Y(x.endpoint.commandMetadata,_.fC))==null?void 0:D.url,window.location.href)};_.B("web_imp_player_mute_params")&&(G.overrideMutedAtStart=!x.startPlaybackInMutedState);return G};
Gjc=function(x,G){var D=window.MutationObserver;D&&(EG=new D(function(K,z){K=_.l(K);for(var y=K.next();!y.done;y=K.next()){y=y.value;var c;if(c=y.type==="childList"&&y.target)a:{c=x;y=ERf(y.target);c=ERf(c);for(var W=null,e=0;e<y.length;e++)if(c.includes(y[e])){if(e===0){c=!1;break a}W=y[e];break}W?(y=hGc(y,W),c=hGc(c,W),c=y<c):c=!1}if(c){G();z.disconnect();break}}}),(D=xY8())&&EG.observe(D,{childList:!0,
subtree:!0}))};
xY8=function(){var x=document.getElementsByTagName("ytd-rich-grid-renderer");if(x.length>0)return x[0];x=document.getElementsByTagName("ytd-section-list-renderer");return x.length>0?x[0]:null};
ERf=function(x){for(var G=[];x;)G.push(x),x=x.parentElement;return G};
hGc=function(x,G){var D=Array.from(G.children);G=x.indexOf(G);return G>0?D.indexOf(x[G-1]):-1};
hT=function(x,G,D){D=D===void 0?{}:D;return _.Wg(x,D,G)};
DYb=function(x){switch(x){case "MUSIC":return!0;default:return!1}};
KFb=function(x){return x==null?void 0:x.filter(function(G){return G.premiereTrailerBadgeRenderer})};
a_j=function(x){var G,D=x==null?void 0:(G=x.find(function(V){return V.thumbnailOverlayTimeStatusRenderer}))==null?void 0:G.thumbnailOverlayTimeStatusRenderer,K,z;
if((D==null?0:(K=D.icon)==null?0:K.iconType)&&DYb(D==null?void 0:(z=D.icon)==null?void 0:z.iconType)){var y;return{icon:D==null?void 0:(y=D.icon)==null?void 0:y.iconType}}var c,W;var e=(x=(c=x==null?void 0:(e=x.find(function(V){return V.thumbnailBottomOverlayViewModel}))==null?void 0:e.thumbnailBottomOverlayViewModel)==null?void 0:(W=c.badges)==null?void 0:W.find(function(V){var L,r;
return((L=_.Y(V,z5i))==null?void 0:(r=L.inlinePlaybackBadgeData)==null?void 0:r.replicateAsTimestamp)===!0}))?_.Y(x,z5i):void 0;
if(e==null?0:e.icon){var Q,p;if((e=(Q=_.DoC(e==null?void 0:e.icon))==null?void 0:(p=Q.clientResource)==null?void 0:p.imageName)&&DYb(e))return{icon:e}}return{}};
l_Y=function(x,G){var D="",K="";switch(x){case -1:case 0:D=G?"VOLUME_OFF":"VOLUME_OFF_FILLED";K=oSO;break;case 1:D=G?"VOLUME_UP_OUTLINE":"VOLUME_UP";K=yOY;break;default:_.oT(x)}return{iconName:D,ariaLabel:K}};
Mik=function(x,G){var D=cOc,K=_.l(_.eO(T0x(new WFf(function(){},D,G)),void 0,"PAnyd")),z=K.next().value,y=K.next().value,c=new WFf(function(W){y(W)},D,G);
_.$9(function(){Promise.resolve().then(function(){var W,e=(W=x())!=null?W:{};c.playerControlsData=e;_.B("player_controls_skip_double_signal_old")&&(c.lastSeenPlayerApi=_.jJ(e.playerApi));_.B("player_controls_skip_double_signal_old")||(c.lastSeenPlayerApi=_.jJ(e.playerApi));e5T(c)});
_.Fq(function(){Z2c(c)})});
_.Fq(function(){Z2c(c)});
return function(){return z()}};
Qhc=function(x){return function(G){var D=x(),K={playerState:G};if(G===1){var z;(z=D.playerApi)==null||z.loadModule("captions")}if(G===0){var y;(y=D.playerApi)==null||y.unloadModule("captions")}(G!==-1||_.B("web_imp_controls_set_player_state_killswitch"))&&D.setState(K)}};
puj=function(x){return function(G){x().setState({playbackRate:G})}};
Vi8=function(x){return function(G){var D=x(),K=D.playerApi,z=K==null?void 0:K.getVideoData(),y=(z==null?void 0:z.isLive)||!1;z=z==null?void 0:z.video_id;y={videoDuration:S28(K||void 0),isLive:y,videoId:z};y.videoId!==D.videoId&&(y=Object.assign({},_.dTO(K),y));if(G==null?0:G.playertype)y.playerType=G.playertype;if(K){y.captionsAvailable=_.j9(K);G=y;var c;z=(c=K.getStoryboardLevel(K.getNumberOfStoryboardLevels()-1))==null?void 0:c.intervalMs;G.storyboardInterval=z?z/1E3:void 0;y.captionsAvailable&&
(y.captionsEnabled=_.q_i(K))}y.volumeMuted=!(K==null||!K.isMuted());D.setState(y)}};
b26=function(x){return function(G){var D=x(),K=D.playerApi;if(K){var z=K.getPresentingPlayerType();G={playedTime:G||0,percentLoaded:K.getVideoLoadedFraction(),playerType:z};D.playerState===0&&(G.playedTime=D.videoDuration);D.isLive&&(z=K.getProgressState(z),G.playedTime-=z.seekableStart,G.videoDuration=S28(K));if(D.playerType===1)K=!1;else{var y;if((y=D.uxConfig)==null?0:y.showCuedOverlay){var c;K=!((c=D.playerApi)==null?0:c.getPlayerStateObject(D.playerType).isDomPaused)}else K=!0}K&&delete G.playedTime;
D.setState(G)}}};
LFk=function(x){return function(){var G=x(),D,K,z,y={volume:(z=(D=G.playerApi)==null?void 0:D.getVolume())!=null?z:0,volumeMuted:!((K=G.playerApi)==null||!K.isMuted())};G.setState(y)}};
B0j=function(x){return function(){var G=x(),D=G.playerApi;if(D){var K={captionsAvailable:_.j9(D)};K.captionsAvailable&&(K.captionsEnabled=_.q_i(D));G.setState(K)}}};
rOO=function(x){return function(){var G=x();if(G.playerApi&&!(G.volumeMuted||G.controlsVisible&&G.isProbablyAScreenreaderUser)){G.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var D;(D=document.querySelector(".player-control-play-pause-icon"))==null||D.focus()}}};
shY=function(x){return{appApi:Object.assign({},_.UTD(),{showCaptionsToggleToast:function(G){var D,K;(K=(D=x()).showCaptionsToggleToast)==null||K.call(D,G)},
openInMiniplayer:function(){var G,D;(D=(G=x()).openInMiniplayer)==null||D.call(G)}})}};
Yax=function(x,G){var D,K,z;return!!(x==null?0:(D=x.playerResponse)==null?0:(K=D.playerConfig)==null?0:(z=K.inlinePlaybackConfig)==null?0:z.showScrubbingControls)&&!(G==null?0:G.hideScrubbingControls)};
_.mYc=function(x){var G=!x.miniplayerIsActive;return[5,2,0].includes(x.miniplayerPlaybackState)||G};
H2b={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};$Yj=function(x,G){var D,K,z,y,c;_.T(function(W){if(!G.length)return W.return([]);D=[];K=_.l(G);for(z=K.next();!z.done;z=K.next())y=z.value,(c=x.resolveIcon(y))&&!x.iconCache[c.url]&&D.push(_.ic9(x,c).then(function(){}).catch(function(){}));
return W.return(Promise.all(D))})};
FFk=function(x,G){var D=[];G=(new Set(G)).values();G=_.l(G);for(var K=G.next();!K.done;K=G.next()){K=K.value;for(var z=_.l(Object.values(H2b)),y=z.next();!y.done;y=z.next())D.push({iconName:K,iconStyle:y.value})}$Yj(x.iconManager,D)};
_.CNC=function(x,G,D){var K=D!=null?D:x.iconsToFetch;K!=null&&K.length?G!==void 0&&G>=0?_.Bw(_.Fj,function(){FFk(x,K)},G):FFk(x,K):Promise.resolve()};
c1T=function(x,G){G=new _.WTh(new _.ln$(G));_.ih&&x.prototype&&(0,_.ih)(G,x.prototype);return G};
T4i=function(x){return x};
WFf=function(x,G,D){var K=this;this.renderFn=x;this.listeners=G;this.context=D;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var z;this.lastSeenPlayerApi=_.jJ((z=this.playerControlsData)==null?void 0:z.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.dTO(),void 0);_.B("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){T0x(K).setState({playerState:-1});K.resetRecentlyNavigatedJobId&&_.Fj.cancelJob(K.resetRecentlyNavigatedJobId);
K.recentlyNavigated=!0;K.resetRecentlyNavigatedJobId=_.Fj.addJob(function(){K.recentlyNavigated=!1},8,1E4)})};
WFf.prototype.setState=function(x){if(!_.B("mweb_player_skip_no_op_state_changes")||!nYT(x,this.state))if(this.state=Object.assign({},this.state,x),!_.B("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)x=-1,_.B("player_controls_log_creation_killswitch")||i9C()||(x=(0,_.kK)()),_.Fs("pcu_s"),_.Fs("pcu_se"),_.Fs("pcu_rs"),this.renderFn(T0x(this)),_.Fs("pcu_re"),gYY(x),_.Fj.addJob(function(){_.Fs("pcu_ap")},8)};
var T0x=function(x){var G;var D=_.jJ((G=x.playerControlsData)==null?void 0:G.playerApi);return Object.assign({},x.state,{setState:x.boundSetState,domMeasurements:{progressBarLineRect:x.progressBarLineRect},playerApi:D,appApi:x.context.appApi,playerContainer:x.context.playerContainer,playerControlContainer:x.context.playerControlContainer,uxConfig:x.context.uxConfig})},e5T=function(x){x.listeners.forEach(function(G){x.eventListenerCleanupFunctions.push(G.register(function(){return T0x(x)},function(){return x.getData()}))})},
Z2c=function(x){x.eventListenerCleanupFunctions.forEach(function(G){G()});
x.eventListenerCleanupFunctions.length=0};
WFf.prototype.getData=function(){return this.playerControlsData};
var xU=new _.J("abuseReportFlowState");var I_c=new _.J("feedbackFormFlowState");var jh4=new _.J("inputBoxViewModel");var O2f=new _.J("flowNextStepCommand");var Xuj=new _.J("flowPrevStepCommand");var AO4=new _.J("updateFlowCommand");_.UYO=new _.J("flowStepRenderer");_.$1T=new _.J("lengthValidationRule");var CXO=new _.J("regexValidationRule");var j0C=new _.J("selectedValidationRule");var R5j=new _.J("talkToRecsViewModel");var Sa4=new _.J("creatorGoalSetUpFlowDropdownItemViewModel");var nSb=new _.J("creatorGoalSetUpFlowDropdownViewModel");var z5i=new _.J("thumbnailBadgeViewModel");_.i2O=new _.J("radioButtonGroupViewModel");var qsx=new _.J("panelFooterViewModel");var gSc=new _.J("ypcCancelRecurrenceCommand");var unx=new _.J("cancellationFlowState");var Q0f=new _.J("premiumPurchaseFlowState");var dY4=new _.J("surveyAnswerCardRenderer");var wuC=new _.J("showMoreButtonRenderer");var qax;var N0f,vSf=function(){if(N0f!==void 0)return N0f;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;qax===void 0&&(qax=document.createElement("template"));var K=qax;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return N0f=x};var GG=function(){var x=_.n.apply(this,arguments)||this;x.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";x.goalDescription="";x.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";x.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";x.startButtonId="start-button";x.exampleButtonId="example-button";return x};
_.m(GG,_.n);_.a=GG.prototype;_.a.getGoalDropdownItems=function(){var x,G;return(G=_.Y((x=this.data)==null?void 0:x.purchaseTargetDropdown,nSb))==null?void 0:G.dropdownItems};
_.a.getTimerDropdownItems=function(){var x,G;return(G=_.Y((x=this.data)==null?void 0:x.timerDropdown,nSb))==null?void 0:G.dropdownItems};
_.a.getColorDropdownItems=function(){var x,G;return(G=_.Y((x=this.data)==null?void 0:x.colorDropdown,nSb))==null?void 0:G.dropdownItems};
_.a.getDropdownItemText=function(x){var G;return(G=_.Y(x,Sa4))==null?void 0:G.itemLabel};
_.a.getDropdownItemValue=function(x){x=_.Y(x,Sa4);return(x==null?void 0:x.timeLimit)||(x==null?void 0:x.purchaseTarget)||(x==null?void 0:x.eligiblePurchaseType)};
_.a.updateFlowState=function(x){_.xO(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:x}])};
_.a.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.a.updateGoalValue=function(x){this.goal=x.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.a.onTextValueChanged=function(x){this.goalDescription=x.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.a.updateTimerValue=function(x){this.timer=x.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.a.updateTierValue=function(x){this.tier=x.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.a.getButtonViewModel=function(x){x=(x==null?void 0:x.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var G,D=_.Y((G=this.data)==null?void 0:G.startGoalButton,_.Ls);return Object.assign({},D,{state:x})};
_.Nq.Object.defineProperties(GG,{template:{configurable:!0,enumerable:!0,get:function(){return vSf()}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],GG.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],GG.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],GG.prototype,"goal",void 0);_.q([_.R(),_.N("design:type",Object)],GG.prototype,"goalDescription",void 0);_.q([_.R(),_.N("design:type",Object)],GG.prototype,"timer",void 0);_.q([_.R(),_.N("design:type",Object)],GG.prototype,"tier",void 0);
_.q([_.R(),_.N("design:type",Object)],GG.prototype,"startButtonId",void 0);_.q([_.R(),_.N("design:type",Object)],GG.prototype,"exampleButtonId",void 0);GG=_.q([_.HD({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],GG);_.w(GG,"yt-creator-goal-set-up-flow-view-model",function(){return vSf()},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var JOc;var f_C;var tif;var D5=function(){return _.n.apply(this,arguments)||this};
_.m(D5,_.n);_.q([_.R(),_.N("design:type",Object)],D5.prototype,"data",void 0);D5=_.q([_.HD({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],D5);
_.w(D5,"yt-survey-answer-card-renderer",function(){if(tif===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;f_C===void 0&&(f_C=document.createElement("template"));var K=f_C;D.call(G,K.content.cloneNode(!0),x.content.firstChild);tif=x}x=tif;return x},{mode:2});var kj4;var PNx;var Kk=function(){return _.n.apply(this,arguments)||this};
_.m(Kk,_.n);_.a=Kk.prototype;_.a.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.a.selectedItemChanged=function(x){_.xO(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[x.feedbackToken||""]}])};
_.a.surveyAnswerCardRendererClicked=function(x){if(x.target&&_.Y(x.model.item,dY4)){var G=x.target;x=_.Y(x.model.item,dY4);x.onTapCommand?_.zl(G,[x.onTapCommand],G):this.data.onTapCommand&&_.zl(G,[this.data.onTapCommand],G);this.selectedItemChanged(x)}};
_.a.checkIsCancellationStyle=function(x){return x==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.a.updateSelectedItemFromBinding=function(x){this.selectedItem=x.detail.value};
Kk.prototype.onSelectedItemChanged=Kk.prototype.onSelectedItemChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Kk.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Kk.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],Kk.prototype,"selectedItem",void 0);_.q([_.R({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Kk.prototype,"isCancellationStyle",void 0);
_.q([_.yf("selectedItem"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kk.prototype,"onSelectedItemChanged",null);Kk=_.q([_.HD({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],Kk);
_.w(Kk,"yt-survey-flow-step-renderer",function(){if(PNx===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;kj4===void 0&&(kj4=document.createElement("template"));var K=kj4;D.call(G,K.content.cloneNode(!0),x.content.firstChild);PNx=x}x=PNx;return x},{mode:2});var zG=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return x};
_.m(zG,_.n);zG.prototype.handleSurveyFlowStepOptionChanged=function(x){this.ytdReduxBehavior.dispatch(_.EO({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:x}));_.xO(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:x}}])};
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],zG.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],zG.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],zG.prototype,"data",void 0);zG=_.q([_.d({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],zG);
_.w(zG,"ytd-survey-flow-step-renderer",function(){if(JOc!==void 0)return JOc;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return JOc=x},{mode:1});var u_f;u_f=_.MF({avatarViewModel:_.Lj,buttonViewModel:_.Cs,subscribeButtonViewModel:_.Bt,imageBannerViewModel:_.q07});_.ESj=_.TY(_.wC6);_.E9(_.wC6);var h5j;var ak=function(){return _.n.apply(this,arguments)||this};
_.m(ak,_.n);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],ak.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],ak.prototype,"data",void 0);ak=_.q([_.d({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],ak);
_.w(ak,"ytd-channel-history-renderer",function(){if(h5j!==void 0)return h5j;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return h5j=x},{mode:1});var xyT;var ok=function(){return _.n.apply(this,arguments)||this};
_.m(ok,_.n);_.q([_.R(),_.N("design:type",Object)],ok.prototype,"data",void 0);ok=_.q([_.d({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],ok);
_.w(ok,"ytd-feature-enablement-info-renderer",function(){if(xyT!==void 0)return xyT;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return xyT=x},{mode:1});var GHf;var Dy6;var yA=function(){var x=_.n.apply(this,arguments)||this;x.textBoxMaxLength=_.B("enable_tvod_campaign_code_integration")?15:12;return x};
_.m(yA,_.n);_.a=yA.prototype;_.a.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.a.onSubmit=function(){var x=this.data.serviceEndpoint,G=_.Y(x,_.hc);G&&x&&(G.couponCode=this.userInput,_.Eo().resolve(_.hm).resolveCommand(x,{form:{element:this.hostElement}}))};
_.a.validate=function(){var x=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=x&&!this.data.errorMessage;this.showErrorMessage=x&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.B("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.a.computeStyle=function(x){return x};
_.a.computeShowValidationBelowInput=function(x){return x!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.a.updateUserInputFromBinding=function(x){this.userInput=x.currentTarget.value};
_.a.updateShowErrorMessageFromBinding=function(x){this.showErrorMessage=x.detail.value};
_.Nq.Object.defineProperties(yA.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
yA.prototype.dataChanged=yA.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],yA.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],yA.prototype,"data",void 0);_.q([_.R(),_.N("design:type",String)],yA.prototype,"userInput",void 0);_.q([_.R(),_.N("design:type",Boolean)],yA.prototype,"disableApplyButton",void 0);_.q([_.R(),_.N("design:type",Boolean)],yA.prototype,"hideApplyButton",void 0);
_.q([_.R(),_.N("design:type",Boolean)],yA.prototype,"hideErrorMessage",void 0);_.q([_.R(),_.N("design:type",Boolean)],yA.prototype,"showTick",void 0);_.q([_.R(),_.N("design:type",Boolean)],yA.prototype,"showErrorMessage",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],yA.prototype,"couponStyle",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.N("design:type",Boolean)],yA.prototype,"showValidationBelowInput",void 0);_.q([_.R(),_.N("design:type",Object)],yA.prototype,"textBoxMaxLength",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yA.prototype,"dataChanged",null);
_.q([_.U("showTick","showErrorMessage","userInput"),_.N("design:type",String),_.N("design:paramtypes",[])],yA.prototype,"validationState",null);yA=_.q([_.d({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],yA);
_.w(yA,"ytd-ypc-coupon-renderer",function(){if(Dy6!==void 0)return Dy6;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Dy6=x},{mode:1});var li=function(){return _.n.apply(this,arguments)||this};
_.m(li,_.n);li.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"}}}};
li.prototype.computeStyle=function(x){return x};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],li.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],li.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],li.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],li.prototype,"buttonStyle",void 0);li=_.q([_.d({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],li);
_.w(li,"ytd-flow-bottom-bar-renderer",function(){if(GHf!==void 0)return GHf;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return GHf=x},{mode:1});var KWx;var zCc;var aEc;var cQ=function(){return _.n.apply(this,arguments)||this};
_.m(cQ,_.n);cQ.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
cQ.prototype.focus=function(x){this.title&&_.vS(this.title,x)};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],cQ.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],cQ.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],cQ.prototype,"data",void 0);_.q([_.cD("#title"),_.N("design:type",HTMLElement)],cQ.prototype,"title",void 0);cQ=_.q([_.d({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],cQ);
_.w(cQ,"ytd-flow-top-bar-renderer",function(){if(aEc!==void 0)return aEc;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return aEc=x},{mode:1});var oaf;var yEi;var lE8;var TG=function(){return _.n.apply(this,arguments)||this};
_.m(TG,_.n);TG.prototype.freeTextValueChanged=function(){_.xO(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
TG.prototype.updateFreeTextValueFromBinding=function(x){this.freeTextValue=x.detail.value};
_.Nq.Object.defineProperties(TG.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var x,G,D=(G=(x=this.data)==null?void 0:x.responseMaxLength)!=null?G:500,K;return((K=this.freeTextValue)!=null?K:"").length>=D?"maxed-out":""}}});
TG.prototype.freeTextValueChanged=TG.prototype.freeTextValueChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],TG.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],TG.prototype,"data",void 0);_.q([_.R(),_.N("design:type",String)],TG.prototype,"freeTextValue",void 0);_.q([_.cD("#user-input"),_.N("design:type",HTMLTextAreaElement)],TG.prototype,"input",void 0);
_.q([_.U("freeTextValue"),_.N("design:type",Object),_.N("design:paramtypes",[])],TG.prototype,"characterLimitClass",null);_.q([_.yf("freeTextValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TG.prototype,"freeTextValueChanged",null);TG=_.q([_.HD({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],TG);
_.w(TG,"yt-free-text-input-flow-step-renderer",function(){if(lE8===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;yEi===void 0&&(yEi=document.createElement("template"));var K=yEi;D.call(G,K.content.cloneNode(!0),x.content.firstChild);lE8=x}x=lE8;return x},{mode:2});var WQ=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return x};
_.m(WQ,_.n);WQ.prototype.handleFreeTextFlowStepInputChanged=function(x){_.xO(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:x}}])};
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],WQ.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],WQ.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],WQ.prototype,"data",void 0);WQ=_.q([_.d({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],WQ);
_.w(WQ,"ytd-free-text-input-flow-step-renderer",function(){if(oaf!==void 0)return oaf;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return oaf=x},{mode:1});var cEb;var TMT;var eA=function(){return _.n.apply(this,arguments)||this};
_.m(eA,_.n);_.q([_.R(),_.N("design:type",Object)],eA.prototype,"data",void 0);eA=_.q([_.d({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],eA);
_.w(eA,"ytd-metadata-line-renderer",function(){if(TMT!==void 0)return TMT;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return TMT=x},{mode:1});var Z5=function(){return _.n.apply(this,arguments)||this};
_.m(Z5,_.n);Z5.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Z5.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Z5.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Z5.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],Z5.prototype,"isMasthead",void 0);Z5=_.q([_.d({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],Z5);
_.w(Z5,"ytd-media-product-renderer",function(){if(cEb!==void 0)return cEb;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return cEb=x},{mode:1});var WWb;var Me=function(){return _.n.apply(this,arguments)||this};
_.m(Me,_.n);Me.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
Me.prototype.onBillboardImageLoaded=function(){_.h$(this.hostElement,"yt-refit")};
Me.prototype.onBillboardImageLoaded=Me.prototype.onBillboardImageLoaded;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Me.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Me.prototype,"data",void 0);_.q([_.cD("#billboardImage"),_.N("design:type",Object)],Me.prototype,"billboardImage",void 0);_.q([_.oe("yt-img-shadow-loaded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Me.prototype,"onBillboardImageLoaded",null);
Me=_.q([_.d({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],Me);
_.w(Me,"ytd-billboard-masthead-renderer",function(){if(WWb!==void 0)return WWb;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return WWb=x},{mode:1});var eCx;var QA=function(){var x=_.n.apply(this,arguments)||this;x.smallSize=!1;return x};
_.m(QA,_.n);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],QA.prototype,"ytComponentBehaviorType",void 0);_.q([_.R(),_.N("design:type",Object)],QA.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],QA.prototype,"smallSize",void 0);QA=_.q([_.d({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],QA);
_.w(QA,"ytd-bullet-formatted-string",function(){if(eCx!==void 0)return eCx;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return eCx=x},{mode:1});var Z4C;var pk=function(){return _.n.apply(this,arguments)||this};
_.m(pk,_.n);pk.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],pk.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],pk.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],pk.prototype,"data",void 0);pk=_.q([_.d({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],pk);
_.w(pk,"ytd-offer-detail-renderer",function(){if(Z4C!==void 0)return Z4C;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Z4C=x},{mode:1});var MBc;var VA=function(){return _.n.apply(this,arguments)||this};
_.m(VA,_.n);VA.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"}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],VA.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],VA.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],VA.prototype,"data",void 0);VA=_.q([_.d({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],VA);
_.w(VA,"ytd-offer-detail-step-renderer",function(){if(MBc!==void 0)return MBc;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return MBc=x},{mode:1});var QKC;var bi=function(){var x=_.n.apply(this,arguments)||this;x.isInOfferModule=!1;return x};
_.m(bi,_.n);_.a=bi.prototype;_.a.computeHasEndpoint=function(){var x;return!((x=this.data)==null||!x.onClickCommand)};
_.a.dataChanged=function(){var x;if((x=this.data)==null?0:x.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")};
_.a.detached=function(){var x;if((x=this.data)==null?0:x.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.a.handleClickEvent=function(){var x;if((x=this.data)==null?0:x.onClickCommand){var G;this.componentBehavior.resolveCommand((G=this.data)==null?void 0:G.onClickCommand)}};
_.a.onContentKeyDown=function(x){x.key==="Enter"?this.handleClickEvent(x):x.key===" "&&x.preventDefault()};
_.a.onContentKeyUp=function(x){x.key===" "&&this.handleClickEvent(x)};
bi.prototype.dataChanged=bi.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],bi.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],bi.prototype,"componentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],bi.prototype,"data",void 0);_.q([_.R({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],bi.prototype,"hasEndpoint",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],bi.prototype,"isInOfferModule",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bi.prototype,"dataChanged",null);bi=_.q([_.d({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],bi);
_.w(bi,"ytd-channel-masthead-renderer",function(){if(QKC!==void 0)return QKC;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return QKC=x},{mode:1});var pZc;var Lk=function(){var x=_.n.apply(this,arguments)||this;x.thumbnailObjectFit="CONTAIN";x.thumbnailObjectPosition="LEFT";x.isExpanded=!1;return x};
_.m(Lk,_.n);_.a=Lk.prototype;_.a.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.a.dataChanged=function(){this.resetStates()};
_.a.computeisTapOnOfferInfoContainerEnabled=function(){var x;return((x=this.data)==null?void 0:x.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.a.onExpandBtnClick=function(){var x,G=_.Y((x=this.data)==null?void 0:x.showMoreButtonRenderer,wuC);G&&_.DO(_.en(),G.trackingParams);this.isExpanded=!this.isExpanded};
_.a.onOfferInfoClick=function(x){this.isTapOnOfferInfoContainerEnabled&&(_.u_(_.gA(x)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.dG(_.gA(x)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.a.onBottomBarClick=function(){this.executeTapCommand()};
_.a.executeTapCommand=function(){var x,G=(x=this.data)==null?void 0:x.tapCommand;G&&this.ytComponentBehavior.resolveCommand(G)};
_.a.resetStates=function(){this.isExpanded=!1};
_.Nq.Object.defineProperties(Lk.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var x=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),G,D,K;return((G=this.data)==null?void 0:G.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&x&&!!((D=this.data)==null?0:(K=D.benefits)==null?0:K.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var x,G,D;return((G=_.Y((x=this.data)==null?void 0:x.showMoreButtonRenderer,wuC))==null?void 0:G.showMoreButtonTitle)||((D=this.data)==null?void 0:D.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var x,G,D;return((G=_.Y((x=this.data)==null?void 0:x.showMoreButtonRenderer,wuC))==null?void 0:G.showLessButtonTitle)||((D=this.data)==null?void 0:D.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var x;return(x=this.showLessButtonTitle)!=null?x:""}var G;return(G=this.showMoreButtonTitle)!=null?G:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var x,G,D;return((x=this.data)==null?void 0:x.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((G=this.data)==null?0:G.footerTitle)||((D=this.data)==null?0:D.footerSubtitle))}}});
Lk.prototype.dataChanged=Lk.prototype.dataChanged;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Lk.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Lk.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Lk.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",String)],Lk.prototype,"thumbnailObjectFit",void 0);
_.q([_.R(),_.N("design:type",String)],Lk.prototype,"thumbnailObjectPosition",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.N("design:type",Boolean)],Lk.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.q([_.R(),_.N("design:type",Object)],Lk.prototype,"isExpanded",void 0);_.q([_.R(),_.N("design:type",Object)],Lk.prototype,"data",void 0);_.q([_.R({computed:"computeIcon_(data.footerIcon)"}),_.N("design:type",String)],Lk.prototype,"icon",void 0);
_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Lk.prototype,"dataChanged",null);_.q([_.U("data.thumbnail"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Lk.prototype,"hasThumbnail",null);_.q([_.U("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Lk.prototype,"enableExpandButton",null);
_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Lk.prototype,"enableOfferContentIcon",null);_.q([_.U("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.N("design:type",Object),_.N("design:paramtypes",[])],Lk.prototype,"showMoreButtonTitle",null);_.q([_.U("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.N("design:type",Object),_.N("design:paramtypes",[])],Lk.prototype,"showLessButtonTitle",null);
_.q([_.U("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.N("design:type",String),_.N("design:paramtypes",[])],Lk.prototype,"expandedBtnText",null);_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Lk.prototype,"enableBottomBar",null);Lk=_.q([_.d({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],Lk);
_.w(Lk,"ytd-offer-card-renderer",function(){if(pZc!==void 0)return pZc;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return pZc=x},{mode:1});var VBj;var BQ=function(){return _.n.apply(this,arguments)||this};
_.m(BQ,_.n);BQ.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"}}}};
BQ.prototype.onClick=function(x){if(!_.u_(x.composedPath()||[],this.hostElement,["A".toString()])){var G,D;if((x=(D=_.Y((G=this.data)==null?void 0:G.actionButton,_.$V))==null?void 0:D.command)&&!this.ytComponentBehavior.resolveCommand(x)){var K;(K=_.en())==null||K.clickCommand(x);_.Eo().resolve(_.hm).resolveCommand(x,{form:{element:this.hostElement}})}}};
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],BQ.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],BQ.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],BQ.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],BQ.prototype,"data",void 0);BQ=_.q([_.d({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],BQ);
_.w(BQ,"ytd-offer-content-renderer",function(){if(VBj!==void 0)return VBj;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return VBj=x},{mode:1});var b4f;var rN=function(){return _.n.apply(this,arguments)||this};
_.m(rN,_.n);rN.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.Nq.Object.defineProperties(rN.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var x,G;return!((x=this.data)==null||!x.title)||!((G=this.data)==null||!G.description)}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],rN.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],rN.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],rN.prototype,"data",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],rN.prototype,"hasHeaderData",null);rN=_.q([_.d({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],rN);
_.w(rN,"ytd-offer-section-renderer",function(){if(b4f!==void 0)return b4f;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return b4f=x},{mode:1});var LWi;var sl=function(){return _.n.apply(this,arguments)||this};
_.m(sl,_.n);
sl.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"}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],sl.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],sl.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],sl.prototype,"data",void 0);sl=_.q([_.d({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],sl);
_.w(sl,"ytd-offer-selection-step-renderer",function(){if(LWi!==void 0)return LWi;var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return LWi=x},{mode:1});var BMY;var YU=function(){return _.n.apply(this,arguments)||this};
_.m(YU,_.n);YU.prototype.computeStyle=function(x){return x};
YU.prototype.computeImageWidth=function(x){return x==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.q([_.R({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.N("design:type",String)],YU.prototype,"containerStyle",void 0);_.q([_.R({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.N("design:type",String)],YU.prototype,"imageWidth",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],YU.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],YU.prototype,"data",void 0);
YU=_.q([_.d({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],YU);
_.w(YU,"ytd-confirmation-masthead-renderer",function(){if(BMY!==void 0)return BMY;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return BMY=x},{mode:1});var rEf;var mr=function(){return _.n.apply(this,arguments)||this};
_.m(mr,_.n);mr.prototype.computeStyle=function(x){return x};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],mr.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],mr.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.N("design:type",String)],mr.prototype,"containerStyle",void 0);mr=_.q([_.d({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],mr);
_.w(mr,"ytd-purchase-complete-detail-renderer",function(){if(rEf!==void 0)return rEf;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return rEf=x},{mode:1});var sK6;var HQ=function(){var x=_.n.apply(this,arguments)||this;x.scriptsAppended=!1;return x};
_.m(HQ,_.n);HQ.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"}}}};
HQ.prototype.onDataChanged=function(){var x=this.get("data.gtmId");x&&(_.pF(x,_.Am("GL","")),this.setupConversionTracking())};
HQ.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var x=document.createElement("noscript");x.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(x);this.scriptsAppended=!0}};
HQ.prototype.onDataChanged=HQ.prototype.onDataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],HQ.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],HQ.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],HQ.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],HQ.prototype,"scriptsAppended",void 0);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HQ.prototype,"onDataChanged",null);HQ=_.q([_.d({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],HQ);
_.w(HQ,"ytd-purchase-complete-step-renderer",function(){if(sK6!==void 0)return sK6;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return sK6=x},{mode:1});var YP4;var $U=function(){var x=_.n.apply(this,arguments)||this;x.darkerDarkTheme=_.B("web_darker_dark_theme");return x};
_.m($U,_.n);$U.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],$U.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],$U.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],$U.prototype,"darkerDarkTheme",void 0);$U=_.q([_.d({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],$U);
_.w($U,"ytd-ypc-transaction-error-message-renderer",function(){if(YP4!==void 0)return YP4;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return YP4=x},{mode:1});var my4;var H4f;var F3=function(){var x=_.n.apply(this,arguments)||this;x.handlePhoneVerificationSuccess=function(G){if(x.isValidPhoneVerificationCompletionMessageEvent(G)){var D;((D=x.data)==null?0:D.nextStepCommand)&&x.ytComponentBehavior.resolveCommand(x.data.nextStepCommand)}};
return x};
_.m(F3,_.n);F3.prototype.isValidPhoneVerificationCompletionMessageEvent=function(x){if(x.data!=="yt-phone-verification-complete")return!1;x=_.Jm(x.origin);return x!==null&&x.includes("youtube.com")};
F3.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
F3.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],F3.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],F3.prototype,"data",void 0);F3=_.q([_.HD({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],F3);
_.w(F3,"yt-feature-enablement-soft-entry-renderer",function(){if(H4f===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;my4===void 0&&(my4=document.createElement("template"));var K=my4;D.call(G,K.content.cloneNode(!0),x.content.firstChild);H4f=x}x=H4f;return x},{mode:1});var $yf;var FWY;var CPc;var IE4;var Ck=function(){return _.n.apply(this,arguments)||this};
_.m(Ck,_.n);_.q([_.R(),_.N("design:type",Object)],Ck.prototype,"data",void 0);Ck=_.q([_.HD({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],Ck);
_.w(Ck,"yt-benefits-item-renderer",function(){if(IE4===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;CPc===void 0&&(CPc=document.createElement("template"));var K=CPc;D.call(G,K.content.cloneNode(!0),x.content.firstChild);IE4=x}x=IE4;return x},{mode:2});var jKc;var O4T;var Ik=function(){return _.n.apply(this,arguments)||this};
_.m(Ik,_.n);Ik.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Ik.prototype.computeisWithoutPadding=function(){var x;return((x=this.data)==null?void 0:x.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Ik.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Ik.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.N("design:type",Boolean)],Ik.prototype,"isWithoutPadding",void 0);Ik=_.q([_.HD({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],Ik);
_.w(Ik,"yt-benefits-section-renderer",function(){if(O4T===void 0){var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;jKc===void 0&&(jKc=document.createElement("template"));var K=jKc;D.call(G,K.content.cloneNode(!0),x.content.firstChild);O4T=x}x=O4T;return x},{mode:2});var jA=function(){return _.n.apply(this,arguments)||this};
_.m(jA,_.n);jA.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
jA.prototype.computeisUsingLargeWidth=function(){var x;return((x=this.data)==null?void 0:x.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],jA.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],jA.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.N("design:type",Boolean)],jA.prototype,"isUsingLargeWidth",void 0);jA=_.q([_.HD({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],jA);
_.w(jA,"yt-benefits-flow-step-renderer",function(){if(FWY===void 0){var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;$yf===void 0&&($yf=document.createElement("template"));var K=$yf;D.call(G,K.content.cloneNode(!0),x.content.firstChild);FWY=x}x=FWY;return x},{mode:2});var XZC;var AEk;var Ol=function(){return _.n.apply(this,arguments)||this};
_.m(Ol,_.n);Ol.prototype.checkIsUsingLargeWidth=function(){var x;return((x=this.data)==null?void 0:x.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.q([_.R(),_.N("design:type",Object)],Ol.prototype,"data",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Ol.prototype,"ytRendererBehavior",void 0);_.q([_.R({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.N("design:type",Boolean)],Ol.prototype,"isUsingLargeWidth",void 0);Ol=_.q([_.HD({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],Ol);
_.w(Ol,"yt-confirmation-flow-step-renderer",function(){if(AEk===void 0){var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;XZC===void 0&&(XZC=document.createElement("template"));var K=XZC;D.call(G,K.content.cloneNode(!0),x.content.firstChild);AEk=x}x=AEk;return x},{mode:2});var Uy8;var RCx;var X3=function(){return _.n.apply(this,arguments)||this};
_.m(X3,_.n);_.q([_.R(),_.N("design:type",Object)],X3.prototype,"data",void 0);X3=_.q([_.HD({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],X3);
_.w(X3,"yt-info-flow-step-renderer",function(){if(RCx===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;Uy8===void 0&&(Uy8=document.createElement("template"));var K=Uy8;D.call(G,K.content.cloneNode(!0),x.content.firstChild);RCx=x}x=RCx;return x},{mode:2});var SP4;var naj;var AA=function(){return _.n.apply(this,arguments)||this};
_.m(AA,_.n);_.q([_.R(),_.N("design:type",Object)],AA.prototype,"data",void 0);AA=_.q([_.HD({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],AA);
_.w(AA,"yt-info-list-flow-step-renderer",function(){if(naj===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;SP4===void 0&&(SP4=document.createElement("template"));var K=SP4;D.call(G,K.content.cloneNode(!0),x.content.firstChild);naj=x}x=naj;return x},{mode:2});var i4x=_.Nv(function(x){var G=x.data;return _.M("styled-text-view-model",{class:_.ym("ytStyledTextViewModelHost",function(){return D1f(G().fontAttributes)},function(){return GAf(G().color)})},_.M(_.vq,{text:function(){return G().text},
ariaLabel:function(){var D,K,z;return(z=(D=G().accessibility)==null?void 0:(K=D.accessibilityData)==null?void 0:K.label)!=null?z:""}}))},"Ze");
i4x.idomCompat=!0;var gai=_.Nv(function(x){var G=function(){var z,y,c,W;return(W=(c=(z=x.alt)==null?void 0:z.call(x))!=null?c:(y=x.data().accessibilityData)==null?void 0:y.label)!=null?W:""},D=function(){return x.data().imageWidth},K=function(){return x.data().imageHeight};
return _.M("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.M(_.b,{cond:function(){var z=x.data();if(z){var y,c,W;var e=((y=_.Eo().resolve(_.P6(_.ib)))==null?0:y())?(c=z.imageDark)!=null?c:z.imageLight:(W=z.imageLight)!=null?W:z.imageDark}else e=void 0;return e},
then:function(z){return _.M(_.wk,Object.assign({},x,{data:z,alt:G,targetWidth:D,targetHeight:K,preserveHeight:!0,preserveWidth:!0}))}}))},"$e");
gai.idomCompat=!0;var Ul=_.Nv(function(x){var G=x.data;x=_.wc(function(){return G().slots},[]);
var D=_.wc(function(){return G().layoutProperties},{}),K=_.Eo().resolve(_.ub);
return _.M("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:kWc(D,K)},_.M(_.LT,{each:x,keyBy:"INDEX"},function(z){return _.M("div",{class:"ytContainerLayoutViewModelSlot",style:kWc(function(){return z().layoutProperties},K)},_.M(_.bA,{data:function(){return z().contents}},{containerLayoutViewModel:Ul,
badgeViewModel:_.v2,buttonViewModel:_.Cs,styledTextViewModel:i4x,contentPreviewImageViewModel:function(y){return _.M(_.JK,{data:y.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(y){return _.M(gai,{data:y.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"af");
Ul.idomCompat=!0;var ukO=_.Nv(function(x){var G=x.data;var D=x.stateFns;var K=function(){var Q=G(),p=Q.productId;return!(!Q.clearGroupId&&!p)},z=function(){var Q=G(),p=Q.clearGroupId;
return(Q=Q.productId)?D().isProductSelected(Q):p?D().getSelectedProductByGroupId(p)==null:!1},y=function(){var Q=G(),p=Q.clearGroupId;
if(Q=Q.productId)D().onProductSelected(Q);else if(p)D().onClearGroupSelected(p)},c=function(){var Q=G(),p=Q.clearGroupId;
if(Q=Q.productId){var V;return"group:"+(((V=D().getProductById(Q))==null?void 0:V.groupId)||"")}return p?"group:"+p:""},W=_.wc(function(){return G().header},[]),e=_.wc(function(){return G().body},[]);
return _.M("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.M(_.b,{cond:function(){return W().length>0||K()},
then:function(){return _.M("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.M("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.M(_.bA,{data:W},{containerLayoutViewModel:function(Q){return _.M("div",{class:"ytPdpCardSectionViewModelContentItem"},_.M(Ul,{data:Q.data}))},
styledTextViewModel:function(Q){return _.M("div",{class:"ytPdpCardSectionViewModelContentItem"},_.M(i4x,{data:Q.data}))}})),_.M(_.b,{cond:K,
then:function(){return _.M("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.M(_.BB,{checked:z,name:c,onChange:y}))}}))}}),_.M(_.b,{cond:function(){return e().length>0},
then:function(){return _.M("div",null,_.M(_.bA,{data:e},{containerLayoutViewModel:function(Q){return _.M("div",{class:"ytPdpCardSectionViewModelContentItem"},_.M(Ul,{data:Q.data}))}}))}}))},"bf");
ukO.idomCompat=!0;var dyk=_.Nv(function(x){var G=x.data;var D=x.stateFns;return _.M("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.M(_.b,{cond:function(){return G().banner},
then:function(K){return _.M("div",{class:"ytPdpCardViewModelBanner"},_.M(_.vq,{text:K}))}}),_.M(_.bA,{data:function(){return G().sections}},{pdpCardSectionViewModel:function(K){K=K.data;
var z={};return _.M("div",{class:_.ym("ytPdpCardViewModelSectionContainer",(z.ytPdpCardViewModelShowDividers=function(){return G().showDividers},z))},_.M(ukO,{data:K,
stateFns:D}))}}))},"cf");
dyk.idomCompat=!0;var wZT=_.Nv(function(x){var G=x.data;var D=x.isOverlay;x={};return _.M("pdp-masthead-view-model",{class:_.ym("ytPdpMastheadViewModelHost",(x.ytPdpMastheadViewModelIsOverlay=D,x))},_.M(_.bA,{data:function(){return G().image}},{contentPreviewImageViewModel:_.JK,
themedImageViewModel:function(K){return _.M(gai,{data:K.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.M(_.b,{cond:function(){return G().title},
then:function(K){return _.M("h1",{class:"ytPdpMastheadViewModelHeading"},_.M(_.vq,{text:K,isOverlay:D}))}}),_.M(_.LT,{each:function(){var K;
return(K=G().finePrint)!=null?K:[]}},function(K){return _.M("div",{class:"ytPdpMastheadViewModelFinePrint"},_.M(_.vq,{text:K,
isOverlay:D}))}))},"df");
wZT.idomCompat=!0;var qPk=_.Nv(function(x){var G=x.data;var D=x.stateFns;return _.M("pdp-pricing-option-selector-view-model",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.M(_.LT,{each:function(){var K=D().getSelectedPricingOptions().map(function(y){return y.pricingOptionId}),z=D().getSelectedProductByGroupId(G().groupId);
return z?z.pricingOptions.map(function(y){return{pricingOption:y,isSelected:K.includes(y.pricingOptionId)}}):(_.jm(Error("Ej`"+G().groupId)),[])},
keyBy:"INDEX"},function(K){return _.M("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.M("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.M(_.bA,{data:function(){return K().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:Ul})),_.M("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.M(_.BB,{checked:function(){return K().isSelected},
onClick:function(){D().onPricingOptionSelected(K().pricingOption.pricingOptionId);var z=K().pricingOption.onSelectPricingOption;if(z=_.jn(z)){var y;(y=_.Eo().resolve(_.hm))==null||y.resolveCommand(z)}}})))}))},"ef");
qPk.idomCompat=!0;var NMx=_.Nv(function(x){var G=x.data;var D=x.stateFns;return _.M("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.M(_.bA,{data:function(){var K,z;return(z=(K=D().getSelectedPricingOptions()[0])==null?void 0:K.primaryButton)!=null?z:G().emptyStateButton}},{buttonViewModel:_.Cs}))},"ff");
NMx.idomCompat=!0;var vai=_.Nv(function(x){var G=x.stateFns;return _.M("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.M(_.bA,{data:function(){return G().getSelectedPricingOptions().flatMap(function(D){return D.summaryLines}).filter(function(D){return!!D})}},{containerLayoutViewModel:function(D){return _.M("div",{class:"ytPdpSummaryViewModelLineItem"},_.M(Ul,{data:D.data}))}}))},"gf");
vai.idomCompat=!0;var JE8=_.Nv(function(x){function G(A){var g=c();_.dc(_.sg("pdpStateEntity",g,{key:g,selectedPricingOptions:A}))}
var D=x.data;var K=x.internalScrolling;var z=x.stateFnsForTesting;var y=_.wc(function(){return D().allProducts},[]),c=_.wc(function(){return D().pdpStateEntityKey},""),W=_.lA(KVj,c),e=_.V9(function(){_.If(!0);
var A;return(A=z==null?void 0:z())!=null?A:eGC(W,y,G)},void 0,"POBqwe"),Q=_.wc(function(){return D().body},[]),p=_.wc(function(){return D().columnBreakHints},[]),V=function(){return D().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},L=function(){return V()||D().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},r=_.V9(function(){var A=_.NF(D().background),g;
if(A==null?0:(g=A.sources)==null?0:g.length){var u=u===void 0?!0:u;A=_.aMf(void 0,A.sources,void 0,u,u?1E3:void 0,u?void 0:1E3)}else A=null;return A},void 0,"BkCmEd");
x=_.Ms({"--pdp-view-model-background":function(){return r()?"url("+r()+")":void 0}});
var H={};K=_.ym("ytPdpViewModelHost",(H.ytPdpViewModelHasBackground=function(){return L()||!!r()},H.ytPdpViewModelHasDarkBackground=L,H.ytPdpViewModelHasScrim=V,H.ytPdpViewModelInternalScrolling=_.wc(K,!1),H));
var O=function(A){var g={};return _.ym("ytPdpViewModelItem",(g.ytPdpViewModelFullBleed=function(){return _.UjD(A())==="dividerViewModel"||_.UjD(A())==="sectionHeaderViewModel"},g.ytPdpViewModelNoVerticalPadding=function(){return _.UjD(A())==="sectionHeaderViewModel"},g))};
_.FQ(function(){var A=D().onStartCommand;if(A&&(A=_.jn(A))){var g;(g=_.Eo().resolve(_.hm))==null||g.resolveCommand(A)}});
return _.M("pdp-view-model",{class:K,style:x},_.M("div",{class:"ytPdpViewModelColumnContainer"},_.M(_.LT,{each:function(){return Zl6(Q(),p())},
keyBy:"INDEX"},function(A){return _.M("div",{class:"ytPdpViewModelColumn"},_.M(_.bA,{data:A},{containerLayoutViewModel:function(g,u){g=g.data;return _.M("div",{class:O(function(){return A()[u()]})},_.M(Ul,{data:g}))},
dividerViewModel:function(g,u){g=g.data;return _.M("div",{class:O(function(){return A()[u()]})},_.M(_.Eku,{data:g}))},
pdpCardViewModel:function(g,u){g=g.data;return _.M("div",{class:O(function(){return A()[u()]})},_.M(dyk,{data:g,
stateFns:e}))},
pdpMastheadViewModel:function(g,u){g=g.data;return _.M("div",{class:O(function(){return A()[u()]})},_.M(wZT,{data:g,
isOverlay:L}))},
pdpPricingOptionSelectorViewModel:function(g,u){g=g.data;return _.M("div",{class:O(function(){return A()[u()]})},_.M(qPk,{data:g,
stateFns:e}))},
pdpPrimaryButtonViewModel:function(g,u){g=g.data;return _.M("div",{class:O(function(){return A()[u()]})},_.M(NMx,{data:g,
stateFns:e}))},
pdpSummaryViewModel:function(g,u){g=g.data;return _.M("div",{class:O(function(){return A()[u()]})},_.M(vai,{data:g,
stateFns:e}))},
sectionHeaderViewModel:function(g,u){g=g.data;return _.M("div",{class:O(function(){return A()[u()]})},_.M(_.hF,{data:g}))}}))})))},"hf");
JE8.idomCompat=!0;_.tn(JE8,"pdp-view-model",{props:{data:_.ik,stateFnsForTesting:_.fz,internalScrolling:_.fz}});var fEf=_.Nv(function(x){var G=x.data;var D=x.className;var K=_.lA(_.k5,function(){return G().flowStateEntityKey});
return _.M("ytm-premium-purchase-button-renderer",{class:_.ym("yt-premium-purchase-button-renderer",D)},_.M(_.bA,{data:function(){var z;return(z=_.Y(K(),Q0f))==null?void 0:z.primaryButtonOverride}},{buttonRenderer:function(z){return _.M(_.RH,{data:z.data,
className:D})},
buttonViewModel:function(z){return _.M(_.Cs,{data:z.data,className:D})}}))},"jf");
fEf.idomCompat=!0;var tBb=_.Nv(function(x){var G=x.data;var D=function(){return Mz6(G().style)},K=_.ym("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",D),z=_.ym("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",D);
return _.M("yt-flow-bottom-bar-renderer",{class:_.ym("yt-flow-bottom-bar-renderer",x.className,D)},_.M(_.bA,{data:function(){return G().secondaryButton}},{buttonRenderer:function(y){return _.M(_.RH,{data:y.data,
className:z})},
buttonViewModel:function(y){return _.M(_.Cs,{data:y.data,className:z})},
premiumPurchaseButtonRenderer:function(y){return _.M(fEf,{data:y.data,className:z})}}),_.M(_.bA,{data:function(){return G().primaryButton}},{buttonRenderer:function(y){return _.M(_.RH,{data:y.data,
className:K})},
buttonViewModel:function(y){return _.M(_.Cs,{data:y.data,className:K})},
premiumPurchaseButtonRenderer:function(y){return _.M(fEf,{data:y.data,className:K})}}))},"kf");
tBb.idomCompat=!0;_.tn(tBb,"yt-flow-bottom-bar-renderer",{props:{data:_.ik,className:_.ik}});var kHb=_.Nv(function(x){return _.M("yt-offer-summary-renderer",{class:_.ym(x.className,"ytOfferSummaryRendererHost")},_.M("div",{class:"ytOfferSummaryRendererTextContainer"},_.M("div",{class:"ytOfferSummaryRendererEyebrowText"},_.M(_.vq,{text:function(){return x.data().eyebrowText}})),_.M("div",{class:"ytOfferSummaryRendererTitle"},_.M(_.vq,{text:function(){return x.data().title}})),_.M("div",{class:"ytOfferSummaryRendererSubtitle"},_.M(_.vq,{text:function(){return x.data().subtitle}})),_.M("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.M(_.LT,{each:function(){var G;
return(G=x.data().featureListData)!=null?G:[]}},function(G){var D;
return _.M("div",{class:"ytOfferSummaryRendererFeatureList"},_.M(_.Qm,{icon:(D=G.icon)==null?void 0:D.iconType,className:G.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytOfferSummaryRendererFeatureListIconGreen":"ytOfferSummaryRendererFeatureListIconDefault"}),_.M("div",{class:"ytOfferSummaryRendererFeatureListText"},_.M(_.vq,{text:G.text})))})),_.M("div",{class:"ytOfferSummaryRendererDescription"},_.M(_.vq,{text:function(){return x.data().description}}))))},"lf");_.tn(_.Nv(function(x){var G={};G=_.ym("ytOfferSummaryFlowStepRendererHost",(G.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=x.shouldDisableHeaderTopMargin,G));return _.M("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:G},_.M("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.M("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.M(_.vq,{text:function(){return x.data().header}})),_.M("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.M(_.vq,{text:function(){return x.data().subtitle}}))),_.M("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.M(_.bA,{data:function(){return x.data().offerSummary}},{offerSummaryRenderer:function(D){return _.M(kHb,{data:D.data,
className:x.flowClassName})}})))},"mf"),"yt-offer-summary-flow-step-renderer",{props:{data:_.fz,
flowClassName:_.fz,flowStateEntityKey:_.fz,shouldDisableHeaderTopMargin:_.fz}});var PPc=_.Nv(function(x){var G=x.data;var D=x.className;var K=x.flowStateEntityKey;var z=x.selectionStepStyle;x=_.WH(function(e){var Q=G(),p=K==null?void 0:K();e.target&&(e.stopPropagation(),e=p||"",p=_.k5(_.iD().getState(),e),Q=Object.assign({},p,{premiumPurchaseFlowState:{selectedOptionId:Q.optionId,primaryButtonOverride:Q.primaryButtonOverride}}),_.iD().dispatch(_.cq("flowStateEntity",e,Q)));return!1});
var y=function(){return(K==null?void 0:K())||""},c=_.lA(_.k5,y);
_.FQ(function(){var e=G(),Q=y(),p=c();e.defaultSelected&&Q!==""&&e.primaryButtonOverride&&p5c(e.optionId||"",Q,e.primaryButtonOverride,p)});
var W={};return _.M("ytm-option-item-renderer",{"on:click":x,class:_.ym(D,"ytm-option-item-renderer",(W["ytm-option-item-renderer--lp2-style"]=function(){return(z==null?void 0:z())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},W))},_.M("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.M("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var e=G(),Q=y(),p=c();p=_.Y(p,Q0f);return(p?(p==null?void 0:p.selectedOptionId)||"":e.defaultSelected&&Q!==""?(e==null?void 0:e.optionId)||"":"")===G().optionId},
name:("input"+_.st(_.bE)).toString()})),_.M("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.M(_.b,{cond:function(){return G().eyebrowText},
then:function(){return _.M("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.M(_.vq,{text:function(){return G().eyebrowText}}))}}),_.M("div",{class:"ytm-option-item-renderer__option-item-title"},_.M(_.vq,{text:function(){return G().title}})),_.M("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.M(_.vq,{text:function(){return G().subtitle}})),_.M(_.b,{cond:function(){return G().featureListData},
then:function(){return _.M("div",{class:"ytm-option-item-renderer__feature-list-data"},_.M(_.LT,{each:function(){return G().featureListData||[]}},function(e){var Q;
return _.M("div",{class:"ytm-option-item-renderer__feature-list"},_.M(_.Qm,{icon:(Q=e.icon)==null?void 0:Q.iconType,className:e.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytm-option-item-renderer__feature-list-icon-green":"ytm-option-item-renderer__feature-list-icon-default"}),_.M("div",{class:"ytm-option-item-renderer__feature-list-text"},_.M(_.vq,{text:e.text})))}))}}),_.M("div",{class:"ytm-option-item-renderer__option-item-description"},_.M(_.vq,{text:function(){return G().description}}))))},
"nf");var Eaf=_.Nv(function(x){var G=x.data;var D=x.flowClassName;var K=x.flowStateEntityKey;var z=x.selectionStepStyle;return _.M("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.M("div",{class:"yt-option-section-renderer__option-section-header-section"},_.M("div",{class:"yt-option-section-renderer__option-section-header"},_.M(_.vq,{text:function(){return G().title}}),_.M(_.bA,{data:function(){return G().titleBadge}},{badgeViewModel:function(y){return _.M(_.v2,
{data:y.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.M(_.b,{cond:function(){return G().subtitle},
then:function(){return _.M("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.M(_.vq,{text:function(){return G().subtitle}}))}}),_.M(_.b,{cond:function(){return G().featureListData},
then:function(y){return _.M("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.M(_.LT,{each:y},function(c){var W;return _.M("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.M(_.Qm,{icon:(W=c.icon)==null?void 0:W.iconType,className:c.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"}),_.M("div",
{class:"yt-option-section-renderer__option-section-feature-item-text"},_.M(_.vq,{text:c.text})))}))}}),_.M(_.b,{cond:function(){return G().secondaryTitle},
then:function(){return _.M("div",{class:"yt-option-section-renderer__option-section-secondary-title"},_.M(_.vq,{text:function(){return G().secondaryTitle}}))}}),_.M(_.LT,{each:function(){return G().sectionDisclaimers||[]}},function(y){return _.M("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.M(_.vq,{text:y}))})),_.M(_.bA,{data:function(){return G().optionItems}},{optionItemRenderer:function(y){return _.M("div",{class:"yt-option-section-renderer__option-item"},_.M(PPc,{data:y.data,
className:D,flowStateEntityKey:K,selectionStepStyle:z}))}}),_.M(_.b,{cond:function(){return G().offerText},
then:function(){return _.M("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.M(_.vq,{text:function(){return G().offerText}}))}}))},"of");
Eaf.idomCompat=!0;var hCC=_.Nv(function(x){var G=x.data;var D=x.flowClassName;var K=x.flowStateEntityKey;x=x.isDesktop;var z=function(){var Q;return(Q=G().flowStateEntityKey)!=null?Q:K==null?void 0:K()},y=function(){return(z==null?void 0:z())||""},c=function(){return G().style},W=_.lA(_.k5,y);
_.FQ(function(){var Q=G(),p=y(),V=W();!_.Y(V,Q0f)&&Q.noPreselect&&p!==""&&Q.defaultButtonOverride&&p5c("default",p,Q.defaultButtonOverride,V)});
var e={};return _.M("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.ym("ytm-option-selection-flow-step-renderer",(e["ytm-option-selection-flow-step-renderer--desktop"]=x,e["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return G().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},e))},_.M("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"},
_.M("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.M(_.vq,{text:function(){return G().header}})),_.M("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.M(_.vq,{text:function(){return G().subtitle}}))),_.M(_.bA,{data:function(){return G().optionItems||[]}},{optionItemRenderer:function(Q){return _.M("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.M(PPc,{data:Q.data,
className:D,flowStateEntityKey:z,selectionStepStyle:c}))},
optionSectionRenderer:function(Q){return _.M("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.M(Eaf,{data:Q.data,flowClassName:D,flowStateEntityKey:z,selectionStepStyle:c}))}}))},"pf");
hCC.idomCompat=!0;_.tn(hCC,"yt-option-selection-flow-step-renderer",{props:{data:_.ik,flowClassName:_.ik,flowStateEntityKey:_.ik,isDesktop:_.ik}});var Vzf,blY;_.Rk=_.Nv(function(x){var G=_.qv(x,{type:1,disablePadding:!1,disablePrimaryButton:!1}),D=G.data,K=G.type;x=G.disablePadding;var z=G.disablePrimaryButton,y=G.onClickPrimaryButton,c=function(){return D().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},W=function(){return{disabled:z(),
state:z()?"disabled":"active"}},e=function(){return D().leadingLabel||D().trailingLabel};
G={};return _.M("yt-panel-footer-view-model",{class:_.ym("yt-panel-footer-view-model-wiz",(G["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return D().shouldHideDivider},G["yt-panel-footer-view-model-wiz--disable-padding"]=x,G))},_.M(_.b,{cond:e,
then:function(){var Q={},p={};return _.M("div",{class:_.ym("yt-panel-footer-view-model-wiz__text-row",(Q["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var V=D();return!(!V.leadingLabel&&!V.trailingLabel||!V.primaryButton&&!V.secondaryButton)},Q))},_.M(_.vq,{text:function(){return D().leadingLabel},
className:_.ym((p["yt-panel-footer-view-model-wiz--text-padding"]=e,p))}),_.M(_.vq,{text:function(){return D().trailingLabel}}))}}),_.M(_.b,{cond:c,
then:function(){var Q={};return _.M("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.M("div",{class:_.ym("yt-panel-footer-view-model-wiz__primary-button",(Q["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return D().secondaryButton},Q))},_.M(_.bA,{data:function(){return D().primaryButton}},{buttonViewModel:function(p){return _.M(_.Cs,{data:p.data,
buttonOverrides:W,onClick:y})}})),_.M(_.bA,{data:function(){return D().secondaryButton}},{buttonViewModel:_.Cs}))}}),_.M(_.b,{cond:function(){return!c()},
then:function(){var Q={},p={},V={};return _.M("div",{class:_.ym("yt-panel-footer-view-model-wiz__button-row",(Q["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===K()},Q))},_.M("div",{class:_.ym("yt-panel-footer-view-model-wiz__button-row--left-button",(p["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===K()},p["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!D().secondaryButton||0===K()},p["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===K()},p))},_.M(_.bA,{data:function(){return D().secondaryButton}},{buttonViewModel:_.Cs})),_.M("div",{class:_.ym("yt-panel-footer-view-model-wiz__primary-button",(V["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===K()||1===K()},V["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===K()},V))},_.M(_.bA,{data:function(){return D().primaryButton}},{buttonViewModel:function(L){return _.M(_.Cs,{data:L.data,
buttonOverrides:W,onClick:y})}})))}}))},"qf");
_.Rk.idomCompat=!0;_.xuk=_.Nv(function(x){x=_.qv(x,{disablePadding:!1});var G=x.data,D=x.disablePadding;x=_.s0b(function(){return G().formId});
var K=x.onSubmit,z=x.isValid,y=x.isSubmitting;return _.M("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.M(_.bA,{data:function(){return G().panelFooter}},{panelFooterViewModel:function(c){return _.M(_.Rk,{data:c.data,
onClickPrimaryButton:function(){K()},
disablePrimaryButton:function(){return!z()||y()},
disablePadding:D})}}))},"rf");_.tn(_.xuk,"yt-form-footer-view-model",{props:{data:_.ik,disablePadding:_.ik}});_.tn(_.Nv(function(x){return _.M("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.M("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.M(_.b,{cond:function(){var G;return(G=x.data())==null?void 0:G.image},
then:function(G){return _.M(_.wk,{data:G,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.M("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.M(_.vq,{text:function(){var G;
return(G=x.data())==null?void 0:G.title}})),_.M("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.M(_.vq,{text:function(){var G;
return(G=x.data())==null?void 0:G.subtitle}})),_.M("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.M(_.bA,{data:function(){var G;
return(G=x.data())==null?void 0:G.viewTipsButton}},{buttonViewModel:_.Cs}))))},"sf"),"yt-contributor-zero-state-view-model",{props:{data:_.ik}});var GCi=_.Nv(function(x){var G=_.lA(Ys4,_.wc(function(){var D;return(D=x.data())==null?void 0:D.noteFeedEntityKey},""));
return _.M("yt-note-view-model",{class:"ytNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.M("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.M("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.M(_.b,{cond:function(){var D,K;return(D=x.data())==null?void 0:(K=D.noteData)==null?void 0:K.isPinned},
then:function(){return _.M(_.Qm,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIconPin"})}}),_.M(_.vq,{text:function(){var D,K;
return(D=x.data())==null?void 0:(K=D.noteData)==null?void 0:K.headerText}}),_.M("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},_.M(_.vq,{text:function(){var D,K;
return(D=x.data())==null?void 0:(K=D.noteData)==null?void 0:K.delimiter}})),_.M(_.vq,{text:function(){var D,K;
return(D=G())==null?void 0:(K=D.contributorNote)==null?void 0:K.publishedTimeText}})),_.M(_.bA,{data:function(){var D,K,z,y=(D=x.data())==null?void 0:D.noteData;
D=(K=G())==null?void 0:(z=K.contributorNote)==null?void 0:z.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:y.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:y.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:y.deleteDialogTitle}]},dialogMessages:[{runs:[{text:y.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:y.deleteActionText}]},command:{performCommentActionEndpoint:{action:D}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:y.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}}},
{buttonViewModel:function(D){return _.M(_.Cs,{data:D.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.M("div",{class:"ytNoteViewModelNoteContent"},_.M(_.vq,{text:function(){var D,K;
return(D=G())==null?void 0:(K=D.contributorNote)==null?void 0:K.text}})))},"tf");
GCi.idomCompat=!0;_.tn(GCi,"yt-note-view-model",{props:{data:_.ik}});var SA=_.Nv(function(x){var G=_.qv(x,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),D=G.label,K=G.text,z=G.placeholder,y=G.hint;x=G.rows;var c=G.overflowStyle,W=G.outline,e=G.disabled,Q=G.disableNewLines,p=G.characterLimit,V=G.validation,L=G.onInput,r=_.qi();G=_.l(_.ZX(function(){return K()}));
var H=G.next().value,O=G.next().value;G=_.l(_.eO(!1,void 0,"fXvinf"));var A=G.next().value,g=G.next().value,u=function(){g(!0)},f=function(){g(!1)};
_.FQ(function(){var wn=r.value,n$=c(),Fi=H();n$==="expand-vertically"&&Fi&&m1x(wn);r.value.addEventListener("focusin",u);r.value.addEventListener("focusout",f)});
_.Fq(function(){r.value.removeEventListener("focusin",u);r.value.removeEventListener("focusout",f)});
var v=function(){var wn;return(wn=V())==null?void 0:wn.validate(H())},P=function(){return p()&&!v()&&H().length>p().maxChars},k=function(){return!!v()||P()};
G=_.WH(function(wn){if(!wn.currentTarget)return!1;wn=wn.currentTarget;O(wn.value);c()==="expand-vertically"&&m1x(wn);L==null||L(wn.value);return!0});
var cL=_.WH(function(wn){Q()&&wn.key==="Enter"&&wn.preventDefault();return!1}),bO=_.WH(function(){r.value.focus()}),mE=function(){return z()||D()},jf={},$C={},OD={};
return _.M("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.M("div",{class:_.ym("ytStandardsTextareaShapeTextareaContainer",(jf.ytStandardsTextareaShapeTextareaContainerOutline=W,jf.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=e,jf.ytStandardsTextareaShapeTextareaContainerOutlineError=k,jf)),"on:click":bO},_.M("label",{class:_.ym("ytStandardsTextareaShapeLabel",($C.ytStandardsTextareaShapeLabelFocused=A,$C.ytStandardsTextareaShapeLabelDisabled=e,$C.ytStandardsTextareaShapeLabelError=
function(){return k()&&!e()},$C.ytStandardsTextareaShapeLabelHidden=function(){return!A()&&!H()&&!!mE()},$C))},D),_.M("div",{class:_.ym("ytStandardsTextareaShapePlaceholder",(OD.ytStandardsTextareaShapePlaceholderVisible=function(){return!A()&&!H()},OD)),
"aria-hidden":"true"},mE),_.M("textarea",{el:r,class:"ytStandardsTextareaShapeTextarea",rows:x,disabled:e,placeholder:mE,"on:input":G,"on:keydown":cL},H)),_.M(_.b,{cond:function(){return y()&&!k()},
then:function(){var wn={};return _.M("div",{class:_.ym("ytStandardsTextareaShapeHint",(wn.ytStandardsTextareaShapeHintDisabled=e,wn))},_.M("div",{class:"ytStandardsTextareaShapeHintHintMessage"},y))}}),_.M(_.b,{cond:v,
then:function(){return _.M(DuO,{disabled:e},_.M("div",{class:"ytStandardsTextareaShapeErrorMessage"},v))}}),_.M(_.b,{cond:p,
then:function(wn){return _.M(_.b,{cond:P,then:function(){return _.M(DuO,{disabled:e},_.M("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return wn().errorMessage}),_.M("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return H().length+"/"+wn().maxChars}))}})}}))},"uf");
SA.idomCompat={callbacks:{onInput:!0}};var DuO=_.Nv(function(x){var G={};return _.M("div",{class:_.ym("ytStandardsTextareaShapeError",(G.ytStandardsTextareaShapeErrorDisabled=x.disabled,G)),role:"alert"},_.M(_.Qm,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),x.children)},"vf");_.KGf=_.Nv(function(x){var G=x.data;return _.M("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.M(SA,{text:x.text,label:function(){var D;return(D=G().contentProperties)==null?void 0:D.labelText},
placeholder:function(){var D;return(D=G().contentProperties)==null?void 0:D.placeholderText},
hint:function(){var D;return(D=G().contentProperties)==null?void 0:D.hintText},
outline:function(){var D;return!((D=G().displayProperties)==null?0:D.hideBorder)},
overflowStyle:function(){var D;return((D=G().displayProperties)==null?0:D.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:x.disabled,disableNewLines:function(){var D;return(D=G().displayProperties)==null?void 0:D.disableNewLines},
onInput:x.onInput,characterLimit:x.characterLimit,validation:x.validation,rows:function(){var D;return(D=G().displayProperties)==null?void 0:D.rows}}))},"wf");_.zF6=_.Nv(function(x){var G=x.data;return _.M("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.M(SA,{text:x.text,label:function(){var D;return(D=G().contentProperties)==null?void 0:D.labelText},
placeholder:function(){var D;return(D=G().contentProperties)==null?void 0:D.placeholderText},
hint:function(){var D;return(D=G().contentProperties)==null?void 0:D.hintText},
outline:function(){var D;return!((D=G().displayProperties)==null?0:D.hideBorder)},
overflowStyle:function(){var D;return((D=G().displayProperties)==null?0:D.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var D;return(D=G().displayProperties)==null?void 0:D.disableNewLines},
onInput:x.onInput,characterLimit:x.characterLimit,validation:x.validation,rows:function(){var D;return(D=G().displayProperties)==null?void 0:D.rows}}))},"xf");var aS4=_.Nv(function(x){var G=_.l(_.ZX(function(){var mE,jf;return((mE=x.data().structuredContextNoteFormSchema)==null?0:(jf=mE.initialValues)==null?0:jf.noteBody)?x.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),D=G.next().value,K=G.next().value;
G=_.l(_.ZX(function(){x.data();return!1}));
var z=G.next().value,y=G.next().value;G=_.l(_.ZX(function(){x.data();return!1}));
var c=G.next().value,W=G.next().value;G=_.l(_.ZX(function(){var mE,jf;return((mE=x.data().structuredContextNoteFormSchema)==null?0:(jf=mE.initialValues)==null?0:jf.timestamp)?x.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var e=G.next().value,Q=G.next().value;G=_.l(_.ZX(function(){x.data();return!1}));
var p=G.next().value,V=G.next().value;G=_.l(_.ZX(function(){var mE,jf;return((mE=x.data().structuredContextNoteFormSchema)==null?0:(jf=mE.initialValues)==null?0:jf.sources)?[x.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var L=G.next().value,r=G.next().value;G=_.l(_.ZX(function(){x.data();return!1}));
var H=G.next().value,O=G.next().value;G=_.l(_.ZX(function(){return!1}));
var A=G.next().value,g=G.next().value;_.FQ(function(){var mE;_.r1b((mE=x.data().structuredContextNoteFormSchema)==null?void 0:mE.id,{isSubmitting:A,onSubmit:function(){g(!0);var jf=A1c(D(),e(),L(),x.data()),$C=_.Eo().resolve(_.hm);jf&&$C&&$C.resolveCommand(jf,{commandController:{onSuccess:function(){g(!1)}}})},
isValid:function(){return z()&&!c()&&!p()&&!H()}})});
var u=function(mE){if(mE!==void 0&&(K(mE),!z()&&mE.length>0&&y(!0),z())){var jf=FVx(x.data());if(jf){var $C=jf.minLength;jf=jf.maxLength;$C&&mE.length<$C?W(!0):jf&&mE.length>jf?W(!0):W(!1)}}},f=function(mE){if(mE!==void 0){Q(mE);
if(mE.length>0){var jf,$C,OD,wn,n$=IY6((jf=x.data())==null?void 0:($C=jf.structuredContextNoteFormSchema)==null?void 0:(OD=$C.fieldSchemas)==null?void 0:(wn=OD.timestamp)==null?void 0:wn.validationSchema);if(n$&&(jf=n$.regex)&&!(new RegExp(jf)).test(mE)){V(!0);return}}V(!1)}},v=function(mE){if(mE!==void 0){var jf=mE.split(/[ \n]/).map(function($C){return $C.trim()});
r(jf);if(mE.length>0)for(mE=_.l(jf),jf=mE.next();!jf.done;jf=mE.next())if(!X5O(jf.value)){O(!0);return}O(!1)}},P=function(){return{validate:function(mE){if(z()){var jf=FVx(x.data());
if(jf){var $C=jf.minLength;jf=jf.translations;if($C&&mE.length<$C)return jf==null?void 0:jf.minLengthErrorMessage}}}}},k=function(){var mE=FVx(x.data()),jf=mE==null?void 0:mE.maxLength,$C;
mE=mE==null?void 0:($C=mE.translations)==null?void 0:$C.maxLengthErrorMessage;if(jf&&mE)return{maxChars:jf,errorMessage:mE}},cL=function(){return{validate:function(mE){if(mE){var jf,$C,OD,wn,n$=IY6((jf=x.data())==null?void 0:($C=jf.structuredContextNoteFormSchema)==null?void 0:(OD=$C.fieldSchemas)==null?void 0:(wn=OD.timestamp)==null?void 0:wn.validationSchema);
if(n$&&(jf=n$.regex,n$=n$.translations,jf&&!(new RegExp(jf)).test(mE)))return n$==null?void 0:n$.regexErrorMessage}}}},bO=function(){return{validate:function(mE){if(mE){var jf,$C,OD,wn,n$=Ol4((jf=x.data())==null?void 0:($C=jf.structuredContextNoteFormSchema)==null?void 0:(OD=$C.fieldSchemas)==null?void 0:(wn=OD.sources)==null?void 0:wn.validationSchema);
if(n$&&(jf=n$.translations,jf==null?0:jf.selectedErrorMessage))for(mE=mE.split(/[ \n]/).map(function(Fi){return Fi.trim()}),mE=_.l(mE),$C=mE.next();!$C.done;$C=mE.next())if(!X5O($C.value))return mE=void 0,(mE=jf)==null?void 0:mE.selectedErrorMessage}}}};
return _.M("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.M("div",{class:"ytStructuredContextNoteViewModelTextField"},_.M(_.bA,{data:function(){var mE;return(mE=x.data())==null?void 0:mE.noteContents}},{textFormFieldViewModel:function(mE){return _.M(_.zF6,{data:mE.data,
onInput:u,validation:P,characterLimit:k})},
textFieldViewModel:function(mE){return _.M(_.KGf,{data:mE.data,onInput:u,validation:P,characterLimit:k})}})),_.M("div",{class:"ytStructuredContextNoteViewModelTextField"},_.M(_.bA,{data:function(){var mE;
return(mE=x.data())==null?void 0:mE.noteTimestamp}},{textFormFieldViewModel:function(mE){return _.M(_.zF6,{data:mE.data,
onInput:f,validation:cL})},
textFieldViewModel:function(mE){return _.M(_.KGf,{data:mE.data,onInput:f,validation:cL})}})),_.M("div",{class:"ytStructuredContextNoteViewModelTextField"},_.M(_.bA,{data:function(){var mE;
return(mE=x.data())==null?void 0:mE.noteSources}},{textFormFieldViewModel:function(mE){return _.M(_.zF6,{data:mE.data,
onInput:v,validation:bO})},
textFieldViewModel:function(mE){return _.M(_.KGf,{data:mE.data,onInput:v,validation:bO})}})))},"yf");
aS4.idomCompat=!0;_.tn(aS4,"yt-structured-context-note-view-model",{props:{data:_.ik}});var o9j=_.Nv(function(x){var G=_.l(_.ZX(function(){var y;if((y=x.controlled)==null?0:y.call(x))return[];var c;return(((c=x.data())==null?void 0:c.chips)||[]).map(function(W){W=_.Y(W,_.j1);if(W==null?0:W.selected)return U1k(W.chipValue)}).filter(function(W){return W!==void 0})})),D=G.next().value,K=G.next().value,z=function(y){var c=U1k(y.chipValue);
if(c!==void 0){var W;if((W=x.controlled)==null?0:W.call(x))return void x.controlled().onTap(c);y=D().includes(c)?[].concat(_.B5(D().filter(function(Q){return Q!==c}))):[].concat(_.B5(D()),[c]);
K(y);var e;if((e=x.uncontrolled)==null?0:e.call(x))x.uncontrolled().onUpdate(y)}};
return _.M("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.M(_.LT,{each:function(){return x.data().chips||[]}},function(y){return _.M("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.M(_.krs,{data:function(){return _.Y(y,_.j1)},
selected:function(){var c;if(c=_.Y(y,_.j1)){var W=U1k(c.chipValue);if(W!==void 0){var e;c=((e=x.controlled)==null?0:e.call(x))?x.controlled().selectedValues.includes(W):D().includes(W)}else c=void 0}else c=!1;return c},
callback:z}))}))},"zf");var ytO=_.Nv(function(x){var G=x.data;var D=function(){var W;return((W=G())==null?void 0:W.flowStateKey)||""},K=_.lA(_.k5,D),z=function(){var W;
return(W=_.Y(K(),I_c))==null?void 0:W.chips},y=function(W){if(W!==void 0){var e=z()||[];
e=e.find(function(Q){return Q===W})?e.filter(function(Q){return Q!==W}):[].concat(_.B5(e),[W]);
e=Object.assign({},K(),{feedbackFormFlowState:Object.assign({},_.Y(K(),I_c),{chips:e})});_.dc(_.cq("flowStateEntity",D(),e))}},c=function(){var W;
return _.Y((W=G())==null?void 0:W.inputBox,jh4)};
x=_.TE(function(W){var e=c();e=!(e==null?0:e.maxChars)||W.length<=e.maxChars;W=Object.assign({},K(),{feedbackFormFlowState:Object.assign({},_.Y(K(),I_c),{detail:W}),abuseReportFlowState:Object.assign({},_.Y(K(),xU),{navigationEnabled:e})});_.dc(_.cq("flowStateEntity",D(),W))},150);
return _.M("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.M("div",{class:"ytFeedbackFormViewModelChips"},_.M(_.bA,{data:function(){var W;return(W=G())==null?void 0:W.chipSelection}},{chipSelectionFormFieldViewModel:function(W){return _.M(o9j,{data:W.data,
controlled:function(){return{selectedValues:z()||[],onTap:y}}})}})),_.M("div",{class:"ytFeedbackFormViewModelInputBox"},_.M(SA,{text:function(){var W;
return(W=_.Y(K(),I_c))==null?void 0:W.detail},
placeholder:function(){var W;return((W=c())==null?void 0:W.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var W=c();if(W&&W.maxChars)return{maxChars:W.maxChars,errorMessage:W.maxCharsExceededErrorMessage||""}},
onInput:x})),_.M("div",{class:"ytFeedbackFormViewModelFooterText"},_.M(_.vq,{text:function(){return G().footerText}})))},"Af");
ytO.idomCompat=!0;_.tn(ytO,"yt-feedback-form-view-model",{props:{data:_.ik}});var lS6=_.Nv(function(x){var G=x.data;var D=function(){return G().flowStateKey||""},K=_.lA(A_b,D),z=function(){return _.Y(K(),xU)},y=function(){if(_.B("enable_gff_accessibility_fix")){var c=!0,W;
if((W=z())==null?0:W.navigationEnabled){var e;_.UI((e=z())==null?void 0:e.navigationCommand);c=!1}W=Object.assign({},K(),{abuseReportFlowState:Object.assign({},z(),{isReportFormDirty:c})});_.dc(_.cq("flowStateEntity",D(),W))}else _.UI((c=z())==null?void 0:c.navigationCommand)};
return _.M("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.M("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.M(_.bA,{data:function(){return G().cancelButton}},{buttonViewModel:function(c){return _.M(_.Cs,{data:c.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:y})}}),_.M(_.bA,{data:function(){var c;
if(G().navButton){var W=Object;var e=W.assign,Q=_.Y(G().navButton,_.Ls),p=((c=z())==null?0:c.navigationEnabled)||_.B("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",V,L;c=_.Y((V=z())==null?void 0:V.navigationCommand,_.IP);V=(L=_.Y(c,_.iV))==null?void 0:L.url;W={buttonViewModel:e.call(W,{},Q,{state:p,iconName:V?"OPEN_IN_NEW":""})}}else W=void 0;return W}},{buttonViewModel:function(c){return _.M(_.Cs,{data:c.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:y})}})))},"Bf");
lS6.idomCompat=!0;_.tn(lS6,"yt-report-form-bottom-bar-view-model",{props:{data:_.ik}});var ctY=_.Nv(function(x){var G=x.nextStep;return _.M("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.M("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.M(_.Qm,{icon:function(){return G().iconName||""}})),_.M("div",null,_.M(_.vq,{text:function(){return G().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Cf"),TOc=_.Nv(function(x){var G=x.data;
var D,K=(D=_.Eo().resolve(_.P6(_.ib)))==null?void 0:D(),z=_.lA(_.k5,function(){return G().flowStateKey||""});
return _.M("yt-report-form-confirmation-page-view-model",{class:function(){var y;return((y=_.Y(z(),xU))==null?void 0:y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.M("div",{class:function(){var y;
return((y=_.Y(z(),xU))==null?void 0:y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.M(_.wk,{data:function(){return K&&G().imageDark?G().imageDark:G().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.M("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.M("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return G().confirmationHeader}),_.M("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.M(_.vq,{text:function(){return G().confirmationText}})),_.M("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.M(_.vq,{text:function(){return G().lawEnforcementText}})),
_.M("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return G().whatToExpectHeader}),_.M(_.b,{cond:function(){return G().nextSteps},
then:function(y){return _.M("div",null,_.M(_.LT,{each:y},function(c){return _.M(ctY,{nextStep:c})}))}}),_.M(_.b,{cond:function(){return G().legalReportText},
then:function(y){return _.M("div",null,_.M(_.vq,{text:y,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Df");
TOc.idomCompat=!0;_.tn(TOc,"yt-report-form-confirmation-page-view-model",{props:{data:_.ik}});var WG6=_.Nv(function(x){var G=x.data;var D=function(){var y;return((y=_.Y(G().inputBox,jh4))==null?void 0:y.maxChars)||500},K=function(){return G().flowStateKey||""},z=_.lA(_.k5,K);
x=_.TE(function(y){y=Object.assign({},z(),{flowFormState:{isValid:y.length<=D()},abuseReportFlowState:{userComments:y,navigationEnabled:!(y.length>D()),isReportFormDirty:!0}});_.iD().dispatch(_.sg("flowStateEntity",K(),y))},150);
_.FQ(function(){var y=Object.assign({},z(),{flowFormState:{isValid:!0}});_.iD().dispatch(_.sg("flowStateEntity",K(),y))});
return _.M("yt-report-form-details-page-view-model",{class:function(){var y;return((y=_.Y(z(),xU))==null?void 0:y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.M("h1",{class:function(){var y;
return((y=_.Y(z(),xU))==null?void 0:y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return G().detailsPageHeader}),_.M("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.M(_.vq,{text:function(){return G().bodyText}})),_.M("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.M(SA,{label:function(){var y;
return((y=_.Y(G().inputBox,jh4))==null?void 0:y.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var y;return{errorMessage:((y=_.Y(G().inputBox,jh4))==null?void 0:y.maxCharsExceededErrorMessage)||"",maxChars:D()}},
onInput:x})))},"Ef");
WG6.idomCompat=!0;_.tn(WG6,"yt-report-form-details-page-view-model",{props:{data:_.ik}});var eFx=_.Nv(function(x){var G=x.data;var D=x.selectedKey;var K=x.onSelected;var z=x.groupName;var y=function(){return G().text},c=function(){return G().attributedText},W=function(){return G().subtext},e=function(){return G().attributedSubtext},Q=_.M("div",{class:"ytRadioButtonItemViewModelLabel"},_.M(_.b,{cond:y,
then:function(){return _.M("div",null,y)}}),_.M(_.b,{cond:c,
then:function(){return _.M(_.vq,{text:c})}}),_.M(_.b,{cond:W,
then:function(){return _.M("div",{class:"ytRadioButtonItemViewModelSubText"},W)}}),_.M(_.b,{cond:e,
then:function(){return _.M("div",{class:"ytRadioButtonItemViewModelSubText"},_.M(_.vq,{text:e}))}})),p=function(){if(c()){var L;
return(L=c())==null?void 0:L.content}return y()},V=function(){if(e()){var L;
return(L=e())==null?void 0:L.content}return W()};
x={};return _.M("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.M(_.BB,{name:z,checked:function(){return!(D==null||!D()||G().key!==(D==null?void 0:D()))},
onChange:function(L){K==null||K(L.target,G(),z==null?void 0:z())},
labelRenderable:function(){return Q},
ariaLabel:function(){return V()?p()+", "+V():p()},
className:_.ym((x.ytRadioButtonItemViewModelSubTitle=function(){return!!G().subtext},x))}))},"Ff");_.Zxj=_.Nv(function(x){var G=x.data;var D=x.onSelected;var K=x.selectedKey;var z=x.groupName;return _.M("yt-radio-button-group-view-model",{class:"yt-radio-button-group-view-model",tabindex:0},_.M("fieldset",{class:"yt-radio-button-group-view-model__fieldset"},_.M(_.bA,{data:function(){return G().radioButtons}},{radioButtonItemViewModel:function(y){return _.M(eFx,{data:y.data,
onSelected:D,selectedKey:K,groupName:function(){return(z==null?void 0:z())||G().key}})}})))},"Gf");var MOk=_.Nv(function(x){var G=x.data;var D=_.Ni(),K=function(){return G().flowStateKey||""},z=_.lA(_.k5,K),y=function(){return _.Y(z(),xU)};
_.$9(function(){var c,W;if(((c=y())==null?0:c.isReportFormDirty)&&((W=y())==null||!W.navigationEnabled)&&_.B("enable_gff_accessibility_fix")){var e;if(((e=y())==null?void 0:e.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var Q;(Q=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||Q.scrollIntoView()}else{var p;(p=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||p.scrollIntoView()}}});
return _.M("yt-report-form-reason-select-page-view-model",{class:function(){var c;return((c=y())==null?void 0:c.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.M("h1",{class:function(){var c;
return((c=y())==null?void 0:c.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return G().pageHeader}),_.M("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.M(_.vq,{text:function(){return G().bodyText}})),_.M("div",{class:function(){var c;
return((c=y())==null?void 0:c.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.M(_.b,{cond:function(){var c,W;
return((c=y())==null?void 0:c.isReportFormDirty)&&!((W=y())==null?0:W.navigationEnabled)&&_.B("enable_gff_accessibility_fix")},
then:function(){return _.M("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:D},_.M(_.Qm,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.M("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return G().emptyReasonSelectErrorMessage}))}}),_.M(_.Zxj,{data:function(){return _.Y(G().radioButtonGroup,_.i2O)},
onSelected:function(c,W){c=Object.assign({},z(),{abuseReportFlowState:Object.assign({},y(),{reasonKey:W.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:W.command})});_.dc(_.cq("flowStateEntity",K(),c))},
selectedKey:function(){var c;return(c=y())==null?void 0:c.reasonKey},
groupName:"report-form-reason-select-page"})))},"Hf");
MOk.idomCompat=!0;_.tn(MOk,"yt-report-form-reason-select-page-view-model",{props:{data:_.ik}});var Qfc=_.Nv(function(x){var G=x.data;var D,K=(D=_.Eo().resolve(_.P6(_.ib)))==null?void 0:D();return _.M("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.M("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.M(_.wk,{data:function(){return K&&G().imageDark?G().imageDark:G().image},
alt:""})),_.M("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.M("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return G().header}),_.M(_.vq,{text:function(){return G().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"If");
Qfc.idomCompat=!0;_.tn(Qfc,"yt-report-form-sign-in-page-view-model",{props:{data:_.ik}});_.tn(_.Nv(function(x){var G=x.data;var D=function(){var Q;return(Q=G().textInputPlaceholder)==null?void 0:Q.content},K=function(Q){Q=Q.target.value.trim();
var p=G().onUpdateText;p&&_.UI(p,{form:{userQuery:Q}});G().userQuery=Q},z=_.TE(function(Q){K(Q)},150),y=_.WH(function(Q){z(Q);
return!1}),c=_.WH(function(Q){Q.key==="Enter"&&(K(Q),(Q=G().onNextStepCommand)&&_.UI(Q,{}));
return!1}),W=_.qi(),e=function(){if(_.B("web_hide_explore_hub_until_user_navigates_back_to_home")){var Q,p,V;
(V=(p=(Q=W.value)==null?void 0:Q.closest("ytd-flow-step-renderer"))==null?void 0:p.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||V.click()}};
return _.M("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:W},_.M("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.M(_.bA,{data:function(){return G().topCornerButton}},{buttonViewModel:_.Cs})),_.M("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.M("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.M(_.vq,{text:function(){return G().title}})),_.M("div",{class:"ytwTalkToRecsSubtitle"},_.M(_.vq,{text:function(){return G().subtitle}})),_.M("div",{class:"ytwTalkToRecsChipsShelf"},_.M(_.bA,{data:function(){return G().answersShelf}},{chipsShelfViewModel:function(Q){return _.M(_.axJ,{data:Q.data,
callback:e})}})),_.M(_.b,{cond:function(){return G().showOpenTextInput&&!_.B("web_hide_explore_hub_until_user_navigates_back_to_home")},
then:function(){return _.M("div",{class:"ytwTalkToRecsUserInputBox"},_.M("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:D,value:function(){return G().userQuery},
"on:input":y,"on:keyup":c,maxlength:200}))}})))},"Jf"),"yt-talk-to-recs-view-model",{props:{data:_.ik}});var RGx={sources:[{clientResource:{imageName:"CHECK"}}]};_.plk=_.Nv(function(x){var G=_.qi();x=_.qv(x,{error:void 0});var D=x.data,K=x.error,z=x.onSelected;x=_.l(_.ZX(function(){return il6(D())}));
var y=x.next().value,c=x.next().value;w5f(D,function(V){c(V);var L,r,H=nRf((L=D().options)==null?void 0:(r=L[V])==null?void 0:r.value,D().type);z==null||z(H);G.value.focus()});
x=_.WH(function(){if(!D().disabled){var V=D(),L=y(),r=G.value;V.options&&(V=SsY(V.options,L,V.label),_.Eo().resolve(_.bm).openSheet({viewModel:V},r))}});
var W=_.qGf(),e=function(){return!!K()},Q=function(){return!!D().disabled},p={};
p=_.ym("ytDropdownViewModelDropdownContainer",(p.ytDropdownViewModelDropdownContainerErrorBorder=e,p.ytDropdownViewModelDropdownContainerDisabled=Q,p));return _.M("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.M("div",{class:p,"on:click":x,el:G,role:"combobox",tabindex:0,"on:keydown":W,"aria-invalid":e,"aria-disabled":Q,"aria-describedby":function(){return e()?"dropdown-view-model-error":void 0}},_.M("div",{class:"ytDropdownViewModelText"},gR8(D,e,y),uFi(D,y)),_.M("div",{class:"ytDropdownViewModelChevronDown"},
_.M(_.Qm,{icon:"CHEVRON_DOWN"}))),d1i(D,K))},"Kf");_.tn(_.Nv(function(x){var G=x.data;var D=function(z){var y=N4O(G());y.videoMetadata||(y.videoMetadata={});y.videoMetadata.sponsorshipsMetadata||(y.videoMetadata.sponsorshipsMetadata={});y.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(z)},K=function(z){var y=N4O(G());
y.scheduledRedirectMetadata||(y.scheduledRedirectMetadata={});y.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(z)};
return _.M("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.M("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.M("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.M(_.vq,{text:function(){return G().title}}),_.M(_.Qm,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.M(_.vq,{text:function(){return G().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.M(_.bA,{data:function(){return G().tierChoices}},{dropdownViewModel:function(z){return _.M("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.M(_.plk,{data:z.data,
onSelected:D}))}}),_.M(_.bA,{data:function(){return G().startTimeChoices}},{dropdownViewModel:function(z){return _.M("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.M(_.plk,{data:z.data,
onSelected:K}))}}),_.M(_.vq,{text:function(){return G().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.M("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.M(_.bA,{data:function(){return G().scheduleButton}},{panelFooterViewModel:_.Rk})))},"Lf"),"ytfz-schedule-fanzone-view-model",{props:{data:_.ik}});_.tn(_.Nv(function(x){var G=x.data;x=x.className===void 0?"":x.className;var D=_.lA(A_b,function(){return G().flowStateEntityKey||""}),K={};
K=_.ym("ytFlowBottomBarViewModelFlowBottomBarButtons",(K.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return G().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||G().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},K));
var z={},y=_.ym("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",K,(z.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return G().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},z.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return G().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},z));
z={};var c=_.ym("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",K,(z.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return G().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},z.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return G().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},z));
K={};K=_.ym("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(K.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return G().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},K.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return G().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},K.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return G().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
K));
return _.M("yt-flow-bottom-bar-view-model",{class:_.ym("ytFlowBottomBarViewModelHost",x)},_.M(_.b,{cond:function(){var W;return(W=G())==null?void 0:W.textSection},
then:function(W){return _.M("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.M(_.vq,{text:W}))}}),_.M("div",{class:K},_.M(_.bA,{data:function(){return G().secondaryButton}},{buttonViewModel:function(W){return _.M(_.Cs,{data:W.data,
className:c})}}),_.M(_.bA,{data:function(){return G().primaryButton}},{buttonViewModel:function(W){return _.M(_.Cs,{data:W.data,
className:y,buttonOverrides:function(){var e;return{disabled:!((e=D())==null||!e.primaryButtonDisabled)}}})}})))},"Mf"),"yt-flow-bottom-bar-view-model",{props:{data:_.ik,
className:_.fz}});var VOb="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),nk=function(){var x=_.n.apply(this,arguments)||this;x.enableScrollingFix=!0;x.bottomBar=!1;x.hideBottomBar=!1;x.fitContent=!1;return x};
_.m(nk,_.n);_.a=nk.prototype;_.a.ready=function(){_.B("enable_pdp_icon_prefetch")&&_.CNC(_.Eo().resolve(_.z3),0,VOb)};
_.a.focus=function(x){this.topBar?_.vS(this.topBar,x):this.paperDialog.focus(x)};
_.a.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$16819_scroller&&(this.JSC$16819_scroller.dialogElement=this.paperDialog,this.JSC$16819_scroller.attached&&typeof this.JSC$16819_scroller.attached==="function"&&this.JSC$16819_scroller.attached())};
_.a.onDataChanged=function(){var x;this.fitContent=!((x=this.data)==null||!x.fitContent);var G;this.bottomBar=!((G=this.data)==null||!G.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.a.onProgressChanged=function(){var x,G,D=((G=(x=this.data)==null?void 0:x.progress)!=null?G:0)*100;this.progressElement.style.width=D+"%"};
_.a.isProgressHidden=function(){var x;return!((x=this.data)==null?0:x.progress)};
_.a.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(x){return _.B("enable_wiz_next_lp2_msof")&&x&&!x.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.Nq.Object.defineProperties(nk.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var x;return _.B("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.Y((x=this.data)==null?void 0:x.content,R5j)}}});
nk.prototype.onProgressChanged=nk.prototype.onProgressChanged;nk.prototype.onDataChanged=nk.prototype.onDataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],nk.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],nk.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],nk.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],nk.prototype,"enableScrollingFix",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],nk.prototype,"bottomBar",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],nk.prototype,"hideBottomBar",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],nk.prototype,"containsExploreHub",null);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],nk.prototype,"fitContent",void 0);_.q([_.cD("#progress"),_.N("design:type",HTMLElement)],nk.prototype,"progressElement",void 0);
_.q([_.cD("#scroller"),_.N("design:type",Object)],nk.prototype,"JSC$16819_scroller",void 0);_.q([_.cD("ytd-flow-top-bar-renderer"),_.N("design:type",HTMLElement)],nk.prototype,"topBar",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nk.prototype,"onDataChanged",null);_.q([_.yf("data.progress"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nk.prototype,"onProgressChanged",null);
nk=_.q([_.d({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],nk);
_.w(nk,"ytd-flow-step-renderer",function(){if(zCc!==void 0)return zCc;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return zCc=x},{mode:1});var bxf=function(x){this.resolveCommand=x;this.steps={}},LGc=function(x,G){G=_.l(G||[]);
for(var D=G.next();!D.done;D=G.next()){D=D.value;var K=Object.values(D)[0],z=void 0;if((z=K)==null?0:z.stepId)x.steps[K.stepId]=D}},sfi=function(x,G){var D,K,z,y,c;
return _.T(function(W){if((D=x.state)==null||!D.currentStepId)return W.return(void 0);K=BOb(x);if(!K)return W.return(rtx(x));if(z=_.Y(K,_.UYO)){var e;((e=z.screenLoggingData)==null?0:e.screenVeType)&&_.EV(_.en(),z.screenLoggingData.screenVeType);((y=z)==null?0:y.onStepStartCommand)&&x.resolveCommand((c=z)==null?void 0:c.onStepStartCommand,{})}if(z&&G){e=z;var Q,p,V,L;((Q=G.flowLoggingData)==null?0:Q.eventNamespace)&&((p=e.flowEventData)==null?0:p.eventType)&&((V=e.flowEventData)==null?0:V.eventMetadata)&&
((L=G.flowLoggingData)==null?0:L.flowType)&&(Q=_.zU(G.flowLoggingData.eventNamespace,e.flowEventData.eventType,e.flowEventData.eventMetadata),_.an(_.on(),Q,G.flowLoggingData.flowType));G.steps&&!G.steps.includes(K)&&G.steps.push(K)}return W.return(K)})};
bxf.prototype.back=function(){var x;(x=this.state)!=null&&x.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
bxf.prototype.handleUpdateFlowCommand=function(x){x.steps&&LGc(this,x.steps);x.entityUpdateCommand&&this.resolveCommand(x.entityUpdateCommand,{});x.flowContinuationCommand&&(x=x.flowContinuationCommand)&&(this.getFlowContinuationCommand=x);this.awaitFlowContinuation&&(this.awaitFlowContinuation(BOb(this)),this.awaitFlowContinuation=void 0)};
bxf.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var rtx=function(x){return _.T(function(G){return x.getFlowContinuationCommand?G.return(new Promise(function(D){x.awaitFlowContinuation=D;x.getFlowContinuationCommand&&x.resolveCommand(x.getFlowContinuationCommand,{flow_state:x.state})})):G.return(Promise.resolve(void 0))})},BOb=function(x){var G;
if((G=x.state)!=null&&G.currentStepId)return x.steps[x.state.currentStepId]};var ii=function(){var x=_.n.apply(this,arguments)||this;x.flowState=new bxf(function(G,D){D=D===void 0?{}:D;_.y2.instance.resolveCommand(G,{form:{form:D,element:x.hostElement}})});
x.initialState=!0;x.isLoading=!1;x.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 x};
_.m(ii,_.n);_.a=ii.prototype;_.a.onPopupClosed=function(x){x&&this.hostElement!==x.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.a.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"}}}};
_.a.focus=function(x){var G=this;_.Xw(function(){var D=_.kA(G.hostElement).querySelector("ytd-flow-step-renderer");(D==null?0:D.topBar)?D.focus(x):G.topBar&&_.vS(G.topBar,x)},1)};
_.a.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.a.computeTopBarHidden=function(x){var G;return!((G=_.Y(x,_.UYO))==null||!G.topBarOverride)};
_.a.dataChanged=function(){var x=this,G,D;return _.T(function(K){if(K.nextAddress==1){((G=x.data)==null?0:G.steps)&&LGc(x.flowState,x.data.steps);if((D=x.data)==null?0:D.flowContinuationCommand){var z=x.flowState,y=x.data.flowContinuationCommand;y&&(z.getFlowContinuationCommand=y)}return _.Z(K,sfi(x.flowState,x.data),2)}x.currentFlowStep=K.yieldResult;_.c5(K)})};
_.a.flowChanged=function(){var x=this,G;return _.T(function(D){if(D.nextAddress==1){if(!x.flow)return D.return();x.flowState.state=x.flow;x.isLoading=!0;return _.Z(D,sfi(x.flowState,x.data),2)}G=D.yieldResult;if(!G||x.flow.isLoading)return D.return();x.currentFlowStep=G;x.initialState=!1;x.isLoading=!1;x.autofocusAndRefit();_.c5(D)})};
_.a.autofocusAndRefit=function(){var x=this,G=_.Eo().resolve(_.P6(_.Ee)),D=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),K=document.querySelector("yt-report-form-confirmation-page-view-model"),z=document.querySelector("yt-report-form-details-page-view-model"),y=document.querySelector("yt-report-form-reason-select-page-view-model"),c=document.querySelector("yt-contributor-zero-state-view-model"),
W=document.querySelector("yt-structured-context-note-view-model"),e=document.querySelector("yt-note-view-model");(!D&&G&&G.isKeyBoardInUse()||K||!D&&z||!D&&y||c||W||e)&&_.Ju(this.hostElement);_.w1(this,function(){_.h$(x.hostElement,"yt-refit")})};
_.a.handleUpdateFlowCommand=function(x){this.data&&(x=_.Y(x,AO4),x.targetId===this.data.targetId&&(x.flowContinuationCommand&&(this.data.flowContinuationCommand=x.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(x),this.autofocusAndRefit()))};
_.a.handleFlowNextStepCommand=function(x){this.data&&this.flow&&this.flow.key&&(x=_.Y(x,O2f),x.targetId===this.data.targetId&&(x=x.stepId||"",this.ytdReduxBehavior.dispatch(_.sg("flowStateEntity",this.flow.key,{currentStepId:x,stepIdStack:(this.flow.stepIdStack||[]).concat(x)}))))};
_.a.handleFlowPrevStepCommand=function(x){if(this.data&&this.flow&&this.flow.key&&(x=_.Y(x,Xuj),x.targetId===this.data.targetId)){var G=[].concat(_.B5(this.flow.stepIdStack||[]));G.length>1?(G.pop(),this.ytdReduxBehavior.dispatch(_.sg("flowStateEntity",this.flow.key,{currentStepId:G[G.length-1],stepIdStack:G}))):x.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(x.onFirstStepCommand)}};
_.a.handleYpcCancelRecurrenceCommand=function(x){if(this.data&&this.flow&&this.flow.key&&(x=_.Y(x,gSc),x.targetId===this.data.targetId&&x.endpointCommand)){var G=_.Y(this.flow,unx);G&&_.Y(x.endpointCommand,_.YVh)&&(_.Y(x.endpointCommand,_.YVh).feedbackData=G.surveyFeedback);this.ytComponentBehavior.resolveCommand(x.endpointCommand)}};
_.a.handlePartialUpdateFlowStateEntity=function(x){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.sg("flowStateEntity",this.flow.key,x,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
ii.prototype.flowChanged=ii.prototype.flowChanged;ii.prototype.dataChanged=ii.prototype.dataChanged;ii.prototype.onPopupClosed=ii.prototype.onPopupClosed;_.q([_.I(_.$l),_.N("design:type",Object)],ii.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],ii.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],ii.prototype,"ytComponentBehavior",void 0);
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],ii.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],ii.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],ii.prototype,"initialState",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],ii.prototype,"isLoading",void 0);_.q([_.R(),_.N("design:type",Object)],ii.prototype,"data",void 0);
_.q([_.R(),_.N("design:type",Object)],ii.prototype,"currentFlowStep",void 0);_.q([_.oe("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],ii.prototype,"onPopupClosed",null);_.q([_.R({selectorArgs:["data.flowStateEntityKey"],selector:A_b}),_.N("design:type",Object)],ii.prototype,"flow",void 0);_.q([_.cD("ytd-flow-top-bar-renderer"),_.N("design:type",HTMLElement)],ii.prototype,"topBar",void 0);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],ii.prototype,"dataChanged",null);_.q([_.Z6("flow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],ii.prototype,"flowChanged",null);ii=_.q([_.d({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],ii);
_.YX4=_.x$()(ii,"ytd-flow-root-renderer",function(){if(KWx!==void 0)return KWx;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return KWx=x},{mode:_.Ge("kevlar_poly_si_batch_j025")?1:2});var muT;var EG=null;_.tn(_.Nv(function(x){return _.M("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.M("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.M(_.vq,{text:function(){return x.data().text}}),_.M("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Nf"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.ik}});var Hxb=_.Nv(function(x){var G=x.playerControlsProps;var D=x.isShortsPage;return _.M("yt-bigboard",null,_.M(_.b,{cond:function(){return G().isDragging},
then:function(){return _.M("div",{class:"ytBigboardStoryboardHost"},_.M(_.Tbk,{progressBarProps:G,isShortsPage:D}))}}))},"Of");
Hxb.idomCompat=!0;_.gN={ACCOUNT_LABEL:hT("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:hT("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:hT("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:hT("AD_BADGE_HINT"),AD_BADGE_TEXT:hT("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:hT("ALL_CHANNELS_LABEL"),AMBIENT_MODE:hT("AMBIENT_MODE"),AMBIENT_MODE_OFF:hT("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:hT("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:hT("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:hT("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:hT("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:hT("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:hT("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:hT("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:hT("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:hT("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:hT("AUTOPLAY_UP_NEXT_IN"),BACK:hT("BACK"),CANCEL:hT("CANCEL"),CHANNEL_SWITCHER_LABEL:hT("CHANNEL_SWITCHER_LABEL"),CLOSE:hT("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:hT("CLOSED_CAPTIONS_DISABLED"),CLOSED_CAPTIONS_OFF:hT("CLOSED_CAPTIONS_OFF"),
CLOSED_CAPTIONS_ON:hT("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:hT("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:hT("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:hT("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:hT("COMMENT_MODAL_CONTENT"),CONFIRM_OK:hT("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:hT("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:hT("COPIED_TO_CLIPBOARD"),COPY:hT("COPY"),COPY_DEBUG_INFO:hT("COPY_DEBUG_INFO"),COPY_EMBED_CODE:hT("COPY_EMBED_CODE"),COPY_LINK_LABEL:hT("COPY_LINK_LABEL"),
COPY_VIDEO_URL:hT("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:hT("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:hT("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:hT("DELETE_FROM_DOWNLOADS"),DIALOG:hT("DIALOG"),DONE:hT("DONE"),DOWNLOAD:hT("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:hT("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:hT("FLAG_CONFIRM"),FLAG_CONTENT:hT("FLAG_CONTENT"),FLAG_LABEL:hT("FLAG_LABEL"),FLAG_TITLE:hT("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:hT("FULLSCREEN_GENERIC_ERROR"),GOOGLE_COMPANY:hT("GOOGLE_COMPANY"),
HIDE_PLAYER_CONTROLS:hT("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:hT("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:hT("HIDE_SEARCH_FILTERS_LABEL"),HOME:hT("HOME","Home"),INVALID_RESPONSE_RECEIVED:hT("INVALID_RESPONSE_RECEIVED"),LIBRARY:hT("LIBRARY","Library"),LISTENING:hT("LISTENING"),LOADING:hT("LOADING"),LONG_PRESS_MIC_TO_SPEAK:hT("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:hT("LOOP"),MENU_DESKTOP:hT("MENU_DESKTOP"),MENU_EXIT:hT("MENU_EXIT"),
MENU_FEEDBACK:hT("MENU_FEEDBACK"),MENU_HELP:hT("MENU_HELP"),MENU_IMPRESSUM:hT("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:hT("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:hT("MENU_SETTINGS"),MENU_SIGN_IN:hT("MENU_SIGN_IN"),MENU_TITLE:hT("MENU_TITLE"),MENU_YOUR_DATA:hT("MENU_YOUR_DATA"),MORE_INFO:hT("MORE_INFO"),MORE_OPTIONS:hT("MORE_OPTIONS"),MUTE_VOLUME:hT("MUTE_VOLUME"),NEW_PLAYLIST:hT("NEW_PLAYLIST"),NEXT_VIDEO:hT("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:hT("NOTIFICATION_ERROR_MESSAGE"),NOT_FOUND_CTA:hT("NOT_FOUND_CTA"),
NOT_FOUND_MESSAGE:hT("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:hT("NOT_FOUND_TITLE"),NO_DOWNLOADS:hT("NO_DOWNLOADS"),NO_MIC_INPUT:hT("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:hT("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:hT("OOPS_MESSAGE"),OPEN_APP:hT("OPEN_APP"),OPEN_YOUTUBE:hT("OPEN_YOUTUBE"),PAUSE:hT("PAUSE"),PLAY:hT("PLAY"),PLAYER_CAPTION:hT("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:hT("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:hT("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:hT("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:hT("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:hT("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:hT("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:hT("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:hT("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:hT("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:hT("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:hT("PLAYER_MINIMIZE"),PLAYER_NEXT:hT("PLAYER_NEXT"),PLAYER_PAUSE:hT("PLAYER_PAUSE"),PLAYER_PLAY:hT("PLAYER_PLAY"),
PLAYER_PREVIOUS:hT("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:hT("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:hT("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:hT("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:hT("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:hT("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:hT("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:hT("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:hT("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:hT("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:hT("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:hT("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:hT("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:hT("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:hT("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:hT("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:hT("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:hT("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:hT("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:hT("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:hT("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:hT("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:hT("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:hT("PLAY_ALL"),PLEASE_FIX_ERRORS:hT("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:hT("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:hT("PREVIOUS_VIDEO"),PRIVACY_POLICY:hT("PRIVACY_POLICY"),RELOAD:hT("RELOAD"),REQUIRED_LABEL:hT("REQUIRED_LABEL"),SAVE_PLAYLIST:hT("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:hT("SCRUB_SLIDE_USER_EDU"),SEARCH:hT("SEARCH","Search"),
SEARCH_APPEND_LABEL:hT("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:hT("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:hT("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:hT("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:hT("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:hT("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:hT("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:hT("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:hT("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:hT("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:hT("SEEK_SLIDER"),SETTINGS_LABEL:hT("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:hT("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:hT("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:hT("SHOW_LESS"),SHOW_MORE:hT("SHOW_MORE"),SHOW_PLAYER_CONTROLS:hT("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:hT("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:hT("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:hT("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:hT("SIGN_IN_ON_WEB"),STABLE_VOLUME:hT("STABLE_VOLUME"),STABLE_VOLUME_OFF:hT("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:hT("STABLE_VOLUME_ON"),STATS_FOR_NERDS:hT("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:hT("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:hT("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:hT("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:hT("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:hT("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:hT("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:hT("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:hT("TIMESTAMP_SECONDS"),TOGGLE_OFF:hT("TOGGLE_OFF"),TOGGLE_ON:hT("TOGGLE_ON"),TRENDING:hT("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:hT("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:hT("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:hT("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:hT("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:hT("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:hT("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:hT("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:hT("VIDEO_LINK_LABEL")};var $uO=_.Nv(function(x){var G=x.playerApi;x=_.qi(function(K){_.OG(K,36843)});
var D=hT("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.M("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.M("button",{el:x,class:"ytPlayerControlsJumpForwardButtonButton",title:D,"aria-label":D,"on:click":_.WH(function(){_.XU(36843);G&&G().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.M("span",null,_.M(_.Qm,{icon:"FAST_FORWARD"}))))},"Pf");var FGC=_.Nv(function(x){var G=x.appApi;x=_.qi(function(K){_.OG(K,62946)});
var D=hT("OPEN_IN_MINIPLAYER");return _.M("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.M("button",{el:x,class:"ytMiniplayerButtonButton",title:D,"aria-label":D,"on:click":_.WH(function(){_.XU(62946);var K,z;(z=(K=G()).openInMiniplayer)==null||z.call(K);return!1})},_.M(_.Qm,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Qf");var C1Y=_.Nv(function(x){var G=x.playerApi;x=_.qi(function(y){_.OG(y,142812)});
var D=_.l(_.eO(!1,void 0,"I3VCyb")),K=D.next().value,z=D.next().value;D=function(){return hT("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(K()?1:2)})};
return _.M("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.M("button",{el:x,class:"ytPlaybackSpeedButtonButton",title:D,"aria-label":D,"on:click":_.WH(function(){_.XU(142812);if(G){var y=G(),c=K();y.setPlaybackRate(c?1:2);z(!K())}return!1})},_.M("span",null,_.M(_.Qm,{icon:function(){return K()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Rf");var ISi=_.Nv(function(x){var G=x.title;var D=x.ariaLabel;var K=x.icon;var z=x.command;var y=x.veType;x=_.qi(function(c){y&&_.OG(c,y())});
return _.M("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.M("button",{el:x,class:"ytdThumbnailOverlayButtonButton",title:G,"aria-label":D,"on:click":_.WH(function(){y&&_.XU(y());z&&_.Eo().resolve(_.hm).resolveCommand(z())})},_.M(_.Qm,{icon:K})))},"Sf");var tT="";var jfc=_.Nv(function(x){var G=x.playerControlsProps,D=x.onClickFn;x=_.V9(function(){var y=G(),c=-1;y.captionsAvailable&&(c=y.captionsEnabled?1:0);return c},void 0,"WecR8e");
var K=_.V9(function(){var y=G();return y.captionsAvailable?_.Wg(y.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.Wg("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),z=_.V9(function(){var y=G();
y=y.captionsAvailable?y.captionsEnabled:void 0;return y},void 0,"Q17ly");
return _.M("yt-closed-captions-toggle-button",null,_.M(_.Dcc,{captionIconType:x,ariaLabel:K,ariaPressed:z,onClick:function(y){var c=G();if(c.captionsAvailable){var W=c.playerApi;if(W){var e=c.playerApi;if(e){var Q=tT;if(Q){e=e.getOption("captions","track");var p;tT=(p=e?e.displayName:null)!=null?p:Q}else _.j9(e)?(Q=_.$w3(e),tT=Q.length?(p=Uc6(Q))?p.displayName:Q[0].displayName:""):tT=""}Rof(W);_.B("mweb_disable_set_state_captions_killswitch")&&c.setState({captionsEnabled:!c.captionsEnabled})}}var V,
L;(L=(V=c.appApi).showCaptionsToggleToast)==null||L.call(V,c);D==null||D(y)},
isOverlay:!0}))},"Tf");var Ox8=_.Nv(function(x){var G=x.data;return _.M("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.M(_.qF,{data:function(){return{type:16,text:_.zdf(G().label)}}}))},"Uf");var Xlc=_.Nv(function(x){var G=_.ym("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return x.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return x.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return x.size()==="small"?x.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
x.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.M("animated-seek-arrows",{class:_.ym("ytPlayerControlsAnimatedSeekArrowsHost")},_.M("span",{class:G}),_.M("span",{class:G}),_.M("span",{class:G}))},"Vf");
Xlc.idomCompat=!0;var At4=_.Nv(function(){var x=_.Wg("PLAYER_SECONDS",{seconds_placeholder:"30"}),G=_.l(_.eO(!1,void 0,"Yj8msb")),D=G.next().value,K=G.next().value,z=_.l(_.eO(!1,void 0,"r9Z50e"));G=z.next().value;var y=z.next().value;z={};var c=_.ym("jumpForwardOverlayOverlay",(z.jumpForwardOverlayOverlayHidden=G,z));_.FQ(function(){var W=null,e=null,Q=function(){W!==null&&_.rv().cancelJob(W);e!==null&&_.rv().cancelJob(e);y(!0);K(!0);_.x7(_.rv(),function(){y(!1)});
W=_.x7(_.rv(),function(){y(!0);e=_.x7(_.rv(),function(){K(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",Q);_.Fq(function(){window.removeEventListener("jump-forward-clicked",Q)})});
return _.M("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.M(_.b,{cond:D,then:function(){return _.M("div",{class:c},_.M(Xlc,{direction:1,size:"large"}),_.M("div",null,x))}}))},"Wf");var yOY=_.gN.MUTE_VOLUME,oSO=_.gN.UNMUTE_VOLUME,UuO=_.Nv(function(x){var G=x.muteIconType;var D=x.onClick;var K=x.useOutlineIcon;x=_.qi(function(y){_.OG(y,28662)});
var z=function(){return l_Y(G(),K==null?void 0:K()).ariaLabel};
return _.M("ytm-mute-button",{class:"ytmMuteButtonHost"},_.M("button",{el:x,class:"ytmMuteButtonButton",title:z,"aria-label":z,"on:click":_.WH(function(y){_.XU(28662);D==null||D(y);return!1})},_.M("span",null,_.M(_.Qm,{icon:function(){return l_Y(G(),K==null?void 0:K()).iconName}}))))},"Xf");var RF4=_.Nv(function(x){var G=x.volumeProps;var D=x.onClickFn;var K=x.useOutlineIcon;return _.M("yt-mute-toggle-button",null,_.M(UuO,{muteIconType:function(){var z=G(),y=!_.B("mweb_treat_zero_volume_as_muted_killswitch")&&z.volume===0;return z.volumeMuted||y?0:1},
onClick:function(z){var y=G().playerApi;y&&(y.isMuted()?y.unMute():y.mute(!1));D==null||D(z)},
useOutlineIcon:function(){return!(K==null||!K())}}))},"Yf");
RF4.idomCompat=!0;var SXc=_.Nv(function(x){var G=x.data;var D=_.qi();return _.M("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:D,"on:animationend":_.WH(function(){D.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.M(_.hG,{command:function(){return G().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.M(_.b,{cond:function(){var K;return(K=G().icon)==null?void 0:K.iconType},
then:function(){return _.M("span",null,_.M(_.Qm,{icon:function(){var K;return(K=G().icon)==null?void 0:K.iconType}}))}}),_.M("div",{class:"ytmPaidContentOverlayText"},_.M(_.vq,{text:function(){return G().text}})),_.M(_.b,{cond:function(){return G().navigationEndpoint},
then:function(){return _.M(_.Qm,{icon:"CHEVRON_RIGHT"})}})))},"Zf");
SXc.idomCompat=!0;var cOc=[].concat(_.B5([{register:function(x){var G=LFk(x),D;(D=x().playerApi)==null||D.addEventListener("onVolumeChange",G);return function(){}}},
{register:function(x){var G=B0j(x);x=x().playerApi;x==null||x.addEventListener("captionschanged",G);x==null||x.addEventListener("captionssettingschanged",G);x==null||x.addEventListener("onCaptionsTrackListChanged",G);return function(){}}},
{register:function(x){if(!_.B("mweb_screenreader_accessible_player"))return function(){};
var G=rOO(x),D=document.querySelector("video");D==null||D.addEventListener("touchend",G);return function(){D==null||D.removeEventListener("touchend",G)}}},
{register:function(x){if(!_.B("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var G=rOO(x),D=document.querySelector("video");D==null||D.addEventListener("focus",G);return function(){D==null||D.removeEventListener("focus",G)}}}]),[{register:function(x){var G=Qhc(x),D;
(D=x().playerApi)==null||D.addEventListener("onStateChange",G);return function(){}}},
{register:function(x){var G=puj(x),D;(D=x().playerApi)==null||D.addEventListener("onPlaybackRateChange",G);return function(){}}},
{register:function(x){var G=Vi8(x),D;(D=x().playerApi)==null||D.addEventListener("onVideoDataChange",G);return function(){}}},
{register:function(x){var G=b26(x),D,K;(D=x())==null||(K=D.playerApi)==null||K.addEventListener("onVideoProgress",G);return function(){}}}]);var n9c=_.Nv(function(x){var G=x.data;var D=function(){return _.Wg("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+G().playbackRate})};
return _.M(_.b,{cond:function(){return G().playbackRate&&G().playbackRate!==1},
then:function(){return _.M("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.M("div",{class:"ytPlaybackRateOverlayOverlay"},_.M(Xlc,{direction:1,size:"small"}),_.M("div",{class:"ytPlaybackRateOverlayLabel"},D)))}})},"$f");var ixb=_.Nv(function(x){var G=x.data;return _.M("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.M(_.b,{cond:function(){var D,K=(D=G())==null?void 0:D.playerResponse,z;return K==null?void 0:(z=K.paidContentOverlay)==null?void 0:z.paidContentOverlayRenderer},
then:function(D){return _.M(SXc,{data:D})}}))},"bg"),g96=_.Nv(function(x){var G=x.props;
var D=x.data;var K=x.options;var z=function(){var Q,p,V,L;return(Q=D())==null?void 0:(p=Q.playerResponse)==null?void 0:(V=p.playerConfig)==null?void 0:(L=V.inlinePlaybackConfig)==null?void 0:L.showAudioControls},y=function(){var Q,p;
if(z()&&((Q=K())==null?void 0:(p=Q.additionalButton)==null?void 0:p.button)!==void 0){var V,L,r;Q=(V=D())==null?void 0:(L=V.playerApi)==null?void 0:(r=L.getSize())==null?void 0:r.height;if(!(Q===void 0||Q<180)){var H,O;return(H=K())==null?void 0:(O=H.additionalButton)==null?void 0:O.button}}},c=function(){var Q,p;
return(Q=K())==null?void 0:(p=Q.additionalButton)==null?void 0:p.thumbnailOverlayButtonRenderers},W=function(){var Q,p;
return(Q=K())==null?void 0:(p=Q.additionalButton)==null?void 0:p.thumbnailOverlayButtonViewModels},e=function(){var Q=[_.M(RF4,{volumeProps:G}),
_.M(jfc,{playerControlsProps:G})];y()===1&&Q.push(_.M($uO,{playerApi:function(){return G().playerApi}}));
y()===2&&Q.push(_.M(FGC,{appApi:function(){return G().appApi}}));
y()===3&&Q.push(_.M(C1Y,{playerApi:function(){return G().playerApi}}));
var p=c();if(y()===4&&p){p=_.l(p);for(var V=p.next(),L={};!V.done;L={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$52:void 0,command$jscomp$569:void 0},V=p.next()){V=V.value;L.tooltip$jscomp$2=V.tooltip;var r=void 0,H=void 0;L.ariaLabel$jscomp$20=((r=V.accessibility)==null?void 0:(H=r.accessibilityData)==null?void 0:H.label)||L.tooltip$jscomp$2;r=void 0;L.icon$jscomp$52=(r=V.icon)==null?void 0:r.iconType;L.command$jscomp$569=V.command;L.tooltip$jscomp$2&&L.ariaLabel$jscomp$20&&L.icon$jscomp$52&&
Q.push(_.M(ISi,{title:function(O){return function(){return O.tooltip$jscomp$2}}(L),
ariaLabel:function(O){return function(){return O.ariaLabel$jscomp$20}}(L),
icon:function(O){return function(){return O.icon$jscomp$52}}(L),
command:function(O){return function(){return O.command$jscomp$569}}(L)}))}}p=W();
if(y()===4&&p)for(p=_.l(p),V=p.next(),L={};!V.done;L={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$53:void 0,command$jscomp$570:void 0},V=p.next())V=V.value,L.tooltip$jscomp$3=V.title,L.ariaLabel$jscomp$21=V.accessibilityText||L.tooltip$jscomp$3,L.icon$jscomp$53=V.iconName,L.command$jscomp$570=_.jn(V.onTap),L.tooltip$jscomp$3&&L.ariaLabel$jscomp$21&&L.icon$jscomp$53&&Q.push(_.M(ISi,{title:function(O){return function(){return O.tooltip$jscomp$3}}(L),
ariaLabel:function(O){return function(){return O.ariaLabel$jscomp$21}}(L),
icon:function(O){return function(){return O.icon$jscomp$53}}(L),
command:function(O){return function(){return O.command$jscomp$570}}(L)}));
return Q};
return _.M(_.b,{cond:z,then:function(){return _.M("div",{class:"ytInlinePlayerControlsTopRightControls"},_.M(_.LT,{each:e},function(Q){return _.M("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.M("div",{class:"ytInlinePlayerControlsButtonIcon"},Q))}))}})},"cg"),wl4=_.Nv(function(x){var G=x.props;
var D=x.data;var K=x.options;x={};x=_.ym("ytInlinePlayerControlsBottomRightControls",(x.ytInlinePlayerControlsBottomRightControlsHidden=function(){var z;return Yax(D(),K())&&((z=K())==null?void 0:z.insetProgressBar)&&(G().isHovering||G().isDragging)},x));
return _.M("div",{class:x},_.M(uqf,{data:D}),_.M(_.b,{cond:function(){var z;return!((z=K())==null?0:z.hideTimeDisplay)},
then:function(){return _.M(duC,{props:G,data:D})}}))},"dg"),uqf=_.Nv(function(x){var G=x.data;
return _.M(_.bA,{data:function(){var D;return KFb((D=G())==null?void 0:D.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:Ox8})},"eg"),duC=_.Nv(function(x){var G=x.props;
var D=x.data;return _.M(_.b,{cond:function(){return G().isLive},
then:function(){return _.M(qXf,null)},
else:function(){return _.M(NOi,{props:G,data:D})}})},"fg"),NOi=_.Nv(function(x){var G=x.props;
var D=x.data;var K=_.V9(function(){var z;return a_j((z=D())==null?void 0:z.thumbnailOverlays)},void 0,"kUmuA");
return _.M("div",{class:_.ym("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.gN.PLAYER_TIME_ELAPSED+" "+_.TIh(G().playedTime)}},_.M(_.qF,{data:function(){var z=_.TIh(G().videoDuration-G().playedTime);
return Object.assign({},{type:16,text:z},K())}}))},"gg"),qXf=_.Nv(function(){return _.M("div",{class:_.ym("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.M(_.qF,{data:{type:17,
text:_.gN.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"hg"),v9i=_.Nv(function(x){var G=x.props;
var D=x.data;var K=x.options;return _.M(_.pYY,{progressBarProps:G,config:function(){var z,y=_.Y((z=D())==null?void 0:z.multiMarkersPlayerBar,_.tVZ),c;z=((c=K())==null?0:c.insetProgressBar)?2:1;var W;c=(W=K())==null?void 0:W.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:z,chapterData:y,isInlinePlayback:!0,doSeekOnClick:c,playheadDotBehavior:c?1:0}}})},"ig");_.tn(_.Nv(function(x){var G=x.data;var D=x.appApi;var K=x.options;var z=Mik(G,shY(D));x={};D={};return _.M("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.M("div",{class:_.ym("ytInlinePlayerControlsDarkenedOverlay",(x.ytInlinePlayerControlsDarkenedOverlayShow=function(){return z().isHovering},x))}),_.M(At4,null),_.M(n9c,{data:z}),_.M(ixb,{data:G}),_.M(Hxb,{playerControlsProps:z,
isShortsPage:!1}),_.M("div",{class:_.ym((D.ytInlinePlayerControlsControlsHidden=function(){return z().isDragging},D))},_.M(g96,{props:z,
data:G,options:K}),_.M(wl4,{props:z,data:G,options:K})),_.M(_.b,{cond:function(){return Yax(G(),K())},
then:function(){return _.M(v9i,{props:z,data:G,options:K})}}))},"ag"),"yt-inline-player-controls",{props:{data:_.ik,
appApi:_.fz,options:_.ik}});var ui=function(){var x=_.n.apply(this,arguments)||this;x.opts=null;x.playerControlsData=null;x.playerControlsAppApi={openInMiniplayer:function(){x.openInMiniplayer()}};
x.playerControlsOptions={};x.noAnimation=!1;x.playbackIntentTriggered=!1;x.positionData=null;x.hidden=!0;x.active=!1;x.playing=!1;x.videoPreviewDataIndex=0;x.JSC$16875_playerPromise=null;x.player=null;x.enableAudioControls=!1;x.hasBeenUnmuted=!1;x.captionsHaveBeenTurnedOff=!1;x.JSC$16875_playerEvents=new Map;x.videoPreviewFetchRequest=null;x.scheduledPreviewEndJobId=null;x.JSC$16875_preventProgressSaveTimer=null;x.watchEndpointStartTimeUpdaterInterval=null;x.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};x.windowOnBlurFn=function(){x.deactivate()};
return x};
_.m(ui,_.n);_.a=ui.prototype;
_.a.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.B("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"}}}};
_.a.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$16875_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$16875_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16875_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$16875_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.ae(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.ae(this,this.onScroll))};
_.a.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.ae(this,this.onScroll))};
_.a.onPageTypeChange=function(){this.deactivate()};
_.a.onWindowResized=function(){this.deactivate()};
_.a.onCaptionsChanged=function(x){x=!!x.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!x);this.setCaptionSize()};
_.a.setCaptionSize=function(){var x;if(this.active&&!this.captionsHaveBeenTurnedOff&&((x=this.player)==null?0:x.getCaptionWindowContainerId())){var G;(G=this.player)==null||G.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.a.currentPageAllowed=function(){return!this.isWatchPage};
_.a.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var x=this.positionData,G=x.initialTopPosition,D=x.initialHorizontalPosition;_.K7(this.hostElement,{"--ytd-video-preview-translate-left":x.finalHorizontalPosition-D+"px","--ytd-video-preview-translate-top":x.finalTopPosition-G+"px","--ytd-video-preview-original-top-position":G+"px","--ytd-video-preview-original-horizontal-position":D+"px",
"--ytd-video-preview-initial-scale":"scale("+x.initialScale+")","--ytd-video-preview-width":x.videoPreviewWidth+"px","--ytd-video-preview-height":x.videoPreviewHeight+"px"});return!0};
_.a.handleOpenVideoPreviewAction=function(x){var G=this,D;return _.T(function(K){if(!G.currentPageAllowed())return K.return(0);G.opts=x;return(D=G.alignVideoPreviewForAnimation(x.thumbnail))?K.return(G.activate()):K.return(0)})};
_.a.onMouseLeave=function(x){this.shouldDeactivateOnMouseLeave(x)&&this.deactivate()};
_.a.onScroll=function(){var x,G;((x=this.opts)==null?0:x.isAutoplay)&&((G=this.opts)==null?0:G.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.a.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.Fj.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.a.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.a.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",ui.JSC$16874_DEFAULT_CLICK_LOCATION_BEHAVIOR,ui.JSC$16874_CLICK_LOCATION_ID_MAP)};
_.a.shouldDeactivateOnMouseLeave=function(x){x=x.relatedTarget;if(!x)return!0;var G;return(G=this.opts)!=null&&G.mediaRenderer?!_.Pi(this.opts.mediaRenderer).contains(x):!0};
_.a.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.a.onPlaybackStart=function(){var x=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$16875_preventProgressSaveTimer=
_.x7(_.Fj,function(){x.resetPreventProgressSaveTimer()},1E4);
var G;if((G=this.opts)==null?0:G.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.x7(_.Fj,function(){x.hasMultipleVideoPreviews()?x.startPlaybackForNextVideo():x.deactivate()},this.opts.videoPreviewDurationMs);
var D;this.player.setGlobalCrop(((D=this.opts)==null?0:D.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.a.getRoundedCornersSize=function(){var x;if((x=this.opts)==null?0:x.roundedCornersSize){var G;return(G=this.opts)==null?void 0:G.roundedCornersSize}var D;if((D=this.opts)==null?0:D.enableRounding){var K;if(((K=this.opts)==null?void 0:K.thumbnailSize)==="small")return 1;var z;if(((z=this.opts)==null?void 0:z.thumbnailSize)==="medium")return 2;var y;if(((y=this.opts)==null?void 0:y.thumbnailSize)==="large")return 3}return _.B("web_imp_inset_progress_bar")?3:0};
_.a.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.a.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.a.onMediaContainerClick=function(x){this.isShortcutClick(x)||(this.navigateToWatch(x),x.preventDefault(),x.stopPropagation())};
_.a.activate=function(){var x=this,G,D,K,z,y,c,W,e,Q;return _.T(function(p){switch(p.nextAddress){case 1:if(!x.currentPageAllowed())return p.return(0);D=(G=x.videoPreviewData)==null?void 0:G.inlinePlaybackEndpoint;K=_.Aa.instance;if(!D||!K)return p.return(0);x.playbackIntentTriggered=!0;((z=x.opts)==null?0:z.mediaRenderer)&&((y=x.opts)==null||!y.isAutoplay)&&Gjc(x.opts.mediaRenderer,function(){x.deactivate()});
_.w1(x,function(){x.revealPreviewUi()});
c={};_.B("enable_unknown_lact_fix_on_html5")&&(_.Eo().resolve(_.su),c.lact=_.xq());x.videoPreviewFetchRequest=tzf(K,x.getInlinePlaybackRequestData(x.videoPreviewData),c);_.Kl(p,2);return _.Z(p,x.videoPreviewFetchRequest,4);case 4:W=p.yieldResult;if(((e=W)==null?void 0:(Q=e.playabilityStatus)==null?void 0:Q.status)==="OK")return p.return(x.handlePlayerResponse(W));throw Error("Gj");case 2:_.lX(p),x.deactivate();case 3:return p.return(1)}})};
_.a.getInlinePlaybackRequestData=function(x){var G,D=_.B("web_imp_player_mute_params")?((G=this.opts)==null?void 0:G.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:x.inlinePlaybackEndpoint,startPlaybackInMutedState:D}};
_.a.handlePlayerResponse=function(x){var G=this,D,K,z,y,c,W,e,Q,p,V;return _.T(function(L){if(L.nextAddress==1){D=G.getInlinePlaybackVideoId();if(!(((K=x)==null?0:(z=K.videoDetails)==null?0:z.videoId)&&G.currentPageAllowed()&&G.playbackIntentTriggered&&G.opts&&D))return G.deactivate(),L.return(0);if(x.videoDetails.videoId!==D)return L.return(0);G.enableAudioControls=!!((y=x.playerConfig)==null?0:(c=y.inlinePlaybackConfig)==null?0:c.showAudioControls);x.trackingParams=G.getInlinePlaybackTrackingParams();
if(!G.inlinePlayer)return L.return(0);W={};if(Q=_.Y((e=G.videoPreviewData)==null?void 0:e.inlinePlaybackEndpoint,_.d5))W.watch_endpoint=Q;if(G.videoPreviewData){var r,H=(r=_.Y(G.videoPreviewData.inlinePlaybackEndpoint,_.d5))==null?void 0:r.startTimeSeconds;H!==void 0&&(x.playerConfig||(x.playerConfig={}),x.playerConfig.playbackStartConfig||(x.playerConfig.playbackStartConfig={}),x.playerConfig.playbackStartConfig.startPosition||(x.playerConfig.playbackStartConfig.startPosition={}),x.playerConfig.playbackStartConfig.startSeconds=
H,x.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(H*1E3))}G.inlinePlayer.loadVideoWithPlayerResponse(x,W);if(G.JSC$16875_playerPromise)return L.jumpTo(2);G.JSC$16875_playerPromise=G.inlinePlayer.getPlayerPromise();return _.Z(L,G.JSC$16875_playerPromise,3)}L.nextAddress!=2&&(p=L.yieldResult,p.setInlinePreview(!0),p.setSizeStyle(!1,!0),G.ytPlayerListenerBehavior.listenToPlayerEvents(p,G.JSC$16875_playerEvents),G.player=p,_.h$(G.hostElement,"player-api-ready"));((V=G.opts)==
null?0:V.showPlayerControls)&&G.videoPreviewData&&G.player&&(G.playerControlsData={playerResponse:x,isInlinePlayback:!0,thumbnailOverlays:G.videoPreviewData.thumbnailOverlays,playerApi:G.player},G.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!G.unroundCornersForPlayback,additionalButton:G.getAdditionalButtonType(G.videoPreviewData.thumbnailOverlays)});return L.return(2)})};
_.a.revealPreviewUi=function(){var x=this;this.playbackIntentTriggered&&_.IkC(this,function(){x.hasThumbnailPositionChangedSinceTriggered()||(x.updateActiveState(!0),x.noAnimation=!1)})};
_.a.hasThumbnailPositionChangedSinceTriggered=function(){var x=this.positionData,G=this.getThumbnailPositionData();return(x==null?void 0:x.initialTopPosition)!==(G==null?void 0:G.initialTopPosition)||(x==null?void 0:x.initialHorizontalPosition)!==(G==null?void 0:G.initialHorizontalPosition)};
_.a.getThumbnailPositionData=function(){var x,G;if((G=this.opts)==null||!G.thumbnail)return null;G=this.opts.thumbnail;var D=((x=this.opts)==null?0:x.cropPlayerToFillThumbnailHorizontally)?!1:!0;var K=G.getBoundingClientRect();x=K.width;G=K.height;var z=K.top+window.scrollY;K=K.left+window.scrollX;var y=D?Math.ceil(x):x;D=D?Math.ceil(G):G;var c=x/y;x={initialScale:c,initialTopPosition:z-12*c,finalTopPosition:z-12-(D-G)/2,initialHorizontalPosition:K-(12+(y-x)/2),finalHorizontalPosition:K-12-(y-x)/
2,videoPreviewWidth:y,videoPreviewHeight:D};return x};
_.a.updateActiveState=function(x){this.active=x;this.ytdReduxBehavior.dispatch(_.EO({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:x}))};
_.a.stopPlayer=function(x){x=x.resetWatchEndpointStartTime===void 0?!1:x.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(x)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.Fj.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.a.deactivate=function(x){x=x===void 0?{}:x;x=x.resetWatchEndpointStartTime===void 0?!1:x.resetWatchEndpointStartTime;EG&&(EG.disconnect(),EG=null);this.stopPlayer({resetWatchEndpointStartTime:x});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.a.isValidThumbnailOverlayButton=function(x,G){x=x.thumbnailOverlayButtonRenderer;var D;return!!x&&!!x.tooltip&&!((D=x.icon)==null||!D.iconType)&&G.includes(x.icon.iconType)};
_.a.isValidThumbnailOverlayButtonViewModel=function(x,G){var D;x=_.Y((D=x.thumbnailOverlayButtonViewModel)==null?void 0:D.overlayButton,_.Ls);return!!x&&!!x.title&&!!x.iconName&&G.includes(x.iconName)};
_.a.getAdditionalButtonType=function(x){var G=this;if(_.B("web_imp_fastforward_button"))return{button:1};if(_.B("web_imp_miniplayer_button"))return{button:2};if(_.B("web_imp_playback_speed_button"))return{button:3};var D=["BOX_STACK_3"],K=(x||[]).filter(function(y){return G.isValidThumbnailOverlayButton(y,D)}).map(function(y){return y.thumbnailOverlayButtonRenderer});
if(K.length)return{button:4,thumbnailOverlayButtonRenderers:K};var z=["BOX_STACK_3"];x=(x||[]).filter(function(y){return G.isValidThumbnailOverlayButtonViewModel(y,z)}).map(function(y){return _.Y(y.thumbnailOverlayButtonViewModel.overlayButton,_.Ls)});
if(x.length)return{button:4,thumbnailOverlayButtonViewModels:x}};
_.a.allowCaptions=function(){var x;return!((x=this.opts)==null?0:x.forceCaptionsOff)};
_.a.allowUnmuting=function(){var x;return this.enableAudioControls&&!((x=this.opts)==null?0:x.forceMutedVolume)};
_.a.beginStartTimeUpdater=function(){var x=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.yR(function(){x.updateWatchEndpointStartTime()},1E3)};
_.a.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.a.resetPreventProgressSaveTimer=function(){this.JSC$16875_preventProgressSaveTimer!==null&&(_.Fj.cancelJob(this.JSC$16875_preventProgressSaveTimer),this.JSC$16875_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.a.updateWatchEndpointStartTime=function(x){var G=this.videoPreviewData;if(this.player&&G!=null&&G.inlinePlaybackEndpoint&&!this.JSC$16875_preventProgressSaveTimer){x=x?0:Math.floor(this.player.getCurrentTime());var D=_.Y(G.navigationEndpoint,_.d5);D&&(D.startTimeSeconds=x);if(G=_.Y(G.inlinePlaybackEndpoint,_.d5))G.startTimeSeconds=x}};
_.a.isShortcutClick=function(x){return!!x&&(x.ctrlKey||x.shiftKey||x.metaKey)};
_.a.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.a.openInMiniplayer=function(){var x=this,G,D;return _.T(function(K){if(K.nextAddress==1){D=(G=x.videoPreviewData)==null?void 0:G.navigationEndpoint;if(!D)return K.return();_.or().lockupActivation=!0;return _.Z(K,_.uN7(_.Eo().resolve(_.O$),D),2)}_.or().userActivation=!0;_.c5(K)})};
_.a.navigateToWatch=function(x){var G,D=(G=this.videoPreviewData)==null?void 0:G.navigationEndpoint;if(D){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(D,x,!0);else{if(_.B("web_thumbnail_to_watch_transition")){var K,z;(K=this.opts)==null||(z=K.onNavigateToWatchCallback)==null||z.call(K)}_.h$(this.hostElement,"yt-navigate",{endpoint:D})}this.deactivate()}};
_.a.getInlinePlaybackVideoId=function(){var x,G;return(G=_.Y((x=this.videoPreviewData)==null?void 0:x.inlinePlaybackEndpoint,_.d5))==null?void 0:G.videoId};
_.a.getInlinePlaybackTrackingParams=function(){var x,G;return(x=this.videoPreviewData)==null?void 0:(G=x.inlinePlaybackEndpoint)==null?void 0:G.clickTrackingParams};
_.a.hasMultipleVideoPreviews=function(){var x;return!!(((x=this.opts)==null?0:x.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.a.startPlaybackForNextVideo=function(){var x;(x=this.opts)!=null&&x.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())};
_.Nq.Object.defineProperties(ui.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.opts)==null?0:x.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.opts)==null||!x.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 x;if(Array.isArray((x=this.opts)==null?void 0:x.videoPreviewData)){var G;return(G=this.opts)==null?void 0:G.videoPreviewData[this.videoPreviewDataIndex]}var D;return(D=this.opts)==null?void 0:D.videoPreviewData}}});
ui.prototype.onIsAdsVideoChange=ui.prototype.onIsAdsVideoChange;ui.prototype.onInlinePreviewIsEnabledChange=ui.prototype.onInlinePreviewIsEnabledChange;ui.prototype.optsChanged=ui.prototype.optsChanged;ui.prototype.onMouseLeave=ui.prototype.onMouseLeave;ui.JSC$16874_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);ui.JSC$16874_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"}];
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],ui.prototype,"actionHandlerBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],ui.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.nS.YtPlayerListenerBehavior),_.N("design:type",_.i4)],ui.prototype,"ytPlayerListenerBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],ui.prototype,"componentBehavior",void 0);
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],ui.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],ui.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.Jp.YtSparklesClickLocationBehavior),_.N("design:type",Object)],ui.prototype,"ytSparklesClickLocationBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],ui.prototype,"opts",void 0);_.q([_.R(),_.N("design:type",Object)],ui.prototype,"playerControlsData",void 0);
_.q([_.R(),_.N("design:type",Object)],ui.prototype,"playerControlsAppApi",void 0);_.q([_.R(),_.N("design:type",Object)],ui.prototype,"playerControlsOptions",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],ui.prototype,"noAnimation",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],ui.prototype,"hidden",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],ui.prototype,"active",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],ui.prototype,"playing",void 0);_.q([_.R({selector:_.liL}),_.N("design:type",Boolean)],ui.prototype,"inlinePreviewIsEnabled",void 0);_.q([_.R(),_.N("design:type",String)],ui.prototype,"pagePath",void 0);_.q([_.R({selector:_.$_}),_.N("design:type",Boolean)],ui.prototype,"isWatchPage",void 0);_.q([_.U("videoPreviewData"),_.N("design:type",Object),_.N("design:paramtypes",[])],ui.prototype,"thumbnailData",null);
_.q([_.U("opts","active"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ui.prototype,"hidePlayerControls",null);_.q([_.U("opts"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ui.prototype,"isAdsVideo",null);_.q([_.U("opts"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ui.prototype,"roundedCornersSmall",null);
_.q([_.U("opts"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ui.prototype,"roundedCornersMedium",null);_.q([_.U("opts"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ui.prototype,"roundedCornersLarge",null);_.q([_.U("opts"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ui.prototype,"unroundCornersForPlayback",null);
_.q([_.U("opts","videoPreviewDataIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],ui.prototype,"videoPreviewData",null);_.q([_.R(),_.N("design:type",Object)],ui.prototype,"videoPreviewDataIndex",void 0);_.q([_.cD("#inline-player"),_.N("design:type",Object)],ui.prototype,"inlinePlayer",void 0);_.q([_.oe("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[MouseEvent]),_.N("design:returntype")],ui.prototype,"onMouseLeave",null);
_.q([_.Z6("opts"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ui.prototype,"optsChanged",null);_.q([_.Z6("inlinePreviewIsEnabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ui.prototype,"onInlinePreviewIsEnabledChange",null);_.q([_.yf("isAdsVideo"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ui.prototype,"onIsAdsVideoChange",null);
ui=_.q([_.d({is:"ytd-video-preview",disableElementRegistration:!0})],ui);
_.w(ui,"ytd-video-preview",function(){if(muT!==void 0)return muT;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return muT=x},{mode:2});
}catch(e){_._DumpException(e)}
try{
var OVC,XzO,Awx;OVC=function(x){return _.B("kevlar_watch_cinematics_invisible")||x.fullscreen&&_.B("kevlar_watch_cinematics_invisible_in_fullscreen")||x.theater&&!x.fullscreen&&_.B("kevlar_watch_cinematics_invisible_in_theater")};
XzO=function(){var x=document.createElement("canvas"),G=x.getContext("2d");if(!G)throw Error("Vl");_.H_(x,{position:"absolute",width:"100%",height:"100%"});return{element:x,context:G}};
Awx=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.B("kevlar_watch_cinematics_css_blur")};
_.Uxj=function(x,G,D){return Math.abs(x-G)<=(D||1E-6)};
_.R38=function(x,G){return x==G?!0:x&&G?x.width==G.width&&x.height==G.height:!1};_.SwO=new _.J("notificationActionRenderer");var nFf=function(x){var G=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.Kt;this.element.addEventListener("load",function(){G.loaded=!0;G.resolver.resolve(G.element)});
this.element.addEventListener("error",function(){G.failed=!0});
this.element.src=x};var iVi=function(x,G){this.image=x;this.frame=G};
iVi.prototype.drawToCanvas=function(x,G){var D=this.frame.width/this.frame.columns,K=this.frame.height/this.frame.rows,z=G.offsetX,y=G.offsetY;OVC(G)?(x.fillStyle=G.fullscreen?"#000":"#0f0f0f",x.fillRect(z,y,(G==null?void 0:G.width)||D,(G==null?void 0:G.height)||K)):x.drawImage(this.image,this.frame.column*D,this.frame.row*K,D,K,z,y,(G==null?void 0:G.width)||D,(G==null?void 0:G.height)||K)};
var gFc=function(x){this.color=x};
gFc.prototype.drawToCanvas=function(x,G){var D=G.offsetX,K=G.offsetY,z=G.width,y=G.height;x.fillStyle=OVC(G)?G.fullscreen?"#000":"#0f0f0f":this.color;x.fillRect(D,K,z,y)};var P7=function(x,G){_.vQ.call(this);this.playerApi=G;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.cu(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();udY(this,x);dxk(this);this.update()};
_.m(P7,_.vQ);P7.prototype.addEventListeners=function(){var x=this,G=function(){x.update()},D=function(z){x.paused||(z.type==="newdata"&&(x.mosaics.clear(),wzb(x),E5(x)),dxk(x),x.update())},K=function(){x.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",G);this.playerApi.addEventListener("onVideoDataChange",D);this.playerApi.addEventListener("onStateChange",K);this.addOnDisposeCallback(function(){x.playerApi.removeEventListener("onVideoProgress",G);x.playerApi.removeEventListener("onVideoDataChange",D);x.playerApi.removeEventListener("onStateChange",K)})};
var udY=function(x,G){x.cinematicContainerRenderer!==G&&(x.cinematicContainerRenderer=G,wzb(x),E5(x),x.colorStoreUpdateJobId=_.Fj.addLowPriorityJob(function(){var D;if((D=x.cinematicContainerRenderer.colorStore)!=null&&D.sampledColors){D=Infinity;for(var K=_.l(x.cinematicContainerRenderer.colorStore.sampledColors),z=K.next();!z.done;z=K.next()){z=z.value;var y=Number(z.key);y!==0&&y<D&&(D=y);y=_.jT(z.value);x.colorStore.set(z.key,y)}x.colorStoreTimeInterval=D}}))},wzb=function(x){x.colorStoreUpdateJobId&&
(_.Fj.cancelJob(x.colorStoreUpdateJobId),x.colorStoreUpdateJobId=void 0);
x.colorStore.clear();x.currentStoryboardColor=void 0},qwf=function(x,G){var D;
return(D=x.getStoryboardFrame(G))==null?void 0:D.url};
P7.prototype.onPlayerStateChange=function(){this.update()};
P7.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var dxk=function(x){var G=x.getStoryboardFrame(0);G&&(G=new _.cu(G.width/G.columns,G.height/G.rows),_.R38(x.currentStoryboardSize,G)||(x.currentStoryboardSize=G,x.publish("STORYBOARD_SIZE_CHANGED",x.currentStoryboardSize)))},Nzb=function(x,G){x.currentStoryboardIndex=G;
x.pendingStoryboardIndex=NaN;G=x.getStoryboardFrame(x.currentStoryboardIndex);x.currentStoryboard=new iVi(x.mosaics.get(G.url).element,G);x.publish("STORYBOARD_CHANGED",x.currentStoryboard);x.lastUpdateTime=(0,_.kK)()};
P7.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var E5=function(x){x.currentStoryboardIndex=NaN;x.pendingStoryboardIndex=NaN;x.currentStoryboard&&(x.currentStoryboard=void 0,x.publish("STORYBOARD_CHANGED",void 0));x.lastUpdateTime=NaN};
P7.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)E5(this);else{var x=this.playerApi.getPlayerState(1);if(x===-1||x===5||x===0)E5(this);else if(isNaN(this.lastUpdateTime)||!((0,_.kK)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(x=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){x=""+Math.round(x*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var G=this.colorStore.get(x);G?G!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=G,this.currentStoryboard=new gFc(G),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.kK)()):(_.O9(new _.LL("Could not find color for timestamp: "+x,this.cinematicContainerRenderer)),E5(this))}else E5(this);else vF4(this,x)}};
var vF4=function(x,G){var D=x.getStoryboardFrameIndex(G);if(D!==x.currentStoryboardIndex&&D!==x.pendingStoryboardIndex){G=qwf(x,D);var K=x.mosaics.get(G);K?K.loaded&&Nzb(x,D):(x.pendingStoryboardIndex=D,D=new nFf(G),x.mosaics.set(G,D),D.resolver.promise.then(function(){if(!x.isDisposed()&&!x.paused&&!isNaN(x.pendingStoryboardIndex)){var z=qwf(x,x.pendingStoryboardIndex);if(z){var y;(y=x.mosaics.get(z))!=null&&y.loaded&&Nzb(x,x.pendingStoryboardIndex)}else E5(x)}}))}};
P7.prototype.getStoryboardFrameIndex=function(x){var G=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(x,G)};
P7.prototype.getStoryboardFrame=function(x){var G=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,D,K;return((K=(D=this.playerApi).getStoryboardFrame)==null?void 0:K.call(D,x,G))||null};
P7.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var xQ=function(x,G,D,K){K=K===void 0?!1:K;_.Ya.call(this);this.cinematicContainerRenderer=G;this.playerApi=D;this.theater=this.fullscreen=!1;var z;this.ambientLightThemeEnabled=!K&&!!(G==null?0:(z=G.config)==null?0:z.enableInLightTheme);this.ambientFullscreenEnabled=K&&_.B("web_cinematic_fullscreen");this.container=document.createElement("div");x.appendChild(this.container);var y;if(_.B("web_cinematic_theater_mode")||_.B("web_cinematic_fullscreen")||(G==null?0:(y=G.config)==null?0:y.enableInLightTheme))this.ambientV2Container=
document.createElement("div"),this.container.appendChild(this.ambientV2Container);Jwk(this);x=this.ambientV2Container||this.container;this.backCanvas=XzO();this.frontCanvas=XzO();x.appendChild(this.backCanvas.element);x.appendChild(this.frontCanvas.element);this.storyboardManager=new P7(G,this.playerApi);_.WZ(this,this.storyboardManager);this.addEventListeners();fAf(this)?tp8(this,100+hs(this)*3*2,100+hs(this)*3*2):kfc(this);Ps4(this,this.storyboardManager.currentStoryboard)};
_.m(xQ,_.Ya);var Jwk=function(x){x.ambientV2Container?EF8(x):(_.H_(x.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+h3j(x)+", "+xbj(x)+")"}),Awx()&&_.H_(x.container,"filter","blur("+_.Gz("cinematic_watch_css_filter_blur_strength",40)+"px)"))},EF8=function(x){if(x.ambientV2Container){var G=x.playerApi.getVideoAspectRatio();
_.H_(x.container,{"aspect-ratio":""+G,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.H_(x.ambientV2Container,{"aspect-ratio":""+G,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+h3j(x)+", "+xbj(x)+")"});Awx()&&_.H_(x.ambientV2Container,"filter","blur("+_.Gz("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
xQ.prototype.setFullscreen=function(x,G){this.fullscreen=x;this.theater=!!G;Jwk(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),x=this.storyboardManager.currentStoryboard,GNO(this),x&&Dbj(this,x)};
xQ.prototype.addEventListeners=function(){var x=this,G=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(z){Ps4(x,z)}),D=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){kfc(x)});
this.addOnDisposeCallback(function(){x.storyboardManager.unsubscribeByKey(G);x.storyboardManager.unsubscribeByKey(D)});
if(this.ambientV2Container){var K=function(){EF8(x)};
this.playerApi.addEventListener("onVideoDataChange",K);this.addOnDisposeCallback(function(){x.playerApi.removeEventListener("onVideoDataChange",K)})}};
var kfc=function(x){if(!fAf(x)){var G=x.storyboardManager.currentStoryboardSize;isNaN(G.width)||isNaN(G.height)||tp8(x,Number(G.width)+hs(x)*3*2,Number(G.height)+hs(x)*3*2)}},tp8=function(x,G,D){x.backCanvas.element.width=G;
x.backCanvas.element.height=D;x.frontCanvas.element.width=G;x.frontCanvas.element.height=D},fAf=function(x){return x.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},Ps4=function(x,G,D){D=D===void 0?!1:D;
var K=x.frontCanvas.element.getAnimations()[0];K?(K.pause(),x.backCanvas.context.globalAlpha=Number(getComputedStyle(x.frontCanvas.element).opacity),x.frontCanvas.element.style.opacity="0",K.finish()):x.backCanvas.context.globalAlpha=1;x.backCanvas.context.drawImage(x.frontCanvas.element,0,0,x.backCanvas.element.width,x.backCanvas.element.height);GNO(x);G&&Dbj(x,G);G=G?x.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.Gz("cinematic_watch_fade_out_duration",500);K=_.Gz("cinematic_watch_transition_frame_rate")/
1E3;var z={};K&&(z={easing:"steps("+Math.round(G*K)+")"});(D===void 0?0:D)||x.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:G,iterations:1},z));x.frontCanvas.element.style.opacity="1"},GNO=function(x){var G=x.ambientLightThemeEnabled,D=x.ambientLightThemeEnabled||x.ambientFullscreenEnabled&&!_.B("web_cinematic_fullscreen_v2");
x.frontCanvas.context.fillStyle=x.theater&&G||x.fullscreen&&D?"#000":"#0f0f0f";Awx()||(x.frontCanvas.context.filter="blur(0)");x.frontCanvas.context.fillRect(0,0,x.frontCanvas.element.width,x.frontCanvas.element.height)},Dbj=function(x,G){Awx()||(x.frontCanvas.context.filter="blur("+hs(x)+"px)");
x.frontCanvas.context.globalAlpha=_.Gz("cinematic_watch_effect_opacity",.4);var D={offsetX:hs(x)*3,offsetY:hs(x)*3,theater:x.theater,fullscreen:x.fullscreen};fAf(x)&&(D.width=100,D.height=100);G.drawToCanvas(x.frontCanvas.context,D);x.frontCanvas.context.globalAlpha=1},hs=function(x){var G;
return(G=x.cinematicContainerRenderer.config.blurStrength)!=null?G:5},h3j=function(x){var G,D;
if((x.fullscreen||x.theater)&&((G=x.cinematicContainerRenderer.config)==null?0:(D=G.watchFullscreenConfig)==null?0:D.colorSourceWidthMultiplier))return x.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var K;return(K=x.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?K:x.cinematicContainerRenderer.config.colorSourceSizeMultiplier},xbj=function(x){var G,D;
if((x.fullscreen||x.theater)&&((G=x.cinematicContainerRenderer.config)==null?0:(D=G.watchFullscreenConfig)==null?0:D.colorSourceHeightMultiplier))return x.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var K;return(K=x.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?K:x.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
xQ.prototype.disposeInternal=function(){_.Ya.prototype.disposeInternal.call(this);this.container.remove()};
xQ.prototype.clear=function(){Ps4(this,void 0,!0)};
xQ.prototype.pause=function(){this.storyboardManager.pause()};var KtC;KtC=_.c_(function(){var x,G,D=!((G=(x=document.createElement("canvas")).getContext)==null||!G.call(x,"2d")),K;x=!((K=CSS)==null||!K.supports("filter: blur(0)"));K=!!Element.prototype.animate&&!!Element.prototype.getAnimations;G=_.B("web_cinematic_fullscreen")||_.B("web_cinematic_theater_mode")||_.B("web_cinematic_light_theme")||!1;var z;return D&&x&&K&&(!G||!((z=CSS)==null||!z.supports("aspect-ratio: 1 / 1")))});
_.Gv=function(x,G){_.vQ.call(this);this.container=x;this.playerApi=G;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=zY6(this);this.update()};
_.m(_.Gv,_.vQ);_.aGc=function(x){var G=document.documentElement.hasAttribute("dark");x.isDarkModeEnabled=G;x.update()};
_.ovf=function(x,G){x.settingEnabled=G;x.update()};
_.Gv.prototype.setFullscreen=function(x,G){this.fullscreen=x;this.theater=!!G;this.update()};
_.y8c=function(x,G){x.cinematicContainerRenderer=G;x.cinematicContainerRenderer&&(x.cinematicsVe=_.BH(x.isShorts()?227858:159022),_.hz(_.en(),x.cinematicsVe),x.loggingClientData={watchCinematicContainerData:{presentationStyle:x.cinematicContainerRenderer.presentationStyle}});x.update()};
_.Gv.prototype.isShorts=function(){var x,G;return((x=this.cinematicContainerRenderer)==null?void 0:(G=x.config)==null?void 0:G.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.Gv.prototype.isAllowed=function(){var x;if(x=KtC()){var G,D,K;x=((D=this.cinematicContainerRenderer)==null?void 0:D.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((K=this.cinematicContainerRenderer)==null||!K.colorStore)||((G=this.cinematicContainerRenderer)==null?void 0:G.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(x)if(_.B("web_cinematics_pausing")){var z,y;x=this.isDarkModeEnabled||!!((z=this.cinematicContainerRenderer)==
null?0:(y=z.config)==null?0:y.enableInLightTheme)}else{var c,W;z=!!((c=this.cinematicContainerRenderer)==null?0:(W=c.config)==null?0:W.enableInLightTheme)&&(_.Am("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);x=this.isDarkModeEnabled||z}if(c=x){var e,Q;c=!((Q=(e=this.prefersReducedMotionQuery)==null?void 0:e.matches)!=null&&Q)}return c};
_.lGc=function(x){(x=x.currentCinematicEffect)!=null&&(x=x.storyboardManager,x.paused=!1,dxk(x),x.update())};
_.Gv.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var zY6=function(x){if(!_.B("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var G=window.matchMedia("(prefers-reduced-motion: reduce)"),D=function(){x.update()};
G.addListener(D);x.addOnDisposeCallback(function(){G.removeListener(D)});
return G}};
_.Gv.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var x=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new xQ(this.container,x,this.playerApi,this.isDarkModeEnabled),_.WZ(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var G=this.currentCinematicEffect;G.cinematicContainerRenderer!==
x&&(G.cinematicContainerRenderer=x,udY(G.storyboardManager,x),Jwk(G));x=_.M5();_.Qg(0,194,!0);x.save();x=_.CC();this.cinematicsVe&&x&&_.i0(x,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(x=_.CC(),this.cinematicsVe&&x&&_.gB(x,[this.cinematicsVe],!1,this.loggingClientData),_.kS(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.Nq.Object.defineProperties(_.Gv.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var ywf;var lAf;_.BD({_template:function(){if(lAf!==void 0)return lAf;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=
x.content,D=G.insertBefore;ywf===void 0&&(ywf=document.createElement("template"));var K=ywf;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return lAf=x},
is:"tp-yt-iron-pages",behaviors:[_.Lg,_.Re],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var DNc;_.KOY=function(){if(_.B("kevlar_home_skeleton")&&!DNc){var x=document.querySelector("#home-page-skeleton");x&&(_.Fs("hgcr"),_.VF(x),DNc=!0)}};
DNc=!1;_.bc=new _.J("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var xjj,GO8,Dji,KDc,zXO,a0c,l0O,Tsf,WDT,cVb,o4f,yVf,MPc,Qii;_.hOf=function(x,G,D){G=G===void 0?5:G;if(G!==0){var K=typeof x==="function"?x():document.querySelector(x);K?(D==null?0:D.enableSmartFocus)?_.hF3(K):K.focus():setTimeout(function(){_.hOf(x,G-1,D)},500)}};
xjj=function(x){return _.JXE(_.vbQ(x&16777215))<.5};
GO8=function(x,G,D){var K=D.minimumRowsOfVideosBetweenSections===void 0?1:D.minimumRowsOfVideosBetweenSections;return x<(D.minimumRowsOfVideosAtStart===void 0?2:D.minimumRowsOfVideosAtStart)||G!==null&&x-G<=K?!1:!0};
Dji=function(x,G){var D=0,K=0;x=_.l(x);for(var z=x.next();!z.done;z=x.next()){var y=z.value;if(y.richItemRenderer)y.richItemRenderer.rowIndex=K,y.richItemRenderer.colIndex=D++,D===G&&(D=0,K++);else if(y.richGroupRenderer&&y.richGroupRenderer.numColumns!==void 0)y.richGroupRenderer.rowIndex=K,y.richGroupRenderer.colIndex=D,D+=y.richGroupRenderer.numColumns,D===G&&(D=0,K++);else if(y.richSectionRenderer){var c=z=void 0;if(y=_.Y((z=y)==null?void 0:(c=z.richSectionRenderer)==null?void 0:c.content,_.brZ))y.rowIndex=
K++}}};
KDc=function(x,G){var D=G.contentElement;G=G.rendererToTagNameMap;if(D&&G&&G.size!==0){for(var K=new Map,z=_.l(D.children),y=z.next();!y.done;y=z.next()){y=y.value;var c=y.tagName.toLowerCase(),W=K.get(c);W||(W=[],K.set(c,W));W.push(y)}if(K.size!==0)for(z=Math.min(x.length,D.children.length),y=new Map,c=0;c<z;c++){W=Object.keys(x[c])[0];W=G.get(W);if(!W)break;var e=y.get(W);e===void 0&&(e=0,y.set(W,e));var Q=K.get(W);if(!Q||e>=Q.length)break;y.set(W,e+1);W=Q[e];e=D.children[c];e!==W&&(_.njf=!0,_.i_d.set(W,
!0),D.insertBefore(W,e),_.i_d.delete(W),_.njf=!1)}}};
zXO=function(x,G,D,K,z,y,c){K=K===void 0?{}:K;if(!x||!x.length)return[];x=x.slice();var W=[],e=[];z=null;for(var Q=0,p=function(g){e.sort(function(v,P){return P.skippedOnRow-v.skippedOnRow});
for(var u,f=(u=e.shift())==null?void 0:u.content;f;)!f.richSectionRenderer&&g||W.push(f),u=void 0,f=(u=e.shift())==null?void 0:u.content},V=[];x.length>0||e.length>0;){for(var L=[],r=G;r>0;){var H=void 0,O=void 0,A=(O=e[0]&&e[0].skippedOnRow<Q?(H=e.shift())==null?void 0:H.content:void 0)!=null?O:x.shift();
if(!A)break;if(A.richItemRenderer)H=A.richItemRenderer.targetId,O=void 0,H&&((O=c)==null?0:O.has(H))&&V.push(c.get(H)),L.push(A),r--;else if(A.richGroupRenderer&&A.richGroupRenderer.numColumns!==void 0)A.richGroupRenderer.numColumns<=r?(L.push(A),r-=A.richGroupRenderer.numColumns):r===G&&A.richGroupRenderer.numColumns>G?(L.push({richGroupRenderer:Object.assign({},A.richGroupRenderer,{numColumns:G})}),r=0):e.push({content:A,skippedOnRow:Q});else if(A.richSectionRenderer)if(GO8(Q,z,K)&&r===G){W.push(A);
z=Q;Q++;continue}else e.push({content:A,skippedOnRow:Q});else if(A.continuationItemRenderer){p(!0);W.push(A);r=0;break}if(r===0)W.push.apply(W,_.B5(L));else if(!D&&x.length===0){p(!1);W.push.apply(W,_.B5(L));r=0;break}}Q++;V=_.l(V);for(L=V.next();!L.done;L=V.next())W.push(L.value),Q++;V=[]}Dji(W,G);y&&KDc(W,y);return W};
a0c=function(x){return x.talkToRecs};
l0O=function(x,G){if(G){var D=_.wK().getState().entities.flowStateEntity,K=o4f(x),z=[G];K&&K!==G&&z.push(K);var y=!0,c;if(D&&x.flowStateEntityKey&&((c=D[x.flowStateEntityKey])==null?void 0:c.primaryButtonDisabled)!==void 0){var W;y=!((W=D[x.flowStateEntityKey])==null||!W.primaryButtonDisabled)}yVf(x,K!=null?K:G,z,y)}};
Tsf=function(x){return _.la(_.wK(),function(G){return G.entities.flowStateEntity},function(G,D){if(x.flowStateEntityKey){var K,z=G==null?void 0:(K=G[x.flowStateEntityKey])==null?void 0:K.currentStepId,y;
D=D==null?void 0:(y=D[x.flowStateEntityKey])==null?void 0:y.currentStepId;y=_.wK().getState().talkToRecs;if(z&&z!==D){var c;G=(G==null?void 0:(c=G[x.flowStateEntityKey])==null?void 0:c.stepIdStack)||Object.keys(y.stepStates);c=!cVb(y==null?void 0:y.stepStates[z]);yVf(x,z,G,c)}}})};
WDT=function(x){return _.la(_.wK(),a0c,function(G){var D=o4f(x);if(D){var K=Object.keys(G.stepStates);G=!cVb(G==null?void 0:G.stepStates[D]);yVf(x,D,K,G)}})};
cVb=function(x){var G=Object.keys((x==null?void 0:x.selectionStates)||{}).reduce(function(y,c){return y||(x==null?void 0:x.selectionStates[c].isSelected)},!1),D,K,z=!!(x==null?0:(D=x.userQuery)==null?0:(K=D.userQuery)==null?0:K.trim());
return G||z};
o4f=function(x){if(x.flowStateEntityKey){var G,D,K=(G=_.wK().getState().entities.flowStateEntity)==null?void 0:(D=G[x.flowStateEntityKey])==null?void 0:D.currentStepId;if(K)return K}};
yVf=function(x,G,D,K){_.wK().dispatch(_.cq("flowStateEntity",x.flowStateEntityKey,{currentStepId:G,stepIdStack:D,key:x.flowStateEntityKey,primaryButtonDisabled:K}))};
_.eXY=function(x,G){return _.zm(x.entities,"youchatPendingResponseEntity",G)};
_.ZOc=function(x){return function(G){_.dc(_.cq("youchatPendingResponseEntity",x,{entityKey:x,isPendingResponse:G}))}};
MPc=function(x){x==null||x.addEventListener("DOMLoaded",function(){x.goToAndPlay(x.totalFrames-48,!0)})};var pnC;_.BD({_template:function(){if(pnC!==void 0)return pnC;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);
var G=x.content,D=G.insertBefore;Qii===void 0&&(Qii=document.createElement("template"));var K=Qii;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return pnC=x},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var VPx=new _.J("talkToRecsFlowRenderer");var bOT=new _.J("flowRootRenderer");var LDY=new _.J("learningJourneyQuizViewModel");var Bsf=new _.J("chipsShelfViewModel");var rVc=new _.J("responsiveContainerConfiguration");var sib=new _.J("horizontalShelfViewModel");_.Yrb=new _.J("engagementPanelSectionListRenderer");var mjf=new _.J("conversationResourceViewModel");var HOb=function(){this.horizontal=!1},$jY=function(x,G){x.horizontal=G};
HOb.prototype.position=function(x,G,D,K){K=K===void 0?1:K;x=this.delta(x)*K+G;K=Math.max(G,D);return x>=Math.min(G,D)&&x<=K?x:D};
HOb.prototype.axis=function(x){x=this.direction(x);return x==="up"||x==="down"?"Y":"X"};var zi=function(x,G,D){G=G===void 0?_.ZH():G;this.target=x;this.manager=G;this.touchAction=D;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
zi.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(_.B5(this.events)));for(var x=_.l(this.events),G=x.next();!G.done;G=x.next())this.listen(G.value)}};
zi.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.B5(this.events)));for(var x=_.l(this.events),G=x.next();!G.done;G=x.next())this.unlisten(G.value)}};
zi.prototype.listen=function(x){this.eventMap[x]&&this.target.addEventListener(x,this.eventMap[x])};
zi.prototype.unlisten=function(x){this.eventMap[x]&&this.target.removeEventListener(x,this.eventMap[x])};var aU=function(){HOb.apply(this,arguments)};
_.m(aU,HOb);aU.prototype.direction=function(x){var G=x.detail;x=G.deltaY;G=G.deltaX;return x&&!this.horizontal?x>0?"down":"up":G&&this.horizontal?G>0?"right":"left":"none"};
aU.prototype.distance=function(x){return Math.abs(this.delta(x))};
aU.prototype.delta=function(x){var G=this.direction(x),D=x.detail;x=D.deltaX;D=D.deltaY;return G==="up"||G==="down"?D||0:x||0};
aU.prototype.velocity=function(x){var G=this.direction(x),D=x.detail;x=D.velocityX;D=D.velocityY;return Math.abs(G==="up"||G==="down"?D||0:x||0)};_.oU=function(x,G,D,K,z,y){z=z===void 0?new aU:z;y=y===void 0?_.ZH():y;zi.call(this,G,y,K);var c=this;this.element=x;this.target=G;this.config=D;this.input=z;this.manager=y;this.events=["panstart","panmove","panend"];this.onPanStart=function(){c.config.draggingClass&&c.element.classList.add(c.config.draggingClass);c.config.startAction&&c.config.startAction()};
this.onPanMove=function(W){var e=FD8(c,W);if(e){c.move(W,e);e.fade&&c.fade(W,e);var Q=c.input.direction(W);e.moveAction&&e.moveAction(CLk(c,W,e),Q)}};
this.onPanEnd=function(W){var e,Q,p,V,L,r;return _.T(function(H){if(H.nextAddress==1){c.animationRequestId&&cancelAnimationFrame(c.animationRequestId);c.animationRequestId=void 0;e=FD8(c,W);if(!e)return H.return();Q=e;p=Q.triggerAction;V=Q.fade;L=Q.disableFinish;r=Q.translateBack;var O=c.input.velocity(W),A=c.input.distance(W),g=c.threshold(e);return O>.3&&A>10||A>g?L?H.jumpTo(6):V?_.Z(H,I0x(c,W),6):_.Z(H,jix(c,W,e),6):r?_.Z(H,c.translateBack(W),3):H.jumpTo(3)}H.nextAddress!=3&&p&&p();c.config.draggingClass&&
c.element.classList.remove(c.config.draggingClass);c.reset();_.c5(H)})};
x=Object.keys(D.triggers);this.directions=new Set(x);$jY(this.input,this.directions.has("right")||this.directions.has("left"))};
_.m(_.oU,zi);_.oU.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var FD8=function(x,G){G=x.input.direction(G);return x.config.triggers[G]};
_.oU.prototype.move=function(x,G){var D=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var K=D.input.axis(x),z=D.input.position(x,D.config.startPosition,G.endPosition,G.moveRatio||1);D.element.style.transform="translate"+K+"("+z+"px)";D.animationRequestId=void 0}))};
var CLk=function(x,G,D){var K=D.moveRatio||1;D=Math.abs(x.config.startPosition-D.endPosition);return Math.min(x.input.distance(G)*K,D)/D};
_.oU.prototype.fade=function(x,G){var D=G.endOpacity;x=CLk(this,x,G);x>0&&(this.element.style.opacity=""+(((D||0)-1)*x+1))};
_.oU.prototype.threshold=function(x){return x.threshold?x.threshold:Math.abs(x.endPosition-this.config.startPosition)/3};
var jix=function(x,G,D){var K,z,y,c,W,e,Q;return _.T(function(p){if(p.nextAddress==1)return K=x.input.delta(G)+x.config.startPosition,z=x.input.axis(G),y=D,c=y.endPosition,W=y.transitionEndPosition,Q=(e=W)!=null?e:c,_.Z(p,x.element.animate([{transform:"translate"+z+"("+K+"px)"},{transform:"translate"+z+"("+Q+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);x.element.style.transform="translate"+z+"("+Q+"px)";_.c5(p)})};
_.oU.prototype.translateBack=function(x){var G=this,D,K;return _.T(function(z){if(z.nextAddress==1){if(!G.element.style.transform)return z.return();D=G.input.axis(x);K=G.config.startPosition;return _.Z(z,G.element.animate([{transform:G.element.style.transform},{transform:"translate"+D+"("+K+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}G.element.style.transform="translate"+D+"("+K+"px)";_.c5(z)})};
var I0x=function(x,G){var D,K,z,y;return _.T(function(c){if(c.nextAddress==1)return D=x.input.delta(G)+x.config.startPosition,K=x.input.axis(G),z=D+70,y=x.element.style.opacity===""?1:x.element.style.opacity,_.Z(c,x.element.animate([{transform:"translate"+K+"("+D+"px)",opacity:y},{transform:"translate"+K+"("+z+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);x.element.style.transform="translate"+K+"("+z+"px)";x.element.style.opacity="0";_.c5(c)})};var yE=function(){var x=_.WD.apply(this,arguments)||this;x._noAccessors=!0;x.scrollRate=3;x.autoScrollAnimationStart=0;x.autoScrollPaused=!1;x.autoScrollRafId=0;return x};
_.m(yE,_.WD);_.a=yE.prototype;_.a.created=function(){var x=this;this.boundAutoScrollHandler=function(G){x.autoScroll(G)}};
_.a.detached=function(){this.hostElement.removeEventListener("mouseout",_.ae(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.ae(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.ae(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.a.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.ae(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.ae(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.ae(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.ae(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.ae(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.ae(this,this.endAutoScroll)),this.endAutoScroll())};
_.a.autoScroll=function(x){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=x);var G;if(G=!this.autoScrollPaused&&this.scrollTarget)G=this.scrollTarget,G=G.scrollHeight-G.scrollTop!==G.clientHeight;G&&(G=1E3/this.scrollRate,x-=this.autoScrollAnimationStart,x>G&&(this.scrollTarget.scrollTop+=Math.ceil(x/G),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.a.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.a.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
yE.prototype.autoScrollEnabledChanged=yE.prototype.autoScrollEnabledChanged;_.q([_.R(),_.N("design:type",Object)],yE.prototype,"scrollRate",void 0);_.q([_.R(),_.N("design:type",Object)],yE.prototype,"scrollTarget",void 0);_.q([_.R(),_.N("design:type",Boolean)],yE.prototype,"autoScrollEnabled",void 0);_.q([_.yf("autoScrollEnabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yE.prototype,"autoScrollEnabledChanged",null);yE=_.q([_.e2()],yE);_.OOf=[yE.prototype];var XnT;var lc=function(){var x=_.n.apply(this,arguments)||this;x.buttonUpdate=_.B("web_button_rework");x.dismissButtonOverrides=_.B("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;x.forceDarkTheme=!1;x.forceLightTheme=!1;x.dynamicTextHeight=94;x.hasOverflowButton=!1;x.isInfeedModernization=!1;return x};
_.m(lc,_.n);_.a=lc.prototype;_.a.computeUrlImg=function(x){if(x)return _.Ph(x.thumbnails)};
_.a.getLogoHeight=function(x){return this.logoWithPadding(x)?"31":"24"};
_.a.getLogoClassName=function(x){return this.logoWithPadding(x)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.a.logoWithPadding=function(x){var G,D;return(x=(G=x.thumbnails)==null?void 0:(D=G[0])==null?void 0:D.height)&&x%31===0?!0:!1};
_.a.sendImpressionEndpoints=function(x){x.impressionEndpoints&&_.KW(this.hostElement,x.impressionEndpoints)};
_.a.observeBasicPalette=function(){var x,G,D=(x=this.data)==null?void 0:(G=x.colorData)==null?void 0:G.basicColorPaletteData;D?_.Y7(this.hostElement,D):_.Y7(this.hostElement,{})};
_.a.observeDataChanged=function(){var x;this.dynamicTextHeight=((x=this.data)==null?0:x.supplementalText)?74:94;var G;this.hasSupplementalText=!((G=this.data)==null||!G.supplementalText);if(_.B("web_button_rework")){var D,K,z,y;x=(D=this.data)==null?void 0:(K=D.actionButton)==null?void 0:(z=K.buttonRenderer)==null?void 0:(y=z.colorData)==null?void 0:y.basicColorPaletteData;var c,W,e;if(!((c=this.data)==null?0:(W=c.actionButton)==null?0:(e=W.buttonRenderer)==null?0:e.style)&&x){this.computeIsInfeedModernization(this.data)||
(x.borderColor=x.foregroundTitleColor);var Q,p;this.set("data.actionButton.buttonRenderer",_.YS.unsafeClone((Q=this.data)==null?void 0:(p=Q.actionButton)==null?void 0:p.buttonRenderer))}}};
_.a.observeDataForCounterfactual=function(){if(_.B("kevlar_banner_cf_extra_logging")){var x;((x=this.data)==null?0:x.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.a.computeSupplementalStyle=function(){var x;if((x=this.data)!=null&&x.supplementalText){var G,D,K;if((G=this.data)==null?0:(D=G.colorData)==null?0:(K=D.basicColorPaletteData)==null?0:K.foregroundActivatedColor)return x=_.In(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+x+"; --yt-endpoint-hover-color:"+x+"; --yt-endpoint-visited-color:"+x+"; --yt-formatted-string-bold-font-weight:700;"}};
_.a.computeForcedDarkTheme=function(){var x,G,D,K=(x=this.data)==null?void 0:(G=x.actionButton)==null?void 0:(D=G.buttonRenderer)==null?void 0:D.style,z,y,c;x=xjj(((z=this.data)==null?void 0:(y=z.colorData)==null?void 0:(c=y.basicColorPaletteData)==null?void 0:c.backgroundColor)||0);return K&&x};
_.a.computeForcedLightTheme=function(){var x,G,D,K=(x=this.data)==null?void 0:(G=x.actionButton)==null?void 0:(D=G.buttonRenderer)==null?void 0:D.style,z,y,c;x=!xjj(((z=this.data)==null?void 0:(y=z.colorData)==null?void 0:(c=y.basicColorPaletteData)==null?void 0:c.backgroundColor)||0);return K&&x};
_.a.computeHasOverflowButton=function(x){return!!x.overflowButton};
_.a.computeHasTitle=function(x){return!!x.title};
_.a.computeTitleMaxFontSize=function(x){return this.computeHasOverflowButton(x)?28:64};
_.a.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.a.computeIsInfeedModernization=function(){var x,G,D,K,z=(x=this.data)==null?void 0:(G=x.actionButton)==null?void 0:(D=G.buttonRenderer)==null?void 0:(K=D.colorData)==null?void 0:K.basicColorPaletteData;return(z==null?void 0:z.backgroundColor)===452984831||(z==null?void 0:z.backgroundColor)===218103808};
lc.prototype.observeDataForCounterfactual=lc.prototype.observeDataForCounterfactual;lc.prototype.observeDataChanged=lc.prototype.observeDataChanged;lc.prototype.observeBasicPalette=lc.prototype.observeBasicPalette;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],lc.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.CS),_.N("design:type",Object)],lc.prototype,"ytdDismissibleItemBehavior",void 0);
_.q([_.I(_.XL.YtdGuideStateAwareBehavior),_.N("design:type",Object)],lc.prototype,"ytdGuideStateAwareBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],lc.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],lc.prototype,"buttonUpdate",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],lc.prototype,"hasSupplementalText",void 0);_.q([_.R(),_.N("design:type",Object)],lc.prototype,"dismissButtonOverrides",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.N("design:type",Boolean)],lc.prototype,"hasTitle",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.N("design:type",Object)],lc.prototype,"forceDarkTheme",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.N("design:type",Object)],lc.prototype,"forceLightTheme",void 0);_.q([_.R(),_.N("design:type",Object)],lc.prototype,"dynamicTextHeight",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.N("design:type",Object)],lc.prototype,"hasOverflowButton",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.N("design:type",Object)],lc.prototype,"isInfeedModernization",void 0);_.q([_.yf("data.colorData.basicColorPaletteData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lc.prototype,"observeBasicPalette",null);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lc.prototype,"observeDataChanged",null);_.q([_.yf("data.isVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lc.prototype,"observeDataForCounterfactual",null);lc=_.q([_.d({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],lc);
_.w(lc,"ytd-banner-promo-renderer",function(){if(XnT!==void 0)return XnT;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return XnT=x},{mode:1});var AV8;var Ujc;var RXb;var cE=function(){return _.n.apply(this,arguments)||this};
_.m(cE,_.n);_.q([_.R(),_.N("design:type",Object)],cE.prototype,"data",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],cE.prototype,"ytRendererBehavior",void 0);cE=_.q([_.d({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],cE);
_.w(cE,"ytd-hashtag-grid-tile-renderer",function(){if(RXb!==void 0)return RXb;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return RXb=x},{mode:1});var Ti=function(){return _.n.apply(this,arguments)||this};
_.m(Ti,_.n);Ti.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
Ti.prototype.updateRichGridTrendingHashtagsVisibility=function(){var x,G;if(((x=this.data)==null||!x.isExpanded)&&(G=this.data)!=null&&G.tiles){x=this.data.tiles.length;G=x>this.richGridItemsPerRow?this.richGridItemsPerRow+1:x;var D=Math.ceil(x/G);this.fullyVisibleRows=x%G===1&&D===2?1:Math.min(D,2);this.isShowMoreVisible=this.fullyVisibleRows<D}};
Ti.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Ti.prototype.updateRichGridTrendingHashtagsVisibility=Ti.prototype.updateRichGridTrendingHashtagsVisibility;_.q([_.R(),_.N("design:type",Object)],Ti.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Number)],Ti.prototype,"fullyVisibleRows",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Ti.prototype,"isShowMoreVisible",void 0);_.q([_.R({selector:_.m8,value:0}),_.N("design:type",Number)],Ti.prototype,"richGridItemsPerRow",void 0);
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Ti.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Ti.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],Ti.prototype,"ytdReduxBehavior",void 0);_.q([_.yf("data","richGridItemsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ti.prototype,"updateRichGridTrendingHashtagsVisibility",null);
Ti=_.q([_.d({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],Ti);
_.w(Ti,"ytd-hashtag-grid-shelf-renderer",function(){if(Ujc!==void 0)return Ujc;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Ujc=x},{mode:1});var Srf;var n4f;var WE=function(){var x=_.n.apply(this,arguments)||this;x.visibleVideos=[];x.hiddenVideos=[];x.modern=_.B("web_modern_buttons");x.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return x};
_.m(WE,_.n);_.a=WE.prototype;_.a.attached=function(){var x=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",x);this.onDarkModeToggledAction(x)};
_.a.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"}}}};
_.a.dataChanged=function(){var x=this;this.requestElementsPerRow();var G,D;this.currentColorPalette=this.isDarkTheme?(G=this.data)==null?void 0:G.darkColorData:(D=this.data)==null?void 0:D.lightColorData;var K;if((K=this.currentColorPalette)==null?0:K.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.w1(this,function(){x.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.a.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.a.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.a.computeIsFirstFeedItem=function(x){return x};
_.a.onDarkModeToggledAction=function(x){x!==this.isDarkTheme&&this.set("isDarkTheme",x);this.data&&(this.currentColorPalette=x?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.a.getCurrentLogo=function(x,G){if(x)return G?x.darkLogoImage:x.lightLogoImage};
_.a.computeTitleStyle=function(x){var G;if((G=this.data)!=null&&G.title&&x&&x.textPrimary!==void 0)return"color:"+_.In(x.textPrimary)+";"};
_.a.computeSubtitleStyle=function(x){var G;if((G=this.data)!=null&&G.subtitle&&x&&x.textSecondary!==void 0)return"color:"+_.In(x.textSecondary)+";"};
_.a.computeDismissIconStyle=function(x){if(this.data&&this.data.dismissButton&&x&&x.textPrimary!==void 0)return"--yt-button-color:"+_.In(x.textPrimary)+";"};
_.a.computeOverflowButtonStyle=function(x){if(this.data&&this.data.overflowButton&&x&&x.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.In(x.textPrimary)+";--yt-spec-icon-active-other:"+_.In(x.textPrimary)+";"};
_.a.computeBackgroundStyle=function(x){if(x&&this.data){var G="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var D=_.Ph((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);D&&(G+='background-image:url("'+D+'");')}x.backgroundColor!==void 0&&(G+="background-color:"+_.jT(x.backgroundColor)+";");return G}};
_.a.computeButton=function(){var x,G=Object.assign({},_.Y((x=this.data)==null?void 0:x.showMoreButton,_.$V));if(this.modern&&G){G.style="STYLE_MONO_OUTLINE";var D;if(x=(D=this.currentColorPalette)==null?void 0:D.textPrimary)G.colorData={basicColorPaletteData:{foregroundTitleColor:x,borderColor:x}}}return G};
_.a.shouldShowBottomButton=function(x,G){return!(x==null?0:x.header)&&!(x==null||!x.primaryButton)&&G<3};
_.a.checkExpanded=function(x){this.isExpanded=x&&x.content?this.hiddenVideos.length===0:!0};
_.a.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.a.getLogoHeight=function(x){return this.logoWithPadding(x)?"26":"20"};
_.a.getLogoImageId=function(x){return this.logoWithPadding(x)?"logo-image-with-padding":"logo-image"};
_.a.computeHasSectionHeader=function(x){return!!x.header};
_.a.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var x;if((x=this.data.primaryButton)==null?0:x.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 G;((G=this.data.dismissButton)==null?0:G.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var D,K;((D=this.data)==null?0:(K=D.primaryButton)==null?0:K.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.a.setVisibleVideos=function(x){if(this.data&&this.data.content)if(this.data.content.length){var G=this.data.content.length;this.data.header?x?(this.visibleVideos=this.data.content.slice(0,Math.min(G,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(G,this.slimItemsPerRow),G)):(this.visibleVideos=this.data.content.slice(0,Math.min(G,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(G,this.elementsPerRow),G)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(G,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(G,this.elementsPerRow),G)):(this.visibleVideos=this.data.content.slice(0,Math.min(G,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(G,this.elementsPerRow-1),G))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.a.setHasMovieRenderer=function(){var x;if((x=this.data)!=null&&x.content){var G;this.hasMovieRenderer=!!_.Y((G=this.data)==null?void 0:G.content[0],_.fzs)}else this.hasMovieRenderer=!1};
_.a.requestElementsPerRow=function(){_.h$(this.hostElement,"yt-request-elements-per-row")};
_.a.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var x=_.l(this.hiddenMediaRenderers),G=x.next();!G.done;G=x.next())G.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(x=_.kA(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&x.focus()}};
_.a.updateTitleSpec=function(){var x;(x=this.data)!=null&&x.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.a.logoWithPadding=function(x){var G,D,K;return(x=(G=this.getCurrentLogo(x,this.isDarkTheme))==null?void 0:(D=G.thumbnails)==null?void 0:(K=D[0])==null?void 0:K.height)&&x%31===0?!0:!1};
_.a.onUpdateElementsPerRowAction=function(x,G,D){x&&this.elementsPerRow!==x&&(this.elementsPerRow=x);D&&this.slimItemsPerRow!==D&&(this.slimItemsPerRow=D)};
WE.prototype.slimItemsPerRowChanged=WE.prototype.slimItemsPerRowChanged;WE.prototype.elementsPerRowChanged=WE.prototype.elementsPerRowChanged;WE.prototype.dataChanged=WE.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],WE.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],WE.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.CS),_.N("design:type",Object)],WE.prototype,"ytdDismissibleItemBehavior",void 0);
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],WE.prototype,"actionHandlerBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],WE.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],WE.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],WE.prototype,"currentColorPalette",void 0);_.q([_.R(),_.N("design:type",Array)],WE.prototype,"visibleVideos",void 0);_.q([_.R(),_.N("design:type",Array)],WE.prototype,"hiddenVideos",void 0);
_.q([_.R(),_.N("design:type",Object)],WE.prototype,"primaryButton",void 0);_.q([_.R({reflectToAttribute:!0,value:3}),_.N("design:type",Number)],WE.prototype,"elementsPerRow",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],WE.prototype,"isDarkTheme",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],WE.prototype,"isExpanded",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],WE.prototype,"largeTitle",void 0);
_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],WE.prototype,"hasMovieRenderer",void 0);_.q([_.R(),_.N("design:type",Number)],WE.prototype,"slimItemsPerRow",void 0);_.q([_.R(),_.N("design:type",Boolean)],WE.prototype,"showLightVideoMetadata",void 0);_.q([_.R(),_.N("design:type",Boolean)],WE.prototype,"showDarkVideoMetadata",void 0);_.q([_.R(),_.N("design:type",Number)],WE.prototype,"videoMetadataColor",void 0);
_.q([_.R({reflectToAttribute:!0,selector:_.Y_}),_.N("design:type",Boolean)],WE.prototype,"miniMode",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.N("design:type",Boolean)],WE.prototype,"isFirstFeedItem",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.N("design:type",Boolean)],WE.prototype,"hasSectionHeader",void 0);
_.q([_.R({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],WE.prototype,"roundedContainer",void 0);_.q([_.Ta("#visible-video-container ytd-rich-grid-media"),_.N("design:type",Array)],WE.prototype,"visibleMediaRenderers",void 0);_.q([_.Ta("#hidden-video-container ytd-rich-grid-media"),_.N("design:type",Array)],WE.prototype,"hiddenMediaRenderers",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],WE.prototype,"modern",void 0);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WE.prototype,"dataChanged",null);_.q([_.yf("elementsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WE.prototype,"elementsPerRowChanged",null);_.q([_.yf("slimItemsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WE.prototype,"slimItemsPerRowChanged",null);
WE=_.q([_.d({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],WE);
_.w(WE,"ytd-brand-video-shelf-renderer",function(){if(n4f!==void 0)return n4f;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return n4f=x},{mode:1});var iOc;var ed=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return x};
_.m(ed,_.n);_.a=ed.prototype;_.a.attached=function(){var x=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",x);this.onDarkModeToggledAction(x)};
_.a.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.a.dataChanged=function(){this.requestElementsPerRow();var x,G;this.currentColorPalette=this.isDarkTheme?(x=this.data)==null?void 0:x.darkColorData:(G=this.data)==null?void 0:G.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.a.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.a.computeIsFirstFeedItem=function(x){return x};
_.a.onDarkModeToggledAction=function(x){x!==this.isDarkTheme&&this.set("isDarkTheme",x);this.data&&(this.currentColorPalette=x?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(x),this.updateButtonPalette())};
_.a.shouldShowThumbnailInMetadata=function(x){return x<=1};
_.a.computeVideoMetadataColor=function(){if(this.data){var x;if((x=this.currentColorPalette)==null?0:x.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.a.computeTitleStyle=function(x){var G;if((G=this.data)!=null&&G.title&&x&&x.textPrimary!==void 0)return"color:"+_.In(x.textPrimary)+";"};
_.a.computeSubtitleStyle=function(x){var G;if((G=this.data)!=null&&G.subtitle&&x&&x.textSecondary!==void 0)return"color:"+_.In(x.textSecondary)+";"};
_.a.computeOverflowButtonStyle=function(x){var G;if(this.data&&this.data.overflowButton&&(x==null?0:(G=x.dismissButtonColorData)==null?0:G.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.In(x.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.In(x.dismissButtonColorData.foregroundTitleColor)+";"};
_.a.computeBackgroundStyle=function(x){if(x&&this.data){var G="";x.backgroundColor!==void 0&&(G+="background-color:"+_.jT(x.backgroundColor)+";");return G}};
_.a.computeHasOverflowButton=function(x){return!!x.overflowButton};
_.a.updateButtonPalette=function(){if(this.data){var x;if((x=this.data.primaryButton)==null?0:x.buttonRenderer){var G;if((G=this.currentColorPalette)==null?0:G.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var D;((D=this.currentColorPalette)==null?0:D.primaryButtonStyleType)?(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0):this.data.primaryButton.buttonRenderer.style="STYLE_MONO_TONAL"}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}}};
_.a.requestElementsPerRow=function(){_.h$(this.hostElement,"yt-request-elements-per-row")};
_.a.updateTitleSpec=function(){var x;(x=this.data)!=null&&x.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")};
_.a.onUpdateElementsPerRowAction=function(x){x&&this.elementsPerRow!==x&&(this.elementsPerRow=x)};
ed.prototype.elementsPerRowChanged=ed.prototype.elementsPerRowChanged;ed.prototype.dataChanged=ed.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],ed.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],ed.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.CS),_.N("design:type",Object)],ed.prototype,"ytdDismissibleItemBehavior",void 0);
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],ed.prototype,"actionHandlerBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],ed.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],ed.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],ed.prototype,"currentColorPalette",void 0);_.q([_.R(),_.N("design:type",Object)],ed.prototype,"primaryButton",void 0);
_.q([_.R({reflectToAttribute:!0,value:3}),_.N("design:type",Number)],ed.prototype,"elementsPerRow",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],ed.prototype,"isDarkTheme",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],ed.prototype,"titleSize",void 0);_.q([_.R(),_.N("design:type",Number)],ed.prototype,"videoMetadataColor",void 0);_.q([_.R({reflectToAttribute:!0,selector:_.Y_}),_.N("design:type",Boolean)],ed.prototype,"miniMode",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.N("design:type",Boolean)],ed.prototype,"isFirstFeedItem",void 0);_.q([_.R({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],ed.prototype,"roundedContainer",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.N("design:type",Boolean)],ed.prototype,"hasOverflowButton",void 0);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ed.prototype,"dataChanged",null);_.q([_.yf("elementsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ed.prototype,"elementsPerRowChanged",null);ed=_.q([_.d({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],ed);
_.w(ed,"ytd-brand-video-singleton-renderer",function(){if(iOc!==void 0)return iOc;var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-singleton-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-brand-video-singleton-renderer">\n  <div id="content-wrapper" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n    <div id="thumbnail-container" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n      <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n    </div>\n    <div id="metadata-container" class="style-scope ytd-brand-video-singleton-renderer">\n      <div id="metadata-text-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="featured-badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string text="[[data.badgeText]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n      </div>\n      <div id="metadata-video-container" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n        <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n      </div>\n      <div id="button-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="primary-button" class="style-scope ytd-brand-video-singleton-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="overflow-button" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n  <div id="attached-survey" class="style-scope ytd-brand-video-singleton-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-singleton-renderer"></div>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return iOc=x},{mode:_.Ge("kevlar_poly_si_batch_j070")?1:2});var g4j;var uG8=_.Nv(function(x){var G=x.data;return _.M(_.wk,{data:function(){return G().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(G().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var D=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":D=88;break a;default:D=88}return D},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return G().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"mi"),wni=_.Nv(function(x){var G=x.metadataRow;
var D=x.delimiter;return _.M(_.LT,{each:function(){return G().textParts||[]},
keyBy:"INDEX"},function(K,z){return _.M(_.xT,null,_.M(_.vq,{text:K,noWrap:!0,userInput:!0}),_.M(djb,{delimiter:D,max:function(){return G().textParts.length},
index:z}))})},"ni"),djb=_.Nv(function(x){var G=x.delimiter;
var D=x.max;var K=x.index;return _.M(_.b,{cond:function(){return(G==null?void 0:G())&&D()-1>K()},
then:function(){return _.M("span",null,G)}})},"oi"),qrc=_.Nv(function(x){var G=x.data;
x={};return _.M("yt-profile-page-header-information-view-model",{class:_.ym("profile-page-header-information-view-model-wiz",(x["profile-page-header-information-view-model-wiz--mobile"]=!1,x))},_.M(_.b,{cond:function(){return G().onTap},
then:function(){return _.M(_.hG,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.jn(G().onTap)}},_.M(_.bA,{data:function(){return G().thumbnail}},{profilePageHeaderThumbnailViewModel:uG8}))},
else:function(){return _.M("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.M(_.bA,{data:function(){return G().thumbnail}},{profilePageHeaderThumbnailViewModel:uG8}))}}),_.M("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.M(_.b,{cond:function(){return G().onTap},
then:function(){return _.M(_.bA,{data:function(){return G().title}},{profilePageHeaderTitleViewModel:function(D){var K=D.data;
return _.M(_.hG,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.jn(K().onTap)}},_.M(_.vq,{text:function(){return K().title}}))}})},
else:function(){return _.M(_.bA,{data:function(){return G().title}},{profilePageHeaderTitleViewModel:function(D){var K=D.data;
return _.M(_.vq,{text:function(){return K().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.M(_.bA,{data:function(){return G().metadata}},{profilePageHeaderMetadataViewModel:function(D){var K=D.data;
return _.M(_.b,{cond:function(){return K().metadataRows},
then:function(z){return _.M("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.M(_.LT,{each:z,keyBy:"INDEX"},function(y,c){return _.M(_.xT,null,_.M(wni,{metadataRow:y,delimiter:" \u2022 "}),_.M(djb,{delimiter:" \u2022 ",max:function(){return z().length},
index:c}))}))}})}})))},"pi");
qrc.idomCompat=!0;_.tn(qrc,"yt-profile-page-header-information-view-model",{props:{data:_.ik}});var Zn=function(){return _.n.apply(this,arguments)||this};
_.m(Zn,_.n);Zn.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Zn.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Zn.prototype,"data",void 0);Zn=_.q([_.d({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],Zn);
_.w(Zn,"ytd-effect-pivot-header-view-model",function(){if(g4j!==void 0)return g4j;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return g4j=
x},{mode:1});var Ns8;var Mf=function(){return _.n.apply(this,arguments)||this};
_.m(Mf,_.n);Mf.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Mf.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Mf.prototype,"data",void 0);Mf=_.q([_.d({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],Mf);
_.w(Mf,"ytd-source-pivot-header-renderer",function(){if(Ns8!==void 0)return Ns8;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Ns8=x},{mode:1});_.v4C=_.Nv(function(x){var G=x.data;x=_.qi();_.iA(x,function(){return G().rendererContext});
var D=function(){var K;return _.ns((K=G())==null?void 0:K.rendererContext)};
return _.M("content-list-item-view-model",{el:x,class:"ytContentListItemViewModelHost",role:function(){return D()?"listitem":void 0},
tabindex:function(){return D()?0:void 0}},_.M("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.M("div",{class:"ytContentListItemViewModelImageContainer"},_.M(_.b,{cond:function(){return G().image},
then:function(K){return _.M(_.wk,{data:K,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.M(_.bA,{data:function(){var K;
return(K=G())==null?void 0:K.avatar}},{avatarViewModel:_.Lj})),_.M("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.M("div",{class:"ytContentListItemViewModelTitle"},_.M(_.vq,{text:function(){return G().title}})),_.M("div",{class:"ytContentListItemViewModelMetadata"},_.M(_.bA,{data:function(){return G().metadata}},{contentMetadataViewModel:function(K){return _.M(_.PZi,{data:K.data,
layout:1})}})))),_.M("div",{class:"ytContentListItemViewModelActionButton"},_.M(_.bA,{data:function(){var K;
return(K=G())==null?void 0:K.actionButton}},{buttonViewModel:_.Cs,
toggleButtonViewModel:_.rl})))},"qi");_.tn(_.Nv(function(x){var G={},D={},K={},z={};return _.M("yt-card-view-model",{class:_.ym("ytCardViewModelHost",x.className,(G.ytCardViewModelOutline=function(){return x.data().cardStyle==="CARD_STYLE_OUTLINE"},G),(D.ytCardViewModelRaised=function(){return x.data().cardStyle==="CARD_STYLE_RAISED"||x.data().cardStyle==="CARD_STYLE_UNSPECIFIED"},D),(K.ytCardViewModelTonal=function(){return x.data().cardStyle==="CARD_STYLE_TONAL"},K),(z.ytCardViewModelInverted=function(){return x.data().cardStyle===
"CARD_STYLE_INVERSE"},z))},_.M(_.bA,{data:function(){return x.data().background}},{cinematicContainerViewModel:function(y){return _.M(_.S0E,{data:y.data})}}),_.M("div",{class:"ytCardViewModelContentWrapper"},_.M(_.bA,{data:function(){return x.data().content}},{contentListItemViewModel:function(y){return _.M(_.v4C,{data:y.data})}})),_.M(_.bA,{data:function(){return x.data().dismissAction}},{buttonViewModel:function(y){return _.M(_.Cs,{data:y.data})}}))},"ri"),"yt-card-view-model",{props:{data:_.ik,
className:_.ik}});_.tn(_.Nv(function(x){var G=function(){return _.Y(x.data().flowRoot,bOT)};
_.FQ(function(){var D=G(),K=function(){},z=function(){};
if(D){var y,c,W,e=((W=_.Y((y=G())==null?void 0:(c=y.steps)==null?void 0:c[0],_.UYO))==null?void 0:W.stepId)||"";l0O(D,e);K=Tsf(D);z=WDT(D)}_.Fq(function(){var Q=G();Q&&_.wK().dispatch(_.cq("flowStateEntity",Q.flowStateEntityKey));K();K=function(){};
z();z=function(){}})});
return _.M("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.M(_.GGq,{contentId:function(){return x.data().contentId}},function(){return _.M("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.M(_.b,{cond:G,
then:function(D){return _.M(_.YX4,{data:D})}}))}))},"si"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.ik}});_.tn(_.Nv(function(){return _.M("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.M("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.M("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.M(_.lyi,null)),_.M(_.Dxh,{data:{rows:1},isExploreHub:!0}))},"ti"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.tn(_.Nv(function(x){var G=x.data;var D=x.standardUnitMinWidth;x=_.qi();var K=_.l((0,_.oFs)(G)),z=K.next().value,y=K.next().value,c=function(){var e,Q=(e=z())==null?void 0:e.contents;return Q==null||Q.length===0},W=function(){y(Object.assign({},z(),{contents:[]}))};
_.Pw(x,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var e=_.Y(G().chipsShelf,Bsf);if(e!=null&&e!=null&&e.autoselectChipOnVisible){var Q,p,V=_.Y(e==null?void 0:(Q=e.contents)==null?void 0:Q[(p=e.autoselectedChipIndex)!=null?p:0],_.j1);V&&V.tapCommand&&_.UI(V.tapCommand)}}});
return _.M("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:x},_.M(_.GGq,{contentId:function(){return G().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.M("div",null,_.M("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.M(_.bA,{data:function(){return G().header}},{sectionHeaderViewModel:function(e){return _.M(_.hF,{data:e.data,
disableHorizontalPadding:!0})}})),_.M("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.M(_.bA,{data:function(){return G().chipsShelf}},{chipsShelfViewModel:function(e){return _.M(_.axJ,{data:e.data,
callback:W,enableSingleChipSelection:!0})}})),_.M("div",null,_.M(_.b,{cond:c,
then:function(){return _.M("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.M(_.Dxh,{data:{rows:1},isExploreHub:!0}))}}),_.M(_.bA,{data:function(){var e;
return(e=z())==null?void 0:e.contents}},{richShelfRenderer:function(e){return _.M(_.atu,{data:e.data,
isInnerShelf:!0,standardUnitMinWidth:D})}})))}))},"ui"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.ik,
standardUnitMinWidth:_.ik}});var QE=function(){return _.n.apply(this,arguments)||this};
_.m(QE,_.n);
QE.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},messageRenderer:"ytd-message-renderer",
alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
QE.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.q([_.I(_.$l),_.N("design:type",Object)],QE.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],QE.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.Oh),_.N("design:type",Object)],QE.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],QE.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],QE.prototype,"data",void 0);
_.q([_.R(),_.N("design:type",Number)],QE.prototype,"standardUnitMinWidth",void 0);QE=_.q([_.d({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],QE);
_.w(QE,"ytd-rich-section-renderer",function(){if(Srf!==void 0)return Srf;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Srf=x},{mode:_.Ge("kevlar_poly_si_batch_j029")?
1:2});_.tn(_.ESj,"yt-profile-identity-info-view-model",{props:{data:_.ik,hideDivider:_.ik}});_.tn(_.vNu,"yt-page-header-view-model",{props:{data:_.ik,noPadding:_.ik,enableBanner:_.ik,cinematicContainerTopbarOffset:_.ik,allowCinematicContainerOverflow:_.ik,displayAsSidebar:_.ik,displayAsPanel:_.ik}});_.tn(_.Nv(function(x){var G=x.data;var D=function(){var z;return(z=G().numColumns)!=null?z:2},K=function(){return D()>1?3:2};
x={};return _.M("ytd-rich-grid-group",{class:_.ym("ytdRichGridGroupHost",(x.ytdRichGridGroupHostFirstColumn=function(){return G().colIndex===0},x)),
style:_.Ms({"--ytd-rich-grid-group-num-columns":D,"--ytd-rich-grid-items-per-group":K})},_.M("div",{class:"ytdRichGridGroupContents"},_.M(_.bA,{data:function(){var z;return(z=G().contents)==null?void 0:z.slice(0,K())}},{richItemRenderer:function(z){return _.M(_.KXs,{data:z.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"vi"),"ytd-rich-grid-group",{props:{data:_.ik}});var pY=function(){var x=_.n.apply(this,arguments)||this;x.resizeOnObserverInit=!1;x.isInlinePreviewDisabled=_.B("web_disable_inline_preview");x.disableStickyFilterBar=!1;x.transparentBackgroundChipsBar=!1;x.hideChipsBar=!1;x.isWatchDefaultLayout=!0;x.continuationShowButton=!1;x.rowReducedHorizontalMargin=!1;x.useCompactList=!1;x.manualDownloadsPresent=!1;x.smartDownloadsPresent=!1;x.shouldRenderDownloadsBanner=!1;x.hasOptedIntoSmartDownloads=!1;x.elementsPerRow=4;x.typographyBump=!1;x.showGnomeContents=
!1;x.showExploreHubContents=!1;x.slimItemsPerRow=1;x.pageLoadingFromNavigation=!1;x.loggingRefactor=_.B("kevlar_rich_grid_logging_fix");x.resizeObserver=null;x.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"};x.rendererToTagNameMap=
new Map(Object.entries(x.contentMapping()).map(function(G){var D=_.l(G);G=D.next().value;D=D.next().value;return[G,D.component]}));
x.insertedContent=new Map;return x};
_.m(pY,_.n);_.a=pY.prototype;_.a.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var x=_.l(_.kA(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),G=x.next();!G.done;G=x.next())G.value.useCompactList=this.useCompactList};
_.a.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var x=_.l(_.kA(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),G=x.next();!G.done;G=x.next())G=G.value,G.sizing=this.sizing,G.typographyBump=this.typographyBump};
_.a.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.a.contentMapping=function(){return{richGroupRenderer:{component:"ytd-rich-grid-group"},richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",isSlimGrid:"[[isSlimGrid]]",isCompactGrid:"[[isCompactGrid]]",isShortsPanelGrid:"[[isShortsPanel]]",noGutterMargins:"[[noRichItemGutterMargins]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",useCompactList:"[[useCompactList]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",
isHomeGrid:"[[isHomePage]]"},params:{renderedFromRichGrid:!0}},richSectionRenderer:{component:"ytd-rich-section-renderer",properties:{standardUnitMinWidth:"[[data.minItemWidth]]"}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",showButton:"[[continuationShowButton]]",continuationTriggerOffset:"[[continuationTriggerOffset]]"}}}};
_.a.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}}};
_.a.attached=function(){document.addEventListener("yt-page-type-changed",_.ae(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$19267_throttledOnResize=new _.Jc(this.resizeObserved,_.Gz("rich_grid_resize_delay_ms",50),this)};
_.a.detached=function(){var x;(x=this.resizeObserver)==null||x.disconnect();document.removeEventListener("yt-page-type-changed",_.ae(this,this.onPageChange))};
_.a.insertRichSection=function(x){var G=x.richItemTargetId;x=x.richSectionRendererToInsert;G&&x&&(this.insertedContent.set(G,x),this.reflowContent())};
_.a.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.a.computeIsInlinePreviewEnabled=function(x,G,D){return _.B("web_disable_inline_preview")?!1:!D&&_.mYc({miniplayerIsActive:x,miniplayerPlaybackState:G})};
_.a.computeSizing=function(){var x=_.f5O(this.data);if(x||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return x?this.useCompactList?"COMPACT":x:this.miniMode?"COMPACT":_.B("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.a.updateItemMinAndMaxWidth=function(){var x=_.Gz("rich_grid_max_item_width",500);x>0&&_.K7(this.hostElement,{"--ytd-rich-grid-item-max-width":x+"px"});var G;x=this.getRichItemMinWidth((G=this.hostElement)==null?void 0:G.clientWidth);x>0&&_.K7(this.hostElement,{"--ytd-rich-grid-item-min-width":x+"px"})};
_.a.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.a.resizeObserved=function(){_.Gl(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.a.navigateBackToHome=function(){_.B("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.B("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var x=_.Eo().resolve(_.wG).isOnWatch(),G,D=((G=_.lo(location.pathname))==null?void 0:G.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(D)||x)&&this.gnomeContents&&_.B("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);x&&this.exploreHubContents&&_.B("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.wK().dispatch(_.EO({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.a.onPageChange=function(){var x=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.B("disable_chip_select_on_nav")||_.Gl(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.Fj.addJob(function(){x.pageLoadingFromNavigation=!1;_.B("disable_chip_select_on_nav")&&_.B("h5_reset_cache_and_filter_before_update_masthead")&&x.resetCacheAndIsFilteredFeed();x.setMasthead();x.maybeSetBigYoodle();x.forceRefreshAndLog();x.terminateVideoPreview();_.B("web_hide_gnome_until_user_navigates_back_to_home")&&
(x.dataChanged(),_.w1(x,function(){if(x.showGnomeContents){var G=Array.from(_.kA(x.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(K){K=_.kA(K).querySelector("ytd-rich-shelf-renderer");return!!K&&K.isGnomeShelf()});
if(G){G=G.offsetTop-x.contentsElement.offsetTop;var D=_.Eo().resolve(_.wG).getCurrentPage();D&&D.getPageScrollingElement().scrollTo({top:G,behavior:"smooth"})}}}));
_.B("web_hide_explore_hub_until_user_navigates_back_to_home")&&(x.dataChanged(),_.w1(x,function(){if(x.showExploreHubContents&&!_.B("web_explore_hub_no_scroll")){var G=Array.from(_.kA(x.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(K){return!!K.querySelector("ytd-talk-to-recs-flow-renderer")});
if(G){G=G.offsetTop-x.contentsElement.offsetTop;var D=_.Eo().resolve(_.wG).getCurrentPage();D&&D.getPageScrollingElement().scrollTo({top:G,behavior:"smooth"})}}}))},8)):((_.B("web_hide_gnome_until_user_navigates_back_to_home")||_.B("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.a.dataChanged=function(){var x=this,G=_.Gz("web_rich_grid_row_margin",0);G>0&&_.K7(this.hostElement,{"--ytd-rich-grid-row-margin":G+"px"});_.Gl(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.w1(this,function(){x.updateRichItemGridPositions();x.contentsElement&&_.K7(x.hostElement,{"--ytd-rich-grid-content-offset-top":x.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.a.initResizeObserver=function(){var x=this;if(window.ResizeObserver){var G;(G=this.resizeObserver)==null||G.disconnect();var D=!1;this.resizeObserver=new ResizeObserver(function(){if(D){var K;(K=x.resizeObserver)==null||K.disconnect();var z;(z=x.JSC$19267_throttledOnResize)==null||z.fire();requestAnimationFrame(function(){var c;(c=x.JSC$19267_throttledOnResize)==null||c.fire();x.initResizeObserver()})}else if(D=!0,x.resizeOnObserverInit){var y;
(y=x.JSC$19267_throttledOnResize)==null||y.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.a.contentLengthChanged=function(){if(_.B("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.Gl(this.hostElement,"ytd-rich-item-index-update-action")};
_.a.updateElementsPerRow=function(){_.Gl(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.EO({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.EO({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.a.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.a.onRichShelfRendererCollapse=function(x){if(this.shownItems){var G=x.detail;x=this.shownItems.findIndex(function(K){var z,y;return((y=_.Y(K==null?void 0:(z=K.richSectionRenderer)==null?void 0:z.content,_.brZ))==null?void 0:y.trackingParams)===G});
var D=x+1;x<0||D>=this.contentsElement.children.length||!this.shownItems[D].richItemRenderer||this.contentsElement.children[D].scrollIntoView({behavior:"smooth",block:"start"})}};
_.a.onSoftReloadPage=function(){this.scrollUpToTop()};
_.a.handleRerenderDownloadsData=function(){_.B("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.a.handlePlaylistRemoveVideosAction=function(x){var G;if(((G=_.Y(x,_.n1s))==null?0:G.setVideoIds)&&this.data&&this.data.contents){x=_.Y(x,_.n1s).setVideoIds;for(G=this.data.contents.length-1;G>=0;){var D=_.Y(this.data.contents[G],_.Bo);(D=D&&_.Y(D.content,_.Ho))&&D.setVideoId&&x.includes(D.setVideoId)&&this.splice("data.contents",G,1);G--}this.updateIndices()}};
_.a.updateIndices=function(){if(this.data&&this.data.contents)for(var x=0;x<this.data.contents.length;x++)this.set("data.contents."+x+".richItemRenderer.index",_.gK(String(x+1)))};
_.a.hasTopRowInlinePlayableVideoWithEndorsement=function(x){var G;return!((G=x.slice(0,this.getItemsPerRow()))==null||!G.some(function(D){var K;D=_.Y(D==null?void 0:(K=D.richItemRenderer)==null?void 0:K.content,_.CB);var z;return(D==null?void 0:D.inlinePlaybackEndpoint)&&(D==null?void 0:(z=D.thumbnailOverlays)==null?void 0:z.some(function(y){return y.thumbnailOverlayEndorsementRenderer}))}))};
_.a.refreshGridLayoutNew=function(x,G,D,K){var z=K.postsPerRow;var y=K.slimItemsPerRow;var c=K.gameCardsPerRow;K=K.miniGameCardsPerRow;var W;if((W=this.data)==null||!W.contents||!this.containerWidth)return!1;var e;if((e=this.data.responsiveContainerConfiguration)==null?0:e.responsiveSize){var Q=_.I1Q(this.data.responsiveContainerConfiguration,this.containerWidth),p;W=_.wl(Object.assign({},Q,{standardUnitMinWidth:(p=this.data)==null?void 0:p.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&Q.isCompactList)}else W=_.wl({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(Q=this.data)==null?void 0:Q.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=W.typographyBump;p=!1;if(x||this.elementsPerRow!==W.numItems||this.postsPerRow!==z||this.slimItemsPerRow!==y||this.gameCardsPerRow!==
c||this.miniGameCardsPerRow!==K||this.gutter!==W.gutter)p=this.elementsPerRow!==W.numItems,this.elementsPerRow=W.numItems,this.postsPerRow=z,this.slimItemsPerRow=y,this.gameCardsPerRow=c,this.miniGameCardsPerRow=K,this.gutter=W.gutter,this.itemWidth=W.itemWidth,this.reflowContent(G),_.K7(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":W.gutter+"px","--ytd-rich-grid-posts-per-row":""+this.postsPerRow,"--ytd-rich-grid-slim-items-per-row":""+this.slimItemsPerRow,
"--ytd-rich-grid-game-cards-per-row":""+this.gameCardsPerRow,"--ytd-rich-grid-mini-game-cards-per-row":""+this.miniGameCardsPerRow}),this.updateElementsPerRow(),this.updateMiniMode(D);this.ytdReduxBehavior.dispatch(_.EO({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:W.maxContainerWidth}));return p};
_.a.refreshGridLayout=function(x,G){var D,K=(D=this.hostElement)==null?void 0:D.clientWidth;this.containerWidth=this.adjustRichGridWidth(K,!0);var z;if((z=this.data)==null||!z.contents||!this.containerWidth)return x&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.B("rg_pending_reflow_ks")&&(x=!0,this.pendingForceReflow=!1);D=this.getRichItemMinWidth(K);var y=this.isShortsPanel?146:194,c=this.getMiniGameCardMinWidth(),W=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
K=D=this.calcElementsPerRow(D,W);(z=D<=3&&this.miniModeAllowed())&&(D=this.calcElementsPerRow(240,4));var e=this.calcMaxSlimElementsPerRow(D,W,this.isDefaultGrid);W=this.calcElementsPerRow(y,e);var Q=this.calcElementsPerRow(this.isCompactGrid?y:154,e);y=this.calcElementsPerRow(this.isCompactGrid?y:c,e);c=!1;if(this.sizing)return this.refreshGridLayoutNew(x,G,z,{postsPerRow:K,slimItemsPerRow:W,gameCardsPerRow:Q,miniGameCardsPerRow:y});if(x||this.elementsPerRow!==D||this.postsPerRow!==K||this.slimItemsPerRow!==
W||this.gameCardsPerRow!==Q||this.miniGameCardsPerRow!==y)c=this.elementsPerRow!==D,this.elementsPerRow=D,this.postsPerRow=K,this.slimItemsPerRow=W,this.gameCardsPerRow=Q,this.miniGameCardsPerRow=y,this.reflowContent(G),this.updateElementsPerRow(),_.K7(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)&&_.K7(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(z);_.Gl(this.hostElement,"yt-rich-grid-layout-refreshed");return c};
_.a.getRichItemMinWidth=function(x){var G=_.Gz("rich_grid_min_item_width",310);if(!_.B("kevlar_disable_min_width_override")){var D,K;G=(K=(D=this.data)==null?void 0:D.minItemWidth)!=null?K:G}return G+_.u3O(x)};
_.a.calcMaxSlimElementsPerRow=function(x,G,D){return(D===void 0?0:D)?x===1?2:x%2===0?_.B("web_shorts_2_by_3_reduce_items_per_row")&&x>=4?x/2*3-1:x/2*3:_.B("web_shorts_2_by_3_reduce_items_per_row")&&x>=3?x+1:x+2:G*2};
_.a.adjustRichGridWidth=function(x,G){var D=_.B("disable_rich_grid_guide_compensation");if(!this.isWatch&&!D){D=_.Eo().resolve(_.P6(_.On));var K=D==null?void 0:D.guideElement;if(!(!D||D.getData()||K!=null&&K.opened||D.getMiniGuideVisible()))if(D.canFitPersistentGuide(x)&&D.getGuideExpandsAutomatically()){var z,y,c=Number((z=window.getComputedStyle(this.hostElement))==null?void 0:(y=z.getPropertyValue("--app-drawer-width"))==null?void 0:y.replace("px",""));x-=c||0}else if(D.canFitMiniGuide(x)){var W;
z=Number((c=window.getComputedStyle(this.hostElement))==null?void 0:(W=c.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:W.replace("px",""));x-=z||0}}x>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(x-=G?32:48));return x};
_.a.calcElementsPerRow=function(x,G){var D=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),K=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((D+K)/(x+K))||1,G)};
_.a.reflowContent=function(x){var G=this;if(!this.isReflowing){this.isReflowing=!0;var D,K,z=!!((D=this.data)==null?0:(K=D.contents)==null?0:K.some(function(r){return _.Y(r,_.hj)}));
D=this.getItemsPerRow();var y;K=(y=this.data)==null?void 0:y.reflowOptions;x&&(_.Fs("rgr_s"),_.w1(this,function(){_.Fs("rgr_nrf")}));
x={};(y=_.kA(this.hostElement).querySelector("#contents"))&&(x={contentElement:y,rendererToTagNameMap:this.rendererToTagNameMap});y=(y=this.data.contents)?y.slice():[];var c=(_.B("web_hide_gnome_behind_feed_filter_chip")||_.B("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,W=_.B("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,e=-1,Q=-1;if(this.isHomePage&&W){for(W=0;W<y.length;W++){var p=void 0,V=void 0;_.Y((p=y[W])==null?void 0:
(V=p.richSectionRenderer)==null?void 0:V.content,VPx)&&(Q=W)}Q>-1&&(this.exploreHubContents=y.splice(Q,1))}if(this.isHomePage&&c){for(Q=0;Q<y.length;Q++)V=p=void 0,(W=_.Y((p=y[Q])==null?void 0:(V=p.richSectionRenderer)==null?void 0:V.content,_.brZ))&&c&&(V=p=void 0,W=_.Y((p=W)==null?void 0:(V=p.contents)==null?void 0:V[0],_.Bo),p=void 0,_.Y((p=W)==null?void 0:p.content,_.Bg9)&&(e=Q));e>-1&&(this.gnomeContents=y.splice(e,1))}var L=zXO(y,D,z,K,this.getRichGridStyle(),x,this.insertedContent);z=function(){G.shownItems=
L;G.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(L),_.w1(this,z)):z()}};
_.a.getFirstRowItems=function(x){for(var G=[],D=0;D<x.length;D++){var K=void 0,z=void 0,y=void 0,c=void 0,W=void 0,e=void 0;if(((K=x[D])==null?void 0:(z=K.richItemRenderer)==null?void 0:z.rowIndex)===0||((y=x[D])==null?void 0:(c=y.richGroupRenderer)==null?void 0:c.rowIndex)===0||((W=x[D])==null?void 0:(e=W.richSectionRenderer)==null?void 0:e.rowIndex)===0)G.push(x[D]);else break}return G};
_.a.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.a.handleChipCloudChipSelectAction=function(x,G){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.B("web_hide_gnome_behind_feed_filter_chip")&&(G?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.a.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.B("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.a.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.B("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.a.terminateVideoPreview=function(){_.Gl(this.hostElement,"yt-terminate-video-preview-action")};
_.a.updateRichItemGridPositions=function(){var x={gridData:{gridColumnCount:this.elementsPerRow}},G;if((G=this.data)==null?0:G.trackingParams)this.loggingRefactor?_.en().stateChanged(this.data.trackingParams,x):(G=_.CC())&&_.wB(G,_.V2(this.data.trackingParams),x);_.Gl(this.hostElement,"ytd-rich-item-index-update-action")};
_.a.miniModeAllowed=function(){return _.B("disable_channels_mini_mode")?!1:this.isChannelPage};
_.a.getMiniGameCardMinWidth=function(){return 154};
_.a.updateMiniMode=function(x){this.miniMode=this.miniModeAllowed()&&x;this.ytdReduxBehavior.dispatch(_.EO({type:"SET_RICH_GRID_MINI_MODE",payload:x}))};
_.a.isCurrentPage=function(){return location.pathname===this.pagePath};
_.a.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var x=_.Eo().resolve(_.wG).getCurrentPage();x&&x.setScrollTop(0)}};
_.a.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.a.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.a.maybeSetBigYoodle=function(){var x,G=(x=this.data)==null?void 0:x.bigYoodle;this.bigYoodleData!==G&&(this.bigYoodleData=G)};
_.a.setMasthead=function(){var x;((x=this.data)==null?0:x.masthead)?this.mastheadData=this.data.masthead:_.B("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.a.getRichGridStyle=function(){var x,G;return(G=(x=this.data)==null?void 0:x.style)!=null?G:"RICH_GRID_STYLE_UNKNOWN"};
_.a.onIsShortsGridChange=function(){var x=this.ytdReduxBehavior,G=x.dispatch,D=this.getRichGridStyle();G.call(x,_.EO({type:"SET_RICH_GRID_STYLE",payload:D}))};
_.Nq.Object.defineProperties(pY.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var x;return(((x=this.data)==null?void 0:x.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var x;return(((x=this.data)==null?void 0:x.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var x=_.Eo().resolve(_.wG).getCurrentPage(),G,D,K;return(((G=this.data)==null?void 0:G.targetId)==="browse-feedFEsfv_audio_pivot"||_.B("web_enable_channel_pivot_panel")&&((D=this.data)==null?void 0:D.targetId)==="browse-feedFEsfv_channel_pivot"||_.B("web_enable_effect_pivot_panel")&&((K=this.data)==null?void 0:K.targetId)==="browse-feedFEsfv_effect_pivot")&&(x==null?void 0:x.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.B("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 x;return!((x=this.data)==null?0:x.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var x;return((x=_.Eo().resolve(_.wG).getCurrentPage())==null?void 0:x.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var x;return((x=_.Eo().resolve(_.wG).getCurrentPage())==null?void 0:x.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 x;return this.hideChipsBar||(((x=this.data)==null?void 0:x.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.B("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var x;return(((x=this.data)==null?void 0:x.targetId)||"")==="watch-next-feed"&&!_.B("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var x,G,D;return((x=this.data)==null?0:x.enableContentSpecificAspectRatio)||((G=this.data)==null?0:(D=G.responsiveContainerConfiguration)==null?0:D.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.Gz("web_continuation_handler_margin",0):0}}});
pY.prototype.onIsShortsGridChange=pY.prototype.onIsShortsGridChange;pY.prototype.onReloadContinuationFinish=pY.prototype.onReloadContinuationFinish;pY.prototype.reflowContent=pY.prototype.reflowContent;pY.prototype.handleRerenderDownloadsData=pY.prototype.handleRerenderDownloadsData;pY.prototype.onRichShelfRendererCollapse=pY.prototype.onRichShelfRendererCollapse;pY.prototype.onRequestElementsPerRow=pY.prototype.onRequestElementsPerRow;pY.prototype.contentLengthChanged=pY.prototype.contentLengthChanged;
pY.prototype.dataChanged=pY.prototype.dataChanged;pY.prototype.onSizingChange=pY.prototype.onSizingChange;pY.prototype.onUseCompactListChange=pY.prototype.onUseCompactListChange;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],pY.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],pY.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.Lg),_.N("design:type",Object)],pY.prototype,"ironResizableBehavior",void 0);
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],pY.prototype,"actionHandlerBehavior",void 0);_.q([_.I(_.Oh),_.N("design:type",Object)],pY.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],pY.prototype,"componentBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],pY.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],pY.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0,selector:_.Y_}),_.N("design:type",Boolean)],pY.prototype,"miniMode",void 0);_.q([_.R({value:[]}),_.N("design:type",Array)],pY.prototype,"shownItems",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],pY.prototype,"isReflowing",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],pY.prototype,"isFilteredFeed",void 0);_.q([_.R({selector:_.zzQ}),_.N("design:type",Boolean)],pY.prototype,"guideIsExpanded",void 0);
_.q([_.R({selectorArgs:["entitySelectorType"],selector:function(x,G){if(_.B("kevlar_modern_downloads_page")&&G&&G!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(G){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var D=x.entities;G=_.Bk(D);var K=_.rK(D),z=_.sLd(x),y=_.rzD(x);x=_.YVE(x);var c=_.kb$(D),W=_.MW(G);D=_.sA(D);return _.svC(G,K,c,z,y,W,D,x);case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return G=_.Bk(x.entities),_.mAE(G);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return G=
_.vo3(x.entities),_.H0Q(G);default:_.O9(new _.LL("Error: entitySelectorType defined but not matched in selector.",x,G))}}}),
_.N("design:type",Object)],pY.prototype,"entityDrivenRichGridData",void 0);_.q([_.R(),_.N("design:type",Object)],pY.prototype,"resizeOnObserverInit",void 0);_.q([_.R(),_.N("design:type",Object)],pY.prototype,"bigYoodleData",void 0);_.q([_.R(),_.N("design:type",Object)],pY.prototype,"mastheadData",void 0);_.q([_.R(),_.N("design:type",Boolean)],pY.prototype,"isInlinePreviewDisabled",void 0);_.q([_.R(),_.N("design:type",Object)],pY.prototype,"disableStickyFilterBar",void 0);
_.q([_.R(),_.N("design:type",Object)],pY.prototype,"transparentBackgroundChipsBar",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],pY.prototype,"hideChipsBar",void 0);_.q([_.R(),_.N("design:type",Object)],pY.prototype,"isWatchDefaultLayout",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],pY.prototype,"continuationShowButton",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],pY.prototype,"rowReducedHorizontalMargin",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],pY.prototype,"useCompactList",void 0);_.q([_.R({selector:function(x){return _.rK(x.entities).length>0}}),
_.N("design:type",Object)],pY.prototype,"manualDownloadsPresent",void 0);_.q([_.R({selector:function(x){return _.Bk(x.entities).length>0}}),
_.N("design:type",Object)],pY.prototype,"smartDownloadsPresent",void 0);_.q([_.R({selector:_.rzD}),_.N("design:type",Object)],pY.prototype,"shouldRenderDownloadsBanner",void 0);_.q([_.R({selector:_.sLd}),_.N("design:type",Object)],pY.prototype,"hasOptedIntoSmartDownloads",void 0);_.q([_.yf("useCompactList"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pY.prototype,"onUseCompactListChange",null);
_.q([_.yf("sizing","typographyBump"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pY.prototype,"onSizingChange",null);_.q([_.R({selector:_.czO}),_.N("design:type",Number)],pY.prototype,"miniplayerPlaybackState",void 0);_.q([_.R({selector:_.Hk}),_.N("design:type",Boolean)],pY.prototype,"miniplayerIsActive",void 0);
_.q([_.R({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.N("design:type",Boolean)],pY.prototype,"isInlinePreviewEnabled",void 0);_.q([_.R({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.N("design:type",String)],pY.prototype,"sizing",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],pY.prototype,"elementsPerRow",void 0);
_.q([_.R(),_.N("design:type",Object)],pY.prototype,"typographyBump",void 0);_.q([_.R(),_.N("design:type",Number)],pY.prototype,"itemWidth",void 0);_.q([_.cD("#header"),_.N("design:type",HTMLElement)],pY.prototype,"headerElement",void 0);_.q([_.cD("#contents"),_.N("design:type",HTMLElement)],pY.prototype,"contentsElement",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pY.prototype,"dataChanged",null);
_.q([_.Z6("data.contents.length"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pY.prototype,"contentLengthChanged",null);_.q([_.oe("yt-request-elements-per-row"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pY.prototype,"onRequestElementsPerRow",null);
_.q([_.oe("yt-rich-shelf-renderer-collapse"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],pY.prototype,"onRichShelfRendererCollapse",null);_.q([_.Z6("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pY.prototype,"handleRerenderDownloadsData",null);
_.q([_.U("data"),_.N("design:type",String),_.N("design:paramtypes",[])],pY.prototype,"entitySelectorType",null);_.q([_.R({reflectToAttribute:!0}),_.U("data.targetId"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pY.prototype,"isSub",null);_.q([_.R({reflectToAttribute:!0}),_.U("data.targetId"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pY.prototype,"isWatch",null);
_.q([_.R({reflectToAttribute:!0}),_.U("data.targetId"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pY.prototype,"isShortsPanel",null);_.q([_.R({reflectToAttribute:!0}),_.U("isWatch"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pY.prototype,"reducedTopMargin",null);_.q([_.R({reflectToAttribute:!0}),_.U("data","isWatch","isWatchDefaultLayout"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pY.prototype,"noTopMargin",null);
_.q([_.R({reflectToAttribute:!0}),_.U("isInlinePreviewEnabled","shownItems"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pY.prototype,"topRowEndorsement",null);_.q([_.U("data.header"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pY.prototype,"hideHeader",null);_.q([_.oe("yt-rich-grid-reflow"),_.N("design:type",Function),_.N("design:paramtypes",[Boolean]),_.N("design:returntype")],pY.prototype,"reflowContent",null);
_.q([_.oe("yt-reload-continuation-finish"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pY.prototype,"onReloadContinuationFinish",null);_.q([_.U("data"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pY.prototype,"isSlimGrid",null);_.q([_.U("data"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pY.prototype,"isShortsGrid",null);
_.q([_.U("data","isSlimGrid","isShortsGrid"),_.R(),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pY.prototype,"noRichItemGutterMargins",null);_.q([_.U("data"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pY.prototype,"isShortsGridSlim",null);_.q([_.U("data"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pY.prototype,"isCompactGrid",null);
_.q([_.U("data"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pY.prototype,"isDefaultGrid",null);_.q([_.U("data.targetId"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pY.prototype,"hideChipsBarOnHome",null);_.q([_.U("data.targetId"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pY.prototype,"hideChipsBarOnWatch",null);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pY.prototype,"onIsShortsGridChange",null);_.q([_.U("data.enableContentSpecificAspectRatio"),_.R(),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pY.prototype,"force16By9ThumbnailAspectRatio",null);_.q([_.U("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],pY.prototype,"continuationTriggerOffset",null);pY=_.q([_.d({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],pY);
_.w(pY,"ytd-rich-grid-renderer",function(){if(AV8!==void 0)return AV8;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return AV8=x},{mode:2});var JVc=_.Nv(function(x){var G=x.thumbsUp;x=x.thumbsDown;var D=_.l(_.eO(!1,void 0,"OxPsH")),K=D.next().value,z=D.next().value;D=_.l(_.eO(!1,void 0,"V5vWne"));var y=D.next().value,c=D.next().value;return _.M("div",{class:"ytwThumbsUpDownThumbs"},_.M(_.rl,{data:G,onToggle:function(W){z(W);y()&&c(!1)},
buttonShapeOverrides:function(){return{toggled:K()}}}),_.M(_.rl,{data:x,
onToggle:function(W){c(W);K()&&z(!1)},
buttonShapeOverrides:function(){return{toggled:y()}}}))},"wi");
JVc.idomCompat=!0;var tPx=_.Nv(function(x){var G=function(){return x.data().pendingStateEntityKey||""},D=_.lA(_.eXY,G),K=function(){var z;
if(!(z=x.disabled())){var y;z=!((y=D())==null||!y.isPendingResponse)}return z};
return _.M("you-chat-chips-data",{class:"ytwYouChatChipsDataHost"},_.M(_.LT,{each:function(){return x.data().chipData||[]},
keyBy:"REFERENCE"},function(z){return _.M(f04,{data:z,disabled:K,pendingStateKey:G,onError:x.onError})}))},"xi"),f04=_.Nv(function(x){var G=_.qi(),D=_.l(_.eO(!0,void 0,"HBREAe")),K=D.next().value,z=D.next().value,y=function(){return x.data().text.content},c=_.WH(function(W){var e,Q,p,V,L,r,H,O;
return _.T(function(A){switch(A.nextAddress){case 1:W.stopPropagation();if(x.disabled())return A.return();Q=String(Math.floor(((e=_.Gx())==null?void 0:e.getCurrentTime())||0)*1E3);p="youchat-"+Date.now();V=function(){_.OI(x.data().onClick||{});var g={continuationCommand:{token:x.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},u={inputComposerFormData:{clientMessageId:p,playerOffsetMs:Q}};return new Promise(function(f,v){_.OI(g,{form:{formData:u},commandController:{onSuccess:function(P,
k){f(k)},
onServerError:function(P,k){v(k.error)}}})})};
L=_.ZOc(x.pendingStateKey());L(!0);_.hOf("#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");z(!1);_.Kl(A,2);return _.Z(A,V(),4);case 4:_.iI(A,3);break;case 2:r=_.lX(A),(O=(H=x).onError)==null||O.call(H,r);case 3:L(!1),_.c5(A)}})});
return _.M(_.b,{cond:K,then:function(){return _.M("div",{class:"ytwYouChatChipsDataChipWrapper"},_.M("button",{el:G,class:"ytwYouChatChipsDataChip","data-disabled":x.disabled,"on:click":c,tabindex:0},y))}})},"yi");var kOk=_.Nv(function(x){var G=x.data;return _.M("yt-conversation-resource-view-model",{class:_.ym("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.M(_.bA,{data:function(){var D,K;return((D=G().conversationResourceData)==null?void 0:(K=D.learningGuideData)==null?void 0:K.sections)||[]}},{expandableMetadataViewModel:function(D){return _.M(_.Ijk,{data:D.data})}}))},"zi");
kOk.idomCompat=!0;var PLb=_.Nv(function(x){var G=function(){var u;return(u=x.data().text)==null?void 0:u.content},D=function(){var u,f;
return(u=x.data().webData)==null?void 0:(f=u.textResult)==null?void 0:f.content},K=_.Eo().resolve(_.ub),z=_.Dw(),y=function(){return x.data().chatResponseStyle},c=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:"12 0 48 48"},name:"YOUCHAT_ICON",path:x.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},W=function(){var u;
return x.data().webData||((u=x.data().text)==null?void 0:u.content)||x.data().videoResultsData||x.data().conversationResourceViewModel||x.data().quiz},e=function(){var u;
return(u=x.data().videoResultsData)==null?void 0:u.videoShelf},Q=function(){var u;
return _.Y(((u=x.data().videoResultsData)==null?void 0:u.videoShelf)||{},sib)},p=function(){var u;
return(u=x.data().webData)==null?void 0:u.sourcesShelf},V=function(){var u;
return _.Y(((u=x.data().webData)==null?void 0:u.sourcesShelf)||{},sib)},L=function(){return _.Y(x.data().conversationResourceViewModel||{},mjf)},r=function(){return _.Y(x.data().quiz||{},LDY)},H=function(){return y()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||y()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:x.data().thumbsDownViewModel&&x.data().thumbsUpViewModel},O=function(){return _.Y(x.data().thumbsUpViewModel,_.Bq)},A=function(){return _.Y(x.data().thumbsDownViewModel,_.Bq)};
_.H6(function(){requestAnimationFrame(function(){var u;(u=x.shouldAnimateIcon)!=null&&u.call(x)&&MPc(z.lottieEl)})});
var g={};return _.M("you-chat-item-view-model",{class:_.ym("ytwYouChatItemViewModelYouChatItemViewModel",(g.ytwYouChatItemViewModelHostNoPadding=function(){return!1},g)),
"data-target-id":function(){return x.data().id||""}},_.M(_.b,{cond:W,
then:function(){var u={};return _.M("div",{"aria-hidden":"true"},_.M(_.l_,{className:_.ym("ytwYouChatItemViewModelIcon",(u.ytwYouChatItemViewModelRtl=K==="rtl",u.ytwYouChatItemViewModelHidden=function(){return!(x.data().hideIcon||y()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||y()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:W())},u)),
animationName:"YOUCHAT_ICON",data:c,animationRef:z}))}}),_.M(_.b,{cond:W,
then:function(){var u={};return _.M("div",{class:_.ym("ytwYouChatItemViewModelHost",(u.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return y()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},u.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return y()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},u.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return y()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},u)),
role:"alert"},_.M(_.b,{cond:G,then:function(f){return _.M(_.HB,{text:f})}}),_.M(_.b,{cond:D,
then:function(f){return _.M(_.HB,{text:f})}}),_.M(_.b,{cond:e,
then:function(){return _.M("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.M(_.Yj,{data:Q,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.M(_.b,{cond:p,
then:function(){return _.M("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.M(_.Yj,{data:V,hasPeek:!0,disableArrows:!1}))}}),_.M(_.b,{cond:L,
then:function(){return _.M(kOk,{data:L})}}),_.M(_.b,{cond:r,
then:function(){return _.M(_.FNq,{data:r})}}),_.M(_.b,{cond:H,
then:function(){return _.M(JVc,{thumbsUp:O,thumbsDown:A})}}))}}),_.M(_.b,{cond:function(){return x.data().chipsData},
then:function(u){return _.M(tPx,{data:u,disabled:x.pending,onError:x.onError})}}))},"Ai");
PLb.idomCompat={callbacks:{onError:!0,onSend:!0}};var E48=_.Nv(function(x){var G=function(){return x.data().choiceSelectedText};
return _.M("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.M(_.b,{cond:G,then:function(){return _.M("div",{class:"ytYouChatUserTurnChoiceSelected"},_.M(_.vq,{text:G}))}}),_.M("div",{class:"ytYouChatUserTurnUserMessage"},function(){return x.data().text}))},"Bi");var hXc=_.Nv(function(x){var G=_.l((0,_.cws)(x.data)).next().value;return _.M("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return x.data().targetId||""}},_.M(_.bA,{data:function(){return x.data().header}},{chipBarViewModel:_.PYZ}),_.M(_.bA,{data:function(){return G().contents}},{accordionViewModel:_.j39,
alertBannerViewModel:_.zBu,chatLoadingViewModel:_.cm8,chatUserTurnViewModel:E48,learningJourneyLoaderViewModel:_.$K8,lockupViewModel:function(D){return _.M(_.kc,{data:D.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:x.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
youChatItemViewModel:function(D){return _.M(PLb,{data:D.data,pending:!1})}}))},"Ci");_.tn(_.Nv(function(x){var G=_.l((0,_.cws)(x.data)).next().value,D=_.qi(),K=_.l(_.eO(void 0,void 0,"rQpPgc")),z=K.next().value,y=K.next().value,c=function(){var W;return _.Y((W=x.data().sectionListLayoutConfiguration)==null?void 0:W.layoutConfiguration,rVc)};
_.FQ(function(){var W,e=(W=D.value)==null?void 0:W.clientWidth;if(c()){W=c();var Q=W.responsiveSize;e=e<528?"CONTAINER_SIZE_NARROW":e<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var p=_.l(W.responsiveMap||[]);for(var V=p.next();!V.done;V=p.next())if(V=V.value,V.containerSize===e){p=V.containerType;break b}p=void 0}if(p&&Q){b:{if(p==="CONTAINER_TYPE_VERTICAL_LIST")if(Q==="RESPONSIVE_SIZE_STANDARD"){if(e!=="CONTAINER_SIZE_NARROW"){V="50%";break b}}else{V=e==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}V=void 0}W={responsiveSize:Q,containerSize:e,containerType:p,force16By9ThumbnailAspectRatio:!W.enableContentSpecificAspectRatio,contentPreviewWidth:V,fullbleed:(p==="CONTAINER_TYPE_VERTICAL_LIST"||p==="CONTAINER_TYPE_GRID")&&e==="CONTAINER_SIZE_NARROW"&&!1}}else W=void 0}else W=void 0;y(W)});
return _.M("yt-section-list-renderer",{class:_.ym("ytSectionListRendererHost",x.className),el:D,"data-target-id":function(){return x.data().targetId||""}},_.M(_.bA,{data:function(){return G().contents}},{itemSectionRenderer:function(W){return _.M(hXc,{data:W.data,
containerLayoutConfig:z})}}))},"Di"),"yt-section-list-renderer",{props:{data:_.ik,
className:_.fz}});var xNf;var G3T;var VE=function(){return _.n.apply(this,arguments)||this};
_.m(VE,_.n);_.q([_.R(),_.N("design:type",Object)],VE.prototype,"data",void 0);VE=_.q([_.HD({is:"yt-alert-renderer",disableElementRegistration:!0})],VE);
_.w(VE,"yt-alert-renderer",function(){if(G3T===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;xNf===void 0&&(xNf=document.createElement("template"));var K=xNf;D.call(G,K.content.cloneNode(!0),x.content.firstChild);G3T=x}x=G3T;return x},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.Omi=function(x,G){var D,K;G=G===void 0?{}:G;var z,y,c,W,e,Q,p,V,L,r,H,O;return _.T(function(A){switch(A.nextAddress){case 1:z=G;y=z.shouldWrap===void 0?!0:z.shouldWrap;c=z.skipTransitionTimeoutMs===void 0?300:z.skipTransitionTimeoutMs;W=z.beforeTransition;e=z.afterTransition;if(!y||!document.startViewTransition||document.visibilityState==="hidden")return A.return(x());D=window.innerWidth;K=window.innerHeight;Q=!1;(p=W)==null||p();_.Kl(A,2);V=document.startViewTransition(x);L=setTimeout(function(){V.skipTransition();
Q=!0},c);
return _.Z(A,V.ready,4);case 4:return clearTimeout(L),_.Z(A,V.finished,5);case 5:clearTimeout(L);(r=e)==null||r();_.iI(A,0);break;case 2:H=_.lX(A),(O=e)==null||O(),H&&!Q&&document.visibilityState!=="hidden"&&D===window.innerWidth&&K===window.innerHeight&&_.I4(H),_.c5(A)}})};
_.YZ=function(){for(var x=Array(36),G=0,D,K=0;K<36;K++)K==8||K==13||K==18||K==23?x[K]="-":K==14?x[K]="4":(G<=2&&(G=33554432+Math.random()*16777216|0),D=G&15,G>>=4,x[K]=_.R$s[K==19?D&3|8:D]);return x.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 Xdi=_.gv(['<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>']),
AgT=_.Yvu(Xdi);AgT.setAttribute("style","display: none;");document.head.appendChild(AgT.content);_.mO=_.LSf(function(x){var G=_.p4("DIV");x&&(G.className=x);G.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";x=_.p4("DIV");_.UL8(x,"200px","200px");G.appendChild(x);document.body.appendChild(G);x=G.offsetWidth-G.clientWidth;_.VF(G);return x});var UH4;var RU6;var HW=function(){var x=_.n.apply(this,arguments)||this;x.icon=null;return x};
_.m(HW,_.n);HW.prototype.dismiss=function(){_.h$(this.hostElement,"yt-live-chat-error-message-dismiss")};
HW.prototype.computeIcon=function(x){return x&&x.iconType?"yt-icons:"+x.iconType.toLowerCase():"yt-icons:close"};
_.q([_.R(),_.N("design:type",Object)],HW.prototype,"data",void 0);_.q([_.R({computed:"computeIcon(data.icon)"}),_.N("design:type",Object)],HW.prototype,"icon",void 0);HW=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],HW);
_.w(HW,"yt-live-chat-error-message-renderer",function(){if(RU6===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;UH4===void 0&&(UH4=document.createElement("template"));var K=UH4;D.call(G,K.content.cloneNode(!0),x.content.firstChild);RU6=x}x=RU6;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var K0b,zdx,a1x,owj,edf,Z0c,M0c,Qv6,pNf,YQ,V0x,b0C,m6,L06,BFf,rqY,svi,Yyk,mAf,H06,$Af,F04,C3b,I16,jv4,O06,XN6,Aqc,UAO,Rd8,Syb,nwb,HK,i08,gwx,u9x,qyj,NFx,vw4,JqY,f1f,t0f,dAO,wNi,P3c,Ew8,hdc,xQc,Go4,k96,K2x;K0b=function(x,G){return _.zm(x.entities,"timedMarkersListSyncEntity",G)};
zdx=function(x,G){return _.zm(x.entities,"liveReactionsDataEntity",G)};
a1x=function(x,G){x=_.zm(x.entities,"booleanEntity",G);return!(!x||!x.value)};
owj=function(x,G){var D=_.CC();D&&x&&_.RI(D,_.V2(x),G)};
_.yqc=function(){_.B("web_watch_log_theater_mode")&&_.OPC("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.l1i=function(x,G,D){if(!x.includes("START_TIME_PLACEHOLDER")||!x.includes("END_TIME_PLACEHOLDER"))return x;var K=new Date(0),z=new Date(0);K.setUTCMilliseconds(G);z.setUTCMilliseconds(D);return x.replace("START_TIME_PLACEHOLDER",_.R_(K,7)).replace("END_TIME_PLACEHOLDER",_.R_(z,7))};
_.cqC=function(x){return x.watch.isWatchActive};
_.TFb=function(x){return _.jU(x)||_.Og(x)||_.RvL(x)};
_.W0c=function(x){return!_.TFb(x)};
_.sF=function(x){return x.watch.watchScrollTop};
edf=function(x){return x.watch.isLiveChatCollapsed};
Z0c=function(x){return x.watch.openEngagementPanels};
M0c=function(x,G){return _.zm(x.entities,"booleanEntity",G)};
Qv6=function(){return function(x){_.dc(_.cq("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:x}))}};
pNf=function(x){switch(x){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}};
YQ=function(x,G,D){var K=_.jn(D);x&&G&&K&&x.getPlayerPromise().then(function(z){_.cBL(K)&&_.CE();(new _.MD(z)).executeCommand(K,G);_.B("continue_playback_on_desktop_companion_click")||z.pauseVideo()})};
V0x=function(x){var G=_.Ns(),D;if(D=_.nT("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var K;D=(K=D())==null?void 0:K.layoutId}else D=null;YQ(G,D,x)};
b0C=function(x){var G=_.Ns(),D;if(D=_.nT("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var K;D=(K=D())==null?void 0:K.layoutId}else D=null;YQ(G,D,x)};
m6=function(x,G){var D=x<0?"-":"";x=Math.abs(x);var K=Math.floor(x/3600),z=Math.floor(x)%3600,y=Math.floor(z/60);z=Math.floor(z)%60;var c="";(G===void 0?0:G)&&(c="."+Math.round((x-Math.floor(x))*10));return K>0?D+K+":"+(y<10?"0"+y:""+y)+":"+(z<10?"0"+z:""+z)+c:D+y+":"+(z<10?"0"+z:""+z)+c};
L06=function(x){var G=x.match(/[^0-9:\.]/g);if(G&&G.length>0)return null;x=x.split(":");if(x.length===0||x.length>3)return null;G=1;for(var D=0;x.length>0;){var K=x.pop();if(K===void 0)break;var z=Number(K);if(K===""||isNaN(z))return null;D+=z*G;G*=60}return D};
BFf=function(x,G,D,K){x=Math.max(D,x);G=Math.min(G,K-D);x+G>K?(D=K,x=D-G):D=x+G;return{start:x,end:D}};
rqY=function(x,G,D,K,z,y){x<D?x=D:x+z>K&&(x=K-z);G>K&&(G=K);G=Math.min(x+y,Math.max(x+z,G));return{start:x,end:G}};
svi=function(x,G,D,K,z,y){G>K?G=K:G-z<D&&(G=D+z);x<D&&(x=D);x=Math.min(G-z,Math.max(G-y,x));return{start:x,end:G}};
Yyk=function(x){return _.B("web_transcript_cue_id_killswitch")?String(x):"ytd-transcript-renderer_"+x};
mAf=function(x){return _.B("web_transcript_cue_id_killswitch")?!0:x.startsWith("ytd-transcript-renderer")};
H06=function(x){var G=_.Ns(),D;if(D=_.nT("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var K;D=(K=D())==null?void 0:K.layoutId}else D=null;YQ(G,D,x)};
$Af=function(x){x.style.height="auto";x.style.height=Math.min(x.scrollHeight||20,80)+"px"};
F04=function(x,G){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:G}}],insertByPositionInSection:{sectionTargetId:x,position:"INSERTION_POSITION_LAST"}}}]}}}};
C3b=function(x){var G=_.Ns(),D;D=(D=_.nT("yt.www.ads.eventcache.getLastCompanionData"))?(D=D())&&D.layoutId:null;YQ(G,D,x)};
I16=function(x){var G=_.Ns(),D;D=(D=_.nT("yt.www.ads.eventcache.getLastCompanionData"))?(D=D())&&D.layoutId:null;YQ(G,D,x)};
jv4=function(x,G){G=G===void 0?!1:G;if(x.simpleText)x=[{text:x.simpleText}];else{var D;x=((D=x.runs)!=null?D:[]).map(function(K){return Object.assign({},K)})}if(G)for(G=_.l(x),D=G.next();!D.done;D=G.next())D.value.bold=!0;
return x};
O06=function(x){var G=x.startEndTimeTemplate,D=x.startTimeUtcMillis;x=x.endTimeUtcMillis;if(G&&D&&x)return _.gK(_.l1i(_.u7(G),Number(D),Number(x)))};
XN6=function(x,G){var D,K,z=x==null?void 0:(D=x.viewCount)==null?void 0:(K=D.videoViewCountRenderer)==null?void 0:K.shortViewCount;if(!G&&z)return z;var y,c;return x==null?void 0:(y=x.viewCount)==null?void 0:(c=y.videoViewCountRenderer)==null?void 0:c.viewCount};
Aqc=function(x,G){var D=x==null?void 0:x.relativeDateText;return!G&&D?[D,!0]:[x==null?void 0:x.dateText,!1]};
UAO=function(x,G,D,K,z){K=K===void 0?!0:K;z=z===void 0?"":z;var y=XN6(x,G),c=_.l(Aqc(x,G)),W=c.next().value;c=c.next().value;G=G?x==null?void 0:x.sponsorsOnlyFirstTimeLongText:x==null?void 0:x.sponsorsOnlyFirstTimeShortText;var e=[];D&&y&&e.push(y);!D&&c||!W||e.push(W);x=[].concat(_.B5(e),[G,x==null?void 0:x.stationName,x==null?void 0:x.rating,x?O06(x):void 0,x==null?void 0:x.upNextProgramText,x==null?void 0:x.superTitleLink]).filter(function(Q){return!!Q});
D={runs:[]};for(y=0;y<x.length;y++)D.runs.push.apply(D.runs,_.B5(jv4(x[y],K))),y<x.length-1&&D.runs.push({text:" "+z+" ",bold:K});return D};
Rd8=function(x){if(x)return{runs:[{text:x,bold:!0}]}};
Syb=function(x){var G,D,K,z;if(x=x==null?void 0:(G=x.contents)==null?void 0:(D=G.twoColumnWatchNextResults)==null?void 0:(K=D.results)==null?void 0:(z=K.results)==null?void 0:z.contents){var y,c;return(c=(y=x.find(function(W){return!!W.videoPrimaryInfoRenderer}))==null?void 0:y.videoPrimaryInfoRenderer)==null?void 0:c.updatedMetadataEndpoint}};
nwb=function(x,G){var D;return(D=x.sourceConfigs)==null?void 0:D.find(function(K){return K.videoId===G})};
HK=function(x){return x==="End of video"||x==="End of playlist"};
i08=function(x){var G,D,K,z;return(G=x.getWatchNextResponse())==null?void 0:(D=G.contents)==null?void 0:(K=D.twoColumnWatchNextResults)==null?void 0:(z=K.playlist)==null?void 0:z.playlist};
gwx=function(x){var G,D,K,z,y,c;return(G=i08(x))==null?void 0:(D=G.playlistButtons)==null?void 0:(K=D.menuRenderer)==null?void 0:(z=K.topLevelButtons)==null?void 0:(y=z[0])==null?void 0:(c=y.playlistLoopButtonRenderer)==null?void 0:c.playlistLoopStateEntityKey};
u9x=function(x){var G=_.Eo().resolve(_.HG),D;return(G=(D=_.Y(G.getAutoplayEndpoint(),_.d5))==null?void 0:D.playlistId)&&G===x};
qyj=function(x,G,D,K,z){function y(){_.Fj.cancelJob($Q);var c=dAO(G,D/x.getPlaybackRate()),W=c.hours,e=c.minutes;c=(c.seconds*1E3||6E4)/x.getPlaybackRate();x.setVideoTimeLeft(wNi(W,e));K&&x.getPlayerState()!==0&&x.setSleepTimerTimeLeft(wNi(W,e,!0));(W>0||e>0)&&!z&&($Q=_.eU(_.Fj,y,c))}
_.Fj.cancelJob($Q);$Q=_.eU(_.Fj,y)};
NFx=function(x,G,D){function K(){_.Fj.cancelJob(FY);var z=dAO(G,D),y=z.hours;z=z.minutes;var c=6E4/x.getPlaybackRate();if(y>0||z>0)x.setSleepTimerTimeLeft(wNi(y,z,!0)),FY=_.eU(_.Fj,K,c)}
_.Fj.cancelJob(FY);FY=_.eU(_.Fj,K)};
vw4=function(x,G){var D=x.getVolume()/(G/500),K=function(z){_.Fj.cancelJob(CD);var y=Math.floor(z-D);x.setVolume(y,!1);y>0&&(CD=_.eU(_.Fj,function(){K(y)},500))};
_.Fj.cancelJob(CD);CD=_.eU(_.Fj,function(){K(x.getVolume())})};
JqY=function(x,G){_.Fj.cancelJob(CD);G&&x.syncVolume()};
f1f=function(){var x={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Wg("SLEEP_TIMER_DISRUPTED")}}}}};_.Eo().resolve(_.hm).resolveCommand(x)};
t0f=function(x){return(x.getDuration()-x.getProgressState().current)*1E3};
dAO=function(x,G){x=x+G-(0,_.kK)();if(x<=0)return{hours:0,minutes:0,seconds:0};var D=new k96(0,0,0,0,0,0,x);x=D.getHours();G=D.getMinutes();D=D.getSeconds();D!==0&&G++;G!==0&&G%60===0&&(x++,G=0);return{hours:x,minutes:G,seconds:D}};
wNi=function(x,G,D){return x>0&&G>0?D?_.Wg("TIME_LEFT_HOURS_MINUTES",{hours:x.toString(),minutes:G.toString()}):_.Wg("TIME_HOURS_MINUTES",{hours:x.toString(),minutes:G.toString()}):x>0?D?_.e7("TIME_LEFT_HOURS",x):_.e7("TIME_HOURS",x):D?_.Wg("TIME_LEFT_MINUTES",{minutes:G.toString()}):_.Wg("TIME_MINUTES",{minutes:G.toString()})};
P3c=function(x,G){if(x.timelyActions)return x.timelyActions.find(function(D){var K;return((K=_.Y(D,Ia))==null?void 0:K.cueRangeId)===G})};
Ew8=function(x){var G=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.PA(x);x.keyMap_.forEach(function(D,K){_.qL(G,K)||this.remove(K)},x)};
hdc=function(x,G){x.reloadContinuationItemsCommandMatcher=G};
_.ja=function(x,G){x.insertBefore(G,x.childNodes[0]||null)};
xQc=function(x){if(x>=48&&x<=57||x>=96&&x<=106||x>=65&&x<=90||_.xp&&x==0)return!0;switch(x){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 _.hR;default:return!1}};
Go4=function(x){if(x.altKey&&!x.ctrlKey||x.metaKey||x.keyCode>=112&&x.keyCode<=123)return!1;if(xQc(x.keyCode))return!0;switch(x.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!_.hR;default:return x.keyCode<166||x.keyCode>183}};
k96=function(x,G,D,K,z,y,c){this.date=typeof x==="number"?new Date(x,G||0,D||1,K||0,z||0,y||0,c||0):new Date(x&&x.getTime?x.getTime():_.f6())};
_.tR(k96,_.ej);_.a=k96.prototype;_.a.getHours=function(){return this.date.getHours()};
_.a.getMinutes=function(){return this.date.getMinutes()};
_.a.getSeconds=function(){return this.date.getSeconds()};
_.a.getMilliseconds=function(){return this.date.getMilliseconds()};
_.a.getUTCDay=function(){return this.date.getUTCDay()};
_.a.getUTCHours=function(){return this.date.getUTCHours()};
_.a.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.a.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.a.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.a.setHours=function(x){this.date.setHours(x)};
_.a.setMinutes=function(x){this.date.setMinutes(x)};
_.a.setSeconds=function(x){this.date.setSeconds(x)};
_.a.setMilliseconds=function(x){this.date.setMilliseconds(x)};
_.a.setUTCHours=function(x){this.date.setUTCHours(x)};
_.a.setUTCMinutes=function(x){this.date.setUTCMinutes(x)};
_.a.setUTCSeconds=function(x){this.date.setUTCSeconds(x)};
_.a.setUTCMilliseconds=function(x){this.date.setUTCMilliseconds(x)};
_.a.add=function(x){_.ej.prototype.add.call(this,x);x.hours&&this.setUTCHours(this.date.getUTCHours()+x.hours);x.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+x.minutes);x.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+x.seconds)};
_.a.JSC$9233_toIsoString=function(x){var G=_.ej.prototype.JSC$9233_toIsoString.call(this,x);return x?G+"T"+_.Je(this.getHours(),2)+":"+_.Je(this.getMinutes(),2)+":"+_.Je(this.getSeconds(),2):G+"T"+_.Je(this.getHours(),2)+_.Je(this.getMinutes(),2)+_.Je(this.getSeconds(),2)};
_.a.equals=function(x){return this.getTime()==x.getTime()};
_.a.toString=function(){return this.JSC$9233_toIsoString()};
_.a.clone=function(){var x=new k96(this.date);x.firstDayOfWeek_=this.firstDayOfWeek_;x.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return x};
_.DQ4=function(x){return _.EO({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:x}})};
K2x=new _.J("imageTileRenderer");var zIk=new _.J("adGridCardCollectionViewModel");var a3c=new _.J("carouselTitleViewModel");var oxO=new _.J("ctaCarouselItemViewModel");var yPj=new _.J("textFieldViewModel");_.l3i=new _.J("engagementPanelHeaderShowNavigationButtonCommand");var cP8=new _.J("hideEngagementPanelScrimAction");var TSc=new _.J("setActivePanelItemAction");var W2c=new _.J("showEngagementPanelScrimAction");var eIf=new _.J("updateEngagementPanelAction");var ZKY=new _.J("updateSearchInVideoResultsAction");var M6x=new _.J("transcriptCueGroupRenderer");var Q26=new _.J("transcriptCueRenderer");var pJ8=new _.J("transcriptFooterRenderer");var V6b=new _.J("engagementPanelAdSubtitleRenderer");var bKY=new _.J("videoDescriptionFantasySectionViewModel");var L24=new _.J("deleteClipEngagementPanelCommand");var BSc=new _.J("loopCommand");var rPO=new _.J("changeCreatorEndscreenVisibilityCommand");var s2c=new _.J("liveChatCallForQuestionsRenderer");var YS8=new _.J("updateTimedMarkersSyncObserverCommand");var Ia=new _.J("timelyActionViewModel");var mQf=new _.J("timelyActionsOverlayViewModel");var HK6=new _.J("repeatChapterCommand");var $QC=new _.J("watchPlayerOverflowMenuCommand");var F2Y=new _.J("compositeVideoOverlayRenderer");var CJ6=new _.J("sortFilterSubMenuRenderer");var I3b=new _.J("switchListItemViewModel");var j2Y=new _.J("inputComposerViewModel");var OKf=new _.J("transcriptEditSegmentCommand");var XJ6=new _.J("transcriptUpdateSegmentTextCommand");var APi=new _.J("transcriptSearchBoxRenderer");var UQk=new _.J("transcriptSegmentListRenderer");var RI4=new _.J("transcriptSegmentRenderer");_.SSO=new _.J("updateDateTextAction");var nxk=new _.J("updateTitleAction");var iKx=new _.J("updateViewershipAction");var gxf=new _.J("carouselLockupRenderer");var ulT=new _.J("expandableVideoDescriptionBodyRenderer");var dQY=new _.J("videoDescriptionYouchatSectionViewModel");_.OF=_.Gz("kevlar_watch_page_horizontal_margin",24);_.wJC=_.Gz("kevlar_watch_page_columns_top_padding",24);_.qSc=426+_.OF*2;_.XY=_.Gz("kevlar_watch_two_column_width_threshold",1E3);_.NS4=_.OF*2;_.vxC=_.Gz("kevlar_watch_secondary_width",402);_.JP4=_.Gz("kevlar_watch_max_player_width",1280);_.f3c=_.Gz("kevlar_watch_flexy_metadata_height",136);_.t6T=_.NS4+310+_.OF;_.kob=_.NS4+360+_.OF;var PJ4={PAUSE_CHAT:18};var Ex6;var hIC;var AY=function(){return _.n.apply(this,arguments)||this};
_.m(AY,_.n);AY.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
AY.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var x=_.Y(this.data.button,_.Ls);x&&(x.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.Nq.Object.defineProperties(AY,{template:{configurable:!0,enumerable:!0,get:function(){if(hIC===void 0){var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;Ex6===void 0&&(Ex6=document.createElement("template"));var K=Ex6;D.call(G,K.content.cloneNode(!0),x.content.firstChild);hIC=x}x=hIC;return x}}});
_.q([_.I(_.CF),_.N("design:type",Object)],AY.prototype,"ytLiveChatReduxBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],AY.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R({selectorArgs:["data.enabledEntityKey"],selector:a1x,observer:"onEnabledChange"}),_.N("design:type",Boolean)],AY.prototype,"enabled",void 0);_.q([_.R(),_.N("design:type",Object)],AY.prototype,"data",void 0);AY=_.q([_.HD({is:"yt-disableable-button-view-model",noInjection:!0})],AY);var x4j;var GTf;var D46=["transVert01","transVert02","transVert03"],KXY="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),UF=function(){var x=_.n.apply(this,arguments)||this;x.emojiManager=_.Ch;x.isDarkTheme=document.documentElement.hasAttribute("dark");x.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};x.reactionBuckets=[];x.noEmojiIdentifier="NO_EMOJI";return x};
_.m(UF,_.n);_.a=UF.prototype;_.a.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.a.desktopFountainEmojiSizePxChanged=function(){_.K7(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.a.createUserReactionAnimation=function(x){this.createEmojiAnimation(x,!0)};
_.a.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var x;((x=this.data)==null?0:x.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.cq("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.B5(this.emojiContainer.children)).forEach(function(G){G.remove()})};
_.a.detached=function(){this.cleanupFountain()};
_.a.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var x;this.reactionBuckets=_.YS.unsafeClone((x=this.emojiFountainData)==null?void 0:x.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.a.processEmojiBucket=function(x){var G=this;if(this.reactionBuckets&&!(x>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var D=this.reactionBuckets[x];this.generateEmojiAnimations(D);if(x<this.reactionBuckets.length-1){var K;if(D==null?0:(K=D.duration)==null?0:K.seconds)this.emojiBucketTimerId=setTimeout(function(){G.processEmojiBucket(x+1)},Number(D.duration.seconds)*1E3)}}};
_.a.generateEmojiAnimations=function(x){var G=this,D=this.getRandomEmojiIdFromBucketWithOverride(x);if(D&&D!==this.noEmojiIdentifier){var K=0;x.targetEps?(K=this.linearInterpolateBounded(1,20,100,12,x.emojiSizeIndex||0),this.createEmojiAnimation(D,!1,x.emojiAnimationMs,K),K=this.getEmojiDelayMsFromTargetEps(x.targetEps)):(this.createEmojiAnimation(D),K=this.getEmojiDelayMsFromDistribution(x.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){G.generateEmojiAnimations(x)},K)}};
_.a.getRandomEmojiIdFromBucketWithOverride=function(x){if(!(x&&x.reactionsData&&x.reactionsData.length&&x.totalReactions))return this.noEmojiIdentifier;for(var G=x.totalReactions,D=1,K=_.l(x.reactionsData),z=K.next();!z.done;z=K.next())z=z.value,(z.reactionWeightOverride||z.reactionWeightOverride===0)&&z.reactionCount&&(G-=z.reactionCount,D-=z.reactionWeightOverride);K=!0;D<0&&(K=!1,G=x.totalReactions,D=1);if(K&&D>0&&G===0)if(D===1){z=0;for(var y=_.l(x.reactionsData),c=y.next();!c.done;c=y.next())c=
c.value,c.reactionCount&&c.reactionCount>0&&z++;z=1/z;y=_.l(x.reactionsData);for(c=y.next();!c.done;c=y.next())c.value.reactionWeightOverride=z}else for(z=1/(1-D),y=_.l(x.reactionsData),c=y.next();!c.done;c=y.next())c=c.value,c.reactionWeightOverride&&(c.reactionWeightOverride*=z);z=Math.random();y=0;c=_.l(x.reactionsData);for(var W=c.next();!W.done;W=c.next())if(W=W.value,W.reactionCount&&(y=(W.reactionWeightOverride||W.reactionWeightOverride===0)&&K?y+W.reactionWeightOverride:y+D*W.reactionCount/
G,y>z&&(W.reactionCount--,x.totalReactions--,W=this.reactionItemToEmojiString(W),W!==this.noEmojiIdentifier)))return W;return this.noEmojiIdentifier};
_.a.reactionItemToEmojiString=function(x){if(x.unicodeEmojiId)return x.unicodeEmojiId;if(x.emoteId)return x.emoteId;if(x.videoReactionType)switch(x.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.a.createEmojiAnimation=function(x,G,D,K){G=G===void 0?!1:G;this.lastEmojiRequestedForTesting=x;var z=x.startsWith("yt-icons:"),y=_.$b(this.emojiManager,x);if(y||z){var c=document.createElement("emoji");c.classList.add("yt-emoji-fountain-view-model");c.classList.add(D46[Math.floor(Math.random()*D46.length)]);var W=document.createElement("div");W.classList.add("yt-emoji-fountain-view-model");W.classList.add("horizontal-container");W.classList.add(KXY[Math.floor(Math.random()*KXY.length)]);G?(D=document.createElement("div"),
D.classList.add("user-reaction-bubble"),D.classList.add("yt-emoji-fountain-view-model"),W.appendChild(D)):(D&&(c.style.animationDuration=D+"ms",W.style.animationDuration=D+"ms"),K&&(c.style.width=K+"px",c.style.height=K+"px"));z?(z=document.createElement("yt-icon"),z.polymerController.icon=x,K&&(z.style.width=K+"px",z.style.height=K+"px"),x=z):x=this.emojiManager.createEmoji(y,!1);x.classList.add("yt-emoji-fountain-view-model");W.appendChild(x);c.appendChild(W);this.emojiContainer.appendChild(c);
c.addEventListener("animationend",function(){c.remove()});
var e,Q;if((e=this.data)==null?0:(Q=e.loggingDirectives)==null?0:Q.trackingParams)G=G?_.BH(183501):_.BH(183500),owj(this.data.loggingDirectives.trackingParams,G),_.VFE(G);setTimeout(function(){c&&c.remove()},2E3)}};
_.a.getEmojiDelayMsFromDistribution=function(x){return Math.random()*(x||1)*1E3};
_.a.getEmojiDelayMsFromTargetEps=function(x){return Math.random()*2*(1/x)*1E3};
_.a.linearInterpolateBounded=function(x,G,D,K,z){z=Math.min(Math.max(z,x),D);return(G*(D-z)+K*(z-x))/(D-x)};
UF.prototype.onEmojiFountainDataEntityUpdate=UF.prototype.onEmojiFountainDataEntityUpdate;UF.prototype.desktopFountainEmojiSizePxChanged=UF.prototype.desktopFountainEmojiSizePxChanged;UF.prototype.isActiveChanged=UF.prototype.isActiveChanged;_.q([_.R(),_.N("design:type",_.Hx)],UF.prototype,"emojiManager",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],UF.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.CF),_.N("design:type",Object)],UF.prototype,"ytLiveChatReduxBehavior",void 0);
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],UF.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],UF.prototype,"data",void 0);_.q([_.R({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(x,G){return _.zm(x.entities,"emojiFountainDataEntity",G)}}),
_.N("design:type",Object)],UF.prototype,"emojiFountainData",void 0);_.q([_.R(),_.N("design:type",Boolean)],UF.prototype,"isActive",void 0);_.q([_.yf("isActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UF.prototype,"isActiveChanged",null);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],UF.prototype,"isDarkTheme",void 0);_.q([_.R(),_.N("design:type",String)],UF.prototype,"lastEmojiRequestedForTesting",void 0);
_.q([_.R({value:function(){return _.Gz("desktop_fountain_emoji_size_px",20)}}),
_.N("design:type",Number)],UF.prototype,"desktopFountainEmojiSizePx",void 0);_.q([_.yf("desktopFountainEmojiSizePx"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UF.prototype,"desktopFountainEmojiSizePxChanged",null);_.q([_.cD("#emoji-container"),_.N("design:type",HTMLElement)],UF.prototype,"emojiContainer",void 0);
_.q([_.yf("emojiFountainData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UF.prototype,"onEmojiFountainDataEntityUpdate",null);UF=_.q([_.HD({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],UF);
_.w(UF,"yt-emoji-fountain-view-model",function(){if(GTf===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;x4j===void 0&&(x4j=document.createElement("template"));var K=x4j;D.call(G,K.content.cloneNode(!0),x.content.firstChild);GTf=x}x=GTf;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var zbb;var atf;var Ra=function(){return _.n.apply(this,arguments)||this};
_.m(Ra,_.n);Ra.prototype.onChoiceChanged=function(){this.data&&_.K7(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
Ra.prototype.onChoiceChanged=Ra.prototype.onChoiceChanged;_.q([_.R(),_.N("design:type",Object)],Ra.prototype,"data",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ra.prototype,"onChoiceChanged",null);Ra=_.q([_.d({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],Ra);
_.w(Ra,"yt-live-chat-banner-poll-choice",function(){if(atf===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;zbb===void 0&&(zbb=document.createElement("template"));var K=zbb;D.call(G,K.content.cloneNode(!0),x.content.firstChild);atf=x}x=atf;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var oE6;var yHb;var Sa=function(){var x=_.n.apply(this,arguments)||this;x.modern=_.B("web_button_rework_with_live");x.small=!1;return x};
_.m(Sa,_.n);Sa.prototype.computeIsSmall=function(){var x;return((x=this.buttonOverrides)==null?void 0:x.size)==="S"};
Sa.prototype.computeId=function(){return this.data&&this.data.targetId};
_.q([_.I(_.IQ.YtLiveChatTooltipTargetingBehavior),_.N("design:type",Object)],Sa.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.q([_.R({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.N("design:type",String)],Sa.prototype,"id",void 0);_.q([_.R(),_.N("design:type",Object)],Sa.prototype,"buttonOverrides",void 0);_.q([_.R(),_.N("design:type",Object)],Sa.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Sa.prototype,"modern",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.N("design:type",Object)],Sa.prototype,"small",void 0);Sa=_.q([_.d({disableElementRegistration:!0,is:"yt-live-chat-button"})],Sa);
_.w(Sa,"yt-live-chat-button",function(){if(yHb===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;oE6===void 0&&(oE6=document.createElement("template"));var K=oE6;D.call(G,K.content.cloneNode(!0),x.content.firstChild);yHb=x}x=yHb;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var lt8;var cHj;var nD=function(){var x=_.n.apply(this,arguments)||this;x.inCollapsedBanner=!1;x.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};x.questionButtonOverrides={style:"mono",type:"filled"};return x};
_.m(nD,_.n);_.a=nD.prototype;_.a.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]]"}}}}}};
_.a.onContextMenuButtonClick=function(x){this.ytLiveChatItemBehavior.showContextMenu(x)};
_.a.onYtRendererstamperFinished=function(){this.menuButton=_.kA(this.hostElement).querySelector("#menu-button")};
_.a.dataChanged=function(){var x,G;if((G=_.Y((x=this.data)==null?void 0:x.overflowMenuButton,_.$V))==null?0:G.command)this.data.contextMenuEndpoint=_.Y(this.data.overflowMenuButton,_.$V).command};
_.a.onButtonClick=function(){var x,G=_.Y((x=this.data)==null?void 0:x.askQuestionButton,_.$V);if(G){if(G.trackingParams&&(x=_.V2(G.trackingParams))){var D=_.CC();D&&_.u0(D,x)}_.h$(this.hostElement,"innertube-command",G.command)}};
nD.prototype.onYtRendererstamperFinished=nD.prototype.onYtRendererstamperFinished;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],nD.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.CF),_.N("design:type",Object)],nD.prototype,"ytLiveChatReduxBehavior",void 0);_.q([_.I(_.IJ.YtLiveChatItemBehavior),_.N("design:type",_.jM)],nD.prototype,"ytLiveChatItemBehavior",void 0);_.q([_.R({observer:"dataChanged"}),_.N("design:type",Object)],nD.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],nD.prototype,"inCollapsedBanner",void 0);_.q([_.R(),_.N("design:type",Object)],nD.prototype,"buttonOverrides",void 0);_.q([_.R(),_.N("design:type",Object)],nD.prototype,"questionButtonOverrides",void 0);_.q([_.oe("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nD.prototype,"onYtRendererstamperFinished",null);
nD=_.q([_.d({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],nD);
_.w(nD,"yt-live-chat-call-for-questions-renderer",function(){if(cHj===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;lt8===void 0&&(lt8=document.createElement("template"));var K=lt8;D.call(G,K.content.cloneNode(!0),x.content.firstChild);cHj=x}x=cHj;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var TY6={};TY6.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 x=this;window.requestAnimationFrame(function(){x.restoreFocusNode_||(x.restoreFocusNode_=document.activeElement);var G=_.Jnh(x.hostElement);G.length&&G[G.length-1].focus()})},
isAttachedChanged_:function(x,G){x?this.focusChild_():G&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(x){this.hidden||_.gA(x).indexOf(this.hostElement)!==-1||(x.stopPropagation(),this.focusChild_())}};var WXO;var ebb;var gf=function(){return _.n.apply(this,arguments)||this};
_.m(gf,_.n);gf.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
gf.prototype.onClick=function(x){x.target!==this.confirmButton&&x.target!==this.cancelButton&&(this.hidden=!0)};
_.q([_.cD("#confirm_button"),_.N("design:type",Object)],gf.prototype,"confirmButton",void 0);_.q([_.cD("#cancel_button"),_.N("design:type",Object)],gf.prototype,"cancelButton",void 0);_.q([_.R(),_.N("design:type",ZbO)],gf.prototype,"data",void 0);_.q([_.R({value:!0,reflectToAttribute:!0}),_.N("design:type",Boolean)],gf.prototype,"hidden",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],gf.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.I(TY6.YtLiveChatDialogBehavior),_.N("design:type",Object)],gf.prototype,"ytLiveChatDialogBehavior",void 0);gf=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],gf);
var ZbO=_.w(gf,"yt-live-chat-dialog-renderer",function(){if(ebb===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;WXO===void 0&&(WXO=document.createElement("template"));var K=WXO;D.call(G,K.content.cloneNode(!0),x.content.firstChild);ebb=x}x=ebb;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var Mk4;var Qt8,p34=function(){if(Qt8!==void 0)return Qt8;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;Mk4===void 0&&(Mk4=document.createElement("template"));var K=Mk4;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return Qt8=x};var Vkc;var bbY;var ut=function(){var x=_.n.apply(this,arguments)||this;x.tooltip=null;x.data=null;x.id="";x.active=!1;x.icon="";x.disabled=!1;x.showTooltip=!1;x.useToggledActiveState=!0;x.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return x};
_.m(ut,_.n);_.a=ut.prototype;
_.a.dataChanged=function(){var x;((x=this.data)==null?0:x.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,_.D6)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var G;if((G=this.data)==null?0:G.disabled)this.disabled=!0};
_.a.computeId=function(x){return x};
_.a.computeIcon=function(x,G){if(!x)return"";if(this.useToggledActiveState)return"yt-icons:"+x.toLowerCase();var D,K;return G&&((D=this.data)==null?0:(K=D.toggledIcon)==null?0:K.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+x.toLowerCase()};
_.a.logPDGEntryPoint=function(){_.N2E(_.zU("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")};
_.a.immediatelyShowTooltip=function(){var x=_.kA(this.hostElement).querySelector("#tooltip");x.animationDelay=0;x.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};x.show()};
_.a.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.a.onClick=function(x){var G;((G=this.data)==null?0:G.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(),x.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.h$(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.a.computeShowTooltip=function(x,G){return!!(x&&x.tooltip&&G)};
_.a.maybeUpdateTooltipText=function(){var x=this,G;if((G=this.data)==null?0:G.tooltip){var D=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.D6)(x.tooltip).textContent=D},250)}};
_.a.handleLiveChatActions=function(x){var G=this;x.length&&(this.id!=="creator"&&this.id!=="product-picker"||x.forEach(function(D){(D=G.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",D))&&D.durationSec===D.fullDurationSec&&G.startBubble(G.colorFromDecimal(D.startBackgroundColor))}))};
_.a.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.a.startBubble=function(x){_.K7(this.hostElement,{"--yt-live-chat-monetization-button-glow":x});this.hostElement.setAttribute("bubble","")};
_.a.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.a.colorFromDecimal=function(x){typeof x==="string"&&(x=Number(x));return"rgba("+[x>>16&255,x>>8&255,x&255,(x>>24&255)/255].join()+")"};
ut.prototype.onAnimationEnd=ut.prototype.onAnimationEnd;ut.prototype.disabledChanged=ut.prototype.disabledChanged;ut.prototype.dataChanged=ut.prototype.dataChanged;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],ut.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],ut.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.IQ.YtLiveChatTooltipTargetingBehavior),_.N("design:type",Object)],ut.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],ut.prototype,"data",void 0);_.q([_.R({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.N("design:type",Object)],ut.prototype,"id",void 0);_.q([_.R({notify:!0,reflectToAttribute:!0}),_.N("design:type",Object)],ut.prototype,"active",void 0);
_.q([_.R({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.N("design:type",Object)],ut.prototype,"icon",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],ut.prototype,"disabled",void 0);_.q([_.R({computed:"computeShowTooltip(data, disabled)"}),_.N("design:type",Object)],ut.prototype,"showTooltip",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],ut.prototype,"useToggledActiveState",void 0);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ut.prototype,"dataChanged",null);_.q([_.yf("disabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ut.prototype,"disabledChanged",null);_.q([_.oe("animationend"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],ut.prototype,"onAnimationEnd",null);
ut=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],ut);
_.w(ut,"yt-live-chat-icon-toggle-button-renderer",function(){if(bbY===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;Vkc===void 0&&(Vkc=document.createElement("template"));var K=Vkc;D.call(G,K.content.cloneNode(!0),x.content.firstChild);bbY=x}x=bbY;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var LXb;var BYk;var df=function(){return _.n.apply(this,arguments)||this};
_.m(df,_.n);df.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.q([_.R(),_.N("design:type",Object)],df.prototype,"data",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],df.prototype,"ytRendererstamperBehavior",void 0);df=_.q([_.d({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],df);
_.w(df,"yt-live-chat-message-input-prompt-header-renderer",function(){if(BYk===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;LXb===void 0&&(LXb=document.createElement("template"));var K=LXb;D.call(G,K.content.cloneNode(!0),x.content.firstChild);BYk=x}x=BYk;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var rH6;var stC;var Y7k;var m4Y;var Hbf;var $4k;var wf=function(){return _.n.apply(this,arguments)||this};
_.m(wf,_.n);_.q([_.R(),_.N("design:type",Object)],wf.prototype,"data",void 0);wf=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],wf);
_.w(wf,"yt-live-chat-message-subtext-renderer",function(){if($4k===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;Hbf===void 0&&(Hbf=document.createElement("template"));var K=Hbf;D.call(G,K.content.cloneNode(!0),x.content.firstChild);$4k=x}x=$4k;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var qa=function(){var x=_.n.apply(this,arguments)||this;x.subtextOnBottom=!1;x.buttonOverrides={style:"mono",type:"tonal"};return x};
_.m(qa,_.n);qa.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"}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],qa.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],qa.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],qa.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],qa.prototype,"subtextOnBottom",void 0);_.q([_.R(),_.N("design:type",Object)],qa.prototype,"buttonOverrides",void 0);
qa=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],qa);
_.w(qa,"yt-live-chat-message-renderer",function(){if(m4Y===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;Y7k===void 0&&(Y7k=document.createElement("template"));var K=Y7k;D.call(G,K.content.cloneNode(!0),x.content.firstChild);m4Y=x}x=m4Y;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var FXi;var CW6;var Na=function(){var x=_.n.apply(this,arguments)||this;x.isRemovable=!1;x.hasPrefilledText=!1;x.isInputDirty=!1;x.overCharacterLimit=!1;x.underCharacterLimit=!1;x.showErrorMessage=!1;return x};
_.m(Na,_.n);_.a=Na.prototype;_.a.computeId=function(){return this.data.id};
_.a.computeInputData=function(){return this.data.inputData};
_.a.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.a.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.a.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.a.getLiveChatRichMessageInput=function(){return _.kA(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.a.clearInput=function(){_.kA(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.a.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.a.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.a.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.a.handleTextInputCharCountChanged=function(x){x=x.detail&&x.detail.characterCount;x!==void 0&&(this.characterCount=x,x!==0&&(this.isInputDirty=!0))};
_.a.onInputFocusOut=function(){this.isInputDirty=!0};
_.a.onClickCloseButton=function(){_.h$(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
Na.prototype.handleTextInputCharCountChanged=Na.prototype.handleTextInputCharCountChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Na.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Na.prototype,"data",void 0);_.q([_.R({computed:"computeId(data.id)"}),_.N("design:type",String)],Na.prototype,"id",void 0);_.q([_.R({computed:"computeInputData(data.inputData)"}),_.N("design:type",Object)],Na.prototype,"inputData",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.N("design:type",Object)],Na.prototype,"isRemovable",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.N("design:type",Object)],Na.prototype,"hasPrefilledText",void 0);_.q([_.R({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.N("design:type",Number)],Na.prototype,"charactersRemaining",void 0);
_.q([_.R(),_.N("design:type",Number)],Na.prototype,"characterCount",void 0);_.q([_.R(),_.N("design:type",Object)],Na.prototype,"isInputDirty",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.N("design:type",Object)],Na.prototype,"overCharacterLimit",void 0);_.q([_.R({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.N("design:type",Object)],Na.prototype,"underCharacterLimit",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.N("design:type",Object)],Na.prototype,"showErrorMessage",void 0);_.q([_.oe("yt-live-chat-text-input-field-renderer-character-count-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Na.prototype,"handleTextInputCharCountChanged",null);
Na=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],Na);
_.w(Na,"yt-live-chat-poll-editor-input",function(){if(CW6===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;FXi===void 0&&(FXi=document.createElement("template"));var K=FXi;D.call(G,K.content.cloneNode(!0),x.content.firstChild);CW6=x}x=CW6;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var Itk;var jtk;var Obc={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},vK=function(){var x=_.n.apply(this,arguments)||this;x.modern=_.B("web_button_rework_with_live");x.closeButtonOverrides={iconPosition:"icon-only"};x.startButtonOverrides={style:"mono",type:"filled"};x.addOptionButtonOverrides={style:"mono",type:"text"};return x};
_.m(vK,_.n);_.a=vK.prototype;
_.a.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"}}}}};
_.a.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var x;_.Y((x=this.data)==null?void 0:x.startButton,_.$V)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.a.computeId=function(){return this.data&&this.data.id||""};
_.a.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.a.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.a.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.a.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.a.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var x=0;x<this.pollEditorInfoWithDefaults.minPollOptions;x++)this.addPollOptionData()};
_.a.getIsValidPoll=function(){var x=this;if(!this.pollEditorInfoWithDefaults)return!1;var G=this.pollEditorInfoWithDefaults,D=G.minPollOptionChars,K=G.maxPollOptionChars,z=G.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>G.maxPollQuestionChars)return!1;G=_.kA(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(G).every(function(y,c){y=y.characterCount;!y&&z[c]&&(y=x.ytRendererBehavior.getSimpleString(z[c]).length);return y!==void 0&&y>=D&&y<=K})};
_.a.isValidPollChanged=function(){var x;_.Y((x=this.data)==null?void 0:x.startButton,_.$V)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.a.addPollOptionData=function(){var x=this.pollEditorInfoWithDefaults,G=x.maxPollOptionChars,D=x.optionPlaceholderText,K=x.customOptionPlaceholderText,z=x.pollOptionData;this.currentNumPollOptions>=x.maxPollOptions||(x={liveChatPollOptionInput:{inputData:{placeholder:K[this.currentNumPollOptions]||D,maxCharacterLimit:G},maxCharacterLimit:G,minCharacterLimit:x.minPollOptionChars,hasPrefilledText:!!K[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=x.minPollOptions}},z.charCountErrorText&&
(x.liveChatPollOptionInput.charCountErrorText=z.charCountErrorText),z.charsRemainingAltLabel&&(x.liveChatPollOptionInput.charsRemainingAltLabel=z.charsRemainingAltLabel),z.removeOptionAltText&&(x.liveChatPollOptionInput.removeOptionAltText=z.removeOptionAltText),this.push("pollOptionsData",x),z=Array.from(_.kA(_.kA(this.hostElement).querySelector("#poll-options")).children),z.forEach(function(y,c){y.polymerController.set("data.id",c)}),_.kA(z[z.length-1]).querySelector("#input").focus())};
_.a.getPollOptionInputValues=function(){var x=this,G=[],D=_.kA(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),K=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(D).forEach(function(z,y){var c=null;z=z.getLiveChatRichMessageInput();var W;(z==null?0:(W=z.textSegments)==null?0:W.length)?c=_.js(z):K[y]&&(c=x.formattedStringToLiveChatRichMessageInput(K[y]));G.push(c)});
return G};
_.a.requestCreateAndStartPoll=function(x){var G=this.getPollOptionInputValues();if(!G.some(function(K){return!K})){G={optionText:G};
var D=_.kA(_.kA(this.hostElement).querySelector("#poll-question")).firstChild;D&&D.liveChatRichMessageInput&&(G.questionText=_.js(D.liveChatRichMessageInput));_.KW(this.hostElement,[x,G])}};
_.a.selectedChanged=function(){if(this.selected){var x=_.kA(_.kA(this.hostElement).querySelector("#start-button")).firstElementChild;if(x){var G;(G=_.kA(x).querySelector("#button")||_.Pi(x).querySelector("button"))==null||G.focus()}}};
_.a.handleTextInputChanged=function(x){var G;((G=x.target)==null?void 0:G.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=x.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.a.handleStartButtonAction=function(x){x.detail.actionName==="yt-service-request"&&(x.stopPropagation(),(x=x.detail.args[1])&&this.requestCreateAndStartPoll(x))};
_.a.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.a.handleServiceRequestCompleted=function(x){this.createPollRequestInFlight=!1;(x=x.detail&&x.detail.data)&&x.success&&(_.h$(this.hostElement,"picker-cancelled"),_.xO(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.a.onCloseClick=function(){_.h$(this.hostElement,"picker-cancelled");_.xO(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.a.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.a.handlePollEditorInputClosed=function(x){var G=this.pollOptionsData.findIndex(function(D){return D.liveChatPollOptionInput.id===x.detail.id});
this.splice("pollOptionsData",G,1);this.isValidPoll=this.getIsValidPoll()};
_.a.onPickerCancelled=function(){this.reset()};
_.a.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var x=_.kA(_.kA(this.hostElement).querySelector("#poll-question")).firstChild;x&&x.setLiveChatRichMessageInput(null);if(x=_.kA(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){x=_.l(Array.from(x));for(var G=x.next();!G.done;G=x.next())G.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.a.formattedStringToLiveChatRichMessageInput=function(x){return x.simpleText?{text_segments:[x.simpleText]}:{text_segments:x.runs}};
_.Nq.Object.defineProperties(vK.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(Obc,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
vK.prototype.onPickerCancelled=vK.prototype.onPickerCancelled;vK.prototype.handlePollEditorInputClosed=vK.prototype.handlePollEditorInputClosed;vK.prototype.handleServiceRequestCompleted=vK.prototype.handleServiceRequestCompleted;vK.prototype.handleServiceRequestSent=vK.prototype.handleServiceRequestSent;vK.prototype.handleTextInputChanged=vK.prototype.handleTextInputChanged;vK.prototype.selectedChanged=vK.prototype.selectedChanged;vK.prototype.isValidPollChanged=vK.prototype.isValidPollChanged;
vK.prototype.shouldInitializePollChanged=vK.prototype.shouldInitializePollChanged;vK.prototype.dataChanged=vK.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],vK.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],vK.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],vK.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],vK.prototype,"modern",void 0);
_.q([_.R(),_.N("design:type",Object)],vK.prototype,"closeButtonOverrides",void 0);_.q([_.R(),_.N("design:type",Object)],vK.prototype,"startButtonOverrides",void 0);_.q([_.R(),_.N("design:type",Object)],vK.prototype,"addOptionButtonOverrides",void 0);_.q([_.R({computed:"computeId(data.id)",reflectToAttribute:!0}),_.N("design:type",String)],vK.prototype,"id",void 0);_.q([_.R({value:function(){return[]}}),
_.N("design:type",Array)],vK.prototype,"pollOptionsData",void 0);_.q([_.U("pollEditorInfoWithDefaults"),_.N("design:type",Object),_.N("design:paramtypes",[])],vK.prototype,"pollQuestionData",null);_.q([_.R({value:0}),_.N("design:type",Number)],vK.prototype,"pollQuestionCharacterCount",void 0);_.q([_.U("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.N("design:type",Object),_.N("design:paramtypes",[])],vK.prototype,"pollQuestionCharactersRemaining",null);
_.q([_.R({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.N("design:type",Boolean)],vK.prototype,"overQuestionCharacterLimit",void 0);_.q([_.U("data.pollEditorInfo"),_.N("design:type",Object),_.N("design:paramtypes",[])],vK.prototype,"pollEditorInfoWithDefaults",null);_.q([_.R({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.N("design:type",Number)],vK.prototype,"currentNumPollOptions",void 0);
_.q([_.R({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.N("design:type",Boolean)],vK.prototype,"hasMaxNumPollOptions",void 0);_.q([_.U("pollEditorInfoWithDefaults","pollOptionsData"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],vK.prototype,"shouldInitializePoll",null);_.q([_.R(),_.N("design:type",Object)],vK.prototype,"isValidPoll",void 0);
_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],vK.prototype,"createPollRequestInFlight",void 0);_.q([_.R(),_.N("design:type",Object)],vK.prototype,"selected",void 0);_.q([_.R({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.N("design:type",Boolean)],vK.prototype,"showQuestionErrorMessage",void 0);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vK.prototype,"dataChanged",null);_.q([_.yf("shouldInitializePoll"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vK.prototype,"shouldInitializePollChanged",null);_.q([_.yf("isValidPoll"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vK.prototype,"isValidPollChanged",null);
_.q([_.yf("selected"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vK.prototype,"selectedChanged",null);_.q([_.oe("yt-live-chat-text-input-field-renderer-character-count-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],vK.prototype,"handleTextInputChanged",null);
_.q([_.oe("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vK.prototype,"handleServiceRequestSent",null);_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],vK.prototype,"handleServiceRequestCompleted",null);
_.q([_.oe("yt-live-chat-poll-editor-input-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],vK.prototype,"handlePollEditorInputClosed",null);_.q([_.oe("picker-cancelled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vK.prototype,"onPickerCancelled",null);vK=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],vK);
_.w(vK,"yt-live-chat-poll-editor-panel-renderer",function(){if(jtk===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;Itk===void 0&&(Itk=document.createElement("template"));var K=Itk;D.call(G,K.content.cloneNode(!0),x.content.firstChild);jtk=x}x=jtk;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var X3f;var AHf;var JY=function(){return _.n.apply(this,arguments)||this};
_.m(JY,_.n);JY.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
JY.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Nq.Object.defineProperties(JY.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var x,G;return(x=this.data)==null?void 0:(G=x.title)==null?void 0:G.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var x;return _.jn((x=this.data)==null?void 0:x.onTapCommand)}}});
_.q([_.I(_.l9.YtEndpointBehavior),_.N("design:type",Object)],JY.prototype,"ytEndpointBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],JY.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],JY.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],JY.prototype,"itemId",null);
_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],JY.prototype,"hasPromotion",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],JY.prototype,"innertubeCommand",null);JY=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],JY);
_.w(JY,"yt-live-chat-product-picker-panel-item-view-model",function(){if(AHf===void 0){var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;X3f===void 0&&(X3f=document.createElement("template"));var K=X3f;D.call(G,K.content.cloneNode(!0),x.content.firstChild);AHf=x}x=AHf;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var U4C;var RbC;var fD=function(){var x=_.n.apply(this,arguments)||this;x.id="product-picker";x.selected=!1;x.closeButtonId="close-button";x.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return x};
_.m(fD,_.n);_.a=fD.prototype;_.a.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.a.observeSelected=function(){this.selected&&this.hostElement.focus();var x=_.kA(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");x.length&&x[0].focus()};
_.a.onCloseBuyFlow=function(){_.h$(this.hostElement,"picker-cancelled")};
_.a.onCloseClick=function(){_.h$(this.hostElement,"picker-cancelled");var x;((x=this.data)==null?0:x.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.Y(this.data.closeButton,_.Ls))};
_.a.onCloseEngageWithAudienceEditorPanels=function(){_.h$(this.hostElement,"picker-cancelled")};
fD.prototype.observeSelected=fD.prototype.observeSelected;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],fD.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],fD.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],fD.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],fD.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],fD.prototype,"id",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],fD.prototype,"selected",void 0);_.q([_.R(),_.N("design:type",Object)],fD.prototype,"closeButtonId",void 0);_.q([_.yf("selected"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fD.prototype,"observeSelected",null);
fD=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],fD);
_.w(fD,"yt-live-chat-product-picker-panel-view-model",function(){if(RbC===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;U4C===void 0&&(U4C=document.createElement("template"));var K=U4C;D.call(G,K.content.cloneNode(!0),x.content.firstChild);RbC=x}x=RbC;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var S7j;var nEc;var tY=function(){var x=_.n.apply(this,arguments)||this;x.iconId="";x.icon="";x.disabled=!1;x.systemIcons=_.B("kevlar_system_icons");return x};
_.m(tY,_.n);_.a=tY.prototype;_.a.attached=function(){_.B("live_chat_compute_product_button_aria_label")||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1"))};
_.a.computeIconId=function(x){return x&&x.icon&&x.icon.iconType?x.icon.iconType.toLowerCase():""};
_.a.computeIcon=function(x){return x&&x.icon&&x.icon.iconType?(x=x.icon.iconType.toLowerCase(),(x.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+x):""};
_.a.computeDisabled=function(x){return!!x};
_.a.computeCommand=function(x,G){return G?void 0:x};
_.a.computeTooltip=function(x,G){return G&&x?x:""};
_.a.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Nq.Object.defineProperties(tY.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){if(!_.B("live_chat_compute_product_button_aria_label"))return"";var x,G,D;if((x=this.data)==null?0:(G=x.text)==null?0:(D=G.runs)==null?0:D.length)return this.data.text.runs[0].text||"";var K,z;return((K=this.data)==null?0:(z=K.text)==null?0:z.simpleText)?this.data.text.simpleText:""}}});
_.q([_.I(_.l9.YtEndpointBehavior),_.N("design:type",Object)],tY.prototype,"ytEndpointBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],tY.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],tY.prototype,"data",void 0);_.q([_.R({computed:"computeIconId(data)",reflectToAttribute:!0}),_.N("design:type",Object)],tY.prototype,"iconId",void 0);
_.q([_.R({computed:"computeIcon(data)",reflectToAttribute:!0}),_.N("design:type",Object)],tY.prototype,"icon",void 0);_.q([_.R({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.N("design:type",Object)],tY.prototype,"disabled",void 0);_.q([_.R({computed:"computeCommand(data.command, disabled)"}),_.N("design:type",Object)],tY.prototype,"command",void 0);_.q([_.R({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.N("design:type",String)],tY.prototype,"tooltip",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],tY.prototype,"systemIcons",void 0);_.q([_.U("data.text"),_.R(),_.N("design:type",String),_.N("design:paramtypes",[])],tY.prototype,"ariaLabel",null);tY=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],tY);
_.w(tY,"yt-live-chat-product-button-renderer",function(){if(nEc===void 0){var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" aria-label$="[[ariaLabel]]" disabled$="[[disabled]]" role="menuitem" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;S7j===void 0&&(S7j=document.createElement("template"));var K=S7j;D.call(G,K.content.cloneNode(!0),x.content.firstChild);nEc=x}x=nEc;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var ibx;var gEc;var kQ=function(){var x=_.n.apply(this,arguments)||this;x.selected=!1;x.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels","yt-signal-action-close-engage-with-audience-editor-panel":"onCloseEngageWithAudienceEditorPanels"};return x};
_.m(kQ,_.n);_.a=kQ.prototype;_.a.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"}}}};
_.a.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.a.computeId=function(x){return x.id||""};
_.a.onCloseClick=function(){_.h$(this.hostElement,"picker-cancelled")};
_.a.observeSelected=function(){this.selected&&this.hostElement.focus();var x=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");x.length&&x[0].focus()};
_.a.onCloseBuyFlow=function(){_.h$(this.hostElement,"picker-cancelled")};
_.a.onCloseEngageWithAudienceEditorPanels=function(){_.h$(this.hostElement,"picker-cancelled")};
kQ.prototype.observeSelected=kQ.prototype.observeSelected;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],kQ.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],kQ.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],kQ.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],kQ.prototype,"data",void 0);
_.q([_.R({computed:"computeId(data)",reflectToAttribute:!0}),_.N("design:type",String)],kQ.prototype,"id",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],kQ.prototype,"selected",void 0);_.q([_.yf("selected"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kQ.prototype,"observeSelected",null);kQ=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],kQ);
_.w(kQ,"yt-live-chat-product-picker-renderer",function(){if(gEc===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;ibx===void 0&&(ibx=document.createElement("template"));var K=ibx;D.call(G,K.content.cloneNode(!0),x.content.firstChild);gEc=x}x=gEc;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var uN8;var d4O;var w3k;var q78;var PK=function(){return _.n.apply(this,arguments)||this};
_.m(PK,_.n);PK.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()};
PK.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
PK.prototype.created=function(){this.ids={background:_.YZ(),maskOne:_.YZ(),maskTwo:_.YZ(),gradient:_.YZ(),largeBackground:_.YZ(),largeGradientOne:_.YZ(),largeGradientTwo:_.YZ(),largeGradientPath:_.YZ()}};
PK.prototype.maybeLoadAnimationBackground=PK.prototype.maybeLoadAnimationBackground;_.q([_.R({value:!1}),_.N("design:type",Boolean)],PK.prototype,"useLargeBackground",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],PK.prototype,"useAnimationBackground",void 0);_.q([_.R({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.N("design:type",Boolean)],PK.prototype,"useRegularBackground",void 0);
_.q([_.R(),_.N("design:type",Object)],PK.prototype,"ids",void 0);_.q([_.R(),_.N("design:type",Object)],PK.prototype,"lottieAnimation",void 0);_.q([_.cD("#animation-background"),_.N("design:type",HTMLDivElement)],PK.prototype,"animationBackground",void 0);_.q([_.yf("useAnimationBackground"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],PK.prototype,"maybeLoadAnimationBackground",null);
PK=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],PK);
_.w(PK,"yt-live-interactivity-component-background",function(){if(q78===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;w3k===void 0&&(w3k=document.createElement("template"));var K=w3k;D.call(G,K.content.cloneNode(!0),x.content.firstChild);q78=x}x=q78;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var EF=function(){var x=_.n.apply(this,arguments)||this;x.characterCount=0;x.showInputErrorMessage=!1;x.startQnaRequestInFlight=!1;x.modern=_.B("web_button_rework_with_live");x.buttonOverrides={style:"mono",type:"filled"};x.closeButtonOverrides={iconPosition:"icon-only"};x.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return x};
_.m(EF,_.n);_.a=EF.prototype;
_.a.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]]"}}}}}};
_.a.onCharacterCountChanged=function(x){var G,D,K,z,y=(D=_.Y(this==null?void 0:(G=this.data)==null?void 0:G.creatorCallForQuestions,s2c))==null?void 0:(K=D.inputField)==null?void 0:(z=K.liveChatTextInputFieldRenderer)==null?void 0:z.maxCharacterLimit,c,W;y!=null&&(x==null?void 0:(c=x.detail)==null?void 0:c.characterCount)!=null&&_.Y(this==null?void 0:(W=this.data)==null?void 0:W.startButton,_.$V)&&(G=x.detail.characterCount>y,this.set("data.startButton.buttonRenderer.isDisabled",x.detail.characterCount===
0||G),this.showInputErrorMessage=G)};
_.a.onCloseClick=function(){_.h$(this.hostElement,"picker-cancelled");_.xO(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.a.onPickerCancelled=function(){var x=_.kA(this.hostElement).querySelector("#qna-creator-text-input-field");x&&x.setLiveChatRichMessageInput(null)};
_.a.handleOpenQnaStartPanel=function(){var x=_.kA(this.hostElement).querySelector("#qna-creator-text-input-field");x&&x.focus()};
_.a.handleStartButtonAction=function(x){var G=this;if(x.detail.actionName==="yt-service-request"&&(x.stopPropagation(),x=x.detail.args[1])){var D=_.kA(this.hostElement).querySelector("#qna-creator-text-input-field"),K;(D==null?0:(K=D.liveChatRichMessageInput)==null?0:K.textSegments)&&D.liveChatRichMessageInput.textSegments.length!==0&&(K={rich_message:_.js(D.liveChatRichMessageInput)},_.KW(this.hostElement,[x,K]).then(function(){_.h$(G.hostElement,"picker-cancelled")}))}};
_.a.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.a.handleServiceRequestCompleted=function(x){var G;x=x==null?void 0:(G=x.detail)==null?void 0:G.data;(x==null?0:x.actions)&&x.actions.length>0?this.startQnaRequestInFlight=!1:_.xO(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.a.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
EF.prototype.handleServiceRequestError=EF.prototype.handleServiceRequestError;EF.prototype.handleServiceRequestCompleted=EF.prototype.handleServiceRequestCompleted;EF.prototype.handleServiceRequestSent=EF.prototype.handleServiceRequestSent;EF.prototype.onPickerCancelled=EF.prototype.onPickerCancelled;EF.prototype.onCharacterCountChanged=EF.prototype.onCharacterCountChanged;_.q([_.R(),_.N("design:type",Object)],EF.prototype,"characterCount",void 0);
_.q([_.R(),_.N("design:type",Object)],EF.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],EF.prototype,"showInputErrorMessage",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],EF.prototype,"startQnaRequestInFlight",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],EF.prototype,"modern",void 0);_.q([_.R(),_.N("design:type",Object)],EF.prototype,"buttonOverrides",void 0);
_.q([_.R(),_.N("design:type",Object)],EF.prototype,"closeButtonOverrides",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],EF.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.CF),_.N("design:type",Object)],EF.prototype,"ytLiveChatReduxBehavior",void 0);_.q([_.I(_.IJ.YtLiveChatItemBehavior),_.N("design:type",_.jM)],EF.prototype,"ytLiveChatItemBehavior",void 0);
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],EF.prototype,"ytActionHandlerBehavior",void 0);_.q([_.oe("yt-live-chat-text-input-field-renderer-character-count-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],EF.prototype,"onCharacterCountChanged",null);_.q([_.oe("picker-cancelled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EF.prototype,"onPickerCancelled",null);
_.q([_.oe("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EF.prototype,"handleServiceRequestSent",null);_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],EF.prototype,"handleServiceRequestCompleted",null);
_.q([_.oe("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],EF.prototype,"handleServiceRequestError",null);EF=_.q([_.d({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],EF);
_.w(EF,"yt-live-chat-qna-start-panel-renderer",function(){if(d4O===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;uN8===void 0&&(uN8=document.createElement("template"));var K=uN8;D.call(G,K.content.cloneNode(!0),x.content.firstChild);d4O=x}x=d4O;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var NYi;var vEO;var hY=function(){return _.n.apply(this,arguments)||this};
_.m(hY,_.n);hY.prototype.dismiss=function(){_.h$(this.hostElement,"yt-live-chat-error-message-dismiss")};
hY.prototype.edit=function(){_.h$(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.q([_.R(),_.N("design:type",Object)],hY.prototype,"data",void 0);hY=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],hY);
_.w(hY,"yt-live-chat-text-actions-error-message-renderer",function(){if(vEO===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;NYi===void 0&&(NYi=document.createElement("template"));var K=NYi;D.call(G,K.content.cloneNode(!0),x.content.firstChild);vEO=x}x=vEO;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var JHb;var ftY;var tkc;var kT8;var xs=function(){var x=_.n.apply(this,arguments)||this;x.isDarkTheme=document.documentElement.hasAttribute("dark");x.newnessDotEligible=!1;return x};
_.m(xs,_.n);xs.prototype.sendReaction=function(){var x,G,D=((x=this.data)==null?void 0:x.emojiId)||((G=this.data)==null?void 0:G.emoteId),K;D&&((K=this.data)==null?0:K.shouldTriggerAnimation)&&_.xO(this.hostElement,"yt-create-user-reaction-animation",[D]);var z;(x=_.jn((z=this.data)==null?void 0:z.onTap))&&_.lb(x,this.hostElement);this.showNewnessDot&&_.xO(this.hostElement,"yt-hide-newness-dot")};
xs.prototype.onClick=function(x){(!x||x.clientX||x.clientY)&&this.sendReaction()};
xs.prototype.onKeyDown=function(x){x.key!=="Enter"&&x.key!==" "||x.repeat||this.sendReaction()};
_.Nq.Object.defineProperties(xs.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var x,G;return!!(((x=this.data)==null?0:x.emojiId)||((G=this.data)==null?0:G.emoteId))}}});
_.q([_.R(),_.N("design:type",Object)],xs.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],xs.prototype,"isDarkTheme",void 0);_.q([_.R(),_.N("design:type",Object)],xs.prototype,"newnessDotEligible",void 0);_.q([_.U("data.maybeShowNewnessDot"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],xs.prototype,"showNewnessDot",null);_.q([_.U("data.emojiId","data.emoteId"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],xs.prototype,"useYtImage",null);
xs=_.q([_.HD({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],xs);
_.w(xs,"yt-reaction-control-panel-button-view-model",function(){if(kT8===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;tkc===void 0&&(tkc=document.createElement("template"));var K=tkc;D.call(G,K.content.cloneNode(!0),x.content.firstChild);kT8=x}x=kT8;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var PWc;var EEY;var Gw=function(){var x=_.n.apply(this,arguments)||this;x.reactionControlPanelExpanded=!1;x.isDarkTheme=document.documentElement.hasAttribute("dark");x.newnessDotEligible=!1;return x};
_.m(Gw,_.n);_.a=Gw.prototype;_.a.expandedButtonsChanged=function(){var x,G;_.K7(this.hostElement,{"--expanded-buttons-height":((G=(x=this.expandedButtonsData)==null?void 0:x.length)!=null?G:0)*36+"px"})};
_.a.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}}};
_.a.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.a.onMouseLeave=function(){var x=this;this.collapseTimer=setTimeout(function(){x.reactionControlPanelExpanded=!1},500)};
_.a.onFocusIn=function(){this.onMouseEnter()};
_.a.onFocusOut=function(){this.onMouseLeave()};
_.a.onCollapsedButtonFocusIn=function(){var x=this;setTimeout(function(){var G;(G=x.expandedButtons.querySelector("button"))==null||G.focus()},100)};
_.a.onCollapsedButtonFocusOut=function(x){x.stopPropagation()};
_.Nq.Object.defineProperties(Gw.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var x,G;return _.YS.unsafeClone((x=this.liveReactionsData)==null?void 0:x.emojiButtonData)||((G=this.data)==null?void 0:G.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var x;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((x=this.data)==null||!x.maybeShowNewnessDot)}}});
Gw.prototype.expandedButtonsChanged=Gw.prototype.expandedButtonsChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Gw.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Gw.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.CF),_.N("design:type",Object)],Gw.prototype,"ytLiveChatReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Gw.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Gw.prototype,"reactionControlPanelExpanded",void 0);_.q([_.R({selectorArgs:["data.liveReactionsDataEntityKey"],selector:zdx}),_.N("design:type",Object)],Gw.prototype,"liveReactionsData",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Gw.prototype,"isDarkTheme",void 0);_.q([_.R(),_.N("design:type",Object)],Gw.prototype,"newnessDotEligible",void 0);
_.q([_.U("liveReactionsData","data.expandedButtons"),_.N("design:type",Object),_.N("design:paramtypes",[])],Gw.prototype,"expandedButtonsData",null);_.q([_.U("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.R({reflectToAttribute:!0}),_.N("design:type",Object),_.N("design:paramtypes",[])],Gw.prototype,"showNewnessDot",null);_.q([_.cD("#expanded-buttons"),_.N("design:type",HTMLElement)],Gw.prototype,"expandedButtons",void 0);
_.q([_.yf("expandedButtonsData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Gw.prototype,"expandedButtonsChanged",null);Gw=_.q([_.HD({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],Gw);
_.w(Gw,"yt-reaction-control-panel-view-model",function(){if(EEY===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;PWc===void 0&&(PWc=document.createElement("template"));var K=PWc;D.call(G,K.content.cloneNode(!0),x.content.firstChild);EEY=x}x=EEY;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var D8=new _.Xj("yt-live-chat"),hbj=Date.parse("2024-7-24"),KQ=function(){var x=_.n.apply(this,arguments)||this;x.emojiManager=_.Ch;x.newnessDotEligible=!1;x.newnessDotImpressionCounted=!1;x.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return x};
_.m(KQ,_.n);_.a=KQ.prototype;_.a.emojiCustomizationEnabledChanged=function(){var x;((x=this.data)==null?0:x.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((x=D8.getCreationTime("emoji-customization-count"))&&x<hbj&&D8.set("emoji-customization-count","0"),x=Number(D8.get("emoji-customization-count"))||0,x<3&&(this.newnessDotEligible=!0,D8.set("emoji-customization-count",(x+1).toString())),this.newnessDotImpressionCounted=!0)};
_.a.hideNewnessDot=function(){this.newnessDotEligible=!1;D8.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.a.handleReactionsMute=function(x){var G=_.CC(),D=_.BH(206221),K={checkboxData:{state:x?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};G&&_.u0(G,D,K);this.reactionsMuted=x};
_.a.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.a.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}}};
_.Nq.Object.defineProperties(KQ.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var x;return(!((x=this.liveReactionsData)==null||!x.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
KQ.prototype.liveReactionsSettingChanged=KQ.prototype.liveReactionsSettingChanged;KQ.prototype.emojiCustomizationEnabledChanged=KQ.prototype.emojiCustomizationEnabledChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],KQ.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],KQ.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.CF),_.N("design:type",Object)],KQ.prototype,"ytLiveChatReduxBehavior",void 0);
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],KQ.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],KQ.prototype,"data",void 0);_.q([_.R(),_.N("design:type",_.Hx)],KQ.prototype,"emojiManager",void 0);_.q([_.R(),_.N("design:type",Object)],KQ.prototype,"newnessDotEligible",void 0);_.q([_.R(),_.N("design:type",Object)],KQ.prototype,"newnessDotImpressionCounted",void 0);
_.q([_.R({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:a1x}),_.N("design:type",Boolean)],KQ.prototype,"liveReactionsSetting",void 0);_.q([_.R({selectorArgs:["data.liveReactionsDataEntityKey"],selector:zdx}),_.N("design:type",Object)],KQ.prototype,"liveReactionsData",void 0);_.q([_.R({value:function(){var x=_.B("enable_lwe_web_mute"),G=D8.get("allow-reactions");return G===void 0?!1:!G&&x}}),
_.N("design:type",Boolean)],KQ.prototype,"reactionsMuted",void 0);_.q([_.R({reflectToAttribute:!0}),_.U("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],KQ.prototype,"liveReactionsEnabled",null);_.q([_.yf("data.emojiCustomizationEnabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],KQ.prototype,"emojiCustomizationEnabledChanged",null);
_.q([_.yf("liveReactionsEnabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],KQ.prototype,"liveReactionsSettingChanged",null);KQ=_.q([_.HD({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],KQ);
_.w(KQ,"yt-reaction-control-panel-overlay-view-model",function(){if(ftY===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;JHb===void 0&&(JHb=document.createElement("template"));var K=JHb;D.call(G,K.content.cloneNode(!0),x.content.firstChild);ftY=x}x=ftY;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var xwi={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(x){var G=this.$.pickers.selected;if(G){_.kA(this.hostElement).removeAttribute(G+"-open");var D="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(D="#picker-buttons",G==="emoji"&&_.kA(this.hostElement).querySelector("#emoji-picker-button")&&(D="#emoji-picker-button"));if(D=_.kA(this.hostElement).querySelector(D).querySelector("#"+G))D.active=!1}D=x;G==x&&(D=null);G!=
x&&_.kA(this.hostElement).setAttribute(x+"-open","");this.$.pickers.selected=D;_.xO(this.hostElement,"yt-live-chat-picker-changed",[D])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var zw=function(){var x=_.n.apply(this,arguments)||this;x.numSentMessages=0;x.timeoutDurationMs=0;x.timeoutMs=0;x.lastTimeoutTimeMs=0;x.pendingMessageId="";x.hasFiredInitialFocusActions=!1;x.isBeforeFocusEnabled=!0;x.id="";x.characterCount=0;x.maxCharacterLimit=0;x.remainingCharacterCount=0;x.inputExpanded=!1;x.buttonOverrides={iconPosition:"icon-only"};x.inReplyPanel=!1;x.countdownRatio=0;x.isTooltipVisible=!1;x.tooltipTimeout=1E4;x.systemIcons=_.B("kevlar_system_icons");x.tallerEmojiPicker=_.B("live_chat_taller_emoji_picker");
x.blockSendMessageWithCountdown=!_.B("live_chat_enable_send_button_in_slow_mode");x.sendReplyMessageInFlight=!1;x.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"};x.onResize=function(){x.maybeToggleCharacterCount()};
return x};
_.m(zw,_.n);_.a=zw.prototype;
_.a.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"}}}};
_.a.attached=function(){window.addEventListener("resize",this.onResize)};
_.a.detached=function(){window.removeEventListener("resize",this.onResize)};
_.a.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.a.sendMessage=function(){var x=this,G,D,K,z;return _.T(function(y){if(x.sendDisabled)return y.return();x.isTooltipVisible&&_.xO(x.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(x.data.sendButton&&x.data.sendButton.buttonRenderer){x.input.completeEmojis();G=x.data.sendButton.buttonRenderer.serviceEndpoint;if(!G)return y.return();K=((D=_.Y(G,_.w_Z))==null?void 0:D.clientIdPrefix)||"";z={client_message_id:K+String(x.numSentMessages++),rich_message:_.js(x.input.liveChatRichMessageInput)};
x.pendingMessageId=z.client_message_id;x.inReplyPanel&&(x.sendReplyMessageInFlight=!0);_.KW(x.hostElement,[G,z]);x.input.setLiveChatRichMessageInput(null)}_.c5(y)})};
_.a.handleSendButtonAction=function(x){x.detail.actionName==="yt-service-request"&&(x.stopPropagation(),this.sendMessage())};
_.a.onSendCompleted=function(x,G){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(x=this.get("timeoutDurationUsec",G.data))&&this.handleTimeout(Number(x)/1E3);this.errorMessage=this.get("errorMessage",G.data);this.pendingMessageId=""};
_.a.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.xO(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.a.handlePickerButtonToggle=function(x){x=x.detail.targetId;this.ytPickerBehavior.togglePicker_(x);if(x==="emoji")this.input.focus();else if(x==="qna-start-panel"){var G,D;(G=_.kA(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(D=G.querySelector("#qna-creator-text-input-field"))==null||D.focus()}};
_.a.onComponentReplaced=function(x){var G,D;x.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((G=x.replacement.liveChatMessageInputRenderer)==null?0:(D=G.headerRenderer)==null?0:D.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.a.onEmojiSelect=function(x){this.input.focus();this.input.insertEmoji(x.detail)};
_.a.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.a.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.xO(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.xO(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.a.onOpenPopupAction=function(x,G){var D=this;G===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.xO(D.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.a.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.a.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.a.focusChanged=function(){this.maybeToggleCharacterCount()};
_.a.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var x=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",x>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.a.computeId=function(){return this.data&&this.data.targetId||""};
_.a.computeSendDisabled=function(x,G,D,K){x=!!(this.blockSendMessageWithCountdown&&D||!x||G&&x>G||K);(G=_.kA(this.hostElement).querySelector("#send-button"))&&G.children.length&&(G.children[0].disabled=x);return x};
_.a.handleTimeout=function(x){this.timeoutDurationMs=this.timeoutMs=x;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.a.updateTimeout=function(x){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(x-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=x,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.a.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.a.onErrorMessageEdit=function(x){this.input.setLiveChatRichMessageInput(x.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.a.errorMessageChanged=function(){var x=this;_.Xw(function(){_.xO(x.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.a.computeAuthorNameColor=function(x){var G;if(_.B("live_chat_author_name_color_usernames")&&(x==null?0:(G=x.authorName)==null?0:G.simpleText))return _.yJE(_.lZQ(x.authorName.simpleText));if(_.B("live_chat_seed_color_usernames")&&(x==null?0:x.authorSeedColorArgb))return _.yJE(_.Kz(x.authorSeedColorArgb));if(_.B("live_chat_colored_usernames"))return"#cc0000";var D;return _.B("live_chat_simple_color_usernames")&&(x==null?0:(D=x.authorName)==null?0:D.simpleText)&&(x==null?0:x.authorUsernameColorLight)&&
(x==null?0:x.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.Kz(x.authorUsernameColorDark):_.Kz(x.authorUsernameColorLight):""};
_.a.onIsTooltipVisibleChanged=function(){var x=_.kA(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){x.hidden=!1;x.setAttribute("role","alert")},0):(x.hidden=!0,x.removeAttribute("role"))};
_.a.onFocusedChanged=function(x){this.inputFocused=x.detail.value};
_.Nq.Object.defineProperties(zw.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 x;return!((x=this.data)==null||!x.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var x,G;return((x=this.data)==null?void 0:(G=x.pickers)==null?void 0:G.find(function(D){return D.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var x=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return x?this.ytRendererBehavior.getSimpleString(x):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
zw.prototype.onIsTooltipVisibleChanged=zw.prototype.onIsTooltipVisibleChanged;zw.prototype.errorMessageChanged=zw.prototype.errorMessageChanged;zw.prototype.onErrorMessageEdit=zw.prototype.onErrorMessageEdit;zw.prototype.onErrorMessageDismiss=zw.prototype.onErrorMessageDismiss;zw.prototype.focusChanged=zw.prototype.focusChanged;zw.prototype.characterCountChanged=zw.prototype.characterCountChanged;zw.prototype.onEmojiSelect=zw.prototype.onEmojiSelect;zw.prototype.handlePickerButtonToggle=zw.prototype.handlePickerButtonToggle;
zw.prototype.onSendError=zw.prototype.onSendError;zw.prototype.onSendCompleted=zw.prototype.onSendCompleted;zw.prototype.sendMessage=zw.prototype.sendMessage;zw.prototype.dataChanged=zw.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],zw.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],zw.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.I(xwi.YtPickerBehavior),_.N("design:type",Object)],zw.prototype,"ytPickerBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],zw.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.IQ.YtLiveChatTooltipTargetingBehavior),_.N("design:type",Object)],zw.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],zw.prototype,"hasFiredInitialFocusActions",void 0);
_.q([_.R(),_.N("design:type",Object)],zw.prototype,"isBeforeFocusEnabled",void 0);_.q([_.R(),_.N("design:type",Object)],zw.prototype,"data",void 0);_.q([_.R({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.N("design:type",Object)],zw.prototype,"id",void 0);_.q([_.R(),_.N("design:type",Object)],zw.prototype,"characterCount",void 0);_.q([_.R(),_.N("design:type",Object)],zw.prototype,"maxCharacterLimit",void 0);
_.q([_.R(),_.N("design:type",Object)],zw.prototype,"remainingCharacterCount",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],zw.prototype,"inputExpanded",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],zw.prototype,"inputFocused",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],zw.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.q([_.R(),_.N("design:type",_.AX)],zw.prototype,"participantsManager",void 0);
_.q([_.R(),_.N("design:type",Object)],zw.prototype,"buttonOverrides",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],zw.prototype,"inReplyPanel",void 0);_.q([_.U("characterCount, maxCharacterLimit, countdownActive","blockSendMessageWithCountdown"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],zw.prototype,"sendDisabled",null);_.q([_.R(),_.N("design:type",Object)],zw.prototype,"countdownRatio",void 0);
_.q([_.U("countdownRatio"),_.N("design:type",Number),_.N("design:paramtypes",[])],zw.prototype,"countdownStrokeDashOffset",null);_.q([_.U("countdownRatio"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],zw.prototype,"countdownActive",null);_.q([_.U("data.interactionMessage"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],zw.prototype,"hasInteractionMessage",null);
_.q([_.U("data.emojiPickerButton"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],zw.prototype,"hasEmojiPickerButton",null);_.q([_.U("data, characterCount"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],zw.prototype,"showAvatar",null);_.q([_.U("data.pickers"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],zw.prototype,"hasProductPickerPanelViewModel",null);
_.q([_.R(),_.N("design:type",Object)],zw.prototype,"errorMessage",void 0);_.q([_.R(),_.N("design:type",Object)],zw.prototype,"genericErrorMessage",void 0);_.q([_.R(),_.N("design:type",Object)],zw.prototype,"isTooltipVisible",void 0);_.q([_.R(),_.N("design:type",Object)],zw.prototype,"tooltipTimeout",void 0);_.q([_.U("data.onInitialFocusCommand"),_.N("design:type",String),_.N("design:paramtypes",[])],zw.prototype,"tooltipMessage",null);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],zw.prototype,"systemIcons",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],zw.prototype,"tallerEmojiPicker",void 0);_.q([_.U("data"),_.N("design:type",String),_.N("design:paramtypes",[])],zw.prototype,"authorNameColor",null);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],zw.prototype,"blockSendMessageWithCountdown",void 0);_.q([_.R(),_.N("design:type",Object)],zw.prototype,"sendReplyMessageInFlight",void 0);
_.q([_.cD("#input"),_.N("design:type",_.pBq)],zw.prototype,"input",void 0);_.q([_.cD("#count"),_.N("design:type",HTMLElement)],zw.prototype,"count",void 0);_.q([_.cD("#input-container"),_.N("design:type",HTMLElement)],zw.prototype,"inputContainer",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zw.prototype,"dataChanged",null);
_.q([_.oe("yt-live-chat-send-message"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],zw.prototype,"sendMessage",null);_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[Event,_.gG]),_.N("design:returntype")],zw.prototype,"onSendCompleted",null);_.q([_.oe("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zw.prototype,"onSendError",null);
_.q([_.oe("yt-live-chat-icon-toggle-button-renderer-toggle"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],zw.prototype,"handlePickerButtonToggle",null);_.q([_.oe("yt-emoji-select"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],zw.prototype,"onEmojiSelect",null);
_.q([_.yf("characterCount"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zw.prototype,"characterCountChanged",null);_.q([_.yf("inputFocused"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zw.prototype,"focusChanged",null);_.q([_.oe("yt-live-chat-error-message-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zw.prototype,"onErrorMessageDismiss",null);
_.q([_.oe("yt-live-chat-error-message-edit"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],zw.prototype,"onErrorMessageEdit",null);_.q([_.yf("errorMessage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zw.prototype,"errorMessageChanged",null);_.q([_.yf("isTooltipVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zw.prototype,"onIsTooltipVisibleChanged",null);
zw=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],zw);
_.w(zw,"yt-live-chat-message-input-renderer",function(){if(stC===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;rH6===void 0&&(rH6=document.createElement("template"));var K=rH6;D.call(G,K.content.cloneNode(!0),x.content.firstChild);stC=x}x=stC;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var Grc;var Dwx;var aj=function(){var x=_.n.apply(this,arguments)||this;x.systemIcons=_.B("kevlar_system_icons");x.firedOnClickCommand=!1;x.inReplyPanel=!1;return x};
_.m(aj,_.n);
aj.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"}}}};
aj.prototype.onButtonToggle=function(x){x.target.disabled||this.ytPickerBehavior.togglePicker_(x.detail.targetId)};
aj.prototype.onClick=function(){var x=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.xO(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return x.firedOnClickCommand=!1},5E3))};
_.Nq.Object.defineProperties(aj.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var x,G;return((x=this.data)==null?void 0:(G=x.panels)==null?void 0:G.find(function(D){return D.liveChatProductPickerPanelViewModel}))!==void 0}}});
aj.prototype.onButtonToggle=aj.prototype.onButtonToggle;_.q([_.I(xwi.YtPickerBehavior),_.N("design:type",Object)],aj.prototype,"ytPickerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],aj.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],aj.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],aj.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],aj.prototype,"systemIcons",void 0);_.q([_.R({reflectToAttribute:!1}),_.N("design:type",Object)],aj.prototype,"firedOnClickCommand",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],aj.prototype,"inReplyPanel",void 0);_.q([_.U("data.pickers"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],aj.prototype,"hasProductPickerPanelViewModel",null);
_.q([_.oe("yt-live-chat-icon-toggle-button-renderer-toggle"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],aj.prototype,"onButtonToggle",null);aj=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],aj);
_.w(aj,"yt-live-chat-restricted-participation-renderer",function(){if(Dwx===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;Grc===void 0&&(Grc=document.createElement("template"));var K=Grc;D.call(G,K.content.cloneNode(!0),x.content.firstChild);Dwx=x}x=Dwx;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var oj=function(){var x=_.n.apply(this,arguments)||this;x.genericErrorMessage=_.gK("Error, try again.");x.inReplyPanel=!1;x.hideBorder=!1;return x};
_.m(oj,_.n);oj.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}}}}}};
_.Nq.Object.defineProperties(oj,{template:{configurable:!0,enumerable:!0,get:function(){return p34()}}});
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],oj.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],oj.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],oj.prototype,"genericErrorMessage",void 0);_.q([_.R(),_.N("design:type",Object)],oj.prototype,"inReplyPanel",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],oj.prototype,"hideBorder",void 0);
oj=_.q([_.HD({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],oj);_.w(oj,"yt-live-chat-engagement-panel-input-renderer",function(){return p34()},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var KMc,zE8;KMc=_.BH(115994);zE8=_.BH(115993);_.ye=function(x,G,D){var K=this;var z=D.dragDownAction;this.layer=0;this.JSC$19915_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return K.dragDownAction()}}}};
this.JSC$19915_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return K.dragDownAction()}}}};
this.fullscreen=!1;var y=_.en();_.xP(y,KMc,this.layer);_.xP(y,zE8,this.layer);this.dragDownAction=function(){z();_.X8(y,{visualElement:K.fullscreen?KMc:zE8})};
this.gesture=new _.oU(x,G,this.JSC$19915_watchConfig,"pandown");this.attach()};
_.ye.prototype.attach=function(){this.gesture.attach()};
_.ye.prototype.detach=function(){this.gesture.detach()};
_.ye.prototype.update=function(x){this.fullscreen=x;this.gesture.config=x?this.JSC$19915_watchFullScreenConfig:this.JSC$19915_watchConfig};var a$k={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(x){if(x&&x.length==1&&Array.isArray(x[0].loggingUrls)){x=_.YS.unsafeClone(x[0]);var G=this.macros||{},D=this.getAdModuleClient_();if(!D)return _.aI();x.loggingUrls.forEach(function(K){if(K.baseUrl){var z=K.baseUrl;var y=G;y=y===void 0?{}:y;z=D.getOptions().includes("replaceUrlMacros")?_.FrZ(D,"replaceUrlMacros",{url:z,additionalMapping:y}):z;K.baseUrl=z}},this);
x=[x]}return _.KW(this.hostElement,x)},
getAdModuleClient_:function(){var x=_.Ns(this);return x?(x=x.getPlayer())?new _.MD(x):null:null}}]};var oki;var lf=function(){var x=_.n.apply(this,arguments)||this;x.isCollapsed=!1;x.modernPanels=_.B("kevlar_watch_modern_panels");x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return x};
_.m(lf,_.n);_.a=lf.prototype;_.a.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.a.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.a.onDonateTap=function(){var x=this.get("data.donateButton.buttonRenderer.command");if(x){var G=_.CC(),D=this.get("data.donateButton.buttonRenderer.trackingParams");G&&D&&_.u0(G,_.V2(D));this.ytOpenPopupBehavior.openPopup(x)}};
_.a.onShowMore=function(){this.isCollapsed=!1;var x=_.CC(),G=this.get("data.expandButton.buttonRenderer.trackingParams");x&&G&&_.u0(x,_.V2(G))};
_.a.onShowLess=function(){this.isCollapsed=!0};
_.a.dataChanged=function(){_.K7(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.a.onDarkModeToggledAction=function(x){this.isDarkTheme=x};
_.a.handleUpdate=function(x){if(x=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",x))this.set("data.startLabel",x.startLabel),this.set("data.endLabel",x.endLabel),this.set("data.progress",x.progress),this.set("data.amountRaisedLabel",x.amountRaisedLabel),this.dataChanged()};
_.a.handleOpenPopupAction=function(x){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",x)&&_.xO(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.a.computeHeaderBackgroundUrl=function(x,G){if(x)return G?x.headerBackgroundDarkUrl:x.headerBackgroundUrl};
_.a.isProgressBarVisible=function(x){return!(!x||x.progress===void 0)};
_.a.headerBackgroundClass=function(){return _.Am("HTML_DIR")==="rtl"?"flip":""};
lf.prototype.dataChanged=lf.prototype.dataChanged;_.q([_.I(_.yU.YtOpenPopupBehavior),_.N("design:type",Object)],lf.prototype,"ytOpenPopupBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],lf.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],lf.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],lf.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],lf.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],lf.prototype,"isCollapsed",void 0);_.q([_.R({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.N("design:type",String)],lf.prototype,"headerBackgroundUrl",void 0);_.q([_.R(),_.N("design:type",Boolean)],lf.prototype,"isDarkTheme",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],lf.prototype,"modernPanels",void 0);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lf.prototype,"dataChanged",null);lf=_.q([_.d({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],lf);
_.w(lf,"ytd-donation-shelf-renderer",function(){if(oki!==void 0)return oki;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return oki=x},{mode:1});var y5f;var cj=function(){return _.n.apply(this,arguments)||this};
_.m(cj,_.n);_.q([_.R(),_.N("design:type",Object)],cj.prototype,"data",void 0);cj=_.q([_.d({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],cj);
_.w(cj,"ytd-donation-unavailable-renderer",function(){if(y5f!==void 0)return y5f;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return y5f=x},{mode:1});var l$x;var Tw=function(){return _.n.apply(this,arguments)||this};
_.m(Tw,_.n);Tw.prototype.computeIconType=function(x){return x?"yt-icons:"+x.toLowerCase():null};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Tw.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Tw.prototype,"data",void 0);Tw=_.q([_.d({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],Tw);
_.w(Tw,"ytd-limited-state-message-renderer",function(){if(l$x!==void 0)return l$x;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return l$x=x},{mode:1});var c5Y;var Wj=function(){return _.n.apply(this,arguments)||this};
_.m(Wj,_.n);Wj.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
Wj.prototype.onTap=function(x){var G=this.data&&this.data.endpoint;G&&!_.u_(_.gA(x),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.h$(this.hostElement,"yt-navigate",{endpoint:G})};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Wj.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Wj.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Wj.prototype,"data",void 0);Wj=_.q([_.d({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],Wj);
_.w(Wj,"ytd-autotagging-metadata-renderer",function(){if(c5Y!==void 0)return c5Y;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return c5Y=x},{mode:1});var TZj;var eL=function(){return _.n.apply(this,arguments)||this};
_.m(eL,_.n);eL.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],eL.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],eL.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],eL.prototype,"data",void 0);eL=_.q([_.d({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],eL);
_.w(eL,"ytd-autotagging-metadata-row-renderer",function(){if(TZj!==void 0)return TZj;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return TZj=x},{mode:1});var WMY;var eEk;var Z8=function(){var x=_.n.apply(this,arguments)||this;x.engagementPanelContent=!1;return x};
_.m(Z8,_.n);Z8.prototype.computeHasDividerLine=function(x,G){return x&&!G};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Z8.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Z8.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.N("design:type",Boolean)],Z8.prototype,"hasDividerLine",void 0);_.q([_.R(),_.N("design:type",Object)],Z8.prototype,"engagementPanelContent",void 0);
Z8=_.q([_.d({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],Z8);
_.w(Z8,"ytd-metadata-row-header-renderer",function(){if(eEk!==void 0)return eEk;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return eEk=x},{mode:1});var Z5T;var MR=function(){return _.n.apply(this,arguments)||this};
_.m(MR,_.n);MR.prototype.computeHasDividerLine=function(x){return x};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],MR.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],MR.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.N("design:type",Boolean)],MR.prototype,"hasDividerLine",void 0);MR=_.q([_.d({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],MR);
_.w(MR,"ytd-metadata-row-renderer",function(){if(Z5T!==void 0)return Z5T;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Z5T=x},{mode:1});var M3C;var Qe=function(){return _.n.apply(this,arguments)||this};
_.m(Qe,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Qe.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Qe.prototype,"data",void 0);Qe=_.q([_.d({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],Qe);
_.w(Qe,"ytd-metadata-with-image-row-renderer",function(){if(M3C!==void 0)return M3C;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return M3C=x},{mode:1});var Q5b;var pQ=function(){var x=_.n.apply(this,arguments)||this;x.rounded=!0;x.fixie=!1;x.fullWidth=!1;return x};
_.m(pQ,_.n);_.a=pQ.prototype;_.a.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.a.onDataChanged=function(){var x=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(G){x.onEndpointLinkKeyPress(G)}))};
_.a.onEndpointLinkKeyPress=function(x){x.target===this.endpointLink&&x.keyCode===13&&_.h$(this.hostElement,"click")};
_.a.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var x;if((x=this.data)==null?0:x.endpoint)_.zl(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.a.onYtNavigate=function(x){this.endpointHref||(x.stopPropagation(),x.preventDefault())};
_.a.onInformationButtonContainerClick=function(x){x.target.id!=="information-button-container"&&(x.stopPropagation(),x.preventDefault())};
_.a.computeStyle=function(x){return x};
_.a.computeIsThumbnailStyle=function(x){return x==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.a.computeThumbnailWidth=function(x){switch(x){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}};
_.a.computeThumbnailObjectFit=function(x){switch(x){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.Nq.Object.defineProperties(pQ.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?0:x.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
pQ.prototype.onYtNavigate=pQ.prototype.onYtNavigate;pQ.prototype.onClick=pQ.prototype.onClick;pQ.prototype.onDataChanged=pQ.prototype.onDataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],pQ.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],pQ.prototype,"componentBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],pQ.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],pQ.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],pQ.prototype,"componentStyle",void 0);_.q([_.R({computed:"computeIsThumbnailStyle(data.style)"}),_.N("design:type",Boolean)],pQ.prototype,"isThumbnailStyle",void 0);_.q([_.R({computed:"computeThumbnailObjectFit(data.style)"}),_.N("design:type",String)],pQ.prototype,"thumbnailObjectFit",void 0);
_.q([_.R({computed:"computeThumbnailWidth(data.style)"}),_.N("design:type",Number)],pQ.prototype,"thumbnailWidth",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],pQ.prototype,"rounded",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],pQ.prototype,"fixie",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],pQ.prototype,"fullWidth",void 0);_.q([_.cD("#endpoint-link"),_.N("design:type",HTMLAnchorElement)],pQ.prototype,"endpointLink",void 0);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pQ.prototype,"onDataChanged",null);_.q([_.U("data.endpoint"),_.N("design:type",Object),_.N("design:paramtypes",[])],pQ.prototype,"endpointHref",null);_.q([_.oe("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],pQ.prototype,"onClick",null);
_.q([_.oe("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],pQ.prototype,"onYtNavigate",null);pQ=_.q([_.d({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],pQ);
_.w(pQ,"ytd-rich-metadata-renderer",function(){if(Q5b!==void 0)return Q5b;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Q5b=x},{mode:_.Ge("kevlar_poly_si_batch_j075")?1:2});var p8c;var Ve=function(){var x=_.n.apply(this,arguments)||this;x.fixie=!1;x.fullWidth=!1;return x};
_.m(Ve,_.n);Ve.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
Ve.prototype.computeHasDividerLine=function(x){return x};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Ve.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Ve.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.N("design:type",Boolean)],Ve.prototype,"hasDividerLine",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Ve.prototype,"fixie",void 0);_.q([_.R(),_.N("design:type",Object)],Ve.prototype,"fullWidth",void 0);
Ve=_.q([_.d({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],Ve);
_.w(Ve,"ytd-rich-metadata-row-renderer",function(){if(p8c!==void 0)return p8c;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return p8c=x},{mode:1});var bf=function(){var x=_.n.apply(this,arguments)||this;x.engagementPanelContent=!1;x.fixie=!1;x.fullWidth=!1;return x};
_.m(bf,_.n);
bf.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"}}}};
bf.prototype.computeCollapsibleItems=function(x,G,D){return x===void 0||G===void 0||D===void 0||D?[]:x.slice(G)};
bf.prototype.computeAlwaysShownItems=function(x,G){return x&&x.length?x.slice(0,G):[]};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],bf.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],bf.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],bf.prototype,"data",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],bf.prototype,"collapsed",void 0);
_.q([_.R({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.N("design:type",Array)],bf.prototype,"alwaysShownItems",void 0);_.q([_.R({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.N("design:type",Array)],bf.prototype,"collapsibleItems",void 0);_.q([_.R(),_.N("design:type",Object)],bf.prototype,"engagementPanelContent",void 0);_.q([_.R(),_.N("design:type",Object)],bf.prototype,"fixie",void 0);
_.q([_.R(),_.N("design:type",Object)],bf.prototype,"fullWidth",void 0);bf=_.q([_.d({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],bf);
_.w(bf,"ytd-metadata-row-container-renderer",function(){if(WMY!==void 0)return WMY;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return WMY=x},{mode:1});var V3j;var LQ=function(){var x=_.n.apply(this,arguments)||this;x.currentPageUrl="";x.baseUrl="";x.isHiddenByUser=null;x.hidden=!1;x.showAboveScrim=!1;x.watchNextGrid=_.B("kevlar_watch_grid");x.modernButtons=_.B("web_modern_buttons");x.roundedContainer=!0;x.noBorder=!1;x.roundBackground=!_.B("live_chat_round_background_killswitch");x.overflowHideChat=_.B("live_chat_overflow_hide_chat");x.forceDarkTheme=!1;x.theaterWatchWhile=!1;x.isListeningForPlayerProgress=!1;x.JSC$19951_playerEvents=new Map;x.isFrameReady=
!1;x.player=null;x.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 x};
_.m(LQ,_.n);_.a=LQ.prototype;_.a.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.Gl(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.a.created=function(){var x=this;this.handleIframeEventListener=function(G){x.handleIframeEvent(G)};
this.handleKeyboardEventListener=function(G){x.handleKeyboardEvent(G)};
this.JSC$19951_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$19951_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19951_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$19951_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$19951_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.a.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()};
_.a.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};
_.a.computeBaseUrl=function(x){var G="/live_chat";this.isChatReplay()&&(G="/live_chat_replay");return _.vA(_.N_(_.q_(_.wM(x),G),null),"").toString()};
_.a.dataChanged=function(){_.B("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.a.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var x=this.url;if(this.isChatReplay()&&this.player){var G=Math.floor(this.player.getProgressState().current*1E3);x=_.Ny(_.wM(x),"playerOffsetMs",G.toString()).toString()}G=this.chatframe;try{var D=x==="about:blank"?_.nsd:_.V$(x),K=G.contentDocument.location,z=_.YY(D);z!==void 0&&K.replace(z)}catch(y){G.src=x}}};
_.a.collapsedChanged=function(){_.h$(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.a.handleIframeEvent=function(x){if(x&&this.baseUrl.startsWith(x.origin)&&x.source===this.chatframe.contentWindow&&_.G7(x.data))if(x.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(x);else if(x.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(x.data["yt-show-feedback-dialog"]){var G=_.Eo().resolve(_.P6(_.QC0));if(G){var D=x.ports,K;D&&D.length&&(K=function(){D[0].postMessage({})});
x=x.data["yt-show-feedback-dialog"];G.showFeedbackDialog(x.customProductData,x.feedbackContent,K,x.bucket)}}else if(x.data["yt-show-survey"])_.h$(this.hostElement,"yt-show-survey",x.data["yt-show-survey"]);else if(x.data["yt-purchase-membership"])_.Eo().resolve(_.hm).resolveCommand(x.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(x.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(x.data["yt-tunnel-out-live-service-request"]);else if(x.data["yt-user-activity"])_.hu();
else if(x.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(x.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(x.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(x.data["yt-open-popup"]);else if(x.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(x.data["yt-log-flow-logging-event-command"]);else if(x.data["yt-hide-live-chat"])this.onShowHideChat();else x.data["yt-report-moderation-state-log"]&&
this.player&&(G={cpn:this.player.getVideoData().cpn},_.Fv("liveChatBeingModerated",G))};
_.a.attachLiveChatResponseVeTrackingParams=function(x){x=_.V2(x);var G=_.CC(),D=_.nT("liveChatRenderer.trackingParams",this.data);G&&D&&_.RI(G,_.V2(D),x)};
_.a.handleBuyflowMessages=function(x){var G=x.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,D=x.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,K=x.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.uyL(_.x1(_.io),G.replace(/-/g,"+").replace(/_/g,"/"),function(z){x.ports[0].postMessage({success:!0,buyFlowResponse:z})},void 0,function(z){x.ports[0].postMessage({success:!1,
error:z&&z.message||"Buyflow rejected without error."})},_.M5().get("hl"),void 0,function(){x.ports[0].postMessage({closed:!0})},D,K)};
_.a.setupPlayerProgressRelay=function(){var x=this;if(!this.isListeningForPlayerProgress){var G=_.vH();G!=null&&G.getPlayerPromise&&(G.getPlayerPromise().then(function(D){x.playerApiReady(D)}),this.isListeningForPlayerProgress=!0)}};
_.a.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.a.playerApiReady=function(x){this.setPlayer(x)};
_.a.playerProgressHandler=function(){if(this.player){var x=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":x.current})}};
_.a.playerAdStartHandler=function(x){this.postToContentWindow({"yt-player-ad-start":x})};
_.a.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.a.playerStateChangeHandler=function(x){this.postToContentWindow({"yt-player-state-change":x})};
_.a.setPlayer=function(x){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19951_playerEvents);x&&(this.player=x,this.ytPlayerListenerBehavior.listenToPlayerEvents(x,this.JSC$19951_playerEvents),_.h$(this.hostElement,"player-api-ready"))};
_.a.liveChatPageUrl=function(x,G,D,K){return!D||G?"about:blank":D.liveChatRenderer?(G=_.wM(this.currentPageUrl).JSC$8039_queryData_,Ew8(G),x=_.wM(x),G.add("continuation",D.liveChatRenderer.continuations[0].reloadContinuationData.continuation),D=_.Lt()==="USER_INTERFACE_THEME_DARK",(K||D)&&G.add("dark_theme","true"),_.N_(x,G),K=_.wM(x.toString()),D=K.JSC$8039_queryData_,"SESSION_INDEX"in _.Oo&&(D.add("authuser",_.Am("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.Oo&&D.add("pageId",_.Am("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.Oo&&D.add("sdc",_.Am("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),K.toString()):""};
_.a.isCollapsed=function(x,G){return G!==null?G:this.isChatReplay()||x&&x.conversationBarRenderer&&x.conversationBarRenderer.availabilityMessage?!0:x?x.liveChatRenderer?x.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.B("live_chat_hide_premiere_replay_message")||x.conversationBarRenderer&&x.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.a.isHidden=function(x,G,D){var K=G&&G.conversationBarRenderer&&G.conversationBarRenderer.availabilityMessage,z=G&&G.liveChatRenderer&&G.liveChatRenderer.showHideButton,y=G&&G.liveChatRenderer&&G.liveChatRenderer.showButton;return D&&x&&!K&&!y||!D&&x&&!K&&!z?!0:G&&G.liveChatRenderer&&G.liveChatRenderer.initialDisplayState?G.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.a.computeButtonOverride=function(x,G){if(x&&G)return{type:"outline"}};
_.a.setCollapsedState=function(x){_.Y(x,_.CdJ)&&(this.isHiddenByUser=!!_.Y(x,_.CdJ).collapsed,!this.isHiddenByUser&&_.B("enable_teaser_framework_web_client")&&_.xO(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.a.forwardReduxActionToIframe=function(x){this.postToContentWindow({"yt-live-chat-forward-redux-action":x})};
_.a.onLoopRangeChange=function(x){this.showAboveScrim=!(x==null||!x.postId)};
_.a.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.a.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.a.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.a.sendDarkThemePostMessage=function(x){this.postToContentWindow({"yt-live-chat-set-dark-theme":x})};
_.a.onLiveChatBuyFlowCallback=function(x){this.postToContentWindow({"yt-live-chat-buy-flow-callback":x})};
_.a.handleKeyboardEvent=function(x){(0,_.YS.containsValue)(PJ4,x.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:x.type,keyCode:x.keyCode}})};
_.a.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.a.postToContentWindow=function(x){if(this.isFrameReady)try{var G=window.location.protocol+"//"+window.location.host,D;(D=this.chatframe)!=null&&D.contentWindow?this.chatframe.contentWindow.postMessage(x,G):_.O9(new _.LL("Tried posting a message to an iframe with no content window",x))}catch(K){_.I4(K)}};
_.a.shouldHideChatFrame=function(x){return x&&_.B("hide_live_chat_button_when_collapsed")};
_.Nq.Object.defineProperties(LQ.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.B("live_chat_overflow_hide_chat")||_.B("web_watch_chat_hide_button_killswitch"))return _.B("live_chat_overflow_hide_chat");var x,G,D,K;return!!((x=this.data)==null?0:(G=x.liveChatRenderer)==null?0:(D=G.header)==null?0:(K=D.liveChatHeaderRenderer)==null?0:K.collapseButton)}}});
LQ.prototype.collapsedChanged=LQ.prototype.collapsedChanged;LQ.prototype.urlChanged=LQ.prototype.urlChanged;LQ.prototype.dataChanged=LQ.prototype.dataChanged;LQ.prototype.onShowHideChat=LQ.prototype.onShowHideChat;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],LQ.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],LQ.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],LQ.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.nS.YtPlayerListenerBehavior),_.N("design:type",_.i4)],LQ.prototype,"ytPlayerListenerBehavior",void 0);_.q([_.I(_.yU.YtOpenPopupBehavior),_.N("design:type",Object)],LQ.prototype,"ytOpenPopupBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],LQ.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],LQ.prototype,"currentPageUrl",void 0);
_.q([_.R({computed:"computeBaseUrl(currentPageUrl,data)"}),_.N("design:type",Object)],LQ.prototype,"baseUrl",void 0);_.q([_.R({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.N("design:type",String)],LQ.prototype,"url",void 0);_.q([_.R(),_.N("design:type",Object)],LQ.prototype,"isHiddenByUser",void 0);_.q([_.R({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.N("design:type",Object)],LQ.prototype,"hidden",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.N("design:type",Boolean)],LQ.prototype,"collapsed",void 0);_.q([_.R({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.N("design:type",Boolean)],LQ.prototype,"hideChatFrame",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],LQ.prototype,"showAboveScrim",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],LQ.prototype,"watchNextGrid",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],LQ.prototype,"modernButtons",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],LQ.prototype,"roundedContainer",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],LQ.prototype,"noBorder",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],LQ.prototype,"roundBackground",void 0);
_.q([_.R({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.N("design:type",Object)],LQ.prototype,"toggleButtonOverride",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],LQ.prototype,"overflowHideChat",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],LQ.prototype,"forceDarkTheme",void 0);_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],LQ.prototype,"enableShowWithoutHideChatButton",null);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],LQ.prototype,"theaterWatchWhile",void 0);_.q([_.cD("#chatframe"),_.N("design:type",HTMLIFrameElement)],LQ.prototype,"chatframe",void 0);_.q([_.oe("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],LQ.prototype,"onShowHideChat",null);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],LQ.prototype,"dataChanged",null);
_.q([_.yf("url"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],LQ.prototype,"urlChanged",null);_.q([_.yf("collapsed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],LQ.prototype,"collapsedChanged",null);LQ=_.q([_.d({is:"ytd-live-chat-frame",disableElementRegistration:!0})],LQ);
_.w(LQ,"ytd-live-chat-frame",function(){if(V3j!==void 0)return V3j;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return V3j=x},{mode:1});var b5f;var Bj=function(){var x=_.n.apply(this,arguments)||this;x.modern=_.B("web_modern_buttons");x.buttonOverrides={style:"call-to-action",type:"filled"};return x};
_.m(Bj,_.n);Bj.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=_.In(this.data.backgroundColor)))};
Bj.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var x=this.getFormattedStringLoggingDirectives(this.data.headline);x&&this.rendererBehavior.logExplicitClick(x)}};
Bj.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var x=this.getFormattedStringLoggingDirectives(this.data.description);x&&this.rendererBehavior.logExplicitClick(x)}};
Bj.prototype.getFormattedStringLoggingDirectives=function(x){return x&&x.runs&&x.runs.length>0&&x.runs[0]&&x.runs[0].loggingDirectives?x.runs[0].loggingDirectives:null};
Bj.prototype.dataChanged=Bj.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Bj.prototype,"rendererBehavior",void 0);_.q([_.I(a$k.YtMacroReplacementBehavior),_.N("design:type",Object)],Bj.prototype,"macroReplacementBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Bj.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],Bj.prototype,"navigationEndpoint",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],Bj.prototype,"enableColors",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Bj.prototype,"modern",void 0);_.q([_.R(),_.N("design:type",Object)],Bj.prototype,"buttonOverrides",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Bj.prototype,"dataChanged",null);Bj=_.q([_.d({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],Bj);
_.w(Bj,"ytd-action-basic-immersive-content-renderer",function(){if(b5f!==void 0)return b5f;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return b5f=x},{mode:1});var LMc;var BZO;var rm=function(){return _.n.apply(this,arguments)||this};
_.m(rm,_.n);rm.prototype.dataChanged=function(){var x;((x=this.data)==null?void 0:x.backgroundColor)!==void 0&&_.K7(this.hostElement,{"--bgu-color":_.In(this.data.backgroundColor)})};
rm.prototype.onImageTileClick=function(){var x;((x=this.data)==null?0:x.navigationEndpoint)&&_.h$(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var G;((G=this.data)==null?0:G.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.Nq.Object.defineProperties(rm.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var x;if(((x=this.data)==null?void 0:x.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 x;return((x=this.data)==null?void 0:x.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var x,G,D;if(((x=this.data)==null?void 0:(G=x.detailsLine)==null?void 0:G.texts)!=null&&((D=this.data)==null?void 0:D.detailsLine.texts.length)>0){var K;return(K=this.data)==null?void 0:K.detailsLine.texts.map(function(z){return z.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var x,G,D;if(((x=this.data)==null?void 0:(G=x.optionalDetailsLine)==null?void 0:G.texts)!=null&&((D=this.data)==null?void 0:D.optionalDetailsLine.texts.length)>0){var K;return(K=this.data)==null?void 0:K.optionalDetailsLine.texts.map(function(z){return z.text}).join("")}return null}}});
rm.prototype.dataChanged=rm.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],rm.prototype,"rendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],rm.prototype,"componentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],rm.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.U("data.backgroundColor"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],rm.prototype,"hasBackgroundColor",null);
_.q([_.U("data.objectFit"),_.N("design:type",Object),_.N("design:paramtypes",[])],rm.prototype,"getObjectFit",null);_.q([_.R({reflectToAttribute:!0}),_.U("data.tileRenderingStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],rm.prototype,"hasTileMetadata",null);_.q([_.U("data.detailsLine"),_.N("design:type",Object),_.N("design:paramtypes",[])],rm.prototype,"getSecondaryDetails",null);
_.q([_.U("data.optionalDetailsLine"),_.N("design:type",Object),_.N("design:paramtypes",[])],rm.prototype,"getOptionalDetails",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rm.prototype,"dataChanged",null);rm=_.q([_.d({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],rm);
_.w(rm,"ytd-image-tile-renderer",function(){if(BZO!==void 0)return BZO;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return BZO=x},{mode:1});var r5C;var s6=function(){return _.n.apply(this,arguments)||this};
_.m(s6,_.n);s6.prototype.getOpenLinkIcon=function(){return _.B("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
s6.prototype.onSitelinkTap=function(){_.h$(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.B("kevlar_command_handler_migration_killswitch"))_.zl(this.hostElement,this.data.clickCommands,this.hostElement);else for(var x=_.l(this.data.clickCommands),G=x.next();!G.done;G=x.next())this.ytComponentBehavior.resolveCommand(G.value)};
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],s6.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],s6.prototype,"rendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],s6.prototype,"data",void 0);s6=_.q([_.d({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],s6);
_.w(s6,"ytd-sitelink-renderer",function(){if(r5C!==void 0)return r5C;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return r5C=x},{mode:1});var Ys=function(){var x=_.n.apply(this,arguments)||this;x.paddingFix=_.B("enable_ads_web_ep_buenos_aires_and_padding_fix");return x};
_.m(Ys,_.n);Ys.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"}}}};
Ys.prototype.dataChanged=function(){var x=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(G){G.clickTrackingParams&&delete G.clickTrackingParams;x.ytMacroReplacementBehavior.sendServiceRequestAction([G])})};
Ys.prototype.shouldHideFooter=function(x){return!(x&&_.B("use_ads_engagement_panel_desktop_footer_cta"))};
_.Nq.Object.defineProperties(Ys.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var x,G;return((x=this.data)==null?void 0:x.imageTileRenderers)===void 0||((G=this.data)==null?void 0:G.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(D){var K;return(K=_.Y(D,K2x))==null?void 0:K.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var x,G;return((x=this.data)==null?void 0:x.imageTileRenderers)===void 0||((G=this.data)==null?void 0:G.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(D){var K;return((K=_.Y(D,K2x))==null?void 0:K.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
Ys.prototype.dataChanged=Ys.prototype.dataChanged;_.q([_.I(a$k.YtMacroReplacementBehavior),_.N("design:type",Object)],Ys.prototype,"ytMacroReplacementBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Ys.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Ys.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Ys.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Ys.prototype,"paddingFix",void 0);_.q([_.R({reflectToAttribute:!0}),_.U("data.imageTileRenderers"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ys.prototype,"removeBorderFromImageTiles",null);_.q([_.R({reflectToAttribute:!0}),_.U("data.imageTileRenderers"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ys.prototype,"useFooteredMetadataRenderingStyle",null);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ys.prototype,"dataChanged",null);Ys=_.q([_.d({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],Ys);
_.w(Ys,"ytd-action-engagement-panel-content-renderer",function(){if(LMc!==void 0)return LMc;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return LMc=x},{mode:1});var s5x;var Yzk=_.Nv(function(x){var G=x.data;var D=x.customCommandResolver;x=_.qi();_.dl(x,function(){return G().interaction},D);
_.Pw(x,{visibilityCallback:function(K){var z,y=(z=G().interaction)==null?void 0:z.onFirstVisible;K&&y&&_.UI(y)},
showOption:_.wR});return _.M("ad-grid-card-image-full-metadata-view-model",{class:function(){var K;return((K=G().interaction)==null?0:K.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:x,"aria-label":function(){var K,z;return(K=G().interaction)==null?void 0:(z=K.accessibility)==null?void 0:z.label}},_.M("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.M(_.bA,{data:function(){return G().adImage}},{adImageViewModel:function(K){return _.M(_.KN,{data:K.data,
customCommandResolver:D})}})),_.M("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.M(_.b,{cond:function(){return G().headline},
then:function(K){return _.M(_.vq,{text:K,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.M(_.b,{cond:function(){return G().detailsLine},
then:function(K){return _.M("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.M(_.bA,{data:K},{adDetailsLineViewModel:function(z){return _.M(_.tK,{data:z.data,customCommandResolver:D,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.M(_.b,{cond:function(){return G().secondaryDetailsLine},
then:function(K){return _.M("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.M(_.bA,{data:K},{adDetailsLineViewModel:function(z){return _.M(_.tK,{data:z.data,customCommandResolver:D,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Li");var mwb=_.Nv(function(x){var G=x.data;var D=x.customCommandResolver;x=_.qi();_.dl(x,function(){return G().interaction},D);
_.Pw(x,{visibilityCallback:function(K){var z,y=(z=G().interaction)==null?void 0:z.onFirstVisible;K&&y&&_.UI(y)},
showOption:_.wR});return _.M("ad-grid-card-image-view-model",{class:function(){var K;return((K=G().interaction)==null?0:K.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:x,"aria-label":function(){var K,z;return(K=G().interaction)==null?void 0:(z=K.accessibility)==null?void 0:z.label}},_.M(_.bA,{data:function(){return G().adImage}},{adImageViewModel:function(K){return _.M(_.KN,{data:K.data,
customCommandResolver:D})}}),_.M("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.M(_.bA,{data:function(){return G().adCardBadge}},{adCardBadgeViewModel:_.kfE})))},"Mi");var H5C=_.Nv(function(x){var G=x.data;var D=x.customCommandResolver;x=_.qi();_.dl(x,function(){return G().interaction},D);
_.Pw(x,{visibilityCallback:function(K){var z,y=(z=G().interaction)==null?void 0:z.onFirstVisible;K&&y&&_.UI(y)},
showOption:_.wR});return _.M("ad-grid-card-text-view-model",{class:function(){var K;return((K=G().interaction)==null?0:K.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:x,"aria-label":function(){var K,z;return(K=G().interaction)==null?void 0:(z=K.accessibility)==null?void 0:z.label}},_.M("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.M(_.b,{cond:function(){return G().title},
then:function(K){return _.M(_.vq,{text:K,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.M("div",{class:function(){return _.B("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.M(_.LT,{each:function(){var K;
return((K=G())==null?void 0:K.descriptions)||[]},
keyBy:"INDEX"},function(K){return _.M(_.vq,{text:K,className:function(){return _.B("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.M("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.M(_.bA,{data:function(){return G().moreInfoButton}},{adButtonViewModel:function(K){return _.M(_.Ng,{data:K.data,
customCommandResolver:D})}})))},"Ni");var $wj=_.Nv(function(x){var G=x.data;var D=x.customCommandResolver;var K=x.adGridCardCollectionStyle;x=_.qi();_.Pw(x,{visibilityCallback:function(z){var y,c=(y=G().interaction)==null?void 0:y.onFirstVisible;z&&c&&_.UI(c)},
showOption:_.wR});return _.M("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:x,style:function(){return"grid-template-columns: repeat("+pNf(K?K():G().style)+", minmax(0, 1fr));"}},_.M(_.bA,{data:function(){var z;
return(z=G())==null?void 0:z.gridCards}},{adGridCardImageViewModel:function(z){return _.M(mwb,{data:z.data,
customCommandResolver:D})},
adGridCardImageFullMetadataViewModel:function(z){return _.M(Yzk,{data:z.data,customCommandResolver:D})},
adGridCardTextViewModel:function(z){return _.M(H5C,{data:z.data,customCommandResolver:D})}}))},"Oi");_.tn(_.Nv(function(x){var G=x.data;x=_.qi();_.dl(x,function(){return G().interaction},V0x);
_.Pw(x,{visibilityCallback:function(D){var K,z=(K=G().interaction)==null?void 0:K.onFirstVisible;D&&z&&_.UI(z)},
showOption:_.wR});return _.M("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:x},_.M("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.M(_.b,{cond:_.BSf("(min-width: "+((0,_.mO)()+_.XY)+"px)"),then:function(){return _.M(_.bA,{data:function(){return G().adGridCardCollection}},{adGridCardCollectionViewModel:function(D){return _.M($wj,{data:D.data,
customCommandResolver:V0x})}})},
else:function(){return _.M(_.bA,{data:function(){return G().adGridCardCollection}},{adGridCardCollectionViewModel:function(D){return _.M($wj,{data:D.data,
customCommandResolver:V0x,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.M("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.M(_.bA,{data:function(){return G().adButton}},{adButtonViewModel:function(D){return _.M(_.Ng,{data:D.data,
customCommandResolver:V0x})}})))},"Pi"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.ik}});_.tn(_.Nv(function(x){var G=x.data;x=_.qi();_.dl(x,function(){return G().interaction},b0C);
_.Pw(x,{visibilityCallback:function(D){var K,z=(K=G().interaction)==null?void 0:K.onFirstVisible;D&&z&&_.UI(z)},
showOption:_.wR});return _.M("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:x},_.M("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.M(_.bA,{data:function(){if(_.BSf("(min-width: "+((0,_.mO)()+_.XY)+"px)")())var D=G().adGridCardCollection;else{D=Object.assign({},_.Y(G().adGridCardCollection,zIk));var K;D.gridCards!==void 0&&((K=D.gridCards)==null?void 0:K.length)>1?D.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":D.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";D={adGridCardCollectionViewModel:D}}return D}},{adGridCardCollectionViewModel:function(D){return _.M($wj,{data:D.data,
customCommandResolver:b0C})}})),_.M("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.M(_.bA,{data:function(){return G().adButton}},{adButtonViewModel:function(D){return _.M(_.Ng,{data:D.data,
customCommandResolver:b0C})}})))},"Qi"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.ik}});var ml=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return x};
_.m(ml,_.n);_.a=ml.prototype;_.a.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"}}}};
_.a.attached=function(){this.getDataFromPlayerAndRender()};
_.a.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.a.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.a.getDataFromPlayerAndRender=function(){var x=this,G=_.Ns(this.hostElement);G&&G.getPlayerPromise().then(function(D){x.getCachedDataAndListen(D)})};
_.a.getCachedDataAndListen=function(x){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(x,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(x,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=x)};
_.a.resolveCachedActions=function(){var x=_.nT("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(x=x&&x())&&!_.YS.isEmpty(x)&&this.sendUpdateEngagementPanelAction(x);(x=(x=_.nT("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&x())&&!_.YS.isEmpty(x)&&this.sendChangeEngagementPanelVisibilityAction(x);(x=(x=_.nT("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&x())&&!_.YS.isEmpty(x)&&this.sendScrollToEngagementPanelCommand(x)};
_.a.sendUpdateEngagementPanelAction=function(x){var G;_.xO(this.hostElement,"yt-update-engagement-panel-action",[(G=_.YS.get(x,"action"))!=null?G:x])};
_.a.sendChangeEngagementPanelVisibilityAction=function(x){_.xO(this.hostElement,"yt-change-engagement-panel-visibility-action",[x])};
_.a.sendScrollToEngagementPanelCommand=function(x){_.xO(this.hostElement,"yt-scroll-to-engagement-panel-command",[x])};
_.a.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.B("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.O9(Error("em"))};
ml.prototype.dataChanged=ml.prototype.dataChanged;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],ml.prototype,"actionHandlerBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],ml.prototype,"componentBehavior",void 0);_.q([_.I(_.nS.YtPlayerListenerBehavior),_.N("design:type",_.i4)],ml.prototype,"ytPlayerListenerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],ml.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],ml.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],ml.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],ml.prototype,"player",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ml.prototype,"dataChanged",null);ml=_.q([_.d({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],ml);
_.w(ml,"ytd-ads-engagement-panel-content-renderer",function(){if(s5x!==void 0)return s5x;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);
return s5x=x},{mode:1});var FMc;var Hj=function(){var x=_.n.apply(this,arguments)||this;x.player=null;x.JSC$19988_playerEvents=new Map;x.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return x};
_.m(Hj,_.n);_.a=Hj.prototype;_.a.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]]"}}}}}};
_.a.created=function(){this.player=null;this.JSC$19988_playerEvents=new Map;this.JSC$19988_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$19988_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19988_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19988_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.a.attached=function(){var x=this,G=_.Ns();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));G&&G.getPlayerPromise().then(function(D){x.setPlayer(D);x.set("isPageLoad",!1)})};
_.a.setPlayer=function(x){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19988_playerEvents);this.set("player",x);x&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(x,this.JSC$19988_playerEvents),x.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.a.onLoopRangeChange=function(x){var G=_.Eo().resolve(_.P6(_.wG));if((!G||G.isOnWatch())&&this.hostElement.clientHeight){var D;!x&&((D=this.data)==null?0:D.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.a.onVideoProgress=function(x){var G,D,K=((G=this.player)==null?void 0:(D=G.getPresentingPlayerType)==null?void 0:D.call(G))===2;this.isAdPlaying!==K&&this.set("isAdPlaying",K);var z;if(!K&&(z=this.player)!=null&&z.getLoopRange()){D=this.player.getLoopRange();G=D.startTimeMs;D=D.endTimeMs;K=this.player.getProgressState(1).seekableStart;var y;G<K*1E3&&((y=this.data)==null?0:y.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
x=D<x*1E3;var c;((c=this.player)==null?0:c.getLoopRange())&&x&&this.player.seekTo(G/1E3)}};
_.a.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.a.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.a.onYtDeleteClipEngagementPanelCommand=function(x){_.Y(x,L24).command&&this.ytComponentBehavior.resolveCommand(_.Y(x,L24).command)};
_.Nq.Object.defineProperties(Hj.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.voteCount)||_.gK("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Hj.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Hj.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],Hj.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Hj.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.nS.YtPlayerListenerBehavior),_.N("design:type",_.i4)],Hj.prototype,"ytPlayerListenerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Hj.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Hj.prototype,"isAdPlaying",void 0);_.q([_.R({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],Hj.prototype,"isPageLoad",void 0);_.q([_.R({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],Hj.prototype,"isDarkTheme",void 0);
_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Hj.prototype,"voteCount",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Hj.prototype,"channelEndpoint",null);_.q([_.U("channelEndpoint"),_.N("design:type",Object),_.N("design:paramtypes",[])],Hj.prototype,"channelHref",null);Hj=_.q([_.d({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],Hj);
_.w(Hj,"ytd-clip-attribution-renderer",function(){if(FMc!==void 0)return FMc;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return FMc=x},{mode:1});var CY6;var $s=function(){var x=_.n.apply(this,arguments)||this;x.player=null;x.JSC$19993_playerEvents=new Map;return x};
_.m($s,_.n);_.a=$s.prototype;_.a.created=function(){this.player=null;this.JSC$19993_playerEvents=new Map;this.JSC$19993_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19993_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19993_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.a.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.a.attached=function(){var x=this,G=_.Ns();G&&G.getPlayerPromise().then(function(D){x.setPlayer(D);x.set("isPageLoad",!1)})};
_.a.setPlayer=function(x){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19993_playerEvents);this.set("player",x);if(x){this.ytPlayerListenerBehavior.listenToPlayerEvents(x,this.JSC$19993_playerEvents);var G;(x==null?void 0:(G=x.getPresentingPlayerType)==null?void 0:G.call(x))===2&&this.playerAdStartHandler()}};
_.a.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.a.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.a.onVideoProgress=function(){var x,G,D=((x=this.player)==null?void 0:(G=x.getPresentingPlayerType)==null?void 0:G.call(x))===2;this.isAdPlaying!==D&&this.set("isAdPlaying",D)};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],$s.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],$s.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.nS.YtPlayerListenerBehavior),_.N("design:type",_.i4)],$s.prototype,"ytPlayerListenerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],$s.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],$s.prototype,"isAdPlaying",void 0);
_.q([_.R({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],$s.prototype,"isPageLoad",void 0);$s=_.q([_.d({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],$s);
_.w($s,"ytd-clip-section-footer-renderer",function(){if(CY6!==void 0)return CY6;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return CY6=x},{mode:1});var I$c;var j5k;var F0=function(){return _.n.apply(this,arguments)||this};
_.m(F0,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],F0.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],F0.prototype,"data",void 0);F0=_.q([_.d({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],F0);
_.w(F0,"ytd-clip-ad-state-renderer",function(){if(j5k!==void 0)return j5k;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return j5k=x},{mode:1});var O5f;var CQ=function(){var x=_.n.apply(this,arguments)||this;x.value="";x.valid=!1;x.userChangedValue=!1;x.disabled=!1;x.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return x};
_.m(CQ,_.n);_.a=CQ.prototype;_.a.detached=function(){this.userChangedValue=!1};
_.a.handleKeyDown=function(x){if(_.hR)var G=13;else _.fn3&&_.xp?G=13:G=13;x.keyCode===G&&x.preventDefault()};
_.a.handleInput=function(){var x=_.kA(this.hostElement).querySelector("#title");if(x){var G=(x.value||"").replace(/\r|\n/g," ");this.set("value",G);x.value=G;this.valid=x.validate();this.userChangedValue=!0}};
_.a.handleBlur=function(){this.valid=_.kA(this.hostElement).querySelector("#title").validate()};
_.a.onValueChanged=function(){_.h$(this.hostElement,"title-changed",{title:this.value})};
_.a.onValidChanged=function(){_.h$(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.a.setInput=function(x,G){var D=_.kA(this.hostElement).querySelector("#title");D&&(D.value=x,this.handleInput(),G&&(D.invalid=!1,this.valid=!0))};
_.a.onClipCreationDisable=function(){this.set("disabled",!0)};
_.a.onClipCreationEnable=function(){this.set("disabled",!1)};
_.a.onClipCreationVisibilityChange=function(x){var G=this;x.visible?requestAnimationFrame(function(){var D;((D=_.kA(G.hostElement).querySelector("#title"))==null?void 0:D.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
CQ.prototype.onValidChanged=CQ.prototype.onValidChanged;CQ.prototype.onValueChanged=CQ.prototype.onValueChanged;CQ.prototype.handleBlur=CQ.prototype.handleBlur;CQ.prototype.handleInput=CQ.prototype.handleInput;CQ.prototype.handleKeyDown=CQ.prototype.handleKeyDown;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],CQ.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],CQ.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],CQ.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],CQ.prototype,"value",void 0);_.q([_.R(),_.N("design:type",Object)],CQ.prototype,"valid",void 0);_.q([_.R(),_.N("design:type",Object)],CQ.prototype,"userChangedValue",void 0);_.q([_.R(),_.N("design:type",Object)],CQ.prototype,"disabled",void 0);_.q([_.oe("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],CQ.prototype,"handleKeyDown",null);
_.q([_.oe("input"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],CQ.prototype,"handleInput",null);_.q([_.oe("blur"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],CQ.prototype,"handleBlur",null);_.q([_.yf("value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],CQ.prototype,"onValueChanged",null);
_.q([_.yf("valid"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],CQ.prototype,"onValidChanged",null);CQ=_.q([_.d({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],CQ);
_.w(CQ,"ytd-clip-creation-text-input-renderer",function(){if(O5f!==void 0)return O5f;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return O5f=x},{mode:1});var X8i;var A5C;var Uw8;var RE6;var Sz4;var Ij=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};x.pendingStoryboardImages_={};x.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];x.tickLabelInterval=30;x.mediumTickInterval=5;x.largeTickInterval=15;x.aboveRulerHeight=32;x.rulerHeight=50;x.smallTickHeight=4;x.mediumTickHeight=8;x.largeTickHeight=16;x.mediaListeners_=
{};return x};
_.m(Ij,_.n);_.a=Ij.prototype;_.a.attached=function(){var x=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(G){G=_.l(["screen and (min-resolution: "+G+")","screen and (max-resolution: "+G+")"]);for(var D=G.next();!D.done;D=G.next()){D=D.value;var K=window.matchMedia(D);K&&(x.mediaListeners_[D]=x.updatePixelRatio_.bind(x),K.addEventListener?K.addEventListener("change",x.mediaListeners_[D]):K.addListener?K.addListener(x.mediaListeners_[D]):delete x.mediaListeners_[D])}})};
_.a.detached=function(){this.setPlayer(null);for(var x=_.l(Object.keys(this.mediaListeners_)),G=x.next();!G.done;G=x.next()){var D=G.value;G=this.mediaListeners_[D];(D=window.matchMedia(D))&&(D.removeEventListener?D.removeEventListener("change",G):D.removeListener&&D.removeListener(G))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.a.onVisibilityChangedAction_=function(x){var G=this;x.visible&&!this.player_&&(x=_.Ns())&&x.getPlayerPromise().then(function(D){G.setPlayer(D)})};
_.a.setPlayer=function(x){x&&this.set("player_",x)};
_.a.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.a.setUpCanvas_=function(){var x=this.rulerWidth,G=this.devicePixelRatio_,D=this.visible;this.set("canvasReady_",!1);if(D&&G!==0){D=this.aboveRulerHeight+this.rulerHeight;var K=_.kA(this.hostElement).querySelector("#ticks");K.width=x*G;K.height=D*G;K.style.width=x+"px";K.style.height=D+"px";K.getContext("2d").scale(G,G);this.set("canvasReady_",!0)}};
_.a.drawRuler_=function(x,G,D,K,z,y,c,W,e,Q,p,V){x&&D&&G&&(x=_.kA(this.hostElement).querySelector("#ticks"),G=x.getContext("2d"),G.clearRect(0,0,x.width,x.height),G.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),G.lineWidth=2,G.beginPath(),G.moveTo(0,this.aboveRulerHeight),G.lineTo(x.width,this.aboveRulerHeight),G.moveTo(0,x.height),G.lineTo(x.width,x.height),G.stroke(),this.drawRulerTicks_(x,y,z,K),this.drawStoryboardImages_(x,D,y,z,K),G.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
G.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(c-y,K,!1),this.rulerHeight),D=this.timeToPixels_(W-y,K,!1),G.fillRect(D,this.aboveRulerHeight,x.width-D,this.rulerHeight),this.drawSpeedLines_(x,y,V))};
_.a.drawRulerTicks_=function(x,G,D,K){var z=x.getContext("2d");z.save();z.lineWidth=1;for(var y=Math.floor(Math.max(0,G-this.tickLabelInterval));y<G+D;y++){z.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var c=(y-G)*K;z.beginPath();z.moveTo(c,x.height);var W=this.smallTickHeight;y%this.largeTickInterval===0?W=this.largeTickHeight:y%this.mediumTickInterval===0&&(W=this.mediumTickHeight);z.lineTo(c,x.height-W);z.stroke();y%this.tickLabelInterval===0&&(z.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),z.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),z.fillText(m6(y),c+4,12),z.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),z.moveTo(c,0),z.lineTo(c,this.aboveRulerHeight),z.stroke())}z.restore()};
_.a.percentToHex_=function(x){x=Math.round(x*255).toString(16);x.length<2&&(x="0"+x);return x};
_.a.drawSpeedLines_=function(x,G,D){var K=x.getContext("2d");K.save();var z=Math.min(25,Math.abs(D)-15)/25,y=x.width*.3*z,c=x.width*-.3,W=x.width*1.3,e=this.aboveRulerHeight;x=x.height;var Q=Math.round(4*z),p=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");p.length<7&&(p="#"+p.substring(1,4).repeat(2));var V=this.percentToHex_(.5+z/2);V=p+V;p+="00";if(z>0)for(z=0;z<Q;z++){var L=c+Math.random()*(W-c),r=e+Math.random()*(x-e),H=y+G%y,O=K.createLinearGradient(L,r,L+H,r);
D<0?(O.addColorStop(0,V),O.addColorStop(.4,V),O.addColorStop(.9,p)):(O.addColorStop(.1,p),O.addColorStop(.6,V),O.addColorStop(1,V));K.strokeStyle=O;K.lineWidth=1;K.beginPath();K.moveTo(L,r);K.lineTo(L+H,r);K.stroke()}K.restore()};
_.a.getStoryboardForTime_=function(x,G,D){D===void 0&&(D=G.getNumberOfStoryboardLevels()-1);x=G.getStoryboardFrameIndex(x,D);return G.getStoryboardFrame(x,D)};
_.a.drawStoryboardImages_=function(x,G,D,K,z){if(!this.disabled){x=x.getContext("2d");var y=this.getStoryboardForTime_(0,G);if(y){var c=y.width/y.columns;y=y.height/y.rows;var W=c/y,e=this.rulerHeight*W;e=this.tickLabelInterval*(W<this.tickLabelInterval*z/this.rulerHeight?1/Math.floor(this.tickLabelInterval*z/e):Math.round(e/(this.tickLabelInterval*z)));var Q=e*z,p=this.rulerHeight,V=Q/this.rulerHeight,L=Math.floor(Math.max(0,D-e));for(L-=L%e;L<D+K;L+=e){var r=this.getStoryboardForTime_(L,G),H=this.getPreloadedStoryboard_(r.url);
if(H){var O=(L-D)*z,A=this.aboveRulerHeight,g=r.column*c,u=r.row*y;if(W<V){var f=p/(Q/W);r=c;f*=y;u+=(y-f)/2}else r=Q/(p*W)*c,f=y,g+=(c-r)/2;x.drawImage(H,g,u,r,f,O,A,Q,p)}else this.fetchStoryboardImage_(r)}}}};
_.a.getPreloadedStoryboard_=function(x){return this.storyboardImages_.find(function(G){if(G.src==x)return!0;var D=G.src.indexOf(x);return D!=-1&&D==G.src.length-x.length})};
_.a.fetchStoryboardImage_=function(x){var G=this,D=this.getPreloadedStoryboard_(x.url),K=this.pendingStoryboardImages_[x.url];D||K!==void 0||(D=new Promise(function(z){var y=new Image(x.width,x.height);y.src=x.url;y.onload=function(){z(y)};
y.onerror=function(){z(null)}}),this.pendingStoryboardImages_[x.url]=D,D.then(function(z){z&&G.push("storyboardImages_",z);
return z}).finally(function(){delete G.pendingStoryboardImages_[x.url]}))};
_.a.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.a.timeToPixels_=function(x,G,D){x*=G;return D===void 0||D?x+"px":x};
_.a.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
Ij.prototype.drawRuler_=Ij.prototype.drawRuler_;Ij.prototype.setUpCanvas_=Ij.prototype.setUpCanvas_;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],Ij.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Ij.prototype,"ytRendererBehavior",void 0);_.q([_.R({value:0}),_.N("design:type",Number)],Ij.prototype,"start",void 0);_.q([_.R({value:30}),_.N("design:type",Number)],Ij.prototype,"end",void 0);
_.q([_.R({value:!1}),_.N("design:type",Boolean)],Ij.prototype,"visible",void 0);_.q([_.R(),_.N("design:type",Object)],Ij.prototype,"player_",void 0);_.q([_.R(),_.N("design:type",Number)],Ij.prototype,"tickSpacing",void 0);_.q([_.R(),_.N("design:type",Number)],Ij.prototype,"windowSizeSec",void 0);_.q([_.R({value:0}),_.N("design:type",Number)],Ij.prototype,"rulerWidth",void 0);_.q([_.R({value:0}),_.N("design:type",Number)],Ij.prototype,"rulerShift",void 0);
_.q([_.R({value:!1}),_.N("design:type",Boolean)],Ij.prototype,"canvasReady_",void 0);_.q([_.R({value:function(){return[]}}),
_.N("design:type",Array)],Ij.prototype,"storyboardImages_",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Ij.prototype,"disabled",void 0);_.q([_.R({value:0}),_.N("design:type",Number)],Ij.prototype,"forceRender_",void 0);_.q([_.R({value:1}),_.N("design:type",Number)],Ij.prototype,"devicePixelRatio_",void 0);_.q([_.R({value:0}),_.N("design:type",Number)],Ij.prototype,"windowSpeed",void 0);
_.q([_.yf("visible","devicePixelRatio_","rulerWidth"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ij.prototype,"setUpCanvas_",null);
_.q([_.yf("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.N("design:type",Function),_.N("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.N("design:returntype")],Ij.prototype,"drawRuler_",null);Ij=_.q([_.HD({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],Ij);
_.w(Ij,"yt-clip-creation-scrubber-canvas",function(){if(Sz4===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);Sz4=x}x=Sz4;return x},
{mode:2});var nkb;var i5O;var jL=function(){var x=_.n.apply(this,arguments)||this;x.start=0;x.end=30;x.visible=!1;x.draggingLeft_=!1;x.draggingRight_=!1;x.draggingRuler_=!1;x.draggingWindow_=!1;x.seekableStart=0;x.seekableEnd=0;x.rulerWidth_=0;x.rulerShift_=0;x.windowSlideSpeed=0;x.disabled=!1;x.initialized=!1;x.durationAccessibilityLabel="";x.activeLoopRange_=!1;x.rulerDragMouseStart_=0;x.rulerDragRulerStart_=0;x.rulerDragStartTime_=0;x.rulerDragEndTime_=0;x.dragMouseLastX_=0;x.scrollInterval_=null;x.scrubberVe_=null;x.boundHandlers_=
{};x.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return x};
_.m(jL,_.n);_.a=jL.prototype;
_.a.created=function(){var x=this;this.JSC$20006_playerEvents=new Map;this.JSC$20006_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$20006_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$20006_playerEvents.set("onStateChange",this.onStateChange_);var G={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(G).forEach(function(D){x.boundHandlers_[D]=G[D].bind(x)})};
_.a.attached=function(){this.activeLoopRange_=!1;_.kA(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.kA(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.BH(156731)};
_.a.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.kA(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.kA(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.a.onVisibilityChangedAction_=function(x){var G=this;x.visible&&!this.player_&&(x=_.Ns())&&x.getPlayerPromise().then(function(D){G.setPlayer(D)})};
_.a.setPlayer=function(x){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20006_playerEvents);x&&(this.set("player_",x),this.ytPlayerListenerBehavior.listenToPlayerEvents(x,this.JSC$20006_playerEvents))};
_.a.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.a.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.a.beginHandleDrag_=function(x){this.disabled||(x.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=x.clientX,x.target===_.kA(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():x.target===_.kA(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.a.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.a.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.a.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.a.beginRulerDrag_=function(x){this.disabled||(x.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=x.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.a.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.a.beginWindowScroll_=function(){var x=this;this.scrollInterval_=setInterval(function(){var G=x.windowSlideSpeed;if(G=_.Uxj(x.start,x.boundedRulerStartLimit_())?G-.1:_.Uxj(x.end,x.boundedRulerEndLimit_())?G+.1:0){var D=x.capRulerOffset_(x.rulerShift_+G);D==x.rulerShift_?G=0:(x.set("rulerShift_",D),_.h$(x.hostElement,"set-fixed-length-range",{start:x.start+G,duration:x.end-x.start}))}x.set("windowSlideSpeed",G)},33)};
_.a.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.a.endDrag_=function(){this.logClick();var x=void 0;this.draggingRight_?x=this.end-1:this.draggingLeft_&&(x=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,x);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))};
_.a.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.a.updateRulerSize_=function(){this.set("rulerWidth_",_.kA(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.a.handleMouseDrag_=function(x){x.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(x):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(x):this.draggingWindow_&&this.handleWindowDrag_(x))};
_.a.handleRulerDrag_=function(x){x=this.pixelsToTime_(x.clientX-this.rulerDragMouseStart_);x=this.capRulerOffset_(this.rulerDragRulerStart_-x);this.set("rulerShift_",x);var G=this.rulerDragStartTime_-(this.rulerDragRulerStart_-x);_.h$(this.hostElement,"set-fixed-length-range",{start:G,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-x)-G})};
_.a.handleWindowDrag_=function(x){var G=x.clientX-this.dragMouseLastX_;this.dragMouseLastX_=x.clientX;x=this.pixelsToTime_(G);_.h$(this.hostElement,"set-fixed-length-range",{start:this.start+x,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.a.capRulerOffset_=function(x){var G=this.seekableStart-this.pixelsToTime_(16),D=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(G,x),D)};
_.a.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.a.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.a.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.a.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.a.handleWindowHandleDrag_=function(x){var G=x.clientX-this.dragMouseLastX_;this.dragMouseLastX_=x.clientX;x=this.pixelsToTime_(G);if(this.draggingLeft_){var D=this.start+x;var K=this.end}else this.draggingRight_&&(D=this.start,K=this.end+x);_.h$(this.hostElement,"set-range",{start:D,end:K,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.a.onVideoProgress_=function(x){this.disabled||(x=this.timeToPixels_(x-this.rulerShift_,this.tickSpacing_),_.kA(this.hostElement).querySelector("#playhead").style.transform="translateX("+x+")")};
_.a.onClipCreationDisable_=function(){this.endDrag_()};
_.a.timeToPixels_=function(x,G,D){x*=G;return D===void 0||D?x+"px":x};
_.a.pixelsToTime_=function(x){return x/this.tickSpacing_};
_.a.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.a.centerRuler_=function(x,G,D){this.set("rulerShift_",this.capRulerOffset_(x+(G-x)/2-D/2))};
_.a.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.a.updateLoopRange_=function(x,G,D,K,z,y,c){x&&(G&&K&&!D?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(x.pauseVideo(),x.seekTo(z,!1,void 0,void 0,50)):this.draggingRight_?(x.pauseVideo(),x.seekTo(y-.1,!1,void 0,void 0,50)):(c!==void 0?x.seekTo(c,!0,void 0,void 0,50):(G=x.getCurrentTime(),G<z||G>y?x.seekTo(z,!0,void 0,void 0,50):x.seekTo(G,!0,void 0,void 0,50)),x.playVideo()),x.setLoopRange({startTimeMs:z*1E3,endTimeMs:y*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(x.getCurrentTime())):
this.activeLoopRange_&&(x.setLoopRange(null),this.activeLoopRange_=!1))};
_.a.updateHandles_=function(){_.kA(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.kA(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.a.updateRuler_=function(){var x=this.end,G=this.start,D=this.draggableStartLimit_(),K=this.draggableEndLimit_();(G<D-.001||x>K+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.a.computeDurationLabel_=function(x,G){return x?x.replace("$clip_length",parseFloat(G).toFixed(1)):""};
_.a.computeDuration_=function(x,G){return this.isValidTime_(x)&&this.isValidTime_(G)&&x<G?G-x:0};
_.a.isValidTime_=function(x){return isNaN(parseFloat(x))||x<0?!1:this.player_?x>=this.seekableStart&&x<=this.seekableEnd:!0};
_.a.computeWindowSizeSec_=function(x,G,D){return Math.min((x||12E4)/1E3,D-G)};
_.a.computeTickSpacing_=function(x,G){return G?G/x:1};
_.a.onDragStateChanged_=function(){_.h$(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.a.centerRangeOnTime_=function(x){var G=this.duration;x=BFf(x-G/2,G,this.seekableStart,this.seekableEnd);_.h$(this.hostElement,"set-fixed-length-range",{start:x.start,duration:x.end-x.start})};
_.a.nearlyLessThan_=function(x,G,D){return x+(D===void 0?1E-6:D)<G};
_.a.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var x=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(x,this.start)||this.nearlyLessThan_(this.end,x))&&this.centerRangeOnTime_(x)}};
_.a.onStateChange_=function(x){this.visible&&!this.disabled&&x==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.a.computeDragState_=function(x,G,D,K){return x?"left":G?"right":D?"ruler":K?"window":"none"};
_.a.logClick=function(){var x=_.CC(),G=_.Fx();x&&G&&this.scrubberVe_&&(_.B("combine_ve_grafts")?_.hz(_.en(),this.scrubberVe_,G):_.RI(x,G,this.scrubberVe_),_.u0(x,this.scrubberVe_))};
jL.prototype.onDragStateChanged_=jL.prototype.onDragStateChanged_;jL.prototype.updateRuler_=jL.prototype.updateRuler_;jL.prototype.updateHandles_=jL.prototype.updateHandles_;jL.prototype.onUpdateLoopRange=jL.prototype.onUpdateLoopRange;jL.prototype.onInitializedChanged_=jL.prototype.onInitializedChanged_;jL.prototype.onVisibleChanged_=jL.prototype.onVisibleChanged_;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],jL.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.I(_.nS.YtPlayerListenerBehavior),_.N("design:type",Object)],jL.prototype,"ytPlayerListenerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],jL.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],jL.prototype,"start",void 0);_.q([_.R(),_.N("design:type",Object)],jL.prototype,"end",void 0);_.q([_.R({computed:"computeDuration_(start, end)"}),_.N("design:type",Number)],jL.prototype,"duration",void 0);
_.q([_.R(),_.N("design:type",String)],jL.prototype,"lengthTemplate",void 0);_.q([_.R({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.N("design:type",String)],jL.prototype,"durationLabel",void 0);_.q([_.R(),_.N("design:type",Object)],jL.prototype,"visible",void 0);_.q([_.R(),_.N("design:type",Object)],jL.prototype,"player_",void 0);_.q([_.R(),_.N("design:type",Object)],jL.prototype,"draggingLeft_",void 0);_.q([_.R(),_.N("design:type",Object)],jL.prototype,"draggingRight_",void 0);
_.q([_.R(),_.N("design:type",Object)],jL.prototype,"draggingRuler_",void 0);_.q([_.R({value:!1}),_.N("design:type",Object)],jL.prototype,"draggingWindow_",void 0);_.q([_.R({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.N("design:type",Number)],jL.prototype,"tickSpacing_",void 0);_.q([_.R(),_.N("design:type",Object)],jL.prototype,"seekableStart",void 0);_.q([_.R(),_.N("design:type",Object)],jL.prototype,"seekableEnd",void 0);
_.q([_.R(),_.N("design:type",Number)],jL.prototype,"windowSizeMs",void 0);_.q([_.R({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.N("design:type",Number)],jL.prototype,"windowSizeSec_",void 0);_.q([_.R(),_.N("design:type",Object)],jL.prototype,"rulerWidth_",void 0);_.q([_.R(),_.N("design:type",Object)],jL.prototype,"rulerShift_",void 0);_.q([_.R(),_.N("design:type",Object)],jL.prototype,"windowSlideSpeed",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],jL.prototype,"disabled",void 0);_.q([_.R(),_.N("design:type",Object)],jL.prototype,"initialized",void 0);_.q([_.R(),_.N("design:type",Object)],jL.prototype,"durationAccessibilityLabel",void 0);_.q([_.R({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.N("design:type",String)],jL.prototype,"dragState",void 0);
_.q([_.yf("visible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jL.prototype,"onVisibleChanged_",null);_.q([_.yf("initialized"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jL.prototype,"onInitializedChanged_",null);_.q([_.yf("player_","visible","disabled","initialized","start","end"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jL.prototype,"onUpdateLoopRange",null);
_.q([_.yf("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jL.prototype,"updateHandles_",null);_.q([_.yf("start","end"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jL.prototype,"updateRuler_",null);
_.q([_.yf("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jL.prototype,"onDragStateChanged_",null);jL=_.q([_.HD({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],jL);
_.w(jL,"yt-clip-creation-scrubber-view",function(){if(i5O===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;nkb===void 0&&(nkb=document.createElement("template"));var K=nkb;D.call(G,K.content.cloneNode(!0),x.content.firstChild);i5O=x}x=i5O;return x},{mode:2});var O6=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};x.startHighlightTimeout=0;x.endHighlightTimeout=0;return x};
_.m(O6,_.n);_.a=O6.prototype;_.a.attached=function(){var x=this;this.startInput.addEventListener("input",function(G){return x.handleStartInput_(G)});
this.endInput.addEventListener("input",function(G){return x.handleEndInput_(G)});
this.startInput.addEventListener("focusout",function(G){return x.handleStartBlur_(G)});
this.endInput.addEventListener("focusout",function(G){return x.handleEndBlur_(G)})};
_.a.setPlayer=function(x){this.set("player_",x)};
_.a.onSetFixedLengthRange_=function(x){var G=x.detail;x=G.start;var D=G.duration,K=G.startLimit;G=G.endLimit;K||(K=this.seekableStart_);G||(G=this.seekableEnd_);x=BFf(x,D,K,G);this.start=x.start;this.end=x.end};
_.a.onSetRange_=function(x){var G=x.detail;x=G.start;var D=G.end,K=G.startLimit;G=G.endLimit;K||(K=this.seekableStart_);G||(G=this.seekableEnd_);if(x=rqY(x,D,K,G,this.minLengthSec,this.maxLengthSec))this.start=x.start,this.end=x.end};
_.a.updateInputs_=function(){var x=this.end,G=this.start;this.startInput.focused||(this.startInput.value=m6(G,!0));this.endInput.focused||(this.endInput.value=m6(x,!0))};
_.a.handleStartInput_=function(x){x=L06(x.target.value);if(x===null)this.set("startValid",!1);else{var G=this.end,D=rqY(x,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);D?(this.set("endWillUpdate",D.end!==G),this.set("startValid",D.start===x)):this.set("startValid",!1)}};
_.a.handleEndInput_=function(x){x=L06(x.target.value);if(x===null)this.set("endValid",!1);else{var G=this.start,D=svi(this.start,x,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);D?(this.set("startWillUpdate",D.start!==G),this.set("endValid",D.end===x)):this.set("endValid",!1)}};
_.a.handleStartBlur_=function(x){x=L06(x.target.value);x===null?this.startInput.value=m6(this.start,!0):this.forceUpdateInputs_(rqY(x,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.a.handleEndBlur_=function(x){x=L06(x.target.value);x===null?this.endInput.value=m6(this.end,!0):this.forceUpdateInputs_(svi(this.start,x,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.a.forceUpdateInputs_=function(x){x&&(this.start=x.start,this.end=x.end);this.startInput.value=m6(this.start,!0);this.endInput.value=m6(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.a.initializeClipRange_=function(){var x=this.seekableEnd_,G=this.seekableStart_,D=this.visible_,K=this.player_;if(!K||!D||G===null||!x)this.set("initialized",!1);else if(!this.initialized){var z=K.getCurrentTime(),y=this.getDefaultLengthSec_();D=K.getVideoData();var c=K.getPlayerState()==1,W=D.isLive;y=Math.min(y,x-G);z=Math.max(0,z);x=W?svi(z-y,z,G,x,this.minLengthSec,this.maxLengthSec):c?BFf(z-y/2,y,G,x):BFf(z,y,G,x);this.start=x.start;this.end=x.end;this.set("initialized",!0);D.isLive&&K.seekTo(x.start);
this.startInput.value=m6(this.start,!0);this.endInput.value=m6(this.end,!0)}};
_.a.onStartChanged_=function(){var x=this;_.h$(this.hostElement,"start-changed",{start:this.start});var G;isNaN((G=this.oldStart)!=null?G:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){x.set("highlightStart",!1);x.startHighlightTimeout=0;x.oldStart=x.start},3E3))};
_.a.onEndChanged_=function(){var x=this;_.h$(this.hostElement,"end-changed",{end:this.end});var G;isNaN((G=this.oldEnd)!=null?G:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){x.set("highlightEnd",!1);x.endHighlightTimeout=0;x.oldEnd=x.end},3E3))};
_.a.onVisibilityChangedAction_=function(x){var G=this;this.set("visible_",x.visible);this.visible_&&!this.player_&&(x=_.Ns())&&x.getPlayerPromise().then(function(D){G.setPlayer(D)})};
_.a.computeMinLengthSec_=function(x){return x/1E3||5};
_.a.computeMaxLengthSec_=function(x){return x/1E3||60};
_.a.computeDefaultLengthSec_=function(x){return x/1E3};
_.a.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.a.computeSeekableStart_=function(x,G){return x&&G?x.getProgressState(1).seekableStart:0};
_.a.computeSeekableEnd_=function(x,G){return x&&G?x.getProgressState(1).seekableEnd:0};
_.a.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.a.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.a.onDragState_=function(x){this.set("highlightStart",x.detail.startChanging);this.set("highlightEnd",x.detail.endChanging)};
O6.prototype.onDragState_=O6.prototype.onDragState_;O6.prototype.onEndChanged_=O6.prototype.onEndChanged_;O6.prototype.onStartChanged_=O6.prototype.onStartChanged_;O6.prototype.initializeClipRange_=O6.prototype.initializeClipRange_;O6.prototype.updateInputs_=O6.prototype.updateInputs_;O6.prototype.onSetRange_=O6.prototype.onSetRange_;O6.prototype.onSetFixedLengthRange_=O6.prototype.onSetFixedLengthRange_;
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],O6.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],O6.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],O6.prototype,"data",void 0);_.q([_.R({value:0}),_.N("design:type",Number)],O6.prototype,"start",void 0);_.q([_.R({value:!0}),_.N("design:type",Boolean)],O6.prototype,"startValid",void 0);
_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],O6.prototype,"startWillUpdate",void 0);_.q([_.R({value:30}),_.N("design:type",Number)],O6.prototype,"end",void 0);_.q([_.R({value:!0}),_.N("design:type",Boolean)],O6.prototype,"endValid",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],O6.prototype,"endWillUpdate",void 0);_.q([_.R({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.N("design:type",Number)],O6.prototype,"minLengthSec",void 0);
_.q([_.R({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.N("design:type",Number)],O6.prototype,"maxLengthSec",void 0);_.q([_.R({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.N("design:type",Number)],O6.prototype,"defaultLengthSec",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],O6.prototype,"visible_",void 0);_.q([_.R(),_.N("design:type",Object)],O6.prototype,"player_",void 0);
_.q([_.R({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.N("design:type",Number)],O6.prototype,"seekableStart_",void 0);_.q([_.R({computed:"computeSeekableEnd_(player_, visible_)"}),_.N("design:type",Number)],O6.prototype,"seekableEnd_",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],O6.prototype,"initialized",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],O6.prototype,"disabled",void 0);
_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],O6.prototype,"highlightStart",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],O6.prototype,"highlightEnd",void 0);_.q([_.cD("#start"),_.N("design:type",HTMLInputElement)],O6.prototype,"startInput",void 0);_.q([_.cD("#end"),_.N("design:type",HTMLInputElement)],O6.prototype,"endInput",void 0);
_.q([_.oe("set-fixed-length-range"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],O6.prototype,"onSetFixedLengthRange_",null);_.q([_.oe("set-range"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],O6.prototype,"onSetRange_",null);_.q([_.yf("start","end"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],O6.prototype,"updateInputs_",null);
_.q([_.yf("player_","visible_","seekableStart_","seekableEnd_"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],O6.prototype,"initializeClipRange_",null);_.q([_.yf("start"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],O6.prototype,"onStartChanged_",null);_.q([_.yf("end"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],O6.prototype,"onEndChanged_",null);
_.q([_.oe("clips-drag-state"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],O6.prototype,"onDragState_",null);O6=_.q([_.HD({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],O6);
_.w(O6,"yt-clip-creation-scrubber-renderer",function(){if(RE6===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;Uw8===void 0&&(Uw8=document.createElement("template"));var K=Uw8;D.call(G,K.content.cloneNode(!0),x.content.firstChild);RE6=x}x=RE6;return x},{mode:2});var X0=function(){var x=_.n.apply(this,arguments)||this;x.player_=null;x.JSC$20020_playerEvents=new Map;x.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return x};
_.m(X0,_.n);_.a=X0.prototype;_.a.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"}}}};
_.a.created=function(){this.JSC$20020_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$20020_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$20020_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$20020_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.a.detached=function(){this.setPlayer(null)};
_.a.onVisibilityChangedAction_=function(x){var G=this,D;if((D=this.data)==null?0:D.externalVideoId){var K;this.videoId=(K=this.data)==null?void 0:K.externalVideoId}this.getPlayer().then(function(z){if(x.visible)G.returnTime=z.getCurrentTime(),G.isAtLiveHead=z.getProgressState().isAtLiveHead;else{var y=G.returnTime;G.isAtLiveHead&&(y=Number.POSITIVE_INFINITY);z.seekTo(y,void 0,void 0,void 0,51)}})};
_.a.getPlayer=function(){var x=this;if(!this.player_){var G=_.Ns();if(G)return G.getPlayerPromise().then(function(D){x.setPlayer(D);return D})}return Promise.resolve(this.player_)};
_.a.setPlayer=function(x){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20020_playerEvents);if(x){this.player_=x;var G;((G=this.data)==null?0:G.externalVideoId)||this.set("videoId",x.getVideoData().video_id||"");var D;(x==null?void 0:(D=x.getPresentingPlayerType)==null?void 0:D.call(x))===2&&(this.set("isAdPlaying",!0),_.xO(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(x,this.JSC$20020_playerEvents)}};
_.a.ready=function(){_.kA(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.a.onTitleChanged_=function(x){this.set("titleValue",x.detail.title)};
_.a.onStartChanged_=function(x){this.set("start",x.detail.start)};
_.a.onEndChanged_=function(x){this.set("end",x.detail.end)};
_.a.onTitleValidChanged_=function(x){this.set("titleValid",x.detail.valid)};
_.a.onStartValidChanged_=function(x){this.set("startValid",x.detail.valid)};
_.a.onEndValidChanged_=function(x){this.set("endValid",x.detail.valid)};
_.a.onVideoDataChange_=function(){var x;if((x=this.data)==null||!x.externalVideoId){var G;this.set("videoId",((G=this.player_)==null?void 0:G.getVideoData().video_id)||"")}};
_.a.computeFormValid_=function(x,G,D,K){return!!(x&&G&&D&&K)};
_.a.computeCancelButton_=function(x,G,D){return x&&_.Y(x,_.$V)?{buttonRenderer:Object.assign({},_.Y(x,_.$V),{isDisabled:G||D})}:null};
_.a.computeSubmitButton_=function(x,G,D){return x&&_.Y(x,_.$V)?{buttonRenderer:Object.assign({},_.Y(x,_.$V),{command:void 0,isDisabled:!this.formValid||G||D})}:null};
_.a.computeSubmitCommand_=function(x){return x||null};
_.a.onSubmit_=function(x){var G=this;x.stopPropagation();x.preventDefault();this.submitCommand_&&(x={},x.comment_text=this.titleValue,x.clip_external_video_id=this.videoId,x.clip_offset_ms=parseInt(this.start*1E3,10),x.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.KW(this.hostElement,[this.submitCommand_,x]).then(function(){G.set("isLoading_",!1)},function(){G.set("isLoading_",!1)}))};
_.a.playerAdStartHandler_=function(){_.xO(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.a.playerAdEndHandler_=function(){_.xO(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.a.onVideoProgress_=function(){var x=this;this.getPlayer().then(function(G){var D,K=(G==null?void 0:(D=G.getPresentingPlayerType)==null?void 0:D.call(G))===2;x.isAdPlaying!==K&&(K?x.playerAdStartHandler_():x.playerAdEndHandler_())})};
X0.prototype.onEndValidChanged_=X0.prototype.onEndValidChanged_;X0.prototype.onStartValidChanged_=X0.prototype.onStartValidChanged_;X0.prototype.onTitleValidChanged_=X0.prototype.onTitleValidChanged_;X0.prototype.onEndChanged_=X0.prototype.onEndChanged_;X0.prototype.onStartChanged_=X0.prototype.onStartChanged_;X0.prototype.onTitleChanged_=X0.prototype.onTitleChanged_;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],X0.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.I(_.nS.YtPlayerListenerBehavior),_.N("design:type",Object)],X0.prototype,"ytPlayerListenerBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],X0.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],X0.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],X0.prototype,"data",void 0);_.q([_.R({value:""}),_.N("design:type",String)],X0.prototype,"titleValue",void 0);
_.q([_.R({value:!1}),_.N("design:type",Boolean)],X0.prototype,"titleValid",void 0);_.q([_.R({value:0}),_.N("design:type",Number)],X0.prototype,"start",void 0);_.q([_.R({value:!0}),_.N("design:type",Boolean)],X0.prototype,"startValid",void 0);_.q([_.R({value:0}),_.N("design:type",Number)],X0.prototype,"end",void 0);_.q([_.R({value:!0}),_.N("design:type",Boolean)],X0.prototype,"endValid",void 0);_.q([_.R({value:""}),_.N("design:type",String)],X0.prototype,"videoId",void 0);
_.q([_.R({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.N("design:type",Boolean)],X0.prototype,"formValid",void 0);_.q([_.R({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.N("design:type",Object)],X0.prototype,"submitButton_",void 0);_.q([_.R({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.N("design:type",Object)],X0.prototype,"submitCommand_",void 0);
_.q([_.R({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.N("design:type",Object)],X0.prototype,"cancelButton_",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],X0.prototype,"isLoading_",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],X0.prototype,"isAdPlaying",void 0);_.q([_.R({value:0}),_.N("design:type",Number)],X0.prototype,"returnTime",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],X0.prototype,"isAtLiveHead",void 0);
_.q([_.oe("title-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],X0.prototype,"onTitleChanged_",null);_.q([_.oe("start-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],X0.prototype,"onStartChanged_",null);_.q([_.oe("end-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],X0.prototype,"onEndChanged_",null);
_.q([_.oe("title-valid-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],X0.prototype,"onTitleValidChanged_",null);_.q([_.oe("start-valid-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],X0.prototype,"onStartValidChanged_",null);_.q([_.oe("end-valid-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],X0.prototype,"onEndValidChanged_",null);
X0=_.q([_.HD({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],X0);
_.w(X0,"yt-clip-creation-renderer",function(){if(A5C===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;X8i===void 0&&(X8i=document.createElement("template"));var K=X8i;D.call(G,K.content.cloneNode(!0),x.content.firstChild);A5C=x}x=A5C;return x},{mode:2});var Ah=function(){return _.n.apply(this,arguments)||this};
_.m(Ah,_.n);Ah.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"}}}};
Ah.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(x){return x.hasOwnProperty("clipCreationRenderer")})&&_.xO(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
Ah.prototype.onPanelContentVisibleChanged=Ah.prototype.onPanelContentVisibleChanged;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Ah.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Ah.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.AG.YtVisibilityBehavior),_.N("design:type",Object)],Ah.prototype,"ytVisibilityBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],Ah.prototype,"ytdReduxBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],Ah.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ah.prototype,"panelContentVisible",void 0);_.q([_.yf("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ah.prototype,"onPanelContentVisibleChanged",null);Ah=_.q([_.d({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],Ah);
_.w(Ah,"ytd-clip-section-renderer",function(){if(I$c!==void 0)return I$c;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return I$c=x},{mode:1});var gk4;var U6=function(){return _.n.apply(this,arguments)||this};
_.m(U6,_.n);_.a=U6.prototype;
_.a.onKeyDown=function(x){if(this.snippetElements.length!==0&&(x=x.keyCode,x===38||x===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);x===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.$1(this.highlightedIndex,-1,this.snippetElements.length);x=this.snippetElements.length;var G=this.highlightedIndex%x;this.highlightedIndex=G*x<0?G+x:G;x=this.snippetElements[this.highlightedIndex];this.highlightSnippet(x);this.ensureVisible(x)}};
_.a.onKeyUp=function(x){var G=this;Go4(x)&&(x.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.Fj.cancelJob(this.inputTimerId),this.inputTimerId=_.Fj.addLowPriorityJob(function(){G.typedValue&&(G.fetchSnippets(G.typedValue),G.logInputGesture(G.data))},1E3))};
_.a.onClick=function(x){(x=_.jVo(x.target,null,"snippet-item"))&&this.selectSnippet(x)};
_.a.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.a.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.a.ready=function(){var x=this;this.inputElement.addEventListener("focus",function(){x.snippetsWrapper.style.removeProperty("display")})};
_.a.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.a.getSourceTimelines=function(){if(!this.data)return[];var x=[];if(this.data.searchInVideoSources)for(var G=_.l(this.data.searchInVideoSources),D=G.next();!D.done;D=G.next())D=D.value,D==="SEARCH_IN_VIDEO_SOURCE_ASR"?x.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):D==="SEARCH_IN_VIDEO_SOURCE_OCR"&&x.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return x};
_.a.fetchSnippets=function(x){var G=_.xO(this.hostElement,"yt-get-current-video-id-action")[0],D=this.getSourceTimelines();x={getSearchInVideoCommand:{externalVideoId:G,query:x!=null?x:"",sourceTimelines:D},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.Eo().resolve(_.hm).resolveCommand(x,{form:{element:this.hostElement}})};
_.a.filterSnippets=function(x,G){var D=this;if(G){this.filteredSnippets=(0,_.YS.unsafeClone)(x);var K=RegExp(_.npC(G),"i");this.filteredSnippets=this.filteredSnippets.filter(function(c){return K.test(D.ytRendererBehavior.getSimpleString(c.snippet))});
x=_.l(this.filteredSnippets);for(var z=x.next();!z.done;z=x.next()){z=z.value;var y=this.ytRendererBehavior.getSimpleString(z.snippet);z.snippet={runs:[{text:y.substring(0,y.toLowerCase().indexOf(G))},{text:y.substring(y.toLowerCase().indexOf(G),y.toLowerCase().indexOf(G)+G.length),bold:!0},{text:y.substring(y.toLowerCase().indexOf(G)+G.length,y.length)}]}}}else this.filteredSnippets=x};
_.a.onUpdateSearchInVideoResults=function(x){if(!(this.snippets.length>0)){var G,D,K;if((K=(G=_.Y(x,ZKY))==null?void 0:(D=G.results)==null?void 0:D.length)!=null&&K){var z;this.filteredSnippets=this.snippets=((z=_.Y(x,ZKY))==null?void 0:z.results).map(function(y){var c,W,e;return{startMs:y==null?void 0:(c=y.searchInVideoResultRenderer)==null?void 0:c.startMs,startTimeText:y==null?void 0:(W=y.searchInVideoResultRenderer)==null?void 0:W.startTimeText,snippet:y==null?void 0:(e=y.searchInVideoResultRenderer)==
null?void 0:e.snippet}})}}};
_.a.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};
_.a.highlightSnippet=function(x){x.classList.add("highlighted")};
_.a.removeSnippetHighlight=function(x){x.classList.remove("highlighted")};
_.a.selectSnippet=function(x){this.typedValue=String(x.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(x);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.a.ensureVisible=function(x){var G=this.snippetsWrapper.scrollTop,D=G+this.snippetsWrapper.clientHeight,K=x.offsetTop-this.snippetsWrapper.offsetTop;x=K+x.clientHeight;K<G?this.snippetsWrapper.scrollTop-=G-K:x>D&&(this.snippetsWrapper.scrollTop+=x-D)};
_.a.seekPlayer=function(x){var G,D;return _.T(function(K){if(K.nextAddress==1){if(!x)return K.jumpTo(0);G=Number(x.dataset.startOffset);return _.Z(K,_.vH().getPlayerPromise(),3)}D=K.yieldResult;D.seekTo(G/1E3,!0);D.wakeUpControls();_.c5(K)})};
_.a.logInputGesture=function(x){var G=_.CC();G&&(x==null?0:x.trackingParams)&&_.dB(G,_.V2(x.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.a.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Xt("typed-value-changed",this.typedValue))};
_.a.updateTypedValueFromBinding=function(x){this.typedValue=x.currentTarget.value};
U6.prototype.typedValueChangedForBinding=U6.prototype.typedValueChangedForBinding;U6.prototype.dataChanged=U6.prototype.dataChanged;U6.prototype.panelContentVisibleChanged=U6.prototype.panelContentVisibleChanged;U6.prototype.onClick=U6.prototype.onClick;U6.prototype.onKeyUp=U6.prototype.onKeyUp;U6.prototype.onKeyDown=U6.prototype.onKeyDown;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],U6.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],U6.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],U6.prototype,"data",void 0);_.q([_.R({value:[]}),_.N("design:type",Array)],U6.prototype,"snippets",void 0);_.q([_.R({value:[]}),_.N("design:type",Array)],U6.prototype,"filteredSnippets",void 0);_.q([_.R({value:[]}),_.N("design:type",Array)],U6.prototype,"snippetElements",void 0);
_.q([_.cD("#siv-input"),_.N("design:type",HTMLElement)],U6.prototype,"inputElement",void 0);_.q([_.cD("#siv-snippets-wrapper"),_.N("design:type",HTMLElement)],U6.prototype,"snippetsWrapper",void 0);_.q([_.R(),_.N("design:type",String)],U6.prototype,"typedValue",void 0);_.q([_.R({value:-1}),_.N("design:type",Number)],U6.prototype,"highlightedIndex",void 0);_.q([_.oe("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[_.oY]),_.N("design:returntype")],U6.prototype,"onKeyDown",null);
_.q([_.oe("keyup"),_.N("design:type",Function),_.N("design:paramtypes",[_.oY]),_.N("design:returntype")],U6.prototype,"onKeyUp",null);_.q([_.oe("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],U6.prototype,"onClick",null);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],U6.prototype,"panelContentVisible",void 0);
_.q([_.yf("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],U6.prototype,"panelContentVisibleChanged",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],U6.prototype,"dataChanged",null);_.q([_.yf("typedValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],U6.prototype,"typedValueChangedForBinding",null);
U6=_.q([_.d({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],U6);
_.w(U6,"ytd-search-in-video-renderer",function(){if(gk4!==void 0)return gk4;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return gk4=x},{mode:1});var uyk;var Rj=function(){return _.n.apply(this,arguments)||this};
_.m(Rj,_.n);Rj.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
Rj.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]]"}}}}}};
Rj.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var x,G,D,K,z=(G=_.Y((x=this.data)==null?void 0:x.onClickCommand,_.e1))==null?void 0:(D=G.item)==null?void 0:(K=D.notificationTextRenderer)==null?void 0:K.successResponseText;z&&_.udL(this.hostElement,z)}};
_.Nq.Object.defineProperties(Rj.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var x,G,D,K;return this.isProductPlaceholder&&((x=this.data)==null?void 0:(G=x.hiddenProductOptions)==null?void 0:G.showDropCountdown)&&!!((D=this.data)==null?0:(K=D.hiddenProductOptions)==null?0:K.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var x;return!this.isProductPlaceholder&&!((x=this.data)==null?0:x.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var x,G;return!((x=this.data)==null?0:x.priceReplacementText)&&!((G=this.data)==null||!G.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Rj.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Rj.prototype,"componentBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Rj.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Rj.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0}),_.U("isProductPlaceholder"),_.N("design:type",Object),_.N("design:paramtypes",[])],Rj.prototype,"useCenterLayoutContainer",null);_.q([_.R({computed:"computeButtonOverride(data)"}),_.N("design:type",Object)],Rj.prototype,"buttonOverride",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Rj.prototype,"isProductPlaceholder",null);
_.q([_.U("isProductPlaceholder"),_.N("design:type",Object),_.N("design:paramtypes",[])],Rj.prototype,"showDropCountdown",null);_.q([_.U("isProductPlaceholder","data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Rj.prototype,"showBrandName",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Rj.prototype,"showPriceReplacementText",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Rj.prototype,"showPrice",null);
_.q([_.U("isProductPlaceholder"),_.N("design:type",Object),_.N("design:paramtypes",[])],Rj.prototype,"showMetadata",null);Rj=_.q([_.d({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],Rj);
_.w(Rj,"ytd-product-list-item-renderer",function(){if(uyk!==void 0)return uyk;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return uyk=x},{mode:1});var dwf;var SL=function(){return _.n.apply(this,arguments)||this};
_.m(SL,_.n);SL.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
SL.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
SL.prototype.panelContentVisibleChanged=function(){var x=this,G;return _.T(function(D){if(D.nextAddress==1)return x.playerApi?D.jumpTo(2):_.Z(D,_.vH().getPlayerPromise(),3);D.nextAddress!=2&&(x.playerApi=D.yieldResult);(G=x.playerApi)==null||G.productsInVideoVisibilityUpdated(!!x.panelContentVisible);_.c5(D)})};
SL.prototype.panelContentVisibleChanged=SL.prototype.panelContentVisibleChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],SL.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],SL.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],SL.prototype,"panelContentVisible",void 0);_.q([_.R(),_.N("design:type",Object)],SL.prototype,"data",void 0);
_.q([_.yf("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],SL.prototype,"panelContentVisibleChanged",null);SL=_.q([_.d({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],SL);
_.w(SL,"ytd-product-list-renderer",function(){if(dwf!==void 0)return dwf;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return dwf=x},{mode:1});var w8T;var nQ=function(){var x=_.n.apply(this,arguments)||this;x.hideTimestamps=!!_.xt("hide-transcript-timestamps");x.currentCueIndex=-1;x.flatCues=[];x.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};x.TEST_ONLY={getFlatCues:function(){return x.flatCues}};
return x};
_.m(nQ,_.n);_.a=nQ.prototype;_.a.hideTimestampsChanged=function(){_.hi("hide-transcript-timestamps",this.hideTimestamps)};
_.a.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.a.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.a.dataChanged=function(){var x;if((x=this.data)!=null&&x.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;x=_.l(this.data.cueGroups);for(var G=x.next();!G.done;G=x.next()){G=_.l(_.Y(G.value,M6x).cues);for(var D=G.next();!D.done;D=G.next())this.flatCues.push(Number(_.Y(D.value,Q26).startOffsetMs))}}};
_.a.onYtPlayerTimeChanged=function(x){if(!(x<0)){for(var G=this.currentCueIndex,D=G;;){var K=D>=0?this.flatCues[D]/1E3:-1;if(x+.5<K)--D;else if(K=D+1<this.flatCues.length?this.flatCues[D+1]/1E3:Infinity,x+.5>K)D+=1;else break}D!==G&&(G>=0&&((x=this.getCueElement(G))&&x.classList.remove("active"),(G=this.getCueGroupElement(G))&&G.classList.remove("active")),(G=this.getCueElement(D))&&G.classList.add("active"),(G=this.getCueGroupElement(D))&&G.classList.add("active"),this.currentCueIndex=D,this.isHovered||
this.scrollElementToTop(D))}};
_.a.scrollElementToTop=function(x){x=this.getCueElement(x>=3?x-3:0);this.hostElement.scrollTop=Math.min(x.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.a.getCueElement=function(x){return _.kA(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[x]+'"]')};
_.a.getCueGroupElement=function(x){return(x=this.getCueElement(x))&&x.parentElement?x.parentElement.parentElement:null};
_.a.onTap=function(x){var G=_.uo(x);x.target.classList.contains("cue")&&this.seekCueElement(G)};
_.a.onKeyPress=function(x){x.keyCode==13&&(x=_.jVo(x.target,null,"cue"))&&this.seekCueElement(x)};
_.a.seekCueElement=function(x){x=Number(x.getAttribute("start-offset"));_.xO(this.hostElement,"yt-transcript-player-seek",[x/1E3])};
_.a.onMouseEnter=function(){this.isHovered=!0};
_.a.onMouseLeave=function(){this.isHovered=!1};
nQ.prototype.onMouseLeave=nQ.prototype.onMouseLeave;nQ.prototype.onMouseEnter=nQ.prototype.onMouseEnter;nQ.prototype.onKeyPress=nQ.prototype.onKeyPress;nQ.prototype.onTap=nQ.prototype.onTap;nQ.prototype.dataChanged=nQ.prototype.dataChanged;nQ.prototype.hideTimestampsChanged=nQ.prototype.hideTimestampsChanged;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],nQ.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],nQ.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],nQ.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],nQ.prototype,"hideTimestamps",void 0);_.q([_.R(),_.N("design:type",Boolean)],nQ.prototype,"isHovered",void 0);_.q([_.yf("hideTimestamps"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nQ.prototype,"hideTimestampsChanged",null);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nQ.prototype,"dataChanged",null);_.q([_.oe("tap"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],nQ.prototype,"onTap",null);_.q([_.oe("keypress"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],nQ.prototype,"onKeyPress",null);
_.q([_.oe("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nQ.prototype,"onMouseEnter",null);_.q([_.oe("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nQ.prototype,"onMouseLeave",null);nQ=_.q([_.d({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],nQ);
_.w(nQ,"ytd-transcript-body-renderer",function(){if(w8T!==void 0)return w8T;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return w8T=x},{mode:1});var qzO;var gm=function(){var x=_.n.apply(this,arguments)||this;x.darkerPanels=_.B("web_watch_darker_panels");return x};
_.m(gm,_.n);gm.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],gm.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],gm.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],gm.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],gm.prototype,"darkerPanels",void 0);gm=_.q([_.d({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],gm);
_.w(gm,"ytd-transcript-footer-renderer",function(){if(qzO!==void 0)return qzO;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return qzO=x},{mode:1});var NZ6;var vkc;var uf=function(){var x=_.n.apply(this,arguments)||this;x.systemIcons=_.B("kevlar_system_icons");x.showClearButton=!1;return x};
_.m(uf,_.n);_.a=uf.prototype;_.a.handleInput=function(x){var G=this;x.target.value.length?_.Ao(this,"ytdTranscriptSearchBoxSearch",function(){G.emitSearchEvent(x)},500):(_.pOL(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=x.target.value.length>0};
_.a.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.a.handleClick=function(){var x,G=(x=this.data)==null?void 0:x.trackingParams;G&&_.DO(_.en(),G)};
_.a.handleClear=function(){_.pOL(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var x,G,D=(G=_.Y((x=this.data)==null?void 0:x.clearButton,_.$V))==null?void 0:G.trackingParams;D&&_.DO(_.en(),D);this.clear()};
_.a.emitSearchEvent=function(x){_.h$(this.hostElement,"yt-transcript-search-box-search",{query:x.target.value});var G,D;(x=(D=_.Y((G=this.data)==null?void 0:G.searchButton,_.$V))==null?void 0:D.trackingParams)&&_.DO(_.en(),x)};
_.a.emitClearEvent=function(){_.h$(this.hostElement,"yt-transcript-search-box-clear")};
_.Nq.Object.defineProperties(uf.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.kA(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],uf.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],uf.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],uf.prototype,"systemIcons",void 0);uf=_.q([_.d({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],uf);
_.w(uf,"ytd-transcript-search-box-renderer",function(){if(vkc!==void 0)return vkc;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return vkc=x},{mode:1});var J58;var f$b;var dm=function(){return _.n.apply(this,arguments)||this};
_.m(dm,_.n);dm.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var x,G;this.sectionHeaderAriaLabel=(x=this.data)==null?void 0:(G=x.accessibility)==null?void 0:G.accessibilityData.label}};
dm.prototype.fireSelectedEvent=function(x){_.h$(this.hostElement,"ytd-transcript-section-header",{startMs:x})};
dm.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
dm.prototype.handleKeyPress=function(x){this.data&&x.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.Nq.Object.defineProperties(dm.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var x,G;return(G=(x=this.data)==null?void 0:x.enableTappableTranscriptHeader)!=null?G:!1}}});
dm.prototype.dataChanged=dm.prototype.dataChanged;_.q([_.R(),_.N("design:type",Object)],dm.prototype,"data",void 0);_.q([_.R(),_.N("design:type",String)],dm.prototype,"sectionHeaderAriaLabel",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],dm.prototype,"enableTappableTranscriptHeader",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dm.prototype,"dataChanged",null);
dm=_.q([_.d({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],dm);
_.w(dm,"ytd-transcript-section-header-renderer",function(){if(f$b!==void 0)return f$b;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return f$b=x},{mode:1});var t3T;var krY;var wm=function(){var x=_.n.apply(this,arguments)||this;x.isEditMode=!1;x.touchCaptionsEnabled=!1;x.deleteCaptionCorrectionPopupCommand=null;x.voteCaptionCorrectionPopupCommand=null;x.roundedContainer=!0;x.mouseOver=!1;x.textChanged=!1;x.messages={suggest_correction:_.Wg("suggest_correction",void 0,"Edit caption"),suggested_caption:_.Wg("suggested_caption",void 0,"Suggested caption"),submit_correction:_.Wg("submit_correction",void 0,"Submit for review"),cancel_correction:_.Wg("cancel_correction",
void 0,"Cancel"),replay_segment:_.Wg("replay_segment",void 0,"Re-play segment"),delete_correction:_.Wg("delete_correction",void 0,"Delete correction")};x.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return x};
_.m(wm,_.n);_.a=wm.prototype;_.a.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)};
_.a.handleDelete=function(x){if(this.deleteCaptionCorrectionPopupCommand){var G=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);G&&this.ytdOpenPopupBehavior.openPopup(G);x.stopPropagation()}};
_.a.handleSubmit=function(x){if(this.data&&this.data.submitCaptionCorrectionCommand&&(x.stopPropagation(),this.textChanged)){var G;x=(G=_.Y(this.data.submitCaptionCorrectionCommand,_.uaZ))==null?void 0:G.params;G=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:x,correctionText:String(this.ironTextAreaElement.value),originalText:_.u7(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(G);this.isEditMode=!1}};
_.a.handleUpdateSegmentText=function(x){(x=_.Y(x,XJ6))&&x.targetId&&this.data&&x.targetId===this.data.targetId&&(x.userCorrection&&(this.editedText=x.userCorrection),x.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.u7(this.data.snippet)),x.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=x.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=x.voteCaptionCorrectionPopupCommand?
x.voteCaptionCorrectionPopupCommand:null,x.accessibility&&(this.segmentAriaLabel=x.accessibility.accessibilityData.label))};
_.a.handleCancel=function(x){this.isEditMode=!1;x.stopPropagation();this.logClientVe(159409)};
_.a.handleEditSegmentCommand=function(x){(x=_.Y(x,OKf))&&x.targetId&&this.data&&x.targetId===this.data.targetId&&this.handleEdit()};
_.a.handleEditButtonClick=function(x){this.data&&(this.handleEdit(),x.stopPropagation())};
_.a.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var x;(x=this.ironTextAreaElement.textarea)==null||x.focus();this.logClientVe(159407)}};
_.a.handleMouseEnter=function(){this.mouseOver=!0};
_.a.handleMouseLeave=function(){this.mouseOver=!1};
_.a.handleReplay=function(x){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),x.stopPropagation(),this.logClientVe(159408))};
_.a.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()))};
_.a.handleKeypress=function(x){this.data&&(this.isEditMode?x.stopPropagation():this.isEnterPress(x)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(x)&&this.logClientVe(138758))};
_.a.handleTextboxClick=function(x){x.stopPropagation()};
_.a.handleTextboxKeydown=function(x){this.isControlEnterPress(x)?this.handleSubmit(x):x.key==="Escape"&&this.handleCancel(x)};
_.a.handleTextboxKeyup=function(){this.textChanged=_.u7(this.latestText)!==String(this.ironTextAreaElement.value)};
_.a.fireSelectedEvent=function(x){_.h$(this.hostElement,"yt-transcript-segment-selected",{startMs:x})};
_.a.fireReplayEvent=function(x,G){_.h$(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(x-100,0),endMs:G})};
_.a.fireEditEvent=function(x,G){_.h$(this.hostElement,"yt-transcript-segment-edit",{startMs:x,endMs:G})};
_.a.isEnterPress=function(x){return x.key==="Enter"||x.code==="Enter"||x.code==="NumpadEnter"||x.keyCode===13?!0:!1};
_.a.isControlEnterPress=function(x){var G=x.key==="Enter"||x.code==="Enter"||x.code==="NumpadEnter"||x.keyCode===13;return(x.ctrlKey||x.metaKey)&&G};
_.a.isCopyPress=function(x){var G=x.ctrlKey;return x.key==="c"&&G};
_.a.logClick=function(){var x,G=(x=this.data)==null?void 0:x.trackingParams;G&&_.DO(_.en(),G)};
_.a.logClientVe=function(x){_.G$(_.en(),_.BH(x))};
_.Nq.Object.defineProperties(wm.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}}});
wm.prototype.handleMouseLeave=wm.prototype.handleMouseLeave;wm.prototype.handleMouseEnter=wm.prototype.handleMouseEnter;wm.prototype.dataChanged=wm.prototype.dataChanged;_.q([_.I(_.tG.YtActionHandlerBehavior),_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],wm.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.i9),_.N("design:type",Object)],wm.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],wm.prototype,"ytRendererBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],wm.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],wm.prototype,"isEditMode",void 0);_.q([_.R(),_.N("design:type",Object)],wm.prototype,"touchCaptionsEnabled",void 0);_.q([_.R(),_.N("design:type",Object)],wm.prototype,"editedText",void 0);_.q([_.R(),_.N("design:type",Object)],wm.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.q([_.R(),_.N("design:type",Object)],wm.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.q([_.R(),_.N("design:type",String)],wm.prototype,"segmentAriaLabel",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],wm.prototype,"roundedContainer",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],wm.prototype,"mouseOver",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],wm.prototype,"textChanged",void 0);_.q([_.R(),_.N("design:type",Object)],wm.prototype,"messages",void 0);
_.q([_.cD("#suggestion"),_.N("design:type",Object)],wm.prototype,"ironTextAreaElement",void 0);_.q([_.U("data","editedText"),_.N("design:type",Object),_.N("design:paramtypes",[])],wm.prototype,"latestText",null);_.q([_.U("touchCaptionsEnabled","isEditMode"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],wm.prototype,"enableEditButton",null);
_.q([_.U("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],wm.prototype,"enableUndoButton",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wm.prototype,"dataChanged",null);_.q([_.oe("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wm.prototype,"handleMouseEnter",null);
_.q([_.oe("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wm.prototype,"handleMouseLeave",null);wm=_.q([_.d({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],wm);
_.w(wm,"ytd-transcript-segment-renderer",function(){if(krY!==void 0)return krY;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return krY=x},{mode:1});var qR=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};x.isError=!1;x.darkerPanels=_.B("web_watch_darker_panels");x.useParentMaxHeight=_.B("web_watch_transscript_use_parent_max_height");x.segmentOffsets=[];x.segmentIndex=-1;return x};
_.m(qR,_.n);_.a=qR.prototype;_.a.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"}}}}};
_.a.segmentsChanged=function(){this.updateOffsets()};
_.a.onYtPlayerTimeChanged=function(x){for(var G=this.segmentIndex,D=G;;){if(D>=0){var K=this.segmentOffsets[D].start;var z=this.segmentOffsets[D].isAutoScrollable}else K=-1,z=!0;var y=x+.5;if(!z){K=D+1<this.segmentOffsets.length?this.segmentOffsets[D+1].start:Infinity;if(y>=K){D+=1;continue}D=-1;break}if(y<K)K=D-1>=0&&this.segmentOffsets[D-1].isAutoScrollable,z=D===0||K?1:2,D-=z;else if(z=D+1<this.segmentOffsets.length&&this.segmentOffsets[D+1].isAutoScrollable?1:2,K=D+z<this.segmentOffsets.length?
this.segmentOffsets[D+z].start:Infinity,y>K)D+=z;else{if(D<0)break;D<this.segmentOffsets.length&&y>this.segmentOffsets[D].end&&(D=-1);break}}if(G!==D){if(G>=0){var c;(c=this.getSegmentElement(G))==null||c.classList.remove("active")}this.segmentIndex=D;if(!(D<0)){var W;(W=this.getSegmentElement(D))==null||W.classList.add("active");this.isHovered||this.scrollElementToTop(D)}}};
_.a.handleSegmentEdit=function(x){x.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=x.target,_.xO(this.hostElement,"yt-transcript-player-edit",[x.detail.startMs/1E3,x.detail.endMs/1E3]))};
_.a.handleSegmentSelected=function(x){_.xO(this.hostElement,"yt-transcript-player-seek",[x.detail.startMs/1E3])};
_.a.handleSegmentReplay=function(x){_.xO(this.hostElement,"yt-transcript-player-replay",[x.detail.startMs/1E3,x.detail.endMs/1E3])};
_.a.handleSectionHeaderSelected=function(x){_.xO(this.hostElement,"yt-transcript-player-seek",[x.detail.startMs/1E3])};
_.a.onMouseEnter=function(){this.isHovered=!0};
_.a.onMouseLeave=function(){this.isHovered=!1};
_.a.onRetryButtonClick=function(){_.h$(this.hostElement,"transcript-retry-button-click")};
_.a.getSegmentElement=function(x){return _.kA(this.hostElement).querySelector(":nth-child("+(x+1)+")")};
_.a.scrollElementToTop=function(x){x=this.getSegmentElement(x>=2?x-2:0);this.hostElement.scrollTop=Math.min(x.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.a.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(x){var G,D=(G=x.transcriptSegmentRenderer)!=null?G:x.transcriptSectionHeaderRenderer;return{start:Number(D.startMs)/1E3,end:Number(D.endMs)/1E3,isAutoScrollable:x.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.a.clearHighlightedSegments=function(){var x=_.kA(this.hostElement);x=_.l(x.querySelectorAll("ytd-transcript-segment-renderer"));for(var G=x.next();!G.done;G=x.next())G.value.classList.remove("active")};
_.Nq.Object.defineProperties(qR.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var x,G;return((x=this.data)==null?void 0:x.searchResultSegments)||((G=this.data)==null?void 0:G.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
qR.prototype.onMouseLeave=qR.prototype.onMouseLeave;qR.prototype.onMouseEnter=qR.prototype.onMouseEnter;qR.prototype.handleSectionHeaderSelected=qR.prototype.handleSectionHeaderSelected;qR.prototype.handleSegmentReplay=qR.prototype.handleSegmentReplay;qR.prototype.handleSegmentSelected=qR.prototype.handleSegmentSelected;qR.prototype.handleSegmentEdit=qR.prototype.handleSegmentEdit;qR.prototype.segmentsChanged=qR.prototype.segmentsChanged;
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],qR.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],qR.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],qR.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],qR.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],qR.prototype,"isError",void 0);
_.q([_.R(),_.N("design:type",Object)],qR.prototype,"noResultLabel",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],qR.prototype,"darkerPanels",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],qR.prototype,"useParentMaxHeight",void 0);_.q([_.U("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],qR.prototype,"segments",null);
_.q([_.U("segments","noResultLabel"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],qR.prototype,"displayNoResults",null);_.q([_.yf("segments"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qR.prototype,"segmentsChanged",null);_.q([_.oe("yt-transcript-segment-edit"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],qR.prototype,"handleSegmentEdit",null);
_.q([_.oe("yt-transcript-segment-selected"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],qR.prototype,"handleSegmentSelected",null);_.q([_.oe("yt-transcript-segment-replay"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],qR.prototype,"handleSegmentReplay",null);
_.q([_.oe("ytd-transcript-section-header"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],qR.prototype,"handleSectionHeaderSelected",null);_.q([_.oe("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qR.prototype,"onMouseEnter",null);_.q([_.oe("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qR.prototype,"onMouseLeave",null);
qR=_.q([_.d({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],qR);
_.w(qR,"ytd-transcript-segment-list-renderer",function(){if(t3T!==void 0)return t3T;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return t3T=x},{mode:1});var NR=function(){var x=_.n.apply(this,arguments)||this;x.hideTimestamps=!!_.xt("hide-transcript-timestamps");x.isLoadingTranscripts=!1;x.darkerPanels=_.B("web_watch_darker_panels");x.isError=!1;x.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return x};
_.m(NR,_.n);_.a=NR.prototype;_.a.headerChanged=function(){var x,G;this.baseGetTranscriptsCommand=(G=_.Y((x=this.data)==null?void 0:x.header,APi))==null?void 0:G.onTextChangeCommand};
_.a.bodyChanged=function(){var x=this.getBodyRenderer();x&&(x.initialSegments&&(this.initialTranscriptsRenderer=x),x.noResultLabel&&(this.noResultLabel=x.noResultLabel),x.retryLabel&&(this.retryLabel=x.retryLabel))};
_.a.detached=function(){this.clearSearchBoxText()};
_.a.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.a.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"}}}};
_.a.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.a.fireSearch=function(x){var G=this;if(x){var D=x.detail.query;if(this.baseGetTranscriptsCommand){var K;x=(K=_.Y(this.baseGetTranscriptsCommand,_.HrJ))==null?void 0:K.params;var z;K=_.Y((z=this.data)==null?void 0:z.footer,pJ8);var y;if((z=(y=_.Y(K==null?void 0:K.languageMenu,CJ6))==null?void 0:y.subMenuItems)&&z.length>0&&(y=z.find(function(e){return e.selected}))){var c,W;
x=(c=y.continuation)==null?void 0:(W=c.reloadContinuationData)==null?void 0:W.continuation}c=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:x,searchQuery:D}});this.ytComponentBehavior.resolveCommand(c,{commandController:{onServerError:function(){G.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});hdc(this.ytContinuationHandlerBehavior,function(){return D===G.getCurrentSearchBoxText()})}}};
_.a.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.a.onRetryButtonClick=function(){this.isError=!1;var x={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:x}))};
_.a.hideTimestampsChanged=function(){_.hi("hide-transcript-timestamps",this.hideTimestamps)};
_.a.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.a.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.a.handleSignalActionCopyTranscript=function(){var x=this,G=this.getBodyRenderer();G&&(G=((G==null?void 0:G.searchResultSegments)||(G==null?void 0:G.initialSegments)||[]).map(function(D){return _.Y(D,RI4)}).filter(function(D){return!!D}).map(function(D){return{snippet:D.snippet||{runs:[{text:""}]},
startTimeText:D.startTimeText||{simpleText:""}}}).map(function(D){var K=(D.snippet.runs||[]).reduce(function(z,y){return z+y.text},"");
return x.hideTimestamps?K:D.startTimeText.simpleText+" "+K}).join("\n"),this.copyToClipboard(G))};
_.a.copyToClipboard=function(x){navigator.clipboard&&navigator.clipboard.writeText(x)};
_.a.getCurrentSearchBoxText=function(){var x;return(x=this.searchBox)==null?void 0:x.value};
_.a.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.a.getBodyRenderer=function(){var x;return _.Y((x=this.data)==null?void 0:x.body,UQk)};
_.a.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.Nq.Object.defineProperties(NR.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.kA(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
NR.prototype.hideTimestampsChanged=NR.prototype.hideTimestampsChanged;NR.prototype.searchCleared=NR.prototype.searchCleared;NR.prototype.fireSearch=NR.prototype.fireSearch;NR.prototype.onReloadContinuationFinish=NR.prototype.onReloadContinuationFinish;NR.prototype.bodyChanged=NR.prototype.bodyChanged;NR.prototype.headerChanged=NR.prototype.headerChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],NR.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],NR.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],NR.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.Oh),_.N("design:type",Object)],NR.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],NR.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],NR.prototype,"hideTimestamps",void 0);
_.q([_.R(),_.N("design:type",Object)],NR.prototype,"isLoadingTranscripts",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],NR.prototype,"darkerPanels",void 0);_.q([_.R(),_.N("design:type",Object)],NR.prototype,"isError",void 0);_.q([_.yf("data.header"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NR.prototype,"headerChanged",null);
_.q([_.Z6("data.body"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NR.prototype,"bodyChanged",null);_.q([_.oe("yt-reload-continuation-finish"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NR.prototype,"onReloadContinuationFinish",null);_.q([_.oe("yt-transcript-search-box-search"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],NR.prototype,"fireSearch",null);
_.q([_.oe("yt-transcript-search-box-clear"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NR.prototype,"searchCleared",null);_.q([_.yf("hideTimestamps"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NR.prototype,"hideTimestampsChanged",null);NR=_.q([_.d({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],NR);
_.w(NR,"ytd-transcript-search-panel-renderer",function(){if(J58!==void 0)return J58;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return J58=x},{mode:1});var vj=function(){var x=_.n.apply(this,arguments)||this;x.player=null;x.playerPollJobId=0;return x};
_.m(vj,_.n);_.a=vj.prototype;_.a.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.a.onLoadReloadContinuation=function(x){_.B("enable_att_for_transcript_request_on_web_client")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:x.target.data.continuation}}):(x={clickTrackingParams:x.target.data.clickTrackingParams,getTranscriptEndpoint:{params:x.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.Eo().resolve(_.hm).resolveCommand(x,{form:{element:this.hostElement}}))};
_.a.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"}}}};
_.a.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.a.attached=function(){this.updatePlayerListening()};
_.a.detached=function(){this.updatePlayerListening()};
_.a.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.a.startPlayerListening=function(){var x=this,G;return _.T(function(D){if(D.nextAddress==1)return(G=_.Ns())?_.Z(D,G.getPlayerPromise(),2):D.return();x.player=D.yieldResult;x.playerPollJobId=_.Fj.addLowPriorityJob(function(){x.getPlayerVideoProgress()},1E3);
x.player.addEventListener("onCueRangeEnter",function(K){x.onCueRangeEnter(K)});
x.player.addEventListener("onCueRangeExit",function(K){x.onCueRangeExit(K)});
x.player.addEventListener("onStateChange",function(K){x.onPlayerStateChange(K)});
x.player.addEventListener("SEEK_TO",function(K){x.onPlayerSeek(K)});
_.c5(D)})};
_.a.getPlayerVideoProgress=function(){var x=this;_.Fj.cancelJob(this.playerPollJobId);if(this.player){var G=this.player.getCurrentTime();_.xO(this.hostElement,"yt-player-time-changed",[G])}this.playerPollJobId=_.Fj.addLowPriorityJob(function(){x.getPlayerVideoProgress()},1E3)};
_.a.stopPlayerListening=function(){this.player=null;_.Fj.cancelJob(this.playerPollJobId)};
_.a.onPlayerStateChange=function(x){x===2&&this.removePendingCue()};
_.a.onPlayerSeek=function(x){var G;if(G=this.pendingReplayCueId)G=this.pendingReplayCueId,G=x===(_.B("web_transcript_cue_id_killswitch")?Number(G):Number(G.split("_")[1]));G||this.removePendingCue()};
_.a.onCueRangeEnter=function(x){mAf(x)&&(this.pendingReplayCueId=x)};
_.a.onCueRangeExit=function(x){mAf(x)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.a.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.a.onYtTranscriptPlayerSeek=function(x){this.player&&this.player.seekTo(x,!0)};
_.a.onYtTranscriptPlayerReplay=function(x,G){this.player&&(this.player.addCueRange(Yyk(x),x,G),this.player.seekTo(x,!0),this.player.playVideo())};
_.a.onYtTranscriptPlayerEdit=function(x,G){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(Yyk(x),x,G),this.player.seekTo(x,!0))};
vj.prototype.onLoadReloadContinuation=vj.prototype.onLoadReloadContinuation;vj.prototype.panelContentVisibleChanged=vj.prototype.panelContentVisibleChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],vj.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],vj.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],vj.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],vj.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],vj.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],vj.prototype,"panelContentVisible",void 0);_.q([_.yf("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vj.prototype,"panelContentVisibleChanged",null);
_.q([_.oe("yt-load-reload-continuation"),_.N("design:type",Function),_.N("design:paramtypes",[Object]),_.N("design:returntype")],vj.prototype,"onLoadReloadContinuation",null);vj=_.q([_.d({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],vj);
_.w(vj,"ytd-transcript-renderer",function(){if(NZ6!==void 0)return NZ6;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return NZ6=x},{mode:1});var PYx;var Ekf;var Jh=function(){return _.n.apply(this,arguments)||this};
_.m(Jh,_.n);Jh.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.h$(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.zl(this.hostElement,[this.data.clickCommand],this.hostElement))};
Jh.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.mO)()+_.XY)+"px)"};
Jh.prototype.updateShouldHideFromBinding=function(x){this.shouldHide=x.detail.value};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Jh.prototype,"rendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Jh.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Boolean)],Jh.prototype,"shouldHide",void 0);Jh=_.q([_.d({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],Jh);
_.w(Jh,"ytd-ad-engagement-panel-banner-renderer",function(){if(Ekf!==void 0)return Ekf;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Ekf=x},{mode:_.Ge("kevlar_poly_si_batch_j070")?1:2});var hEf;var fQ=function(){var x=_.n.apply(this,arguments)||this;x.modernPanels=_.B("kevlar_watch_modern_panels");x.buttonUpdate=_.B("web_modern_buttons");x.adsSemanticText=_.B("enable_ads_web_ep_buenos_aires_and_padding_fix");return x};
_.m(fQ,_.n);fQ.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.q([_.R(),_.N("design:type",Object)],fQ.prototype,"data",void 0);_.q([_.R({computed:"computeHideDefaultAdBadge(data)"}),_.N("design:type",Boolean)],fQ.prototype,"hideDefaultAdBadge",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],fQ.prototype,"modernPanels",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],fQ.prototype,"buttonUpdate",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],fQ.prototype,"adsSemanticText",void 0);
fQ=_.q([_.d({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],fQ);
_.w(fQ,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(hEf!==void 0)return hEf;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return hEf=x},{mode:1});var xKc;var th=function(){var x=_.n.apply(this,arguments)||this;x.darkerPanels=_.B("web_watch_darker_panels");x.enableSqueezebackPanels=_.B("web_shorts_enable_squeezeback_panels");x.enableAnchoredPanel=_.B("desktop_shorts_v2_anchored_panel");x.modernPanels=_.B("kevlar_watch_modern_panels");x.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return x};
_.m(th,_.n);_.a=th.prototype;_.a.computeAdsInfoButton=function(){if(_.B("web_modern_buttons")){var x,G;return(G=_.Y((x=this.data)==null?void 0:x.subtitleComplex,V6b))==null?void 0:G.adInfoRenderer}};
_.a.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}}}}}};
_.a.collapsedChanged=function(){var x;(x=this.data)!=null&&x.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.B("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.a.focus=function(x){this.titleElement&&_.vS(this.titleElement,x)};
_.a.computeTitleAriaLabel=function(x){var G=[];if(x.title){var D,K;G.push(this.ytRendererBehavior.getSimpleString(x.title)||((D=x.title.accessibility)==null?void 0:(K=D.accessibilityData)==null?void 0:K.label))}x.contextualInfo&&G.push(this.ytRendererBehavior.getSimpleString(x.contextualInfo));return G.join(" ")};
_.a.onHeaderClick=function(x){this.shouldTriggerHeaderClick(x)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.h$(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.zl(this.hostElement,[this.data.onClickCommand],this.hostElement)):(x=this.getVisibilityToggleButton())&&x.click())};
_.a.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var x=_.Y(this.data.visibilityButton,_.$V)||_.Y(this.data.visibilityButton,_.Fg);x&&this.ytRendererBehavior.logExplicitClick(x)}};
_.a.getVisibilityToggleButton=function(){var x=_.kA(this.hostElement).querySelector("#visibility-button").firstElementChild;return(x==null?void 0:x.is)==="ytd-toggle-button-renderer"?x:null};
_.a.shouldTriggerHeaderClick=function(x){return!_.u_(_.gA(x),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.a.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(x){x=_.Y(x,_.l3i);this.targetId&&(x==null?void 0:x.targetId)===this.targetId&&(x=x.navigationButton)&&this.set("data.navigationButton",x)};
_.Nq.Object.defineProperties(th.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.B("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var x;return!!(((x=this.entity)==null?0:x.isActionButtonHidden)||this.hideActionButton)}}});
th.prototype.collapsedChanged=th.prototype.collapsedChanged;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],th.prototype,"actionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],th.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],th.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],th.prototype,"ytdReduxBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],th.prototype,"data",void 0);_.q([_.R(),_.N("design:type",String)],th.prototype,"targetId",void 0);_.q([_.R(),_.N("design:type",Boolean)],th.prototype,"collapsed",void 0);_.q([_.R(),_.N("design:type",Boolean)],th.prototype,"hideActionButton",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],th.prototype,"shortsPanel",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],th.prototype,"liveChatEngagementPanel",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],th.prototype,"darkerPanels",void 0);_.q([_.cD("#title"),_.N("design:type",HTMLElement)],th.prototype,"titleElement",void 0);_.q([_.R({computed:"computeAdsInfoButton(data)"}),_.N("design:type",Object)],th.prototype,"adsInfoButton",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],th.prototype,"enableSqueezebackPanels",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],th.prototype,"enableAnchoredPanel",void 0);_.q([_.R({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(x,G){return _.zm(x.entities,"engagementPanelTitleHeaderEntity",G)}}),
_.N("design:type",Object)],th.prototype,"entity",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],th.prototype,"modernPanels",void 0);_.q([_.R({reflectToAttribute:!0}),_.U("targetId"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],th.prototype,"adsSemanticText",null);_.q([_.Z6("collapsed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],th.prototype,"collapsedChanged",null);
_.q([_.U("entity","hideActionButton"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],th.prototype,"isActionButtonHidden",null);th=_.q([_.d({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],th);
_.w(th,"ytd-engagement-panel-title-header-renderer",function(){if(xKc!==void 0)return xKc;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return xKc=x},{mode:1});var G5O;var ks=function(){return _.n.apply(this,arguments)||this};
_.m(ks,_.n);ks.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],ks.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],ks.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],ks.prototype,"data",void 0);ks=_.q([_.d({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],ks);
_.w(ks,"ytd-macro-markers-info-item-renderer",function(){if(G5O!==void 0)return G5O;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return G5O=x},{mode:1});var DKj;var axj=function(x,G,D,K,z,y){_.Ya.call(this);var c=this;this.JSC$20122_containerElement=x;this.hostElement=G;this.supportedSyncItems=D;this.syncEntityKey=K;this.options=z;this.renderLazyListItems=y;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;KNf(this);zBf(this);this.JSC$20122_scrollAnimation=new _.C8(function(W){x.scrollTop=W});
_.WZ(this,this.JSC$20122_scrollAnimation);this.addOnDisposeCallback(function(){c.exitBrowsingMode(!1);c.activeItem&&c.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.m(axj,_.Ya);var KNf=function(x){var G=_.la(_.Eo().resolve(_.$t),function(D){return D.entities.markersEngagementPanelSyncEntity||{}},function(D,K){var z;
D[x.syncEntityKey]!==K[x.syncEntityKey]&&((z=D[x.syncEntityKey])==null?void 0:z.activeItemIndex)!==void 0&&x.updatePanelActiveItem(D[x.syncEntityKey].activeItemIndex)});
x.unsubscribeFromTimedMarkersListSyncEntity=G;x.addOnDisposeCallback(G);oNk(x)},oNk=function(x){var G=_.Eo().resolve(_.$t);
G=_.MvE(G.getState(),x.syncEntityKey);(G==null?void 0:G.activeItemIndex)!==void 0&&(G=x.getItemByIndex(G.activeItemIndex))&&x.setActiveItem(G)},zBf=function(x){var G=new _.Jc(x.onScroll,50,x);
_.WZ(x,G);var D=function(){G.fire()};
x.JSC$20122_containerElement.addEventListener("scroll",D);x.addOnDisposeCallback(function(){x.JSC$20122_containerElement.removeEventListener("scroll",D)})};
_.a=axj.prototype;
_.a.updatePanelActiveItem=function(x){var G=this.getItemByIndex(x);if(G){if(this.setActiveItem(G),this.contentVisible)if(this.browsingMode){var D;((D=this.options)==null?void 0:D.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(x=yLc(this),G.offsetTop<this.JSC$20122_containerElement.clientHeight+this.JSC$20122_containerElement.scrollTop&&x&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));lxj(this)}else this.scrollToItem(G)}else _.O9(new _.LL("Could not find "+this.supportedSyncItems+
" sync child to set active.",x,this.JSC$20122_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.a.getItemByIndex=function(x){var G;(G=this.renderLazyListItems)==null||G.call(this,x);G=this.JSC$20122_containerElement.querySelectorAll(this.supportedSyncItems);if(G.length>x)return G[x]};
_.a.setActiveItem=function(x){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));x.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=x};
_.a.scrollToItem=function(x){x=this.getScrollPositionForItem(x);this.JSC$20122_containerElement.scrollTop!==x&&this.JSC$20122_scrollAnimation.start(this.JSC$20122_containerElement.scrollTop,x,300)};
_.a.getScrollPositionForItem=function(x){if(this.JSC$20122_containerElement.querySelectorAll(this.supportedSyncItems)[0]===x)return 0;var G,D=((G=this.options)==null?0:G.percentOffset)?this.JSC$20122_containerElement.clientHeight*this.options.percentOffset:0;x=_.ji(x).y+this.JSC$20122_containerElement.scrollTop-(_.ji(this.JSC$20122_containerElement).y+D);return Math.max(0,Math.min(x,this.JSC$20122_containerElement.scrollHeight-this.JSC$20122_containerElement.offsetHeight))};
_.a.onScroll=function(){this.activeItemBelowSyncPosition=yLc(this);if(this.activeItem&&!this.JSC$20122_scrollAnimation.isAnimating()&&Math.abs(this.JSC$20122_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var x;switch((x=this.options)==null?void 0:x.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!cLk(this));lxj(this);break;default:this.enterBrowsingMode(!0)}}};
_.a.enterBrowsingMode=function(x){var G=this,D,K;return _.T(function(z){if(z.nextAddress==1){if(G.browsingMode)return z.return();G.browsingMode=!0;x&&G.hostElement.classList.add("browsing-mode");G.playerExitBrowsingModeListener=function(){G.exitBrowsingMode(!1)};
return _.Z(z,_.xL(),2)}D=z.yieldResult;(K=D)==null||K.addEventListener("SEEK_TO",G.playerExitBrowsingModeListener);_.c5(z)})};
_.a.exitBrowsingMode=function(x){x=x===void 0?!0:x;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),x&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.a.removePlayerSeekListener=function(){var x=this,G,D;return _.T(function(K){if(K.nextAddress==1)return x.playerExitBrowsingModeListener?_.Z(K,_.xL(),3):K.jumpTo(0);G=K.yieldResult;(D=G)==null||D.removeEventListener("SEEK_TO",x.playerExitBrowsingModeListener);x.playerExitBrowsingModeListener=void 0;_.c5(K)})};
var lxj=function(x){var G;((G=x.options)==null?void 0:G.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(cLk(x)?x.hostElement.classList.remove("browsing-mode"):x.activeItem&&x.hostElement.classList.add("browsing-mode"))},yLc=function(x){if(!x.activeItem)return!1;
var G,D=((G=x.options)==null?0:G.percentOffset)?x.JSC$20122_containerElement.clientHeight*x.options.percentOffset:0;return x.activeItem.offsetTop>=x.JSC$20122_containerElement.scrollTop+D},cLk=function(x){if(!x.activeItem)return!1;
var G=x.activeItem.offsetTop+14<=x.JSC$20122_containerElement.scrollTop+x.JSC$20122_containerElement.clientHeight;return x.activeItem.offsetTop+x.activeItem.clientHeight-14>=x.JSC$20122_containerElement.scrollTop&&G};
axj.prototype.panelContentVisibleChanged=function(x){(this.contentVisible=x)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var Twk=function(x,G){x.syncEntityKey=G;var D;(D=x.unsubscribeFromTimedMarkersListSyncEntity)==null||D.call(x);KNf(x)},WNx=function(x,G){x.options=G};var Pj=function(){var x=_.n.apply(this,arguments)||this;x.browsingMode=!1;x.modern=_.B("web_button_rework");x.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return x};
_.m(Pj,_.n);_.a=Pj.prototype;_.a.activeItemChanged=function(){if(!_.B("synced_panel_scrolling_controller")){var x;((x=this.syncEntity)==null?void 0:x.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.a.created=function(){var x=this;_.B("synced_panel_scrolling_controller")||(this.JSC$20126_scrollAnimation=new _.C8(function(G){x.contents.scrollTop=G}),this.boundExitBrowsingMode=function(){x.exitBrowsingMode(!1)})};
_.a.detached=function(){if(_.B("synced_panel_scrolling_controller")){var x;(x=this.scrollController)==null||x.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.a.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"}}}};
_.a.dataChanged=function(){var x=this;_.B("synced_panel_scrolling_controller")?_.w1(this,function(){if(x.scrollController){var G;(G=x.scrollController)==null||G.exitBrowsingMode(!1);var D,K,z;(K=x.scrollController)==null||Twk(K,(z=(D=x.data)==null?void 0:D.syncModelEntityKey)!=null?z:"default-macro-markers-list-renderer-entity-key");var y,c,W;(W=x.scrollController)==null||WNx(W,{percentOffset:(y=x.data)==null?void 0:y.selectedItemAlignmentPercentOffset,floatingPillType:(c=x.data)==null?void 0:c.floatingPillType})}else{var e,
Q,p,V;x.scrollController=new axj(x.contents,x.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(V=(e=x.data)==null?void 0:e.syncModelEntityKey)!=null?V:"default-macro-markers-list-renderer-entity-key",{percentOffset:(Q=x.data)==null?void 0:Q.selectedItemAlignmentPercentOffset,floatingPillType:(p=x.data)==null?void 0:p.floatingPillType},function(L){x.renderLazyListItems(L)})}x.scrollController.panelContentVisibleChanged(!!x.panelContentVisible)}):this.exitBrowsingMode()};
_.a.computeButtonShape=function(){var x=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){x.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.a.computeSyncEnabled=function(x){return!(x==null||!x.syncButtonLabel)};
_.a.renderLazyListItems=function(x){for(var G=this.contents.children,D=0,K=0;K<G.length;K++){var z=void 0;(z=G[K].ytLazyListBehavior)==null||z.fillRemainingListItems();var y=void 0,c=void 0;z=_.Y((y=this.data)==null?void 0:(c=y.contents)==null?void 0:c[K],_.FLZ);c=y=void 0;if((y=z)==null?0:(c=y.contents)==null?0:c.length)D+=z.contents.length;if(D>=x)break}};
_.a.getItemByIndex=function(x){this.renderLazyListItems(x);var G=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(G.length>x)return G[x]};
_.a.setActiveItem=function(x){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);x.active!==void 0&&(x.active=!0);this.currentActiveItem=x};
_.a.handleSetActivePanelItemAction=function(x){if((x=_.Y(x,TSc))&&this.panelTargetId===x.panelTargetId){x=x.itemIndex;if(_.B("synced_panel_scrolling_controller")){var G,D;var K=(D=(G=this.data)==null?void 0:G.syncModelEntityKey)!=null?D:"default-macro-markers-list-renderer-entity-key"}else{var z;K=(z=this.data)==null?void 0:z.syncModelEntityKey}if(K){var y;((y=this.syncEntity)==null?void 0:y.activeItemIndex)!==x&&this.ytdReduxBehavior.dispatch(_.cq("markersEngagementPanelSyncEntity",K,{key:K,activeItemIndex:x}))}else this.updatePanelActiveItem(x)}};
_.a.updatePanelActiveItem=function(x){var G=this.getItemByIndex(x);G?(this.setActiveItem(G),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(G)):_.O9(new _.LL("Could not find ytd-macro-markers-list-renderer sync child to set active.",x,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.a.scrollToItem=function(x){x=this.getScrollPositionForItem(x);this.contents.scrollTop!==x&&this.JSC$20126_scrollAnimation.start(this.contents.scrollTop,x,300)};
_.a.getScrollPositionForItem=function(x){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===x)return 0;x=_.ji(x).y+this.contents.scrollTop-_.ji(this.contents).y-this.getStickyHeaderHeight(x);return Math.min(x,this.contents.scrollHeight-this.contents.offsetHeight)};
_.a.getStickyHeaderHeight=function(x){if(x.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var G,D,K;return(K=(G=x.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(D=G.header)==null?void 0:D.offsetHeight)!=null?K:0}return 0};
_.a.onScroll=function(){_.B("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$20126_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.a.enterBrowsingMode=function(){var x=this;return _.T(function(G){if(G.nextAddress==1){if(x.browsingMode)return G.return();x.browsingMode=!0;return _.Z(G,_.vH().getPlayerPromise(),2)}x.player=G.yieldResult;x.player.addEventListener("SEEK_TO",x.boundExitBrowsingMode);_.c5(G)})};
_.a.exitBrowsingMode=function(x){this.browsingMode&&(this.browsingMode=!1,(x===void 0||x)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.a.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.a.onSyncClick=function(){if(_.B("synced_panel_scrolling_controller")){var x;(x=this.scrollController)==null||x.exitBrowsingMode()}else this.exitBrowsingMode()};
_.a.panelContentVisibleChanged=function(){if(_.B("synced_panel_scrolling_controller")){var x;(x=this.scrollController)==null||x.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
Pj.prototype.panelContentVisibleChanged=Pj.prototype.panelContentVisibleChanged;Pj.prototype.dataChanged=Pj.prototype.dataChanged;Pj.prototype.activeItemChanged=Pj.prototype.activeItemChanged;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],Pj.prototype,"actionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Pj.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Pj.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],Pj.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Pj.prototype,"data",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Pj.prototype,"useCustomColors",void 0);_.q([_.R({computed:"computeSyncEnabled(data)"}),_.N("design:type",Boolean)],Pj.prototype,"syncEnabled",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],Pj.prototype,"panelTargetId",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],Pj.prototype,"panelContentVisible",void 0);_.q([_.cD("#contents"),_.N("design:type",HTMLElement)],Pj.prototype,"contents",void 0);_.q([_.cD("#sync-container"),_.N("design:type",HTMLElement)],Pj.prototype,"syncContainer",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Pj.prototype,"browsingMode",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],Pj.prototype,"modern",void 0);_.q([_.R({selectorArgs:["data.syncModelEntityKey"],selector:_.MvE}),_.N("design:type",Object)],Pj.prototype,"syncEntity",void 0);_.q([_.yf("syncEntity.activeItemIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pj.prototype,"activeItemChanged",null);
_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pj.prototype,"dataChanged",null);_.q([_.yf("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pj.prototype,"panelContentVisibleChanged",null);Pj=_.q([_.d({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],Pj);
_.w(Pj,"ytd-macro-markers-list-renderer",function(){if(DKj!==void 0)return DKj;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return DKj=x},{mode:1});var eBf;var E6=function(){return _.n.apply(this,arguments)||this};
_.m(E6,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],E6.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],E6.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],E6.prototype,"data",void 0);E6=_.q([_.d({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],E6);
_.w(E6,"ytd-error-corrections-section-item-renderer",function(){if(eBf!==void 0)return eBf;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return eBf=x},{mode:1});var ZIY;var hh=function(){return _.n.apply(this,arguments)||this};
_.m(hh,_.n);hh.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],hh.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],hh.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],hh.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],hh.prototype,"data",void 0);hh=_.q([_.d({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],hh);
_.w(hh,"ytd-error-corrections-section-renderer",function(){if(ZIY!==void 0)return ZIY;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return ZIY=x},{mode:1});var Mo4;var xe=function(){return _.n.apply(this,arguments)||this};
_.m(xe,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],xe.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],xe.prototype,"componentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],xe.prototype,"data",void 0);xe=_.q([_.d({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],xe);
_.w(xe,"ytd-topic-link-renderer",function(){if(Mo4!==void 0)return Mo4;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Mo4=x},{mode:1});var Q3c;var GL=function(){var x=_.n.apply(this,arguments)||this;x.modern=_.B("kevlar_modern_sd_v2");x.modernLockupV2=_.B("modernize_structured_description_playlist_lockups_v2");x.modernTypography=_.B("web_modern_typography");return x};
_.m(GL,_.n);GL.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"}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],GL.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],GL.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],GL.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],GL.prototype,"modern",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],GL.prototype,"modernLockupV2",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],GL.prototype,"modernTypography",void 0);GL=_.q([_.d({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],GL);
_.w(GL,"ytd-video-description-course-section-renderer",function(){if(Q3c!==void 0)return Q3c;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Q3c=x},{mode:1});var p46;var Dj=function(){var x=_.n.apply(this,arguments)||this;x.modern=_.B("kevlar_modern_sd_v2");x.modernTypography=_.B("web_modern_typography");return x};
_.m(Dj,_.n);Dj.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"}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Dj.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Dj.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Dj.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Dj.prototype,"modern",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Dj.prototype,"modernTypography",void 0);
Dj=_.q([_.d({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],Dj);
_.w(Dj,"ytd-video-description-files-section-renderer",function(){if(p46!==void 0)return p46;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return p46=x},{mode:1});var Vof;var Kc=function(){return _.n.apply(this,arguments)||this};
_.m(Kc,_.n);Kc.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"}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Kc.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Kc.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Kc.prototype,"data",void 0);Kc=_.q([_.d({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],Kc);
_.w(Kc,"ytd-video-description-gaming-section-renderer",function(){if(Vof!==void 0)return Vof;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Vof=x},{mode:1});var bIx;var zL=function(){var x=_.n.apply(this,arguments)||this;x.isExpanded=!1;return x};
_.m(zL,_.n);zL.prototype.computeHasDefaultMetadataEndpoint=function(x){var G;x=x==null?void 0:(G=x.defaultMetadata)==null?void 0:G.runs;return!(!x||x.length!==1||!x[0].navigationEndpoint)};
zL.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.Nq.Object.defineProperties(zL.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],zL.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],zL.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],zL.prototype,"isExpanded",void 0);_.q([_.R({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],zL.prototype,"hasDefaultMetadataEndpoint",void 0);
_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],zL.prototype,"isExpandable",null);_.q([_.U("data","isExpandable","isExpanded"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],zL.prototype,"showExpandedMetadata",null);zL=_.q([_.d({is:"ytd-info-row-renderer",disableElementRegistration:!0})],zL);
_.w(zL,"ytd-info-row-renderer",function(){if(bIx!==void 0)return bIx;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return bIx=x},{mode:1});var LNT;var a$=function(){var x=_.n.apply(this,arguments)||this;x.currentIndex=0;x.supportComponentResize=!0;x.modern=_.B("kevlar_modern_sd_v2");x.JSC$20152_lastScrollContainerWidth=NaN;return x};
_.m(a$,_.n);_.a=a$.prototype;
_.a.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"}}}};
_.a.getItemsPath=function(){return"videoLockups"};
_.a.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.a.onIronResize=function(){this.updateVideoLockupStyles()};
_.a.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.a.updateVideoLockupStyles=function(){var x;this.JSC$20152_scrollContainer!==void 0&&(x=this.videoLockups)!=null&&x.length&&(x=this.JSC$20152_scrollContainer.clientWidth,x!==this.JSC$20152_lastScrollContainerWidth&&(this.JSC$20152_lastScrollContainerWidth=x,_.K7(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(x*.8,415)+"px"}),_.h$(this.hostElement,"iron-resize")))};
_.Nq.Object.defineProperties(a$.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var x=[],G;if((G=this.data)==null||!G.carouselLockups)return x;G=_.l(this.data.carouselLockups);for(var D=G.next();!D.done;D=G.next()){D=D.value;var K=void 0;((K=_.Y(D,gxf))==null?0:K.videoLockup)&&x.push(_.Y(D,gxf).videoLockup)}return x}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.videoLockups)==null||!x.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var x=[],G;if((G=this.data)==null||!G.carouselLockups)return x;var D;return(D=_.Y(this.data.carouselLockups[this.scrollCount],gxf))==null?void 0:D.infoRows}}});
a$.prototype.dataChanged=a$.prototype.dataChanged;a$.prototype.onIronResize=a$.prototype.onIronResize;a$.prototype.hiddenChanged=a$.prototype.hiddenChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],a$.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],a$.prototype,"componentBehavior",void 0);_.q([_.I(_.tp.YtdHorizontalListBehavior),_.N("design:type",Object)],a$.prototype,"ytdHorizontalListBehavior",void 0);
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],a$.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],a$.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],a$.prototype,"inlineStructuredDescription",void 0);_.q([_.R({value:2}),_.N("design:type",Number)],a$.prototype,"initialCount",void 0);_.q([_.R(),_.N("design:type",Object)],a$.prototype,"currentIndex",void 0);
_.q([_.R(),_.N("design:type",Number)],a$.prototype,"scrollCount",void 0);_.q([_.R(),_.N("design:type",Object)],a$.prototype,"supportComponentResize",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],a$.prototype,"contentHidden",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],a$.prototype,"modern",void 0);_.q([_.cD("#scroll-container"),_.N("design:type",HTMLDivElement)],a$.prototype,"JSC$20152_scrollContainer",void 0);
_.q([_.yf("contentHidden"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],a$.prototype,"hiddenChanged",null);_.q([_.U("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],a$.prototype,"videoLockups",null);_.q([_.U("videoLockups"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],a$.prototype,"hasVideoLockups",null);
_.q([_.oe("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],a$.prototype,"onIronResize",null);_.q([_.U("data","scrollCount"),_.N("design:type",Object),_.N("design:paramtypes",[])],a$.prototype,"infoRows",null);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],a$.prototype,"dataChanged",null);a$=_.q([_.d({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],a$);
_.w(a$,"ytd-video-description-music-section-renderer",function(){if(LNT!==void 0)return LNT;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return LNT=x},{mode:_.Ge("kevlar_poly_si_batch_j081")?1:2});var BwT;var o$=function(){var x=_.n.apply(this,arguments)||this;x.modern=_.B("kevlar_modern_sd_v2");x.modernTypography=_.B("web_modern_typography");return x};
_.m(o$,_.n);o$.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],o$.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],o$.prototype,"ytRendererBehavior",void 0);_.q([_.R({}),_.N("design:type",Object)],o$.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],o$.prototype,"modern",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],o$.prototype,"modernTypography",void 0);
o$=_.q([_.d({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],o$);
_.w(o$,"ytd-video-description-transcript-section-renderer",function(){if(BwT!==void 0)return BwT;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return BwT=x},{mode:1});var rLc;_.tn(_.Nv(function(x){var G=_.lA(_.bPE,function(){return x.data().firstProviderLinkStatusEntityKey}),D=_.lA(_.bPE,function(){return x.data().secondProviderLinkStatusEntityKey}),K=function(){var z,y;
return((z=G())==null?void 0:z.linked)||((y=D())==null?void 0:y.linked)};
return _.M("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.M(_.vq,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return x.data().sectionTitle}}),_.M(_.vq,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return K()?x.data().connectedMessage:x.data().notConnectedMessage}}),_.M(_.b,{cond:K,
then:function(){return _.M(_.bA,{data:function(){return x.data().connectedButton}},{buttonViewModel:function(z){return _.M(_.Cs,{data:z.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.M(_.b,{cond:function(){return!K()},
then:function(){return _.M(_.bA,{data:function(){return x.data().notConnectedButton}},{buttonViewModel:function(z){return _.M(_.Cs,{data:z.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Ri"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.ik}});_.tn(_.Nv(function(x){var G=x.data;return _.M("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.M("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.M(_.vq,{text:function(){return G().sectionTitle}})),_.M("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.M(_.vq,{text:function(){return G().bodyHeader}})),_.M("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.M(_.vq,{text:function(){return G().bodyText}})),_.M(_.b,
{cond:function(){return G().attributionText},
then:function(){return _.M("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.M(_.vq,{text:function(){return G().attributionText}}))}}))},"Si"),"how-this-was-made-section-view-model",{props:{data:_.ik}});_.tn(_.Nv(function(x){return _.M("yt-video-description-youchat-section-view-model",{class:_.ym("ytVideoDescriptionYouchatSectionViewModelHost")},_.M("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.M(_.vq,{text:function(){return x.data().sectionTitle}})),_.M("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.M(_.vq,{text:function(){return x.data().subHeaderText}})),_.M("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.M(_.Cs,{data:function(){return _.Y(x.data().primaryButton,
_.Ls)}})))},"Ti"),"yt-video-description-youchat-section-view-model",{props:{data:_.ik}});var y_=function(){var x=_.n.apply(this,arguments)||this;x.modern=_.B("kevlar_modern_sd_v2");x.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return x};
_.m(y_,_.n);_.a=y_.prototype;
_.a.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}}}}}};
_.a.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.a.dataChanged=function(){var x,G;this.hasDescriptionOnly=!(((x=this.data)==null?void 0:(G=x.items)==null?void 0:G.length)!==1||!_.Y(this.data.items[0],ulT))};
_.a.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.a.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.a.autoFocusDescription=function(){var x;((x=_.Eo().resolve(_.P6(_.Ee)))==null?0:x.isKeyBoardInUse())&&this.description&&_.Ju(this.description)};
_.a.resize=function(){if(_.B("kevlar_disable_sd_resize"))this.JSC$20160_cardList&&_.h$(this.JSC$20160_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.h$(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.h$(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.a.scrollToSection=function(x){if(x=this.getSectionElement(x))_.xO(this.hostElement,"yt-scroll-to-watch-element",[x]),x.focus()};
_.a.getSectionElement=function(x){switch(x){case "infocards-item-section":var G;return(G=this.infocardsSection)!=null?G:null;case "transcript-item-section":var D;return(D=this.transcriptSection)!=null?D:null;case "how-this-was-made-section-item-section":var K;return(K=this.howThisWasMadeSection)!=null?K:null;case "files-item-section":var z;return(z=this.filesSection)!=null?z:null;default:return null}};
_.a.handleSetActiveItemAction=function(x){var G=_.Y(x,TSc),D=G&&(G==null?void 0:G.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20160_cardList;if(G&&D){x=this.currentActiveChapter;var K=this.currentActiveProblem;G=D==null?void 0:D.getItemByIndex(G.itemIndex);var z=D=!0;G&&(G.active=!0,G.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(D=x!==G,z=!1,this.currentActiveChapter=G):(G==null?void 0:G.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(D=!1,z=K!==G,this.currentActiveProblem=G));x&&D&&(x.active=!1);K&&z&&(K.active=!1)}};
_.Nq.Object.defineProperties(y_.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.B("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
y_.prototype.onYtExpanderMoreTapped=y_.prototype.onYtExpanderMoreTapped;y_.prototype.onHiddenChanged=y_.prototype.onHiddenChanged;y_.prototype.dataChanged=y_.prototype.dataChanged;y_.prototype.panelContentVisibleChanged=y_.prototype.panelContentVisibleChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],y_.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],y_.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],y_.prototype,"actionHandlerBehavior",void 0);_.q([_.I(_.Lg),_.N("design:type",Object)],y_.prototype,"ironResizableBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],y_.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Boolean)],y_.prototype,"panelContentVisible",void 0);_.q([_.R(),_.N("design:type",Boolean)],y_.prototype,"hasDescriptionOnly",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],y_.prototype,"inlineStructuredDescription",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],y_.prototype,"hidden",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],y_.prototype,"shortsPanel",void 0);_.q([_.R(),_.N("design:type",Object)],y_.prototype,"videoSummary",void 0);_.q([_.R(),_.N("design:type",Object)],y_.prototype,"merchShelf",void 0);
_.q([_.U("videoSummary"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],y_.prototype,"showVideoSummary",null);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],y_.prototype,"modern",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],y_.prototype,"engagementPanel",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],y_.prototype,"watchWhileSdp",void 0);
_.q([_.cD("ytd-expandable-video-description-body-renderer"),_.N("design:type",Object)],y_.prototype,"description",void 0);_.q([_.cD("ytd-horizontal-card-list-renderer"),_.N("design:type",Object)],y_.prototype,"JSC$20160_cardList",void 0);_.q([_.cD("ytd-horizontal-card-list-renderer[center-items]"),_.N("design:type",Object)],y_.prototype,"problemWalkthroughCardList",void 0);_.q([_.cD("ytd-shelf-renderer"),_.N("design:type",Object)],y_.prototype,"shelfSection",void 0);
_.q([_.cD("ytd-video-description-music-section-renderer"),_.N("design:type",Object)],y_.prototype,"musicMetadataSection",void 0);_.q([_.cD("ytd-video-description-infocards-section-renderer"),_.N("design:type",Object)],y_.prototype,"infocardsSection",void 0);_.q([_.cD("ytd-video-description-transcript-section-renderer"),_.N("design:type",Object)],y_.prototype,"transcriptSection",void 0);
_.q([_.cD("how-this-was-made-section-view-model"),_.N("design:type",Object)],y_.prototype,"howThisWasMadeSection",void 0);_.q([_.cD("ytd-video-description-files-section-renderer"),_.N("design:type",Object)],y_.prototype,"filesSection",void 0);_.q([_.yf("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],y_.prototype,"panelContentVisibleChanged",null);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],y_.prototype,"dataChanged",null);_.q([_.yf("hidden"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],y_.prototype,"onHiddenChanged",null);_.q([_.oe("yt-expander-more-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],y_.prototype,"onYtExpanderMoreTapped",null);
y_=_.q([_.d({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],y_);
_.w(y_,"ytd-structured-description-content-renderer",function(){if(rLc!==void 0)return rLc;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return rLc=x},{mode:2});var s3f;var Y0x;var ln=function(){return _.n.apply(this,arguments)||this};
_.m(ln,_.n);ln.prototype.computeAriaLabel=function(x){var G,D;return(x==null?void 0:(G=x.accessibility)==null?void 0:(D=G.accessibilityData)==null?void 0:D.label)||_.Wg("LOADING",void 0,"Loading")};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],ln.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],ln.prototype,"data",void 0);_.q([_.R({computed:"computeAriaLabel(data)"}),_.N("design:type",String)],ln.prototype,"ariaLabel",void 0);ln=_.q([_.HD({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],ln);
_.w(ln,"yt-content-loading-renderer",function(){if(Y0x===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;s3f===void 0&&(s3f=document.createElement("template"));var K=s3f;D.call(G,K.content.cloneNode(!0),x.content.firstChild);Y0x=x}x=Y0x;return x},{mode:_.Ge("kevlar_poly_si_batch_j043")?1:2});_.tn(_.Nv(function(x){var G=_.l(_.eO(!1,void 0,"WbYeXc")),D=G.next().value,K=G.next().value;G=_.l(_.eO(!1,void 0,"msXkzc"));var z=G.next().value,y=G.next().value;_.FQ(function(){var e=_.Y(x.data().collaboratePlaylistCollaborationSetting,I3b);e&&K(e.switchedOnByDefault);var Q=_.Y(x.data().allowNewCollaboratorsPlaylistCollaborationSetting,I3b);Q&&y(Q.switchedOnByDefault);if(!e&&!Q||!e&&x.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")K(!0),y(!0)});
var c=function(e){K(e);y(e);var Q=x.data().playlistCollaborationEntityKey||"";var p=_.iD().getState();(p=_.zm(p.entities,"playlistCollaborationEntity",Q))&&(p==null?void 0:p.isCollaborative)===e||_.iD().dispatch(_.cq("playlistCollaborationEntity",Q,Object.assign({},p,{isCollaborative:e})))},W=function(e){y(e)};
return _.M("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.M("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.M(_.bA,{data:function(){return x.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(e){return _.M(_.MoZ,{data:e.data,
onSwitch:c})}})),_.M(_.b,{cond:D,
then:function(){return _.M("div",null,_.M("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.M(_.bA,{data:function(){return x.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(e){return _.M(_.MoZ,{data:e.data,
onSwitch:W,overrideDisabled:!1})}})),_.M(_.b,{cond:z,
then:function(){return _.M("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.M(_.bA,{data:function(){return x.data().copyLinkButton}},{buttonViewModel:_.Cs}))}}),_.M("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.M(_.bA,{data:function(){return x.data().playlistCollaborators}},{contentListItemViewModel:_.v4C})))}}))},"Ui"),"playlist-collaboration-view-model",{props:{data:_.ik}});var mK4=_.Nv(function(x){var G=x.data;var D=x.customCommandResolver;return _.M(_.xT,null,_.M("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.M(_.bA,{data:function(){return G().adAvatar}},{adAvatarViewModel:function(K){return _.M(_.De7,{data:K.data,
customCommandResolver:D})}})),_.M("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.M(_.b,{cond:function(){return G().headline},
then:function(K){return _.M(_.vq,{text:K,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.M("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.M(_.bA,{data:function(){return G().adBadge}},{adBadgeViewModel:function(K){return _.M(_.fj,{data:K.data,
hasDot:function(){return G().primaryDetailsLine!==void 0},
customCommandResolver:D,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.M(_.bA,{data:function(){return G().primaryDetailsLine}},{adDetailsLineViewModel:function(K){return _.M(_.tK,{data:K.data,
customCommandResolver:D,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Vi"),HIf=_.Nv(function(x){var G=x.data;
var D=x.customCommandResolver;x=_.qi();_.dl(x,function(){return G().interaction},D);
_.Pw(x,{visibilityCallback:function(K){var z,y=(z=G().interaction)==null?void 0:z.onFirstVisible;K&&y&&_.UI(y)},
showOption:_.wR});return _.M("ad-avatar-lockup-view-model",{class:function(){var K;return((K=G().interaction)==null?0:K.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:x,"aria-label":function(){var K,z;return(K=G().interaction)==null?void 0:(z=K.accessibility)==null?void 0:z.label}},_.M(_.so,null,_.M(_.B6,{when:function(){return G().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.M(mK4,{data:G,
customCommandResolver:D})}),_.M(_.rT,null,function(){return null})))},"Wi");_.tn(_.Nv(function(x){var G=x.data;var D=x.panelContentVisibility;x=_.qi();_.dl(x,function(){return G().interaction},H06);
_.Pw(x,{visibilityCallback:function(z){var y,c=(y=G().interaction)==null?void 0:y.onFirstVisible;z&&c&&_.UI(c)},
showOption:_.wR});_.jO(function(){var z,y;if(y=_.nT("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var c;y=(c=y())==null?void 0:c.onLayoutVisibleCallback}else y=null;(z=y)==null||z()});
var K=function(){return D()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.M("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:x},_.M("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.M("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.M(_.b,{cond:_.BSf("(min-width: "+((0,_.mO)()+_.XY)+"px) or (max-width: 600px)"),then:function(){return _.M(_.bA,{data:function(){return G().adImage}},{adImageViewModel:function(z){return _.M(_.KN,{data:z.data,
targetHeight:80,customCommandResolver:H06})}})}})),_.M("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.M("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.M(_.bA,{data:function(){return G().adAvatarLockup}},{adAvatarLockupViewModel:function(z){return _.M(HIf,{data:z.data,
customCommandResolver:H06})}})),_.M(_.b,{cond:K,
then:function(){return _.M(_.bA,{data:function(){return G().adButton}},{adButtonViewModel:function(z){return _.M(_.Ng,{data:z.data,
customCommandResolver:H06})}})},
else:function(){return _.M(_.bA,{data:function(){return G().menu}},{buttonViewModel:_.Cs})}}),_.M("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.M(_.bA,{data:function(){var z=_.Y(G().toggleButton,_.Bq);
return{toggleButtonViewModel:Object.assign({},z,{isTogglingDisabled:!0,isToggled:K()})}}},{toggleButtonViewModel:_.rl})))))},"Xi"),"panel-ad-header-image-lockup-view-model",{props:{data:_.ik,
panelContentVisibility:_.ik}});_.tn(_.Nv(function(x){var G=function(){return _.Y(x.data().inputComposerViewModel,j2Y)},D=function(){var H;
return((H=G())==null?void 0:H.youchatPendingResponseEntityKey)||""},K=_.lA(_.eXY,D),z=function(){var H;
return!((H=K())==null||!H.isPendingResponse)},y=_.l(_.eO(!0,void 0,"DR0q1d")),c=y.next().value,W=y.next().value,e=function(){return G().sectionTargetId||"youchat_messages_section"};
y=_.Ni();var Q=_.qi(),p=_.lA(M0c,"chat_input_view_model_state"),V=Qv6(),L=function(){var H;return!((H=p())==null||!H.value)};
_.FQ(function(){var H;!L()&&((H=G())==null?0:H.welcomeFeatureContinuation)&&(H={continuationCommand:{token:G().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},_.OI(H),V(!0));var O=e(),A;(A=_.Eo().resolve(_.P6(_.WP)))==null||A.addEventListener("yt-navigate-start",function(){_.Qs.remove(O);V(!1)},{once:!0})});
var r=function(){var H,O,A,g,u,f,v,P,k;return _.T(function(cL){H=Q.value.value;Q.value.value="";$Af(Q.value);O=F04(e(),H);_.OI(O);A=_.ZOc(D());_.UI(((g=G())==null?void 0:g.onSubmitCommand)||{});A(!0);f=String(Math.floor(((u=_.Gx())==null?void 0:u.getCurrentTime())||0)*1E3);P={continuationCommand:{token:(v=G())==null?void 0:v.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};k={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:H,playerOffsetMs:f}};_.OI(P,{form:{formData:k},
commandController:{onSuccess:function(){A(!1)},
onServerError:function(){var bO=e();_.OI({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:bO}}]}}});A(!1)}}});
_.c5(cL)})};
return _.M("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:y},_.M("div",{class:"chatInputViewModelChatInputWrapper"},_.M("form",{class:"chatInputViewModelChatInputForm"},_.M("textarea",{class:"chatInputViewModelChatInput",el:Q,"on:keydown":_.WH(function(H){var O=z()||!1;$Af(Q.value);O||H.key!=="Enter"||H.shiftKey||(H.preventDefault(),r());return!1}),
"on:keyup":_.WH(function(){W(Q.value.value.length===0);return!1}),
placeholder:function(){var H,O;var A=_.Y((O=G())==null?void 0:O.inputFormField,yPj);return A==null?void 0:(H=A.contentProperties)==null?void 0:H.placeholderText},
rows:1}),_.M(_.Cs,{data:function(){return _.Y(x.data().sendButton,_.Ls)},
onClick:function(H){H.preventDefault();r();W(Q.value.value.length===0)},
buttonOverrides:function(){return{disabled:c()||z()}}})),_.M(_.vq,{className:"chatInputViewModelChatDisclaimer",
text:function(){var H;return(H=_.Y(x.data().disclaimer,_.CG7))==null?void 0:H.text}})))},"Yi"),"yt-chat-input-view-model",{props:{data:_.ik}});var $Ki=["engagement-panel-clip-create","engagement-panel-clip-view"],FNC=0,cr=function(){var x=_.n.apply(this,arguments)||this;var G;x.headerData=(G=x.data)==null?void 0:G.header;x.darkerPanels=_.B("web_watch_darker_panels");x.matchContentTheme=_.B("web_watch_panel_content_match_theme");x.disableAutoFill=!1;x.isFullscreen=!1;x.isTheaterMode=!1;x.modernPanels=_.B("kevlar_watch_modern_panels");x.liveChatReplyPanel=!1;x.enableAnchoredPanel=_.B("desktop_shorts_v2_anchored_panel");x.disableBackdropFilter=
_.B("web_disable_backdrop_filter");x.trackEngagementPanelVisibility=_.B("web_watch_track_engagement_panel_visibility");x.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 x};
_.m(cr,_.n);_.a=cr.prototype;
_.a.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(x){var G;
return(x==null?void 0:(G=x.webComponentHint)==null?void 0:G.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.a.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var x;if((x=this.hostElement.parentElement)==null?0:x.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.a.detached=function(){this.updateTheaterDisablement()};
_.a.showPanel=function(){var x=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.Fj.addJob(function(){x.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.a.maybeScrollToItemSection=function(x){var G=this,D,K=x==null?void 0:(D=x.sectionListEngagementPanelExtras)==null?void 0:D.scrollToItemSectionIdentifier;K&&_.Fj.addJob(function(){var z;(z=G.sectionListRendererElement)==null||z.scrollToItemSection(K)},8)};
_.a.hidePanel=function(){var x=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.Fj.addJob(function(){x.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.a.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.a.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.a.updatePanel=function(x,G,D,K){var z=this;if((x=x==null?void 0:x.engagementPanelSectionListRenderer)||K){if(x){K=x.header;var y=x.content,c=x.footer;(x=x.targetId)&&this.set("data.targetId",x);K&&this.set("data.header",K);y&&this.set("data.content",y);c&&this.set("data.footer",c)}else K&&(x=K.content,y=K.secondaryHeaderContent,(K=K.targetId)&&this.set("data.targetId",K),x&&this.set("data.content",x),y&&(this.secondaryHeaderData=y));this.updateChildVisibilityProperties();if(G){var W;_.B("kevlar_update_panel_focus_scroll_killswitch")||
(W={preventScroll:!0});this.focus(W)}_.w1(this,function(){_.h$(z.hostElement,"yt-refit");z.maybeScrollToItemSection(D)})}};
_.a.computeHeaderData=function(){var x,G=(0,_.YS.unsafeClone)((x=this.data)==null?void 0:x.header);if(G){x=new _.J(Object.keys(G)[0]);var D=_.Y(G,x),K=_.Y(this.secondaryHeaderData,x);K&&_.Hh(G,x,Object.assign({},K,D))}return G};
_.a.getReloadContinuation=function(){var x,G,D,K=_.l(((x=this.data)==null?void 0:(G=x.content)==null?void 0:(D=G.sectionListRenderer)==null?void 0:D.continuations)||[]);for(x=K.next();!x.done;x=K.next())if(x=x.value,x.reloadContinuationData)return x.reloadContinuationData.continuation};
_.a.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var x;((x=this.data)==null?0:x.targetId)&&(x=this.contentElement.firstElementChild)&&x.setAttribute("panel-target-id",this.data.targetId)};
_.a.forwardPopupClosedToFlowRootRenderer=function(){var x=_.kA(this.hostElement).querySelector("ytd-flow-root-renderer");if(x)x.onPopupClosed()};
_.a.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var x=_.B("web_watch_imax_theater_mode")&&this.isTheaterMode;x=_.B("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||x;if(_.B("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||x){var G;this.visibility=
(G=this.data)==null?void 0:G.visibility;var D;this.trackEngagementPanelVisibility&&((D=this.data)==null?void 0:D.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var K,z,y,c;this.contentEmpty=!!(((K=this.data)==null?0:(z=K.content)==null?0:z.structuredDescriptionContentRenderer)&&Object.keys((y=this.data)==null?void 0:(c=y.content)==null?void 0:c.structuredDescriptionContentRenderer).length===0);(G=_.Eo().resolve(_.VT))&&G.registerPanel(this.getIdentifier(),
this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.a.isTheaterModeChanged=function(){_.B("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.a.isFullscreenChanged=function(){_.B("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.a.focus=function(x){if(this.header)this.header.focus(x);else{var G;(G=_.kA(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||G.focus(x)}};
_.a.visibilityChanged=function(){if(!_.B("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var x=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",G=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",D=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",K=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",z=K||!this.lastVisibility,y,c,W=(y=this.data)==null?void 0:(c=y.identifier)==null?void 0:c.tag,
e;if(((e=this.data)==null?0:e.onShowCommands)&&x&&z)_.zl(this.hostElement,this.data.onShowCommands,this.hostElement),W&&_.wK().dispatch(_.EO({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:W}}));else{var Q;((Q=this.data)==null?0:Q.onHideCommands)&&G&&D&&(_.zl(this.hostElement,this.data.onHideCommands,this.hostElement),W&&_.wK().dispatch(_.EO({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:W}})))}x&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*FNC++));_.B("kevlar_watch_focus_on_engagement_panels")&&
x&&K&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.a.notifyVisibilityChanged=function(x){var G;_.Gl(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,x,(G=this.data)==null?void 0:G.targetId])};
_.a.updateTheaterDisablement=function(){if(!_.B("kevlar_watch_theater_disablement_killswitch")){var x=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&$Ki.includes(x)&&!_.B("watch_next_grid_ignore_disallowed_panels")){var G=_.jU(_.wK().getState()),D=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";x!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():D?(this.originalTheaterState===void 0&&(this.originalTheaterState=G,this.theaterDisablementPanelIdentifier=
x),G&&_.xO(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.a.clearTheaterDisablement=function(){_.xO(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.a.updateChildVisibilityProperties=function(){this.hostElement||_.B("kevlar_panel_property_init_killswitch")||this._enableProperties();var x=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=x);var G,D=(G=this.headerElement)==null?void 0:G.firstElementChild;if(D&&!this.adHeaderImageLockupViewModel){G=x==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";D.collapsed=G;D=_.kA(D).querySelector("#visibility-button");if(!D)return;(D=D.firstElementChild)&&
D.polymerController.is==="ytd-toggle-button-renderer"&&D.polymerController.data.isToggled!==G&&D.polymerController.set("data.isToggled",G)}var K;if(G=(K=this.contentElement)==null?void 0:K.firstElementChild)if(x&&x!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")G.removeAttribute("panel-content-visible");else{G.setAttribute("panel-content-visible","");var z;(z=G.markDirty)==null||z.call(G)}};
_.a.onYtChangeEngagementPanelVisibilityAction=function(x){var G=this,D,K=(D=this.data)==null?void 0:D.targetId,z,y,c;D=((z=this.data)==null?void 0:(y=z.identifier)==null?void 0:y.tag)||((c=this.data)==null?void 0:c.panelIdentifier);var W=_.Y(x,_.UtZ),e;x=K&&(W==null?void 0:W.targetId)===K||D&&(W==null?void 0:(e=W.panelIdentifier)==null?void 0:e.tag)===D;this.dialog&&x&&(W==null?void 0:W.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(K==="engagement-panel-comments-section"?_.xO(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.xO(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",D]));!_.B("kevlar_use_engagement_panel_management_component")&&x&&(K=W.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!K?_.Fj.addJob(function(){G.visibility=W.visibility},2,this.hideDelayMs):this.visibility=W.visibility,W.visibility&&this.notifyVisibilityChanged(W.visibility))};
_.a.onYtScrollToEngagementPanelCommand=function(x){var G,D=(G=this.data)==null?void 0:G.targetId,K,z,y;G=((K=this.data)==null?void 0:(z=K.identifier)==null?void 0:z.tag)||((y=this.data)==null?void 0:y.panelIdentifier);x=_.Y(x,_.v1h);var c;(D&&(x==null?void 0:x.targetId)===D||G&&(x==null?void 0:(c=x.panelIdentifier)==null?void 0:c.tag)===G)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.xO(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.a.attachVEs=function(x){var G,D;(x==null?0:(G=x.content)==null?0:(D=G.productListRenderer)==null?0:D.trackingParams)&&_.en().graftServerVe(x.content.productListRenderer.trackingParams);var K,z;(x==null?0:(K=x.content)==null?0:(z=K.transcriptRenderer)==null?0:z.trackingParams)&&_.en().graftServerVe(x.content.transcriptRenderer.trackingParams)};
_.a.onYtUpdateEngagementPanelAction=function(x){var G,D=(G=this.data)==null?void 0:G.targetId;x=_.Y(x,eIf);D&&(x==null?void 0:x.targetId)===D&&(this.updatePanel({engagementPanelSectionListRenderer:{header:x==null?void 0:x.header,content:x==null?void 0:x.content}},!1),this.attachVEs(x))};
_.a.onYtShowEngagementPanelScrimAction=function(x){var G,D=(G=this.data)==null?void 0:G.targetId;x=_.Y(x,W2c);D&&(x==null?void 0:x.engagementPanelTargetId)===D&&(this.scrimmed=!0)};
_.a.onYtHideEngagementPanelScrimAction=function(x){var G,D=(G=this.data)==null?void 0:G.targetId;x=_.Y(x,cP8);D&&(x==null?void 0:x.engagementPanelTargetId)===D&&(this.scrimmed=!1)};
_.a.getIdentifier=function(){var x,G,D;return((x=this.data)==null?void 0:x.panelIdentifier)||((G=this.data)==null?void 0:(D=G.identifier)==null?void 0:D.tag)};
_.a.getSurface=function(){var x,G;return(x=this.data)==null?void 0:(G=x.identifier)==null?void 0:G.surface};
_.Nq.Object.defineProperties(cr.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var x=this.getIdentifier();return x==="engagement-panel-youchat"||x==="PAyouchat"}}});
cr.prototype.visibilityChanged=cr.prototype.visibilityChanged;cr.prototype.isFullscreenChanged=cr.prototype.isFullscreenChanged;cr.prototype.isTheaterModeChanged=cr.prototype.isTheaterModeChanged;cr.prototype.dataChanged=cr.prototype.dataChanged;cr.prototype.forwardPopupClosedToFlowRootRenderer=cr.prototype.forwardPopupClosedToFlowRootRenderer;cr.prototype.onYtRendererstamperFinished=cr.prototype.onYtRendererstamperFinished;
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],cr.prototype,"actionHandlerBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],cr.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],cr.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.Tg.YtEventForwardingBehavior),_.N("design:type",Object)],cr.prototype,"ytEventForwardingBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],cr.prototype,"data",void 0);
_.q([_.R({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.N("design:type",Object)],cr.prototype,"headerData",void 0);_.q([_.R(),_.N("design:type",Object)],cr.prototype,"secondaryHeaderData",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],cr.prototype,"visibility",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],cr.prototype,"contentEmpty",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],cr.prototype,"scrimmed",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],cr.prototype,"dialog",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],cr.prototype,"dropdown",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],cr.prototype,"darkerPanels",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],cr.prototype,"matchContentTheme",void 0);_.q([_.R(),_.N("design:type",Object)],cr.prototype,"disableAutoFill",void 0);
_.q([_.R({reflectToAttribute:!0,value:_.B("optimal_reading_width_comments_ep")}),_.N("design:type",Boolean)],cr.prototype,"optimalReadingWidthComments",void 0);_.q([_.R(),_.N("design:type",Number)],cr.prototype,"hideDelayMs",void 0);_.q([_.R({selector:_.Og,reflectToAttribute:!0}),_.N("design:type",Object)],cr.prototype,"isFullscreen",void 0);_.q([_.R({selector:_.jU,reflectToAttribute:!0}),_.N("design:type",Object)],cr.prototype,"isTheaterMode",void 0);
_.q([_.R(),_.N("design:type",Number)],cr.prototype,"showDelayMs",void 0);_.q([_.R({reflectToAttribute:!0}),_.U("data.targetId"),_.N("design:type",Object),_.N("design:paramtypes",[])],cr.prototype,"targetId",null);_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],cr.prototype,"webSize",null);_.q([_.R(),_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],cr.prototype,"hideFooterBorder",null);
_.q([_.R(),_.N("design:type",Object)],cr.prototype,"isWatch",void 0);_.q([_.R(),_.N("design:type",Object)],cr.prototype,"originalTheaterState",void 0);_.q([_.R(),_.N("design:type",Object)],cr.prototype,"theaterDisablementPanelIdentifier",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],cr.prototype,"modernPanels",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],cr.prototype,"isWatchWhilePanel",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],cr.prototype,"shortsPanel",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],cr.prototype,"liveChatEngagementPanel",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],cr.prototype,"liveChatReplyPanel",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],cr.prototype,"enableAnchoredPanel",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],cr.prototype,"disableBackdropFilter",void 0);_.q([_.R(),_.N("design:type",Object)],cr.prototype,"trackEngagementPanelVisibility",void 0);_.q([_.cD("#header"),_.N("design:type",HTMLElement)],cr.prototype,"headerElement",void 0);_.q([_.cD("#header > *"),_.N("design:type",HTMLElement)],cr.prototype,"header",void 0);_.q([_.cD("ytd-section-list-renderer"),_.N("design:type",Object)],cr.prototype,"sectionListRendererElement",void 0);
_.q([_.cD("panel-ad-header-image-lockup-view-model"),_.N("design:type",HTMLElement)],cr.prototype,"adHeaderImageLockupViewModel",void 0);_.q([_.cD("#content"),_.N("design:type",HTMLElement)],cr.prototype,"contentElement",void 0);_.q([_.oe("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cr.prototype,"onYtRendererstamperFinished",null);
_.q([_.oe("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cr.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.q([_.Z6("data","isFullscreen","isTheaterMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cr.prototype,"dataChanged",null);_.q([_.yf("isTheaterMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cr.prototype,"isTheaterModeChanged",null);
_.q([_.yf("isFullscreen"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cr.prototype,"isFullscreenChanged",null);_.q([_.yf("visibility"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cr.prototype,"visibilityChanged",null);cr=_.q([_.d({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],cr);
_.w(cr,"ytd-engagement-panel-section-list-renderer",function(){if(PYx!==void 0)return PYx;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return PYx=x},{mode:_.Ge("kevlar_poly_si_batch_j028")?1:2});var C6x;var TL=function(){var x=_.n.apply(this,arguments)||this;x.lastRenderedPanelIds=new Set;x.visiblePanels=[];x.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return x};
_.m(TL,_.n);_.a=TL.prototype;_.a.dataChanged=function(){if(this.data){for(var x=[],G=_.l(this.data),D=G.next();!D.done;D=G.next()){D=D.value;var K=void 0,z=void 0,y=(K=D)==null?void 0:(z=K.engagementPanelSectionListRenderer)==null?void 0:z.visibility;z=K=void 0;((K=D)==null?0:(z=K.engagementPanelSectionListRenderer)==null?0:z.targetId)&&y!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&x.push(D)}this.visiblePanels=x}else this.visiblePanels=[]};
_.a.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}}};
_.a.withoutVisiblePanelById=function(x){return this.visiblePanels.filter(function(G){var D;return((D=G.engagementPanelSectionListRenderer)==null?void 0:D.targetId)!==x})};
_.a.onYtChangeEngagementPanelVisibilityAction=function(x){var G=this,D=_.Y(x,_.UtZ);if(this.data&&(D==null?0:D.targetId)&&(D==null?0:D.visibility)){var K,z=(K=this.data.find(function(c){var W;return((W=c.engagementPanelSectionListRenderer)==null?void 0:W.targetId)===D.targetId}))==null?void 0:K.engagementPanelSectionListRenderer;
if(z){var y=this.withoutVisiblePanelById(D.targetId);D.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(x=this.data.find(function(c){var W;return((W=c.engagementPanelSectionListRenderer)==null?void 0:W.targetId)===D.targetId}))&&(y=[x].concat(_.B5(y)));
this.hideDelayMs&&D.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&y.length===0?_.Fj.addJob(function(){z.visibility=D.visibility;G.visiblePanels=y},10,this.hideDelayMs):(z.visibility=D.visibility,this.visiblePanels=y);
_.Gl(this.hostElement,"yt-engagement-panels-visible-changed",[y])}}};
_.a.onRendererstamperFinished=function(){var x=new Set(this.visiblePanels.map(function(G){var D;return(D=G.engagementPanelSectionListRenderer)==null?void 0:D.targetId}));
this.handlePanelVisibilityChange(x,this.lastRenderedPanelIds);this.lastRenderedPanelIds=x};
_.a.handlePanelVisibilityChange=function(x,G){x=x===void 0?new Set:x;G=G===void 0?new Set:G;if(this.data)for(var D=_.l(this.data),K=D.next();!K.done;K=D.next()){K=K.value;var z=void 0,y=void 0,c=(z=K)==null?void 0:(y=z.engagementPanelSectionListRenderer)==null?void 0:y.targetId;if(c&&(z=G.has(c),y=x.has(c),c=void 0,!z&&y?(y=z=void 0,c=(z=K)==null?void 0:(y=z.engagementPanelSectionListRenderer)==null?void 0:y.onShowCommands):z&&!y&&(y=z=void 0,c=(z=K)==null?void 0:(y=z.engagementPanelSectionListRenderer)==
null?void 0:y.onHideCommands),c))for(K=_.l(c),c=K.next();!c.done;c=K.next())this.ytComponentBehavior.resolveCommand(c.value)}};
TL.prototype.onRendererstamperFinished=TL.prototype.onRendererstamperFinished;TL.prototype.dataChanged=TL.prototype.dataChanged;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],TL.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],TL.prototype,"actionHandlerBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],TL.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],TL.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],TL.prototype,"lastRenderedPanelIds",void 0);_.q([_.R(),_.N("design:type",Number)],TL.prototype,"hideDelayMs",void 0);_.q([_.R(),_.N("design:type",Array)],TL.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Array)],TL.prototype,"visiblePanels",void 0);_.q([_.R(),_.N("design:type",Boolean)],TL.prototype,"isWatchWhilePanel",void 0);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TL.prototype,"dataChanged",null);_.q([_.oe("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TL.prototype,"onRendererstamperFinished",null);TL=_.q([_.d({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],TL);
_.w(TL,"ytd-watch-engagement-panels",function(){if(C6x!==void 0)return C6x;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return C6x=x},{mode:1});var Ixi;var Wr=function(){return _.n.apply(this,arguments)||this};
_.m(Wr,_.n);Wr.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.n9(_.kA(this.hostElement).querySelector("#text"),_.NdE(_.fjh,this.data.companionLegalText))};
Wr.prototype.computeAutoScrollEnabled=function(x,G){return x&&!G};
Wr.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
Wr.prototype.onToggleTap=function(){this.expanded=!this.expanded};
Wr.prototype.expandedChanged=Wr.prototype.expandedChanged;Wr.prototype.dataChanged=Wr.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Wr.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.OOf),_.N("design:type",Object)],Wr.prototype,"ytdAutoScrollBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Wr.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Wr.prototype,"expanded",void 0);
_.q([_.R({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.N("design:type",Boolean)],Wr.prototype,"autoScrollEnabled",void 0);_.q([_.R(),_.N("design:type",String)],Wr.prototype,"expanderIcon",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Wr.prototype,"dataChanged",null);
_.q([_.yf("expanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Wr.prototype,"expandedChanged",null);Wr=_.q([_.d({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],Wr);
_.w(Wr,"ytd-companion-legal-text-renderer",function(){if(Ixi!==void 0)return Ixi;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Ixi=x},{mode:1});var j3b;var eN=function(){var x=_.n.apply(this,arguments)||this;x.buttonUpdate=_.B("web_modern_buttons");x.kevlarWatchGrid=_.B("kevlar_watch_grid");x.centerAlignDescription=_.B("action_companion_center_align_description");x.truncateDomain=_.B("action_companion_truncate_domain");return x};
_.m(eN,_.n);_.a=eN.prototype;_.a.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.a.getOnLayoutVisibleCallback=function(){var x=_.nT("yt.www.ads.eventcache.getLastCompanionData");return x?(x=x())&&x.onLayoutVisibleCallback:null};
_.a.getLayoutId=function(){var x=_.nT("yt.www.ads.eventcache.getLastCompanionData");return x?(x=x())&&x.layoutId:null};
_.a.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",eN.JSC$20207_DEFAULT_AD_BADGE_RENDERER);var x=this.getOnLayoutVisibleCallback();x&&x()}};
_.a.getButtonRenderer=function(x){return x.actionButton&&_.Y(x.actionButton,_.$V)?(delete _.Y(x.actionButton,_.$V).navigationEndpoint,_.Y(x.actionButton,_.$V)):{}};
_.a.onClick=function(x){var G=this;if((!_.B("web_modern_buttons")||!_.u_(_.gA(x),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){x=_.Ns();var D=this.getLayoutId();x&&D&&_.B("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?x.getPlayerPromise().then(function(K){(new _.MD(K)).executeCommand(G.data.navigationEndpoint,D)}):_.B("kevlar_companion_resolve_command_killswitch")?_.h$(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.xO(this.hostElement,"yt-companion-ad-clicked",["action-companion",D])}};
_.Nq.Object.defineProperties(eN.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var x,G,D;return((x=this.data)==null?0:(G=x.detailsLine)==null?0:(D=G.adRating)==null?0:D.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 x,G,D,K;return((x=this.data)==null?0:(G=x.detailsLine)==null?0:(D=G.adRating)==null?0:(K=D.ratingIcon)==null?0:K.iconType)?_.aP(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var x,G,D,K;return((x=this.data)==null?0:(G=x.detailsLine)==null?0:(D=G.texts)==null?0:(K=D[0])==null?0:K.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 x,G;return((x=this.data)==null?0:(G=x.description)==null?0:G.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var x=_.nT("yt.www.ads.eventcache.getLastCompanionData");return x?(x=x())&&x.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var x=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return x?x.indexOf("/default_banner")!==-1:!0}}});
eN.prototype.onClick=eN.prototype.onClick;eN.prototype.dataChanged=eN.prototype.dataChanged;eN.JSC$20207_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Wg("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],eN.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],eN.prototype,"rendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],eN.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],eN.prototype,"buttonUpdate",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],eN.prototype,"kevlarWatchGrid",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],eN.prototype,"centerAlignDescription",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],eN.prototype,"truncateDomain",void 0);
_.q([_.R({computed:"computeButtonOverride(buttonUpdate)"}),_.N("design:type",Object)],eN.prototype,"buttonOverride",void 0);_.q([_.U("data.detailsLine.adRating.ratingText"),_.N("design:type",Object),_.N("design:paramtypes",[])],eN.prototype,"getRating",null);_.q([_.U("getRating"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],eN.prototype,"computeRatingHidden",null);
_.q([_.U("data.detailsLine.adRating.ratingIcon.iconType"),_.N("design:type",Object),_.N("design:paramtypes",[])],eN.prototype,"iconType",null);_.q([_.U("data.detailsLine.texts.0.text"),_.N("design:type",Object),_.N("design:paramtypes",[])],eN.prototype,"getDetailsLine",null);_.q([_.U("getDetailsLine"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],eN.prototype,"computeDetailsLineHidden",null);
_.q([_.U("data.description.text"),_.N("design:type",Object),_.N("design:paramtypes",[])],eN.prototype,"getDescriptionText",null);_.q([_.U("getDescriptionText"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],eN.prototype,"computeDescriptionTextHidden",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],eN.prototype,"interactionLoggingClientData",null);
_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],eN.prototype,"hideBanner",null);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],eN.prototype,"dataChanged",null);_.q([_.oe("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],eN.prototype,"onClick",null);eN=_.q([_.d({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],eN);
_.w(eN,"ytd-action-companion-ad-renderer",function(){if(j3b!==void 0)return j3b;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return j3b=x},{mode:_.Ge("kevlar_poly_si_batch_j067")?1:2});var OIj;var X4Y;var Zj=function(){var x=_.n.apply(this,arguments)||this;x.buttonUpdate=_.B("web_modern_buttons");x.hideLegacyBanner=_.B("enable_dsa_one_click_ata_translators_infeed_elements");x.adInfoButtonStyle="mono";x.adInfoButtonType="text";x.noDotAdBadge=!0;return x};
_.m(Zj,_.n);_.a=Zj.prototype;_.a.getOnLayoutVisibleCallback=function(){var x=_.nT("yt.www.ads.eventcache.getLastCompanionData");return x?(x=x())&&x.onLayoutVisibleCallback:null};
_.a.getLayoutId=function(){var x=_.nT("yt.www.ads.eventcache.getLastCompanionData");return x?(x=x())&&x.layoutId:null};
_.a.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 x=this.data.image.thumbnail.thumbnails[0];this.imageSrc=x.url?_.V$(x.url):void 0;this.imageWidth=x.width||0;this.imageHeight=x.height||0}this.data.clickthroughEndpoint&&_.Y(this.data.clickthroughEndpoint,_.iV)&&(x=_.Y(this.data.clickthroughEndpoint,_.iV).url,_.B("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
x||"":x?(x=_.V$(x),this.clickThroughUrl=_.ZB(x)):this.clickThroughUrl=void 0);(x=this.getOnLayoutVisibleCallback())&&x()}};
_.a.onClick=function(x){_.u_(_.gA(x),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(x)};
_.a.handleClick=function(){var x=this;this.data&&this.data.clickthroughEndpoint&&(_.h$(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(G){x.macroReplacementBehavior.sendServiceRequestAction([G])}),_.xO(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.a.onLoad=function(){_.Gl(this.hostElement,"yt-refit-popups-action")};
_.Nq.Object.defineProperties(Zj.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var x=_.nT("yt.www.ads.eventcache.getLastCompanionData");return x?(x=x())&&x.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var x=_.nT("yt.www.ads.eventcache.getLastCompanionData");return x?(x=x())&&x.interactionLoggingClientData:null}}});
Zj.prototype.onLoad=Zj.prototype.onLoad;Zj.prototype.onClick=Zj.prototype.onClick;Zj.prototype.dataChanged=Zj.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Zj.prototype,"rendererBehavior",void 0);_.q([_.I(a$k.YtMacroReplacementBehavior),_.N("design:type",Object)],Zj.prototype,"macroReplacementBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Zj.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Zj.prototype,"buttonUpdate",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Zj.prototype,"hideLegacyBanner",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Zj.prototype,"adInfoButtonStyle",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Zj.prototype,"adInfoButtonType",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Zj.prototype,"macros",null);
_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Zj.prototype,"interactionLoggingClientData",null);_.q([_.R(),_.N("design:type",String)],Zj.prototype,"clickThroughUrl",void 0);_.q([_.R(),_.N("design:type",_.TW)],Zj.prototype,"imageSrc",void 0);_.q([_.R(),_.N("design:type",Number)],Zj.prototype,"imageWidth",void 0);_.q([_.R(),_.N("design:type",Number)],Zj.prototype,"imageHeight",void 0);_.q([_.R(),_.N("design:type",Object)],Zj.prototype,"noDotAdBadge",void 0);
_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Zj.prototype,"dataChanged",null);_.q([_.oe("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Zj.prototype,"onClick",null);_.q([_.oe("load"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Zj.prototype,"onLoad",null);Zj=_.q([_.d({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],Zj);
_.w(Zj,"ytd-image-companion-renderer",function(){if(X4Y!==void 0)return X4Y;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return X4Y=x},{mode:_.Ge("kevlar_poly_si_batch_j067")?1:2});var ALT;var Mm=function(){return _.n.apply(this,arguments)||this};
_.m(Mm,_.n);_.a=Mm.prototype;_.a.dataChanged=function(){this.set("data.adBadge",Mm.JSC$20216_DEFAULT_AD_BADGE_RENDERER);if(this.data){var x=this.getOnLayoutVisibleCallback();x&&x()}};
_.a.getOnLayoutVisibleCallback=function(){var x=_.nT("yt.www.ads.eventcache.getLastCompanionData");return x?(x=x())&&x.onLayoutVisibleCallback:null};
_.a.getLayoutId=function(){var x=_.nT("yt.www.ads.eventcache.getLastCompanionData");return x?(x=x())&&x.layoutId:null};
_.a.onCompanionClicked=function(x){this.data&&(x.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.xO(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.a.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var x=_.Ns(),G=this.getLayoutId(),D=this.data.clickToAdvSiteEndpoint;x&&G&&_.B("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?x.getPlayerPromise().then(function(K){(new _.MD(K)).executeCommand(D,G)}):_.h$(this.hostElement,"yt-navigate",{endpoint:D})}};
_.a.sendTrackingPings=function(x){if(x&&x.length!==0&&x[0].loggingUrls&&(x=x[0].loggingUrls.map(this.getBaseUrl)))for(var G=0;G<x.length;G++)_.ip(x[G])};
_.a.getBaseUrl=function(x){return x.baseUrl||""};
_.Nq.Object.defineProperties(Mm.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var x=_.nT("yt.www.ads.eventcache.getLastCompanionData");return x?(x=x())&&x.interactionLoggingClientData:null}}});
Mm.prototype.onCompanionClicked=Mm.prototype.onCompanionClicked;Mm.prototype.dataChanged=Mm.prototype.dataChanged;Mm.JSC$20216_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Wg("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Mm.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Mm.prototype,"data",void 0);_.q([_.cD("#title"),_.N("design:type",HTMLElement)],Mm.prototype,"shopTitle",void 0);
_.q([_.Z6("data.impressionEndpoints"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Mm.prototype,"dataChanged",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Mm.prototype,"interactionLoggingClientData",null);_.q([_.oe("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Mm.prototype,"onCompanionClicked",null);
Mm=_.q([_.d({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],Mm);
_.w(Mm,"ytd-shopping-companion-renderer",function(){if(ALT!==void 0)return ALT;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return ALT=x},{mode:1});_.tn(_.Nv(function(x){var G=x.data;var D=_.qi();_.dl(D,function(){return G().interaction},C3b);
_.Pw(D,{visibilityCallback:function(K){var z,y=(z=G().interaction)==null?void 0:z.onFirstVisible;K&&y&&_.UI(y)},
showOption:_.wR});_.jO(function(){var K,z;z=(z=_.nT("yt.www.ads.eventcache.getLastCompanionData"))?(z=z())&&z.onLayoutVisibleCallback:null;(K=z)==null||K()});
return _.M("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.WH(function(){_.Gl(D.value,"yt-refit-popups-action")}),
el:D,"aria-label":function(){var K,z;return(K=G().interaction)==null?void 0:(z=K.accessibility)==null?void 0:z.label}},_.M("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.M(_.bA,{data:function(){return G().adImage}},{adImageViewModel:function(K){return _.M(_.KN,{data:K.data,
targetHeight:80,customCommandResolver:C3b})}})),_.M("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.M("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.M(_.bA,{data:function(){return G().adBadge}},{adBadgeViewModel:function(K){return _.M(_.fj,{data:K.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.M("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.M(_.bA,{data:function(){return G().menu}},{buttonViewModel:_.Cs}))))},"Zi"),"banner-image-layout-view-model",{props:{data:_.ik}});_.tn(_.Nv(function(x){var G=x.data;x=_.qi();_.dl(x,function(){return G().interaction},I16);
_.Pw(x,{visibilityCallback:function(D){var K,z=(K=G().interaction)==null?void 0:K.onFirstVisible;D&&z&&_.UI(z)},
showOption:_.wR});_.jO(function(){var D,K;K=(K=_.nT("yt.www.ads.eventcache.getLastCompanionData"))?(K=K())&&K.onLayoutVisibleCallback:null;(D=K)==null||D()});
return _.M("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:x},_.M("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.M(_.bA,{data:function(){return G().adImage}},{adImageViewModel:function(D){return _.M(_.KN,{data:D.data,
targetHeight:80,customCommandResolver:I16})}})),_.M("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.M("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.M(_.bA,{data:function(){return G().adAvatarLockup}},{adAvatarLockupViewModel:function(D){return _.M(HIf,{data:D.data,
customCommandResolver:I16})}})),_.M(_.bA,{data:function(){return G().adButton}},{adButtonViewModel:function(D){return _.M(_.Ng,{data:D.data,
customCommandResolver:I16})}}),_.M("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.M(_.bA,{data:function(){return G().menu}},{buttonViewModel:_.Cs}))))},"$i"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.ik}});var UKC={shoppingCompanionCarouselRenderer:"ytd-shopping-companion-renderer",imageCompanionAdRenderer:"ytd-image-companion-renderer",actionCompanionAdRenderer:"ytd-action-companion-ad-renderer",bannerImageLayoutViewModel:"banner-image-layout-view-model",topBannerImageTextIconButtonedLayoutViewModel:"top-banner-image-text-icon-buttoned-layout-view-model"},Q_=function(){var x=_.n.apply(this,arguments)||this;x.updateCompanionDataJobId=0;x.contentVideoId=null;x.player=null;x.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return x};
_.m(Q_,_.n);_.a=Q_.prototype;_.a.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:UKC}}};
_.a.attached=function(){var x=this,G=_.Ns();G&&G.getPlayerPromise().then(function(D){x.getCachedDataAndListen(D)})};
_.a.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.a.updateRendererStamper=function(){var x={};if(this.data)for(var G in UKC)if(this.data[G]){x[G]=this.data[G];break}if(this.oneofRenderer!=void 0||Object.keys(x).length)this.oneofRenderer=x};
_.a.getCachedDataAndListen=function(x){var G=this.retrieveCachedCompanionData();G&&Object.keys(G).length&&this.receiveCompanionData(G);this.ytPlayerListenerBehavior.listenToPlayerEvent(x,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=x};
_.a.retrieveCachedCompanionData=function(){return _.Df.yt&&_.Df.yt.www&&_.Df.yt.www.ads&&_.Df.yt.www.ads.eventcache&&_.Df.yt.www.ads.eventcache.getLastCompanionData?_.Df.yt.www.ads.eventcache.getLastCompanionData():null};
_.a.receiveCompanionData=function(x){x&&Object.keys(x).length?(this.contentVideoId=x.contentVideoId,this.setCompanionData(x)):this.setCompanionData(x)};
_.a.setCompanionData=function(x){this.cancelPendingCompanionAdJobs();if(x){this.updateCompanionDataJobId=0;for(var G in UKC)UKC.hasOwnProperty(G)&&(this.data[G]=void 0);x.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",x.shoppingCompanionCarouselRenderer):x.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",x.imageCompanionAdRenderer):x.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",x.actionCompanionAdRenderer),_.Gl(this.hostElement,
"yt-hide-unlimited-offer-module"),_.Gl(this.hostElement,"yt-hide-tvfilm-offer-module")):x.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",x.bannerImageLayoutViewModel):x.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",x.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.a.dataChanged=function(){var x=this,G=_.Ns();G?G.getPlayerPromise().then(function(D){x.contentVideoId&&D.getVideoUrl().includes("v="+x.contentVideoId)||(x.cancelPendingCompanionAdJobs(),x.updateRendererStamper())}):_.iM(Error("fm"))};
_.a.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.Fj.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.a.handleCompanionAdClicked=function(x,G){this.player.onAdUxClicked(x,G);this.player.pauseVideo()};
Q_.prototype.dataChanged=Q_.prototype.dataChanged;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Q_.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],Q_.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Q_.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Q_.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.I(_.nS.YtPlayerListenerBehavior),_.N("design:type",_.i4)],Q_.prototype,"ytPlayerListenerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Q_.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],Q_.prototype,"oneofRenderer",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Q_.prototype,"dataChanged",null);Q_=_.q([_.d({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],Q_);
_.w(Q_,"ytd-companion-slot-renderer",function(){if(OIj!==void 0)return OIj;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return OIj=x},{mode:_.Ge("kevlar_poly_si_batch_j067")?
1:2});var RB8;var pc=function(){return _.n.apply(this,arguments)||this};
_.m(pc,_.n);pc.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
pc.prototype.dataChanged=pc.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],pc.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],pc.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],pc.prototype,"companionSlotData",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pc.prototype,"dataChanged",null);
pc=_.q([_.d({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],pc);
_.w(pc,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(RB8!==void 0)return RB8;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return RB8=x},{mode:1});var S0c;var V_=function(){var x=_.n.apply(this,arguments)||this;x.skinnyMode=!1;x.COMPACT_EVENT_COUNT=4;x.onShelfToggleButtonTap=function(){x.logTap(x.data);x.showingMore=!x.showingMore};
x.onShelfToggleButtonFocus=function(){x.showingMore||(x.logTap(x.data),x.showingMore=!0,_.w1(x,function(){var G=x.COMPACT_EVENT_COUNT-1,D;(D=_.kA(x.hostElement).querySelector("#event-"+G))==null||D.focus()}))};
return x};
_.m(V_,_.n);_.a=V_.prototype;_.a.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.a.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.a.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.ae(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.ae(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.ae(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.ae(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.ae(this.infoTooltip,this.infoTooltip.hide))};
_.a.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.ae(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.ae(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.ae(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.ae(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.ae(this.infoTooltip,this.infoTooltip.hide))};
_.a.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)};
_.a.onShowingMoreChanged=function(){var x;this.showingMoreChanged((x=this.showingMore)!=null?x:!1)};
_.a.showingMoreChanged=function(x){var G=this.get("data.events")||[];this.set("restEvents",G.slice(1,x?G.length:this.COMPACT_EVENT_COUNT).map(function(D){return D.ticketEventRenderer}));
G.slice(0,x?G.length:this.COMPACT_EVENT_COUNT).forEach(function(D){var K=_.CC();D=D.ticketEventRenderer.trackingParams;_.Fx()&&K&&D&&(D=_.V2(D),K&&_.nW(K,D))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.a.computeAriaLabel=function(x){return x.subtitle1+", "+x.subtitle2};
_.a.logTap=function(x){_.Fx()&&this.ytRendererBehavior.logExplicitClick(x)};
_.a.isKeyboardAction=function(x){return this.get("detail.x",x)===0&&this.get("detail.y",x)===0};
_.a.onFirstEventTap=function(x){x.target&&this.handleTap(x.target,this.firstEvent,this.isKeyboardAction(x))};
_.a.onTicketLinkTap=function(x){x.target&&this.handleTap(x.target,x.model.item,this.isKeyboardAction(x))};
_.a.handleTap=function(x,G,D){if(G.buttonCommand)if(G.hasMultipleOffers)Object.assign(_.Y(G.buttonCommand,_.bz),{properties:{source:D?"keyboard":"tap"}}),this.logTap(G),this.popupPositionTarget=x,_.zl(this.hostElement,[G.buttonCommand],this.hostElement);else{var K;if((K=_.Y(G.buttonCommand,_.iV))==null?0:K.url)this.logTap(G),_.jr(window,_.Y(G.buttonCommand,_.iV).url)}};
V_.prototype.onShowingMoreChanged=V_.prototype.onShowingMoreChanged;V_.prototype.dataChanged=V_.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],V_.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],V_.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],V_.prototype,"firstEvent",void 0);_.q([_.R(),_.N("design:type",Object)],V_.prototype,"restEvents",void 0);_.q([_.R(),_.N("design:type",String)],V_.prototype,"imageUrl",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],V_.prototype,"showingMore",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],V_.prototype,"canShowMore",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],V_.prototype,"skinnyMode",void 0);_.q([_.R(),_.N("design:type",HTMLElement)],V_.prototype,"popupPositionTarget",void 0);_.q([_.cD("#banner-info-tooltip"),_.N("design:type",Object)],V_.prototype,"infoTooltip",void 0);
_.q([_.cD("#info-container"),_.N("design:type",HTMLElement)],V_.prototype,"infoContainer",void 0);_.q([_.cD("#shelf-toggler"),_.N("design:type",HTMLElement)],V_.prototype,"shelfToggleButton",void 0);_.q([_.cD("#separator"),_.N("design:type",HTMLDivElement)],V_.prototype,"separator",void 0);_.q([_.R(),_.N("design:type",String)],V_.prototype,"shelfTogglerLabelText",void 0);_.q([_.R(),_.N("design:type",String)],V_.prototype,"shelfTogglerIcon",void 0);
_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],V_.prototype,"dataChanged",null);_.q([_.Z6("showingMore"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],V_.prototype,"onShowingMoreChanged",null);V_=_.q([_.d({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],V_);
_.w(V_,"ytd-ticket-shelf-renderer",function(){if(S0c!==void 0)return S0c;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return S0c=x},{mode:1});var nNi;var iIf;var bn=function(){return _.n.apply(this,arguments)||this};
_.m(bn,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],bn.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],bn.prototype,"data",void 0);bn=_.q([_.d({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],bn);
_.w(bn,"ytd-comments-entry-point-message-renderer",function(){if(iIf!==void 0)return iIf;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return iIf=x},{mode:1});var gNb;var Lc=function(){return _.n.apply(this,arguments)||this};
_.m(Lc,_.n);_.Nq.Object.defineProperties(Lc.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.teaserAvatar)}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Lc.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Lc.prototype,"data",void 0);_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Lc.prototype,"hasAvatar",null);Lc=_.q([_.d({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],Lc);
_.w(Lc,"ytd-comments-entry-point-teaser-renderer",function(){if(gNb!==void 0)return gNb;var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return gNb=x},{mode:1});var uSf;var Br=function(){return _.n.apply(this,arguments)||this};
_.m(Br,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Br.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Br.prototype,"data",void 0);Br=_.q([_.d({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],Br);
_.w(Br,"ytd-comments-simplebox-renderer",function(){if(uSf!==void 0)return uSf;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return uSf=x},{mode:1});var rd=function(){var x=_.n.apply(this,arguments)||this;x.fullHeight=!_.B("comment_teaser_full_height_kill_switch")&&_.B("kevlar_watch_grid");return x};
_.m(rd,_.n);rd.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"}}}};
rd.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
rd.prototype.onTap=function(){var x=this.tapCommand;x&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(x))};
rd.prototype.onKeyUp=function(x){if(x.keyCode===13)this.onTap()};
_.Nq.Object.defineProperties(rd.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.data)==null?0:x.onTap)return this.data.onTap;var G,D;if(((G=this.data)==null?0:G.teaserContent)||((D=this.data)==null?0:D.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)!=null&&x.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
rd.prototype.onKeyUp=rd.prototype.onKeyUp;rd.prototype.onTap=rd.prototype.onTap;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],rd.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],rd.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],rd.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],rd.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],rd.prototype,"fullHeight",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],rd.prototype,"tapCommand",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],rd.prototype,"simpleboxPlaceholder",null);_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],rd.prototype,"hasSimpleboxPlaceholder",null);
_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],rd.prototype,"simpleboxAvatar",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],rd.prototype,"teaserContent",null);_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],rd.prototype,"hasTeaserContent",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],rd.prototype,"teaserAvatar",null);
_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],rd.prototype,"hasTeaserAvatar",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],rd.prototype,"messageText",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],rd.prototype,"contentRenderer",null);_.q([_.U("data"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],rd.prototype,"hasContents",null);
_.q([_.U("data"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],rd.prototype,"hasContentRenderer",null);_.q([_.oe("click"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rd.prototype,"onTap",null);_.q([_.oe("keypress"),_.N("design:type",Function),_.N("design:paramtypes",[_.oY]),_.N("design:returntype")],rd.prototype,"onKeyUp",null);rd=_.q([_.d({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],rd);
_.w(rd,"ytd-comments-entry-point-header-renderer",function(){if(nNi!==void 0)return nNi;var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return nNi=x},{mode:1});var dK8;_.B("web_enable_sink_animated_rolling_character_and_number")?_.tn(_.HeZ,"yt-animated-rolling-number",{props:{numberText:_.ik,numberValue:_.ik,heightPx:_.ik,fontSizeMultiplier:_.ik,shouldAnimate:_.ik,forceRollUp:_.ik}}):_.KH(_.zWf,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var w4b=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),q08={numberText:"",heightPx:2*w4b,shouldAnimate:!1},sU=function(){var x=_.n.apply(this,arguments)||this;x.usingAnimatedComponents=!0;x.wasDetailed=!1;x.JSC$20253_browserSupportsAnimation=_.B("web_supports_animations_api");x.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};x.detailed=!1;x.shouldAnimate=!1;x.viewCountProps=q08;x.dateTextProps=
q08;x.metadataBadgesInDescription=_.B("web_metadata_badges_in_description");return x};
_.m(sU,_.n);_.a=sU.prototype;_.a.resetAnimationState=function(){this.shouldAnimate=!1};
_.a.updateDynamicMetadata=function(){if(this.JSC$20253_browserSupportsAnimation){if(!this.detailed){var x,G,D,K;var z=(x=this.videoPrimaryInfoRenderer)==null?void 0:(G=x.viewCount)==null?void 0:(D=G.videoViewCountRenderer)==null?void 0:(K=D.extraShortViewCount)==null?void 0:K.simpleText;var y,c,W,e;var Q=(y=this.videoPrimaryInfoRenderer)==null?void 0:(c=y.viewCount)==null?void 0:(W=c.videoViewCountRenderer)==null?void 0:(e=W.shortViewCount)==null?void 0:e.simpleText}if(!Q){var p,V,L,r;z=(p=this.videoPrimaryInfoRenderer)==
null?void 0:(V=p.viewCount)==null?void 0:(L=V.videoViewCountRenderer)==null?void 0:(r=L.unlabeledViewCountValue)==null?void 0:r.simpleText;var H,O,A,g;Q=(H=this.videoPrimaryInfoRenderer)==null?void 0:(O=H.viewCount)==null?void 0:(A=O.videoViewCountRenderer)==null?void 0:(g=A.viewCount)==null?void 0:g.simpleText}var u,f,v;x=Number((u=this.videoPrimaryInfoRenderer)==null?void 0:(f=u.viewCount)==null?void 0:(v=f.videoViewCountRenderer)==null?void 0:v.originalViewCount);var P,k;u=(P=this.videoPrimaryInfoRenderer)==
null?void 0:(k=P.relativeDateText)==null?void 0:k.simpleText;var cL;P=!((cL=this.videoPrimaryInfoRenderer)==null||!cL.relativeDateText);if(z&&Q&&x&&(u||!P)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;cL=Q.split(new RegExp("("+z+")"));z=Rd8(cL[0]);var bO;Q={numberText:(bO=cL[1])!=null?bO:"",numberValue:x,heightPx:2*w4b,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var mE;bO=((mE=cL[2])!=null?mE:"")+"  ";this.setViewCount(Q,z,Rd8(bO));
if(!this.detailed&&P){z=u.split(/(\d+)/);mE=Rd8(z[0]);var jf;bO={numberText:(jf=z[1])!=null?jf:"",heightPx:2*w4b,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var $C;jf=(($C=z[2])!=null?$C:"")+"  ";this.setDateText(bO,mE,Rd8(jf))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.a.setViewCount=function(x,G,D){_.u7(G)!==_.u7(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=G);this.viewCountProps.numberText!==(x==null?void 0:x.numberText)&&(this.viewCountProps=x||q08);_.u7(D)!==_.u7(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=D)};
_.a.setDateText=function(x,G,D){_.u7(G)!==_.u7(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=G);this.dateTextProps.numberText!==(x==null?void 0:x.numberText)&&(this.dateTextProps=x||q08);_.u7(D)!==_.u7(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=D)};
_.a.onYtUpdateViewershipAction=function(x){this.videoPrimaryInfoRenderer&&(_.Y(x,iKx).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.Y(x,iKx).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.Y(x,iKx).viewCount)))};
_.a.onYtUpdateDateTextAction=function(x){if(this.videoPrimaryInfoRenderer){x=_.Y(x,_.SSO).dateText;this.shouldAnimate=!0;var G;((G=this.videoPrimaryInfoRenderer)==null?0:G.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",x):this.set("videoPrimaryInfoRenderer.dateText",x)}};
_.Nq.Object.defineProperties(sU.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return UAO(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.u7(UAO(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.u7(this.viewCountPreNumberText),this.viewCountProps.numberText,_.u7(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.u7(this.dateTextPreNumberText),this.dateTextProps.numberText,_.u7(this.dateTextPostNumberText)].join("")}}});
sU.prototype.updateDynamicMetadata=sU.prototype.updateDynamicMetadata;sU.prototype.resetAnimationState=sU.prototype.resetAnimationState;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],sU.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],sU.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],sU.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],sU.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],sU.prototype,"videoPrimaryInfoRenderer",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],sU.prototype,"detailed",void 0);_.q([_.R(),_.N("design:type",Object)],sU.prototype,"shouldAnimate",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],sU.prototype,"viewCountPreNumberText",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],sU.prototype,"viewCountProps",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],sU.prototype,"viewCountPostNumberText",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],sU.prototype,"dateTextPreNumberText",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],sU.prototype,"dateTextProps",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],sU.prototype,"dateTextPostNumberText",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],sU.prototype,"metadataBadgesInDescription",void 0);_.q([_.U("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.N("design:type",Object),_.N("design:paramtypes",[])],sU.prototype,"infoText",null);
_.q([_.U("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.N("design:type",String),_.N("design:paramtypes",[])],sU.prototype,"descriptionInfoTooltipText",null);_.q([_.U("detailed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],sU.prototype,"showDescriptionInfoTooltip",null);
_.q([_.U("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.N("design:type",String),_.N("design:paramtypes",[])],sU.prototype,"animatedViewCountAccessibilityLabel",null);_.q([_.U("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.N("design:type",String),_.N("design:paramtypes",[])],sU.prototype,"animatedDateTextAccessibilityLabel",null);
_.q([_.yf("videoPrimaryInfoRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sU.prototype,"resetAnimationState",null);_.q([_.yf("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sU.prototype,"updateDynamicMetadata",null);sU=_.q([_.d({disableElementRegistration:!0,is:"ytd-watch-info-text"})],sU);
_.w(sU,"ytd-watch-info-text",function(){if(dK8!==void 0)return dK8;var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return dK8=x},{mode:1});var Nwj;var vNf=_.Nv(function(x){var G=x.data;var D=x.setTapCommand;_.$9(function(){var K=_.jn(G().onTap);D(K)});
return _.M("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.M(_.bA,{data:function(){return G().avatar}},{avatarViewModel:_.Lj}),_.M("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.M("span",null,function(){return G().simpleboxText})))},"aj");var JLc=_.Nv(function(x){return _.M("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.M(_.b,{cond:function(){return _.Y(x.data().avatar,_.gl)},
then:function(G){return _.M(_.Lj,{data:G,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.M("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.M(_.vq,{text:function(){return x.data().teaserText}})))},"bj");var fxO=_.Nv(function(x){var G=x.data;var D=x.setTapCommand;_.$9(function(){var K=_.jn(G().onTap);D(K)});
return _.M("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.M(_.bA,{data:function(){return G().teasers}},{commentsEntryPointTeaserViewModel:JLc}))},"cj");var toY=_.Nv(function(x){var G=x.data;var D=x.setTapCommand;_.$9(function(){var K=_.jn(G().onTap);D(K)});
return _.M("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.M(_.vq,{text:function(){return G().messageText}}))},"dj");var k5Y=_.Nv(function(x){var G=x.data;var D=x.setTapCommand;var K=x.isDisabled;_.$9(function(){var z=(K==null?0:K())?void 0:_.jn(G().onTap);D(z)});
return _.M("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.M(_.Qm,{icon:function(){return G().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.M(_.b,{cond:function(){return G().image},
then:function(z){return _.M(_.wk,{data:z,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.M(_.vq,{text:function(){return G().text},
className:function(){return G().image||G().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.M(_.bA,{data:function(){return G().button}},{buttonViewModel:function(z){return _.M(_.Cs,{data:z.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:K==null?void 0:K()}}})}}))},"ej");var P6f=_.Nv(function(x){var G=x.data;var D=x.itemIndex;var K=x.selectedIndex;var z=x.indexUpdatedCallback;var y=x.observer;x=x.title;var c=_.qi(function(V){_.B("web_metadata_carousel_elref_bugfix")&&y&&y().observe(V)}),W=function(V){D()===K()&&z(V)},e=_.F8(edf),Q=_.F8(Z0c),p=function(){var V,L,r;
return((V=G())==null?void 0:V.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!e()||((L=G())==null?void 0:L.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&Q().includes("PAposts_by_host")||((r=G())==null?void 0:r.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&Q().includes("PAyouchat")};
_.FQ(function(){_.B("web_metadata_carousel_elref_bugfix")||y&&y().observe(c.value)});
return _.M("yt-carousel-item-view-model",{el:c,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":x},_.M(_.bA,{data:function(){var V,L;return(L=(V=_.Y(G().carouselItem,oxO))==null?void 0:V.textCarousel)!=null?L:G().carouselItem}},{textCarouselItemViewModel:function(V){return _.M(k5Y,{data:V.data,
setTapCommand:W,isDisabled:p})},
commentTeaserCarouselItemViewModel:function(V){return _.M(fxO,{data:V.data,setTapCommand:W})},
commentInputBoxCarouselItemViewModel:function(V){return _.M(vNf,{data:V.data,setTapCommand:W})},
commentsEntryPointMessageViewModel:function(V){return _.M(toY,{data:V.data,setTapCommand:W})}}))},"fj");var ENC=_.Nv(function(x){var G=x.numDots;var D=x.activeIndex;return _.M("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.M(_.LT,{each:function(){return Array.from({length:G()})},
keyBy:"INDEX"},function(K,z){return _.M("div",{class:function(){var y={};return _.cH("ytCarouselDotsShapeDot",(y.ytCarouselDotsShapeDotActive=z===D(),y))}})}))},"gj");var hBf=_.Nv(function(x){var G=x.data;var D=x.handleCarouselNavigation;var K=x.numItems;var z=x.selectedIndex;var y=function(){return{disabled:z()===0}},c=function(){return{disabled:z()===K()-1}};
return _.M("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.M("div",null,_.M("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return G().title}),_.M(_.b,{cond:function(){return G().subtitle},
then:function(W){return _.M("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return G().subtitleAccessibilityText}},W)}})),_.M(_.b,{cond:function(){return K()>1},
then:function(){return _.M("div",{class:"ytCarouselTitleViewModelNavigation"},_.M(ENC,{numDots:K,activeIndex:z}),_.M(_.b,{cond:function(){return G().previousButton},
then:function(W){return _.M(_.bA,{data:W},{buttonViewModel:function(e){return _.M(_.Cs,{data:e.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return D(-1)},
buttonOverrides:y})}})}}),_.M(_.b,{cond:function(){return G().nextButton},
then:function(W){return _.M(_.bA,{data:W},{buttonViewModel:function(e){return _.M(_.Cs,{data:e.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return D(1)},
buttonOverrides:c})}})}}))}}))},"hj");_.tn(_.Nv(function(x){var G=x.data;var D,K=_.qi(),z=_.qi(function(P){if(_.B("web_metadata_carousel_elref_bugfix")){var k=function(){var cL=P.offsetWidth*O(),bO=24*(O()-1);L(cL+bO)};
k();window.ResizeObserver&&(D=new ResizeObserver(k),D.observe(P))}}),y=_.Am("HTML_DIR")==="rtl",c=!1,W=0,e=0;
x=_.l(_.eO(0,void 0,"f4aYxe"));var Q=x.next().value,p=x.next().value;x=_.l(_.eO(0,void 0,"kU9O9"));var V=x.next().value,L=x.next().value;x=_.l(_.eO(!1,void 0,"GqphDd"));var r=x.next().value,H=x.next().value,O=function(){var P,k,cL;return(cL=(P=G())==null?void 0:(k=P.carouselTitles)==null?void 0:k.length)!=null?cL:0},A=function(){z.value&&z.value.scrollLeft!==W&&p((y?z.value.scrollLeft<W:z.value.scrollLeft>W)?Math.min(Q()+1,O()-1):Math.max(Q()-1,0))},g;
window.IntersectionObserver&&(g=new IntersectionObserver(function(P){P=_.l(P);for(var k=P.next();!k.done;k=P.next())if(k.value.isIntersecting){if(c){c=!1;break}A()}else p(e)},{threshold:.2}));
_.$9(function(){if(z.value){var P=(y?-1:1)*(V()/O()+12)*(r()&&g?e:Q());typeof z.value.scrollTo==="function"?z.value.scrollTo({left:P,behavior:"smooth"}):z.value.scrollLeft=P;W=P;e=r()&&g?e:Q()}});
var u,f=function(P){u=P};
_.FQ(function(){if(!_.B("web_metadata_carousel_elref_bugfix")){var P=function(){var cL=z.value.offsetWidth*O(),bO=24*(O()-1);L(cL+bO)};
P();if(window.ResizeObserver){var k=new ResizeObserver(P);k.observe(z.value);_.Fq(function(){k.disconnect();g&&g.disconnect()})}}});
_.Fq(function(){if(_.B("web_metadata_carousel_elref_bugfix")){var P;(P=D)==null||P.disconnect();var k;(k=g)==null||k.disconnect()}});
var v=function(P){P=Q()+P;P>=0&&P<O()&&(c=!0,p(P))};
return _.M("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:K,"on:click":_.WH(function(P){if(_.RO(_.Ug(P),K.value,["BUTTON".toString()])||!u)return!1;_.Eo().resolve(_.hm).resolveCommand(u,{forceClickLogging:!0});return!1}),
"on:touchstart":_.WH(function(){H(!0);return!1}),
"on:touchend":_.WH(function(){g||A();H(!1);return!1}),
hidden:function(){var P,k;return!((P=G())==null?0:(k=P.carouselItems)==null?0:k.length)}},_.M("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.M(_.b,{cond:function(){return G().carouselTitles},
then:function(P){return _.M(_.bA,{data:function(){return P()[r()&&g?e:Q()]}},{carouselTitleViewModel:function(k){return _.M(hBf,{data:k.data,
handleCarouselNavigation:v,numItems:O,selectedIndex:Q})}})}})),_.M("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:z},_.M("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+V()+"px;"}},_.M(_.b,{cond:function(){return G().carouselItems},
then:function(P){return _.M(_.LT,{each:P},function(k,cL){return _.M(_.bA,{data:function(){return k}},{carouselItemViewModel:function(bO){return _.M(P6f,{data:bO.data,
itemIndex:cL,selectedIndex:Q,indexUpdatedCallback:f,observer:g,title:function(){a:{var mE=cL();var jf,$C=(jf=G())==null?void 0:jf.carouselTitles;if($C&&(mE=$C[mE])){var OD;mE=(OD=_.Y(mE,a3c))==null?void 0:OD.title;break a}mE=void 0}return mE}})}})})}}))))},"ij"),"yt-video-metadata-carousel-view-model",{props:{data:_.ik}});var xTb=_.B("web_action_buttons_update_owner_width")?32:12,Ye=function(){var x=_.n.apply(this,arguments)||this;x.metadataBadgesInDescription=_.B("web_metadata_badges_in_description");x.descriptionCollapsed=!0;x.useFadedScrimDescription=_.B("kevlar_enable_faded_scrim_on_description");x.skinnyMode=!1;x.playlist=!1;x.isDark=document.documentElement.hasAttribute("dark");x.disableVideoOwnerOnTap=_.B("swatchie_video_owner_on_tap_ks");x.swatcherooDelayLoad=_.B("swatcheroo_enable_ghost_cards");x.primaryMenuWidth=
0;x.videoId="";x.titleHeadlineXs=_.B("web_watch_typography_title_headline_xs");x.titleHeadlineS=_.B("web_watch_typography_title_headline_s");x.titleHeadlineM=_.B("web_watch_typography_title_headline_m");x.titleHashtagBlackLinkified=_.B("web_title_hashtag_black_linkified");x.titleHashtagGreyLinkified=_.B("web_title_hashtag_grey_linkified");x.actionButtonsUpdateOwnerWidth=_.B("web_action_buttons_update_owner_width");x.shouldForceIconOnly=!1;x.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};x.isFullscreen=!1;x.isTheaterMode=!1;return x};
_.m(Ye,_.n);_.a=Ye.prototype;_.a.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.a.updateOwnerAndDescriptionPosition=function(){_.B("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.ja(this.bottomRowElement,this.ownerElement)):(_.ja(this.bottomRowElement,this.descriptionElement),_.ja(this.topRowElement,this.ownerElement)))};
_.a.titleOnTap=function(x){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.u_(_.gA(x)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var G;((G=window.getSelection())==null?0:G.toString().length)||this.handleExpandDescriptionCommands()}};
_.a.videoOwnerOnTap=function(x){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.u_(_.gA(x)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.a.detached=function(){var x=this,G;return _.T(function(D){(G=x.resizeObserver)==null||G.disconnect();_.c5(D)})};
_.a.maybeAttachResizeObserver=function(){var x=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.Jc(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){x.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.a.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var x=this.hostElement.clientWidth,G=Math.max(this.largerItemWrap?400:350,x/2-xTb);if(_.B("web_action_buttons_update_owner_width")){var D;G=(((D=document.getElementById("owner"))==null?void 0:D.clientWidth)||0)+xTb}this.actionsOnSeparateLine=this.primaryMenuWidth>x-G?!0:!1}};
_.a.stripAttributedDescription=function(x){return{content:x.content.replace(/[\r\n]{2,}/g,"\n")}};
_.a.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.B("web_modern_buttons"),forceIconButton:!_.B("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:_.B("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"}}}};
_.a.videoPrimaryInfoRendererChanged=function(){var x;if((x=this.videoPrimaryInfoRenderer)==null?0:x.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.a.videoSecondaryInfoRendererChanged=function(){var x,G;(G=(x=this.descriptionInlineExpander).collapse)==null||G.call(x);this.descriptionExpandClientVe=_.BH(110509);this.descriptionCollapseClientVe=_.BH(110510);x=_.CC();G=_.Fx();x&&G&&(_.B("combine_ve_grafts")?(_.hz(_.en(),this.descriptionExpandClientVe,G),_.hz(_.en(),this.descriptionCollapseClientVe,G)):_.S7(x,G,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.a.structuredDescriptionContentRendererChanged=function(){_.B("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.a.updateTopLevelIconsOnly=function(){var x=this;_.B("top_level_update_killswitch")||this.menu&&_.Fj.addLowPriorityJob(function(){x.menu.topLevelIconsOnly=x.skinnyMode},_.Gz("swathceroo_delay_flexible_menu_update",100))};
_.a.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.B("web_action_buttons_minimize_subscribe")};
_.a.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.a.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.a.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.a.onYtTextInlineExpanderExpandedChanged=function(){if(!_.B("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var x,G;(G=(x=this.structuredDescriptionContentRendererElement).resize)==null||G.call(x)}};
_.a.onRenderStamperFinished=function(x){(x==null?void 0:x.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.a.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.a.onYtExpanderLessTapped=function(){var x,G=(x=this.videoSecondaryInfoRenderer)==null?void 0:x.showLessCommand;G&&this.ytComponentBehavior.resolveCommand(G)};
_.a.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.a.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.a.onDescriptionClick=function(x){if(!_.u_(_.gA(x)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var G;((G=window.getSelection())==null?0:G.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.B("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.a.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.a.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.a.logCollapseClick=function(){var x=_.CC();x&&this.descriptionCollapseClientVe&&_.u0(x,this.descriptionCollapseClientVe)};
_.a.logExpandClick=function(){var x=_.CC();x&&this.descriptionExpandClientVe&&_.u0(x,this.descriptionExpandClientVe)};
_.a.collapseDescription=function(){this.descriptionCollapsed=!0};
_.a.scrollToTopOfContainer=function(){_.xO(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.a.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.a.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.a.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.a.resize=function(){if(this.descriptionInlineExpander){var x,G;(G=(x=this.descriptionInlineExpander).resize)==null||G.call(x)}else _.O9(new _.LL("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var D;(D=this.menu)==null||D.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.B("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.a.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var x,G,D,K,z=_.B("web_action_buttons_update_owner_width")?(D=(x=_.kA(this.menu).querySelector("#button-shape"))==null?void 0:x.clientWidth)!=null?D:0:(K=(G=_.kA(this.menu).querySelector("#button"))==null?void 0:G.clientWidth)!=null?K:0,y,c;x=((c=(y=_.kA(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:y.clientWidth)!=null?c:0)+8+z;var W,e;z=(e=(W=_.kA(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:W.children.length)!=null?e:2;x<=8*z||(this.primaryMenuWidth=x)}};
_.a.onYtUpdateTitleAction=function(x){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.Y(x,nxk).title)};
_.a.onYtUpdateDescriptionAction=function(x){if(x=_.Y(x,_.voJ)){var G,D=!((G=this.videoSecondaryInfoRenderer)==null||!G.attributedDescription);x.isEmpty||!x.description&&!x.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):x.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",x.attributedDescription):x.description&&(D?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.$$(x.description)):this.set("videoSecondaryInfoRenderer.description",x.description))}};
_.a.onYtDarkModeToggledAction=function(x){this.isDark=x};
_.a.registerPanel=function(){if(!_.B("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var x=_.B("web_watch_imax_theater_mode")&&this.isTheaterMode;x=_.B("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||x;var G=_.Eo().resolve(_.VT);G&&!x&&G.registerPanel("engagement-panel-structured-description",this)}};
_.a.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.a.showPanel=function(x){this.expandDescription();var G=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;G.resize();var D,K=x==null?void 0:(D=x.sectionListEngagementPanelExtras)==null?void 0:D.scrollToItemSectionIdentifier;K?_.Fj.addJob(function(){G==null||G.scrollToSection(K)},8):this.scrollToTopOfContainer()};
_.a.isVisible=function(){return!this.descriptionCollapsed};
_.a.getReloadContinuation=function(){};
_.a.hidePanel=function(){};
_.a.updatePanel=function(){};
_.Nq.Object.defineProperties(Ye.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.structuredDescriptionContentRenderer)!=null&&x.items){var G;x=_.l((G=this.structuredDescriptionContentRenderer)==null?void 0:G.items);for(G=x.next();!G.done;G=x.next())if(G=_.Y(G.value,_.vh7))return G}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.videoPrimaryInfoRenderer)==null?0:x.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var x,G,D;return!!((x=this.videoSecondaryInfoRenderer)==null?0:(G=x.owner)==null?0:(D=G.videoOwnerRenderer)==null?0:D.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.B("swatchie_sd_new_line_strip_ks")){var x,G;if((x=this.videoSecondaryInfoRenderer)==null?0:(G=x.attributedDescription)==null?0:G.content){var D,K;return(K=this.stripAttributedDescription((D=this.videoSecondaryInfoRenderer)==null?void 0:D.attributedDescription))!=null?K:{runs:[]}}}var z,y,c,W;return(W=(c=(z=this.videoSecondaryInfoRenderer)==null?void 0:z.description)!=null?c:(y=this.videoSecondaryInfoRenderer)==null?
void 0:y.attributedDescription)!=null?W:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var x,G;return(G=(x=this.videoSecondaryInfoRenderer)==null?void 0:x.headerRuns)!=null?G:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.commentsEntryPointHeaderRenderer)==null||!x.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.videoMetadataCarousel)==null||!x.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.Gz("swatchie_desc_lines",3):this.hasTeaserCarousel?_.Gz("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var x,G,D=Object.assign({},(x=this.videoSecondaryInfoRenderer)==null?void 0:(G=x.metadataRowContainer)==null?void 0:G.metadataRowContainerRenderer);if(D&&D.rows&&D.collapsedItemCount!==void 0&&!(D.rows.length<=D.collapsedItemCount))return D.rows=D.rows.slice(D.collapsedItemCount),D.collapsedItemCount=0,D}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var x,G,D=Object.assign({},(x=this.videoSecondaryInfoRenderer)==null?void 0:(G=x.metadataRowContainer)==null?void 0:G.metadataRowContainerRenderer);if(D&&D.rows&&D.collapsedItemCount!==void 0)return D.rows=D.rows.slice(0,D.collapsedItemCount),D.collapsedItemCount=D.rows.length,D}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var x,G;return!!((x=this.structuredDescriptionContentRenderer)==null?0:(G=x.items)==null?0:G.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 x;return(x=this.videoSecondaryInfoRenderer)==null?void 0:x.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var x,G,D;return((x=this.videoSecondaryInfoRenderer)==null?0:(G=x.owner)==null?0:(D=G.videoOwnerRenderer)==null?0:D.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var x,G,D,K;return!!((x=this.videoPrimaryInfoRenderer)==null?0:(G=x.videoActions)==null?0:(D=G.menuRenderer)==null?0:(K=D.flexibleItems)==null?0:K.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.gk(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.gk(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var x=this;if(_.B("web_title_hashtag_grey_delinkified")){var G,D=_.YS.unsafeClone((G=this.videoPrimaryInfoRenderer)==null?void 0:G.title);(G=D==null?void 0:D.runs)&&G.forEach(function(K){if(K==null?0:K.navigationEndpoint)K.textColor=4284506208,x.isDark&&(K.textColor=4289374890)});
return D}return(D=this.videoPrimaryInfoRenderer)==null?void 0:D.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.B("web_title_hashtag_black_delinkified")||_.B("web_title_hashtag_grey_delinkified")}}});
Ye.prototype.resetDescriptionState=Ye.prototype.resetDescriptionState;Ye.prototype.registerPanel=Ye.prototype.registerPanel;Ye.prototype.onYtExpanderLessTapped=Ye.prototype.onYtExpanderLessTapped;Ye.prototype.onYtExpanderMoreTapped=Ye.prototype.onYtExpanderMoreTapped;Ye.prototype.onRenderStamperFinished=Ye.prototype.onRenderStamperFinished;Ye.prototype.onYtTextInlineExpanderExpandedChanged=Ye.prototype.onYtTextInlineExpanderExpandedChanged;Ye.prototype.onYtTextInlineExpanderCollapseClicked=Ye.prototype.onYtTextInlineExpanderCollapseClicked;
Ye.prototype.onYtTextInlineExpanderExpandClicked=Ye.prototype.onYtTextInlineExpanderExpandClicked;Ye.prototype.moveActionsElement=Ye.prototype.moveActionsElement;Ye.prototype.updateShouldForceIconOnly=Ye.prototype.updateShouldForceIconOnly;Ye.prototype.updateTopLevelIconsOnly=Ye.prototype.updateTopLevelIconsOnly;Ye.prototype.structuredDescriptionContentRendererChanged=Ye.prototype.structuredDescriptionContentRendererChanged;Ye.prototype.videoSecondaryInfoRendererChanged=Ye.prototype.videoSecondaryInfoRendererChanged;
Ye.prototype.videoPrimaryInfoRendererChanged=Ye.prototype.videoPrimaryInfoRendererChanged;Ye.prototype.maybeUpdateActionsOnSeparateLine=Ye.prototype.maybeUpdateActionsOnSeparateLine;Ye.prototype.updateOwnerAndDescriptionPosition=Ye.prototype.updateOwnerAndDescriptionPosition;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],Ye.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Ye.prototype,"ytComponentBehavior",void 0);
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Ye.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Ye.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],Ye.prototype,"ytdReduxBehavior",void 0);_.q([_.cD("#above-the-fold"),_.N("design:type",HTMLElement)],Ye.prototype,"aboveTheFoldContainer",void 0);_.q([_.cD("#menu ytd-menu-renderer"),_.N("design:type",Object)],Ye.prototype,"menu",void 0);
_.q([_.cD("#description-inline-expander"),_.N("design:type",Object)],Ye.prototype,"descriptionInlineExpander",void 0);_.q([_.cD("#faded-structured-description"),_.N("design:type",Object)],Ye.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.q([_.cD("#structured-description"),_.N("design:type",Object)],Ye.prototype,"structuredDescriptionContentRendererElement",void 0);_.q([_.cD("#title"),_.N("design:type",HTMLElement)],Ye.prototype,"titleElement",void 0);
_.q([_.cD("#description"),_.N("design:type",HTMLElement)],Ye.prototype,"descriptionElement",void 0);_.q([_.cD("#description-interaction"),_.N("design:type",Object)],Ye.prototype,"descriptionInteraction",void 0);_.q([_.cD("#owner"),_.N("design:type",HTMLElement)],Ye.prototype,"ownerElement",void 0);_.q([_.cD("#top-row"),_.N("design:type",HTMLElement)],Ye.prototype,"topRowElement",void 0);_.q([_.cD("#bottom-row"),_.N("design:type",HTMLElement)],Ye.prototype,"bottomRowElement",void 0);
_.q([_.cD("#actions"),_.N("design:type",HTMLElement)],Ye.prototype,"actionsElement",void 0);_.q([_.cD("#bottom-actions"),_.N("design:type",HTMLElement)],Ye.prototype,"bottomActionsElement",void 0);_.q([_.cD("#ytd-watch-info-text"),_.N("design:type",Object)],Ye.prototype,"watchInfoTextElement",void 0);_.q([_.R(),_.N("design:type",Object)],Ye.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],Ye.prototype,"videoPrimaryInfoRenderer",void 0);
_.q([_.R(),_.N("design:type",Object)],Ye.prototype,"videoSecondaryInfoRenderer",void 0);_.q([_.R(),_.N("design:type",Object)],Ye.prototype,"commentsEntryPointHeaderRenderer",void 0);_.q([_.R(),_.N("design:type",Object)],Ye.prototype,"videoMetadataCarousel",void 0);_.q([_.R(),_.N("design:type",Object)],Ye.prototype,"structuredDescriptionContentRenderer",void 0);_.q([_.R(),_.N("design:type",Object)],Ye.prototype,"videoSummary",void 0);
_.q([_.R(),_.N("design:type",Object)],Ye.prototype,"merchShelf",void 0);_.q([_.R(),_.N("design:type",Object)],Ye.prototype,"infoPanelBelowMetadata",void 0);_.q([_.U("structuredDescriptionContentRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ye.prototype,"productShelf",null);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Ye.prototype,"metadataBadgesInDescription",void 0);
_.q([_.U("videoPrimaryInfoRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ye.prototype,"shouldHideBadges",null);_.q([_.U("productShelf","descriptionCollapsed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ye.prototype,"shouldShowProductShelf",null);_.q([_.R(),_.N("design:type",Boolean)],Ye.prototype,"isWatchFlexy",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Ye.prototype,"descriptionCollapsed",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ye.prototype,"useFadedScrimDescription",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Ye.prototype,"skinnyMode",void 0);_.q([_.R({reflectToAttribute:!0}),_.U("videoSecondaryInfoRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ye.prototype,"largerItemWrap",null);_.q([_.R(),_.N("design:type",Object)],Ye.prototype,"playlist",void 0);_.q([_.R(),_.N("design:type",Object)],Ye.prototype,"clarifyBox",void 0);
_.q([_.R(),_.N("design:type",Object)],Ye.prototype,"playerAds",void 0);_.q([_.R(),_.N("design:type",Boolean)],Ye.prototype,"isDark",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ye.prototype,"actionsOnSeparateLine",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Ye.prototype,"disableVideoOwnerOnTap",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Ye.prototype,"swatcherooDelayLoad",void 0);
_.q([_.R(),_.N("design:type",Boolean)],Ye.prototype,"suppressTopLevelMetadataRows",void 0);_.q([_.R(),_.N("design:type",Object)],Ye.prototype,"primaryMenuWidth",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Ye.prototype,"videoId",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Ye.prototype,"titleHeadlineXs",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Ye.prototype,"titleHeadlineS",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Ye.prototype,"titleHeadlineM",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Ye.prototype,"titleHashtagBlackLinkified",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Ye.prototype,"titleHashtagGreyLinkified",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Ye.prototype,"actionButtonsUpdateOwnerWidth",void 0);
_.q([_.R(),_.N("design:type",Object)],Ye.prototype,"shouldForceIconOnly",void 0);_.q([_.Z6("skinnyMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ye.prototype,"updateOwnerAndDescriptionPosition",null);_.q([_.Z6("skinnyMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ye.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.q([_.U("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ye.prototype,"descriptionText",null);_.q([_.U("videoSecondaryInfoRenderer.headerRuns"),_.N("design:type",Array),_.N("design:paramtypes",[])],Ye.prototype,"headerRuns",null);_.q([_.R({value:!1}),_.U("commentsEntryPointHeaderRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ye.prototype,"hasTeaser",null);
_.q([_.R({value:!1,reflectToAttribute:!0}),_.U("videoMetadataCarousel"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ye.prototype,"hasTeaserCarousel",null);_.q([_.R({value:3}),_.U("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ye.prototype,"descriptionMaxLines",null);_.q([_.U("videoSecondaryInfoRenderer.metadataRowContainer"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ye.prototype,"collapsibleMetadataRows",null);
_.q([_.U("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ye.prototype,"alwaysVisibleMetadataRows",null);_.q([_.U("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ye.prototype,"hasInlineStructuredDescription",null);
_.q([_.U("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ye.prototype,"showInlineStructuredDescription",null);_.q([_.U("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ye.prototype,"descriptionExpandCommand",null);
_.q([_.U("videoSecondaryInfoRenderer.owner"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ye.prototype,"videoOwnerCommand",null);_.q([_.R({reflectToAttribute:!0}),_.U("videoPrimaryInfoRenderer.videoActions"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ye.prototype,"flexMenuEnabled",null);_.q([_.R({selector:_.Og,reflectToAttribute:!0}),_.N("design:type",Object)],Ye.prototype,"isFullscreen",void 0);
_.q([_.R({selector:_.jU,reflectToAttribute:!0}),_.N("design:type",Object)],Ye.prototype,"isTheaterMode",void 0);_.q([_.U("descriptionText","useFadedScrimDescription"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ye.prototype,"showAttributedStringDescription",null);_.q([_.U("descriptionText","useFadedScrimDescription"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ye.prototype,"showFormattedStringDescription",null);
_.q([_.U("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ye.prototype,"showFadedStructuredDescription",null);_.q([_.Z6("videoPrimaryInfoRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ye.prototype,"videoPrimaryInfoRendererChanged",null);_.q([_.U("videoPrimaryInfoRenderer.title"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ye.prototype,"videoTitle",null);
_.q([_.U("videoPrimaryInfoRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ye.prototype,"noEndpoints",null);_.q([_.Z6("videoSecondaryInfoRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ye.prototype,"videoSecondaryInfoRendererChanged",null);
_.q([_.yf("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ye.prototype,"structuredDescriptionContentRendererChanged",null);_.q([_.yf("skinnyMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ye.prototype,"updateTopLevelIconsOnly",null);
_.q([_.yf("skinnyMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ye.prototype,"updateShouldForceIconOnly",null);_.q([_.yf("skinnyMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ye.prototype,"moveActionsElement",null);_.q([_.oe("yt-text-inline-expander-expand-clicked"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ye.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.q([_.oe("yt-text-inline-expander-collapse-clicked"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ye.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.q([_.oe("yt-text-inline-expander-expanded-changed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ye.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.q([_.oe("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Ye.prototype,"onRenderStamperFinished",null);_.q([_.oe("yt-expander-more-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ye.prototype,"onYtExpanderMoreTapped",null);_.q([_.oe("yt-expander-less-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ye.prototype,"onYtExpanderLessTapped",null);
_.q([_.yf("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ye.prototype,"registerPanel",null);_.q([_.yf("videoSecondaryInfoRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ye.prototype,"resetDescriptionState",null);Ye=_.q([_.d({disableElementRegistration:!0,is:"ytd-watch-metadata"})],Ye);
_.w(Ye,"ytd-watch-metadata",function(){if(Nwj!==void 0)return Nwj;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Nwj=x},{mode:2});_.lWf=function(x){_.Ya.call(this);this.JSC$20276_watchApi=x;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;Ghk(this);DTi(this);KQi(this);zLY(this);aWb(this);oHY(this);y4i(this)};
_.m(_.lWf,_.Ya);var KQi=function(x){var G=function(){_.B("kevlar_is_pupi_enabled")||mo(x)};
x.JSC$20276_watchApi.getRoot().addEventListener("yt-player-updated",G);x.addOnDisposeCallback(function(){x.JSC$20276_watchApi.getRoot().removeEventListener("yt-player-updated",G)})},aWb=function(x){if(_.B("kevlar_endscreen_auto_theater_mode")){var G=x.JSC$20276_watchApi.subscribeToActiveChanged(function(){c4x(x)},!1);
x.addOnDisposeCallback(G)}},Ghk=function(x){var G,D,K,z,y;
_.T(function(c){if(c.nextAddress==1)return _.Z(c,x.JSC$20276_watchApi.playerApi,2);G=c.yieldResult;D=function(W){W=!!W;Hr(x)&&(W=W?2:1,_.de.getInstance().setState(W,!0,!1))};
K=function(W){W&&_.W0c(_.wK().getState())&&(_.xO(x.JSC$20276_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),x.temporaryTheaterMode=!0)};
z=function(W){_.B("kevlar_player_update_autonav_on_new_data")&&W.type==="newdata"&&(_.B("kevlar_is_pupi_enabled")||mo(x))};
y=function(W){x.onPlayerStateChange(W)};
_.B("kevlar_endscreen_auto_theater_mode")&&G.addEventListener("onAutonavCancelled",K);G.addEventListener("onAutonavChangeRequest",D);G.addEventListener("onVideoDataChange",z);G.addEventListener("onStateChange",y);x.addOnDisposeCallback(function(){G.removeEventListener("onAutonavChangeRequest",D);G.removeEventListener("onVideoDataChange",z);G.removeEventListener("onStateChange",y);_.B("kevlar_endscreen_auto_theater_mode")&&G.removeEventListener("onAutonavCancelled",K)});
_.c5(c)})},DTi=function(x){x.JSC$20276_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){x.autonavCancelledBySignal=!0;
_.B("kevlar_is_pupi_enabled")||mo(x)});
x.JSC$20276_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(G,D,K){D&&mo(x,K)});
x.JSC$20276_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){Hr(x)&&_.de.getInstance().setState(2,!0,!0)});
x.JSC$20276_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){Hr(x)&&_.de.getInstance().setState(1,!0,!0)});
x.addOnDisposeCallback(function(){x.JSC$20276_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");x.JSC$20276_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");x.JSC$20276_watchApi.unregisterActionHandler("yt-enable-autoplay-command");x.JSC$20276_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},zLY=function(x){var G=x.JSC$20276_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){y4i(x)}),D=x.JSC$20276_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){oHY(x)});
x.addOnDisposeCallback(function(){x.JSC$20276_watchApi.unsubscribeByKey(G);x.JSC$20276_watchApi.unsubscribeByKey(D)})},y4i=function(x){x.autonavCancelledBySignal=!1;
_.B("kevlar_is_pupi_enabled")||mo(x)},oHY=function(x){var G=x.JSC$20276_watchApi.getWatchNextResponse(),D,K;
var z=(G=(K=_.Y(G==null?void 0:(z=G.playerOverlays)==null?void 0:(D=z.playerOverlayRenderer)==null?void 0:D.autonavToggle,_.fmq))==null?void 0:K.enabled)?2:1;_.B("kevlar_is_pupi_enabled")?_.de.getInstance().setState(z,!1,!1):mo(x);_.B("web_persist_server_autonav_state_on_client")&&typeof G==="boolean"&&_.Vud(z===2)},Hr=function(x){if(x.autonavCancelledBySignal)return!1;
var G,D,K,z;return!!((G=x.JSC$20276_watchApi.getWatchNextResponse())==null?0:(D=G.contents)==null?0:(K=D.twoColumnWatchNextResults)==null?0:(z=K.autoplay)==null?0:z.autoplay)};
_.lWf.prototype.onPlayerStateChange=function(x){if(x===0){x=!_.de.getInstance().isAutoplaySetExplicitly();var G=this.JSC$20276_watchApi.getWatchNextResponse(),D,K,z,y;G=_.Y(G==null?void 0:(D=G.contents)==null?void 0:(K=D.twoColumnWatchNextResults)==null?void 0:(z=K.autoplay)==null?void 0:(y=z.autoplay)==null?void 0:y.autoplayExplicitChoiceDialogRenderer,_.bys);Hr(this)&&x&&G&&_.y2.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:G},popupType:"DIALOG"}})}else c4x(this)};
var c4x=function(x){x.temporaryTheaterMode&&(x.temporaryTheaterMode=!1,_.xO(x.JSC$20276_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},mo=function(x,G){G=G===void 0?!1:G;
var D;_.T(function(K){if(K.nextAddress==1)return _.Z(K,x.JSC$20276_watchApi.playerApi,2);D=K.yieldResult;Hr(x)?D.setAutonavState(_.de.getInstance().getState(),G):D.setAutonavState(1,G);_.c5(K)})};var TWi={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"};_.eLO=function(x){_.Ya.call(this);var G=this;this.JSC$20281_watchApi=x;var D=this.JSC$20281_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){WQc(G)});
this.addOnDisposeCallback(function(){G.JSC$20281_watchApi.unsubscribeByKey(D)});
WQc(this)};
_.m(_.eLO,_.Ya);var WQc=function(x){var G=x.JSC$20281_watchApi.getPlayerResponse(),D=x.JSC$20281_watchApi.getWatchNextResponse();if(!_.nNC(G==null?void 0:G.playabilityStatus,D==null?void 0:D.playerOverlays)){var K;var z=G==null?void 0:(K=G.playabilityStatus)==null?void 0:K.errorScreen}x.JSC$20281_watchApi.provideRenderingData("ERROR_SCREEN",z)};var ZAO=_.Nv(function(x){var G=x.data;var D=_.F8(_.Og);x={};return _.M("yt-player-overlay-video-details-renderer",{class:"ytPlayerOverlayVideoDetailsRendererHost","on:click":_.WH(function(){var K=G().onTap;K&&_.Eo().resolve(_.hm).resolveCommand(K)})},_.M("div",{class:_.ym("ytPlayerOverlayVideoDetailsRendererTitle",(x.ytPlayerOverlayVideoDetailsRendererTitleCompact=function(){return!D()},x))},_.M(_.vq,{text:function(){return G().title}})),_.M("div",{class:"ytPlayerOverlayVideoDetailsRendererSubtitle"},
_.M(_.bA,{data:function(){return G().channelAvatar}},{avatarViewModel:_.Lj}),_.M(_.vq,{text:function(){return G().subtitle}})))},"jj");var $e={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER"},MQc=_.Nv(function(x){var G=x.data;var D=_.F8(_.Og);return _.M("yt-player-quick-action-buttons",{class:_.ym("ytPlayerQuickActionButtonsHost")},_.M(_.LT,{each:function(){var K=G(),z=D();K=JSON.parse(JSON.stringify(K));for(var y=_.B("web_watch_action_bar_resize_buttons"),c=_.B("delhi_modern_web_player_icons")&&!_.B("enable_web_delhi_icons"),W=_.l(K),e=W.next();!e.done;e=W.next()){var Q=
e.value,p=void 0;e=_.Y((p=_.Y(Q,_.YL))==null?void 0:p.toggleButtonViewModel,_.Bq);var V=void 0;p=_.Y((V=_.Y(Q,_.mY))==null?void 0:V.toggleButtonViewModel,_.Bq);Q=_.Y(Q,_.Ls);e?(p=_.Y(e.defaultButtonViewModel,_.Ls),e=_.Y(e.toggledButtonViewModel,_.Ls),p&&(c&&p.iconName&&(p.iconName=$e[p.iconName]),!z&&y&&(p.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT")),e&&(c&&e.iconName&&(e.iconName=$e[e.iconName]),!z&&y&&(e.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT"))):p?(e=_.Y(p.defaultButtonViewModel,_.Ls),p=_.Y(p.toggledButtonViewModel,
_.Ls),e&&(c&&e.iconName&&(e.iconName=$e[e.iconName]),!z&&y&&(e.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT")),p&&(c&&p.iconName&&(p.iconName=$e[p.iconName]),!z&&y&&(p.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT"))):Q&&(c&&Q.iconName&&(Q.iconName=$e[Q.iconName]),!z&&y&&(Q.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT"))}return K}},function(K){return _.M(_.bA,{data:function(){return K}},{buttonViewModel:_.Cs,
likeButtonViewModel:function(z){return _.M(_.mp,{data:z.data,disableIconAnimation:!0})},
dislikeButtonViewModel:_.Yn})}))},"kj");_.pfT=function(x){_.Ya.call(this);var G=this;this.JSC$20284_watchApi=x;x=_.l(_.eO({},void 0,"ufFdVc"));this.quickActionsViewModel=x.next().value;this.setQuickActionsViewModel=x.next().value;x=_.l(_.eO({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=x.next().value;this.setPlayerOverlayVideoDetailsRenderer=x.next().value;var D=this.JSC$20284_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){QBb(G)});
this.addOnDisposeCallback(function(){G.JSC$20284_watchApi.unsubscribeByKey(D)});
QBb(this)};
_.m(_.pfT,_.Ya);
var QBb=function(x){var G,D,K,z,y,c,W,e,Q,p,V,L,r,H;_.T(function(O){if(O.nextAddress==1)return _.Z(O,x.JSC$20284_watchApi.playerApi,2);G=O.yieldResult;D=x.JSC$20284_watchApi.getWatchNextResponse();y=(K=D)==null?void 0:(z=K.playerOverlays)==null?void 0:z.playerOverlayRenderer;W=_.Y((c=y)==null?void 0:c.fullscreenQuickActionsBar,_.hA0);(Q=(e=x).setQuickActionsViewModel)==null||Q.call(e,W||{});W&&VQY(x,G);L=(p=y)==null?void 0:(V=p.videoDetails)==null?void 0:V.playerOverlayVideoDetailsRenderer;(H=(r=
x).setPlayerOverlayVideoDetailsRenderer)==null||H.call(r,L||{});L&&bAT(x,G);_.c5(O)})},VQY=function(x,G){if(!x.quickActionButtonsContainer){x.quickActionButtonsContainer=document.createElement("div");
G.setFullscreenQuickActions(x.quickActionButtonsContainer);var D=function(){return x.quickActionsViewModel().quickActionButtons||[]},K=_.mS(x.quickActionButtonsContainer,function(){return _.M(MQc,{data:D})});
x.addOnDisposeCallback(function(){G.setFullscreenQuickActions(void 0);K()})}},bAT=function(x,G){if(!x.playerOverlayVideoDetailsRendererContainer){x.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
G.setPlayerOverlayVideoDetailsRenderer(x.playerOverlayVideoDetailsRendererContainer);var D=_.mS(x.playerOverlayVideoDetailsRendererContainer,function(){return _.M(ZAO,{data:x.playerOverlayVideoDetailsRenderer})});
x.addOnDisposeCallback(function(){G.setPlayerOverlayVideoDetailsRenderer(void 0);D()})}};_.F1=function(x){_.Ya.call(this);var G=this;this.JSC$20289_watchApi=x;this.JSC$20289_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;x=_.la(_.wK(),_.Og,function(D){G.onFullscreenChanged(D)});
this.addOnDisposeCallback(x);x=_.la(_.wK(),_.sF,function(D){G.onWatchScroll(D)});
this.addOnDisposeCallback(x);_.B("kevlar_watch_while_v2")&&(x=_.la(_.wK(),_.Hk,function(D){LQi(G,D)}),this.addOnDisposeCallback(x));
BWj(this);r4i(this);sBC();this.onWatchScroll(_.sF(_.wK().getState()));_.Uo("START_IN_FULL_WINDOW_MODE")&&this.JSC$20289_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.m(_.F1,_.Ya);var BWj=function(x){x.JSC$20289_watchApi.registerActionHandler("yt-fullscreen-change-action",function(G){var D=x.JSC$20289_watchApi.isActive();G&&!D||_.wK().dispatch(_.EO({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!G}}))});
x.addOnDisposeCallback(function(){x.JSC$20289_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},r4i=function(x){var G,D;
_.T(function(K){if(K.nextAddress==1)return _.Z(K,x.JSC$20289_watchApi.playerApi,2);G=K.yieldResult;D=function(){x.onFullerscreenEduClicked()};
G.addEventListener("onFullerscreenEduClicked",D);x.addOnDisposeCallback(function(){G.removeEventListener("onFullerscreenEduClicked",D)});
_.c5(K)})};
_.F1.prototype.onFullscreenChanged=function(x){var G=this,D;return _.T(function(K){if(K.nextAddress==1)return G.isFullscreen=!!_.t$(),_.Z(K,G.JSC$20289_watchApi.playerApi,2);D=K.yieldResult;G.JSC$20289_miniplayerActive||D.setFauxFullscreen(G.isFullscreen);if(x&&(G.JSC$20289_watchApi.focusOnPlayer(),!G.fullerscreenEduButtonShownThisPlayback)){G.fullerscreenEduButtonShownThisPlayback=!0;var z=_.xt("yt-fullerscreen-edu-button-shown-count")||0;_.hi("yt-fullerscreen-edu-button-shown-count",z+1,31536E3);
G.updateFullerscreenEduButtonSubtleModeState()}_.c5(K)})};
var LQi=function(x,G){var D;_.T(function(K){if(K.nextAddress==1)return x.JSC$20289_miniplayerActive=G,_.Z(K,x.JSC$20289_watchApi.playerApi,2);D=K.yieldResult;D.setFauxFullscreen(!x.JSC$20289_miniplayerActive&&x.isFullscreen);_.c5(K)})};
_.F1.prototype.onWatchScroll=function(x){var G=this,D,K;return _.T(function(z){if(z.nextAddress==1)return _.B("external_fullscreen_with_edu")?_.Z(z,G.JSC$20289_watchApi.playerApi,2):z.return();D=z.yieldResult;K=x<=0;G.shouldShowFullerscreenEdu!==K&&(G.shouldShowFullerscreenEdu=K,D.updateFullerscreenEduButtonVisibility(!G.shouldShowFullerscreenEdu));_.c5(z)})};
_.F1.prototype.onFullerscreenEduClicked=function(){this.JSC$20289_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var x=_.xt("yt-fullerscreen-edu-button-click-count")||0;_.hi("yt-fullerscreen-edu-button-click-count",x+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.F1.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var x=this,G,D,K,z,y,c;return _.T(function(W){if(W.nextAddress==1)return G=_.xt("yt-fullerscreen-edu-button-click-count")||0,D=_.xt("yt-fullerscreen-edu-button-shown-count")||0,K=_.Gz("external_fullscreen_button_click_threshold"),z=_.Gz("external_fullscreen_button_shown_threshold"),y=G>=K||D>=z,_.Z(W,x.JSC$20289_watchApi.playerApi,2);c=W.yieldResult;c.updateFullerscreenEduButtonSubtleModeState(y);_.c5(W)})};
_.F1.prototype.disposeInternal=function(){_.Ya.prototype.disposeInternal.call(this);var x=_.t$();_.B("kevlar_exit_fullscreen_leaving_watch")&&x&&_.km(x)};
var sBC=function(){if(_.B("web_watch_add_viewport_meta_tag")){var x=document.querySelector("meta[name=viewport]"),G=document.head;G&&!x&&(x=document.createElement("meta"),x.name="viewport",x.content="width=device-width, initial-scale=1.0, viewport-fit=cover",G.appendChild(x))}};_.Cc=function(x){_.Ya.call(this);var G=this;this.JSC$20293_watchApi=x;this.jobId=0;this.pendingRequestId=void 0;var D=this.JSC$20293_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){YKj(G)});
this.addOnDisposeCallback(function(){G.JSC$20293_watchApi.unsubscribeByKey(D)});
YKj(this)};
_.m(_.Cc,_.Ya);var mTT=function(x){_.Fj.cancelJob(x.jobId);x.pendingRequestId=void 0},YKj=function(x){mTT(x);
var G=Syb(x.JSC$20293_watchApi.getWatchNextResponse());if(G){var D=250,K,z=(K=_.Y(G,_.Gbk))==null?void 0:K.initialDelayMs;_.B("web_watch_updated_metadata_server_initial_delay")&&z&&(D=z);x.jobId=_.Fj.addLowPriorityJob(function(){return x.fetchUpdatedMetadata(G)},D)}};
_.Cc.prototype.fetchUpdatedMetadata=function(x,G){var D=this,K,z,y,c,W,e,Q,p,V,L,r,H,O,A,g;return _.T(function(u){switch(u.nextAddress){case 1:G&&(K={continuation:G});if(!_.B("web_get_updated_metadata_fantasy_panel_continuation_params")){u.jumpTo(2);break}z=_.Eo().resolve(_.VT);y="PAsports_fantasy";return _.Z(u,z.isVisible(y,!0),3);case 3:u.yieldResult&&(Q=(W=(c=z).getUpdatePanelContinuationData)==null?void 0:(e=W.call(c,y))==null?void 0:e.updatePanelContinuationRequest)&&(K||(K={}),K.clientParams=
{panelContinuationParams:{panelContinuation:Q}});case 2:p=_.Eo().resolve(_.Hi);if(!p)return _.I4(Error("gm")),u.return();V={};D.pendingRequestId=V;return _.Z(u,_.Rl(p,x,K),4);case 4:L=u.yieldResult;if(V!==D.pendingRequestId)return u.return();O=(r=L)==null?void 0:(H=r.continuation)==null?void 0:H.timedContinuationData;((A=O)==null?0:A.continuation)&&((g=O)==null?0:g.timeoutMs)&&(D.jobId=_.Fj.addLowPriorityJob(function(){return D.fetchUpdatedMetadata(x,O.continuation)},O.timeoutMs));
_.c5(u)}})};
_.Cc.prototype.disposeInternal=function(){_.Ya.prototype.disposeInternal.call(this);mTT(this)};var HAf=_.Nv(function(x){var G=_.WH(function(){var K=x.data().videoId;if(x.active())K=_.fW(K),_.Eo().resolve(_.hm).resolveCommand(K);else{var z=x.playerApi(),y=z.getAvailableAudioTracks(),c,W,e=(c=x.sourceVideoConfig().audioTracks)==null?void 0:(W=c.find(function(Q){return Q.isDefaultForSource}))==null?void 0:W.id;
if(y=y.find(function(Q){return Q.getLanguageInfo().getId()===e}))z.setAudioTrack(y,!0),z.setCompositeParam({activeVideoId:K}),x.setActiveSourceId(K)}}),D={};
return _.M("ytw-composite-source-video-overlay",{class:_.ym("ytwCompositeSourceVideoOverlayHost",(D.ytwCompositeSourceVideoOverlayActive=x.active,D.ytwCompositeSourceVideoOverlayInteracting=x.interacting,D)),style:_.Ms({left:function(){var K;return((K=x.data().topLeftCornerX)!=null?K:0)*100+"%"},
top:function(){var K;return((K=x.data().topLeftCornerY)!=null?K:0)*100+"%"},
width:function(){var K;return((K=x.data().width)!=null?K:0)*100+"%"},
height:function(){var K;return((K=x.data().height)!=null?K:0)*100+"%"}}),
"on:click":G},_.M("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"lj");var $T8=_.Nv(function(x){var G=_.l(_.ZX(function(){var c,W=(c=x.data().sources)==null?void 0:c.find(function(e){return e.isActive});
if(W)return W.videoId})),D=G.next().value,K=G.next().value;
G=_.l(_.eO(!1,void 0,"WI4BUb"));var z=G.next().value,y=G.next().value;return _.M("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.WH(function(){y(!0)}),
"on:mouseout":_.WH(function(){y(!1)})},_.M(_.b,{cond:function(){return x.data().sources},
then:function(c){return _.M(_.LT,{each:c},function(W){return _.M(HAf,{data:W,active:function(){return W.videoId===D()},
setActiveSourceId:K,interacting:z,playerApi:x.playerApi,sourceVideoConfig:function(){return nwb(x.compositeVideoConfig(),W.videoId)}})})}}))},"mj");_.IWc=function(x){_.Ya.call(this);this.JSC$20309_watchApi=x;x=_.l(_.eO({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=x.next().value;this.setCompositeVideoOverlayRenderer=x.next().value;x=_.l(_.eO({},void 0,"U5hcq"));this.compositeVideoConfig=x.next().value;this.setCompositeVideoConfig=x.next().value;FQ8(this);Cji(this)};
_.m(_.IWc,_.Ya);var FQ8=function(x){var G=x.JSC$20309_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Cji(x)});
x.addOnDisposeCallback(function(){x.JSC$20309_watchApi.unsubscribeByKey(G)})},jB6=function(x){var G;
return _.T(function(D){if(D.nextAddress==1)return _.Z(D,x.JSC$20309_watchApi.playerApi,2);G=D.yieldResult;G.setCompositeVideoOverlayRendererComponent(x.container);_.c5(D)})},OAj=function(x){var G;
return _.T(function(D){if(D.nextAddress==1)return _.Z(D,x.JSC$20309_watchApi.playerApi,2);G=D.yieldResult;G.setCompositeVideoOverlayRendererComponent(void 0);_.c5(D)})},Xff=function(x){var G,D;
return _.T(function(K){if(K.nextAddress==1)return _.Z(K,x.JSC$20309_watchApi.playerApi,2);G=K.yieldResult;x.container=document.createElement("div");D=_.mS(x.container,function(){return _.M($T8,{data:x.compositeVideoOverlayRenderer,compositeVideoConfig:x.compositeVideoConfig,playerApi:G})});
x.addOnDisposeCallback(D);_.c5(K)})},Cji=function(x){var G,D,K,z,y,c,W,e;
_.T(function(Q){return Q.nextAddress==1?(G=x.JSC$20309_watchApi.getPlayerResponse(),y=_.Y((D=G)==null?void 0:(K=D.overlay)==null?void 0:(z=K.playerControlsOverlayRenderer)==null?void 0:z.compositeVideoOverlay,F2Y),e=(c=G)==null?void 0:(W=c.playerConfig)==null?void 0:W.compositeVideoConfig,y&&x.setCompositeVideoOverlayRenderer(y),e&&x.setCompositeVideoConfig(e),y&&e?x.container?Q.jumpTo(6):_.Z(Q,Xff(x),6):A4C(x)?_.Z(Q,OAj(x),0):Q.jumpTo(0)):A4C(x)?Q.jumpTo(0):_.Z(Q,jB6(x),0)})},A4C=function(x){var G;
return!((G=x.container)==null||!G.parentElement)};
_.IWc.prototype.disposeInternal=function(){A4C(this)&&OAj(this);_.Ya.prototype.disposeInternal.call(this)};_.iAc=function(x){_.Ya.call(this);var G=this;this.JSC$20315_watchApi=x;var D=this.JSC$20315_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var K=G.JSC$20315_watchApi.getPlayerResponse();if(K){var z,y;if(K=_.Y((z=K.endscreen)==null?void 0:(y=z.endscreenRenderer)==null?void 0:y.hideButton,_.Bq)){var c;(c=G.setEndscreenHideButton)==null||c.call(G,K);UTc(G)}}});
this.addOnDisposeCallback(function(){G.JSC$20315_watchApi.unsubscribeByKey(D)});
x=_.l(_.eO({},void 0,"PPHRb"));this.endscreenHideButton=x.next().value;this.setEndscreenHideButton=x.next().value;RLf(this);SKT(this);nHC(this)};
_.m(_.iAc,_.Ya);var UTc=function(x){var G,D;_.T(function(K){if(K.nextAddress==1)return x.creatorEndscreenHideButtonContainer?K.return():_.Z(K,x.JSC$20315_watchApi.playerApi,2);G=K.yieldResult;x.creatorEndscreenHideButtonContainer=document.createElement("div");_.vZ(x.creatorEndscreenHideButtonContainer,!1);G.setCreatorEndscreenHideButton(x.creatorEndscreenHideButtonContainer);D=_.mS(x.creatorEndscreenHideButtonContainer,function(){return _.M(_.rl,{data:x.endscreenHideButton,useOutlinedIcon:!0})});
x.addOnDisposeCallback(function(){D();G.setCreatorEndscreenHideButton(void 0)});
_.c5(K)})},RLf=function(x){var G,D;
_.T(function(K){if(K.nextAddress==1)return _.Z(K,x.JSC$20315_watchApi.playerApi,2);G=K.yieldResult;D=function(){x.creatorEndscreenHideButtonContainer&&_.vZ(x.creatorEndscreenHideButtonContainer,!0)};
G.addEventListener("endscreenelementshown",D);x.addOnDisposeCallback(function(){G.removeEventListener("endscreenelementshown",D)});
_.c5(K)})},SKT=function(x){var G=function(){x.creatorEndscreenHideButtonContainer&&_.vZ(x.creatorEndscreenHideButtonContainer,!1)},D=x.JSC$20315_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",G),K=x.JSC$20315_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",G);
x.addOnDisposeCallback(function(){x.JSC$20315_watchApi.unsubscribeByKey(D);x.JSC$20315_watchApi.unsubscribeByKey(K)})},nHC=function(x){x.JSC$20315_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(G){var D=_.Y(G,rPO);
x.JSC$20315_watchApi.playerApi.then(function(K){K==null||K.setCreatorEndscreenVisibility(!!D.hide)})});
x.addOnDisposeCallback(function(){x.JSC$20315_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.uzC=function(x){_.Ya.call(this);this.JSC$20321_watchApi=x;gHf(this)};
_.m(_.uzC,_.Ya);var gHf=function(x){var G,D;_.T(function(K){if(K.nextAddress==1)return _.Z(K,x.JSC$20321_watchApi.playerApi,2);G=K.yieldResult;D=function(z){_.wK().dispatch(_.EO({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:z}}))};
G.addEventListener("onRetroModeChanged",D);x.addOnDisposeCallback(function(){G.removeEventListener("onRetroModeChanged",D)});
_.c5(K)})};var FY=0,$Q=0,CD=0;var dTC;dTC=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.I$=function(x){_.Ya.call(this);this.JSC$20334_watchApi=x;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;wfi(this)};
_.m(_.I$,_.Ya);
var wfi=function(x){var G,D,K;_.T(function(z){if(z.nextAddress==1)return _.Z(z,x.JSC$20334_watchApi.playerApi,2);G=z.yieldResult;if(x.isDisposed())return z.return();x.sessionStorage=_.COj("yt-sleep-timer");x.sessionStorage||_.O9(new _.LL("SessionStorage for Sleep Timer is undefined."));((D=x.sessionStorage)==null?void 0:D.get("yt-sleep-timer"))==="true"&&(f1f(),(K=x.sessionStorage)==null||K.remove("yt-sleep-timer"),G.syncVolume());qKc(x,G);NWO(x,G);vH8(x,G);_.c5(z)})},qKc=function(x,G){var D=function(Q){x.onSleepTimerSettingsChanged(Q,
G)},K=function(Q){x.onPlayerStateChange(Q,G)},z=function(){x.onLoopChange(G)},y=function(){x.onCloseMiniplayer(G)},c=function(){qyj(G,(0,_.kK)(),t0f(G),x.selectedOption==="End of video",G.getPlayerState()!==1)},W=function(){x.onSeekComplete(G)},e=function(){_.Fj.cancelJob($Q);
var Q=G.getCurrentTime()>=G.getDuration(),p=x.selectedOption==="End of video"||x.selectedOption==="End of playlist"&&!u9x(x.playlistId);Q&&p&&J4b(x,G)};
G.addEventListener("onSleepTimerSettingsChanged",D);G.addEventListener("onLoopChange",z);G.addEventListener("onLoopRangeChange",z);G.addEventListener("onStateChange",K);G.addEventListener("onCloseMiniplayer",y);G.addEventListener("onSleepTimerFeatureAvailable",c);G.addEventListener("SEEK_COMPLETE",W);G.addEventListener("onAdStart",e);x.addOnDisposeCallback(function(){G.removeEventListener("onSleepTimerSettingsChanged",D);G.removeEventListener("onLoopChange",z);G.removeEventListener("onLoopRangeChange",
z);G.removeEventListener("onStateChange",K);G.removeEventListener("onCloseMiniplayer",y);G.removeEventListener("onSleepTimerFeatureAvailable",c);G.removeEventListener("SEEK_COMPLETE",W);G.removeEventListener("onAdStart",e)})},NWO=function(x,G){var D=x.JSC$20334_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var K=G.getVideoData().video_id,z,y=(z=i08(x.JSC$20334_watchApi))==null?void 0:z.playlistId;
x.pauseAutonavPlayback&&(G.pauseVideo(),G.syncVolume(),x.pauseAutonavPlayback=!1);if(x.selectedOption==="End of video"&&K!==x.videoId)jN(x,G);else{if(x.selectedOption==="End of playlist"){z=u9x(x.playlistId);if(y!==x.playlistId){jN(x,G);break a}z?z&&fW4(x,G):tQ6(x,G)}x.videoId=K;x.playlistId=y}}});
x.addOnDisposeCallback(function(){x.JSC$20334_watchApi.unsubscribeByKey(D)})},vH8=function(x,G){var D=_.Eo().resolve(_.$t),K=_.la(D,_.oVC,function(y){y&&x.selectedOption!=="Off"&&jN(x,G)}),z=x.JSC$20334_watchApi.subscribeToActiveChanged(function(y){var c,W;
return _.T(function(e){if(e.nextAddress==1)return _.Z(e,_.or().navigationFinishPromise,2);c=!_.lNq();W=_.Eo().resolve(_.O$).isMiniplayerActive();y||!HK(x.selectedOption)||W||c||jN(x,G);_.c5(e)})},!1);
D=_.la(D,function(y){return y.entities.playlistLoopStateEntity||{}},function(y){y=y===void 0?{}:y;
var c=gwx(x.JSC$20334_watchApi);if(c){var W;((W=y[c])==null?void 0:W.state)==="PLAYLIST_LOOP_STATE_ALL"&&HK(x.selectedOption)&&jN(x,G)}});
x.addOnDisposeCallback(K);x.addOnDisposeCallback(D);x.addOnDisposeCallback(z)};
_.I$.prototype.onSleepTimerSettingsChanged=function(x,G){switch(x){case "Off":this.selectedOption!=="Off"&&jN(this,G);break;case "End of video":case "End of playlist":khf(this,x,G);break;default:khf(this,x,G,dTC.get(x))}};
_.I$.prototype.onLoopChange=function(x){(x.getLoopVideo()||x.getLoopRange())&&HK(this.selectedOption)&&jN(this,x)};
_.I$.prototype.onCloseMiniplayer=function(x){HK(this.selectedOption)&&jN(this,x)};
var khf=function(x,G,D,K){Pjx(x,D);x.selectedOption=G;x.videoId=D.getVideoData().video_id;x.playlistId="";var z;(z=x.sessionStorage)==null||z.set("yt-sleep-timer","true");x.adjustmentsCount++;qyj(D,(0,_.kK)(),t0f(D),x.selectedOption==="End of video");if(x.selectedOption==="End of video")tQ6(x,D),EHO(x,D);else if(x.selectedOption==="End of playlist"){EHO(x,D);var y,c;x.playlistId=(c=(y=i08(x.JSC$20334_watchApi))==null?void 0:y.playlistId)!=null?c:"";u9x(x.playlistId)||tQ6(x,D)}else K&&(x.presetFadeSchedulerId=
_.eU(_.Fj,function(){vw4(D,15E3)},K-15E3),x.presetPauseSchedulerId=_.eU(_.Fj,function(){J4b(x,D)},K),NFx(D,(0,_.kK)(),K))},J4b=function(x,G){if(x.JSC$20334_watchApi.isActive()){var D={dismissDialogEndpoint:{}};
var K={commandExecutorCommand:{commands:[D,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};D={buttonViewModel:{title:_.Wg("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:D}}};K={buttonViewModel:{title:_.Wg("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:K}}};var z={dialogHeaderViewModel:{headline:{content:_.Wg("SLEEP_TIMER_ENDED_TITLE")}}},
y={basicContentViewModel:{paragraphs:[{text:{content:_.Wg("SLEEP_TIMER_ENDED_TEXT")}}]}};D={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:z,content:y,footer:{panelFooterViewModel:{primaryButton:D,secondaryButton:K,shouldHideDivider:!0}}}}}}};_.Eo().resolve(_.hm).resolveCommand(D,{form:{element:x}})}else f1f();hLY(x,!1);xPi(x,G);G.pauseVideo();_.de.getInstance().getState()===2&&G.getPlayerState()===5&&(x.pauseAutonavPlayback=!0)},jN=function(x,G){hLY(x,!0);
xPi(x,G);f1f()},xPi=function(x,G){Pjx(x,G);
x.selectedOption="Off";x.videoId="";x.playlistId="";x.adjustmentsCount=0;var D;(D=x.sessionStorage)==null||D.remove("yt-sleep-timer");_.Fj.cancelJob(FY);G.resetSleepTimerMenuSettings()},hLY=function(x,G){G={timer_length_adjustment_times_during_session:x.adjustmentsCount-1,
is_session_cancelled:G};switch(x.selectedOption){case "Off":G.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":G.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":G.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:G.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",G.option_duration_in_minutes=dTC.get(x.selectedOption)/6E4}_.Fv("sleepTimerSessionFinishEvent",G)};
_.I$.prototype.onPlayerStateChange=function(x,G){x===1?qyj(G,(0,_.kK)(),t0f(G),this.selectedOption==="End of video"):x===0?(_.Fj.cancelJob($Q),G.setVideoTimeLeft(wNi(0,0))):x===2&&_.Fj.cancelJob($Q);this.selectedOption==="End of video"?x===0?J4b(this,G):x===2&&JqY(G):this.selectedOption!=="End of playlist"||u9x(this.playlistId)||(x===0?J4b(this,G):x===2&&JqY(G))};
_.I$.prototype.onSeekComplete=function(x){x.getPlayerState()===2&&qyj(x,(0,_.kK)(),t0f(x),this.selectedOption==="End of video",!0)};
_.I$.prototype.onCueRangeEnter=function(x,G){x==="sleep-timer-fade-audio"&&vw4(G,(G.getDuration()-G.getProgressState().current)*1E3)};
_.I$.prototype.onCueRangeExit=function(x,G){x==="sleep-timer-fade-audio"&&G.getPlayerState()!==0&&JqY(G,!0)};
var tQ6=function(x,G){G.addCueRange("sleep-timer-fade-audio",G.getDuration()-15,G.getDuration());G.addEventListener("onCueRangeEnter",function(D){x.onCueRangeEnter(D,G)});
G.addEventListener("onCueRangeExit",function(D){x.onCueRangeExit(D,G)})},fW4=function(x,G){G.removeCueRange("sleep-timer-fade-audio");
G.removeEventListener("onCueRangeEnter",function(D){x.onCueRangeEnter(D,G)});
G.removeEventListener("onCueRangeExit",function(D){x.onCueRangeExit(D,G)})},Pjx=function(x,G){HK(x.selectedOption)?fW4(x,G):(_.Fj.cancelJob(x.presetPauseSchedulerId),_.Fj.cancelJob(x.presetFadeSchedulerId),x.presetPauseSchedulerId=0,x.presetFadeSchedulerId=0);
JqY(G,!0)},EHO=function(x,G){G.setLoop(!1);
G.setLoopVideo(!1);G.setLoopRange(null);(x=gwx(x.JSC$20334_watchApi))&&_.Eo().resolve(_.$t).dispatch(_.cq("playlistLoopStateEntity",x,{key:x,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.zTj=function(x){_.Ya.call(this);this.JSC$20337_watchApi=x;GMf(this);DPc(this);KCc(this);x=x.getRoot();if(x.is==="ytd-watch-flexy"||x.is==="ytd-watch-grid")x.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.yqc();_.B("web_watch_log_theater_mode_cookie_state")&&_.MU.get("wide","0")==="1"&&_.OPC("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.m(_.zTj,_.Ya);var GMf=function(x){var G,D;_.T(function(K){if(K.nextAddress==1)return _.Z(K,x.JSC$20337_watchApi.playerApi,2);G=K.yieldResult;D=function(z){aV4(x,!!z)};
G.addEventListener("SIZE_CLICKED",D);x.addOnDisposeCallback(function(){G.removeEventListener("SIZE_CLICKED",D)});
_.c5(K)})},DPc=function(x){x.JSC$20337_watchApi.registerActionHandler("yt-toggle-theater-mode",function(G,D){aV4(x,G,D===void 0?!0:D)});
x.addOnDisposeCallback(function(){x.JSC$20337_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.zTj.prototype.getState=function(){return _.jU(_.wK().getState())};
var aV4=function(x,G,D){D=D===void 0?!0:D;var K,z,y,c=_.B("enable_player_resize_transition")&&!!x.JSC$20337_watchApi.getWatchNextResponse()&&!((K=x.JSC$20337_watchApi.getWatchNextResponse())==null?0:(z=K.contents)==null?0:(y=z.twoColumnWatchNextResults)==null?0:y.conversationBar);_.Omi(function(){_.wK().dispatch(_.EO({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:G}}));_.B("theater_mode_scroll_to_top_killswitch")||x.JSC$20337_watchApi.scrollWatchTo(0,!1);_.t$()&&_.B("external_fullscreen")&&_.km(document.documentElement);
KCc(x);D&&_.QR("wide",G?"1":"0",-1);_.xO(x.JSC$20337_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);x.JSC$20337_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:G});G&&_.yqc()},{shouldWrap:c})},KCc=function(x){var G;
_.T(function(D){if(D.nextAddress==1)return _.Z(D,x.JSC$20337_watchApi.playerApi,2);G=D.yieldResult;G.setSizeStyle(!0,x.getState());_.c5(D)})};var lVc=function(x){_.Ya.call(this);var G=this;this.playerApi=x;this.timeToPanelSyncKeyMap={};var D;if(x==null?0:(D=x.isReady)==null?0:D.call(x)){D=_.la(_.Eo().resolve(_.$t),function(z){return z.entities.timedMarkersListSyncEntity||{}},function(z,y){z=z===void 0?{}:z;
y=y===void 0?{}:y;for(var c=_.l(Object.keys(y)),W=c.next();!W.done;W=c.next())W=W.value,z[W]!==y[W]&&oIC(G,y[W]);y=_.l(Object.keys(z));for(c=y.next();!c.done;c=y.next())c=c.value,W=z[c],G.timeToPanelSyncKeyMap[c]&&y0O(G,W)});
this.addOnDisposeCallback(D);var K=function(z){G.onCueRangeEnter(z)};
x.addEventListener("onCueRangeEnter",K);this.addOnDisposeCallback(function(){var z;(z=x.removeEventListener)==null||z.call(x,"onCueRangeEnter",K)})}};
_.m(lVc,_.Ya);
var y0O=function(x,G){var D,K;if((D=x.playerApi)==null?0:(K=D.isReady)==null?0:K.call(D)){var z;if((D=G==null?void 0:(z=G.timedListData)==null?void 0:z.sections)&&G!=null&&G.key)for(z=_.l(D),D=z.next();!D.done;D=z.next())if(D=D.value,D.timedSyncDataList&&D.sectionId)for(K=0;K<D.timedSyncDataList.length;K++){var y=D.timedSyncDataList[K];y.syncItemId&&x.playerApi.addCueRange(D.sectionId+"_"+G.key+"_"+y.syncItemId,Number(y.videoTimeMs)/1E3,K===D.timedSyncDataList.length-1?0x8000000000000:Number(D.timedSyncDataList[K+
1].videoTimeMs)/1E3)}}},oIC=function(x,G){var D,K;
if((D=x.playerApi)==null?0:(K=D.isReady)==null?0:K.call(D)){var z;if((D=G==null?void 0:(z=G.timedListData)==null?void 0:z.sections)&&G!=null&&G.key)for(z=_.l(D),D=z.next();!D.done;D=z.next())if(D=D.value,D.timedSyncDataList&&D.sectionId){K=_.l(D.timedSyncDataList);for(var y=K.next();!y.done;y=K.next())y=y.value,y.syncItemId&&x.playerApi.removeCueRange(D.sectionId+"_"+G.key+"_"+y.syncItemId)}}};
lVc.prototype.onCueRangeEnter=function(x){for(var G=_.l(Object.keys(this.timeToPanelSyncKeyMap)),D=G.next();!D.done;D=G.next()){D=D.value;var K=_.l(x.split("_"+D+"_")),z=K.next().value;K=K.next().value;if(z&&K){x=_.Eo().resolve(_.$t);G=this.timeToPanelSyncKeyMap[D];var y=_.MvE(x.getState(),G);D=c08(D,z,K);if(D===-1)break;D={activeSyncId:K,activeItemIndex:D,activeSectionInfo:{sectionIdentifier:z}};y?x.dispatch(_.sg("markersEngagementPanelSyncEntity",G,D)):x.dispatch(_.cq("markersEngagementPanelSyncEntity",
G,Object.assign({},{key:G},D)));break}}};
var c08=function(x,G,D){var K=_.Eo().resolve(_.$t),z,y;x=(z=K0b(K.getState(),x))==null?void 0:(y=z.timedListData)==null?void 0:y.sections;if(!x)return-1;z=0;y=_.l(x);for(x=y.next();!x.done;x=y.next()){x=x.value;K=x.timedSyncDataList||[];if(x.sectionId===G)return G=K.findIndex(function(c){return c.syncItemId===D}),G===-1?G:z+G;
z+=K.length}return-1};_.eTO=function(x){_.Ya.call(this);var G=this;this.JSC$20349_watchApi=x;this.unresolvedCommands=[];this.JSC$20349_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(D){TIO(G,D)});
this.addOnDisposeCallback(function(){G.JSC$20349_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
WCc(this)};
_.m(_.eTO,_.Ya);var WCc=function(x){var G;_.T(function(D){if(D.nextAddress==1)return _.Z(D,x.JSC$20349_watchApi.playerApi,2);G=D.yieldResult;if(x.isDisposed())return D.return();x.timedSyncObserver=new lVc(G);x.unresolvedCommands.length&&(x.unresolvedCommands.forEach(function(K){return TIO(x,K)}),x.unresolvedCommands=[]);
_.WZ(x,x.timedSyncObserver);_.c5(D)})},TIO=function(x,G){if(x.timedSyncObserver){var D=_.Y(G,YS8);
if(D&&D.timedSyncEntityKey&&D.panelSyncEntityKey){x=x.timedSyncObserver;G=D.timedSyncEntityKey;var K=D.panelSyncEntityKey;D=!!D.isEnabled;D=D===void 0?!0:D;var z=_.Eo().resolve(_.$t);z=K0b(z.getState(),G);D?x.timeToPanelSyncKeyMap[G]||(x.timeToPanelSyncKeyMap[G]=K,y0O(x,z)):(delete x.timeToPanelSyncKeyMap[G],oIC(x,z))}}else x.unresolvedCommands.push(G)};var Zpf=_.Nv(function(x){var G=x.data,D=x.maybeLogSmartSkipClientData,K=_.qi();_.iA(K,function(){return G().rendererContext},{onTap:function(p,V){V({disableClickTracking:!0})}});
var z=null,y=null,c=_.B("web_enable_auto_focus_for_timely_action_button"),W=function(){z=document.activeElement},e=function(){G().smartSkipMetadata&&(z=document.activeElement,_.hOf(function(){return y}))},Q=function(p){if(G().smartSkipMetadata&&(!p||p.key!=="Enter")){z&&z.isConnected&&(_.hOf(function(){return z}),z=null);
var V;(V=y)==null||V.blur()}};
x=_.WH(function(){D==null||D(!0,G());return!1});
_.Pw(K,{visibilityCallback:function(p){if(c)p?y&&G().smartSkipMetadata&&(e(),document.addEventListener("focusin",W)):(document.removeEventListener("focusin",W),Q());else if(p&&_.B("web_ephemeral_actions")){p=_.SU(G().rendererContext);var V=Number(G().maxVisibleDurationMilliseconds),L,r=(L=_.Y(G().rendererContext,_.Wo))==null?void 0:L.label;p&&V&&r&&(L={label:r,command:p,durationMs:V},_.Eo().resolve(_.oz).enqueue(L))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.H6(function(){if(c){var p;if((y=(p=K.value)==null?void 0:p.querySelector("button"))&&G().smartSkipMetadata){var V;(V=K.value)==null||V.addEventListener("keydown",Q)}}});
_.Fq(function(){c&&(y&&G().smartSkipMetadata&&y.removeEventListener("keydown",Q),document.removeEventListener("focusin",W),Q())});
return _.M("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:K,"on:click":x},_.M(_.bA,{data:function(){return G().content}},{buttonViewModel:_.Cs}))},"nj");var Mg4=_.Nv(function(x){var G=x.data,D=x.playerApi,K=_.Eo().resolve(_.Uai);x=_.l(_.ZX(function(){G()}));
var z=x.next().value,y=x.next().value,c=function(){return P3c(G(),z())},W=function(Q,p){var V,L,r=(V=_.Y(p==null?void 0:p.rendererContext,_.ZJ))==null?void 0:(L=V.loggingDirectives)==null?void 0:L.trackingParams;
if((p=p==null?void 0:p.smartSkipMetadata)&&p.loggingData&&(L=p.loggingData,p=L.algorithmId,V=L.startMilliseconds,L=L.endMilliseconds,p&&V!==void 0&&L!==void 0)){var H,O;Q={smartSkipData:Object.assign({},{versionName:p,startMediaTimeMs:V,endMediaTimeMs:L},Q&&{userInteractionMediaTimeMs:(Math.floor(((H=_.Ns())==null?void 0:(O=H.getPlayer())==null?void 0:O.getCurrentTime())||0)*1E3).toString()})};H=_.CC();var A;r&&(A=_.V2(r));H&&A&&_.wB(H,A,Q)}},e=function(Q,p){var V=P3c(G(),Q);
if(V){var L=_.Y(V,Ia),r;if(r=p)r=D(),V=_.Y(V,Ia),r=V!=null&&V.smartSkipMetadata?!(r==null?0:r.isSameMarkerTypeVisible((V==null?void 0:V.smartSkipMetadata.markerKey)||"")):!0;if(r){var H,O;(L==null?0:(H=L.smartSkipMetadata)==null?0:(O=H.loggingData)==null?0:O.isCounterfactual)||(W(!1,L),y(Q))}else p||z()!==Q||y(void 0)}};
_.$9(function(){var Q=G().timelyActions;if(Q){Q=_.l(Q);for(var p=Q.next();!p.done;p=Q.next()){p=_.Y(p.value,Ia);var V=void 0;(V=p)!=null&&V.cueRangeId&&K.timelyActionsMap.set(p.cueRangeId,e)}_.Fq(function(){K.timelyActionsMap.clear()})}});
return _.M("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.M(_.bA,{data:c},{timelyActionViewModel:function(Q){return _.M(Zpf,{data:Q.data,maybeLogSmartSkipClientData:function(){W(!0,_.Y(c(),Ia))}})}}))},"oj");_.pMC=function(x){_.Ya.call(this);this.JSC$20361_watchApi=x;x=_.l(_.eO({},void 0,"pLDp2"));this.timelyActionsOverlay=x.next().value;this.setTimelyActionsOverlay=x.next().value;Qwk(this)};
_.m(_.pMC,_.Ya);var Qwk=function(x){var G,D,K,z;_.T(function(y){if(y.nextAddress==1)return Vgk(x),bp4(x),x.timelyActionsContainer=document.createElement("div"),_.Z(y,x.JSC$20361_watchApi.playerApi,2);G=y.yieldResult;(K=(D=G).insertTimelyActionUi)==null||K.call(D,x.timelyActionsContainer);z=_.mS(x.timelyActionsContainer,function(){return _.M(Mg4,{data:x.timelyActionsOverlay,playerApi:G})});
x.addOnDisposeCallback(z);_.c5(y)})},bp4=function(x){var G=x.JSC$20361_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Vgk(x)});
x.addOnDisposeCallback(function(){x.JSC$20361_watchApi.unsubscribeByKey(G)})},Vgk=function(x){var G=x.JSC$20361_watchApi.getWatchNextResponse();
if(G){var D,K;if(G=_.Y((D=G.playerOverlays)==null?void 0:(K=D.playerOverlayRenderer)==null?void 0:K.timelyActionsOverlayViewModel,mQf)){var z;(z=x.setTimelyActionsOverlay)==null||z.call(x,G)}}};_.BIj=function(x){_.Ya.call(this);this.JSC$20365_watchApi=x;LCc(this)};
_.m(_.BIj,_.Ya);var LCc=function(x){var G,D;_.T(function(K){if(K.nextAddress==1)return _.Z(K,x.JSC$20365_watchApi.playerApi,2);G=K.yieldResult;D=function(z){_.y2.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.Y(z,_.SwO)},popupType:"TOAST"}})};
G.addEventListener("onYtShowToast",D);x.addOnDisposeCallback(function(){G.removeEventListener("onYtShowToast",D)});
_.c5(K)})};var r0i,mPi,swk,Y1x,Cex,$Pb,FCk,jwj,Opk;r0i=!1;_.Hp6=function(x){_.Ya.call(this);this.JSC$20368_watchApi=x;this.fullscreen=this.theater=!1;swk(this);Y1x(this);mPi(this)};
_.m(_.Hp6,_.Ya);mPi=function(x){var G,D,K;_.T(function(z){if(z.nextAddress==1)return _.Z(z,x.JSC$20368_watchApi.playerApi,2);G=z.yieldResult;if(x.isDisposed())return z.return();D=x.JSC$20368_watchApi.getElement("CINEMATICS");if(!D)return z.return();x.JSC$20368_cinematicController=new _.Gv(D,G);_.WZ(x,x.JSC$20368_cinematicController);_.aGc(x.JSC$20368_cinematicController);$Pb(x,_.zln());K=x.JSC$20368_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(y){FCk(x,y)});
x.addOnDisposeCallback(function(){x.JSC$20368_watchApi.unsubscribeByKey(K)});
Cex(x);FCk(x,x.JSC$20368_cinematicController.isAllowed());_.IVc(x,x.fullscreen,x.theater);jwj(x);_.c5(z)})};
swk=function(x){var G=x.JSC$20368_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Cex(x)});
x.addOnDisposeCallback(function(){x.JSC$20368_watchApi.unsubscribeByKey(G)})};
Y1x=function(x){var G,D;_.T(function(K){if(K.nextAddress==1)return _.Z(K,x.JSC$20368_watchApi.playerApi,2);G=K.yieldResult;D=function(z){$Pb(x,z)};
G.addEventListener("cinematicSettingsToggleChange",D);x.addOnDisposeCallback(function(){G.removeEventListener("cinematicSettingsToggleChange",D)});
_.c5(K)})};
Cex=function(x){var G=x.JSC$20368_watchApi.getWatchNextResponse(),D;G=_.Y(G==null?void 0:(D=G.pageVisualEffects)==null?void 0:D[0],_.bc);var K;(K=x.JSC$20368_cinematicController)==null||_.y8c(K,G)};
$Pb=function(x,G){var D;(D=x.JSC$20368_cinematicController)==null||_.ovf(D,G);Opk(x)};
FCk=function(x,G){var D;_.T(function(K){if(K.nextAddress==1)return _.B("kevlar_watch_cinematics_invisible")&&(G=!1),_.Z(K,x.JSC$20368_watchApi.playerApi,2);D=K.yieldResult;D.updateCinematicSettings(G);Opk(x);_.c5(K)})};
jwj=function(x){var G=_.M5();if(_.B("kevlar_measure_ambient_mode_idle")&&!G.getFlag(192)&&!r0i){r0i=!0;var D=_.Bw(_.Fj,function(){_.Eo().resolve(_.$LT).start(1E4)},5E3);
x.addOnDisposeCallback(function(){_.Fj.cancelJob(D);_.Eo().resolve(_.$LT).stop()})}};
_.IVc=function(x,G,D){x.fullscreen=G;x.theater=D;var K;(K=x.JSC$20368_cinematicController)==null||K.setFullscreen(x.fullscreen,x.theater);if(_.B("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(x.theater||x.fullscreen){var z;(z=x.JSC$20368_cinematicController)==null||_.lGc(z)}else if((x=x.JSC$20368_cinematicController)!=null){var y;(y=x.currentCinematicEffect)==null||y.pause()}};
Opk=function(x){if(_.B("web_cinematic_theater_mode")||_.B("web_cinematic_fullscreen")){var G;x.JSC$20368_watchApi.getRoot().toggleCinematicsActive(!((G=x.JSC$20368_cinematicController)==null||!G.isEnabled()))}};_.RTO=function(x){_.Ya.call(this);var G=this;this.JSC$20371_watchApi=x;this.commentsReady=!1;this.setCommentsJobId=0;x=_.la(_.wK(),_.sF,function(){XM6(G)});
this.addOnDisposeCallback(x);var D=this.JSC$20371_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){A0j(G)}),K=this.JSC$20371_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){A0j(G)});
this.addOnDisposeCallback(function(){G.JSC$20371_watchApi.unsubscribeByKey(D);G.JSC$20371_watchApi.unsubscribeByKey(K)});
var z=function(){_.B("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&UPY(G,"false")};
this.JSC$20371_watchApi.getRoot().addEventListener("yt-page-data-will-update",z);this.addOnDisposeCallback(function(){G.JSC$20371_watchApi.getRoot().removeEventListener("yt-page-data-will-update",z)});
A0j(this)};
_.m(_.RTO,_.Ya);var A0j=function(x){x.commentsReady=!1;_.Fj.cancelJob(x.setCommentsJobId);x.setCommentsJobId=_.Bw(_.Fj,function(){XM6(x)},1E3)},XM6=function(x){if(!x.commentsReady){_.Fs("cmi");
_.Fj.cancelJob(x.setCommentsJobId);var G,D,K,z,y=(G=x.JSC$20371_watchApi.getWatchNextResponse())==null?void 0:(D=G.contents)==null?void 0:(K=D.twoColumnWatchNextResults)==null?void 0:(z=K.results)==null?void 0:z.results.contents;G=void 0;if(y&&y.length)for(y=_.l(y),D=y.next();!D.done;D=y.next())if(D=D.value,z=K=void 0,((K=D)==null?void 0:(z=K.itemSectionRenderer)==null?void 0:z.sectionIdentifier)==="comment-item-section"){_.B("web_watch_provide_undefined_comments")?G=D.itemSectionRenderer:x.JSC$20371_watchApi.provideRenderingData("COMMENTS",
D.itemSectionRenderer);UPY(x,"true");break}_.B("web_watch_provide_undefined_comments")&&x.JSC$20371_watchApi.provideRenderingData("COMMENTS",G);x.commentsReady=!0;x.JSC$20371_watchApi.dispatchEvent("yt-watch-comments-ready")}},UPY=function(x,G){var D;
(D=x.JSC$20371_watchApi.getElement("COMMENTS"))==null||D.setAttribute("canScheduleJobs",G)};_.UU=function(x){_.Ya.call(this);var G=this;this.JSC$20374_watchApi=x;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.B("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.B("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.B("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.Gz("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)S14(this);
else{var D=this.JSC$20374_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){OU(G);X1(G)}),K=this.JSC$20374_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Ab(G);
X1(G)});
this.JSC$20374_watchApi.getRoot().is==="ytd-watch-grid"&&_.B("swatcheroo_pbs_load_grid")&&(nIx(this),ipb(this));this.addOnDisposeCallback(function(){G.JSC$20374_watchApi.unsubscribeByKey(D);G.JSC$20374_watchApi.unsubscribeByKey(K);_.Fj.cancelJob(G.provideRichGridJobId)});
OU(this);Ab(this)}};
_.m(_.UU,_.Ya);var S14=function(x){var G=x.JSC$20374_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){x.providePlayerJobId=_.Vs(_.Fj,function(){OU(x);X1(x)},x.provideAllDataDelayMs)}),D=x.JSC$20374_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){x.provideWatchNextJobId=_.Vs(_.Fj,function(){Ab(x);
X1(x)},x.provideAllDataDelayMs)}),K=x.JSC$20374_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){x.provideWatchNextJobId=_.Vs(_.Fj,function(){Ab(x);
X1(x)},x.provideAllDataDelayMs)});
x.JSC$20374_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.Bw(_.Fj,function(){OU(x);Ab(x);X1(x)},100)});
x.JSC$20374_watchApi.addPageDisposeJob(function(){_.Fj.cancelJob(x.provideWatchNextJobId);_.Fj.cancelJob(x.providePlayerJobId)});
x.addOnDisposeCallback(function(){x.JSC$20374_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");x.JSC$20374_watchApi.unsubscribeByKey(G);x.JSC$20374_watchApi.unsubscribeByKey(D);x.JSC$20374_watchApi.unsubscribeByKey(K);_.Fj.cancelJob(x.providePlayerJobId);_.Fj.cancelJob(x.provideWatchNextJobId)});
OU(x);Ab(x)},OU=function(x){var G=x.JSC$20374_watchApi.getPlayerResponse(),D,K,z=(K=G==null?void 0:(D=G.playabilityStatus)==null?void 0:D.messageRenderers)!=null?K:[],y,c;
G=(c=G==null?void 0:(y=G.playabilityStatus)==null?void 0:y.messages)!=null?c:[];y=_.l(G);for(c=y.next();!c.done;c=y.next())z.push({alertRenderer:{text:_.gK(c.value),type:"WARNING"}});x.JSC$20374_watchApi.provideRenderingData("ALERTS",z)},Ab=function(x){var G=[],D,K,z,y=x.JSC$20374_watchApi.getWatchNextResponse(),c,W,e,Q,p=y==null?void 0:(c=y.contents)==null?void 0:(W=c.twoColumnWatchNextResults)==null?void 0:(e=W.results)==null?void 0:(Q=e.results)==null?void 0:Q.contents;
if(p)for(c=_.l(p),W=c.next();!W.done;W=c.next())if(W=W.value,W.videoPrimaryInfoRenderer)var V=W;else if(W.videoSecondaryInfoRenderer){var L=W;Q=e=void 0;W=Object.assign({},(e=W.videoSecondaryInfoRenderer)==null?void 0:(Q=e.metadataRowContainer)==null?void 0:Q.metadataRowContainerRenderer);if(W.rows&&W.collapsedItemCount!==void 0){W.rows=W.rows.slice(0,W.collapsedItemCount).filter(function(fu){return!!fu.richMetadataRowRenderer});
W.collapsedItemCount=W.rows.length;var r={metadataRowContainerRenderer:W}}}else if(W.merchandiseShelfRenderer)var H=W;else if(W.ticketShelfRenderer)var O=W;else if(W.expandableMetadataRenderer)var A=W;else if(W.itemSectionRenderer)if(e=W.itemSectionRenderer.contents,Q=void 0,x.directlyProvideComments&&((Q=W.itemSectionRenderer)==null?void 0:Q.sectionIdentifier)==="comment-item-section")_.Fs("cmi"),x.JSC$20374_watchApi.provideRenderingData("COMMENTS",W.itemSectionRenderer);else if(e)for(W=_.l(e),e=
W.next();!e.done;e=W.next())if(e=e.value,e.commentsEntryPointHeaderRenderer)var g=e;else if(e.clarificationRenderer||e.infoPanelContainerRenderer||e.infoPanelContentRenderer||e.emergencyOneboxRenderer){G.push(e);var u=u||!!L}else e.limitedStateMessageRenderer?K=e:e.videoMetadataCarouselViewModel&&(z=e);if(_.B("web_watch_merch_in_sd_when_ticket_shelf_present")&&H&&O){var f=H;H=void 0}if(x.provideWatchNextSecondaryResults){var v,P,k;x.JSC$20374_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
y==null?void 0:(v=y.contents)==null?void 0:(P=v.twoColumnWatchNextResults)==null?void 0:(k=P.secondaryResults)==null?void 0:k.secondaryResults)}if(x.JSC$20374_watchApi.getRoot().is==="ytd-watch-grid"){var cL,bO;x.JSC$20374_watchApi.provideRenderingData("LIVE_CHAT",y==null?void 0:(cL=y.contents)==null?void 0:(bO=cL.twoColumnWatchNextResults)==null?void 0:bO.conversationBar)}var mE,jf,$C,OD;(v=y==null?void 0:(mE=y.contents)==null?void 0:(jf=mE.twoColumnWatchNextResults)==null?void 0:($C=jf.secondaryResults)==
null?void 0:(OD=$C.secondaryResults)==null?void 0:OD.offerModule)&&(v.donationShelfRenderer||v.donationUnavailableRenderer)&&x.JSC$20374_watchApi.getRoot().is!=="ytd-watch-grid"&&(D=v);mE=x.JSC$20374_watchApi.getPlayerResponse();if(!mE||!_.nNC(mE.playabilityStatus,y==null?void 0:y.playerOverlays)){var wn;if(y==null?0:(wn=y.contents)==null?0:wn.singleColumnWatchNextResults){var n$,Fi;var pf=y==null?void 0:(n$=y.contents.singleColumnWatchNextResults.results)==null?void 0:(Fi=n$.results)==null?void 0:
Fi.contents}else{var UE,M0,cs,G8;wn=!!(p==null?0:(UE=p[0])==null?0:(M0=UE.itemSectionRenderer)==null?0:(cs=M0.contents)==null?0:(G8=cs[0])==null?0:G8.backgroundPromoRenderer);var T7,Wd;UE=!!(y==null?0:(T7=y.contents)==null?0:(Wd=T7.twoColumnWatchNextResults)==null?0:Wd.secondaryResults);wn&&!UE&&(pf=p)}}p=G[0];T7=G[1];u&&G.length===1&&(T7=p,p=void 0);x.JSC$20374_watchApi.provideRenderingData("PRIMARY_INFO",V);x.JSC$20374_watchApi.provideRenderingData("SECONDARY_INFO",L);x.JSC$20374_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
g);x.JSC$20374_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",z);x.JSC$20374_watchApi.provideRenderingData("CLARIFICATION",p);x.JSC$20374_watchApi.provideRenderingData("RICH_METADATA",r);x.JSC$20374_watchApi.provideRenderingData("MERCH_SHELF",H);_.B("web_watch_merch_in_sd_when_ticket_shelf_present")&&x.JSC$20374_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",f);x.JSC$20374_watchApi.provideRenderingData("TICKET_SHELF",O);x.JSC$20374_watchApi.provideRenderingData("LIMITED_STATE",K);x.JSC$20374_watchApi.getRoot().is!==
"ytd-watch-grid"&&x.JSC$20374_watchApi.provideRenderingData("DONATION_SHELF",D);x.JSC$20374_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",pf);x.JSC$20374_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",T7);x.JSC$20374_watchApi.provideRenderingData("EXPANDABLE_METADATA",A);if(x.swatcherooProvideAllDataOnScheduledJob){var Fc,lO,Bs,Xi,uC,Y8;V=y==null?void 0:(Fc=y.contents)==null?void 0:(lO=Fc.twoColumnWatchNextResults)==null?void 0:(Bs=lO.secondaryResults)==null?void 0:(Xi=Bs.secondaryResults)==
null?void 0:(uC=Xi.results)==null?void 0:(Y8=uC[0])==null?void 0:Y8.richGridRenderer;x.JSC$20374_watchApi.provideRenderingData("RICH_GRID_RENDERER",V)}};
_.UU.prototype.hasCompanionAds=function(x){var G,D;return(D=x==null?void 0:(G=x.adPlacements)==null?void 0:G.some(function(K){var z,y,c,W;return(K==null?void 0:(z=K.adPlacementRenderer)==null?void 0:(y=z.renderer)==null?void 0:y.actionCompanionAdRenderer)||(K==null?void 0:(c=K.adPlacementRenderer)==null?void 0:(W=c.renderer)==null?void 0:W.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?D:!1};
var X1=function(x){if(!_.B("swaterdoo_ps_wn_handle_ks")){x.swatcherooProvideAllDataOnScheduledJob||ipb(x,3E3);var G=x.JSC$20374_watchApi.getPlayerResponse(),D,K,z,y,c,W=(D=x.JSC$20374_watchApi.getWatchNextResponse())==null?void 0:(K=D.contents)==null?void 0:(z=K.twoColumnWatchNextResults)==null?void 0:(y=z.secondaryResults)==null?void 0:(c=y.secondaryResults)==null?void 0:c.offerModule;G=x.hasCompanionAds(G);var e,Q;D=(W==null?void 0:(e=W.tvfilmOfferModuleRenderer)==null?void 0:e.clientShouldSuppressIfCompanionAdDisplayed)||
(W==null?void 0:(Q=W.unlimitedOfferModuleRenderer)==null?void 0:Q.suppressIfCompanionAds);e=G&&D;x.JSC$20374_watchApi.getRoot().is==="ytd-watch-grid"&&x.JSC$20374_watchApi.provideRenderingData("OFFER_MODULE",e?void 0:W)}},ipb=function(x,G){_.B("swatcheroo_pbs_load_grid")&&(x.provideRichGridJobId&&_.Fj.cancelJob(x.provideRichGridJobId),x.provideRichGridJobId=_.Vs(_.Fj,function(){x.provideRichGridJobId=0;
var D,K,z,y,c,W,e,Q=(D=x.JSC$20374_watchApi.getWatchNextResponse())==null?void 0:(K=D.contents)==null?void 0:(z=K.twoColumnWatchNextResults)==null?void 0:(y=z.secondaryResults)==null?void 0:(c=y.secondaryResults)==null?void 0:(W=c.results)==null?void 0:(e=W[0])==null?void 0:e.richGridRenderer;Q&&x.JSC$20374_watchApi.provideRenderingData("RICH_GRID_RENDERER",Q)},G))},nIx=function(x){var G,D;
_.T(function(K){if(K.nextAddress==1)return _.Z(K,x.JSC$20374_watchApi.playerApi,2);G=K.yieldResult;D=function(){x.onPlaybackStart()};
G.addEventListener("onPlaybackStartExternal",D);x.addOnDisposeCallback(function(){G.removeEventListener("onPlaybackStartExternal",D)});
_.c5(K)})};
_.UU.prototype.onPlaybackStart=function(){ipb(this)};_.uMY=function(x){_.Ya.call(this);var G=this;this.JSC$20384_watchApi=x;x.playerApi.then(function(D){G.player=D});
this.gestures=new _.ye(this.JSC$20384_watchApi.getRoot(),x.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.cqC(_.wK().getState())&&_.sF(_.wK().getState())<=0)if(_.Og(_.wK().getState())){var D;(D=G.player)==null||D.toggleFullscreen()}else _.xO(G.JSC$20384_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
gIi(this)};
_.m(_.uMY,_.Ya);var gIi=function(x){var G=_.la(_.wK(),_.Og,function(D){x.onFullscreenChanged(D)});
x.addOnDisposeCallback(G);G=_.la(_.wK(),_.sF,function(D){x.gestures&&(D>0?x.gestures.detach():x.gestures.attach())});
x.addOnDisposeCallback(G)};
_.uMY.prototype.onFullscreenChanged=function(x){this.gestures&&this.gestures.update(x)};_.wMf=function(x){_.Ya.call(this);var G=this;this.JSC$20387_watchApi=x;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(x.subscribeToActiveChanged(function(D){G.onActiveChanged(D)}));
dPC(this)};
_.m(_.wMf,_.Ya);var q1x=function(x){if(_.B("swatcheroo_page_dispose_all_watch_data"))x.pageDisposalDataTypes=Object.values(TWi).filter(function(D){return D!=="PLAYLIST"});
else if(_.B("swatcheroo_page_dispose_rich_grid")){var G;(G=x.pageDisposalDataTypes)==null||G.push("RICH_GRID_RENDERER")}},dPC=function(x){_.B("swatcheroo_enable_ghost_cards")&&(q1x(x),x.JSC$20387_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.Fj.cancelJob(x.clearDataJobId);
x.clearDataJobId=0}),x.runPageDisposeJob=function(){var G=_.Eo().resolve(_.wG).getDestinationPageType()==="watch";
x.clearDataJobId=_.Vs(_.Fj,x.runClearDataJob,G?0:_.Gz("web_watch_delay_page_dispose_ms",1E4))},x.runClearDataJob=function(){NIj(x)},x.runOnYtNavigateAwayFinish=function(){x.clearDataJobId&&(_.Fj.cancelJob(x.clearDataJobId),x.clearDataJobId=0,NIj(x))},document.addEventListener("yt-navigate-finish",x.runOnYtNavigateAwayFinish),x.JSC$20387_watchApi.addPageDisposeJob(x.runPageDisposeJob),x.addOnDisposeCallback(function(){x.JSC$20387_watchApi.removePageDisposeJob(x.runPageDisposeJob);
x.JSC$20387_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",x.runOnYtNavigateAwayFinish)}))},NIj=function(x){x.pageDisposalDataTypes.forEach(function(G){x.JSC$20387_watchApi.provideRenderingData(G,void 0)});
x.clearDataJobId=0};
_.wMf.prototype.onActiveChanged=function(x){x&&((x=document.querySelector("#watch-page-skeleton"))&&_.VF(x),vI8(this),document.body.removeAttribute("no-y-overflow"),_.Uo("IS_SHELL_LOAD")&&_.KOY())};
var vI8=function(x){_.T(function(G){if(G.nextAddress==1)return _.Z(G,x.JSC$20387_watchApi.playerApi,2);_.wj();_.c5(G)})};var J0T;J0T=_.B("kevlar_watch_while_counterfactual")?0:.25;_.R$=function(x){_.Ya.call(this);this.JSC$20390_watchApi=x;this.JSC$20390_watchWhileEnabled=_.B("kevlar_watch_while_v2");this.pipEnabled=_.B("web_enable_pip_on_miniplayer");fV4(this);tgO(this);kM4(this)};
_.m(_.R$,_.Ya);var fV4=function(x){x.JSC$20390_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){Pe4(x)});
x.addOnDisposeCallback(function(){x.JSC$20390_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},tgO=function(x){var G,D;
_.T(function(K){if(K.nextAddress==1)return _.Z(K,x.JSC$20390_watchApi.playerApi,2);G=K.yieldResult;D=function(){Pe4(x)};
G.addEventListener("onCollapseMiniplayer",D);x.addOnDisposeCallback(function(){G.removeEventListener("onCollapseMiniplayer",D)});
_.c5(K)})},kM4=function(x){var G=x.JSC$20390_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&G&&x.JSC$20390_watchWhileEnabled&&(x.playerIntersectionObserver=new IntersectionObserver(function(D){x.handleIntersect(D)},{threshold:[J0T]}),x.playerIntersectionObserver.observe(G),x.addOnDisposeCallback(function(){var D;
(D=x.playerIntersectionObserver)==null||D.disconnect()}))},Pe4=function(x){var G,D,K;
_.T(function(z){if(z.nextAddress==1){G=_.Eo().resolve(_.wG);D=G.data;K=_.XfE(D.response,D.playerResponse);_.or().miniplayerButtonActivation=!0;if(x.pipEnabled)return _.or().watchPipActivation=!0,z.jumpTo(2);_.Eo().resolve(_.O$).collapse();return _.Z(z,_.or().navigationFinishPromise,2)}if(z.nextAddress!=4)return _.or().currentEndpoint=K.watchEndpoint||null,_.Z(z,_.Eo().resolve(_.O$).activate(x.JSC$20390_watchApi.getElement("PLAYER"),K,D),4);_.or().userActivation=!0;_.c5(z)})};
_.R$.prototype.handleIntersect=function(x){EIc(this,x[x.length-1])};
var EIc=function(x,G){x.watchWhileJobId&&_.Fj.cancelJob(x.watchWhileJobId);x.watchWhileJobId=_.Fj.addLowPriorityJob(function(){var D,K;return _.T(function(z){if(z.nextAddress==1)return x.watchWhileJobId=void 0,D=_.Eo().resolve(_.O$),G.intersectionRatio>J0T?D.isMiniplayerActive()?_.Z(z,D.deactivate(),0):z.jumpTo(0):(K=!D.isMiniplayerActive())?_.Z(z,hTf(x),5):z.jumpTo(4);z.nextAddress!=4&&(K=z.yieldResult);if(!K)return z.jumpTo(0);_.or().watchWhileActivation=!0;return _.Z(z,xff(x),0)})},100)},hTf=function(x){return _.T(function(G){return G.nextAddress==
1?_.B("kevlar_watch_while_paused")?G.return(!0):_.Z(G,x.isPlayerPlaying(),2):G.return(G.yieldResult)})};
_.R$.prototype.isPlayerPlaying=function(){var x=this,G;return _.T(function(D){if(D.nextAddress==1)return _.Z(D,x.JSC$20390_watchApi.playerApi,2);G=D.yieldResult;return D.return(G.getPlayerStateObject().isPlaying)})};
var xff=function(x){var G,D;return _.T(function(K){G=_.Eo().resolve(_.wG).data;D=_.XfE(G.response,G.playerResponse);_.or().currentEndpoint=D.watchEndpoint||null;return _.Z(K,_.Eo().resolve(_.O$).activate(x.JSC$20390_watchApi.getElement("PLAYER"),D,G),0)})};_.KTk=function(x){_.Ya.call(this);this.JSC$20394_watchApi=x;Gi4(this);Dff(this)};
_.m(_.KTk,_.Ya);var Dff=function(x){var G,D;_.T(function(K){if(K.nextAddress==1)return _.Z(K,x.JSC$20394_watchApi.playerApi,2);G=K.yieldResult;D=function(z){var y;z.sessionData&&z.sessionData.itct&&(y=z.sessionData.itct);var c=z.watchEndpoint;if(c&&z.sessionData&&z.sessionData.autonav)c=_.m$E(c,y);else{var W;c=_.fW(z.videoId,(W=z.listId)!=null?W:void 0,y)}y={endpoint:c};z.sessionData&&(y.tempData=z.sessionData);x.JSC$20394_watchApi.dispatchEvent("yt-navigate",y)};
G.addEventListener("onPlayVideo",D);x.addOnDisposeCallback(function(){G.removeEventListener("onPlayVideo",D)});
_.c5(K)})},Gi4=function(x){var G=function(D){x.onYtNavigate(D)};
x.JSC$20394_watchApi.getRoot().addEventListener("yt-navigate",G);x.addOnDisposeCallback(function(){x.JSC$20394_watchApi.getRoot().removeEventListener("yt-navigate",G)})};
_.KTk.prototype.onYtNavigate=function(x){var G=this,D,K,z,y,c,W,e,Q,p;return _.T(function(V){if(V.nextAddress==1){if(!((D=x.detail)==null?0:(K=D.endpoint)==null?0:K.watchEndpoint))return V.return();z=x.detail.endpoint.watchEndpoint;y=G.JSC$20394_watchApi.getWatchNextResponse();W=_.Y((c=y)==null?void 0:c.currentVideoEndpoint,_.d5);if(!W)return V.return();if(z.videoId!==W.videoId||z.playlistId&&z.playlistId!==W.playlistId||typeof z.startTimeSeconds!=="number")return V.jumpTo(0);x.stopPropagation();
(e=_.B("kevlar_watch_while_v2")&&!_.B("kevlar_watch_while_counterfactual"))&&_.Eo().resolve(_.O$).isMiniplayerActive()||G.JSC$20394_watchApi.scrollWatchTo(0,!0);return _.Z(V,G.JSC$20394_watchApi.playerApi,3)}Q=V.yieldResult;p=z.startTimeSeconds;Q.seekTo(p,void 0,void 0,void 0,84);Q.wakeUpControls();p<Q.getDuration()&&Q.playVideo();_.c5(V)})};_.ank=function(x){_.Ya.call(this);var G=this;this.JSC$20397_watchApi=x;var D=this.JSC$20397_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){zN8(G)});
this.addOnDisposeCallback(function(){G.JSC$20397_watchApi.unsubscribeByKey(D)});
zN8(this)};
_.m(_.ank,_.Ya);var zN8=function(x){var G=x.JSC$20397_watchApi.getWatchNextResponse();if(G){var D,K=[].concat(_.B5((D=G==null?void 0:G.engagementPanels)!=null?D:[]));K.unshift.apply(K,_.B5(o6c(G)));x.JSC$20397_watchApi.provideRenderingData("ENGAGEMENT_PANELS",K)}},yd8=function(x){var G,D,K,z=(G=x.engagementPanels)==null?void 0:(D=G.find(function(r){var H;
return((H=r.engagementPanelSectionListRenderer)==null?void 0:H.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(K=D.engagementPanelSectionListRenderer.content)==null?void 0:K.structuredDescriptionContentRenderer,y;
if(_.Y(z==null?void 0:(y=z.items)==null?void 0:y.find(function(r){return!!_.Y(r,dQY)}),dQY))return!0;
var c,W,e,Q;if(x=(((c=x.contents)==null?void 0:(W=c.twoColumnWatchNextResults)==null?void 0:(e=W.results)==null?void 0:(Q=e.results)==null?void 0:Q.contents)||[]).find(function(r){return r.videoPrimaryInfoRenderer})){var p,V,L;
return(((p=x.videoPrimaryInfoRenderer)==null?void 0:(V=p.videoActions)==null?void 0:(L=V.menuRenderer)==null?void 0:L.flexibleItems)||[]).some(function(r){r=_.Y(r,_.BU9);if(!r)return!1;var H,O;r=(H=r.topLevelButton)==null?void 0:(O=H.buttonViewModel)==null?void 0:O.onTap;if(!r)return!1;H=_.jn(r);if(!H)return!1;var A;return((A=_.Y(H,_.mJ))==null?void 0:A.panelIdentifier)==="PAyouchat"})}return!1},o6c=function(x){var G=[];
if(!_.B("web_watch_inject_placeholder_fantasy_panel_killswitch")){var D,K,z,y=(D=x.engagementPanels)==null?void 0:(K=D.find(function(W){var e;return((e=W.engagementPanelSectionListRenderer)==null?void 0:e.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(z=K.engagementPanelSectionListRenderer.content)==null?void 0:z.structuredDescriptionContentRenderer,c;
_.Y(y==null?void 0:(c=y.items)==null?void 0:c.find(function(W){return!!_.Y(W,bKY)}),bKY)&&(D=_.mwn("PAsports_fantasy"),D.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",G.push(D))}yd8(x)&&(x=_.mwn("PAyouchat"),x.engagementPanelSectionListRenderer.targetId="PAyouchat",x.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",G.push(x));
return G};_.cdC=function(x){_.Ya.call(this);this.JSC$20400_watchApi=x;lnf(this)};
_.m(_.cdC,_.Ya);var lnf=function(x){x.JSC$20400_watchApi.registerActionHandler("yt-loop-command",function(G){Tt6(x,G)});
x.JSC$20400_watchApi.registerActionHandler("yt-repeat-chapter-command",function(G){WTO(x,G)});
x.addOnDisposeCallback(function(){x.JSC$20400_watchApi.unregisterActionHandler("yt-loop-command");x.JSC$20400_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},Tt6=function(x,G){var D;
_.T(function(K){if(K.nextAddress==1)return _.Z(K,x.JSC$20400_watchApi.playerApi,2);D=K.yieldResult;_.Y(G,BSc).loop?(D.setLoopRange({startTimeMs:Number(_.Y(G,BSc).startTimeMs),endTimeMs:Number(_.Y(G,BSc).endTimeMs),postId:_.Y(G,BSc).postId,type:"clips"}),D.playVideo()):D.setLoopRange(null);_.c5(K)})},WTO=function(x,G){var D,K;
_.T(function(z){if(z.nextAddress==1)return _.Z(z,x.JSC$20400_watchApi.playerApi,2);D=z.yieldResult;K=_.Y(G,HK6).repeat;K==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(D.setLoopRange({startTimeMs:Number(_.Y(G,HK6).startTimeMs),endTimeMs:Number(_.Y(G,HK6).endTimeMs),type:"repeatChapter"}),D.playVideo()):K==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&D.setLoopRange(null);_.c5(z)})};_.ZYT=function(x){_.Ya.call(this);this.JSC$20405_watchApi=x;eNf(this)};
_.m(_.ZYT,_.Ya);var eNf=function(x){x.JSC$20405_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(G){Mdj(x,G)});
x.addOnDisposeCallback(function(){x.JSC$20405_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},Mdj=function(x,G){var D,K,z,y,c,W,e,Q,p,V,L;
_.T(function(r){if(r.nextAddress==1)return _.Z(r,x.JSC$20405_watchApi.playerApi,2);D=r.yieldResult;if(y=(z=(K=_.Y(G,$QC))==null?void 0:K.highlightedMenuItemKey)!=null?z:"")(W=(c=D).highlightSettingsMenuItem)==null||W.call(c,y);if(p=(Q=(e=_.Y(G,$QC))==null?void 0:e.openMenuItemKey)!=null?Q:"")(L=(V=D).openSettingsMenuItem)==null||L.call(V,p);_.c5(r)})};var QUY=_.K3("/youtube/app/watch/player_state","playerStateEntity");_.Vdf=function(x){_.Ya.call(this);this.JSC$20408_watchApi=x;pET(this)};
_.m(_.Vdf,_.Ya);var bYb=function(x){switch(x){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"}},pET=function(x){var G,D;
_.T(function(K){if(K.nextAddress==1)return _.Z(K,x.JSC$20408_watchApi.playerApi,2);G=K.yieldResult;D=function(z){x.onPlayerStateChange(z)};
G.addEventListener("onStateChange",D);x.addOnDisposeCallback(function(){G.removeEventListener("onStateChange",D)});
_.c5(K)})};
_.Vdf.prototype.onPlayerStateChange=function(x){var G=this,D,K;return _.T(function(z){if(z.nextAddress==1)return _.Z(z,G.JSC$20408_watchApi.playerApi,2);D=z.yieldResult;K=D.getVideoData().video_id;_.iD().dispatch(_.cq("playerStateEntity",QUY,{key:QUY,playerState:bYb(x),videoId:K}));_.c5(z)})};_.Btk=function(x){_.Ya.call(this);var G=this;this.JSC$20412_watchApi=x;this.enableExternalPlaylistPanelInPlayer=_.B("delhi_web_player_use_external_playlist_panel");_.Eo().resolve(_.HG).setPlayer(this.JSC$20412_watchApi.getElement("PLAYER"));x=this.JSC$20412_watchApi.subscribeToActiveChanged(function(D){G.onActiveChanged(D)});
this.addOnDisposeCallback(x);LT8(this)};
_.m(_.Btk,_.Ya);var LT8=function(x){var G,D;_.T(function(K){if(K.nextAddress==1)return x.enableExternalPlaylistPanelInPlayer?_.Z(K,x.JSC$20412_watchApi.playerApi,2):K.return();G=K.yieldResult;D=function(){if(x.playlistPanelElement)x.playlistPanelElement.onToggleExpanded()};
G.addEventListener("onToggleExternalPlaylistPanel",D);x.addOnDisposeCallback(function(){G.removeEventListener("onToggleExternalPlaylistPanel",D)});
_.c5(K)})};
_.Btk.prototype.onActiveChanged=function(x){var G=this,D=_.Eo().resolve(_.HG),K=function(){rdb(G)};
x?(this.playlistPanelElement=this.JSC$20412_watchApi.getElement("PLAYLIST_PANEL"))?(D.setPlaylistComponent(this.playlistPanelElement),D.addEventListener("yt-playlist-data-updated",K),this.addOnDisposeCallback(function(){D.removeEventListener("yt-playlist-data-updated",K)}),rdb(this)):_.iM(Error("hm")):(D.removeEventListener("yt-playlist-data-updated",K),D.cancelVideoSkip())};
var rdb=function(x){var G=_.Eo().resolve(_.HG);x.JSC$20412_watchApi.provideRenderingData("PLAYLIST",G.getPlaylistData())};_.SN=function(x){_.Ya.call(this);var G=this;this.JSC$20415_watchApi=x;this.onPageScroll=function(){G.scrollThrottle.fire();G.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.Jc(this.onThrottledScroll,200,this);_.WZ(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.Jc(this.onMastheadThrottledScroll,50,this);_.WZ(this,this.mastheadScrollThrottle);this.animation=new _.C8(function(D){G.JSC$20415_watchApi.getRoot().setScrollTop(D)});
x=_.la(_.wK(),_.Og,function(){G.onFullscreenChanged()});
this.addOnDisposeCallback(x);sUf(this);YWT(this);this.onThrottledScroll()};
_.m(_.SN,_.Ya);
_.SN.prototype.onFullscreenChanged=function(){var x=this,G=this.JSC$20415_watchApi.getRoot();!this.pageScrollElement&&G.pageScrollElement?(this.pageScrollElement=G.pageScrollElement,G.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){x.pageScrollElement&&x.pageScrollElement.removeEventListener("scroll",x.onPageScroll)})):this.pageScrollElement&&!G.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var sUf=function(x){window.addEventListener("scroll",x.onPageScroll);x.addOnDisposeCallback(function(){window.removeEventListener("scroll",x.onPageScroll)})},YWT=function(x){x.JSC$20415_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(G){a:{var D;
if(D=x.JSC$20415_watchApi.getRoot().contains(G)&&!x.animation.isAnimating()){D=G.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var K,z,y=(G==null?void 0:(K=G.parentElement)==null?void 0:(z=K.parentElement)==null?void 0:z.id)==="fixed-secondary";D=!(D&&y)}if(D){if(_.B("kevlar_watch_scroll_manager_absolute_offset_killswitch"))K=G.offsetTop;else for(K=0,z=G;z!==null;)K+=z.offsetTop,K-=z.scrollTop,z=z.offsetParent;z=K;K=z-24;G=z+G.offsetHeight+24;z=x.JSC$20415_watchApi.getRoot().getPageScrollingElement();
D=x.JSC$20415_watchApi.getRoot().getScrollTop();y=D+z.clientHeight-56;if(K<D+56)G=K-56;else if(G>y)G-=z.clientHeight;else break a;x.scrollWatchTo(Math.max(0,G),!0)}}});
x.addOnDisposeCallback(function(){x.JSC$20415_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.SN.prototype.onThrottledScroll=function(){var x=_.wK(),G=x.dispatch,D=this.JSC$20415_watchApi.getRoot().getScrollTop();G.call(x,_.EO({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:D}}))};
_.SN.prototype.onMastheadThrottledScroll=function(){this.JSC$20415_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20415_watchApi.getRoot().getScrollTop())};
_.SN.prototype.scrollWatchTo=function(x,G){(G===void 0?0:G)?this.animation.start(this.JSC$20415_watchApi.getRoot().getScrollTop(),Math.max(0,x),500):this.JSC$20415_watchApi.getRoot().setScrollTop(x)};_.$f6=function(x){_.Ya.call(this);var G=this;this.JSC$20418_watchApi=x;var D=this.JSC$20418_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){mff(G)}),K=this.JSC$20418_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){HYC(G)});
this.addOnDisposeCallback(function(){G.JSC$20418_watchApi.unsubscribeByKey(D);G.JSC$20418_watchApi.unsubscribeByKey(K)});
mff(this);HYC(this)};
_.m(_.$f6,_.Ya);
var mff=function(x){var G,D,K,z=(K=(G=x.JSC$20418_watchApi.getPlayerResponse())==null?void 0:(D=G.videoDetails)==null?void 0:D.title)!=null?K:"";x.JSC$20418_watchApi.dispatchEvent("yt-update-title",z)},HYC=function(x){var G,D,K,z,y,c,W,e=(W=((c=(G=x.JSC$20418_watchApi.getWatchNextResponse())==null?void 0:(D=G.contents)==null?void 0:(K=D.twoColumnWatchNextResults)==null?void 0:(z=K.results)==null?void 0:(y=z.results)==null?void 0:y.contents)!=null?c:[]).find(function(Q){return!!Q.videoPrimaryInfoRenderer}))==null?
void 0:W.videoPrimaryInfoRenderer;
(G=_.u7(e==null?void 0:e.title))&&x.JSC$20418_watchApi.dispatchEvent("yt-update-title",G)};_.CcO=function(x){_.Ya.call(this);this.JSC$20421_watchApi=x;FTf(this)};
_.m(_.CcO,_.Ya);var FTf=function(x){var G,D;_.T(function(K){if(K.nextAddress==1)return _.Z(K,x.JSC$20421_watchApi.playerApi,2);G=K.yieldResult;D=function(){x.onYpcContentRequest()};
G.addEventListener("onYpcContentRequest",D);x.addOnDisposeCallback(function(){G.removeEventListener("onYpcContentRequest",D)});
_.c5(K)})};
_.CcO.prototype.onYpcContentRequest=function(){var x,G,D,K,z,y=(x=this.JSC$20421_watchApi.getWatchNextResponse())==null?void 0:(G=x.contents)==null?void 0:(D=G.twoColumnWatchNextResults)==null?void 0:(K=D.secondaryResults)==null?void 0:(z=K.secondaryResults)==null?void 0:z.offerModule,c,W,e,Q;x=(Q=(e=(W=(c=y==null?void 0:y.episodeOfferModuleRenderer)!=null?c:y==null?void 0:y.movieOfferModuleRenderer)!=null?W:y==null?void 0:y.unlimitedOfferModuleRenderer)!=null?e:y==null?void 0:y.liveOfferModuleRenderer)!=
null?Q:y==null?void 0:y.tvfilmOfferModuleRenderer;var p,V,L;y=(L=y==null?void 0:(p=y.tvfilmOfferModuleRenderer)==null?void 0:(V=p.actionButtons)==null?void 0:V.length)!=null?L:0;V=Math.max(y-1,0);var r,H,O;p=(O=x==null?void 0:(r=x.offerButton)==null?void 0:r.buttonRenderer)!=null?O:x==null?void 0:(H=x.actionButtons)==null?void 0:H[V].buttonRenderer;var A,g;(r=(g=(A=p==null?void 0:p.navigationEndpoint)!=null?A:p==null?void 0:p.serviceEndpoint)!=null?g:p==null?void 0:p.command)&&_.y2.instance.resolveCommand(r)};
}catch(e){_._DumpException(e)}
try{
var hFj,kCC,fSc;_.tOY=function(){var x=_.YS.clone(Jtj),G;return(new _.T1(function(D,K){x.onSuccess=function(z){_.OoV(z)?D(new fSc(z)):K(new _.dN("Request failed, status="+_.zz(z),"net.badstatus",z))};
x.onError=function(z){K(new _.dN("Unknown request error","net.unknown",z))};
x.onTimeout=function(z){K(new _.dN("Request timed out","net.timeout",z))};
G=_.Tz("//googleads.g.doubleclick.net/pagead/id",x)})).thenCatch(function(D){if(D instanceof _.S8){var K;
(K=G)==null||K.abort()}return _.rk(D)})};
_.P1C=function(x){a:{var G="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(G="EMBEDDED_PLAYER_MODE_PFL");var D=x.raw_embedded_player_response;if(!D&&(x=x.embedded_player_response))try{D=JSON.parse(x)}catch(z){break a}if(D)b:for(var K in kCC)if(kCC[K]==D.embeddedPlayerMode){G=kCC[K];break b}}return G==="EMBEDDED_PLAYER_MODE_PFL"};
_.E98=function(){if(_.B("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("mf");if(!_.EhP())return Error("nf");var x=_.Am("PLAYER_VARS",{});if(_.YS.get(x,"privembed",!1)=="1")return Error("of");if(_.P1C(x))return Error("pf")};
hFj=function(x){switch(x){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:_.oT(x,"unknown result type")}};
_.xh8=function(x,G,D){G=_.wPf[G];D={detected:x===0,source:G.xE3,detectionResult:hFj(x),contentCpn:D};_.Fv("biscottiBasedDetection",D);_.xdi.increment(G.xE3,x);G.i83!==void 0&&_.XQ("CATSTAT",_.uHP(x,G))};
_.wN=function(x,G){var D={};D.key=x;D.value=G;return _.sJh().then(function(K){return new Promise(function(z,y){try{var c=K.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(D);c.onsuccess=function(){z()};
c.onerror=function(){y()}}catch(W){y(W)}})})};
_.DhC=function(){var x=_.Gz("user_engagement_experiments_rate_limit_ms"),G=GZC.get("last-user-engagement-exp-trigger-timestamp");return!G||(0,_.kK)()>=G+x?(GZC.set("last-user-engagement-exp-trigger-timestamp",(0,_.kK)()),!0):!1};
_.qe=function(x,G,D,K,z){G=G===void 0?null:G;D=D===void 0?null:D;K=K===void 0?null:K;z=z===void 0?null:z;x={youThereEventType:x};D&&(x.lactThresholdMs=D.lactThresholdMs,x.mediaPosSec=D.promptDelaySec,x.lactServerRequestMs=D.lactServerRequestMs,x.triggerReason=D.triggerReason);z!=null&&(x.renderingMediaPosSec=Math.round(z));G||(G=_.CC());G&&(x.clientScreenNonce=G);K&&(x.clientPlaybackNonce=K);_.Fv("youThere",x)};
kCC={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"};fSc=function(x){this.xhr=x};
_.dN=function(x,G,D){_.xC.call(this,x+", errorCode="+G);this.errorCode=G;this.xhr=D;this.name="PromiseAjaxError"};
_.m(_.dN,_.xC);var Jtj={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var GZC=new _.Xj("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.O9j=function(x){return _.EO({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:x})};
}catch(e){_._DumpException(e)}
try{
var dd,g6x,dfi,wE4,qWx,Nt4,Jd8,Gtk,D8i,K9b,v6f,uJb,Pcb,kic,ogi;_.iYY=function(){var x=window.location.hash;x.charAt(0)==="#"&&(x=x.charAt(1)==="!"?x.substring(2):x.substring(1));return _.dT(x)};
dd=function(x,G,D){var K;return _.T(function(z){if(z.nextAddress==1)return _.Z(z,G(),2);K=z.yieldResult;D(K,x);_.c5(z)})};
g6x=function(){return _.T(function(x){return x.nextAddress==1?_.Z(x,(_.E98()!==void 0?_.rk(Error("qf")):_.tOY()).then(function(){return 1},function(G){if(G.message==="Biscotti id is disabled")return 3;
_.O9("Failed fetching bid");return 0}),2):x.return(x.yieldResult)})};
dfi=function(){var x=_.Jr("dmVuLWVtYmVkLXBsYXllciM1eDA1bmIybTF3ZHh5dC1oYQ=="),G=_.Jr("ZnRvNGdlaWZyYW1lIzFzczd2MA==");return document.querySelector(G+uJb+x)?0:1};
wE4=function(){return _.F3d(_.Ai)};
qWx=function(){return _.CkO()===0?0:_.IHQ()};
Nt4=function(){return _.UzO(_.k$d([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
Jd8=function(){return _.L3O(v6f)};
_.fnj=function(x){_.T(function(G){switch(G.nextAddress){case 1:return _.Z(G,dd("b.f_",g6x,x),2);case 2:return _.Z(G,dd("j.s_",_.V$3,x),3);case 3:return _.Z(G,dd("r.s_",_.M$L,x),4);case 4:return _.Z(G,dd("e.h_",Jd8,x),5);case 5:if(!_.B("ab_det_sc_inj")){G.jumpTo(6);break}return _.Z(G,dd("s.i_",_.HFL,x),6);case 6:if(_.B("ab_deg_unex_thr")){G.jumpTo(8);break}return _.Z(G,dd("a.o_",_.YeQ,x),8);case 8:if(_.B("ks_get_o_pp")){G.jumpTo(10);break}return _.Z(G,dd("g.o_",_.sQP,x),10);case 10:if(_.B("ks_det_gpbl")){G.jumpTo(12);
break}return _.Z(G,dd("p.i_",_.rGC,x),12);case 12:return _.Z(G,dd("f.i_",_.K3f,x),14);case 14:return _.Z(G,dd("a.b_",_.eJh,x),15);case 15:return _.Z(G,dd("p.m_",_.ot$,x),16);case 16:if(!_.B("ab_det_el_h_v2")){G.jumpTo(17);break}return _.Z(G,dd("n.h_",Nt4,x),17);case 17:return _.Z(G,dd("o.p_",wE4,x),19);case 19:return _.Z(G,dd("e.i_",dfi,x),20);case 20:if(_.B("ab_det_apm"))return _.Z(G,dd("o.a_",qWx,x),0);G.jumpTo(0)}})};
_.tdj=function(x,G){x={videoId:x};G&&(x.playlistId=G);return x};
_.E66=function(){if(_.EhP()){var x=_.Am("PLAYER_VARS",{});if(_.YS.get(x,"privembed",!1)!="1"&&!_.P1C(x)){var G=function(){kic=!0;"google_ad_status"in window?_.XQ("DCLKSTAT",1):_.XQ("DCLKSTAT",2)};
try{_.Uf("//static.doubleclick.net/instream/ad_status.js",G)}catch(D){}Pcb.push(_.Fj.addLowPriorityJob(function(){if(!(kic||"google_ad_status"in window)){try{_.qRn("//static.doubleclick.net/instream/ad_status.js",G)}catch(D){}kic=!0;_.XQ("DCLKSTAT",3)}},5E3))}}};
_.wd=function(x,G,D){D=D===void 0?!1:D;var K=Math.max(x.width,_.qSc);if(_.B("kevlar_watch_feed_big_thumbs")&&x.width>=1550-_.mO()&&x.height>=800)K-=_.kob;else if(x.width>=_.XY){var z=_.NS4+_.vxC+_.OF;_.B("kevlar_watch_feed_big_thumbs")&&(z=_.t6T);K-=z}else K-=_.NS4;K=Math.min(K,_.JP4);z=240;D&&(z=380);G<.5624||(!_.B("kevlar_watch_flexy_disable_small_window_sizing")&&(x.height<630&&x.width>=657||x.height>=630&&x.width>=_.XY&&x.width<1327)?z=360:!_.B("kevlar_watch_flexy_disable_large_window_sizing")&&
x.height>=630&&x.width>=1327&&(z=480));var y=Math.min(K*G,x.height-(56+_.wJC+_.f3c));y=Math.max(y,z);G<1?K=y/G:x.width>=_.XY&&(K=_.wd(x,.5625,D).width);return new _.cu(Math.round(K),Math.round(y))};
_.hNf=function(x){var G=0;x.indexOf("h")!=-1&&(x=x.split("h"),G=x[0]*60*60,x=x[1]);x.indexOf("m")!=-1&&(x=x.split("m"),G=x[0]*60+G,x=x[1]);x.indexOf("s")!=-1?(x=x.split("s"),G=x[0]*1+G):G=x*1+G;return G};
_.x8j=function(){_.Gz("service_worker_push_logged_out_prompt_watches")!=-1&&_.fP("WatchCount").then(function(x){x>=100||_.wN("WatchCount",x+1)})};
Gtk=function(x){var G=x.externalVideoId||"";return G?x.isShortsEligible?"https://www.youtube.com/shorts/"+G:"https://www.youtube.com/watch?v="+G:""};
D8i=function(x){var G=[];x.viewCount&&G.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:x.viewCount});x.likeCount&&G.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:x.likeCount});return G};
K9b=function(x){var G,D,K={"@context":"https://schema.org","@type":"VideoObject",description:_.u7(x.description),duration:"PT"+(x.lengthSeconds||"0")+"S",embedUrl:x.embed?x.embed.iframeUrl:"",name:_.u7(x.title),thumbnailUrl:((G=x.thumbnail)==null?void 0:(D=G.thumbnails)==null?void 0:D.map(function(p){return p&&p.url||""}))||[],
uploadDate:x.publishDate};_.B("mweb_video_schema_id_killswitch")||(K["@id"]=Gtk(x));G=D8i(x);G.length&&(K.interactionStatistic=G);x.category&&(K.genre=x.category);x.ownerChannelName&&(K.author=x.ownerChannelName);x.liveBroadcastDetails&&(K.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:x.liveBroadcastDetails.startTimestamp,endDate:x.liveBroadcastDetails.endTimestamp}]);if(x.learningResource){x=x.learningResource;K["@type"]=["VideoObject","LearningResource"];var z;if((z=x.learningResourceType)==
null?0:z.length)K.learningResourceType=x.learningResourceType[0];var y;if((y=x.educationalAlignment)==null?0:y.length)K.educationalAlignment={"@type":"AlignmentObject",targetName:x.educationalAlignment[0]};var c;if((c=x.educationalLevel)==null?0:c.length){z=x.educationalLevel[0];var W;if((W=x.educationalLevelCountry)==null?0:W.length)z+=" ("+x.educationalLevelCountry+")";K.educationalLevel=z}var e,Q;if(((e=x.learningResourceType)==null?0:e.length)&&x.learningResourceType[0]==="Problem walkthrough"&&
((Q=x.problemDescriptions)==null?0:Q.length))for(K.hasPart=[],W=_.l(x.problemDescriptions),e=W.next();!e.done;e=W.next())z=e.value,e=z.problemDescriptionText,Q=z.startOffset,z=z.url,e&&Q!==void 0&&z&&K.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:e,text:e,startOffset:Q,url:z})}return K};
_.zw4=function(x){return _.EO({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:x}})};
v6f=[[["bHJlcHJpbWFyeSM5amdpdmdlbXo=",null,null],[null,["M2lkaXZneGN2aTd2eXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIj","cGUjeGxma2tqMmk0bDByc3R5bGUtc2Nv"],null],["YWQjYTZjNWU5dWo1MjRjbWFzdGhlYWQt",["aC1ncmlkLXJlbmRlcmVyI2U2cmgxbjdjdjE4NHl0ZC1yaWM="],null],[null,["aC1ncmlkLXJlbmRlcmVyIzIyZmh5ZDFlc2MzdXl0ZC1yaWM=","cGUjaGdrOHNoZHB5aWp5c3R5bGUtc2Nv"],null],[null,["b21vLXJlbmRlcmVyI2tmcDE4NDEydzFhbHl0ZC1iYW5uZXItcHI=","cGUjNW9ocjJjNGNoNGp2c3R5bGUtc2Nv"],null],[null,["LWFkLXNsb3QtcmVuZGVyZXIjanhtYmVvZG1icHUxeXRk"],
null]],[["LWFkcyNmdzU1eWZteTF6Mm1wbGF5ZXI=",null,null]]];uJb="#";Pcb=[];kic=!1;_.asY=["engagement-panel-ads"];ogi=new _.J("updateSentimentBarStateCommand");_.ysC=new _.J("showSurveyCommand");_.qm=new _.J("changeMarkersVisibilityCommand");var csb,TaC,McT,Znk,ewf,Nm;_.lsf=function(x,G){this.playerProvider_=x;this.actionSenderElement_=G;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.lsf.prototype.reset=function(){csb(this);this.isUserPredictedAbsent_=!1};
csb=function(x,G){!x.youThereData_||x.showWarningJob_||G!==void 0&&G||(_.qe("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.CC(),x.youThereData_,x.clientPlaybackNonce_),_.CE());_.Fj.cancelJob(x.showWarningJob_);x.showWarningJob_=0;_.Fj.cancelJob(x.showBlockingWarningJob_);x.showBlockingWarningJob_=0;_.Fj.cancelJob(x.pausePlaybackJob_);x.pausePlaybackJob_=0;x.youThereData_=null;x.clientPlaybackNonce_=void 0;x.inYouThereFlow_=!1};
_.W9Y=function(x,G){var D,K,z;_.T(function(y){if(y.nextAddress==1)return x.reset(),_.Z(y,x.playerProvider_().getPlayerPromise(),2);D=y.yieldResult;x.clientPlaybackNonce_=D.getVideoData().cpn;x.youThereData_=G.configData.youThereData;if(!x.youThereData_)return y.return();if(x.youThereData_.triggerReason&&x.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.DhC())return _.qe("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.CC(),x.youThereData_,x.clientPlaybackNonce_),y.return();K=x.youThereData_.promptDelaySec;
z=D.getCurrentTime();x.showWarningJob_=_.Fj.addLowPriorityJob(function(){return _.T(function(c){x.showWarningJob_=0;return _.Z(c,TaC(x),0)})},Math.max(K-z,0)*1E3);
_.c5(y)})};
TaC=function(x){var G,D,K,z,y,c;return _.T(function(W){if(W.nextAddress==1)return _.Z(W,x.playerProvider_().getPlayerPromise(),2);if(W.nextAddress!=3)return G=W.yieldResult,D=G.getCurrentTime(),_.Z(W,ewf(x),3);K=W.yieldResult;if(!K||!x.youThereData_)return W.return();if(_.B("check_user_lact_at_prompt_shown_time_on_web")&&(z=parseInt(x.youThereData_.lactThresholdMs,10),_.xq()<z))return _.qe("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.CC(),x.youThereData_,x.clientPlaybackNonce_),W.return();if(x.youThereData_.playbackPauseDelayMs<=
0)return Znk(x),W.return();!_.B("external_fullscreen")&&(y=_.t$())&&(x.ignoreFullscreenExitUserActivity_=!0,_.Fj.addLowPriorityJob(function(){x.ignoreFullscreenExitUserActivity_=!1},2E3),_.km(y));
x.youThereData_.showToastWarningPrompt&&(Nm(x,x.youThereData_.showWarningActions),x.inYouThereFlow_=!0,_.qe("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.CC(),x.youThereData_,x.clientPlaybackNonce_,D),_.qe("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.CC(),x.youThereData_,x.clientPlaybackNonce_,D));c=0;x.youThereData_.blockingPromptDelayMs&&(c=x.youThereData_.blockingPromptDelayMs);x.showBlockingWarningJob_=_.Fj.addLowPriorityJob(function(){return _.T(function(e){x.showBlockingWarningJob_=0;return _.Z(e,
McT(x),0)})},c);
_.c5(W)})};
McT=function(x){var G,D,K;return _.T(function(z){if(z.nextAddress==1)return _.Z(z,ewf(x),2);G=z.yieldResult;if(!x.youThereData_)return z.return();G&&(x.youThereData_.showBlockingWarningAction&&(_.qe("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.CC(),x.youThereData_,x.clientPlaybackNonce_),(D=_.Y(x.youThereData_.showBlockingWarningAction,_.oI))?Nm(x,D.commands):Nm(x,[x.youThereData_.showBlockingWarningAction]),x.inYouThereFlow_=!0),K=x.youThereData_.playbackPauseDelayMs,x.pausePlaybackJob_=
_.Fj.addLowPriorityJob(function(){return _.T(function(y){x.pausePlaybackJob_=0;return _.Z(y,Znk(x),0)})},K));
_.c5(z)})};
Znk=function(x){var G;return _.T(function(D){if(D.nextAddress==1)return _.Z(D,ewf(x),2);G=D.yieldResult;if(!x.youThereData_)return D.return();G&&(_.qe("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.CC(),x.youThereData_,x.clientPlaybackNonce_),Nm(x,x.youThereData_.showPausedActions),x.inYouThereFlow_=!0);_.c5(D)})};
_.lsf.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var x=_.Y(this.youThereData_.userActiveDuringFlowAction,_.oI);x?Nm(this,x.commands):Nm(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.qe("YOU_THERE_EVENT_TYPE_LACT_RESET",_.CC(),this.youThereData_,this.clientPlaybackNonce_),_.CE());csb(this,!0)}_.QCk(this,!1)};
_.p7i=function(x){_.qe("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.CC(),x.youThereData_,x.clientPlaybackNonce_)};
ewf=function(x){var G,D;return _.T(function(K){if(K.nextAddress==1)return _.Z(K,x.playerProvider_().getPlayerPromise(),2);G=K.yieldResult;D=G.getPlayerState();return K.return(D==-1||D==1||D==3)})};
_.QCk=function(x,G){var D;_.T(function(K){if(K.nextAddress==1){if(x.isUserPredictedAbsent_==G)return K.jumpTo(0);x.isUserPredictedAbsent_=G;return _.Z(K,x.playerProvider_().getPlayerPromise(),3)}D=K.yieldResult;D.setUserEngagement(G);G&&_.qe("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.CC(),x.youThereData_,x.clientPlaybackNonce_);_.c5(K)})};
Nm=function(x,G){if(_.B("handle_service_request_actions")||_.B("kevlar_youthere_service_endpoint_actions_killswitch"))_.zl(x.actionSenderElement_,G,x.actionSenderElement_);else{G=_.l(G);for(var D=G.next();!D.done;D=G.next())D=D.value,D.commandMetadata&&D.commandMetadata.webCommandMetadata&&D.commandMetadata.webCommandMetadata.sendPost?_.KW(x.actionSenderElement_,[D]):_.zl(x.actionSenderElement_,[D],x.actionSenderElement_)}};var Vcc;var bni;var vr=function(){var x=_.n.apply(this,arguments)||this;x.systemIcons=_.B("kevlar_system_icons");x.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return x};
_.m(vr,_.n);vr.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var x=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(x=this.data.percentIfLiked||0,this.activated=!0):(x=this.data.percentIfIndifferent||0,this.activated=!1);_.kA(this.hostElement).querySelector("#like-bar").style.width=x+"%"}};
vr.prototype.handleUpdateSentimentBarStateCommand=function(x){this.data&&this.set("data.likeStatus",_.Y(x,ogi).likeStatus)};
vr.prototype.observeLikeStatus=vr.prototype.observeLikeStatus;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],vr.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],vr.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],vr.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],vr.prototype,"activated",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],vr.prototype,"systemIcons",void 0);_.q([_.yf("data.likeStatus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vr.prototype,"observeLikeStatus",null);vr=_.q([_.d({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],vr);
_.w(vr,"ytd-sentiment-bar-renderer",function(){if(bni!==void 0)return bni;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return bni=x},{mode:1});var L9C;var Jb=function(){var x=_.n.apply(this,arguments)||this;x.small=!0;return x};
_.m(Jb,_.n);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Jb.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Jb.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Jb.prototype,"small",void 0);Jb=_.q([_.d({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],Jb);
_.w(Jb,"ytd-video-view-count-renderer",function(){if(L9C!==void 0)return L9C;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return L9C=x},{mode:_.Ge("kevlar_poly_si_batch_j080")?1:2});var fc=function(){var x=_.n.apply(this,arguments)||this;x.infoFormattedStrings=[];x.wrapVideoActions=_.B("kevar_watch_wrap_video_actions");x.hideSentimentBar=_.B("kevlar_watch_hide_sentiment_bar");x.actionMap={};return x};
_.m(fc,_.n);_.a=fc.prototype;_.a.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.B("web_modern_buttons"),forceIconButton:!_.B("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.a.dataChanged=function(){_.B("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.a.computeInfoFormattedStrings=function(x){if(!x)return[];var G=[];x.dateText&&G.push(x.dateText);x.stationName&&G.push(x.stationName);x.rating&&G.push(x.rating);x.startEndTimeTemplate&&x.startTimeUtcMillis&&x.endTimeUtcMillis&&G.push(_.gK(_.l1i(_.u7(x.startEndTimeTemplate),Number(x.startTimeUtcMillis),Number(x.endTimeUtcMillis))));x.upNextProgramText&&G.push(x.upNextProgramText);return G};
_.a.scheduleInitialUpdatedMetadataRequest=function(){var x,G=(x=this.data)==null?void 0:x.updatedMetadataEndpoint;if(G){var D;x=Number((D=_.Y(G,_.Gbk))==null?void 0:D.initialDelayMs);D=isNaN(x)?250:x;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),D)}};
_.a.setSentimentBarWidth=function(){var x=this;_.w1(this,function(){var G=_.kA(x.hostElement).querySelector("ytd-menu-renderer");if(G){G=G.topLevelButtons;for(var D=0,K=0;K<G.length;K++){var z=G[K],y=x.get("toggleButtonSupportedData.toggleButtonIdData.id",z.data);if(y==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||y==="TOGGLE_BUTTON_ID_TYPE_LIKE")D+=z.clientWidth+8;else break}D&&(x.sentiment.style.width=D-8+" px")}})};
_.a.fetchUpdatedMetadata=function(x){var G;x&&(G={continuation:x});var D;(x=(D=this.data)==null?void 0:D.updatedMetadataEndpoint)&&_.Eo().resolve(_.hm).resolveCommand(x,{form:Object.assign({},G,{element:this.hostElement})})};
_.a.onYtServiceRequestSent=function(x,G){G.endpoint&&_.Y(G.endpoint,_.Ry)&&(this.hasUpdateSentimentBarStateCommands()&&!_.B("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.Y(G.endpoint,_.Ry).status),this.setSentimentBarWidth())};
_.a.hasUpdateSentimentBarStateCommands=function(){var x,G,D,K,z=(K=(x=this.data)==null?void 0:(G=x.videoActions)==null?void 0:(D=G.menuRenderer)==null?void 0:D.topLevelButtons)!=null?K:[];x=_.l(z);for(G=x.next();!G.done;G=x.next()){G=G.value;z=K=D=void 0;var y=(D=G.toggleButtonRenderer)==null?void 0:(K=D.toggleButtonSupportedData)==null?void 0:(z=K.toggleButtonIdData)==null?void 0:z.id;if(y==="TOGGLE_BUTTON_ID_TYPE_LIKE"||y==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){K=D=void 0;G=(K=_.Y((D=G.toggleButtonRenderer)==
null?void 0:D.defaultServiceEndpoint,_.oI))==null?void 0:K.commands;if(!G)break;G=_.l(G);for(D=G.next();!D.done;D=G.next())if(_.Y(D.value,ogi))return!0}}return!1};
_.a.onYtServiceRequestCompleted=function(x,G){var D;(x=(D=G.data)==null?void 0:D.loggingDirectives)&&_.Qzf(_.en(),x);this.get("continuation.timedContinuationData",G.data)&&this.data&&this.data.updatedMetadataEndpoint&&(G=G.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,G.continuation),G.timeoutMs))};
_.a.computeHasDateText=function(x){return!!x&&!!x.dateText};
_.Nq.Object.defineProperties(fc.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var x,G,D,K;return!((K=(x=this.data)==null?void 0:(G=x.videoActions)==null?void 0:(D=G.menuRenderer)==null?void 0:D.flexibleItems)==null||!K.length)}}});
fc.prototype.onYtServiceRequestCompleted=fc.prototype.onYtServiceRequestCompleted;fc.prototype.onYtServiceRequestSent=fc.prototype.onYtServiceRequestSent;fc.prototype.dataChanged=fc.prototype.dataChanged;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],fc.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],fc.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],fc.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.qz.YtTaskEmitterBehavior),_.N("design:type",Object)],fc.prototype,"ytTaskEmitterBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],fc.prototype,"data",void 0);_.q([_.R({computed:"computeInfoFormattedStrings(data)"}),_.N("design:type",Array)],fc.prototype,"infoFormattedStrings",void 0);
_.q([_.R({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],fc.prototype,"hasDateText",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],fc.prototype,"wrapVideoActions",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],fc.prototype,"hideSentimentBar",void 0);_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],fc.prototype,"flexMenuEnabled",null);
_.q([_.cD("#sentiment"),_.N("design:type",Object)],fc.prototype,"sentiment",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fc.prototype,"dataChanged",null);_.q([_.oe("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Ou]),_.N("design:returntype")],fc.prototype,"onYtServiceRequestSent",null);
_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.gG]),_.N("design:returntype")],fc.prototype,"onYtServiceRequestCompleted",null);
_.w(fc,"ytd-video-primary-info-renderer",function(){if(Vcc===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);Vcc=x}x=Vcc;return x},{mode:1});var Bak;var tb=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return x};
_.m(tb,_.n);_.a=tb.prototype;_.a.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"}}}};
_.a.dataChanged=function(){var x;this.descriptionToggled=!((x=this.data)==null||!x.defaultExpanded);var G;this.collapsed=this.descriptionAlwaysCollapsed||!((G=this.data)==null?0:G.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.BH(110509);this.showLessClientVe=_.BH(110510);x=_.CC();G=_.Fx();x&&G&&_.S7(x,G,[this.showMoreClientVe,this.showLessClientVe])};
_.a.onYtExpanderMoreTapped=function(){var x,G=(x=this.data)==null?void 0:x.showMoreCommand;G&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(G);(x=_.CC())&&this.showMoreClientVe&&_.u0(x,this.showMoreClientVe)};
_.a.onYtExpanderLessTapped=function(){var x=_.CC();x&&this.showLessClientVe&&_.u0(x,this.showLessClientVe);var G;(x=(G=this.data)==null?void 0:G.showLessCommand)&&this.componentBehavior.resolveCommand(x)};
_.a.handleUpdateDateTextAction=function(x){this.data&&this.data.dateText&&this.set("data.dateText",_.Y(x,_.SSO).dateText)};
_.a.handleUpdateDescriptionAction=function(x){if(x=_.Y(x,_.voJ))x.isEmpty||!x.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.$$(x.description)):this.set("data.description",x.description)};
_.a.onYtChangeEngagementPanelVisibilityAction=function(x){if(_.B("web_structured_description_show_more")||_.B("web_engagement_panel_open_description")){var G,D=(G=_.Y(x,_.UtZ))==null?void 0:G.targetId,K;x=((K=_.Y(x,_.UtZ))==null?void 0:K.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";D==="engagement-panel-structured-description"&&x&&(this.descriptionToggled=!0)}};
_.a.updateCollapsedFromBinding=function(x){this.collapsed=x.detail.value};
_.a.updateDescriptionToggledFromBinding=function(x){this.descriptionToggled=x.detail.value};
_.a.updateCanCollapseFromBinding=function(x){this.canCollapse=x.detail.value};
_.Nq.Object.defineProperties(tb.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var x,G,D=(x=this.data)==null?void 0:(G=x.metadataRowContainer)==null?void 0:G.metadataRowContainerRenderer;return!!D&&!!D.rows&&D.rows.length>D.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.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}}});
tb.prototype.onYtExpanderLessTapped=tb.prototype.onYtExpanderLessTapped;tb.prototype.onYtExpanderMoreTapped=tb.prototype.onYtExpanderMoreTapped;tb.prototype.dataChanged=tb.prototype.dataChanged;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],tb.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],tb.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],tb.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],tb.prototype,"componentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],tb.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Boolean)],tb.prototype,"collapsed",void 0);_.q([_.R(),_.N("design:type",Boolean)],tb.prototype,"descriptionToggled",void 0);
_.q([_.R(),_.N("design:type",Boolean)],tb.prototype,"canCollapse",void 0);_.q([_.R(),_.N("design:type",Object)],tb.prototype,"subscribeButtonData",void 0);_.q([_.R(),_.N("design:type",Number)],tb.prototype,"descriptionCollapsedHeight",void 0);_.q([_.R(),_.N("design:type",Object)],tb.prototype,"structuredDescriptionContentRenderer",void 0);_.q([_.R({value:function(){return _.B("web_watch_description_always_collapsed")}}),
_.N("design:type",Boolean)],tb.prototype,"descriptionAlwaysCollapsed",void 0);_.q([_.cD("#description"),_.N("design:type",HTMLDivElement)],tb.prototype,"description",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tb.prototype,"dataChanged",null);_.q([_.oe("yt-expander-more-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tb.prototype,"onYtExpanderMoreTapped",null);
_.q([_.oe("yt-expander-less-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tb.prototype,"onYtExpanderLessTapped",null);_.q([_.U("data.metadataRowContainer"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],tb.prototype,"metadataCollapsible",null);_.q([_.U("data","structuredDescriptionContentRenderer"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],tb.prototype,"hasInlineStructuredDescription",null);
_.q([_.U("data.attributedDescription"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],tb.prototype,"hasAttributedDescription",null);_.q([_.U("hasInlineStructuredDescription","collapsed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],tb.prototype,"loadStructuredDescription",null);_.q([_.U("data","structuredDescriptionContentRenderer","collapsed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],tb.prototype,"showInlineStructuredDescription",null);
_.q([_.U("data","hasInlineStructuredDescription","metadataCollapsible"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],tb.prototype,"descriptionAlwaysCollapsible",null);
_.w(tb,"ytd-video-secondary-info-renderer",function(){if(Bak===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);Bak=x}x=Bak;return x},{mode:2});var rsc;var ke=function(){return _.n.apply(this,arguments)||this};
_.m(ke,_.n);ke.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:_.B("web_modern_buttons"),forceIconButton:!_.B("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
ke.prototype.activate=function(x){x.appendTo(this.player);x.getPlayerPromise().then(function(G){G.setMinimized(!0)});
this.active=!0};
ke.prototype.deactivate=function(){var x=this.player.firstElementChild;x.getPlayerPromise().then(function(G){G.setMinimized(!1)});
this.active=!1;return x};
ke.prototype.onScrollUpTap=function(){var x=_.Eo().resolve(_.wG).getCurrentPage();x&&x.setScrollTop(0)};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],ke.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],ke.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],ke.prototype,"componentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],ke.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],ke.prototype,"active",void 0);
_.q([_.R({reflectToAttribute:!0,value:function(){return _.B("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.N("design:type",Boolean)],ke.prototype,"darkLaunch",void 0);_.q([_.cD("#player"),_.N("design:type",HTMLDivElement)],ke.prototype,"player",void 0);ke=_.q([_.d({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],ke);
_.w(ke,"ytd-miniplayer-bar-renderer",function(){if(rsc!==void 0)return rsc;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return rsc=x},{mode:1});_.tn(_.Nv(function(x){var G=_.qi();_.$9(function(){var D;if(D=JSON)D=K9b(x.data()),D=_.A_(JSON.stringify(D).replace(/</g,"\\u003C"));var K=x.data(),z=_.u7(K.title).trim().length===0,y=!K.publishDate||K.publishDate.trim().length===0,c,W,e,Q,p=!((c=K.thumbnail)==null?0:(W=c.thumbnails)==null?0:W.length)||!((e=K.thumbnail)==null?0:e.thumbnails[0].url)||((Q=K.thumbnail)==null?void 0:Q.thumbnails[0].url.trim().length)===0;G.value&&D&&!(z||y||p)&&_.RF(G.value,D)});
return _.M("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.M("script",{el:G,type:"application/ld+json"}))},"pj"),"player-microformat-renderer",{props:{data:_.fz}});
}catch(e){_._DumpException(e)}
try{
var RN8;_.InT=function(x){return x.watch.watchWindowSize};
_.jUx=function(x){return _.EO({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:x}})};
RN8=function(x){_.Ya.call(this);var G=this;this.JSC$20425_watchApi=x;x=_.la(_.wK(),_.RvL,function(){OYj(G)});
this.addOnDisposeCallback(x);x=_.la(_.wK(),_.InT,function(){OYj(G)});
this.addOnDisposeCallback(x);XE8(this);Adx(this);UfY()};
_.m(RN8,_.Ya);var XE8=function(x){var G=function(K){_.wK().dispatch(_.DQ4(K.matches))},D=window.matchMedia("(max-width: "+(999+_.mO())+"px)");
D.addListener(G);x.addOnDisposeCallback(function(){D.removeListener(G)});
G(D)},Adx=function(x){x.JSC$20425_watchApi.registerActionHandler("yt-window-resized",function(){UfY()});
x.addOnDisposeCallback(function(){x.JSC$20425_watchApi.unregisterActionHandler("yt-window-resized")})},UfY=function(){var x=_.ZD();
_.wK().dispatch(_.EO({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:x.width,height:x.height}}}))},OYj=function(x){var G;
_.T(function(D){if(D.nextAddress==1)return _.Z(D,x.JSC$20425_watchApi.playerApi,2);G=D.yieldResult;G.setSize(NaN,NaN);_.c5(D)})};_.nc=function(x){_.vQ.call(this);var G=this;this.rootElement=x;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return G.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(D){G.initOrDisposeActiveModules(D)}));
this.onAttached()};
_.m(_.nc,_.vQ);_.a=_.nc.prototype;_.a.getRoot=function(){return this.rootElement};
_.a.getElement=function(x){return this.rootElement.getElement(x)};
_.a.setPlayerResponse=function(x){this.playerResponse=x;this.publish("PLAYER_RESPONSE_UPDATED",x)};
_.a.getPlayerResponse=function(){return this.playerResponse};
_.a.setWatchNextResponse=function(x){this.watchNextResponse===x?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=x,this.publish("WATCH_NEXT_RESPONSE_UPDATED",x))};
_.a.getWatchNextResponse=function(){return this.watchNextResponse};
_.a.registerActionHandler=function(x,G){var D=this;if(_.B("web_watch_controller_reg_multiple_handlers_killswitch")){var K={};_.uV(_.gu.getInstance(),(K[x]=G,K),this.getRoot())}else this.actionHandlers.has(x)||(this.actionHandlers.set(x,[]),K={},_.uV(_.gu.getInstance(),(K[x]=function(){var z=_.rC.apply(0,arguments);return(D.actionHandlers.get(x)||[]).map(function(y){return y.apply(null,_.B5(z))})},K),this.getRoot())),this.actionHandlers.get(x).push(G)};
_.a.unregisterActionHandler=function(x){if(_.B("web_watch_controller_reg_multiple_handlers_killswitch")){var G={};_.du(_.gu.getInstance(),(G[x]=!0,G),this.getRoot())}else(G=this.actionHandlers.get(x))?(G.pop(),G.length===0&&(G={},_.du(_.gu.getInstance(),(G[x]=!0,G),this.getRoot()),this.actionHandlers.delete(x))):_.O9(new _.LL("Attempted to unregister an action handler which is not registered.",x))};
_.a.addPageDisposeJob=function(x){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.vL(this.rootElement.pageDisposeJobs,x)};
_.a.removePageDisposeJob=function(x){this.rootElement.pageDisposeJobs&&_.f$(this.rootElement.pageDisposeJobs,x)};
_.a.dispatchEvent=function(x,G){_.h$(this.rootElement,x,G)};
_.a.provideRenderingData=function(x,G){this.rootElement.provideRenderingData(x,G)};
_.a.scrollWatchTo=function(x,G){var D;(D=this.watchScrollManager)==null||D.scrollWatchTo(x,G)};
_.a.focusOnPlayer=function(){var x=this.getElement("PLAYER");_.w1(x,function(){if(x&&x.firstElementChild){var G=x.querySelector(".html5-video-player");G&&(_.NE(_.Eo().resolve(_.su)),G.focus())}else _.O9(Error("im"))})};
_.a.updateCinematicFullscreenConfig=function(){var x=!!this.rootElement.theater,G=!!this.rootElement.fullscreen,D;(D=this.watchCinematicManager)==null||_.IVc(D,G,x)};
_.a.subscribeToActiveChanged=function(x,G){G=G===void 0?!0:G;var D=_.la(_.wK(),_.cqC,function(K){x(K)});
G&&x(_.cqC(_.wK().getState()));return D};
_.a.isActive=function(){return _.cqC(_.wK().getState())};
_.a.onAttached=function(){var x=_.B("external_fullscreen");_.B("use_unified_flag_accessor")&&(x=_.Eo().resolve(_.cQO).retriever.getFlag(_.Q0h));(x||_.Uo("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var SWO=function(x){return x.getRoot().is==="ytd-watch-flexy"||x.getRoot().is==="ytd-watch-grid"},gd=function(x){return x.getRoot().is==="ytd-watch-fixie"};
_.nc.prototype.initPersistentModules=function(){if(gd(this)||SWO(this)&&_.B("kevlar_watch_flexy_theater_manager")){var x=new _.zTj(this);_.WZ(this,x)}x=new _.wMf(this);_.WZ(this,x);x=new _.F1(this);_.WZ(this,x);x=new _.UU(this);_.WZ(this,x);x=new _.Vdf(this);_.WZ(this,x);x=new _.I$(this);_.WZ(this,x);if(gd(this)||SWO(this)&&_.B("kevlar_watch_flexy_playlist_manager"))x=new _.Btk(this),_.WZ(this,x)};
_.nc.prototype.initOrDisposeActiveModules=function(x){x?(this.watchScrollManager=new _.SN(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.KTk(this)),this.activeModules.push(new _.lWf(this)),gd(this)&&this.activeModules.push(new RN8(this)),this.activeModules.push(new _.$f6(this)),this.activeModules.push(new _.R$(this)),(gd(this)||_.B("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new _.eLO(this)),this.activeModules.push(new _.cdC(this)),
(gd(this)||_.B("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.CcO(this)),(gd(this)||_.B("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.BIj(this)),_.B("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.Hp6(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.B("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.ZYT(this)),_.B("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.uMY(this)),
x=_.B("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.B("kevlar_watch_flexy_comments_manager")&&!x&&this.activeModules.push(new _.RTO(this)),_.B("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Cc(this)),this.activeModules.push(new _.eTO(this)),this.activeModules.push(new _.ank(this)),_.B("web_enable_timely_actions")&&this.activeModules.push(new _.pMC(this)),_.B("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.iAc(this)),
_.B("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.IWc(this)),_.B("web_fullscreen_video_action_bar")&&this.activeModules.push(new _.pfT(this)),_.B("web_player_rtr_ctrls")&&this.activeModules.push(new _.uzC(this))):(_.Pu(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.nc.prototype.disposeInternal=function(){_.vQ.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Nq.Object.defineProperties(_.nc.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var a4j,BE,oZO,yTi,cTi,TLc,l4j,WO4;a4j=function(){var x=_.pW();x.info||(x.info={});return x.info};
BE=function(x){return Math.round(_.b0()+x)};
oZO=function(){var x;if(_.B("csi_use_performance_navigation_timing")){var G,D,K,z=_.Vg==null?void 0:(x=_.Vg.getEntriesByType)==null?void 0:(G=x.call(_.Vg,"navigation"))==null?void 0:(D=G[0])==null?void 0:(K=D.toJSON)==null?void 0:K.call(D);z?(z.requestStart=BE(z.requestStart),z.responseEnd=BE(z.responseEnd),z.redirectStart=BE(z.redirectStart),z.redirectEnd=BE(z.redirectEnd),z.domainLookupEnd=BE(z.domainLookupEnd),z.connectStart=BE(z.connectStart),z.connectEnd=BE(z.connectEnd),z.responseStart=BE(z.responseStart),
z.secureConnectionStart=BE(z.secureConnectionStart),z.domainLookupStart=BE(z.domainLookupStart),z.isPerformanceNavigationTiming=!0,x=z):x=_.Vg.timing}else x=_.B("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.Vg.timing)):_.Vg.timing;return x};
yTi=function(){if(_.Vg.getEntriesByType){var x=_.Vg.getEntriesByType("paint");if(x=_.iO(x,function(D){return D.name==="first-paint"}))return BE(x.startTime)}var G;
_.B("csi_use_performance_navigation_timing")?G=_.Vg.getEntriesByType("first-paint")[0].startTime:G=_.Vg.timing.msFirstPaint;return G?Math.max(0,G):0};
cTi=function(){var x=window.location.protocol,G=_.Vg.getEntriesByType("resource");G=_.k1(G,function(D){return D.name.indexOf(x+"//fonts.gstatic.com/s/")===0});
(G=l4j(G,function(D,K){return K.duration>D.duration?K:D}))&&G.startTime>0&&G.responseEnd>0&&(_.LW("wffs",BE(G.startTime)),_.LW("wffe",BE(G.responseEnd)))};
TLc=function(x,G){x=document.querySelector(x);if(!x)return!1;var D="",K=x.nodeName;K==="SCRIPT"?(D=x.src,D||(D=x.getAttribute("data-timing-href"))&&(D=window.location.protocol+D)):K==="LINK"&&(D=x.href);_.O2(document)&&x.setAttribute("nonce",_.O2(document));return D?(x=_.Vg.getEntriesByName(D))&&x[0]&&(x=x[0],D=_.b0(),_.LW("rsf_"+G,D+Math.round(x.fetchStart)),_.LW("rse_"+G,D+Math.round(x.responseEnd)),x.transferSize!==void 0&&x.transferSize===0)?!0:!1:!1};
_.rt=function(x,G){_.SR(function(){_.Clf("").info.actionType=x;G&&_.XQ("TIMING_AFT_KEYS",G);_.XQ("TIMING_ACTION",x);var D=_.NqV(_.Am("TIMING_INFO",{}));Object.keys(D).length>0&&_.sO(D);D={isNavigation:!0,actionType:_.OiO(_.Am("TIMING_ACTION"))};var K=_.Am("PREVIOUS_ACTION");K&&(D.previousAction=_.OiO(K));if(K=_.Am("CLIENT_PROTOCOL"))D.httpProtocol=K;if(K=_.Am("CLIENT_TRANSPORT"))D.transportProtocol=K;(K=_.CC())&&K!=="UNDEFINED_CSN"&&(D.clientScreenNonce=K);K=_.qtd();if(K===1||K===-1)D.isVisible=!0;
K=_.rxC().loadType==="cold";var z=a4j();K||(K=z.yt_lt==="cold");if(K){D.loadType="cold";K=a4j();z=oZO();var y=_.b0(),c=_.Am("CSI_START_TIMESTAMP_MILLIS",0);c>0&&!_.B("embeds_web_enable_csi_start_override_killswitch")&&(y=c);y&&(_.LW("srt",z.responseStart),K.prerender!==1&&_.StP(y));K=yTi();K>0&&_.LW("fpt",K);K=oZO();K.isPerformanceNavigationTiming&&_.sO({performanceNavigationTiming:!0},void 0);_.LW("nreqs",K.requestStart,void 0);_.LW("nress",K.responseStart,void 0);_.LW("nrese",K.responseEnd,void 0);
K.redirectEnd-K.redirectStart>0&&(_.LW("nrs",K.redirectStart,void 0),_.LW("nre",K.redirectEnd,void 0));K.domainLookupEnd-K.domainLookupStart>0&&(_.LW("ndnss",K.domainLookupStart,void 0),_.LW("ndnse",K.domainLookupEnd,void 0));K.connectEnd-K.connectStart>0&&(_.LW("ntcps",K.connectStart,void 0),_.LW("ntcpe",K.connectEnd,void 0));K.secureConnectionStart>=_.b0()&&K.connectEnd-K.secureConnectionStart>0&&(_.LW("nstcps",K.secureConnectionStart,void 0),_.LW("ntcpe",K.connectEnd,void 0));_.Vg&&"getEntriesByType"in
_.Vg&&cTi();K=[];if(document.querySelector&&_.Vg&&_.Vg.getEntriesByName)for(var W in WO4)WO4.hasOwnProperty(W)&&(z=WO4[W],TLc(W,z)&&K.push(z));if(K.length>0)for(D.resourceInfo=[],W=_.l(K),K=W.next();!K.done;K=W.next())D.resourceInfo.push({resourceCache:K.value})}_.sO(D);D=_.Ytn();D.preLoggedGelInfos||(D.preLoggedGelInfos=[]);W=D.preLoggedGelInfos;D=_.m9O();K=void 0;for(z=0;z<W.length;z++)if(y=W[z],y.loadType){K=y.loadType;break}if(_.rxC().loadType==="cold"&&(D.loadType==="cold"||K==="cold")){K=_.s6C();
z=_.Ytn();z=z.gelTicks?z.gelTicks:z.gelTicks={};for(var e in K)if(!(e in z))if(typeof K[e]==="number")_.LW(e,_.YO(e));else if(_.B("log_repeated_ytcsi_ticks"))for(y=_.l(K[e]),c=y.next();!c.done;c=y.next())c=c.value,_.LW(e.slice(1),c);e={};K=!1;W=_.l(W);for(z=W.next();!z.done;z=W.next())K=z.value,_.m_Q(D,K),_.m_Q(e,K),K=!0;K&&_.sO(e)}_.Jxd(!0);e=_.Am("TIMING_ACTION");_.nT("ytglobal.timingready_")&&e&&_.KLL()&&_.vJV()&&_.d9$()})()};
l4j=function(x,G){return Array.prototype.reduce.call(x,G,{duration:0})};
WO4={'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 evf={};evf.YtVisibilityRootBehavior=[_.JW0.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.kS(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.Am("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var x=_.Am("INNERTUBE_CLIENT_NAME")!=="WEB";_.B("kevlar_use_vimio_behavior")&&x&&_.vts()}}];_.sW={};_.sW.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(x){x.detail.contextProvider=this;x.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
evf.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.Ss();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(x){var G=this;this.pageCount+=1;_.B("kevlar_use_vimio_behavior")&&(_.Am("INNERTUBE_CLIENT_NAME")==="WEB"?_.Fj.addJob(function(){G.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(x)},
loadPage_:function(x){this.data=x},
ytPageBehaviorActiveObserver_:function(x){var G=this;_.B("kevlar_use_vimio_behavior")&&(x?_.Am("INNERTUBE_CLIENT_NAME")==="WEB"?_.Fj.addJob(function(){G.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(x){if(!this.setScrollTopJobId_){var G=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){G.setScrollTopJobId_=0;var D=_.Eo().resolve(_.P6(_.su));D&&_.NE(D);this.getPageScrollingElement().scrollTop=x}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.Qd(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var zvi;var LY=function(){var x=_.n.apply(this,arguments)||this;x.playerListenerConfig=null;x.actionMap={"yt-show-watch-page-survey":"openSurvey"};return x};
_.m(LY,_.n);_.a=LY.prototype;_.a.dataChanged=function(){var x=this,G=_.Ns();G&&G.getPlayerPromise().then(function(K){x.maybeRemovePlayerListeners(K)});
var D=this.data&&this.data.survey;D&&((D=(D=D.singleOptionSurveyRenderer||D.checkboxSurveyRenderer||D.multiStageSurveyRenderer)&&D.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(G,D):this.openSurvey())};
_.a.triggerWatchPageSurvey=function(x,G){var D=this,K,z,y,c,W,e,Q,p,V;return _.T(function(L){if(L.nextAddress==1)return x?_.Z(L,x.getPlayerPromise(),2):L.return();D.player=L.yieldResult;if(!D.player)return L.return();K={};z=_.l(G);for(y=z.next();!y.done;y=z.next())c=y.value,W=_.l(D.createEventListenerPair(c)),e=W.next().value,Q=W.next().value,p=e,V=Q,p&&V&&(K[p]=V,D.ytPlayerListenerBehavior.listenToPlayerEvent(D.player,p,V));D.playerListenerConfig=K;_.c5(L)})};
_.a.createEventListenerPair=function(x){var G=x.playbackEventTrigger;return G?this.handlePlaybackTrigger(G):(x=x.watchTimeTrigger)?this.handleWatchTimeTrigger(x):[void 0,void 0]};
_.a.handleWatchTimeTrigger=function(x){var G=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var D=x.videoWatchFraction,K=x.watchTimeSec;return K&&D?["onVideoProgress",function(){G.player&&G.isWatchTimeConditionMet(G.player,D,K)&&G.showSurvey()}]:[void 0,
void 0]};
_.a.isWatchTimeConditionMet=function(x,G,D){var K=x.getProgressState(),z=K.current-this.lastKnownPlaybackPosition;z<5&&(this.accumulatedMediaTime+=z);this.lastKnownPlaybackPosition=K.current;K=Math.round(this.accumulatedMediaTime/K.duration*1E3)/1E3;return x.getPresentingPlayerType&&x.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>D||K>G)};
_.a.handlePlaybackTrigger=function(x){var G=this;x=x.playbackEvent;if(x==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var D="onStateChange";var K=function(z){z===0&&G.showSurvey()}}else x==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(D="onVideoProgress",K=function(z){G.player&&G.player.getPresentingPlayerType&&G.player.getPresentingPlayerType()===1&&z&&G.showSurvey()}):x==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(D="onAdEnd",K=this.showSurvey);
return[D,K]};
_.a.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.a.openSurvey=function(){var x=this,G=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.O9j(!!G));_.Fj.addJob(function(){x.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:G}})},0,0)};
_.a.maybeRemovePlayerListeners=function(x){if(this.playerListenerConfig){for(var G=_.l(Object.keys(this.playerListenerConfig)),D=G.next();!D.done;D=G.next())D=D.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(x,D,this.playerListenerConfig[D]);this.playerListenerConfig=null}};
LY.prototype.dataChanged=LY.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],LY.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.i9),_.N("design:type",Object)],LY.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.I(_.nS.YtPlayerListenerBehavior),_.N("design:type",_.i4)],LY.prototype,"ytPlayerListenerBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],LY.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.I(_.$l),_.N("design:type",Object)],LY.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],LY.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],LY.prototype,"playerListenerConfig",void 0);_.q([_.R({value:0}),_.N("design:type",Number)],LY.prototype,"lastKnownPlaybackPosition",void 0);_.q([_.R({value:0}),_.N("design:type",Number)],LY.prototype,"accumulatedMediaTime",void 0);_.q([_.R(),_.N("design:type",Object)],LY.prototype,"player",void 0);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],LY.prototype,"dataChanged",null);LY=_.q([_.d({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],LY);
_.w(LY,"ytd-survey-trigger-renderer",function(){if(zvi!==void 0)return zvi;var x=document.createElement("template");_.F(x,"\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");x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return zvi=x},{mode:1});
}catch(e){_._DumpException(e)}
try{
var N3T=new _.J("promotedSparklesWebRenderer");var vv6=new _.J("relatedChipCommand");var J8j;var fGf;var Za=function(){return _.n.apply(this,arguments)||this};
_.m(Za,_.n);Za.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Za.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Za.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Za.prototype,"data",void 0);Za=_.q([_.d({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],Za);
_.w(Za,"ytd-compact-tvfilm-entry-point-renderer",function(){if(fGf!==void 0)return fGf;var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return fGf=x},{mode:1});var t44;var kNj;var PR8;var Ma=function(){return _.n.apply(this,arguments)||this};
_.m(Ma,_.n);Ma.prototype.ready=function(){this.initializeDefs()};
Ma.prototype.initializeDefs=function(){var x=this.meta.byKey("yt-icons"),G=_.kA(x).querySelector("#star"),D=_.kA(x).querySelector("#star_half");x=_.kA(x).querySelector("#star_border");G&&this.defs.appendChild(G.cloneNode(!0));D&&this.defs.appendChild(D.cloneNode(!0));x&&this.defs.appendChild(x.cloneNode(!0))};
Ma.prototype.percentChanged=function(){for(var x=this.rating;x.firstChild;)x.removeChild(x.firstChild);var G=Math.round(this.percent/10);x=Math.floor(G/2);G%=2;var D=5-x-G;this.appendStars("star",x,0);this.appendStars("star_half",G,x);this.appendStars("star_border",D,x+G)};
Ma.prototype.appendStars=function(x,G,D){for(var K=0;K<G;K++){var z=(18+this.spacing)*(K+D),y=document.createElementNS("http://www.w3.org/2000/svg","use");_.XCf(y,"#"+x);y.setAttribute("x",""+z);y.setAttribute("y","0");this.rating.appendChild(y)}};
Ma.prototype.percentChanged=Ma.prototype.percentChanged;_.q([_.cD("#defs"),_.N("design:type",HTMLElement)],Ma.prototype,"defs",void 0);_.q([_.cD("#rating"),_.N("design:type",HTMLElement)],Ma.prototype,"rating",void 0);_.q([_.R(),_.N("design:type",Number)],Ma.prototype,"percent",void 0);_.q([_.R({value:6}),_.N("design:type",Number)],Ma.prototype,"spacing",void 0);_.q([_.R({value:_.We.create("iron-meta",{type:"iconset"})}),_.N("design:type",_.Qa)],Ma.prototype,"meta",void 0);
_.q([_.yf("percent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ma.prototype,"percentChanged",null);Ma=_.q([_.d({disableElementRegistration:!0,is:"ytd-ratings"})],Ma);
_.w(Ma,"ytd-ratings",function(){if(PR8!==void 0)return PR8;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return PR8=x},{mode:1});var Qw=function(){return _.n.apply(this,arguments)||this};
_.m(Qw,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Qw.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Qw.prototype,"data",void 0);Qw=_.q([_.d({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],Qw);
_.w(Qw,"ytd-offer-review-renderer",function(){if(kNj!==void 0)return kNj;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return kNj=x},{mode:1});var pD=function(){var x=_.n.apply(this,arguments)||this;x.badges=[{textBadge:{label:_.gK("CC")}}];return x};
_.m(pD,_.n);_.a=pD.prototype;_.a.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.a.dataChanged=function(){var x=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(x&&x.commandMetadata&&_.Y(x.commandMetadata,_.LB)&&_.Y(x.commandMetadata,_.LB).fireAutomatically)_.Eo().resolve(_.hm).resolveCommand(x,{form:{element:this.hostElement}});else{var G;x&&((G=_.Y(x,_.LB))==null?0:G.fireAutomatically)&&_.Eo().resolve(_.hm).resolveCommand(x,{form:{element:this.hostElement}})}};
_.a.isEmptyContent=function(x){return this.isStorefrontEntryPointEmpty(x)&&this.shouldHideOfferModule(x)};
_.a.isStorefrontEntryPointEmpty=function(x){return!x||!x.storefrontEntryPoint};
_.a.shouldHideOfferModule=function(x){return!!x.hideVideoDetails};
_.a.isOfferModuleNavigationInactive=function(x){return!x.navigationEndpoint&&!x.serviceEndpoint};
_.a.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.Eo().resolve(_.hm).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
pD.prototype.dataChanged=pD.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],pD.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],pD.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],pD.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.N("design:type",Boolean)],pD.prototype,"hidden",void 0);
_.q([_.R(),_.N("design:type",Object)],pD.prototype,"badges",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pD.prototype,"dataChanged",null);pD=_.q([_.d({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],pD);
_.w(pD,"ytd-movie-offer-module-renderer",function(){if(t44!==void 0)return t44;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return t44=x},{mode:1});var EvT;var Vw=function(){return _.n.apply(this,arguments)||this};
_.m(Vw,_.n);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Vw.prototype,"componentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Vw.prototype,"data",void 0);Vw=_.q([_.d({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],Vw);
_.w(Vw,"ytd-media-masthead-renderer",function(){if(EvT!==void 0)return EvT;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return EvT=x},{mode:1});var hYY;_.tn(_.uSu,"course-metadata-view-model",{props:{data:_.fz,isOverlay:_.fz}});var bt=function(){var x=_.n.apply(this,arguments)||this;x.isMetadataVisible=!1;x.modernPanels=_.B("kevlar_watch_modern_panels");x.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return x};
_.m(bt,_.n);_.a=bt.prototype;
_.a.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"}}}}};
_.a.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.a.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.a.expanderChanged=function(){var x;if((x=this.data)==null?0:x.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.a.isExpandButtonToggled=function(){var x,G;return(G=_.Y((x=this.data)==null?void 0:x.expandMetadataButton,_.Bq))==null?void 0:G.isToggled};
_.a.onVisibilityButtonClick=function(){var x;if((x=this.data)==null?0:x.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.a.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
bt.prototype.expanderChanged=bt.prototype.expanderChanged;bt.prototype.dataChanged=bt.prototype.dataChanged;bt.prototype.descriptionChanged=bt.prototype.descriptionChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],bt.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],bt.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I([_.tG.YtActionHandlerBehavior]),_.N("design:type",Object)],bt.prototype,"actionHandlerBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],bt.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],bt.prototype,"isMetadataVisible",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],bt.prototype,"modernPanels",void 0);_.q([_.cD("#expander"),_.N("design:type",Object)],bt.prototype,"expander",void 0);_.q([_.yf("data.description"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bt.prototype,"descriptionChanged",null);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bt.prototype,"dataChanged",null);_.q([_.yf("isMetadataVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bt.prototype,"expanderChanged",null);bt=_.q([_.d({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],bt);
_.w(bt,"ytd-tvfilm-offer-module-renderer",function(){if(hYY!==void 0)return hYY;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return hYY=x},{mode:2});var xA6;var LD=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return x};
_.m(LD,_.n);LD.prototype.dataChanged=function(){this.hostElement.hidden=!1};
LD.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
LD.prototype.onThumbnailTap=function(x){this.data&&this.data.serviceEndpoint&&(_.Eo().resolve(_.hm).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),x.stopPropagation())};
LD.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
LD.prototype.dataChanged=LD.prototype.dataChanged;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],LD.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],LD.prototype,"rendererBehaviors",void 0);_.q([_.I([_.tG.YtActionHandlerBehavior]),_.N("design:type",Object)],LD.prototype,"actionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],LD.prototype,"data",void 0);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],LD.prototype,"dataChanged",null);LD=_.q([_.d({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],LD);
_.w(LD,"ytd-unlimited-offer-module-renderer",function(){if(xA6!==void 0)return xA6;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return xA6=x},{mode:1});var G9c;var DAc;var BK=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return x};
_.m(BK,_.n);BK.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
BK.prototype.handleRelatedChipCommand=function(x){x=_.Y(x,vv6);var G=x.contents;G?_.Gl(this.hostElement,"yt-item-section-replace-action",[G,x.targetSectionIdentifier]):_.Gl(this.hostElement,"yt-item-section-continuation-action",[x.continuationData,x.targetSectionIdentifier])};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],BK.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],BK.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],BK.prototype,"actionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],BK.prototype,"data",void 0);BK=_.q([_.HD({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],BK);
_.w(BK,"yt-related-chip-cloud-renderer",function(){if(DAc===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;G9c===void 0&&(G9c=document.createElement("template"));var K=G9c;D.call(G,K.content.cloneNode(!0),x.content.firstChild);DAc=x}x=DAc;return x},{mode:2});var rf=function(){var x=_.n.apply(this,arguments)||this;x.isTwoColumns=!0;x.hideOfferModules=!1;x.watchFeedBigThumbs=_.B("kevlar_watch_feed_big_thumbs");x.watchNextGridHideChips=_.B("kevlar_watch_grid_hide_chips");x.eligibleToSwitchToGrid=_.B("web_watch_eligible_to_switch_to_grid");x.disableShortsShelfHeightOverride=_.B("web_shorts_wn_shelf_ratio_tuning");x.isWatchNextGrid=!1;x.reuseComponents=!_.B("kevlar_watch_grid");x.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return x};
_.m(rf,_.n);_.a=rf.prototype;
_.a.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:!_.B("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}}};
_.a.getItemsPath=function(){return"data.results"};
_.a.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.a.created=function(){this.ytLazyListBehavior.initialCount=1};
_.a.ready=function(){_.K7(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%"})};
_.a.resultsChanged=function(){if(this.data&&this.data.results){for(var x=this.data.results,G=null,D=null,K=0;K<x.length;K++)x[K].relatedChipCloudRenderer?G=x[K].relatedChipCloudRenderer:x[K].itemSectionRenderer&&(D=x[K].itemSectionRenderer);if(G&&D)for(this.set("data.continuations",[]),x=_.Y(G.content,_.YqJ).chips,G=0;G<x.length;G++)if(K=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",x[G]),K.loadCached||!K.contents){K.contents=D.contents;break}}};
_.a.dataChanged=function(){var x=this,G;if((G=this.data)!=null&&G.results&&this.hasAllowedInstreamAd(this.playerData)){if(G=this.data.results.filter(function(W){return!!W.promotedSparklesWebRenderer})){for(var D=0;D<G.length;D++){var K=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",G[D]);
if(K)for(var z=0;z<K.length;z++)K[z]&&K[z].baseUrl&&_.ip(K[z].baseUrl)}this.set("data.results",this.data.results.filter(function(W){return!W.promotedSparklesWebRenderer}))}if(G=this.data.results.filter(function(W){return!!x.getSparklesAd(W)})){G=_.l(G);
for(z=G.next();!z.done;z=G.next())if(K=D=void 0,z=(D=this.getSparklesAd(z.value))==null?void 0:(K=D.errorCommand)==null?void 0:K.loggingUrls)for(D=_.l(z),K=D.next();!K.done;K=D.next())(K=K.value)&&K.baseUrl&&_.ip(K.baseUrl);var y,c;this.set("data.results",(y=this.data)==null?void 0:(c=y.results)==null?void 0:c.filter(function(W){return!W.adSlotRenderer}))}}};
_.a.getSparklesAd=function(x){var G,D;x=_.Y((G=x.adSlotRenderer)==null?void 0:(D=G.fulfillmentContent)==null?void 0:D.fulfilledLayout,_.wbh);return _.Y(x==null?void 0:x.renderingContent,N3T)};
_.a.hasAllowedInstreamAd=function(x){x=this.get("adPlacements",x)||[];for(var G=0;G<x.length;G++){var D=this.get("adPlacementRenderer.config.adPlacementConfig",x[G]);if(D&&D.suppressDisplayAd)return!0}return!1};
_.a.computeHideUnlimitedOfferModule=function(x,G){return x&&x.offerModule&&G&&x.offerModule.unlimitedOfferModuleRenderer&&x.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(G)?!0:!1};
_.a.hideUnlimitedOfferModuleChanged=function(){var x=_.kA(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");x&&(x.hidden=this.hideUnlimitedOfferModule)};
_.a.updateLockupContainerTypes=function(x){if(this.eligibleToSwitchToGrid){var G;(G=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||G.forEach(function(D){D.containerType=x})}};
_.a.computeHideTvfilmOfferModule=function(x,G){var D,K;return!!((x==null?0:(D=x.offerModule)==null?0:(K=D.tvfilmOfferModuleRenderer)==null?0:K.clientShouldSuppressIfCompanionAdDisplayed)&&G&&this.hasCompanionAds(G))};
_.a.hideTvfilmOfferModuleChanged=function(){var x=_.kA(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");x&&(x.hidden=this.hideTvfilmOfferModule)};
_.a.hasCompanionAds=function(x){x=this.get("adPlacements",x)||[];for(var G=0;G<x.length;G++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",x[G]))return!0;var D=void 0,K=void 0,z=void 0;if(!_.B("web_watch_top_banner_companion_check_killswitch")&&((D=x[G])==null?0:(K=D.adPlacementRenderer)==null?0:(z=K.renderer)==null?0:z.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.a.hasSuppressedResults=function(x){return x==null?!0:x.filter(function(G){return!G.continuationItemRenderer&&!G.compactPromotedVideoRenderer&&!G.promotedSparklesWebRenderer}).length===0};
_.a.computeShowButton=function(x,G){return this.isWatchNextGrid?x:x||this.hasSuppressedResults(G)};
_.a.showButtonChanged=function(){if(this.isWatchNextGrid){var x=_.kA(this.hostElement).querySelector("ytd-rich-grid-renderer");x&&this.showButton!==null&&(x.continuationShowButton=this.showButton)}else{x=_.kA(this.hostElement).querySelector("yt-next-continuation");var G=_.kA(this.hostElement).querySelector("ytd-continuation-item-renderer"),D=_.kA(this.hostElement).querySelector("ytd-item-section-renderer");x&&(x.showButton=this.showButton);G&&(G.showButton=this.showButton);D&&(D.continuationShowButton=
this.showButton)}};
_.a.continuationTap=function(x){var G;if(((G=this.data)==null?void 0:G.continuations)!=null&&x.target.tagName==="TP-YT-PAPER-BUTTON")for(x=this.data.continuations,G=0;G<x.length;G++)x[G].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(x[G].nextContinuationData||{})};
_.a.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Xt("shown-items-changed",this.shownItems))};
_.Nq.Object.defineProperties(rf.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.shownItems)==null||!x.some(function(G){return!!G.lockupViewModel||G.compactVideoRenderer}))}}});
rf.prototype.shownItemsChangedForBinding=rf.prototype.shownItemsChangedForBinding;rf.prototype.showButtonChanged=rf.prototype.showButtonChanged;rf.prototype.hideTvfilmOfferModuleChanged=rf.prototype.hideTvfilmOfferModuleChanged;rf.prototype.updateLockupContainerTypes=rf.prototype.updateLockupContainerTypes;rf.prototype.hideUnlimitedOfferModuleChanged=rf.prototype.hideUnlimitedOfferModuleChanged;rf.prototype.dataChanged=rf.prototype.dataChanged;rf.prototype.resultsChanged=rf.prototype.resultsChanged;
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],rf.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],rf.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.fS.YtLazyListBehavior),_.N("design:type",Object)],rf.prototype,"ytLazyListBehavior",void 0);_.q([_.I(_.Xr.YtNextContinuationBehavior),_.N("design:type",Object)],rf.prototype,"ytNextContinuationBehavior",void 0);
_.q([_.I(_.Oh),_.N("design:type",Object)],rf.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],rf.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],rf.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],rf.prototype,"playerData",void 0);_.q([_.R({value:!0}),_.N("design:type",Boolean)],rf.prototype,"autoFill",void 0);_.q([_.R({value:60}),_.N("design:type",Number)],rf.prototype,"targetFramerate",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],rf.prototype,"isTwoColumns",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],rf.prototype,"hideOfferModules",void 0);_.q([_.R(),_.N("design:type",Object)],rf.prototype,"shownItems",void 0);_.q([_.R({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.N("design:type",Boolean)],rf.prototype,"hideUnlimitedOfferModule",void 0);
_.q([_.R({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.N("design:type",Boolean)],rf.prototype,"hideTvfilmOfferModule",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],rf.prototype,"watchFeedBigThumbs",void 0);_.q([_.R(),_.N("design:type",Object)],rf.prototype,"watchNextGridHideChips",void 0);_.q([_.R(),_.N("design:type",Object)],rf.prototype,"eligibleToSwitchToGrid",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],rf.prototype,"disableShortsShelfHeightOverride",void 0);_.q([_.R({selector:_.X4,reflectToAttribute:!0}),_.N("design:type",Object)],rf.prototype,"isGridViewEnabled",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],rf.prototype,"showMoreButton",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],rf.prototype,"isWatchNextGrid",void 0);
_.q([_.R({computed:"computeShowButton(showMoreButton, data.results)"}),_.N("design:type",Boolean)],rf.prototype,"showButton",void 0);_.q([_.Z6("data.results.*"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rf.prototype,"resultsChanged",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rf.prototype,"dataChanged",null);
_.q([_.yf("hideUnlimitedOfferModule"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rf.prototype,"hideUnlimitedOfferModuleChanged",null);_.q([_.U("isGridViewEnabled","containsLockups","data"),_.R({reflectToAttribute:!0}),_.N("design:type",Number),_.N("design:paramtypes",[])],rf.prototype,"lockupContainerType",null);
_.q([_.yf("lockupContainerType","data"),_.N("design:type",Function),_.N("design:paramtypes",[Number]),_.N("design:returntype")],rf.prototype,"updateLockupContainerTypes",null);_.q([_.yf("hideTvfilmOfferModule"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rf.prototype,"hideTvfilmOfferModuleChanged",null);_.q([_.yf("showButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rf.prototype,"showButtonChanged",null);
_.q([_.yf("shownItems"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rf.prototype,"shownItemsChangedForBinding",null);_.q([_.U("shownItems"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],rf.prototype,"containsLockups",null);
_.w(rf,"ytd-watch-next-secondary-results-renderer",function(){if(J8j===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);J8j=x}x=J8j;return x},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.sCO={};
_.sCO.YtdWatchBehavior=[_.h.YtRendererBehavior,_.nS.YtPlayerListenerBehavior,_.fF.YtRendererstamperBehavior,_.tG.YtActionHandlerBehavior,_.sW.YtPageBehavior,_.l9.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 _.Uo("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.B("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,value:function(){return _.B("full_bleed_single_column_default_player")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.Uo("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 _.B("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.B("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,
computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},squeezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"squeezebackChanged",computed:"computeSqueezeback(engagementPanelExpanded,liveChatPresentAndExpanded, playlistPanelExpanded, fullscreen, theater)"},
richItemMinWidth:{type:Number,value:function(){return _.Gz("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Gz("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!_.B("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.B("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 _.B("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.B("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.B("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.B("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.B("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.B("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.B("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isTwoColumns_)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.B("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.B("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.B("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.B("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.B("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.B("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 _.B("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.B("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 _.B("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 x={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:_.FU(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.FU(["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"||_.B("swa_prov_panels_ks")?x.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(x.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}},x.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return x},
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 x=this;this.watchController=void 0;this.pageDisposeJobs=[function(){x.showMetadataPlaceholder_()},
function(){_.B("web_watch_dont_clear_comments")||x.clearComments_()},
function(){x.clearPlayerAds_()},
function(){x.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;_.B("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.B("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.lsf(function(){return _.qs(x)},this.hostElement);
this.pageDisposeJobs.push(function(){x.youThereManager_.reset()});
_.B("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){x.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.Pe;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);this.playerEvents_.set("onAdStateChange",this.onAdStateChange_);this.playerEvents_.set("onStateChange",
this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=null;this.watchMetadata=void 0;_.B("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));_.B("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.ae(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(x){x&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:x}),x.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(x){_.B("kevlar_watch_flexy_theater_manager")&&(this.theater=x,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(x){!_.B("kevlar_watch_while_v2")&&!_.B("web_watch_pip")||x||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(x){this.active!==void 0&&(this.fullscreen=x,_.B("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(x){this.active!==void 0&&(_.h$(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.B("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.B("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(x>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(x){this.initCsi_();this.updatePageData_(x)},
updatePageData_:function(x){var G=this;if(x)if(this.data===x){this.onPageLoadWithSameData_();var D;(D=this.watchController)==null||D.setWatchNextResponse(this.data)}else this.data=x;this.playlist&&_.Hg({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Fs("nw");this.loading=!1;_.Bw(_.Fj,function(){G.initDclkstatus_();var K,z=((K=G.player)==null?void 0:K.getVideoData().cpn)||"";_.fnj(function(y,c){_.xh8(y,c,z)})})},
onPageLoadWithSameData_:function(){_.B("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 x=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!x);this.set("loadingData.playlistLoading",x&&x!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),x=this.watchNextSkeletonEl_.firstElementChild;x;)x.classList.remove("hidden"),x=x.nextElementSibling;if(_.B("kevlar_watch_frame0_loading_state")){var G,D,K;x=(G=this.loadingData)==null?void 0:(D=G.endpoint)==null?void 0:(K=D.watchEndpoint)==null?void 0:K.videoId;var z;x&&(z="https://i.ytimg.com/vi/"+x+"/frame0.jpg");_.kA(this.hostElement).querySelector("#player").style.backgroundImage=z?"url("+z+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var x=_.kA(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&x&&(x.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var G,D;(D=(G=this.watchMetadata).updateSentimentBarWidth)==
null||D.call(G);var K,z;(z=(K=this.watchMetadata).resize)==null||z.call(K)}_.B("kevlar_watch_frame0_loading_state")&&(_.kA(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(x){var G=_.kA(this.hostElement).querySelector(x);G?_.Py(G,!1):_.O9(new _.LL("Overscroll monitor not found for component: ",x))},
removeSplitScrollMouseTrap:function(x){var G=_.kA(this.hostElement).querySelector(x);G?_.Ef(G):_.O9(new _.LL("Disposal component for  overscroll monitoring not found: ",x))},
onLoadingChanged_:function(x){x?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(x){var G=this;x?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.Fj.addLowPriorityJob(function(){G.onWindowResized_(_.ZD(!0))})},
updateTheaterModeState_:function(x){if(!_.B("kevlar_watch_flexy_theater_manager")){x=x||this.fullWindowMode_;if(this.theater!==void 0||x)this.theater=x;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();x&&_.yqc()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation()},
updatePlayerLocation:function(){var x=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.B("external_fullscreen")&&this.fullscreen&&(x=!0);x=x?_.kA(this.hostElement).querySelector("#player-full-bleed-container"):_.kA(this.hostElement).querySelector("#player-container-inner");var G=this.getPlayerContainer(),D=_.B("kevlar_watch_while_v2")||_.B("web_watch_pip");G.parentElement!==x&&(D&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.qs(this).appendTo(x,
G),x.appendChild(_.kA(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var x=this;return _.T(function(G){if(G.nextAddress==1)return _.Z(G,_.Eo().resolve(_.O$).deactivate(),2);x.updatePlayerLocation();_.c5(G)})},
updateCinematicsLocation:function(){var x=this.getElement("CINEMATICS");if(x){var G=this.getCinematicsLocationContainer();x.parentElement!==G&&G.appendChild(x);var D;(D=this.watchController)==null||D.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.kA(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.kA(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(x,G){var D=document.documentElement.hasAttribute("dark"),K=D&&_.B("web_cinematic_theater_mode"),z=D&&_.B("web_cinematic_fullscreen");D=!D&&this.cinematicLightTheme;return x&&K||G&&z||(G||x)&&D},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var x=this,G;(G=this.watchController)==null||G.setWatchNextResponse(this.data);_.B("kevlar_watch_flexy_comments_manager")||this.initComments_();_.B("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.Eo().resolve(_.HG).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,_.B("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.Fj.addLowPriorityJob(function(){_.Gl(x.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.B("web_watch_start_chat_in_theater_mode")){var D,K,z;if((D=this.data)==null?0:(K=D.contents)==null?0:(z=K.twoColumnWatchNextResults)==null?0:z.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var y,c;((y=this.data)==null?0:(c=y.contents)==null?0:c.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(x){var G;(G=this.watchController)==null||G.setPlayerResponse(this.playerData);x&&x.playabilityStatus&&(G=this.isVideoPlayable_(x.playabilityStatus,this.getPlayerOverlays_(this.data)),x=this.isLiveStreamOffline_(x.playabilityStatus),G&&!x||_.w1(this,function(){_.Fs("pbu")}));
this.setPlayerAds_();_.Gl(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(x,G){if((_.B("kevlar_watch_while_v2")||_.B("web_watch_pip"))&&this.playerData&&G)return this.playerData.videoDetails},
watchPageActiveChanged_:function(x){_.wK().dispatch(_.jUx(this.active));x?this.activate_():this.deactivate_()},
attached:function(){var x=this;this.watchController=new _.nc(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.B("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var G=_.qs(this);_.B("kevlar_disable_prepare_player")||
G.preparePlayer();_.B("kevlar_watch_flexy_playlist_manager")||_.Eo().resolve(_.HG).setPlayer(G);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();G={"--ytd-watch-flexy-scrollbar-width":_.mO()+"px"};this.is==="ytd-watch-grid"&&(G["--ytd-watch-flexy-sidebar-width"]=_.vxC+"px",G["--ytd-watch-grid-horizontal-page-margins"]=_.OF+"px",G["--ytd-watch-grid-columns-top-margins"]=_.wJC+"px",G["--ytd-watch-grid-min-player-height-medium"]="360px");!_.Gz("kv_pl_mx_sz_ks")&&
_.Gz("kevlar_watch_max_player_width")&&(G["--ytd-watch-flexy-max-player-width-wide-screen"]=_.JP4+"px");_.Gz("kevlar_watch_flexy_metadata_height")&&(G["--ytd-watch-flexy-space-below-player"]=_.f3c+"px");this.safeUpdateStyles(G);_.B("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.ye(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return x.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.kA(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var x=_.mO(),G=_.XY+x,D=G;this.fixedPanels&&(G+=_.vxC);var K=657+x;x=1327+x;_.kA(this.hostElement).querySelector("#two-column-query").query="(min-width: "+G+"px)";_.kA(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(K+"px), (min-height: 630px) and (min-width: ")+(G+"px) and (max-width: ")+(x+"px)");_.kA(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(x+"px)");
_.kA(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+D+"px)"},
calculateCurrentPlayerSize_:function(){var x=_.kA(this.hostElement).querySelector("#miniplayer-bar").firstChild,G=this.squeezeback&&!_.B("web_watch_squeezeback_player_size_killswitch");return x&&x.active||this.theater||_.B("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||G||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.cu(NaN,NaN):_.wd(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.wd(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.kS(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var x=this;this.onWindowResized_(_.ZD());_.B("browse_skeleton_removal_on_watch_killswitch")||_.Uo("IS_SHELL_LOAD")&&_.KOY();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var G=_.qs(this);G.addEventListener("yt-player-updated",_.ae(this,this.onPlayerUpdated_));G.getPlayerPromise().then(function(D){x.playerApiReady_(D)});
_.B("kevlar_watch_flexy_playlist_manager")||(G=_.Eo().resolve(_.HG),_.B("kevlar_watch_observe_playlist_navigations_killswitch")&&G.addEventListener("yt-navigate",_.ae(this,this.onYtNavigate_)),G.setPlaylistComponent(_.kA(this.hostElement).querySelector("#playlist")),G.addEventListener("yt-playlist-data-updated",_.ae(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.Fj.addLowPriorityJob(function(){_.h$(x.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.qs(this).removeEventListener("yt-player-updated",_.ae(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.B("kevlar_watch_flexy_playlist_manager")){var x=_.Eo().resolve(_.HG);_.B("kevlar_watch_observe_playlist_navigations_killswitch")&&x.removeEventListener("yt-navigate",_.ae(this,this.onYtNavigate_));
x.cancelVideoSkip();x.removeEventListener("yt-playlist-data-updated",_.ae(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.B("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.h$(this.hostElement,"yt-autonav-pause-player",!1);x=_.t$();_.B("kevlar_exit_fullscreen_leaving_watch")&&x&&_.km(x)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(x){this.player&&this.player.updateVideoData({rvs:x.rvs})},
getPageContents:function(x){return x&&x.contents&&x.contents.twoColumnWatchNextResults&&x.contents.twoColumnWatchNextResults.results&&x.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(x){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",x)},
onRetrieveLocation_:function(x,G){G.hasComments?G.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):G.locationRetrieved("/related_ajax",void 0);x.stopPropagation()},
onSubscriptionChanged_:function(x,G){this.player&&(G?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.rt("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.kA(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.kA(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(x){this.player=x;this.setPlayerState(x.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.B("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.B("kevlar_unified_player")||_.B("kevlar_player_new_bootstrap_adoption"))&&_.wj()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(x,G){G=G===void 0?!0:G;_.t$()&&_.B("external_fullscreen")&&_.km(document.documentElement);this.theaterRequested_=x;G&&_.QR("wide",x?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.xO(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.h$(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(x){_.Xv(x,typeof this.player),this.player&&_.Xv(x,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var x;((x=this.player)==null?0:x.isFullscreen())?this.player.toggleFullscreen():_.xO(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(x,G){return this.loading?G:!!Object.keys(x).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(x){if(x){x=_.l(x);for(var G=x.next();!G.done;G=x.next())G=G.value,G.youThereRenderer&&_.W9Y(this.youThereManager_,G.youThereRenderer)}},
setPlaylistData_:function(x){return x||{}},
userEngagementConfigDataChanged_:function(x){if(x)if(x.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var G=this.youThereManager_;_.xq()<x.lowEngagementThresholdMs||_.QCk(G,!0)}else x.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.xO(this.hostElement,"yt-autonav-pause-user-engagement",[x])},
isPlayerUnavailable_:function(x,G,D){return!!x&&!this.isVideoPlayable_(x,D)&&!G},
getPlayerOverlays_:function(x){return(x==null?void 0:x.playerOverlays)||null},
isVideoPlayable_:function(x,G){if(!x)return!1;var D=x.status==="OK"||x.status==="LIVE_STREAM_OFFLINE",K=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",x)||this.get("errorScreen.ypcTrailerRenderer",x);x=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",x);var z;G=G==null?void 0:(z=G.playerOverlayRenderer)==null?void 0:z.gatedActionsOverlayRenderer;return!!D||!!K||!!x||!!G},
hasWatchNextResponseErrorRenderer:function(x){var G=this.getPageContents(x),D,K,z,y,c;return!(x==null?0:(D=x.contents)==null?0:(K=D.twoColumnWatchNextResults)==null?0:K.secondaryResults)&&!!((z=G[0])==null?0:(y=z.itemSectionRenderer)==null?0:(c=y.contents[0])==null?0:c.backgroundPromoRenderer)},
isLiveStreamOffline_:function(x){return x?x.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(x,G,D){var K=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",G),z=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];z=_.B("web_no_skip_video_on_verification_checks")?(x==null?void 0:x.status)&&z.includes(x.status):x&&x.status==="AGE_CHECK_REQUIRED";var y=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",x);y==void 0&&(y=!0);!D||this.isVideoPlayable_(x,this.getPlayerOverlays_(G))||
K||z||!y||_.Eo().resolve(_.HG).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.x8j()},
onPlayerFeedbackStartRequest_:function(x){_.xO(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:x}])},
onPlayerFeedbackArticleRequest_:function(x){_.xO(this.hostElement,"yt-help-dialog-requested",[x])},
onPlayerYpcContentRequest_:function(){var x,G,D,K,z,y,c,W,e=((x=this.data)==null?NaN:(G=x.contents)==null?NaN:(D=G.twoColumnWatchNextResults)==null?NaN:(K=D.secondaryResults)==null?NaN:(z=K.secondaryResults)==null?NaN:(y=z.offerModule)==null?NaN:(c=y.tvfilmOfferModuleRenderer)==null?NaN:(W=c.actionButtons)==null?NaN:W.length)-1;x=[".offerButton.buttonRenderer.",".actionButtons."+(e>=0?e:0)+".buttonRenderer."];G=_.l(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(D=G.next();!D.done;D=G.next())for(D=D.value,K=_.l(x),z=K.next();!z.done;z=K.next())if(z="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+D+z.value,z=this.get(z+"navigationEndpoint",this.data)||this.get(z+"serviceEndpoint",this.data)||this.get(z+"command",this.data)){_.lb(z,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(x){_.h$(this.hostElement,"yt-autonav-pause-player",x)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(x){x()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(x){switch(x){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(x){switch(x){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.h$(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(x)},
setPlayerState:function(x){_.wK().dispatch(_.olE(x))},
onPlayerSubscribe_:function(x){_.xO(this.hostElement,"yt-player-subscribe",[x])},
onPlayerUnsubscribe_:function(x){_.xO(this.hostElement,"yt-player-unsubscribe",[x])},
onPlayerAdYtShowToast_:function(x){_.xO(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:x.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(x){if(x)return x},
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(x){return!_.B("web_watch_move_summary_to_sd")&&!!x},
computeWatchMetadataRefresh:function(){return _.B("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.B("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var x,G,D,K;this.watchNextSecondaryResults=(x=this.data)==null?void 0:(G=x.contents)==null?void 0:(D=G.twoColumnWatchNextResults)==null?void 0:(K=D.secondaryResults)==null?void 0:K.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.B("swatcheroo_pbs_load_grid")&&!_.B("swatcheroo_provide_all_data_on_scheduled_job")){_.Fj.cancelJob(this.setRichGridJobId_);var x,G,D,K,z,y,c;this.setRichGridRendererData((x=this.data)==null?void 0:(G=x.contents)==null?void 0:(D=G.twoColumnWatchNextResults)==null?void 0:(K=D.secondaryResults)==null?void 0:(z=K.secondaryResults)==null?void 0:(y=z.results)==null?void 0:(c=y[0])==null?
void 0:c.richGridRenderer)}},
setRichGridRendererData:function(x){this.richGridRendererData=x},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var x,G=(x=this.data)==null?void 0:x.engagementPanels;if(G==null?0:G.length){x=null;G=_.l(G);for(var D=G.next();!D.done;D=G.next()){D=D.value;var K=void 0;if(((K=D.engagementPanelSectionListRenderer)==null?void 0:K.targetId)==="engagement-panel-structured-description"){x=D;break}}var z,y,c;x=(z=x)==null?void 0:(y=z.engagementPanelSectionListRenderer)==null?void 0:(c=y.content)==null?void 0:c.structuredDescriptionContentRenderer;if(x==null?0:x.items){z=
[];y=_.l(x.items);for(c=y.next();!c.done;c=y.next()){c=c.value;if(!_.B("sd_horizontal_list_show_nav_killswitch")){var W=K=D=G=x=void 0,e=void 0,Q=(x=c.horizontalCardListRenderer)==null?void 0:(G=x.header)==null?void 0:(D=G.richListHeaderRenderer)==null?void 0:(K=D.navigationButton)==null?void 0:(W=K.buttonRenderer)==null?void 0:(e=W.command)==null?void 0:e.commandExecutorCommand;Q&&Q.commands&&(Q.commands=Q.commands.filter(function(p){return!_.Y(p,_.l3i)}))}c.expandableVideoDescriptionBodyRenderer||
c.videoDescriptionHeaderRenderer||z.push(c)}return{items:z}}}},
constructWarning_:function(x){return{text:_.gK(x),type:"WARNING"}},
isPlaShelfEnabled_:function(x){if((this.get("adPlacements",x)||[]).length)return!0;x=this.get("playerAds",x)||[];return!(!x.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",x[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var x=this;_.h$(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.B("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var G=this.getScrollTop()>0;this.gestures_&&(G?this.gestures_.detach():this.gestures_.attach());G!==this.showFullerscreenEdu_&&_.B("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=G,_.qs(this).getPlayerPromise().then(function(D){D.updateFullerscreenEduButtonVisibility(x.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.h$(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var x=this;this.commentsReady=!1;_.Fj.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Bw(_.Fj,function(){x.setComments_()},1E3)},
setComments_:function(){if(!_.B("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Fs("cmi");_.Fj.cancelJob(this.setCommentsJobId_);var x=this.getPageContents(this.data);if(x&&x.length){x=_.l(x);for(var G=x.next();!G.done;G=x.next())if(G=G.value,this.get("itemSectionRenderer.sectionIdentifier",G)==="comment-item-section"){this.comments=G.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.h$(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.B("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.B("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Fs("cmc")},
doRemoveComments_:function(){this.comments={};_.B("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.Fj.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.Fj.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(x,G){var D=_.Y(G.endpoint,_.d5);D&&(!(G=this.get("data.currentVideoEndpoint.watchEndpoint"))||D.videoId!==G.videoId||D.playlistId&&D.playlistId!==G.playlistId||D.index!==void 0&&D.index!==G.index||typeof D.startTimeSeconds!=="number"||(x.stopPropagation(),this.setScrollTop(0),_.qs(this).getPlayerPromise().then(function(K){var z=D.startTimeSeconds;K.seekTo(z);K.wakeUpControls();z<K.getDuration()&&K.playVideo()})))},
updatePlayerStartTime_:function(){var x=_.iYY();"t"in x&&(x=_.hNf(x.t),this.player.seekTo(x,!0))},
updateTitleFromWatchNext:function(x){x=this.getPageContents(x);var G,D;(x=_.u7(x==null?void 0:(G=x[0])==null?void 0:(D=G.videoPrimaryInfoRenderer)==null?void 0:D.title))&&_.h$(this.hostElement,"yt-update-title",x)},
updateTitle_:function(x){x=this.get("videoDetails.title",x)||"";_.h$(this.hostElement,"yt-update-title",x)},
syncWithRemoteVideo_:function(x,G,D){if(this.active&&this.player){var K=this.player.getVideoData();if(K.video_id===D&&(D=K.list,_.B("polymer_enable_mdx_queue")&&D&&D.startsWith("RQ")&&(D=void 0),K.video_id!==x||D!=G)){var z;_.B("kevlar_player_watch_endpoint_navigation")?z=_.m$E(_.tdj(x,G)):z=this.buildWatchEndpoint_(x,G);_.h$(this.hostElement,"yt-navigate",{endpoint:z,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(x,G,D){return _.fW(x,G,D)},
initDclkstatus_:function(){_.E66()},
attachWatchPageSkeleton_:function(){var x=document.querySelector("#watch-page-skeleton");if(x){var G=x.querySelector("#primary-info"),D=x.querySelector("#secondary-info"),K=x.querySelector("#related");G&&_.kA(this.hostElement).querySelector("#info-skeleton").appendChild(G);D&&_.kA(this.hostElement).querySelector("#meta-skeleton").appendChild(D);K&&(_.kA(this.hostElement).querySelector("#related-skeleton").appendChild(K),this.watchNextSkeletonEl_=K);_.VF(x)}},
handlePlayerUpdated_:function(){_.qs(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(x,G){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof G!=="undefined"){var D=this.watchNextSkeletonEl_.children,K=x&&x.indexSplices.length?x.indexSplices[0].index:0;x=Math.min(this.watchNextShownItems.length,D.length);G||(K=0,x=D.length);for(G=K;G<x;G++)D[G].classList.add("hidden")}},
onPlayerFullscreenChange_:function(x){_.B("external_fullscreen")||_.xO(this.hostElement,"yt-player-fullscreen",[x.fullscreen])},
onFullscreenChange_:function(x){this.fullscreen=x;this.gestures_&&this.gestures_.update(this.fullscreen);var G=_.qs(this);G.getPlayerPromise().then(function(D){D.setFauxFullscreen(!!_.t$())});
this.updateFullBleedElementLocations();x&&(G.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(x,G){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!G},
computeIsDonationShelfCollapsed_:function(x){return x},
computeShouldShowMerchShelf:function(x,G){return G&&!!x},
computeResponseHasComments:function(x){var G,D,K,z,y;return!!(x==null?0:(G=x.contents)==null?0:(D=G.twoColumnWatchNextResults)==null?0:(K=D.results)==null?0:(z=K.results)==null?0:(y=z.contents)==null?0:y.some(function(c){var W;return(c==null?void 0:(W=c.itemSectionRenderer)==null?void 0:W.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(x,G,D,K){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&K?!1:!!x&&!!Object.keys(x).length&&!G},
identity:_.gn,onWindowResized_:function(x){this.windowSize_=x;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.B("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(x){var G=this;x&&x.type!=="dataloaded"&&x.type!=="dataupdated"||_.qs(this).getPlayerPromise().then(function(D){var K=D.getPlayerState();K!==5&&K!==0&&(D=1/D.getVideoAspectRatio(),G.videoHeightToWidthRatio_!==D&&(G.videoHeightToWidthRatio_=D))})},
schedulePlayerSizeUpdate_:function(x){var G=this,D=_.B("kevlar_watch_while_v2")||_.B("web_watch_pip"),K=function(){if(G.watchMetadata){var z,y;(y=(z=G.watchMetadata).resize)==null||y.call(z)}_.qs(G).getPlayerPromise().then(function(c){if(_.B("kevlar_set_internal_player_size")){if(!D||!G.isMiniplayerActive()){var W=G.calculateCurrentPlayerSize_();c.setInternalSize(W.width,W.height)}}else c.setSize(NaN,NaN);_.B("kevlar_watch_while")&&G.updateWatchWhileScrollThreshold_()})};
x?K():_.Vs(_.Fj,K)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(x){this.set("data.survey",x.detail)},
onYtShowSurveyCommand_:function(x){this.set("data.survey",_.Y(x,_.ysC).survey)},
onDownloadedVideoDeleted:function(x){var G=this,D,K;return _.T(function(z){if(z.nextAddress==1){if(!G.active||(D=G.playerData)==null||!D.offlineState||G.videoId!==x)return z.return();(K=G.player)==null||K.stopVideo();_.or().navigatingAwayFromWatchDeletedVideo=!0;_.lb(_.edE,G.hostElement);return _.Z(z,_.or().navigationFinishPromise,2)}_.or().navigatingAwayFromWatchDeletedVideo=!1;_.c5(z)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var x;this.theater?x=_.$1(.5625*this.windowSize_.width,480,this.windowSize_.height-185):x=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==x&&(this.watchWhileScrollThreshold_=x,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var x=_.kA(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&x){var G=this.windowSize_.height>=624,D=this.active?this.getScrollTop():0;!x.active&&G&&D>=this.watchWhileScrollThreshold_?(x.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):x.active&&(!G||D<this.watchWhileScrollThreshold_&&!_.t$())&&(x.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var x=_.kA(this.hostElement).querySelector("#secondary-inner");if(x){var G=_.kA(this.hostElement).querySelector("#below"),D=_.kA(this.hostElement).querySelector("#secondary"),K=_.kA(this.hostElement).querySelector("#comments");K&&D&&G&&(this.defaultTwoColumnLayout?(x.appendChild(K),D.appendChild(x)):(G.appendChild(K),_.ja(G,x)))}}},
isTwoColumnsChanged_:function(x,G){if(x!==!0||G!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(x=_.kA(this.hostElement).querySelector("#secondary-inner"))){G=_.kA(this.hostElement).querySelector("#below");var D=_.kA(this.hostElement).querySelector("#secondary"),K=_.kA(this.hostElement).querySelector("#comments");K&&D&&G&&(this.isTwoColumns_?(x.appendChild(K),D.appendChild(x)):(G.appendChild(K),
_.ja(G,x)))}}else{x=!_.B("web_watch_enable_fs_squeezeback_panels")||!(this.fullscreen||this.iMaxTheaterMode&&this.theater);G=_.kA(this.hostElement).querySelector("#panels");var z=_.kA(this.hostElement).querySelector("#alerts");D=_.kA(this.hostElement).querySelector("#playlist");K=_.kA(this.hostElement).querySelector("#related");var y=_.kA(this.hostElement).querySelector("#donation-shelf"),c=_.kA(this.hostElement).querySelector("#comments");this.isTwoColumns_?(z=_.kA(this.hostElement).querySelector("#secondary-inner"),
x&&(z.appendChild(G),z.appendChild(D)),z.appendChild(y),z.appendChild(K)):(x&&(_.B_(G,z),_.B_(D,z)),_.B_(y,z),c&&_.B_(K,c));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.B("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.B("web_watch_enable_fs_squeezeback_panels")&&_.B("web_watch_theater_chat")){var x=_.kA(this.hostElement).querySelector("#chat-container"),G=this.theater&&!this.fullscreen||_.B("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&G?(G=_.kA(this.hostElement).querySelector("#columns"),(x==null?void 0:x.parentElement)!==G&&G.append(x),this.fixedPanels=!0):(this.fixedPanels=
!1,G=_.kA(this.hostElement).querySelector("#playlist"),x&&G?_.rg(x,G):_.O9(new _.LL("Missing element when updating chat location",{"chatContainer defined":!!x,"playlist defined":!!G})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(x,G){return _.B("sw_metadata_vis_toggle_ks")?!0:!!x||!!G},
computeForceDarkPanelTheme:function(x){return _.B("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&x:!1},
safeUpdateStyles:function(x){try{_.K7(this.hostElement,x)}catch(G){_.O9(G)}},
videoHeightToWidthRatioChanged_:function(x,G){G&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(x){this.videoHeightToWidthRatio_=1/x},
computeIsVerticalVideo_:function(x){return x>=1},
computeIsFourThreeToSixteenNineVideo_:function(x){return x<=.7501&&x>=.5624},
computeIsExtraWideVideo_:function(x){return x<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.qs(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.qs(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.p7i(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(x){var G=_.xt(x)||0;_.hi(x,G+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var x=_.xt("yt-fullerscreen-edu-button-click-count")||0,G=_.xt("yt-fullerscreen-edu-button-shown-count")||0,D=_.Gz("external_fullscreen_button_shown_threshold"),K=x>=_.Gz("external_fullscreen_button_click_threshold")||G>=D;_.qs(this).getPlayerPromise().then(function(z){z.updateFullerscreenEduButtonSubtleModeState(K)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(x,G){return G},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.Eo().resolve(_.HG).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var x=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.Fj.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.Fj.addLowPriorityJob(function(){x.fullHeightPanelPositionUpdateJobId=0;var G=_.kA(x.hostElement).querySelector("#secondary"),D=_.kA(x.hostElement).querySelector("#fixed-secondary");G=G.getBoundingClientRect();var K=G.width;x.swatcherooSqueezeback&&
(K+=_.OF);if(x.swatcherooSqueezeback){var z=_.kA(x.hostElement).querySelector("#squeezeback-constraining-container");z.style.width=K+"px";z.style.flex="0 0 "+K+"px"}D.style.width=K+"px";D.style.left=G.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var x=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.Fj.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.Fj.addLowPriorityJob(function(){x.panelMaxHeightUpdateJob_=0;var G;!x.isTwoColumns_||x.theater||x.fullscreen?G=460:G=x.calculateNormalPlayerSize_().height;var D=G+"px";_.B("live_chat_taller_height")&&!x.theater&&(D="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.B("live_chat_medium_height")&&!x.theater&&(D="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.B("live_chat_scaled_height")&&!x.theater&&(D="calc(100vh - var(--ytd-toolbar-height) - 238px)");x.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":G+"px","--ytd-watch-flexy-chat-max-height":D,"--ytd-watch-flexy-structured-description-max-height":G+"px","--ytd-watch-flexy-comments-panel-max-height":G+"px","--ytd-comments-engagement-panel-content-height":G+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(x){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",x)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.zl(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(x){var G=_.kA(this.hostElement).querySelector("#engagement-panel-scrim");x?G.addEventListener("tap",_.ae(this,this.onEngagementPanelScrimClick_)):G.removeEventListener("tap",_.ae(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(x){if(this.hostElement.contains(x)&&!this.scrollToAnimation_.isAnimating()){var G=x.offsetTop-24;x=x.offsetTop+x.offsetHeight+24;var D=this.getPageScrollingElement(),K=this.getScrollTop(),z=K+D.clientHeight-56;if(G<K+56)G-=56;else if(x>z)G=x-D.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,G),500)}},
onYtSignalActionScrollToComments:function(){var x=this.hostElement.querySelector("#comments");if(x&&!this.scrollToAnimation_.isAnimating()){x=x.offsetTop-56-24;if(_.B("kevlar_comment_teaser_scroll_to_midpoint")&&(x-=_.Tj().height/3,x<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,x),500)}},
onYtEngagementPanelVisibleChanged:function(x,G,D){if(this.active&&this.trackEngagementPanelVisibility&&!_.asY.includes(D)){if(G==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback)if(this.onSetPlaylistCollapsed(!0),_.Gl(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]),_.B("kevlar_single_panel_fullscreen")){var K=_.Eo().resolve(_.VT);this.visiblePanelIdentifiers_.forEach(function(z){z!==D&&K.hidePanel(z)})}this.visiblePanelIdentifiers_.add(D)}G!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&G!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(D);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(x){return x?"":"watch-active-metadata"},
computeNewMetadataClass:function(x){return x?"watch-active-metadata":""},
computeFullBleedPlayer:function(x,G,D){return x||G||this.enableFullBleedSingleColumnDefaultPlayer&&!D},
computeDefaultLayout:function(x){return!x},
computeDefaultTwoColumnLayout:function(x,G){return!x&&G},
updatePanelsLocation:function(){if(_.B("web_watch_enable_fs_squeezeback_panels")){var x=_.kA(this.hostElement).querySelector("#below"),G=_.kA(this.hostElement).querySelector("#panels"),D=_.kA(this.hostElement).querySelector("#playlist"),K=_.kA(this.hostElement).querySelector("#chat-container"),z=_.kA(this.hostElement).querySelector("#panels-full-bleed-container"),y=_.kA(this.hostElement).querySelector("#secondary-inner"),c=this.fullscreen||this.theater&&this.iMaxTheaterMode,W=this.theater&&!this.iMaxTheaterMode&&
this.liveChatPresentAndExpanded;this.fixedPanels=!1;c?(z.appendChild(G),z.appendChild(K),z.appendChild(D)):this.isTwoColumns_?(W?(x=_.kA(this.hostElement).querySelector("#columns"),(K==null?void 0:K.parentElement)!==x&&x.append(K),this.fixedPanels=!0):_.ja(y,K),_.ja(y,G),_.ja(y,D)):(x.appendChild(G),x.appendChild(K),x.appendChild(D))}},
swatcherooUpdatePanelsLocation:function(x,G,D,K,z,y){if(this.is==="ytd-watch-grid"){G=x&&!G;this.swatcherooSplitScroll&&(G?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));D=_.kA(this.hostElement).querySelector("#panels");var c=_.kA(this.hostElement).querySelector("#playlist"),W=_.kA(this.hostElement).querySelector("#fixed-secondary"),e=_.kA(this.hostElement).querySelector("#fixed-below"),
Q=_.kA(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),p=_.kA(this.hostElement).querySelector("#chat-container");y&&(x?W.appendChild(D):e.appendChild(D));z?x?W.appendChild(p):e.appendChild(p):_.rg(p,Q);K?x?W.appendChild(c):e.appendChild(c):_.rg(c,Q);this.swatcherooSplitScroll&&(x=_.kA(this.hostElement).querySelector("#secondary"),K=_.kA(this.hostElement).querySelector("#columns"),z=_.kA(this.hostElement).querySelector("#fixed-columns-secondary"),G?
z.appendChild(x):K.appendChild(x))}},
computeMetadataSkinnyMode:function(x,G,D){return this.is!=="ytd-watch-grid"?!1:x?D:G},
computeWatchWhilePanelsActive:function(x,G){return x||G},
computeNoBorderOnChat:function(x){return _.B("web_watch_theater_chat_no_border")&&x},
computeLiveChatPresentAndExpanded:function(x,G){return x&&!G},
computePanelExpanded:function(x,G,D){return x||G||D},
computeSqueezeback:function(x,G,D,K){if(_.B("web_watch_enable_fs_squeezeback_panels")){var z=this.iMaxTheaterMode&&this.theater;return(x||G||D)&&(K||z)}},
computeSwatcherooSqueezeback:function(x,G,D){return this.is!=="ytd-watch-grid"||_.B("ww_squeezeback_killswitch")?!1:x&&G&&D},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(x){_.qs(this).getPlayerPromise().then(function(G){var D;(D=G.changeMarkerVisibility)==null||D.call(G,_.Y(x,_.qm).isVisible||!1,_.Y(x,_.qm).entityKeys||[],_.Y(x,_.qm).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(x){this.liveChatCollapsed=x.detail;_.wK().dispatch(_.zw4(x.detail))},
onSetPlaylistCollapsed:function(x){_.B("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!x)},
provideRenderingData:function(x,G){switch(x){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=G;break;case "PRIMARY_INFO":_.B("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=G);this.videoPrimaryInfoRendererValue=G==null?void 0:G.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.B("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=G);this.videoSecondaryInfoRendererValue=G==null?void 0:G.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
G;break;case "CLARIFICATION":this.clarifyBoxValue=G;break;case "LIVE_CHAT":this.conversationBar=G;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=G;break;case "PLAYLIST":this.externalPlaylistData_=G!=null?G:{};break;case "MERCH_SHELF":this.merchShelfValue=G==null?void 0:G.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=G;break;case "TICKET_SHELF":this.ticket=G;break;case "OFFER_MODULE":this.offerModule=G;break;case "LIMITED_STATE":this.limitedStateValue=
G;break;case "DONATION_SHELF":this.donation=G;break;case "ALERTS":this.alertsValue=G;break;case "COMMENTS":this.comments=G;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=G;break;case "ENGAGEMENT_PANELS":this.engagementPanels=G;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=G;break;case "RICH_GRID_RENDERER":this.richGridRendererData=G;break;case "EXPANDABLE_METADATA":this.expandableMetadata=G;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
G}},
toggleCinematicsActive:function(x){this.cinematicsActive=x},
isMiniplayerActive:function(){return _.Eo().resolve(_.O$).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var zRi;_.KSc=function(x){return x.shorts.isShortsActive};
_.ayY=function(x){return x.findIndex(function(G){return zRi.indexOf(G.tagName)>-1})>-1};
_.oTj=function(x){return _.EO({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:x}})};
_.ymk=function(){var x=_.Eo().resolve(_.yb);_.UBd(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(x.isFullscreenEnabled()?_.km(document.documentElement):_.oJf(document.documentElement))};
zRi=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.JA=new Map;_.JA.set(32,59972);_.JA.set(27,50765);_.JA.set(70,60102);_.JA.set(76,60221);_.JA.set(77,60222);_.JA.set(74,60223);_.JA.set(84,60224);_.JA.set(38,61941);_.JA.set(40,61942);_.JA.set(73,62521);_.JA.set(67,62522);_.JA.set(80,63390);_.JA.set(78,63397);_.JA.set(75,59972);_.JA.set(188,63385);_.JA.set(190,63384);_.JA.set(36,63387);
_.JA.set(35,63386);_.JA.set(37,63388);_.JA.set(39,63389);_.JA.set(79,63423);_.JA.set(87,63424);_.JA.set(107,63426);_.JA.set(109,63425);_.JA.set(65,63428);_.JA.set(83,63430);_.JA.set(68,63429);_.JA.set(221,63431);_.JA.set(219,63432);_.JA.set(97,63439);_.JA.set(98,63440);_.JA.set(99,63441);_.JA.set(100,63442);_.JA.set(101,63443);_.JA.set(102,63444);_.JA.set(103,63445);_.JA.set(104,63446);_.JA.set(105,63447);_.fk=new Map;_.fk.set(80,63390);_.fk.set(78,63397);_.fk.set(188,63400);_.fk.set(190,63401);
_.fk.set(191,60765);_.fk.set(13,247917);_.tA=new Map;_.kU=new Map;
}catch(e){_._DumpException(e)}
try{
var y_b,TCb,WuY,eoc;_.Kuj=function(x){return x.ui.guideIsVisibleButNotPersistent};
_.zox=function(x){return x.ui.tabGesturesIsActive};
_.aBf=function(){var x=_.Db("service_worker_scope");try{return navigator.serviceWorker.getRegistration(x)}catch(G){return Promise.reject(G)}};
_.oY4=function(x){return!(!x||!x.pushManager)};
y_b=function(){return _.aBf().then(_.oY4).catch(function(){return!1})};
_.lBb=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?y_b():Promise.resolve(!1)};
_.c_Y=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
TCb=function(){var x,G,D;return _.T(function(K){switch(K.nextAddress){case 1:return _.Z(K,_.QM.getInstance(),2);case 2:x=K.yieldResult;if(!x){G=void 0;K.jumpTo(3);break}return _.Z(K,x.get("lmqf"),4);case 4:G=K.yieldResult;case 3:switch((D=G)||(D="SD"),D){case "HD":return K.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return K.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return K.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return K.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return K.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
WuY=function(x){var G,D,K;return _.T(function(z){if(z.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.B("disable_av1_setting")){var y=window.localStorage["yt-player-av1-pref"];y=y==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":y==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else y="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(G=x===y)return z.jumpTo(2);K=D=x;return _.Z(z,TCb(),3)}z.nextAddress!=2&&(G=K===z.yieldResult);return z.return(G)})};var Z9f;var Mrk=_.Zm.IronButtonState,QFc=(0,_.TI)(HTMLElement);
_.BD({_template:function(){if(Z9f!==void 0)return Z9f;var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu.tp.yt.paper.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" dynamic-align="[[dynamicAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" fit-into="[[fitInto]]" class="style-scope tp-yt-paper-dropdown-menu">\n  \n  <div class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu" slot="dropdown-trigger">\n    <tp-yt-paper-ripple class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-paper-ripple>\n    \n    <tp-yt-paper-input id="input" type="text" invalid="[[invalid]]" readonly="" disabled="[[disabled]]" value="[[value]]" placeholder="[[placeholder]]" error-message="[[errorMessage]]" always-float-label="[[alwaysFloatLabel]]" no-label-float="[[noLabelFloat]]" label="[[label]]" input-role="button" input-aria-haspopup="listbox" autocomplete="off" style-target="input" class="style-scope tp-yt-paper-dropdown-menu">\n      \n      \n      \n      \n      <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" suffix="" slot="suffix" aria-hidden="true" class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-iron-icon>\n    </tp-yt-paper-input>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu"></slot>\n</tp-yt-paper-menu-button>\n');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;eoc===void 0&&(eoc=document.createElement("template"));var K=eoc;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return Z9f=x},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[Mrk,_.Wp,_.M7,_.Va],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0},label:{type:String},placeholder:{type:String},errorMessage:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,dynamicAlign:{type:Boolean},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},fitInto:{type:Object}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(x){var G=(0,_.ZP)(this);G.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:x});G.shadowRoot.appendChild(x);return QFc.prototype._attachDom.call(this,x)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var x=this.contentElement;x&&x.selectedItem&&this._setSelectedItem(x.selectedItem)},
get contentElement(){for(var x=_.By(this.$.content).getDistributedNodes(),G=0,D=x.length;G<D;G++)if(x[G].nodeType===Node.ELEMENT_NODE)return x[G]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(x){this._setSelectedItem(x.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(x){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(x)===this&&this.open()},
_selectedItemChanged:function(x){var G="";x?G=x.label||x.getAttribute("label")||x.textContent.trim():G="";this.value=G;this._setSelectedItemLabel(G)},
_computeMenuVerticalOffset:function(x,G){return G?G:x?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var x=this.opened?"true":"false",G=this.contentElement;G&&G.setAttribute("aria-expanded",x)}});_.nP=new _.J("navigateAction");var pC8=new _.J("formRenderer");var iZ=function(){var x=_.WD.apply(this,arguments)||this;x.showInput=!1;return x};
_.m(iZ,_.WD);_.a=iZ.prototype;_.a.detached=function(){this.showInput&&window.removeEventListener("click",_.ae(this,this.closeOnOutsideClick_))};
_.a.stopPropagation_=function(x){this.showInput&&x.stopPropagation()};
_.a.closeOnOutsideClick_=function(x){this.closeOnOutsideClickCondition(x)&&(this.showInput=!1,window.removeEventListener("click",_.ae(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.a.closeOnOutsideClickCondition=function(){return!0};
_.a.closeOnOutsideClickHandler=function(){};
_.a.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.ae(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.a.openOnClickHandler=function(){};
_.a.showInputChanged=function(){};
_.a.setShowInput=function(x){this.showInput=x};
iZ.prototype.setShowInput=iZ.prototype.setShowInput;iZ.prototype.showInputChanged=iZ.prototype.showInputChanged;iZ.prototype.openOnClickHandler=iZ.prototype.openOnClickHandler;iZ.prototype.openOnClick_=iZ.prototype.openOnClick_;iZ.prototype.closeOnOutsideClickHandler=iZ.prototype.closeOnOutsideClickHandler;iZ.prototype.closeOnOutsideClickCondition=iZ.prototype.closeOnOutsideClickCondition;iZ.prototype.closeOnOutsideClick_=iZ.prototype.closeOnOutsideClick_;iZ.prototype.stopPropagation_=iZ.prototype.stopPropagation_;
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],iZ.prototype,"showInput",void 0);_.q([_.oe("click"),_.oe("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],iZ.prototype,"stopPropagation_",null);_.q([_.yf("showInput"),_.N("design:type",Function),_.N("design:paramtypes",[Boolean]),_.N("design:returntype")],iZ.prototype,"showInputChanged",null);iZ=_.q([_.e2()],iZ);_.Vrf=[iZ.prototype];var b9i;var Luc;var gL=function(){return _.n.apply(this,arguments)||this};
_.m(gL,_.n);_.a=gL.prototype;_.a.computePreselectedOption=function(x,G){return G===this.itemSelected_?x:void 0};
_.a.dataChanged_=function(){var x=this;this.preselectedSubreason=this.itemSelected_=-1;var G;(G=this.data)!=null&&G.key&&_.w1(this,function(){var D,K=Number((D=x.data)==null?void 0:D.key);!Number.isNaN(K)&&(x.itemSelected_=K,D=(D=(x.data.items||[])[K])&&D.optionSelectableItemRenderer&&D.optionSelectableItemRenderer.preselectedIndex)&&(x.preselectedSubreason=D)})};
_.a.isSubReasonHidden_=function(x,G){return x!=G};
_.a.onTopItemSelected_=function(x,G){for(var D=_.kA(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),K=0,z=D.length;K<z;K++)D[K].select(0);_.xO(this.hostElement,"yt-report-form-update",[G.item.value]);x.stopPropagation()};
_.a.onItemSelected_=function(x,G){_.xO(this.hostElement,"yt-report-form-update",[G.item.value]);x.stopPropagation()};
_.a.getItem_=function(x){return x.serviceItem?x.serviceItem:x.navigationItem?x.navigationItem:x.optionSelectableItemRenderer?x.optionSelectableItemRenderer:null};
_.a.computeText_=function(x){return(x=this.getItem_(x))?this.ytRendererBehavior.getSimpleString(x.text):null};
_.a.validate=function(){return this.itemSelected_!==-1};
_.a.computeAriaLabel_=function(x){var G=_.u7(x.text);(x=x.accessibility&&x.accessibility.accessibilityData&&x.accessibility.accessibilityData.label)&&(G+=". "+x);return G};
_.a.computeItemSelected_=function(x){return x};
_.a.preventSelection_=function(x){x.stopPropagation();this.tooltipTapped=!0};
_.a.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.a.updateItemSelectedFromBinding=function(x){this.itemSelected_=x.detail.value};
_.a.save=function(){var x;this.validate()&&(x=this.data)!=null&&x.items&&(x=this.data.items[this.itemSelected_],x!=null&&x.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(x.optionSelectableItemRenderer.submitEndpoint)||_.KW(this.hostElement,[x.optionSelectableItemRenderer.submitEndpoint])))};
gL.prototype.onPaperRippleTransitionEnd_=gL.prototype.onPaperRippleTransitionEnd_;gL.prototype.dataChanged_=gL.prototype.dataChanged_;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],gL.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],gL.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],gL.prototype,"data",void 0);_.q([_.R({value:-1}),_.N("design:type",Number)],gL.prototype,"itemSelected_",void 0);
_.q([_.R({computed:"computeItemSelected_(itemSelected_)"}),_.N("design:type",Number)],gL.prototype,"value",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],gL.prototype,"restoreFocusOnClose",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],gL.prototype,"tooltipTapped",void 0);_.q([_.R({value:-1}),_.N("design:type",Number)],gL.prototype,"preselectedSubreason",void 0);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],gL.prototype,"dataChanged_",null);_.q([_.oe("transitionend"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],gL.prototype,"onPaperRippleTransitionEnd_",null);gL=_.q([_.HD({is:"yt-options-renderer",disableElementRegistration:!0})],gL);
_.w(gL,"yt-options-renderer",function(){if(Luc===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;b9i===void 0&&(b9i=document.createElement("template"));var K=b9i;D.call(G,K.content.cloneNode(!0),x.content.firstChild);Luc=x}x=Luc;return x},{mode:2});var BCc;var r_j;var sF4;var Y2f;var mcb;var H9T;var uZ=function(){return _.n.apply(this,arguments)||this};
_.m(uZ,_.n);uZ.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
uZ.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
uZ.prototype.onTap=function(x){if(this.hostElement.classList.contains("selected")||_.Dq(this.hostElement,"yt-share-panel-can-select-contact-action"))x&&x.detail&&(x.detail.x||x.detail.y)&&_.kA(this.hostElement).querySelector("#target").blur(),(x=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),x={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:x?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.xO(this.hostElement,"yt-share-panel-select-contact-action",[x])};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],uZ.prototype,"ytRendererBehavior",void 0);_.q([_.R({observer:"onDataChanged"}),_.N("design:type",Object)],uZ.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.N("design:type",String)],uZ.prototype,"componentTitle",void 0);_.q([_.cD("#thumbnail"),_.N("design:type",Object)],uZ.prototype,"thumbnail",void 0);uZ=_.q([_.HD({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],uZ);
_.w(uZ,"yt-enrolled-contact-renderer",function(){if(H9T===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;mcb===void 0&&(mcb=document.createElement("template"));var K=mcb;D.call(G,K.content.cloneNode(!0),x.content.firstChild);H9T=x}x=H9T;return x},{mode:2});var $cC;var Fu4;var dL=function(){return _.n.apply(this,arguments)||this};
_.m(dL,_.n);dL.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
dL.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
dL.prototype.onTap=function(x){if(this.hostElement.classList.contains("selected")||_.Dq(this.hostElement,"yt-share-panel-can-select-contact-action"))x&&x.detail&&(x.detail.x||x.detail.y)&&_.kA(this.hostElement).querySelector("#target").blur(),(x=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),x={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:x?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.xO(this.hostElement,"yt-share-panel-select-contact-action",[x])};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],dL.prototype,"ytRendererBehavior",void 0);_.q([_.R({observer:"onDataChanged"}),_.N("design:type",Object)],dL.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.N("design:type",String)],dL.prototype,"componentTitle",void 0);_.q([_.cD("#thumbnail"),_.N("design:type",Object)],dL.prototype,"thumbnail",void 0);dL=_.q([_.HD({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],dL);
_.w(dL,"yt-suggested-contact-renderer",function(){if(Fu4===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;$cC===void 0&&($cC=document.createElement("template"));var K=$cC;D.call(G,K.content.cloneNode(!0),x.content.firstChild);Fu4=x}x=Fu4;return x},{mode:2});var wL=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-share-panel-reset-action":"onReset"};return x};
_.m(wL,_.n);wL.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"}}}}}};
wL.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.xO(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
wL.prototype.onReset=function(){for(var x=_.kA(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),G=x.length-1;G>=0;G--)x[G].classList.toggle("selected")};
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],wL.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],wL.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],wL.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R({observer:"onDataChanged"}),_.N("design:type",Object)],wL.prototype,"data",void 0);
wL=_.q([_.HD({is:"yt-contact-section-renderer",disableElementRegistration:!0})],wL);
_.w(wL,"yt-contact-section-renderer",function(){if(Y2f===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;sF4===void 0&&(sF4=document.createElement("template"));var K=sF4;D.call(G,K.content.cloneNode(!0),x.content.firstChild);Y2f=x}x=Y2f;return x},{mode:2});var qN=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return x};
_.m(qN,_.n);_.a=qN.prototype;_.a.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"}}}};
_.a.onYtRefreshFormCommand=function(x){var G;(x=_.Y((G=_.Y(x,_.q$8))==null?void 0:G.formRenderer,pC8))&&this.set("data",x)};
_.a.reset=function(){var x=_.kA(this.hostElement).querySelector("#fields").children;x=_.l(x);for(var G=x.next();!G.done;G=x.next())G=G.value,G.reset&&G.reset()};
_.a.getForm=function(){var x={},G=_.kA(this.hostElement).querySelector("#fields").children;G=_.l(G);for(var D=G.next();!D.done;D=G.next()){D=D.value;if(!D.validate())return null;x[D.data.key]=D.value}return x};
_.a.submitFormFields=function(){if(this.fields)for(var x=_.l(this.fields),G=x.next();!G.done;G=x.next())G=G.value,G.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?G.save():G.nodeName==="YT-OPTIONS-RENDERER"&&G.save()};
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],qN.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],qN.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],qN.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],qN.prototype,"data",void 0);_.q([_.Ta("#fields > *"),_.N("design:type",Array)],qN.prototype,"fields",void 0);
qN=_.q([_.HD({is:"yt-form-renderer",disableElementRegistration:!0})],qN);
_.w(qN,"yt-form-renderer",function(){if(r_j===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;BCc===void 0&&(BCc=document.createElement("template"));var K=BCc;D.call(G,K.content.cloneNode(!0),x.content.firstChild);r_j=x}x=r_j;return x},{mode:2});var CHO;var NN=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return x};
_.m(NN,_.n);NN.prototype.onCheckboxChange=function(x){this.data&&(x=(this.checked=_.uo(x).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.Eo().resolve(_.hm).resolveCommand(x,{form:{element:this.hostElement}})};
NN.prototype.handleUpdateCheckboxCommand=function(x){(x=_.Y(x,_.opZ))&&this.data&&this.data.id===x.id&&(this.set("data.disabled",x.disabled),this.set("data.title",x.title))};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],NN.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],NN.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],NN.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Boolean)],NN.prototype,"checked",void 0);NN=_.q([_.d({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],NN);
_.w(NN,"ytd-settings-checkbox-renderer",function(){if(CHO!==void 0)return CHO;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return CHO=x},{mode:1});var IBk;var vW=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return x};
_.m(vW,_.n);vW.prototype.dataChanged=function(){var x=this,G;return _.T(function(D){if(D.nextAddress==1)return x.radio.removeAttribute("checked"),!x.data||!x.data.id||x.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.c_Y()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(G=x.data&&x.data.id)?_.Z(D,WuY(x.data.id),4):D.jumpTo(3):(x.set("data.hidden",!0),D.jumpTo(0));D.nextAddress!=3&&(G=D.yieldResult);G&&_.xO(x.hostElement,"yt-select-settings-radio-option",[x.data.id]);_.c5(D)})};
vW.prototype.onButtonChanged=function(x){_.uo(x).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.Eo().resolve(_.hm).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.xO(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
vW.prototype.onSelectOption=function(x){this.data&&this.data.id&&(this.data.id===x?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
vW.prototype.dataChanged=vW.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],vW.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],vW.prototype,"ytActionHandlerBehavior",void 0);_.q([_.cD("#radio"),_.N("design:type",Object)],vW.prototype,"radio",void 0);_.q([_.R(),_.N("design:type",Object)],vW.prototype,"data",void 0);
_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],vW.prototype,"dataChanged",null);vW=_.q([_.d({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],vW);
_.w(vW,"ytd-settings-radio-option-renderer",function(){if(IBk!==void 0)return IBk;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return IBk=x},{mode:1});var jF4;var JT=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return x};
_.m(JT,_.n);
JT.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"}}}};
JT.prototype.handleUpdateTextCommand=function(x){(x=_.Y(x,_.yek))&&this.data&&this.data.id===x.id&&this.set("data",x)};
JT.prototype.handleUpdateConnectedAppRendererCommand=function(x){if(_.Y(x,_.TPZ)&&this.data){var G,D;if(x=(G=_.Y(x,_.TPZ))==null?void 0:(D=G.newConnectedAppRenderer)==null?void 0:D.connectedAppRenderer)this.data=x}};
JT.prototype.computeConnectedAppStyle=function(x){return x.style?x.style.toLowerCase().replace(/_/g,"-"):""};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],JT.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],JT.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],JT.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],JT.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.N("design:type",String)],JT.prototype,"connectedAppStyle",void 0);JT=_.q([_.d({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],JT);
_.w(JT,"ytd-connected-app-renderer",function(){if(jF4!==void 0)return jF4;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return jF4=x},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.OP("iuT5Oc");

_.Xk();
}catch(e){_._DumpException(e)}
try{
_.OP("L3n37");
var Isb=function(x){return x.watch.isLearningJourneyActive},jCO=_.BH(115994),Onf=_.BH(115993),X7f=function(x,G,D){var K=this;
var z=D.dragDownAction;this.layer=0;this.JSC$20488_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return K.dragDownAction()}}}};
this.JSC$20488_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return K.dragDownAction()}}}};
this.fullscreen=!1;var y=_.en();_.xP(y,jCO,this.layer);_.xP(y,Onf,this.layer);this.dragDownAction=function(){z();_.X8(y,{visualElement:K.fullscreen?jCO:Onf})};
this.gesture=new _.oU(x,G,this.JSC$20488_watchConfig,"pandown");this.attach()};
X7f.prototype.attach=function(){this.gesture.attach()};
X7f.prototype.detach=function(){this.gesture.detach()};
X7f.prototype.update=function(x){this.fullscreen=x;this.gesture.config=x?this.JSC$20488_watchFullScreenConfig:this.JSC$20488_watchConfig};var Asx=function(x){_.vQ.call(this);var G=this;this.rootElement=x;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return G.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(D){G.initOrDisposeActiveModules(D)}));
this.onAttached()};
_.m(Asx,_.vQ);_.a=Asx.prototype;_.a.getRoot=function(){return this.rootElement};
_.a.getElement=function(x){return this.rootElement.getElement(x)};
_.a.setPlayerResponse=function(x){this.playerResponse=x;this.publish("PLAYER_RESPONSE_UPDATED",x)};
_.a.getPlayerResponse=function(){return this.playerResponse};
_.a.setWatchNextResponse=function(x){this.watchNextResponse===x?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=x,this.publish("WATCH_NEXT_RESPONSE_UPDATED",x))};
_.a.getWatchNextResponse=function(){return this.watchNextResponse};
_.a.registerActionHandler=function(x,G){var D=this;if(_.B("web_watch_controller_reg_multiple_handlers_killswitch")){var K={};_.uV(_.gu.getInstance(),(K[x]=G,K),this.getRoot())}else this.actionHandlers.has(x)||(this.actionHandlers.set(x,[]),K={},_.uV(_.gu.getInstance(),(K[x]=function(){var z=_.rC.apply(0,arguments);return(D.actionHandlers.get(x)||[]).map(function(y){return y.apply(null,_.B5(z))})},K),this.getRoot())),this.actionHandlers.get(x).push(G)};
_.a.unregisterActionHandler=function(x){if(_.B("web_watch_controller_reg_multiple_handlers_killswitch")){var G={};_.du(_.gu.getInstance(),(G[x]=!0,G),this.getRoot())}else(G=this.actionHandlers.get(x))?(G.pop(),G.length===0&&(G={},_.du(_.gu.getInstance(),(G[x]=!0,G),this.getRoot()),this.actionHandlers.delete(x))):_.O9(new _.LL("Attempted to unregister an action handler which is not registered.",x))};
_.a.addPageDisposeJob=function(x){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.vL(this.rootElement.pageDisposeJobs,x)};
_.a.removePageDisposeJob=function(x){this.rootElement.pageDisposeJobs&&_.f$(this.rootElement.pageDisposeJobs,x)};
_.a.dispatchEvent=function(x,G){_.h$(this.rootElement,x,G)};
_.a.provideRenderingData=function(x,G){this.rootElement.provideRenderingData(x,G)};
_.a.scrollWatchTo=function(x,G){var D;(D=this.watchScrollManager)==null||D.scrollWatchTo(x,G)};
_.a.focusOnPlayer=function(){var x=this.getElement("PLAYER");_.w1(x,function(){if(x&&x.firstElementChild){var G=x.querySelector(".html5-video-player");G&&(_.NE(_.Eo().resolve(_.su)),G.focus())}else _.O9(Error("im"))})};
_.a.updateCinematicFullscreenConfig=function(){var x=!!this.rootElement.theater,G=!!this.rootElement.fullscreen,D;(D=this.watchCinematicManager)==null||_.IVc(D,G,x)};
_.a.subscribeToActiveChanged=function(x,G){G=G===void 0?!0:G;var D=_.la(_.wK(),Isb,function(K){x(K)});
G&&x(Isb(_.wK().getState()));return D};
_.a.isActive=function(){return Isb(_.wK().getState())};
_.a.onAttached=function(){var x=_.B("external_fullscreen");_.B("use_unified_flag_accessor")&&(x=_.Eo().resolve(_.cQO).retriever.getFlag(_.Q0h));(x||_.Uo("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.a.initPersistentModules=function(){if(_.B("kevlar_watch_flexy_theater_manager")){var x=new _.zTj(this);_.WZ(this,x)}x=new _.wMf(this);_.WZ(this,x);x=new _.F1(this);_.WZ(this,x);x=new _.UU(this);_.WZ(this,x);x=new _.Vdf(this);_.WZ(this,x);x=new _.I$(this);_.WZ(this,x);_.B("kevlar_watch_flexy_playlist_manager")&&(x=new _.Btk(this),_.WZ(this,x))};
_.a.initOrDisposeActiveModules=function(x){x?(this.watchScrollManager=new _.SN(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.KTk(this)),this.activeModules.push(new _.lWf(this)),this.activeModules.push(new _.$f6(this)),this.activeModules.push(new _.R$(this)),_.B("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.eLO(this)),this.activeModules.push(new _.cdC(this)),_.B("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.CcO(this)),
_.B("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.BIj(this)),_.B("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.Hp6(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.B("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.ZYT(this)),_.B("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.uMY(this)),x=_.B("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.B("kevlar_watch_flexy_comments_manager")&&!x&&this.activeModules.push(new _.RTO(this)),_.B("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Cc(this)),this.activeModules.push(new _.eTO(this)),this.activeModules.push(new _.ank(this)),_.B("web_enable_timely_actions")&&this.activeModules.push(new _.pMC(this)),_.B("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.iAc(this)),_.B("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.IWc(this)),
_.B("web_fullscreen_video_action_bar")&&this.activeModules.push(new _.pfT(this)),_.B("web_player_rtr_ctrls")&&this.activeModules.push(new _.uzC(this))):(_.Pu(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.a.disposeInternal=function(){_.vQ.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Nq.Object.defineProperties(Asx.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var U8Y={},Rwk=["learning-journey-engagement-panel","PAlearning_chat"];
U8Y.YtdLearningJourneyWatchBehavior=[_.h.YtRendererBehavior,_.nS.YtPlayerListenerBehavior,_.fF.YtRendererstamperBehavior,_.tG.YtActionHandlerBehavior,_.sW.YtPageBehavior,_.l9.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},
learningJourneyEngagementPanels:{type:Object,computed:"getLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},nonLearningJourneyEngagementPanels:{type:Object,computed:"getNonLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},clarifyBoxValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},
limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},
externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Uo("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.B("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 _.Uo("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 _.B("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.B("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.B("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
richItemMinWidth:{type:Number,value:function(){return _.Gz("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Gz("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.B("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.B("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 _.B("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.B("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.B("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.B("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.B("kevlar_watch_frame0_loading_state")}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return _.B("web_watch_rounded_player_medium")}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.B("web_watch_rounded_player_large")||_.B("watch_next_grid_round_player")}},
showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},trackEngagementPanelVisibility:{type:Boolean,
value:function(){return _.B("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.B("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.B("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 _.B("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.B("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 _.B("web_thumbnail_to_watch_transition")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);updateChatLocation(liveChatPresentAndExpanded);watchNextSecondaryResultsChanged(data)".split(";"),monitorScroll:!0,configureRendererStamper:function(){return{info:{id:"info-contents",
mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",
properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},
tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},
clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},
initialRenderPriority:3,waitForSignal:_.FU(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.FU(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var x=this;this.watchController=void 0;this.pageDisposeJobs=[function(){x.showMetadataPlaceholder_()},
function(){_.B("web_watch_dont_clear_comments")||x.clearComments_()},
function(){x.clearPlayerAds_()},
function(){x.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.B("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.B("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.lsf(function(){return _.qs(x)},this.hostElement);
this.pageDisposeJobs.push(function(){x.youThereManager_.reset()});
_.B("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){x.resetFullerscreenEduButtonForNewPlayback_()}));
_.B("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.Pe;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;_.B("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.B("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));_.B("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.ae(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(x){x&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:x}),x.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(x){_.B("kevlar_watch_flexy_theater_manager")&&(this.theater=x,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.B("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(x){!_.B("kevlar_watch_while_v2")&&!_.B("web_watch_pip")||x||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(x){this.active!==void 0&&(this.fullscreen=x,_.B("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(x){this.active!==void 0&&(_.h$(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.B("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.B("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(x>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(x){this.initCsi_();this.updatePageData_(x)},
updatePageData_:function(x){var G=this;if(x)if(this.data===x){this.onPageLoadWithSameData_();var D;(D=this.watchController)==null||D.setWatchNextResponse(this.data)}else this.data=x;this.playlist&&_.Hg({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Fs("nw");this.loading=!1;_.Bw(_.Fj,function(){G.initDclkstatus_();var K,z=((K=G.player)==null?void 0:K.getVideoData().cpn)||"";_.fnj(function(y,c){_.xh8(y,c,z)})})},
onPageLoadWithSameData_:function(){_.B("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 x=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!x);this.set("loadingData.playlistLoading",x&&x!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),x=this.watchNextSkeletonEl_.firstElementChild;x;)x.classList.remove("hidden"),x=x.nextElementSibling;if(_.B("kevlar_watch_frame0_loading_state")){var G,D,K;x=(G=this.loadingData)==null?void 0:(D=G.endpoint)==null?void 0:(K=D.watchEndpoint)==null?void 0:K.videoId;var z;x&&(z="https://i.ytimg.com/vi/"+x+"/frame0.jpg");_.kA(this.hostElement).querySelector("#player").style.backgroundImage=z?"url("+z+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var x=_.kA(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&x&&(x.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var G,D;(D=(G=this.watchMetadata).updateSentimentBarWidth)==
null||D.call(G);var K,z;(z=(K=this.watchMetadata).resize)==null||z.call(K)}_.B("kevlar_watch_frame0_loading_state")&&(_.kA(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(x){var G=_.kA(this.hostElement).querySelector(x);G?_.Py(G,!1):_.O9(new _.LL("Overscroll monitor not found for component: ",x))},
removeSplitScrollMouseTrap:function(x){var G=_.kA(this.hostElement).querySelector(x);G?_.Ef(G):_.O9(new _.LL("Disposal component for  overscroll monitoring not found: ",x))},
onLoadingChanged_:function(x){x?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(x){var G=this;x?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.Fj.addLowPriorityJob(function(){G.onWindowResized_(_.ZD(!0))})},
updateTheaterModeState_:function(x){if(!_.B("kevlar_watch_flexy_theater_manager")){x=x||this.fullWindowMode_;if(this.theater!==void 0||x)this.theater=x;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();x&&_.yqc()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var x=this.theater;_.B("external_fullscreen")&&this.fullscreen&&(x=!0);x=x?_.kA(this.hostElement).querySelector("#player-full-bleed-container"):_.kA(this.hostElement).querySelector("#player-container-inner");var G=this.getPlayerContainer(),D=_.B("kevlar_watch_while_v2")||_.B("web_watch_pip");G.parentElement!==x&&(D&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.qs(this).appendTo(x,G),x.appendChild(_.kA(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var x=this;return _.T(function(G){if(G.nextAddress==1)return _.Z(G,_.Eo().resolve(_.O$).deactivate(),2);x.updatePlayerLocation();_.c5(G)})},
updateCinematicsLocation:function(){var x=this.getElement("CINEMATICS");if(x){var G=this.getCinematicsLocationContainer();x.parentElement!==G&&G.appendChild(x);var D;(D=this.watchController)==null||D.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.kA(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.kA(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(x,G){var D=document.documentElement.hasAttribute("dark"),K=D&&_.B("web_cinematic_theater_mode"),z=D&&_.B("web_cinematic_fullscreen");D=!D&&this.cinematicLightTheme;return x&&K||G&&z||(G||x)&&D},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var x;(x=this.watchController)==null||x.setWatchNextResponse(this.data);_.B("kevlar_watch_flexy_comments_manager")||this.initComments_();_.B("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.Eo().resolve(_.HG).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.B("web_watch_start_chat_in_theater_mode")){var G,
D,K;if((G=this.data)==null?0:(D=G.contents)==null?0:(K=D.twoColumnWatchNextResults)==null?0:K.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var z,y;((z=this.data)==null?0:(y=z.contents)==null?0:y.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(x){var G;(G=this.watchController)==null||G.setPlayerResponse(this.playerData);x&&x.playabilityStatus&&(G=this.isVideoPlayable_(x.playabilityStatus,this.getPlayerOverlays_(this.data)),x=this.isLiveStreamOffline_(x.playabilityStatus),G&&!x||_.w1(this,function(){_.Fs("pbu")}));
this.setPlayerAds_();_.Gl(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(x){_.wK().dispatch(_.EO({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));x?this.activate_():this.deactivate_()},
attached:function(){var x=this;this.watchController=new Asx(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.B("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var G=_.qs(this);_.B("kevlar_disable_prepare_player")||G.preparePlayer();_.B("kevlar_watch_flexy_playlist_manager")||_.Eo().resolve(_.HG).setPlayer(G);this.updatePageMediaQueries();G={"--ytd-watch-flexy-scrollbar-width":_.mO()+
"px"};!_.Gz("kv_pl_mx_sz_ks")&&_.Gz("kevlar_watch_max_player_width")&&(G["--ytd-watch-flexy-max-player-width-wide-screen"]=_.JP4+"px");_.Gz("kevlar_watch_flexy_metadata_height")&&(G["--ytd-watch-flexy-space-below-player"]=_.f3c+"px");this.safeUpdateStyles(G);_.B("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new X7f(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return x.onPlayerTouchPanDown_()}}));
_.B("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.kA(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var x=_.mO(),G=_.XY+x,D=G;this.fixedPanels&&(G+=_.vxC);var K=657+x;x=1327+x;_.kA(this.hostElement).querySelector("#two-column-query").query="(min-width: "+G+"px)";_.kA(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(K+"px), (min-height: 630px) and (min-width: ")+(G+"px) and (max-width: ")+(x+"px)");_.kA(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(x+"px)");
_.kA(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+D+"px)"},
calculateCurrentPlayerSize_:function(){var x=_.kA(this.hostElement).querySelector("#miniplayer-bar").firstChild;return x&&x.active||this.theater||_.B("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.cu(NaN,NaN):_.wd(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.wd(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.kS(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var x=this;this.onWindowResized_(_.ZD());_.B("browse_skeleton_removal_on_watch_killswitch")||_.Uo("IS_SHELL_LOAD")&&_.KOY();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var G=_.qs(this);G.addEventListener("yt-player-updated",_.ae(this,this.onPlayerUpdated_));G.getPlayerPromise().then(function(D){x.playerApiReady_(D)});
_.B("kevlar_watch_flexy_playlist_manager")||(G=_.Eo().resolve(_.HG),_.B("kevlar_watch_observe_playlist_navigations_killswitch")&&G.addEventListener("yt-navigate",_.ae(this,this.onYtNavigate_)),G.setPlaylistComponent(_.kA(this.hostElement).querySelector("#playlist")),G.addEventListener("yt-playlist-data-updated",_.ae(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.Fj.addLowPriorityJob(function(){_.h$(x.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.qs(this).removeEventListener("yt-player-updated",_.ae(this,this.onPlayerUpdated_));if(!_.B("kevlar_watch_flexy_playlist_manager")){var x=_.Eo().resolve(_.HG);_.B("kevlar_watch_observe_playlist_navigations_killswitch")&&x.removeEventListener("yt-navigate",_.ae(this,this.onYtNavigate_));x.cancelVideoSkip();x.removeEventListener("yt-playlist-data-updated",_.ae(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.B("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.h$(this.hostElement,"yt-autonav-pause-player",!1);x=_.t$();_.B("kevlar_exit_fullscreen_leaving_watch")&&x&&_.km(x)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(x){this.player&&this.player.updateVideoData({rvs:x.rvs})},
getPageContents:function(x){return x&&x.contents&&x.contents.twoColumnWatchNextResults&&x.contents.twoColumnWatchNextResults.results&&x.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(x){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",x)},
onRetrieveLocation_:function(x,G){G.hasComments?G.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):G.locationRetrieved("/related_ajax",void 0);x.stopPropagation()},
onSubscriptionChanged_:function(x,G){this.player&&(G?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.rt("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.kA(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.kA(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(x){this.player=x;this.setPlayerState(x.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.B("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.B("kevlar_unified_player")||_.B("kevlar_player_new_bootstrap_adoption"))&&_.wj()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(x,G){G=G===void 0?!0:G;_.t$()&&_.B("external_fullscreen")&&_.km(document.documentElement);this.theaterRequested_=x;G&&_.QR("wide",x?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.B("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.xO(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.h$(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(x){_.Xv(x,typeof this.player),this.player&&_.Xv(x,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var x;((x=this.player)==null?0:x.isFullscreen())?this.player.toggleFullscreen():_.xO(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(x,G){return this.loading?G:!!Object.keys(x).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(x){if(x){x=_.l(x);for(var G=x.next();!G.done;G=x.next())G=G.value,G.youThereRenderer&&_.W9Y(this.youThereManager_,G.youThereRenderer)}},
setPlaylistData_:function(x){return x||{}},
userEngagementConfigDataChanged_:function(x){if(x)if(x.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var G=this.youThereManager_;_.xq()<x.lowEngagementThresholdMs||_.QCk(G,!0)}else x.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.xO(this.hostElement,"yt-autonav-pause-user-engagement",[x])},
isPlayerUnavailable_:function(x,G,D){return!!x&&!this.isVideoPlayable_(x,D)&&!G},
getPlayerOverlays_:function(x){return(x==null?void 0:x.playerOverlays)||null},
isVideoPlayable_:function(x,G){if(!x)return!1;var D=x.status==="OK"||x.status==="LIVE_STREAM_OFFLINE",K=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",x)||this.get("errorScreen.ypcTrailerRenderer",x);x=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",x);var z;G=G==null?void 0:(z=G.playerOverlayRenderer)==null?void 0:z.gatedActionsOverlayRenderer;return!!D||!!K||!!x||!!G},
hasWatchNextResponseErrorRenderer:function(x){var G=this.getPageContents(x),D,K,z,y,c;return!(x==null?0:(D=x.contents)==null?0:(K=D.twoColumnWatchNextResults)==null?0:K.secondaryResults)&&!!((z=G[0])==null?0:(y=z.itemSectionRenderer)==null?0:(c=y.contents[0])==null?0:c.backgroundPromoRenderer)},
isLiveStreamOffline_:function(x){return x?x.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(x,G,D){var K=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",G),z=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];z=_.B("web_no_skip_video_on_verification_checks")?(x==null?void 0:x.status)&&z.includes(x.status):x&&x.status==="AGE_CHECK_REQUIRED";var y=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",x);y==void 0&&(y=!0);!D||this.isVideoPlayable_(x,this.getPlayerOverlays_(G))||
K||z||!y||_.Eo().resolve(_.HG).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.x8j()},
onPlayerFeedbackStartRequest_:function(x){_.xO(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:x}])},
onPlayerFeedbackArticleRequest_:function(x){_.xO(this.hostElement,"yt-help-dialog-requested",[x])},
onPlayerYpcContentRequest_:function(){var x,G,D,K,z,y,c,W,e=((x=this.data)==null?NaN:(G=x.contents)==null?NaN:(D=G.twoColumnWatchNextResults)==null?NaN:(K=D.secondaryResults)==null?NaN:(z=K.secondaryResults)==null?NaN:(y=z.offerModule)==null?NaN:(c=y.tvfilmOfferModuleRenderer)==null?NaN:(W=c.actionButtons)==null?NaN:W.length)-1;x=[".offerButton.buttonRenderer.",".actionButtons."+(e>=0?e:0)+".buttonRenderer."];G=_.l(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(D=G.next();!D.done;D=G.next())for(D=D.value,K=_.l(x),z=K.next();!z.done;z=K.next())if(z="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+D+z.value,z=this.get(z+"navigationEndpoint",this.data)||this.get(z+"serviceEndpoint",this.data)||this.get(z+"command",this.data)){_.lb(z,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(x){_.h$(this.hostElement,"yt-autonav-pause-player",x)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(x){x()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(x){switch(x){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(x){switch(x){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.h$(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(x)},
setPlayerState:function(x){_.wK().dispatch(_.olE(x))},
onPlayerSubscribe_:function(x){_.xO(this.hostElement,"yt-player-subscribe",[x])},
onPlayerUnsubscribe_:function(x){_.xO(this.hostElement,"yt-player-unsubscribe",[x])},
onPlayerAdYtShowToast_:function(x){_.xO(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:x.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(x){if(x)return x},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(x){return!_.B("web_watch_move_summary_to_sd")&&!!x},
computeWatchMetadataRefresh:function(){return _.B("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var x,G,D,K;this.watchNextSecondaryResults=(x=this.data)==null?void 0:(G=x.contents)==null?void 0:(D=G.twoColumnWatchNextResults)==null?void 0:(K=D.secondaryResults)==null?void 0:K.secondaryResults}},
setRichGridRendererData:function(x){this.richGridRendererData=x},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var x,G=(x=this.data)==null?void 0:x.engagementPanels;if(G==null?0:G.length){x=null;G=_.l(G);for(var D=G.next();!D.done;D=G.next()){D=D.value;var K=void 0;if(((K=D.engagementPanelSectionListRenderer)==null?void 0:K.targetId)==="engagement-panel-structured-description"){x=D;break}}var z,y,c;x=(z=x)==null?void 0:(y=z.engagementPanelSectionListRenderer)==null?void 0:(c=y.content)==null?void 0:c.structuredDescriptionContentRenderer;if(x==null?0:x.items){z=
[];y=_.l(x.items);for(c=y.next();!c.done;c=y.next()){c=c.value;if(!_.B("sd_horizontal_list_show_nav_killswitch")){var W=K=D=G=x=void 0,e=void 0,Q=(x=c.horizontalCardListRenderer)==null?void 0:(G=x.header)==null?void 0:(D=G.richListHeaderRenderer)==null?void 0:(K=D.navigationButton)==null?void 0:(W=K.buttonRenderer)==null?void 0:(e=W.command)==null?void 0:e.commandExecutorCommand;Q&&Q.commands&&(Q.commands=Q.commands.filter(function(p){return!_.Y(p,_.l3i)}))}c.expandableVideoDescriptionBodyRenderer||
c.videoDescriptionHeaderRenderer||z.push(c)}return{items:z}}}},
constructWarning_:function(x){return{text:_.gK(x),type:"WARNING"}},
isPlaShelfEnabled_:function(x){if((this.get("adPlacements",x)||[]).length)return!0;x=this.get("playerAds",x)||[];return!(!x.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",x[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var x=this;_.h$(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.B("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var G=this.getScrollTop()>0;this.gestures_&&(G?this.gestures_.detach():this.gestures_.attach());G!==this.showFullerscreenEdu_&&_.B("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=G,_.qs(this).getPlayerPromise().then(function(D){D.updateFullerscreenEduButtonVisibility(x.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.h$(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var x=this;this.commentsReady=!1;_.Fj.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Bw(_.Fj,function(){x.setComments_()},1E3)},
setComments_:function(){if(!_.B("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Fs("cmi");_.Fj.cancelJob(this.setCommentsJobId_);var x=this.getPageContents(this.data);if(x&&x.length){x=_.l(x);for(var G=x.next();!G.done;G=x.next())if(G=G.value,this.get("itemSectionRenderer.sectionIdentifier",G)==="comment-item-section"){this.comments=G.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.h$(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.B("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.B("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Fs("cmc")},
doRemoveComments_:function(){this.comments={};_.B("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.Fj.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.Fj.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(x,G){var D=_.Y(G.endpoint,_.d5);D&&(!(G=this.get("data.currentVideoEndpoint.watchEndpoint"))||D.videoId!==G.videoId||D.playlistId&&D.playlistId!==G.playlistId||D.index!==void 0&&D.index!==G.index||typeof D.startTimeSeconds!=="number"||(x.stopPropagation(),this.setScrollTop(0),_.qs(this).getPlayerPromise().then(function(K){var z=D.startTimeSeconds;K.seekTo(z);K.wakeUpControls();z<K.getDuration()&&K.playVideo()})))},
updatePlayerStartTime_:function(){var x=_.iYY();"t"in x&&(x=_.hNf(x.t),this.player.seekTo(x,!0))},
updateTitleFromWatchNext:function(x){x=this.getPageContents(x);var G,D;(x=_.u7(x==null?void 0:(G=x[0])==null?void 0:(D=G.videoPrimaryInfoRenderer)==null?void 0:D.title))&&_.h$(this.hostElement,"yt-update-title",x)},
updateTitle_:function(x){x=this.get("videoDetails.title",x)||"";_.h$(this.hostElement,"yt-update-title",x)},
syncWithRemoteVideo_:function(x,G,D){if(this.active&&this.player){var K=this.player.getVideoData();if(K.video_id===D&&(D=K.list,_.B("polymer_enable_mdx_queue")&&D&&D.startsWith("RQ")&&(D=void 0),K.video_id!==x||D!=G)){var z;_.B("kevlar_player_watch_endpoint_navigation")?z=_.m$E(_.tdj(x,G)):z=this.buildWatchEndpoint_(x,G);_.h$(this.hostElement,"yt-navigate",{endpoint:z,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(x,G,D){return _.fW(x,G,D)},
initDclkstatus_:function(){_.E66()},
attachWatchPageSkeleton_:function(){var x=document.querySelector("#watch-page-skeleton");if(x){var G=x.querySelector("#primary-info"),D=x.querySelector("#secondary-info"),K=x.querySelector("#related");G&&_.kA(this.hostElement).querySelector("#info-skeleton").appendChild(G);D&&_.kA(this.hostElement).querySelector("#meta-skeleton").appendChild(D);K&&(_.kA(this.hostElement).querySelector("#related-skeleton").appendChild(K),this.watchNextSkeletonEl_=K);_.VF(x)}},
handlePlayerUpdated_:function(){_.qs(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(x,G){if(this.watchNextSkeletonEl_&&typeof G!=="undefined"){var D=this.watchNextSkeletonEl_.children,K=x&&x.indexSplices.length?x.indexSplices[0].index:0;x=Math.min(this.watchNextShownItems.length,D.length);G||(K=0,x=D.length);for(G=K;G<x;G++)D[G].classList.add("hidden")}},
onPlayerFullscreenChange_:function(x){_.B("external_fullscreen")||_.xO(this.hostElement,"yt-player-fullscreen",[x.fullscreen])},
onFullscreenChange_:function(x){this.fullscreen=x;this.gestures_&&this.gestures_.update(this.fullscreen);var G=_.qs(this);G.getPlayerPromise().then(function(D){D.setFauxFullscreen(!!_.t$())});
this.updateFullBleedElementLocations();x&&(G.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(x,G){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!G},
computeIsDonationShelfCollapsed_:function(x){return x},
computeShouldShowMerchShelf:function(x,G){return G&&!!x},
computeResponseHasComments:function(x){var G,D,K,z,y;return!!(x==null?0:(G=x.contents)==null?0:(D=G.twoColumnWatchNextResults)==null?0:(K=D.results)==null?0:(z=K.results)==null?0:(y=z.contents)==null?0:y.some(function(c){var W;return(c==null?void 0:(W=c.itemSectionRenderer)==null?void 0:W.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(x,G){this.responseHasComments=this.computeResponseHasComments(this.data);return!!x&&!!Object.keys(x).length&&!G},
identity:_.gn,onWindowResized_:function(x){this.windowSize_=x;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.B("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.B("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(x){var G=this;x&&x.type!=="dataloaded"&&x.type!=="dataupdated"||_.qs(this).getPlayerPromise().then(function(D){var K=D.getPlayerState();K!==5&&K!==0&&(D=1/D.getVideoAspectRatio(),G.videoHeightToWidthRatio_!==D&&(G.videoHeightToWidthRatio_=D))})},
schedulePlayerSizeUpdate_:function(x){var G=this,D=_.B("kevlar_watch_while_v2")||_.B("web_watch_pip"),K=function(){if(G.watchMetadata){var z,y;(y=(z=G.watchMetadata).resize)==null||y.call(z)}_.qs(G).getPlayerPromise().then(function(c){if(_.B("kevlar_set_internal_player_size")){if(!D||!G.isMiniplayerActive()){var W=G.calculateCurrentPlayerSize_();c.setInternalSize(W.width,W.height)}}else c.setSize(NaN,NaN);_.B("kevlar_watch_while")&&G.updateWatchWhileScrollThreshold_()})};
x?K():_.Vs(_.Fj,K)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(x){this.set("data.survey",x.detail)},
onYtShowSurveyCommand_:function(x){this.set("data.survey",_.Y(x,_.ysC).survey)},
onDownloadedVideoDeleted:function(x){var G=this,D,K;return _.T(function(z){if(z.nextAddress==1){if(!G.active||(D=G.playerData)==null||!D.offlineState||G.videoId!==x)return z.return();(K=G.player)==null||K.stopVideo();_.or().navigatingAwayFromWatchDeletedVideo=!0;_.lb(_.edE,G.hostElement);return _.Z(z,_.or().navigationFinishPromise,2)}_.or().navigatingAwayFromWatchDeletedVideo=!1;_.c5(z)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var x;this.theater?x=_.$1(.5625*this.windowSize_.width,480,this.windowSize_.height-185):x=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==x&&(this.watchWhileScrollThreshold_=x,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var x=_.kA(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&x){var G=this.windowSize_.height>=624,D=this.active?this.getScrollTop():0;!x.active&&G&&D>=this.watchWhileScrollThreshold_?(x.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):x.active&&(!G||D<this.watchWhileScrollThreshold_&&!_.t$())&&(x.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(x,G){if(x!==!0||G!==void 0){x=!_.B("live_chat_over_engagement_panels");G=_.kA(this.hostElement).querySelector("#chat-container");var D=_.kA(this.hostElement).querySelector("#plj-sidebar"),K=_.kA(this.hostElement).querySelector("#panels"),z=_.kA(this.hostElement).querySelector("#plj-panels"),y=_.kA(this.hostElement).querySelector("#plj-playlist"),c=_.kA(this.hostElement).querySelector("#alerts"),W=_.kA(this.hostElement).querySelector("#playlist"),e=_.kA(this.hostElement).querySelector("#related"),
Q=_.kA(this.hostElement).querySelector("#donation-shelf"),p=_.kA(this.hostElement).querySelector("#comments");this.isTwoColumns_?(c=_.kA(this.hostElement).querySelector("#secondary-inner"),c.appendChild(D),D.appendChild(y),y.appendChild(W),D.appendChild(z),x&&c.appendChild(K),_.B("web_watch_theater_chat")||c.appendChild(G),x||c.appendChild(K),c.appendChild(Q),c.appendChild(e)):(x&&_.B_(K,c),_.B_(W,c),_.B("web_watch_theater_chat")||_.B_(G,c),x||_.B_(K,c),_.B_(Q,c),p&&(z&&_.B_(z,p),_.B_(e,p)));_.B("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.B("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.B("web_watch_theater_chat")){var x=_.kA(this.hostElement).querySelector("#chat-container"),G=this.theater&&!this.fullscreen||_.B("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&G?_.B("web_watch_theater_chat_beside_player")?(G=_.kA(this.hostElement).querySelector("#panels-full-bleed-container"),(x==null?void 0:x.parentElement)!==G&&G.append(x),this.panelsBesidePlayer=!0):_.B("web_watch_theater_fixed_chat")&&
(G=_.kA(this.hostElement).querySelector("#columns"),(x==null?void 0:x.parentElement)!==G&&G.append(x),this.fixedPanels=!0):(_.B("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.B("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),G=_.kA(this.hostElement).querySelector("#playlist"),x&&G?_.rg(x,G):_.O9(new _.LL("Missing element when updating chat location",{"chatContainer defined":!!x,"playlist defined":!!G})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(x,G){return _.B("sw_metadata_vis_toggle_ks")?!0:!!x||!!G},
computeForceDarkPanelTheme:function(x){return _.B("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&x:!1},
safeUpdateStyles:function(x){try{_.K7(this.hostElement,x)}catch(G){_.O9(G)}},
videoHeightToWidthRatioChanged_:function(x,G){G&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.B("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(x){this.videoHeightToWidthRatio_=1/x},
computeIsVerticalVideo_:function(x){return x>=1},
computeIsFourThreeToSixteenNineVideo_:function(x){return x<=.7501&&x>=.5624},
computeIsExtraWideVideo_:function(x){return x<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.qs(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.qs(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.p7i(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(x){var G=_.xt(x)||0;_.hi(x,G+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var x=_.xt("yt-fullerscreen-edu-button-click-count")||0,G=_.xt("yt-fullerscreen-edu-button-shown-count")||0,D=_.Gz("external_fullscreen_button_shown_threshold"),K=x>=_.Gz("external_fullscreen_button_click_threshold")||G>=D;_.qs(this).getPlayerPromise().then(function(z){z.updateFullerscreenEduButtonSubtleModeState(K)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(x,G){return G},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.Eo().resolve(_.HG).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var x=this;this.panelMaxHeightUpdateJob_&&_.Fj.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.Fj.addLowPriorityJob(function(){x.panelMaxHeightUpdateJob_=0;var G;!x.isTwoColumns_||x.theater||x.fullscreen?G=460:G=x.calculateNormalPlayerSize_().height;var D=G+"px";_.B("live_chat_taller_height")&&!x.theater&&(D="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.B("live_chat_medium_height")&&
!x.theater&&(D="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.B("live_chat_scaled_height")&&!x.theater&&(D="calc(100vh - var(--ytd-toolbar-height) - 238px)");x.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":G+"px","--ytd-watch-flexy-chat-max-height":D,"--ytd-watch-flexy-structured-description-max-height":G+"px","--ytd-watch-flexy-comments-panel-max-height":G+"px","--ytd-comments-engagement-panel-content-height":G+"px"})})},
onYtShowEngagementPanelScrimAction_:function(x){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",x)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.zl(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(x){var G=_.kA(this.hostElement).querySelector("#engagement-panel-scrim");x?G.addEventListener("tap",_.ae(this,this.onEngagementPanelScrimClick_)):G.removeEventListener("tap",_.ae(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(x){if(this.hostElement.contains(x)&&!this.scrollToAnimation_.isAnimating()){var G=x.offsetTop-24;x=x.offsetTop+x.offsetHeight+24;var D=this.getPageScrollingElement(),K=this.getScrollTop(),z=K+D.clientHeight-56;if(G<K+56)G-=56;else if(x>z)G=x-D.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,G),500)}},
onYtSignalActionScrollToComments:function(){var x=this.hostElement.querySelector("#comments");if(x&&!this.scrollToAnimation_.isAnimating()){x=x.offsetTop-56-24;if(_.B("kevlar_comment_teaser_scroll_to_midpoint")&&(x-=_.Tj().height/3,x<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,x),500)}},
onYtEngagementPanelVisibleChanged:function(x,G,D){this.active&&this.trackEngagementPanelVisibility&&!_.asY.includes(D)&&(G==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(D),G!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&G!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(D),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(x){return x?"":"watch-active-metadata"},
computeNewMetadataClass:function(x){return x?"watch-active-metadata":""},
computeFullBleedPlayer:function(x,G){return x||G},
computeDefaultLayout:function(x){return!x},
computeDefaultTwoColumnLayout:function(x,G){return!x&&G},
computeWatchWhilePanelsActive:function(x,G){return x||G},
computeNoBorderOnChat:function(x){return _.B("web_watch_theater_chat_no_border")&&x},
computeLiveChatPresentAndExpanded:function(x,G){return x&&!G},
computePanelExpanded:function(x,G,D){return x||G||D},
onChangeMarkersVisibility:function(x){_.qs(this).getPlayerPromise().then(function(G){var D;(D=G.changeMarkerVisibility)==null||D.call(G,_.Y(x,_.qm).isVisible||!1,_.Y(x,_.qm).entityKeys||[],_.Y(x,_.qm).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(x){this.liveChatCollapsed=x.detail;_.wK().dispatch(_.zw4(x.detail))},
provideRenderingData:function(x,G){switch(x){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=G;break;case "PRIMARY_INFO":_.B("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=G);this.videoPrimaryInfoRendererValue=G==null?void 0:G.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.B("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=G);this.videoSecondaryInfoRendererValue=G==null?void 0:G.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
G;break;case "CLARIFICATION":this.clarifyBoxValue=G;break;case "LIVE_CHAT":this.conversationBar=G;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=G;break;case "PLAYLIST":this.externalPlaylistData_=G!=null?G:{};break;case "MERCH_SHELF":this.merchShelfValue=G==null?void 0:G.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=G;break;case "OFFER_MODULE":this.offerModule=G;break;case "LIMITED_STATE":this.limitedStateValue=G;break;case "DONATION_SHELF":this.donation=G;break;
case "ALERTS":this.alertsValue=G;break;case "COMMENTS":this.comments=G;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=G;break;case "ENGAGEMENT_PANELS":this.engagementPanels=G;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=G;break;case "RICH_GRID_RENDERER":this.richGridRendererData=G;break;case "EXPANDABLE_METADATA":this.expandableMetadata=G;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=G}},
toggleCinematicsActive:function(x){this.cinematicsActive=x},
isMiniplayerActive:function(){return _.Eo().resolve(_.O$).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(x){return Rwk.map(function(G){return x.find(function(D){var K;return(D==null?void 0:(K=D.engagementPanelSectionListRenderer)==null?void 0:K.targetId)===G})}).filter(function(G){return G!==void 0})},
getNonLearningJourneyEngagementPanels:function(x){return x.filter(function(G){var D;return!Rwk.includes((G==null?void 0:(D=G.engagementPanelSectionListRenderer)==null?void 0:D.targetId)||"")})}}];var S5i;var hb=function(){var x=_.n.apply(this,arguments)||this;x.flexy=!0;x.learningJourney=!0;x.roundedInfoPanel=!0;x.viewTransitionEnabled=_.B("enable_player_resize_transition");x.smallerChatMinHeight=_.B("live_chat_smaller_min_height");x.cinematicTheaterMode=_.B("web_cinematic_theater_mode");x.transparentTheaterMode=_.B("web_transparent_theater_mode");x.cinematicFullscreen=_.B("web_cinematic_fullscreen");x.useLargerMaxPlayerValue=_.B("kevlar_flexy_use_larger_player_value");x.cinematicFullscreenV2=_.B("web_cinematic_fullscreen_v2");
x.isDarkTheme=document.documentElement.hasAttribute("dark");x.theaterLargerPlayer=_.B("web_watch_theater_larger_player");x.defaultCollapsePlaylist=_.B("web_watch_default_collapse_playlist");return x};
_.m(hb,_.n);_.a=hb.prototype;_.a.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.a.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.a.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.a.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.a.ready=function(){var x=this,G=function(){x.onColumnScroll()};
this.primary.addEventListener("scroll",G);this.secondary.addEventListener("scroll",G)};
_.a.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.a.updateIsTwoColumnsFromBinding=function(x){_.B("web_watch_update_narrow_width_killswitch")||_.wK().dispatch(_.DQ4(!x.detail.value));this.ytdWatchBehavior.isTwoColumns_=x.detail.value};
_.a.updateFlexySmallWindowFromBinding=function(x){this.ytdWatchBehavior.flexySmallWindow_=x.detail.value};
_.a.updateFlexyLargeWindowFromBinding=function(x){this.ytdWatchBehavior.flexyLargeWindow_=x.detail.value};
_.a.updateWatchWhileWindowSizeSufficientFromBinding=function(x){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=x.detail.value};
_.a.updateWatchNextCanShowMoreFromBinding=function(x){this.ytdWatchBehavior.watchNextCanShowMore=x.detail.value};
_.a.updateShownItemsFromBinding=function(x){x.detail.path?this.set(x.detail.path,x.detail.value):this.ytdWatchBehavior.watchNextShownItems=x.detail.value};
_.a.getElement=function(x){switch(x){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20497_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20497_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Nq.Object.defineProperties(hb.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.data)==null||!x.pageVisualEffects)return!1;for(var G=0;G<this.data.pageVisualEffects.length;G++)if(x=_.Y(this.data.pageVisualEffects[G],_.bc))return G=void 0,(G=x.config)==null?void 0:G.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.learningJourneyEngagementPanels)==null?void 0:x.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var x,G=(x=this.learningJourneyEngagementPanels)==null?void 0:x.find(function(L){var r;return(L==null?void 0:(r=L.engagementPanelSectionListRenderer)==null?void 0:r.panelIdentifier)==="learning-journey-engagement-panel"});
if(G){var D,K,z,y,c,W,e,Q,p;if(x=(Q=((e=(c=((y=G==null?void 0:(D=G.engagementPanelSectionListRenderer)==null?void 0:(K=D.content)==null?void 0:(z=K.sectionListRenderer)==null?void 0:z.contents)!=null?y:[])[0])==null?void 0:(W=c.itemSectionRenderer)==null?void 0:W.contents)!=null?e:[])[0])==null?void 0:(p=Q.accordionViewModel)==null?void 0:p.onTitleTap){var V=_.jn(x);if(V)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.y2.instance.resolveCommand(V)}}}}}}});
_.Nq.Object.defineProperties(hb,{template:{configurable:!0,enumerable:!0,get:function(){if(S5i===void 0){var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="player" class="style-scope ytd-watch-learning-journey">\n        <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n          <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n              <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n              </ytd-player>\n            </div>\n          </div>\n          <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n            <yt-button-shape data="[[backButtonData]]" hidden="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n          </yt-button-shape></div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-learning-journey">\n        <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n          <div id="info" class="style-scope ytd-watch-learning-journey">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-learning-journey">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);S5i=x}x=S5i;return x}}});
hb.prototype.updateMiniplayerIsActiveValue=hb.prototype.updateMiniplayerIsActiveValue;hb.prototype.updateScrollTopValue=hb.prototype.updateScrollTopValue;hb.prototype.updateFullscreenValue=hb.prototype.updateFullscreenValue;hb.prototype.updateTheaterValue=hb.prototype.updateTheaterValue;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],hb.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],hb.prototype,"ytComponentBehavior",void 0);
_.q([_.I(U8Y.YtdLearningJourneyWatchBehavior),_.N("design:type",Object)],hb.prototype,"ytdWatchBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],hb.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],hb.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],hb.prototype,"playerData",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],hb.prototype,"flexy",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],hb.prototype,"learningJourney",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],hb.prototype,"roundedInfoPanel",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],hb.prototype,"viewTransitionEnabled",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],hb.prototype,"smallerChatMinHeight",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],hb.prototype,"cinematicTheaterMode",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],hb.prototype,"transparentTheaterMode",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],hb.prototype,"cinematicFullscreen",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],hb.prototype,"useLargerMaxPlayerValue",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],hb.prototype,"cinematicFullscreenV2",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],hb.prototype,"isDarkTheme",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],hb.prototype,"theaterLargerPlayer",void 0);_.q([_.R(),_.N("design:type",Object)],hb.prototype,"defaultCollapsePlaylist",void 0);_.q([_.R({selector:_.jU}),_.N("design:type",Object)],hb.prototype,"theaterValue",void 0);
_.q([_.R({selector:_.Og}),_.N("design:type",Object)],hb.prototype,"fullscreenValue",void 0);_.q([_.R({selector:_.sF}),_.N("design:type",Object)],hb.prototype,"scrollTopValue",void 0);_.q([_.R({selector:_.Hk}),_.N("design:type",Object)],hb.prototype,"miniplayerIsActiveValue",void 0);_.q([_.cD("#ytd-plj-player"),_.N("design:type",HTMLElement)],hb.prototype,"ytdPlayer",void 0);_.q([_.cD("#playlist"),_.N("design:type",HTMLElement)],hb.prototype,"JSC$20497_ytdPlaylistPanelRenderer",void 0);
_.q([_.Ne("ytd-comments"),_.N("design:type",HTMLElement)],hb.prototype,"ytdComments",void 0);_.q([_.cD("#primary"),_.N("design:type",HTMLElement)],hb.prototype,"primary",void 0);_.q([_.cD("#secondary"),_.N("design:type",HTMLElement)],hb.prototype,"secondary",void 0);_.q([_.cD("#player-container"),_.N("design:type",HTMLElement)],hb.prototype,"playerContainer",void 0);_.q([_.cD("#cinematics"),_.N("design:type",HTMLElement)],hb.prototype,"JSC$20497_cinematics",void 0);
_.q([_.yf("theaterValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hb.prototype,"updateTheaterValue",null);_.q([_.yf("fullscreenValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hb.prototype,"updateFullscreenValue",null);_.q([_.yf("scrollTopValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hb.prototype,"updateScrollTopValue",null);
_.q([_.yf("miniplayerIsActiveValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hb.prototype,"updateMiniplayerIsActiveValue",null);_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],hb.prototype,"cinematicLightTheme",null);_.q([_.R({reflectToAttribute:!0}),_.U("learningJourneyEngagementPanels"),_.N("design:type",Object),_.N("design:paramtypes",[])],hb.prototype,"hasLearningJourneyPanels",null);
_.q([_.U("learningJourneyEngagementPanels"),_.N("design:type",Object),_.N("design:paramtypes",[])],hb.prototype,"backButtonData",null);hb=_.q([_.d({is:"ytd-watch-learning-journey"})],hb);_.ti.registerService(_.jw3,hb);
_.Xk();
}catch(e){_._DumpException(e)}
try{
_.OP("Tm0L3c");
var m8f;var Hnb;var $8C=function(){return _.n.apply(this,arguments)||this};
_.m($8C,_.n);$8C=_.q([_.d({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],$8C);
_.w($8C,"ytd-ghost-comments-renderer",function(){if(Hnb===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);Hnb=x}x=Hnb;return x},{mode:1});var F9x;var Cwx=function(){return _.n.apply(this,arguments)||this};
_.m(Cwx,_.n);Cwx=_.q([_.d({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],Cwx);
_.w(Cwx,"ytd-ghost-watch-metadata-renderer",function(){if(F9x===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);F9x=x}x=F9x;return x},{mode:1});var EU=function(){var x=_.n.apply(this,arguments)||this;x.ghostGridRenderer={rows:6};x.roundedInfoPanel=!0;x.hideOfferModules=!0;x.smallerChatMinHeight=_.B("live_chat_smaller_min_height");x.cinematicTheaterMode=_.B("web_cinematic_theater_mode");x.transparentTheaterMode=_.B("web_transparent_theater_mode");x.darkerPanels=_.B("web_watch_darker_panels");x.cinematicFullscreen=_.B("web_cinematic_fullscreen");x.cinematicFullscreenV2=_.B("web_cinematic_fullscreen_v2");x.isDarkTheme=document.documentElement.hasAttribute("dark");
return x};
_.m(EU,_.n);_.a=EU.prototype;_.a.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.a.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.a.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.a.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.a.ready=function(){var x=this,G=function(){x.onColumnScroll()};
this.primary.addEventListener("scroll",G);this.secondary.addEventListener("scroll",G)};
_.a.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.a.updateIsTwoColumnsFromBinding=function(x){this.ytdWatchBehavior.isTwoColumns_=x.detail.value};
_.a.updateFlexySmallWindowFromBinding=function(x){this.ytdWatchBehavior.flexySmallWindow_=x.detail.value};
_.a.updateFlexyLargeWindowFromBinding=function(x){this.ytdWatchBehavior.flexyLargeWindow_=x.detail.value};
_.a.updateWatchWhileWindowSizeSufficientFromBinding=function(x){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=x.detail.value};
_.a.updateWatchNextCanShowMoreFromBinding=function(x){this.ytdWatchBehavior.watchNextCanShowMore=x.detail.value};
_.a.updateShownItemsFromBinding=function(x){_.B("swatcheroo_direct_use_rich_grid")||(x.detail.path?this.set(x.detail.path,x.detail.value):this.ytdWatchBehavior.watchNextShownItems=x.detail.value)};
_.a.getElement=function(x){switch(x){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20485_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20485_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Nq.Object.defineProperties(EU.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.data)==null||!x.pageVisualEffects)return!1;for(var G=0;G<this.data.pageVisualEffects.length;G++)if(x=_.Y(this.data.pageVisualEffects[G],_.bc))return G=void 0,(G=x.config)==null?void 0:G.enableInLightTheme;return!1}}});
EU.prototype.updateMiniplayerIsActiveValue=EU.prototype.updateMiniplayerIsActiveValue;EU.prototype.updateScrollTopValue=EU.prototype.updateScrollTopValue;EU.prototype.updateFullscreenValue=EU.prototype.updateFullscreenValue;EU.prototype.updateTheaterValue=EU.prototype.updateTheaterValue;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],EU.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],EU.prototype,"ytComponentBehavior",void 0);
_.q([_.I(_.sCO.YtdWatchBehavior),_.N("design:type",Object)],EU.prototype,"ytdWatchBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],EU.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],EU.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],EU.prototype,"ghostGridRenderer",void 0);_.q([_.R(),_.N("design:type",Object)],EU.prototype,"playerData",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],EU.prototype,"roundedInfoPanel",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],EU.prototype,"hideOfferModules",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],EU.prototype,"smallerChatMinHeight",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],EU.prototype,"cinematicTheaterMode",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],EU.prototype,"transparentTheaterMode",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],EU.prototype,"darkerPanels",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],EU.prototype,"cinematicFullscreen",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],EU.prototype,"cinematicFullscreenV2",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],EU.prototype,"isDarkTheme",void 0);_.q([_.R({selector:_.jU}),_.N("design:type",Object)],EU.prototype,"theaterValue",void 0);
_.q([_.R({selector:_.Og}),_.N("design:type",Object)],EU.prototype,"fullscreenValue",void 0);_.q([_.R({selector:_.sF}),_.N("design:type",Object)],EU.prototype,"scrollTopValue",void 0);_.q([_.R({selector:_.Hk}),_.N("design:type",Object)],EU.prototype,"miniplayerIsActiveValue",void 0);_.q([_.cD("#ytd-player"),_.N("design:type",HTMLElement)],EU.prototype,"ytdPlayer",void 0);_.q([_.cD("#playlist"),_.N("design:type",HTMLElement)],EU.prototype,"JSC$20485_ytdPlaylistPanelRenderer",void 0);
_.q([_.cD("#ytd-comments"),_.N("design:type",HTMLElement)],EU.prototype,"ytdComments",void 0);_.q([_.cD("#primary"),_.N("design:type",HTMLElement)],EU.prototype,"primary",void 0);_.q([_.cD("#secondary"),_.N("design:type",HTMLElement)],EU.prototype,"secondary",void 0);_.q([_.cD("#player-container"),_.N("design:type",HTMLElement)],EU.prototype,"playerContainer",void 0);_.q([_.cD("#cinematics"),_.N("design:type",HTMLElement)],EU.prototype,"JSC$20485_cinematics",void 0);
_.q([_.yf("theaterValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EU.prototype,"updateTheaterValue",null);_.q([_.yf("fullscreenValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EU.prototype,"updateFullscreenValue",null);_.q([_.yf("scrollTopValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EU.prototype,"updateScrollTopValue",null);
_.q([_.yf("miniplayerIsActiveValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EU.prototype,"updateMiniplayerIsActiveValue",null);_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],EU.prototype,"cinematicLightTheme",null);
_.w(EU,"ytd-watch-grid",function(){if(m8f===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);m8f=x}x=m8f;return x},{mode:2});_.ti.registerService(_.IVD,EU);
_.Xk();
}catch(e){_._DumpException(e)}
try{
_.OP("CF909");
var Y5Y;var Pr=function(){var x=_.n.apply(this,arguments)||this;x.flexy=!0;x.roundedInfoPanel=!0;x.viewTransitionEnabled=_.B("enable_player_resize_transition");x.smallerChatMinHeight=_.B("live_chat_smaller_min_height");x.cinematicTheaterMode=_.B("web_cinematic_theater_mode");x.transparentTheaterMode=_.B("web_transparent_theater_mode");x.cinematicFullscreen=_.B("web_cinematic_fullscreen");x.useLargerMaxPlayerValue=_.B("kevlar_flexy_use_larger_player_value");x.cinematicFullscreenV2=_.B("web_cinematic_fullscreen_v2");
x.isDarkTheme=document.documentElement.hasAttribute("dark");x.defaultCollapsePlaylist=_.B("web_watch_default_collapse_playlist");x.retroModeReduxValue=!1;return x};
_.m(Pr,_.n);_.a=Pr.prototype;_.a.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.a.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.a.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.a.updateRetroModeReduxValue=function(){_.B("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.a.ready=function(){var x=this,G=function(){x.onColumnScroll()};
this.primary.addEventListener("scroll",G);this.secondary.addEventListener("scroll",G)};
_.a.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.a.updateIsTwoColumnsFromBinding=function(x){_.B("web_watch_update_narrow_width_killswitch")||_.wK().dispatch(_.DQ4(!x.detail.value));this.ytdWatchBehavior.isTwoColumns_=x.detail.value};
_.a.updateFlexySmallWindowFromBinding=function(x){this.ytdWatchBehavior.flexySmallWindow_=x.detail.value};
_.a.updateFlexyLargeWindowFromBinding=function(x){this.ytdWatchBehavior.flexyLargeWindow_=x.detail.value};
_.a.updateWatchWhileWindowSizeSufficientFromBinding=function(x){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=x.detail.value};
_.a.updateWatchNextCanShowMoreFromBinding=function(x){this.ytdWatchBehavior.watchNextCanShowMore=x.detail.value};
_.a.updateShownItemsFromBinding=function(x){x.detail.path?this.set(x.detail.path,x.detail.value):this.ytdWatchBehavior.watchNextShownItems=x.detail.value};
_.a.getElement=function(x){switch(x){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20480_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20480_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Nq.Object.defineProperties(Pr.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.data)==null||!x.pageVisualEffects)return!1;for(var G=0;G<this.data.pageVisualEffects.length;G++)if(x=_.Y(this.data.pageVisualEffects[G],_.bc))return G=void 0,(G=x.config)==null?void 0:G.enableInLightTheme;return!1}}});
_.Nq.Object.defineProperties(Pr,{template:{configurable:!0,enumerable:!0,get:function(){if(Y5Y===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);Y5Y=x}x=Y5Y;return x}}});
Pr.prototype.updateRetroModeReduxValue=Pr.prototype.updateRetroModeReduxValue;Pr.prototype.updateScrollTopValue=Pr.prototype.updateScrollTopValue;Pr.prototype.updateFullscreenValue=Pr.prototype.updateFullscreenValue;Pr.prototype.updateTheaterValue=Pr.prototype.updateTheaterValue;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Pr.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Pr.prototype,"ytComponentBehavior",void 0);
_.q([_.I(_.sCO.YtdWatchBehavior),_.N("design:type",Object)],Pr.prototype,"ytdWatchBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],Pr.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Pr.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],Pr.prototype,"playerData",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Pr.prototype,"flexy",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Pr.prototype,"roundedInfoPanel",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Pr.prototype,"viewTransitionEnabled",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Pr.prototype,"smallerChatMinHeight",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Pr.prototype,"cinematicTheaterMode",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Pr.prototype,"transparentTheaterMode",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Pr.prototype,"cinematicFullscreen",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Pr.prototype,"useLargerMaxPlayerValue",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Pr.prototype,"cinematicFullscreenV2",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Pr.prototype,"isDarkTheme",void 0);_.q([_.R(),_.N("design:type",Object)],Pr.prototype,"defaultCollapsePlaylist",void 0);_.q([_.R({selector:_.jU}),_.N("design:type",Object)],Pr.prototype,"theaterValue",void 0);_.q([_.R({selector:_.Og}),_.N("design:type",Object)],Pr.prototype,"fullscreenValue",void 0);_.q([_.R({selector:_.sF}),_.N("design:type",Object)],Pr.prototype,"scrollTopValue",void 0);
_.q([_.R({selector:_.Hk}),_.N("design:type",Object)],Pr.prototype,"miniplayerIsActive",void 0);_.q([_.R({selector:function(x){return x.watch.isWatchRetroMode}}),
_.N("design:type",Object)],Pr.prototype,"retroModeReduxValue",void 0);_.q([_.Ne("ytd-player"),_.N("design:type",HTMLElement)],Pr.prototype,"ytdPlayer",void 0);_.q([_.cD("#playlist"),_.N("design:type",HTMLElement)],Pr.prototype,"JSC$20480_ytdPlaylistPanelRenderer",void 0);_.q([_.Ne("ytd-comments"),_.N("design:type",HTMLElement)],Pr.prototype,"ytdComments",void 0);_.q([_.cD("#primary"),_.N("design:type",HTMLElement)],Pr.prototype,"primary",void 0);
_.q([_.cD("#secondary"),_.N("design:type",HTMLElement)],Pr.prototype,"secondary",void 0);_.q([_.cD("#player-container"),_.N("design:type",HTMLElement)],Pr.prototype,"playerContainer",void 0);_.q([_.cD("#cinematics"),_.N("design:type",HTMLElement)],Pr.prototype,"JSC$20480_cinematics",void 0);_.q([_.yf("theaterValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pr.prototype,"updateTheaterValue",null);
_.q([_.yf("fullscreenValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pr.prototype,"updateFullscreenValue",null);_.q([_.yf("scrollTopValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pr.prototype,"updateScrollTopValue",null);_.q([_.yf("retroModeReduxValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pr.prototype,"updateRetroModeReduxValue",null);
_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Pr.prototype,"cinematicLightTheme",null);Pr=_.q([_.d({is:"ytd-watch-flexy"})],Pr);_.ti.registerService(_.Cef,Pr);
_.Xk();
}catch(e){_._DumpException(e)}
try{
_.OP("nmfa2d");
var n6O;var un=function(){var x=_.n.apply(this,arguments)||this;x.hidden=!1;x.errorScreen=null;x.playlistData={};return x};
_.m(un,_.n);_.a=un.prototype;_.a.getPlayer=function(){return this.ytdPlayer};
_.a.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:_.FU(["aa","eocs"])}}};
_.a.onActiveChanged=function(){_.wK().dispatch(_.jUx(this.ytPageBehavior.active))};
_.a.playerDataChanged=function(){var x;(x=this.watchController)==null||x.setPlayerResponse(this.playerData)};
_.a.dataChanged=function(){var x;(x=this.watchController)==null||x.setWatchNextResponse(this.data)};
_.a.sizeChanged=function(){var x,G;(G=(x=this.metadata).resize)==null||G.call(x)};
_.a.attached=function(){this.watchController=new _.nc(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.a.detached=function(){_.kS(this.watchController);this.watchController=void 0};
_.a.getPlayerContainer=function(){return this.playerContainer};
_.a.getElement=function(x){switch(x){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20432_playlistPanel}};
_.a.provideRenderingData=function(x,G){switch(x){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=G;break;case "ERROR_SCREEN":this.errorScreen=G!=null?G:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=G;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=G;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=G;break;case "RICH_METADATA":this.richMetadataRowContainer=G;break;case "CLARIFICATION":this.clarificationData=G;break;case "PLAYLIST":this.playlistData=
G!=null?G:{};break;case "MERCH_SHELF":this.merchShelf=G;break;case "TICKET_SHELF":this.ticketShelf=G;break;case "LIMITED_STATE":this.limitedState=G;break;case "DONATION_SHELF":this.donationShelf=G;break;case "ALERTS":this.alerts=G}};
_.Nq.Object.defineProperties(un.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var x,G,D;return!this.hidden&&!!((x=this.data)==null?0:(G=x.contents)==null?0:(D=G.twoColumnWatchNextResults)==null?0:D.conversationBar)}}});
un.prototype.sizeChanged=un.prototype.sizeChanged;un.prototype.dataChanged=un.prototype.dataChanged;un.prototype.playerDataChanged=un.prototype.playerDataChanged;un.prototype.onActiveChanged=un.prototype.onActiveChanged;_.q([_.I(_.sW.YtPageBehavior),_.N("design:type",Object)],un.prototype,"ytPageBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],un.prototype,"ytComponentBehavior",void 0);
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],un.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],un.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],un.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],un.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],un.prototype,"playerData",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],un.prototype,"hidden",void 0);_.q([_.cD("#ytd-player"),_.N("design:type",HTMLElement)],un.prototype,"ytdPlayer",void 0);_.q([_.cD("#player-container"),_.N("design:type",HTMLElement)],un.prototype,"playerContainer",void 0);_.q([_.cD("#metadata"),_.N("design:type",Object)],un.prototype,"metadata",void 0);_.q([_.cD("#playlist"),_.N("design:type",HTMLElement)],un.prototype,"JSC$20432_playlistPanel",void 0);
_.q([_.R({selector:_.W0c,reflectToAttribute:!0}),_.N("design:type",Object)],un.prototype,"fixie",void 0);_.q([_.R({selector:_.TFb,reflectToAttribute:!0}),_.N("design:type",Object)],un.prototype,"singleColumn",void 0);_.q([_.R({selector:function(x){return _.jU(x)&&!_.Og(x)},
reflectToAttribute:!0}),_.N("design:type",Object)],un.prototype,"theater",void 0);_.q([_.R({selector:_.Og,reflectToAttribute:!0}),_.N("design:type",Object)],un.prototype,"fullscreen",void 0);_.q([_.R({selector:_.InT}),_.N("design:type",Object)],un.prototype,"windowSize",void 0);_.q([_.R(),_.N("design:type",Object)],un.prototype,"singleColumnContents",void 0);_.q([_.R(),_.N("design:type",Object)],un.prototype,"errorScreen",void 0);_.q([_.R(),_.N("design:type",Object)],un.prototype,"playlistData",void 0);
_.q([_.R(),_.N("design:type",Object)],un.prototype,"videoPrimaryInfoRenderer",void 0);_.q([_.R(),_.N("design:type",Object)],un.prototype,"videoSecondaryInfoRenderer",void 0);_.q([_.R(),_.N("design:type",Object)],un.prototype,"richMetadataRowContainer",void 0);_.q([_.R(),_.N("design:type",Object)],un.prototype,"clarificationData",void 0);_.q([_.R(),_.N("design:type",Object)],un.prototype,"commentsEntryPointHeaderRenderer",void 0);_.q([_.R(),_.N("design:type",Object)],un.prototype,"ticketShelf",void 0);
_.q([_.R(),_.N("design:type",Object)],un.prototype,"merchShelf",void 0);_.q([_.R(),_.N("design:type",Object)],un.prototype,"donationShelf",void 0);_.q([_.R(),_.N("design:type",Object)],un.prototype,"limitedState",void 0);_.q([_.R(),_.N("design:type",Object)],un.prototype,"alerts",void 0);_.q([_.U("playlistData"),_.N("design:type",Object),_.N("design:paramtypes",[])],un.prototype,"hasPlaylistData",null);
_.q([_.U("data","hidden"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],un.prototype,"hasChat",null);_.q([_.yf("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],un.prototype,"onActiveChanged",null);_.q([_.yf("playerData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],un.prototype,"playerDataChanged",null);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],un.prototype,"dataChanged",null);_.q([_.yf("windowSize","singleColumn"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],un.prototype,"sizeChanged",null);
_.w(un,"ytd-watch-fixie",function(){if(n6O===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);n6O=x}x=n6O;return x},{mode:1});_.ti.registerService(_.FCL,un);
_.Xk();
}catch(e){_._DumpException(e)}
try{
_.OP("xwEKAe");
var c8f=function(x){var G=_.M5();if(G.getFlag(202))G=G.getFlag(201);else{var D;G=(x==null?void 0:(D=x.config)==null?void 0:D.settingOnByDefault)!==void 0?x.config.settingOnByDefault:!_.B("web_shorts_cinematics_disabled_by_default")}return G},T3O=function(x){var G=_.M5();
_.Qg(0,201,x);_.Qg(0,202,!0);G.save()},Wtb=function(x){return(x=_.hnf(x))?_.GqP(x):0},eYk=function(x){return x.shorts.isSmallScreenSqueezeback},Zab=function(x){return x.shorts.isPlaybackStarted},M4f=function(x,G,D,K){x=G-x;
D=K-D;return Math.sqrt(x*x+D*D)},Q1c=function(x,G){x&&_.Eo().resolve(_.hm).resolveCommand(x,{forceClickLogging:!0,
form:{element:G}})},pIi=function(x,G,D,K){x=G-x;
D=K-D;return Math.sqrt(x*x+D*D)},V4k=function(x,G){x&&_.Eo().resolve(_.hm).resolveCommand(x,{forceClickLogging:!0,
form:{element:G}})},baf=function(x){x.unsubscribeFromStore=_.la(x.storeWithShorts,_.KSc,function(G){x.initOrDisposeActiveModules(G);
!G&&x.storeWithShorts.getState().shorts.isFullscreen&&(_.km(document.documentElement),x.storeWithShorts.dispatch(_.oTj(!1)))});
x.initOrDisposeActiveModules(_.KSc(x.storeWithShorts.getState()))},Ltc=function(x){var G=_.Eo().resolve(_.yb);
G.rootElement=x;baf(G)},B3C=function(){return _.Eo().resolve(_.yb).dismissedIndices},r8f=function(x){return _.EO({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:x}})},s1b=function(x){return _.EO({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:x}})},Da=function(x){return _.EO({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:x}})},KD=function(x,G){if(x instanceof KD)this.array_=x.array_;
else{var D;if(D=_.PL(x))a:{for(var K=D=0;K<x.length;K++){if(!_.PL(x[K])||D>0&&x[K].length!=D){D=!1;break a}for(var z=0;z<x[K].length;z++)if(typeof x[K][z]!=="number"){D=!1;break a}D==0&&(D=x[K].length)}D=D!=0}if(D)this.array_=_.kC(x);else if(x instanceof _.cu)this.array_=YZc(x.height,x.width);else if(typeof x==="number"&&typeof G==="number"&&x>0&&G>0)this.array_=YZc(x,G);else throw Error("Wl");}this.size_=new _.cu(this.array_[0].length,this.array_.length)},mb4=function(x,G,D){for(var K=0;K<x.getSize().height;K++)for(var z=
0;z<x.getSize().width;z++)G.call(D,x.array_[K][z],K,z,x)},HaC=function(x,G){var D=new KD(x.getSize());
mb4(x,function(K,z,y){D.array_[z][y]=G.call(void 0,K,z,y,x)});
return D},YZc=function(x,G){for(var D=[],K=0;K<x;K++){D[K]=[];
for(var z=0;z<G;z++)D[K][z]=0}return D};
KD.prototype.add=function(x){if(!_.R38(this.size_,x.getSize()))throw Error("Xl");return HaC(this,function(G,D,K){return G+x.array_[D][K]})};
KD.prototype.equals=function(x,G){if(this.size_.width!=x.size_.width||this.size_.height!=x.size_.height)return!1;G=G||0;for(var D=0;D<this.size_.height;D++)for(var K=0;K<this.size_.width;K++)if(!_.Uxj(this.array_[D][K],x.array_[D][K],G))return!1;return!0};
KD.prototype.getSize=function(){return this.size_};
var zv=function(x,G,D){return G>=0&&G<x.size_.height&&D>=0&&D<x.size_.width?x.array_[G][D]:null};
KD.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var aa=function(x,G,D,K){if(!(G>=0&&G<x.size_.height&&D>=0&&D<x.size_.width))throw Error("Yl`"+G+"`"+D+"`"+x.size_.height+"`"+x.size_.width);x.array_[G][D]=K};
KD.prototype.multiply=function(x){if(x instanceof KD){if(this.size_.width!=x.getSize().height)throw Error("Zl");return $bY(this,x)}if(typeof x==="number")return FtO(this,x);throw Error("$l");};
var $bY=function(x,G){var D=new KD(x.size_.height,G.getSize().width);mb4(D,function(K,z,y){for(var c=K=0;c<this.size_.width;c++)K+=zv(this,z,c)*zv(G,c,y);aa(D,z,y,K)},x);
return D},FtO=function(x,G){return HaC(x,function(D){return D*G})};var CR6=new _.J("inlineSurveyRenderer");var IGc=new _.J("interstitialViewModel");var j16=new _.J("reelNavigateCommand");var Oaf=new _.J("reelNonVideoContentDismissalCommand");var XIY=new _.J("showReelsCommentsOverlayCommand");var A8x=new _.J("shortsSuggestedActionViewModel");var Ubf=new _.J("videoInteractionPopUpRenderer");var RYc;var SZc;var nvi;var oa=function(){var x=_.n.apply(this,arguments)||this;x.ctaVisualElement=null;x.currentCsn=null;return x};
_.m(oa,_.n);_.a=oa.prototype;_.a.onDataChanged=function(){this.maybeLogShows()};
_.a.computeButtonShape=function(){var x=this;if(this.data)return{buttonText:_.u7(this.data.text),state:"active",onTap:function(){x.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.a.maybeCreateCtaVe=function(){var x;if((x=this.data)!=null&&x.badgeInteractionLogging){var G;if(x=(G=this.data.badgeInteractionLogging)==null?void 0:G.trackingParams)this.ctaVisualElement=_.V2(x)}};
_.a.maybeLogClicks=function(){this.currentCsn=_.CC(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.u0(this.currentCsn,this.ctaVisualElement)};
_.a.maybeLogShows=function(){this.currentCsn=_.CC(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.i0(this.currentCsn,[this.ctaVisualElement])};
_.a.onTap=function(){var x;if((x=this.data)!=null&&x.onClickCommand){var G;this.ytComponentBehavior.resolveCommand((G=this.data)==null?void 0:G.onClickCommand);this.maybeLogClicks()}};
oa.prototype.onDataChanged=oa.prototype.onDataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],oa.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],oa.prototype,"ytComponentBehavior",void 0);_.q([_.R({}),_.N("design:type",Object)],oa.prototype,"data",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oa.prototype,"onDataChanged",null);
oa=_.q([_.d({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],oa);
_.w(oa,"ytd-shopping-overlay-badge-renderer",function(){if(nvi!==void 0)return nvi;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return nvi=x},{mode:1});_.tn(_.Oc7,"reel-sound-metadata-view-model",{props:{data:_.fz,overlayDensity:_.fz}});_.tn(_.LfC,"player-disclosure-view-model",{props:{data:_.ik}});_.tn(_.GNi,"pivot-button-view-model",{props:{data:_.fz,className:_.fz}});_.tn(_.DbJ,"reel-action-bar-view-model",{props:{data:_.ik,buttonShapeOverrideables:_.ik}});_.tn(_.Nv(function(x){function G(){var bO,mE,jf,$C,OD=(mE=_.Y((bO=f())==null?void 0:bO.command,_.e1))==null?void 0:(jf=mE.item)==null?void 0:($C=jf.notificationTextRenderer)==null?void 0:$C.successResponseText;if(OD)_.xO(K.value,"yt-open-popup-action",[_.NW(OD),K.value]);else if(v())Q1c(v(),H.value);else{var wn;Q1c((wn=f())==null?void 0:wn.command,H.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var D=x.data;var K=_.qi();x=_.l(_.eO("0px",void 0,"O1N7Ce"));var z=x.next().value,y=x.next().value;x=_.l(_.eO("0px",void 0,"tTDBdb"));var c=x.next().value,W=x.next().value;x=_.l(_.eO(0,void 0,"fh8Zkc"));var e=x.next().value,Q=x.next().value;x=_.l(_.eO(0,void 0,"CUjqGd"));var p=x.next().value,V=x.next().value,L=function(){var bO;if(((bO=_.Gx())==null?void 0:bO.getPlayerState())!==-1){K.value.style.display="inherit";var mE;(mE=_.Gx())==null||mE.removeEventListener("onStateChange",L)}r()},r=function(){var bO=
document.querySelector("video");
if(bO){Q(bO.getBoundingClientRect().width);V(bO.getBoundingClientRect().height);var mE;y((bO==null?void 0:(mE=bO.style)==null?void 0:mE.left)||"0px");var jf;W((bO==null?void 0:(jf=bO.style)==null?void 0:jf.top)||"0px")}};
_.$9(function(){var bO,mE,jf;if(((bO=_.Gx())==null?void 0:bO.getPlayerState())===-1&&Math.round(((jf=(mE=_.Gx())==null?void 0:mE.getVideoAspectRatio())!=null?jf:0)*100)!==Math.round(e()/p()*100)){K.value.style.display="none";var $C,OD;V(e()/((OD=($C=_.Gx())==null?void 0:$C.getVideoAspectRatio())!=null?OD:1))}},"VB5m5");
_.H6(function(){var bO;(bO=_.Gx())==null||bO.addEventListener("onStateChange",L);window.addEventListener("resize",r);r();var mE,jf,$C;if(($C=(mE=D())==null?void 0:(jf=mE.regions)==null?void 0:jf[0])==null||!$C.transformationMatrix)throw Error("dm");var OD;if((OD=D())==null?0:OD.trackingParams){var wn;_.en().graftServerVe((wn=D().trackingParams)!=null?wn:"")}_.Fq(function(){var n$;(n$=_.Gx())==null||n$.removeEventListener("onStateChange",L);window.removeEventListener("resize",r)})});
var H=_.qi(),O=_.l(_.eO(!1,void 0,"TPsTce"));x=O.next().value;var A=O.next().value,g=_.l(_.eO(!1,void 0,"Uz6CHf"));O=g.next().value;var u=g.next().value,f=function(){var bO;return _.Y((bO=D())==null?void 0:bO.popUp,Ubf)},v=function(){var bO;
return(bO=D())==null?void 0:bO.command},P=function(){return _.Y(v(),_.Tx)!==void 0};
g=_.WH(function(){G();return!1});
var k={},cL={};return _.M("yt-player-overlay-video-interactions",{el:K},_.M("svg",{"on:mouseover":_.WH(function(){P()&&A(!0);u(!0);return!1}),
"on:mouseout":_.WH(function(){A(!1);u(!1);return!1}),
"on:keydown":_.WH(function(bO){bO.key==="Enter"&&G();return!1}),
"on:focus":_.WH(function(){P()&&A(!0);return!1}),
"on:blur":_.WH(function(){P()&&A(!1);return!1}),
el:H,tabindex:0,"aria-label":function(){var bO;return(bO=D())==null?void 0:bO.a11yString},
id:"player-overlay-video-interaction-svg",class:_.ym("yt-player-overlay-video-interactions__interactions-svg",(k["yt-player-overlay-video-interactions__interactions-svg-hover"]=x,k),(cL["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=O,cL)),role:"button",style:function(){var bO,mE,jf,$C=(jf=(bO=D())==null?void 0:(mE=bO.regions)==null?void 0:mE[0].transformationMatrix)!=null?jf:[];bO=e();mE=p();jf=[];for(var OD=0,wn=-1;OD<$C.length;OD++)OD%3===0&&(wn++,jf[wn]=[]),jf[wn].push($C[OD]);
$C=new KD(jf);jf=new KD([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);jf=$C.multiply(jf);$C=new KD([[0,0],[0,0],[0,0],[0,0]]);for(OD=0;OD<jf.getSize().width;OD++){wn=zv(jf,0,OD);var n$=zv(jf,1,OD);if(wn===null||n$===null)throw Error("cm`"+(OD+1).toString());aa($C,OD,0,wn*bO);aa($C,OD,1,n$*mE)}bO=zv($C,0,0);OD=zv($C,1,0);mE=zv($C,0,1);wn=zv($C,1,1);if(bO===null||OD===null||mE===null||wn===null)throw Error("am");jf=M4f(bO,OD,mE,wn);n$=zv($C,3,0);$C=zv($C,3,1);if(n$===null||$C===null)throw Error("bm");$C=M4f(bO,
n$,mE,$C);wn=(Number((wn*-1).toFixed(2))-Number((mE*-1).toFixed(2)))/(Number(OD.toFixed(2))-Number(bO.toFixed(2)));n$=Math.atan(wn)*180/Math.PI;OD=wn===Number.POSITIVE_INFINITY?-90:wn===Number.NEGATIVE_INFINITY?90:Object.is(wn,-0)?180:wn===0?0:wn>0?n$*-1:bO<OD?n$*-1:Math.abs(n$)+180;return"left:calc("+bO+"px + "+z()+"); top:calc("+(mE+"px + "+c()+"); width:")+(jf+"px; height:")+($C+"px; transform:rotate(")+(OD+"deg);")},
"on:click":g}))},"Hi"),"yt-player-overlay-video-interactions",{props:{data:_.ik}});_.tn(_.mkO,"yt-reel-metapanel-view-model",{props:{data:_.ik,overlayDensity:_.ik}});var iab=_.Nv(function(x){var G=x.children;var D=x.region;var K=_.qi();x=_.l(_.eO("0px",void 0,"H14H5c"));var z=x.next().value,y=x.next().value;x=_.l(_.eO("0px",void 0,"Mn8Uvf"));var c=x.next().value,W=x.next().value;x=_.l(_.eO(0,void 0,"QQCIqc"));var e=x.next().value,Q=x.next().value;x=_.l(_.eO(0,void 0,"HyEvh"));var p=x.next().value,V=x.next().value,L=function(){var A;if(((A=_.Gx())==null?void 0:A.getPlayerState())!==-1){K.value.style.display="inherit";var g;(g=_.Gx())==null||g.removeEventListener("onStateChange",
L)}r()},r=function(){var A=document.querySelector("video");
if(A){Q(A.getBoundingClientRect().width);V(A.getBoundingClientRect().height);var g;y((A==null?void 0:(g=A.style)==null?void 0:g.left)||"0px");var u;W((A==null?void 0:(u=A.style)==null?void 0:u.top)||"0px")}};
_.$9(function(){var A,g,u;if(((A=_.Gx())==null?void 0:A.getPlayerState())===-1&&Math.round(((u=(g=_.Gx())==null?void 0:g.getVideoAspectRatio())!=null?u:0)*100)!==Math.round(e()/p()*100)){K.value.style.display="none";var f,v;V(e()/((v=(f=_.Gx())==null?void 0:f.getVideoAspectRatio())!=null?v:1))}},"DYkOCf");
var H=function(){r()},O;
_.H6(function(){r();var A;if(!(D==null?0:(A=D())==null?0:A.transformationMatrix))throw Error("dm");var g;(g=_.Gx())==null||g.addEventListener("onStateChange",L);window.ResizeObserver?(O=new ResizeObserver(_.TE(H,17)),O.observe(K.value)):window.addEventListener("resize",r);_.Fq(function(){var u;(u=_.Gx())==null||u.removeEventListener("onStateChange",L);O?O.disconnect():window.removeEventListener("resize",r)})});
return _.M("yt-overlay-sticker",{el:K,style:function(){var A,g,u=(g=D==null?void 0:(A=D())==null?void 0:A.transformationMatrix)!=null?g:[];A=e();g=p();for(var f=[],v=0,P=-1;v<u.length;v++)v%3===0&&(P++,f[P]=[]),f[P].push(u[v]);u=new KD(f);f=new KD([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);f=u.multiply(f);u=new KD([[0,0],[0,0],[0,0],[0,0]]);for(v=0;v<f.getSize().width;v++){P=zv(f,0,v);var k=zv(f,1,v);if(P===null||k===null)throw Error("cm`"+(v+1).toString());aa(u,v,0,P*A);aa(u,v,1,k*g)}A=zv(u,0,0);v=zv(u,1,
0);g=zv(u,0,1);P=zv(u,1,1);if(A===null||v===null||g===null||P===null)throw Error("am");f=pIi(A,v,g,P);k=zv(u,3,0);u=zv(u,3,1);if(k===null||u===null)throw Error("bm");u=pIi(A,k,g,u);P=(Number((P*-1).toFixed(2))-Number((g*-1).toFixed(2)))/(Number(v.toFixed(2))-Number(A.toFixed(2)));k=Math.atan(P)*180/Math.PI;v=P===Number.POSITIVE_INFINITY?-90:P===Number.NEGATIVE_INFINITY?90:Object.is(P,-0)?180:P===0?0:P>0?k*-1:A<v?k*-1:Math.abs(k)+180;return"left:calc("+A+"px + "+z()+"); top:calc("+(g+"px + "+c()+"); width:")+
(f+"px; height:")+(u+"px; transform:rotate(")+(v+"deg);")},
class:"ytOverlayStickerHost"},G)},"Ii");_.tn(_.Nv(function(x){function G(){var r,H,O,A,g=(H=_.Y((r=e())==null?void 0:r.command,_.e1))==null?void 0:(O=H.item)==null?void 0:(A=O.notificationTextRenderer)==null?void 0:A.successResponseText;if(g)_.xO(K.value,"yt-open-popup-action",[_.NW(g),K.value]);else if(Q())V4k(Q(),K.value);else{var u;V4k((u=e())==null?void 0:u.command,K.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var D=x.data;_.H6(function(){var r;if((r=D())==null?0:r.trackingParams){var H;_.en().graftServerVe((H=D().trackingParams)!=null?H:"")}});
var K=_.qi(),z=_.l(_.eO(!1,void 0,"Gjm8Mb"));x=z.next().value;var y=z.next().value,c=_.l(_.eO(!1,void 0,"JN7Pdb"));z=c.next().value;var W=c.next().value,e=function(){var r;return _.Y((r=D())==null?void 0:r.popUp,Ubf)},Q=function(){var r;
return(r=D())==null?void 0:r.command},p=function(){return _.Y(Q(),_.Tx)!==void 0};
c=_.WH(function(){G();return!1});
var V={},L={};return _.M("yt-player-overlay-interaction",null,_.M(iab,{region:function(){var r,H;return(r=D())==null?void 0:(H=r.regions)==null?void 0:H[0]}},_.M("svg",{"on:mouseover":_.WH(function(){p()&&y(!0);
W(!0);return!1}),
"on:mouseout":_.WH(function(){y(!1);W(!1);return!1}),
"on:keydown":_.WH(function(r){r.key==="Enter"&&G();return!1}),
"on:focus":_.WH(function(){p()&&y(!0);return!1}),
"on:blur":_.WH(function(){p()&&y(!1);return!1}),
el:K,tabindex:0,"aria-label":function(){var r;return(r=D())==null?void 0:r.a11yString},
id:"player-overlay-video-interaction-svg",class:_.ym("ytPlayerOverlayInteractionInteractionsSvg",(V.ytPlayerOverlayInteractionInteractionsSvgHover=x,V),(L.ytPlayerOverlayInteractionInteractionsSvgHideOutline=z,L)),role:"button","on:click":c})))},"Ji"),"yt-player-overlay-interaction",{props:{data:_.ik}});var yw=function(){var x=_.n.apply(this,arguments)||this;x.showScrubber=!1;x.isWatchWhileMode=!1;x.enableRemixButton=_.B("web_enable_shorts_remix_handoff_ep");x.enableAnchoredPanel=_.B("desktop_shorts_v2_anchored_panel");x.enableNewStickers=_.B("use_shorts_sticker_overlay_web");x.anchoredPanelActive=!1;x.enableLivingroomLayout=_.B("reels_enable_livingroom_layout");x.enablePlayerMetadataContainer=_.B("reels_web_enable_metadata_container");x.enableSqueezebackPanels=_.B("web_shorts_enable_squeezeback_panels");
x.isSqueezebackActive=!1;x.smallScreenSqueezeback=!1;x.isPlayerStarted=!1;x.overlayDensity=0;x.isOverlay=!1;x.isImmersive=!1;x.isImmersiveHorizontal=!1;x.isFullscreen=!1;x.onWindowResized=function(){var G;x.set("isImmersive",((G=window.getComputedStyle(x.hostElement))==null?void 0:G.getPropertyValue("--immersive-mode-on"))==="1");x.set("isImmersiveHorizontal",x.isImmersive&&x.enableLivingroomLayout&&!x.isWatchWhileMode)};
return x};
_.m(yw,_.n);_.a=yw.prototype;_.a.updateIsOverlay=function(x){this.isOverlay=x.detail.value};
_.a.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.B("web_enable_flexible_overlay")||_.B("web_enable_format_first")||_.B("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.a.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.a.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.a.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.a.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.a.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.a.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.a.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",_.Db("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.Db("reels_action_justified_content")||"flex-start")};
_.a.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}}};
_.a.setFakeLoadingButtons=function(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.Wg("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.Wg("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.Wg("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.Wg("SHARE_LABEL",
void 0,"Share")}}});_.B("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.Wg("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()};
_.a.setEmptyOverlayMetadata=function(){_.B("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}))};
_.Nq.Object.defineProperties(yw.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.infoPanel)}}});
yw.prototype.onIsActiveChanged=yw.prototype.onIsActiveChanged;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],yw.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],yw.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],yw.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.XL.YtdGuideStateAwareBehavior),_.N("design:type",Object)],yw.prototype,"ytdGuideStateAwareBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],yw.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Boolean)],yw.prototype,"isActive",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],yw.prototype,"hidden",void 0);_.q([_.R({value:!0}),_.N("design:type",Boolean)],yw.prototype,"useShortsIcon",void 0);_.q([_.R({value:"left"}),_.N("design:type",String)],yw.prototype,"buttonTooltipPosition",void 0);
_.q([_.R({value:_.B("reels_enable_livingroom_layout")?"top":"left"}),_.N("design:type",String)],yw.prototype,"likeButtonTooltipPosition",void 0);_.q([_.R({value:"none"}),_.N("design:type",String)],yw.prototype,"textTransform",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],yw.prototype,"showScrubber",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],yw.prototype,"isWatchWhileMode",void 0);
_.q([_.R({reflectToAttribute:!0}),_.U("data.infoPanel"),_.N("design:type",Object),_.N("design:paramtypes",[])],yw.prototype,"hasInfoPanel",null);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],yw.prototype,"enableRemixButton",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],yw.prototype,"enableAnchoredPanel",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],yw.prototype,"enableNewStickers",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],yw.prototype,"anchoredPanelActive",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],yw.prototype,"enableLivingroomLayout",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],yw.prototype,"enablePlayerMetadataContainer",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],yw.prototype,"enableSqueezebackPanels",void 0);
_.q([_.R({selector:_.M4E,reflectToAttribute:!0}),_.N("design:type",Object)],yw.prototype,"isSqueezebackActive",void 0);_.q([_.R({selector:eYk,reflectToAttribute:!0}),_.N("design:type",Object)],yw.prototype,"smallScreenSqueezeback",void 0);_.q([_.R({selector:Zab}),_.N("design:type",Object)],yw.prototype,"isPlayerStarted",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],yw.prototype,"overlayDensity",void 0);_.q([_.R(),_.N("design:type",Object)],yw.prototype,"isOverlay",void 0);
_.q([_.R({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.N("design:type",Boolean)],yw.prototype,"isShortsOverlay",void 0);_.q([_.R(),_.N("design:type",Object)],yw.prototype,"isImmersive",void 0);_.q([_.R(),_.N("design:type",Object)],yw.prototype,"isImmersiveHorizontal",void 0);_.q([_.R({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.N("design:type",Boolean)],yw.prototype,"isShortsImmersive",void 0);
_.q([_.R({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.N("design:type",Object)],yw.prototype,"buttonOverride",void 0);_.q([_.R({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.N("design:type",Object)],yw.prototype,"actionBarButtonOverride",void 0);_.q([_.R({selector:_.lQ,reflectToAttribute:!0}),_.N("design:type",Object)],yw.prototype,"isFullscreen",void 0);
_.q([_.yf("isActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yw.prototype,"onIsActiveChanged",null);yw=_.q([_.d({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],yw);
_.w(yw,"ytd-reel-player-overlay-renderer",function(){if(SZc!==void 0)return SZc;var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return SZc=x},{mode:1});var gvc;var lt=function(){var x=_.n.apply(this,arguments)||this;x.videoDuration=0;x.playedTime=0;x.isActive=!1;x.JSC$19694_playerEvents=new Map;return x};
_.m(lt,_.n);_.a=lt.prototype;_.a.created=function(){this.JSC$19694_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19694_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.a.attached=function(){this.getPlayerAndInitializeListeners()};
_.a.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19694_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.ae(this,this.onPageChanged))};
_.a.getPlayerAndInitializeListeners=function(){var x=this,G;return _.T(function(D){if(D.nextAddress==1)return G=_.Ns(),G?_.Z(D,G.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.ae(x,x.onPageChanged)),D.jumpTo(0));x.player=D.yieldResult;x.initializePlayerListeners();_.c5(D)})};
_.a.onPageChanged=function(x){var G=this;return _.T(function(D){if(D.nextAddress==1)return x.detail.newPageType!=="ytd-shorts"?D.return():_.Z(D,_.vH().getPlayerPromise(),2);G.player=D.yieldResult;G.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.ae(G,G.onPageChanged));_.c5(D)})};
_.a.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19694_playerEvents)};
_.a.onVideoDataChange=function(x){var G=this;return _.T(function(D){if(!G.player||x.type!=="newdata")return D.return();G.videoDuration=_.B("web_shorts_use_progress_state_for_gapless")?G.player.getProgressState(x.playertype).seekableEnd:G.player.getDuration(x.playertype);G.playedTime=0;_.c5(D)})};
_.a.onVideoProgress=function(x){var G=this,D,K;return _.T(function(z){if(!G.player)return z.return();D=G.player.getPresentingPlayerType();K=G.player.getPlayerState();G.videoDuration=_.B("web_shorts_use_progress_state_for_gapless")?G.player.getProgressState(D).seekableEnd:G.player.getDuration(D);G.playedTime=K===0?G.videoDuration:x;_.c5(z)})};
_.a.getPercentPlayed=function(x,G){return x?_.$1(G/x,0,1):0};
_.Nq.Object.defineProperties(lt.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 x="";return x=this.videoDuration&&this.playedTime?x+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):x+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],lt.prototype,"componentBehavior",void 0);_.q([_.I(_.nS.YtPlayerListenerBehavior),_.N("design:type",_.i4)],lt.prototype,"ytPlayerListenerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],lt.prototype,"player",void 0);_.q([_.R(),_.N("design:type",Object)],lt.prototype,"videoDuration",void 0);_.q([_.R(),_.N("design:type",Object)],lt.prototype,"playedTime",void 0);_.q([_.R(),_.N("design:type",Object)],lt.prototype,"isActive",void 0);
_.q([_.U("videoDuration","playedTime"),_.N("design:type",Number),_.N("design:paramtypes",[])],lt.prototype,"percentPlayed",null);_.q([_.U("videoDuration","playedTime"),_.N("design:type",Object),_.N("design:paramtypes",[])],lt.prototype,"percentPlayedStyle",null);_.q([_.U("videoDuration","isActive"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],lt.prototype,"hideProgressBar",null);
_.w(lt,"ytd-progress-bar-line",function(){if(gvc===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);gvc=x}x=gvc;return x},{mode:_.Ge("kevlar_poly_si_batch_j028")?1:2});var uPb;_.tn(_.Dcc,"ytm-closed-captioning-button",{props:{captionIconType:_.ik,onClick:_.fz,ariaLabel:_.ik,ariaPressed:_.ik,isOverlay:_.fz,isModern:_.fz}});_.KH(_.pMO,"desktop-shorts-volume-controls",{propNames:["noSlider","orientation"]});var cK=function(){var x=_.n.apply(this,arguments)||this;x.playerState=null;x.isMuted=!1;x.shortsModernControlsEnabled=_.B("web_shorts_modern_controls");x.volumeControlsOrientationState="vertical_down";x.isOverlay=!0;x.captionIconType=-1;x.ariaLabel="";x.overlayDensity=0;x.JSC$19697_playerEvents=new Map;x.onClosedCaptionsButtonClick=function(){x.player&&_.j9(x.player)&&(x.player.toggleSubtitles(),x.updateCaptionIconType())};
return x};
_.m(cK,_.n);_.a=cK.prototype;_.a.created=function(){this.JSC$19697_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19697_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$19697_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.a.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.BH(28662);this.playPauseButtonClientVE=_.BH(36842);this.fullscreenButtonToggleOffClientVE=_.BH(222256);this.fullscreenButtonToggleOnClientVE=_.BH(222257);var x=_.CC(),G=_.Fx();x&&G&&(_.B("combine_ve_grafts")?(_.hz(_.en(),this.muteButtonClientVE,G),_.hz(_.en(),this.playPauseButtonClientVE,G)):_.S7(x,G,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.a.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19697_playerEvents),this.player=null)};
_.a.updateCaptionIconType=function(){var x=-1,G=void 0,D=_.Wg("CLOSED_CAPTIONS_DISABLED");this.player&&_.j9(this.player)&&(_.q_i(this.player)?(G=!0,D=_.Wg("CLOSED_CAPTIONS_ENABLED"),x=1):(G=!1,D=_.Wg("CLOSED_CAPTIONS_DISABLED"),x=0));this.captionIconType=x;this.ariaPressedState=G;this.ariaLabel=D};
_.a.getPlayerAndInitializeListeners=function(){var x=this,G;return _.T(function(D){if(D.nextAddress==1)return G=_.Ns(),G?_.Z(D,G.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.ae(x,x.onPageChanged)),D.jumpTo(0));x.player=D.yieldResult;x.initializePlayerListeners();_.c5(D)})};
_.a.onPageChanged=function(x){var G=this;return _.T(function(D){if(D.nextAddress==1)return x.detail.newPageType!=="ytd-shorts"?D.return():_.Z(D,_.vH().getPlayerPromise(),2);G.player=D.yieldResult;G.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.ae(G,G.onPageChanged));_.c5(D)})};
_.a.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19697_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.a.onPlayerStateChange=function(x){this.playerState=x};
_.a.onPlayerVolumeChange=function(x){this.isMuted=x.muted};
_.a.onPlayPauseButtonClick=function(){var x=this,G,D;return _.T(function(K){if(K.nextAddress==1)return _.Z(K,_.vH().getPlayerPromise(),2);G=K.yieldResult;(D=_.CC())&&x.playPauseButtonClientVE&&_.u0(D,x.playPauseButtonClientVE);G.getPlayerState()!==1?G.playVideo():G.pauseVideo();_.c5(K)})};
_.a.computePlayPauseIcon=function(x){return x===2||x===-1||x===5?_.B("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.B("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.B("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.a.computeFullscreenLabel=function(x){return x?_.Wg("FULLSCREEN_EXIT_LABEL"):_.Wg("FULLSCREEN_ENTER_LABEL")};
_.a.computePlayPauseLabel=function(x){return x===1||x===3?_.Wg("PLAYER_LABEL_PAUSE"):_.Wg("PLAYER_LABEL_PLAY")};
_.a.onMuteButtonClick=function(){var x=this,G,D;return _.T(function(K){if(K.nextAddress==1)return _.Z(K,_.vH().getPlayerPromise(),2);G=K.yieldResult;(D=_.CC())&&x.muteButtonClientVE&&_.u0(D,x.muteButtonClientVE);G.isMuted()?G.unMute(!0):G.mute(!0);_.c5(K)})};
_.a.computeMuteIcon=function(x){return x?"miniplayer:volume-off":"miniplayer:volume-up"};
_.a.computeMuteLabel=function(x){return x?_.Wg("PLAYER_LABEL_UNMUTE"):_.Wg("PLAYER_LABEL_MUTE")};
_.a.onFullscreenButtonClick=function(){var x=_.CC();x&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.u0(x,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.u0(x,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.ymk()};
_.Nq.Object.defineProperties(cK.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var x=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(){x.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-static-overlay-additive-background)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.B("web_shorts_modern_controls")?"player_full_exit_delhi_player":_.B("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.B("web_shorts_modern_controls")?"player_full_enter_delhi_player":_.B("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],cK.prototype,"componentBehavior",void 0);_.q([_.I(_.nS.YtPlayerListenerBehavior),_.N("design:type",_.i4)],cK.prototype,"ytPlayerListenerBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],cK.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],cK.prototype,"player",void 0);_.q([_.R(),_.N("design:type",Object)],cK.prototype,"playerState",void 0);_.q([_.R(),_.N("design:type",Object)],cK.prototype,"isMuted",void 0);
_.q([_.R({computed:"computePlayPauseIcon(playerState)"}),_.N("design:type",String)],cK.prototype,"playPauseIcon",void 0);_.q([_.R({computed:"computeMuteIcon(isMuted)"}),_.N("design:type",String)],cK.prototype,"muteIcon",void 0);_.q([_.R({selector:_.lQ}),_.N("design:type",Boolean)],cK.prototype,"isFullscreen",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],cK.prototype,"shortsModernControlsEnabled",void 0);
_.q([_.R(),_.N("design:type",Object)],cK.prototype,"volumeControlsOrientationState",void 0);_.q([_.R(),_.N("design:type",Object)],cK.prototype,"isOverlay",void 0);_.q([_.R(),_.N("design:type",Object)],cK.prototype,"captionIconType",void 0);_.q([_.R(),_.N("design:type",Object)],cK.prototype,"ariaLabel",void 0);_.q([_.R(),_.N("design:type",Object)],cK.prototype,"ariaPressedState",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],cK.prototype,"overlayDensity",void 0);
_.q([_.U("playerState"),_.N("design:type",Object),_.N("design:paramtypes",[])],cK.prototype,"playPauseButtonData",null);_.q([_.U("isFullscreen"),_.N("design:type",Object),_.N("design:paramtypes",[])],cK.prototype,"fullscreenButtonData",null);_.q([_.R(),_.N("design:type",Object)],cK.prototype,"onClosedCaptionsButtonClick",void 0);_.q([_.U("isFullscreen"),_.N("design:type",String),_.N("design:paramtypes",[])],cK.prototype,"fullscreenIcon",null);
_.w(cK,"ytd-shorts-player-controls",function(){if(uPb===void 0){var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n  </div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);uPb=x}x=uPb;return x},{mode:1});var dbf;_.tn(_.sCi,"yt-interstitial-view-model",{props:{data:_.ik}});var wIc=_.Nv(function(x){var G=x.data;return _.M("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.M("h1",{class:"reelWatchBreakViewModelHostTitle"},_.M(_.vq,{text:function(){return G().title}})),_.M("h2",{class:"reelWatchBreakViewModelHostBody"},_.M(_.vq,{text:function(){return G().body},
isOverlay:!0})),_.M(_.bA,{data:function(){return G().buttons}},{buttonViewModel:function(D,K){return _.M("div",{class:function(){return K()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.M(_.Cs,{data:D.data}))}}))},"Ki");
wIc.idomCompat=!0;_.tn(wIc,"reel-watch-break-view-model",{props:{data:_.ik}});var Tv=function(){return _.n.apply(this,arguments)||this};
_.m(Tv,_.n);Tv.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}}};
_.Nq.Object.defineProperties(Tv.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var x;return!!_.Y((x=this.data)==null?void 0:x.renderer,CR6)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var x;return!!_.Y((x=this.data)==null?void 0:x.renderer,IGc)}}});
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Tv.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Tv.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],Tv.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Tv.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0}),_.U("data.renderer"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Tv.prototype,"isSurvey",null);_.q([_.R({reflectToAttribute:!0}),_.U("data.renderer"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Tv.prototype,"isInterstitialViewModel",null);Tv=_.q([_.d({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],Tv);
_.w(Tv,"ytd-reel-non-video-content-renderer",function(){if(dbf!==void 0)return dbf;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);
return dbf=x},{mode:_.Ge("kevlar_poly_si_batch_j028")?1:2});var qZf;_.tn(_.bfC,"desktop-shorts-player-controls",{});var WK=function(){var x=_.n.apply(this,arguments)||this;x.isPlayerPaused=!1;x.isPlayerStarted=!1;x.showPlayerControls=!1;x.showScrubber=!1;x.autoHideJobId=0;x.modern=_.B("web_button_rework");x.overlayType=_.Db("web_shorts_expanded_overlay_type");x.panelData=void 0;x.isWatchWhileMode=!1;x.hasError=!1;x.panelShowDelayMs=1;x.scrubberComponent={};x.isFullscreen=!1;x.shouldHideOverlay=!1;x.enableAnchoredPanel=_.B("desktop_shorts_v2_anchored_panel");x.enablePersistentAnchoredPanel=_.B("desktop_shorts_v2_persistent_anchored_panel");
x.hideWatchWhilePanel=_.B("web_shorts_hide_watch_while_panel");x.isPersistentPanelActive=!1;x.anchoredPanelActive=!1;x.isShortsPipActive=!1;x.smallScreenSqueezeback=!1;x.enableFlexibleOverlay=_.B("web_enable_flexible_overlay");x.enableRemixButton=_.B("web_enable_shorts_remix_handoff_ep");x.overlayDensity=0;x.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};x.onWindowResized=function(){_.Ao(x,
"calculateOverlayDensity",function(){x.calculateOverlayDensity()},100)};
return x};
_.m(WK,_.n);_.a=WK.prototype;_.a.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.a.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.a.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var x=_.Eo().resolve(_.VT);this.isWatchWhileMode&&(_.B("web_enable_shorts_new_carousel")?_.Fj.addJob(function(){x.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):x.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.a.handleShowReelsCommentsOverlayCommand=function(x){x=_.Y(x,XIY);this.isActive&&(x==null?0:x.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))};
_.a.updateEngagementPanelVisibility=function(x,G){x&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:G?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:x}})};
_.a.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.a.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.Eo().resolve(_.yb).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.a.handleWatchWhilePanelScrimClick=function(){var x=_.Eo().resolve(_.VT);this.activeWatchWhilePanel&&(x.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.a.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.a.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:_.B("web_enable_shorts_new_carousel")?0:void 0}}};
_.a.handlePlayerClick=function(x){var G=this,D,K;if((K=(D=window).matchMedia)!=null&&K.call(D,"(any-pointer: coarse)").matches||!x)this.showPlayerControls=!0,_.Fj.cancelJob(this.autoHideJobId),this.autoHideJobId=_.Bw(_.Fj,function(){G.showPlayerControls=!1},4E3)};
_.a.isFirstReel=function(){return this.index===0};
_.a.handleMouseenter=function(){_.Fj.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.a.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.a.handleScrubberEnter=function(){this.showScrubber=!0};
_.a.handleScrubberLeave=function(){this.showScrubber=!1};
_.a.maybeLogNonDefaultAspectRatio=function(){var x;(x=this.data)!=null&&x.thumbnail&&this.isActive&&.5625!==Wtb(this.data.thumbnail)&&_.OPC("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.a.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var x=document.querySelector("#shorts-container");if(x){x=x.offsetWidth/2-this.playerContainer.offsetWidth/2;x=x>=368?1:x>=72?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&x===1&&(x=0);this.isPersistentPanelActive&&(x=0);window.innerWidth<=599&&(x=2);this.overlayDensity=x;var G;(G=this.onOverlayDensityChanged)==null||G.call(this,this.index,this.overlayDensity)}}};
_.a.onOverlayDensityChange=function(){var x;(x=this.onOverlayDensityChanged)==null||x.call(this,this.index,this.overlayDensity);(x=_.kA(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&x.set("overlayDensity",this.overlayDensity);if(x=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))x.overlayDensity=this.overlayDensity};
_.a.isVideoContent=function(x){_.Eo().resolve(_.yb);return!!_.Y(x,_.MB)};
_.a.isNonVideoContent=function(x){_.Eo().resolve(_.yb);return!!_.Y(x,_.mP)};
_.a.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.Nq.Object.defineProperties(WK.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var x,G;return _.B("web_enable_format_first")||((x=this.data)==null?void 0:x.adsOverlay)&&_.B("web_enable_format_first_ads_only")||((G=this.data)==null?void 0:G.reelPlayerOverlayRenderer)&&_.B("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 x;return!this.isActive||!this.isPlayerStarted||(x=this.data)!=null&&x.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var x;if(((x=this.data)==null?0:x.command)&&this.isVideoContent(this.data.command)){var G,D;if(((G=this.data)==null?0:G.adsOverlay)&&Object.keys((D=this.data)==null?void 0:D.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var K,z;if(((K=this.data)==null?0:K.reelPlayerOverlayRenderer)&&Object.keys((z=this.data)==null?void 0:z.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
WK.prototype.onOverlayDensityChange=WK.prototype.onOverlayDensityChange;WK.prototype.calculateOverlayDensity=WK.prototype.calculateOverlayDensity;WK.prototype.maybeLogNonDefaultAspectRatio=WK.prototype.maybeLogNonDefaultAspectRatio;WK.prototype.onEngagementPanelsChanged=WK.prototype.onEngagementPanelsChanged;WK.prototype.onScrubberDataChange=WK.prototype.onScrubberDataChange;WK.prototype.updateShouldHideOverlay=WK.prototype.updateShouldHideOverlay;
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],WK.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],WK.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.XL.YtdGuideStateAwareBehavior),_.N("design:type",Object)],WK.prototype,"ytdGuideStateAwareBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],WK.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Number)],WK.prototype,"index",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],WK.prototype,"isActive",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],WK.prototype,"isHiddenInDom",void 0);_.q([_.R(),_.N("design:type",Object)],WK.prototype,"isPlayerPaused",void 0);_.q([_.R({selector:Zab}),_.N("design:type",Object)],WK.prototype,"isPlayerStarted",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],WK.prototype,"showPlayerControls",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],WK.prototype,"showScrubber",void 0);_.q([_.R(),_.N("design:type",Object)],WK.prototype,"autoHideJobId",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],WK.prototype,"modern",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],WK.prototype,"overlayType",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],WK.prototype,"ytdReduxBehavior",void 0);
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],WK.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],WK.prototype,"watchWhileEngagementPanels",void 0);_.q([_.R(),_.N("design:type",Object)],WK.prototype,"panelData",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],WK.prototype,"isWatchWhileMode",void 0);_.q([_.R(),_.N("design:type",String)],WK.prototype,"activeWatchWhilePanel",void 0);
_.q([_.R(),_.N("design:type",Object)],WK.prototype,"hasError",void 0);_.q([_.R(),_.N("design:type",Object)],WK.prototype,"panelShowDelayMs",void 0);_.q([_.R(),_.N("design:type",Object)],WK.prototype,"scrubberComponent",void 0);_.q([_.R({selector:_.lQ,reflectToAttribute:!0}),_.N("design:type",Object)],WK.prototype,"isFullscreen",void 0);_.q([_.R(),_.N("design:type",Object)],WK.prototype,"shouldHideOverlay",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],WK.prototype,"enableAnchoredPanel",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],WK.prototype,"enablePersistentAnchoredPanel",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],WK.prototype,"hideWatchWhilePanel",void 0);_.q([_.R({selector:_.M4E,reflectToAttribute:!0}),_.N("design:type",Object)],WK.prototype,"isPersistentPanelActive",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],WK.prototype,"anchoredPanelActive",void 0);_.q([_.R({selector:_.cb,reflectToAttribute:!0}),_.N("design:type",Object)],WK.prototype,"isShortsPipActive",void 0);_.q([_.R({selector:eYk,reflectToAttribute:!0}),_.N("design:type",Object)],WK.prototype,"smallScreenSqueezeback",void 0);
_.q([_.R({reflectToAttribute:!0}),_.U("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],WK.prototype,"enableFormatFirst",null);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],WK.prototype,"enableFlexibleOverlay",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],WK.prototype,"enableRemixButton",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],WK.prototype,"overlayDensity",void 0);
_.q([_.R(),_.N("design:type",Function)],WK.prototype,"onOverlayDensityChanged",void 0);_.q([_.R(),_.U("isActive","hasError"),_.N("design:type",Object),_.N("design:paramtypes",[])],WK.prototype,"shouldRenderPlayerElements",null);_.q([_.R(),_.U("isActive","isWatchWhileMode"),_.N("design:type",Object),_.N("design:paramtypes",[])],WK.prototype,"watchWhileOrPersistentActive",null);
_.q([_.yf("isActive","hasError","showingExpandedOverlay"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WK.prototype,"updateShouldHideOverlay",null);_.q([_.R({reflectToAttribute:!0}),_.U("isActive","isPlayerStarted","data"),_.N("design:type",Object),_.N("design:paramtypes",[])],WK.prototype,"shouldRenderScrubber",null);
_.q([_.yf("shouldRenderScrubber"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WK.prototype,"onScrubberDataChange",null);_.q([_.U("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],WK.prototype,"overlayComponent",null);_.q([_.yf("watchWhileEngagementPanels"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WK.prototype,"onEngagementPanelsChanged",null);
_.q([_.cD("#player-container"),_.N("design:type",HTMLElement)],WK.prototype,"playerContainer",void 0);_.q([_.cD("#cinematic-container"),_.N("design:type",HTMLElement)],WK.prototype,"cinematicContainer",void 0);_.q([_.yf("isPersistentPanelActive","data.thumbnail"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WK.prototype,"maybeLogNonDefaultAspectRatio",null);
_.q([_.yf("isPersistentPanelActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WK.prototype,"calculateOverlayDensity",null);_.q([_.yf("overlayDensity"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WK.prototype,"onOverlayDensityChange",null);WK=_.q([_.d({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],WK);
_.w(WK,"ytd-reel-video-renderer",function(){if(qZf!==void 0)return qZf;var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return qZf=x},{mode:_.Ge("kevlar_poly_si_batch_j028")?1:2});var ea=function(){var x=_.n.apply(this,arguments)||this;x.isPreviousPageShorts=!1;x.index=0;x.delayedActiveIndex=0;x.playablePreviousIndex=null;x.isPlayerPaused=!1;x.isPlayerStarted=!1;x.intersectionObserverThreshold=.6;x.fitToVisibleBounds=!1;x.pageSubtype="shorts";x.enablePreviousContinuation=_.B("shorts_in_playlists_web");x.shortsPipEnabled=_.B("web_shorts_pip");x.isDark=document.documentElement.hasAttribute("dark");x.shortsViewTransitions=_.B("web_shorts_view_transitions");x.isFullscreen=!1;x.isShortsPipActive=
!1;x.buttonOverride={iconPosition:"icon-only",size:"XL"};x.anchoredPanelActive=!1;x.isActive=!1;x.smallScreenPersistentPanel=!1;x.isPersistentPanelActive=!1;x.smallScreenSqueezeBack=!1;x.enableScrollIntoViewCenter=_.B("web_scroll_into_view_center");x.formatFirst=_.B("web_enable_format_first")||_.B("web_enable_format_first_ads_only")||_.B("web_enable_format_first_organic_only");x.enableFlexibleOverlay=_.B("web_enable_flexible_overlay");x.isShortsInitialized=!1;x.hidePreviousButtonImmediately=!1;x.showPreviousButtonImmediately=
!1;x.endOfNextContinuation=!1;x.currentPlayerIndex=0;x.nextReelVe=_.BH(56921);x.prevReelVe=_.BH(56922);x.loopToggleOffVe=_.BH(198013);x.loopToggleOnVe=_.BH(198014);x.ambientModeToggleVe=_.BH(227860);x.reelPlayerPausedStateRendererVe=_.BH(141313);x.storedPlaybackSpeed=null;x.actionMap={"yt-append-reel-watch-sequence-continuation-entries-action":"processAppendReelWatchSequenceContinuationEntriesAction","yt-reel-navigate-command":"handleReelNavigateCommand","yt-reel-non-video-content-dismissal-command":"processReelNonVideoContentDismissalCommand",
"yt-signal-action-toggle-cinematic-shorts-on":"handleSignalActionToggleCinematicShortsOn","yt-signal-action-toggle-cinematic-shorts-off":"handleSignalActionToggleCinematicShortsOff","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged","yt-signal-action-toggle-loop-shorts-on":"handleSignalActionToggleLoopShortsOn","yt-signal-action-toggle-loop-shorts-off":"handleSignalActionToggleLoopShortsOff","yt-miniplayer-navigate-shorts":"handleMiniplayerNavigateShorts","yt-signal-action-toggle-shorts-picture-in-picture":"handleSignalActionToggleShortsPictureInPicture"};
x.onOverlayDensityChanged=function(G,D){var K;(K=x.getActiveReelVideo(G))==null||K.setAttribute("overlay-density",String(D))};
return x};
_.m(ea,_.n);_.a=ea.prototype;
_.a.deflateInactivePreviousSlides=function(){var x=_.Gz("web_shorts_deflate_inactive_slides_aggressive_distance");if(x>0&&this.shortsProcessedSequence&&this.activeIndex){x=this.activeIndex-x;for(var G=0;G<=x;G++){var D=void 0;((D=this.shortsProcessedSequence[G].reelPlayerOverlayRenderer)==null?0:D.metapanel)&&this.set("shortsProcessedSequence."+G+".reelPlayerOverlayRenderer",{});D=void 0;((D=this.shortsProcessedSequence[G].adsOverlay)==null?0:D.adSlotMetadata)&&this.set("shortsProcessedSequence."+G+
".adsOverlay",{})}}};
_.a.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.a.onResize=function(){var x=_.wK(),G=x.dispatch,D=this.calculateIsSmallWidth();G.call(x,_.EO({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:D}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.a.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:_.B("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0}}},renderPriority:0}}};
_.a.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var x=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,G=x,D=0;x<250&&(G=x+this.shortsInnerContainer.clientWidth,D=24);_.K7(this.hostElement,{"--ytd-shorts-header-width":G+"px","--ytd-shorts-top-spacing":D+"px"})}};
_.a.isFirstShorts=function(x){return x?this.index===-x.length:this.index===0};
_.a.isActiveReel=function(x,G,D){D&&(G=this.calculatePrevIndex(G,D));return x===G};
_.a.onFullscreenChange=function(){if(_.B("web_fullscreen_shorts")){var x;(x=this.getActiveReelVideo(this.activeIndex))==null||x.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.Eo().resolve(_.O$).close(!0)}};
_.a.engagementPanelsChanged=function(){var x;this.watchWhileEngagementPanels=(x=this.data)==null?void 0:x.engagementPanels};
_.a.unregisterPanels=function(){var x=_.Eo().resolve(_.VT);if(this.watchWhileEngagementPanels)for(var G=_.l(this.watchWhileEngagementPanels),D=G.next();!D.done;D=G.next()){var K=void 0,z=void 0;D=(K=D.value.engagementPanelSectionListRenderer)==null?void 0:(z=K.identifier)==null?void 0:z.tag;x&&D&&x.panelMap.delete(D)}};
_.a.isVideoContent=function(x){return this.isVideoContentCommand(x==null?void 0:x.command)};
_.a.getActiveReelVideo=function(x){return _.kA(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+x+'"]')};
_.a.calculatePrevIndex=function(x,G){return G?x-((G==null?void 0:G.length)||0):-1};
_.a.onKeydown=function(x){var G=_.gA(x)||[];if(!_.ayY(G))if(x.code==="ArrowUp")x.preventDefault(),this.handlePrevButtonClick();else if(x.code==="ArrowDown")x.preventDefault(),this.handleNextButtonClick();else if(x.code==="KeyM")this.toggleMuteUnmuteVideo();else if(x.code==="KeyK"||x.code==="Space")this.togglePlayPauseVideo();else if((x.code==="KeyA"||x.code==="ArrowLeft")&&_.B("web_shorts_keyboard_enable_seek_shortcuts")){var D;(D=this.player)==null||D.seekBy(-5)}else if((x.code==="KeyD"||x.code===
"ArrowRight")&&_.B("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var K;(K=this.player)==null||K.seekBy(5)}};
_.a.onServiceRequestCompleted=function(x,G){x=G.data;x.continuationEndpoint&&x.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:x.entries,continuationEndpoint:x.continuationEndpoint}}):x.prevContinuationEndpoint&&x.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:x.prevEntries,prevContinuationEndpoint:x.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.a.handleEngagementPanelVisibilityChanged=function(x,G){var D=_.Eo().resolve(_.VT);if(x&&D){var K,z=((K=x.identifier)==null?void 0:K.tag)||x.panelIdentifier||x.targetId;if(G==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==z){D.hidePanel(this.activePanel);var y;this.activePanel=((y=x.identifier)==null?void 0:y.tag)||x.panelIdentifier}else this.isPersistentPanelActive=!0,_.wK().dispatch(r8f(!0)),this.anchoredPanelActive=!0,this.activePanel=z;else G==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===z&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.wK().dispatch(r8f(!1)))}};
_.a.handlePanelScrimClick=function(){var x=_.Eo().resolve(_.VT);this.activePanel&&(x.hidePanel(this.activePanel),_.wK().dispatch(r8f(!1)))};
_.a.getShortsLoopSetting=function(){var x,G,D,K,z;return _.T(function(y){switch(y.nextAddress){case 1:return _.B("kevlar_shorts_auto_advance")?_.Z(y,_.QM.getInstance(),2):y.return(!0);case 2:return(x=y.yieldResult)?_.Z(y,x.get("sfvles"),3):y.return(!0);case 3:return D=(G=y.yieldResult)!=null?G:!1,_.Z(y,x.get("sfvle"),4);case 4:return z=(K=y.yieldResult)!=null?K:!0,D?y.return(z):y.return(!0)}})};
_.a.handleSignalActionToggleLoopShortsOff=function(){var x=this,G,D,K;return _.T(function(z){switch(z.nextAddress){case 1:if(!x.player)return z.return();x.player.setLoopVideo(!1);G=_.en();_.G$(G,x.loopToggleOffVe);return _.Z(z,_.QM.getInstance(),2);case 2:return(D=z.yieldResult)?_.Z(z,D.set("sfvle",!1),3):z.return();case 3:return _.Z(z,D.set("sfvles",!0),4);case 4:K=_.M5(),_.Qg(0,203,!1),_.Qg(0,204,!0),K.save(),_.c5(z)}})};
_.a.handleSignalActionToggleLoopShortsOn=function(){var x=this,G,D,K;return _.T(function(z){switch(z.nextAddress){case 1:if(!x.player)return z.return();x.player.setLoopVideo(!0);G=_.en();_.G$(G,x.loopToggleOnVe);return _.Z(z,_.QM.getInstance(),2);case 2:return(D=z.yieldResult)?_.Z(z,D.set("sfvle",!0),3):z.return();case 3:return _.Z(z,D.set("sfvles",!0),4);case 4:K=_.M5(),_.Qg(0,203,!0),_.Qg(0,204,!0),K.save(),_.c5(z)}})};
_.a.handleSignalActionToggleCinematicShortsOn=function(){T3O(!0);var x;(x=this.JSC$19721_cinematicController)==null||_.ovf(x,!0);_.G$(_.en(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.a.handleSignalActionToggleCinematicShortsOff=function(){T3O(!1);var x;(x=this.JSC$19721_cinematicController)==null||_.ovf(x,!1);_.G$(_.en(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.a.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.a.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.a.unhideCurrentOverlay=function(){if(this.overlayContainer){var x=this.overlayContainer.querySelector("#experiment-overlay");x&&_.Fj.addLowPriorityJob(function(){x.style.display="unset"},100)}};
_.a.getCurrentShort=function(){if(this.currentEndpoint){var x=this.currentEndpoint;if(this.isNonVideoContentCommand(x)){var G=_.Y(x,_.mP);return{reelNonVideoContentRenderer:_.Y(G==null?void 0:G.renderer,_.ero),command:x}}if(this.data){var D;G=(D=_.Y(this.currentEndpoint,_.MB))==null?void 0:D.thumbnail;var K;D=(K=this.data.overlay)==null?void 0:K.reelPlayerOverlayRenderer;_.Eo().resolve(_.yb);x=this.data;var z,y;K=(z=x.overlay)==null?void 0:(y=z.shortsAdsRenderer)==null?void 0:y.adSlots;if(K!==void 0)K.length===
0?(_.tc("Shorts ads returned no ad slots."),x=void 0):(K.length>1&&_.tc("Shorts ads has more than one ad slots."),x=_.Y(K[0],_.Nju));else{var c,W;x=_.Y((c=x.overlay)==null?void 0:(W=c.shortsAdsRenderer)==null?void 0:W.overlay,_.Nju)}c=x;x=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.Y(this.currentEndpoint,_.MB),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:D,thumbnail:G,command:x,adsOverlay:c}}}};
_.a.created=function(){var x=this;this.scrollToVideoThrottle=new _.Jc(function(G){var D;(D=x.getActiveReelVideo(G))==null||D.scrollIntoView({behavior:"smooth",block:"nearest",inline:x.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.Jc(function(G){var D;(D=x.getActiveReelVideo(G))==null||D.scrollIntoView({behavior:"auto",block:"nearest",inline:x.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.a.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.a.attached=function(){var x=this;Ltc(this);this.pageScrollElement=_.kA(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.ae(this,this.processResetAction));_.B("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.B("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var G=x.getActiveReelVideo(x.activeIndex);
x.maybeCreateIntersectionObserver();G==null||G.scrollIntoView({behavior:"instant",block:"nearest",inline:x.enableScrollIntoViewCenter?"center":"start"});x.shortsContainer.style.overflowY="scroll"}))};
_.a.calculateSqueezebackPanelSize=function(){var x=this,G=window.innerWidth-456-(window.innerHeight-106)*.5625;_.Fj.addLowPriorityJob(function(){G<360?_.wK().dispatch(s1b(!0)):(x.hostElement.style.setProperty("--anchored-panel-width",Math.min(G,480)+"px"),_.wK().dispatch(s1b(!1)))})};
_.a.detached=function(){var x=_.Eo().resolve(_.yb);x.rootElement=void 0;var G;(G=x.unsubscribeFromStore)==null||G.call(x);x.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.ae(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.a.onResizeFinished=function(x,G){var D=this,K=new ResizeObserver(function(){D.shortsContainer.style.overflowY="hidden";_.Fj.addLowPriorityJob(function(){G()},100)});
K.observe(x);return K};
_.a.resetDocumentScrollTop=function(){var x,G;if((x=document)==null?0:(G=x.scrollingElement)==null?0:G.scrollTop)document.scrollingElement.scrollTop=0};
_.a.loadPage_=function(x){var G=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),x){var D;if((D=_.Y(this.currentEndpoint,_.MB))==null?0:D.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=x;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){G.isPlayerStarted&&
(G.handleOnPlaybackCommand(),G.afterPlayerStarted=function(){})};
this.registerPanel(x)}};
_.a.afterPlayerStarted=function(){};
_.a.handleOnPlaybackCommand=function(){if(_.B("web_shorts_comment_stickers")&&this.isPlayerStarted){var x,G=(x=_.Y(this.currentEndpoint,_.MB))==null?void 0:x.onPlaybackCommand;G&&this.ytComponentBehavior.resolveCommand(G)}};
_.a.maybeCreateIntersectionObserver=function(){var x=this,G=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==G){this.intersectionObserverThreshold=G;var D={rootMargin:"0px",threshold:G},K;(K=this.intersectionObserver)==null||K.disconnect();this.intersectionObserver=new IntersectionObserver(function(z){z=_.l(z);for(var y=z.next();!y.done;y=z.next())if(y=y.value,y.intersectionRatio>G){y=Number(y.target.id);if(isNaN(y))break;if(y===x.index)break;
_.hAL();x.loadVideo(y);_.II("r_vtc")}},D);
this.observeShorts()}};
_.a.observeShorts=function(){var x=[].concat(_.B5(_.kA(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));x=_.l(x);for(var G=x.next();!G.done;G=x.next()){G=G.value;var D=void 0;(D=this.intersectionObserver)==null||D.observe(G)}};
_.a.initCsi=function(){_.rt("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var x={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"}},G,D;if((G=this.playerData)==null?0:(D=G.cacheMetadata)==null?0:D.isCacheHit)x.isCacheHit=!0;var K;if(G=(K=_.Y(this.currentEndpoint,_.MB))==null?void 0:
K.prefetchTaskId)x.prefetchInfo={taskId:G};_.Hg(x)};
_.a.isAd=function(){var x,G;return!!((x=_.Y(this.currentEndpoint,_.MB))==null?0:(G=x.adClientParams)==null?0:G.isAd)};
_.a.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.a.getPlayerContainer=function(){var x;return(x=_.kA(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:x.playerContainer};
_.a.onPlayerStateChange=function(x){var G=this;this.isPlayerPaused=x===2;x!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?x===1&&this.index===0&&(this.isPlayerStarted||_.wK().dispatch(Da(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.wK().dispatch(Da(!0)));this.player&&!this.player.getLoopVideo()&&_.Fj.addLowPriorityJob(function(){G.getShortsLoopSetting().then(function(D){var K;(K=G.player)==null||K.setLoopVideo(D)})});
this.isPlayerPaused&&_.B("web_shorts_paused_state_logging")&&_.i0(_.CC(),[this.reelPlayerPausedStateRendererVe])};
_.a.isInBackground=function(){var x=window.document.visibilityState;return!(!x||x==="visible")};
_.a.isShortPlayable=function(){if(_.B("kevlar_playable_short_killswitch"))return!0;var x;return(x=this.playerData)!=null&&x.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.a.setNormalPlaybackSpeed=function(){var x=this,G,D;return _.T(function(K){if(K.nextAddress==1)return _.Z(K,x.getPlayer().getPlayerPromise(),2);G=K.yieldResult;D=G.getPlaybackRate();D!==1&&(x.storedPlaybackSpeed=D,G.setPlaybackRate(1));_.c5(K)})};
_.a.restorePlaybackSpeed=function(){var x=this,G;return _.T(function(D){if(D.nextAddress==1)return x.storedPlaybackSpeed===null?D.jumpTo(0):_.Z(D,x.getPlayer().getPlayerPromise(),3);G=D.yieldResult;G.setPlaybackRate(x.storedPlaybackSpeed);x.storedPlaybackSpeed=null;_.c5(D)})};
_.a.playerDataChanged=function(){var x=this,G,D,K,z,y,c,W,e,Q;return _.T(function(p){if(p.nextAddress==1){G=x.getPlayer();_.B("web_shorts_dynamic_intersection_observer_threshold")&&((D=x.intersectionObserver)==null||D.disconnect());if(x.playerData){if(((K=x.playerData.videoDetails)==null?void 0:K.videoId)!==((z=G.getPlayer())==null?void 0:z.getVideoData().video_id)){y={};if(c=_.Y(x.currentEndpoint,_.MB))y.watch_endpoint=c,c.endTimeSeconds&&(y.end=c.endTimeSeconds);G.loadVideoWithPlayerResponse(x.playerData,
y)}}else return p.return();return x.player?p.jumpTo(2):_.Z(p,G.getPlayerPromise(),3)}p.nextAddress!=2&&(x.player=p.yieldResult,x.JSC$19721_playerStateChangeListener=x.onPlayerStateChange.bind(x),x.player.addEventListener("onStateChange",x.JSC$19721_playerStateChangeListener),_.B("kevlar_client_enable_shorts_player_bootstrap")&&_.wj(),x.scrollToVideoThrottle.fire(x.index),x.movePlayerToVideo(x.index),_.Fj.addLowPriorityJob(function(){x.getShortsLoopSetting().then(function(V){var L;(L=x.player)==null||
L.setLoopVideo(V)})}),_.P9Z.resolve(x.player),x.player.syncVolume(),x.getPlayer().focusOnPlayer());
_.B("web_shorts_caption_language_entity_killswitch")||_.Fj.addLowPriorityJob(function(){var V=_.Eo().resolve(_.yb),L,r=(L=x.player)==null?void 0:L.getOption("captions","track");L=_.K3("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(r){var H,O=(H=_.lA(_.wvh,L)())==null?void 0:H.value,A;H=typeof(r==null?void 0:r.translationLanguage)==="object"&&((A=r.translationLanguage)==null?void 0:A.languageName)||r.displayName||"";O!==H&&V.store.dispatch(_.cq("stringEntity",L,{key:L,value:H.toString()}))}else V.store.dispatch(_.cq("stringEntity",
L,{key:L,value:"CAPTIONS_UNAVAILABLE"}))});
_.Fj.addLowPriorityJob(function(){x.observeShorts()},100);
W=x.player.getPlayerState(x.player.getPresentingPlayerType());W!==1||x.isPlayerStarted||_.wK().dispatch(Da(!0));x.updateBackNavContainerWidth();e=_.Y(x.currentEndpoint,_.MB);((Q=e)==null?0:Q.startTimeSeconds)&&x.player.seekTo(e.startTimeSeconds);if(x.JSC$19721_cinematicController||x.cinematicsInitializeJobId)return p.return();x.cinematicsInitializeJobId=_.Fj.addLowPriorityJob(function(){x.initCinematicController();x.cinematicsInitializeJobId=void 0});
_.c5(p)})};
_.a.onShortUndoDismiss=function(){var x=this,G=B3C().pop();G!==void 0&&(_.w1(this,function(){x.showCardWithIndex(G)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.a.onShortsDismiss=function(x){if(x=x.detail.reelDismissalActionRenderer)(x=_.Y(x.onDismissalCompletionRenderer,_.SwO))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:x}}}),this.scrollAndDismissCard()};
_.a.processReelNonVideoContentDismissalCommand=function(x){var G=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);x=_.Y(x,Oaf);this.activeDimissalTimeout=setTimeout(function(){G.scrollAndDismissCard()},Number(x==null?void 0:x.delayMs))};
_.a.scrollAndDismissCard=function(){var x=this,G=this.index;B3C().push(G);_.w1(this,function(){var D=x.getPlayableNextIndex();D!==null&&(D=x.getActiveReelVideo(D),x.hideCardWithIndex(G),D==null||D.scrollIntoView({behavior:"smooth",block:"nearest",inline:x.enableScrollIntoViewCenter?"center":"start"}))})};
_.a.hideCardWithIndex=function(x){if(x=this.getActiveReelVideo(x))x.hidden=!0};
_.a.showCardWithIndex=function(x){if(x=this.getActiveReelVideo(x))x.hidden=!1};
_.a.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.a.activeChanged=function(x){_.wK().dispatch(_.EO({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:x}}));if(x)document.addEventListener("keydown",_.ae(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var G;(G=this.player)==null||G.sendAbandonmentPing()}var D;(D=this.player)==null||D.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.ae(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.a.graftClientVisualElements=function(){if(this.data){var x=_.en();_.kP9(x,_.aI({response:this.reelWatchSequenceResponse}));_.hz(x,this.nextReelVe);_.hz(x,this.prevReelVe);_.B("kevlar_shorts_auto_advance")&&(_.hz(x,this.loopToggleOffVe),_.hz(x,this.loopToggleOnVe));_.hz(x,this.ambientModeToggleVe);_.i0(_.CC(),[this.nextReelVe,this.prevReelVe]);_.B("web_shorts_paused_state_logging")&&_.hz(x,this.reelPlayerPausedStateRendererVe)}};
_.a.graftNvcRenderer=function(){var x,G,D,K,z=this.index<0?(x=this.shortsProcessedPrevSequence)==null?void 0:(G=x[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:G.command:(D=this.shortsProcessedSequence)==null?void 0:(K=D[this.index])==null?void 0:K.command;if(z&&this.isNonVideoContentCommand(z)){x=_.Y(z,_.mP);var y,c;(x=(y=_.Y(x==null?void 0:x.renderer,_.ero))==null?void 0:(c=y.loggingDirectives)==null?void 0:c.trackingParams)&&_.en().graftServerVe(x)}};
_.a.setActiveIndex=function(){_.Eo().resolve(_.yb).setActiveIndex(this.index)};
_.a.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.a.lazyUpdateMiniplayerData=function(){var x=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.Fj.addLowPriorityJob(function(){x.updateMiniplayerData();x.updateMiniplayerDataJobId=void 0}))};
_.a.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.Fj.cancelJob(this.updateMiniplayerDataJobId)};
_.a.updateMiniplayerData=function(){var x,G,D,K=_.Eo().resolve(_.O$),z={shortsData:this.getCurrentShort(),previousButtonDisabled:!((x=this.prevButtonData)==null||!x.isDisabled),nextButtonDisabled:!((G=this.nextButtonData)==null||!G.isDisabled),playabilityStatus:(D=this.playerData)==null?void 0:D.playabilityStatus};_.LP(K,z)};
_.a.resetPlayerLocation=function(){var x=this.getPlayer();this.initialPlayerContainer&&x.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.a.movePlayerToVideo=function(x,G){var D=this;G=G===void 0?!0:G;var K=this.getActiveReelVideo(x),z=this.getPlayer();if(K){this.overlayContainer||(this.overlayContainer=_.kA(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,this.isShortsMiniplayerActive()||z.appendTo(this.overlayContainer.playerContainer,void 0,!0));K.appendChild(this.overlayContainer);var y;(y=this.player)==null||y.setSize(NaN,NaN);this.isActive||_.Bw(_.Fj,function(){D.isActive=!0});
z.style.visibility="visible";_.B("reels_web_disable_rtr_tick")||_.B("reels_web_use_pbs_first_shorts")&&x===0||_.Fs("r_tr");this.currentPlayerIndex=x;K.appendChild(this.errorScreenContainer);var c;(c=this.JSC$19721_cinematicController)==null||_.lGc(c)}else G?_.Fj.addLowPriorityJob(function(){D.movePlayerToVideo(D.index,!1)}):Math.random()<=_.Gz("web_shorts_error_logging_threshold")&&_.jm(new _.LL("Trying to movePlayerToVideo with undefined container.",{firstAttempt:G,
index:x}))};
_.a.enableFormatFirst=function(x){return _.B("web_enable_format_first")||x.adsOverlay&&_.B("web_enable_format_first_ads_only")||x.reelPlayerOverlayRenderer&&_.B("web_enable_format_first_organic_only")};
_.a.getAspectRatio=function(x){if(x!=null&&x.thumbnail&&this.enableFormatFirst(x))return"--ytd-shorts-player-ratio: "+Wtb(x.thumbnail)};
_.a.getBackgroundImage=function(x){if(x!=null&&x.thumbnail)return(x=_.Ph(x.thumbnail.thumbnails))?'background-image:url("'+x+'");':"background-color:black;"};
_.a.onPersistentPanelActiveChanged=function(){var x=this.getCurrentShort();if(x&&this.enableFormatFirst(x)&&(x==null?0:x.thumbnail)&&Wtb(x.thumbnail)!==.5625){var G;(G=this.player)==null||G.setSize(NaN,NaN)}};
_.a.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.a.moveCinematicsToVideo=function(){var x=_.kA(this.hostElement).querySelector("ytd-reel-video-renderer");(x==null?0:x.cinematicContainer)&&x.cinematicContainer!==this.shortsCinematicContainer.parentElement&&x.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.a.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.a.updatePrevButtonData=function(){var x=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(x){var G;this.prevButtonData=x=Object.assign({},x,{accessibility:{label:_.Wg("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:x.isDisabled||this.index===-(((G=this.shortsProcessedPrevSequence)==null?void 0:G.length)||0),tooltip:this.isUpArrowHidden?"":_.Wg("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=x=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.a.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.a.updateNextButtonData=function(){var x=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(x){var G;this.nextButtonData=x=Object.assign({},x,{accessibility:{label:_.Wg("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:x.isDisabled||this.index===((G=this.shortsProcessedSequence)==null?void 0:G.length),tooltip:_.Wg("NEXT_VIDEO_LABEL")||""})}};
_.a.getPlayablePreviousIndex=function(){for(var x,G=this.index-1;G>=-(((x=this.prevShortsSequence)==null?void 0:x.length)||0);G--)if(!B3C().includes(G))return G;return null};
_.a.getIndexInSequence=function(x,G){return x.findIndex(function(D){var K;return((K=_.Y(D.command,_.MB))==null?void 0:K.videoId)===G})};
_.a.handlePrevButtonClick=function(x){var G=this,D,K;return _.T(function(z){D=G.getPlayablePreviousIndex();if(D===null)return z.return();G.gestureType=((K=x)==null?void 0:K.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";D===0&&(G.hidePreviousButtonImmediately=!0);if(G.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){G.transitionToVideoThrottle.fire(D)}),z.return();
G.scrollToVideoThrottle.fire(D);_.c5(z)})};
_.a.getPlayableNextIndex=function(){for(var x,G=this.index+1;G<(((x=this.shortsProcessedSequence)==null?void 0:x.length)||0);G++)if(!B3C().includes(G))return G;return null};
_.a.handleNextButtonClick=function(x,G){var D=this,K,z;return _.T(function(y){K=D.getPlayableNextIndex();if(K===null)return y.return();K===1&&(D.showPreviousButtonImmediately=!0);D.gestureType=((z=x)==null?void 0:z.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";G&&(D.gestureType=G);if(D.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){D.transitionToVideoThrottle.fire(K)}),y.return();
D.scrollToVideoThrottle.fire(K);_.c5(y)})};
_.a.handleReelNavigateCommand=function(x,G,D){(x=_.Y(x,j16))&&G&&x.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(D)};
_.a.loadVideo=function(x,G){G=G===void 0?!1:G;if(x!==this.currentPlayerIndex){_.wK().dispatch(Da(!1));if(this.isAd()&&!G){var D;(D=this.player)==null||D.notifyShortsAdSwipeEvent()}if((G=this.JSC$19721_cinematicController)!=null){var K;(K=G.currentCinematicEffect)==null||K.pause()}if((K=this.JSC$19721_cinematicController)!=null){var z;(z=K.currentCinematicEffect)==null||z.clear()}K=x>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(K));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var y,c,W,e;z=x<0?(y=this.shortsProcessedPrevSequence)==null?void 0:(c=y[this.shortsProcessedPrevSequence.length+x])==null?void 0:c.command:(W=this.shortsProcessedSequence)==null?void 0:(e=W[x])==null?void 0:e.command;this.index=x;this.gestureType||(this.gestureType=K?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
z&&this.isVideoContentCommand(z)&&(this.ytComponentBehavior.resolveCommand(z,{form:{createScreenConfig:{clickedVisualElement:K?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(z&&this.isNonVideoContentCommand(z)){this.currentEndpoint=z;this.data=void 0;y=_.en();c=_.Y(z,_.mP);var Q,p;(c=(Q=_.Y(c==null?void 0:c.renderer,_.ero))==null?void 0:(p=Q.screenLoggingData)==null?void 0:p.screenVeType)&&_.EV(y,c);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(Q=this.getActiveReelVideo(x))&&Q.appendChild(this.overlayContainer)}var V,L;if(((V=this.reelWatchSequenceResponse)==null?0:V.continuationEndpoint)&&((L=this.reelWatchSequenceResponse)==null?0:L.entries)&&x===this.reelWatchSequenceResponse.entries.length-1){var r,H;V={contentPlaybackContext:_.V7({},(H=_.Y((r=this.currentEndpoint)==null?void 0:r.commandMetadata,_.fC))==null?void 0:H.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:V})}var O,A,g;((O=this.reelWatchSequenceResponse)==null?0:O.prevContinuationEndpoint)&&x===-(((A=this.reelWatchSequenceResponse)==null?void 0:(g=A.prevEntries)==null?void 0:g.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.a.setMiniplayerPreview=function(x){x=(x===void 0?0:x)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var G,D,K=_.Eo().resolve(_.O$),z={shortsData:void 0,shortsPreviewThumbnail:x?(G=this.shortsProcessedSequence)==null?void 0:(D=G[x])==null?void 0:D.thumbnail:void 0};_.LP(K,z)};
_.a.updateTitle=function(x){var G,D;x=(x==null?0:x.adSlots)?"":(D=x==null?void 0:(G=x.videoDetails)==null?void 0:G.title)!=null?D:"";_.h$(this.hostElement,"yt-update-title",x)};
_.a.registerPanel=function(x){var G=_.Eo().resolve(_.VT);if(G){x=_.l(x.engagementPanels||[]);for(var D=x.next();!D.done;D=x.next()){D=D.value;var K=D.engagementPanelSectionListRenderer,z=void 0,y=void 0,c=void 0,W=void 0,e=((z=K)==null?void 0:z.targetId)||((y=K)==null?void 0:y.panelIdentifier)||((c=K)==null?void 0:(W=c.identifier)==null?void 0:W.tag);z=K=void 0;(z=(K=G).registerPanelContent)==null||z.call(K,e,D)}}};
_.a.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;_.wK().dispatch(Da(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();_.wK().dispatch(r8f(!1));var x=_.Eo().resolve(_.yb);x.dismissedIndices=[];x.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.Eo().resolve(_.O$).close(!0)};
_.a.processAppendReelWatchSequenceContinuationEntriesAction=function(x){var G=this,D;(D=this.intersectionObserver)==null||D.disconnect();x=x.appendReelWatchSequenceContinuationEntriesAction;if(x==null?0:x.entries){var K;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.B5(((K=this.reelWatchSequenceResponse)==null?void 0:K.entries)||[]),_.B5(x.entries)),continuationEndpoint:x.continuationEndpoint})}else if(x==null?0:x.prevEntries){var z;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.B5(((z=this.reelWatchSequenceResponse)==null?void 0:z.prevEntries)||[]),_.B5(x.prevEntries)),prevContinuationEndpoint:x.prevContinuationEndpoint});_.Fj.addLowPriorityJob(function(){G.movePlayerToVideo(G.index);var y;(y=G.getActiveReelVideo(G.index))==null||y.scrollIntoView({block:"nearest",inline:G.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.Fj.addLowPriorityJob(function(){G.observeShorts()},100)};
_.a.processWatchSequence=function(x){var G=this;return x.map(function(D){D=D.command;if(G.isVideoContentCommand(D)){var K=_.Y(D,_.MB);return{reelPlayerOverlayRenderer:_.Y(K==null?void 0:K.overlay,_.Zyh),thumbnail:K.thumbnail,command:D}}return G.isNonVideoContentCommand(D)?(K=_.Y(D,_.mP),{reelNonVideoContentRenderer:_.Y(K==null?void 0:K.renderer,_.ero),command:D}):{command:D}})};
_.a.calculateIntersectionObserverThreshold=function(){if(!_.B("web_shorts_dynamic_intersection_observer_threshold"))return.6;var x=_.kA(this.hostElement).querySelector("ytd-reel-video-renderer"),G=1;(x==null?0:x.offsetHeight)&&(x==null?0:x.offsetWidth)&&(G=Math.min(x.offsetHeight,this.shortsContainer.offsetHeight)/x.offsetHeight*(Math.min(x.offsetWidth,this.shortsContainer.offsetWidth)/x.offsetWidth));return Math.round(G*.6*10)/10};
_.a.isVideoContentCommand=function(x){_.Eo().resolve(_.yb);return!!_.Y(x,_.MB)};
_.a.isNonVideoContentCommand=function(x){_.Eo().resolve(_.yb);return!!_.Y(x,_.mP)};
_.a.initCinematicController=function(){var x=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19721_cinematicController=new _.Gv(this.shortsCinematicContainer,this.player);var G,D=_.Y((G=this.data)==null?void 0:G.background,_.bc);_.y8c(this.JSC$19721_cinematicController,D);_.ovf(this.JSC$19721_cinematicController,c8f(D));_.aGc(this.JSC$19721_cinematicController);_.Fj.addLowPriorityJob(function(){x.moveCinematicsToVideo()})}};
_.a.handleMiniplayerNavigateShorts=function(x){x==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():x==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.a.handleSignalActionToggleShortsPictureInPicture=function(){if(_.Eo().resolve(_.O$).pictureInPictureSupported()){var x=_.Eo().resolve(_.yb);if(_.B("web_shorts_pip")){var G=_.Eo().resolve(_.O$);x.isShortsPipActive()?G.deactivate():G.isMiniplayerActive()||(_.or().shortsPipActivation=!0,_.CC4(G))}}else(x=this.player)==null||x.togglePictureInPicture()};
_.Nq.Object.defineProperties(ea.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.reelWatchSequenceResponse)!=null&&x.prevEntries)return this.processWatchSequence([].concat(_.B5(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var x=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!x)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var G=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.B5(this.prevShortsSequence.slice(0,G)),[x],_.B5(this.prevShortsSequence.slice(G+
1)))}G=this.index+this.shortsProcessedPrevSequence.length;x.thumbnail=this.shortsProcessedPrevSequence[G].thumbnail;return[].concat(_.B5(this.shortsProcessedPrevSequence.slice(0,G)),[x],_.B5(this.shortsProcessedPrevSequence.slice(G+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.reelWatchSequenceResponse)!=null&&x.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var x=this.getCurrentShort();if(!x||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[x];if(x==null||!x.reelNonVideoContentRenderer){var G=this.getIndexInSequence(this.shortsSequence,_.Y(this.currentEndpoint,_.MB).videoId);if(this.index===0&&G!==-1)return this.currentPlayerIndex=this.index=G,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.B5(this.shortsSequence.slice(0,this.index)),[x],_.B5(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){x.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var D,K,z,y;G=((K=_.Y((D=this.shortsProcessedSequence[0])==null?void 0:D.command,_.MB))==null?void 0:K.videoId)===((y=_.Y((z=this.shortsSequence[0])==null?void 0:z.command,_.MB))==null?void 0:y.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.B5(this.shortsProcessedSequence.slice(0,
this.index)),[x],_.B5(this.shortsSequence.slice(G)))}return[x].concat(_.B5(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var x=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;x&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(x)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 x,G;return this.index===((x=this.reelWatchSequenceResponse)==null?void 0:(G=x.entries)==null?void 0:G.length)}var D;return!((D=this.reelWatchSequenceResponse)==null?0:D.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var x;(x=this.delayedActiveIndexUpdateDebouncer)==null||x.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var x,G,D;return this.isShortPlayable()||((G=_.Y((x=this.data)==null?void 0:x.watchStatus,_.sb9))==null?void 0:(D=G.style)==null?void 0:D.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var x=this,G=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),D;if((this.data||G)&&(((D=this.data)==null?0:D.engagementPanels)||this.isAd()||G)){G=!1;this.activePanel="shorts-comments-panel";var K;D=_.l(((K=this.data)==null?void 0:K.engagementPanels)||[]);for(K=D.next();!K.done;K=D.next()){K=K.value.engagementPanelSectionListRenderer;var z=void 0,y=void 0,c=void 0,W=void 0;if((((z=K)==null?void 0:(y=z.identifier)==
null?void 0:y.tag)||((c=K)==null?void 0:c.targetId)||((W=K)==null?void 0:W.panelIdentifier))===this.activePanel){G=!0;break}}if(this.isPersistentPanelActive){var e=_.Eo().resolve(_.VT);_.Bw(_.Fj,function(){e.showPanel(x.activePanel,void 0,void 0,void 0,null)},100)}var Q;
D=[].concat(_.B5(Object.values(((Q=this.data)==null?void 0:Q.engagementPanels)||{})));if(_.B("enable_preview_panel_for_shorts_search_suggested_action")){var p,V,L,r,H;((r=_.Y((p=this.data)==null?void 0:(V=p.overlay)==null?void 0:(L=V.reelPlayerOverlayRenderer)==null?void 0:L.metapanel,_.WL9))==null?void 0:(H=r.metadataItems)==null?void 0:H.find(function(O){var A,g;return((A=_.Y(O,A8x))==null?void 0:(g=A.icon)==null?void 0:g.iconType)==="SEARCH"}))!==void 0&&D.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}Q=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);p=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return Q===void 0&&p===void 0||(Q==null?0:Q.isDisabled)||(p==null?void 0:p.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!G?(G=D==null?void 0:D.findIndex(function(O){var A,
g;return((A=O.engagementPanelSectionListRenderer)==null?void 0:(g=A.identifier)==null?void 0:g.tag)==="shorts-comments-panel"}),G===-1||G===void 0||D!=null&&D.splice(G,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.Wg("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.Wg("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:_.Wg("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.Wg("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(_.B5(Object.values(D||
{})))):D}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.shortsProcessedSequence)==null?void 0:x[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var x=this,G,D,K;if((G=this.playerData)==null?0:(D=G.playabilityStatus)==null?0:(K=D.errorScreen)==null?0:K.playerInterstitialRenderer)return _.Fj.addLowPriorityJob(function(){x.movePlayerToVideo(x.index)}),this.playerData.playabilityStatus.errorScreen;
var z,y;return((z=this.data)==null?void 0:z.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((y=this.data)==null?0:y.watchStatus)&&_.Y(this.data.watchStatus,_.smq)?(_.Fj.addLowPriorityJob(function(){x.movePlayerToVideo(x.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.Nq.Object.defineProperties(ea,{template:{configurable:!0,enumerable:!0,get:function(){if(RYc===void 0){var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n      <template class="style-scope ytd-shorts">\n        <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n          <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n          </div>\n        </div>\n      </template>\n    </dom-repeat>\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-background="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);RYc=x}x=RYc;return x}}});
ea.prototype.onNextButtonDataChange=ea.prototype.onNextButtonDataChange;ea.prototype.onPrevButtonDataChange=ea.prototype.onPrevButtonDataChange;ea.prototype.onPersistentPanelActiveChanged=ea.prototype.onPersistentPanelActiveChanged;ea.prototype.lazyUpdateMiniplayerData=ea.prototype.lazyUpdateMiniplayerData;ea.prototype.onShortsPipActiveChanged=ea.prototype.onShortsPipActiveChanged;ea.prototype.setActiveIndex=ea.prototype.setActiveIndex;ea.prototype.graftNvcRenderer=ea.prototype.graftNvcRenderer;
ea.prototype.graftClientVisualElements=ea.prototype.graftClientVisualElements;ea.prototype.onActiveChanged=ea.prototype.onActiveChanged;ea.prototype.onShortsDismiss=ea.prototype.onShortsDismiss;ea.prototype.onShortUndoDismiss=ea.prototype.onShortUndoDismiss;ea.prototype.playerDataChanged=ea.prototype.playerDataChanged;ea.prototype.afterPlayerStarted=ea.prototype.afterPlayerStarted;ea.prototype.unhideCurrentOverlay=ea.prototype.unhideCurrentOverlay;ea.prototype.onServiceRequestCompleted=ea.prototype.onServiceRequestCompleted;
ea.prototype.engagementPanelsChanged=ea.prototype.engagementPanelsChanged;ea.prototype.onFullscreenChange=ea.prototype.onFullscreenChange;ea.prototype.onResize=ea.prototype.onResize;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],ea.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.sW.YtPageBehavior),_.N("design:type",Object)],ea.prototype,"ytPageBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],ea.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.I(_.Lg),_.N("design:type",Object)],ea.prototype,"ironResizableBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],ea.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.CS),_.N("design:type",Object)],ea.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.I(_.XL.YtdGuideStateAwareBehavior),_.N("design:type",Object)],ea.prototype,"ytdGuideStateAwareBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],ea.prototype,"ytdReduxBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],ea.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],ea.prototype,"playerData",void 0);_.q([_.R(),_.N("design:type",Object)],ea.prototype,"reelWatchSequenceResponse",void 0);_.q([_.R(),_.N("design:type",Object)],ea.prototype,"cachedReelWatchSequenceResponse",void 0);_.q([_.R(),_.N("design:type",Object)],ea.prototype,"currentEndpoint",void 0);_.q([_.R(),_.N("design:type",Object)],ea.prototype,"nextButtonData",void 0);
_.q([_.R(),_.N("design:type",Object)],ea.prototype,"prevButtonData",void 0);_.q([_.R(),_.N("design:type",Object)],ea.prototype,"isPreviousPageShorts",void 0);_.q([_.R(),_.N("design:type",Object)],ea.prototype,"index",void 0);_.q([_.R(),_.N("design:type",Object)],ea.prototype,"delayedActiveIndex",void 0);_.q([_.R(),_.N("design:type",Object)],ea.prototype,"playablePreviousIndex",void 0);_.q([_.R(),_.N("design:type",Object)],ea.prototype,"player",void 0);
_.q([_.R(),_.N("design:type",Object)],ea.prototype,"isPlayerPaused",void 0);_.q([_.R({selector:Zab}),_.N("design:type",Object)],ea.prototype,"isPlayerStarted",void 0);_.q([_.R(),_.N("design:type",Object)],ea.prototype,"intersectionObserver",void 0);_.q([_.R(),_.N("design:type",Number)],ea.prototype,"cinematicsInitializeJobId",void 0);_.q([_.R(),_.N("design:type",Number)],ea.prototype,"updateMiniplayerDataJobId",void 0);_.q([_.R(),_.N("design:type",Object)],ea.prototype,"fitToVisibleBounds",void 0);
_.q([_.R(),_.N("design:type",Object)],ea.prototype,"pageSubtype",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],ea.prototype,"enablePreviousContinuation",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],ea.prototype,"shortsPipEnabled",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],ea.prototype,"isDark",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],ea.prototype,"shortsViewTransitions",void 0);
_.q([_.R({selector:_.lQ,reflectToAttribute:!0}),_.N("design:type",Object)],ea.prototype,"isFullscreen",void 0);_.q([_.R({selector:_.cb,reflectToAttribute:!0}),_.N("design:type",Object)],ea.prototype,"isShortsPipActive",void 0);_.q([_.cD("#shorts-inner-container"),_.N("design:type",HTMLElement)],ea.prototype,"shortsInnerContainer",void 0);_.q([_.cD("#back-nav-button ytd-button-renderer"),_.N("design:type",_.u9)],ea.prototype,"backNavButton",void 0);
_.q([_.cD("#shorts-container"),_.N("design:type",HTMLElement)],ea.prototype,"shortsContainer",void 0);_.q([_.Ne("error-screen"),_.N("design:type",HTMLElement)],ea.prototype,"errorScreenContainer",void 0);_.q([_.Ne("player"),_.N("design:type",Object)],ea.prototype,"playerElement",void 0);_.q([_.Ne("shorts-cinematic-container"),_.N("design:type",HTMLElement)],ea.prototype,"shortsCinematicContainer",void 0);
_.q([_.Ne("initial-player-container"),_.N("design:type",HTMLElement)],ea.prototype,"initialPlayerContainer",void 0);_.q([_.R(),_.N("design:type",Object)],ea.prototype,"buttonOverride",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],ea.prototype,"anchoredPanelActive",void 0);_.q([_.R(),_.N("design:type",String)],ea.prototype,"activePanel",void 0);_.q([_.R(),_.N("design:type",Object)],ea.prototype,"isActive",void 0);
_.q([_.R({selector:eYk,reflectToAttribute:!0}),_.N("design:type",Object)],ea.prototype,"smallScreenPersistentPanel",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],ea.prototype,"isPersistentPanelActive",void 0);_.q([_.R(),_.N("design:type",Object)],ea.prototype,"smallScreenSqueezeBack",void 0);_.q([_.R(),_.N("design:type",Object)],ea.prototype,"enableScrollIntoViewCenter",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],ea.prototype,"formatFirst",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],ea.prototype,"enableFlexibleOverlay",void 0);_.q([_.R(),_.N("design:type",Object)],ea.prototype,"panelContainer",void 0);_.q([_.R(),_.N("design:type",Object)],ea.prototype,"overlayContainer",void 0);_.q([_.R(),_.N("design:type",Object)],ea.prototype,"isShortsInitialized",void 0);_.q([_.U("reelWatchSequenceResponse"),_.N("design:type",Object),_.N("design:paramtypes",[])],ea.prototype,"prevShortsSequence",null);
_.q([_.U("data","prevShortsSequence"),_.N("design:type",Object),_.N("design:paramtypes",[])],ea.prototype,"shortsProcessedPrevSequence",null);_.q([_.U("reelWatchSequenceResponse"),_.N("design:type",Object),_.N("design:paramtypes",[])],ea.prototype,"shortsSequence",null);_.q([_.U("data","shortsSequence"),_.N("design:type",Object),_.N("design:paramtypes",[])],ea.prototype,"shortsProcessedSequence",null);
_.q([_.R({reflectToAttribute:!0}),_.U("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ea.prototype,"isUpArrowHidden",null);_.q([_.R({reflectToAttribute:!0}),_.U("reelWatchSequenceResponse","index","endOfNextContinuation"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ea.prototype,"isDownArrowHidden",null);
_.q([_.R(),_.U("index"),_.N("design:type",Number),_.N("design:paramtypes",[])],ea.prototype,"activeIndex",null);_.q([_.U("isShortPlayable","data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ea.prototype,"shouldRenderOfflineContent",null);_.q([_.oe("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ea.prototype,"onResize",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],ea.prototype,"anchoredEngagementPanels",null);
_.q([_.R(),_.N("design:type",Object)],ea.prototype,"watchWhileEngagementPanels",void 0);_.q([_.yf("isFullscreen"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ea.prototype,"onFullscreenChange",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ea.prototype,"engagementPanelsChanged",null);
_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.gG]),_.N("design:returntype")],ea.prototype,"onServiceRequestCompleted",null);_.q([_.U("data","shortsSequence","index"),_.N("design:type",Object),_.N("design:paramtypes",[])],ea.prototype,"activeReel",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ea.prototype,"unhideCurrentOverlay",null);
_.q([_.yf("isPlayerStarted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ea.prototype,"afterPlayerStarted",null);_.q([_.U("playerData","reelWatchSequenceResponse","data"),_.N("design:type",Object),_.N("design:paramtypes",[])],ea.prototype,"errorScreen",null);_.q([_.U("errorScreen"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ea.prototype,"hasError",null);
_.q([_.yf("playerData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],ea.prototype,"playerDataChanged",null);_.q([_.oe("yt-dismissible-item-undo-feedback"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ea.prototype,"onShortUndoDismiss",null);_.q([_.oe("yt-disable-lockup-interaction"),_.N("design:type",Function),_.N("design:paramtypes",[Object]),_.N("design:returntype")],ea.prototype,"onShortsDismiss",null);
_.q([_.Z6("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ea.prototype,"onActiveChanged",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ea.prototype,"graftClientVisualElements",null);_.q([_.yf("currentPlayerIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ea.prototype,"graftNvcRenderer",null);
_.q([_.yf("index"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ea.prototype,"setActiveIndex",null);_.q([_.yf("isShortsPipActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ea.prototype,"onShortsPipActiveChanged",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ea.prototype,"lazyUpdateMiniplayerData",null);
_.q([_.R(),_.N("design:type",Object)],ea.prototype,"onOverlayDensityChanged",void 0);_.q([_.yf("isPersistentPanelActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ea.prototype,"onPersistentPanelActiveChanged",null);_.q([_.yf("index","data","isUpArrowHidden"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ea.prototype,"onPrevButtonDataChange",null);
_.q([_.yf("index","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ea.prototype,"onNextButtonDataChange",null);ea=_.q([_.d({is:"ytd-shorts"})],ea);_.ti.registerService(_.$Pn,ea);
_.Xk();
}catch(e){_._DumpException(e)}
try{
_.OP("JzFVk");
var Tzb=function(x){return _.M("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},cwY(x.data.ctaButton,{buttonViewModel:{}}),_.M(_.vq,{text:x.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var W$j;var e3b;var IC=function(){return _.n.apply(this,arguments)||this};
_.m(IC,_.n);IC.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
IC.prototype.computeBlueBottomLink=function(x){return x};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],IC.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],IC.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],IC.prototype,"data",void 0);_.q([_.R({computed:"computeIcon_(data.bottomIcon)"}),_.N("design:type",String)],IC.prototype,"bottomIcon",void 0);
_.q([_.R({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.N("design:type",Boolean)],IC.prototype,"enableBlueBottomLink",void 0);IC=_.q([_.d({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],IC);
_.w(IC,"ytd-web-answer-renderer",function(){if(e3b!==void 0)return e3b;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return e3b=x},{mode:_.Ge("kevlar_poly_si_batch_j035")?1:2});var ZV6;var jc=function(){var x=_.n.apply(this,arguments)||this;x.hasChipBar=!1;return x};
_.m(jc,_.n);jc.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}}};
jc.prototype.computeHasChipBar=function(x){return!(x==null||!x.chipBar)};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],jc.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],jc.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],jc.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.N("design:type",Object)],jc.prototype,"hasChipBar",void 0);jc=_.q([_.d({is:"ytd-search-header-renderer",disableElementRegistration:!0})],jc);
_.w(jc,"ytd-search-header-renderer",function(){if(ZV6!==void 0)return ZV6;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return ZV6=x},{mode:1});var MpT;var O5=function(){return _.n.apply(this,arguments)||this};
_.m(O5,_.n);O5.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],O5.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],O5.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],O5.prototype,"data",void 0);O5=_.q([_.d({disableElementRegistration:!0,is:"ytd-page-continuation"})],O5);
_.w(O5,"ytd-page-continuation",function(){if(MpT!==void 0)return MpT;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return MpT=x},{mode:1});var Qo4;var pzO;var VpT;var X7=function(){return _.n.apply(this,arguments)||this};
_.m(X7,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],X7.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],X7.prototype,"data",void 0);X7=_.q([_.d({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],X7);
_.w(X7,"ytd-watch-card-one-vs-one-event",function(){if(VpT!==void 0)return VpT;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return VpT=x},{mode:1});var As=function(){return _.n.apply(this,arguments)||this};
_.m(As,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],As.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],As.prototype,"data",void 0);As=_.q([_.d({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],As);
_.w(As,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(pzO!==void 0)return pzO;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return pzO=x},{mode:1});var bVk;var U5=function(){return _.n.apply(this,arguments)||this};
_.m(U5,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],U5.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],U5.prototype,"data",void 0);U5=_.q([_.d({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],U5);
_.w(U5,"ytd-banner-and-box-hero-image-renderer",function(){if(bVk!==void 0)return bVk;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return bVk=x},{mode:1});var L$i;var RC=function(){var x=_.n.apply(this,arguments)||this;x.modern=_.B("web_modern_buttons");return x};
_.m(RC,_.n);RC.prototype.computeIcon=function(){var x,G,D=(x=this.data)==null?void 0:(G=x.icon)==null?void 0:G.iconType;if(D)return _.aP(D)};
RC.prototype.computeButtonShape=function(){var x;return{buttonText:_.u7((x=this.data)==null?void 0:x.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.Nq.Object.defineProperties(RC.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"}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],RC.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],RC.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],RC.prototype,"modern",void 0);_.q([_.R({type:_.B("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.U("data.style"),_.N("design:type",Object),_.N("design:paramtypes",[])],RC.prototype,"buttonColor",null);
RC=_.q([_.d({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],RC);
_.w(RC,"ytd-call-to-action-button-renderer",function(){if(L$i!==void 0)return L$i;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return L$i=x},{mode:1});var Bz6;var Sc=function(){return _.n.apply(this,arguments)||this};
_.m(Sc,_.n);Sc.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.kA(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.k$(this.data.leftThumbnail.thumbnails,216)+")")};
Sc.prototype.onLeftThumbnailChanged=Sc.prototype.onLeftThumbnailChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Sc.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Sc.prototype,"data",void 0);_.q([_.yf("data.leftThumbnail"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Sc.prototype,"onLeftThumbnailChanged",null);Sc=_.q([_.d({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],Sc);
_.w(Sc,"ytd-collage-hero-image-renderer",function(){if(Bz6!==void 0)return Bz6;var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Bz6=x},{mode:1});var rwT;var nn=function(){return _.n.apply(this,arguments)||this};
_.m(nn,_.n);nn.prototype.computeStyle=function(x){return x};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],nn.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],nn.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],nn.prototype,"componentStyle",void 0);nn=_.q([_.d({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],nn);
_.w(nn,"ytd-single-hero-image-renderer",function(){if(rwT!==void 0)return rwT;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return rwT=x},{mode:1});var so8;var iw=function(){return _.n.apply(this,arguments)||this};
_.m(iw,_.n);_.a=iw.prototype;
_.a.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:_.B("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.a.computeSubtitle=function(x){if(this.data){var G;if(this.data.upcomingEventData){x=_.u7(x.subtitle);var D=Number(this.data.upcomingEventData.startTime);isNaN(D)||(G=_.gK(_.IO(x,D)))}else G=x.subtitle;return G}};
_.a.onHeroTap=function(x){x.preventDefault();var G=this.data&&this.data.navigationEndpoint;!G||!_.u_(_.gA(x),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.u_(_.gA(x),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.B("kevlar_watchcard_hero_video_renderer_killswitch")?_.h$(this.hostElement,"yt-navigate",{navigationEndpoint:G}):this.ytComponentBehavior.resolveCommand(G))};
_.a.computeHeroTabIndex=function(x){return x&&x.simpleText?-1:0};
_.a.computeHeroRole=function(x){return x&&x.simpleText?"":"link"};
_.a.computeIsReminderButtonPresent=function(x){return!(!x||!x.reminderButton)};
_.a.computeHideBottomItems=function(x){return!(this.computeIsReminderButtonPresent(x)||x.subtitle)};
_.a.dataChanged=function(){var x=this.get("data.buttons.buttonRenderer.serviceEndpoint"),G;((G=_.Y(x==null?void 0:x.commandMetadata,_.LB))==null?0:G.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(x)};
iw.prototype.dataChanged=iw.prototype.dataChanged;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],iw.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],iw.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],iw.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],iw.prototype,"data",void 0);
_.q([_.R({computed:"computeSubtitle(data)"}),_.N("design:type",String)],iw.prototype,"subtitle",void 0);_.q([_.R({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],iw.prototype,"isReminderButtonPresent",void 0);_.q([_.R({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],iw.prototype,"hideBottomItems",void 0);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],iw.prototype,"dataChanged",null);iw=_.q([_.d({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],iw);
_.w(iw,"ytd-watch-card-hero-video-renderer",function(){if(so8!==void 0)return so8;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return so8=x},{mode:1});var Ywk;var uw=function(){return _.n.apply(this,arguments)||this};
_.m(uw,_.n);_.a=uw.prototype;_.a.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"}}}};
_.a.computeTitleBadges=function(x){return x?[x]:[]};
_.a.computeHeaderStyle=function(x){return x?x.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.a.computeAvatarAriaLabel=function(x){if(x){var G,D,K,z;return(z=(G=x.avatar)==null?void 0:(D=G.accessibility)==null?void 0:(K=D.accessibilityData)==null?void 0:K.label)!=null?z:_.u7(x==null?void 0:x.title)}};
_.a.computeAvatarHeight=function(x){return x==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.a.computeBadgeRowClass=function(x){return(x==null?0:x[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],uw.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],uw.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],uw.prototype,"data",void 0);_.q([_.R({computed:"computeTitleBadges(data.titleBadge)"}),_.N("design:type",Array)],uw.prototype,"titleBadges",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.N("design:type",String)],uw.prototype,"headerStyle",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.N("design:type",String)],uw.prototype,"badgeRowClass",void 0);uw=_.q([_.d({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],uw);
_.w(uw,"ytd-watch-card-rich-header-renderer",function(){if(Ywk!==void 0)return Ywk;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Ywk=x},{mode:1});var mxj;var HVC;var da=function(){return _.n.apply(this,arguments)||this};
_.m(da,_.n);da.prototype.onMetadataTap=function(x){var G=this.data&&this.data.navigationEndpoint;G&&!_.u_(_.gA(x),this.hostElement,["A".toString()])&&_.h$(this.hostElement,"yt-navigate",{endpoint:G})};
_.Nq.Object.defineProperties(da.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 x;if(this.data.upcomingEventData){var G=_.u7(this.data.subtitle),D=Number(this.data.upcomingEventData.startTime);isNaN(D)||(x=_.gK(_.IO(G,D)))}else x=this.data.subtitle;return x}}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],da.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],da.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.U("data.style"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],da.prototype,"isCondensed",null);_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],da.prototype,"subtitle",null);
da=_.q([_.d({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],da);
_.w(da,"ytd-watch-card-compact-video-renderer",function(){if(HVC!==void 0)return HVC;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return HVC=x},{mode:1});var $xO;var wa=function(){return _.n.apply(this,arguments)||this};
_.m(wa,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],wa.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],wa.prototype,"data",void 0);wa=_.q([_.d({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],wa);
_.w(wa,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if($xO!==void 0)return $xO;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return $xO=x},{mode:1});var q8=function(){return _.n.apply(this,arguments)||this};
_.m(q8,_.n);q8.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}}}}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],q8.prototype,"ytRendererStamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],q8.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],q8.prototype,"data",void 0);q8=_.q([_.d({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],q8);
_.w(q8,"ytd-vertical-watch-card-list-renderer",function(){if(mxj!==void 0)return mxj;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return mxj=x},{mode:1});var F$C;var N8=function(){var x=_.n.apply(this,arguments)||this;x.ariaExpanded="false";return x};
_.m(N8,_.n);_.a=N8.prototype;_.a.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.a.dataChanged=function(){var x;this.currentSeasonIndex=((x=this.data)==null?void 0:x.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.a.computeEpisodesInfo=function(x,G,D){if(x!==void 0&&G.length===x.length)return x[D]};
_.a.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.a.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.a.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.a.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.a.getUppercaseSimpleString=function(x){return this.ytRendererBehavior.getSimpleString(x).toUpperCase()};
_.a.updateCurrentSeasonIndexFromBinding=function(x){this.currentSeasonIndex=x.detail.value};
N8.prototype.onIronOverlayClosed=N8.prototype.onIronOverlayClosed;N8.prototype.currentSeasonIndexChanged=N8.prototype.currentSeasonIndexChanged;N8.prototype.dataChanged=N8.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],N8.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],N8.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],N8.prototype,"data",void 0);
_.q([_.R(),_.N("design:type",String)],N8.prototype,"label",void 0);_.q([_.R({value:0}),_.N("design:type",Number)],N8.prototype,"currentSeasonIndex",void 0);_.q([_.R({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.N("design:type",Object)],N8.prototype,"episodesInfo",void 0);_.q([_.R({value:"false"}),_.N("design:type",Object)],N8.prototype,"ariaExpanded",void 0);_.q([_.cD("#lists"),_.N("design:type",Object)],N8.prototype,"lists",void 0);
_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],N8.prototype,"dataChanged",null);_.q([_.Z6("currentSeasonIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],N8.prototype,"currentSeasonIndexChanged",null);_.q([_.oe("iron-overlay-closed"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],N8.prototype,"onIronOverlayClosed",null);
N8=_.q([_.d({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],N8);
_.w(N8,"ytd-watch-card-section-dropdown-renderer",function(){if(F$C!==void 0)return F$C;var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return F$C=x},{mode:1});var CsT;var v7=function(){var x=_.n.apply(this,arguments)||this;x.isSearch=!1;return x};
_.m(v7,_.n);v7.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}}}}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],v7.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],v7.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],v7.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],v7.prototype,"isSearch",void 0);v7=_.q([_.d({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],v7);
_.w(v7,"ytd-watch-card-section-sequence-renderer",function(){if(CsT!==void 0)return CsT;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);
return CsT=x},{mode:1});var cwY=_.MF({buttonViewModel:_.Cs});_.E9(Tzb);_.KH(Tzb,"ytd-button-banner-view-model",{propNames:["data"]});var Js=function(){var x=_.n.apply(this,arguments)||this;x.isSearch=!1;return x};
_.m(Js,_.n);
Js.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"}}}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Js.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Js.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Js.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],Js.prototype,"rounded",void 0);_.q([_.R(),_.N("design:type",Object)],Js.prototype,"isSearch",void 0);
Js=_.q([_.d({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],Js);
_.w(Js,"ytd-universal-watch-card-renderer",function(){if(Qo4!==void 0)return Qo4;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Qo4=x},{mode:1});var IAO;_.tn(_.Nv(function(x){var G=x.data;var D;x=!((D=_.Eo().resolve(_.P6(_.ib)))==null||!D());D={};return _.M("overview-message-view-model",{class:_.ym("ytwOverviewMessageViewModelHost",(D.ytwOverviewMessageViewModelDarkBackground=x,D.ytwOverviewMessageViewModelLightBackground=!x,D))},_.M(_.b,{cond:function(){return G().primaryImage},
then:function(K){return _.M(_.wk,{data:K,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.M(_.b,{cond:function(){return G().primaryText},
then:function(){return _.M("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.M(_.vq,{text:function(){return G().primaryText}}))}}),_.M(_.b,{cond:function(){return G().secondaryText},
then:function(){return _.M("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.M(_.vq,{text:function(){return G().secondaryText}}))}}))},"Gi"),"overview-message-view-model",{props:{data:_.ik}});_.KH(_.P6h,"ytd-overview-answer-view-model",{propNames:["data"]});var fn=function(){return _.n.apply(this,arguments)||this};
_.m(fn,_.n);fn.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"}}}};
fn.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],fn.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],fn.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.Oh),_.N("design:type",Object)],fn.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],fn.prototype,"data",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],fn.prototype,"isSearch",void 0);
fn=_.q([_.d({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],fn);
_.w(fn,"ytd-secondary-search-container-renderer",function(){if(IAO!==void 0)return IAO;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);
return IAO=x},{mode:1});var jo6;var ts=function(){var x=_.n.apply(this,arguments)||this;x.renderSecondarySearchContainer=!1;x.isSearch=!1;x.isSearchDova=_.B("dova_on_search");return x};
_.m(ts,_.n);_.a=ts.prototype;_.a.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"}}}};
_.a.created=function(){var x=this;this.boundStampSecondarySearchContainerIfFits=function(){x.stampSecondarySearchContainerIfFits()};
_.XQ("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.a.computeIsSearchFrictionPage=function(x){var G,D,K,z,y;x=x==null?void 0:(G=x.primaryContents)==null?void 0:(D=G.sectionListRenderer)==null?void 0:(K=D.contents)==null?void 0:(z=K[0])==null?void 0:(y=z.itemSectionRenderer)==null?void 0:y.contents;if(!x)return!1;G=_.l(x);for(D=G.next();!D.done;D=G.next())if(K=void 0,(K=D.value)==null?0:K.searchFrictionViewModel)return!0;return!1};
_.a.computeShowSecondaryColumn=function(x,G){return!!(G&&G.secondaryContents&&x)};
_.a.activeChanged=function(){var x=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.ae(this,this.debounceStampSecondarySearchContainerIfFits)),_.Xw(function(){x.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.ae(this,this.debounceStampSecondarySearchContainerIfFits))};
_.a.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.a.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.a.debounceStampSecondarySearchContainerIfFits=function(){_.Ao(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.a.onRetrieveLocation=function(x,G){G.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);x.stopPropagation()};
_.a.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
ts.prototype.dataChanged=ts.prototype.dataChanged;ts.prototype.onRetrieveLocation=ts.prototype.onRetrieveLocation;ts.prototype.persistentGuideChanged=ts.prototype.persistentGuideChanged;ts.prototype.activeChanged=ts.prototype.activeChanged;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],ts.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],ts.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.XL.YtdGuideStateAwareBehavior),_.N("design:type",Object)],ts.prototype,"ytdGuideStateAwareBehavior",void 0);_.q([_.I(_.Lg),_.N("design:type",Object)],ts.prototype,"ironResizableBehavior",void 0);_.q([_.R(),_.N("design:type",Boolean)],ts.prototype,"active",void 0);_.q([_.R(),_.N("design:type",Object)],ts.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,value:function(){return _.B("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],ts.prototype,"useBiggerThumbs",void 0);_.q([_.R({reflectToAttribute:!0,value:function(){return _.Db("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],ts.prototype,"biggerThumbsStyle",void 0);_.q([_.R(),_.N("design:type",Object)],ts.prototype,"renderSecondarySearchContainer",void 0);_.q([_.R({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.N("design:type",Boolean)],ts.prototype,"showSecondaryColumn",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.N("design:type",Boolean)],ts.prototype,"isSearchFrictionPage",void 0);
_.q([_.R(),_.N("design:type",Object)],ts.prototype,"isSearch",void 0);_.q([_.R(),_.N("design:type",Object)],ts.prototype,"isSearchDova",void 0);_.q([_.yf("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ts.prototype,"activeChanged",null);_.q([_.yf("guidePersistentAndVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ts.prototype,"persistentGuideChanged",null);
_.q([_.oe("yt-retrieve-location"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],ts.prototype,"onRetrieveLocation",null);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ts.prototype,"dataChanged",null);ts=_.q([_.d({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],ts);
_.w(ts,"ytd-two-column-search-results-renderer",function(){if(jo6!==void 0)return jo6;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return jo6=x},{mode:1});var kg=function(){var x=_.n.apply(this,arguments)||this;x.hasSearchHeader=!1;x.hasSecondaryContent=!1;x.hasBiggerThumbs=_.B("enable_desktop_search_bigger_thumbs");x.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return x};
_.m(kg,_.n);_.a=kg.prototype;_.a.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:_.FU(["aa","eocs"])}}};
_.a.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.a.loadPage_=function(x){this.initCsi();x&&(this.data=x,_.XQ("REFINEMENTS_TUPLE",["FromSearchResponse",x.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.Ju(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.a.initCsi=function(){_.rt("results",["ol","cpt"])};
_.a.updateTitle=function(){var x=_.uP(window.location.href,"q");x||(x=_.uP(window.location.href,"search_query"));_.h$(this.hostElement,"yt-update-title",x||"")};
_.a.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.a.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.B("web_srp_data_changed_terminate_imp_killswitch")||_.xO(this.hostElement,"yt-terminate-video-preview-action")};
_.a.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.a.computeHasSearchHeader=function(x){var G;x=x==null?void 0:(G=x.header)==null?void 0:G.searchHeaderRenderer;return!!x&&(!!x.searchFilterButton||!!x.chipBar)};
_.a.computeHasSecondaryContent=function(x){var G,D;return!!(x==null?0:(G=x.contents)==null?0:(D=G.twoColumnSearchResultsRenderer)==null?0:D.secondaryContents)};
_.Nq.Object.defineProperties(kg,{template:{configurable:!0,enumerable:!0,get:function(){if(W$j===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);W$j=x}x=W$j;return x}}});
kg.prototype.onReloadContinuationFinish=kg.prototype.onReloadContinuationFinish;kg.prototype.dataChanged=kg.prototype.dataChanged;_.q([_.I(_.sW.YtPageBehavior),_.N("design:type",Object)],kg.prototype,"ytPageBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],kg.prototype,"actionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],kg.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],kg.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.Oh),_.N("design:type",Object)],kg.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],kg.prototype,"data",void 0);_.q([_.R({value:!0}),_.N("design:type",Boolean)],kg.prototype,"monitorScroll",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],kg.prototype,"hasSearchHeader",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],kg.prototype,"hasSecondaryContent",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],kg.prototype,"hasBiggerThumbs",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kg.prototype,"dataChanged",null);
_.q([_.oe("yt-reload-continuation-finish"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kg.prototype,"onReloadContinuationFinish",null);kg=_.q([_.d({is:"ytd-search"})],kg);_.ti.registerService(_.HpQ,kg);
_.Xk();
}catch(e){_._DumpException(e)}
try{
_.OP("h8y2qb");
var ZPj=function(x){if(x=_.hnf(x)){var G;(G=x.sources)!=null&&G[0]?(G=_.GqP(x),G=G<1?"VERTICAL":G>1?"HORIZONTAL":"SQUARE"):G=void 0;return G}},Y6=function(x){_.W$.call(this,"upload");
this.opts.query=x},Qzc=function(x,G){return _.M(M98,{data:x,
onYtNavigate:G})},pW4=function(x,G){return _.zm(x.entities,"pageHeaderEntity",G)},bPf=function(x,G){return x.map(function(D){if(D.tabRenderer)return V96(D.tabRenderer);
if(D.expandableTabRenderer&&G){var K=D.expandableTabRenderer;return{customTabRenderable:function(){return G(K)}}}return{}})},V96=function(x){return{identifier:x.tabIdentifier,
aTagConfig:_.XB({innertubeCommand:x.endpoint,forceNewState:!0}),title:x.title,selected:x.selected,disabled:x.unselectable,icon:x.icon}},LOx=function(x){return _.EO({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:x})},BLY=function(x){if(!_.Ja(document,"gtm-noscript")){var G=document.createElement("noscript");
G.id="gtm-noscript";G.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+x+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(G)}};_.tR(Y6,_.W$);Y6.prototype.JSC$8081_setLabel=function(x){Y6.superClass_.JSC$8081_setLabel.call(this,x);return this};
Y6.prototype.addUploadMetadata=function(x,G){Y6.superClass_.addUploadMetadata.call(this,x,G);return this};var rTj=function(x){if(x!=="youtubebanner"&&x!=="youtube-channel-banner")throw Error("Sl");Y6.call(this,x)};
_.m(rTj,Y6);rTj.prototype.JSC$8081_setLabel=function(x){Y6.prototype.JSC$8081_setLabel.call(this,x);return this};
rTj.prototype.addUploadMetadata=function(x,G){Y6.prototype.addUploadMetadata.call(this,x,G);return this};var szf=[_.Lg,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(x){_.By(x).path[0]!==this&&(this.resetLayout(),x.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var x=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.kG(this._layoutDebouncer,_.Bh,x);_.PR(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var x=this;requestAnimationFrame(function(){x.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(x){this.resizerShouldNotify(x)&&this._notifyDescendant(x)},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 YGi=[_.I6s,{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(x,G){var D=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[x];if(!D)throw new ReferenceError(this._getUndefinedMsg(x));x=this._boundEffect(D,G||{});x.setUp();return x},
_effectsChanged:function(x,G,D){this._tearDownEffects();x&&D&&(x.split(" ").forEach(function(K){var z;K!==""&&((z=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[K])?this._effects.push(this._boundEffect(z,G[K])):console.warn(this._getUndefinedMsg(K)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(x,G){G=G||{};var D=parseFloat(G.startsAt||0),K=parseFloat(G.endsAt||1),z=K-D,y=function(){};
K=D===0&&K===1?x.run:function(c,W){x.run.call(this,Math.max(0,(c-D)/z),W)};
return{setUp:x.setUp?x.setUp.bind(this,G):y,run:x.run?K.bind(this):y,tearDown:x.tearDown?x.tearDown.bind(this):y}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(x){x.setUp()!==!1&&this._effectsRunFn.push(x.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(x){x.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(x,G){this._effectsRunFn&&this._effectsRunFn.forEach(function(D){D(x,G)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var x=this._clampedScrollTop;this._updateScrollState(x);this.threshold>0&&this._setThresholdTriggered(x>=this.threshold)}},
_getDOMRef:function(x){console.warn("_getDOMRef","`"+x+"` is undefined")},
_getUndefinedMsg:function(x){return"Scroll effect `"+x+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+x+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Tl`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(x){var G={};x=parseFloat(x.scalar);G.background=this._getDOMRef("background");G.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");G.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");G.deltaBg=G.backgroundFrontLayer.offsetHeight-G.background.offsetHeight;G.deltaBg===0?(isNaN(x)&&(x=.8),G.deltaBg=(this._dHeight||0)*x):(isNaN(x)&&(x=
1),G.deltaBg*=x);this._fxParallaxBackground=G},
run:function(x){var G=this._fxParallaxBackground;this.transform("translate3d(0px, "+G.deltaBg*Math.min(1,x)+"px, 0px)",G.backgroundFrontLayer);G.backgroundRearLayer&&this.transform("translate3d(0px, "+G.deltaBg*Math.min(1,x)+"px, 0px)",G.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var mNb;var HP8;var $Nj=function(){};
_.a=$Nj.prototype;_.a._scrollTargetChanged=function(){};
_.a.scroll=function(){};
_.a._isValidScrollTarget=function(){};
_.a._toggleScrollListener=function(){};
_.a.toggleScrollListener=function(){};
_.a.createEffect=function(){};
_.a._effectsChanged=function(){};
_.a._layoutIfDirty=function(){};
_.a._boundEffect=function(){};
_.a._setUpEffect=function(){};
_.a._tearDownEffects=function(){};
_.a._runEffects=function(){};
_.a._scrollHandler=function(){};
_.a._scrollStateChanged=function(){};
_.a._getUndefinedMsg=function(){};
_.a.notifyResize=function(){};
_.a.assignParentResizable=function(){};
_.a.stopResizeNotificationsFor=function(){};
_.a._subscribeIronResize=function(){};
_.a._unsubscribeIronResize=function(){};
_.a.resizerShouldNotify=function(){};
_.a._onDescendantIronResize=function(){};
_.a._fireResize=function(){};
_.a._onIronRequestResizeNotifications=function(){};
_.a._parentResizableChanged=function(){};
_.a._notifyDescendant=function(){};
_.a._requestResizeNotifications=function(){};
_.a._findParent=function(){};
_.a._appResetLayoutHandler=function(){};
_.a.resetLayout=function(){};
_.a._notifyLayoutChanged=function(){};
_.a._notifyDescendantResize=function(){};
_.a._setThresholdTriggered=function(){};
$Nj=_.BD({_template:function(){if(HP8!==void 0)return HP8;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;mNb===void 0&&(mNb=document.createElement("template"));var K=mNb;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return HP8=x},
is:"tp-yt-app-header",behaviors:[YGi,szf],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 x=_.By(this.$.slot).getDistributedNodes(),G=0,D;D=x[G];G++)if(D.nodeType===Node.ELEMENT_NODE)if(D.hasAttribute("sticky")){this._stickyElRef=D;break}else this._stickyElRef||(this._stickyElRef=D);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var x=this._clampedScrollTop,G=this._height===0||x===0,D=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;G||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();G?this._updateScrollState(x,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=D}},
_updateScrollState:function(x,G){if(this._height!==0){var D=0,K=this._top;var z=this._maxHeaderTop;var y=x-this._lastScrollTop,c=Math.abs(y),W=x>this._lastScrollTop,e=performance.now();this._mayMove()&&(D=this._clamp(this.reveals?K+y:x,0,z));x>=this._dHeight&&(D=this.condenses&&!this.fixed?Math.max(this._dHeight,D):D,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&c<100){if(e-this._initTimestamp>300||this._wasScrollingDown!==W)this._initScrollTop=x,this._initTimestamp=e;x>=z&&
(Math.abs(this._initScrollTop-x)>30||c>10?(W&&x>=z?D=z:!W&&x>=this._dHeight&&(D=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((D-K)/(y/(e-this._lastTimestamp)),0,300)+"ms"):D=this._top)}z=this._dHeight===0?x>0?1:0:D/this._dHeight;G||(this._lastScrollTop=x,this._top=D,this._wasScrollingDown=W,this._lastTimestamp=e);if(G||z!==this._progress||K!==D||x===0)this._progress=z,this._runEffects(z,D),this._transformHeader(D)}},
_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(x){this.translate3d(0,-x+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&x>=this._stickyElTop?Math.min(x,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(x,G,D){return Math.min(D,Math.max(G,x))},
_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),_.By(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(x){switch(x){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.By(this).querySelector("[main-title]");case "condensedTitle":return _.By(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var FOf;var CZO;_.BD({_template:function(){if(CZO!==void 0)return CZO;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;FOf===void 0&&(FOf=document.createElement("template"));var K=FOf;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return CZO=x},
is:"tp-yt-app-header-layout",behaviors:[szf],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.By(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var x=this.header;if(this.isAttached&&x){this.$.wrapper.classList.remove("initializing");x.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)x.style.left=
"",x.style.right="";else{var G=this.getBoundingClientRect(),D=document.documentElement.clientWidth-G.right;x.style.left=G.left+"px";x.style.right=D+"px"}G=this.$.contentContainer.style;D=x.offsetHeight;x.fixed&&!x.condenses&&this.hasScrollingRegion?(G.marginTop=D+"px",G.paddingTop=""):(G.paddingTop=D+"px",G.marginTop="")}}});var I4f=new _.J("replaceFeedContentAction");var jzY=new _.J("alertCommand");var OPi=new _.J("manageLabsStateCommand");var XWj=new _.J("inlineFormRenderer");var mT=new _.J("playlistSidebarPrimaryInfoRenderer");var ATY=new _.J("productDetailsThumbnailRenderer"),UNO=new _.J("productDetailsVariantRenderer"),RvY=new _.J("productDetailsVariantOptionRenderer"),SGc=new _.J("productDetailsOffersContainerRenderer"),nZO=new _.J("productDetailsOfferRenderer");var iPf=new _.J("shoppingFlaggingRenderer");var gZb=new _.J("playlistBylineRenderer");var uUk=new _.J("insertChannelTabCommand");var HE=function(){return _.WD.apply(this,arguments)||this};
_.m(HE,_.WD);_.a=HE.prototype;_.a.activeChanged=function(){if(this.active){var x=_.kA(this.hostElement).querySelector("#header");x&&_.h$(x,"iron-resize");window.addEventListener("scroll",_.ae(this,this.onScroll))}else window.removeEventListener("scroll",_.ae(this,this.onScroll)),_.h$(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.a.guideVisibleChanged=function(){var x=_.kA(this.hostElement).querySelector("#header");x&&_.h$(x,"iron-resize")};
_.a.onScroll=function(){var x=this;_.Ao(this,"onScroll",function(){var G=_.kA(x.hostElement).querySelector("#header");G&&G.polymerController&&(G=G.polymerController.getScrollState().progress===1?"standard":"seamed",_.h$(x.hostElement,"yt-request-panel-mode-change",{mode:G}))},10)};
_.a.tabsChanged=function(){if(this.tabs){for(var x=null,G=0,D=this.tabs.length;G<D;++G){var K=this.tabs[G].tabRenderer;if(K&&K.selected){x=G;break}}this.selected=x}};
_.a.onTabsActivate=function(x){_.h$(this.hostElement,"yt-navigate",{endpoint:this.tabs[x.detail.selected].tabRenderer.endpoint})};
HE.prototype.tabsChanged=HE.prototype.tabsChanged;HE.prototype.guideVisibleChanged=HE.prototype.guideVisibleChanged;HE.prototype.activeChanged=HE.prototype.activeChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],HE.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.XL.YtdGuideStateAwareBehavior),_.N("design:type",Object)],HE.prototype,"ytdGuideStateAwareBehavior",void 0);_.q([_.R(),_.N("design:type",Array)],HE.prototype,"tabs",void 0);
_.q([_.R(),_.N("design:type",Object)],HE.prototype,"selected",void 0);_.q([_.R(),_.N("design:type",Boolean)],HE.prototype,"active",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],HE.prototype,"disableHeaderFluidWidth",void 0);_.q([_.yf("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HE.prototype,"activeChanged",null);
_.q([_.yf("guidePersistentAndVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HE.prototype,"guideVisibleChanged",null);_.q([_.yf("tabs"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HE.prototype,"tabsChanged",null);HE=_.q([_.e2()],HE);var dNO=[_.h.YtRendererBehavior,_.XL.YtdGuideStateAwareBehavior,HE.prototype];var wWj=2/3,qGx=_.BH(130749),NLf=function(x,G){var D=this;this.element=x;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){D.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:wWj,moveAction:function(K){D.moveAction(K)},
triggerAction:function(){D.element.isReloading=!0;_.X8(_.en(),{visualElement:qGx});_.y2.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:D.element}})}}}};
_.xP(_.en(),qGx,this.layer);this.gesture=new _.oU(x,G,this.refreshConfig,"pan-down");this.attach()};
_.a=NLf.prototype;_.a.attach=function(){this.gesture.attach()};
_.a.detach=function(){this.gesture.detach()};
_.a.reset=function(){this.element.close()};
_.a.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.a.moveAction=function(x){this.element.rotation=x*360};var vZ4=_.BH(130750),$6=function(x,G,D,K,z){var y=this;this.element=x;this.parent=D;this.channelHeader=K;this.ytdReduxDispatch=z;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){y.tabsStartAtInPx=y.channelHeader.clientHeight-48;var c;(c=y.selectedTab)!=null&&c.title&&(c=_.Eo().resolve(_.P6(_.wG)))&&(c=c.getCurrentPage(),y.lastVisitedTabScrollPosition=c.getScrollTop(),y.previousTab&&
((y.lastVisitedTabScrollPosition===void 0?0:y.lastVisitedTabScrollPosition<y.channelHeader.clientHeight-48)?y.scrollPositionForTabs.has(y.selectedTab.title)&&y.scrollPositionForTabs.delete(y.selectedTab.title):y.scrollPositionForTabs.set(y.selectedTab.title,c.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:JTC(),triggerAction:function(){y.navigate(y.previousTab)},
moveAction:function(c,W){y.moveAction(c,W)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-JTC(),triggerAction:function(){y.navigate(y.nextTab)},
moveAction:function(c,W){y.moveAction(c,W)}}}};
_.xP(_.en(),vZ4,this.layer);this.gesture=new _.oU(x,G,this.tabConfig);this.attach()};
$6.prototype.attach=function(){this.gesture.attach()};
$6.prototype.detach=function(){this.gesture.detach()};
$6.prototype.tabsChanged=function(x){if(x){var G=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;x=_.l(x);for(var D=x.next();!D.done;D=x.next()){D=D.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=D);var K=void 0;if((K=D)==null?0:K.selected)this.previousTab=G,this.selectedTab=D;G=D}G=this.gesture;x=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}});
G.config=x;this.scrollPositionNeedsUpdate=!0}};
$6.prototype.moveAction=function(x,G){if(!this.tabsElement){var D;this.tabsElement=(D=this.parent.header)==null?void 0:D.tabsElement;G==="right"&&this.previousTab?_.JM8(_.cP.instance,this.previousTab.endpoint,{},""):G==="left"&&this.nextTab&&_.JM8(_.cP.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}D=this.tabsElement._pos;G==="right"&&(x*=-1);this.tabsElement._positionBar(D.width,D.left*1+D.width*x)};
var JTC=function(){var x,G;return(G=(x=_.Eo().resolve(_.wG).getCurrentPage())==null?void 0:x.clientWidth)!=null?G:0};
$6.prototype.navigate=function(x){this.element.data=void 0;if(x=x==null?void 0:x.endpoint)this.ytdReduxDispatch(LOx(!0)),_.X8(_.en(),{visualElement:vZ4}),_.y2.instance.resolveCommand({navigateAction:{endpoint:x}},{form:{element:this.element}})};var f4i;var t9O;var FJ=function(){return _.n.apply(this,arguments)||this};
_.m(FJ,_.n);FJ.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],FJ.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],FJ.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],FJ.prototype,"data",void 0);FJ=_.q([_.d({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],FJ);
_.w(FJ,"ytd-labs-edit-renderer",function(){if(t9O!==void 0)return t9O;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return t9O=x},{mode:1});var k3b;var CY=function(){var x=_.n.apply(this,arguments)||this;x.dark=!1;x.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";x.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return x};
_.m(CY,_.n);CY.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
CY.prototype.ready=function(){var x=document.documentElement.hasAttribute("dark");this.setBackgroundImage(x);this.dark=x};
CY.prototype.onDarkModeToggledAction=function(x){this.setBackgroundImage(x);this.dark=x};
CY.prototype.setBackgroundImage=function(x){_.K7(this.hostElement,{"--yt-labs-header-background":"url("+(x?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],CY.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],CY.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],CY.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],CY.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],CY.prototype,"dark",void 0);
CY=_.q([_.d({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],CY);
_.w(CY,"ytd-labs-header-renderer",function(){if(k3b!==void 0)return k3b;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return k3b=x},{mode:1});var PZO;var IU=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return x};
_.m(IU,_.n);IU.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"}}}}}};
IU.prototype.onYtToggleButton=function(x){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",x.detail.toggled)};
IU.prototype.onManageLabsState=function(x){if(x=_.Y(x,OPi))x.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?x.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&x.labsItemId===this.data.labsItemId&&(x.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.xO(this.hostElement,"yt-check-labs-opted-in-state").some(function(G){return G})&&this.data.confirmationDialogCommand?_.zl(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.Eo().resolve(_.hm).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&x.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.Eo().resolve(_.hm).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
IU.prototype.onCheckLabsOptedInState=function(){var x=this.get("data.primaryButton.toggleButtonRenderer");return x?x.isToggled:!1};
_.Nq.Object.defineProperties(IU.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
IU.prototype.onYtToggleButton=IU.prototype.onYtToggleButton;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],IU.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],IU.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],IU.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],IU.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],IU.prototype,"itemStyle",null);_.q([_.oe("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],IU.prototype,"onYtToggleButton",null);IU=_.q([_.d({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],IU);
_.w(IU,"ytd-labs-item-renderer",function(){if(PZO!==void 0)return PZO;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return PZO=x},{mode:1});var EZj;var hvb;var jd=function(){return _.n.apply(this,arguments)||this};
_.m(jd,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],jd.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],jd.prototype,"data",void 0);jd=_.q([_.d({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],jd);
_.w(jd,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(hvb!==void 0)return hvb;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return hvb=x},{mode:1});var xeb;var OW=function(){return _.n.apply(this,arguments)||this};
_.m(OW,_.n);OW.prototype.observeSuperchatChip=function(){if(this.data){var x={"--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)};_.K7(this.hostElement,x)}};
OW.prototype.colorFromDecimal=function(x){return _.jT(Number(x||0))};
OW.prototype.observeSuperchatChip=OW.prototype.observeSuperchatChip;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],OW.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],OW.prototype,"data",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],OW.prototype,"observeSuperchatChip",null);OW=_.q([_.d({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],OW);
_.w(OW,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(xeb!==void 0)return xeb;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return xeb=x},{mode:1});var XJ=function(){return _.n.apply(this,arguments)||this};
_.m(XJ,_.n);XJ.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"}}}};
_.Nq.Object.defineProperties(XJ.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],XJ.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],XJ.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.CS),_.N("design:type",Object)],XJ.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],XJ.prototype,"data",void 0);_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],XJ.prototype,"hideMessageBlock",null);
XJ=_.q([_.d({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],XJ);
_.w(XJ,"ytd-live-chat-history-entry-renderer",function(){if(EZj!==void 0)return EZj;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return EZj=x},{mode:1});var GGC;var Ad=function(){return _.n.apply(this,arguments)||this};
_.m(Ad,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Ad.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Ad.prototype,"data",void 0);Ad=_.q([_.d({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],Ad);
_.w(Ad,"ytd-channel-options-renderer",function(){if(GGC!==void 0)return GGC;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return GGC=x},{mode:1});var De8;var UW=function(){return _.n.apply(this,arguments)||this};
_.m(UW,_.n);UW.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],UW.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],UW.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],UW.prototype,"data",void 0);UW=_.q([_.d({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],UW);
_.w(UW,"ytd-settings-email-item-renderer",function(){if(De8!==void 0)return De8;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return De8=x},{mode:1});var Kr8;var RU=function(){return _.n.apply(this,arguments)||this};
_.m(RU,_.n);RU.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"}}}};
RU.prototype.getExpansionIcon=function(x){return x?"COLLAPSE":"EXPAND"};
RU.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.Nq.Object.defineProperties(RU.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],RU.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],RU.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],RU.prototype,"data",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],RU.prototype,"expanded",void 0);_.q([_.U("expanded"),_.N("design:type",String),_.N("design:paramtypes",[])],RU.prototype,"emailListExpanded",null);
_.q([_.cD("#options"),_.N("design:type",Object)],RU.prototype,"options",void 0);RU=_.q([_.d({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],RU);
_.w(RU,"ytd-settings-email-list-renderer",function(){if(Kr8!==void 0)return Kr8;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Kr8=x},{mode:1});var z7x;var Sd=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return x};
_.m(Sd,_.n);Sd.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"}}}};
Sd.prototype.handleSignalActionSubmitForm=function(){var x,G=(x=this.formRenderer)==null?void 0:x.getForm();G&&this.data.serviceEndpoint&&_.Eo().resolve(_.hm).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},G,{element:this.hostElement})})};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Sd.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Sd.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],Sd.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Sd.prototype,"data",void 0);_.q([_.cD("yt-form-renderer"),_.N("design:type",Object)],Sd.prototype,"formRenderer",void 0);
Sd=_.q([_.d({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],Sd);
_.w(Sd,"ytd-settings-gaia-link-renderer",function(){if(z7x!==void 0)return z7x;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return z7x=x},{mode:1});var a5b;var nY=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return x};
_.m(nY,_.n);nY.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.c_Y()&&this.set("data.hidden",!1)};
nY.prototype.onSwitchReady=function(){var x=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.B("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.lBb().then(function(G){G&&(Notification.permission==="default"?x.set("data.hidden",!1):Notification.permission==="granted"&&_.fP("NotificationsDisabled").then(function(D){D||_.xO(x.hostElement,"yt-toggle-settings-switch",[x.data.id,!D]);x.set("data.hidden",!1)}).catch(function(){}))})})};
nY.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}}}}};
nY.prototype.handleUpdateOptionsCommand=function(x){(x=_.Y(x,_.lh9))&&this.data&&this.data.id===x.id&&(this.set("data.hidden",x.hidden),x.text!==void 0&&this.set("data.text",x.text),x.clearOptions&&this.set("data.options",[]))};
nY.prototype.onSwitchReady=nY.prototype.onSwitchReady;nY.prototype.dataChanged=nY.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],nY.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],nY.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],nY.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],nY.prototype,"data",void 0);
_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nY.prototype,"dataChanged",null);_.q([_.oe("yt-settings-switch-ready"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nY.prototype,"onSwitchReady",null);nY=_.q([_.d({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],nY);
_.w(nY,"ytd-settings-options-renderer",function(){if(a5b!==void 0)return a5b;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return a5b=x},{mode:1});var oUj;var ic=function(){return _.n.apply(this,arguments)||this};
_.m(ic,_.n);ic.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
ic.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
ic.prototype.onYtExpanderMoreTapped=ic.prototype.onYtExpanderMoreTapped;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],ic.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],ic.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],ic.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],ic.prototype,"data",void 0);
_.q([_.oe("yt-expander-more-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ic.prototype,"onYtExpanderMoreTapped",null);ic=_.q([_.d({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],ic);
_.w(ic,"ytd-product-details-description-renderer",function(){if(oUj!==void 0)return oUj;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return oUj=x},{mode:1});var yAc;var gt=function(){var x=_.n.apply(this,arguments)||this;x.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";x.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";x.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";x.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return x};
_.m(gt,_.n);gt.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Nq.Object.defineProperties(gt.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var x,G;return((x=this.data)==null?void 0:(G=x.offerData)==null?void 0:G.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var x,G;return((x=this.data)==null?void 0:x.purchaseButtonRenderers)!==void 0&&((G=this.data)==null?void 0:G.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var x,G;return!((x=this.data)==null||!x.formattedFromMerchantText)&&(!((G=this.data)==null||!G.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],gt.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],gt.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],gt.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],gt.prototype,"data",void 0);
_.q([_.R({type:_.B("kevlar_property_type_migration_killswitch")?String:void 0}),_.N("design:type",Object)],gt.prototype,"shippingIcon",void 0);_.q([_.R({type:_.B("kevlar_property_type_migration_killswitch")?String:void 0}),_.N("design:type",Object)],gt.prototype,"shippingAddressIcon",void 0);_.q([_.R({type:_.B("kevlar_property_type_migration_killswitch")?String:void 0}),_.N("design:type",Object)],gt.prototype,"googleGuaranteeIcon",void 0);
_.q([_.R({type:_.B("kevlar_property_type_migration_killswitch")?String:void 0}),_.N("design:type",Object)],gt.prototype,"returnPolicyIcon",void 0);_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],gt.prototype,"showAdditionalFees",null);_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],gt.prototype,"showMultiPurchaseButtons",null);
_.q([_.U("data","showMultiPurchaseButtons"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],gt.prototype,"showPurchaseData",null);gt=_.q([_.d({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],gt);
_.w(gt,"ytd-product-details-hero-offer-renderer",function(){if(yAc!==void 0)return yAc;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return yAc=x},{mode:1});var l5x;var cAx;var uc=function(){return _.n.apply(this,arguments)||this};
_.m(uc,_.n);_.a=uc.prototype;_.a.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.a.onKeyDown=function(x){x=x.keyCode;x!==13&&x!==32||this.handleSelection()};
_.a.onMouseEnterImage=function(){var x;((x=this.data)==null?void 0:x.thumbnailDetails)!==void 0&&_.Gl(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.a.onMouseLeaveImage=function(){_.Gl(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.a.handleSelection=function(){this.data&&_.h$(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.Nq.Object.defineProperties(uc.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.isSelected)}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],uc.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],uc.prototype,"data",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],uc.prototype,"isSelected",null);uc=_.q([_.d({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],uc);
_.w(uc,"ytd-product-details-thumbnail-renderer",function(){if(cAx!==void 0)return cAx;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return cAx=x},{mode:1});var dt=function(){var x=_.n.apply(this,arguments)||this;var G={};x.actionMap=(G["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",G["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",G);x.selectedThumbnailIndex=0;x.selectItem=function(D){D.target.onKeyDown(D)};
return x};
_.m(dt,_.n);_.a=dt.prototype;_.a.handlePreviewImageSelect=function(x){this.hoverThumbnail=x};
_.a.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.a.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.a.onThumbnailSelected=function(x,G){this.selectedThumbnailIndex=G};
_.a.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.a.updateOffset=function(){var x=_.kA(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-x));this.ytdHorizontalListBehavior.reposition_()};
_.Nq.Object.defineProperties(dt.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.data)==null?0:x.imageRenderer){var G,D;return((G=this.data)==null?void 0:(D=G.imageRenderer)==null?void 0:D.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var x;if((x=this.data)==null?0:x.imageRenderer){var G;return(G=_.Y(this.data.imageRenderer[this.selectedThumbnailIndex],ATY))==null?void 0:G.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var x=this,G,D,K,z=(K=(G=this.data)==null?void 0:(D=G.imageRenderer)==null?void 0:D.map(function(y,c){return{productDetailsThumbnailRenderer:Object.assign({},_.Y(y,ATY),{index:c,isSelected:c===x.selectedThumbnailIndex})}}))!=null?K:[];
return Object.assign({},this.data,{imageRenderer:z})}}});
dt.prototype.updateOffset=dt.prototype.updateOffset;dt.prototype.dataChanged=dt.prototype.dataChanged;dt.prototype.onThumbnailSelected=dt.prototype.onThumbnailSelected;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],dt.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],dt.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.tp.YtdHorizontalListBehavior),_.N("design:type",Object)],dt.prototype,"ytdHorizontalListBehavior",void 0);
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],dt.prototype,"componentBehavior",void 0);_.q([_.I([_.tG.YtActionHandlerBehavior]),_.N("design:type",Object)],dt.prototype,"actionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],dt.prototype,"data",void 0);_.q([_.R({value:"$.items.children"}),_.N("design:type",String)],dt.prototype,"itemsPath",void 0);_.q([_.R({value:3}),_.N("design:type",Number)],dt.prototype,"initialCount",void 0);
_.q([_.cD("#items"),_.N("design:type",Object)],dt.prototype,"items",void 0);_.q([_.R(),_.N("design:type",Object)],dt.prototype,"selectedThumbnailIndex",void 0);_.q([_.R(),_.N("design:type",Object)],dt.prototype,"hoverThumbnail",void 0);_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],dt.prototype,"showThumbnails",null);
_.q([_.oe("ytd-product-details-thumbnail-renderer-selected"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Number]),_.N("design:returntype")],dt.prototype,"onThumbnailSelected",null);_.q([_.U("data","selectedThumbnailIndex","hoverThumbnail"),_.N("design:type",Object),_.N("design:paramtypes",[])],dt.prototype,"thumbnailDetails",null);_.q([_.U("data","selectedThumbnailIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],dt.prototype,"populatedData",null);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dt.prototype,"dataChanged",null);_.q([_.oe("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dt.prototype,"updateOffset",null);dt=_.q([_.d({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],dt);
_.w(dt,"ytd-product-details-image-carousel-renderer",function(){if(l5x!==void 0)return l5x;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return l5x=x},{mode:_.Ge("kevlar_poly_si_batch_j079")?1:2});var TNT;var wt=function(){return _.n.apply(this,arguments)||this};
_.m(wt,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],wt.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],wt.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],wt.prototype,"componentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],wt.prototype,"data",void 0);wt=_.q([_.d({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],wt);
_.w(wt,"ytd-product-details-offer-renderer",function(){if(TNT!==void 0)return TNT;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return TNT=x},{mode:1});var WrO;var qf=function(){var x=_.n.apply(this,arguments)||this;x.isOffersHidden=!0;return x};
_.m(qf,_.n);qf.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var x,G=_.Y((x=this.data)==null?void 0:x.viewOffersButton,_.$V);G&&this.ytRendererBehavior.logExplicitClick(G)};
qf.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.Nq.Object.defineProperties(qf.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var x,G,D,K;return(D=_.Y((x=this.data)==null?void 0:(G=x.offers)==null?void 0:G[0],nZO))==null?void 0:(K=D.offerData)==null?void 0:K.vendorLogoUrl}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],qf.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],qf.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],qf.prototype,"componentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],qf.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],qf.prototype,"isOffersHidden",void 0);
_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],qf.prototype,"firstOfferVendorLogoUrl",null);qf=_.q([_.d({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],qf);
_.w(qf,"ytd-product-details-offers-container-renderer",function(){if(WrO!==void 0)return WrO;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return WrO=x},{mode:1});var e78;var Zk8;var Nf=function(){return _.n.apply(this,arguments)||this};
_.m(Nf,_.n);Nf.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
Nf.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.Gl(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
Nf.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.Gl(this,"ytd-product-details-variant-image-unselect")};
_.Nq.Object.defineProperties(Nf.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 x;return((x=this.data)==null?void 0:x.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var x,G,D;return((x=this.data)==null?void 0:x.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((G=this.data)==null?void 0:G.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((D=this.data)==null?void 0:D.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var x;if(((x=this.data)==null?void 0:x.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var x,G;return this.isUnavailable?(x=this.data)==null?void 0:x.variantOptionUnavailableAccessibilityLabel:(G=this.data)==null?void 0:G.variantOptionAccessibilityLabel}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Nf.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Nf.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Nf.prototype,"componentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Nf.prototype,"data",void 0);_.q([_.R(),_.N("design:type",String)],Nf.prototype,"displayType",void 0);
_.q([_.U("displayType","data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Nf.prototype,"isImageButton",null);_.q([_.U("displayType","data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Nf.prototype,"isPillButton",null);_.q([_.U("data"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Nf.prototype,"isActive",null);
_.q([_.U("data"),_.R({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Nf.prototype,"isUnavailable",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Nf.prototype,"thumbnailDetails",null);_.q([_.U("isUnavailable","data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Nf.prototype,"accessibilityLabel",null);Nf=_.q([_.d({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],Nf);
_.w(Nf,"ytd-product-details-variant-option-renderer",function(){if(Zk8!==void 0)return Zk8;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Zk8=x},{mode:1});var MA4;var vE=function(){var x=_.n.apply(this,arguments)||this;x.variantsExpanded=!1;x.hideShowMoreLessVariantButton=!0;x.initialized=!1;x.computeVariantsDebouncer=null;x.computeVariants=function(G){G=G===void 0?!1:G;x.variantsExpanded||x.showOptions()||!G||(x.variantsExpanded=!0);if(x.variantsExpanded){G=_.l(x.items.children);for(var D=G.next();!D.done;D=G.next())D.value.hidden=!1}x.initialized=!0};
return x};
_.m(vE,_.n);_.a=vE.prototype;_.a.ready=function(){var x=this;setTimeout(function(){x.computeVariants(!0)})};
_.a.showOptions=function(){for(var x=_.l(this.items.children),G=x.next();!G.done;G=x.next())G.value.hidden=!0;var D=this.container.getBoundingClientRect().width,K=0,z=x=0;G=!1;for(var y=_.l(this.items.children),c=y.next();!c.done;c=y.next()){c=c.value;c.hidden=!1;var W=c.getBoundingClientRect().width;if(K+W<D)K+=W;else if(++z<2)K=W;else break;x+=1;c.hasAttribute("is-active")&&(G=!0)}for(D=x;D<this.items.children.length;D++)this.items.children[D].hidden=!0;this.hideShowMoreLessVariantButton=x===this.items.children.length;
return G};
_.a.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.kG(this.computeVariantsDebouncer,_.ny.after(100),this.computeVariants)};
_.a.onShowMoreLessVariantsButtonClick=function(){var x;(x=this.data)!=null&&x.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.a.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.Nq.Object.defineProperties(vE.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var x,G,D=(x=this.data)==null?void 0:(G=x.variantOptionRenderers)==null?void 0:G.find(function(y){return _.Y(y,RvY).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),K,z;
return(z=(K=_.Y(D,RvY))==null?void 0:K.name)!=null?z:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.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"}}}});
vE.prototype.debouncedComputeVariants=vE.prototype.debouncedComputeVariants;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],vE.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],vE.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],vE.prototype,"componentBehavior",void 0);_.q([_.I(_.Lg),_.N("design:type",Object)],vE.prototype,"ironResizableBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],vE.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],vE.prototype,"variantsExpanded",void 0);_.q([_.R(),_.N("design:type",Object)],vE.prototype,"hideShowMoreLessVariantButton",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],vE.prototype,"initialized",void 0);_.q([_.cD("#items"),_.N("design:type",HTMLDivElement)],vE.prototype,"items",void 0);_.q([_.cD("#container"),_.N("design:type",HTMLDivElement)],vE.prototype,"container",void 0);
_.q([_.cD("#more-variants-button"),_.N("design:type",HTMLElement)],vE.prototype,"moreVariantsButton",void 0);_.q([_.U("data"),_.N("design:type",String),_.N("design:paramtypes",[])],vE.prototype,"selectedOptionName",null);_.q([_.yf("data","variantsExpanded"),_.oe("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vE.prototype,"debouncedComputeVariants",null);
_.q([_.U("data"),_.N("design:type",String),_.N("design:paramtypes",[])],vE.prototype,"displayType",null);_.q([_.U("displayType"),_.N("design:type",Object),_.N("design:paramtypes",[])],vE.prototype,"variantItemsClassname",null);vE=_.q([_.d({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],vE);
_.w(vE,"ytd-product-details-variant-renderer",function(){if(MA4!==void 0)return MA4;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return MA4=x},{mode:1});var Jd=function(){return _.n.apply(this,arguments)||this};
_.m(Jd,_.n);
Jd.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"}}}};
_.Nq.Object.defineProperties(Jd.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var x,G,D=(G=_.Y((x=this.data)==null?void 0:x.offersContainerRenderer,SGc))==null?void 0:G.offers;return D!==void 0&&(D==null?void 0:D.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 x,G,D;return((D=(x=this.data)==null?void 0:(G=x.variants)==null?void 0:G.map(function(K){var z,y;K=(y=(z=_.Y(K,UNO))==null?void 0:z.variantOptionRenderers)==null?void 0:y.find(function(W){var e;return((e=_.Y(W,RvY))==null?void 0:e.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var c;return(c=_.Y(K,RvY))==null?void 0:c.name}).filter(function(K){return typeof K==="string"}))!=null?D:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var x,G,D,K=(G=_.Y((x=this.data)==null?void 0:x.shoppingFlaggingRenderer,iPf))==null?void 0:(D=G.reportButton)==null?void 0:D.buttonRenderer;if(K)return{text:K.text,command:K.command,icon:{iconType:"FLAG"},accessibilityData:K.accessibilityData,trackingParams:K.trackingParams,loggingDirectives:K.loggingDirectives}}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Jd.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Jd.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Jd.prototype,"componentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Jd.prototype,"data",void 0);_.q([_.cD("#image-carousel-renderer"),_.N("design:type",Object)],Jd.prototype,"imageCarouselRenderer",void 0);
_.q([_.cD("#hero-offer-renderer"),_.N("design:type",Object)],Jd.prototype,"productDetailsHeroOfferRenderer",void 0);_.q([_.cD("#variants"),_.N("design:type",Object)],Jd.prototype,"productDetailsVariantRenderer",void 0);_.q([_.cD("#offers"),_.N("design:type",Object)],Jd.prototype,"productDetailsOffersContainerRenderer",void 0);_.q([_.cD("#description-renderer"),_.N("design:type",Object)],Jd.prototype,"productDetailsDescriptionRenderer",void 0);
_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Jd.prototype,"showPurchaseData",null);_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Jd.prototype,"showHeroOfferRenderer",null);_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Jd.prototype,"showBrandText",null);_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Jd.prototype,"showOffers",null);
_.q([_.U("showOffers","showPurchaseData"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Jd.prototype,"showBuySeparator",null);_.q([_.U("showOffers","showPurchaseData"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Jd.prototype,"showBuyCard",null);_.q([_.U("data"),_.N("design:type",String),_.N("design:paramtypes",[])],Jd.prototype,"selectedVariantsText",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Jd.prototype,"shoppingReportingButtonData",null);
Jd=_.q([_.d({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],Jd);
_.w(Jd,"ytd-product-details-renderer",function(){if(e78!==void 0)return e78;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return e78=x},{mode:1});var Qk8;var pQj;var VAf;var fY=function(){return _.n.apply(this,arguments)||this};
_.m(fY,_.n);fY.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Nq.Object.defineProperties(fY.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],fY.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],fY.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],fY.prototype,"data",void 0);_.q([_.R(),_.N("design:type",String)],fY.prototype,"formattedAmount",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],fY.prototype,"ariaLabel",void 0);
_.q([_.R({reflectToAttribute:!0}),_.U("data.style"),_.N("design:type",String),_.N("design:paramtypes",[])],fY.prototype,"vcBalanceWidgetStyle",null);fY=_.q([_.HD({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],fY);
_.w(fY,"yt-vc-balance-renderer",function(){if(VAf===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;pQj===void 0&&(pQj=document.createElement("template"));var K=pQj;D.call(G,K.content.cloneNode(!0),x.content.firstChild);VAf=x}x=VAf;return x},{mode:2});_.HH("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var td=function(){return _.n.apply(this,arguments)||this};
_.m(td,_.n);_.Nq.Object.defineProperties(td.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:""}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],td.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],td.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],td.prototype,"data",void 0);_.q([_.R({selectorArgs:["data.vcBalanceEntityKey"],selector:function(x,G){return _.zm(x.entities,"vcBalanceEntity",G)}}),
_.N("design:type",Object)],td.prototype,"vcBalanceEntity",void 0);_.q([_.U("vcBalanceEntity"),_.N("design:type",String),_.N("design:paramtypes",[])],td.prototype,"formattedAmount",null);_.q([_.U("vcBalanceEntity"),_.N("design:type",String),_.N("design:paramtypes",[])],td.prototype,"vcBalanceAriaLabel",null);td=_.q([_.d({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],td);
_.w(td,"ytd-vc-balance-renderer",function(){if(Qk8!==void 0)return Qk8;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Qk8=x},{mode:1});var bk6;var k6=function(){var x=_.n.apply(this,arguments)||this;x.rotation=0;x.isReloading=!1;return x};
_.m(k6,_.n);k6.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
k6.prototype.reset=function(){this.hostElement.style.opacity=""};
k6.prototype.close=function(){var x=this;return _.T(function(G){if(G.nextAddress==1)return _.Z(G,x.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);x.hostElement.style.opacity="0";_.c5(G)})};
k6.prototype.rotationChanged=k6.prototype.rotationChanged;_.q([_.R(),_.N("design:type",Object)],k6.prototype,"rotation",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],k6.prototype,"isReloading",void 0);_.q([_.cD("#icon"),_.N("design:type",HTMLElement)],k6.prototype,"icon",void 0);_.q([_.yf("rotation"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],k6.prototype,"rotationChanged",null);
k6=_.q([_.d({disableElementRegistration:!0,is:"ytd-refresh"})],k6);
_.w(k6,"ytd-refresh",function(){if(bk6!==void 0)return bk6;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return bk6=x},{mode:1});var Lrc;var PE=function(){return _.n.apply(this,arguments)||this};
_.m(PE,_.n);PE.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"}}}};
PE.prototype.dataChanged=function(){if(this.data){var x=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var G=_.k$(this.data.banner.thumbnails,this.hostElement.clientWidth);G&&(G.indexOf("//")===0&&(G="https:"+G),this.hasBannerArt=!0,_.K7(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+G+")"}))}this.hasBannerArt!==x&&_.kA(this.hostElement).querySelector("#header").fire("iron-resize")}};
PE.prototype.updateSelectedFromBinding=function(x){this.selected=x.detail.value};
PE.prototype.dataChanged=PE.prototype.dataChanged;_.q([_.I(dNO),_.N("design:type",Object)],PE.prototype,"ytdTabbedHeaderBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],PE.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.jy),_.N("design:type",Object)],PE.prototype,"ytdGridStateAwareBehavior",void 0);_.q([_.I(_.XL.YtdGuideStateAwareBehavior),_.N("design:type",Object)],PE.prototype,"ytdGuideStateAwareBehavior",void 0);
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],PE.prototype,"componentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],PE.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Number)],PE.prototype,"selected",void 0);_.q([_.R(),_.N("design:type",Boolean)],PE.prototype,"active",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],PE.prototype,"hasBannerArt",void 0);
_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],PE.prototype,"dataChanged",null);PE=_.q([_.d({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],PE);
_.w(PE,"ytd-interactive-tabbed-header-renderer",function(){if(Lrc!==void 0)return Lrc;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Lrc=x},{mode:1});var BN8;var EW=function(){return _.n.apply(this,arguments)||this};
_.m(EW,_.n);EW.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
EW.prototype.computeActionsAlignment=function(x){return(x==null?void 0:x.actionsAlignment)||""};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],EW.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],EW.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],EW.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.N("design:type",String)],EW.prototype,"actionsAlignment",void 0);
EW=_.q([_.d({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],EW);
_.w(EW,"ytd-page-footer-renderer",function(){if(BN8!==void 0)return BN8;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return BN8=x},{mode:1});var rA8;var skc;var hd=function(){var x=_.n.apply(this,arguments)||this;x.isEditing=!1;x.useSlot=!1;x.isMultiline=!1;return x};
_.m(hd,_.n);_.a=hd.prototype;_.a.onKeydown=function(x){if(x.keyCode===13&&!this.isMultiline)this.onSave();else if(x.keyCode===27)this.onCancel()};
_.a.computeComponentStyle=function(x){return(x==null?0:x.style)?x.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.a.computeisMultiline=function(x){if(this.multilineOverride!==void 0)return this.multilineOverride;var G,D;return!!(x==null?0:(G=x.formField)==null?0:(D=G.textInputFormFieldRenderer)==null?0:D.isMultiline)};
_.a.computeTextDisplayed=function(x,G){if(x)return x;if(G)return G};
_.a.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.a.onSave=function(){if(this.textForm.validate()){this.textForm.save();var x=this.textForm.value;if(x)this.set("data.textDisplayed",_.gK(x));else{var G;((G=this.data)==null?0:G.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.Xt("inline-form-changed",this.data));this.isEditing=!1}};
_.a.onCancel=function(){var x=_.u7(this.data.textDisplayed);x===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(x);this.isEditing=!1};
hd.prototype.onKeydown=hd.prototype.onKeydown;_.q([_.I(_.Tg.YtEventForwardingBehavior),_.N("design:type",Object)],hd.prototype,"ytEventForwardingBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],hd.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],hd.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],hd.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],hd.prototype,"isEditing",void 0);_.q([_.R(),_.N("design:type",Object)],hd.prototype,"useSlot",void 0);_.q([_.R(),_.N("design:type",Boolean)],hd.prototype,"multilineOverride",void 0);_.q([_.R(),_.N("design:type",Boolean)],hd.prototype,"enableOverlayTheme",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.N("design:type",String)],hd.prototype,"componentStyle",void 0);
_.q([_.R({computed:"computeisMultiline(data)"}),_.N("design:type",Object)],hd.prototype,"isMultiline",void 0);_.q([_.cD("#text-form"),_.N("design:type",Object)],hd.prototype,"textForm",void 0);_.q([_.oe("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],hd.prototype,"onKeydown",null);hd=_.q([_.d({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],hd);
_.w(hd,"ytd-inline-form-renderer",function(){if(skc!==void 0)return skc;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return skc=x},{mode:1});var Ylc;var xg=function(){var x=_.n.apply(this,arguments)||this;x.previousSelectValue=void 0;x.selectedItemMessage=void 0;return x};
_.m(xg,_.n);xg.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
xg.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var x,G,D,K,z=(x=this.data)==null?void 0:(G=x.dropdown)==null?void 0:(D=G.dropdownRenderer)==null?void 0:(K=D.entries)==null?void 0:K.map(function(W){return W.privacyDropdownItemRenderer});
x=_.l(z!=null?z:[]);for(G=x.next();!G.done;G=x.next())if((G=G.value)&&G.int32Value===this.selectedValue){this.selectedItemMessage=G.itemMessage;break}}else this.selectedItemMessage=void 0;var y;(y=this.onValueChanged)==null||y.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var c;(c=this.data)!=null&&c.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
xg.prototype.onValueChangedForSelectedValue=function(x){this.selectedValue=x.detail.value};
xg.prototype.selectedValueChanged=xg.prototype.selectedValueChanged;_.q([_.I(_.Tg.YtEventForwardingBehavior),_.N("design:type",Object)],xg.prototype,"ytEventForwardingBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],xg.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],xg.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],xg.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],xg.prototype,"data",void 0);_.q([_.R(),_.N("design:type",String)],xg.prototype,"theme",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Number)],xg.prototype,"selectedValue",void 0);_.q([_.R(),_.N("design:type",Function)],xg.prototype,"onValueChanged",void 0);
_.q([_.Z6("selectedValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xg.prototype,"selectedValueChanged",null);xg=_.q([_.d({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],xg);
_.w(xg,"ytd-dropdown-form-field-renderer",function(){if(Ylc!==void 0)return Ylc;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Ylc=x},{mode:_.Ge("kevlar_poly_si_batch_j025")?1:2});var mex;var Gt=function(){return _.n.apply(this,arguments)||this};
_.m(Gt,_.n);_.Nq.Object.defineProperties(Gt.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var x=[],G=_.l(this.data||[]),D=G.next();!D.done;D=G.next())(D=_.Y(D.value,gZb))&&x.push(D);return x}}});
_.q([_.R(),_.N("design:type",Array)],Gt.prototype,"data",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Gt.prototype,"byline",null);Gt=_.q([_.d({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],Gt);
_.w(Gt,"ytd-playlist-byline-renderer",function(){if(mex!==void 0)return mex;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return mex=x},{mode:1});var HkT;var Ds=function(){var x=_.n.apply(this,arguments)||this;x.rtlBullet=_.B("web_playlist_stats_rtl_bullet_icon_killswitch");x.modern=_.B("web_modern_buttons");x.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return x};
_.m(Ds,_.n);_.a=Ds.prototype;_.a.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"}}}}};
_.a.attached=function(){};
_.a.computeIsCustomThumbnail=function(x){return x?!!x.playlistCustomThumbnailRenderer:!1};
_.a.onYtNavigate=function(x,G){if(G&&G.actions&&G.actions.indexOf("shuffle")>-1){x=_.Eo().resolve(_.HG);var D=G.tempData||{};D.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);G.tempData=D;x.isShuffleNextPlaylist=!0}};
_.a.onUpdatePlaylistAction=function(x){var G;x=(G=_.Y(x,_.i6i))==null?void 0:G.updatedRenderer;if(G=_.Y(x,mT))this.data=G};
_.a.computeStyleType=function(x){return x?x.toLowerCase().replace(/_/g,"-"):""};
_.a.computeThumbnailWidth=function(x){return x==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.a.computeHideThumbnailAria=function(x){if(x==null?0:x.thumbnailOverlays)for(var G=0;G<x.thumbnailOverlays.length;G++){var D=void 0;if((D=x.thumbnailOverlays[G])==null?0:D.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
Ds.prototype.onYtNavigate=Ds.prototype.onYtNavigate;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Ds.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],Ds.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Ds.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Ds.prototype,"ytComponentBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],Ds.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Ds.prototype,"rtlBullet",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.N("design:type",String)],Ds.prototype,"styleType",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.N("design:type",Number)],Ds.prototype,"thumbnailWidth",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Ds.prototype,"modern",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.N("design:type",Boolean)],Ds.prototype,"isCustomThumbnail",void 0);_.q([_.oe("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[Event,Object]),_.N("design:returntype")],Ds.prototype,"onYtNavigate",null);
Ds=_.q([_.d({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],Ds);
_.w(Ds,"ytd-playlist-sidebar-primary-info-renderer",function(){if(HkT!==void 0)return HkT;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return HkT=x},{mode:1});var $ex;var Kn=function(){return _.n.apply(this,arguments)||this};
_.m(Kn,_.n);Kn.prototype.computeOwnerVisibility=function(x){return!(!x.videoOwner&&!x.button)};
Kn.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"}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Kn.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Kn.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Kn.prototype,"data",void 0);Kn=_.q([_.d({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],Kn);
_.w(Kn,"ytd-playlist-sidebar-secondary-info-renderer",function(){if($ex!==void 0)return $ex;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return $ex=x},{mode:1});var Fr4;var zt=function(){var x=_.n.apply(this,arguments)||this;x.expanded=!1;x.isCompact=!1;return x};
_.m(zt,_.n);_.a=zt.prototype;_.a.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.a.dataChanged=function(){this.data&&_.n9(_.kA(this.text),_.NdE(_.fjh,_.u7(this.data.text||null)))};
_.a.computeAutoScrollEnabled=function(x,G){return x&&!G};
_.a.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.a.toggleOnTap=function(){this.expanded=!this.expanded};
zt.prototype.expandedChanged=zt.prototype.expandedChanged;zt.prototype.dataChanged=zt.prototype.dataChanged;_.q([_.I(_.OOf),_.N("design:type",Object)],zt.prototype,"ytdAutoScrollBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],zt.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],zt.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],zt.prototype,"expanded",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],zt.prototype,"isCompact",void 0);_.q([_.R({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.N("design:type",Boolean)],zt.prototype,"autoScrollEnabled",void 0);_.q([_.cD("#text"),_.N("design:type",Object)],zt.prototype,"text",void 0);_.q([_.cD("#expander-icon"),_.N("design:type",Object)],zt.prototype,"expanderIcon",void 0);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zt.prototype,"dataChanged",null);_.q([_.yf("expanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zt.prototype,"expandedChanged",null);zt=_.q([_.d({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],zt);
_.w(zt,"ytd-channel-legal-info-renderer",function(){if(Fr4!==void 0)return Fr4;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Fr4=x},{mode:1});var Ci8;var I5i=_.Wg("DOWNLOAD",{},"Download"),jkO=_.Wg("DOWNLOADING",{},"Downloading"),Okx=_.Wg("DOWNLOADED",{},"Downloaded"),aC=function(){var x=_.n.apply(this,arguments)||this;x.downloadProgress=0;x.isDownloadComplete=!1;x.transferState="TRANSFER_STATE_UNKNOWN";return x};
_.m(aC,_.n);_.a=aC.prototype;_.a.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.a.dataChanged=function(){var x;(x=this.data)!=null&&x.tooltip||(x=_.I_(_.wK().getState(),this.playlistId),this.updateButtonState(x))};
_.a.computePlaylistId=function(x){return x};
_.a.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.a.updateButtonState=function(x){if(this.data&&(this.data.tooltip!==jkO||!_.Z2(x))){this.isDownloadComplete=!1;switch(x){case "TRANSFER_STATE_UNKNOWN":x=I5i;var G="OFFLINE_DOWNLOAD";var D="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":x=Okx;G="OFFLINE_PIN";D="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":x=jkO;G="OFFLINE_DOWNLOADING_ZERO";D="ACTION_REMOVE_WITH_PROMPT";
break;default:x=I5i,G="OFFLINE_DOWNLOAD",D="ACTION_ADD"}var K=Object.assign({},this.data);K.tooltip=x;K.accessibilityData={accessibilityData:{label:x}};K.icon={iconType:G};K.size="SIZE_DEFAULT";_.Y(K.command,_.oO)&&(_.Y(K.command,_.oO).action=D);this.set("data",K)}};
_.a.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var x="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?x="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?x="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?x="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?x="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?x="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(x="OFFLINE_PIN",this.isDownloadComplete=!0);var G;x!==((G=this.data.icon)==null?void 0:G.iconType)&&(G=Object.assign({},this.data),G.tooltip=jkO,G.accessibilityData={accessibilityData:{label:jkO}},G.icon={iconType:x},_.Y(G.command,_.oO)&&(_.Y(G.command,_.oO).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",G))}};
aC.prototype.updateProgress=aC.prototype.updateProgress;aC.prototype.onTransferStateChanged=aC.prototype.onTransferStateChanged;aC.prototype.dataChanged=aC.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],aC.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],aC.prototype,"ytdReduxBehavior",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],aC.prototype,"forceIconButton",void 0);
_.q([_.R({value:!0}),_.N("design:type",Boolean)],aC.prototype,"forceIconOnly",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],aC.prototype,"overrides",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],aC.prototype,"buttonTooltipPosition",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],aC.prototype,"styleActionButton",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],aC.prototype,"disableTextTransform",void 0);
_.q([_.R({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.N("design:type",String)],aC.prototype,"playlistId",void 0);_.q([_.R(),_.N("design:type",Object)],aC.prototype,"data",void 0);_.q([_.R({selector:_.V1f,selectorArgs:["playlistId"]}),_.N("design:type",Object)],aC.prototype,"downloadProgress",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],aC.prototype,"isDownloadComplete",void 0);
_.q([_.R({selector:_.I_,selectorArgs:["playlistId"]}),_.N("design:type",String)],aC.prototype,"transferState",void 0);_.q([_.R({value:!0}),_.N("design:type",Boolean)],aC.prototype,"showTooltips",void 0);_.q([_.R({value:!0}),_.N("design:type",Boolean)],aC.prototype,"sendCommandWhenDisabled",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],aC.prototype,"disabled",void 0);
_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aC.prototype,"dataChanged",null);_.q([_.Z6("transferState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aC.prototype,"onTransferStateChanged",null);_.q([_.Z6("downloadProgress"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aC.prototype,"updateProgress",null);
aC=_.q([_.d({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],aC);
_.w(aC,"ytd-download-playlist-button-renderer",function(){if(Ci8!==void 0)return Ci8;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Ci8=x},{mode:1});var XQC;_.tn(_.I4h,"thumbnail-overlay-button-view-model",{props:{data:_.ik,lockupExperiments:_.ik}});var oC=function(){var x=_.n.apply(this,arguments)||this;x.isSquare=!1;x.isVertical=!1;return x};
_.m(oC,_.n);oC.prototype.computeIsSquare=function(x){return x!=null&&x.thumbnail?ZPj(x.thumbnail)==="SQUARE":!1};
oC.prototype.computeIsVertical=function(x){return x!=null&&x.thumbnail?ZPj(x.thumbnail)==="VERTICAL":!1};
oC.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],oC.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],oC.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.N("design:type",Object)],oC.prototype,"isSquare",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.N("design:type",Object)],oC.prototype,"isVertical",void 0);
_.q([_.R(),_.N("design:type",Object)],oC.prototype,"data",void 0);oC=_.q([_.d({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],oC);
_.w(oC,"ytd-hero-playlist-thumbnail-renderer",function(){if(XQC!==void 0)return XQC;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return XQC=x},{mode:1});var yI=function(){var x=_.n.apply(this,arguments)||this;x.isDarkTheme=!1;x.isUltraWide=!1;x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return x};
_.m(yI,_.n);_.a=yI.prototype;_.a.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.Eo();var x;(x=_.Eo().resolve(_.P6(_.go)))!=null&&(x.headerElement=this.hostElement)};
_.a.detached=function(){var x;(x=_.Eo().resolve(_.P6(_.go)))!=null&&(x.headerElement=void 0)};
_.a.onUpdateHeader=function(x){(x=x.detail)&&this.set("data",x)};
_.a.computeTextDisplayed=function(x){if(x)return x.textDisplayed?x.textDisplayed:x.placeholder};
_.a.gradientColorToLinearGradientStop=function(x){var G=this.isDarkTheme?x.darkThemeColor:x.lightThemeColor;return G?_.jT(G)+" "+((x==null?void 0:x.startLocation)||0)*100+"%":"transparent"};
_.a.onWindowResize=function(){var x;((x=this.data)==null?0:x.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.a.onIronResize=function(x){this.isUltraWide=!x.detail.value};
_.a.onDarkModeToggledAction=function(x){this.isDarkTheme=x};
_.a.onUpdatePlaylistName=function(x){var G=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},x.detail.value));_.w1(this,function(){var D;(D=G.editableTitle)==null||D.resize()})};
_.a.onUpdatePlaylistDescription=function(x){var G=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},x.detail.value));_.w1(this,function(){var D;(D=G.editableDescriptionInlineExpander)==null||D.resize()})};
_.a.getCinematicData=function(x){return _.Y(x==null?void 0:x.cinematicContainer,_.bc)};
_.Nq.Object.defineProperties(yI.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 x,G=(x=this.getCinematicData(this.data))==null?void 0:x.config;return(x=this.isDarkTheme?G==null?void 0:G.darkThemeBackgroundColor:G==null?void 0:G.lightThemeBackgroundColor)?"background-color:"+_.In(x)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var x;return _.Y((x=this.data)==null?void 0:x.descriptionForm,XWj)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var x=this,G,D,K;return"background:linear-gradient(to bottom, "+(((K=(G=this.getCinematicData(this.data))==null?void 0:(D=G.gradientColorConfig)==null?void 0:D.map(function(z){return x.gradientColorToLinearGradientStop(z)}))==null?void 0:K.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var x;return _.u7((x=this.data)==null?void 0:x.descriptionTapText)}}});
yI.prototype.onUpdateHeader=yI.prototype.onUpdateHeader;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],yI.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],yI.prototype,"actionHandlerBehavior",void 0);_.q([_.cD("#description-inline-expander"),_.N("design:type",Object)],yI.prototype,"descriptionInlineExpander",void 0);
_.q([_.cD("#editable-description-inline-expander"),_.N("design:type",Object)],yI.prototype,"editableDescriptionInlineExpander",void 0);_.q([_.R(),_.N("design:type",Object)],yI.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],yI.prototype,"isUltraWide",void 0);_.q([_.cD("#editable-title-display"),_.N("design:type",Object)],yI.prototype,"editableTitle",void 0);_.q([_.U("isUltraWide"),_.N("design:type",Object),_.N("design:paramtypes",[])],yI.prototype,"maxDescriptionLines",null);
_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],yI.prototype,"noCinematicData",null);_.q([_.oe("yt-new-playlist-header"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],yI.prototype,"onUpdateHeader",null);_.q([_.U("data","isDarkTheme"),_.N("design:type",Object),_.N("design:paramtypes",[])],yI.prototype,"backgroundStyle",null);
_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],yI.prototype,"descriptionFormData",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],yI.prototype,"getDropdownTheme",null);_.q([_.U("data","isDarkTheme"),_.N("design:type",String),_.N("design:paramtypes",[])],yI.prototype,"gradientStyle",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],yI.prototype,"descriptionTapText",null);
yI=_.q([_.d({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],yI);
_.w(yI,"ytd-playlist-header-renderer",function(){if(rA8!==void 0)return rA8;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return rA8=x},{mode:_.Ge("kevlar_poly_si_batch_j078")?1:2});var AAf;var Uej;var lw=function(){return _.n.apply(this,arguments)||this};
_.m(lw,_.n);lw.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],lw.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],lw.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],lw.prototype,"data",void 0);lw=_.q([_.d({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],lw);
_.w(lw,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(Uej!==void 0)return Uej;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Uej=x},{mode:1});var c7=function(){return _.n.apply(this,arguments)||this};
_.m(c7,_.n);
c7.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}}}}};
c7.prototype.computeUsePremiumShowStyle=function(x){if(!x||!x.items)return!1;for(var G=0;G<x.items.length;G++)if(_.Y(x.items[G],mT)){var D=void 0;return((D=_.Y(x.items[G],mT))==null?void 0:D.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],c7.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],c7.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],c7.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.N("design:type",Boolean)],c7.prototype,"usePremiumShowStyle",void 0);
c7=_.q([_.d({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],c7);
_.w(c7,"ytd-playlist-sidebar-renderer",function(){if(AAf!==void 0)return AAf;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return AAf=x},{mode:1});var R7x;var Sl4;var nUc=function(x,G,D,K,z,y,c,W){this.minWidth=x;this.minHeight=G;this.recommendedWidth=D;this.recommendedHeight=K;this.JSC$19478_maxFileSize=z;this.title=y;this.bannerGalleryTitle=c;this.channelId=W;this.picker_=null;x=_.Zh$("yt-banner");G=x.addView;D=(new rTj("youtubebanner")).addUploadMetadata("silo_id","19");D.opts.ytMaxFileSize=this.JSC$19478_maxFileSize;K=this.recommendedHeight;D.opts.ytRecWidth=this.recommendedWidth;D.opts.ytRecHeight=K;G.call(x,D);x.addView(new _.M9);G=x.addView;D=new _.M9;
D.opts.type="ytbanner";G.call(x,D.JSC$8081_setLabel(this.bannerGalleryTitle));G=x.setTitle(this.title).setSize(1E3);G.urlParamMap_.set("thumbs","orig");D=this.minWidth;K=this.minHeight;if(isNaN(D)||isNaN(K))throw Error("kb`"+D+"`"+K);G.urlParamMap_.set("minSize",D+"x"+K);G.urlParamMap_.set("cropMode","ytcb");this.builder_=x};
nUc.prototype.open=function(){var x=this;return new _.T1(function(G,D){_.H4u(x.builder_,function(K){K.action=="picked"?G(K):K.action=="cancel"&&D(Error("Ul"))});
x.picker_&&x.picker_.dispose();x.picker_=x.builder_.build();x.picker_.setVisible(!0)})};
nUc.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var ikY=function(x){this.channelId=x},gUb=function(x,G){var D="";
G.viewToken&&(D=G.viewToken[2].type);var K=G.docs[0];G=K.crop;x={channel_id:x.channelId,fife_url:K.thumbnails[0].url,photo_id:K.id,is_gallery_image:D=="ytbanner"};G&&(x.crop_top=G.top,x.crop_right=G.right,x.crop_bottom=G.bottom,x.crop_left=G.left);return _.stO("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:x})};var Tt=function(){var x=_.n.apply(this,arguments)||this;x.ariaLabel=null;return x};
_.m(Tt,_.n);_.a=Tt.prototype;_.a.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.a.detached=function(){this.picker&&this.picker.dispose()};
_.a.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.a.computeAriaLabel=function(x){return x};
_.a.onTap=function(){var x=this,G;if((G=this.data)==null||!G.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new nUc(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 D;(D=this.picker)==null||D.open().then(function(K){x.handleBannerPicked(K)},function(){})}};
_.a.handleBannerPicked=function(x){var G=this;this.uploader||(this.uploader=new ikY(this.data.channelId||""));this.message=this.data.uploadingText;gUb(this.uploader,x).then(function(D){G.handleBannerUploadSucceeded(D)},function(D){G.handleBannerUploadFailed(D)})};
_.a.handleBannerUploadSucceeded=function(x){x&&x.errors?this.handleBannerUploadFailed(x):(_.h$(this.hostElement,"yt-banner-updated",x),this.message=null)};
_.a.handleBannerUploadFailed=function(x){this.message=x&&x.errors&&x.errors.length?x.errors[0]:null};
Tt.prototype.dataChanged=Tt.prototype.dataChanged;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Tt.prototype,"componentBehavior",void 0);_.q([_.I(_.sd),_.N("design:type",Object)],Tt.prototype,"ironButtonState",void 0);_.q([_.R(),_.N("design:type",Object)],Tt.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.N("design:type",Object)],Tt.prototype,"ariaLabel",void 0);
_.q([_.R(),_.N("design:type",Object)],Tt.prototype,"message",void 0);_.q([_.R(),_.N("design:type",Object)],Tt.prototype,"picker",void 0);_.q([_.R(),_.N("design:type",Object)],Tt.prototype,"uploader",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tt.prototype,"dataChanged",null);Tt=_.q([_.d({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],Tt);
_.w(Tt,"ytd-channel-banner-editor-renderer",function(){if(Sl4!==void 0)return Sl4;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Sl4=x},{mode:1});var u3C;var deC=_.gv(["#"]),W7=function(){return _.n.apply(this,arguments)||this};
_.m(W7,_.n);W7.prototype.computeHrefWithDefault=function(x){return this.ytComponentBehavior.computeHref_(x,!0)||_.s2(deC)};
W7.prototype.dataChanged=function(){var x=this.data;x&&x.targetId&&_.cKZ(_.e$(),x.targetId,this.moreIcon)};
W7.prototype.dataChanged=W7.prototype.dataChanged;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],W7.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],W7.prototype,"data",void 0);_.q([_.cD("#more-icon"),_.N("design:type",Object)],W7.prototype,"moreIcon",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],W7.prototype,"dataChanged",null);
W7=_.q([_.d({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],W7);
_.w(W7,"ytd-channel-tagline-renderer",function(){if(u3C!==void 0)return u3C;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return u3C=x},{mode:1});var wQb;var ec=function(){return _.n.apply(this,arguments)||this};
_.m(ec,_.n);_.a=ec.prototype;_.a.ready=function(){var x=this;_.kA(this.hostElement).querySelector("#form").addEventListener("submit",function(G){x.onSubmit(G)})};
_.a.onDataChanged=function(){var x;((x=this.data)==null?0:x.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.a.onIconButtonKeydown=function(x){x.keyCode===13&&this.iconButton.click()};
_.a.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.a.openOnClickHandler=function(){this.input.focus()};
_.a.onSubmit=function(x){x.preventDefault();return!1};
_.a.submitOnEnterKeyUp=function(x){var G;if(x.keyCode===13&&((G=this.data)==null?0:G.expandedText)){x=this.data.endpoint;G=_.YS.unsafeClone(x);var D;((D=_.Y(G==null?void 0:G.commandMetadata,_.fC))==null?0:D.url)?(_.Y(G.commandMetadata,_.fC).url=_.U9(_.Y(G.commandMetadata,_.fC).url,"query",this.data.expandedText),_.Y(G,_.TU)&&(_.Y(G,_.TU).query=this.data.expandedText),_.h$(this.hostElement,"yt-navigate",{endpoint:G,tempData:{disableCache:!0}})):(D=new _.LL("Error: Trying to navigate to an endpoint without url",
x),_.I4(D))}};
_.a.updateDataExpandedTextFromBinding=function(x){this.set("data.expandedText",x.detail.value)};
_.Nq.Object.defineProperties(ec.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.B("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
ec.prototype.onDataChanged=ec.prototype.onDataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],ec.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.Vrf),_.N("design:type",Object)],ec.prototype,"ytdExpandableInputBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],ec.prototype,"data",void 0);_.q([_.cD("#input"),_.N("design:type",Object)],ec.prototype,"input",void 0);_.q([_.cD("#icon-button"),_.N("design:type",HTMLElement)],ec.prototype,"iconButton",void 0);
_.q([_.R(),_.N("design:type",String),_.N("design:paramtypes",[])],ec.prototype,"searchIcon",null);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ec.prototype,"onDataChanged",null);ec=_.q([_.d({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],ec);
var M98=_.x$()(ec,"ytd-expandable-tab-renderer",function(){if(wQb===void 0){var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="[[searchIcon]]" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);wQb=x}x=wQb;return x},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var qlO;var Zs=function(){var x=_.n.apply(this,arguments)||this;x.avatarSize=80;x.ariaLabel=_.Wg("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return x};
_.m(Zs,_.n);Zs.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Zs.prototype.computeHref=function(x){var G;return((G=_.Y(x,_.iV))==null?0:G.url)?this.componentBehavior.computeHref_(x):null};
Zs.prototype.onTap=function(){var x,G;(x=this.data)==null||!x.editAvatarServiceEndpoint||((G=_.Y(this.data.editAvatarServiceEndpoint,_.iV))==null?0:G.url)||_.Eo().resolve(_.hm).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.q([_.I(_.sd),_.N("design:type",Object)],Zs.prototype,"ironButtonState",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Zs.prototype,"componentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Zs.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],Zs.prototype,"avatarSize",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],Zs.prototype,"ariaLabel",void 0);Zs=_.q([_.d({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],Zs);
_.w(Zs,"ytd-channel-avatar-editor",function(){if(qlO!==void 0)return qlO;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return qlO=x},{mode:1});var NNc=_.Nv(function(x){var G=x.data;var D=x.noPadding;var K=x.enableBanner;var z=x.cinematicContainerTopbarOffset;var y=x.allowCinematicContainerOverflow;var c=x.displayAsSidebar;x=x.className;_.$9(function(){G().tagManagerId&&(_.pF(G().tagManagerId,_.Am("GL")),BLY(G().tagManagerId))});
var W=_.lA(pW4,function(){return G().pageHeaderEntityKey});
return _.M("yt-page-header-renderer",{class:_.ym("page-header-renderer-wiz",x)},_.M(_.bA,{data:function(){var e;return((e=W())==null?0:e.header)?W().header:(c==null?0:c())&&G().sidebarContent?G().sidebarContent:G().content}},{pageHeaderViewModel:function(e){return _.M(_.vNu,{data:e.data,
noPadding:D,enableBanner:K,cinematicContainerTopbarOffset:z,allowCinematicContainerOverflow:y,displayAsSidebar:function(){return(c==null?void 0:c())&&G().enableSidebarView}})}}))},"Ei");
NNc.idomCompat=!0;_.tn(NNc,"yt-page-header-renderer",{props:{data:_.ik,noPadding:_.ik,enableBanner:_.ik,cinematicContainerTopbarOffset:_.ik,allowCinematicContainerOverflow:_.ik,displayAsSidebar:_.ik,className:_.ik}});_.tn(_.q07,"yt-image-banner-view-model",{props:{data:_.ik,isPositionRelative:_.ik}});_.tn(_.lWu,"yt-tab-group-shape",{props:{shape:_.ik}});var M8=function(){var x=_.n.apply(this,arguments)||this;x.expandableCustomTabRenderable=function(G){return Qzc(G,function(){return void x.onSearchNavigate()})};
x.isRichGrid=!1;x.isConstrainedList=!1;x.richGridMiniMode=!1;x.richGridStyle="RICH_GRID_STYLE_UNKNOWN";x.isRichGridShorts=!1;x.responsiveSizing="COMPACT";x.disableGridStateAware=!1;x.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return x};
_.m(M8,_.n);_.a=M8.prototype;_.a.computeHeaderDisabled=function(x,G){return G||!x||this.tabsHidden};
_.a.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.a.computeIsRichGridShorts=function(x){return x==="RICH_GRID_STYLE_SHORTS_GRID"||x==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.a.computeImageBannerViewModel=function(){var x,G;return _.Y((G=_.Y((x=this.data)==null?void 0:x.content,_.j88))==null?void 0:G.banner,_.Hgs)};
_.a.computeHasCinematicContainer=function(){var x,G;return!((G=_.Y((x=this.data)==null?void 0:x.content,_.j88))==null||!G.background)};
_.a.handleHeaderResize=function(){var x=_.kA(this.hostElement).querySelector("#header");x&&_.h$(x,"iron-resize")};
_.a.handleInsertTabCommand=function(x){var G=_.Y(x,uUk);G&&(G.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(D){return D.tabRenderer&&D.tabRenderer.tabIdentifier===G.tabIdentifier})||this.splice("tabs",G.tabIndex||-1,0,G.tab))};
_.a.handleRefreshChannelTabAction=function(x){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===x&&_.h$(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.a.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.K7(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.a.observerRichGridSlimItemsPerRow=function(){_.K7(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.a.updateCssVars=function(){this.richGridItemsPerRow&&_.K7(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Gz("rich_grid_max_item_width",500))+16)-16+"px"})};
_.a.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.K7(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.a.onDataChanged=function(){this.handleHeaderResize()};
_.a.onWindowResize=function(){this.handleHeaderResize()};
_.a.onFocusedChanged=function(x){(x=_.uo(x))&&x.is==="tp-yt-paper-tab"&&x.hasRipple()&&(x.getRipple().holdDown=!x.pointerDown&&x.focused)};
_.a.updateSelectedFromBinding=function(x){this.ytdTabbedHeaderBehavior.selected=x.detail.value};
_.a.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.Nq.Object.defineProperties(M8.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:bPf(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.imageBannerViewModel)==null?void 0:x.style)==="IMAGE_BANNER_STYLE_INSET"}}});
M8.prototype.onDataChanged=M8.prototype.onDataChanged;M8.prototype.updateCssVarsForResponsiveGrid=M8.prototype.updateCssVarsForResponsiveGrid;M8.prototype.updateCssVars=M8.prototype.updateCssVars;M8.prototype.observerRichGridSlimItemsPerRow=M8.prototype.observerRichGridSlimItemsPerRow;M8.prototype.observerRichGridItemsPerRow=M8.prototype.observerRichGridItemsPerRow;_.q([_.I(_.jy),_.N("design:type",Object)],M8.prototype,"ytdGridStateAwareBehavior",void 0);
_.q([_.I(dNO),_.N("design:type",Object)],M8.prototype,"ytdTabbedHeaderBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],M8.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],M8.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.XL.YtdGuideStateAwareBehavior),_.N("design:type",Object)],M8.prototype,"ytdGuideStateAwareBehavior",void 0);
_.q([_.I(_.$l),_.N("design:type",Object)],M8.prototype,"ytdReduxBehavior",void 0);_.q([_.cD("#tabs"),_.N("design:type",Object)],M8.prototype,"tabsElement",void 0);_.q([_.R(),_.N("design:type",Array)],M8.prototype,"tabs",void 0);_.q([_.R(),_.N("design:type",Object)],M8.prototype,"expandableCustomTabRenderable",void 0);_.q([_.U("tabs.*"),_.N("design:type",Object),_.N("design:paramtypes",[])],M8.prototype,"tabGroupShape",null);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],M8.prototype,"isRichGrid",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],M8.prototype,"isConstrainedList",void 0);_.q([_.R({reflectToAttribute:!0,selector:_.Y_}),_.N("design:type",Object)],M8.prototype,"richGridMiniMode",void 0);_.q([_.R({selector:function(x){return x.ui.richGridStyle}}),
_.N("design:type",Object)],M8.prototype,"richGridStyle",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.N("design:type",Object)],M8.prototype,"isRichGridShorts",void 0);_.q([_.R({selector:_.m8}),_.N("design:type",Number)],M8.prototype,"richGridItemsPerRow",void 0);_.q([_.R({selector:function(x){return x.ui.richGridContainerWidth}}),
_.N("design:type",Number)],M8.prototype,"richGridContainerWidth",void 0);_.q([_.R({selector:_.KPD}),_.N("design:type",Number)],M8.prototype,"richGridSlimItemsPerRow",void 0);_.q([_.R(),_.N("design:type",Object)],M8.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],M8.prototype,"responsiveSizing",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],M8.prototype,"disableGridStateAware",void 0);
_.q([_.R({computed:"computeImageBannerViewModel(data)"}),_.N("design:type",Object)],M8.prototype,"imageBannerViewModel",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.N("design:type",Boolean)],M8.prototype,"hasCinematicContainer",void 0);_.q([_.R({selector:_.Kuj,reflectToAttribute:!0}),_.N("design:type",Boolean)],M8.prototype,"guideIsVisibleButNotPersistent",void 0);
_.q([_.R({reflectToAttribute:!0}),_.U("imageBannerViewModel"),_.N("design:type",Object),_.N("design:paramtypes",[])],M8.prototype,"hasBanner",null);_.q([_.R({reflectToAttribute:!0}),_.U("imageBannerViewModel"),_.N("design:type",Object),_.N("design:paramtypes",[])],M8.prototype,"hasInsetBanner",null);_.q([_.R({computed:"computeTabsHidden(tabs)",value:!0}),_.N("design:type",Boolean)],M8.prototype,"tabsHidden",void 0);
_.q([_.yf("richGridItemsPerRow","isRichGrid"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],M8.prototype,"observerRichGridItemsPerRow",null);_.q([_.yf("richGridSlimItemsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],M8.prototype,"observerRichGridSlimItemsPerRow",null);
_.q([_.yf("richGridItemsPerRow","richGridMiniMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],M8.prototype,"updateCssVars",null);_.q([_.yf("richGridContainerWidth"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],M8.prototype,"updateCssVarsForResponsiveGrid",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],M8.prototype,"onDataChanged",null);
M8=_.q([_.d({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],M8);
_.w(M8,"ytd-tabbed-page-header",function(){if(R7x!==void 0)return R7x;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return R7x=x},{mode:1});var vUc;var QI=function(){return _.n.apply(this,arguments)||this};
_.m(QI,_.n);QI.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.K7(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.Nq.Object.defineProperties(QI.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var x,G;return this.componentBehavior.computeIcon_(((G=_.Y((x=this.data)==null?void 0:x.badge,_.LH9))==null?void 0:G.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var x,G;return(G=_.Y((x=this.data)==null?void 0:x.badge,_.LH9))==null?void 0:G.label}}});
QI.prototype.observerRichGridItemsPerRow=QI.prototype.observerRichGridItemsPerRow;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],QI.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],QI.prototype,"componentBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],QI.prototype,"ytdReduxBehavior",void 0);_.q([_.R({reflectToAttribute:!0,selector:_.Y_}),_.N("design:type",Boolean)],QI.prototype,"richGridMiniMode",void 0);
_.q([_.R({selector:_.m8}),_.N("design:type",Number)],QI.prototype,"richGridItemsPerRow",void 0);_.q([_.R(),_.N("design:type",Object)],QI.prototype,"data",void 0);_.q([_.yf("richGridItemsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],QI.prototype,"observerRichGridItemsPerRow",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],QI.prototype,"badgeIconName",null);
_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],QI.prototype,"badgeLabel",null);QI=_.q([_.d({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],QI);
_.w(QI,"ytd-member-hub-profile-renderer",function(){if(vUc!==void 0)return vUc;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return vUc=x},{mode:1});var JAc;var pn=function(){return _.n.apply(this,arguments)||this};
_.m(pn,_.n);pn.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],pn.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],pn.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],pn.prototype,"data",void 0);pn=_.q([_.d({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],pn);
_.w(pn,"ytd-settings-sidebar-renderer",function(){if(JAc!==void 0)return JAc;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return JAc=x},{mode:1});var f5C;var VI=function(){var x=_.n.apply(this,arguments)||this;x.expandableCustomTabRenderable=function(G){return Qzc(G,function(){return void x.onSearchNavigate()})};
return x};
_.m(VI,_.n);VI.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
VI.prototype.onSearchNavigate=function(){this.selected=void 0};
VI.prototype.onTabsChange=function(){var x,G=(x=this.tabs)==null?void 0:x.findIndex(function(D){var K;return D==null?void 0:(K=D.tabRenderer)==null?void 0:K.selected});
G!==void 0&&(this.selected=G)};
VI.prototype.onTabsActive=function(x){if(this.tabs!==void 0){var G,D;(x=(G=this.tabs[x.detail.selected])==null?void 0:(D=G.tabRenderer)==null?void 0:D.endpoint)&&_.h$(this.hostElement,"yt-navigate",{endpoint:x})}};
_.Nq.Object.defineProperties(VI.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:bPf(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
VI.prototype.onTabsChange=VI.prototype.onTabsChange;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],VI.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.jy),_.N("design:type",Object)],VI.prototype,"ytdGridStateAwareBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],VI.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.XL.YtdGuideStateAwareBehavior),_.N("design:type",Object)],VI.prototype,"ytdGuideStateAwareBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],VI.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Array)],VI.prototype,"tabs",void 0);_.q([_.R(),_.N("design:type",Number)],VI.prototype,"selected",void 0);_.q([_.U("tabs.*"),_.N("design:type",Object),_.N("design:paramtypes",[])],VI.prototype,"tabGroupShape",null);_.q([_.R(),_.N("design:type",Object)],VI.prototype,"expandableCustomTabRenderable",void 0);
_.q([_.U("tabs"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],VI.prototype,"tabsEnabled",null);_.q([_.Z6("tabs"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],VI.prototype,"onTabsChange",null);VI=_.q([_.d({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],VI);
_.w(VI,"ytd-topic-channel-details-renderer",function(){if(f5C!==void 0)return f5C;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return f5C=x},{mode:1});var tAT;var bw=function(){var x=_.n.apply(this,arguments)||this;x.disableGridStateAware=!1;return x};
_.m(bw,_.n);bw.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]]"}}}}}};
bw.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
bw.prototype.updateCssVars=function(){_.K7(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Gz("rich_grid_max_item_width",500))+16)-16+"px"})};
bw.prototype.updateCssVars=bw.prototype.updateCssVars;bw.prototype.activeChanged=bw.prototype.activeChanged;_.q([_.I(_.XL.YtdGuideStateAwareBehavior),_.N("design:type",Object)],bw.prototype,"ytdGuideStateAwareBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],bw.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],bw.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],bw.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],bw.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Array)],bw.prototype,"tabs",void 0);_.q([_.R(),_.N("design:type",Boolean)],bw.prototype,"active",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],bw.prototype,"disableGridStateAware",void 0);
_.q([_.R({selector:_.m8}),_.N("design:type",Number)],bw.prototype,"richGridItemsPerRow",void 0);_.q([_.R({selector:_.Y_}),_.N("design:type",Boolean)],bw.prototype,"richGridMiniMode",void 0);_.q([_.cD("ytd-carousel-item-renderer"),_.N("design:type",Object)],bw.prototype,"carousel",void 0);_.q([_.yf("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bw.prototype,"activeChanged",null);
_.q([_.yf("richGridItemsPerRow","richGridMiniMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bw.prototype,"updateCssVars",null);bw=_.q([_.d({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],bw);
_.w(bw,"ytd-carousel-header-renderer",function(){if(tAT!==void 0)return tAT;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return tAT=x},{mode:1});var kGO;var Pic=_.gv(["https://www.google-analytics.com/analytics.js"]),Ln=function(){var x=_.n.apply(this,arguments)||this;x.scriptAnalyticsAdded=!1;return x};
_.m(Ln,_.n);Ln.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var x,G=(x=this.data)==null?void 0:x.tagManagerId;G&&(_.pF(G,_.Am("GL")),BLY(G))};
Ln.prototype.sendGoogleAnalyticsPageview=function(x){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var D=_.rC.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(D)};
var G=window.ga;G("set","page",window.location.pathname);G.l=+new Date;G("set","forceSSL",!0);G("create",x,"'auto'");G("send","pageview")};
Ln.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var x=_.p4("SCRIPT");x.name="ga-analytics";var G=_.xS(Pic);_.Sr(x,G);x.async=!0;_.kA(this.hostElement).appendChild(x)};
Ln.prototype.dataChanged=Ln.prototype.dataChanged;_.q([_.R(),_.N("design:type",Object)],Ln.prototype,"data",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ln.prototype,"dataChanged",null);Ln=_.q([_.d({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],Ln);
_.w(Ln,"ytd-channel-metadata-renderer",function(){if(kGO!==void 0)return kGO;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return kGO=x},{mode:1});var EUf;var h7i;var B7=function(){return _.n.apply(this,arguments)||this};
_.m(B7,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],B7.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],B7.prototype,"data",void 0);B7=_.q([_.d({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],B7);
_.w(B7,"ytd-sub-feed-option-renderer",function(){if(h7i!==void 0)return h7i;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return h7i=x},{mode:1});var xxj;var ra=function(){return _.n.apply(this,arguments)||this};
_.m(ra,_.n);ra.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],ra.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],ra.prototype,"ytRendererStamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],ra.prototype,"data",void 0);ra=_.q([_.d({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],ra);
_.w(ra,"ytd-sub-feed-selector-renderer",function(){if(xxj!==void 0)return xxj;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return xxj=x},{mode:1});var s5=function(){return _.n.apply(this,arguments)||this};
_.m(s5,_.n);
s5.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}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],s5.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],s5.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],s5.prototype,"data",void 0);s5=_.q([_.d({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],s5);
_.w(s5,"ytd-browse-feed-actions-renderer",function(){if(EUf!==void 0)return EUf;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return EUf=x},{mode:1});var Gfx;var Dxf;var Yg=function(){return _.n.apply(this,arguments)||this};
_.m(Yg,_.n);Yg.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Yg.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Yg.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Yg.prototype,"data",void 0);Yg=_.q([_.d({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],Yg);
_.w(Yg,"ytd-mini-channel-renderer",function(){if(Dxf!==void 0)return Dxf;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Dxf=x},{mode:1});var K$j;var m9=function(){return _.n.apply(this,arguments)||this};
_.m(m9,_.n);m9.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],m9.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],m9.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],m9.prototype,"data",void 0);m9=_.q([_.d({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],m9);
_.w(m9,"ytd-vertical-channel-section-renderer",function(){if(K$j!==void 0)return K$j;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return K$j=x},{mode:1});var H7=function(){return _.n.apply(this,arguments)||this};
_.m(H7,_.n);H7.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],H7.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],H7.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],H7.prototype,"data",void 0);H7=_.q([_.d({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],H7);
_.w(H7,"ytd-browse-secondary-contents-renderer",function(){if(Gfx!==void 0)return Gfx;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);
return Gfx=x},{mode:1});var z3f;var $g=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};x.notActive=!1;x.isConstrainedList=!1;return x};
_.m($g,_.n);_.a=$g.prototype;
_.a.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"},matcher:function(x){var G;return(x==null?void 0:(G=x.webComponentHint)==null?void 0:G.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":
"ytd-section-list-renderer"}}}},
"data.secondaryContents":{id:"secondary",mapping:{browseFeedActionsRenderer:{component:"ytd-browse-feed-actions-renderer",noInjection:!0},browseSecondaryContentsRenderer:{component:"ytd-browse-secondary-contents-renderer",noInjection:!0},profileColumnRenderer:{component:"ytd-profile-column-renderer",noInjection:!0}}}}};
_.a.getPath=function(x,G){var D="data.tabs.#"+G+".";x.tabs[G].tabRenderer?D+="tabRenderer.":x.tabs[G].expandableTabRenderer&&(D+="expandableTabRenderer.");return D+"content.sectionListRenderer"};
_.a.computeDisplayedContent=function(x){this.unlinkPaths("content");if(x&&x.tabs)for(var G=x.tabs.length,D=0;D<G;D++){var K=x.tabs[D].tabRenderer||x.tabs[D].expandableTabRenderer;if(K.selected&&K.content)return this.linkPaths("content",this.getPath(x,D)),K.content}return null};
_.a.computeHasSecondaryColumnData=function(x){return!!x&&!!x.secondaryContents};
_.a.onRetrieveLocation=function(x,G){G.locationRetrieved(G.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);x.stopPropagation()};
_.a.onYtServiceRequestSent=function(x,G){_.B("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(G)};
_.a.onYtServiceRequestCompleted=function(x,G){_.B("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(G)};
_.a.onReplaceFeedContentAction=function(x){if(!_.B("replace_feed_content_action_killswitch")&&!this.notActive){var G;(x=(G=_.Y(x,I4f))==null?void 0:G.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(x)}};
_.a.handleServiceRequestActions=function(x){if(x=x.actions){x=_.l(x);for(var G=x.next();!G.done;G=x.next()){G=G.value;var D=void 0;((D=_.Y(G,I4f))==null?0:D.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.Y(G,I4f).items)}}};
$g.prototype.onYtServiceRequestCompleted=$g.prototype.onYtServiceRequestCompleted;$g.prototype.onYtServiceRequestSent=$g.prototype.onYtServiceRequestSent;$g.prototype.onRetrieveLocation=$g.prototype.onRetrieveLocation;_.q([_.I(_.jy),_.N("design:type",Object)],$g.prototype,"ytdGridStateAwareBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],$g.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],$g.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],$g.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],$g.prototype,"data",void 0);_.q([_.R({computed:"computeDisplayedContent(data)"}),_.N("design:type",Object)],$g.prototype,"content",void 0);
_.q([_.R({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],$g.prototype,"hasSecondaryColumnData",void 0);_.q([_.R({value:function(){return window.outerHeight>1024?3:2}}),
_.N("design:type",Number)],$g.prototype,"initialCount",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],$g.prototype,"pageSubtype",void 0);_.q([_.cD("ytd-section-list-renderer"),_.N("design:type",Object)],$g.prototype,"listRenderer",void 0);_.q([_.R(),_.N("design:type",Object)],$g.prototype,"notActive",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],$g.prototype,"isConstrainedList",void 0);
_.q([_.R(),_.N("design:type",String)],$g.prototype,"responsiveSizing",void 0);_.q([_.oe("yt-retrieve-location"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],$g.prototype,"onRetrieveLocation",null);_.q([_.oe("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Ou]),_.N("design:returntype")],$g.prototype,"onYtServiceRequestSent",null);
_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.gG]),_.N("design:returntype")],$g.prototype,"onYtServiceRequestCompleted",null);$g=_.q([_.d({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],$g);
_.w($g,"ytd-two-column-browse-results-renderer",function(){if(z3f!==void 0)return z3f;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return z3f=x},{mode:2});var aAc;var oFY;var F7=function(){var x=_.n.apply(this,arguments)||this;x.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"]);x.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"]);x.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return x};
_.m(F7,_.n);_.a=F7.prototype;_.a.attached=function(){this.requestElementsPerRow()};
_.a.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_]]"}}}}}};
_.a.onUpdateElementsPerRowAction=function(x){x&&this.elementsPerRow!==x&&(this.elementsPerRow=x)};
_.a.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.a.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.a.computeAlertStyle_=function(x){return x};
_.a.observerElementsPerRow=function(){this.elementsPerRow&&_.K7(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.a.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.a.requestElementsPerRow=function(){_.h$(this.hostElement,"yt-request-elements-per-row")};
F7.prototype.onIsVisibleChanged_=F7.prototype.onIsVisibleChanged_;F7.prototype.observerElementsPerRow=F7.prototype.observerElementsPerRow;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],F7.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],F7.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],F7.prototype,"actionHandlerBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],F7.prototype,"data",void 0);_.q([_.R({value:6,reflectToAttribute:!0}),_.N("design:type",Number)],F7.prototype,"elementsPerRow",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],F7.prototype,"wrapButtons",void 0);_.q([_.R({value:_.Am("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.N("design:type",Boolean)],F7.prototype,"isMusic",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.N("design:type",String)],F7.prototype,"alertStyle",void 0);_.q([_.R({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.N("design:type",Function)],F7.prototype,"dismissBoundButtonTap_",void 0);_.q([_.R({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.N("design:type",Function)],F7.prototype,"acceptBoundButtonTap_",void 0);_.q([_.yf("elementsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],F7.prototype,"observerElementsPerRow",null);_.q([_.yf("data.isVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],F7.prototype,"onIsVisibleChanged_",null);F7=_.q([_.HD({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],F7);
_.w(F7,"yt-alert-with-actions-renderer",function(){if(oFY===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;aAc===void 0&&(aAc=document.createElement("template"));var K=aAc;D.call(G,K.content.cloneNode(!0),x.content.firstChild);oFY=x}x=oFY;return x},{mode:2});_.tn(_.Nv(function(x){function G(L){var r={};return _.M(_.vq,{text:L,className:_.ym("ytPersonalGreetingViewModelHeadline",(r.ytPersonalGreetingViewModelHeadlineSmall=function(){return W()===48},r))})}
function D(L,r){return _.M("span",{el:L,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},G(r))}
var K=_.qi(),z=_.qi(),y=_.qi(),c=function(){return x.data().canvasPromoData},W=function(){var L;
return(L=x.data().bannerHeight)!=null?L:56},e=_.hdf(K,{throttleMs:100}),Q=_.hdf(z,{throttleMs:100}),p=_.hdf(y,{throttleMs:100}),V=function(){return Q.width()-e.width()>1};
_.iA(K,function(){var L;return(L=x.data())==null?void 0:L.rendererContext},void 0,void 0,void 0,!0);
return _.M("yt-personal-greeting-view-model",{el:K,"aria-hidden":V,class:_.ym(x.className,"ytPersonalGreetingViewModelHost"),style:_.Ms({height:(0,_.L_)(function(){return V()?0:W()})})},_.M(_.b,{cond:function(){return x.data().avatar&&!(p.width()+(x.data().avatar?48:0)-e.width()>1)},
then:function(){return _.M(_.bA,{data:function(){return x.data().avatar}},{decoratedAvatarViewModel:function(L){return _.M(_.B2,{data:L.data,
className:_.ym("ytPersonalGreetingViewModelAvatar")})}})}}),_.M("h1",null,G(function(){var L;
return(c==null?void 0:(L=c())==null?void 0:L.headline)||(p.width()+(x.data().avatar?48:0)-e.width()>1?x.data().shorterGreeting:x.data().greeting)})),D(y,function(){return x.data().greeting}),D(z,function(){return x.data().shorterGreeting}))},"Fi"),"yt-personal-greeting-view-model",{props:{data:_.ik,
className:_.ik}});var Cn=function(){var x=_.n.apply(this,arguments)||this;x.hidden=!1;x.isConstrainedList=!1;x.darkerDarkTheme=_.B("web_darker_dark_theme");x.responsiveSizing="COMPACT";x.attachedPlayers=_.B("kevlar_channel_trailer_multi_attach")?[]:void 0;x.player=null;x.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return x};
_.m(Cn,_.n);_.a=Cn.prototype;
_.a.configureRendererStamper=function(){return{mastheadAdData:{id:"masthead-ad",mapping:{bannerPromoRenderer:{component:"ytd-banner-promo-renderer",noInjection:!0},videoMastheadAdV3Renderer:{component:"ytd-video-masthead-ad-v3-renderer",noInjection:!0}},reuseComponents:!1},alertBannerData:{id:"alert-banner",mapping:{alertWithActionsRenderer:{component:"yt-alert-with-actions-renderer",noInjection:!0}}},greetingData:{id:"personal-greeting",mapping:{personalGreetingViewModel:{component:"yt-personal-greeting-view-model",properties:{className:"[[is]]"},
noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{alertRenderer:{component:"yt-alert-renderer",noInjection:!0},unlimitedUserNotificationRenderer:{component:"yt-unlimited-user-notification-renderer",noInjection:!0},alertWithButtonRenderer:{component:"ytd-alert-with-button-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},
"data.metadata":{id:"metadata",mapping:{channelMetadataRenderer:{component:"ytd-channel-metadata-renderer",noInjection:!0}}},"data.header":{id:"header",mapping:{pageHeaderRenderer:{component:"ytd-tabbed-page-header",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[richGrid]]",disableGridStateAware:"[[fluidWidth]]",disableHeaderFluidWidth:"[[disableHeaderFluidWidth]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}},
interactiveTabbedHeaderRenderer:{component:"ytd-interactive-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},carouselHeaderRenderer:{component:"ytd-carousel-header-renderer",properties:{active:"[[active]]",disableGridStateAware:"[[fluidWidth]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},memberHubProfileRenderer:{component:"ytd-member-hub-profile-renderer",noInjection:!0}},events:!0},
"data.footer":{id:"footer",mapping:{pageFooterRenderer:{component:"ytd-page-footer-renderer",noInjection:!0}}}}};
_.a.created=function(){var x=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){x.disposeMastheadAd()}]};
_.a.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new NLf(this.refresh,this.contents))};
_.a.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.a.activeChanged=function(){var x=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=x)};
_.a.tabsChanged=function(){var x=this,G,D;if(this.pageSubtype==="channels"||_.B("kevlar_tab_gestures_for_tabbed_header_data")&&((G=this.data)==null?0:(D=G.header)==null?0:D.carouselHeaderRenderer))this.tabGestures=new $6(this.contents,this.contents,this.hostElement,this.header,function(c){x.ytdReduxBehavior.dispatch(c)});
var K,z,y;G=(K=this.data)==null?void 0:(z=K.contents)==null?void 0:(y=z.twoColumnBrowseResultsRenderer)==null?void 0:y.tabs;this.tabGestures&&this.tabGestures.tabsChanged(G)};
_.a.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.a.engagementPanelsChanged=function(){var x=_.Eo().resolve(_.VT);if(x){if(this.engagementPanels)for(var G=_.l(this.engagementPanels),D=G.next();!D.done;D=G.next()){var K=void 0;(D=(K=D.value.identifier)==null?void 0:K.tag)&&x.panelMap.delete(D)}this.engagementPanels=[];var z;G=_.l(((z=this.data)==null?void 0:z.panels)||[]);for(z=G.next();!z.done;z=G.next()){z=_.Y(z.value,_.Yrb);var y=D=void 0,c=void 0,W=void 0;if(K=((D=z)==null?void 0:D.targetId)||((y=z)==null?void 0:y.panelIdentifier)||((c=z)==
null?void 0:(W=c.identifier)==null?void 0:W.tag))y=D=void 0,(y=(D=x).registerPanelContent)==null||y.call(D,K,{engagementPanelSectionListRenderer:z}),this.engagementPanels.push(z)}}};
_.a.onStampFinished=function(){var x=this;_.w1(this,function(){if(x.tabGestures){var G=x.tabGestures;if(G.scrollPositionNeedsUpdate){var D=_.Eo().resolve(_.P6(_.wG)),K;if((K=G.selectedTab)!=null&&K.title&&D&&(K=D.getCurrentPage())){if(G.scrollPositionForTabs.has(G.selectedTab.title)){var z,y;D=(y=(z=D.getCurrentPage())==null?void 0:z.clientHeight)!=null?y:0;z=G.scrollPositionForTabs.get(G.selectedTab.title);K.setScrollTop(z);D>z+100&&(G.scrollPositionNeedsUpdate=!1)}else K.setScrollTop(Math.min(G.lastVisitedTabScrollPosition!==
void 0?G.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,G.tabsStartAtInPx)),G.scrollPositionNeedsUpdate=!1;G.ytdReduxDispatch(LOx(!1))}}}})};
_.a.loadPage_=function(x){this.initCsi();x&&(this.data=x);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.a.getTitle=function(x){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",x))return this.get("microformat.microformatDataRenderer.title",x);if(this.get("header.feedTabbedHeaderRenderer.title",x))return _.u7(this.get("header.feedTabbedHeaderRenderer.title",x));if(this.get("header.interactiveTabbedHeaderRenderer.title",x))return this.get("header.interactiveTabbedHeaderRenderer.title",x);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
x))return _.u7(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",x));var G,D;return _.B("enable_page_header_page_title")&&(x==null?0:(G=x.header)==null?0:(D=G.pageHeaderRenderer)==null?0:D.pageTitle)?x.header.pageHeaderRenderer.pageTitle:""};
_.a.updateTitle=function(x){_.h$(this.hostElement,"yt-update-title",this.getTitle(x))};
_.a.initCsi=function(){_.rt(this.pageSubtype||"browse",["ol","cpt"])};
_.a.getPlayer=function(){if(_.B("kevlar_channel_trailer_multi_attach")){for(var x=_.l(this.attachedPlayers),G=x.next();!G.done;G=x.next())if(G=G.value,G.isConnected||_.gM(this.hostElement,G))return G;return null}return this.player};
_.a.getPlayerContainer=function(){return null};
_.a.onPlayerAttached=function(x,G){_.B("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(G):this.player=G};
_.a.onPlayerDetached=function(x,G){_.B("kevlar_channel_trailer_multi_attach")?(x=this.attachedPlayers.indexOf(G),x<0||this.attachedPlayers.splice(x,1)):this.player=null};
_.a.getServiceTrackingParams=function(){var x,G;return((x=this.data)==null?void 0:(G=x.responseContext)==null?void 0:G.serviceTrackingParams)||[]};
_.a.setMastheadAd=function(x){x&&x.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=x&&x.mastheadAd};
_.a.dataChanged=function(){var x=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.KOY();_.w1(this,function(){_.Gl(x.hostElement,"ytd-update-grid-state-action")})};
_.a.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.a.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var x=this.data.alerts;return x&&x.find(function(G){return!!G.alertWithActionsRenderer})}};
_.a.computeGreetingData=function(){if(this.data&&this.data.alerts){var x=this.data.alerts;return x&&x.find(function(G){return!!G.personalGreetingViewModel})}};
_.a.computeHasMemberHubProfileRenderer=function(x){var G;return!!(x==null?0:(G=x.header)==null?0:G.memberHubProfileRenderer)};
_.a.handleAlertCommand=function(x){this.get("alertCommand.alert.alertWithActionsRenderer",x)&&(x=_.Y(x,jzY),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",x.alert))};
_.a.handleYtPlaylistDeletionRedirect=function(x){x=this.get("playlistDeletionRedirectCommand.redirectEndpoint",x);_.h$(this.hostElement,"yt-navigate",{endpoint:x})};
_.a.computeFluidWidth=function(x,G,D){if(G==="mini_app"||D)return!0;var K,z,y;x=x==null?void 0:(K=x.contents)==null?void 0:(z=K.twoColumnBrowseResultsRenderer)==null?void 0:(y=z.tabs)==null?void 0:y.find(function(e){var Q;return e==null?void 0:(Q=e.tabRenderer)==null?void 0:Q.selected});
if(!x)return!1;var c,W;return!!((c=x.tabRenderer)==null?0:(W=c.content)==null?0:W.richGridRenderer)&&!["channel","channels","playables"].includes(G)};
_.a.computeHeaderFluidWidth=function(x){return x==="hashtag-landing-page"};
_.a.computeHasSidebar=function(x){var G;return!!(x.sidebar||((G=x.header)==null?0:G.playlistHeaderRenderer))};
_.a.computeHasPageHeaderSidebar=function(x){var G,D;return!!((G=x.header)==null?0:(D=G.pageHeaderRenderer)==null?0:D.enableSidebarView)};
_.a.computeUseUnifiedShowPageLayout=function(x){if(!x||this.pageSubtype!=="show"||!x.sidebar||!x.sidebar.playlistSidebarRenderer)return!1;x=x.sidebar.playlistSidebarRenderer;if(!x.items)return!1;for(var G=0;G<x.items.length;G++)if(_.Y(x.items[G],mT)){var D=void 0;return((D=_.Y(x.items[G],mT))==null?void 0:D.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.a.computeIsConstrainedList=function(x){return _.B("web_enable_constrained_list_subscriptions_channels")&&x==="subscriptions-channels"};
_.a.computeResponsiveSizing=function(x){return x==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.Nq.Object.defineProperties(Cn.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var x,G;return((x=this.data)==null?0:(G=x.header)==null?0:G.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var x,G;if(!((x=this.data)==null?0:(G=x.sidebar)==null?0:G.playlistSidebarRenderer))return!1;var D;return(D=this.data)!=null&&D.header?!1:!0}}});
_.Nq.Object.defineProperties(Cn,{template:{configurable:!0,enumerable:!0,get:function(){if(f4i===void 0){var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-banner" class="style-scope ytd-browse"></div>\n<div id="personal-greeting" class="style-scope ytd-browse"></div>\n<div id="masthead-ad" class="style-scope ytd-browse"></div>\n<div id="header" class="style-scope ytd-browse"></div>\n<div id="alerts" class="style-scope ytd-browse"></div>\n\n<ytd-channel-legal-info-renderer data="[[data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" disable-upgrade$="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" hidden="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" class="style-scope ytd-browse">\n</ytd-channel-legal-info-renderer>\n<ytd-playlist-sidebar-renderer data="[[data.sidebar.playlistSidebarRenderer]]" disable-upgrade$="[[!useOldPlaylistSidebarRenderer]]" hidden="[[!useOldPlaylistSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-sidebar-renderer>\n<ytd-playlist-header-renderer data="[[data.header.playlistHeaderRenderer]]" disable-upgrade$="[[!usePlaylistHeaderRenderer]]" hidden="[[!usePlaylistHeaderRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-header-renderer>\n<ytd-settings-sidebar-renderer data="[[data.sidebar.settingsSidebarRenderer]]" disable-upgrade$="[[!data.sidebar.settingsSidebarRenderer]]" hidden="[[!data.sidebar.settingsSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-settings-sidebar-renderer>\n<template is="dom-if" if="[[hasPageHeaderSidebar]]" class="style-scope ytd-browse">\n    <yt-page-header-renderer class="page-header-sidebar style-scope ytd-browse" data="[[data.header.pageHeaderRenderer]]" display-as-sidebar="">\n    </yt-page-header-renderer>\n</template>\n<ytd-two-column-browse-results-renderer data="[[data.contents.twoColumnBrowseResultsRenderer]]" disable-grid-state-aware="[[fluidWidth]]" is-constrained-list="[[isConstrainedList]]" not-active="[[hidden]]" page-subtype="[[pageSubtype]]" responsive-sizing="[[responsiveSizing]]" class="style-scope ytd-browse">\n</ytd-two-column-browse-results-renderer>\n<div id="survey" class="style-scope ytd-browse"></div>\n<div id="metadata" class="style-scope ytd-browse"></div>\n<div id="footer" class="style-scope ytd-browse"></div>\n<ytd-refresh id="refresh" class="style-scope ytd-browse"></ytd-refresh>\n');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);f4i=x}x=f4i;return x}}});
Cn.prototype.dataChanged=Cn.prototype.dataChanged;Cn.prototype.onPlayerDetached=Cn.prototype.onPlayerDetached;Cn.prototype.onPlayerAttached=Cn.prototype.onPlayerAttached;Cn.prototype.onStampFinished=Cn.prototype.onStampFinished;Cn.prototype.engagementPanelsChanged=Cn.prototype.engagementPanelsChanged;Cn.prototype.scrollAtTopChanged=Cn.prototype.scrollAtTopChanged;Cn.prototype.tabsChanged=Cn.prototype.tabsChanged;Cn.prototype.activeChanged=Cn.prototype.activeChanged;
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],Cn.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.i9),_.N("design:type",Object)],Cn.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Cn.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],Cn.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.sW.YtPageBehavior),_.N("design:type",Object)],Cn.prototype,"ytPageBehavior",void 0);
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Cn.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.XL.YtdGuideStateAwareBehavior),_.N("design:type",Object)],Cn.prototype,"ytdGuideStateAwareBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Cn.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Cn.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Cn.prototype,"hidden",void 0);
_.q([_.R(),_.N("design:type",Object)],Cn.prototype,"mastheadAdData",void 0);_.q([_.R({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.N("design:type",Object)],Cn.prototype,"alertBannerData",void 0);_.q([_.R({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.N("design:type",Object)],Cn.prototype,"greetingData",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],Cn.prototype,"pageSubtype",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.N("design:type",Boolean)],Cn.prototype,"hasMemberHubProfileRenderer",void 0);_.q([_.R({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Cn.prototype,"hasSidebar",void 0);_.q([_.R({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Cn.prototype,"hasPageHeaderSidebar",void 0);
_.q([_.R({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],Cn.prototype,"roundedContainer",void 0);_.q([_.R({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Cn.prototype,"useUnifiedShowPageLayout",void 0);_.q([_.R({computed:"computeIsConstrainedList(pageSubtype)"}),_.N("design:type",Object)],Cn.prototype,"isConstrainedList",void 0);
_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Cn.prototype,"usePlaylistHeaderRenderer",null);_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Cn.prototype,"useOldPlaylistSidebarRenderer",null);_.q([_.R({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.N("design:type",Boolean)],Cn.prototype,"fluidWidth",void 0);_.q([_.R({selector:function(x){return x.ui.scrollAtTop}}),
_.N("design:type",Boolean)],Cn.prototype,"scrollAtTop",void 0);_.q([_.R({selector:_.zox}),_.N("design:type",Boolean)],Cn.prototype,"tabGesturesIsActive",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Cn.prototype,"darkerDarkTheme",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.N("design:type",Boolean)],Cn.prototype,"disableHeaderFluidWidth",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.N("design:type",String)],Cn.prototype,"responsiveSizing",void 0);_.q([_.cD("ytd-two-column-browse-results-renderer"),_.N("design:type",HTMLElement)],Cn.prototype,"contents",void 0);_.q([_.cD("#header"),_.N("design:type",HTMLElement)],Cn.prototype,"header",void 0);_.q([_.cD("ytd-refresh"),_.N("design:type",Object)],Cn.prototype,"refresh",void 0);
_.q([_.yf("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Cn.prototype,"activeChanged",null);_.q([_.yf("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Cn.prototype,"tabsChanged",null);_.q([_.yf("scrollAtTop"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Cn.prototype,"scrollAtTopChanged",null);
_.q([_.R(),_.N("design:type",Object)],Cn.prototype,"engagementPanels",void 0);_.q([_.yf("data.panels"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Cn.prototype,"engagementPanelsChanged",null);_.q([_.oe("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Cn.prototype,"onStampFinished",null);
_.q([_.oe("yt-player-attached"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Element]),_.N("design:returntype")],Cn.prototype,"onPlayerAttached",null);_.q([_.oe("yt-player-detached"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Element]),_.N("design:returntype")],Cn.prototype,"onPlayerDetached",null);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Cn.prototype,"dataChanged",null);
Cn=_.q([_.d({is:"ytd-browse"})],Cn);_.ti.registerService(_.mPC,Cn);
_.Xk();
}catch(e){_._DumpException(e)}
try{
_.OP("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 PQ=function(x){if(!x)return"browse";var G=x.page,D=x.url,K,z,y,c=(K=x.response)==null?void 0:(z=K.responseContext)==null?void 0:(y=z.webResponseContextExtensionData)==null?void 0:y.pageTheme;if(c)G=c.toLowerCase().replace(/_/g,"-");else if(G!=="watch"&&G!=="learning_journey_watch"){var W,e;if((G==="browse"||G==="settings")&&((W=x.response)==null?0:(e=W.sidebar)==null?0:e.settingsSidebarRenderer))G="WEB_PAGE_TYPE_SETTINGS";else{var Q,p;G==="browse"&&((Q=x.response)==null?0:(p=Q.metadata)==null?
0:p.channelMetadataRenderer)?G="channel":D&&(G=_.lo(D)||G)}}return G},TTb=function(){var x=_.nT("yt.aba.att");
return x?x:_.f8.instance!==void 0?_.f8.instance.tIc.bind(_.f8.instance):null},WST=function(x,G){var D;
return _.T(function(K){return(D=TTb())?K.return(D(x,G,6E4)):K.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},eRY=function(x,G,D,K,z){G=G===void 0?[]:G;
z=z?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:z}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.tN(x),dialogMessages:G.map(function(y){return _.tN(y)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.tN(D),serviceEndpoint:z}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.tN(K)}}}}}},ZTx=function(x){var G=!!_.jK().queueProxy;
var D,K,z;x=x==null?void 0:(D=x.response)==null?void 0:(K=D.currentVideoEndpoint)==null?void 0:(z=K.watchEndpoint)==null?void 0:z.playlistId;return!(!G&&!x)},MRf=function(x,G){var D=_.or();
if(ZTx(x))return D.playlistWatchPageActivation=!0;switch(PQ(G)){case "yts-products":return D.productDetailsPageActivation=!0;case "mini_app":return D.miniAppPageActivation=!0;case "playables":return D.playablesDestPageActivation=!0;default:return!1}},QEc=function(x,G,D){for(var K=typeof x==="string"?x.split(""):x,z=x.length-1;z>=0;--z)z in K&&G.call(D,K[z],z,x)},p64=function(x,G){G=_.VfQ(x,G);
G>=0&&_.JQ(x,G)},VRj=function(x){return Array.prototype.concat.apply([],arguments)},bTc=function(x){var G=0;
G=G===void 0?0:G;if(!_.bC(x))throw _.Zo("uint64");var D=typeof x;switch(G){case 512:switch(D){case "string":return _.T9D(x);case "bigint":return String((0,_.Uc)(64,x));default:return _.lo3(x)}case 1024:switch(D){case "string":return _.WhL(x);case "bigint":return _.tk((0,_.Uc)(64,x));default:return _.ck3(x)}case 0:switch(D){case "string":return _.T9D(x);case "bigint":return _.tk((0,_.Uc)(64,x));default:return _.ykn(x)}default:return _.oT(G,"Unknown format requested type for int64")}},LSc=function(x){x!=
null&&(x=x.JSC$6830_value_||"",x=typeof x==="string"?x:new Uint8Array(x));
return x},BTf=function(x){for(var G=_.rC.apply(1,arguments),D=x[0],K=0;K<x.length-1;K++)D+=String(G[K]),D+=x[K+1];
G=document.implementation.createHTMLDocument("");K=G.createElement("style");G.head.appendChild(K);G=K.sheet;G.insertRule(D,0);if(G.cssRules.length===1&&(D=G.cssRules[0],D instanceof CSSStyleRule))return new _.uH(D.cssText.replace(/</g,"\\3C "))},rm4=function(x,G){if(/-[a-z]/.test(G))return null;
if(_.ckJ&&x.dataset){if(_.lfC()&&!(G in x.dataset))return null;x=x.dataset[G];return x===void 0?null:x}return x.getAttribute("data-"+_.Wy(G))},YoT=function(){var x=sEY;
_.nT("yt.ads.biscotti.getId_")||_.Jv("yt.ads.biscotti.getId_",x)},mhc=function(x){_.Jv("yt.ads.biscotti.lastId_",x)},$hO=function(){var x={};
for(_.md=new HTY(x.handleError===void 0?_.jm:x.handleError,x.logEvent===void 0?_.Fv:x.logEvent);_.H0.length>0;)switch(x=_.H0.shift(),x.type){case "ERROR":_.md.logError(x.payload);break;case "EVENT":_.md.logEvent(x.eventType,x.payload)}},FSi=function(x,G,D){return _.RcQ(function(K){return D?K.userIdentifier!==void 0&&!x.includes(K.userIdentifier)&&D.includes(K.publicName):K.userIdentifier!==void 0&&!x.includes(K.userIdentifier)},G)},CMC=function(x){var G,D;
return _.T(function(K){if(K.nextAddress==1)return G=_.VR("YtIdbMeta hasAnyMeta other"),_.Z(K,_.RcQ(function(z){return z.userIdentifier!==void 0&&z.userIdentifier!==G},x),2);
D=K.yieldResult;return K.return(D.length>0)})},jEf=function(x,G){Iyc||(Iyc=_.Fj.addLowPriorityJob(function(){var D,K,z,y,c;
return _.T(function(W){switch(W.nextAddress){case 1:return _.Z(W,_.fL(),2);case 2:D=W.yieldResult;if(!D)return W.return();K=!0;_.Kl(W,3);return _.Z(W,FSi(x,D,G),5);case 5:z=W.yieldResult;if(!z.length){K=!1;W.jumpTo(6);break}y=z[0];return _.Z(W,_.gx(y.actualName),7);case 7:return _.Z(W,_.wx(y.actualName,D),6);case 6:_.iI(W,4);break;case 3:c=_.lX(W),_.$K(c),K=!1;case 4:_.Fj.cancelJob(Iyc),Iyc=0,K&&jEf(x,G),_.c5(W)}})}))},OT8=function(){var x;
return _.T(function(G){return G.nextAddress==1?_.Z(G,_.fL(),2):(x=G.yieldResult)?G.return(CMC(x)):G.return(!1)})},X64=function(x){var G=100;
G=G===void 0?500:G;var D,K,z,y,c,W;return _.T(function(e){return e.nextAddress==1?(D=_.Am("INNERTUBE_CONTEXT_CLIENT_NAME",0),K=[D,(0,_.kK)()-2592E6],z=[D,(0,_.kK)()],y=IDBKeyRange.bound(K,z),_.Z(e,_.lDO(x),2)):e.nextAddress!=3?(c=e.yieldResult,W=[],_.Z(e,_.dx(c,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(Q){W.length=0;return _.P0(Q.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:y,direction:"prev"},function(p){if(p.getValue()&&W.length<G)return W.push(p.getValue()),
p.delete().then(function(){return p.continue()})})}),3)):e.return(W)})},Amf=function(){var x;
return _.T(function(G){if(G.nextAddress==1)return _.Z(G,_.fL(),2);x=G.yieldResult;if(!x||!_.bI()&&!_.B("nwl_init_require_datasync_id_killswitch")||!_.Fgd())return G.jumpTo(0);_.IDh=!0;_.CoQ.isNwlInitialized=_.IDh;return _.Z(G,_.VlZ().awaitInitialization(),0)})},El=function(x,G){_.vA3[x]=!0;
var D=_.G1();D&&D.publish.apply(D,arguments);_.vA3[x]=!1},RRb=function(){if(_.YAf()&&!Uhj){var x=function(D){D=D.data;
if(D.op==="serializedGelBatch"){var K=_.Jof.get(D.key);K&&(_.t2h(D.serializedBatch,K.client,K.resolve,K.networklessOptions,K.isIsolated,K.useVSSEndpoint,K.dangerousLogToVisitorSession,K.requestsOutstanding),_.Jof.delete(D.key))}},G=_.s_C();
G&&(G.addEventListener("message",x),G.onerror=function(){_.Jof.clear()});
Uhj=!0}},hA=function(){this.relativeTimeStart_=_.f6()},Sof=function(x,G){x!=null&&this.append.apply(this,arguments)},nTc=function(){return _.Xx("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},iTC=function(x,G,D){D=D===void 0?!1:D;
var K,z,y,c,W;return _.T(function(e){switch(e.nextAddress){case 1:_.QR("SOCS",x,34128E3,"youtube.com",!0);if(_.Dh)return z=fetch(G,{method:"POST",mode:_.ix(G),credentials:_.nC(G),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),y=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.ix("/upgrade_visitor_cookie?eom=1"),credentials:_.nC("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.Z(e,Promise.all([z,y]).then(function(Q){return Q[1]}),5);
fetch(G,{method:"POST",mode:_.ix(G),credentials:_.nC(G),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.Z(e,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.ix("/upgrade_visitor_cookie?eom=1"),credentials:_.nC("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:K=e.yieldResult;e.jumpTo(3);break;case 5:K=c=e.yieldResult;case 3:if(!K.ok)throw Error("lf");return _.Z(e,K.text(),7);case 7:W=e.yieldResult,
!W.includes('"state_switch":true')&&!D||W.includes("skip_reload_for_test")||window.location.reload(),_.c5(e)}})},gTT=function(x){return _.T(function(G){return G.nextAddress==1?_.Z(G,iTC(x.socsCookie,x.savePreferenceUrl,!0),2):G.return()})},uQO=function(x){return _.T(function(G){return G.nextAddress==1?_.Z(G,iTC(x.socsCookie,x.savePreferenceUrl),2):G.return()})},w6f=function(x){x=x.xhr.responseText;
if(!_.zd(x,")]}'"))throw new xF;x=JSON.parse(x.substr(4));if((x.type||1)>1)throw new xF;x=x.id;mhc(x);Gf=_.RL(x);dhY(18E5,2);return x},NTf=function(x,G){G=new qoi(G);
mhc("");Gf=_.d69(G);x>0&&dhY(12E4,x-1);throw G;},dhY=function(x,G){_.oA(function(){_.tOY().then(w6f,function(D){return NTf(G,D)}).thenCatch(_.ld)},x)},sEY=function(){var x=_.E98();
if(x!==void 0)return _.rk(x);Gf||(Gf=_.tOY().then(w6f).thenCatch(function(G){return NTf(2,G)}));
return Gf},vTY=function(){var x=document;
return _.iO(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(G){return"on"+G.toLowerCase()in x})},JmC=function(x){x.addEventListener("click",function(G){var D=G.target;
D&&D.getAttribute("href")&&(D=D.getAttribute("href"),_.jr(window,D,"_blank"),G.preventDefault(),G.stopImmediatePropagation())})},fyx=function(x){var G,D,K,z=(K=(D=((G=x.mainDownloadsListEntity)!=null?G:{})[_.PKC])==null?void 0:D.refresh)!=null?K:"",y;
x=(y=x.refresh)==null?void 0:y[z];z=x!=null?x:{};return(z==null?0:z.refreshTime)?Number(z==null?void 0:z.refreshTime):0},tR8=function(x,G){var D=_.L3(x);
return G.every(function(K){var z;K=K==null?void 0:(z=K.playbackDataEntity)==null?void 0:z.key;if(!K)return!1;z=_.K3(_.x_(K).entityId,"mainVideoEntity");return!!D[z]})},kZj=function(x){x=_.p3(x.entities);
return _.THf(x).length},PMj=function(x,G){if(G){var D;
x=(D=_.zm(x.entities,"downloadQualityPickerEntity",G))!=null?D:void 0}else x=void 0;return x},xUj=function(){ETj||(_.i7=_.JzV,ETj=new hRj);
return ETj},GzO=function(x){var G=document.getElementsByTagName("ytd-enforcement-message-view-model");
G.length===0||getComputedStyle(G[0]).display==="none"?x(0,"p.h_"):x(1,"p.h_")},DU6=function(){DA=0;
var x=[_.ZD(!0)];KV&&_.Gl(KV,"yt-window-resized",x)},Kdi=function(){DA||(DA=_.Fj.addLowPriorityJob(DU6,200))},abf=function(){zf=0;
zxf=_.Tn0(document);var x=[zxf];KV&&_.Gl(KV,"yt-window-scrolled",x)},oKk=function(){zf||(zf=_.Fj.addLowPriorityJob(abf,200))},lbf=function(x){x=x===void 0?null:x;
yvf.push(_.PS(window,"resize",Kdi));yvf.push(_.PS(window,"scroll",oKk));x&&(KV=x)},Txf=function(){var x={isWide:_.MU.get("wide","0")==="1"},G=_.M5();
if(G=G.getFlag(165)||G.getFlag(174))x.theme=_.Lt(!0);if(_.yXP()){var D=_.bo()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";x.systemTheme=D}!G&&_.B("parent_tools_enable_app_settings")&&_.wT(window.location.href).theme!==void 0&&(x.theme=_.Lt());if((G=ao)?!_.YS.equals(G,x):x)G={currentValue:x},cvO&&(G.timeSinceLastSnapshotSecs=Math.round(((0,_.kK)()-cvO)/1E3)),ao&&(G.previousValue=ao),_.Fv("appSettingsCaptured",G),ao=x,cvO=(0,_.kK)()},Wd6=function(x){_.T(function(G){if(G.nextAddress==1)return _.Z(G,
x.delete("yt-appshell-assets"),2);
_.c5(G)})},exC=function(x){return _.uI((0,_.bj9)(),x)},M_c=function(){var x;
_.T(function(G){return G.nextAddress==1?_.Z(G,oo.getInstance(),2):(x=G.yieldResult)?_.Z(G,ZLb(x),0):G.jumpTo(0)})},p08=function(){var x;
_.T(function(G){return G.nextAddress==1?_.Z(G,y0.getInstance(),2):(x=G.yieldResult)?_.Z(G,QAx(x),0):G.jumpTo(0)})},V_i=function(x){Wd6(x);
M_c();p08()},bLf=function(x){var G,D;
return _.T(function(K){if(K.nextAddress==1)return _.Z(K,_.INE(x),2);if(G=K.yieldResult){var z;a:{if(G.headers&&(z=G.headers.get("date"))&&(z=Date.parse(z),!isNaN(z))){z=Math.round((0,_.kK)()-z);break a}z=-1}D=z;if(D>-1)return K.return(D)}return K.return(-1)})},LdC=function(){var x=_.Df.caches,G=_.Uo("IS_SHELL_LOAD"),D,K;
_.T(function(z){if(z.nextAddress==1)return D=-1,G?_.Z(z,bLf(x),3):(K=_.b0(),D=Math.round((0,_.kK)()-K),z.jumpTo(2));z.nextAddress!=2&&(D=z.yieldResult);D>=0&&D<2147483648&&_.Hg({appInstallDataAgeMs:D});_.c5(z)})},Bxx=function(x){var G=_.wM(_.Df.location.href),D={};
"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(K){var z=G.JSC$8039_queryData_.getValues(K);if(z==null?0:z.length)D[K]=z});
return _.Gj(x,new Map(Object.entries(D)))},rvO=function(x){x=x.match(/(.*)::.*::.*/);
if(x!==null)return x[1]},sAc=function(x){if(_.fNC()){var G=Object.keys(window.localStorage);
G=_.l(G);for(var D=G.next();!D.done;D=G.next()){D=D.value;var K=rvO(D);K===void 0||x.includes(K)||self.localStorage.removeItem(D)}}},YjY=function(){if(!_.fNC())return!1;
var x=_.VR(),G=Object.keys(window.localStorage);G=_.l(G);for(var D=G.next();!D.done;D=G.next())if(D=rvO(D.value),D!==void 0&&D!==x)return!0;return!1},mUc=function(x){return _.wN("NotificationsDisabled",x)},HLc=function(){return Notification.permission!="granted"?Promise.resolve():_.aBf().then(function(x){return x?x.pushManager.getSubscription().then(function(G){if(G)return Promise.resolve();
G={userVisibleOnly:!0,applicationServerKey:_.eZ("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return x.pushManager.subscribe(G).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},$U4=function(x){return _.aBf().then(function(G){if(!G||!G.active)return Promise.reject(new _.LL("serviceworker.postMessage",x,G));
try{return G.active.postMessage(x),Promise.resolve()}catch(D){return Promise.reject(D)}})},FdY=function(){$U4({type:"notifications_register",
data:_.Am("ID_TOKEN")})},CIY=function(){if(!_.Uo("LOGGED_IN"))return Promise.resolve(!1);
var x=_.Db("service_worker_push_force_notification_prompt_tag");return x?_.fP("PromptTags").then(function(G){if(!G)return!0;var D=[];try{D=JSON.parse(G)}catch(K){return!1}return D&&D.indexOf(x)==-1}):Promise.resolve(!1)},Ibf=function(){var x=_.Gz("service_worker_push_prompt_delay_microseconds");
return x?_.fP("PromptTime").then(function(G){return Promise.resolve(Date.now()-x>(G||0))}):Promise.resolve(!0)},jAf=function(){var x=_.Gz("service_worker_push_logged_out_prompt_watches");
return x==-1?Promise.resolve(!1):_.fP("WatchCount").then(function(G){return G>=x})},OLf=function(){var x=_.Ja(document,"yt-push-prompt-modal-bg");
x&&_.VF(x)},X0f=function(){return _.Gz("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.fP("PromptCount").then(function(x){x||(x=0);
return Promise.resolve(x<_.Gz("service_worker_push_prompt_cap"))})},Avj=function(x){return _.Uo("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.Uo("LOGGED_IN")&&(x===void 0?0:x)?CIY().then(function(G){if(G)return!0;
G=[X0f(),Ibf()];_.Uo("LOGGED_IN")||G.push(jAf());return Promise.all(G).then(function(D){return D.every(function(K){return K})})}):Promise.resolve(!1)},UU8=function(){_.fP("PromptCount").then(function(x){return _.wN("PromptCount",x+1)}).then(function(){return _.wN("PromptTime",Date.now())}).then(function(){var x=_.Db("service_worker_push_force_notification_prompt_tag");
if(x)return _.fP("PromptTags").then(function(G){var D=[];if(G)try{D=JSON.parse(G)}catch(K){return!1}D||(D=[]);D.push(x);return _.wN("PromptTags",JSON.stringify(D))})})},Sjx=function(){Rxj||OLf()},nKk=function(x){x.style.zIndex=2147483648;
x.style.pointerEvents="auto";x.style.backgroundColor="rgba(0, 0, 0, 0.6)";x.style.width="100%";x.style.height="100vh";x.style.position="absolute";x.style.top="0";x.style.left="0";x.style.border="none"},iLC=function(){var x=_.Ja(document,"yt-push-prompt-modal-bg");
Rxj=_.B("service_worker_push_prompt_modal_ignore_click");x?nKk(x):(x=_.pX("div",{id:"yt-push-prompt-modal-bg"}),nKk(x),document.body.appendChild(x),_.dBh(document,"click",Sjx))},gKf=function(){var x=arguments;
_.B("service_worker_push_prompt_modal_enable")&&iLC();return Notification.requestPermission().then(function(G){OLf();var D=document.getElementById("ticker");D&&(D.className=D.classList.remove("show"));if(G=="granted")return HLc().then(function(){mUc(!1);FdY();return Promise.resolve(!0)});
G=="denied"&&FdY();return Promise.resolve(!1)}).catch(function(){OLf();
return Promise.reject.apply(Promise,_.B5(x))})},uf4=function(x){x=x===void 0?!1:x;
var G=_.el3().client;if(G&&G.browserVersion){var D=G.browserVersion,K=G.browserName=="CHROME"&&_.ML(D,"50.0.0")<0;G=G.browserName=="OPERA"&&_.ML(D,"42.0.0")<0;if(K||G)return Promise.resolve()}return _.lBb().then(function(z){if(!z)return Promise.resolve();z=HLc().then(function(){return $U4({type:"notifications_check_registration",data:_.Am("ID_TOKEN")})});
return Notification.permission!="default"?z.catch(function(){}):z.then(function(){return Avj(x)}).then(function(y){if(y)return UU8(),gKf().then(function(){})}).catch(function(){})})},dUb=function(x){return _.oY4(x)?uf4():Promise.resolve()},w08=function(x){var G=x.installing||x.waiting;
return x.active||!G?Promise.resolve(x):new Promise(function(D){var K=function(z){z=z.target;if(z.state==="activated"||z.state==="redundant")G.removeEventListener("statechange",K),D(x)};
G.addEventListener("statechange",K)})},qjO=function(){var x=new _.jYf("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.yS(x,{mainAppWeb:_.Rn()});var G=_.RQZ;_.B("service_worker_forward_exp_params")&&(G=Bxx(G));try{var D=_.MyO(G).catch(function(){_.lh(x,"FAILURE");return new Promise(function(){})});
_.B("service_worker_push_enabled")&&D.then(function(K){_.lh(x,"SUCCESS");return K}).then(w08).then(dUb)}catch(K){if(_.lh(x,"FAILURE"),K.name!=="SecurityError")throw K;
}},NxC=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&qjO()},vK8=function(x,G){var D={};
G&&(D.serializedYpcFamilyCreateLoggingParams=G);_.Fv(x,D);_.CE()},JvY=function(x,G){var D={};
D.serializedYpcRefundFlowLoggingParams=G;x&&(D.eventType=x);_.Fv("ypcRefundFlowEvent",D);_.CE()},fbc=function(x){x&&_.pTh("transactionFlowSucceeded",x)},t_O=function(x){x&&_.$Z("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",x,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},kz6=function(x){var G,D,K,z,y,c,W;
_.T(function(e){if(e.nextAddress==1)return _.Z(e,_.EjL(),2);if(e.nextAddress!=3){if(!e.yieldResult)return e.return(!1);G=[];return _.Z(e,_.GY.keys(),3)}D=e.yieldResult;K=_.l(D);for(z=K.next();!z.done;z=K.next())y=z.value,c=_.kqP(y),W=c.datasyncId,!W||x.includes(W)||G.push(_.GY.delete(y));return e.return(Promise.all(G).then(function(Q){return Q.some(function(p){return p})}))})},PIT=function(){var x,G,D,K,z,y,c;
return _.T(function(W){if(W.nextAddress==1)return _.Z(W,_.EjL(),2);if(W.nextAddress!=3){if(!W.yieldResult)return W.return(!1);x=_.VR("cache contains other");return _.Z(W,_.GY.keys(),3)}G=W.yieldResult;D=_.l(G);for(K=D.next();!K.done;K=D.next())if(z=K.value,y=_.kqP(z),(c=y.datasyncId)&&c!==x)return W.return(!0);return W.return(!1)})},EKT=function(){var x=_.Eo().resolve(_.P6(_.rIo));
return x?x.getCurrentTime():0},hxc=function(){var x,G,D,K,z,y,c,W,e,Q,p,V,L,r;
return _.T(function(H){switch(H.nextAddress){case 1:x={},G=_.w93(),D=_.l(Object.entries(G)),K=D.next();case 4:if(K.done){H.jumpTo(3);break}z=K.value;y=_.l(z);c=y.next().value;W=y.next().value;e=c;Q=W;if(!Q){H.jumpTo(5);break}return _.Z(H,Q(),8);case 8:x[e]=H.yieldResult;case 5:K=D.next();H.jumpTo(4);break;case 2:p=_.l(void 0),V=p.next();case 9:if(V.done){H.jumpTo(3);break}L=V.value;r=G[L];if(!r){H.jumpTo(10);break}return _.Z(H,r(),13);case 13:x[L]=H.yieldResult;case 10:V=p.next();H.jumpTo(9);break;
case 3:return H.return(x)}})},xO6=function(){var x;
_.T(function(G){if(G.nextAddress==1)return _.Z(G,hxc(),2);x=G.yieldResult;return _.Z(G,navigator.clipboard.writeText(JSON.stringify(x,null,2)),0)})},GuY=function(x,G){return _.zm(x.entities,"superThanksSelectedTierEntity",G)},DOk=function(x){var G;
return(G=x.sharedUi)==null?void 0:G.currentPageType},Knf=function(x,G){return{popup:{searchSuggestionReportDialog:{searchQuery:x,
title:_.Wg("SBOX_INAPPROPRIATE_TITLE"),suggestions:G,categoryLabel:_.Wg("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.Wg("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.Wg("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.Wg("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.Wg("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.Wg("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.Wg("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.Wg("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.Wg("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.Wg("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},zH6=function(x){var G,D,K,z,y,c,W,e,Q,p,V,L,r,H,O,A,g,u,f;
return _.T(function(v){switch(v.nextAddress){case 1:return _.Z(v,_.yy(),2);case 2:return(G=v.yieldResult)?_.Z(v,_.WNf(G),3):v.return();case 3:D=v.yieldResult;if(!D)return v.return();z=((K=D.offlineVideos)==null?void 0:K.length)||0;c=((y=D.offlinePlaylists)==null?void 0:y.length)||0;if(z===0&&c===0)return v.return();W=0;if(D.offlineVideos)for(e=_.l(D.offlineVideos),Q=e.next();!Q.done;Q=e.next())p=Q.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===p.videoState&&(W+=1);x.offline_videos_count=z.toString();_.B("kevlar_log_offline_current_network_type_ks")||
(x.offline_current_network_type=(V=_.c$$())!=null?V:"CONN_INVALID");_.B("kevlar_log_updated_time_for_smart_downloads")&&(L=_.wK().getState().entities,r=_.sA(L),H=fyx(L),x.offline_smart_downloads_last_sync_time_ms=r.toString(),x.offline_smart_downloads_next_sync_time_ms=H.toString());x.offline_videos_playable=W.toString();x.offline_playlists_count=c.toString();if(!_.B("woffle_used_state_report")){v.jumpTo(4);break}D.offlineVideos&&(O=D.offlineVideos.reduce(function(P,k){k.downloadedBytes&&(P+=Number(k.downloadedBytes));
return P},0).toString())&&(x.offline_used_disk_space_bytes=O);
if(!((A=navigator)==null?0:(g=A.storage)==null?0:g.estimate)){v.jumpTo(4);break}return _.Z(v,navigator.storage.estimate(),6);case 6:u=v.yieldResult,x.offline_free_disk_space_bytes=(((f=u)==null?void 0:f.quota)||0).toString();case 4:x.offline_client_state=JSON.stringify(D),_.c5(v)}})},avY=function(x){x=x.match(/(.*)::.*::.*/);
if(x!==null)return x[1]},oWi=function(x){if(_.y4C()){var G=Object.keys(window.sessionStorage);
G=_.l(G);for(var D=G.next();!D.done;D=G.next()){D=D.value;var K=avY(D);K===void 0||x.includes(K)||self.sessionStorage.removeItem(D)}}},yu6=function(){if(!_.y4C())return!1;
var x=_.VR(),G=Object.keys(window.sessionStorage);G=_.l(G);for(var D=G.next();!D.done;D=G.next())if(D=avY(D.value),D!==void 0&&D!==x)return!0;return!1},ls=function(x,G,D){(_.B("desktop_keyboard_shortcut_usage_log")||D&&_.B("web_shorts_keyboard_shortcut_usage_log"))&&(G?_.fk.get(x):_.JA.get(x))&&(x=G?_.kU.get(x):_.tA.get(x))&&_.u0(_.CC(),x)},lvc=function(x){return x.visibility!=="hidden"&&x.display!=="none"},cuC=function(x){if(!x.matches("a[href],a[tabindex],area[href],iframe,[tabindex],[contentEditable],summary,details:not(:has(summary)),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),object:not([disabled])"))return-1;
x=x.getAttribute("tabindex")||"0";return Number(x)},T$8=function(x){return x.some(function(G){return cuC(G)>0})},Wnc=function(x){if(x.textContent)return!0;
if(x instanceof HTMLInputElement){if(!x.labels)return!1;x=_.l(x.labels);for(var G=x.next();!G.done;G=x.next())if(G.value.textContent)return!0}return!1},eHO=function(x){return x.sort(function(G,D){return cuC(D)-cuC(G)})},ZUb=function(x){x=Array.from(x.querySelectorAll("a[href],a[tabindex],area[href],iframe,[tabindex],[contentEditable],summary,details:not(:has(summary)),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),object:not([disabled])")).filter(function(G){return(lvc(G.style)?
lvc(window.getComputedStyle(G)):!1)&&Wnc(G)});
return T$8(x)?eHO(x):x},MlO=function(x){x=ZUb(x);
x.length>0&&x[0].focus()},QW4=function(x,G){G.stack&&(x.stack+="\n"+G.stack);
return x},bUx=function(x){var G=cz(x,"Content-Type");
if(!G)return null;G=G.toLowerCase();if(G.startsWith("application/json"))return G.startsWith("application/json+protobuf")?new pSf:new _.fZ;if(G.startsWith("application/x-protobuf")){x=cz(x,"Content-Transfer-Encoding");if(!x)return new Tf;if(x.toLowerCase()=="base64")return new Vlx}return null},FnY=function(x,G,D,K){var z=new Lnk(function(W,e){return B$C.has(e)?W.sentinel==="gal"&&W.event!==void 0:!1},function(W){W.event?(W=ruk(W.event),W=!W||sW8(K,W)?!0:_.cV(x.lastEvent,Wz,2,ep)?!_.cV(W,ZA,1,ep)&&
!_.cV(W,Wz,2,ep):!_.cV(W,ZA,1,ep)&&!_.cV(W,Wz,3,ep)):W=!0;
return W});
D=_.Gj(x.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",Ypc(D)]]));if(x.nestedOrigins!==void 0)for(var y=_.l(x.nestedOrigins),c=y.next();!c.done;c=y.next())D=_.Gj(D,new Map([["origin",c.value]]));return mOf(z,D,G).then(function(W){W=HU6(W.event);if(_.cV(W,ZA,1,ep)){var e,Q=(e=_.HV(W,ZA,1,ep))==null?void 0:_.sk(e,2);Q&&K.JSC$17096_logErrorEvent($OY(Q));e=_.HV(W,ZA,1,ep);_.sk(e,2)===4?(W=_.HV(W,ZA,1,ep),W={statusCode:11,statusMessage:_.rP(W,
3)}):(W=_.HV(W,ZA,1,ep),W={statusCode:12,statusMessage:_.rP(W,3)});return W}_.cV(W,Wz,3,ep)?(W=_.HV(W,Wz,3,ep),W={statusCode:1,consentLanguageKeys:_.rP(W,2)}):W={statusCode:1};return W}).catch(function(W){return W.errorCode!==void 0?{statusCode:W.errorCode,
statusMessage:W.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},OUO=function(x){var G={};
if(x===void 0||x===null)return G;x.getToken()!==void 0&&Cp4(x.getToken())&&Cp4(x.getToken()).length>0&&(G.scopes=new Set(Cp4(x.getToken())));x.getToken()!==void 0&&IvO(x.getToken())&&IvO(x.getToken()).length>0&&(G.capabilities=new Set(IvO(x.getToken())));_.rP(x,3)!==void 0&&(G.consistencyKey=_.rP(x,3));x.getName()!==void 0&&x.getName()!==""&&(G.linkName=x.getName());_.lr(x,jWf,4)&&(x=_.hv(x,jWf,4),x=Object.assign({},_.rP(x,1)&&{userId:_.rP(x,1)},_.rP(x,2)&&{displayName:_.rP(x,2)},_.rP(x,3)&&{email:_.rP(x,
3)},_.rP(x,5)&&{username:_.rP(x,5)},_.rP(x,4)&&{profilePicture:_.rP(x,4)}),G.profile=x);return G},XSO=function(x,G){var D=x.flowParams;
return{serviceId:D.serviceId,sessionId:D.sessionId,currentFlow:x.currentFlow,googleScopesString:G,linkingSessionSerialized:x.session.serialize(),consentLanguageKeys:D.consentLanguageKeys,callerState:x.callerState,dynamicUrlParameters:D.dynamicUrlParameters,partnerConfigMinReadTimestamp:D.partnerConfigMinReadTimestamp}},nWi=function(x){var G=x.googleScopes!==void 0?Array.from(x.googleScopes).join(","):"";
Auf(XSO(x,G));G=UO6(x);return G===null?Promise.resolve(RH6):G.start().then(function(D){var K,z=(K=D.link)==null?void 0:K.consistencyKey;return D.statusCode===1&&x.googleScopes!==void 0&&x.googleScopes.size>0&&z!==void 0?(K=x.flowParams,Spj(K.serviceId,K.sessionId,x.googleScopes,z,K.galService,x.config,D)):D})},iUf=function(x){var G=UO6(x);
return G===null?Promise.resolve(Mx({statusCode:7,statusMessage:"Failed to create flow object"},x.callerState)):G.complete().then(function(D){var K,z=(K=D.link)==null?void 0:K.consistencyKey;return D.statusCode===1&&x.googleScopes!==void 0&&x.googleScopes.size>0&&z!==void 0?(K=x.flowParams,Spj(K.serviceId,K.sessionId,x.googleScopes,z,K.galService,x.config,D)):Mx(D,x.callerState)},function(D){return Mx({statusCode:12,
statusMessage:"Failed to complete the flow: "+D.message},x.callerState)})},Spj=function(x,G,D,K,z,y,c){return gWf(z,{serviceId:x,
sessionId:G,googleScopes:D,consistencyKey:K}).then(function(){return c},function(W){return z.deleteLink({serviceId:x,
sessionId:G,accountLinkingEntryPoint:y.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+W.message}},function(e){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+e.message}})})},UO6=function(x){switch(x.currentFlow){case 1:var G=x.flowParams;
x=_.hv(x.session,ujC,1);return Q0.createOAuthFlow(G,x);case 2:case 3:return G=x.flowParams,x=_.hv(x.session,dOj,6),pV.createStreamlinedFlow(G,x);default:return null}},wSx=function(x,G){x===2&&(x=3);
var D=0;V0.indexOf(x)!==-1&&(D=V0.indexOf(x)+1);for(x=D;x<V0.length;x++)if(G.has(V0[x]))return V0[x]},vWc=function(x){var G=x.serviceId;
var D=x.sessionId;var K=x.config;var z=x.galService;var y=x.capabilities;var c=x.scopes;var W=x.loginHint;var e=x.callerState;var Q=x.consentLanguageKeys;var p=x.linkName;var V=x.dynamicUrlParameters;var L=x.partnerConfigMinReadTimestamp;x=K.dataUsageNoticeConfig?K.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return z.startLinkingSession({serviceId:G,sessionId:D,capabilities:y,scopes:c,loginHint:W,callerState:e,supportedFlows:qpT(K.supportedFlows),completionUrl:K.completionUrl,accountLinkingEntryPoint:K.accountLinkingEntryPoint,
consentLanguageKeys:Q,dataUsageNoticeConfig:x,linkName:p,dynamicUrlParameters:V,partnerConfigMinReadTimestamp:L}).then(function(r){return new N$c(G,D,K,z,r,void 0,e,Q,V,L)})},Ppc=function(x,G,D){a:{var K=new JuC;
if(K.storage!==null)try{var z=K.storage.get("SAVED_SESSION");if(z===void 0){var y=null;break a}if(z.serviceId===x){y=z;break a}}catch(c){}y=null}if(y===null)return Promise.resolve({statusCode:2});fv6(x);K=tlc(y.linkingSessionSerialized);return kuC(new N$c(x,y.sessionId,G,D,K,y.googleScopesString!==""&&y.googleScopesString!==void 0?new Set(y.googleScopesString.split(",")):void 0,y.callerState,y.consentLanguageKeys,y.dynamicUrlParameters,y.partnerConfigMinReadTimestamp),y.currentFlow,y.consentLanguageKeys)},
Auf=function(x){var G=new JuC;
G.storage!==null&&G.storage.set("SAVED_SESSION",x)},fv6=function(x){var G=new JuC;
if(G.storage!==null){var D=G.storage.get("SAVED_SESSION");D!==void 0&&D.serviceId===x&&G.storage.remove("SAVED_SESSION")}},qpT=function(x){var G=new Set;
x=_.l(x);for(var D=x.next();!D.done;D=x.next())D=D.value,D!==1&&EWY.has(D)&&G.add(EWY.get(D));return G},Mx=function(x,G){G!==void 0&&(x.callerState=G);
return x},hHf=function(x){switch(x){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},DiC=function(){var x={timeout:5E3};
x=x===void 0?{}:x;return xi4!=null?xi4:xi4=G1f(x)},KvC=function(){return new Promise(function(x,G){window.gapi.load("client",{callback:x,
onerror:G})})},G1f=function(x){x=x===void 0?{}:x;
var G;return _.T(function(D){if(D.nextAddress==1){if((G=window.gapi)&&G.client&&G.client.load)D=D.return(G);else{var K=_.oF("https://apis.google.com/js/api.js");D=_.Z(D,_.B$(K,x),2)}return D}if(D.nextAddress!=3){G=window.gapi;if(!G)throw Error("Wj");return G.client&&G.client.load?D.jumpTo(3):_.Z(D,KvC(),3)}return D.return(G)})},agi=function(x,G){G=G===void 0?0:G;
var D=x.auth2.getAuthInstance().currentUser.get(),K=D.getAuthResponse(!0);if(K&&K.expires_at-Date.now()<G){if(zeC.has(x))return zeC.get(x);G=Promise.resolve(D.reloadAuthResponse()).finally(function(){zeC.delete(x)});
zeC.set(x,G);return G}return Promise.resolve()},oqc=function(x,G){var D;
return x.client.init({apiKey:G.apiKey,clientId:G.clientId,scope:G.scope,discoveryDocs:G.discoveryDocs,hostedDomain:G.hostedDomain,fetchBasicProfile:(D=G.fetchBasicProfile)!=null?D:!0})},y28=function(x){if(x.queryParams!=null){var G={},D;
for(D in x.queryParams)x.queryParams[D]!==void 0&&(G[D]=x.queryParams[D]);x.queryParams=G}},Tuc=function(x){return new lg8(x,new c2x(x))},ZEc=function(x,G){G=G===void 0?!1:G;
var D=document.createElement("div");x&&(D.style.transform="scaleX(-1)");D.style.backgroundColor=G?"rgba(138,180,248,.24)":"#e8f0fe";D.style.height="4px";D.style.overflow="hidden";D.style.position="absolute";D.style.top="0";D.style.width="100%";D.style.zIndex="1500";D.setAttribute("aria-label","Loading");D.setAttribute("aria-live","polite");x=document.createElement("style");x.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  }";
D.appendChild(x);x=Wvb();x.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";x.style.left="-145.166611%";var K=eeT(G);K.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";x.appendChild(K);D.appendChild(x);x=Wvb();x.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";x.style.left="-54.888891%";G=eeT(G);G.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
x.appendChild(G);D.appendChild(x);return D},Wvb=function(){var x=document.createElement("div");
x.style.height="100%";x.style.position="absolute";x.style.transformOrigin="top left";x.style.width="100%";return x},eeT=function(x){var G=document.createElement("span");
G.style.borderTop=x?"4px solid #669df6":"4px solid #4285f4";G.style.display="inline-block";G.style.position="absolute";G.style.width="100%";return G},MmT=function(x){return x==null?void 0:_.ps9(x).valueOf()},bEc=function(x){var G=document.body,D=!1,K=function(){D||(D=!0,Q4b(z,y),setTimeout(function(){G.removeChild(y);
G.removeChild(z)},150))},z=pwT(x,getComputedStyle(G).direction==="rtl",K),y=Vmf(K);
Q4b(z,y);G.appendChild(y);G.appendChild(z);window.requestAnimationFrame(function(){y.style.opacity="1";z.style.opacity="1";z.style.transform="translate(-50%, -50%) scale(1)";z.children[0].focus()})},pwT=function(x,G,D){var K=document.createElement("div");
K.style.position="fixed";K.style.alignItems="center";K.style.backgroundColor=x?"rgb(32, 33, 36)":"white";K.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";K.style.display="flex";K.style.flexDirection="column";K.style.justifyContent="center";K.style.left="50%";K.style.top="50%";K.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";K.style.zIndex="2002";document.body.clientWidth>=660?(K.style.borderRadius="8px",K.style.minHeight="220px",
K.style.maxHeight="90%",K.style.maxWidth="90%",K.style.minWidth="540px"):(K.style.height="100%",K.style.width="100%");K.setAttribute("aria-label","Error");K.setAttribute("aria-modal","true");K.setAttribute("role","alertdialog");K.addEventListener("keydown",function(y){y.key==="Escape"&&D()});
G=Lv4(x,G,D);K.appendChild(Buj(G));K.appendChild(G);var z=document.createElement("img");z.src=x?"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";z.style.height="72px";z.style.width="72px";z.style.color="#9aa0a6";z.setAttribute("alt","");K.appendChild(z);z=document.createElement("h1");z.textContent="Something went wrong.  Try again.";
z.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";z.style.lineHeight="24px";z.style.fontSize="16px";z.style.textAlign="center";z.style.letterSpacing="0.1px";z.style.color=x?"rgb(232,234,237)":"#3c4043";K.appendChild(z);K.appendChild(Buj(G));return K},Lv4=function(x,G,D){var K=document.createElement("button");
K.style.backgroundColor="transparent";K.style.border="none";K.style.borderRadius="50%";K.style.cursor="pointer";K.style.outline="none";K.style.padding="12px";K.setAttribute("aria-label","Close dialog");K.style.position="absolute";K.style.top="0";G?K.style.right="0":K.style.left="0";K.addEventListener("focus",function(){K.style.backgroundColor=x?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
K.addEventListener("blur",function(){K.style.backgroundColor="transparent"});
K.addEventListener("mouseenter",function(){K.style.backgroundColor=x?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
K.addEventListener("mouseleave",function(){K.style.backgroundColor="transparent"});
K.addEventListener("click",D);K.addEventListener("keydown",function(z){z.key!=="Enter"&&z.key!=="Space"||D()});
G=document.createElement("img");G.src=x?"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";G.style.display="block";G.style.height="24px";G.style.width="24px";G.setAttribute("alt","");K.appendChild(G);return K},Buj=function(x){var G=document.createElement("div");
G.setAttribute("tabindex","0");G.setAttribute("aria-hidden","true");G.addEventListener("focus",function(){return void x.focus()});
return G},Vmf=function(x){var G=document.createElement("div");
G.style.backgroundColor="rgba(32,33,36,0.6)";G.style.bottom="0";G.style.left="0";G.style.position="fixed";G.style.right="0";G.style.top="0";G.style.transition=" opacity 150 ms linear";G.style.zIndex="2001";G.addEventListener("click",x);return G},Q4b=function(x,G){G.style.opacity="0";
x.style.opacity="0";x.style.transform="translate(-50%, -50%) scale(0.8)"},r2C=function(x,G){x.sandbox&&x.sandbox.add&&(x.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),x.sandbox.add("allow-downloads"));
x.src=G},bs=function(x){s4f.call(this,x)},LV=function(x,G){G=G===void 0?!1:G;
this.parsedImageUrl_=null;x instanceof Y9f||(mic==void 0&&(mic=new HEj),x=mic.parse(x.toString(),G));x=this.parsedImageUrl_=x;x.JSC$17327_parsedOptions_==void 0&&((G=x.getOptions())||(G=""),x.JSC$17327_parsedOptions_=(new $iC).parse(G));s4f.call(this,x.JSC$17327_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;x=this.parsedImageUrl_;G=x.uri_.JSC$8039_port_;this.JSC$17329_domain_=x.uri_.JSC$8039_domain_+(G?":"+G:"");this.JSC$17329_query_=this.parsedImageUrl_.uri_.JSC$8039_queryData_.toString()},
FvC=function(x){this.mode=4;
this.data=x;this.parsedData=[];x=0;for(var G=this.data.length;x<G;x++){var D=[],K=this.data.charCodeAt(x);K>65536?(D[0]=240|(K&1835008)>>>18,D[1]=128|(K&258048)>>>12,D[2]=128|(K&4032)>>>6,D[3]=128|K&63):K>2048?(D[0]=224|(K&61440)>>>12,D[1]=128|(K&4032)>>>6,D[2]=128|K&63):K>128?(D[0]=192|(K&1984)>>>6,D[1]=128|K&63):D[0]=K;this.parsedData.push(D)}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))},CVY=function(x){this.typeNumber=0;
this.errorCorrectLevel=x===void 0?2:x;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},Bz=function(x,G){if(x.length==void 0)throw Error("qk`"+x.length+"`"+G);
for(var D=0;D<x.length&&x[D]==0;)D++;this.num=Array(x.length-D+G);for(G=0;G<x.length-D;G++)this.num[G]=x[G+D]},Igc=function(x,G){this.totalCount=x;
this.dataCount=G},j4Y=function(){this.buffer=[];
this.length=0},OEb=function(){var x=!1;
if(_.ePL()){x=_.Q3();var G="";_.QVh()?(G=/Windows (?:NT|Phone) ([0-9.]+)/,G=(x=G.exec(x))?x[1]:"0.0"):_.UD()?(G=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,G=(x=G.exec(x))&&x[1].replace(/_/g,".")):_.MfL()?(G=/Mac OS X ([0-9_.]+)/,G=(x=G.exec(x))?x[1].replace(/_/g,"."):"10"):_.WL(_.Q3(),"KaiOS")?(G=/(?:KaiOS)\/(\S+)/i,G=(x=G.exec(x))&&x[1]):_.ePL()?(G=/Android\s+([^\);]+)(\)|;)/,G=(x=G.exec(x))&&x[1]):_.pL3()&&(G=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,G=(x=G.exec(x))&&x[1]);x=G||""}return x},nq4=function(x,
G){this.JSC$17352__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(G)for(var D in G)this.JSC$17352__htOption[D]=G[D];this.JSC$17352__htOption.useSVG&&(Xwx=A2b);this.JSC$17352__android=OEb();this.JSC$17352__el=x;this._oQRCode=null;this._oDrawing=new Xwx(this.JSC$17352__el,this.JSC$17352__htOption);this.JSC$17352__htOption.text&&(x=this.JSC$17352__htOption.text,this._oQRCode=new CVY(this.JSC$17352__htOption.correctLevel),Uic(this._oQRCode,x),G=this._oQRCode,ReO(G,!1,S98(G)),this.JSC$17352__el.title=
x,this._oDrawing.draw(this._oQRCode),this.makeImage())},iET=function(x,G,D,K,z){x.save();
var y=new Path2D;y.roundRect(G,D,K*7,K*7,K*2);y.roundRect(G+K,D+K,K*5,K*5,K*1.3);y.roundRect(G+2*K,D+2*K,K*3,K*3,K);x.clip(y,"evenodd");x.fillStyle=z;x.fillRect(0,0,x.canvas.width,x.canvas.height);x.restore()},rz=function(x,G){if(typeof x!=="function")throw Error("tk");
return _.Df.setTimeout(function(){x()},G)},sw=function(){},uv4=function(x,G,D,K,z){(new sw).debug("TestLoadImageWithRetries: "+z);
if(K==0)D(!1);else{var y=z||0;K--;gqY(x,G,function(c){c?D(!0):_.Df.setTimeout(function(){uv4(x,G,D,K,y)},y)})}},gqY=function(x,G,D){var K=new sw;
K.debug("TestLoadImage: loading "+x);var z=new Image;z.onload=function(){try{K.debug("TestLoadImage: loaded"),dix(z),D(!0)}catch(y){}};
z.onerror=function(){try{K.debug("TestLoadImage: error"),dix(z),D(!1)}catch(y){}};
z.onabort=function(){try{K.debug("TestLoadImage: abort"),dix(z),D(!1)}catch(y){}};
z.ontimeout=function(){try{K.debug("TestLoadImage: timeout"),dix(z),D(!1)}catch(y){}};
_.Df.setTimeout(function(){if(z.ontimeout)z.ontimeout()},G);
z.src=x},dix=function(x){x.onload=null;
x.onerror=null;x.onabort=null;x.ontimeout=null},wwf=function(){this.front_=[];
this.back_=[]},q9c=function(x,G){_.Ya.call(this);
this.delay_=new _.HZ(this.JSC$17478_onTick_,0,this);_.WZ(this,this.delay_);this.JSC$17476_interval_=5E3;this.nextTickTime_=0;if(typeof x==="function")G&&(x=(0,_.mW)(x,G));else if(x&&typeof x.handleEvent==="function")x=(0,_.mW)(x.handleEvent,x);else throw Error("Ca");this.JSC$17478_listener_=x},YF=function(x,G,D,K,z,y,c,W,e,Q,p,V,L,r){D=D===void 0?!1:D;
K=K===void 0?function(){return""}:K;
z=z===void 0?!1:z;y=y===void 0?!1:y;c=c===void 0?!1:c;W=W===void 0?function(){return _.aI({})}:W;
e=e===void 0?!1:e;p=p===void 0?!1:p;V=V===void 0?!1:V;L=L===void 0?!1:L;r=r===void 0?!1:r;this.JSC$17479_pathPrefix_=x;this.defaultQueryParams_=G;this.pubsub_=new _.e_;this.reconnectTimer_=new q9c(this.safeReconnect_,this);this.JSC$17479_channel_=null;this.JSC$17479_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17479_pendingMessages_=[];this.enableAsyncTest_=D;this.JSC$17479_getXsrfToken_=K;this.useAsyncBrowserChannelHandler_=y;this.getAuthorizationHeader_=
W;this.getAuthorizationHeaderSync_=Q;this.enableCachedUpdateAuthorizationHeader_=c;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.aI();this.enableLoungeTokenRefresh_=z;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=e;this.disableMdxAuthForNonPlaybackMessages_=p;this.disableMdxAuthForAdMessages_=V;this.enableMdxAuthForConnectionOnly_=L;this.disableMdxAuthForShortsMessages_=r;this.JSC$17479_channelOpenedCounter=new NuT;this.JSC$17479_channelClosedCounter=new vqf;this.channelMessageSentCounter=
new J2c;this.JSC$17479_channelMessageReceivedCounter=new fgY;this.JSC$17479_channelErrorCounter=new tm4;this.pendingMapsOnClosedCounter=new k16;this.undeliveredMapsOnClosedCounter=new PVc},m$=function(x){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;x=x||document.location.href;var G=Number(_.v6(x)[4]||null)||"";G&&(this.port=":"+G);this.domain=_.Jm(x)||"";x=_.Q3();x.search("MSIE")>=0&&_.ML(x.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},Hz=function(x){x=x||{};
this.name=x.name||"";this.id=x.id||x.screenId||"";this.token=x.token||x.loungeToken||"";this.uuid=x.uuid||x.dialId||"";this.idType=x.screenIdType||"normal"},EqO=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(x){var G=Math.random()*16|0;
return(x=="x"?G:G&3|8).toString(16)})},heT=function(x){return _.Hu(x,function(G){return{key:G.id,
name:G.name}})},xq6=function(x,G){return _.iO(x,function(D){return D||G?!D!=!G?!1:D.id==G.id:!0})},Fd=function(x,G){return _.iO(x,function(D){return $F(D,G)})},aP6=function(){var x=GRT(),G=DqT();
if(K7k()){var D=x,K=_.rQf(D,G);K<0&&_.BnC(D,-(K+1),0,G)}x=zp6(x);if(x.length==0)try{_.auf("remote_sid")}catch(z){}else try{_.QR("remote_sid",x.join(","),-1)}catch(z){}},GRT=function(){var x=_.xt("yt-remote-connected-devices")||[];
x.sort(_.z7);return x},zp6=function(x){if(x.length==0)return[];
var G=x[0].indexOf("#"),D=G==-1?x[0]:x[0].substring(0,G);return _.Hu(x,function(K,z){return z==0?K:K.substring(D.length)})},oBb=function(x){_.hi("yt-remote-connected-devices",x,86400)},DqT=function(){if(yU8)return yU8;
var x=_.xt("yt-remote-device-id");x||(x=EqO(),_.hi("yt-remote-device-id",x,31536E3));for(var G=GRT(),D=1,K=x;_.qL(G,K);)D++,K=x+"#"+D;return yU8=K},lPT=function(){return _.xt("yt-remote-session-browser-channel")},K7k=function(){return _.xt("yt-remote-session-screen-id")},W7x=function(x){x.length>5&&(x=x.slice(x.length-5));
var G=_.Hu(cU8(),function(K){return K.loungeToken}),D=_.Hu(x,function(K){return K.loungeToken});
_.NVf(D,function(K){return!_.qL(G,K)})&&T1Y();
_.hi("yt-remote-local-screens",x,31536E3)},cU8=function(){return _.xt("yt-remote-local-screens")||[]},T1Y=function(){_.hi("yt-remote-lounge-token-expiration",!0,86400)},CV=function(x){x||(_.GP("yt-remote-session-screen-id"),_.GP("yt-remote-session-video-id"));
aP6();x=GRT();_.f$(x,DqT());oBb(x)},ZoO=function(){epY();
return Io?!!Io.get("yt-remote-use-staging-server"):!1},epY=function(){if(!Io){var x=_.MqP();
x&&(Io=new _.B0(x))}},VSO=function(x,G,D,K,z){D=D===void 0?function(){return""}:D;
var y=function(){return new YF(jp(x,"/bc"),G,!1,D,K)};
return _.B("enable_mdx_web_channel_desktop")?new MS4(function(){return new QNT(jp(x,"/wc"),G,D)}):new pmO(y,z)},rUC=function(){var x=boO;
L76();Ow.push(x);B1i()},Xd=function(x,G){L76();
var D=sNY(x,String(G));Ow.length==0?Yvf(D):(B1i(),_.uM(Ow,function(K){K(D)}))},Aw=function(x){Xd("CP",x)},L76=function(){Ow||(Ow=_.nT("yt.mdx.remote.debug.handlers_")||[],_.Jv("yt.mdx.remote.debug.handlers_",Ow))},Yvf=function(x){var G=(Uw+1)%50;
Uw=G;mqi[G]=x;Hof||(Hof=G==49)},B1i=function(){var x=Ow;
if(mqi[0]){var G=Hof?Uw:-1,D={};do D={record$jscomp$13:void 0},G=(G+1)%50,D.record$jscomp$13=mqi[G],_.uM(x,function(K){return function(z){z(K.record$jscomp$13)}}(D));
while(G!=Uw);mqi=Array(50);Uw=-1;Hof=!1}},sNY=function(x,G){var D=(Date.now()-$qx)/1E3;
D.toFixed&&(D=D.toFixed(3));var K=[];K.push("[",D+"s","] ");K.push("[","yt.mdx.remote","] ");K.push(x+": "+G,"\n");return K.join("")},Ro=function(x){_.vQ.call(this);
this.JSC$17503_logName_=x;this.screens=[]},nV=function(x){Ro.call(this,"LocalScreenService");
this.JSC$17510_http_=x;this.loungeTokenRefreshTimer_=NaN;Sp(this);this.info("Initializing with "+F7k(this.screens))},is=function(x,G){G=G===void 0?!1:G;
Ro.call(this,"ScreenService");this.JSC$17516_http_=x;this.disableAutomaticScreenCache_=G;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};Cgf(this)},gz=function(x,G,D){_.vQ.call(this);
this.JSC$17520_logName_=D;this.JSC$17520_screenService_=x;this.receiver_=G;this.screen_=null},qvT=function(x,G,D){D.disableCastApi?us("Cannot initialize because disabled by Mdx config."):IPi()?jNj(x,D)&&(OoT(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?Xmf(G):(window.__onGCastApiAvailable=function(K,z){K?Xmf(G):(dz("Failed to load cast API: "+z),AUi(!1),OoT(!1),_.GP("yt-remote-cast-available"),_.GP("yt-remote-cast-receiver"),Uq6(),G(!1))},D.loadCastApiSetupScript?_.Uf("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?Rpx()>=60&&SvY():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?nBT():Rpx()>=89?io4():(gBb(),uK6(dqf.map(wmb))))):us("Cannot initialize because not running Chrome")},Uq6=function(){us("dispose");
var x=wz();x&&x.dispose();_.Jv("yt.mdx.remote.cloudview.instance_",null);N18(!1);_.JSn(vBi);vBi.length=0},JU4=function(){return!!_.xt("yt-remote-cast-installed")},fP4=function(){var x=_.xt("yt-remote-cast-receiver");
return x?x.friendlyName:null},tSi=function(){us("clearCurrentReceiver");
_.GP("yt-remote-cast-receiver")},kRf=function(){return JU4()?wz()?wz().getCastSession():(dz("getCastSelector: Cast is not initialized."),null):(dz("getCastSelector: Cast API is not installed!"),null)},EBT=function(x,G){PgC()?wz().setConnectedScreenStatus(x,G):dz("setConnectedScreenStatus called before ready.")},IPi=function(){var x=_.Q3().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.Kr||x},jNj=function(x,G){var D=!1;
wz()||(x=new qx(x,G),x.subscribe("yt-remote-cast2-availability-change",function(K){_.hi("yt-remote-cast-available",K);El("yt-remote-cast2-availability-change",K)}),x.subscribe("yt-remote-cast2-receiver-selected",function(K){us("onReceiverSelected: "+K.friendlyName);
_.hi("yt-remote-cast-receiver",K);El("yt-remote-cast2-receiver-selected",K)}),x.subscribe("yt-remote-cast2-receiver-resumed",function(K){us("onReceiverResumed: "+K.friendlyName);
_.hi("yt-remote-cast-receiver",K);El("yt-remote-cast2-receiver-resumed",K)}),x.subscribe("yt-remote-cast2-session-change",function(K){us("onSessionChange: "+hpf(K));
K||_.GP("yt-remote-cast-receiver");El("yt-remote-cast2-session-change",K)}),_.Jv("yt.mdx.remote.cloudview.instance_",x),D=!0);
us("cloudview.createSingleton_: "+D);return D},wz=function(){return _.nT("yt.mdx.remote.cloudview.instance_")},Xmf=function(x){AUi(!0);
OoT(!1);wz().init(!1,function(G){G?(N18(!0),_.fDD("yt-remote-cast2-api-ready")):(dz("Failed to initialize cast API."),AUi(!1),_.GP("yt-remote-cast-available"),_.GP("yt-remote-cast-receiver"),Uq6());x(G)})},us=function(x){Xd("cloudview",x)},dz=function(x){Xd("cloudview",x)},AUi=function(x){us("setCastInstalled_ "+x);
_.hi("yt-remote-cast-installed",x)},PgC=function(){return!!_.nT("yt.mdx.remote.cloudview.apiReady_")},N18=function(x){us("setApiReady_ "+x);
_.Jv("yt.mdx.remote.cloudview.apiReady_",x)},OoT=function(x){_.Jv("yt.mdx.remote.cloudview.initializing_",x)},Nx=function(x){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(x)},xpc=function(){var x,G;
return _.T(function(D){if(D.nextAddress==1)return(_.jnn()||_.B("use_new_nwl"))&&_.$BQ().isNetworkAvailable()?_.Z(D,_.fL(),2):D.return();if(D.nextAddress!=3)return(x=D.yieldResult)?_.Z(D,X64(x),3):D.return();G=D.yieldResult;if(!G.length)return D.return();G.forEach(function(K){var z={timestamp:K.timestamp};K=K.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:K.appShellAssetLoadReport,options:z}:K.clientError?{payloadName:"clientError",payload:K.clientError,options:z}:void 0;K&&
_.Fv(K.payloadName,K.payload,K.options)});
G.length===100&&_.Fj.addLowPriorityJob(xpc);_.c5(D)})},Gyf=function(x){if(x.playerResponse){if(x=x.playerResponse,x.messages&&x.messages.length>0&&(x=x.messages.find(function(G){return!(!G||!G.mealbarPromoRenderer)}))&&x.mealbarPromoRenderer)return x.mealbarPromoRenderer}else if(x.response&&(x=x.response)&&x.overlay&&x.overlay.mealbarPromoRenderer)return x.overlay.mealbarPromoRenderer},Dp8=function(x){if(x.response){var G=x.response;
if(G&&G.overlay&&G.overlay.tooltipRenderer)return G.overlay.tooltipRenderer}if(x.playerResponse&&(x=x.playerResponse,x.messages&&x.messages.length>0&&(x=x.messages.find(function(D){return!(!D||!D.tooltipRenderer)}))&&x.tooltipRenderer))return x.tooltipRenderer},zc4=function(x){if(!Kbc&&(x=x||_.Am("ZWIEBACK_PING_URLS"))&&x.length){Kbc=!0;
for(var G=0;G<x.length;G++)_.ip(x[G])}},om4=function(x){if(_.YS.get(_.Am("PLAYER_VARS",{}),"privembed",!1)!="1"){x&&YoT();
try{aux().then(function(){},function(){}),_.oA(om4,18E5)}catch(G){_.RE(G)}}},y$j=function(){var x=_.M5(),G=x.getFlag(119),D=window.devicePixelRatio>1;
document.body&&_.jH(document.body,"exp-invert-logo")&&(D&&!_.jH(document.body,"inverted-hdpi")?_.qJ(document.body,"inverted-hdpi"):!D&&_.jH(document.body,"inverted-hdpi")&&_.dk(document.body,"inverted-hdpi"));G!=D&&(_.Qg(0,119,D),x.save())},luc=function(x){return x.filter(function(G){return"ypcGetCartEndpoint"in G||"ypcFixInstrumentEndpoint"in G})},c$f=function(x){return x.filter(function(G){return!_.Y(G,_.HBE)})},Wb4=function(x){x=_.l(x);
for(var G=x.next(),D={};!G.done;D={setter$jscomp$6:void 0},G=x.next()){var K=G.value;G=K.params;K=K.service;G&&K&&(D.setter$jscomp$6=T5j[K],D.setter$jscomp$6&&G.forEach(function(z){return function(y){var c=y.key;y=y.value;c&&y&&(0,z.setter$jscomp$6)(c,y)}}(D)))}},ZCc=function(x,G){var D,K,z,y,c,W,e;
_.T(function(Q){switch(Q.nextAddress){case 1:D=_.s4.getInstance();K=_.y2.instance;z=_.Aa.instance;if(!z)return ecj(x,K,G),Q.return();_.Kl(Q,2);x.onLoadingCommand&&K.resolveCommand(x.onLoadingCommand);return _.Z(Q,D.getCurrentPositionFromGeolocation(),4);case 4:y=Q.yieldResult;if(!x.resolveLocationCommand){Q.jumpTo(5);break}c=D.createLocationInfo(y);return _.Z(Q,_.Rl(z,x.resolveLocationCommand,{locationInfo:c}),6);case 6:W=Q.yieldResult;if(!W||"error"in W&&W.error||W.errorMetadata)return ecj(x,K,G),
Q.return();var p;if(W==null?0:(p=W.onResponseReceivedActions)==null?0:p.length){p=_.l(W.onResponseReceivedActions);for(var V=p.next();!V.done;V=p.next())K.resolveCommand(V.value)}(_.Y(x.onSuccessCommand,_.d5)||_.Y(x.onSuccessCommand,_.TU))&&_.h$(G.hostElement,"yt-navigate",{endpoint:x.onSuccessCommand,reload:!0});case 5:_.iI(Q,0);break;case 2:e=_.lX(Q);if(e instanceof GeolocationPositionError&&e.code===GeolocationPositionError.PERMISSION_DENIED)return x.onDeniedCommand&&K.resolveCommand(x.onDeniedCommand),
Q.return();ecj(x,K,G);_.c5(Q)}})},ecj=function(x,G,D){x.onFailureCommand&&(G.resolveCommand(x.onFailureCommand),_.xO(D.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},QZO=function(x,G){var D=_.Y(x,_.g1o);
if(D&&G){x=D.videoIds||[D.videoId];var K;G=(K=_.h$(G,"yt-lockup-requested",{videoIds:x}).detail)==null?void 0:K.returnValue;var z;D.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?z=G?G:x.map(function(y){return{videoId:y,navigationEndpoint:D.videoCommand}}):G&&(z=G);
z&&(K=z.map(function(y){var c=Object,W=c.assign;var e=y.navigationEndpoint;if(!_.Y(e,_.MB)){var Q=_.Y(e,_.d5);if(Q){if(delete Q.index,delete Q.playlistId,Q=_.Y(e==null?void 0:e.commandMetadata,_.fC),Q==null?0:Q.url){var p=Q.url;p=_.J$(p,"list");p=_.J$(p,"index");Q.url=p}}else e=void 0}return W.call(c,{},y,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:e})}),Mq4(K,D))}},pyf=function(x){var G=_.jK();
if(x=_.Y(x,_.umu))x.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&G.clearQueue(),x.closeMiniplayer&&_.Eo().resolve(_.O$).close(!0)},bCk=function(x){Vq4(_.jK(),x)},Lbc=function(x){var G;
(x=(G=_.Y(x,_.n1s))==null?void 0:G.setVideoIds)&&x.forEach(function(D){_.iSk(_.jK(),D)})},r$C=function(x){B5f(_.jK(),x)},sZC=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(x){return!1}},Yf6=function(x){var G=_.Eo().resolve(_.P6(_.MN));
if(G){var D={beforeTransition:function(){x.style.viewTransitionName="miniplayer-page-transition"},
afterTransition:function(){x.style.viewTransitionName=""}};
vz(G,"slide",D);vz(G,"zoom",D)}},mpj=function(x,G,D){return{horizontalAlignment:x.x+D.width/2<G.width/2?"west":"east",
verticalAlignment:x.y+D.height/2<G.height/2?"north":"south"}},Fb8=function(x,G,D,K,z){z=z===void 0?new _.$S(0,0):z;
return HCi($pC(x,G,D,K),z)},$pC=function(x,G,D,K){return new _.$S(x==="west"?16:D.width-K.width-16,G==="north"?16:D.height-K.height-16)},Cx4=function(x,G){var D=0;
x&&(D+=76);G&&(D+=285);return D},IuT=function(x){var G=["h",
"m","s"],D=_.kC(G);D.reverse();var K={};x=(x.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(c){var W=(c.match(/[hms]/)||[""])[0];return W?(K[W]=parseInt(c.match(/\d+/)[0],10),!1):!0});
for(x.reverse();x.length&&D.length;){var z=D.shift();z in K||(K[z]=parseInt(x.shift(),10))}if(x.length||K.s>59||K.m>59||K.h>9)return null;var y="";G.forEach(function(c){K[c]&&(y+=""+K[c]+c)});
return y||null},jZj=function(x){x=x.data;
return _.M("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.M("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.M(_.wk,{data:{thumbnails:[{url:x.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.M("div",{class:"profile-badge-view-model-wiz__content"},_.M("div",{class:"profile-badge-view-model-wiz__badge-description"},x.badgeDesc),x.badgeSubtitle?_.M("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},x.badgeSubtitle):null))},OC4=function(x){x=
x.data;
var G=_.qi();_.t9h(G,x.rendererContext);return _.M("yt-comment-interaction-view-model",{el:G,class:"yt-comment-interaction-view-model-wiz"},_.M("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":x.onTapA11yLabel,"on:keydown":_.wW3(),tabindex:0},_.M("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.M("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},x.headerPrefix,' "',x.videoTitle),_.M("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.M("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.M("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},x.commentContent),_.M("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.M(_.wk,{data:{thumbnails:[{url:x.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},A$k=function(x){x=x.data;
return _.M("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},Xyx(x.avatar),_.M("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},x.channelName))},Rc6=function(x){x=x.data;
var G;return _.M("div",{class:"yt-profile-info-view-model-wiz__activity"},_.M("div",{class:"yt-profile-info-view-model-wiz__header"},_.M("div",{class:"yt-profile-info-view-model-wiz__section-title"},x.commentsInteractionTitle)),(G=x.comments)==null?void 0:G.map(function(D){return _.M("div",{class:"yt-profile-info-view-model-wiz__activity"},UpY(D))}))},Sfj=function(x){x=x.data;
var G=_.XB({elementsCommand:x.subscriptionsAccessButtonCommand}),D=_.qi();_.HkV(D,_.jn(x.subscriptionsAccessButtonCommand));var K;return _.M("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.M("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.M("a",{el:D,"on:click":_.WH(function(z){if(G==null?0:G.onclick)G.onclick(z);return!1}),
class:"yt-profile-info-view-model-wiz__another-header"},_.M("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},x.sharedSubscriptionsTitle),_.M("div",null,UpY(x.subscriptionsAccessButton)))),_.M("div",{class:"yt-profile-info-view-model-wiz__subs"},(K=x.sharedSubscriptions)==null?void 0:K.slice(0,5).map(function(z){return _.M("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",UpY(z))})))},nmO=function(x){x=x.data;
var G;return _.M("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.M("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.M("h2",{class:"yt-profile-info-view-model-wiz__section-title"},x.sharedSubscriptionsTitle)),_.M("div",{class:"yt-profile-info-view-model-wiz__subs"},(G=x.sharedSubscriptions)==null?void 0:G.slice(0,5).map(function(D){return _.M("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",UpY(D))})))},iCb=function(x){x=x.data;
return _.M("div",{class:"yt-profile-info-view-model-wiz__activity"},[x.profileBadgeInfoYtWide,x.profileBadgeInfoChannelWide].map(function(G){var D,K,z,y,c;return G?_.M(_.xT,null,_.M("div",{class:"yt-profile-info-view-model-wiz__header"},_.M("div",{class:"yt-profile-info-view-model-wiz__section-title"},G==null?void 0:G.profileSectionTitle),_.M("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.M("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},G==null?void 0:(D=G.commentBadge)==
null?void 0:D.commentDesc),(G==null?0:(K=G.commentBadge)==null?0:K.blackHeartDesc)?_.M("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.M("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.M(_.wk,{data:{thumbnails:[{url:G==null?void 0:(z=G.commentBadge)==null?void 0:z.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.M("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},G==null?void 0:(y=
G.commentBadge)==null?void 0:y.blackHeartDesc))),_.M("div",{class:"yt-profile-info-view-model-wiz__badge"},G==null?void 0:(c=G.badges)==null?void 0:c.map(function(W){return _.M(jZj,{data:W})}))):null}))},gmi=function(x){x=x.data;
return _.M("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.M(iCb,{data:x}),x.comments?_.M(Rc6,{data:x}):null,x.sharedSubscriptionsTitle?x.subscriptionsAccessButtonCommand?_.M(Sfj,{data:x}):_.M(nmO,{data:x}):null)},dpj=function(x){var G=x.data;
x=G?uxT(G.profileIdentityInfo):void 0;G=G?uxT(G.profileInfo):void 0;return _.M("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},x,G)},wyO=function(x,G){var D=_.BjZ(G,{},x,!0);
return new Promise(function(K,z){D.listenOnce("n",function(){z(Error("dl`"+D.JSC$25868_getErrorDescription()))});
D.listenOnce("l",function(){var y=D.getResponseCode();if(y!==200)z(Error("el`"+G+"`"+x.type+"`"+x.size+"`"+y));else try{K(JSON.parse(D.getResponseText()).encryptedBlobId)}catch(c){z(c)}});
D.run()})},qff=function(x){return x.substring(x.indexOf(":")+1,x.indexOf(";"))},N5T=function(x){return new Promise(function(G,D){var K=new FileReader;
K.onloadend=function(){try{var z=new Uint8Array(K.result);z.length<8&&D(void 0);var y=z.subarray(0,8);z="";for(var c=0;c<y.length;c++)z+=("0"+y[c].toString(16)).substr(-2);z.startsWith("ffd8ff")?G("image/jpeg"):z.startsWith("47494638")?G("image/gif"):z.startsWith("89504e470d0a1a0a")?G("image/png"):z.startsWith("424d")?G("image/bmp"):G(void 0)}catch(W){D(W)}};
K.onerror=D;K.readAsArrayBuffer(x)})},vm6=function(x){return new Promise(function(G,D){var K=new Image;
K.crossOrigin="anonymous";K.onload=function(){var z=document.createElement("canvas");z.width=K.naturalWidth;z.height=K.naturalHeight;var y=z.getContext("2d");if(!y)throw Error("fl");y.drawImage(K,0,0);y=qff(x);z.toBlob(function(c){c?G(c):D()},y)};
K.src=x})},fui=function(x,G){var D;
if(((D=_.Y(x,_.MB))==null?void 0:D.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var K;_.h$((K=G.hostElement)!=null?K:G,"yt-shorts-reset");_.wt7(_.Eo().resolve(_.yb),x).then(function(y){J$x(y,G,x)})}else{var z;
_.KW((z=G.hostElement)!=null?z:G,[x]).then(function(y){y&&J$x(y.data,G,x)})}},J$x=function(x,G,D){if(x){var K=_.Y(x.replacementEndpoint,_.MB);
if(K){x.sequenceContinuation&&(K.sequenceParams=x.sequenceContinuation);var z;_.h$((z=G.hostElement)!=null?z:G,"yt-navigate",{endpoint:x.replacementEndpoint})}else if((x==null?void 0:x.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(x==null?0:x.watchStatus)&&_.Y(x.watchStatus,_.smq)){var y;_.h$((y=G.hostElement)!=null?y:G,"yt-navigate",{endpoint:D})}}},tqf=function(x){var G=_.Eo().resolve(_.$t),D=DOk(G.getState())||"";
G=_.Okf(G.getState())||"";D=D==="ytd-browse"&&G==="home";return _.B("web_guide_entry_enable_cache_for_non_home_pages")?(x=(x==null?void 0:x.navigationEndpoint)&&_.ci(x.navigationEndpoint)==="home",{disableCache:D&&x}):{disableCache:D}},kyx=function(x){if(!x)return!1;
try{if(x.host&&x.host.tagName==="YT-FORMATTED-STRING"&&x.host.id==="contenteditable-textarea"||x.nodeType===Node.ELEMENT_NODE&&x.tagName==="YTD-COMMENT-INPUT")return!0}catch(G){return!1}return kyx(x.parentNode)},Jw=function(x){return x?x.tagName==="A"&&x.href&&x.classList.contains("yt-simple-endpoint"):!1},Pxf=function(x){return x?x.tagName==="IMG"&&x.classList.contains("emoji"):!1},EmC=function(x,G,D){if(!x)return null;
var K=Jw(x);if(K&&D)return G=x.pathname.substring(x.pathname.indexOf("/channel/")+9),document.createTextNode("@"+G);if(K&&!D)return document.createTextNode("");if(Pxf(x))return D=x.alt,x=x.dataset.emojiId,!x&&G&&(G=_.Wb(G,D))&&G.isCustomEmoji&&(x=G.emojiId),x?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+x+">"):document.createTextNode(D);K=x.cloneNode(!1);for(var z=0;z<x.childNodes.length;++z){var y=EmC(x.childNodes[z],G,D);y&&K.appendChild(y)}return K},fV=function(x){return x?Jw(x)?x:fV(x.lastChild):
null},hc8=function(x){return x?Jw(x)?x:hc8(x.firstChild):null},x5b=function(x){if(!x)return null;
for(var G=x.previousSibling;G;)if(G.nodeType===Node.ELEMENT_NODE&&G.nodeName==="BR")G=G.previousSibling;else if(G.nodeType===Node.TEXT_NODE&&/\s+/.test(G.textContent))G=G.previousSibling;else break;(G=fV(G))?x=G:x=(x=x.parentNode)?fV(x.previousElementSibling):null;return x},Glf=function(x){if(!x)return null;
for(var G=x.nextSibling;G;)if(G.nodeType===Node.ELEMENT_NODE&&G.nodeName==="BR")G=G.nextSibling;else if(G.nodeType===Node.TEXT_NODE&&/\s+/.test(G.textContent))G=G.nextSibling;else break;return(G=hc8(G))?G:Glf(x.parentNode)},D5x=function(x){var G=_.Zk(),D=G.JSC$9250_getStartNode();
if(!kyx(D.parentNode))return null;G=G.JSC$9250_getStartOffset();if(D.nodeType===Node.TEXT_NODE){var K=_.Xn(D,Jw);if(K){if(x&&G===0||!x&&G===D.length)return K}else{if(x&&G===D.length)return!D||D.nodeName==="BR"||D.nextElementSibling&&_.MX(D.nextElementSibling,"display")==="block"?null:hc8(D.nextElementSibling);if(!x&&G===0)return D?fV(D.previousElementSibling):null}}if(D.nodeType===Node.ELEMENT_NODE)if(x){if(0<=G&&G<D.childNodes.length)return hc8(D.childNodes[G])}else if(0<G&&G<=D.childNodes.length)return fV(D.childNodes[G-
1]);return null},Ks8=function(x,G,D){if(!x)return null;
if(x.nodeType===Node.TEXT_NODE)if(D){var K=x5b(x);if(K&&!/^\s+\S/.test(x.wholeText.substr(0,G)))return K}else if((K=Glf(x))&&!/\S\s+/.test(x.wholeText.substr(G,x.wholeText.length)))return K;return x.nodeType===Node.ELEMENT_NODE?D?x5b(x.childNodes[G]):Glf(x.childNodes[G]):Ks8(x.parentNode,G,D)},z9O=function(x){if(x.hasChildNodes())switch(x.tagName){case "DIV":case "A":case "SPAN":var G="";
for(x=x.firstChild;x;x=x.nextSibling)G+=z9O(x);return G;default:return""}else switch(x.nodeType){case 3:return x.textContent;default:return""}},aqi=function(x){x=x.data;
return _.M("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.M("div",null,_.M(_.vq,{text:x.title})),x.subtitle?_.M("div",{class:"ytd-menu-title-renderer__subtitle"},_.M(_.vq,{text:x.subtitle})):null)},oOC=function(x){switch(x){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"}},yNx=function(x){return x.map(function(G){return{settingsRadioOptionRenderer:{title:_.Pg(G.name),
asideText:_.Pg(G.approximateSize),id:oOC(G.format)}}})},cN8=function(x){if(x&&x.length!==0)return x.filter(lqf()).map(function(G){return{settingsRadioOptionRenderer:{title:G.name,
asideText:G.approximateSize,id:oOC(G.formatType)}}})},tw=function(x){if(x)return x.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},TBC=function(x,G){x=new Set(x!=null?x:[]);
if(x.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(x.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(x.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(x.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(x.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(G)return"YOUTUBE_ENTITY_TYPE_DEFAULT"},Wsf=function(x){var G=x.indexOf("(");
return G!==-1?x.substring(G+1,x.length-1):x},e9f=function(x){switch(x){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},M7f=function(x,G,D,K,z,y){var c=_.YS.clone(ZWf);
c.locale=_.Am("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;c.report={description:z||"<empty>"};z=_.Am("SBOX_SETTINGS",{});G=G.join(",");var W=Date.now();x={choice_cc:K,choice_id_cc:D,choices_sc:G,gl:z.REQUEST_DOMAIN,hl:z.REQUEST_LANGUAGE,query:x,time:W};y&&(x.choice_additional_comment_cc=y);_.$Xo(c,x)},QIf=function(x){var G=new Map;
G.set("authuser",_.Am("SESSION_INDEX","0"));return _.Gj(x,G)},V7f=function(x){var G;
return _.T(function(D){switch(D.nextAddress){case 1:if(!x||!pgT(x))return D.return(null);G=null;switch(_.Am("INNERTUBE_CLIENT_NAME")){case "WEB":return D.jumpTo(2);case "WEB_REMIX":G=x.getPlayer()}D.jumpTo(3);break;case 2:return _.Z(D,x.getPlayerPromise(),4);case 4:G=D.yieldResult;D.jumpTo(3);break;case 3:return D.return(G)}})},pgT=function(x){return["ytd-player",
"ytmusic-player"].includes(String(x.tagName||"").toLowerCase())},bWY=function(x){x=Math.round(x);
return x%2?x-1:x},LsO=function(x){x=Math.round(x);
return x%2===0?x-1:x},BBf=function(x){var G,D,K;
if(x=(G=x.createPlaylistDialogFormSchema)==null?void 0:(D=G.fieldSchemas)==null?void 0:(K=D.title)==null?void 0:K.validationSchema)for(G=[x.syncStep,x.asyncStep].filter(function(z){return z!==void 0}),G=_.l(G),D=G.next();!D.done;D=G.next()){D=D.value.rules;
if(!D)break;D=_.l(D);for(D=D.next();!D.done;D=D.next())return _.Y(D.value,_.$1T)}},sI4=function(x){var G,D,K;
if(x=(G=x.createPlaylistDialogFormSchema)==null?void 0:(D=G.fieldSchemas)==null?void 0:(K=D.visibility)==null?void 0:K.validationSchema)for(G=[x.syncStep,x.asyncStep].filter(function(z){return z!==void 0}),G=_.l(G),D=G.next();!D.done;D=G.next()){D=D.value.rules;
if(!D)break;D=_.l(D);for(K=D.next();!K.done;K=D.next())if(K=_.Y(K.value,rNC))return G=void 0,(G=K.translations)==null?void 0:G.visibilityNotValidErrorMessage}},YOC=function(){var x,G;
return(G=(x=_.Eo().resolve(_.P6(_.ib)))==null?void 0:x())!=null?G:!1},m5j=function(x){var G=21;
if(!x)return G;G+=x.headerTitle?27:0;G+=x.headerTitle&&x.hasHeaderActionHeader?4:0;return G+=x.headerTitle&&x.headerSubtitle?16:0},HWf=function(x){var G=0;
if(!x)return G;G+=x.hasFooterPrimaryButton||x.hasFooterSecondaryButton?48:0;G+=x.footerTrailingLabel||x.footerLeadingLabel?30:0;return G+=x.hasFooterPrimaryButton||x.hasFooterSecondaryButton||!x.footerTrailingLabel&&!x.footerLeadingLabel?0:12},$5b=function(x){var G=new _.e_,D=x;
return{subscribe:function(K){G.subscribe("changed",K)},
dispatch:function(K,z){var y=D;K==="Touch Start"?D=Object.assign({},y,{isAnimating:!1,initialY:z.event.touches[0].clientY}):K==="Touch Move"?(K=Math.min(z.fullContentWrapperHeight,z.contentHeightMap[z.contentWrapperId]+m5j(z.header)-HWf(z.footer)),D=Object.assign({},y,{currentY:Math.max(z.contentScrollable?-1*(y.initialY-24):0,z.event.touches[0].clientY-y.initialY),maxHeightForContentWrapper:Math.min(K,Math.max(0,(y.isFullScreen?K:z.contentWrapperHeight)-y.currentY))})):D=K==="Snap To Full Screen"?
Object.assign({},y,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:z.maxHeight}):K==="Snap To Neutral Position"?Object.assign({},y,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:z.maxHeight}):K==="Close Sheet"?Object.assign({},y,{isAnimating:!0,currentY:z.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:z.maxHeight}):y;G.publish("changed",D)}}},FsO=function(x){return _.WH(function(G){x(G);
return!1})},C0C=function(){_.Eo().resolve(_.bm).closeSheet()},Iqj=function(x){var G,D,K,z,y,c,W,e,Q,p,V;
return{headerTitle:(G=x.headerTitle)==null?void 0:G.call(x),headerSubtitle:(D=x.headerSubtitle)==null?void 0:D.call(x),headerActionHeader:x.headerActionHeader,footerPrimaryButton:x.footerPrimaryButton,footerSecondaryButton:x.footerSecondaryButton,footerButtonType:(K=x.footerButtonType)==null?void 0:K.call(x),footerLeadingLabel:(z=x.footerLeadingLabel)==null?void 0:z.call(x),footerTrailingLabel:(y=x.footerTrailingLabel)==null?void 0:y.call(x),shouldShowIcons:(c=x.shouldShowIcons)==null?void 0:c.call(x),
skipContentClick:(W=x.skipContentClick)==null?void 0:W.call(x),additionalClassName:(e=x.additionalClassName)==null?void 0:e.call(x),onClosedCallback:x.onClosedCallback,focusOnClose:(Q=x.focusOnClose)==null?void 0:Q.call(x),isDisabled:(p=x.isDisabled)==null?void 0:p.call(x),disabledCommand:(V=x.disabledCommand)==null?void 0:V.call(x),headerFn:x.headerFn,contentFn:x.contentFn,footerFn:x.footerFn,hasHeaderFn:x.hasHeaderFn(),hasContentFn:x.hasContentFn(),hasFooterFn:x.hasFooterFn(),hasFooterPrimaryButton:x.hasFooterPrimaryButton(),
hasFooterSecondaryButton:x.hasFooterSecondaryButton(),hasHeaderActionHeader:x.hasHeaderActionHeader()}},jIj=function(x){switch(x){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""}},OWf=function(x){switch(x){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""}},XgO=function(x){switch(x){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""}},ANT=function(x,G,D){G.forEach(function(K){_.DO(_.Eo().resolve(_.ph),K)});
_.xO(x,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",D])},nO4=function(x,G,D,K){var z=_.Y(D,_.OV).commandLifeCycleConfig;
z&&z.onStartCommand&&_.zl(x,[z.onStartCommand],G);_.uQ(G);var y=_.Aa.instance;y&&_.Uu(y,D)?_.Rl(y,D,K).then(function(c){if(!c||(c==null?0:c.error))return c=_.Y(D,_.OV).serializedTransactionFlowLoggingParams,_.dj(G),_.rk(new kF("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",c));_.dj(G);return{data:c}}).then(function(c){_.dj(G);
U5Y(c.data);var W=c.data.command;W&&_.zl(x,[W],G);W=R9f(D,c.data);if(!W){var e=c.data;c=!1;if(e&&e.command&&_.Y(e.command,_.oI)){var Q;e=((Q=_.Y(e.command,_.oI))==null?void 0:Q.commands)||[];for(Q=0;Q<e.length;Q++)if(_.Y(e[Q],_.lis)){c=!0;break}}c||_.Vb('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!W&&z&&z.onSuccessCommand?_.zl(x,[z.onSuccessCommand],G):W&&z&&z.onFailureCommand&&_.zl(x,[z.onFailureCommand],G)},function(){_.dj(G);
z&&z.onFailureCommand&&_.zl(x,[z.onFailureCommand],G);SOi(D)}):_.I4(Error("wl"),"ERROR")},iWf=function(x,G,D){var K=[G];
D&&K.push(D);return _.KW(x,K).then(function(z){var y=_.Y(G,_.OV).serializedTransactionFlowLoggingParams,c=z.data,W=R9f(G,c);W?z=_.rk(new kF(W,y)):U5Y(c);return z},function(){var z=_.Y(G,_.OV).serializedTransactionFlowLoggingParams;
SOi(G);return _.rk(new kF("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",z))})},R9f=function(x,G){x=_.Y(x,_.OV).serializedTransactionFlowLoggingParams;
var D=null;switch(G.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":D="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":D="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":D="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}D?_.nt(D,x):fbc(x);return D},SOi=function(x){_.nt("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.Y(x,_.OV).serializedTransactionFlowLoggingParams)},
U5Y=function(x){if(x.trackingParams){var G=_.CC(),D=_.Fx();
G&&D&&_.RI(G,D,_.V2(x.trackingParams))}},gOT=function(x,G,D){var K=_.Aa.instance,z=_.nkn(_.Am("YPC_MB_URL")),y=(new _.REQ).init(),c=_.SzP(),W=_.Y(D,_.zzk).languageCode;
W===void 0?_.I4(Error("Ai"),"ERROR"):_.Zz([y,z]).then(function(){var e={ctk:payments.business.integration.ClientTokenFactory.createClientToken(W,c)};K&&_.Uu(K,D)?_.Rl(K,D,e).then(function(Q){return{data:Q}}).then(function(Q){_.h$(G,"yt-service-request-completed",Q);
Q.code!=="ERROR"&&(Q=Q.data.command)&&_.zl(x,[Q],G)}):_.I4(Error("wl"),"ERROR")})},wg4=function(x,G,D,K){var z=_.Aa.instance;
z&&_.Uu(z,D)?_.Rl(z,D,K).then(function(y){return{data:y}}).then(function(y){usf(x,G,D,y)},function(){d5c(D)}):(z=_.Eo().resolve(_.P6(_.mg)))&&z.requestDataForServiceEndpoint(D,K).then(function(y){usf(x,G,D,y)},function(){d5c(D)})},usf=function(x,G,D,K){_.h$(G,"yt-service-request-completed",K);
if(K.code&&K.code=="ERROR")d5c(D);else{(K=K.data.commands)&&_.zl(x,K,G);var z;(x=(z=_.Y(D,_.Te7))==null?void 0:z.serializedYpcPauseFlowLoggingParams)&&x&&_.$Z("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",x)}},d5c=function(x){var G;
(x=(G=_.Y(x,_.Te7))==null?void 0:G.serializedYpcPauseFlowLoggingParams)&&x&&_.$Z("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",x,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},vOi=function(x,G,D){var K=_.Aa.instance;
K&&_.Uu(K,D)?_.Rl(K,D).then(function(z){return{data:z}}).then(function(z){qOk(x,G,D,z)},function(){NBO(D)}):(K=_.Eo().resolve(_.P6(_.mg)))&&K.requestDataForServiceEndpoint(D).then(function(z){qOk(x,G,D,z)},function(){NBO(D)})},qOk=function(x,G,D,K){_.h$(G,"yt-service-request-completed",K);
K.code&&K.code=="ERROR"?NBO(D):((K=K.data.commands)&&_.zl(x,K,G),(x=_.Y(D,_.WPs).serializedYpcResumeFlowLoggingParams)&&x&&_.$Z("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",x))},NBO=function(x){(x=_.Y(x,_.WPs).serializedYpcResumeFlowLoggingParams)&&x&&_.$Z("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",x,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},JNC=function(x){x=x===void 0?{}:x;
_.Eo().resolve(_.QC0).showFeedbackDialog(x.customProductData,x.feedbackContent,x.onFeedbackSubmitted,x.bucket)},fqc=function(x){x=x===void 0?{}:x;
_.Eo().resolve(_.QC0).showHelpDialog(x.helpContext,x.articleId,x.productData)},t7f=function(){fqc()},kl8=function(){JNC()},EOO=function(x,G,D){var K,z,y,c,W,e,Q;
return _.T(function(p){switch(p.nextAddress){case 1:K=_.Y(x,P0f);if((z=K)==null?0:z.productId){e={productId:K.productId,bucket:K.bucket,enableAnonymousFeedback:(W=K.enableAnonymousFeedback)!=null?W:!0,allowNonLoggedInFeedback:!0};Q={feedbackChoice:D.feedbackChoice};if(!_.B("web_collect_offline_state")){p.jumpTo(8);break}_.Kl(p,9);return _.Z(p,zH6(Q),11)}c={bucket:(y=K)==null?void 0:y.bucket};if(!_.B("web_collect_offline_state")){p.jumpTo(4);break}c.customProductData={};_.Kl(p,5);return _.Z(p,zH6(c.customProductData),
7);case 7:_.iI(p,4);break;case 5:_.lX(p);case 4:JNC(c);p.jumpTo(0);break;case 11:_.iI(p,8);break;case 9:_.lX(p);case 8:_.ItL(Q),_.CWQ("GFEEDBACK",Q),K.productId==="5295751"&&(Q.client_attestation=Number(_.Am("CATSTAT",0))),K.productId==="5295751"&&(Q.client_time=Date.now()/1E3/3600),K.productId==="5295751"&&(Q.original_playback_id=_.kkE||""),_.$Xo(e,Q),_.c5(p)}})},h9i=function(x){if(x=_.Y(x,_.Fcd)){var G={bucket:x.bucketIdentifier};
x.additionalDatas&&(G.customProductData={},x.additionalDatas.forEach(function(D){if(D=D.userFeedbackEndpointProductSpecificValueData)G.customProductData[D.key]=D.value}));
JNC(G)}},xWk=function(x){var G=_.gu.getInstance();
var D=_.Wg("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var K=_.Wg("DELETE",void 0,"Delete"),z=_.Wg("CANCEL",void 0,"Cancel");D=eRY(D,void 0,K,z,{signal:"DELETE_ALL_DOWNLOADS"});_.YG(G,[{openPopupAction:D}],x)},DW8=function(){return _.T(function(x){return x.nextAddress==1?_.Z(x,_.Eo().resolve(_.fO),2):_.Z(x,Gmj(),0)})},K8c=function(x){var G,D;
return _.T(function(K){return K.nextAddress==1?(D=(G=_.Y(x,_.Sm))==null?void 0:G.targetId)?_.Z(K,_.Eo().resolve(_.fO),3):K.jumpTo(0):_.Z(K,_.Eo().resolve(_.JV).deleteVideo(D),0)})},a2i=function(x){var G,D;
return _.T(function(K){return K.nextAddress==1?(D=(G=_.Y(x,_.Sm))==null?void 0:G.targetId)?_.Z(K,_.Eo().resolve(_.fO),3):K.jumpTo(0):_.Z(K,zDY(_.Eo().resolve(_.JV),D),0)})},yrO=function(x){var G,D;
return _.T(function(K){return(D=(G=_.Y(x,_.Sm))==null?void 0:G.targetId)?_.Z(K,o_O(D),0):K.jumpTo(0)})},crO=function(){_.B("kevlar_woffle_refresh_dl_load_killswitch")||l2j()},W8b=function(){_.B("kevlar_woffle")&&_.rA.instance&&TKc()},Z36=function(x){var G;
if((G=_.Y(x,_.zx))==null||!G.videoId)return!1;eD8(_.Eo().resolve(_.JV),_.Y(x,_.zx),x.clickTrackingParams);return!0},Q_c=function(x){var G;
if((G=_.Y(x,_.oO))==null||!G.playlistId)return!1;M5k(_.Eo().resolve(_.JV),_.Y(x,_.oO),x.clickTrackingParams);return!0},V5O=function(x){var G=_.Y(x,_.KUs);
(G==null?void 0:G.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(G==null?void 0:G.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||pkO(_.Eo().resolve(_.JV),_.Y(x,_.KUs))},L8i=function(x){x=_.Y(x,_.j6q);
var G;(x==null?0:(G=x.actions)==null?0:G.length)&&b34(x)},s_i=function(x){var G,D;
return _.T(function(K){G=_.Y(x,BKT);return(D=G)!=null&&D.localWatchHistoryCommandType?_.Z(K,rrY(G),0):K.return()})},YAc=function(x){setTimeout(function(){requestAnimationFrame(x)},80)},mWj=function(x){return Object.entries(x).map(function(G){return G.join(":")}).join(";")},$Wc=function(x){var G,D,K;
_.T(function(z){if(z.nextAddress==1)return _.Z(z,H3T(),2);G=z.yieldResult;D=_.y2.instance;switch(G){case "granted":K=x.getLocationCommand;break;case "denied":K=x.openDeniedDialogAction;break;case "prompt":K=x.openCollectionDialogAction;break;default:K=x.openCollectionDialogAction}K&&D.resolveCommand(K);_.c5(z)})},H3T=function(){var x,G;
return _.T(function(D){if(D.nextAddress==1)return x="prompt",navigator.permissions?_.Z(D,navigator.permissions.query({name:"geolocation"}),3):D.jumpTo(2);D.nextAddress!=2&&(G=D.yieldResult,x=G.state);return D.return(x)})},C74=function(){_.T(function(x){return _.Z(x,_.F8x(),0)})},I2Y=function(){var x,G,D;
return _.T(function(K){if(K.nextAddress==1)return x=_.Eo().resolve(_.Hi),x?_.Z(K,_.Rl(x,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.O9(Error("zl")),K.return(void 0));if(G=K.yieldResult){if(G.errorMetadata)return _.O9(Error("Al`"+G.errorMetadata.status+"`"+G.error)),K.return(void 0);D=G.datasyncIds;_.Qaq=D.length;return K.return(D)}_.O9(Error("Bl"));return K.return(void 0)})},j_x=function(){I2Y().then(function(x){x&&(jEf(x),kz6(x),sAc(x),oWi(x))})},O34=function(x){_.Fj.addLowPriorityJob(function(){var G,
D,K,z,y;
return _.T(function(c){switch(c.nextAddress){case 1:if(_.B("ytidb_clear_optimizations_killswitch")){c.jumpTo(2);break}G=_.VR("clear");if(G.startsWith("V")&&G.endsWith("||")){var W=[G];jEf(W);kz6(W);sAc(W);oWi(W);return c.return()}D=YjY();K=yu6();return _.Z(c,PIT(),3);case 3:return z=c.yieldResult,_.Z(c,OT8(),4);case 4:if(y=c.yieldResult,!(D||K||z||y))return c.return();case 2:x.isNetworkAvailable()?j_x():x.listenOnce("publicytnetworkstatus-online",j_x),_.c5(c)}})})},Pz=function(x){x={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.gK(x)}}}};_.y2.instance&&_.y2.instance.resolveCommand(x)},Xk8=function(x){if(x){var G=_.en();
_.EV(G,3854,void 0,{layer:0,parentLayer:4});switch(x){case 1:var D=238708;break;case 2:D=238715;break;case 3:D=238710;break;case 6:D=238709}D&&(x=_.Wh(G,{veType:D}))&&_.G$(G,x)}},Ar8=function(x){if(x){var G=_.en();
_.EV(G,3854,void 0,{layer:0,parentLayer:4});switch(x){case 1:var D=238714;break;case 2:D=238711;break;case 8:D=238709;break;case 7:D=238713;break;case 3:case 4:case 5:D=238712}D&&(x=_.Wh(G,{veType:D}))&&_.G$(G,x)}},UWO=function(x){switch(x.latencyType){case 0:_.$O("consent_primitive_flow");
_.Fs("cpit",x.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.Fs("cpist",x.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.Fs("cprtif",x.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.Fs("cprtli",x.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.Fs("cprt",x.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.Fs("cpdt",x.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.Fs("cpjct",x.timestampEpochMillis,"consent_primitive_flow")}},
NKC=function(x,G){var D,K,z,y,c,W,e,Q,p,V,L,r,H,O,A,g,u,f,v,P;
return _.T(function(k){switch(k.nextAddress){case 1:_.Kl(k,2);(K=(D=_.Y(x,RDj))==null?void 0:D.serializedConsentRequest)||(K=(z=_.Y(x,SAc))==null?void 0:z.serializedConsentRequest);K&&(y=n_j(_.eZ(K)));if(y===void 0)return k.return();c=i3Y(y);c.latencyCallback=UWO;G&&g_O(c,function(){G.then(function(cL){cL.pauseVideo();(new uX8).increment()})});
return((W=_.Y(x,RDj))==null?void 0:W.consentAction)==="CONSENT_ACTION_PREWARM"||((e=_.Y(x,SAc))==null?void 0:e.consentAction)==="CONSENT_ACTION_PREWARM"?_.Z(k,dW4(c),5):_.Z(k,wkf(c),6);case 6:Q=k.yieldResult;p=_.eI(Q,Ew);if(p===1){if(((V=_.HV(Q,hw,1,Ew))==null?void 0:_.sk(V,1))===1||((L=_.HV(Q,hw,1,Ew))==null?void 0:_.sk(L,1))===2||((r=_.HV(Q,hw,1,Ew))==null?void 0:_.sk(r,1))===3)_.Y(x,SAc)?Pz(_.Wg("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
Pz(_.Wg("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));Xk8((H=_.HV(Q,hw,1,Ew))==null?void 0:_.sk(H,1),_.hO(Q,qAf,3,_.xa()))}else p===2?(((O=xv(Q))==null?void 0:_.sk(O,1))===5?_.Y(x,SAc)?Pz(_.Wg("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):Pz(_.Wg("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((A=xv(Q))==null?void 0:_.sk(A,1))===1||((g=xv(Q))==null?void 0:_.sk(g,1))===4?Pz(_.Wg("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((u=xv(Q))==null?void 0:_.sk(u,1))===7&&((f=y)==null?void 0:(v=_.hv(f,GN,4))==null?void 0:_.sk(v,4))!==1&&Pz(_.Wg("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),Ar8((P=xv(Q))==null?void 0:_.sk(P,1))):Pz(_.Wg("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));k.jumpTo(5);break;case 5:_.iI(k,0);break;case 2:_.lX(k),Pz(_.Wg("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.c5(k)}})},Jrc=function(){if(!v_c.has("Worker")){v_c.set("Worker",
!0);
var x={api:"BROWSER_API_WEB_WORKER"};x.available="Worker"in window?!0:!1;_.Fv("apiTest",x)}},f2j=function(x){return typeof x==="undefined"?"-1":String(Math.ceil(x/1048576))},E_x=function(x,G){t5k(new kmj(_.Y(G,P7c).addToken,_.Y(G,P7c).commonToken)).then(function(){_.h$(x,"yt-invoke-instrument-manager-action-completed")},function(D){_.h$(x,"yt-invoke-instrument-manager-action-error",D)})},hDc=function(x){return _.jI(x)},xBO=function(x){var G=1;
x=x.split(":");for(var D=[];G>0&&x.length;)D.push(x.shift()),G--;x.length&&D.push(x.join(":"));return D},GUc=function(x,G){G=x.aspectRatio()<=G.aspectRatio()?G.width/x.width:G.height/x.height;
x.scale(G)},DBk=function(x,G){G=x.aspectRatio()>G.aspectRatio()?G.width/x.width:G.height/x.height;
return x.scale(G)},KgC=function(x){var G=new _.Ex;
return _.$p(G,11,x)},zSi=function(x){var G={};
x=x.getAllResponseHeaders().split("\r\n");for(var D=0;D<x.length;D++)if(!_.y3(x[D])){var K=xBO(x[D]),z=K[0];K=K[1];if(typeof K==="string"){K=K.trim();var y=G[z]||[];G[z]=y;y.push(K)}}return _.YS.map(G,function(c){return c.join(", ")})},cz=function(x,G){return x.JSC$7807_xhr_?x.JSC$7807_xhr_.getResponseHeader(G):null},DG=function(x,G,D){Array.isArray(D)||(D=[String(D)]);
_.cOE(x.JSC$8039_queryData_,G,D);return x},TKc=function(){var x=_.rA.instance;
_.T(function(G){return x.deferredInstallPrompt?_.Z(G,x.deferredInstallPrompt.prompt(),0):G.jumpTo(0)})},aDx=function(x,G,D){if(_.PL(x))_.uM(x,G,D);
else for(x=_.p07(x);;){var K=x.next();if(K.done)break;G.call(D,K.value,void 0,x)}},oAf={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}"]},Dv6,Kyb,z$f,a6c,orb,yof,l6T,coY,Tc6,o_O,zDY,Gmj,Wyj,e$C,Z7x,M2f,Qek,M5k,eD8,pDj,V2C,b7k,l2j,pkO,Ly6,b34,Bcc,rrY,rob,sec,YYb,mvj,H7j,$vc,FyO,vz,CDb,I6Y,
Vq4,Mq4,jeC,lR,cI,TN,WI,O7c,XDk,Aof,Uvi,R$T,SYc,nrT,i7T,grT,uw4;oAf={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 ySO=function(x,G){var D=[];aDx(G,function(K){try{var z=_.xm.prototype.getWrapper.call(this,K,!0)}catch(y){if(y=="Storage: Invalid value was encountered")return;throw y;}z===void 0?D.push(K):_.QAZ(z)&&D.push(K)},x);
return D},lDC=function(x,G){ySO(x,G).forEach(function(D){_.xm.prototype.remove.call(this,D)},x)},cSi=function(x){var G=_.Xa;
G._minimumZ=Math.max(G._minimumZ,x)},TAc=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],Wgi=function(x,G){_.kS(x.hf);x.hf=G},eSj=function(x,G,D,K){x.setState(5);
var z=!!x.mJI&&TAc.includes(_.Jm(x.mJI)||"");try{var y=new _.sR({program:G,globalName:D,f3:{disable:!_.B("att_web_record_metrics")||!_.B("att_skip_metrics_for_cookieless_domains_ks")&&z,kp:"aGIf"}});y.vcI.then(function(){x.setState(6);K&&K(G)});
Wgi(x,y)}catch(c){x.setState(7),c instanceof Error&&_.O9(c)}},ZtY=function(x,G,D,K,z,y){var c=c===void 0?"trayride":c;
D?(x.setState(2),_.Uf(D,function(){if(window[c])eSj(x,K,c,z);else{x.setState(3);var W=_.NiE(D),e=document.getElementById(W);e&&(_.kUQ(W),e.parentNode.removeChild(e));_.O9(new _.LL("BL:ULB",D))}},y)):G?(y=_.p4("SCRIPT"),G instanceof _.X_?_.RF(y,G):y.textContent=G,y.nonce=_.O2(document),document.head.appendChild(y),document.head.removeChild(y),window[c]?eSj(x,K,c,z):(x.setState(4),_.O9(new _.LL("BL:ULBJ")))):_.O9(new _.LL("BL:ULV"))},MTC=function(){this.state=1;
this.hf=null;this.mJI=void 0};
_.a=MTC.prototype;_.a.initialize=function(x,G,D,K){this.mJI=K;if(x.program){var z;K=(z=x.interpreterUrl)!=null?z:null;if(x.interpreterSafeScript)z=_.b3P(x.interpreterSafeScript);else{var y;z=(y=x.interpreterScript)!=null?y:null}x.interpreterSafeUrl&&(K=_.CU(x.interpreterSafeUrl).toString());ZtY(this,z,K,x.program,G,D)}else _.O9(Error("jf"))};
_.a.isInitialized=function(){return!!this.hf};
_.a.getState=function(){return this.state};
_.a.isLoading=function(){return this.state===2};
_.a.invoke=function(x){x=x===void 0?{}:x;var G;this.hf?G=_.E0i(this.hf,{vA:x}):G=null;return G};
_.a.dispose=function(){Wgi(this,null);this.setState(8)};
_.a.setState=function(x){this.state=x};
var QnO=function(x,G){return x.hf.snapshot(G)},piY=function(x,G){var D=_.Gz("botguard_async_snapshot_timeout_ms",3E3);
G=G===void 0?{}:G;D=D===void 0?3E3:D;return x.hf?new Promise(function(K,z){var y=!1,c=_.Fj.addJob(function(){y=!0;z(Error("kf"))},1,D);
x.hf?QnO(x,{vA:G}).then(function(W){_.Fj.cancelJob(c);y||K(W)}).catch(function(W){_.Fj.cancelJob(c);
y||z(W)}):(_.Fj.cancelJob(c),K(null))}):Promise.resolve(null)},VTT=["att/log"],btf;
btf={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var Lgc={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},BAx=function(x,G){return _.Tm(x,{mode:"readwrite",enableRetries:!0},function(D){return _.bZD(D,G,"settingEntity")})},rSO=function(x,G,D){return _.Tm(x,{mode:"readonly",
enableRetries:!0},function(K){return _.UCu(K,G,D)})},snT=function(x){if(!x.storage)return!1;
a:{if(x.storage){try{var G=x.storage.get("TLPQtimestamp")}catch(D){}x=Number(G);if(!isNaN(x))break a}x=void 0}return x?Date.now()-x<864E5:!1},Y4T=function(x){if(x.storage){try{var G=x.storage.get("TLPQindex")}catch(D){}x=Number(G);
if(!isNaN(x))return x}},mB8=function(x,G){x.queueProxy&&G.forEach(function(D){if(D.videoId&&D.trackingParams&&x.queueProxy instanceof _.s3){var K=_.CC();
x.queueProxy.attributionData.set(D.videoId,{enqueueingVe:_.V2(D.trackingParams).getAsJson(),enqueueingCsn:K?K:void 0,clientEnqueueingTimeMs:Math.floor((0,_.kK)()).toString()})}})},Htx=function(x){var G=_.MeZ(x);
G!=x.currentSnapState_&&(x.currentSnapState_=G,x.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},Ka=function(x){this.JSC$11047_networkManager_=x;
this.partCallbacks_=[]};
Ka.prototype.getCacheKeyForEndpoint=function(x){return _.hJ$(x,!1)};
Ka.prototype.onPartsCallback_=function(x){this.partCallbacks_.forEach(function(G){x&&G(x)})};
var zN=function(x,G,D){Ka.call(this,x);this.player_=G;this.autoplayData_=D};
_.m(zN,Ka);zN.prototype.getCacheKeyForEndpoint=function(x){return _.hJ$(x,!!this.autoplayData_)};
zN.prototype.getTempData=function(x,G){G=G.timeBeforeNextVideo;x={itct:x.clickTrackingParams,lact:_.xq(),pbis:G,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(x.autonav=1);return x};
zN.prototype.getXhrParams=function(x){return Object.assign({pbj:"prefetch"},x)};
zN.prototype.getParams=function(x){x={frags:x.fragmentsRequested.join(",")};_.B("kevlar_droppable_prefetchable_requests")&&(x.prefetch=1);return x};
var $B6=function(x){x.playerEvents_.forEach(function(G){x.player.removeEventListener(G.eventName,G.callback)});
x.playerEvents_.length=0},a1=function(x,G,D){this.player=x;
this.JSC$11057_taskManager=G;this.prefetchDelay=D;this.completionResolver_=null;this.playerEvents_=[]};
a1.prototype.start=function(){var x=this;this.completionResolver_=_.Ss();_.M_(this.completionResolver_.promise,function(){$B6(x);x.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var Fg8=function(x,G,D){x.player.addEventListener(G,D);x.playerEvents_.push({eventName:G,callback:D})},Co6={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},IDO={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},jnb=function(x,G,D){a1.call(this,x,G,D);this.cueId_="playbackTrigger-"+Math.random()};
_.m(jnb,a1);
jnb.prototype.prepareTrigger=function(x){var G=this,D=this.player.getDuration(),K=this.player.getVideoData(),z=K.isLive&&K.hasProgressBarBoundaries;if(z&&K.progressBarEndPositionUtcTimeMillis){var y=K.progressBarEndPositionUtcTimeMillis/1E3;isNaN(y)||(D=y)}var c=0;this.prefetchDelay>=0?z?K.progressBarStartPositionUtcTimeMillis&&(K=K.progressBarStartPositionUtcTimeMillis/1E3,isNaN(K)||(c=K+this.prefetchDelay)):c=this.prefetchDelay:c=D+this.prefetchDelay;z?this.player.addUtcCueRange(this.cueId_,c,D):
this.player.addCueRange(this.cueId_,c,D);_.M_(x.promise,function(){G.player.removeCueRange(G.cueId_)});
Fg8(this,"onCueRangeEnter",function(W){W==G.cueId_&&x.resolve(D-c)})};
var Otk=function(x,G){x.fragmentConfiguration_[G].requiredKeys.every(function(D){return!!x.prefetchedData_[D]})&&(x.validatedFragments_.push(G),G=x.missingFragments_.indexOf(G),G!==-1&&x.missingFragments_.splice(G,1))},Xi6=function(x){x.prefetchedFragments_.forEach(function(G){Otk(x,G)})},ASC=function(x,G,D){this.pageFragments_=x;
this.prefetchedFragments_=G;this.fragmentConfiguration_=IDO;this.prefetchedData_=D;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;Xi6(this)},UB8=function(){},RST=function(x){this.JSC$11071_playlistManager_=x};
_.m(RST,UB8);RST.prototype.getPrefetchEndpoint=function(){return this.JSC$11071_playlistManager_.getAutoplayEndpoint()};
var S4T=function(x){this.autonavEndpoints_=x};
_.m(S4T,UB8);S4T.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var nAC=function(x,G,D,K,z){this.autonavEndpoints=x;this.foregroundTrigger=G;this.backgroundTrigger=D;this.pageType=K;this.isInPlaylist=z},itC=function(x,G){if(x.webPrefetchData&&x.webPrefetchData.navigationEndpoints&&x.webPrefetchData.navigationEndpoints.length){x=x.webPrefetchData.navigationEndpoints;
var D=_.Y(x[0],_.d5);if(D.watchEndpointSupportedPrefetchConfig&&D.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var K=D.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;D=K.playbackRelativeSecondsPrefetchCondition;D=typeof D==="number"&&Math.abs(D)<G.videoDuration?D:void 0;K=K.countdownUiRelativeSecondsPrefetchCondition;K=typeof K!=="number"||_.B("prefetch_job_config_cleanup_ks")&&G.inPlaylist?void 0:K;if(typeof K==="number")return new nAC(x,G.makeUpNextTrigger(K),G.makePlaybackTrigger(K),
"watch",G.inPlaylist);if(typeof D==="number")return new nAC(x,G.makePlaybackTrigger(D),null,"watch",G.inPlaylist)}}},gAk=function(x){return x.prefetchJobConfig_.backgroundTrigger?_.SR(_.qtd)()==0?x.prefetchJobConfig_.backgroundTrigger:x.prefetchJobConfig_.foregroundTrigger:x.prefetchJobConfig_.foregroundTrigger},u5f=function(x){_.cA(document,"visibilitychange",x.onVisibilityChange_,!1,x)},o1=function(x){Ka.call(this,x)};
_.m(o1,Ka);o1.prototype.getCacheKeyForEndpoint=function(x){return Ka.prototype.getCacheKeyForEndpoint.call(this,x)};
o1.prototype.getTempData=function(){return{}};
o1.prototype.getXhrParams=function(x){return x};
o1.prototype.getParams=function(){return{}};
var dBO=function(x,G,D){var K=x.prefetchDelay*1E3;if(Math.abs(K)>G)D.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var z=K,y=G-K;K<0&&(z=G+K,y=Math.abs(K));var c=x.JSC$11057_taskManager.addJob(function(){D.resolve(y/1E3)},10,z);
D.promise.thenCatch(function(){x.JSC$11057_taskManager.cancelJob(c)})}},wii=function(x,G,D){a1.call(this,x,G,D)};
_.m(wii,a1);wii.prototype.prepareTrigger=function(x){var G=this;Fg8(this,"onAutonavCoundownStarted",function(D){dBO(G,D,x)})};
var q4b=function(x){x.pendingPrefetchJob_&&(x.pendingPrefetchJob_.cancel(),x.pendingPrefetchJob_=null)},NAi=function(x,G,D){if(!x.triggeredTargets.has(G)){var K=_.lI7(x,G);
K.action=D;_.ocZ(x,G,K)}},vAj=function(x){_.J97();
_.Dlf("cpt")&&_.O9(Error("hh"));_.Df.requestAnimationFrame(function(){_.Df.setTimeout(function(){_.Fs("cpt");var G=_.j7("vpl"),D=_.j7("cpt");G&&D&&_.Fs("ol",Math.max(G,D))})});
try{_.Fs("fr_s"),x()}catch(G){_.I4(G)}_.Df.requestAnimationFrame(function(){_.Fs("bcp")})},JSb=function(x,G){x.serviceEndpointHandlers.push(G)},fDc=function(x,G){G=x.pendingPages_.indexOf(G);
G>-1&&x.pendingPages_.splice(G,1)},tTc=function(x,G){var D=_.cIJ.indexOf(G);
D>-1&&_.cIJ.splice(D,1);x.targetPage_==G?(x.abort(),_.Wc9(x)):fDc(x,G)},kU6=function(x,G,D,K){G={challenge:G};
D&&(G.webResponse=D);return _.ma(x.innertubeTransportService,G,_.qW(VTT),K)},PoO=function(x,G,D){if(!G.challenge)throw Error("ji");
if(G.botguardData&&G.botguardData.program){var K=new MTC;K.initialize(G.botguardData,function(){piY(K,{atr_challenge:G.challenge}).then(function(z){if(!z)throw Error("ki");return kU6(x,G.challenge,z,D)}).catch(function(z){_.O9(z);
return kU6(x,G.challenge,void 0,D)})},void 0)}else kU6(x,G.challenge,void 0,D)},EAT=function(x,G,D){var K={};
G.ids&&(K.ids=[].concat(_.B5(G.ids)));G.engagementType&&(K.engagementType=G.engagementType);return _.ma(x.innertubeTransportService,K,_.qW(_.Pzh),D).then(function(z){if(!z)throw new _.LL("GetAttestationChallenge returned falsy");PoO(x,z,D)}).thenCatch(function(z){_.I4(z)})},hSc=function(x,G,D){return new _.T1(function(K,z){var y;
return _.T(function(c){if(c.nextAddress==1){var W=G.engagementType,e=G.ids,Q={};e=_.l(e!=null?e:[]);for(var p=e.next();!p.done;p=e.next())p=p.value,p.encryptedVideoId?Q.encryptedVideoId=p.encryptedVideoId:p.externalChannelId?Q.externalChannelId=p.externalChannelId:p.commentId?Q.commentId=p.commentId:p.externalOwnerId?Q.externalOwnerId=p.externalOwnerId:p.artistId?Q.artistId=p.artistId:p.playlistId?Q.playlistId=p.playlistId:p.externalPostId?Q.externalPostId=p.externalPostId:p.shareId&&(Q.shareId=p.shareId);
return _.Z(c,WST(W,Q),2)}y=c.yieldResult;if(!y.challenge)return _.O9(Error("li")),EAT(x,G,D).then(K,z),c.return();W=y;Q={challenge:W.challenge};Q.webResponse=W.webResponse;Q.engagementType=G.engagementType;Q.ids=G.ids;_.ma(x.innertubeTransportService,Q,_.qW(VTT),D).then(K,z);_.c5(c)})})},B5f=function(x,G){var D,K,z,y;
_.T(function(c){if(c.nextAddress==1){D=_.Y(G,_.w1h);if(!(D&&D.listId&&x.response&&x.response.playingVideoId)||x.listId!==D.listId)return c.return();x.index===void 0&&(x.index=0);return _.Z(c,_.pTi(x.JSC$10802_playlistNetworkManager,D.listId,x.index,x.response.playingVideoId),2)}K=c.yieldResult;if(!K)return c.return();z=K.playlistId;y=K.playlistPanelRenderer;x.setPlaylistData(z,y,K.autoplayRenderer);_.c5(c)})},xvx=function(x,G,D){var K=x.getParams(D),z=_.Cb$(G,K),y=x.getTempData(G,D);
y.endpoint=JSON.stringify(G);_.B("enable_unknown_lact_fix_on_html5")&&(_.Eo().resolve(_.su),y.lact=_.xq());var c={headers:{"X-YouTube-STS":_.Am("STS"),"x-youtube-csoc":1}};_.vy(z,y);return new _.T1(function(W,e){var Q=x.getXhrParams(K),p;_.B("kevlar_cache_on_ttl_player")&&(p=_.cP.instance);p&&_.iMq(p,G)?_.JM8(p,G,y,window.location.href).then(function(V){V?W(V):e()},e):_.yfu(x.JSC$11047_networkManager_,G,Q,x.onPartsCallback_.bind(x),c).then(function(V){V?W(V):e()},e)})},Gax=function(x,G){x.triggerPromise_=
G.start();
x.triggerPromise_.then(function(D){var K=x.prefetchEndpointProvider_.getPrefetchEndpoint();if(K){var z=Co6[x.prefetchJobConfig_.pageType].prefetchedFragments;x.prefetchRequestPromise_=xvx(x.JSC$11083_networkPrefetchRequest_,K,{fragmentsRequested:z,timeBeforeNextVideo:D});x.prefetchResponseCacheKey_=x.JSC$11083_networkPrefetchRequest_.getCacheKeyForEndpoint(K);u5f(x);x.prefetchRequestPromise_.then(function(y){x.storePrefetchedDataCallback_(x.prefetchResponseCacheKey_,y);if(_.B("web_prefetch_preload_video")&&
z.length===1&&z[0]==="pl"&&y&&!y.playerAds&&!y.adPlacements){var c=_.Y(K,_.MB),W=c!=null,e={raw_player_response:y,watch_endpoint:c};(y=_.Eo().resolve(W?_.Eb8:_.k7))&&K&&y.then(function(Q){W&&_.B("web_queue_preload_video")?(e.prefer_gapless=!0,Q.queueNextVideo(e)):Q.preloadVideoByPlayerVars(e)})}})}})},yc=function(x,G,D,K){this.prefetchEndpointProvider_=x;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=G;this.prefetchJobConfig_=D;this.JSC$11083_networkPrefetchRequest_=K;this.prefetchResponseCacheKey_=null};
yc.prototype.enqueue=function(){this.triggerPromise_||(Gax(this,gAk(this)),_.Lz(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
yc.prototype.resolve=function(){this.cancel()};
yc.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.");u5f(this)};
yc.prototype.onVisibilityChange_=function(){var x=this;_.SR(_.qtd)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){x.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||Gax(this,gAk(this))};
Dv6=function(x,G,D,K,z){G&&(G==null?0:G.videoId)&&D&&D.entries&&_.B("kevlar_enable_shorts_prefetch_in_sequence")&&(q4b(x),G=D.entries.map(function(y){var c;return(c=_.Y(y.command,_.MB))==null?void 0:c.videoId}).indexOf(G.videoId),D=D.entries[G+1],D!=null&&D.command&&!_.Y(D==null?void 0:D.command,_.mP)&&(K=new nAC([D.command],new jnb(K,_.Fj,1),null,"shorts",!1),x.pendingPrefetchJob_=new yc(new S4T(K.autonavEndpoints),function(){return!1},K,new o1(z)),x.pendingPrefetchJob_.enqueue()))};
Kyb=function(x,G,D,K,z,y){var c=_.de.getInstance();if(!_.B("block_all_player_prefetch_requests")){q4b(x);var W=!!D.getPlaylistId(),e=D.getVideoData().isLive&&D.getVideoData().hasProgressBarBoundaries;if((c.getState()==2||W||e)&&(!D.getVideoData().isLive||e)){c={inPlaylist:W,videoDuration:D.getDuration(),makeUpNextTrigger:function(p){return new wii(D,_.Fj,p)},
makePlaybackTrigger:function(p){return new jnb(D,_.Fj,p)}};
var Q=itC(G,c);Q&&(x.pendingPrefetchJob_=new yc(Q.isInPlaylist?new RST(z):new S4T(Q.autonavEndpoints),function(p,V){V=new ASC(Co6[Q.pageType].pageFragments,Co6[Q.pageType].prefetchedFragments,V);return _.PmZ(V)?(x.prefetchCache_.set(p,V),!0):!1},Q,new zN(K,D,y,z)),x.pendingPrefetchJob_.enqueue())}}};
z$f=function(){var x=_.jK();x.signals.parkOrScheduleJob(function(){var G=x.storage;if(G.storage)if(snT(G)){var D=G.getPlaylistId();G=Y4T(G);D=!!D&&G!==void 0}else G.clear(),D=!1;else D=!1;if(D){D=x.pageManager.isOnWatch();a:{var K=x.storage;if(K.storage&&snT(K)&&(G=K.getPlaylistId(),K=Y4T(K),G&&K!==void 0)){D={recoverPlaylistCommand:{listId:G,index:K,openMiniplayer:!D,openListPanel:D,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}D=void 0}D&&_.YG(x.JSC$10802_actionRouter,[D],null)}},0,"ma")};
a6c=function(x,G,D,K,z,y){var c=_.BH(7111);_.hz(x.JSC$16101_screenManager,c,y?_.V2(y):void 0);_.G$(x.JSC$16101_screenManager,c,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:K,offlineId:G,offlineabilityFormatType:D,isDefaultFormatType:z==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:z}})};
orb=function(x,G,D,K,z){var y,c,W,e,Q;return _.T(function(p){if(p.nextAddress==1)return _.Z(p,x.JSC$16101_playerApiPromise,2);y=p.yieldResult;a6c(x,G,D,"OFFLINE_OBJECT_TYPE_PLAYLIST",K,z);if(W=_.dCs[x.entityTypeMap.listEntityType])Q={},c=(Q[W]={maximumDownloadQuality:(e=D)!=null?e:void 0},Q);return _.Z(p,y.queueOfflineAction(G,x.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",c),0)})};
yof=function(x,G){var D,K,z,y;return _.T(function(c){if(c.nextAddress==1)return _.Z(c,x.JSC$16101_persistentStorePromiseAccessor(),2);if(c.nextAddress!=3){D=c.yieldResult;if(!D)return _.O9(new _.LL("PES is undefined")),c.return();K=_.K3(G,"downloadStatusEntity");return _.Z(c,rSO(D,K,"downloadStatusEntity"),3)}z=c.yieldResult;return c.return((y=z)==null?void 0:y.downloadState)})};
l6T=function(x,G,D,K,z){var y,c,W,e,Q,p;return _.T(function(V){switch(V.nextAddress){case 1:return _.Z(V,x.JSC$16101_playerApiPromise,2);case 2:y=V.yieldResult;a6c(x,G,D,"OFFLINE_OBJECT_TYPE_VIDEO",K,z);if(W=_.dCs[x.entityTypeMap.singleEntityType])Q={},c=(Q[W]={maximumDownloadQuality:(e=D)!=null?e:void 0},Q);return _.Z(V,yof(x,G),3);case 3:p=V.yieldResult;if(p!=="DOWNLOAD_STATE_USER_DELETED"){V.jumpTo(4);break}return _.Z(V,x.deleteVideo(G),4);case 4:return _.Z(V,y.queueOfflineAction(G,x.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",c),0)}})};
coY=function(x,G,D,K,z){return _.T(function(y){return y.nextAddress==1?_.Z(y,x.deleteVideo(G,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.Z(y,l6T(x,G,D,K,z),0)})};
Tc6=function(x,G,D){var K,z;return _.T(function(y){if(y.nextAddress==1)return _.Z(y,x.JSC$16101_playerApiPromise,2);K=y.yieldResult;z=_.K3(G,"mainVideoDownloadStateEntity");return _.Z(y,K.updateDownloadState(z,D),0)})};
o_O=function(x){var G=_.Eo().resolve(_.JV);return _.T(function(D){if(D.nextAddress==1)return G.previousDownloadStateForVideo[x]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&G.previousDownloadStateForVideo[x]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?D.jumpTo(2):_.Z(D,G.resumeVideoDownload(x),2);if(D.nextAddress!=4)return _.Z(D,Tc6(G,x,G.previousDownloadStateForVideo[x]),4);delete G.previousDownloadStateForVideo[x];_.c5(D)})};
zDY=function(x,G){var D;return _.T(function(K){if(K.nextAddress==1)return _.Z(K,x.JSC$16101_playerApiPromise,2);D=K.yieldResult;return _.Z(K,D.queueOfflineAction(G,x.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
Gmj=function(){var x=_.Eo().resolve(_.JV),G,D;return _.T(function(K){if(K.nextAddress==1)return _.Z(K,x.JSC$16101_playerApiPromise,2);if(K.nextAddress!=3)return G=K.yieldResult,D={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.Z(K,G.queueOfflineAction("!*$_ALL_ENTITIES_!*$",x.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",D),3);var z=x.JSC$16101_commandHandler,y=z.resolveCommand,c=_.Wg("DELETING_ALL",void 0,"Downloads are being deleted");
y.call(z,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.tN(c)}},popupType:"TOAST"}});_.c5(K)})};
Wyj=function(x){var G,D;return _.T(function(K){if(K.nextAddress==1)return _.Z(K,x.JSC$16101_prefStorage,2);G=K.yieldResult;return K.return((D=G)==null?void 0:D.get("sdois"))})};
e$C=function(x){var G,D,K,z,y,c;return _.T(function(W){if(W.nextAddress==1)return _.Z(W,x.JSC$16101_persistentStorePromiseAccessor(),2);if(W.nextAddress!=3){G=W.yieldResult;if(!G)return _.O9(new _.LL("PES is undefined")),W.return();D=_.K3("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.Z(W,rSO(G,D,"settingEntity"),3)}K=W.yieldResult;return W.return((c=(z=K)==null?void 0:(y=z.settingOptionValue)==null?void 0:y.boolValue)!=null?c:!1)})};
Z7x=function(x,G){var D,K,z,y;return _.T(function(c){switch(c.nextAddress){case 1:return((D=G)==null?void 0:D.formatType)===void 0?c.return():_.Z(c,x.JSC$16101_prefStorage,2);case 2:K=c.yieldResult;if(K===void 0)return c.return();if(((z=G)==null?void 0:z.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.Z(c,K.set("lmqf",G.formatType),8);if(((y=G)==null?void 0:y.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){c.jumpTo(0);break}return _.Z(c,K.set("lmqf",G.formatType),
6);case 6:return _.Z(c,K.set("lmqflst",Math.floor((0,_.kK)())),0);case 8:return _.Z(c,K.remove("lmqflst"),0)}})};
M2f=function(x){var G,D;return _.T(function(K){switch(K.nextAddress){case 1:return _.Z(K,x.JSC$16101_prefStorage,2);case 2:G=K.yieldResult;if(!G){K.jumpTo(3);break}return _.Z(K,G.get("lmqflst"),4);case 4:if(D=K.yieldResult,D!==void 0)return K.return(D);case 3:return K.return(0)}})};
Qek=function(x){var G,D;return _.T(function(K){switch(K.nextAddress){case 1:return _.Z(K,x.JSC$16101_prefStorage,2);case 2:G=K.yieldResult;if(G===void 0){K.jumpTo(3);break}return _.Z(K,G.get("lmqf"),4);case 4:if(D=K.yieldResult,D!==void 0)return K.return(D);case 3:return K.return("SD")}})};
M5k=function(x,G,D){var K,z,y,c,W,e,Q,p;_.T(function(V){switch(V.nextAddress){case 1:return _.Z(V,Z7x(x,(K=G)==null?void 0:K.actionParams),2);case 2:z=G.playlistId;if(!z)return V.return();if(G.action==="ACTION_ADD")return((c=G.actionParams)==null?0:c.formatType)?_.Z(V,orb(x,z,G.actionParams.formatType,(p=G.actionParams)==null?void 0:p.settingsAction,D),0):_.Z(V,x.offlineWebClientEligibility,14);if(G.action==="ACTION_REMOVE_WITH_PROMPT"){var L=x.JSC$16101_commandHandler,r=L.resolveCommand,H=_.Am("INNERTUBE_CLIENT_NAME");
var O=H==="WEB_REMIX"?_.Wg("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Wg("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var A=H==="WEB_REMIX"?[_.Wg("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];H=H==="WEB_REMIX"?_.Wg("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Wg("DELETE",void 0,"Delete");var g=_.Wg("CANCEL",void 0,"Cancel");O=eRY(O,A,H,g,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:z});r.call(L,{openPopupAction:O});
return V.return()}if(G.action==="ACTION_REMOVE")return _.Z(V,zDY(x,z),0);if(G.action!=="ACTION_SYNC"){V.jumpTo(0);break}return _.Z(V,x.JSC$16101_playerApiPromise,9);case 9:return y=V.yieldResult,_.Z(V,y.queueOfflineAction(z,x.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return W=V.yieldResult,_.Z(V,Qek(x),15);case 15:return e=V.yieldResult,_.Z(V,M2f(x),16);case 16:Q=V.yieldResult,G.onAddCommand&&x.JSC$16101_commandHandler.resolveCommand(G.onAddCommand,{form:{preferredFormatType:e,
offlineWebClientEligibility:W,lastOfflineQualitySettingsSavedMs:Q.toString()}}),V.jumpTo(0)}})};
eD8=function(x,G,D){var K,z,y,c,W,e,Q,p,V,L,r,H,O,A;_.T(function(g){switch(g.nextAddress){case 1:return _.Z(g,Z7x(x,(K=G)==null?void 0:K.actionParams),2);case 2:z=G.videoId;if(!z)return g.return();if(G.action==="ACTION_REMOVE_WITH_PROMPT"){var u=x.JSC$16101_commandHandler,f=u.resolveCommand,v=_.Am("INNERTUBE_CLIENT_NAME");var P=v==="WEB_REMIX"?_.Wg("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Wg("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var k=v==="WEB_REMIX"?[_.Wg("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];v=v==="WEB_REMIX"?_.Wg("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Wg("DELETE",void 0,"Delete");var cL=_.Wg("CANCEL",void 0,"Cancel");P=eRY(P,k,v,cL,{signal:"DELETE_DOWNLOAD",targetId:z});f.call(u,{openPopupAction:P});return g.return()}if(G.action==="ACTION_ADD")return((L=G.actionParams)==null?0:L.formatType)?_.Z(g,l6T(x,z,G.actionParams.formatType,(A=G.actionParams)==null?void 0:A.settingsAction,D),0):_.Z(g,x.offlineWebClientEligibility,
23);if(G.action==="ACTION_RETRY")return _.Z(g,Qek(x),19);if(G.action==="ACTION_PAUSE")return _.Z(g,x.pauseVideoDownload(z),0);if(G.action==="ACTION_RESUME")return _.Z(g,x.resumeVideoDownload(z),0);if(G.action!=="ACTION_REMOVE"){g.jumpTo(0);break}return _.Z(g,yof(x,z),13);case 13:return y=g.yieldResult,x.previousDownloadStateForVideo[z]=(c=y)!=null?c:"DOWNLOAD_STATE_UNKNOWN",_.Z(g,Tc6(x,z,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(x.previousDownloadStateForVideo[z]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
x.previousDownloadStateForVideo[z]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){g.jumpTo(15);break}return _.Z(g,x.pauseVideoDownload(z),15);case 15:u=_.Wg("DELETED_VIDEO",void 0,"Video deleted from downloads.");f=_.Wg("UNDO_ACTION",void 0,"Undo");P=_.Wg("CLOSE",void 0,"Close");W={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.tN(u),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.tN(f),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:z}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:u+" "+f}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:z}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:P}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};x.JSC$16101_commandHandler.resolveCommand(W);
g.jumpTo(0);break;case 19:e=g.yieldResult;e==="UNKNOWN_FORMAT_TYPE"&&(e="SD");Q="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((p=G.actionParams)==null?0:p.formatType)e=G.actionParams.formatType,Q=(V=G.actionParams)==null?void 0:V.settingsAction;return _.Z(g,coY(x,z,e,Q,D),20);case 20:return g.return();case 23:return r=g.yieldResult,_.Z(g,Qek(x),24);case 24:return H=g.yieldResult,_.Z(g,M2f(x),25);case 25:O=g.yieldResult,G.onAddCommand&&x.JSC$16101_commandHandler.resolveCommand(G.onAddCommand,
{form:{preferredFormatType:H,offlineWebClientEligibility:r,lastOfflineQualitySettingsSavedMs:O.toString()}}),g.jumpTo(0)}})};
pDj=function(x,G){var D,K,z,y,c,W,e;return _.T(function(Q){if(Q.nextAddress==1)return _.Z(Q,x.JSC$16101_persistentStorePromiseAccessor(),2);D=Q.yieldResult;if(!D)return _.O9(new _.LL("PES is undefined")),Q.return();if((K=G)==null||!K.settingItemId)return Q.return();z=G;y=z.settingItemId;c=z.boolValue;W=_.K3(y,"settingEntity");e={key:W,settingOptionValue:{boolValue:c}};return _.Z(Q,BAx(D,e),0)})};
V2C=function(x,G){var D,K,z,y,c,W,e;return _.T(function(Q){switch(Q.nextAddress){case 1:return _.Z(Q,x.JSC$16101_prefStorage,2);case 2:return D=Q.yieldResult,K=_.M5(),_.Z(Q,x.JSC$16101_persistentStorePromiseAccessor(),3);case 3:return z=Q.yieldResult,D?z?_.Z(Q,D.get("sdois"),4):(_.O9(new _.LL("PES is undefined")),Q.return()):(_.O9(new _.LL("prefStorage is undefined")),Q.return());case 4:y=Q.yieldResult;W=(c=G)==null?void 0:c.boolValue;W===void 0||_.B("kevlar_set_sd_enabled_flag_killswitch")||_.Qg(0,
197,!0);y===void 0&&W===void 0&&(W=!1);if(W===void 0){Q.jumpTo(0);break}return _.Z(Q,D.set("sdois",W),6);case 6:return _.B("kevlar_set_sd_enabled_flag_killswitch")||(_.Qg(0,196,W),K.save()),e={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:W},_.Z(Q,pDj(x,e),0)}})};
b7k=function(x,G,D){var K,z,y,c,W;return _.T(function(e){switch(e.nextAddress){case 1:return _.Z(e,Wyj(x),2);case 2:return K=e.yieldResult,_.Z(e,V2C(x,D),3);case 3:return _.Z(e,Wyj(x),4);case 4:return z=e.yieldResult,y=z!==K,_.Z(e,e$C(x),5);case 5:c=e.yieldResult&&!_.B("kevlar_modern_downloads_page");if((W=!z&&!c)||y)return _.Z(e,G.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);e.jumpTo(0)}})};
l2j=function(){var x=_.Eo().resolve(_.JV),G;_.T(function(D){switch(D.nextAddress){case 1:return _.Z(D,x.JSC$16101_playerApiPromise,2);case 2:G=D.yieldResult;if(!_.B("kevlar_force_refresh_smart_downloads")){D.jumpTo(3);break}return _.Z(D,G.refreshAllStaleEntities(0),4);case 4:return D.return();case 3:return _.Z(D,G.refreshAllStaleEntities(),5);case 5:return _.Z(D,b7k(x,G),0)}})};
pkO=function(x,G){var D,K;_.T(function(z){switch(z.nextAddress){case 1:return _.Z(z,x.JSC$16101_playerApiPromise,2);case 2:D=z.yieldResult;switch((K=G)==null?void 0:K.settingItemId){case "SMART_DOWNLOADS_ENABLED":return z.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return z.jumpTo(4)}z.jumpTo(0);break;case 3:return _.Z(z,b7k(x,D,G),6);case 6:z.jumpTo(0);break;case 4:return _.Z(z,pDj(x,G),7);case 7:z.jumpTo(0)}})};
Ly6=function(x,G){var D,K,z;return _.T(function(y){if(y.nextAddress==1)return _.Z(y,x.JSC$16101_persistentStorePromiseAccessor(),2);if(y.nextAddress!=3){D=y.yieldResult;if(!D)return _.O9(new _.LL("PES is undefined")),y.return(!1);if(!G)return y.return(!1);K=_.K3(G,"mainVideoEntity");return _.Z(y,rSO(D,K,"mainVideoEntity"),3)}z=y.yieldResult;return y.return(z!==void 0)})};
b34=function(x){var G=_.Eo().resolve(_.JV),D,K,z,y,c,W,e,Q,p,V,L;_.T(function(r){switch(r.nextAddress){case 1:return _.Z(r,G.JSC$16101_playerApiPromise,2);case 2:D=r.yieldResult;z=(K=x)==null?void 0:K.actions;if(!z)return r.return();y=_.l(z);c=y.next();case 3:if(c.done){r.jumpTo(0);break}W=c.value;Q=e=void 0;if(!(((e=W)==null?0:e.entityKey)&&((Q=W)==null?0:Q.actionType))){r.jumpTo(4);break}p=_.x_(W.entityKey);V=p.entityId;L=p.entityType;return _.Z(r,D.queueOfflineAction(V,L,W.actionType),4);case 4:c=
y.next(),r.jumpTo(3)}})};
Bcc=function(x,G){var D,K,z,y,c;return _.T(function(W){if(W.nextAddress==1)return _.Z(W,x.JSC$16101_prefStorage,2);if(W.nextAddress!=3)return(D=W.yieldResult)?_.Z(W,D.get("psi"),3):W.return();K=W.yieldResult;c={isPaused:G,lastSyncTimestamp:(y=(z=K)==null?void 0:z.lastSyncTimestamp)!=null?y:"0"};return _.Z(W,D.set("psi",c),0)})};
rrY=function(x){var G=_.Eo().resolve(_.JV),D,K,z,y,c,W,e,Q;return _.T(function(p){switch(p.nextAddress){case 1:return _.Z(p,G.JSC$16101_playerApiPromise,2);case 2:D=p.yieldResult;z=((K=x)==null?void 0:K.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((W=x)==null?void 0:W.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":y="!*$_ALL_ENTITIES_!*$";c="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return p.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return p.jumpTo(4)}p.jumpTo(5);break;case 3:return _.Z(p,Bcc(G,z),6);case 6:p.jumpTo(5);break;case 4:return _.Z(p,Ly6(G,(e=x)==null?void 0:e.videoId),7);case 7:p.yieldResult&&(y=(Q=x)==null?void 0:Q.videoId,c="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");p.jumpTo(5);break;case 5:if(y&&c)return _.Z(p,D.queueOfflineAction(y,"videoPlaybackPositionEntity",c),0);p.jumpTo(0)}})};
rob=function(x,G){var D;G!==1||((D=x.currentPersistentToast)==null?0:D.isOpened())?x.openToast():x.currentPersistentToast=void 0};
sec=function(){var x,G,D,K;return _.T(function(z){if(z.nextAddress==1)return x=navigator,(G=x.storage)!=null&&G.persisted?_.Z(z,(D=x.storage)==null?void 0:D.persisted(),2):z.return("PERSISTED_STATE_NOT_SUPPORTED");K=z.yieldResult;return z.return(K?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
YYb=function(){var x,G,D,K;return _.T(function(z){if(z.nextAddress==1)return x=navigator,(G=x.storage)!=null&&G.persist?_.Z(z,(D=x.storage)==null?void 0:D.persist(),2):z.return("PERSISTED_STATE_NOT_SUPPORTED");K=z.yieldResult;return z.return(K?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
mvj=function(){var x,G;return _.T(function(D){switch(D.nextAddress){case 1:return x="PERSISTED_STATE_NOT_SUPPORTED",_.Kl(D,2),_.Z(D,sec(),4);case 4:x=D.yieldResult;if(x!=="PERSISTED_STATE_NOT_GRANTED"){D.jumpTo(5);break}return _.Z(D,YYb(),6);case 6:x=D.yieldResult;case 5:_.iI(D,3);break;case 2:G=_.lX(D),G instanceof Error&&_.I4(G);case 3:return _.Fv("persistentStorageStateChecked",{persistedState:x}),D.return(x)}})};
H7j=function(x,G){var D=[],K=!1;G=_.l(G);for(var z=G.next();!z.done;z=G.next()){z=x.moduleRegistry[z.value];var y=void 0,c=void 0;((y=z)==null?0:y.isFetching)&&((c=z)==null?0:c.resolver)?(D.push(z.resolver.promise),K=!0):(z=new _.Kt,z.resolve(void 0),D.push(z.promise))}return K?Promise.all(D):void 0};
$vc=function(x,G,D){D=D===void 0?{}:D;var K=x.defaultViewTransitionOptions,z=G.map(function(c){return c.beforeTransition}),y=G.map(function(c){return c.afterTransition});
return Object.assign({},K,D,{beforeTransition:function(){var c;(c=K.beforeTransition)==null||c.call(K);var W,e;(e=(W=D).beforeTransition)==null||e.call(W);c=_.l(z);for(W=c.next();!W.done;W=c.next())W=W.value,W()},
afterTransition:function(){var c;(c=K.afterTransition)==null||c.call(K);var W,e;(e=(W=D).afterTransition)==null||e.call(W);c=_.l(y);for(W=c.next();!W.done;W=c.next())W=W.value,W()}})};
FyO=function(x,G,D){var K,z,y,c,W,e,Q;_.T(function(p){if(x.config.disableAllTransitions)return p.return(G());if((K=D)==null||!K.transitionName)return p.return(_.Omi(G,(z=D)==null?void 0:z.viewTransitionOptions));y=D;c=y.transitionName;W=y.viewTransitionOptions;e=x.config.transitionConfigs.get(c);if(!e)return p.return(G());var V;Q=(V=x.transitionTasksMap.get(c))!=null?V:[];return p.return(_.Omi(G,$vc(e,Q,W)))})};
vz=function(x,G,D){x.transitionTasksMap.has(G)?x.transitionTasksMap.get(G).push(D):(x=new _.LL("Transition task registered for unknown transition name",G),_.I4(x))};
CDb=function(x,G,D){if(x.isInitialized()){var K=PQ(D),z=K==="watch";K=K==="shorts";var y=PQ(G)==="watch";if(z)y||(x.backgroundPageData=G),x.watchPipMode&&y||x.deactivate(D.endpoint);else if(K){if(PQ(G)!=="shorts"){var c;(c=x.getPlayerElement())==null||c.pause()}}else y&&!x.watchPipMode&&(MRf(G,D)?(x.watchWhileMode&&_.A6j(x,!1),_.FfT(x,G)):x.isMiniplayerActive()&&x.watchWhileMode&&x.deactivate());y&&_.R4k(x);x.shortsPipMode&&!K&&(window.focus(),x.deactivate());if(x.pictureInPictureEnabled())if(K&&
x.shortsPipEnabled||z&&x.watchPipEnabled)_.LNV(x.handleMediaSessionPipActivation);else if(!x.isMiniplayerActive()&&(x.shortsPipEnabled||x.watchPipEnabled)&&window.documentPictureInPicture&&_.IV()&&_.WEL("Chromium")>=120){x=_.bIf().mediaSession;try{x.setActionHandler("enterpictureinpicture",null)}catch(W){}}}};
I6Y=function(x,G){var D,K;_.T(function(z){if(z.nextAddress==1){if(!x||!x.navigationEndpoint)return z.return();_.or().lockupActivation=!0;var y;G?y=_.gK(_.Wg("QUEUE",void 0,"Queue")):y=x.longBylineText;K=(D=y)&&x.title?{miniplayerTitle:x.title,miniplayerSubtitle:D,playlistData:null}:void 0;return _.Z(z,_.uN7(_.Eo().resolve(_.O$),x.navigationEndpoint,!0,K),2)}_.or().userActivation=!0;_.c5(z)})};
Vq4=function(x,G){var D,K,z,y,c,W;_.T(function(e){if(e.nextAddress==1){D=_.Y(G,_.dto);if(!D||!D.listId)return e.return();x.index=D.index||x.index||0;K=x.response&&x.response.playingVideoId||void 0;return _.Z(e,_.pTi(x.JSC$10802_playlistNetworkManager,D.listId,x.index,K),2)}z=e.yieldResult;if(!z)return e.return();y=z.playlistId;c=z.playlistPanelRenderer;!x.queueProxy&&y&&c&&y.startsWith("TLPQ")&&(x.queueProxy=new _.s3(x.JSC$10802_playlistNetworkManager,y,x.setPlaylistData.bind(x),x.clearQueue.bind(x),
_.NQQ(c),x.storage));if(D.openMiniplayer&&(W=_.vP3(c))&&!x.pageManager.isOnWatch()){var Q=W,p=D.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";x.isMiniplayerActive()?x.openToast(Q):I6Y(Q,p)}x.setPlaylistData(y,c,z.autoplayRenderer);_.c5(e)})};
Mq4=function(x,G){var D=_.jK();D.index===void 0&&(D.index=0);D.temporaryItems.push.apply(D.temporaryItems,_.B5(x));if((G.videoId||G.videoIds)&&D.index!==void 0&&G.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!D.queueProxy){var K=[];if(D.response){var z=_.Eo().resolve(_.O$).isMiniplayerActive();if(D.response.playlistPanelRenderer&&D.response.playlistId&&!D.response.playlistId.startsWith("TLPQ")){if(D.pageManager.isOnWatch()||z)K=_.NQQ(D.response.playlistPanelRenderer)}else D.response.playingVideoId&&
!G.openMiniplayer?K.push(D.response.playingVideoId):z&&D.response.playingVideoId&&G.openMiniplayer&&K.push(D.response.playingVideoId)}D.queueProxy=new _.s3(D.JSC$10802_playlistNetworkManager,"",D.setPlaylistData.bind(D),D.clearQueue.bind(D),K,D.storage);D.queueProxy.JSC$10748_setCurrentIndex(D.index)}D.queueProxy.addVideos(G.videoIds||[G.videoId],G)}mB8(D,x);D.response&&_.O3(D,_.Xp(D,D.response.autoplayRenderer));D.pageManager.isOnWatch()?D.isMiniplayerActive()&&D.openToast(x[0]):(x=x[0],G=G.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",D.isMiniplayerActive()?D.openToast(x):I6Y(x,G))};
jeC=function(x){var G=_.WY(x);if(G=="object"||G=="array"){if(typeof x.clone==="function")return x.clone();if(typeof Map!=="undefined"&&x instanceof Map)return new Map(x);if(typeof Set!=="undefined"&&x instanceof Set)return new Set(x);G=G=="array"?[]:{};for(var D in x)G[D]=jeC(x[D]);return G}return x};
lR=function(x,G){return _.tfL(_.yW(x,G,void 0,_.oX))};
cI=function(x,G){return _.mf(_.yW(x,G,void 0,_.oX))};
TN=function(x,G){return _.MZf(_.yW(x,G,void 0,_.oX))};
WI=function(x,G){return _.yW(x,G,void 0,_.oX,_.T8)};
O7c=_.qH(function(x,G,D){if(x.nextWireType_!==0)return!1;_.NH(G,D,_.IX(x.decoder_,_.Dc));return!0},_.k0,_.XV);
XDk=_.qH(function(x,G,D,K){if(x.nextWireType_!==0)return!1;_.WV(G,D,K,_.IX(x.decoder_,_.Dc));return!0},_.k0,_.XV);
Aof=_.qH(function(x,G,D){if(x.nextWireType_!==1)return!1;var K=x.decoder_;x=_.Ok(K);K=_.Ok(K);x=_.hk(x,K);_.NH(G,D,x);return!0},_.J6n,_.yYf);
Uvi=_.qH(function(x,G,D){if(x.nextWireType_!==5)return!1;_.NH(G,D,_.Ok(x.decoder_));return!0},function(x,G,D){G=_.HY(G);
G!=null&&(_.Jg(x,D,5),_.tg(x.encoder_,G))},_.oQC);
R$T=_.qH(function(x,G,D){if(x.nextWireType_!==0)return!1;x=_.ggf(x.decoder_);_.NH(G,D,x===!1?void 0:x);return!0},_.fc$,_.Dan);
SYc=_.qH(function(x,G,D){if(x.nextWireType_!==2)return!1;x=_.vgD(x);_.NH(G,D,x===""?void 0:x);return!0},_.k8L,_.K6h);
nrT=_.qH(function(x,G,D){if(x.nextWireType_!==2)return!1;x=_.Js3(x);_.NH(G,D,x===_.SZ()?void 0:x);return!0},_.EiL,_.TfV);
i7T=_.ni$(function(x,G,D){if(x.nextWireType_!==0&&x.nextWireType_!==2)return!1;G=_.mz(G,G[_.sE]|0,D);x.nextWireType_==2?_.fsD(x,hDc,G):G.push(_.jI(x.decoder_));return!0},function(x,G,D){G=_.Sc$(_.mf,G,!0);
if(G!=null&&G.length){D=_.ZfD(x,D);for(var K=0;K<G.length;K++)_.qcf(x.encoder_,G[K]);_.MxE(x,D)}},_.W6$);
grT=_.qH(function(x,G,D){if(x.nextWireType_!==0)return!1;x=_.jI(x.decoder_);_.NH(G,D,x===0?void 0:x);return!0},_.h43,_.W6$);
uw4=_.qH(function(x,G,D,K){if(x.nextWireType_!==0)return!1;_.WV(G,D,K,_.jI(x.decoder_));return!0},_.h43,_.W6$);
_.uH=function(x){this.privateDoNotAccessOrElseWrappedStyleSheet=x};
_.uH.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var HCi=function(x,G){return new _.$S(x.x+G.x,x.y+G.y)},dvk=function(x){return x.previousElementSibling!==void 0?x.previousElementSibling:_.Vfk(x.previousSibling,!1)},wDk=function(x,G){var D=[];
for(G=G||0;G<x.length;G+=2)_.o8q(x[G],x[G+1],D);return D.join("&")},qYf=function(x,G){var D=arguments.length==2?wDk(arguments[1],0):wDk(arguments,1);
return _.aoZ(x,D)},Nc4=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Nc4,_.SX);Nc4.prototype.getValue=function(){var x=_.yW(this,2);if(Array.isArray(x)||x instanceof _.SX)throw Error("aa");return _.TK(this,2)};
var NuT=function(){var x=_.hr();this.JSC$7925_streamzService=x;x.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.zH("channel_type"))};
NuT.prototype.increment=function(x){this.JSC$7925_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",x)};
var vqf=function(){var x=_.hr();this.JSC$7928_streamzService=x;x.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.zH("channel_type"))};
vqf.prototype.increment=function(x){this.JSC$7928_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",x)};
var fgY=function(){var x=_.hr();this.JSC$7931_streamzService=x;x.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.zH("channel_type"))};
fgY.prototype.increment=function(x){this.JSC$7931_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",x)};
var J2c=function(){var x=_.hr();this.JSC$7934_streamzService=x;x.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
J2c.prototype.increment=function(){this.JSC$7934_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var tm4=function(){var x=_.hr();this.JSC$7937_streamzService=x;x.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.zH("channel_type"),_.zH("error_type"))};
tm4.prototype.increment=function(x,G){this.JSC$7937_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",x,G)};
var k16=function(){var x=_.hr();this.JSC$7940_streamzService=x;x.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
k16.prototype.increment=function(){this.JSC$7940_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var PVc=function(){var x=_.hr();this.JSC$7943_streamzService=x;x.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
PVc.prototype.increment=function(){this.JSC$7943_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var uX8=function(){var x=_.hr();this.JSC$7949_streamzService=x;x.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
uX8.prototype.increment=function(){this.JSC$7949_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var vrf=function(x){return x.getCount&&typeof x.getCount=="function"?x.getCount():_.PL(x)||typeof x==="string"?x.length:_.YS.getCount(x)},Joc=function(x,G){if(typeof x.every=="function")return x.every(G,void 0);
if(_.PL(x)||typeof x==="string")return Array.prototype.every.call(x,G,void 0);for(var D=_.xY7(x),K=_.gi(x),z=K.length,y=0;y<z;y++)if(!G.call(void 0,K[y],D&&D[y],x))return!1;return!0},f6O=function(x,G,D,K){var z=new _.w5(null);
x&&_.uv(z,x);G&&_.di(z,G);D&&_.wi(z,D);K&&_.q_(z,K);return z},t2O=function(){var x=_.Xf&&_.ML(_.eFZ,10)>=0,G;
if(G=_.x83)G=_.ML(_.WGk,10)>=0;var D=_.Kr&&_.ML(_.eFZ,85)>=0;return _.hR||x||G||D},ka6=function(x){var G=_.gCk(x);
return G&&t2O()?-x.scrollLeft:G&&_.iP(x,"overflowX")!="visible"?x.scrollWidth-x.clientWidth-x.scrollLeft:x.scrollLeft},PDk=function(x,G){G=Math.max(G,0);
_.gCk(x)?t2O()?x.scrollLeft=-G:x.scrollLeft=x.scrollWidth-G-x.clientWidth:x.scrollLeft=G},Iyc=0,Uhj=!1;
hA.prototype.set=function(x){this.relativeTimeStart_=x};
hA.prototype.reset=function(){this.set(_.f6())};
hA.prototype.get=function(){return this.relativeTimeStart_};
var Er6=null,h$f=function(){Er6||(Er6=new hA)},xJ8=function(){Er6||(Er6=new hA)};
_.tR(xJ8,h$f);_.a=Sof.prototype;_.a.JSC$9259_buffer_="";_.a.set=function(x){this.JSC$9259_buffer_=""+x};
_.a.append=function(x,G,D){this.JSC$9259_buffer_+=String(x);if(G!=null)for(var K=1;K<arguments.length;K++)this.JSC$9259_buffer_+=arguments[K];return this};
_.a.clear=function(){this.JSC$9259_buffer_=""};
_.a.getLength=function(){return this.JSC$9259_buffer_.length};
_.a.toString=function(){return this.JSC$9259_buffer_};
var Gei=function(){var x={type:"unit",style:"narrow"};this.listType_=x&&x.type?x.type:"conjunction";this.listStyle_=x&&x.style?x.style:"long";this.listSymbols_=oAf;x=0;switch(this.listStyle_){case "short":x=1;break;case "narrow":x=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[x];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[x];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[x];this.listEndPattern_=
this.listSymbols_.AND_END[x];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[x];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[x];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[x];this.listEndPattern_=this.listSymbols_.OR_END[x];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[x],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[x],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[x],this.listEndPattern_=this.listSymbols_.UNIT_END[x]}};
Gei.prototype.format=function(x){return DJc(this,x)};
var DJc=function(x,G){var D=G.length;switch(D){case 0:return"";case 1:return String(G[0]);case 2:return x.listTwoPattern_.replace("{0}",String(G[0])).replace("{1}",String(G[1]))}for(var K=x.listStartPattern_.replace("{0}",String(G[0])).replace("{1}",String(G[1])),z=2;z<D-1;++z)K=x.listMiddlePattern_.replace("{0}",K).replace("{1}",String(G[z]));return x.listEndPattern_.replace("{0}",K).replace("{1}",String(G[D-1]))},hRj=function(){var x={style:1};
this.style_=(x==null?void 0:x.style)||0;this.durationSymbols_=_.qC9||_.JNq},Kwc=function(x,G){switch(G){default:case "years":return x.durationSymbols_.YEAR;
case "months":return x.durationSymbols_.MONTH;case "weeks":return x.durationSymbols_.WEEK;case "days":return x.durationSymbols_.DAY;case "hours":return x.durationSymbols_.HOUR;case "minutes":return x.durationSymbols_.MINUTE;case "seconds":return x.durationSymbols_.SECOND}},e4=function(x,G,D){a:{D=Kwc(x,D);
switch(x.style_){case 1:if(D.LONG!=void 0){x=D.LONG;break a}case 2:if(D.NARROW!=void 0){x=D.NARROW;break a}default:x=D.SHORT;break a}x=void 0}return x?(new _.Q_o("{DURATION_VALUE,plural,"+x+"}")).format({DURATION_VALUE:G}):""};
hRj.prototype.format=function(x){var G=[],D=x.years,K=x.months,z=x.weeks,y=x.days,c=x.hours,W=x.minutes;x=x.seconds;D!=null&&G.push(e4(this,D,"years"));K!=null&&G.push(e4(this,K,"months"));z!=null&&G.push(e4(this,z,"weeks"));y!=null&&G.push(e4(this,y,"days"));c!=null&&G.push(e4(this,c,"hours"));W!=null&&G.push(e4(this,W,"minutes"));x!=null&&G.push(e4(this,x,"seconds"));return(new Gei).format(G)};
var zf6=!1,qoi=function(x){_.xC.call(this,x.message||x.description||x.name);this.isMissing=x instanceof xF;this.isTimeout=x instanceof _.dN&&x.errorCode=="net.timeout";this.isCanceled=x instanceof _.S8};
_.m(qoi,_.xC);qoi.prototype.name="BiscottiError";var xF=function(){_.xC.call(this,"Biscotti ID is missing from server")};
_.m(xF,_.xC);xF.prototype.name="BiscottiMissingError";var Gf=null,aux=function(){try{var x=_.nT("yt.ads.biscotti.getId_");return x?x():sEY()}catch(G){return _.rk(G)}},ETj,aJc=function(x){return _.EO({type:"SET_GUIDE_IS_EXPANDED",
payload:x})},o$x=function(x){return _.EO({type:"SET_ONLINE_STATUS",
payload:x})},ynb=function(x,G){return _.EO({type:"SET_TRANSCRIPTION_STATE",
payload:{high:x,low:G}})},lJi=function(x){return _.EO({type:"SET_OVERLAY_STATE",
payload:x})},cni=0,Tkc=function(x,G,D){var K=this;
this.priority=G;this.delay=D;this.jobId=0;this.completionCallback=_.ld;this.wrappedJob=function(){x();K.completionCallback()};
this.id=++cni};
Tkc.prototype.enqueue=function(x){this.completionCallback=x;this.jobId=_.Fj.addJob(this.wrappedJob,this.priority,this.delay)};
var ZG=function(){_.v$.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.m(ZG,_.v$);ZG.prototype.addJob=function(x,G,D){x=new Tkc(x,G,D);this.taskIdToTask.set(x.id,x);this.isActive?Wwc(this,x):this.suspendedTasks.add(x);return x.id};
var Wwc=function(x,G){x.scheduledTasks.add(G);G.enqueue(function(){x.scheduledTasks.delete(G)})};
ZG.prototype.cancelJob=function(x){(x=this.taskIdToTask.get(x))&&(this.scheduledTasks.delete(x)?_.Fj.cancelJob(x.jobId):this.suspendedTasks.delete(x))};
ZG.prototype.pause=function(){var x=this;this.isActive=!1;this.scheduledTasks.forEach(function(G){_.Fj.cancelJob(G.jobId);x.suspendedTasks.add(G)});
this.scheduledTasks.clear()};
ZG.prototype.start=function(){var x=this;this.isActive=!0;this.suspendedTasks.forEach(function(G){Wwc(x,G)});
this.suspendedTasks.clear()};
ZG.prototype.reset=function(){this.scheduledTasks.forEach(function(x){_.Fj.cancelJob(x.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var Mb=function(x,G){this.JSC$10931_networkService_=x;this.pageRequestPromise=G};
Mb.prototype.fetchData=function(x){ef6(this,this.JSC$10931_networkService_.fetchData(x))};
Mb.prototype.postData=function(x,G){ef6(this,this.JSC$10931_networkService_.postData(x,G))};
Mb.prototype.requestDataForServiceEndpoint=function(x,G){ef6(this,this.JSC$10931_networkService_.requestDataForServiceEndpoint(x,G))};
var ef6=function(x,G){G.then(x.pageRequestPromise.onSuccess,x.pageRequestPromise.onFailure,x.pageRequestPromise)};
Mb.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var Qc=function(x){this.buildNetworkRequest_=x;this.pendingRequests_=new Set};
Qc.prototype.reset=function(){this.pendingRequests_.forEach(function(x){x.cancel()});
this.pendingRequests_.clear()};
Qc.prototype.fetchData=function(x){var G=Zzk(this);G.fetchData(x);return G.pageRequestPromise};
Qc.prototype.postData=function(x,G){var D=Zzk(this);D.postData(x,G);return D.pageRequestPromise};
Qc.prototype.requestDataForServiceEndpoint=function(x,G){var D=Zzk(this);D.requestDataForServiceEndpoint(x,G);return D.pageRequestPromise};
var Zzk=function(x){var G=x.buildNetworkRequest_();x.pendingRequests_.add(G);var D=function(){x.pendingRequests_.delete(G)};
G.pageRequestPromise.then(D,D);return G},MnO=function(x){var G=new ZG;
this.JSC$10938_networkService_=x;this.JSC$10938_taskManager_=G;this.JSC$10938_networkManager_=new Qc(this.networkRequestFactory_.bind(this))};
_.a=MnO.prototype;_.a.networkRequestFactory_=function(){return new Mb(this.JSC$10938_networkService_,new _.vG(this.JSC$10938_taskManager_))};
_.a.reset=function(){this.JSC$10938_taskManager_.reset();this.JSC$10938_networkManager_.reset()};
_.a.start=function(){this.JSC$10938_taskManager_.start()};
_.a.pause=function(){this.JSC$10938_taskManager_.pause()};
_.a.getTaskManager=function(){return this.JSC$10938_taskManager_};
_.a.getNetworkManager=function(){return this.JSC$10938_networkManager_};
var zxf=null,yvf=[],DA=0,zf=0,KV=null,QPf=!1,ao=null,cvO=void 0,phf=function(){var x=(0,_.IQo)();x&&lDC(x,x.mechanism.__iterator__(!0))},y0=function(x){this.token=x};
y0.getInstance=function(){var x;return _.T(function(G){if(G.nextAddress==1)return _.Z(G,_.fL(),2);x=G.yieldResult;if(!x)return G.return();y0.instance||(y0.instance=new y0(x));return G.return(y0.instance)})};
var QAx=function(x){var G;return _.T(function(D){if(D.nextAddress==1)return _.Z(D,exC(x.token),2);G=D.yieldResult;return D.return(G.clear("resource-manifest-assets"))})},oo=function(x){this.token=x};
oo.getInstance=function(){var x;return _.T(function(G){if(G.nextAddress==1)return _.Z(G,_.fL(),2);x=G.yieldResult;if(!x)return G.return();oo.instance||(oo.instance=new oo(x));return G.return(oo.instance)})};
var ZLb=function(x){var G;return _.T(function(D){if(D.nextAddress==1)return _.Z(D,exC(x.token),2);G=D.yieldResult;return _.Z(D,G.clear("auth"),0)})},Rxj=!1,Vnk=function(x){_.xC.call(this,x)};
_.m(Vnk,_.tAs);var Rpx=function(){var x=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return x?parseInt(x[1],10):0},bzf=function(x){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+x)!=-1||document.currentScript.src.indexOf("&"+x)!=-1)},LwY=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},uK6=function(x){x.length?Bkc(x.shift(),function(){uK6(x)}):nBT()},wmb=function(x){return"chrome-extension://"+x+"/cast_sender.js"},Bkc=function(x,
G,D){var K=document.createElement("script");
K.onerror=G;D&&(K.onload=D);_.Sr(K,_.$a(x));(document.head||document.documentElement).appendChild(K)},rnc=function(){var x=Rpx(),G=[];
if(x>1){var D=x-1;G.push("//www.gstatic.com/eureka/clank/"+x+"/cast_sender.js");G.push("//www.gstatic.com/eureka/clank/"+D+"/cast_sender.js")}return G},nBT=function(){var x=LwY();
x&&x(!1,"No cast extension found")},gBb=function(){if(sPi){var x=2,G=LwY(),D=function(){x--;
x==0&&G&&G(!0)};
window.__onGCastApiAvailable=D;Bkc("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",nBT,D)}},SvY=function(){gBb();
var x=rnc();x.push("//www.gstatic.com/eureka/clank/cast_sender.js");uK6(x)},io4=function(){gBb();
var x=rnc();x.push.apply(x,_.B5(dqf.map(wmb)));x.push("//www.gstatic.com/eureka/clank/cast_sender.js");uK6(x)},sPi=bzf("loadCastFramework")||bzf("loadCastApplicationFramework"),dqf=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var YIc=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(YIc,_.SX);var mJ8=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(mJ8,_.SX);var Hz6=function(){var x=new mJ8;return _.FV(x,1,3)};var pa=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(pa,_.SX);var jWf=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(jWf,_.SX);var $J6=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m($J6,_.SX);$J6.prototype.getToken=function(){return _.rP(this,1)};
$J6.prototype.setToken=function(x){return _.NX(this,1,x)};
var Cp4=function(x){return _.Lm(x,3,_.gb,_.xa())},IvO=function(x){return _.Lm(x,6,_.gb,_.xa())};var Vc=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Vc,_.SX);Vc.prototype.getToken=function(){return _.hv(this,$J6,2)};
Vc.prototype.setToken=function(x){return _.GW(this,2,x)};
Vc.prototype.getName=function(){return _.rP(this,6)};
var Fwx=_.hg(Vc);var Cbf=function(x,G,D){this.requestMessage=x;this.methodDescriptor=G;this.metadata=D};
Cbf.prototype.getMetadata=function(){return this.metadata};var IJx=function(x,G){G=G===void 0?{}:G;this.responseMessage=x;this.metadata=G;this.status=null};
IJx.prototype.getMetadata=function(){return this.metadata};
IJx.prototype.getStatus=function(){return this.status};var bR=function(x,G,D,K,z){this.name=x;this.methodType="unary";this.requestType=G;this.responseType=D;this.requestSerializeFn=K;this.responseDeserializeFn=z},jPT=function(x,G,D){D=D===void 0?{}:D;
return new Cbf(G,x,D)};
bR.prototype.getName=function(){return this.name};var La=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(La,_.SX);La.prototype.setHeader=function(x){return _.GW(this,1,x)};
La.prototype.hasHeader=function(){return _.lr(this,pa,1)};var Oz6=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Oz6,_.SX);var Xhf=new bR("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",La,Oz6,function(x){return x.serialize()},_.hg(Oz6));var BI=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(BI,_.SX);BI.prototype.setHeader=function(x){return _.GW(this,1,x)};
BI.prototype.hasHeader=function(){return _.lr(this,pa,1)};var Anj=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Anj,_.SX);var UJk=new bR("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",BI,Anj,function(x){return x.serialize()},_.hg(Anj));var r3=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(r3,_.SX);r3.prototype.setHeader=function(x){return _.GW(this,1,x)};
r3.prototype.hasHeader=function(){return _.lr(this,pa,1)};var RfT=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(RfT,_.SX);RfT.prototype.getLink=function(){return _.hv(this,Vc,1)};var SIY=new bR("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",r3,RfT,function(x){return x.serialize()},_.hg(RfT));var sZ=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(sZ,_.SX);sZ.prototype.setHeader=function(x){return _.GW(this,1,x)};
sZ.prototype.hasHeader=function(){return _.lr(this,pa,1)};var n$4=new bR("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",sZ,Vc,function(x){return x.serialize()},Fwx);var izf=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(izf,_.SX);var g$f=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(g$f,_.SX);g$f.prototype.getUrl=function(){return _.rP(this,2)};
g$f.prototype.setUrl=function(x){return _.NX(this,2,x)};var uB6=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(uB6,_.SX);var dJx=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(dJx,_.SX);var whx=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(whx,_.SX);var dOj=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(dOj,_.SX);var ujC=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(ujC,_.SX);var qIc=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(qIc,_.SX);var tlc=_.hg(qIc);var Nkf=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Nkf,_.SX);var Yv=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Yv,_.SX);Yv.prototype.setHeader=function(x){return _.GW(this,1,x)};
Yv.prototype.hasHeader=function(){return _.lr(this,pa,1)};
Yv.prototype.getCompletionUrl=function(){return _.rP(this,6)};
Yv.prototype.getDeviceId=function(){return _.rP(this,11)};var v$O=new bR("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",Yv,qIc,function(x){return x.serialize()},tlc);var Jnf=new Set(["SAPISIDHASH","APISIDHASH"]);var fJx=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(fJx,_.SX);fJx.prototype.getMessage=function(){return _.rP(this,2)};
var tnb=_.hg(fJx);var mt=function(x,G){this.xhrNodeReadableStream_=x.nodeReadableStream;this.grpcResponseDeserializeFn_=G;this.JSC$17021_xhr_=x.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$17021_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&keC(this)},Dsj=function(x,G){var D=new Pbx;
_.Lz(x.JSC$17021_xhr_,"complete",function(){if(x.JSC$17021_xhr_.isSuccess()){var K=x.JSC$17021_xhr_.getResponseText();var z;if(z=G)z=x.JSC$17021_xhr_,z.JSC$7807_xhr_&&z.isComplete()?(z=z.JSC$7807_xhr_.getResponseHeader("Content-Type"),z=z===null?void 0:z):z=void 0,z=z==="text/plain";if(z){if(!atob)throw Error("Hj");K=atob(K)}try{var y=x.grpcResponseDeserializeFn_(K)}catch(W){HI(x,QW4(new _.pw(13,"Error when deserializing response data; error: "+W+(", response: "+K)),D));return}K=_.cZ(x.JSC$17021_xhr_.getStatus());
E$4(x,hfT(x));K==0?xsO(x,y):HI(x,QW4(new _.pw(K,"Xhr succeeded but the status code is not 200"),D))}else{K=x.JSC$17021_xhr_.getResponseText();y=hfT(x);if(K){var c=GYc(x,K);K=c.code;z=c.details;c=c.metadata}else K=2,z="Rpc failed due to xhr error. uri: "+String(x.JSC$17021_xhr_.JSC$7807_lastUri_)+", error code: "+x.JSC$17021_xhr_.JSC$7807_lastErrorCode_+", error: "+x.JSC$17021_xhr_.getLastError(),c=y;E$4(x,y);HI(x,QW4(new _.pw(K,z,c),D))}})},keC=function(x){x.xhrNodeReadableStream_.on("data",function(G){if("1"in
G){var D=G["1"];
try{var K=x.grpcResponseDeserializeFn_(D)}catch(z){HI(x,new _.pw(13,"Error when deserializing response data; error: "+z+(", response: "+D)))}K&&xsO(x,K)}if("2"in G)for(G=GYc(x,G["2"]),D=0;D<x.onStatusCallbacks_.length;D++)x.onStatusCallbacks_[D](G)});
x.xhrNodeReadableStream_.on("end",function(){E$4(x,hfT(x));for(var G=0;G<x.onEndCallbacks_.length;G++)x.onEndCallbacks_[G]()});
x.xhrNodeReadableStream_.on("error",function(){if(x.JSC$17021_onErrorCallbacks_.length!=0){var G=x.JSC$17021_xhr_.JSC$7807_lastErrorCode_;G!==0||x.JSC$17021_xhr_.isSuccess()||(G=6);var D=-1;switch(G){case 0:var K=2;break;case 7:K=10;break;case 8:K=4;break;case 6:D=x.JSC$17021_xhr_.getStatus();K=_.cZ(D);break;default:K=14}E$4(x,hfT(x));G=_.Xd8(G)+", error: "+x.JSC$17021_xhr_.getLastError();D!=-1&&(G+=", http status code: "+D);HI(x,new _.pw(K,G))}})},hfT=function(x){var G={},D=zSi(x.JSC$17021_xhr_);
Object.keys(D).forEach(function(K){G[K]=D[K]});
return G},GYc=function(x,G){var D=2,K={};
try{var z=tnb(G);D=_.GH(z,1);var y=z.getMessage();_.hO(z,Nc4,3,_.xa()).length&&(K["grpc-web-status-details-bin"]=G)}catch(c){x.JSC$17021_xhr_&&x.JSC$17021_xhr_.getStatus()===404?(D=5,y="Not Found: "+String(x.JSC$17021_xhr_.JSC$7807_lastUri_)):(D=14,y="Unable to parse RpcStatus: "+c)}return{code:D,details:y,metadata:K}};
mt.prototype.on=function(x,G){x=="data"?this.onDataCallbacks_.push(G):x=="metadata"?this.onMetadataCallbacks_.push(G):x=="status"?this.onStatusCallbacks_.push(G):x=="end"?this.onEndCallbacks_.push(G):x=="error"&&this.JSC$17021_onErrorCallbacks_.push(G);return this};
var $v=function(x,G){G=x.indexOf(G);G>-1&&x.splice(G,1)};
mt.prototype.removeListener=function(x,G){x=="data"?$v(this.onDataCallbacks_,G):x=="metadata"?$v(this.onMetadataCallbacks_,G):x=="status"?$v(this.onStatusCallbacks_,G):x=="end"?$v(this.onEndCallbacks_,G):x=="error"&&$v(this.JSC$17021_onErrorCallbacks_,G);return this};
mt.prototype.cancel=function(){this.JSC$17021_xhr_.abort()};
var xsO=function(x,G){for(var D=0;D<x.onDataCallbacks_.length;D++)x.onDataCallbacks_[D](G)},E$4=function(x,G){for(var D=0;D<x.onMetadataCallbacks_.length;D++)x.onMetadataCallbacks_[D](G)},HI=function(x,G){for(var D=0;D<x.JSC$17021_onErrorCallbacks_.length;D++)x.JSC$17021_onErrorCallbacks_[D](G)};
mt.prototype.cancel=mt.prototype.cancel;mt.prototype.removeListener=mt.prototype.removeListener;mt.prototype.on=mt.prototype.on;var Pbx=function(){var x=Error.call(this);this.message=x.message;"stack"in x&&(this.stack=x.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.m(Pbx,Error);var FP=function(x){this.JSC$17030_worker_=x.worker||null;this.JSC$17030_streamBinaryChunks_=x.streamBinaryChunks||!1;this.JSC$17030_credentialsMode_=void 0};
_.tR(FP,_.kHn);FP.prototype.createInstance=function(){var x=new Ca(this.JSC$17030_worker_,this.JSC$17030_streamBinaryChunks_);this.JSC$17030_credentialsMode_&&x.setCredentialsMode(this.JSC$17030_credentialsMode_);return x};
FP.prototype.setCredentialsMode=function(x){this.JSC$17030_credentialsMode_=x};
var Ca=function(x,G){_.T2.call(this);this.JSC$17034_worker_=x;this.JSC$17034_streamBinaryChunks_=G;this.JSC$17034_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$17034_responseHeaders_=null;this.JSC$17034_method_="GET";this.JSC$17034_url_="";this.inProgress_=!1;this.JSC$17034_textDecoder_=this.currentReader_=this.fetchResponse_=null};
_.tR(Ca,_.T2);Ca.prototype.open=function(x,G){if(this.readyState!=0)throw this.abort(),Error("Ij");this.JSC$17034_method_=x;this.JSC$17034_url_=G;this.readyState=1;I1(this)};
Ca.prototype.send=function(x){if(this.readyState!=1)throw this.abort(),Error("Jj");this.inProgress_=!0;var G={headers:this.requestHeaders_,method:this.JSC$17034_method_,credentials:this.JSC$17034_credentialsMode_,cache:void 0};x&&(G.body=x);(this.JSC$17034_worker_||_.Df).fetch(new Request(this.JSC$17034_url_,G)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
Ca.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,j4(this));this.readyState=0};
Ca.prototype.handleResponse_=function(x){if(this.inProgress_&&(this.fetchResponse_=x,this.JSC$17034_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$17034_responseHeaders_=x.headers,this.readyState=2,I1(this)),this.inProgress_&&(this.readyState=3,I1(this),this.inProgress_)))if(this.responseType==="arraybuffer")x.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.Df.ReadableStream!==
"undefined"&&"body"in x){this.currentReader_=x.body.getReader();if(this.JSC$17034_streamBinaryChunks_){if(this.responseType)throw Error("Kj");this.response=[]}else this.response=this.responseText="",this.JSC$17034_textDecoder_=new TextDecoder;Kjk(this)}else x.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var Kjk=function(x){x.currentReader_.read().then(x.handleDataFromStream_.bind(x)).catch(x.handleSendFailure_.bind(x))};
Ca.prototype.handleDataFromStream_=function(x){if(this.inProgress_){if(this.JSC$17034_streamBinaryChunks_&&x.value)this.response.push(x.value);else if(!this.JSC$17034_streamBinaryChunks_){var G=x.value?x.value:new Uint8Array(0);if(G=this.JSC$17034_textDecoder_.decode(G,{stream:!x.done}))this.response=this.responseText+=G}x.done?j4(this):I1(this);this.readyState==3&&Kjk(this)}};
Ca.prototype.handleResponseText_=function(x){this.inProgress_&&(this.response=this.responseText=x,j4(this))};
Ca.prototype.handleResponseArrayBuffer_=function(x){this.inProgress_&&(this.response=x,j4(this))};
Ca.prototype.handleSendFailure_=function(){this.inProgress_&&j4(this)};
var j4=function(x){x.readyState=4;x.fetchResponse_=null;x.currentReader_=null;x.JSC$17034_textDecoder_=null;I1(x)};
Ca.prototype.setRequestHeader=function(x,G){this.requestHeaders_.append(x,G)};
Ca.prototype.getResponseHeader=function(x){return this.JSC$17034_responseHeaders_?this.JSC$17034_responseHeaders_.get(x.toLowerCase())||"":""};
Ca.prototype.getAllResponseHeaders=function(){if(!this.JSC$17034_responseHeaders_)return"";for(var x=[],G=this.JSC$17034_responseHeaders_.entries(),D=G.next();!D.done;)D=D.value,x.push(D[0]+": "+D[1]),D=G.next();return x.join("\r\n")};
Ca.prototype.setCredentialsMode=function(x){this.JSC$17034_credentialsMode_=x};
var I1=function(x){x.onreadystatechange&&x.onreadystatechange.call(x)};
Object.defineProperty(Ca.prototype,"withCredentials",{get:function(){return this.JSC$17034_credentialsMode_==="include"},
set:function(x){this.setCredentialsMode(x?"include":"same-origin")}});var za6=function(x){var G="";_.YS.forEach(x,function(D,K){G+=K;G+=":";G+=D;G+="\r\n"});
return G},aXT=function(x,G,D){if(_.YS.isEmpty(D))return x;
D=za6(D);if(typeof x==="string")return _.Ox(x,_.gT(G),D);_.Ny(x,G,D);return x};var o7O=function(){this.isInputValid_=!0;this.JSC$17040_streamPos_=0;this.leftoverInput_=""};
o7O.prototype.isInputValid=function(){return this.isInputValid_};var Tf=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$17043_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
Tf.prototype.isInputValid=function(){return this.state_!=3};
var OZ=function(x,G,D,K){x.state_=3;x.errorMessage_="The stream is broken @"+x.JSC$17043_streamPos_+"/"+D+". Error: "+K+". With input:\n"+G;throw Error(x.errorMessage_);};
Tf.prototype.acceptsBinaryInput=function(){return!0};
Tf.prototype.parse=function(x){function G(e){e&128&&OZ(y,c,W,"invalid tag");(e&7)!=2&&OZ(y,c,W,"invalid wire type");y.tag_=e>>>3;y.tag_!=1&&y.tag_!=2&&y.tag_!=15&&OZ(y,c,W,"unexpected tag");y.state_=1;y.length_=0;y.countLengthBytes_=0}
function D(e){y.countLengthBytes_++;y.countLengthBytes_==5&&e&240&&OZ(y,c,W,"message length too long");y.length_|=(e&127)<<(y.countLengthBytes_-1)*7;e&128||(y.state_=2,y.countMessageBytes_=0,typeof Uint8Array!=="undefined"?y.messageBuffer_=new Uint8Array(y.length_):y.messageBuffer_=Array(y.length_),y.length_==0&&z())}
function K(e){y.messageBuffer_[y.countMessageBytes_++]=e;y.countMessageBytes_==y.length_&&z()}
function z(){if(y.tag_<15){var e={};e[y.tag_]=y.messageBuffer_;y.result_.push(e)}y.state_=0}
for(var y=this,c=x instanceof Array?x:new Uint8Array(x),W=0;W<c.length;){switch(y.state_){case 3:OZ(y,c,W,"stream already broken");break;case 0:G(c[W]);break;case 1:D(c[W]);break;case 2:K(c[W]);break;default:throw Error("Mj`"+y.state_);}y.JSC$17043_streamPos_++;W++}x=y.result_;y.result_=[];return x.length>0?x:null};var Vlx=function(){this.errorMessage_=null;this.JSC$17046_streamPos_=0;this.base64Decoder_=new o7O;this.pbParser_=new Tf};
Vlx.prototype.isInputValid=function(){return this.errorMessage_===null};
var yaj=function(x,G,D){x.errorMessage_="The stream is broken @"+x.JSC$17046_streamPos_+". Error: "+D+". With input:\n"+G;throw Error(x.errorMessage_);};
Vlx.prototype.acceptsBinaryInput=function(){return!1};
Vlx.prototype.parse=function(x){this.errorMessage_!==null&&yaj(this,x,"stream already broken");var G=null;try{var D=this.base64Decoder_;if(!D.isInputValid_)throw D.isInputValid_=!1,Error("Lj`"+D.JSC$17040_streamPos_+"`stream already broken`"+x);D.leftoverInput_+=x;var K=Math.floor(D.leftoverInput_.length/4);if(K==0)var z=null;else{try{var y=_.q7d(D.leftoverInput_.slice(0,K*4))}catch(e){var c=D.leftoverInput_,W=e.message;D.isInputValid_=!1;throw Error("Lj`"+D.JSC$17040_streamPos_+"`"+W+"`"+c);}D.JSC$17040_streamPos_+=
K*4;D.leftoverInput_=D.leftoverInput_.slice(K*4);z=y}G=z===null?null:this.pbParser_.parse(z)}catch(e){yaj(this,x,e.message)}this.JSC$17046_streamPos_+=x.length;return G};var pSf=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$17049_streamPos_=0;this.result_=[];this.statusParsed_=!1};
pSf.prototype.isInputValid=function(){return this.errorMessage_===null};
pSf.prototype.acceptsBinaryInput=function(){return!1};
pSf.prototype.parse=function(x){function G(e){y.state_=6;y.errorMessage_="The stream is broken @"+y.JSC$17049_streamPos_+"/"+c+". Error: "+e+". With input:\n";throw Error(y.errorMessage_);}
function D(){y.jsonStreamParser_=new _.fZ({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function K(e){if(e)for(var Q=0;Q<e.length;Q++){var p={};p[1]=e[Q];y.result_.push(p)}}
function z(e){if(e){(y.statusParsed_||e.length>1)&&G("extra status: "+e);y.statusParsed_=!0;var Q={};Q[2]=e[0];y.result_.push(Q)}}
for(var y=this,c=0;c<x.length;){var W;if(W=y.state_!==2){a:{for(;c<x.length;){if(!_.Jy(x[c])){W=!0;break a}c++;y.JSC$17049_streamPos_++}W=!1}W=!W}if(W)return null;switch(y.state_){case 6:G("stream already broken");break;case 0:x[c]==="["?(y.state_=1,c++,y.JSC$17049_streamPos_++):G("unexpected input token");break;case 1:x[c]==="["?(y.state_=2,D()):x[c]===","||x.slice(c,c+5)=="null,"?y.state_=3:x[c]==="]"?(y.state_=5,c++,y.JSC$17049_streamPos_++):G("unexpected input token");break;case 2:W=y.jsonStreamParser_.parse(x.substring(c));
K(W);y.jsonStreamParser_.done()?(y.state_=3,W=y.jsonStreamParser_.JSC$9386_buffer_,y.JSC$17049_streamPos_+=x.length-c-W.length,x=W,c=0):(y.JSC$17049_streamPos_+=x.length-c,c=x.length);break;case 3:x[c]===","||x.slice(c,c+5)=="null,"?(y.state_=4,D(),y.jsonStreamParser_.parse("["),c+=x[c]===","?1:5,y.JSC$17049_streamPos_++):x[c]==="]"&&(y.state_=5,c++,y.JSC$17049_streamPos_++);break;case 4:W=y.jsonStreamParser_.parse(x.substring(c));z(W);y.jsonStreamParser_.done()?(y.state_=5,W=y.jsonStreamParser_.JSC$9386_buffer_,
y.JSC$17049_streamPos_+=x.length-c-W.length,x=W,c=0):(y.JSC$17049_streamPos_+=x.length-c,c=x.length);break;case 5:G("extra input after stream end")}}return y.result_.length>0?(x=y.result_,y.result_=[],x):null};var lXb=function(x){this.JSC$17052_xhr_=x;this.JSC$17052_parser_=null;this.status_=this.JSC$17052_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$17052_textDecoder_=null;this.JSC$17052_eventHandler_=new _.Ev(this);this.JSC$17052_eventHandler_.listen(this.JSC$17052_xhr_,"readystatechange",this.JSC$17054_readyStateChangeHandler_)},XP=function(x,G){x.status_!=G&&(x.status_=G,x.statusHandler_&&x.statusHandler_())},A8=function(x){x.JSC$17052_eventHandler_.removeAll();
if(x.JSC$17052_xhr_){var G=x.JSC$17052_xhr_;x.JSC$17052_xhr_=null;G.abort();G.dispose()}};
lXb.prototype.getStatus=function(){return this.status_};
lXb.prototype.JSC$17054_readyStateChangeHandler_=function(x){x=x.target;try{if(x==this.JSC$17052_xhr_)a:{var G=_.Lw(this.JSC$17052_xhr_),D=this.JSC$17052_xhr_.JSC$7807_lastErrorCode_,K=this.JSC$17052_xhr_.getStatus(),z=this.JSC$17052_xhr_.getResponseText();x=[];if(this.JSC$17052_xhr_.getResponse()instanceof Array){var y=this.JSC$17052_xhr_.getResponse();y.length>0&&y[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,x=y)}if(!(G<3||G==3&&!z&&x.length==0))if(K=K==200||K==206,G==4&&(D==8?XP(this,
7):D==7?XP(this,8):K||XP(this,3)),this.JSC$17052_parser_||(this.JSC$17052_parser_=bUx(this.JSC$17052_xhr_),this.JSC$17052_parser_==null&&XP(this,5)),this.status_>2)A8(this);else{if(x.length>this.JSC$17052_pos_){var c=x.length;D=[];try{if(this.JSC$17052_parser_.acceptsBinaryInput())for(var W=0;W<c;W++){var e=this.JSC$17052_parser_.parse(Array.from(x[W]));e&&(D=D.concat(e))}else{e="";if(!this.JSC$17052_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Nj");this.JSC$17052_textDecoder_=new TextDecoder}for(W=
0;W<c;W++)e+=this.JSC$17052_textDecoder_.decode(x[W],{stream:G==4&&W==c-1});D=this.JSC$17052_parser_.parse(e)}x.splice(0,c);D&&this.dataHandler_(D)}catch(p){XP(this,5);A8(this);break a}}else if(z.length>this.JSC$17052_pos_){W=z.slice(this.JSC$17052_pos_);this.JSC$17052_pos_=z.length;try{var Q=this.JSC$17052_parser_.parse(W);Q!=null&&this.dataHandler_&&this.dataHandler_(Q)}catch(p){XP(this,5);A8(this);break a}}G==4?(z.length!=0||this.hasStreamingResponseData_?XP(this,2):XP(this,4),A8(this)):XP(this,
1)}}}catch(p){XP(this,6),A8(this)}};var caf=function(x){x=this.xhrReader_=x;var G=(0,_.mW)(this.onData_,this);x.dataHandler_=G;x=this.xhrReader_;G=(0,_.mW)(this.onStatusChange_,this);x.statusHandler_=G;this.JSC$17056_callbackMap_={};this.callbackOnceMap_={}};
_.a=caf.prototype;_.a.on=function(x,G){var D=this.JSC$17056_callbackMap_[x];D||(D=[],this.JSC$17056_callbackMap_[x]=D);D.push(G);return this};
_.a.addListener=function(x,G){this.on(x,G);return this};
_.a.removeListener=function(x,G){var D=this.JSC$17056_callbackMap_[x];D&&_.f$(D,G);(x=this.callbackOnceMap_[x])&&_.f$(x,G);return this};
_.a.once=function(x,G){var D=this.callbackOnceMap_[x];D||(D=[],this.callbackOnceMap_[x]=D);D.push(G);return this};
_.a.onData_=function(x){var G=this.JSC$17056_callbackMap_.data;G&&TGO(x,G);(G=this.callbackOnceMap_.data)&&TGO(x,G);this.callbackOnceMap_.data=[]};
var TGO=function(x,G){for(var D={},K=0;K<x.length;D={message$jscomp$969:void 0},K++)D.message$jscomp$969=x[K],G.forEach(function(z){return function(y){try{y(z.message$jscomp$969)}catch(c){}}}(D))};
caf.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:WjY(this,"readable");break;case 5:case 6:case 4:case 7:case 3:WjY(this,"error");break;case 8:WjY(this,"close");break;case 2:WjY(this,"end")}};
var WjY=function(x,G){var D=x.JSC$17056_callbackMap_[G];D&&D.forEach(function(K){try{K()}catch(z){}});
(D=x.callbackOnceMap_[G])&&D.forEach(function(K){K()});
x.callbackOnceMap_[G]=[]};var eax=function(){var x={format:"jspb"};x=x===void 0?{}:x;this.suppressCorsPreflight=x.suppressCorsPreflight||_.nT("suppressCorsPreflight",x)||!1;this.withCredentials=x.withCredentials||_.nT("withCredentials",x)||!1;this.streamInterceptors=x.streamInterceptors||[];this.unaryInterceptors=x.unaryInterceptors||[];this.workerScope=x.workerScope;this.chunkedServerStreaming=x.useFetchDownloadStreams||!1},Qlc=function(x,G,D,K,z,y){y=y===void 0?{}:y;
var c=G.substring(0,G.length-z.name.length),W,e=(W=y)==null?void 0:W.signal;return ZH8(function(Q){return new Promise(function(p,V){if(e==null?0:e.aborted){var L=new _.pw(1,"Aborted");L.cause=e.reason;V(L)}else{var r={},H=MsT(x,Q,c);H.on("error",function(O){return void V(O)});
H.on("metadata",function(O){r=O});
H.on("data",function(O){var A=r;A=A===void 0?{}:A;p(new IJx(O,A))});
e&&e.addEventListener("abort",function(){H.cancel();var O=new _.pw(1,"Aborted");O.cause=e.reason;V(O)})}})},x.unaryInterceptors).call(x,jPT(z,D,K)).then(function(Q){return Q.responseMessage})},UZ=function(x,G,D,K,z,y){y=y===void 0?{}:y;
return Qlc(x,G,D,K,z,y)};
eax.prototype.serverStreaming=function(x,G,D,K){var z=this,y=x.substring(0,x.length-K.name.length);return pHb(function(c){var W=c.methodDescriptor,e=c.getMetadata(),Q=VsT(z,!1);e=bH6(z,e,Q,y+W.getName());var p=Ljx(Q,W.responseDeserializeFn,!0);c=W.requestSerializeFn(c.requestMessage);Q.send(e,"POST",c);return p},this.streamInterceptors).call(this,jPT(K,G,D))};
var MsT=function(x,G,D){var K=G.methodDescriptor,z=G.getMetadata(),y=VsT(x,!0);x=bH6(x,z,y,D+K.getName());D=Ljx(y,K.responseDeserializeFn,!1);Dsj(D,z["X-Goog-Encode-Response-If-Executable"]==="base64");G=K.requestSerializeFn(G.requestMessage);y.send(x,"POST",G);return D},VsT=function(x,G){G=x.chunkedServerStreaming&&!G;
return x.workerScope||G?new _.bv(new FP({worker:x.workerScope,streamBinaryChunks:G})):new _.bv},bH6=function(x,G,D,K){G["Content-Type"]="application/json+protobuf";
G["X-User-Agent"]="grpc-web-javascript/0.1";var z=G.Authorization;if(z&&Jnf.has(z.split(" ")[0])||x.withCredentials)D.JSC$7807_withCredentials_=!0;if(x.suppressCorsPreflight)K=aXT(K,"$httpHeaders",G);else for(x=_.l(Object.keys(G)),z=x.next();!z.done;z=x.next())z=z.value,D.headers.set(z,G[z]);return K},Ljx=function(x,G,D){if(D){D=new lXb(x);
var K=new caf(D)}return new mt({xhr:x,nodeReadableStream:K},G)},pHb=function(x,G){return G.reduce(function(D,K){return function(z){return K.intercept(z,D)}},x)},ZH8=function(x,G){return G.reduce(function(D,K){return function(z){return K.intercept(z,D)}},x)};var BG4=function(x){this.client_=new eax;this.hostname_=x==void 0?x:x.replace(/\/+$/,"")};
_.a=BG4.prototype;_.a.JSC$17075_depositGoogleCredential=function(x,G,D){return UZ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",x,G||{},UJk,D)};
_.a.deleteLink=function(x,G,D){return UZ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",x,G||{},Xhf,D)};
_.a.JSC$17075_finishOAuth=function(x,G,D){return UZ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",x,G||{},SIY,D)};
_.a.getLink=function(x,G,D){return UZ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",x,G||{},n$4,D)};
_.a.startLinkingSession=function(x,G,D){return UZ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",x,G||{},v$O,D)};var rax=[0,R$T,1,i7T,[0,_.ir,[0,SYc,-1]],[0,nrT],[0,grT,-1]];var sli=function(){this.storage=new Map},msY=function(x,G,D,K,z){if(!x.storage.has(G))return null;
x=_.l(x.storage.get(G));for(G=x.next();!G.done;G=x.next())if(G=G.value,!z||G.linkName===z)if(D&&G.scopes&&YuO(G.scopes,D)||K&&G.capabilities&&YuO(G.capabilities,K))return G;return null},HH8=function(x,G,D){if(!D)x.storage.delete(G);
else if(x.storage.has(G)){var K=x.storage.get(G).filter(function(z){return z.linkName!==D});
K.length>0?x.storage.set(G,K):x.storage.delete(G)}},YuO=function(x,G){G=_.l(G);
for(var D=G.next();!D.done;D=G.next())if(!x.has(D.value))return!1;return!0};var $sT=function(){var x=_.Am("LINK_GAL_DOMAIN");this.alsDomain1p=_.Am("LINK_GAL_DOMAIN");this.alsDomain3p=x;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},Fjj=function(x,G){x.apiKey=G;
return x};
$sT.prototype.build=function(){var x={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Oj");x.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Pj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Qj");x.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(x.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)x.apiKey=
this.apiKey,x.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Rj");x.oauthToken=this.oauthToken;x.alsDomain=this.alsDomain3p}x.clientXd3=this.clientXd3;x.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(x.authUser=this.authUser);this.bucket!==void 0&&(x.bucket=this.bucket);this.completionUrl!==void 0&&(x.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(x.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(x.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(x.locale=this.locale);x.loggerType=this.loggerType;x.clientEnvironment=this.clientEnvironment;x.colorScheme=this.colorScheme;x.showCloseOption=this.showCloseOption;return x};var Wz=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Wz,_.SX);var C_c=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(C_c,_.SX);var IXc=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(IXc,_.SX);var ZA=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(ZA,_.SX);var jlf=function(x){return _.sk(x,1)};var OHc=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(OHc,_.SX);var HU6=_.hg(OHc),ep=[1,2,3,4,5];var ruk=function(x){try{return HU6(x)}catch(G){return null}},XHc=function(){},sW8=function(x,G){switch(_.eI(G,ep)){case 4:return(G=_.HV(G,IXc,4,ep))&&x.logStateTransition(_.sk(G,1)),!0;
case 5:return(G=_.HV(G,C_c,5,ep))&&x.logInternalEvent(_.sk(G,1)),!0}return!1},$OY=function(x){switch(x){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.oT(x)}};var Lnk=function(x,G){var D=this;this.validator=x;this.messageListener=G;this.dismissCallback=function(){Aai(D,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$17104_receiveMessage=function(K){K.type==="message"&&(K=K.event_,K!==null&&(new URL(D.iframe.src)).origin===K.origin&&D.validator(K.data,K.origin)&&!D.messageListener(K.data)&&(D.JSC$17104_resolveCb!==void 0&&D.JSC$17104_resolveCb(K.data),Usf(D)))}},mOf=function(x,G,D){x.uiHandler!==void 0&&Aai(x,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(K,z){x.JSC$17104_resolveCb=K;x.JSC$17104_rejectCb=z;x.iframe=document.createElement("iframe");_.C9(x.iframe,G);x.uiHandler=D.displayContent(x.iframe,x.dismissCallback);_.Lz(window,"message",x.JSC$17104_receiveMessage,!1,x)})},Aai=function(x,G){x.JSC$17104_rejectCb!==void 0&&x.JSC$17104_rejectCb(G);
Usf(x)},Usf=function(x){x.uiHandler!==void 0&&x.uiHandler.hideContent();
_.cA(window,"message",x.JSC$17104_receiveMessage,!1,x);x.JSC$17104_resolveCb=void 0;x.JSC$17104_rejectCb=void 0;x.uiHandler=void 0;x.iframe=void 0};var Raf=function(x){if(x===2){var G;x=((G=window)==null?0:G.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return x},Ypc=function(x){x=Raf(x);
switch(x){case 0:return"light";case 1:return"dark";default:_.oT(x)}};var B$C=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),SuC=function(x,G){this.JSC$17116_linkingSession=x;this.noticeConfig=G;this.displayInfoMap=new Map;var D=new Map;if(_.lr(this.JSC$17116_linkingSession,uB6,7))for(x=_.hv(this.JSC$17116_linkingSession,uB6,7),x=_.hO(x,g$f,1,_.xa()),x=_.l(x),G=x.next();!G.done;G=x.next())G=G.value,D.set(_.sk(G,1),_.Uuh(_.hv(G,_.tkf,3)));if(D.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){G=this.noticeConfig.enabledDataUsageNoticeUis;x=G.has(0)?D.get(1):void 0;G=G.has(1)?D.get(2):void 0;D=x!==void 0&&G!==void 0?D.get(3):void 0;var K=this.noticeConfig.nestedOrigins;var z=new OHc;var y=new Wz;z=_.DB(z,2,ep,y);y=new OHc;var c=new Wz;y=_.DB(y,3,ep,c);c=[];x!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:x,lastEvent:z,nestedOrigins:K}]),c.push({trustedUrl:x,lastEvent:z,nestedOrigins:K}));G!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:G,lastEvent:y,nestedOrigins:K}]),c.push({trustedUrl:G,lastEvent:y,nestedOrigins:K}));D!==void 0?this.displayInfoMap.set(3,[{trustedUrl:D,lastEvent:y,nestedOrigins:K}]):this.displayInfoMap.set(3,c)}};var n7f=function(x){var G=new sli;this.galService=x;this.galCache=G};
n7f.prototype.getLink=function(x){var G=x.serviceId;var D=x.scopes;var K=x.capabilities;var z=x.linkName;var y=this,c;return _.T(function(W){if(K!==void 0&&D!==void 0)throw Error("Sj");c=msY(y.galCache,G,D,K,z);return c!==null?W.return(c):W.return(y.galService.getLink({serviceId:G,sessionId:Math.floor(Math.random()*2147483648),scopes:D,capabilities:K,linkName:z}).then(function(e){e=OUO(e);var Q=y.galCache;Q.storage.has(G)?Q.storage.get(G).push(e):Q.storage.set(G,[e]);return e}))})};
n7f.prototype.deleteLink=function(x,G,D){var K=this;return _.T(function(z){HH8(K.galCache,x,D);return z.return(K.galService.deleteLink({serviceId:x,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:G,linkName:D}).then(function(){return!0}))})};var g7C=function(x,G){var D=this;this.validator=x;this.msgHandler=G;this.closedPopupTimeout=this.JSC$17138_rejectCb=this.JSC$17138_resolveCb=this.popup=null;this.JSC$17138_receiveMessage=function(K){if(K!==null&&(K=K.event_,K.source===D.popup)){var z=K.data;if(D.validator(z,K.origin)){var y;(y=D.msgHandler)!=null&&y.call(D,z)||(D.JSC$17138_resolveCb!==null&&D.JSC$17138_resolveCb(z),iH6(D))}}}};
g7C.prototype.open=function(x,G){var D=this;this.popup!==null&&u88(this);return new Promise(function(K,z){D.JSC$17138_resolveCb=K;D.JSC$17138_rejectCb=z;D.popup=_.jr(window,x,"",G);_.Lz(window,"message",D.JSC$17138_receiveMessage,!1,D);dsj(D)})};
var u88=function(x,G){x.JSC$17138_rejectCb!==null&&x.JSC$17138_rejectCb(G);iH6(x)},iH6=function(x){x.closedPopupTimeout&&(x.closedPopupTimeout.cancel(),x.closedPopupTimeout=null);
x.popup&&x.popup.close();_.cA(window,"message",x.JSC$17138_receiveMessage,!1,x);x.popup=null;x.JSC$17138_resolveCb=null;x.JSC$17138_rejectCb=null},dsj=function(x){x.closedPopupTimeout=_.Fz9(100).then(function(){x.popup?x.popup.closed?wHT(x):dsj(x):u88(x,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},wHT=function(x){x.closedPopupTimeout=_.Fz9(100).then(function(){u88(x,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var quj=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),NGc=function(x,G,D,K,z,y,c,W,e,Q){var p=this;this.serviceId=x;this.sessionId=G;this.galService=D;this.oauthDetails=K;this.galLogger=z;this.interactionMode=y;this.redirectServiceUrl=c;this.consentLanguageKeys=W;this.dynamicUrlParameters=e;this.partnerConfigMinReadTimestamp=Q;this.started=!1;this.JSC$17144_dataValidator=function(V,
L){var r=quj.has(L);r||p.redirectServiceUrl===void 0||(r=p.redirectServiceUrl===L);return r?V.sentinel==="gdi":!1}};
NGc.prototype.complete=function(){var x=this,G;return _.T(function(D){if(x.interactionMode!==1)return D.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));G=Q0.getRedirectStateFromUri();return G===null?D.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):D.return(v7x(x,G))})};
NGc.prototype.start=function(){var x=this,G;return _.T(function(D){if(x.started)return D.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.rP(x.oauthDetails,1))return D.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(x.interactionMode===1)return Q0.setLocation(_.rP(x.oauthDetails,1)),D.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));x.started=!0;x.galLogger.logStateTransition(5);
G=Q0.getPostMessagePopup(x.JSC$17144_dataValidator);return D.return(G.open(_.rP(x.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(K){x.started=!1;var z=x.galLogger;if((K==null?void 0:K.error)!==void 0)throw z.logInternalEvent(59),Error("Tj");if((K==null?void 0:K.redirect_state)===void 0)throw z.logInternalEvent(131),Error("Uj");return v7x(x,K.redirect_state)}).catch(function(K){x.started=
!1;
return K.errorCode!==void 0?{statusCode:K.errorCode,statusMessage:K.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var v7x=function(x,G){return _.T(function(D){return D.return(Ja6(x.galService,{serviceId:x.serviceId,sessionId:x.sessionId,dynamicUrlParameters:x.dynamicUrlParameters,redirectState:G,consentLanguageKeys:x.consentLanguageKeys,partnerConfigMinReadTimestamp:x.partnerConfigMinReadTimestamp}).then(function(K){var z={statusCode:1,link:OUO(K.getLink())};LSc(_.TK(K,3))!==void 0&&(z.callerState=LSc(_.TK(K,3)));x.galLogger.logInternalEvent(134);return z}))})},Q0={getPostMessagePopup:function(x){return new g7C(x)},
getRedirectStateFromUri:function(){var x=_.wM(Q0.getLocation()).fragment_;return(new _.fw(x)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(x){_.wC(window.location,_.V$(x))},
createOAuthFlow:function(x,G){return new NGc(x.serviceId,x.sessionId,x.galService,G,x.galLogger,x.interactionMode,x.redirectServiceUrl,x.consentLanguageKeys,x.dynamicUrlParameters,x.partnerConfigMinReadTimestamp)}};var fXi=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(fXi,_.SX);var ts4=_.hg(fXi);var kYj=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),P_6=function(x,G,D,K,z,y,c,W,e){var Q=this;this.serviceId=x;this.sessionId=G;this.galService=D;this.gsiWebFlowDetails=K;this.colorScheme=z;this.showCloseOption=y;this.galLogger=c;this.interactionMode=W;this.redirectServiceUrl=e;this.started=!1;this.JSC$17156_dataValidator=function(p,V){var L=kYj.has(V);L||Q.redirectServiceUrl===
void 0||(L=Q.redirectServiceUrl===V);return L?p.sentinel==="gal":!1};
this.logEventProcessor=function(p){return p.result?(p=ruk(p.result))?sW8(Q.galLogger,p):!1:!1}};
P_6.prototype.complete=function(){var x=this,G,D;return _.T(function(K){if(x.interactionMode!==1)return K.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));G=pV.getRedirectStateFromUri();if(G===void 0)return x.galLogger.JSC$17096_logErrorEvent(131),K.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return D=E7T(x,G),K.return(hac(x,D))}catch(z){return K.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
P_6.prototype.start=function(){var x=this,G;return _.T(function(D){if(x.started)return D.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.rP(x.gsiWebFlowDetails,1))return D.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(x.interactionMode===1)return pV.setLocation(xFC(x,_.rP(x.gsiWebFlowDetails,1))),D.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
x.started=!0;G=pV.getPostMessagePopup(x.JSC$17156_dataValidator,x.logEventProcessor);return D.return(G.open(xFC(x,_.rP(x.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(K){x.started=!1;if((K==null?void 0:K.result)===void 0)throw x.galLogger.JSC$17096_logErrorEvent(131),Error("Uj");K=E7T(x,K.result);return hac(x,K)}).catch(function(K){x.started=!1;
return K.errorCode!==void 0?{statusCode:K.errorCode,statusMessage:K.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var xFC=function(x,G){x=["result_channel",x.interactionMode===1?"2":"1","color_scheme",Ypc(x.colorScheme),"show_close_option",x.showCloseOption];return qYf(G,x)},hac=function(x,G){if(G!==null&&_.lr(G,ZA,2)){var D,K=G==null?void 0:(D=_.hv(G,ZA,2))==null?void 0:_.sk(D,2);
K&&x.galLogger.JSC$17096_logErrorEvent($OY(K));return jlf(_.hv(G,ZA,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 x.galService.getLink({serviceId:x.serviceId,sessionId:x.sessionId,consistencyKey:_.rP(G,1)}).then(function(z){z=OUO(z);x.galLogger.logInternalEvent(134);return{statusCode:1,link:z}})},E7T=function(x,G){G=ts4(G);
if(!_.lr(G,ZA,2)&&_.rP(G,1)==="")throw x.galLogger.JSC$17096_logErrorEvent(5),Error("Vj");return G},pV={getPostMessagePopup:function(x,G){return new g7C(x,G)},
getRedirectStateFromUri:function(){return _.qy(_.wM(pV.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(x){_.wC(window.location,_.V$(x))},
createStreamlinedFlow:function(x,G){return new P_6(x.serviceId,x.sessionId,x.galService,G,x.colorScheme,x.showCloseOption,x.galLogger,x.interactionMode,x.redirectServiceUrl)}};var JuC=function(){var x=_.QZh("GAL");this.storage=x?new _.B0(x):null};var R1=function(){};
_.m(R1,XHc);R1.prototype.logStateTransition=function(){};
R1.prototype.logInternalEvent=function(){};
R1.prototype.JSC$17096_logErrorEvent=function(){};var Gxf=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Gxf,_.SX);Gxf.prototype.getCompletionUrl=function(){return _.rP(this,15)};var S4=function(x,G,D,K,z,y){this.serviceId=x;this.environment=G;this.sessionId=D;this.colorSchemeSelected=K;this.colorThemeDisplayed=z;this.JSC$17169_transport=y;this.currentState=1};
_.m(S4,XHc);S4.prototype.logStateTransition=function(x){var G=DFC(this);G=_.xW(G,3,this.currentState);G=_.xW(G,1,x);this.currentState=x;x=KgC(1);this.dispatch(G,x)};
S4.prototype.logInternalEvent=function(x){x=KgC(x);this.dispatch(DFC(this),x)};
S4.prototype.JSC$17096_logErrorEvent=function(x){var G=DFC(this);G=_.xW(G,1,10);x=KgC(x);this.dispatch(G,x)};
var DFC=function(x){var G=new Gxf;G=_.xW(G,1,x.currentState);G=_.Z_(G,7,x.serviceId);var D,K;var z=((D=window)==null?0:(K=D.location)==null?0:K.href)?_.wM(window.location.href).JSC$8039_domain_:"NO_PACKAGE_NAME";D=_.Z_(G,8,z);D=_.xW(D,6,x.environment);D=_.Z_(D,5,"100");D=_.xW(D,11,x.colorSchemeSelected);return _.xW(D,12,x.colorThemeDisplayed)};
S4.prototype.dispatch=function(x,G){G===void 0&&(G=new _.Ex);var D=G;x=x.serialize();D=_.Z_(D,8,x);_.bV(D,12,this.sessionId);this.JSC$17169_transport.dispatch(G)};var KYC=function(x,G){this.loggerType=x;this.sessionIndex=G!=null?G:0},zMi;
KYC.prototype.create=function(x,G,D,K,z){switch(this.loggerType){case 0:return new R1;case 1:return zMi||(zMi=(new _.TH(555,this.sessionIndex.toString())).build()),new S4(x,G,D,K,z,zMi);default:_.oT(this.loggerType,"unknown logger type")}};var V0=[6,2,3,1],EWY=new Map([[4,1],[1,6],[2,2],[3,3]]),RH6={statusCode:7,statusMessage:"Failed to create flow object"},N$c=function(x,G,D,K,z,y,c,W,e,Q){this.serviceId=x;this.sessionId=G;this.config=D;this.galService=K;this.JSC$17176_linkingSession=z;this.googleScopes=y;this.callerState=c;this.consentLanguageKeys=W;this.dynamicUrlParameters=e;this.partnerConfigMinReadTimestamp=Q;this.currentFlow=0;K=this.JSC$17176_linkingSession;z=new Set;_.lr(K,ujC,1)&&z.add(1);_.lr(K,whx,2)&&_.lr(K,dOj,6)&&z.add(2);
_.lr(K,dJx,3)&&_.lr(K,dOj,6)&&z.add(3);_.lr(K,izf,4)&&z.add(6);this.supportedFlows=z;K=D.loggerType;z=D.clientEnvironment;a:{y=D.colorScheme;switch(y){case 0:y=1;break a;case 1:y=2;break a;case 2:y=3;break a;default:_.oT(y)}y=void 0}a:{c=D.colorScheme;c=Raf(c);switch(c){case 0:c=1;break a;case 1:c=2;break a;default:_.oT(c)}c=void 0}this.galLogger=(new KYC(K,D.authUser)).create(x,z,G,y,c)},oLT=function(x){return new Promise(function(G){var D,K,z,y,c,W,e,Q,p,V;
return _.T(function(L){switch(L.nextAddress){case 1:D=wSx(x.currentFlow,x.supportedFlows),K=!1,z=new SuC(x.JSC$17176_linkingSession,x.config.dataUsageNoticeConfig);case 2:if(D===void 0){L.jumpTo(4);break}_.Kl(L,5);var r=z,H=D,O=void 0;K?H===1&&(O=r.displayInfoMap.get(2)):H===2||H===3?O=r.displayInfoMap.get(1):H===1&&(O=r.displayInfoMap.get(3));y=O?O:[];c=x.consentLanguageKeys;W=_.l(y);e=W.next();case 7:if(e.done)return x.currentFlow=D,_.Z(L,nWi(awf(x,c)),11);Q=e.value;return _.Z(L,FnY(Q,x.config.dataUsageNoticeConfig.uiAdapter,
x.config.colorScheme,x.galLogger),10);case 10:p=L.yieldResult;if(p.statusCode!==1)return fv6(x.serviceId),x.currentFlow=0,G(Mx({statusCode:p.statusCode,statusMessage:p.statusMessage},x.callerState)),L.return();p.consentLanguageKeys!==void 0&&(c=p.consentLanguageKeys);e=W.next();L.jumpTo(7);break;case 11:V=L.yieldResult;if(V.statusCode!==10)return V.statusCode!==6&&(fv6(x.serviceId),x.currentFlow=0),V.statusCode!==1&&x.callerState!==void 0&&(V.callerState=x.callerState),G(V),L.return();_.iI(L,6);break;
case 5:_.lX(L);case 6:D=wSx(x.currentFlow,x.supportedFlows);K=!0;L.jumpTo(2);break;case 4:fv6(x.serviceId),x.currentFlow=0,G(Mx({statusCode:12,statusMessage:"Linking failed"},x.callerState)),_.c5(L)}})})},kuC=function(x,G,D){x.currentFlow=G;
return iUf(awf(x,D)).then(function(K){return K.statusCode===10&&x.config.interactionMode===1&&wSx(x.currentFlow,x.supportedFlows)!==void 0?oLT(x):K})},awf=function(x,G){return{flowParams:{serviceId:x.serviceId,
sessionId:x.sessionId,galService:x.galService,galLogger:x.galLogger,interactionMode:x.config.interactionMode,redirectServiceUrl:x.config.redirectServiceUrl,colorScheme:x.config.colorScheme,consentLanguageKeys:G,dynamicUrlParameters:x.dynamicUrlParameters,showCloseOption:x.config.showCloseOption,partnerConfigMinReadTimestamp:x.partnerConfigMinReadTimestamp},currentFlow:x.currentFlow,config:x.config,session:x.JSC$17176_linkingSession,googleScopes:x.googleScopes,callerState:x.callerState}};var lg8=function(x,G){this.config=x;this.galService=G.getService();this.JSC$17189_galRepository=G.JSC$17226_galRepository};
lg8.prototype.getLink=function(x,G){return yci(this,x,G)};
var yci=function(x,G,D){return x.JSC$17189_galRepository.getLink({serviceId:G,scopes:void 0,capabilities:void 0,linkName:D}).then(function(K){return{statusCode:1,link:K}}).catch(function(K){return{statusCode:hHf(K.code),
statusMessage:K.message}})};
lg8.prototype.deleteLink=function(x,G){return this.JSC$17189_galRepository.deleteLink(x,this.config.accountLinkingEntryPoint,G).then(function(){return{statusCode:1}}).catch(function(D){return{statusCode:hHf(D.code),
statusMessage:D.message}})};
lg8.prototype.startLinkingSession=function(x){var G=x.serviceId;var D=x.sessionId;return vWc({serviceId:G,sessionId:D!==void 0?D:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:x.loginHint,callerState:x.callerState,consentLanguageKeys:x.consentLanguageKeys,linkName:x.linkName,dynamicUrlParameters:x.dynamicUrlParameters,partnerConfigMinReadTimestamp:x.partnerConfigMinReadTimestamp})};var xi4=null,zeC=new WeakMap;var lwY=function(){};
lwY.prototype.send=function(x,G){y28(x);return this.makeRequest(x).then(function(D){if(G){var K=new G;if(D!=null){if(G==null)throw Error("Xj");new G;throw Error("Zj");}D=K}return D})};var ccY=function(x,G,D,K,z){this.gapiUrl=x;this.gapiKey=G;this.gapiConfigUpdates=D||{};this.gapiAuthParams=K||{};this.defaultApiId=z};
_.m(ccY,lwY);var WYO=function(x){return DiC().then(function(G){G=G||window.gapi;Tl6(x,G);return oqc(G,{apiKey:x.gapiKey,clientId:x.gapiAuthParams.clientId,scope:x.gapiAuthParams.scope,hostedDomain:x.gapiAuthParams.hostedDomain,fetchBasicProfile:x.gapiAuthParams.fetchBasicProfile}).then(function(){return G})})};
ccY.prototype.makeRequest=function(x){var G=this;return WYO(this).then(function(D){return _.T(function(K){if(K.nextAddress==1)return G.gapiAuthParams.minAuthTokenTimeRemaining===void 0?K.jumpTo(2):_.Z(K,agi(D,G.gapiAuthParams.minAuthTokenTimeRemaining),2);Tl6(G,D);return K.return(eMb(D.client.request({root:G.gapiUrl,path:x.path,method:x.httpMethod,body:x.body,params:x.queryParams,headers:x.headers,authType:x.authType,apiId:x.apiId||G.defaultApiId})))})})};
var eMb=function(x){return new Promise(function(G,D){x.then(function(K){G(K.result===!1&&K.body!=null?{data:K.body}:K.result)},function(K){D(K.result===!1&&K.body!=null?{data:K.body}:K.result)})})},Tl6=function(x,G){for(var D in x.gapiConfigUpdates)if(x.gapiConfigUpdates.hasOwnProperty(D)){var K=G,z=D,y=x.gapiConfigUpdates[D],c=K.config.get(z);
y!==c&&K.config.update(z,y)}};
ccY.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var na=function(x,G,D,K,z,y,c,W){this.apiKey=G;this.authUser=D;this.oauthToken=K;this.bucket=z;this.locale=c;this.galSdkEventHandler=W;if(K===void 0){if(G===void 0)throw Error("$j");this.requestService=new ccY(x,G,{"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0,"client/xd4":y===void 0||y===!1,"client/xd3":y===!0})}this.galServiceClient=new BG4(x)};
na.prototype.deleteLink=function(x){var G=x.serviceId;var D=x.sessionId;var K=x.accountLinkingEntryPoint;var z=x.linkName;var y=this,c;return _.T(function(W){var e=(new La).setHeader(iR(y,D));var Q=Zsb({serviceId:G,linkName:z});e=_.GW(e,2,Q);c=_.FV(e,3,K);return W.return(y.makeRequest(y.galServiceClient.deleteLink,c,[1,3],[2,4]))})};
var Ja6=function(x,G){var D=G.serviceId;var K=G.sessionId;var z=G.dynamicUrlParameters;var y=G.redirectState;var c=G.consentLanguageKeys;var W=G.partnerConfigMinReadTimestamp;var e;return _.T(function(Q){var p=(new r3).setHeader(iR(x,K,z));p=_.NX(p,2,D);e=_.NX(p,4,y);c!==void 0&&_.NX(e,5,c);W!==void 0&&_.GW(e,6,W);return Q.return(x.makeRequest(x.galServiceClient.JSC$17075_finishOAuth,e,[1,3],[2,4]))})};
na.prototype.getLink=function(x){var G=x.serviceId;var D=x.sessionId;var K=x.scopes;var z=x.capabilities;var y=x.consistencyKey;var c=x.linkName;var W=this,e;return _.T(function(Q){var p=(new sZ).setHeader(iR(W,D)),V=Zsb({serviceId:G,scopes:K,capabilities:z,linkName:c});e=_.GW(p,2,V);y!==void 0&&(p=Hz6(),p=_.NX(p,2,y),_.GW(e,3,p));return Q.return(W.makeRequest(W.galServiceClient.getLink,e,[1,3],[2,4]))})};
var gWf=function(x,G){var D=G.serviceId;var K=G.sessionId;var z=G.googleScopes;var y=G.consistencyKey;var c;return _.T(function(W){var e=(new BI).setHeader(iR(x,K));e=_.NX(e,2,D);var Q=Array.from(z.values());e=_.s_(e,3,Q,_.Sx);Q=Hz6();Q=_.NX(Q,2,y);c=_.GW(e,4,Q);return W.return(x.makeRequest(x.galServiceClient.JSC$17075_depositGoogleCredential,c,[1,3],[2,4]))})};
na.prototype.startLinkingSession=function(x){var G=x.serviceId;var D=x.sessionId;var K=x.scopes;var z=x.capabilities;var y=x.loginHint;var c=x.supportedFlows;var W=x.completionUrl;var e=x.usePingPong;var Q=x.twoWayLinking;var p=x.accountLinkingEntryPoint;var V=x.callerState;var L=x.consentLanguageKeys;var r=x.googleScopes;var H=x.dataUsageNoticeConfig;var O=x.linkName;var A=x.dynamicUrlParameters;var g=x.partnerConfigMinReadTimestamp;var u=this,f,v;return _.T(function(P){if(z!==void 0&&K!==void 0)throw Error("Sj");
var k=(new Yv).setHeader(iR(u,D,A));f=_.NX(k,2,G);O!==void 0&&_.NX(f,14,O);if(z!==void 0){k=f;var cL=Array.from(z.values());_.s_(k,5,cL,_.Sx)}else K!==void 0&&(k=f,cL=Array.from(K.values()),_.s_(k,3,cL,_.Sx));W!==void 0&&_.NX(f,6,W);e!==void 0&&_.mb(f,15,e);c!==void 0&&(k=f,cL=Array.from(c.values()),_.s_(k,4,cL,_.rb));if(Q!==void 0){if(Q&&(!r||r.size===0))throw Error("ak");_.mb(f,8,Q)}p!==void 0&&_.FV(f,9,p);y!==void 0&&_.NX(f,13,y);V!==void 0&&(k=f,cL=(new TextEncoder).encode(V),_.Y0(k,12,_.nu(cL,
!1),_.SZ()));L!==void 0&&_.NX(f,16,L);g!==void 0&&_.GW(f,18,g);if(H!==void 0&&H.size>0||r!==void 0&&r.size>0)v=new Nkf,r!==void 0&&r.size>0&&(k=v,cL=Array.from(r.values()),_.s_(k,1,cL,_.Sx)),H!==void 0&&(H.has(0)&&_.y6L(v,2,_.rb,1,_.sc),H.has(1)&&_.y6L(v,2,_.rb,2,_.sc)),_.GW(f,17,v);return P.return(u.makeRequest(u.galServiceClient.startLinkingSession,f,[1],[2]))})};
na.prototype.getMetadata=function(){var x=this,G,D,K;return _.T(function(z){if(z.nextAddress==1)return G={},x.requestService?_.Z(z,WYO(x.requestService),3):(G.Authorization="Bearer "+x.oauthToken,z.jumpTo(2));z.nextAddress!=2&&(D=z.yieldResult,G["X-Goog-Api-Key"]=x.apiKey,G["X-Goog-AuthUser"]=x.authUser!==void 0?x.authUser.toString():"0",(K=D.auth.getAuthHeaderValueForFirstParty([]))&&(G.Authorization=K));x.locale&&(G["accept-language"]=x.locale);return z.return(G)})};
na.prototype.makeRequest=function(x,G,D,K){var z=this,y;return _.T(function(c){if(c.nextAddress==1)return _.Z(c,z.getMetadata(),2);y=c.yieldResult;MUk(z,D);return c.return(x.bind(z.galServiceClient)(G,y).finally(function(){MUk(z,K)}))})};
var MUk=function(x,G){x.galSdkEventHandler!==void 0&&G.forEach(function(D){x.galSdkEventHandler.onEvent(D)})},iR=function(x,G,D){var K=new pa;
G=_.Y0(K,2,_.Yi(G),0);G=_.FV(G,5,3);D=_.s_(G,8,D,_.Sx);x.bucket!==void 0&&_.NX(D,1,x.bucket);return D},Zsb=function(x){var G=x.serviceId;
var D=x.scopes;var K=x.capabilities;x=x.linkName;if(K!==void 0&&D!==void 0)throw Error("Sj");var z=new YIc;G=_.NX(z,1,G);K!==void 0?(D=Array.from(K.values()),_.s_(G,5,D,_.Sx)):D!==void 0&&(D=Array.from(D.values()),_.s_(G,3,D,_.Sx));x!==void 0&&_.NX(G,6,x);return G};var c2x=function(x){this.galService=new na(x.alsDomain,x.apiKey,x.authUser,x.oauthToken,x.bucket,x.clientXd3,x.locale,x.galSdkEventHandler);this.JSC$17226_galRepository=new n7f(this.galService)};
c2x.prototype.getService=function(){return this.galService};var QOC=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(QOC,_.SX);var pqf=function(x){var G=new QOC;return _.xW(G,1,x)};
QOC.prototype.setErrorMessage=function(x){return _.Z_(this,2,x)};var VUf=[0,_.ur,_.nr,_.ur];var g3=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(g3,_.SX);var bsf=[0,[1,2,3],_.gP,[0,O7c,Uvi,-1],_.gP,[0,Aof,-1],_.saQ];var LYi=[0,_.Uk,1,_.ur,_.nr,-1,1,_.HDh,_.Ae,_.ur,-1,bsf];var Blc=[0,_.ur,[0,_.HDh,_.Ae,[0,_.nr]],_.SI,[0,_.ur,-1]];var GN=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(GN,_.SX);var rci=[0,_.nr,_.ur,-2,_.Uk,_.ur,_.Uk,_.ur,-2,1,_.SI];var sO4=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(sO4,_.SX);var Ygj=[0,_.Uk];var mFb=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(mFb,_.SX);var HsO=[0,_.ur,Blc,Ygj,rci,LYi];var n_j=_.Pd(mFb,HsO);var $Fi=[0,rax];var qAf=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(qAf,_.SX);var FYT=[0,[1,3],uw4,_.ur,uw4];var hw=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(hw,_.SX);var CA8=[0,_.ur];var IwC=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(IwC,_.SX);var xv=function(x){return _.HV(x,QOC,2,Ew)},jO6=function(x){var G=new IwC;
return _.DB(G,2,Ew,x)},Ew=[1,
2];var Os6=[0,Ew,_.gP,CA8,_.gP,VUf,_.ir,FYT,1,_.ur,$Fi];var Xqi=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(Xqi,_.SX);var UFO=function(x){var G=new Xqi;return _.DB(G,3,AcY,x)},AcY=[2,
3];var uR=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(uR,_.SX);var RM8=function(x,G){return _.GW(x,2,G)},Sgi=function(x,G){return _.GW(x,8,G)},nL6=function(x,G){return _.GW(x,3,G)};var isY=[0,_.ur,Os6,HsO,_.Cqi,[0,[5,6],[0,_.ur,-2],[0,_.Uk,_.ur,_.nr],[0,bsf],[0,_.nr,_.ur,-1,_.Fh0,_.ur],_.gP,[0,[0,_.Uk],_.ur,-1],_.gP,[0,[3,4],_.ur,-1,_.gP,[0,[0,_.ur,_.SI]],_.gP,[0,[0,[0,[1,2],_.gP,[0],_.gP,[0]]]]]],_.Cqi,-1,[0,AcY,_.ur,_.gP,CA8,_.gP,VUf,_.ir,FYT,[0,rax]]];var gLY=_.Pd(uR,isY),u48=_.E_(isY);var dFj=function(){_.Ya.call(this)};
_.m(dFj,_.Ya);dFj.prototype.init=function(){};
new dFj;var wqC=_.gv(["data-"]),qgc=_.gv(["aria-"]),NlO=_.gv(["aria-"]),d3=function(x,G){this.isLatencyMeasurementExperiment=x===void 0?!1:x;this.enableDialogA11yFix=G===void 0?!1:G;this.JSC$17255_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.G7Z(_.Df.location.href)},g_O=function(x,G){x.onConsentPrimitiveShownCallback=G},vLf=function(x,G){return x.overriddenIframeLoadTimeout?x.overriddenIframeLoadTimeout:G!==void 0?G:5E3},dW4=function(x){if(x.prewarmPromise!==void 0)return x.prewarmPromise;
x.prewarmPromise=new Promise(function(G,D){w3(x,1);Jc8(x,fwj(x,!0),tUO(x));x.iframe?x.prewarmChannel||kxO(x,x.iframe,G):D(Error("bk"))});
x.prewarmPromise.finally(function(){x.prewarmPromise=void 0});
return x.prewarmPromise};
d3.prototype.showPrimitive=function(){var x=this;if(this.consentPromise!==void 0)return this.consentPromise;var G=Date.now();PA4(this,G);this.consentPromise=new Promise(function(D,K){w3(x,0,G);var z=x.isDarkTheme();x.isLatencyMeasurementExperiment||x.initialLoadingStrategy===1||x.initialLoadingStrategy===2||(x.loadingBar||(x.loadingBar=ZEc(getComputedStyle(document.body).direction==="rtl",z),x.loadingBar.style.position="fixed",x.loadingBar.style.zIndex="15000"),document.body.appendChild(x.loadingBar));
Jc8(x,fwj(x),tUO(x));x.iframe?x.channel||ELO(x,x.iframe,D,K):(hMk(x),K(Error("bk")))});
this.consentPromise.finally(function(){x.consentPromise=void 0});
return this.consentPromise};
var ELO=function(x,G,D,K){var z,y;_.T(function(c){switch(c.nextAddress){case 1:w3(x,3);z=!1;setTimeout(function(){if(!z){hMk(x);xXT(x);GFT(x);var W=pqf(7).setErrorMessage("Timeout connecting to iframe");D(Sgi(RM8(new uR,jO6(W)),UFO(W)))}},vLf(x,DXi(x)));
if(!x.prewarmPromise){c.jumpTo(2);break}_.Kl(c,3);return _.Z(c,x.prewarmPromise,5);case 5:_.iI(c,2);break;case 3:_.lX(c),y=pqf(4).setErrorMessage("Error while prewarming."),D(Sgi(RM8(new uR,jO6(y)),UFO(y)));case 2:x.prewarmChannel&&x.prewarmChannel.send(u48(nL6(new uR,x.consentPrimitiveRequest))),x.channel=_.qV({destination:x.JSC$17255_win,iframe:G,origin:KIc(x),channelName:"cpw",onEstablished:function(){z=!0;hMk(x);x.isLatencyMeasurementExperiment||(x.JSC$17255_previousBodyOverflow=document.body.style.overflow,
x.JSC$17255_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,x.JSC$17255_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",x.enableDialogA11yFix&&window.addEventListener("blur",x.focusChangeListener));var W=x.iframe;W.style.bottom="0";W.style.position="fixed";W.style.right="0";W.style.border="none";W.style.left="0";W.style.top=
"0";W.style.zIndex="5000";W.style.pointerEvents="";W.style.visibility="";x.initialLoadingStrategy===2||x.initialLoadingStrategy===3?w3(x,4):w3(x,6);var e;(e=x.onConsentPrimitiveShownCallback)==null||e.call(x)},
onMessage:function(W){W=gLY(W.data);switch(_.sk(W,1)){case 1:xXT(x);var e=MmT(_.hv(W,_.OH,7));e&&(x.initialLoadingStrategy!==2&&x.initialLoadingStrategy!==3||w3(x,6,e),w3(x,5,e));if(e=MmT(_.hv(W,_.OH,6)))w3(x,7,e),w3(x,8);var Q,p;((Q=_.hv(W,IwC,2))==null?void 0:_.eI(Q,Ew))!==0&&((p=_.hv(W,Xqi,8))==null?void 0:_.eI(p,AcY))!==0||K(Error("ck"));D(W);break;case 2:GFT(x)}}}),_.c5(c)}})},kxO=function(x,G,D){x.prewarmChannel=_.qV({destination:x.JSC$17255_win,
iframe:G,origin:KIc(x),channelName:"pwcp",onEstablished:function(){w3(x,2);D()}})},KIc=function(x){var G=_.lH(x.src).toString();
return G&&G.indexOf("://")<0&&G.indexOf("//")!==0?x.origin:_.G7Z(G)},fwj=function(x,G){G=G===void 0?!1:G;
var D,K=new Map([["origin",x.origin],["hl",(D=z_f(x))!=null?D:null]]);G&&K.set("pw","1");G=_.l([["cpr",x.consentPrimitiveRequest.serialize()]]);for(D=G.next();!D.done;D=G.next()){var z=_.l(D.value);D=z.next().value;z=z.next().value;K.set(D,z)}x.isDarkTheme()&&K.set("color_scheme","dark");return _.Gj(x.src,K)},hMk=function(x){x.isLatencyMeasurementExperiment||x.loadingBar&&document.body.removeChild(x.loadingBar)};
d3.prototype.getSrc=function(){var x=_.Jm(this.origin),G;var D=(G=_.hv(this.consentPrimitiveRequest,sO4,3))==null?void 0:_.GH(G,1);G="consent.google.com";D=D?"/u/"+encodeURIComponent(D.toString()):"";(x==null?0:x.endsWith("youtube.com"))?G="consent.youtube.com":(x=x==null?void 0:x.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(G="consent.google."+((x[1]?"co.":"")+encodeURIComponent(x[2])));return _.oF("https://"+G+"/signedin"+D+"/landing")};
var Jc8=function(x,G,D){x.iframe||(x.iframe=document.createElement("iframe"),x.iframe.style.width="100%",x.iframe.style.height="100%",D!==112496729&&(x.iframe.style.colorScheme="auto"),x.isLatencyMeasurementExperiment&&(x.iframe.style.display="none"),_.C9(x.iframe,G),x.iframe.setAttribute("jsname","C5o1O"),akb(x.iframe),document.body.appendChild(x.iframe))},akb=function(x){x.style.bottom="-200vh";
x.style.position="fixed";x.style.right="-200vw";x.style.border="";x.style.left="";x.style.top="";x.style.zIndex="";x.style.pointerEvents="none";x.style.visibility="hidden"},xXT=function(x){x.iframe&&(x.isLatencyMeasurementExperiment||(x.JSC$17255_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=x.JSC$17255_previousHtmlOverscroll),x.JSC$17255_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=x.JSC$17255_previousBodyOverscroll),x.JSC$17255_previousBodyOverflow!==
void 0&&(document.body.style.overflow=x.JSC$17255_previousBodyOverflow),x.enableDialogA11yFix&&o5c(x,!1)),akb(x.iframe))};
d3.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(o5c(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var o5c=function(x,G){var D,K,z=(D=x.iframe)==null?void 0:(K=D.parentElement)==null?void 0:K.children;if(z)for(D=0;D<z.length;D++)K=z[D],K!==x.iframe&&(G?(K.hasAttribute("aria-hidden")&&_.iH([_.Es(wqC)],K,"data-old-aria-hidden",K.getAttribute("aria-hidden")),_.iH([_.Es(qgc)],K,"aria-hidden","true")):(K.removeAttribute("aria-hidden"),K.hasAttribute("data-old-aria-hidden")&&(_.iH([_.Es(NlO)],K,"aria-hidden",K.getAttribute("data-old-aria-hidden")),K.removeAttribute("data-old-aria-hidden"))))},w3=function(x,
G,D){var K;
(K=x.latencyCallback)==null||K.call(x,{latencyType:G,timestampEpochMillis:D!=null?D:Date.now()})};var yjj=function(x,G,D){d3.call(this,G,D===void 0?!1:D);this.consentPrimitiveRequest=x;x=z_f(this);if(!(0,_.rsD)(x))throw Error("H``"+String(x));this.src=this.getSrc();var K;this.initialLoadingStrategy=(K=_.hv(this.consentPrimitiveRequest,GN,4))==null?void 0:_.sk(K,4)},lki;
_.m(yjj,d3);var i3Y=function(x){var G=_.B("enable_primitive_dialog_aria_hide_siblings");x={request:x,enableDialogA11yFix:G===void 0?!1:G};lki||(lki=new yjj(x.request,x.isLatencyMeasurementExperiment||_.sk(x.request,1)===2,x.enableDialogA11yFix));return lki},z_f=function(x){var G;
return(G=_.hv(x.consentPrimitiveRequest,GN,4))==null?void 0:_.rP(G,1)},PA4=function(x,G){if(!_.lr(x.consentPrimitiveRequest,g3,5)){var D=x.consentPrimitiveRequest,K=new g3;
_.GW(D,5,K)}var z;if((z=_.hv(x.consentPrimitiveRequest,g3,5))==null||_.eZ$(_.yW(z,8))==null){var y;(y=_.hv(x.consentPrimitiveRequest,g3,5))!=null&&_.bV(y,8,G)}},tUO=function(x){var G;
return(G=_.hv(x.consentPrimitiveRequest,g3,5))==null?void 0:_.GH(G,1)};
yjj.prototype.isDarkTheme=function(){var x;return((x=_.hv(this.consentPrimitiveRequest,GN,4))==null?void 0:_.sk(x,2))===2};
var DXi=function(x){var G;return((G=_.hv(x.consentPrimitiveRequest,GN,4))==null?void 0:_.GH(G,5))||void 0},GFT=function(x){x.channel=void 0;
x.prewarmChannel=void 0;x.iframe&&(document.body.contains(x.iframe)&&document.body.removeChild(x.iframe),x.iframe=void 0);lki=void 0},wkf=function(x){return d3.prototype.showPrimitive.call(x).then(function(G){return _.hv(G,IwC,2)})};for(var qb={},cjC=(qb[64]="ma",qb[73]="ogb",qb[89]="cr",qb[21]="test",qb[0]="unkn",qb[137]="con",qb[155]="hl",qb[78]="yt",qb[171]="lp",qb[172]="ap",qb[177]="amo",qb[178]="pqe",qb[74]="gg",qb[1]="gm",qb[140]="am",qb),TjT=_.l(Object.keys(cjC)),WI4=TjT.next();!WI4.done;WI4=TjT.next());var e_c=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(e_c,_.SX);var Z1j=[0,[2,3,4],_.ur,XDk,uw4,_.saQ];var M8c=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(M8c,_.SX);var Qyx=_.Pd(M8c,[0,grT,_.nr,_.ur,_.nr,_.ur,Z1j]);var pb4=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(pb4,_.SX);pb4.prototype.getCommand=function(){return _.sk(this,1)};
var V8f=function(){var x=new pb4;return _.FV(x,1,0)};var b18=_.E_([0,grT,_.nr,[0,_.ur,_.nr,-1]]);var LIT=new _.z2("s"),Bjx=new _.z2("t"),rjj=new _.z2("u"),syb=new _.z2("v"),YHk=function(x,G,D){_.aY.call(this,LIT);this.mediaKey=x;this.photoUrl=G;this.photoSource=D};
_.m(YHk,_.aY);var mX8=function(){_.aY.call(this,Bjx)};
_.m(mX8,_.aY);var H1T=function(x){x=x===void 0?!1:x;_.aY.call(this,rjj);this.isError=x};
_.m(H1T,_.aY);var $Xc=function(){_.aY.call(this,syb)};
_.m($Xc,_.aY);var FIc=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,O16=function(x){if(typeof x=="string"){if(x.charAt(0)==".")return CQT(x.substr(1));if(x.charAt(0)=="["){var G=FIc.exec(x);x=x.indexOf("=")==-1?void 0:G[3];return Iki(G[1],x)}return jy8(x)}return x},CQT=function(x){return function(G){return G.getAttribute&&_.jH(G,x)}},Iki=function(x,G){return function(D){return G!==void 0?D.getAttribute&&D.getAttribute(x)==G:D.hasAttribute&&D.hasAttribute(x)}},jy8=function(x){x=x.toUpperCase();
return function(G){return(G=G.tagName)&&G.toUpperCase()==x}},XbO=function(){return!0};var Nb=function(x,G){this.JSC$17283_key_=x;this.JSC$17283_value_=G},vI=function(x){throw Error("dk`"+x.JSC$17283_key_);
},Aj4=function(x,G){return new TypeError("ek`"+G+"`"+x.JSC$17283_key_+"`"+x.JSC$17283_value_+"`"+typeof x.JSC$17283_value_)};
Nb.prototype.string=function(x){if(arguments.length==0)var G=UXY(this);else{var D;G=(D=R_4(this))!=null?D:x}return G};
var UXY=function(x){var G=R_4(x);G===null&&vI(x);return G},R_4=function(x){var G=x.JSC$17283_value_;
if(G==null)return null;if(typeof G==="string")return G;throw Aj4(x,"string");};
Nb.prototype.bool=function(x){if(arguments.length==0){var G=this.optionalBool();G===null&&vI(this)}else{var D;G=(D=this.optionalBool())!=null?D:x}return G};
Nb.prototype.optionalBool=function(){var x=this.JSC$17283_value_;if(x==null)return null;if(typeof x==="boolean")return x;if(typeof x==="string"){x=x.toLowerCase();if(x==="true"||x==="1")return!0;if(x==="false"||x==="0")return!1}throw Aj4(this,"boolean");};
Nb.prototype.number=function(x){if(arguments.length==0){var G=SHk(this);G===null&&vI(this)}else{var D;G=(D=SHk(this))!=null?D:x}return G};
var SHk=function(x){var G=x.JSC$17283_value_;if(G==null)return null;if(typeof G==="number")return G;if(typeof G==="string"){var D=Number(G);if(!isNaN(D)&&(D!==0||G.trim().length!==0))return D}throw Aj4(x,"number");};
Nb.prototype.toString=function(){return UXY(this)};
Nb.prototype.array=function(x){if(arguments.length==0){var G=n5j(this);G===null&&vI(this);return G}G=n5j(this);return G==null?x:G};
var n5j=function(x){var G=x.JSC$17283_value_;if(G==null)return null;Array.isArray(G)||(typeof G!=="string"?G=[G]:(G=G.trim(),G=G==""?[]:G.split(",").map(function(D){return D.trim()})));
return i16(x,G)},i16=function(x,G){var D=x.JSC$17283_key_+"[";
return Array.from(G,function(K,z){return new Nb(D+z+"]",K)})};
Nb.prototype.object=function(x){var G=this.JSC$17283_value_;if(G==null)return x===void 0&&vI(this),x;if(typeof G==="object"&&G.constructor===Object){x={};var D=this.JSC$17283_key_+".",K;for(K in G)x[K]=new Nb(D+K,G[K]);return x}throw Aj4(this,"object");};var J8=function(x){this.list_=g5O(x)},g5O=function(x){if(x instanceof J8)x=x.list_;
else if(x[0]instanceof J8){for(var G=new Set,D=0;D<x.length;D++)for(var K=_.l(x[D].list_),z=K.next();!z.done;z=K.next())G.add(z.value);x=G}return[].concat(_.B5(x))};
_.a=J8.prototype;_.a.each=function(x,G,D){((D===void 0?0:D)?QEc:_.uM)(this.list_,x,G);return this};
_.a.size=function(){return this.list_.length};
_.a.isEmpty=function(){return this.list_.length===0};
_.a.get=function(x){return this.list_[x]||null};
_.a.el=function(){return this.list_[0]||null};
_.a.map=function(x,G){return _.Hu(this.list_,x,G)};
_.a.equals=function(x){return this===x||_.yJ(this.list_,x.list_)};
_.a.first=function(){return this.list_.length==0?null:new fa(this.list_[0])};
_.a.find=function(x){var G=[];this.each(function(D){D=D.querySelectorAll(String(x));for(var K=0;K<D.length;K++)G.push(D[K])});
return new J8(G)};
_.a.parent=function(){var x=[];this.each(function(G){(G=G.parentElement||null)&&!_.qL(x,G)&&x.push(G)});
return new J8(x)};
_.a.children=function(){var x=[];this.each(function(G){G=_.sx(G);for(var D=0;D<G.length;D++)x.push(G[D])});
return new J8(x)};
_.a.filter=function(x){x=_.k1(this.list_,O16(x));return new J8(x)};
_.a.closest=function(x){var G=[],D=O16(x),K=function(z){return _.fU(z)&&D(z)};
this.each(function(z){(z=_.Xn(z,K,!0))&&!_.qL(G,z)&&G.push(z)});
return new J8(G)};
_.a.next=function(x){return uDC(this,_.b$s,x)};
_.a.prev=function(x){return uDC(this,dvk,x)};
var uDC=function(x,G,D){var K=[];var z=D?O16(D):XbO;x.each(function(y){(y=G(y))&&z(y)&&K.push(y)});
return new J8(K)};
J8.prototype.setClass=function(x){return this.each(function(G){_.IY(G,x)})};
var dX4=function(x,G){return x.each(function(D){_.qJ(D,G)})},wbf=function(x,G){return x.each(function(D){_.dk(D,G)})};
J8.prototype.toggleClass=function(x,G){return G===!0?dX4(this,x):G===!1?wbf(this,x):this.each(function(D){_.jH(D,x)?_.dk(D,x):_.qJ(D,x)})};
J8.prototype.setText=function(x){return this.each(function(G){_.Y2(G,x)})};
var qHc=function(x){x.each(function(G){G.removeAttribute("aria-hidden")})};
J8.prototype.getStyle=function(x){if(this.list_.length>0){var G=this.list_[0],D=G.style[_.eq(x)];return typeof D!=="undefined"?D:G.style[_.O$0(G,x)]||""}};
J8.prototype.getData=function(x){if(this.list_.length===0)return new Nb(x,null);var G=rm4(this.list_[0],x);return new Nb(x,G)};
J8.prototype.focus=function(x){try{x?this.el().focus(x):this.el().focus()}catch(G){}return this};
J8.prototype.click=function(){var x=_.C2(this.el());if(x.createEvent){var G=x.createEvent("MouseEvents");G.initMouseEvent("click",!0,!0,x.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(G)}else x=x.createEventObject(),x.clientX=0,x.clientY=0,x.screenX=0,x.screenY=0,x.altKey=!1,x.ctrlKey=!1,x.shiftKey=!1,x.button=0,this.el().fireEvent("onclick",x)};
var t8=function(x,G,D,K){function z(W,e,Q){var p=e;e&&e.parentNode&&(p=e.cloneNode(!0));W(p,Q)}
K=K===void 0?!1:K;if(x.list_.length==1){var y=x.list_[0],c=function(W){return G(W,y)};
D instanceof J8?D.each(c,void 0,K):Array.isArray(D)?(K?QEc:_.uM)(D,c):c(D);return x}return x.each(function(W){D instanceof J8?D.each(function(e){z(G,e,W)}):Array.isArray(D)?_.uM(D,function(e){z(G,e,W)}):z(G,D,W)})};
_.a=J8.prototype;_.a.append=function(x){return t8(this,function(G,D){G&&D.appendChild(G)},x)};
_.a.appendTo=function(x){(new J8([x])).append(this);return this};
_.a.remove=function(){return t8(this,function(x,G){_.VF(G)},null)};
_.a.empty=function(){return t8(this,function(x,G){_.LX(G)},null)};
_.a.after=function(x,G){return t8(this,function(D,K){D&&_.rg(D,K)},x,!(G===void 0||G))};
_.a.before=function(x){return t8(this,function(G,D){G&&_.B_(G,D)},x)};
_.a.replaceWith=function(x){return t8(this,function(G,D){G&&_.QVi(G,D)},x)};
_.a.toggle=function(x){return this.each(function(G){_.vZ(G,x)})};
_.a.show=function(){return this.toggle(!0)};
_.a.hide=function(){return this.toggle(!1)};
_.a.trigger=function(x,G,D,K){return Njf(this,x,G,D,K)};
var Njf=function(x,G,D,K,z){return x.each(function(y){_.rmP(_.C2(y)).triggerWizEventInternal(y,G,D,K,z)})},fa=function(x,G){x instanceof J8&&(G=x.list_,x=null);
this.list_=g5O(x!=null?[x]:G)};
_.tR(fa,J8);_.a=fa.prototype;_.a.children=function(){return new J8(Array.prototype.slice.call(_.sx(this.list_[0])))};
_.a.each=function(x,G){x.call(G,this.list_[0],0);return this};
_.a.size=function(){return 1};
_.a.el=function(){return this.list_[0]};
_.a.first=function(){return this};var kv=function(x,G){G=G===void 0?window:G;this.hostId=x;this.JSC$17294_win=G;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$17294_previousHtmlOverscroll=this.JSC$17294_previousBodyOverscroll=this.JSC$17294_previousBodyOverflow="";this.eventTarget=new _.T2;this.JSC$17294_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
fkc=function(x){var G=v5k(v5k(v5k(new Jji(78),"po"),"hppp"),"hhc");
G.authUser=Number(_.Am("SESSION_INDEX","0"));G.colorScheme=x;return G};
kv.prototype.getOrigin=function(){return this.origin?this.origin:_.wi(_.di(_.uv(new _.w5,this.JSC$17294_win.location.protocol),this.JSC$17294_win.location.hostname),this.JSC$17294_win.location.port).toString()};
kv.prototype.getTargetOrigin=function(){return _.wi(_.di(_.uv(new _.w5,this.scheme),this.domain),this.port)};
kv.prototype.preloadIframe=function(x){var G=this;if(this.iframeLoadPromise===void 0){var D=document.createElement("iframe");this.iframe=D;r2C(D,x);this.iframeLoadPromise=new Promise(function(K,z){var y=!1,c=function(W){W.stopPropagation();D.removeEventListener("error",c);D.removeEventListener("securitypolicyviolation",c);z(Error("fk",{cause:W}))};
D.addEventListener("error",c);D.addEventListener("securitypolicyviolation",c);setTimeout(function(){y||z(Error("gk"))},3E4);
t8O(G,D,function(){y=!0;D.removeEventListener("error",c);D.removeEventListener("securitypolicyviolation",c);K()})});
kFc(this);x=this.getTargetOrigin().toString();D.setAttribute("allow","camera "+x+"; display-capture "+x);this.parentElement.appendChild(D)}return this.iframeLoadPromise};
var h_C=function(x,G){var D,K;return _.T(function(z){if(z.nextAddress==1)return D=ZEc(getComputedStyle(x.parentElement).direction==="rtl"),x.parentElement.appendChild(D),document.activeElement instanceof HTMLElement&&(x.elementToFocusAfterClose=document.activeElement),_.Kl(z,2),_.Z(z,x.preloadIframe(G),4);if(z.nextAddress!=2){x.parentElement.removeChild(D);x.JSC$17294_previousBodyOverflow=x.parentElement.style.overflow;x.JSC$17294_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
x.JSC$17294_previousBodyOverscroll=x.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";x.parentElement.style.overscrollBehavior="contain";x.parentElement.style.overflow="hidden";var y=x.iframe;y.style.bottom="0";y.style.border="none";y.style.height="100%";y.style.left="0";y.style.position=x.iframePosition;y.style.right="0";y.style.top="0";y.style.width="100%";y.style.zIndex="2202";y.setAttribute("aria-hidden","false");y.setAttribute("aria-modal","true");
x.opened=!0;PQb(x);return _.iI(z,0)}K=_.lX(z);x.parentElement.removeChild(D);bEc(x.isDarkTheme());E5x(x,!1);throw Error("hk",{cause:K});})},E5x=function(x,G){G=G===void 0?!0:G;
x.iframe!==void 0&&(xt4(x),document.documentElement.style.overscrollBehavior=x.JSC$17294_previousHtmlOverscroll,x.parentElement.style.overscrollBehavior=x.JSC$17294_previousBodyOverscroll,x.parentElement.style.overflow=x.JSC$17294_previousBodyOverflow,x.elementToFocusAfterClose!==void 0&&(x.elementToFocusAfterClose.focus(),x.elementToFocusAfterClose=void 0),G?kFc(x):(x.parentElement.removeChild(x.iframe),x.iframe=void 0,x.iframeLoadPromise=void 0,x.mainChannel=void 0),x.opened=!1)},xt4=function(x){x.backgroundElementsAriaHiddenIsNull&&
(qHc(x.backgroundElementsAriaHiddenIsNull),x.backgroundElementsAriaHiddenIsNull=void 0);
x.backgroundElementsAriaHiddenIsFalse&&(x.backgroundElementsAriaHiddenIsFalse.each(function(G){G.setAttribute("aria-hidden","false")}),x.backgroundElementsAriaHiddenIsFalse=void 0);
x.backgroundElementsWithoutInert&&(x.backgroundElementsWithoutInert.each(function(G){G.removeAttribute("inert")}),x.backgroundElementsWithoutInert=void 0)},PQb=function(x){x.backgroundElementsAriaHiddenIsNull=(new fa(x.iframe.parentElement)).children().filter(function(G){return G.getAttribute("aria-hidden")===null&&G!==x.iframe});
x.backgroundElementsAriaHiddenIsNull.each(function(G){G.setAttribute("aria-hidden","true")});
x.backgroundElementsAriaHiddenIsFalse=(new fa(x.iframe.parentElement)).children().filter(function(G){return G.getAttribute("aria-hidden")==="false"&&G!==x.iframe});
x.backgroundElementsAriaHiddenIsFalse.each(function(G){G.setAttribute("aria-hidden","true")});
x.backgroundElementsWithoutInert=(new fa(x.iframe.parentElement)).children().filter(function(G){return!G.hasAttribute("inert")&&G!==x.iframe});
x.backgroundElementsWithoutInert.each(function(G){G.setAttribute("inert","true")})},kFc=function(x){x=x.iframe;
x.style.bottom="-1000px";x.style.position="fixed";x.style.right="-1000px";x.style.border="";x.style.height="";x.style.left="";x.style.top="";x.style.width="";x.style.zIndex="";x.setAttribute("aria-hidden","true");x.setAttribute("aria-modal","false")};
kv.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var Jji=function(x,G){kv.call(this,cjC[x],G);this.options=[];this.style=""};
_.m(Jji,kv);var G0j=function(x){x.style="youtube";return x},DtT=function(x,G){x.eventTarget.listen(rjj,G);
return x},KJC=function(x,G){x.eventTarget.listen(LIT,G);
return x},v5k=function(x,G){x.options.push(G);
return x},ztC=function(x){var G=[x.getOrigin()];
x.ancestorOrigins&&G.push.apply(G,_.B5(x.ancestorOrigins));var D=new _.w5(x.JSC$17294_win.location.href),K=x.startUrl?x.startUrl:x.options.includes("po")?"profile-picture/art":"profile-picture";G=DG(_.q_(x.getTargetOrigin(),K),"origin",G);x.startUrl&&_.Ny(G,"startPath",x.startUrl);x.authUser>0&&_.Ny(G,"authuser",x.authUser);x.pageId!==void 0&&_.Ny(G,"pageId",x.pageId);_.Ny(G,"hostId",x.hostId);x.jsMode!==void 0&&_.Ny(G,"jsmode",x.jsMode);x.options.length>0&&_.Ny(G,"opts",x.options.join(","));try{for(var z=
_.l(["utm_source","utm_medium","utm_campaign","utm_content"]),y=z.next();!y.done;y=z.next()){var c=y.value;_.qy(D,c)&&_.Ny(G,c,_.qy(D,c))}var W,e=(W=x.hl)!=null?W:_.qy(D,"hl");e!==void 0&&_.Ny(G,"hl",e)}catch(Q){if(!(Q instanceof URIError))throw Q;}x.colorScheme&&_.Ny(G,"theme",x.colorScheme);x.style&&_.Ny(G,"style",x.style);return G},aU4=function(x,G){x.mainChannel=_.qV({destination:x.JSC$17294_win,
iframe:G,origin:x.getTargetOrigin().toString(),channelName:"ow",onMessage:function(D){D=Qyx(D.data);if(G===x.iframe)switch(_.sk(D,1)){case 1:x.eventTarget.dispatchEvent(new H1T);E5x(x);break;case 2:x.eventTarget.dispatchEvent(new YHk(_.rP(D,4),_.rP(D,2),_.sk(D,5),_.hv(D,e_c,6)));break;case 0:var K;x.eventTarget.dispatchEvent(new mX8(_.rP(D,2),(K=_.sk(D,3))!=null?K:0));break;case 3:x.eventTarget.dispatchEvent(new H1T(!0));E5x(x,!1);break;case 4:x.eventTarget.dispatchEvent(new $Xc)}}})},t8O=function(x,
G,D){_.qV({destination:x.JSC$17294_win,
iframe:G,origin:_.wi(_.di(_.uv(new _.w5,x.scheme),x.domain),x.port).toString(),channelName:"owi",onMessage:function(K){G===x.iframe&&(D!==void 0&&D(),aU4(x,G),x.opened&&x.mainChannel.send(b18(V8f())),K.reply(),t8O(x,G))}})};
Jji.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?kv.prototype.preloadIframe.call(this,ztC(this).toString()):this.iframeLoadPromise};
Jji.prototype.openPicker=function(x){var G=this;return _.T(function(D){if(D.nextAddress==1)return G.startUrl=x?x:G.options.includes("po")?"profile-picture/art":"profile-picture",_.Z(D,h_C(G,ztC(G).toString()),2);if(G.mainChannel){var K=G.mainChannel,z=K.send;var y=V8f();y=_.Z_(y,2,G.startUrl);z.call(K,b18(y))}_.c5(D)})};var o1j=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(o1j,_.SX);_.a=o1j.prototype;_.a.getSize=function(){return cI(this,1)};
_.a.setSize=function(x){return _.$p(this,1,x)};
_.a.getWidth=function(){return cI(this,12)};
_.a.getHeight=function(){return cI(this,13)};
_.a.setCenterCrop=function(x){return _.aK(this,20,x)};
_.a.getHtml=function(){return _.br(this,4)};
_.a.getToken=function(){return _.QF(this,24)};
_.a.setToken=function(x){return _.Z_(this,24,x)};
_.a.getBackgroundColor=function(){return cI(this,87)};
_.a.hasBackgroundColor=function(){return _.mf(_.yW(this,87))!=null};
_.a.getStoryboardLevel=function(){return cI(this,109)};var PI=function(x){this.JSC$17302_value_=void 0;this.childNodes_={};if(x){var G=_.xY7(x);x=_.gi(x);for(var D=0;D<G.length;D++)this.set(G[D],x[D])}};
PI.prototype.set=function(x,G){yRc(this,x,G,!1)};
PI.prototype.add=function(x,G){yRc(this,x,G,!0)};
var yRc=function(x,G,D,K){for(var z=0;z<G.length;z++){var y=G.charAt(z);x.childNodes_[y]||(x.childNodes_[y]=new PI);x=x.childNodes_[y]}if(K&&x.JSC$17302_value_!==void 0)throw Error("ik`"+G);x.JSC$17302_value_=D},lUb=function(x,G){for(var D=0;D<G.length;D++)if(x=x.childNodes_[G.charAt(D)],!x)return;
return x};
PI.prototype.get=function(x){return(x=lUb(this,x))?x.JSC$17302_value_:void 0};
PI.prototype.getValues=function(){var x=[];cR8(this,x);return x};
var cR8=function(x,G){x.JSC$17302_value_!==void 0&&G.push(x.JSC$17302_value_);for(var D in x.childNodes_)cR8(x.childNodes_[D],G)};
PI.prototype.getKeys=function(x){var G=[];if(x){for(var D=this,K=0;K<x.length;K++){var z=x.charAt(K);if(!D.childNodes_[z])return[];D=D.childNodes_[z]}TvC(D,x,G)}else TvC(this,"",G);return G};
var TvC=function(x,G,D){x.JSC$17302_value_!==void 0&&D.push(G);for(var K in x.childNodes_)TvC(x.childNodes_[K],G+K,D)};
_.a=PI.prototype;_.a.containsKey=function(x){return this.get(x)!==void 0};
_.a.containsValue=function(x){if(this.JSC$17302_value_===x)return!0;for(var G in this.childNodes_)if(this.childNodes_[G].containsValue(x))return!0;return!1};
_.a.clear=function(){this.childNodes_={};this.JSC$17302_value_=void 0};
_.a.remove=function(x){for(var G=this,D=[],K=0;K<x.length;K++){var z=x.charAt(K);if(!G.childNodes_[z])throw Error("jk`"+x);D.push([G,z]);G=G.childNodes_[z]}x=G.JSC$17302_value_;for(delete G.JSC$17302_value_;D.length>0;)if(K=D.pop(),G=K[0],K=K[1],G.childNodes_[K].isEmpty())delete G.childNodes_[K];else break;return x};
_.a.clone=function(){return new PI(this)};
_.a.getCount=function(){return vrf(this.getValues())};
_.a.isEmpty=function(){return this.JSC$17302_value_===void 0&&_.YS.isEmpty(this.childNodes_)};var $iC=function(){if(!WJf){var x=WJf=new PI,G;for(G in eti)x.add(G,eti[G])}},WJf,EZ=function(x,G){this.types=x;
this.setters=G},eti={a:new EZ([3,
0],[function(x,G){_.aK(x,21,G)},
function(x,G){_.$p(x,56,G)}]),
al:new EZ([3],[function(x,G){_.aK(x,74,G)}]),
b:new EZ([3,0],[function(x,G){_.aK(x,23,G)},
function(x,G){_.$p(x,38,G)}]),
ba:new EZ([0],[function(x,G){_.$p(x,85,G)}]),
bc:new EZ([0],[function(x,G){_.$p(x,87,G)}]),
br:new EZ([0],[function(x,G){_.$p(x,86,G)}]),
c:new EZ([3,0],[function(x,G){_.aK(x,2,G)},
function(x,G){_.$p(x,39,G)}]),
cc:new EZ([3],[function(x,G){_.aK(x,51,G)}]),
ci:new EZ([3],[function(x,G){_.aK(x,32,G)}]),
ckm:new EZ([3],[function(x,G){_.aK(x,104,G)}]),
cp:new EZ([0],[function(x,G){_.$p(x,92,G)}]),
cr:new EZ([3],[function(x,G){_.aK(x,108,G)}]),
cv:new EZ([0],[function(x,G){_.$p(x,94,G)}]),
d:new EZ([3],[function(x,G){_.aK(x,3,G)}]),
dc:new EZ([5],[function(x,G){_.Z_(x,99,G)}]),
df:new EZ([3],[function(x,G){_.aK(x,80,G)}]),
dv:new EZ([3],[function(x,G){_.aK(x,90,G)}]),
e:new EZ([0],[function(x,G){_.$p(x,15,G)}]),
em:new EZ([0],[function(x,G){_.$p(x,107,G)}]),
f:new EZ([4],[function(x,G){_.Z_(x,16,G)}]),
fg:new EZ([3],[function(x,G){_.aK(x,34,G)}]),
fh:new EZ([3],[function(x,G){_.aK(x,30,G)}]),
fm:new EZ([3],[function(x,G){_.aK(x,84,G)}]),
fo:new EZ([2],[function(x,G){_.Gu(x,79,_.cY(G))}]),
ft:new EZ([3],[function(x,G){_.aK(x,50,G)}]),
fv:new EZ([3],[function(x,G){_.aK(x,31,G)}]),
g:new EZ([3],[function(x,G){_.aK(x,14,G)}]),
gce:new EZ([4],[function(x,G){_.Z_(x,112,G)}]),
gd:new EZ([3],[function(x,G){_.aK(x,83,G)}]),
gm:new EZ([3],[function(x,G){_.aK(x,105,G)}]),
h:new EZ([3,0],[function(x,G){_.aK(x,4,G)},
function(x,G){_.$p(x,13,G)}]),
i:new EZ([3],[function(x,G){_.aK(x,22,G)}]),
ic:new EZ([0],[function(x,G){_.$p(x,71,G)}]),
id:new EZ([3],[function(x,G){_.aK(x,70,G)}]),
il:new EZ([3],[function(x,G){_.aK(x,96,G)}]),
ip:new EZ([3],[function(x,G){_.aK(x,54,G)}]),
iv:new EZ([0],[function(x,G){_.bV(x,75,G)}]),
j:new EZ([1],[function(x,G){G=G==null?G:bTc(G);_.Gu(x,29,G)}]),
k:new EZ([3,0],[function(x,G){_.aK(x,17,G)},
function(x,G){_.$p(x,42,G)}]),
l:new EZ([0],[function(x,G){_.$p(x,44,G)}]),
lf:new EZ([3],[function(x,G){_.aK(x,65,G)}]),
lo:new EZ([3],[function(x,G){_.aK(x,97,G)}]),
m:new EZ([0],[function(x,G){_.$p(x,63,G)}]),
md:new EZ([3],[function(x,G){_.aK(x,91,G)}]),
mm:new EZ([4],[function(x,G){_.Z_(x,81,G)}]),
mo:new EZ([3],[function(x,G){_.aK(x,73,G)}]),
mv:new EZ([3],[function(x,G){_.aK(x,66,G)}]),
n:new EZ([3],[function(x,G){x.setCenterCrop(G)}]),
nc:new EZ([3],[function(x,G){_.aK(x,55,G)}]),
nd:new EZ([3],[function(x,G){_.aK(x,53,G)}]),
ng:new EZ([3],[function(x,G){_.aK(x,95,G)}]),
ngm:new EZ([3],[function(x,G){_.aK(x,106,G)}]),
no:new EZ([3],[function(x,G){_.aK(x,37,G)}]),
ns:new EZ([3],[function(x,G){_.aK(x,40,G)}]),
nt0:new EZ([4],[function(x,G){_.Z_(x,36,G)}]),
ntm:new EZ([3],[function(x,G){_.aK(x,114,G)}]),
nu:new EZ([3],[function(x,G){_.aK(x,46,G)}]),
nw:new EZ([3],[function(x,G){_.aK(x,48,G)}]),
o:new EZ([1,3],[function(x,G){G=G==null?G:bTc(G);_.Gu(x,7,G)},
function(x,G){_.aK(x,27,G)}]),
p:new EZ([3,0],[function(x,G){_.aK(x,19,G)},
function(x,G){_.$p(x,43,G)}]),
pa:new EZ([3],[function(x,G){_.aK(x,61,G)}]),
pc:new EZ([0],[function(x,G){_.$p(x,88,G)}]),
pd:new EZ([3],[function(x,G){_.aK(x,60,G)}]),
pf:new EZ([3],[function(x,G){_.aK(x,67,G)}]),
pg:new EZ([3],[function(x,G){_.aK(x,72,G)}]),
pi:new EZ([2],[function(x,G){_.Gu(x,76,_.cY(G))}]),
pp:new EZ([3],[function(x,G){_.aK(x,52,G)}]),
pt:new EZ([4],[function(x,G){_.Z_(x,111,G)}]),
q:new EZ([4],[function(x,G){_.Z_(x,28,G)}]),
r:new EZ([3,0],[function(x,G){_.aK(x,6,G)},
function(x,G){_.$p(x,26,G)}]),
ra:new EZ([3],[function(x,G){_.aK(x,103,G)}]),
rf:new EZ([3],[function(x,G){_.aK(x,100,G)}]),
rg:new EZ([3],[function(x,G){_.aK(x,59,G)}]),
rh:new EZ([3],[function(x,G){_.aK(x,49,G)}]),
rj:new EZ([3],[function(x,G){_.aK(x,57,G)}]),
ro:new EZ([2],[function(x,G){_.Gu(x,78,_.cY(G))}]),
rp:new EZ([3],[function(x,G){_.aK(x,58,G)}]),
rw:new EZ([3],[function(x,G){_.aK(x,35,G)}]),
rwa:new EZ([3],[function(x,G){_.aK(x,64,G)}]),
rwu:new EZ([3],[function(x,G){_.aK(x,41,G)}]),
s:new EZ([3,0],[function(x,G){_.aK(x,33,G)},
function(x,G){x.setSize(G)}]),
sb:new EZ([0],[function(x,G){_.$p(x,110,G)}]),
sc:new EZ([0],[function(x,G){_.$p(x,89,G)}]),
sg:new EZ([3],[function(x,G){_.aK(x,82,G)}]),
sl:new EZ([0],[function(x,G){_.$p(x,109,G)}]),
sm:new EZ([3],[function(x,G){_.aK(x,93,G)}]),
t:new EZ([4],[function(x,G){x.setToken(G)}]),
tm:new EZ([3],[function(x,G){_.aK(x,113,G)}]),
u:new EZ([3],[function(x,G){_.aK(x,18,G)}]),
ut:new EZ([3],[function(x,G){_.aK(x,45,G)}]),
v:new EZ([0],[function(x,G){_.$p(x,62,G)}]),
vb:new EZ([0],[function(x,G){_.bV(x,68,G)}]),
vf:new EZ([4],[function(x,G){_.Z_(x,102,G)}]),
vl:new EZ([0],[function(x,G){_.bV(x,69,G)}]),
vm:new EZ([3],[function(x,G){_.aK(x,98,G)}]),
w:new EZ([0],[function(x,G){_.$p(x,12,G)}]),
x:new EZ([0],[function(x,G){_.$p(x,9,G)}]),
y:new EZ([0],[function(x,G){_.$p(x,10,G)}]),
ya:new EZ([2],[function(x,G){_.Gu(x,77,_.cY(G))}]),
z:new EZ([0],[function(x,G){_.$p(x,11,G)}])};
$iC.prototype.parse=function(x){var G=new o1j,D=new o1j;if(x=="")x=!0;else{x=x.split("-");for(var K=!0,z=0;z<x.length;z++){var y=x[z];if(y.length==0)K=!1;else{var c=y,W=!1;var e=c;var Q=c.charAt(0);Q!=Q.toLowerCase()&&(W=!0,e=c.charAt(0).toLowerCase()+c.substring(1));var p=WJf;for(Q=1;Q<=e.length;++Q){var V=p,L=e.substring(0,Q);if(L.length==0?V.isEmpty():!lUb(V,L))break}e=Q==1?null:(e=p.get(e.substring(0,Q-1)))?{option:c.substring(0,Q-1),value:c.substring(Q-1),signed:W,attributes:e}:null;if(e){c=
[];W=[];Q=!1;for(p=0;p<e.attributes.types.length;p++){V=e.attributes.types[p];var r=e.value;L=z;if(e.signed&&V==1)for(var H=r.length;H<12&&L<x.length-1;)r+="-"+x[L+1],H=r.length,++L;else if(V==2)for(;L<x.length-1&&x[L+1].match(/^[\d\.]/);)r+="-"+x[L+1],++L;H=e.attributes.setters[p];r=K5x(this,V)(e.option,r,G,D,H);if(r===null){Q=!0;z=L;break}else c.push(V),W.push(r)}if(!Q)for(e=0;e<W.length;e++)p=c[e],r=W[e],zyc(this,p)(y,r);K=K&&Q}else K=!1}}x=K}return new azT(G,D,x)};
var h8=function(x,G,D,K,z,y){z(D,G);x=x.charAt(0);y=y(x==x.toUpperCase());z(K,y)};
_.a=$iC.prototype;_.a.parseAndSetIntOption_=function(x,G,D,K,z){if(G=="")return 0;isFinite(G)&&(G=String(G));G=typeof G==="string"?/^\s*-?0x/i.test(G)?parseInt(G,16):parseInt(G,10):NaN;if(isNaN(G))return 1;h8(x,G,D,K,z,Number);return null};
_.a.logIntParseError_=function(){};
_.a.parseAndSetFloatOption_=function(x,G,D,K,z){if(G=="")return 0;var y=Number(G);G=y==0&&_.y3(G)?NaN:y;if(isNaN(G))return 1;h8(x,G,D,K,z,Number);return null};
_.a.logFloatParseError_=function(){};
_.a.parseAndSetBoolOption_=function(x,G,D,K,z){if(G!="")return 2;h8(x,!0,D,K,z,Boolean);return null};
_.a.logBoolParseError_=function(){};
_.a.parseAndSetStringOption_=function(x,G,D,K,z){if(G=="")return 0;h8(x,G,D,K,z,function(y){return y?"1":""});
return null};
_.a.logStringParseError_=function(){};
_.a.parseAndSetUint64Base64Option_=function(x,G,D,K,z){if(G=="")return 0;h8(x,G,D,K,z,function(y){return y?1:0});
return null};
var K5x=function(x,G){switch(G){case 0:return(0,_.mW)(x.parseAndSetIntOption_,x);case 2:return(0,_.mW)(x.parseAndSetFloatOption_,x);case 3:return(0,_.mW)(x.parseAndSetBoolOption_,x);case 4:return(0,_.mW)(x.parseAndSetStringOption_,x);case 1:return(0,_.mW)(x.parseAndSetUint64Base64Option_,x);default:return function(){}}},zyc=function(x,G){switch(G){case 0:return(0,_.mW)(x.logIntParseError_,x);
case 2:return(0,_.mW)(x.logFloatParseError_,x);case 3:return(0,_.mW)(x.logBoolParseError_,x);case 4:case 1:return(0,_.mW)(x.logStringParseError_,x);default:return function(){}}},azT=function(x,G,D){this.valueProto_=x;
this.signatureFlagProto_=G;this.JSC$17314_valid_=D};
azT.prototype.isValid=function(){return this.JSC$17314_valid_};var s4f=function(x){this.JSC$17315_parser_=null;this.JSC$17315_components_=[];this.JSC$17315_parsedOptions_=null;oh8(this,x)},y3b=function(x){x.JSC$17315_parser_==null&&(x.JSC$17315_parser_=new $iC);
return x.JSC$17315_parser_},oh8=function(x,G){x.JSC$17315_parsedOptions_=G?typeof G==="string"?y3b(x).parse(G):G:y3b(x).parse("")},xw=function(x,G){return x==G?!1:!0};
_.a=s4f.prototype;_.a.JSC$17317_setCrop=function(x){x=x||void 0;var G=this.JSC$17315_parsedOptions_,D=G.valueProto_;xw(x,_.br(D,2),_.br(G.signatureFlagProto_,2))&&_.aK(D,2,x);return this};
_.a.JSC$17317_setCircleCrop=function(x){x=x||void 0;var G=this.JSC$17315_parsedOptions_,D=G.valueProto_;xw(x,lR(D,51),lR(G.signatureFlagProto_,51))&&_.aK(D,51,x);return this};
_.a.JSC$17317_setImageCrop=function(x){x=x||void 0;var G=this.JSC$17315_parsedOptions_,D=G.valueProto_;xw(x,lR(D,32),lR(G.signatureFlagProto_,32))&&_.aK(D,32,x);return this};
_.a.JSC$17317_setHeight=function(x){var G=this.JSC$17315_parsedOptions_,D=G.valueProto_;xw(x,D.getHeight(),G.signatureFlagProto_.getHeight())&&_.$p(D,13,x);return this};
_.a.setCenterCrop=function(x){x=x||void 0;var G=this.JSC$17315_parsedOptions_,D=G.valueProto_;xw(x,_.br(D,20),_.br(G.signatureFlagProto_,20))&&D.setCenterCrop(x);return this};
_.a.JSC$17317_setSmartCrop=function(x){x=x||void 0;var G=this.JSC$17315_parsedOptions_,D=G.valueProto_;xw(x,_.br(D,19),_.br(G.signatureFlagProto_,19))&&_.aK(D,19,x);return this};
_.a.JSC$17317_setPad=function(x){x=x||void 0;var G=this.JSC$17315_parsedOptions_,D=G.valueProto_;xw(x,lR(D,60),lR(G.signatureFlagProto_,60))&&_.aK(D,60,x);return this};
_.a.JSC$17317_setSmartCropUseFace=function(x){x=x||void 0;var G=this.JSC$17315_parsedOptions_,D=G.valueProto_;xw(x,_.br(D,67),_.br(G.signatureFlagProto_,67))&&_.aK(D,67,x);return this};
_.a.JSC$17317_setSmartCropNoClip=function(x){x=x||void 0;var G=this.JSC$17315_parsedOptions_,D=G.valueProto_;xw(x,_.br(D,52),_.br(G.signatureFlagProto_,52))&&_.aK(D,52,x);return this};
_.a.setSize=function(x){var G=this.JSC$17315_parsedOptions_,D=G.valueProto_;xw(x,D.getSize(),G.signatureFlagProto_.getSize())&&D.setSize(x);return this};
_.a.setToken=function(x){x=x||void 0;var G=this.JSC$17315_parsedOptions_,D=G.valueProto_;xw(x,D.getToken(),G.signatureFlagProto_.getToken())&&D.setToken(x);return this};
_.a.JSC$17317_setWidth=function(x){var G=this.JSC$17315_parsedOptions_,D=G.valueProto_;xw(x,D.getWidth(),G.signatureFlagProto_.getWidth())&&_.$p(D,12,x);return this};
_.a.clearOptions=function(){oh8(this,"");return this};
_.a.build=function(){this.JSC$17315_components_.length=0;var x=this.JSC$17315_parsedOptions_,G=x.valueProto_;x=x.signatureFlagProto_;G9(this,"s",G.getSize(),x.getSize());G9(this,"w",G.getWidth(),x.getWidth());D1(this,"c",_.br(G,2),_.br(x,2));D1(this,"d",_.br(G,3),_.br(x,3));G9(this,"h",G.getHeight(),x.getHeight());D1(this,"s",lR(G,33),lR(x,33));D1(this,"h",G.getHtml(),x.getHtml());D1(this,"p",_.br(G,19),_.br(x,19));D1(this,"pp",_.br(G,52),_.br(x,52));D1(this,"pf",_.br(G,67),_.br(x,67));D1(this,"n",
_.br(G,20),_.br(x,20));G9(this,"r",cI(G,26),cI(x,26));D1(this,"r",_.br(G,6),_.br(x,6));D1(this,"o",lR(G,27),lR(x,27));var D=_.VW(G,7,_.oX);K0(this,"o",D,_.VW(x,7,_.oX));D=_.VW(G,29,_.oX);K0(this,"j",D,_.VW(x,29,_.oX));G9(this,"x",cI(G,9),cI(x,9));G9(this,"y",cI(G,10),cI(x,10));G9(this,"z",cI(G,11),cI(x,11));D1(this,"g",_.br(G,14),_.br(x,14));G9(this,"e",cI(G,15),cI(x,15));K0(this,"f",_.QF(G,16),_.QF(x,16));D1(this,"k",lR(G,17),lR(x,17));D1(this,"u",lR(G,18),!0);D1(this,"ut",lR(G,45),!0);D1(this,"i",
lR(G,22),!0);D1(this,"a",lR(G,21),lR(x,21));D1(this,"b",_.br(G,23),_.br(x,23));G9(this,"b",cI(G,38),cI(x,38));G9(this,"c",cI(G,39),cI(x,39),16,8);K0(this,"q",_.QF(G,28),_.QF(x,28));D1(this,"fh",lR(G,30),lR(x,30));D1(this,"fv",lR(G,31),lR(x,31));D1(this,"fg",_.br(G,34),_.br(x,34));D1(this,"ci",lR(G,32),lR(x,32));K0(this,"t",G.getToken(),x.getToken());K0(this,"nt0",_.QF(G,36),_.QF(x,36));D1(this,"rw",_.br(G,35),_.br(x,35));D1(this,"rwu",_.br(G,41),_.br(x,41));D1(this,"rwa",_.br(G,64),_.br(x,64));D1(this,
"nw",_.br(G,48),_.br(x,48));D1(this,"rh",_.br(G,49),_.br(x,49));D1(this,"no",_.br(G,37),_.br(x,37));D1(this,"ns",lR(G,40),lR(x,40));G9(this,"k",cI(G,42),cI(x,42));G9(this,"p",cI(G,43),cI(x,43));G9(this,"l",cI(G,44),cI(x,44));G9(this,"v",cI(G,62),cI(x,62));D1(this,"nu",lR(G,46),lR(x,46));D1(this,"ft",lR(G,50),lR(x,50));D1(this,"cc",lR(G,51),lR(x,51));D1(this,"nd",lR(G,53),lR(x,53));D1(this,"ip",lR(G,54),lR(x,54));D1(this,"nc",lR(G,55),lR(x,55));G9(this,"a",cI(G,56),cI(x,56));D1(this,"rj",lR(G,57),
lR(x,57));D1(this,"rp",lR(G,58),lR(x,58));D1(this,"rg",lR(G,59),lR(x,59));D1(this,"pd",lR(G,60),lR(x,60));D1(this,"pa",lR(G,61),lR(x,61));G9(this,"m",cI(G,63),cI(x,63));G9(this,"vb",TN(G,68),TN(x,68));G9(this,"vl",TN(G,69),TN(x,69));D1(this,"lf",lR(G,65),lR(x,65));D1(this,"mv",lR(G,66),lR(x,66));D1(this,"id",lR(G,70),lR(x,70));G9(this,"ic",cI(G,71),!0);D1(this,"pg",_.br(G,72),_.br(x,72));D1(this,"mo",lR(G,73),lR(x,73));D1(this,"al",lR(G,74),lR(x,74));G9(this,"iv",TN(G,75),TN(x,75));G9(this,"pi",WI(G,
76),WI(x,76));G9(this,"ya",WI(G,77),WI(x,77));G9(this,"ro",WI(G,78),WI(x,78));G9(this,"fo",WI(G,79),WI(x,79));D1(this,"df",lR(G,80),lR(x,80));K0(this,"mm",_.QF(G,81),_.QF(x,81));D1(this,"sg",lR(G,82),lR(x,82));D1(this,"gd",lR(G,83),lR(x,83));D1(this,"fm",lR(G,84),lR(x,84));G9(this,"ba",cI(G,85),cI(x,85));G9(this,"br",cI(G,86),cI(x,86));G9(this,"bc",G.getBackgroundColor(),x.getBackgroundColor(),16,8);G9(this,"pc",cI(G,88),cI(x,88),16,8);G9(this,"sc",cI(G,89),cI(x,89),16,8);D1(this,"dv",lR(G,90),lR(x,
90));D1(this,"md",lR(G,91),lR(x,91));G9(this,"cp",cI(G,92),cI(x,92));D1(this,"sm",lR(G,93),lR(x,93));G9(this,"cv",cI(G,94),cI(x,94));D1(this,"ng",lR(G,95),lR(x,95));D1(this,"il",lR(G,96),lR(x,96));D1(this,"lo",lR(G,97),lR(x,97));D1(this,"vm",lR(G,98),lR(x,98));K0(this,"dc",_.QF(G,99),_.QF(x,99));D1(this,"rf",lR(G,100),lR(x,100));K0(this,"vf",_.QF(G,102),_.QF(x,102));D1(this,"ra",_.br(G,103),_.br(x,103));D1(this,"ckm",lR(G,104),lR(x,104));D1(this,"gm",lR(G,105),lR(x,105));D1(this,"ngm",lR(G,106),lR(x,
106));G9(this,"em",cI(G,107),cI(x,107));D1(this,"cr",lR(G,108),lR(x,108));G9(this,"sl",G.getStoryboardLevel(),x.getStoryboardLevel());G9(this,"sb",cI(G,110),cI(x,110));K0(this,"pt",_.QF(G,111),_.QF(x,111));K0(this,"gce",_.QF(G,112),_.QF(x,112));D1(this,"tm",lR(G,113),lR(x,113));D1(this,"ntm",lR(G,114),lR(x,114));return this.JSC$17315_components_.join("-")};
var G9=function(x,G,D,K,z,y){if(D!=null){var c=z==void 0||z!=10&&z!=16?10:z;D=Number(D).toString(c);z=new Sof;z.append(c==16?"0x":"");c=z.append;y==void 0?y="":(y-=D.length,y=y<=0?"":(0,_.GL$)("0",y));c.call(z,y);z.append(D);lz8(x,G,z.toString(),!!Number(K))}},D1=function(x,G,D,K){D&&lz8(x,G,"",!!K)},K0=function(x,G,D,K){D&&lz8(x,G,String(D),!!Number(K))},lz8=function(x,G,D,K){K&&(G=G.charAt(0).toUpperCase()+G.substring(1));
x.JSC$17315_components_.push(G+D)};_.tR(bs,s4f);_.a=bs.prototype;_.a.JSC$17317_setCrop=function(x){x&&z9(this);return bs.superClass_.JSC$17317_setCrop.call(this,x)};
_.a.JSC$17317_setHeight=function(x){x=x==null||x<0?void 0:x;x!=null&&this.setSize();return bs.superClass_.JSC$17317_setHeight.call(this,x)};
_.a.JSC$17317_setImageCrop=function(x){x&&z9(this);return bs.superClass_.JSC$17317_setImageCrop.call(this,x)};
_.a.JSC$17317_setCircleCrop=function(x){x&&z9(this);return bs.superClass_.JSC$17317_setCircleCrop.call(this,x)};
_.a.setSize=function(x){_.G7(x)&&(x=Math.max(x.width,x.height));x=x==null||x<0?void 0:x;x!=null&&(this.JSC$17317_setWidth(),this.JSC$17317_setHeight());return bs.superClass_.setSize.call(this,x)};
_.a.JSC$17317_setSmartCrop=function(x){x&&z9(this);return bs.superClass_.JSC$17317_setSmartCrop.call(this,x)};
_.a.JSC$17317_setSmartCropNoClip=function(x){x&&z9(this);return bs.superClass_.JSC$17317_setSmartCropNoClip.call(this,x)};
_.a.JSC$17317_setSmartCropUseFace=function(x){x&&z9(this);return bs.superClass_.JSC$17317_setSmartCropUseFace.call(this,x)};
_.a.setCenterCrop=function(x){x&&z9(this);return bs.superClass_.setCenterCrop.call(this,x)};
_.a.JSC$17317_setPad=function(x){x&&z9(this);return bs.superClass_.JSC$17317_setPad.call(this,x)};
_.a.JSC$17317_setWidth=function(x){x=x==null||x<0?void 0:x;x!=null&&this.setSize();return bs.superClass_.JSC$17317_setWidth.call(this,x)};
var c3O=function(x){x.clearOptions();var G=x.JSC$17315_parsedOptions_,D=G.valueProto_;xw(!0,_.br(D,3),_.br(G.signatureFlagProto_,3))&&_.aK(D,3,!0);return x},z9=function(x){x.setCenterCrop();
x.JSC$17317_setCircleCrop();x.JSC$17317_setCrop();x.JSC$17317_setImageCrop();x.JSC$17317_setPad();x.JSC$17317_setSmartCrop();x.JSC$17317_setSmartCropNoClip();x.JSC$17317_setSmartCropUseFace()};
bs.prototype.build=function(){var x=this.JSC$17315_parsedOptions_.valueProto_;lR(x,18)||lR(x,45)?x.getSize()||this.setSize(0):(x=this.JSC$17315_parsedOptions_.valueProto_,x.getSize()||x.getWidth()||x.getHeight()||(this.setSize(),this.JSC$17317_setHeight(),this.JSC$17317_setWidth(),z9(this)));return bs.superClass_.build.call(this)};var Tii=/^[^\/]*\/\//,av=function(x,G){G=G===void 0?!1:G;this.original_=x;this.originalPrefix_="";(x=this.original_.match(Tii))&&x[0]?(this.originalPrefix_=x[0],x=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):x="http://"+this.original_;this.uri_=_.wM(x,!0);this.isFreeformUrl_=G;this.JSC$17321_valid_=!0;this.obfuscated_=!1},W5c=function(x,G){x.JSC$17323_pathPrefix_=x.JSC$17323_pathPrefix_?x.JSC$17323_pathPrefix_+("/"+G):G},ov=function(x){if(x.JSC$17323_components_==
void 0){var G=x.uri_.getPath().substring(1);
x.JSC$17323_pathPrefix_=null;if(x.isFreeformUrl_){x.JSC$17323_components_=[];if((G.match(/=/g)||[]).length>1)return x.JSC$17321_valid_=!1,x.JSC$17323_components_;var D=G.indexOf("=");D!=-1?(x.JSC$17323_components_.push(G.substr(0,D)),x.JSC$17323_components_.push(G.substr(D+1))):x.JSC$17323_components_.push(G);return x.JSC$17323_components_}x.JSC$17323_components_=G.split("/");G=x.JSC$17323_components_.length;G>2&&x.JSC$17323_components_[0]=="u"&&(W5c(x,x.JSC$17323_components_[0]+"/"+x.JSC$17323_components_[1]),
x.JSC$17323_components_.shift(),x.JSC$17323_components_.shift(),G-=2);if(G==0||G==4||G>7)return x.JSC$17321_valid_=!1,x.JSC$17323_components_;if(G==2)W5c(x,x.JSC$17323_components_[0]);else if(x.JSC$17323_components_[0]=="image")W5c(x,x.JSC$17323_components_[0]);else if(G==7||G==3)return x.JSC$17321_valid_=!1,x.JSC$17323_components_;if(G<=3){x.obfuscated_=!0;G==3&&(W5c(x,x.JSC$17323_components_[1]),x.JSC$17323_components_.shift(),--G);--G;D=x.JSC$17323_components_[G];var K=D.indexOf("=");K!=-1&&(x.JSC$17323_components_[G]=
D.substr(0,K),x.JSC$17323_components_.push(D.substr(K+1)))}}return x.JSC$17323_components_};
av.prototype.isValid=function(){ov(this);return this.JSC$17321_valid_};
av.prototype.isObfuscated=function(){ov(this);return this.obfuscated_};
var eyj=function(x){ov(x);return x.isFreeformUrl_},y1=function(x){ov(x);
x.JSC$17323_pathPrefix_==void 0&&(x.JSC$17323_pathPrefix_=null);return x.JSC$17323_pathPrefix_},Zw8=function(x){switch(ov(x).length){case 7:return!0;
case 6:return y1(x)==null;case 5:return!1;case 3:return!0;case 2:return y1(x)==null;case 1:return!1;default:return!1}},l3=function(x,G){if(eyj(x))a:{switch(G){case 7:G=0;
break;case 4:if(!Zw8(x)){x=null;break a}G=1;break;default:x=null;break a}x=ov(x)[G]}else if(x.isObfuscated())a:{var D=y1(x)!=null?1:0;switch(G){case 6:G=D;break;case 4:if(!Zw8(x)){x=null;break a}G=1+D;break;default:x=null;break a}x=ov(x)[G]}else a:{D=y1(x)!=null?1:0;switch(G){case 0:G=D;break;case 1:G=1+D;break;case 2:G=2+D;break;case 3:G=3+D;break;case 4:if(!Zw8(x)){x=null;break a}G=4+D;break;case 5:G=Zw8(x)?1:0;G=4+D+G;break;default:x=null;break a}x=ov(x)[G]}return x};
av.prototype.getOptions=function(){this.options_==void 0&&(this.options_=l3(this,4));return this.options_};var HEj=function(){};
HEj.prototype.parse=function(x,G){return new Y9f(x,G===void 0?!1:G)};
var Y9f=function(x,G){av.call(this,x,G===void 0?!1:G)};
_.m(Y9f,av);_.tR(LV,bs);var mic;LV.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
LV.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var x=LV.superClass_.build.call(this),G=[];y1(this.parsedImageUrl_)!=null&&G.push(y1(this.parsedImageUrl_));var D=eyj(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var K=this.parsedImageUrl_;K.obfuscatedData_==void 0&&(K.obfuscatedData_=l3(K,6));G.push(K.obfuscatedData_+(x?"="+x:""))}else if(D){K=G.push;var z=this.parsedImageUrl_;z.freeformUrlPath_===void 0&&(z.freeformUrlPath_=l3(z,
7));K.call(G,z.freeformUrlPath_);x&&G.push(x)}else K=G.push,z=this.parsedImageUrl_,z.obfuscatedGaiaId_==void 0&&(z.obfuscatedGaiaId_=l3(z,0)),K.call(G,z.obfuscatedGaiaId_),K=G.push,z=this.parsedImageUrl_,z.photoId_==void 0&&(z.photoId_=l3(z,1)),K.call(G,z.photoId_),K=G.push,z=this.parsedImageUrl_,z.imageVersion_==void 0&&(z.imageVersion_=l3(z,2)),K.call(G,z.imageVersion_),K=G.push,z=this.parsedImageUrl_,z.signature_==void 0&&(z.signature_=l3(z,3)),K.call(G,z.signature_),x&&G.push(x),x=G.push,K=this.parsedImageUrl_,
K.filename_==void 0&&(K.filename_=l3(K,5)),x.call(G,K.filename_);G=D?G.join("="):G.join("/");G=_.wM(this.protocolPrefix_+this.JSC$17329_domain_+"/"+G+(this.JSC$17329_query_?"?"+this.JSC$17329_query_:"")).toString();G.startsWith("%3a//")&&(G=G.replace("%3a//","://"));return G};var MHY=_.gv(["viewBox"]),QY4=_.gv(["width"]),pAf=_.gv(["height"]),VHC=_.gv(["fill"]),bwT=_.gv(["id"]),L5f=_.gv(["x"]),Bib=_.gv(["y"]);FvC.prototype.getLength=function(){return this.parsedData.length};
FvC.prototype.write=function(x){for(var G=0,D=this.parsedData.length;G<D;G++)x.put(this.parsedData[G],8)};
var Uic=function(x,G){var D=new FvC(G);x.dataList.push(D);D=x.errorCorrectLevel;var K=1,z=encodeURI(G).toString().replace(/%[0-9a-fA-F]{2}/g,"a");G=z.length+(z.length!=G?3:0);z=0;for(var y=cN.length;z<=y;z++){var c=0;switch(D){case 1:c=cN[z][0];break;case 0:c=cN[z][1];break;case 3:c=cN[z][2];break;case 2:c=cN[z][3]}if(G<=c)break;else K++}if(K>cN.length)throw Error("sk");x.typeNumber=K;x.dataCache=null};
CVY.prototype.isDark=function(x,G){if(x<0||this.moduleCount<=x||G<0||this.moduleCount<=G)throw Error("kk`"+x+"`"+G);return this.modules[x][G]};
for(var ReO=function(x,G,D){x.moduleCount=x.typeNumber*4+17;x.modules=Array(x.moduleCount);for(var K=0;K<x.moduleCount;K++){x.modules[K]=Array(x.moduleCount);for(var z=0;z<x.moduleCount;z++)x.modules[K][z]=null}r3Y(x,0,0);r3Y(x,x.moduleCount-7,0);r3Y(x,0,x.moduleCount-7);K=sYx[x.typeNumber-1];for(z=0;z<K.length;z++)for(var y=0;y<K.length;y++){var c=K[z],W=K[y];if(x.modules[c][W]==null)for(var e=-2;e<=2;e++)for(var Q=-2;Q<=2;Q++)x.modules[c+e][W+Q]=e==-2||e==2||Q==-2||Q==2||e==0&&Q==0?!0:!1}for(K=
8;K<x.moduleCount-8;K++)x.modules[K][6]==null&&(x.modules[K][6]=K%2==0);for(K=8;K<x.moduleCount-8;K++)x.modules[6][K]==null&&(x.modules[6][K]=K%2==0);K=x.errorCorrectLevel<<3|D;for(z=K<<10;T9(z)-T9(1335)>=0;)z^=1335<<T9(z)-T9(1335);K=(K<<10|z)^21522;for(z=0;z<15;z++)y=!G&&(K>>z&1)==1,z<6?x.modules[z][8]=y:z<8?x.modules[z+1][8]=y:x.modules[x.moduleCount-15+z][8]=y;for(z=0;z<15;z++)y=!G&&(K>>z&1)==1,z<8?x.modules[8][x.moduleCount-z-1]=y:z<9?x.modules[8][15-z-1+1]=y:x.modules[8][15-z-1]=y;x.modules[x.moduleCount-
8][8]=!G;if(x.typeNumber>=7){K=x.typeNumber;for(z=K<<12;T9(z)-T9(7973)>=0;)z^=7973<<T9(z)-T9(7973);K=K<<12|z;for(z=0;z<18;z++)y=!G&&(K>>z&1)==1,x.modules[Math.floor(z/3)][z%3+x.moduleCount-8-3]=y;for(z=0;z<18;z++)y=!G&&(K>>z&1)==1,x.modules[z%3+x.moduleCount-8-3][Math.floor(z/3)]=y}if(x.dataCache==null){z=x.typeNumber;y=x.dataList;G=x.errorCorrectLevel;K=YRc(z,G);if(K==void 0)throw Error("rk`"+z+"`"+G);c=K.length/3;G=[];for(W=0;W<c;W++){e=K[W*3];Q=K[W*3+1];for(var p=K[W*3+2],V=0;V<e;V++)G.push(new Igc(Q,
p))}K=new j4Y;for(c=0;c<y.length;c++)W=y[c],K.put(W.mode,4),K.put(W.getLength(),m_6(W.mode,z)),W.write(K);for(c=z=0;c<G.length;c++)z+=G[c].dataCount;if(K.length>z*8)throw Error("lk`"+K.length+"`"+z*8);for(K.length+4<=z*8&&K.put(0,4);K.length%8!=0;)Hw8(K,!1);for(;!(K.length>=z*8);){K.put(236,8);if(K.length>=z*8)break;K.put(17,8)}y=z=Q=0;c=Array(G.length);W=Array(G.length);for(e=0;e<G.length;e++){V=G[e].dataCount;var L=G[e].totalCount-V;z=Math.max(z,V);y=Math.max(y,L);c[e]=Array(V);for(p=0;p<c[e].length;p++)c[e][p]=
255&K.buffer[p+Q];Q+=V;p=L;V=new Bz([1],0);for(L=0;L<p;L++)V=V.multiply(new Bz([1,$_4(L)],0));p=V;V=(new Bz(c[e],p.getLength()-1)).mod(p);W[e]=Array(p.getLength()-1);for(p=0;p<W[e].length;p++)L=p+V.getLength()-W[e].length,W[e][p]=L>=0?V.get(L):0}for(p=K=0;p<G.length;p++)K+=G[p].totalCount;K=Array(K);for(p=Q=0;p<z;p++)for(e=0;e<G.length;e++)p<c[e].length&&(K[Q++]=c[e][p]);for(p=0;p<y;p++)for(e=0;e<G.length;e++)p<W[e].length&&(K[Q++]=W[e][p]);x.dataCache=K}G=x.dataCache;K=-1;z=x.moduleCount-1;y=7;c=
0;for(W=x.moduleCount-1;W>0;W-=2)for(W==6&&W--;;){for(e=0;e<2;e++)x.modules[z][W-e]==null&&(Q=!1,c<G.length&&(Q=(G[c]>>>y&1)==1),F56(D,z,W-e)&&(Q=!Q),x.modules[z][W-e]=Q,y--,y==-1&&(c++,y=7));z+=K;if(z<0||x.moduleCount<=z){z-=K;K=-K;break}}},r3Y=function(x,G,D){for(var K=-1;K<=7;K++)if(!(G+K<=-1||x.moduleCount<=G+K))for(var z=-1;z<=7;z++)D+z<=-1||x.moduleCount<=D+z||(x.modules[G+K][D+z]=0<=K&&K<=6&&(z==0||z==6)||0<=z&&z<=6&&(K==0||K==6)||2<=K&&K<=4&&2<=z&&z<=4?!0:!1)},S98=function(x){for(var G=0,
D=0,K=0;K<8;K++){ReO(x,!0,K);
var z=x;for(var y=z.moduleCount,c=0,W=0;W<y;W++)for(var e=0;e<y;e++){for(var Q=0,p=z.isDark(W,e),V=-1;V<=1;V++)if(!(W+V<0||y<=W+V))for(var L=-1;L<=1;L++)e+L<0||y<=e+L||(V!=0||L!=0)&&p==z.isDark(W+V,e+L)&&Q++;Q>5&&(c+=3+Q-5)}for(W=0;W<y-1;W++)for(e=0;e<y-1;e++)if(Q=0,z.isDark(W,e)&&Q++,z.isDark(W+1,e)&&Q++,z.isDark(W,e+1)&&Q++,z.isDark(W+1,e+1)&&Q++,Q==0||Q==4)c+=3;for(W=0;W<y;W++)for(e=0;e<y-6;e++)z.isDark(W,e)&&!z.isDark(W,e+1)&&z.isDark(W,e+2)&&z.isDark(W,e+3)&&z.isDark(W,e+4)&&!z.isDark(W,e+5)&&
z.isDark(W,e+6)&&(c+=40);for(e=0;e<y;e++)for(W=0;W<y-6;W++)z.isDark(W,e)&&!z.isDark(W+1,e)&&z.isDark(W+2,e)&&z.isDark(W+3,e)&&z.isDark(W+4,e)&&!z.isDark(W+5,e)&&z.isDark(W+6,e)&&(c+=40);for(e=Q=0;e<y;e++)for(W=0;W<y;W++)z.isDark(W,e)&&Q++;z=c+=Math.abs(100*Q/y/y-50)/5*10;if(K==0||G>z)G=z,D=K}return D},sYx=[[],
[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]],T9=function(x){for(var G=0;x!=0;)G++,x>>>=1;return G},F56=function(x,G,D){switch(x){case 0:return(G+D)%2==0;
case 1:return G%2==0;case 2:return D%3==0;case 3:return(G+D)%3==0;case 4:return(Math.floor(G/2)+Math.floor(D/3))%2==0;case 5:return G*D%2+G*D%3==0;case 6:return(G*D%2+G*D%3)%2==0;case 7:return(G*D%3+(G+D)%2)%2==0;default:throw Error("mk`"+x);}},m_6=function(x,G){if(1<=G&&G<10)switch(x){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("nk`"+x);}else if(G<27)switch(x){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("nk`"+x);}else if(G<41)switch(x){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("nk`"+x);}else throw Error("ok`"+G);},WN=function(x){if(x<1)throw Error("pk`"+x);
return CvC[x]},$_4=function(x){for(;x<0;)x+=255;
for(;x>=256;)x-=255;return e0[x]},e0=Array(256),CvC=Array(256),Iz8=0;Iz8<8;Iz8++)e0[Iz8]=1<<Iz8;
for(var Z1=8;Z1<256;Z1++)e0[Z1]=e0[Z1-4]^e0[Z1-5]^e0[Z1-6]^e0[Z1-8];for(var jYc=0;jYc<255;jYc++)CvC[e0[jYc]]=jYc;Bz.prototype.get=function(x){return this.num[x]};
Bz.prototype.getLength=function(){return this.num.length};
Bz.prototype.multiply=function(x){for(var G=Array(this.getLength()+x.getLength()-1),D=0;D<this.getLength();D++)for(var K=0;K<x.getLength();K++)G[D+K]^=$_4(WN(this.get(D))+WN(x.get(K)));return new Bz(G,0)};
Bz.prototype.mod=function(x){if(this.getLength()-x.getLength()<0)return this;for(var G=WN(this.get(0))-WN(x.get(0)),D=Array(this.getLength()),K=0;K<this.getLength();K++)D[K]=this.get(K);for(K=0;K<x.getLength();K++)D[K]^=$_4(WN(x.get(K))+G);return(new Bz(D,0)).mod(x)};
var Owb=[[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]],YRc=function(x,G){switch(G){case 1:return Owb[(x-1)*4];case 0:return Owb[(x-1)*4+1];case 3:return Owb[(x-1)*4+2];case 2:return Owb[(x-1)*4+3]}};
j4Y.prototype.get=function(x){return(this.buffer[Math.floor(x/8)]>>>7-x%8&1)==1};
j4Y.prototype.put=function(x,G){for(var D=0;D<G;D++)Hw8(this,(x>>>G-D-1&1)==1)};
var Hw8=function(x,G){var D=Math.floor(x.length/8);x.buffer.length<=D&&x.buffer.push(0);G&&(x.buffer[D]|=128>>>x.length%8);x.length++},cN=[[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]],A2b=function(){var x=function(G,D){this.JSC$17349__el=G;this.JSC$17349__htOption=D};
x.prototype.draw=function(G){function D(p,V){p=document.createElementNS("http://www.w3.org/2000/svg",p);for(var L in V)V.hasOwnProperty(L)&&(L==="href"?_.XCf(p,V[L]):_.iH([_.Es(MHY),_.Es(QY4),_.Es(pAf),_.Es(VHC),_.Es(bwT),_.Es(L5f),_.Es(Bib)],p,L,V[L]));return p}
var K=this.JSC$17349__htOption,z=this.JSC$17349__el,y=G.moduleCount;this.clear();var c=D("svg",{viewBox:"0 0 "+String(y)+" "+String(y),width:"100%",height:"100%",fill:K.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});z.appendChild(c);c.appendChild(D("rect",{fill:K.colorLight,width:"100%",height:"100%"}));c.appendChild(D("rect",{fill:K.colorDark,width:"1",height:"1",id:"template"}));for(var W=0;W<y;W++)for(var e=0;e<y;e++)if(G.isDark(W,e)){var Q=D("use",{x:String(W),y:String(e),href:"#template"});
c.appendChild(Q)}};
x.prototype.clear=function(){for(;this.JSC$17349__el.hasChildNodes();)this.JSC$17349__el.removeChild(this.JSC$17349__el.lastChild)};
return x}(),Xwx=document.documentElement.tagName.toLowerCase()==="svg"?A2b:typeof CanvasRenderingContext2D!="undefined"?function(){var x=function(G,D){this._bIsPainted=!1;
OEb();this.JSC$17349__htOption=D;this._elCanvas=document.createElement("canvas");this._elCanvas.width=D.width;this._elCanvas.height=D.height;G.appendChild(this._elCanvas);this.JSC$17349__el=G;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$17349__el.appendChild(this._elImage);this._bSupportDataURI=null};
x.prototype._onMakeImage=function(){var G=this._elCanvas.toDataURL("image/png");this._elImage.src=G;this._elImage.style.display="block";this._elCanvas.style.display="none"};
x.prototype._safeSetDataURI=function(G,D){var K=this;K._fFail=D;K._fSuccess=G;K._bSupportDataURI===null?(G=_.p4("IMG"),D=function(){K._bSupportDataURI=!1;K._fFail&&K._fFail.call(K)},G.onabort=D,G.onerror=D,G.onload=function(){K._bSupportDataURI=!0;
K._fSuccess&&K._fSuccess.call(K)},G.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):K._bSupportDataURI===!0&&K._fSuccess?K._fSuccess.call(K):K._bSupportDataURI===!1&&K._fFail&&K._fFail.call(K)};
x.prototype.draw=function(G){var D=this._oContext,K=this.JSC$17349__htOption,z=G.moduleCount,y=K.width/z,c=K.height/z,W=Math.round(y),e=Math.round(c);this._elImage.style.display="none";this.clear();for(var Q=0;Q<z;Q++)for(var p=0;p<z;p++){var V=G.isDark(Q,p),L=p*y,r=Q*c;D.strokeStyle=V?K.colorDark:K.colorLight;D.lineWidth=1;D.fillStyle=V?K.colorDark:K.colorLight;D.fillRect(L,r,y,c);D.strokeRect(Math.floor(L)+.5,Math.floor(r)+.5,W,e);D.strokeRect(Math.ceil(L)-.5,Math.ceil(r)-.5,W,e)}this._bIsPainted=
!0};
x.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
x.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
x.prototype.round=function(G){return G?Math.floor(G*1E3)/1E3:G};
return x}():function(){var x=function(G,D){this.JSC$17349__el=G;
this.JSC$17349__htOption=D};
x.prototype.draw=function(G){for(var D=this.JSC$17349__htOption,K=this.JSC$17349__el,z=G.moduleCount,y=Math.floor(D.width/z),c=Math.floor(D.height/z),W=['<table style="border:0;border-collapse:collapse;">'],e=0;e<z;e++){W.push("<tr>");for(var Q=0;Q<z;Q++)W.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+y+"px;height:"+c+"px;background-color:"+(G.isDark(e,Q)?D.colorDark:D.colorLight)+';"></td>');W.push("</tr>")}W.push("</table>");G=W.join("");G=_.NdE(_.JbO,G);_.n9(K,G);
G=K.childNodes[0];z=(D.width-G.offsetWidth)/2;y=(D.height-G.offsetHeight)/2;z>0&&y>0&&(G.style.margin=y+"px "+z+"px")};
x.prototype.clear=function(){this.JSC$17349__el.textContent=""};
return x}();
nq4.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17352__android||this.JSC$17352__android>=3)&&this._oDrawing.makeImage()};
nq4.prototype.clear=function(){this._oDrawing.clear()};
_.Df.QRCode=nq4;var XA4={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var MA=function(){};
MA.prototype.stringify=function(x){return _.Df.JSON.stringify(x,void 0)};
MA.prototype.parse=function(x){return _.Df.JSON.parse(x,void 0)};var A3j=function(){_.aY.call(this,"z")};
_.tR(A3j,_.aY);var U_C=function(){_.aY.call(this,"y")};
_.tR(U_C,_.aY);var Ry6=null,SRf=function(){return Ry6=Ry6||new _.T2},nhx=function(x){_.aY.call(this,"serverreachability",x)};
_.tR(nhx,_.aY);var Q1=function(x){var G=SRf();G.dispatchEvent(new nhx(G,x))},iwf=function(x){_.aY.call(this,"statevent",x)};
_.tR(iwf,_.aY);var p0=function(x){var G=SRf();G.dispatchEvent(new iwf(G,x))},ghY=function(x,G,D,K){_.aY.call(this,"timingevent",x);
this.size=G;this.rtt=D;this.retries=K};
_.tR(ghY,_.aY);var u6f=function(x,G,D){var K=SRf();K.dispatchEvent(new ghY(K,x,G,D))},V1=function(x,G){if(typeof x!=="function")throw Error("tk");
return _.Df.setTimeout(function(){x()},G)};var b3=function(){this.redactEnabled_=!0};
b3.prototype.disableRedact=function(){this.redactEnabled_=!1};
var d_4=function(x,G,D,K,z,y){x.info(function(){if(x.redactEnabled_)if(y){var c="";for(var W=y.split("&"),e=0;e<W.length;e++){var Q=W[e].split("=");if(Q.length>1){var p=Q[0];Q=Q[1];var V=p.split("_");c=V.length>=2&&V[1]=="type"?c+(p+"="+Q+"&"):c+(p+"=redacted&")}}}else c=null;else c=y;return"XMLHTTP REQ ("+K+") [attempt "+z+"]: "+G+"\n"+D+"\n"+c})},wAk=function(x,G,D,K,z,y,c){x.info(function(){return"XMLHTTP RESP ("+K+") [ attempt "+z+"]: "+G+"\n"+D+"\n"+y+" "+c})},L0=function(x,G,D,K){x.info(function(){return"XMLHTTP TEXT ("+
G+"): "+qRb(x,D)+(K?" "+K:"")})},Nif=function(x,G){x.info(function(){return"TIMEOUT: "+G})};
b3.prototype.debug=function(){};
b3.prototype.info=function(){};
b3.prototype.warning=function(){};
var qRb=function(x,G){if(!x.redactEnabled_)return G;if(!G)return null;try{var D=JSON.parse(G);if(D)for(var K=0;K<D.length;K++)if(Array.isArray(D[K])){var z=D[K];if(!(z.length<2)){var y=z[1];if(Array.isArray(y)&&!(y.length<1)){var c=y[0];if(c!="noop"&&c!="stop"&&c!="close")for(var W=1;W<y.length;W++)y[W]=""}}}return(0,_.VZ)(D)}catch(e){return x.debug("Exception parsing expected JS array - probably was not JS"),G}};var BN=function(x,G,D,K,z){this.JSC$17374_channel_=x;this.JSC$17374_channelDebug_=G;this.sid_=D;this.JSC$17374_rid_=K;this.JSC$17374_retryId_=z||1;this.JSC$17374_eventHandler_=new _.Ev(this);this.timeout_=45E3;this.JSC$17374_extraHeaders_=null;this.JSC$17374_successful_=!1;this.JSC$17374_postData_=this.JSC$17374_requestUri_=this.JSC$17374_baseUri_=this.JSC$17374_type_=this.JSC$17374_requestStartTime_=this.JSC$17374_watchDogTimeoutTime_=this.JSC$17374_watchDogTimerId_=null;this.JSC$17374_pendingMessages_=
[];this.JSC$17374_xmlHttp_=null;this.JSC$17374_xmlHttpChunkStart_=0;this.JSC$17374_lastError_=this.JSC$17374_verb_=null;this.JSC$17374_lastStatusCode_=-1;this.JSC$17374_cancelled_=!1;this.JSC$17374_readyStateChangeThrottleMs_=0;this.JSC$17374_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new vh8},vh8=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},J36=function(x,G){switch(x){case 0:return"Non-200 return code ("+G+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},fzT={},tHO={};
BN.prototype.setTimeout=function(x){this.timeout_=x};
var Pv4=function(x,G,D){x.JSC$17374_type_=1;x.JSC$17374_baseUri_=_.kh(G.clone());x.JSC$17374_postData_=D;x.decodeChunks_=!0;k2c(x,null)},k2c=function(x,G){x.JSC$17374_requestStartTime_=Date.now();
Eh4(x);x.JSC$17374_requestUri_=x.JSC$17374_baseUri_.clone();DG(x.JSC$17374_requestUri_,"t",x.JSC$17374_retryId_);x.JSC$17374_xmlHttpChunkStart_=0;var D=x.JSC$17374_channel_.JSC$17393_supportsCrossDomainXhrs_;x.fetchResponseState_=new vh8;x.JSC$17374_xmlHttp_=hy6(x.JSC$17374_channel_,D?G:null,!x.JSC$17374_postData_);x.JSC$17374_readyStateChangeThrottleMs_>0&&(x.JSC$17374_readyStateChangeThrottle_=new _.Jc((0,_.mW)(x.JSC$17378_xmlHttpHandler_,x,x.JSC$17374_xmlHttp_),x.JSC$17374_readyStateChangeThrottleMs_));
x.JSC$17374_eventHandler_.listen(x.JSC$17374_xmlHttp_,"readystatechange",x.JSC$17378_readyStateChangeHandler_);G=x.JSC$17374_extraHeaders_?_.YS.clone(x.JSC$17374_extraHeaders_):{};x.JSC$17374_postData_?(x.JSC$17374_verb_||(x.JSC$17374_verb_="POST"),G["Content-Type"]="application/x-www-form-urlencoded",x.JSC$17374_xmlHttp_.send(x.JSC$17374_requestUri_,x.JSC$17374_verb_,x.JSC$17374_postData_,G)):(x.JSC$17374_verb_="GET",x.JSC$17374_xmlHttp_.send(x.JSC$17374_requestUri_,x.JSC$17374_verb_,null,G));Q1(1);
d_4(x.JSC$17374_channelDebug_,x.JSC$17374_verb_,x.JSC$17374_requestUri_,x.JSC$17374_rid_,x.JSC$17374_retryId_,x.JSC$17374_postData_)};
BN.prototype.JSC$17378_readyStateChangeHandler_=function(x){x=x.target;var G=this.JSC$17374_readyStateChangeThrottle_;G&&_.Lw(x)==3?(this.JSC$17374_channelDebug_.debug("Throttling readystatechange."),G.fire()):this.JSC$17378_xmlHttpHandler_(x)};
BN.prototype.JSC$17378_xmlHttpHandler_=function(x){try{x==this.JSC$17374_xmlHttp_?x9j(this):this.JSC$17374_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(G){this.JSC$17374_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),GXx(this)}finally{}};
var x9j=function(x){var G=_.Lw(x.JSC$17374_xmlHttp_),D=x.JSC$17374_xmlHttp_.JSC$7807_lastErrorCode_,K=x.JSC$17374_xmlHttp_.getStatus();if(!(G<3||G==3&&!GXx(x))){x.JSC$17374_cancelled_||G!=4||D==7||(D==8||K<=0?Q1(3):Q1(2));D9c(x);var z=x.JSC$17374_xmlHttp_.getStatus();x.JSC$17374_lastStatusCode_=z;D=KRT(x);GXx(x)||x.JSC$17374_channelDebug_.debug(function(){return"No response text for uri "+x.JSC$17374_requestUri_+" status "+z});
x.JSC$17374_successful_=z==200;wAk(x.JSC$17374_channelDebug_,x.JSC$17374_verb_,x.JSC$17374_requestUri_,x.JSC$17374_rid_,x.JSC$17374_retryId_,G,z);if(x.JSC$17374_successful_){if(x.decodeInitialResponse_&&!x.initialResponseDecoded_)if(K=zAi(x))L0(x.JSC$17374_channelDebug_,x.JSC$17374_rid_,K,"Initial handshake response via X-HTTP-Initial-Response"),x.initialResponseDecoded_=!0,aCj(x,K);else{x.JSC$17374_successful_=!1;x.JSC$17374_lastError_=3;p0(12);x.JSC$17374_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
x.JSC$17374_rid_+")");rF(x);sy(x);return}x.decodeChunks_?oJx(x,G,D):(L0(x.JSC$17374_channelDebug_,x.JSC$17374_rid_,D,null),aCj(x,D));G==4&&rF(x);x.JSC$17374_successful_&&!x.JSC$17374_cancelled_&&(G==4?yxO(x.JSC$17374_channel_,x):(x.JSC$17374_successful_=!1,Eh4(x)))}else zSi(x.JSC$17374_xmlHttp_),z==400&&D.indexOf("Unknown SID")>0?(x.JSC$17374_lastError_=3,p0(12),x.JSC$17374_channelDebug_.warning("XMLHTTP Unknown SID ("+x.JSC$17374_rid_+")")):(x.JSC$17374_lastError_=0,p0(13),x.JSC$17374_channelDebug_.warning("XMLHTTP Bad status "+
z+" ("+x.JSC$17374_rid_+")")),rF(x),sy(x)}},zAi=function(x){return x.JSC$17374_xmlHttp_&&(x=cz(x.JSC$17374_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.y3(x)?x:null},KRT=function(x){if(!lCx(x))return x.JSC$17374_xmlHttp_.getResponseText();
var G=x.JSC$17374_xmlHttp_.getResponse();if(G==="")return"";var D="",K=G.length,z=_.Lw(x.JSC$17374_xmlHttp_)==4;if(!x.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return rF(x),sy(x),"";x.fetchResponseState_.textDecoder=new _.Df.TextDecoder}for(var y=0;y<K;y++)x.fetchResponseState_.responseArrivedForFetch=!0,D+=x.fetchResponseState_.textDecoder.decode(G[y],{stream:!(z&&y==K-1)});G.length=0;x.fetchResponseState_.responseBuffer+=D;x.JSC$17374_xmlHttpChunkStart_=0;return x.fetchResponseState_.responseBuffer},
GXx=function(x){return x.JSC$17374_xmlHttp_?x.fetchResponseState_.responseArrivedForFetch?!0:!(!x.JSC$17374_xmlHttp_.getResponseText()&&!x.JSC$17374_xmlHttp_.getResponse()):!1},lCx=function(x){return x.JSC$17374_xmlHttp_?x.JSC$17374_verb_=="GET"&&x.JSC$17374_type_!=2&&x.JSC$17374_channel_.usesFetchStreams_:!1},oJx=function(x,G,D){for(var K=!0,z;!x.JSC$17374_cancelled_&&x.JSC$17374_xmlHttpChunkStart_<D.length;)if(z=cx4(x,D),z==tHO){G==4&&(x.JSC$17374_lastError_=4,p0(14),K=!1);
L0(x.JSC$17374_channelDebug_,x.JSC$17374_rid_,null,"[Incomplete Response]");break}else if(z==fzT){x.JSC$17374_lastError_=4;p0(15);L0(x.JSC$17374_channelDebug_,x.JSC$17374_rid_,D,"[Invalid Chunk]");K=!1;break}else L0(x.JSC$17374_channelDebug_,x.JSC$17374_rid_,z,null),aCj(x,z);lCx(x)&&x.JSC$17374_xmlHttpChunkStart_!=0&&(x.fetchResponseState_.responseBuffer=x.fetchResponseState_.responseBuffer.slice(x.JSC$17374_xmlHttpChunkStart_),x.JSC$17374_xmlHttpChunkStart_=0);G!=4||D.length!=0||x.fetchResponseState_.responseArrivedForFetch||
(x.JSC$17374_lastError_=1,p0(16),K=!1);x.JSC$17374_successful_=x.JSC$17374_successful_&&K;K?D.length>0&&!x.firstByteReceived_&&(x.firstByteReceived_=!0,G=x.JSC$17374_channel_,G.JSC$17393_backChannelRequest_==x&&G.detectBufferingProxy_&&!G.bpDetectionDone_&&(G.JSC$17393_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+D.length),TqY(G),G.bpDetectionDone_=!0,p0(11))):(L0(x.JSC$17374_channelDebug_,x.JSC$17374_rid_,D,"[Invalid Chunked Response]"),rF(x),sy(x))},cx4=function(x,G){var D=
x.JSC$17374_xmlHttpChunkStart_,K=G.indexOf("\n",D);
if(K==-1)return tHO;D=Number(G.substring(D,K));if(isNaN(D))return fzT;K+=1;if(K+D>G.length)return tHO;G=G.slice(K,K+D);x.JSC$17374_xmlHttpChunkStart_=K+D;return G};
BN.prototype.cancel=function(){this.JSC$17374_cancelled_=!0;rF(this)};
var Eh4=function(x){x.JSC$17374_watchDogTimeoutTime_=Date.now()+x.timeout_;WRC(x,x.timeout_)},WRC=function(x,G){if(x.JSC$17374_watchDogTimerId_!=null)throw Error("uk");
x.JSC$17374_watchDogTimerId_=V1((0,_.mW)(x.JSC$17378_onWatchDogTimeout_,x),G)},D9c=function(x){x.JSC$17374_watchDogTimerId_&&(_.Df.clearTimeout(x.JSC$17374_watchDogTimerId_),x.JSC$17374_watchDogTimerId_=null)};
BN.prototype.JSC$17378_onWatchDogTimeout_=function(){this.JSC$17374_watchDogTimerId_=null;var x=Date.now();x-this.JSC$17374_watchDogTimeoutTime_>=0?(Nif(this.JSC$17374_channelDebug_,this.JSC$17374_requestUri_),this.JSC$17374_type_!=2&&(Q1(3),p0(17)),rF(this),this.JSC$17374_lastError_=2,sy(this)):(this.JSC$17374_channelDebug_.warning("WatchDog timer called too early"),WRC(this,this.JSC$17374_watchDogTimeoutTime_-x))};
var sy=function(x){x.JSC$17374_channel_.state_==0||x.JSC$17374_cancelled_||yxO(x.JSC$17374_channel_,x)},rF=function(x){D9c(x);
_.kS(x.JSC$17374_readyStateChangeThrottle_);x.JSC$17374_readyStateChangeThrottle_=null;x.JSC$17374_eventHandler_.removeAll();if(x.JSC$17374_xmlHttp_){var G=x.JSC$17374_xmlHttp_;x.JSC$17374_xmlHttp_=null;G.abort();G.dispose()}};
BN.prototype.getLastError=function(){return this.JSC$17374_lastError_};
var aCj=function(x,G){try{var D=x.JSC$17374_channel_;if(D.state_!=0&&(D.JSC$17393_backChannelRequest_==x||eAY(D.forwardChannelRequestPool_,x)))if(!x.initialResponseDecoded_&&eAY(D.forwardChannelRequestPool_,x)&&D.state_==3){try{var K=D.wireCodec_.JSC$17388_parser_.parse(G)}catch(W){K=null}if(Array.isArray(K)&&K.length==3){G=K;if(G[0]==0)a:if(D.JSC$17393_channelDebug_.debug("Server claims our backchannel is missing."),D.JSC$17393_backChannelTimerId_)D.JSC$17393_channelDebug_.debug("But we are currently starting the request.");
else{if(D.JSC$17393_backChannelRequest_)if(D.JSC$17393_backChannelRequest_.JSC$17374_requestStartTime_+3E3<x.JSC$17374_requestStartTime_)ZiC(D),MuT(D);else break a;else D.JSC$17393_channelDebug_.warning("We do not have a BackChannel established");Q6f(D);p0(18)}else{D.JSC$17393_lastPostResponseArrayId_=G[1];var z=D.JSC$17393_lastPostResponseArrayId_-D.JSC$17393_lastArrayId_;if(0<z){var y=G[2];D.JSC$17393_channelDebug_.debug(y+" bytes (in "+z+" arrays) are outstanding on the BackChannel");y<37500&&
D.enableStreaming_&&D.JSC$17393_backChannelRetryCount_==0&&!D.JSC$17393_deadBackChannelTimerId_&&(D.JSC$17393_deadBackChannelTimerId_=V1((0,_.mW)(D.JSC$17395_onBackChannelDead_,D),6E3))}}if(p$x(D.forwardChannelRequestPool_)<=1&&D.forwardChannelFlushedCallback_){try{D.forwardChannelFlushedCallback_()}catch(W){}D.forwardChannelFlushedCallback_=void 0}}else D.JSC$17393_channelDebug_.debug("Bad POST response data returned"),Yw(D,11)}else if((x.initialResponseDecoded_||D.JSC$17393_backChannelRequest_==
x)&&ZiC(D),!_.y3(G)){var c=D.wireCodec_.JSC$17388_parser_.parse(G);D.onInput_(c,x)}Q1(4)}catch(W){}};var Vu8=function(x,G){this.JSC$17381_mapId=x;this.map=G;this.context=null};var bix=function(x){this.maxPoolSizeConfigured_=x||10;_.Df.PerformanceNavigationTiming?(x=_.Df.performance.getEntriesByType("navigation"),x=x.length>0&&(x[0].nextHopProtocol=="hq"||x[0].nextHopProtocol=="h2")):x=!!(_.Df.chrome&&_.Df.chrome.loadTimes&&_.Df.chrome.loadTimes()&&_.Df.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17384_maxSize_=x?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17384_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17384_request_=null;this.JSC$17384_pendingMessages_=
[]},LRi=function(x){return x.JSC$17384_request_?!0:x.requestPool_?x.requestPool_.size>=x.JSC$17384_maxSize_:!1},p$x=function(x){return x.JSC$17384_request_?1:x.requestPool_?x.requestPool_.size:0},eAY=function(x,G){return x.JSC$17384_request_?x.JSC$17384_request_==G:x.requestPool_?x.requestPool_.has(G):!1},Bqb=function(x,G){x.requestPool_?x.requestPool_.add(G):x.JSC$17384_request_=G},rxi=function(x,G){x.JSC$17384_request_&&x.JSC$17384_request_==G?x.JSC$17384_request_=null:x.requestPool_&&x.requestPool_.has(G)&&
x.requestPool_.delete(G)};
bix.prototype.cancel=function(){this.JSC$17384_pendingMessages_=s6i(this);if(this.JSC$17384_request_)this.JSC$17384_request_.cancel(),this.JSC$17384_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var x=_.l(this.requestPool_.values()),G=x.next();!G.done;G=x.next())G.value.cancel();this.requestPool_.clear()}};
var s6i=function(x){if(x.JSC$17384_request_!=null)return x.JSC$17384_pendingMessages_.concat(x.JSC$17384_request_.JSC$17374_pendingMessages_);if(x.requestPool_!=null&&x.requestPool_.size!==0){var G=x.JSC$17384_pendingMessages_;x=_.l(x.requestPool_.values());for(var D=x.next();!D.done;D=x.next())G=G.concat(D.value.JSC$17374_pendingMessages_);return G}return _.kC(x.JSC$17384_pendingMessages_)},Ytb=function(x,G){x.JSC$17384_pendingMessages_=x.JSC$17384_pendingMessages_.concat(G)};var m9C=function(x,G){var D=new b3;D.debug("TestLoadImage: loading "+x);if(_.Df.Image){var K=new Image;K.onload=_.Zq(m0,D,"TestLoadImage: loaded",!0,G,K);K.onerror=_.Zq(m0,D,"TestLoadImage: error",!1,G,K);K.onabort=_.Zq(m0,D,"TestLoadImage: abort",!1,G,K);K.ontimeout=_.Zq(m0,D,"TestLoadImage: timeout",!1,G,K);_.Df.setTimeout(function(){if(K.ontimeout)K.ontimeout()},1E4);
K.src=x}else G(!1)},Hic=function(x,G){var D=new b3,K=new AbortController,z=setTimeout(function(){K.abort();
m0(D,"TestPingServer: timeout",!1,G)},1E4);
fetch(x,{signal:K.signal}).then(function(y){clearTimeout(z);y.ok?m0(D,"TestPingServer: ok",!0,G):m0(D,"TestPingServer: server error",!1,G)}).catch(function(){clearTimeout(z);
m0(D,"TestPingServer: error",!1,G)})},m0=function(x,G,D,K,z){try{x.debug(G),z&&(z.onload=null,z.onerror=null,z.onabort=null,z.ontimeout=null),K(D)}catch(y){}};var $9j=function(){this.JSC$17388_parser_=new MA},FRk=function(x,G,D){var K=D||"";
try{_.Gjo(x,function(z,y){var c=z;_.G7(z)&&(c=(0,_.VZ)(z));G.push(K+y+"="+encodeURIComponent(c))})}catch(z){throw G.push(K+"type="+encodeURIComponent("_badmap")),z;
}};var HN=function(x,G,D){return D&&D.internalChannelParams?D.internalChannelParams[x]||G:G},$w=function(x){this.serverVersion_=0;
this.JSC$17393_outgoingMaps_=[];this.JSC$17393_channelDebug_=new b3;this.JSC$17393_hostPrefix_=this.JSC$17393_backChannelUri_=this.JSC$17393_forwardChannelUri_=this.JSC$17393_path_=this.JSC$17393_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17393_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17393_extraHeaders_=null;this.JSC$17393_nextMapId_=this.JSC$17393_nextRid_=0;this.JSC$17393_failFast_=HN("failFast",!1,x);this.enableStreaming_=this.JSC$17393_deadBackChannelTimerId_=
this.JSC$17393_backChannelTimerId_=this.JSC$17393_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17393_lastPostResponseArrayId_=this.JSC$17393_lastArrayId_=-1;this.JSC$17393_backChannelAttemptId_=this.JSC$17393_backChannelRetryCount_=this.JSC$17393_forwardChannelRetryCount_=0;this.JSC$17393_baseRetryDelayMs_=HN("baseRetryDelayMs",5E3,x);this.JSC$17393_retryDelaySeedMs_=HN("retryDelaySeedMs",1E4,x);this.JSC$17393_forwardChannelMaxRetries_=
HN("forwardChannelMaxRetries",2,x);this.JSC$17393_forwardChannelRequestTimeoutMs_=HN("forwardChannelRequestTimeoutMs",2E4,x);this.JSC$17393_xmlHttpFactory_=x&&x.xmlHttpFactory||void 0;this.networkTestUrl_=x&&x.networkTestUrl||void 0;this.usesFetchStreams_=x&&x.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17393_supportsCrossDomainXhrs_=x&&x.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new bix(x&&x.concurrentRequestLimit);this.wireCodec_=new $9j;this.fastHandshake_=
x&&x.fastHandshake||!1;this.encodeInitMessageHeaders_=x&&x.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17393_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=x&&x.blockingHandshake||!1;x&&x.disableRedact&&this.JSC$17393_channelDebug_.disableRedact();x&&x.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
x&&x.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;x&&x.longPollingTimeout&&x.longPollingTimeout>0&&(this.longPollingTimeout_=x.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
$w.prototype.JSC$17395_channelVersion_=8;$w.prototype.state_=1;
$w.prototype.connect=function(x,G,D,K){this.JSC$17393_channelDebug_.debug("connect()");p0(0);this.JSC$17393_path_=x;this.JSC$17393_extraParams_=G||{};D&&K!==void 0&&(this.JSC$17393_extraParams_.OSID=D,this.JSC$17393_extraParams_.OAID=K);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17393_channelDebug_.debug("connectChannel_()");x=Clc(this,null,this.JSC$17393_path_);this.JSC$17393_channelDebug_.debug("GetForwardChannelUri: "+x);this.JSC$17393_forwardChannelUri_=x;ICO(this)};
$w.prototype.disconnect=function(){this.JSC$17393_channelDebug_.debug("disconnect()");j6C(this);if(this.state_==3){var x=this.JSC$17393_nextRid_++,G=this.JSC$17393_forwardChannelUri_.clone();_.Ny(G,"SID",this.sid_);_.Ny(G,"RID",x);_.Ny(G,"TYPE","terminate");F9(this,G);x=new BN(this,this.JSC$17393_channelDebug_,this.sid_,x);x.JSC$17374_type_=2;x.JSC$17374_baseUri_=_.kh(G.clone());G=!1;if(_.Df.navigator&&_.Df.navigator.sendBeacon)try{G=_.Df.navigator.sendBeacon(x.JSC$17374_baseUri_.toString(),"")}catch(D){}!G&&
_.Df.Image&&((new Image).src=x.JSC$17374_baseUri_,G=!0);G||(x.JSC$17374_xmlHttp_=hy6(x.JSC$17374_channel_,null),x.JSC$17374_xmlHttp_.send(x.JSC$17374_baseUri_));x.JSC$17374_requestStartTime_=Date.now();Eh4(x)}OiC(this)};
var MuT=function(x){x.JSC$17393_backChannelRequest_&&(TqY(x),x.JSC$17393_backChannelRequest_.cancel(),x.JSC$17393_backChannelRequest_=null)},j6C=function(x){MuT(x);
x.JSC$17393_backChannelTimerId_&&(_.Df.clearTimeout(x.JSC$17393_backChannelTimerId_),x.JSC$17393_backChannelTimerId_=null);ZiC(x);x.forwardChannelRequestPool_.cancel();x.JSC$17393_forwardChannelTimerId_&&(typeof x.JSC$17393_forwardChannelTimerId_==="number"&&_.Df.clearTimeout(x.JSC$17393_forwardChannelTimerId_),x.JSC$17393_forwardChannelTimerId_=null)};
$w.prototype.getState=function(){return this.state_};
var ICO=function(x){LRi(x.forwardChannelRequestPool_)||x.JSC$17393_forwardChannelTimerId_||(x.JSC$17393_forwardChannelTimerId_=!0,_.eH(x.JSC$17395_onStartForwardChannelTimer_,x),x.JSC$17393_forwardChannelRetryCount_=0)},Axx=function(x,G){if(p$x(x.forwardChannelRequestPool_)>=x.forwardChannelRequestPool_.JSC$17384_maxSize_-(x.JSC$17393_forwardChannelTimerId_?1:0))return!1;
if(x.JSC$17393_forwardChannelTimerId_)return x.JSC$17393_channelDebug_.debug("Use the retry request that is already scheduled."),x.JSC$17393_outgoingMaps_=G.JSC$17374_pendingMessages_.concat(x.JSC$17393_outgoingMaps_),!0;if(x.state_==1||x.state_==2||x.JSC$17393_forwardChannelRetryCount_>=(x.JSC$17393_failFast_?0:x.JSC$17393_forwardChannelMaxRetries_))return!1;x.JSC$17393_channelDebug_.debug("Going to retry POST");x.JSC$17393_forwardChannelTimerId_=V1((0,_.mW)(x.JSC$17395_onStartForwardChannelTimer_,
x,G),X$i(x,x.JSC$17393_forwardChannelRetryCount_));x.JSC$17393_forwardChannelRetryCount_++;return!0};
$w.prototype.JSC$17395_onStartForwardChannelTimer_=function(x){if(this.JSC$17393_forwardChannelTimerId_)if(this.JSC$17393_forwardChannelTimerId_=null,this.JSC$17393_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!x){this.JSC$17393_channelDebug_.debug("open_()");this.JSC$17393_nextRid_=Math.floor(Math.random()*1E5);x=this.JSC$17393_nextRid_++;var G=new BN(this,this.JSC$17393_channelDebug_,"",x),D=this.JSC$17393_extraHeaders_;this.initHeaders_&&(D?(D=_.YS.clone(D),_.YS.extend(D,this.initHeaders_)):
D=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(G.JSC$17374_extraHeaders_=D,D=null);var K;if(this.fastHandshake_)a:{for(var z=K=0;z<this.JSC$17393_outgoingMaps_.length;z++){b:{var y=this.JSC$17393_outgoingMaps_[z];if("__data__"in y.map&&(y=y.map.__data__,typeof y==="string")){y=y.length;break b}y=void 0}if(y===void 0)break;K+=y;if(K>4096){K=z;break a}if(K===4096||z===this.JSC$17393_outgoingMaps_.length-1){K=z+1;break a}}K=1E3}else K=1E3;K=U9f(this,G,K);
z=this.JSC$17393_forwardChannelUri_.clone();_.Ny(z,"RID",x);_.Ny(z,"CVER",22);this.httpSessionIdParam_&&_.Ny(z,"X-HTTP-Session-Id",this.httpSessionIdParam_);F9(this,z);D&&(this.encodeInitMessageHeaders_?K="headers="+_.gT(za6(D))+"&"+K:this.httpHeadersOverwriteParam_&&aXT(z,this.httpHeadersOverwriteParam_,D));Bqb(this.forwardChannelRequestPool_,G);this.blockingHandshake_&&_.Ny(z,"TYPE","init");this.fastHandshake_?(_.Ny(z,"$req",K),_.Ny(z,"SID","null"),G.decodeInitialResponse_=!0,Pv4(G,z,null)):Pv4(G,
z,K);this.state_=2}}else this.state_==3&&(x?RAf(this,x):this.JSC$17393_outgoingMaps_.length==0?this.JSC$17393_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):LRi(this.forwardChannelRequestPool_)||(RAf(this),this.JSC$17393_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var RAf=function(x,G){var D;G?D=G.JSC$17374_rid_:D=x.JSC$17393_nextRid_++;var K=x.JSC$17393_forwardChannelUri_.clone();_.Ny(K,"SID",x.sid_);_.Ny(K,"RID",D);_.Ny(K,"AID",x.JSC$17393_lastArrayId_);F9(x,K);x.httpHeadersOverwriteParam_&&x.JSC$17393_extraHeaders_&&aXT(K,x.httpHeadersOverwriteParam_,x.JSC$17393_extraHeaders_);D=new BN(x,x.JSC$17393_channelDebug_,x.sid_,D,x.JSC$17393_forwardChannelRetryCount_+1);x.httpHeadersOverwriteParam_===null&&(D.JSC$17374_extraHeaders_=x.JSC$17393_extraHeaders_);G&&
(x.JSC$17393_outgoingMaps_=G.JSC$17374_pendingMessages_.concat(x.JSC$17393_outgoingMaps_));G=U9f(x,D,1E3);D.setTimeout(Math.round(x.JSC$17393_forwardChannelRequestTimeoutMs_*.5)+Math.round(x.JSC$17393_forwardChannelRequestTimeoutMs_*.5*Math.random()));Bqb(x.forwardChannelRequestPool_,D);Pv4(D,K,G)},F9=function(x,G){x.JSC$17393_extraParams_&&_.YS.forEach(x.JSC$17393_extraParams_,function(D,K){_.Ny(G,K,D)});
x.handler_&&_.Gjo({},function(D,K){_.Ny(G,K,D)})},U9f=function(x,G,D){D=Math.min(x.JSC$17393_outgoingMaps_.length,D);
var K=x.handler_?(0,_.mW)(x.handler_.JSC$17399_badMapError,x.handler_,x):null;a:{for(var z=x.JSC$17393_outgoingMaps_,y=-1;;){var c=["count="+D];y==-1?D>0?(y=z[0].JSC$17381_mapId,c.push("ofs="+y)):y=0:c.push("ofs="+y);for(var W=!0,e=0;e<D;e++){var Q=z[e].JSC$17381_mapId,p=z[e].map;Q-=y;if(Q<0)y=Math.max(0,z[e].JSC$17381_mapId-100),W=!1;else try{FRk(p,c,"req"+Q+"_")}catch(V){K&&K(p)}}if(W){K=c.join("&");break a}}K=void 0}x=x.JSC$17393_outgoingMaps_.splice(0,D);G.JSC$17374_pendingMessages_=x;return K},
St4=function(x){x.JSC$17393_backChannelRequest_||x.JSC$17393_backChannelTimerId_||(x.JSC$17393_backChannelAttemptId_=1,_.eH(x.JSC$17395_onStartBackChannelTimer_,x),x.JSC$17393_backChannelRetryCount_=0)},Q6f=function(x){if(x.JSC$17393_backChannelRequest_||x.JSC$17393_backChannelTimerId_||x.JSC$17393_backChannelRetryCount_>=3)return!1;
x.JSC$17393_channelDebug_.debug("Going to retry GET");x.JSC$17393_backChannelAttemptId_++;x.JSC$17393_backChannelTimerId_=V1((0,_.mW)(x.JSC$17395_onStartBackChannelTimer_,x),X$i(x,x.JSC$17393_backChannelRetryCount_));x.JSC$17393_backChannelRetryCount_++;return!0};
$w.prototype.JSC$17395_onStartBackChannelTimer_=function(){this.JSC$17393_backChannelTimerId_=null;nJ6(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17393_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17393_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17393_backChannelRequest_+" "+this.handshakeRttMs_);else{var x=2*this.handshakeRttMs_;this.JSC$17393_channelDebug_.info("BP detection timer enabled: "+x);this.bpDetectionTimerId_=V1((0,_.mW)(this.onBpDetectionTimer_,
this),x)}};
$w.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17393_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17393_backChannelRequest_.JSC$17374_xmlHttp_!=null){var x=this.JSC$17393_backChannelRequest_.JSC$17374_xmlHttp_.getResponseText();x&&this.JSC$17393_channelDebug_.warning("Timer should have been cancelled : "+x)}this.JSC$17393_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;p0(10);MuT(this);nJ6(this)}else this.JSC$17393_channelDebug_.warning("Invalid operation.")};
var TqY=function(x){x.bpDetectionTimerId_!=null&&(x.JSC$17393_channelDebug_.debug("Cancel the BP detection timer."),_.Df.clearTimeout(x.bpDetectionTimerId_),x.bpDetectionTimerId_=null)},nJ6=function(x){x.JSC$17393_channelDebug_.debug("Creating new HttpRequest");
x.JSC$17393_backChannelRequest_=new BN(x,x.JSC$17393_channelDebug_,x.sid_,"rpc",x.JSC$17393_backChannelAttemptId_);x.httpHeadersOverwriteParam_===null&&(x.JSC$17393_backChannelRequest_.JSC$17374_extraHeaders_=x.JSC$17393_extraHeaders_);x.JSC$17393_backChannelRequest_.JSC$17374_readyStateChangeThrottleMs_=0;var G=x.JSC$17393_backChannelUri_.clone();_.Ny(G,"RID","rpc");_.Ny(G,"SID",x.sid_);_.Ny(G,"AID",x.JSC$17393_lastArrayId_);_.Ny(G,"CI",x.enableStreaming_?"0":"1");!x.enableStreaming_&&x.longPollingTimeout_&&
_.Ny(G,"TO",x.longPollingTimeout_);_.Ny(G,"TYPE","xmlhttp");F9(x,G);x.httpHeadersOverwriteParam_&&x.JSC$17393_extraHeaders_&&aXT(G,x.httpHeadersOverwriteParam_,x.JSC$17393_extraHeaders_);x.backChannelRequestTimeoutMs_&&x.JSC$17393_backChannelRequest_.setTimeout(x.backChannelRequestTimeoutMs_);var D=x.JSC$17393_backChannelRequest_,K=x.JSC$17393_hostPrefix_;D.JSC$17374_type_=1;D.JSC$17374_baseUri_=_.kh(G.clone());D.JSC$17374_postData_=null;D.decodeChunks_=!0;k2c(D,K);x.JSC$17393_channelDebug_.debug("New Request created")};
$w.prototype.JSC$17395_onBackChannelDead_=function(){this.JSC$17393_deadBackChannelTimerId_!=null&&(this.JSC$17393_deadBackChannelTimerId_=null,MuT(this),Q6f(this),p0(19))};
var ZiC=function(x){x.JSC$17393_deadBackChannelTimerId_!=null&&(_.Df.clearTimeout(x.JSC$17393_deadBackChannelTimerId_),x.JSC$17393_deadBackChannelTimerId_=null)},yxO=function(x,G){x.JSC$17393_channelDebug_.debug("Request complete");
var D=null;if(x.JSC$17393_backChannelRequest_==G){ZiC(x);TqY(x);x.JSC$17393_backChannelRequest_=null;var K=2}else if(eAY(x.forwardChannelRequestPool_,G))D=G.JSC$17374_pendingMessages_,rxi(x.forwardChannelRequestPool_,G),K=1;else return;if(x.state_!=0)if(G.JSC$17374_successful_)K==1?(u6f(G.JSC$17374_postData_?G.JSC$17374_postData_.length:0,Date.now()-G.JSC$17374_requestStartTime_,x.JSC$17393_forwardChannelRetryCount_),ICO(x)):St4(x);else{var z=G.JSC$17374_lastStatusCode_,y=G.getLastError();if(y==3||
y==0&&z>0)x.JSC$17393_channelDebug_.debug("Not retrying due to error type"),z>200&&(x.errorResponseStatusCode_=G.JSC$17374_lastStatusCode_);else{x.JSC$17393_channelDebug_.debug(function(){return"Maybe retrying, last error: "+J36(y,x.errorResponseStatusCode_)});
if(K==1&&Axx(x,G)||K==2&&Q6f(x))return;x.JSC$17393_channelDebug_.debug("Exceeded max number of retries")}D&&D.length>0&&Ytb(x.forwardChannelRequestPool_,D);x.JSC$17393_channelDebug_.debug("Error: HTTP request failed");switch(y){case 1:Yw(x,5);break;case 4:Yw(x,10);break;case 3:Yw(x,6);break;default:Yw(x,2)}}},X$i=function(x,G){var D=x.JSC$17393_baseRetryDelayMs_+Math.floor(Math.random()*x.JSC$17393_retryDelaySeedMs_);
x.isActive()||(x.JSC$17393_channelDebug_.debug("Inactive channel"),D*=2);return D*G};
$w.prototype.onInput_=function(x,G){for(var D=0;D<x.length;D++){var K=x[D];this.JSC$17393_lastArrayId_=K[0];K=K[1];if(this.state_==2)if(K[0]=="c"){this.sid_=K[1];this.JSC$17393_hostPrefix_=K[2];var z=K[3];z!=null&&(this.JSC$17395_channelVersion_=z,this.JSC$17393_channelDebug_.info("VER="+this.JSC$17395_channelVersion_));z=K[4];z!=null&&(this.serverVersion_=z,this.JSC$17393_channelDebug_.info("SVER="+this.serverVersion_));K=K[5];K!=null&&typeof K==="number"&&K>0&&(this.backChannelRequestTimeoutMs_=
K*=1.5,this.JSC$17393_channelDebug_.info("backChannelRequestTimeoutMs_="+K));if(K=G.JSC$17374_xmlHttp_){var y=cz(K,"X-Client-Wire-Protocol");y&&(z=this.forwardChannelRequestPool_,!z.requestPool_&&(_.Td(y,"spdy")||_.Td(y,"quic")||_.Td(y,"h2"))&&(z.JSC$17384_maxSize_=z.maxPoolSizeConfigured_,z.requestPool_=new Set,z.JSC$17384_request_&&(Bqb(z,z.JSC$17384_request_),z.JSC$17384_request_=null)));this.httpSessionIdParam_&&((K=cz(K,"X-HTTP-Session-Id"))?(this.httpSessionId_=K,_.Ny(this.JSC$17393_forwardChannelUri_,
this.httpSessionIdParam_,K)):this.JSC$17393_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17399_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-G.JSC$17374_requestStartTime_,this.JSC$17393_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));K=G;z=Clc(this,this.JSC$17393_supportsCrossDomainXhrs_?this.JSC$17393_hostPrefix_:null,this.JSC$17393_path_);this.JSC$17393_channelDebug_.debug("GetBackChannelUri: "+
z);this.JSC$17393_backChannelUri_=z;K.initialResponseDecoded_?(this.JSC$17393_channelDebug_.debug("Upgrade the handshake request to a backchannel."),rxi(this.forwardChannelRequestPool_,K),z=K,(y=this.backChannelRequestTimeoutMs_)&&z.setTimeout(y),z.JSC$17374_watchDogTimerId_&&(D9c(z),Eh4(z)),this.JSC$17393_backChannelRequest_=K):St4(this);this.JSC$17393_outgoingMaps_.length>0&&ICO(this)}else K[0]!="stop"&&K[0]!="close"||Yw(this,7);else this.state_==3&&(K[0]=="stop"||K[0]=="close"?K[0]=="stop"?Yw(this,
7):this.disconnect():K[0]!="noop"&&this.handler_&&this.handler_.JSC$17399_channelHandleArray(K),this.JSC$17393_backChannelRetryCount_=0)}};
var Yw=function(x,G){x.JSC$17393_channelDebug_.info("Error code "+G);if(G==2){var D=(0,_.mW)(x.testNetworkCallback_,x),K=x.networkTestUrl_,z=!K;K=new _.w5(K||"//www.google.com/images/cleardot.gif");_.Df.location&&_.Df.location.protocol=="http"||_.uv(K,"https");_.kh(K);z?m9C(K.toString(),D):Hic(K.toString(),D)}else p0(2);x.onError_(G)};
$w.prototype.testNetworkCallback_=function(x){x?(this.JSC$17393_channelDebug_.info("Successfully pinged google.com"),p0(2)):(this.JSC$17393_channelDebug_.info("Failed to ping google.com"),p0(1))};
$w.prototype.onError_=function(x){this.JSC$17393_channelDebug_.debug("HttpChannel: error - "+x);this.state_=0;this.handler_&&this.handler_.JSC$17399_channelError(x);OiC(this);j6C(this)};
var OiC=function(x){x.state_=0;x.nonAckedMapsAtChannelClose_=[];if(x.handler_){var G=s6i(x.forwardChannelRequestPool_);if(G.length!=0||x.JSC$17393_outgoingMaps_.length!=0)x.JSC$17393_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+G.length+", outgoing: "+x.JSC$17393_outgoingMaps_.length}),_.ED(x.nonAckedMapsAtChannelClose_,G),_.ED(x.nonAckedMapsAtChannelClose_,x.JSC$17393_outgoingMaps_),x.forwardChannelRequestPool_.JSC$17384_pendingMessages_.length=0,_.kC(x.JSC$17393_outgoingMaps_),
x.JSC$17393_outgoingMaps_.length=0;
x.handler_.JSC$17399_channelClosed()}},iiC=function(x){if(x.state_==0)return x.nonAckedMapsAtChannelClose_;
var G=[];_.ED(G,s6i(x.forwardChannelRequestPool_));_.ED(G,x.JSC$17393_outgoingMaps_);return G},Clc=function(x,G,D){var K=_.wM(D);
K.JSC$8039_domain_!=""?(G&&_.di(K,G+"."+K.JSC$8039_domain_),_.wi(K,K.JSC$8039_port_)):(K=_.Df.location,K=f6O(K.protocol,G?G+"."+K.hostname:K.hostname,+K.port,D));G=x.httpSessionIdParam_;D=x.httpSessionId_;G&&D&&_.Ny(K,G,D);_.Ny(K,"VER",x.JSC$17395_channelVersion_);F9(x,K);return K},hy6=function(x,G,D){if(G&&!x.JSC$17393_supportsCrossDomainXhrs_)throw Error("vk");
G=x.usesFetchStreams_&&!x.JSC$17393_xmlHttpFactory_?new _.bv(new FP({streamBinaryChunks:D})):new _.bv(x.JSC$17393_xmlHttpFactory_);G.JSC$7807_withCredentials_=x.JSC$17393_supportsCrossDomainXhrs_;return G};
$w.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var gJc=function(){};
_.a=gJc.prototype;_.a.JSC$17399_channelOpened=function(){};
_.a.JSC$17399_channelHandleArray=function(){};
_.a.JSC$17399_channelError=function(){};
_.a.JSC$17399_channelClosed=function(){};
_.a.isActive=function(){return!0};
_.a.JSC$17399_badMapError=function(){};var uu8=function(){},Iv=function(x,G){_.T2.call(this);
this.JSC$17402_channel_=new $w(G);this.JSC$17402_url_=x;this.messageUrlParams_=G&&G.messageUrlParams||null;x=G&&G.messageHeaders||null;G&&G.clientProtocolHeaderRequired&&(x?_.YS.set(x,"X-Client-Protocol","webchannel"):x=_.YS.create("X-Client-Protocol","webchannel"));this.JSC$17402_channel_.JSC$17393_extraHeaders_=x;x=G&&G.initMessageHeaders||null;G&&G.messageContentType&&(x?_.YS.set(x,"X-WebChannel-Content-Type",G.messageContentType):x=_.YS.create("X-WebChannel-Content-Type",G.messageContentType));
G&&G.clientProfile&&(x?_.YS.set(x,"X-WebChannel-Client-Profile",G.clientProfile):x=_.YS.create("X-WebChannel-Client-Profile",G.clientProfile));this.JSC$17402_channel_.initHeaders_=x;(x=G&&G.httpHeadersOverwriteParam)&&!_.y3(x)&&(this.JSC$17402_channel_.httpHeadersOverwriteParam_=x);this.supportsCrossDomainXhr_=G&&G.supportsCrossDomainXhr||!1;this.sendRawJson_=G&&G.sendRawJson||!1;(G=G&&G.httpSessionIdParam)&&!_.y3(G)&&(this.JSC$17402_channel_.httpSessionIdParam_=G,_.YS.containsKey(this.messageUrlParams_,
G)&&_.YS.remove(this.messageUrlParams_,G));this.channelHandler_=new C0(this)};
_.tR(Iv,_.T2);Iv.prototype.open=function(){this.JSC$17402_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17402_channel_.JSC$17393_supportsCrossDomainXhrs_=!0);this.JSC$17402_channel_.connect(this.JSC$17402_url_,this.messageUrlParams_||void 0)};
Iv.prototype.close=function(){this.JSC$17402_channel_.disconnect()};
Iv.prototype.send=function(x){var G=this.JSC$17402_channel_;if(typeof x==="string"){var D={};D.__data__=x;x=D}else this.sendRawJson_&&(D={},D.__data__=(0,_.VZ)(x),x=D);G.JSC$17393_outgoingMaps_.push(new Vu8(G.JSC$17393_nextMapId_++,x));G.state_==3&&ICO(G)};
Iv.prototype.disposeInternal=function(){this.JSC$17402_channel_.handler_=null;delete this.channelHandler_;this.JSC$17402_channel_.disconnect();delete this.JSC$17402_channel_;Iv.superClass_.disposeInternal.call(this)};
var d9f=function(x){A3j.call(this);x.__headers__&&(this.headers=x.__headers__,this.statusCode=x.__status__,delete x.__headers__,delete x.__status__);var G=x.__sm__;G?this.data=(this.metadataKey=_.YS.getAnyKey(G))?_.YS.get(G,this.metadataKey):G:this.data=x};
_.tR(d9f,A3j);var w$8=function(x){U_C.call(this);this.status=1;this.errorCode=x};
_.tR(w$8,U_C);var C0=function(x){this.JSC$17409_channel_=x};
_.tR(C0,gJc);C0.prototype.JSC$17399_channelOpened=function(){this.JSC$17409_channel_.dispatchEvent("w")};
C0.prototype.JSC$17399_channelHandleArray=function(x){this.JSC$17409_channel_.dispatchEvent(new d9f(x))};
C0.prototype.JSC$17399_channelError=function(x){this.JSC$17409_channel_.dispatchEvent(new w$8(x))};
C0.prototype.JSC$17399_channelClosed=function(){this.JSC$17409_channel_.dispatchEvent("x")};
var qt8=function(x,G){this.transportChannel_=x;this.JSC$17412_channel_=G},NqT=function(x){return iiC(x.JSC$17412_channel_).map(function(G){var D=x.transportChannel_;
G=G.map;"__data__"in G?(G=G.__data__,D=D.sendRawJson_?(0,_.Om8)(G):G):D=G;return D})};var j0=function(x){vJT.dispatchEvent(new Jx8(vJT,x))},vJT=new _.T2,Jx8=function(x){_.aY.call(this,"statevent",x)};
_.m(Jx8,_.aY);var Oy=function(x,G,D,K,z){this.JSC$17417_channel_=x;this.JSC$17417_channelDebug_=G;this.sid_=D;this.JSC$17417_rid_=K;this.JSC$17417_retryId_=z||1;this.timeout_=45E3;this.JSC$17417_eventHandler_=new _.Ev(this);this.pollingTimer_=new _.Pm;this.pollingTimer_.setInterval(250)};
_.a=Oy.prototype;_.a.JSC$17419_extraHeaders_=null;_.a.JSC$17419_successful_=!1;_.a.JSC$17419_watchDogTimerId_=null;_.a.JSC$17419_watchDogTimeoutTime_=null;_.a.JSC$17419_requestStartTime_=null;_.a.JSC$17419_type_=null;_.a.JSC$17419_baseUri_=null;_.a.JSC$17419_requestUri_=null;_.a.JSC$17419_postData_=null;_.a.JSC$17419_xmlHttp_=null;_.a.JSC$17419_xmlHttpChunkStart_=0;_.a.trident_=null;_.a.JSC$17419_verb_=null;_.a.JSC$17419_lastError_=null;_.a.JSC$17419_lastStatusCode_=-1;_.a.sendClose_=!0;
_.a.JSC$17419_cancelled_=!1;_.a.JSC$17419_readyStateChangeThrottleMs_=0;_.a.JSC$17419_readyStateChangeThrottle_=null;var fCc=function(x,G){switch(x){case 0:return"Non-200 return code ("+G+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},tuc={},kXY={};
Oy.prototype.setTimeout=function(x){this.timeout_=x};
var EJ4=function(x,G,D){x.JSC$17419_type_=1;x.JSC$17419_baseUri_=_.kh(G.clone());x.JSC$17419_postData_=D;x.decodeChunks_=!0;Pl8(x,null)},hAk=function(x,G,D,K,z){x.JSC$17419_type_=1;
x.JSC$17419_baseUri_=_.kh(G.clone());x.JSC$17419_postData_=null;x.decodeChunks_=D;z&&(x.sendClose_=!1);Pl8(x,K)},Pl8=function(x,G){x.JSC$17419_requestStartTime_=Date.now();
xl4(x);x.JSC$17419_requestUri_=x.JSC$17419_baseUri_.clone();DG(x.JSC$17419_requestUri_,"t",x.JSC$17417_retryId_);x.JSC$17419_xmlHttpChunkStart_=0;x.JSC$17419_xmlHttp_=x.JSC$17417_channel_.JSC$17426_createXhrIo(x.JSC$17417_channel_.JSC$17426_shouldUseSecondaryDomains()?G:null);x.JSC$17419_readyStateChangeThrottleMs_>0&&(x.JSC$17419_readyStateChangeThrottle_=new _.Jc((0,_.mW)(x.JSC$17419_xmlHttpHandler_,x,x.JSC$17419_xmlHttp_),x.JSC$17419_readyStateChangeThrottleMs_));x.JSC$17417_eventHandler_.listen(x.JSC$17419_xmlHttp_,
"readystatechange",x.JSC$17419_readyStateChangeHandler_);G=x.JSC$17419_extraHeaders_?_.YS.clone(x.JSC$17419_extraHeaders_):{};x.JSC$17419_postData_?(x.JSC$17419_verb_="POST",G["Content-Type"]="application/x-www-form-urlencoded",x.JSC$17419_xmlHttp_.send(x.JSC$17419_requestUri_,x.JSC$17419_verb_,x.JSC$17419_postData_,G)):(x.JSC$17419_verb_="GET",x.sendClose_&&!_.xp&&(G.Connection="close"),x.JSC$17419_xmlHttp_.send(x.JSC$17419_requestUri_,x.JSC$17419_verb_,null,G));x.JSC$17417_channel_.notifyServerReachabilityEvent(1);
G=x.JSC$17417_channelDebug_;var D=x.JSC$17419_postData_;if(D){var K="";D=D.split("&");for(var z=0;z<D.length;z++){var y=D[z].split("=");if(y.length>1){var c=y[0];y=y[1];var W=c.split("_");K=W.length>=2&&W[1]=="type"?K+(c+"="+y+"&"):K+(c+"=redacted&")}}}else K=null;G.info("XMLHTTP REQ ("+x.JSC$17417_rid_+") [attempt "+x.JSC$17417_retryId_+"]: "+x.JSC$17419_verb_+"\n"+x.JSC$17419_requestUri_+"\n"+K)};
Oy.prototype.JSC$17419_readyStateChangeHandler_=function(x){x=x.target;var G=this.JSC$17419_readyStateChangeThrottle_;G&&_.Lw(x)==3?(this.JSC$17417_channelDebug_.debug("Throttling readystatechange."),G.fire()):this.JSC$17419_xmlHttpHandler_(x)};
Oy.prototype.JSC$17419_xmlHttpHandler_=function(x){try{if(x==this.JSC$17419_xmlHttp_)a:{var G=_.Lw(this.JSC$17419_xmlHttp_),D=this.JSC$17419_xmlHttp_.JSC$7807_lastErrorCode_,K=this.JSC$17419_xmlHttp_.getStatus();if(_.xp&&!_.GK("420+")){if(G<4)break a}else if(G<3||G==3&&!this.JSC$17419_xmlHttp_.getResponseText())break a;this.JSC$17419_cancelled_||G!=4||D==7||(D==8||K<=0?this.JSC$17417_channel_.notifyServerReachabilityEvent(3):this.JSC$17417_channel_.notifyServerReachabilityEvent(2));Gsx(this);var z=
this.JSC$17419_xmlHttp_.getStatus();this.JSC$17419_lastStatusCode_=z;var y=this.JSC$17419_xmlHttp_.getResponseText();y||this.JSC$17417_channelDebug_.debug("No response text for uri "+this.JSC$17419_requestUri_+" status "+z);this.JSC$17419_successful_=z==200;this.JSC$17417_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17417_rid_+") [ attempt "+this.JSC$17417_retryId_+"]: "+this.JSC$17419_verb_+"\n"+this.JSC$17419_requestUri_+"\n"+G+" "+z);if(this.JSC$17419_successful_){G==4&&X9(this);if(this.decodeChunks_){for(x=
!0;!this.JSC$17419_cancelled_&&this.JSC$17419_xmlHttpChunkStart_<y.length;){var c=Dlx(this,y);if(c==kXY){G==4&&(this.JSC$17419_lastError_=4,j0(15),x=!1);Aq(this.JSC$17417_channelDebug_,this.JSC$17417_rid_,null,"[Incomplete Response]");break}else if(c==tuc){this.JSC$17419_lastError_=4;j0(16);Aq(this.JSC$17417_channelDebug_,this.JSC$17417_rid_,y,"[Invalid Chunk]");x=!1;break}else Aq(this.JSC$17417_channelDebug_,this.JSC$17417_rid_,c,null),KLY(this,c)}G==4&&y.length==0&&(this.JSC$17419_lastError_=1,
j0(17),x=!1);this.JSC$17419_successful_=this.JSC$17419_successful_&&x;x||(Aq(this.JSC$17417_channelDebug_,this.JSC$17417_rid_,y,"[Invalid Chunked Response]"),X9(this),zrO(this))}else Aq(this.JSC$17417_channelDebug_,this.JSC$17417_rid_,y,null),KLY(this,y);this.JSC$17419_successful_&&!this.JSC$17419_cancelled_&&(G==4?this.JSC$17417_channel_.JSC$17426_onRequestComplete(this):(this.JSC$17419_successful_=!1,xl4(this)))}else z==400&&y.indexOf("Unknown SID")>0?(this.JSC$17419_lastError_=3,j0(13),this.JSC$17417_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17417_rid_+")")):(this.JSC$17419_lastError_=0,j0(14),this.JSC$17417_channelDebug_.warning("XMLHTTP Bad status "+z+" ("+this.JSC$17417_rid_+")")),X9(this),zrO(this)}else this.JSC$17417_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(W){this.JSC$17417_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var Dlx=function(x,G){var D=x.JSC$17419_xmlHttpChunkStart_,K=G.indexOf("\n",D);if(K==-1)return kXY;D=Number(G.substring(D,K));if(isNaN(D))return tuc;K+=1;if(K+D>G.length)return kXY;G=G.slice(K,K+D);x.JSC$17419_xmlHttpChunkStart_=K+D;return G};
Oy.prototype.cancel=function(){this.JSC$17419_cancelled_=!0;X9(this)};
var xl4=function(x){x.JSC$17419_watchDogTimeoutTime_=Date.now()+x.timeout_;arC(x,x.timeout_)},arC=function(x,G){if(x.JSC$17419_watchDogTimerId_!=null)throw Error("uk");
x.JSC$17419_watchDogTimerId_=rz((0,_.mW)(x.JSC$17419_onWatchDogTimeout_,x),G)},Gsx=function(x){x.JSC$17419_watchDogTimerId_&&(_.Df.clearTimeout(x.JSC$17419_watchDogTimerId_),x.JSC$17419_watchDogTimerId_=null)};
Oy.prototype.JSC$17419_onWatchDogTimeout_=function(){this.JSC$17419_watchDogTimerId_=null;var x=Date.now();x-this.JSC$17419_watchDogTimeoutTime_>=0?(this.JSC$17417_channelDebug_.info("TIMEOUT: "+this.JSC$17419_requestUri_),this.JSC$17419_type_!=2&&this.JSC$17417_channel_.notifyServerReachabilityEvent(3),X9(this),this.JSC$17419_lastError_=2,j0(18),zrO(this)):(this.JSC$17417_channelDebug_.warning("WatchDog timer called too early"),arC(this,this.JSC$17419_watchDogTimeoutTime_-x))};
var zrO=function(x){x.JSC$17417_channel_.JSC$17426_isClosed()||x.JSC$17419_cancelled_||x.JSC$17417_channel_.JSC$17426_onRequestComplete(x)},X9=function(x){Gsx(x);
_.kS(x.JSC$17419_readyStateChangeThrottle_);x.JSC$17419_readyStateChangeThrottle_=null;x.pollingTimer_.stop();x.JSC$17417_eventHandler_.removeAll();if(x.JSC$17419_xmlHttp_){var G=x.JSC$17419_xmlHttp_;x.JSC$17419_xmlHttp_=null;G.abort();G.dispose()}x.trident_&&(x.trident_=null)};
Oy.prototype.getLastError=function(){return this.JSC$17419_lastError_};
var KLY=function(x,G){try{x.JSC$17417_channel_.JSC$17426_onRequestData(x,G),x.JSC$17417_channel_.notifyServerReachabilityEvent(4)}catch(D){}};var Aq=function(x,G,D,K){var z=x.info;a:if(D&&D!="y2f%"){try{var y=JSON.parse(D);if(y)for(var c=0;c<y.length;c++)if(Array.isArray(y[c])){var W=y[c];if(!(W.length<2)){var e=W[1];if(Array.isArray(e)&&!(e.length<1)){var Q=e[0];if(Q!="noop"&&Q!="stop")for(var p=1;p<e.length;p++)e[p]=""}}}var V=(0,_.VZ)(y);break a}catch(L){x.debug("Exception parsing expected JS array - probably was not JS");V=D;break a}V=void 0}else V=D;z.call(x,"XMLHTTP TEXT ("+G+"): "+V+(K?" "+K:""))};
sw.prototype.debug=function(x){this.info(x)};
sw.prototype.info=function(){};
sw.prototype.warning=function(){};var oGc=function(x,G){this.JSC$17424_channel_=x;this.JSC$17424_channelDebug_=G;this.JSC$17424_parser_=new MA};
_.a=oGc.prototype;_.a.JSC$17426_extraHeaders_=null;_.a.JSC$17426_request_=null;_.a.receivedIntermediateResult_=!1;_.a.JSC$17426_path_=null;_.a.state_=null;_.a.JSC$17426_lastStatusCode_=-1;_.a.JSC$17426_hostPrefix_=null;_.a.blockedPrefix_=null;
_.a.connect=function(x){this.JSC$17426_path_=x;x=yDf(this.JSC$17424_channel_,this.JSC$17426_path_);j0(3);Date.now();var G=this.JSC$17424_channel_.firstTestResults_;G!=null?(this.JSC$17426_hostPrefix_=G[0],(this.blockedPrefix_=G[1])?(this.state_=1,lri(this)):(this.state_=2,cDc(this))):(DG(x,"MODE","init"),this.JSC$17426_request_=new Oy(this,this.JSC$17424_channelDebug_),this.JSC$17426_request_.JSC$17419_extraHeaders_=this.JSC$17426_extraHeaders_,hAk(this.JSC$17426_request_,x,!1,null,!0),this.state_=
0)};
var lri=function(x){var G=TUx(x.JSC$17424_channel_,x.blockedPrefix_,"/mail/images/cleardot.gif");_.kh(G);uv4(G.toString(),5E3,(0,_.mW)(x.checkBlockedCallback_,x),3,2E3);x.notifyServerReachabilityEvent(1)};
oGc.prototype.checkBlockedCallback_=function(x){if(x)this.state_=2,cDc(this);else{j0(4);var G=this.JSC$17424_channel_;G.JSC$17427_channelDebug_.debug("Test Connection Blocked");G.JSC$17431_lastStatusCode_=G.connectionTest_.JSC$17426_lastStatusCode_;Uy(G,9)}x&&this.notifyServerReachabilityEvent(2)};
var cDc=function(x){x.JSC$17424_channelDebug_.debug("TestConnection: starting stage 2");var G=x.JSC$17424_channel_.secondTestResults_;G!=null?(x.JSC$17424_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+G?"Buffered":"Unbuffered"),j0(5),G?(j0(11),Rv(x.JSC$17424_channel_,x,!1)):(j0(12),Rv(x.JSC$17424_channel_,x,!0))):(x.JSC$17426_request_=new Oy(x,x.JSC$17424_channelDebug_),x.JSC$17426_request_.JSC$17419_extraHeaders_=x.JSC$17426_extraHeaders_,G=WLb(x.JSC$17424_channel_,
x.JSC$17426_hostPrefix_,x.JSC$17426_path_),j0(5),DG(G,"TYPE","xmlhttp"),hAk(x.JSC$17426_request_,G,!1,x.JSC$17426_hostPrefix_,!1))};
_.a=oGc.prototype;_.a.JSC$17426_createXhrIo=function(x){return this.JSC$17424_channel_.JSC$17426_createXhrIo(x)};
_.a.abort=function(){this.JSC$17426_request_&&(this.JSC$17426_request_.cancel(),this.JSC$17426_request_=null);this.JSC$17426_lastStatusCode_=-1};
_.a.JSC$17426_isClosed=function(){return!1};
_.a.JSC$17426_onRequestData=function(x,G){this.JSC$17426_lastStatusCode_=x.JSC$17419_lastStatusCode_;if(this.state_==0)if(this.JSC$17424_channelDebug_.debug("TestConnection: Got data for stage 1"),G){try{var D=this.JSC$17424_parser_.parse(G)}catch(K){erc(this.JSC$17424_channel_,this);return}this.JSC$17426_hostPrefix_=D[0];this.blockedPrefix_=D[1]}else this.JSC$17424_channelDebug_.debug("TestConnection: Null responseText"),erc(this.JSC$17424_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(j0(7),Date.now()):G=="11111"?(j0(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17426_lastStatusCode_=200,this.JSC$17426_request_.cancel(),this.JSC$17424_channelDebug_.debug("Test connection succeeded; using streaming connection"),j0(12),Rv(this.JSC$17424_channel_,this,!0)):(j0(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.a.JSC$17426_onRequestComplete=function(){this.JSC$17426_lastStatusCode_=this.JSC$17426_request_.JSC$17419_lastStatusCode_;this.JSC$17426_request_.JSC$17419_successful_?this.state_==0?(this.JSC$17424_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,lri(this)):(this.state_=2,cDc(this))):this.state_==2&&(this.JSC$17424_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17424_channelDebug_.debug("Test connection succeeded; using streaming connection"),
j0(12),Rv(this.JSC$17424_channel_,this,!0)):(this.JSC$17424_channelDebug_.debug("Test connection failed; not using streaming"),j0(11),Rv(this.JSC$17424_channel_,this,!1))):(this.JSC$17424_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?j0(9):this.state_==2&&j0(10),erc(this.JSC$17424_channel_,this,this.JSC$17426_request_.getLastError()))};
_.a.JSC$17426_shouldUseSecondaryDomains=function(){return this.JSC$17424_channel_.JSC$17426_shouldUseSecondaryDomains()};
_.a.isActive=function(){return this.JSC$17424_channel_.isActive()};
_.a.notifyServerReachabilityEvent=function(x){this.JSC$17424_channel_.notifyServerReachabilityEvent(x)};var S0=function(x,G,D){this.state_=1;this.JSC$17427_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17427_channelDebug_=new sw;this.JSC$17427_parser_=new MA;this.firstTestResults_=x||null;this.secondTestResults_=G!=null?G:null;this.asyncTest_=D||!1},Zyf=function(x,G){this.JSC$17429_mapId=x;
this.map=G;this.context=null};
_.a=S0.prototype;_.a.JSC$17431_extraHeaders_=null;_.a.JSC$17431_extraParams_=null;_.a.forwardChannelRequest_=null;_.a.JSC$17431_backChannelRequest_=null;_.a.JSC$17431_path_=null;_.a.JSC$17431_forwardChannelUri_=null;_.a.JSC$17431_backChannelUri_=null;_.a.JSC$17431_hostPrefix_=null;_.a.JSC$17431_nextRid_=0;_.a.JSC$17431_nextMapId_=0;_.a.handler_=null;_.a.JSC$17431_forwardChannelTimerId_=null;_.a.JSC$17431_backChannelTimerId_=null;_.a.JSC$17431_deadBackChannelTimerId_=null;_.a.connectionTest_=null;
_.a.useChunked_=null;_.a.JSC$17431_lastArrayId_=-1;_.a.JSC$17431_lastPostResponseArrayId_=-1;_.a.JSC$17431_lastStatusCode_=-1;_.a.JSC$17431_forwardChannelRetryCount_=0;_.a.JSC$17431_backChannelRetryCount_=0;_.a.JSC$17431_channelVersion_=8;var MY4={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},Qbc=function(x,G,D,K){_.aY.call(this,"timingevent",x);this.size=G;this.rtt=D;this.retries=K};
_.tR(Qbc,_.aY);var pRf=function(x){_.aY.call(this,"serverreachability",x)};
_.tR(pRf,_.aY);S0.prototype.connect=function(x,G,D,K,z){this.JSC$17427_channelDebug_.debug("connect()");j0(0);this.JSC$17431_path_=G;this.JSC$17431_extraParams_=D||{};K&&z!==void 0&&(this.JSC$17431_extraParams_.OSID=K,this.JSC$17431_extraParams_.OAID=z);this.asyncTest_?(rz((0,_.mW)(this.connectTest_,this,x),100),VYC(this)):this.connectTest_(x)};
S0.prototype.disconnect=function(){this.JSC$17427_channelDebug_.debug("disconnect()");byY(this);if(this.state_==3){var x=this.JSC$17431_nextRid_++,G=this.JSC$17431_forwardChannelUri_.clone();_.Ny(G,"SID",this.sid_);_.Ny(G,"RID",x);_.Ny(G,"TYPE","terminate");n0(this,G);x=new Oy(this,this.JSC$17427_channelDebug_,this.sid_,x);x.JSC$17419_type_=2;x.JSC$17419_baseUri_=_.kh(G.clone());(new Image).src=x.JSC$17419_baseUri_.toString();x.JSC$17419_requestStartTime_=Date.now();xl4(x)}LLi(this)};
S0.prototype.connectTest_=function(x){this.JSC$17427_channelDebug_.debug("connectTest_()");this.connectionTest_=new oGc(this,this.JSC$17427_channelDebug_);this.connectionTest_.JSC$17426_extraHeaders_=this.JSC$17431_extraHeaders_;this.connectionTest_.JSC$17424_parser_=this.JSC$17427_parser_;this.connectionTest_.connect(x)};
var VYC=function(x){x.JSC$17427_channelDebug_.debug("connectChannel_()");x.JSC$17431_ensureInState_(1,0);x.JSC$17431_forwardChannelUri_=yDf(x,x.JSC$17431_path_);BUb(x)},byY=function(x){x.connectionTest_&&(x.connectionTest_.abort(),x.connectionTest_=null);
x.JSC$17431_backChannelRequest_&&(x.JSC$17431_backChannelRequest_.cancel(),x.JSC$17431_backChannelRequest_=null);x.JSC$17431_backChannelTimerId_&&(_.Df.clearTimeout(x.JSC$17431_backChannelTimerId_),x.JSC$17431_backChannelTimerId_=null);rDY(x);x.forwardChannelRequest_&&(x.forwardChannelRequest_.cancel(),x.forwardChannelRequest_=null);x.JSC$17431_forwardChannelTimerId_&&(_.Df.clearTimeout(x.JSC$17431_forwardChannelTimerId_),x.JSC$17431_forwardChannelTimerId_=null)},sbb=function(x,G){if(x.state_==0)throw Error("xk");
x.JSC$17427_outgoingMaps_.length==1E3&&x.JSC$17427_parser_.stringify(G);x.JSC$17427_outgoingMaps_.push(new Zyf(x.JSC$17431_nextMapId_++,G));x.state_!=2&&x.state_!=3||BUb(x)};
S0.prototype.JSC$17426_isClosed=function(){return this.state_==0};
S0.prototype.getState=function(){return this.state_};
var BUb=function(x){x.forwardChannelRequest_||x.JSC$17431_forwardChannelTimerId_||(x.JSC$17431_forwardChannelTimerId_=rz((0,_.mW)(x.JSC$17431_onStartForwardChannelTimer_,x),0),x.JSC$17431_forwardChannelRetryCount_=0)};
S0.prototype.JSC$17431_onStartForwardChannelTimer_=function(x){this.JSC$17431_forwardChannelTimerId_=null;Yqj(this,x)};
var Yqj=function(x,G){x.JSC$17427_channelDebug_.debug("startForwardChannel_");if(x.state_==1){if(!G){x.JSC$17427_channelDebug_.debug("open_()");x.JSC$17431_nextRid_=Math.floor(Math.random()*1E5);G=x.JSC$17431_nextRid_++;var D=new Oy(x,x.JSC$17427_channelDebug_,"",G);D.JSC$17419_extraHeaders_=x.JSC$17431_extraHeaders_;var K=mlk(x),z=x.JSC$17431_forwardChannelUri_.clone();_.Ny(z,"RID",G);_.Ny(z,"CVER","1");n0(x,z);EJ4(D,z,K);x.forwardChannelRequest_=D;x.state_=2}}else x.state_==3&&(G?Hyx(x,G):x.JSC$17427_outgoingMaps_.length==
0?x.JSC$17427_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):x.forwardChannelRequest_||(Hyx(x),x.JSC$17427_channelDebug_.debug("startForwardChannel_ finished, sent request")))},Hyx=function(x,G){if(G)if(x.JSC$17431_channelVersion_>6){x.JSC$17427_outgoingMaps_=x.pendingMaps_.concat(x.JSC$17427_outgoingMaps_);
x.pendingMaps_.length=0;var D=x.JSC$17431_nextRid_-1;G=mlk(x)}else D=G.JSC$17417_rid_,G=G.JSC$17419_postData_;else D=x.JSC$17431_nextRid_++,G=mlk(x);var K=x.JSC$17431_forwardChannelUri_.clone();_.Ny(K,"SID",x.sid_);_.Ny(K,"RID",D);_.Ny(K,"AID",x.JSC$17431_lastArrayId_);n0(x,K);D=new Oy(x,x.JSC$17427_channelDebug_,x.sid_,D,x.JSC$17431_forwardChannelRetryCount_+1);D.JSC$17419_extraHeaders_=x.JSC$17431_extraHeaders_;D.setTimeout(1E4+Math.round(1E4*Math.random()));x.forwardChannelRequest_=D;EJ4(D,K,G)},
n0=function(x,G){x.handler_&&(x=x.handler_.JSC$17438_getAdditionalParams())&&_.YS.forEach(x,function(D,K){_.Ny(G,K,D)})},mlk=function(x){var G=Math.min(x.JSC$17427_outgoingMaps_.length,1E3),D=["count="+G];
if(x.JSC$17431_channelVersion_>6&&G>0){var K=x.JSC$17427_outgoingMaps_[0].JSC$17429_mapId;D.push("ofs="+K)}else K=0;for(var z={},y=0;y<G;z={mapId$jscomp$3:void 0},y++){z.mapId$jscomp$3=x.JSC$17427_outgoingMaps_[y].JSC$17429_mapId;var c=x.JSC$17427_outgoingMaps_[y].map;z.mapId$jscomp$3=x.JSC$17431_channelVersion_<=6?y:z.mapId$jscomp$3-K;try{_.YS.forEach(c,function(W){return function(e,Q){D.push("req"+W.mapId$jscomp$3+"_"+Q+"="+encodeURIComponent(e))}}(z))}catch(W){D.push("req"+z.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}x.pendingMaps_=x.pendingMaps_.concat(x.JSC$17427_outgoingMaps_.splice(0,G));
return D.join("&")},$lj=function(x){x.JSC$17431_backChannelRequest_||x.JSC$17431_backChannelTimerId_||(x.JSC$17431_backChannelAttemptId_=1,x.JSC$17431_backChannelTimerId_=rz((0,_.mW)(x.JSC$17431_onStartBackChannelTimer_,x),0),x.JSC$17431_backChannelRetryCount_=0)},CG8=function(x){if(x.JSC$17431_backChannelRequest_||x.JSC$17431_backChannelTimerId_||x.JSC$17431_backChannelRetryCount_>=3)return!1;
x.JSC$17427_channelDebug_.debug("Going to retry GET");x.JSC$17431_backChannelAttemptId_++;x.JSC$17431_backChannelTimerId_=rz((0,_.mW)(x.JSC$17431_onStartBackChannelTimer_,x),FLx(x,x.JSC$17431_backChannelRetryCount_));x.JSC$17431_backChannelRetryCount_++;return!0};
S0.prototype.JSC$17431_onStartBackChannelTimer_=function(){this.JSC$17431_backChannelTimerId_=null;this.JSC$17427_channelDebug_.debug("Creating new HttpRequest");this.JSC$17431_backChannelRequest_=new Oy(this,this.JSC$17427_channelDebug_,this.sid_,"rpc",this.JSC$17431_backChannelAttemptId_);this.JSC$17431_backChannelRequest_.JSC$17419_extraHeaders_=this.JSC$17431_extraHeaders_;this.JSC$17431_backChannelRequest_.JSC$17419_readyStateChangeThrottleMs_=0;var x=this.JSC$17431_backChannelUri_.clone();_.Ny(x,
"RID","rpc");_.Ny(x,"SID",this.sid_);_.Ny(x,"CI",this.useChunked_?"0":"1");_.Ny(x,"AID",this.JSC$17431_lastArrayId_);n0(this,x);_.Ny(x,"TYPE","xmlhttp");hAk(this.JSC$17431_backChannelRequest_,x,!0,this.JSC$17431_hostPrefix_,!1);this.JSC$17427_channelDebug_.debug("New Request created")};
var Rv=function(x,G,D){x.JSC$17427_channelDebug_.debug("Test Connection Finished");x.useChunked_=x.secondTestResults_==null?D:!x.secondTestResults_;x.JSC$17431_lastStatusCode_=G.JSC$17426_lastStatusCode_;x.asyncTest_||VYC(x)},erc=function(x,G){x.JSC$17427_channelDebug_.debug("Test Connection Failed");
x.JSC$17431_lastStatusCode_=G.JSC$17426_lastStatusCode_;Uy(x,2)};
S0.prototype.JSC$17426_onRequestData=function(x,G){if(this.state_!=0&&(this.JSC$17431_backChannelRequest_==x||this.forwardChannelRequest_==x))if(this.JSC$17431_lastStatusCode_=x.JSC$17419_lastStatusCode_,this.forwardChannelRequest_==x&&this.state_==3)if(this.JSC$17431_channelVersion_>7){try{var D=this.JSC$17427_parser_.parse(G)}catch(K){D=null}if(Array.isArray(D)&&D.length==3)if(G=D,G[0]==0)a:if(this.JSC$17427_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17431_backChannelTimerId_)this.JSC$17427_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17431_backChannelRequest_)if(this.JSC$17431_backChannelRequest_.JSC$17419_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17419_requestStartTime_)rDY(this),this.JSC$17431_backChannelRequest_.cancel(),this.JSC$17431_backChannelRequest_=null;else break a;else this.JSC$17427_channelDebug_.warning("We do not have a BackChannel established");CG8(this);j0(19)}else this.JSC$17431_lastPostResponseArrayId_=G[1],x=this.JSC$17431_lastPostResponseArrayId_-this.JSC$17431_lastArrayId_,0<
x&&(G=G[2],this.JSC$17427_channelDebug_.debug(G+" bytes (in "+x+" arrays) are outstanding on the BackChannel"),G<37500&&this.useChunked_&&this.JSC$17431_backChannelRetryCount_==0&&!this.JSC$17431_deadBackChannelTimerId_&&(this.JSC$17431_deadBackChannelTimerId_=rz((0,_.mW)(this.JSC$17431_onBackChannelDead_,this),6E3)));else this.JSC$17427_channelDebug_.debug("Bad POST response data returned"),Uy(this,11)}else G!="y2f%"&&(this.JSC$17427_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
Uy(this,11));else this.JSC$17431_backChannelRequest_==x&&rDY(this),_.y3(G)||(x=this.JSC$17427_parser_.parse(G),this.onInput_(x))};
S0.prototype.JSC$17431_onBackChannelDead_=function(){this.JSC$17431_deadBackChannelTimerId_!=null&&(this.JSC$17431_deadBackChannelTimerId_=null,this.JSC$17431_backChannelRequest_.cancel(),this.JSC$17431_backChannelRequest_=null,CG8(this),j0(20))};
var rDY=function(x){x.JSC$17431_deadBackChannelTimerId_!=null&&(_.Df.clearTimeout(x.JSC$17431_deadBackChannelTimerId_),x.JSC$17431_deadBackChannelTimerId_=null)};
S0.prototype.JSC$17426_onRequestComplete=function(x){this.JSC$17427_channelDebug_.debug("Request complete");if(this.JSC$17431_backChannelRequest_==x){rDY(this);this.JSC$17431_backChannelRequest_=null;var G=2}else if(this.forwardChannelRequest_==x)this.forwardChannelRequest_=null,G=1;else return;this.JSC$17431_lastStatusCode_=x.JSC$17419_lastStatusCode_;if(this.state_!=0)if(x.JSC$17419_successful_)if(G==1){G=x.JSC$17419_postData_?x.JSC$17419_postData_.length:0;x=Date.now()-x.JSC$17419_requestStartTime_;
var D=vJT;D.dispatchEvent(new Qbc(D,G,x,this.JSC$17431_forwardChannelRetryCount_));BUb(this);this.handler_&&this.handler_.JSC$17438_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else $lj(this);else{D=x.getLastError();if(D==3||D==7||D==0&&this.JSC$17431_lastStatusCode_>0)this.JSC$17427_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17427_channelDebug_.debug("Maybe retrying, last error: "+fCc(D,this.JSC$17431_lastStatusCode_));var K;if(K=G==1)this.forwardChannelRequest_||
this.JSC$17431_forwardChannelTimerId_||this.state_==1||this.JSC$17431_forwardChannelRetryCount_>=2?K=!1:(this.JSC$17427_channelDebug_.debug("Going to retry POST"),this.JSC$17431_forwardChannelTimerId_=rz((0,_.mW)(this.JSC$17431_onStartForwardChannelTimer_,this,x),FLx(this,this.JSC$17431_forwardChannelRetryCount_)),this.JSC$17431_forwardChannelRetryCount_++,K=!0);if(K||G==2&&CG8(this))return;this.JSC$17427_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17427_channelDebug_.debug("Error: HTTP request failed");
switch(D){case 1:Uy(this,5);break;case 4:Uy(this,10);break;case 3:Uy(this,6);break;case 7:Uy(this,12);break;default:Uy(this,2)}}};
var FLx=function(x,G){var D=5E3+Math.floor(Math.random()*1E4);x.isActive()||(x.JSC$17427_channelDebug_.debug("Inactive channel"),D*=2);return D*G};
S0.prototype.onInput_=function(x){for(var G=0;G<x.length;G++){var D=x[G];this.JSC$17431_lastArrayId_=D[0];D=D[1];this.state_==2?D[0]=="c"?(this.sid_=D[1],this.JSC$17431_hostPrefix_=D[2],D=D[3],D!=null?this.JSC$17431_channelVersion_=D:this.JSC$17431_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17438_channelOpened(),this.JSC$17431_backChannelUri_=WLb(this,this.JSC$17431_hostPrefix_,this.JSC$17431_path_),$lj(this)):D[0]=="stop"&&Uy(this,7):this.state_==3&&(D[0]=="stop"?Uy(this,7):
D[0]!="noop"&&this.handler_&&this.handler_.JSC$17438_channelHandleArray(D),this.JSC$17431_backChannelRetryCount_=0)}};
S0.prototype.JSC$17431_ensureInState_=function(x){if(!_.qL(arguments,this.state_))throw Error("yk`"+this.state_);};
var Uy=function(x,G){x.JSC$17427_channelDebug_.info("Error code "+G);if(G==2||G==9){var D=null;x.handler_&&(D=null);var K=(0,_.mW)(x.testGoogleComCallback_,x);D||(D=new _.w5("//www.google.com/images/cleardot.gif"),_.kh(D));gqY(D.toString(),1E4,K)}else j0(2);x.onError_(G)};
S0.prototype.testGoogleComCallback_=function(x){x?(this.JSC$17427_channelDebug_.info("Successfully pinged google.com"),j0(2)):(this.JSC$17427_channelDebug_.info("Failed to ping google.com"),j0(1),this.onError_(8))};
S0.prototype.onError_=function(x){this.JSC$17427_channelDebug_.debug("HttpChannel: error - "+x);this.state_=0;this.handler_&&this.handler_.JSC$17438_channelError(x);LLi(this);byY(this)};
var LLi=function(x){x.state_=0;x.JSC$17431_lastStatusCode_=-1;if(x.handler_)if(x.pendingMaps_.length==0&&x.JSC$17427_outgoingMaps_.length==0)x.handler_.JSC$17438_channelClosed();else{x.JSC$17427_channelDebug_.debug("Number of undelivered maps, pending: "+x.pendingMaps_.length+", outgoing: "+x.JSC$17427_outgoingMaps_.length);var G=_.kC(x.pendingMaps_),D=_.kC(x.JSC$17427_outgoingMaps_);x.pendingMaps_.length=0;x.JSC$17427_outgoingMaps_.length=0;x.handler_.JSC$17438_channelClosed(G,D)}},yDf=function(x,
G){G=TUx(x,null,G);
x.JSC$17427_channelDebug_.debug("GetForwardChannelUri: "+G);return G},WLb=function(x,G,D){G=TUx(x,x.JSC$17426_shouldUseSecondaryDomains()?G:null,D);
x.JSC$17427_channelDebug_.debug("GetBackChannelUri: "+G);return G},TUx=function(x,G,D){var K=_.wM(D);
if(K.JSC$8039_domain_!="")G&&_.di(K,G+"."+K.JSC$8039_domain_),_.wi(K,K.JSC$8039_port_);else{var z=window.location;K=f6O(z.protocol,G?G+"."+z.hostname:z.hostname,+z.port,D)}x.JSC$17431_extraParams_&&_.YS.forEach(x.JSC$17431_extraParams_,function(y,c){_.Ny(K,c,y)});
_.Ny(K,"VER",x.JSC$17431_channelVersion_);n0(x,K);return K};
S0.prototype.JSC$17426_createXhrIo=function(x){if(x)throw Error("vk");x=new _.bv;x.JSC$7807_withCredentials_=!1;return x};
S0.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
S0.prototype.notifyServerReachabilityEvent=function(x){var G=vJT;G.dispatchEvent(new pRf(G,x))};
S0.prototype.JSC$17426_shouldUseSecondaryDomains=function(){return!1};
new xJ8;var Ir8=function(){};
_.a=Ir8.prototype;_.a.JSC$17438_channelOpened=function(){};
_.a.JSC$17438_channelHandleArray=function(){};
_.a.JSC$17438_channelSuccess=function(){};
_.a.JSC$17438_channelError=function(){};
_.a.JSC$17438_channelClosed=function(){};
_.a.JSC$17438_getAdditionalParams=function(){return{}};
_.a.isActive=function(){return!0};var jbi=function(x){x.front_.length===0&&(x.front_=x.back_,x.front_.reverse(),x.back_=[])};
_.a=wwf.prototype;_.a.enqueue=function(x){this.back_.push(x)};
_.a.peek=function(){jbi(this);return _.RV(this.front_)};
_.a.getCount=function(){return this.front_.length+this.back_.length};
_.a.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.a.clear=function(){this.front_=[];this.back_=[]};
_.a.contains=function(x){return _.qL(this.front_,x)||_.qL(this.back_,x)};
_.a.remove=function(x){var G=this.front_;var D=Array.prototype.lastIndexOf.call(G,x,G.length-1);D>=0?(_.JQ(G,D),G=!0):G=!1;return G||_.f$(this.back_,x)};
_.a.getValues=function(){for(var x=[],G=this.front_.length-1;G>=0;--G)x.push(this.front_[G]);G=this.back_.length;for(var D=0;D<G;++D)x.push(this.back_[D]);return x};var i3=function(x){this.JSC$17442_map_=new _.Pe;this.size=0;x&&this.addAll(x)},OyY=function(x){var G=typeof x;
return G=="object"&&x||G=="function"?"o"+_.Do(x):G.charAt(0)+x};
_.a=i3.prototype;_.a.getCount=function(){return this.JSC$17442_map_.size};
_.a.add=function(x){this.JSC$17442_map_.set(OyY(x),x);this.size=this.JSC$17442_map_.size};
_.a.addAll=function(x){x=_.gi(x);for(var G=x.length,D=0;D<G;D++)this.add(x[D]);this.size=this.JSC$17442_map_.size};
_.a.removeAll=function(x){x=_.gi(x);for(var G=x.length,D=0;D<G;D++)this.remove(x[D]);this.size=this.JSC$17442_map_.size};
_.a.delete=function(x){x=this.JSC$17442_map_.remove(OyY(x));this.size=this.JSC$17442_map_.size;return x};
_.a.remove=function(x){return this.delete(x)};
_.a.clear=function(){this.JSC$17442_map_.clear();this.size=0};
_.a.isEmpty=function(){return this.JSC$17442_map_.size===0};
_.a.has=function(x){return this.JSC$17442_map_.containsKey(OyY(x))};
_.a.contains=function(x){return this.JSC$17442_map_.containsKey(OyY(x))};
_.a.getValues=function(){return this.JSC$17442_map_.getValues()};
_.a.values=function(){return this.JSC$17442_map_.values()};
_.a.clone=function(){return new i3(this)};
_.a.equals=function(x){return this.getCount()==vrf(x)&&XRf(this,x)};
var XRf=function(x,G){var D=vrf(G);if(x.getCount()>D)return!1;!(G instanceof i3)&&D>5&&(G=new i3(G));return Joc(x,function(K){var z=G;return z.contains&&typeof z.contains=="function"?z.contains(K):z.containsValue&&typeof z.containsValue=="function"?z.containsValue(K):_.PL(z)||typeof z==="string"?_.qL(z,K):_.YS.containsValue(z,K)})};
i3.prototype.__iterator__=function(){return this.JSC$17442_map_.__iterator__(!1)};
i3.prototype[Symbol.iterator]=function(){return this.values()};var ADT={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(x){return(this._clampValue(x)-this.min)/(this.max-this.min)},
_clampValue:function(x){return Math.min(this.max,Math.max(this.min,this._calcStep(x)))},
_calcStep:function(x){x=parseFloat(x);if(!this.step)return x;x=Math.round((x-this.min)/this.step);return this.step<1?x/(1/this.step)+this.min:x*this.step+this.min},
_validateValue:function(){var x=this._clampValue(this.value);this.value=this.oldValue=isNaN(x)?this.oldValue:x;return this.value!==x},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var UlT;var Rr6;_.BD({_template:function(){if(Rr6!==void 0)return Rr6;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;UlT===void 0&&(UlT=document.createElement("template"));var K=UlT;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return Rr6=x},
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(){_.w1(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(x){x.keyCode===27&&(x.preventDefault(),this.close())},
_track:function(x){if(!this.persistent&&!this.disableSwipe)switch(x.preventDefault(),x.detail.state){case "start":this._trackStart(x);break;case "track":this._trackMove(x);break;case "end":this._trackEnd(x)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var x=this.$.contentContainer.getBoundingClientRect();this._savedWidth=x.width;this._translateOffset=this.position==="left"?x.left:x.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(x){this._trackDetails&&(this._translateDrawer(x.detail.dx+this._translateOffset),this._trackDetails.push({dx:x.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(x){if(this._trackDetails){var G=x.detail.dx+this._translateOffset,D=this.getWidth();G=this.position==="left"?G>=0||G<=-D:G<=0||G>=D;if(!G){var K=this._trackDetails;this._trackDetails=null;this._flingDrawer(x,K);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}D/=2;x.detail.dx<-D?this.opened=this.position==="right":x.detail.dx>D&&(this.opened=this.position==="left");G?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(x,G){for(var D=Date.now(),K=D-100,z,y=0,c=G.length-1;y<=c;){var W=y+c>>1,e=G[W];e.timeStamp>=K?(z=e,c=W-1):y=W+1}return z?(x.detail.dx-z.dx)/(D-z.timeStamp||1):0},
_flingDrawer:function(x,G){G=this._calculateVelocity(x,G);if(!(Math.abs(G)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;x=x.detail.dx+this._translateOffset;var D=this.getWidth(),K=this.position==="left",z=G>0;z?(G=Math.max(G,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(G=Math.min(G,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");G=this._FLING_INITIAL_SLOPE*(!z&&K?-(x+D):z&&!K?D-x:-x)/G;this._styleTransitionDuration(G);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,G)}},
_styleTransitionDuration:function(x){this.style.transitionDuration=x+"ms";this.$.contentContainer.style.transitionDuration=x+"ms";this.$.scrim.style.transitionDuration=x+"ms"},
_styleTransitionTimingFunction:function(x){this.$.contentContainer.style.transitionTimingFunction=x;this.$.scrim.style.transitionTimingFunction=x},
_translateDrawer:function(x){var G=this.getWidth();this.position==="left"?(x=Math.max(-G,Math.min(x,0)),this.$.scrim.style.opacity=1+x/G):(x=Math.max(0,Math.min(x,G)),this.$.scrim.style.opacity=1-x/G);this.translate3d(x+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var x=this._drawerState;x===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;x!==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=""),x!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var x=_.By(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"])');x.length>0?(this._firstTabStop=x[0],this._lastTabStop=x[x.length-1]):
this._lastTabStop=this._firstTabStop=null;(x=this.getAttribute("tabindex"))&&parseInt(x,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(x){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||x.keyCode!==9||(x.shiftKey?this._firstTabStop&&_.By(x).localTarget===this._firstTabStop&&(x.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.By(x).localTarget===this._lastTabStop&&(x.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(x,G){this.toggleClass("visible",x&&!G,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 Sq4;var nGf;_.BD({_template:function(){if(nGf!==void 0)return nGf;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;Sq4===void 0&&(Sq4=document.createElement("template"));var K=Sq4;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return nGf=x},
is:"tp-yt-paper-progress",behaviors:[ADT],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(x){this.toggleClass("indeterminate",x,this.$.primaryProgress)},
_transformProgress:function(x,G){x.style.transform=x.style.webkitTransform="scaleX("+G/100+")"},
_mainRatioChanged:function(x){this._transformProgress(this.$.primaryProgress,x)},
_progressChanged:function(x,G,D,K,z){x=this._clampValue(x);G=this._clampValue(G);var y=this._calcRatio(x)*100,c=this._calcRatio(G)*100;this._setSecondaryRatio(y);this._transformProgress(this.$.secondaryProgress,y);this._transformProgress(this.$.primaryProgress,c);this.secondaryProgress=x;z?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",G);this.setAttribute("aria-valuemin",D);this.setAttribute("aria-valuemax",K)},
_disabledChanged:function(x){this.setAttribute("aria-disabled",x?"true":"false")},
_hideSecondaryProgress:function(x){return x===0}});var iyk;var gGb;var uCf=function(){};
_.a=uCf.prototype;_.a.registered=function(){};
_.a.addOwnKeyBinding=function(){};
_.a.removeOwnKeyBindings=function(){};
_.a.keyboardEventMatchesKeys=function(){};
_.a._collectKeyBindings=function(){};
_.a._prepKeyBindings=function(){};
_.a._addKeyBinding=function(){};
_.a._resetKeyEventListeners=function(){};
_.a._listenKeyEventListeners=function(){};
_.a._unlistenKeyEventListeners=function(){};
_.a._onKeyBindingEvent=function(){};
_.a._triggerKeyHandler=function(){};
_.a._tapHandler=function(){};
_.a._focusChanged=function(){};
_.a._detectKeyboardFocus=function(){};
_.a._userActivate=function(){};
_.a._upHandler=function(){};
_.a._spaceKeyDownHandler=function(){};
_.a._spaceKeyUpHandler=function(){};
_.a._asyncClick=function(){};
_.a._pressedChanged=function(){};
_.a._ariaActiveAttributeChanged=function(){};
_.a._activeChanged=function(){};
_.a._controlStateChanged=function(){};
_.a._changedButtonState=function(){};
_.a._focusBlurHandler=function(){};
_.a._disabledChanged=function(){};
_.a._changedControlState=function(){};
_.a._buttonStateChanged=function(){};
_.a._downHandler=function(){};
_.a.ensureRipple=function(){};
_.a.getRipple=function(){};
_.a.hasRipple=function(){};
_.a._noinkChanged=function(){};
_.a._calcRatio=function(){};
_.a._clampValue=function(){};
_.a._calcStep=function(){};
_.a._validateValue=function(){};
_.a._update=function(){};
_.a._setImmediateValue=function(){};
_.a._setExpand=function(){};
_.a._setDragging=function(){};
_.a._setTransiting=function(){};
_.a._setMarkers=function(){};
_.a._setPressed=function(){};
_.a._setPointerDown=function(){};
_.a._setReceivedFocusFromKeyboard=function(){};
_.a._setFocused=function(){};
_.a._setRatio=function(){};
uCf=_.BD({_template:function(){if(gGb!==void 0)return gGb;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;iyk===void 0&&(iyk=document.createElement("template"));var K=iyk;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return gGb=x},
is:"tp-yt-paper-slider",behaviors:[_.Tb,_.M7,_.ZH7,ADT],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&&_.FK(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(x,G,D){this.setAttribute("aria-valuemin",G);this.setAttribute("aria-valuemax",D);this.setAttribute("aria-valuenow",x);this._positionKnob(this._calcRatio(x)*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(x){this._setImmediateValue(this._calcStep(this._calcKnobPosition(x)));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(x){return(this.max-this.min)*x/100+this.min},
_onTrack:function(x){x.stopPropagation();switch(x.detail.state){case "start":this._trackStart(x);break;case "track":this._trackX(x);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(x){this.dragging||this._trackStart(x);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,x.detail.dx*(this._isRTL?-1:1)));x=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(x);x=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(x+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var x=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;x.transform=x.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(x){this._expandKnob();x.preventDefault();this.focus()},
_bartrack:function(x){this._allowBarEvent(x)&&this._onTrack(x)},
_barclick:function(x){this._w=this.$.sliderBar.offsetWidth;var G=this.$.sliderBar.getBoundingClientRect();G=(x.detail.x-G.left)/this._w*100;this._isRTL&&(G=100-G);var D=this.ratio;this._setTransiting(!0);this._positionKnob(G);D===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
x.preventDefault();this.focus()},
_bardown:function(x){this._allowBarEvent(x)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(x))},
_knobTransitionEnd:function(x){x.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(x,G,D,K){K||this._setMarkers([]);G=Math.round((D-G)/this.step);G>x&&(G=x);if(G<0||!isFinite(G))G=0;this._setMarkers(Array(G))},
_mergeClasses:function(x){return Object.keys(x).filter(function(G){return x[G]}).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(x){return!this.ignoreBarTouch||x.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(x){this._isRTL?this._incrementKey(x):this._decrementKey(x)},
_rightKey:function(x){this._isRTL?this._decrementKey(x):this._incrementKey(x)},
_incrementKey:function(x){this.disabled||(x.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),x.preventDefault())},
_decrementKey:function(x){this.disabled||(x.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),x.preventDefault())},
_changeValue:function(x){this.value=x.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(x){x.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.eaZ._createRipple.call(this)},
_focusedChanged:function(x){x&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=x?"":"none",this._ripple.holdDown=x)}});var dlY;var wR4;var gF=null,qqY=function(){};
_.a=qqY.prototype;_.a.fit=function(){};
_.a._discoverInfo=function(){};
_.a.resetFit=function(){};
_.a.refit=function(){};
_.a.position=function(){};
_.a.constrain=function(){};
_.a._sizeDimension=function(){};
_.a.__sizeDimension=function(){};
_.a.center=function(){};
_.a.__getNormalizedRect=function(){};
_.a.__getOffscreenArea=function(){};
_.a.__getPosition=function(){};
_.a.notifyResize=function(){};
_.a.assignParentResizable=function(){};
_.a.stopResizeNotificationsFor=function(){};
_.a._subscribeIronResize=function(){};
_.a._unsubscribeIronResize=function(){};
_.a.resizerShouldNotify=function(){};
_.a._onDescendantIronResize=function(){};
_.a._fireResize=function(){};
_.a._onIronRequestResizeNotifications=function(){};
_.a._parentResizableChanged=function(){};
_.a._notifyDescendant=function(){};
_.a._requestResizeNotifications=function(){};
_.a._findParent=function(){};
_.a.toggle=function(){};
_.a.open=function(){};
_.a.close=function(){};
_.a.cancel=function(){};
_.a.invalidateTabbables=function(){};
_.a._ensureSetup=function(){};
_.a._canceledChanged=function(){};
_.a._withBackdropChanged=function(){};
_.a._prepareRenderOpened=function(){};
_.a._finishRenderOpened=function(){};
_.a._finishRenderClosed=function(){};
_.a._preparePositioning=function(){};
_.a._finishPositioning=function(){};
_.a._applyFocus=function(){};
_.a._onCaptureClick=function(){};
_.a._onCaptureFocus=function(){};
_.a._onCaptureEsc=function(){};
_.a._onCaptureTab=function(){};
_.a._onIronResize=function(){};
_.a._onNodesChange=function(){};
_.a.__ensureFirstLastFocusables=function(){};
_.a.__openedChanged=function(){};
_.a.__deraf=function(){};
_.a.__updateScrollObservers=function(){};
_.a.__addScrollListeners=function(){};
_.a.__removeScrollListeners=function(){};
_.a.__isValidScrollAction=function(){};
_.a.__onCaptureScroll=function(){};
_.a.__saveScrollPosition=function(){};
_.a.__restoreScrollPosition=function(){};
_.a._setCanceled=function(){};
qqY=_.BD({_template:function(){if(wR4!==void 0)return wR4;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;dlY===void 0&&(dlY=document.createElement("template"));var K=dlY;D.call(G,K.content.cloneNode(!0),x.content.firstChild);return wR4=x},
is:"tp-yt-paper-toast",behaviors:[_.Ud],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(){_.We._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.I8.requestAvailability()},
show:function(x){typeof x=="string"&&(x={text:x});for(var G in x)G.indexOf("_")===0?_.We._warn('The property "'+G+'" is private and was not set.'):G in this?this[G]=x[G]:_.We._warn('The property "'+G+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(x){x&&x.target===this&&x.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(gF&&gF!==this&&gF.close(),gF=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):gF===this&&(gF=null);_.A7._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(x){this.positionTarget=x},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var NUx=new _.J("disablePersonalizationAction");var RDj=new _.J("showDmaConsentFlowCommand");var SAc=new _.J("showMmgNoticeCommand");var vGx=new _.J("saveConsentAction");var JDx=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Km(x)};
_.m(JDx,_.SX);var frT=_.DH$(JDx);var tY6=new _.J("updateTopbarAvatarAction");var ksk=new _.J("channelHandleValidationResultRenderer");var PGC=new _.J("generateHandleFromNameResultRenderer");var EGT=new _.J("channelHandleInputRenderer");var hri=new _.J("copyLinkRenderer");var xMx=new _.J("timedCommand");var GIT=new _.J("clearCookieAction");var DMb=new _.J("getMultiPageMenuAction");var KKf=new _.J("addToGuideSectionAction"),zqc=new _.J("removeFromGuideSectionAction");var aKx=new _.J("updateNotificationsUnseenCountAction");var oyO=new _.J("resetChannelUnreadCountCommand");var yyC=new _.J("resetSubscriptionsUnreadDotCommand");var lKb=new _.J("selectLanguageCommand");var P0f=new _.J("sendFeedbackAction");var cyY=new _.J("uploadImageToScottyCommand");var Trc=new _.J("registerPromoCommand");var WKc=new _.J("setPushNotificationsEnabledCommand");var eqc=new _.J("desktopTopbarRenderer");var ZZb=new _.J("surveyFollowUpRenderer");var MjY=new _.J("handlesClaimingRadioOptionRenderer");var Qc8=new _.J("hotkeyDialogRenderer");var pex=new _.J("modifyReportFormCommand");var Vjf=new _.J("accountLinkCommand");var bZc=new _.J("accountUnlinkCommand");var LKx=new _.J("logAccountLinkingEventCommand");var BrO=new _.J("guideCollapsibleEntryRenderer");var ryT=new _.J("guideDownloadsEntryRenderer");var u3=new _.J("guideEntryRenderer");var scj=new _.J("getLocationCommand");var YBk=new _.J("locationCollectionCommand");var mM6=new _.J("storiesItemViewModel");var HZO=new _.J("addToRemoteQueueAction");var $M8=new _.J("insertInRemoteQueueAction");var FKT=new _.J("removeFromRemoteQueueAction");var CFY=new _.J("notificationRenderer");var BKT=new _.J("localWatchHistoryCommand");var IKi=new _.J("pdgBuyFlowHeaderRenderer");var jc6=new _.J("pdgColorSliderRenderer");var OZj=new _.J("pdgCommentOptionRenderer");var Xej=new _.J("pdgCommentPreviewRenderer");var AyY=new _.J("superVodSelectableItemButtonRenderer");var UMc=new _.J("switchButtonRenderer");var Rqi=new _.J("upsellDialogRenderer");var SBi=new _.J("feedbackQuestionRenderer"),nyc=new _.J("feedbackOptionRenderer");var iZC=new _.J("sponsorshipsTierRenderer"),gyc=new _.J("sponsorshipsPromotionChannelRenderer");var ub6=new _.J("simpleSurveyMessageRenderer");var P7c=new _.J("invokeInstrumentManagerAction");var dMf=new _.J("logYpcFlowDismissCommand");var wex=new _.J("logYpcFlowStartCommand");var qB6=new _.J("unlimitedCreateFamilyEndpoint");var NrO=new _.J("iconBadgeRenderer");var rNC=new _.J("collaborativePlaylistVisibilityValidationRule");var vy4=function(x){_.aY.call(this,"channelMessage");this.message=x};
_.m(vy4,_.aY);var Jyk=function(x){_.aY.call(this,"channelError");this.error=x};
_.m(Jyk,_.aY);var fKk={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw"},tjx={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",
GAMING:"g",UNPLUGGED:"up"},kIf={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},PFO={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},Eyi={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var dF=function(x){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 _.Pe;this.localChannelEncryptionKey=this.remoteControllerUrl="";this.deviceContext=void 0;this.model=this.brand="";this.year=0;this.chipset=this.osVersion=this.os="";this.mdxDialServerType=
"MDX_DIAL_SERVER_TYPE_UNKNOWN";this.pairingType="unknown";this.castUserId=void 0;x&&(this.id=x.id||x.name,this.name=x.name,this.clientName=x.clientName?x.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=x.app,this.type=x.type||"REMOTE_CONTROL",this.username=x.user||"",this.avatar=x.userAvatarUri||"",this.obfuscatedGaiaId=x.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=x.ownerObfuscatedGaiaId||"",this.castUserId=x.castUserId||"",this.theme=x.theme||"u",hqO(this,x.capabilities||""),x7f(this,
x.compatibleSenderThemes||""),Gb6(this,x.experiments||""),this.remoteControllerUrl=x.remoteControllerUrl||"",this.localChannelEncryptionKey=x.localChannelEncryptionKey||"",this.deviceContext=x.deviceContext,this.brand=x.brand||"",this.model=x.model||"",this.year=x.year||0,this.os=x.os||"",this.osVersion=x.osVersion||"",this.chipset=x.chipset||"",this.mdxDialServerType=x.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=x.pairingType||"unknown",x=x.deviceInfo)&&(x=JSON.parse(x),this.brand=
x.brand||"",this.model=x.model||"",this.year=x.year||0,this.os=x.os||"",this.osVersion=x.osVersion||"",this.chipset=x.chipset||"",this.clientName=x.clientName?x.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=x.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
dF.prototype.copy=function(){var x={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&&(x.brand=this.brand);
this.model&&(x.model=this.model);this.year&&(x.year=this.year);this.os&&(x.os=this.os);this.osVersion&&(x.osVersion=this.osVersion);this.chipset&&(x.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(x.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(x.mdxDialServerType=this.mdxDialServerType);x=new dF(x);x.connected=this.connected;x.remoteControllerUrl=this.remoteControllerUrl;x.localChannelEncryptionKey=this.localChannelEncryptionKey;x.deviceContext=
this.deviceContext;x.castUserId=this.castUserId;return x};
dF.prototype.equals=function(x){return x?this.id==x.id:!1};
var hqO=function(x,G){x.capabilities.clear();_.k1(G.split(","),_.Zq(_.YS.contains,fKk)).forEach(function(D){x.capabilities.add(D)})},x7f=function(x,G){x.compatibleSenderThemes.clear();
_.k1(G.split(","),_.Zq(_.YS.contains,tjx)).forEach(function(D){x.compatibleSenderThemes.add(D)})},Gb6=function(x,G){x.experiments.clear();
G.split(",").forEach(function(D){x.experiments.add(D)})};var D7k=function(x,G){this.action=x;this.params=G||{}};_.tR(q9c,_.Ya);_.a=q9c.prototype;_.a.JSC$17478_onTick_=function(){this.JSC$17476_interval_=Math.min(3E5,this.JSC$17476_interval_*2);this.JSC$17478_listener_();this.nextTickTime_&&this.start()};
_.a.start=function(){var x=this.JSC$17476_interval_+15E3*Math.random(),G=this.delay_;G.isActive()||G.start(x);this.nextTickTime_=Date.now()+x};
_.a.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.a.isActive=function(){return this.delay_.isActive()};
_.a.reset=function(){this.delay_.stop();this.JSC$17476_interval_=5E3};_.tR(YF,Ir8);_.a=YF.prototype;_.a.subscribe=function(x,G,D){return this.pubsub_.subscribe(x,G,D)};
_.a.unsubscribe=function(x,G,D){return this.pubsub_.unsubscribe(x,G,D)};
_.a.unsubscribeByKey=function(x){return this.pubsub_.unsubscribeByKey(x)};
_.a.publish=function(x,G){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.a.dispose=function(){this.JSC$17479_disposed_||(this.JSC$17479_disposed_=!0,_.kS(this.pubsub_),this.disconnect(),_.kS(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17479_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.aI({})})};
_.a.isDisposed=function(){return this.JSC$17479_disposed_};
_.a.connect=function(x,G,D){var K=this,z,y,c,W;return _.T(function(e){if(e.nextAddress==1)return _.o0(e,2),K.useAsyncBrowserChannelHandler_?_.Z(e,K.connectPromise_,2):e.jumpTo(2);_.zA(e);if(K.JSC$17479_disposed_||K.JSC$17479_channel_&&K.JSC$17479_channel_.getState()==2)return e.return();K.sCookie_="";K.reconnectTimer_.stop();K.connectionParams_=x||null;K.connectUi_=G||0;z=K.JSC$17479_pathPrefix_+"/test";y=K.JSC$17479_pathPrefix_+"/bind";c=new S0(D?D.firstTestResults:null,D?D.secondTestResults:null,
K.enableAsyncTest_);if(W=K.JSC$17479_channel_)W.handler_=null;c.handler_=K;K.JSC$17479_channel_=c;if(K.useAsyncBrowserChannelHandler_)return K.connectPromise_=KUT(K).then(function(){return ziT(K,z,y,W,D)}),e.return(K.connectPromise_.then(function(){K.connectPromise_=_.aI()}));
ziT(K,z,y,W,D);return _.y6(e,0)})};
var ziT=function(x,G,D,K,z){amb(x);if(x.JSC$17479_channel_){var y=_.Am("ID_TOKEN"),c=x.JSC$17479_channel_.JSC$17431_extraHeaders_||{};y?c["x-youtube-identity-token"]=y:delete c["x-youtube-identity-token"];x.JSC$17479_channel_.JSC$17431_extraHeaders_=c}ooC(x);K?(K.getState(),x.JSC$17479_channel_.connect(G,D,x.defaultQueryParams_,K.sid_,K.JSC$17431_lastArrayId_)):z?x.JSC$17479_channel_.connect(G,D,x.defaultQueryParams_,z.sessionId,z.arrayId):x.JSC$17479_channel_.connect(G,D,x.defaultQueryParams_)};
YF.prototype.disconnect=function(x){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.aI())}finally{this.disconnectUi_=x||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),amb(this),this.JSC$17479_channel_&&(this.JSC$17479_channel_.getState()==3&&Yqj(this.JSC$17479_channel_),this.JSC$17479_channel_.disconnect()),this.disconnectUi_=0}};
YF.prototype.sendMessage=function(x,G){var D=this,K;return _.T(function(z){switch(z.nextAddress){case 1:_.o0(z,2);if(!D.useAsyncBrowserChannelHandler_){z.jumpTo(2);break}return _.Z(z,D.connectPromise_,2);case 2:_.zA(z);if(D.JSC$17479_disposed_)return z.return();K={_sc:x};G&&_.YS.extend(K,G);if(D.reconnectTimer_.isActive()||(D.JSC$17479_channel_?D.JSC$17479_channel_.getState():0)==2){D.JSC$17479_pendingMessages_.push(K);z.jumpTo(6);break}if(!D.isChannelOpened()){z.jumpTo(6);break}_.o0(z,8);if(!D.useAsyncBrowserChannelHandler_||
y76(D,x)){z.jumpTo(8);break}return _.Z(z,KUT(D),8);case 8:_.zA(z,0,0,1);D.isChannelOpened()&&(y76(D,x)||ooC(D),amb(D),sbb(D.JSC$17479_channel_,K));_.y6(z,6,1);break;case 6:_.y6(z,0)}})};
var y76=function(x,G){return x.enableMdxAuthForConnectionOnly_?!0:x.disableMdxAuthForAdMessages_?Object.values(kIf).includes(G):x.disableMdxAuthForNonPlaybackMessages_?!Object.values(PFO).includes(G):x.disableMdxAuthForShortsMessages_?Object.values(Eyi).includes(G):!1};
YF.prototype.JSC$17438_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17479_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)lmx(this);else{var x=this.JSC$17479_pendingMessages_;this.JSC$17479_pendingMessages_=[];var G=x.length;ooC(this);c7b(this,x,G);THc(this)}else THc(this)};
var lmx=function(x){var G,D;_.T(function(K){if(K.nextAddress==1)return _.o0(K,2),_.Z(K,KUT(x),2);_.zA(K);G=x.JSC$17479_pendingMessages_;x.JSC$17479_pendingMessages_=[];D=G.length;c7b(x,G,D);THc(x);return _.y6(K,0)})},c7b=function(x,G,D){for(var K=0;K<D;++K)sbb(x.JSC$17479_channel_,G[K]);
THc(x)},THc=function(x){x.publish("handlerOpened");
x.JSC$17479_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.a=YF.prototype;_.a.JSC$17438_channelError=function(x){var G=x==2&&this.JSC$17479_channel_.JSC$17431_lastStatusCode_==401;x==4||G||this.reconnectTimer_.start();this.publish("handlerError",x,G);G=Object.keys(MY4).find(function(D){return MY4[D]===x});
this.JSC$17479_channelErrorCounter.increment("BROWSER_CHANNEL",G!=null?G:"UNKNOWN")};
_.a.JSC$17438_channelClosed=function(x,G){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(G)for(var D=G.length,K=0;K<D;++K){var z=G[K].map;z&&this.JSC$17479_pendingMessages_.push(z)}this.JSC$17479_channelClosedCounter.increment("BROWSER_CHANNEL");x&&this.pendingMapsOnClosedCounter.JSC$7940_streamzService.JSC$7798_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",x.length);G&&this.undeliveredMapsOnClosedCounter.JSC$7943_streamzService.JSC$7798_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
G.length)};
_.a.JSC$17438_channelSuccess=function(x,G){G!=null&&x!=null&&this.channelMessageSentCounter.increment()};
_.a.JSC$17438_getAdditionalParams=function(){var x={v:2};this.sCookie_&&(x.gsessionid=this.sCookie_);this.connectUi_!=0&&(x.ui=""+this.connectUi_);this.disconnectUi_!=0&&(x.ui=""+this.disconnectUi_);this.connectionParams_&&_.YS.extend(x,this.connectionParams_);return x};
_.a.JSC$17438_channelHandleArray=function(x){x[0]=="S"?this.sCookie_=x[1]:x[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17479_channel_.disconnect()):this.publish("handlerMessage",new D7k(x[0],x[1]));this.JSC$17479_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.a.isChannelOpened=function(){return!!this.JSC$17479_channel_&&this.JSC$17479_channel_.getState()==3};
var amb=function(x){if(x.JSC$17479_channel_){var G=x.JSC$17479_getXsrfToken_(),D=x.JSC$17479_channel_.JSC$17431_extraHeaders_||{};G?D["x-youtube-lounge-xsrf-token"]=G:delete D["x-youtube-lounge-xsrf-token"];x.JSC$17479_channel_.JSC$17431_extraHeaders_=D}},KUT=function(x){if(x.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.aI();
if(!x.enableCachedUpdateAuthorizationHeader_)return WUY(x);x.updateAuthorizationHeaderPromise_===null&&(x.updateAuthorizationHeaderPromise_=WUY(x));return x.updateAuthorizationHeaderPromise_},WUY=function(x){return _.M_(x.getAuthorizationHeader_().then(function(G){eif(x,G)}).thenCatch(function(){}),function(){x.updateAuthorizationHeaderPromise_=null})},eif=function(x,G){if(x.JSC$17479_channel_){var D=x.JSC$17479_channel_.JSC$17431_extraHeaders_||{};
G&&Object.keys(G).length>0?D=Object.assign({},D,G):delete D.Authorization;x.JSC$17479_channel_.JSC$17431_extraHeaders_=D}},ooC=function(x){x.getAuthorizationHeaderSync_&&!x.useAsyncBrowserChannelHandler_&&eif(x,x.getAuthorizationHeaderSync_())};
_.a=YF.prototype;_.a.setLoungeToken=function(x){(this.defaultQueryParams_.loungeIdToken=x)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17479_channel_){var G=this.JSC$17479_channel_.JSC$17431_extraHeaders_||{};x?G["X-YouTube-LoungeId-Token"]=x:delete G["X-YouTube-LoungeId-Token"];this.JSC$17479_channel_.JSC$17431_extraHeaders_=G}};
_.a.getDeviceId=function(){return this.defaultQueryParams_.id};
_.a.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.a.reconnect=function(){var x=this.reconnectTimer_;x.delay_.fire();x.start()};
_.a.safeReconnect_=function(){var x=this.JSC$17479_channel_,G=0;x.JSC$17431_backChannelRequest_&&G++;x.forwardChannelRequest_&&G++;G==0&&this.connect(this.connectionParams_,this.connectUi_)};var jp=function(x,G){var D=x.basePath;x.supportCors&&(D=x.scheme+"://"+x.domain+x.port+x.basePath);return _.Nh(D+G,{})};
m$.prototype.sendRequest=function(x,G,D,K,z,y,c){x={format:y?"RAW":"JSON",method:x,context:this,timeout:5E3,withCredentials:!!c,onSuccess:_.Zq(this.JSC$17484_onSuccess_,K,!y),onError:_.Zq(this.onError_,z),onTimeout:_.Zq(this.JSC$17484_onTimeout_,z)};D&&(x.postParams=D,x.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.Tz(G,x)};
m$.prototype.JSC$17484_onSuccess_=function(x,G,D,K){G?x(K):x({text:D.responseText})};
m$.prototype.onError_=function(x,G){x(Error("zk`"+G.status))};
m$.prototype.JSC$17484_onTimeout_=function(x){x(Error("Ak"))};var $F=function(x,G){return!!G&&(x.id==G||x.uuid==G)},Zg4=function(x){return{name:x.name,
screenId:x.id,loungeToken:x.token,dialId:x.uuid,screenIdType:x.idType}},MVO=function(x){return new Hz(x)},Q8C=function(x){return Array.isArray(x)?_.Hu(x,MVO):[]},hpf=function(x){if(!x)return"null";
var G=x.token?".."+x.token.slice(-6):"-",D=x.uuid?".."+x.uuid.slice(-6):"-";return'{name:"'+x.name+'",id:'+x.id.substr(0,6)+"..,token:"+(G+",uuid:"+D+",idType:"+x.idType+"}")},F7k=function(x){return Array.isArray(x)?"["+_.Hu(x,hpf).join(",")+"]":"null"};var yU8="",Io=null;var pmO=function(x,G){_.T2.call(this);var D=this;this.handler=x();this.handler.subscribe("handlerOpened",this.JSC$17491_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(K,z){D.onError(z)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=G};
_.m(pmO,_.T2);_.a=pmO.prototype;_.a.connect=function(x,G,D){this.handler.connect(x,G,D)};
_.a.disconnect=function(x){this.handler.disconnect(x)};
_.a.reconnect=function(){this.handler.reconnect()};
_.a.getDeviceId=function(){return this.handler.getDeviceId()};
_.a.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.a.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.a.JSC$17491_onOpened=function(){this.dispatchEvent("channelOpened");var x=this.handler,G=this.currentScreenId;_.hi("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!x.JSC$17479_channel_.useChunked_,sessionId:x.JSC$17479_channel_.sid_,arrayId:x.JSC$17479_channel_.JSC$17431_lastArrayId_});_.hi("yt-remote-session-screen-id",G);x=GRT();G=DqT();_.qL(x,G)||x.push(G);oBb(x);aP6()};
_.a.onClosed=function(){this.dispatchEvent("channelClosed")};
_.a.onMessage=function(x){this.dispatchEvent(new vy4(x))};
_.a.onError=function(x){this.dispatchEvent(new Jyk(x?1:0))};
_.a.sendMessage=function(x,G){this.handler.sendMessage(x,G)};
_.a.setLoungeToken=function(x){this.handler.setLoungeToken(x)};
_.a.dispose=function(){this.handler.dispose()};var QNT=function(x,G,D){var K=this;D=D===void 0?function(){return""}:D;
var z=z===void 0?new uu8:z;var y=y===void 0?new _.e_:y;this.pathPrefix=x;this.defaultQueryParams=G;this.getXsrfToken=D;this.JSC$17494_pubsub=y;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new q9c(function(){var c;((c=K.channel)==null?void 0:p$x((new qt8(c,c.JSC$17402_channel_)).JSC$17412_channel_.forwardChannelRequestPool_))===0&&K.connect(K.connectionParams,K.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17494_disposed=!1;this.logger=null;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17494_channelOpenedCounter=new NuT;this.JSC$17494_channelClosedCounter=new vqf;this.JSC$17494_channelMessageReceivedCounter=new fgY;this.JSC$17494_channelErrorCounter=new tm4};
QNT.prototype.connect=function(x,G){x=x===void 0?{}:x;G=G===void 0?0:G;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=x,this.connectUi=G,ppf(this),(x=_.Am("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=x: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 Iv(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,VVO(this))};
var VVO=function(x){_.Lz(x.channel,"w",function(){x.channelState=3;x.reconnectTimer.reset();x.connectionParams=null;x.connectUi=0;for(var G=_.l(x.nonAckedMessagesOnChannelClosed),D=G.next();!D.done;D=G.next())D=D.value,x.channel&&x.channel.send(D);x.nonAckedMessagesOnChannelClosed=[];x.publish("webChannelOpened");x.JSC$17494_channelOpenedCounter.increment("WEB_CHANNEL")});
_.Lz(x.channel,"x",function(){x.channelState=0;x.reconnectTimer.isActive()||x.publish("webChannelClosed");var G,D=(G=x.channel)==null?void 0:NqT(new qt8(G,G.JSC$17402_channel_));D&&(x.nonAckedMessagesOnChannelClosed=[].concat(_.B5(D)));x.JSC$17494_channelClosedCounter.increment("WEB_CHANNEL")});
_.Lz(x.channel,"z",function(G){var D=G.data;D[0]==="gracefulReconnect"?(x.reconnectTimer.start(),x.channel&&x.channel.close()):x.publish("webChannelMessage",new D7k(D[0],D[1]));x.lastStatusCode=G.statusCode;x.JSC$17494_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.Lz(x.channel,"y",function(){x.lastStatusCode===401||x.reconnectTimer.start();x.publish("webChannelError");x.JSC$17494_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.a=QNT.prototype;_.a.disconnect=function(x){this.disconnectUi=x===void 0?0:x;this.reconnectTimer.stop();ppf(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.a.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.a.reconnect=function(){var x=this.reconnectTimer;x.delay_.fire();x.start()};
_.a.sendMessage=function(x,G){this.channel&&(ppf(this),x=Object.assign({},{_sc:x},G),this.channel.send(x))};
_.a.setLoungeToken=function(x){x||this.reconnectTimer.stop();x?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=x:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var ppf=function(x){var G=x.getXsrfToken();G?x.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=G:delete x.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.a=QNT.prototype;_.a.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.a.publish=function(x){return this.JSC$17494_pubsub.publish.apply(this.JSC$17494_pubsub,[x].concat(_.B5(_.rC.apply(1,arguments))))};
_.a.subscribe=function(x,G,D){return this.JSC$17494_pubsub.subscribe(x,G,D)};
_.a.unsubscribe=function(x,G,D){return this.JSC$17494_pubsub.unsubscribe(x,G,D)};
_.a.unsubscribeByKey=function(x){return this.JSC$17494_pubsub.unsubscribeByKey(x)};
_.a.dispose=function(){this.JSC$17494_disposed||(this.JSC$17494_disposed=!0,_.kS(this.JSC$17494_pubsub),this.disconnect(),_.kS(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.a.isDisposed=function(){return this.JSC$17494_disposed};var MS4=function(x){_.T2.call(this);this.webChannelService=x();this.webChannelService.subscribe("webChannelOpened",this.JSC$17502_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.m(MS4,_.T2);_.a=MS4.prototype;_.a.connect=function(x,G){this.webChannelService.connect(x,G)};
_.a.disconnect=function(x){this.webChannelService.disconnect(x)};
_.a.reconnect=function(){this.webChannelService.reconnect()};
_.a.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.a.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.a.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.a.JSC$17502_onOpened=function(){this.dispatchEvent("channelOpened")};
_.a.onClosed=function(){this.dispatchEvent("channelClosed")};
_.a.onMessage=function(x){this.dispatchEvent(new vy4(x))};
_.a.onError=function(){this.dispatchEvent(new Jyk(this.webChannelService.lastStatusCode===401?1:0))};
_.a.sendMessage=function(x,G){this.webChannelService.sendMessage(x,G)};
_.a.setLoungeToken=function(x){this.webChannelService.setLoungeToken(x)};
_.a.dispose=function(){this.webChannelService.dispose()};var $qx=Date.now(),Ow=null,mqi=Array(50),Uw=-1,Hof=!1;_.tR(Ro,_.vQ);Ro.prototype.getScreens=function(){return this.screens};
Ro.prototype.contains=function(x){return!!xq6(this.screens,x)};
Ro.prototype.get=function(x){return x?Fd(this.screens,x):null};
var bgk=function(x,G){var D=x.get(G.uuid)||x.get(G.id);if(D)return x=D.name,D.id=G.id||D.id,D.name=G.name,D.token=G.token,D.uuid=G.uuid||D.uuid,D.name!=x;x.screens.push(G);return!0},LUb=function(x,G){var D=x.screens.length!=G.length;
x.screens=_.k1(x.screens,function(y){return!!xq6(G,y)});
for(var K=G.length,z=0;z<K;z++)D=bgk(x,G[z])||D;return D},BHO=function(x,G){var D=x.screens.length;
x.screens=_.k1(x.screens,function(K){return!(K||G?!K!=!G?0:K.id==G.id:1)});
return x.screens.length<D};
Ro.prototype.info=function(x){Xd(this.JSC$17503_logName_,x)};var r7O=function(x,G,D,K,z){_.vQ.call(this);this.JSC$17506_http_=x;this.pairingCode_=G;this.deviceId_=D;this.friendlyName_=K;this.enableShortLivedLoungeToken_=z;this.pollIndex_=0;this.JSC$17506_xhr_=null;this.JSC$17506_timer_=NaN};
_.m(r7O,_.vQ);_.a=r7O.prototype;_.a.start=function(){!this.JSC$17506_xhr_&&isNaN(this.JSC$17506_timer_)&&this.poll_()};
_.a.stop=function(){this.JSC$17506_xhr_&&(this.JSC$17506_xhr_.abort(),this.JSC$17506_xhr_=null);isNaN(this.JSC$17506_timer_)||(_.lI(this.JSC$17506_timer_),this.JSC$17506_timer_=NaN)};
_.a.disposeInternal=function(){this.stop();_.vQ.prototype.disposeInternal.call(this)};
_.a.poll_=function(){this.JSC$17506_timer_=NaN;this.JSC$17506_xhr_=_.Tz(jp(this.JSC$17506_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.mW)(this.JSC$17508_onSuccess_,this),onError:(0,_.mW)(this.onError_,this),onTimeout:(0,_.mW)(this.JSC$17508_onTimeout_,this)})};
_.a.JSC$17508_onSuccess_=function(x,G){this.JSC$17506_xhr_=null;x=G.screen||{};x.dialId=this.deviceId_;x.name=this.friendlyName_;G=-1;this.enableShortLivedLoungeToken_&&x.shortLivedLoungeToken&&x.shortLivedLoungeToken.value&&x.shortLivedLoungeToken.refreshIntervalMs&&(x.screenIdType="shortLived",x.loungeToken=x.shortLivedLoungeToken.value,G=x.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new Hz(x),G)};
_.a.onError_=function(x){this.JSC$17506_xhr_=null;x.status&&x.status==404?this.pollIndex_>=s8b.length?this.publish("pairingFailed",Error("Bk")):(x=s8b[this.pollIndex_],this.JSC$17506_timer_=_.oA((0,_.mW)(this.poll_,this),x),this.pollIndex_++):this.publish("pairingFailed",Error("Ck`"+x.status))};
_.a.JSC$17508_onTimeout_=function(){this.JSC$17506_xhr_=null;this.publish("pairingFailed",Error("Dk"))};
var s8b=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.tR(nV,Ro);_.a=nV.prototype;_.a.start=function(){Sp(this)&&this.publish("screenChange");!_.xt("yt-remote-lounge-token-expiration")&&Ydc(this);_.lI(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.oA((0,_.mW)(this.start,this),1E4)};
_.a.add=function(x,G){Sp(this);bgk(this,x);m7T(this,!1);this.publish("screenChange");G(x);x.token||Ydc(this)};
_.a.remove=function(x,G){var D=Sp(this);BHO(this,x)&&(m7T(this,!1),D=!0);G(x);D&&this.publish("screenChange")};
_.a.updateName=function(x,G,D,K){var z=Sp(this),y=this.get(x.id);y?(y.name!=G&&(y.name=G,m7T(this,!1),z=!0),D(x)):K(Error("Ek"));z&&this.publish("screenChange")};
_.a.disposeInternal=function(){_.lI(this.loungeTokenRefreshTimer_);nV.superClass_.disposeInternal.call(this)};
var Ydc=function(x){if(x.screens.length){var G=_.Hu(x.screens,function(K){return K.id}),D=jp(x.JSC$17510_http_,"/pairing/get_lounge_token_batch");
x.JSC$17510_http_.sendRequest("POST",D,{screen_ids:G.join(",")},(0,_.mW)(x.handleLoungeTokens_,x),(0,_.mW)(x.handleLoungeTokenError_,x))}};
nV.prototype.handleLoungeTokens_=function(x){Sp(this);var G=this.screens.length;x=x&&x.screens||[];for(var D=x.length,K=0;K<D;++K){var z=x[K],y=this.get(z.screenId);y&&(y.token=z.loungeToken,--G)}m7T(this,!G);G&&Xd(this.JSC$17503_logName_,"Missed "+G+" lounge tokens.")};
nV.prototype.handleLoungeTokenError_=function(x){Xd(this.JSC$17503_logName_,"Requesting lounge tokens failed: "+x)};
var Sp=function(x){if(_.B("deprecate_pair_servlet_enabled"))return LUb(x,[]);var G=Q8C(cU8());G=_.k1(G,function(D){return!D.uuid});
return LUb(x,G)},m7T=function(x,G){W7x(_.Hu(x.screens,Zg4));
G&&T1Y()};var wF=function(x,G){_.vQ.call(this);this.getScreensToCheck_=G;G=(G=_.xt("yt-remote-online-screen-ids")||"")?G.split(","):[];for(var D={},K=this.getScreensToCheck_(),z=K.length,y=0;y<z;++y){var c=K[y].id;D[c]=_.qL(G,c)}this.screenIdSet_=D;this.JSC$17513_http_=x;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;HgY("Initialized with "+(0,_.VZ)(this.screenIdSet_))};
_.m(wF,_.vQ);wF.prototype.isOnline=function(x){return!!this.screenIdSet_[x]};
wF.prototype.start=function(){var x=parseInt(_.xt("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.f6()-144E5<x?0:x)?$7k(this):(this.fastCheckEndTime_=_.f6()+3E5,_.hi("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
wF.prototype.isEmpty=function(){return _.YS.isEmpty(this.screenIdSet_)};
wF.prototype.update=function(){HgY("Updating availability on schedule.");var x=this.getScreensToCheck_(),G=_.YS.filter(this.screenIdSet_,function(D,K){return D&&!!Fd(x,K)},this);
FUj(this,G)};
var CKx=function(x,G,D){var K=jp(x.JSC$17513_http_,"/pairing/get_screen_availability");x.JSC$17513_http_.sendRequest("POST",K,{lounge_token:G.token},(0,_.mW)(function(z){z=z.screens||[];for(var y=z.length,c=0;c<y;++c)if(z[c].loungeToken==G.token){D(z[c].status=="online");return}D(!1)},x),(0,_.mW)(function(){D(!1)},x))};
wF.prototype.disposeInternal=function(){_.lI(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.vQ.prototype.disposeInternal.call(this)};
var FUj=function(x,G){a:if(_.YS.getCount(G)!=_.YS.getCount(x.screenIdSet_))var D=!1;else{D=_.YS.getKeys(G);for(var K=D.length,z=0;z<K;++z)if(!x.screenIdSet_[D[z]]){D=!1;break a}D=!0}D||(HgY("Updated online screens: "+(0,_.VZ)(x.screenIdSet_)),x.screenIdSet_=G,x.publish("screenChange"));Imk(x)},$7k=function(x){isNaN(x.refreshTimer_)||_.lI(x.refreshTimer_);
x.refreshTimer_=_.oA((0,_.mW)(x.requestScreenAvailability_,x),x.fastCheckEndTime_>0&&x.fastCheckEndTime_<_.f6()?2E4:1E4)};
wF.prototype.requestScreenAvailability_=function(){_.lI(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var x=j8i(this);if(_.YS.getCount(x)){var G=jp(this.JSC$17513_http_,"/pairing/get_screen_availability"),D={lounge_token:_.YS.getKeys(x).join(",")};this.currentRequest_=this.JSC$17513_http_.sendRequest("POST",G,D,(0,_.mW)(this.onScreenAvailability_,this,x),(0,_.mW)(this.onScreenAvailabilityError_,this))}else FUj(this,{}),$7k(this)};
wF.prototype.onScreenAvailability_=function(x,G){this.currentRequest_=null;var D=_.YS.getKeys(j8i(this));if(_.yJ(D,_.YS.getKeys(x))){G=G.screens||[];D={};for(var K=G.length,z=0;z<K;++z)D[x[G[z].loungeToken]]=G[z].status=="online";FUj(this,D);$7k(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
wF.prototype.onScreenAvailabilityError_=function(x){this.warn_("Screen availability failed: "+x);this.currentRequest_=null;$7k(this)};
var HgY=function(x){Xd("OnlineScreenService",x)};
wF.prototype.warn_=function(x){Xd("OnlineScreenService",x)};
var j8i=function(x){var G={};_.uM(x.getScreensToCheck_(),function(D){D.token?G[D.token]=D.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return G},Imk=function(x){x=_.YS.getKeys(_.YS.filter(x.screenIdSet_,function(G){return G}));
x.sort(_.z7);x.length?_.hi("yt-remote-online-screen-ids",x.join(","),60):_.GP("yt-remote-online-screen-ids")};_.tR(is,Ro);_.a=is.prototype;_.a.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.a.add=function(x,G,D){this.localScreenService_.add(x,G,D)};
_.a.remove=function(x,G,D){this.localScreenService_.remove(x,G,D);this.onlineScreenService_.update()};
_.a.updateName=function(x,G,D,K){this.localScreenService_.contains(x)?this.localScreenService_.updateName(x,G,D,K):(x="Updating name of unknown screen: "+x.name,Xd(this.JSC$17503_logName_,x),K(Error(x)))};
_.a.getScreens=function(x){return x?this.screens:VRj(this.screens,_.k1(this.automaticScreens_,function(G){return!this.contains(G)},this))};
_.a.JSC$17518_getOnlineScreens=function(){return _.k1(this.getScreens(!0),function(x){return this.onlineScreenService_.isOnline(x.id)},this)};
var XpO=function(x,G,D,K,z,y){x.info("getAutomaticScreenByIds "+D+" / "+G);D||(D=x.deviceToScreenId_[G]);var c=x.getScreens(),W=D?Fd(c,D):null;D&&(x.disableAutomaticScreenCache_||W)||(W=Fd(c,G));if(W){W.uuid=G;var e=qA(x,W);CKx(x.onlineScreenService_,e,function(Q){z(Q?e:null)})}else D?Ogi(x,D,(0,_.mW)(function(Q){var p=qA(this,new Hz({name:K,
screenId:D,loungeToken:Q,dialId:G||""}));CKx(this.onlineScreenService_,p,function(V){z(V?p:null)})},x),y):z(null)};
is.prototype.JSC$17518_getScreenByPollingPairingCode=function(x,G,D,K,z,y){var c=this;this.info("getDialScreenByPairingCode "+x+" / "+G);var W=new r7O(this.JSC$17516_http_,x,G,D,K);W.subscribe("pairingComplete",function(e,Q){_.kS(W);z(qA(c,e),Q)});
W.subscribe("pairingFailed",function(e){_.kS(W);y(e)});
W.start();return(0,_.mW)(W.stop,W)};
var A7C=function(x,G){for(var D=x.screens.length,K=0;K<D;++K)if(x.screens[K].name==G)return x.screens[K];return null};
is.prototype.JSC$17518_getScreenByPairingCode=function(x,G,D,K){_.Tz(jp(this.JSC$17516_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:x},timeout:5E3,onSuccess:(0,_.mW)(function(z,y){z=new Hz(y.screen||{});if(!z.name||A7C(this,z.name)){a:{y=z.name;for(var c=2,W=G(y,c);A7C(this,W);){c++;if(c>20)break a;W=G(y,c)}y=W}z.name=y}D(qA(this,z))},this),
onError:(0,_.mW)(function(z){K(Error("Fk`"+z.status))},this),
onTimeout:(0,_.mW)(function(){K(Error("Gk"))},this)})};
var U7f=function(x,G,D){CKx(x.onlineScreenService_,G,D)};
is.prototype.disposeInternal=function(){_.kS(this.localScreenService_);_.kS(this.onlineScreenService_);is.superClass_.disposeInternal.call(this)};
var Ogi=function(x,G,D,K){x.info("requestLoungeToken_ for "+G);var z={postParams:{screen_ids:G},method:"POST",context:x,onSuccess:function(y,c){y=c&&c.screens||[];y[0]&&y[0].screenId==G?D(y[0].loungeToken):K(Error("Hk"))},
onError:function(){K(Error("Ik"))}};
_.Tz(jp(x.JSC$17516_http_,"/pairing/get_lounge_token_batch"),z)},Rix=function(x){x.screens=x.localScreenService_.getScreens();
for(var G=_.YS.transpose(x.deviceToScreenId_),D=x.screens.length,K=0;K<D;++K){var z=x.screens[K];z.uuid=G[z.id]||""}x.info("Updated manual screens: "+F7k(x.screens))};
is.prototype.handleScreenChange_=function(){Rix(this);this.publish("screenChange");this.onlineScreenService_.update()};
var Cgf=function(x){Sdb(x);x.localScreenService_=new nV(x.JSC$17516_http_);x.localScreenService_.subscribe("screenChange",(0,_.mW)(x.handleScreenChange_,x));Rix(x);x.disableAutomaticScreenCache_||(x.automaticScreens_=Q8C(_.xt("yt-remote-automatic-screen-cache")||[]));Sdb(x);x.info("Initializing automatic screens: "+F7k(x.automaticScreens_));x.onlineScreenService_=new wF(x.JSC$17516_http_,(0,_.mW)(x.getScreens,x,!0));x.onlineScreenService_.subscribe("screenChange",(0,_.mW)(function(){this.publish("onlineScreenChange")},
x))},qA=function(x,G){var D=x.get(G.id);
D?(D.uuid=G.uuid,G=D):((D=Fd(x.automaticScreens_,G.uuid))?(D.id=G.id,D.token=G.token,G=D):x.automaticScreens_.push(G),x.disableAutomaticScreenCache_||nob(x));Sdb(x);x.deviceToScreenId_[G.uuid]=G.id;_.hi("yt-remote-device-id-map",x.deviceToScreenId_,31536E3);return G},nob=function(x){x=_.k1(x.automaticScreens_,function(G){return G.idType!="shortLived"});
_.hi("yt-remote-automatic-screen-cache",_.Hu(x,Zg4))},Sdb=function(x){x.deviceToScreenId_=_.xt("yt-remote-device-id-map")||{}};
is.prototype.dispose=is.prototype.dispose;_.tR(gz,_.vQ);var NA=function(x,G){x.screen_=G;x.publish("sessionScreen",x.screen_)},igf=function(x,G){x.screen_&&(x.screen_.token=G,qA(x.JSC$17520_screenService_,x.screen_));
x.publish("sessionScreen",x.screen_)};
gz.prototype.onSessionStopped=function(x){this.isDisposed()||(x&&(vN(this,""+x),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
gz.prototype.info=function(x){Xd(this.JSC$17520_logName_,x)};
var vN=function(x,G){Xd(x.JSC$17520_logName_,G)};
gz.prototype.JSC$17522_getCastSession=function(){return null};
gz.prototype.setDisplayStatus=function(x){var G=this.receiver_;x?(G.displayStatus=new chrome.cast.ReceiverDisplayStatus(x,[]),G.displayStatus.showStop=!0):G.displayStatus=null;chrome.cast.setReceiverDisplayStatus(G,(0,_.mW)(function(){this.info("Updated receiver status for "+G.friendlyName+": "+x)},this),(0,_.mW)(function(){vN(this,"Failed to update receiver status for: "+G.friendlyName)},this))};
gz.prototype.disposeInternal=function(){this.setDisplayStatus("");gz.superClass_.disposeInternal.call(this)};var Jq=function(x,G,D){gz.call(this,x,G,"CastSession");var K=this;this.config_=D;this.JSC$17525_session_=null;this.JSC$17525_boundSessionUpdate_=(0,_.mW)(this.JSC$17527_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.mW)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.oA(function(){goO(K,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17525_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17525_isInitLoungeToken_=!1;this.JSC$17525_lastLoungeTokenRefreshError_="unknown"};
_.m(Jq,gz);_.a=Jq.prototype;
_.a.setCastSession=function(x){if(this.JSC$17525_session_){if(this.JSC$17525_session_==x)return;vN(this,"Overriding cast session with new session object");uax(this);this.JSC$17525_isInitLoungeToken_=!1;this.JSC$17525_lastLoungeTokenRefreshError_="unknown";this.JSC$17525_session_.removeUpdateListener(this.JSC$17525_boundSessionUpdate_);this.JSC$17525_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17525_session_=x;this.JSC$17525_session_.addUpdateListener(this.JSC$17525_boundSessionUpdate_);this.JSC$17525_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);d7C(this,"getMdxSessionStatus")};
_.a.launchWithParams=function(x){this.info("launchWithParams no-op for Cast: "+(0,_.VZ)(x))};
_.a.stop=function(){if(this.JSC$17525_session_)this.JSC$17525_session_.stop((0,_.mW)(function(){this.onSessionStopped()},this),(0,_.mW)(function(){this.onSessionStopped(Error("Jk"))},this));
else this.onSessionStopped(Error("Kk"))};
_.a.setDisplayStatus=function(){};
_.a.disposeInternal=function(){this.info("disposeInternal");uax(this);this.JSC$17525_session_&&(this.JSC$17525_session_.removeUpdateListener(this.JSC$17525_boundSessionUpdate_),this.JSC$17525_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17525_session_=null;gz.prototype.disposeInternal.call(this)};
var qdT=function(x,G){_.lI(x.getLoungeTokenTimeoutKey_);x.getLoungeTokenTimeoutKey_=0;G==0?wpc(x):x.getLoungeTokenTimeoutKey_=_.oA(function(){wpc(x)},G)},wpc=function(x){d7C(x,"getLoungeToken");
_.lI(x.onLoungeTokenTimeoutKey_);x.onLoungeTokenTimeoutKey_=_.oA(function(){NHT(x,null)},3E4)},d7C=function(x,G){x.info("sendYoutubeMessage_: "+G+" "+(0,_.VZ)(void 0));
var D={};D.type=G;x.JSC$17525_session_?x.JSC$17525_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",D,function(){},(0,_.mW)(function(){vN(this,"Failed to send message: "+G+".")},x)):vN(x,"Sending yt message without session: "+(0,_.VZ)(D))};
Jq.prototype.onYoutubeMessage_=function(x,G){if(!this.isDisposed())if(G)if(G=(0,_.Ym)(G),_.G7(G))switch(x=""+G.type,G=G.data||{},this.info("onYoutubeMessage_: "+x+" "+(0,_.VZ)(G)),x){case "mdxSessionStatus":goO(this,G);break;case "loungeToken":NHT(this,G);break;default:vN(this,"Unknown youtube message: "+x)}else vN(this,"Unable to parse message.");else vN(this,"No data in message.")};
var voj=function(x,G){if(G)x.info("onConnectedScreenId_: Received screenId: "+G),x.screen_&&x.screen_.id==G||x.getScreen_(G,function(D){NA(x,D)},function(){return x.onSessionStopped()},5);
else x.onSessionStopped(Error("Lk"))},fmC=function(x,G,D){x.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(G));
var K=new Hz(G);J7k(x,K,function(z){z?(x.JSC$17525_isInitLoungeToken_=!0,qA(x.JSC$17520_screenService_,K),NA(x,K),x.JSC$17525_lastLoungeTokenRefreshError_="unknown",qdT(x,D)):(_.RE(Error("Mk`"+JSON.stringify(G))),x.onSessionStopped())},5)},goO=function(x,G){_.lI(x.sessionStatusTimeoutKey_);
x.sessionStatusTimeoutKey_=0;if(G)x.config_.enableCastLoungeToken&&G.loungeToken?G.deviceId?x.screen_&&x.screen_.uuid==G.deviceId||(G.loungeTokenRefreshIntervalMs?fmC(x,{name:x.receiver_.friendlyName,screenId:G.screenId,loungeToken:G.loungeToken,dialId:G.deviceId,screenIdType:"shortLived"},G.loungeTokenRefreshIntervalMs):(_.RE(Error("Ok`"+JSON.stringify(G))),voj(x,G.screenId))):(_.RE(Error("Nk`"+JSON.stringify(G))),voj(x,G.screenId)):voj(x,G.screenId);else x.onSessionStopped(Error("Lk"))},NHT=function(x,
G){_.lI(x.onLoungeTokenTimeoutKey_);
x.onLoungeTokenTimeoutKey_=0;var D=null;if(G)if(G.loungeToken){var K;((K=x.screen_)==null?void 0:K.token)==G.loungeToken&&(D="staleLoungeToken")}else D="missingLoungeToken";else D="noLoungeTokenResponse";D?(x.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(G)+", error: "+D)),x.JSC$17525_lastLoungeTokenRefreshError_=D,qdT(x,3E4)):(igf(x,G.loungeToken),x.JSC$17525_isInitLoungeToken_=!1,x.JSC$17525_lastLoungeTokenRefreshError_="unknown",qdT(x,G.loungeTokenRefreshIntervalMs))};
Jq.prototype.getScreen_=function(x,G,D,K){_.lI(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;XpO(this.JSC$17520_screenService_,this.receiver_.label,x,this.receiver_.friendlyName,(0,_.mW)(function(z){z?G(z):K>=0?(vN(this,"Screen "+x+" appears to be offline. "+K+" retries left."),this.getScreenTimeoutKey_=_.oA((0,_.mW)(this.getScreen_,this,x,G,D,K-1),300)):D(Error("Pk"))},this),D)};
var J7k=function(x,G,D,K){_.lI(x.JSC$17525_checkScreenAvailabilityTimeoutKey_);x.JSC$17525_checkScreenAvailabilityTimeoutKey_=0;U7f(x.JSC$17520_screenService_,G,function(z){z||K<0?D(z):x.JSC$17525_checkScreenAvailabilityTimeoutKey_=_.oA(function(){J7k(x,G,D,K-1)},300)})};
Jq.prototype.JSC$17522_getCastSession=function(){return this.JSC$17525_session_};
Jq.prototype.JSC$17527_onSessionUpdate_=function(x){this.isDisposed()||x||(vN(this,"Cast session died."),this.onSessionStopped())};
var uax=function(x){_.lI(x.getScreenTimeoutKey_);x.getScreenTimeoutKey_=0;_.lI(x.JSC$17525_checkScreenAvailabilityTimeoutKey_);x.JSC$17525_checkScreenAvailabilityTimeoutKey_=0;_.lI(x.sessionStatusTimeoutKey_);x.sessionStatusTimeoutKey_=0;_.lI(x.onLoungeTokenTimeoutKey_);x.onLoungeTokenTimeoutKey_=0;_.lI(x.getLoungeTokenTimeoutKey_);x.getLoungeTokenTimeoutKey_=0};var f0=function(x,G,D,K){gz.call(this,x,G,"DialSession");this.config_=K;this.JSC$17529_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17529_theme_=D;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17529_deferredLaunchDeadlineTimer_=NaN;this.JSC$17529_boundSessionUpdate_=(0,_.mW)(this.JSC$17531_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17529_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17529_isInitLoungeToken_=!1;this.JSC$17529_lastLoungeTokenRefreshError_="unknown"};
_.m(f0,gz);f0.prototype.setCastSession=function(x){this.JSC$17529_session_=x;this.JSC$17529_session_.addUpdateListener(this.JSC$17529_boundSessionUpdate_)};
f0.prototype.launchWithParams=function(x){this.connectData_=x;this.deferredLaunch_()};
f0.prototype.stop=function(){tV4(this);if(this.JSC$17529_session_)this.JSC$17529_session_.stop((0,_.mW)(this.onSessionStopped,this,null),(0,_.mW)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
f0.prototype.disposeInternal=function(){tV4(this);this.JSC$17529_session_&&this.JSC$17529_session_.removeUpdateListener(this.JSC$17529_boundSessionUpdate_);this.JSC$17529_session_=null;gz.prototype.disposeInternal.call(this)};
var kbf=function(x){var G;return!!(x.config_.enableDialLoungeToken&&((G=x.JSC$17529_session_)==null?0:G.getDialAppInfo))},PKi=function(x){x.cancelPolling_=x.JSC$17520_screenService_.JSC$17518_getScreenByPollingPairingCode(x.reversePairingCode_,x.receiver_.label,x.receiver_.friendlyName,kbf(x),function(G,D){x.cancelPolling_=function(){};
x.JSC$17529_isInitLoungeToken_=!0;NA(x,G);G.idType=="shortLived"&&D>0&&tq(x,D)},function(G){x.cancelPolling_=function(){};
x.onSessionStopped(G)})};
f0.prototype.JSC$17531_onSessionUpdate_=function(x){this.isDisposed()||x||(vN(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var Eok=function(x){var G={};G.pairingCode=x.reversePairingCode_;G.theme=x.JSC$17529_theme_;ZoO()&&(G.env_useStageMdx=1);return _.W0(G)},hib=function(x){return new Promise(function(G){x.reversePairingCode_=EqO();
if(x.connectData_){var D=new chrome.cast.DialLaunchResponse(!0,Eok(x));G(D);PKi(x)}else x.deferredLaunch_=function(){_.lI(x.JSC$17529_deferredLaunchDeadlineTimer_);x.deferredLaunch_=function(){};
x.JSC$17529_deferredLaunchDeadlineTimer_=NaN;var K=new chrome.cast.DialLaunchResponse(!0,Eok(x));G(K);PKi(x)},x.JSC$17529_deferredLaunchDeadlineTimer_=_.oA(function(){x.deferredLaunch_()},100)})},GcT=function(x,G,D){x.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(G));
var K=new Hz(G);return(new Promise(function(z){x6c(x,K,function(y){y?(x.JSC$17529_isInitLoungeToken_=!0,qA(x.JSC$17520_screenService_,K),NA(x,K),tq(x,D)):_.RE(Error("Rk`"+JSON.stringify(G)));z(y)},5)})).then(function(z){return z?new chrome.cast.DialLaunchResponse(!1):hib(x)})},D6C=function(x,G){var D=x.launchData_.receiver.label,K=x.receiver_.friendlyName;
return(new Promise(function(z){XpO(x.JSC$17520_screenService_,D,G,K,function(y){y&&y.token&&NA(x,y);z(y)},function(y){vN(x,"Failed to get DIAL screen: "+y);
z(null)})})).then(function(z){return z&&z.token?new chrome.cast.DialLaunchResponse(!1):hib(x)})},x6c=function(x,G,D,K){_.lI(x.JSC$17529_checkScreenAvailabilityTimeoutKey_);
x.JSC$17529_checkScreenAvailabilityTimeoutKey_=0;U7f(x.JSC$17520_screenService_,G,function(z){z||K<0?D(z):x.JSC$17529_checkScreenAvailabilityTimeoutKey_=_.oA(function(){x6c(x,G,D,K-1)},300)})},tq=function(x,G){x.info("getDialAppInfoWithTimeout_ "+G);
kbf(x)&&(_.lI(x.getDialAppInfoTimeoutKey_),x.getDialAppInfoTimeoutKey_=0,G==0?KPc(x):x.getDialAppInfoTimeoutKey_=_.oA(function(){KPc(x)},G))},KPc=function(x){kbf(x)&&x.JSC$17529_session_.getDialAppInfo(function(G){x.info("getDialAppInfo dialLaunchData: "+JSON.stringify(G));
G=G.extraData||{};var D=null;if(G.loungeToken){var K;((K=x.screen_)==null?void 0:K.token)==G.loungeToken&&(D="staleLoungeToken")}else D="missingLoungeToken";D?(x.JSC$17529_lastLoungeTokenRefreshError_=D,tq(x,3E4)):(x.JSC$17529_isInitLoungeToken_=!1,x.JSC$17529_lastLoungeTokenRefreshError_="unknown",igf(x,G.loungeToken),tq(x,G.loungeTokenRefreshIntervalMs))},function(G){x.info("getDialAppInfo error: "+G);
x.JSC$17529_lastLoungeTokenRefreshError_="noLoungeTokenResponse";tq(x,3E4)})},tV4=function(x){_.lI(x.JSC$17529_checkScreenAvailabilityTimeoutKey_);
x.JSC$17529_checkScreenAvailabilityTimeoutKey_=0;_.lI(x.getDialAppInfoTimeoutKey_);x.getDialAppInfoTimeoutKey_=0;x.cancelPolling_();x.cancelPolling_=function(){};
_.lI(x.JSC$17529_deferredLaunchDeadlineTimer_)};var kw=function(x,G){gz.call(this,x,G,"ManualSession");this.JSC$17533_deferredLaunchDeadlineTimer_=_.oA((0,_.mW)(this.launchWithParams,this,null),150)};
_.m(kw,gz);kw.prototype.stop=function(){this.onSessionStopped()};
kw.prototype.setCastSession=function(){};
kw.prototype.launchWithParams=function(){_.lI(this.JSC$17533_deferredLaunchDeadlineTimer_);this.JSC$17533_deferredLaunchDeadlineTimer_=NaN;var x=Fd(this.JSC$17520_screenService_.getScreens(),this.receiver_.label);if(x)NA(this,x);else this.onSessionStopped(Error("Sk"))};
kw.prototype.disposeInternal=function(){_.lI(this.JSC$17533_deferredLaunchDeadlineTimer_);this.JSC$17533_deferredLaunchDeadlineTimer_=NaN;gz.prototype.disposeInternal.call(this)};var qx=function(x,G){_.vQ.call(this);this.config_=G;this.JSC$17536_screenService_=x;this.JSC$17536_appId_=G.appId||"233637DE";this.JSC$17536_theme_=G.theme||"cl";this.disableDial_=G.disableCastApi||!1;this.forceMirroring_=G.forceMirroring||!1;this.JSC$17536_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.mW)(this.onReceiverAction_,this)};
_.m(qx,_.vQ);
qx.prototype.init=function(x,G){chrome.cast.timeout.requestSession=3E4;var D=new chrome.cast.SessionRequest(this.JSC$17536_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.B("desktop_enable_cast_connect")&&(D.androidReceiverCompatible=!0);this.disableDial_||(D.dialRequest=new chrome.cast.DialRequest("YouTube"));var K=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;x=x||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var z=(0,_.mW)(this.onReceiverUpdated_,
this);D=new chrome.cast.ApiConfig(D,(0,_.mW)(this.onSessionEstablished_,this),z,K,x);D.customDialLaunchCallback=(0,_.mW)(this.onDialLaunchRequested_,this);chrome.cast.initialize(D,(0,_.mW)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),rUC(),this.JSC$17536_screenService_.subscribe("onlineScreenChange",(0,_.mW)(this.JSC$17538_onScreenChange_,this)),this.customReceivers_=zz6(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.mW)(function(y){this.warn_("Failed to set initial custom receivers: "+(0,_.VZ)(y))},this)),this.publish("yt-remote-cast2-availability-change",PN(this)),G(!0))},this),(0,_.mW)(function(y){this.warn_("Failed to initialize API: "+(0,_.VZ)(y));
G(!1)},this))};
qx.prototype.setConnectedScreenStatus=function(x,G){Ey("Setting connected screen ID: "+x+" -> "+G);if(this.JSC$17536_session_){var D=this.JSC$17536_session_.screen_;if(!x||D&&D.id!=x)Ey("Unsetting old screen status: "+this.JSC$17536_session_.receiver_.friendlyName),hq(this,null)}if(x&&G){if(!this.JSC$17536_session_){x=Fd(this.JSC$17536_screenService_.getScreens(),x);if(!x){Ey("setConnectedScreenStatus: Unknown screen.");return}if(x.idType=="shortLived"){Ey("setConnectedScreenStatus: Screen with id type to be short lived.");
return}D=ai4(this,x);D||(Ey("setConnectedScreenStatus: Connected receiver not custom..."),D=new chrome.cast.Receiver(x.uuid?x.uuid:x.id,x.name),D.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(D),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.mW)(function(K){this.warn_("Failed to set initial custom receivers: "+(0,_.VZ)(K))},this)));
Ey("setConnectedScreenStatus: new active receiver: "+D.friendlyName);hq(this,new kw(this.JSC$17536_screenService_,D),!0)}this.JSC$17536_session_.setDisplayStatus(G)}else Ey("setConnectedScreenStatus: no screen.")};
var ai4=function(x,G){return G?_.iO(x.customReceivers_,function(D){return $F(G,D.label)},x):null};
qx.prototype.setLaunchParams=function(x){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17536_session_?this.JSC$17536_session_.launchWithParams(x):this.warn_("Setting connection data without a session")};
qx.prototype.JSC$17538_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17536_session_?(this.JSC$17536_session_.stop(),hq(this,null)):Ey("Stopping non-existing session")};
qx.prototype.requestSession=function(){chrome.cast.requestSession((0,_.mW)(this.onSessionEstablished_,this),(0,_.mW)(this.onSessionRequestFailed_,this))};
qx.prototype.disposeInternal=function(){this.JSC$17536_screenService_.unsubscribe("onlineScreenChange",(0,_.mW)(this.JSC$17538_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.f$(_.nT("yt.mdx.remote.debug.handlers_")||[],boO);_.kS(this.JSC$17536_session_);_.vQ.prototype.disposeInternal.call(this)};
var Ey=function(x){Xd("Controller",x)};
qx.prototype.warn_=function(x){Xd("Controller",x)};
var boO=function(x){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(x)},PN=function(x){return x.hasCastReceiver_||!!x.customReceivers_.length||!!x.JSC$17536_session_},hq=function(x,G,D){G!=x.JSC$17536_session_&&(_.kS(x.JSC$17536_session_),(x.JSC$17536_session_=G)?(D?x.publish("yt-remote-cast2-receiver-resumed",G.receiver_):x.publish("yt-remote-cast2-receiver-selected",G.receiver_),G.subscribe("sessionScreen",(0,_.mW)(x.onSessionScreen_,x,G)),G.subscribe("sessionFailed",
function(){return oVi(x,G)}),G.screen_?x.publish("yt-remote-cast2-session-change",G.screen_):D&&x.JSC$17536_session_.launchWithParams(null)):x.publish("yt-remote-cast2-session-change",null))},oVi=function(x,G){x.JSC$17536_session_==G&&x.publish("yt-remote-cast2-session-failed")};
_.a=qx.prototype;_.a.onSessionScreen_=function(x,G){this.JSC$17536_session_==x&&(G||hq(this,null),this.publish("yt-remote-cast2-session-change",G))};
_.a.onReceiverAction_=function(x,G){if(!this.isDisposed())if(x)switch(x.friendlyName=chrome.cast.unescape(x.friendlyName),Ey("onReceiverAction_ "+x.label+" / "+x.friendlyName+"-- "+G),G){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17536_session_)if(this.JSC$17536_session_.receiver_.label!=x.label)Ey("onReceiverAction_: Stopping active receiver: "+this.JSC$17536_session_.receiver_.friendlyName),this.JSC$17536_session_.stop();else{Ey("onReceiverAction_: Casting to active receiver.");this.JSC$17536_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17536_session_.screen_);break}switch(x.receiverType){case chrome.cast.ReceiverType.CUSTOM:hq(this,new kw(this.JSC$17536_screenService_,x));break;case chrome.cast.ReceiverType.DIAL:hq(this,new f0(this.JSC$17536_screenService_,x,this.JSC$17536_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:hq(this,new Jq(this.JSC$17536_screenService_,x,this.config_));break;default:this.warn_("Unknown receiver type: "+x.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17536_session_&&
this.JSC$17536_session_.receiver_.label==x.label?this.JSC$17536_session_.stop():this.warn_("Stopping receiver w/o session: "+x.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.a.onDialLaunchRequested_=function(x){if(this.isDisposed())return Promise.reject(Error("Tk"));var G=x.receiver;G.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+G.friendlyName),G.receiverType=chrome.cast.ReceiverType.DIAL);var D=this.JSC$17536_session_?this.JSC$17536_session_.receiver_:null;if(!D||D.label!=G.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+G.friendlyName),Promise.reject(Error("Uk"));if(D&&D.label==G.label&&D.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17536_session_.screen_)return Ey("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17536_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+D.receiverType+'" to "dial" for '+G.friendlyName);hq(this,new f0(this.JSC$17536_screenService_,G,this.JSC$17536_theme_,this.config_))}G=this.JSC$17536_session_;G.launchData_=x;G.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(x=G.launchData_.extraData||{},D=x.screenId||null,kbf(G)&&x.loungeToken?x.loungeTokenRefreshIntervalMs?x=GcT(G,{name:G.receiver_.friendlyName,screenId:x.screenId,loungeToken:x.loungeToken,dialId:G.launchData_.receiver.label,screenIdType:"shortLived"},x.loungeTokenRefreshIntervalMs):(_.RE(Error("Qk`"+JSON.stringify(x))),x=D6C(G,D)):x=D6C(G,D)):x=hib(G);return x};
_.a.onSessionEstablished_=function(x){var G=this;if(!this.isDisposed()&&!this.forceMirroring_){Ey("New cast session ID: "+x.sessionId);var D=x.receiver;if(D.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17536_session_)if(D.receiverType==chrome.cast.ReceiverType.CAST)Ey("Got resumed cast session before resumed mdx connection."),D.friendlyName=chrome.cast.unescape(D.friendlyName),hq(this,new Jq(this.JSC$17536_screenService_,D,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var K=this.JSC$17536_session_.receiver_,z=Fd(this.JSC$17536_screenService_.getScreens(),K.label);z&&$F(z,D.label)&&K.receiverType!=chrome.cast.ReceiverType.CAST&&D.receiverType==chrome.cast.ReceiverType.CAST&&(Ey("onSessionEstablished_: manual to cast session change "+D.friendlyName),_.kS(this.JSC$17536_session_),this.JSC$17536_session_=new Jq(this.JSC$17536_screenService_,D,this.config_),this.JSC$17536_session_.subscribe("sessionScreen",(0,_.mW)(this.onSessionScreen_,this,this.JSC$17536_session_)),
this.JSC$17536_session_.subscribe("sessionFailed",function(){return oVi(G,G.JSC$17536_session_)}),this.JSC$17536_session_.launchWithParams(null));
this.JSC$17536_session_.setCastSession(x)}}};
_.a.JSC$17538_getCastSession=function(){return this.JSC$17536_session_?this.JSC$17536_session_.JSC$17522_getCastSession():null};
_.a.onSessionRequestFailed_=function(x){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.VZ)(x)),x.code!=chrome.cast.ErrorCode.CANCEL&&hq(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.a.onReceiverUpdated_=function(x){Ey("Receiver availability updated: "+x);if(!this.isDisposed()){var G=PN(this);this.hasCastReceiver_=x==chrome.cast.ReceiverAvailability.AVAILABLE;PN(this)!=G&&this.publish("yt-remote-cast2-availability-change",PN(this))}};
var zz6=function(x){var G=x.JSC$17536_screenService_.JSC$17518_getOnlineScreens(),D=x.JSC$17536_session_&&x.JSC$17536_session_.receiver_;x=_.Hu(G,function(K){D&&$F(K,D.label)&&(D=null);var z=K.uuid?K.uuid:K.id,y=ai4(this,K);y?(y.label=z,y.friendlyName=K.name):(y=new chrome.cast.Receiver(z,K.name),y.receiverType=chrome.cast.ReceiverType.CUSTOM);return y},x);
D&&(D.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(D=new chrome.cast.Receiver(D.label,D.friendlyName),D.receiverType=chrome.cast.ReceiverType.CUSTOM),x.push(D));return x};
qx.prototype.JSC$17538_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=zz6(this),Ey("Updating custom receivers: "+(0,_.VZ)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.mW)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",PN(this)))};
qx.prototype.setLaunchParams=qx.prototype.setLaunchParams;qx.prototype.setConnectedScreenStatus=qx.prototype.setConnectedScreenStatus;qx.prototype.stopSession=qx.prototype.JSC$17538_stopSession;qx.prototype.getCastSession=qx.prototype.JSC$17538_getCastSession;qx.prototype.requestSession=qx.prototype.requestSession;qx.prototype.init=qx.prototype.init;qx.prototype.dispose=qx.prototype.dispose;var vBi=[];var yz8=function(x){x.audioTrackId=null;x.trackData=null;x.playerState=-1;x.hasPrevious=!1;x.hasNext=!1;x.playerTime_=0;x.playerTimeAt_=_.f6();x.seekableStart_=0;x.seekableEnd_=0;x.duration_=0;x.loadedTime=0;x.liveIngestionTime_=NaN;x.isLive_=!1};
_.a=Nx.prototype;
_.a.reset=function(x){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;x&&(this.index=x.index,this.listId=x.listId,this.videoId=x.videoId,this.playerState=x.playerState,this.volume=x.volume,this.muted=x.muted,this.audioTrackId=x.audioTrackId,this.trackData=x.trackData,this.hasPrevious=x.hasPrevious,this.hasNext=x.hasNext,this.playerTime_=x.playerTime,this.playerTimeAt_=x.playerTimeAt,this.seekableStart_=x.seekableStart,this.seekableEnd_=x.seekableEnd,this.duration_=x.duration,this.loadedTime=
x.loadedTime,this.liveIngestionTime_=x.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.a.stopPlayer=function(){this.index=-1;this.videoId="";yz8(this)};
_.a.isPlaying=function(){return this.playerState==1};
_.a.isBuffering=function(){return this.playerState==3};
_.a.isAdPlaying=function(){return this.playerState==1081};
var xx=function(x,G){x.playerTime_=G;x.playerTimeAt_=_.f6()},liY=function(x){switch(x.playerState){case 1:case 1081:return(_.f6()-x.playerTimeAt_)/1E3+x.playerTime_;
case -1E3:return 0}return x.playerTime_};
Nx.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.f6()-this.playerTimeAt_)/1E3:0):this.duration_};
var czC=function(x,G,D){var K=x.videoId;x.videoId=G;x.index=D;G!=K&&yz8(x)},Te8=function(x){var G={};
G.index=x.index;G.listId=x.listId;G.videoId=x.videoId;G.playerState=x.playerState;G.volume=x.volume;G.muted=x.muted;G.audioTrackId=x.audioTrackId;G.trackData=_.YS.unsafeClone(x.trackData);G.hasPrevious=x.hasPrevious;G.hasNext=x.hasNext;G.playerTime=x.playerTime_;G.playerTimeAt=x.playerTimeAt_;G.seekableStart=x.seekableStart_;G.seekableEnd=x.seekableEnd_;G.duration=x.duration_;G.loadedTime=x.loadedTime;G.liveIngestionTime=x.liveIngestionTime_;return G};
Nx.prototype.clone=function(){return new Nx(Te8(this))};var Go=function(x,G){_.vQ.call(this);var D=this;this.state_=0;this.connection_=x;this.contextSubscriptions_=[];this.actionQueue_=new wwf;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.mW)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.mW)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.mW)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.mW)(this.onCloudviewAvailabilityChange_,this);var K=0;x?(K=x.getProxyState(),
K!=3&&(x.subscribe("proxyStateChange",this.setState_,this),WPT(this))):K=3;K!=0&&(G?this.setState_(K):_.oA(function(){D.setState_(K)},0));
(x=kRf())&&ezc(this,x);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.m(Go,_.vQ);Go.prototype.getState=function(){return this.state_};
Go.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
Go.prototype.reconnect=function(){this.connection_.reconnect()};
var D3=function(x){return new Nx(x.connection_.getPlayerContextData())};
_.a=Go.prototype;_.a.play=function(){KK(this)?(this.castMedia_?this.castMedia_.play(null,_.ld,ZBj(this,"play")):zo(this,"play"),M18(this,1,liY(D3(this))),this.publish("remotePlayerChange")):a2(this,this.play)};
_.a.pause=function(){KK(this)?(this.castMedia_?this.castMedia_.pause(null,_.ld,ZBj(this,"pause")):zo(this,"pause"),M18(this,2,liY(D3(this))),this.publish("remotePlayerChange")):a2(this,this.pause)};
_.a.seekTo=function(x){if(KK(this)){if(this.castMedia_){var G=D3(this),D=new chrome.cast.media.SeekRequest;D.currentTime=x;G.isPlaying()||G.isBuffering()?D.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:D.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(D,_.ld,ZBj(this,"seekTo",{newTime:x}))}else zo(this,"seekTo",{newTime:x});M18(this,3,x);this.publish("remotePlayerChange")}else a2(this,_.Zq(this.seekTo,x))};
_.a.stop=function(){if(KK(this)){this.castMedia_?this.castMedia_.stop(null,_.ld,ZBj(this,"stopVideo")):zo(this,"stopVideo");var x=D3(this);x.stopPlayer();o2(this,x);this.publish("remotePlayerChange")}else a2(this,this.stop)};
_.a.setVolume=function(x,G){if(KK(this)){var D=D3(this);if(this.castSession_){if(D.volume!=x){var K=Math.round(x)/100;this.castSession_.setReceiverVolumeLevel(K,(0,_.mW)(function(){Aw("set receiver volume: "+K)},this),(0,_.mW)(function(){this.warn_("failed to set receiver volume.")},this))}D.muted!=G&&this.castSession_.setReceiverMuted(G,(0,_.mW)(function(){Aw("set receiver muted: "+G)},this),(0,_.mW)(function(){this.warn_("failed to set receiver muted.")},this))}else{var z={volume:x,
muted:G};D.volume!=-1&&(z.delta=x-D.volume);zo(this,"setVolume",z)}D.muted=G;D.volume=x;o2(this,D)}else a2(this,_.Zq(this.setVolume,x,G))};
_.a.setAudioTrack=function(x,G){KK(this)?(G=G.getLanguageInfo().getId(),zo(this,"setAudioTrack",{videoId:x,audioTrackId:G}),x=D3(this),x.audioTrackId=G,o2(this,x)):a2(this,_.Zq(this.setAudioTrack,x,G))};
_.a.addVideo=function(x){KK(this)?zo(this,"addVideo",{videoId:x}):a2(this,_.Zq(this.addVideo,x))};
_.a.addPlaylist=function(x){KK(this)?zo(this,"addVideos",{listId:x}):a2(this,_.Zq(this.addPlaylist,x))};
_.a.addVideos=function(x){x.length==0?this.warn_("Ignore add videos request due to empty list"):KK(this)?zo(this,"addVideos",{videoIds:x.join(",")}):a2(this,_.Zq(this.addVideos,x))};
_.a.JSC$17548_removeVideo=function(x){KK(this)?zo(this,"removeVideo",{videoId:x}):a2(this,_.Zq(this.JSC$17548_removeVideo,x))};
_.a.JSC$17548_insertVideo=function(x){KK(this)?zo(this,"insertVideo",{videoId:x}):a2(this,_.Zq(this.JSC$17548_insertVideo,x))};
_.a.playVideo=function(x,G,D,K,z,y,c){K=K===void 0?null:K;z=z===void 0?null:z;y=y===void 0?null:y;c=c===void 0?null:c;var W=D3(this),e={videoId:x};D!==void 0&&(e.currentIndex=D);czC(W,x,D||0);G!==void 0&&(xx(W,G),e.currentTime=G);K&&(e.listId=K);z&&(e.playerParams=z);y&&(e.clickTrackingParams=y);c&&(e.locationInfo=(0,_.VZ)(c));zo(this,"setPlaylist",e);K||o2(this,W)};
_.a.nextVideo=function(x,G){if(KK(this)){if(x&&G){var D=D3(this);czC(D,x,G);o2(this,D)}zo(this,"next")}else a2(this,_.Zq(this.nextVideo,x,G))};
_.a.clearPlaylist=function(){if(KK(this)){zo(this,"clearPlaylist");var x=D3(this);x.reset();o2(this,x);this.publish("remotePlayerChange")}else a2(this,this.clearPlaylist)};
_.a.dispose=function(){if(this.state_!=3){var x=this.state_;this.state_=3;this.publish("proxyStateChange",x,this.state_)}_.vQ.prototype.dispose.call(this)};
_.a.disposeInternal=function(){QL6(this);this.connection_=null;this.actionQueue_.clear();ezc(this,null);_.vQ.prototype.disposeInternal.call(this)};
var WPT=function(x){_.uM("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(G){this.contextSubscriptions_.push(this.connection_.subscribe(G,_.Zq(this.onProxyEvent_,G),this))},x)},QL6=function(x){_.uM(x.contextSubscriptions_,function(G){this.connection_.unsubscribeByKey(G)},x);
x.contextSubscriptions_.length=0},KK=function(x){return x.getState()==1},a2=function(x,G){x.actionQueue_.getCount()<50&&x.actionQueue_.enqueue(G)},M18=function(x,G,D){var K=D3(x);
xx(K,D);K.playerState!=-1E3&&(K.playerState=G);o2(x,K)},zo=function(x,G,D){x.connection_.sendMessage(G,D)},o2=function(x,G){QL6(x);
x.connection_.setPlayerContextData(Te8(G));WPT(x)};
Go.prototype.setState_=function(x){if((x!=this.state_||x==2)&&this.state_!=3&&x!=0){var G=this.state_;this.state_=x;this.publish("proxyStateChange",G,x);if(x==1)for(;!this.actionQueue_.isEmpty();)x=this.actionQueue_,jbi(x),x.front_.pop().apply(this);else x==3&&this.dispose()}};
Go.prototype.onProxyEvent_=function(x,G){this.publish(x,G)};
var ezc=function(x,G){x.castSession_&&(x.castSession_.removeUpdateListener(x.boundCastStatusListener_),x.castSession_.removeMediaListener(x.boundCastMediaListener_),x.onCastMediaChange_(null));x.castSession_=G;if(x.castSession_&&(Aw("Setting cast session: "+x.castSession_.sessionId),x.castSession_.addUpdateListener(x.boundCastStatusListener_),x.castSession_.addMediaListener(x.boundCastMediaListener_),x.castSession_.media.length))x.onCastMediaChange_(x.castSession_.media[0])};
Go.prototype.onCastStatusUpdate_=function(x){if(!x)this.onCastMediaChange_(null),ezc(this,null);else if(this.castSession_.receiver.volume){x=this.castSession_.receiver.volume;var G=D3(this),D=Math.round(100*x.level||0);if(G.volume!=D||G.muted!=x.muted)Aw("Cast volume update: "+x.level+(x.muted?" muted":"")),G.volume=D,G.muted=!!x.muted,o2(this,G)}};
Go.prototype.onCastMediaChange_=function(x){Aw("Cast media: "+!!x);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=x)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),pok(this),this.publish("remotePlayerChange")};
var pok=function(x){var G=x.castMedia_.media,D=x.castMedia_.customData;if(G&&D){var K=D3(x);G.contentId!=K.videoId&&Aw("Cast changing video to: "+G.contentId);K.videoId=G.contentId;K.playerState=D.playerState;xx(K,x.castMedia_.getEstimatedTime());o2(x,K)}else Aw("No cast media video. Ignoring state update.")};
Go.prototype.onCastMediaUpdate_=function(x){if(x)pok(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
Go.prototype.onCloudviewAvailabilityChange_=function(){var x=kRf();x&&ezc(this,x)};
Go.prototype.warn_=function(x){Xd("CP",x)};
var ZBj=function(x,G,D){return(0,_.mW)(function(K){this.warn_("Failed to "+G+" with cast v2 channel. Error code: "+K.code);K.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+G+" using MDx browser channel."),zo(this,G,D))},x)};var lJ=function(x,G,D,K){K=K===void 0?!1:K;_.vQ.call(this);var z=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$17555_http_=x;this.enableConnectWithInitialState_=K;this.listeners_.push(_.PS(window,"beforeunload",function(){z.JSC$17558_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new Nx;this.currentScreenId_=G.id;this.currentScreenIdType_=G.idType;this.channelService=VSO(this.JSC$17555_http_,D,this.JSC$17558_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){V1x(z)});
this.channelService.listen("channelClosed",function(){yq("Channel closed");isNaN(z.connectTimerId_)?CV(!0):CV();z.dispose()});
this.channelService.listen("channelError",function(y){CV();isNaN(z.getReconnectTimeout_())?(y==1&&z.currentScreenIdType_=="shortLived"&&z.publish("browserChannelAuthError",y),yq("Channel error: "+y+" without reconnection"),z.dispose()):(z.reconnecting_=!0,yq("Channel error: "+y+" with reconnection in "+z.getReconnectTimeout_()+" ms"),bBC(z,2))});
this.channelService.listen("channelMessage",function(y){LPY(z,y)});
this.channelService.setLoungeToken(G.token);this.subscribe("remoteQueueChange",function(){var y=z.playerContext_.videoId;K7k()&&_.hi("yt-remote-session-video-id",y)})};
_.m(lJ,_.vQ);
lJ.prototype.connect=function(x,G){if(G){var D=G.listId,K=G.videoId,z=G.videoIds,y=G.playerParams,c=G.clickTrackingParams,W=G.index,e={videoId:K},Q=G.currentTime,p=G.locationInfo;G=G.loopMode;Q!==void 0&&(e.currentTime=Q<=5?0:Q);y&&(e.playerParams=y);p&&(e.locationInfo=p);c&&(e.clickTrackingParams=c);D&&(e.listId=D);z&&z.length>0&&(e.videoIds=z.join(","));W!==void 0&&(e.currentIndex=W);this.enableConnectWithInitialState_&&(e.loopMode=G||"LOOP_MODE_OFF");D&&(this.playerContext_.listId=D);this.playerContext_.videoId=
K;this.playerContext_.index=W||0;this.playerContext_.state=3;xx(this.playerContext_,Q);this.autoplayMode_="UNSUPPORTED";D=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";yq("Connecting with "+D+" and params: "+(0,_.VZ)(e));this.channelService.connect({method:D,params:(0,_.VZ)(e)},x,lPT())}else yq("Connecting without params"),this.channelService.connect({},x,lPT());Bef(this)};
lJ.prototype.setLoungeToken=function(x){this.channelService.setLoungeToken(x)};
lJ.prototype.dispose=function(){this.isDisposed()||(_.Jv("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),bBC(this,3));_.vQ.prototype.dispose.call(this)};
lJ.prototype.disposeInternal=function(){rzc(this);sL8(this);YVf(this);_.lI(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.lI(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.u5$(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.vQ.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var m6c=function(x){return _.iO(x.connectedDevices_,function(G){return G.type=="LOUNGE_SCREEN"})},yq=function(x){Xd("conn",x)},bBC=function(x,G){x.publish("proxyStateChange",G)},Bef=function(x){x.connectTimerId_=_.oA(function(){yq("Connecting timeout");
x.JSC$17558_disconnect_(1)},2E4)},rzc=function(x){_.lI(x.connectTimerId_);
x.connectTimerId_=NaN},YVf=function(x){_.lI(x.reconnectedCheckScreenTimeout_);
x.reconnectedCheckScreenTimeout_=NaN},HBc=function(x){sL8(x);
x.playingSyncTimerId_=_.oA(function(){cJ(x,"getNowPlaying")},2E4)},sL8=function(x){_.lI(x.playingSyncTimerId_);
x.playingSyncTimerId_=NaN},V1x=function(x){yq("Channel opened");
x.reconnecting_&&(x.reconnecting_=!1,YVf(x),x.reconnectedCheckScreenTimeout_=_.oA(function(){yq("Timing out waiting for a screen.");x.JSC$17558_disconnect_(1)},15E3))},FPY=function(x,G){var D=null;
if(G){var K=m6c(x);K&&(D={clientName:K.clientName,deviceMake:K.brand,deviceModel:K.model,osVersion:K.osVersion})}_.Jv("yt.mdx.remote.remoteClient_",D);G&&(rzc(x),YVf(x));D=x.channelService.isChannelOpened()&&isNaN(x.connectTimerId_);G==D?G&&(bBC(x,1),cJ(x,"getSubtitlesTrack")):G?(x.getOtherConnectedRemoteId_()&&x.playerContext_.reset(),bBC(x,1),cJ(x,"getNowPlaying"),$6O(x)):x.JSC$17558_disconnect_(1)},CzY=function(x,G){var D=G.params.videoId;
delete G.params.videoId;D==x.playerContext_.videoId&&(_.YS.isEmpty(G.params)?x.playerContext_.trackData=null:x.playerContext_.trackData=G.params,x.publish("remotePlayerChange"))},Ii8=function(x,G,D){var K=G.params.videoId||G.params.video_id,z=parseInt(G.params.currentIndex,10);
x.playerContext_.listId=G.params.listId||x.playerContext_.listId;czC(x.playerContext_,K,z);x.publish("remoteQueueChange",D)},jLj=function(x,G){G.params=G.params||{};
Ii8(x,G,"NOW_PLAYING_MAY_CHANGE");x.onStateChange_(G);x.publish("autoplayDismissed")};
lJ.prototype.onStateChange_=function(x){var G=parseInt(x.params.currentTime||x.params.current_time,10);xx(this.playerContext_,isNaN(G)?0:G);G=parseInt(x.params.state,10);G=isNaN(G)?-1:G;G==-1&&this.playerContext_.playerState==-1E3&&(G=-1E3);this.playerContext_.playerState=G;G=Number(x.params.loadedTime);this.playerContext_.loadedTime=isNaN(G)?0:G;G=Number(x.params.duration);this.playerContext_.duration_=isNaN(G)?0:G;G=this.playerContext_;var D=Number(x.params.liveIngestionTime);G.liveIngestionTime_=
D;G.isLive_=isNaN(D)?!1:!0;G=this.playerContext_;D=Number(x.params.seekableStartTime);x=Number(x.params.seekableEndTime);G.seekableStart_=isNaN(D)?0:D;G.seekableEnd_=isNaN(x)?0:x;this.playerContext_.playerState==1?HBc(this):sL8(this);this.publish("remotePlayerChange")};
lJ.prototype.onAdStateChange_=function(x){if(this.playerContext_.playerState!=-1E3){var G=1085;switch(parseInt(x.params.adState,10)){case 1:G=1081;break;case 2:G=1084;break;case 0:G=1083}this.playerContext_.playerState=G;x=parseInt(x.params.currentTime,10);xx(this.playerContext_,isNaN(x)?0:x);this.publish("remotePlayerChange")}};
var OB4=function(x,G){var D=G.params.muted=="true";x.playerContext_.volume=parseInt(G.params.volume,10);x.playerContext_.muted=D;x.publish("remotePlayerChange")},Xo8=function(x,G){x.autoplayVideoId_=G.params.videoId;
x.publish("nowAutoplaying",parseInt(G.params.timeout,10))},Azf=function(x,G){x.autoplayVideoId_=G.params.videoId||null;
x.publish("autoplayUpNext",x.autoplayVideoId_)},U6T=function(x,G){x.autoplayMode_=G.params.autoplayMode;
x.publish("autoplayModeChange",x.autoplayMode_);x.autoplayMode_=="DISABLED"&&x.publish("autoplayDismissed")},Rzc=function(x,G){var D=G.params.hasNext=="true";
x.playerContext_.hasPrevious=G.params.hasPrevious=="true";x.playerContext_.hasNext=D;x.publish("previousNextChange")};
lJ.prototype.isCapabilitySupportedOnConnectedDevices_=function(x){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var G=_.l(this.connectedDevices_),D=G.next();!D.done;D=G.next())if(!D.value.capabilities.has(x))return!1;return!0};
var LPY=function(x,G){G=G.message;G.params?yq("Received: action="+G.action+", params="+(0,_.VZ)(G.params)):yq("Received: action="+G.action+" {}");switch(G.action){case "loungeStatus":G=(0,_.Ym)(G.params.devices);x.connectedDevices_=_.Hu(G,function(K){return new dF(K)});
G=!!_.iO(x.connectedDevices_,function(K){return K.type=="LOUNGE_SCREEN"});
FPY(x,G);G=x.isCapabilitySupportedOnConnectedDevices_("mlm");x.publish("multiStateLoopEnabled",G);break;case "loungeScreenDisconnected":p64(x.connectedDevices_,function(K){return K.type=="LOUNGE_SCREEN"});
FPY(x,!1);break;case "remoteConnected":var D=new dF((0,_.Ym)(G.params.device));_.iO(x.connectedDevices_,function(K){return K.equals(D)})||_.vL(x.connectedDevices_,D);
break;case "remoteDisconnected":D=new dF((0,_.Ym)(G.params.device));p64(x.connectedDevices_,function(K){return K.equals(D)});
break;case "gracefulDisconnect":break;case "playlistModified":Ii8(x,G,"QUEUE_MODIFIED");break;case "nowPlaying":jLj(x,G);break;case "onStateChange":x.onStateChange_(G);break;case "onAdStateChange":x.onAdStateChange_(G);break;case "onVolumeChanged":OB4(x,G);break;case "onSubtitlesTrackChanged":CzY(x,G);break;case "nowAutoplaying":Xo8(x,G);break;case "autoplayDismissed":x.publish("autoplayDismissed");break;case "autoplayUpNext":Azf(x,G);break;case "onAutoplayModeChanged":U6T(x,G);break;case "onHasPreviousNextChanged":Rzc(x,
G);break;case "requestAssistedSignIn":x.publish("assistedSignInRequested",G.params.authCode);break;case "onLoopModeChanged":x.publish("loopModeChange",G.params.loopMode);break;default:yq("Unrecognized action: "+G.action)}};
_.a=lJ.prototype;_.a.getProxyState_=function(){var x=3;this.isDisposed()||(x=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(x=1):x=2);return x};
_.a.JSC$17558_disconnect_=function(x){yq("Disconnecting with "+x);_.Jv("yt.mdx.remote.remoteClient_",null);rzc(this);this.publish("beforeDisconnect",x);x==1&&CV();this.channelService.disconnect(x);this.dispose()};
_.a.getPlayerContextData_=function(){var x=this.playerContext_;this.clientVideoId_&&(x=this.playerContext_.clone(),czC(x,this.clientVideoId_,x.index));return Te8(x)};
_.a.setPlayerContextData_=function(x){var G=this,D=new Nx(x);D.videoId&&D.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=D.videoId,_.lI(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.oA(function(){if(G.clientVideoId_){var z=G.clientVideoId_;G.clientVideoId_=null;G.playerContext_.videoId!=z&&cJ(G,"getNowPlaying")}},5E3));
var K=[];this.playerContext_.listId==D.listId&&this.playerContext_.videoId==D.videoId&&this.playerContext_.index==D.index||K.push("remoteQueueChange");this.playerContext_.playerState==D.playerState&&this.playerContext_.volume==D.volume&&this.playerContext_.muted==D.muted&&liY(this.playerContext_)==liY(D)&&(0,_.VZ)(this.playerContext_.trackData)==(0,_.VZ)(D.trackData)||K.push("remotePlayerChange");this.playerContext_.reset(x);_.uM(K,function(z){this.publish(z)},this)};
_.a.getOtherConnectedRemoteId_=function(){var x=this.channelService.getDeviceId(),G=_.iO(this.connectedDevices_,function(D){return D.type=="REMOTE_CONTROL"&&D.id!=x});
return G?G.id:""};
_.a.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.a.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.a.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.a.JSC$17558_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var $6O=function(x){_.lI(x.idleDisconnectTimerId_);x.idleDisconnectTimerId_=_.oA(function(){x.JSC$17558_disconnect_(1)},864E5)},cJ=function(x,G,D){D?yq("Sending: action="+G+", params="+(0,_.VZ)(D)):yq("Sending: action="+G);
x.channelService.sendMessage(G,D)};
lJ.prototype.sendMessageWithUserAction_=function(x,G){cJ(this,x,G);$6O(this)};
lJ.prototype.JSC$17558_getXsrfToken_=function(){var x=_.MU.get("SAPISID","")||_.MU.get("__Secure-1PAPISID",void 0)||"",G=_.MU.get("__Secure-3PAPISID","")||"";if(!x&&!G)return"";x=_.PY(_.rM(x),2);G=_.PY(_.rM(G),2);return _.PY(_.rM(","+x+","+G),2)};
lJ.prototype.subscribe=lJ.prototype.subscribe;lJ.prototype.unsubscribeByKey=lJ.prototype.unsubscribeByKey;lJ.prototype.getProxyState=lJ.prototype.getProxyState_;lJ.prototype.disconnect=lJ.prototype.JSC$17558_disconnect_;lJ.prototype.getPlayerContextData=lJ.prototype.getPlayerContextData_;lJ.prototype.setPlayerContextData=lJ.prototype.setPlayerContextData_;lJ.prototype.getOtherConnectedRemoteId=lJ.prototype.getOtherConnectedRemoteId_;lJ.prototype.getReconnectTimeout=lJ.prototype.getReconnectTimeout_;
lJ.prototype.getAutoplayMode=lJ.prototype.getAutoplayMode_;lJ.prototype.getAutoplayVideoId=lJ.prototype.getAutoplayVideoId_;lJ.prototype.reconnect=lJ.prototype.JSC$17558_reconnect_;lJ.prototype.sendMessage=lJ.prototype.sendMessageWithUserAction_;lJ.prototype.getXsrfToken=lJ.prototype.JSC$17558_getXsrfToken_;lJ.prototype.isCapabilitySupportedOnConnectedDevices=lJ.prototype.isCapabilitySupportedOnConnectedDevices_;var SVc=function(x){Ro.call(this,"ScreenServiceProxy");this.instance_=x;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.mW)(this.JSC$17561_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.mW)(this.onOnlineScreenChange_,this)))};
_.m(SVc,Ro);_.a=SVc.prototype;_.a.getScreens=function(x){return this.instance_.$_gs(x)};
_.a.contains=function(x){return!!this.instance_.$_c(x)};
_.a.get=function(x){return this.instance_.$_g(x)};
_.a.start=function(){this.instance_.$_st()};
_.a.add=function(x,G,D){this.instance_.$_a(x,G,D)};
_.a.remove=function(x,G,D){this.instance_.$_r(x,G,D)};
_.a.updateName=function(x,G,D,K){this.instance_.$_un(x,G,D,K)};
_.a.disposeInternal=function(){for(var x=this.subscriptionKeys_.length,G=0;G<x;++G)this.instance_.$_ubk(this.subscriptionKeys_[G]);this.subscriptionKeys_.length=0;this.instance_=null;Ro.prototype.disposeInternal.call(this)};
_.a.JSC$17561_onScreenChange_=function(){this.publish("screenChange")};
_.a.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
is.prototype.$_st=is.prototype.start;is.prototype.$_gspc=is.prototype.JSC$17518_getScreenByPairingCode;is.prototype.$_gsppc=is.prototype.JSC$17518_getScreenByPollingPairingCode;is.prototype.$_c=is.prototype.contains;is.prototype.$_g=is.prototype.get;is.prototype.$_a=is.prototype.add;is.prototype.$_un=is.prototype.updateName;is.prototype.$_r=is.prototype.remove;is.prototype.$_gs=is.prototype.getScreens;is.prototype.$_gos=is.prototype.JSC$17518_getOnlineScreens;is.prototype.$_s=is.prototype.subscribe;
is.prototype.$_ubk=is.prototype.unsubscribeByKey;var qVY=function(x){epY();if(!Io||!Io.get("yt-remote-disable-remote-module-for-dev")){x=_.Am("MDX_CONFIG")||x;phf();aP6();To||(To=new m$(x?x.loungeApiHost:void 0),ZoO()&&(To.basePath="/api/loungedev"));WJ||(WJ=_.nT("yt.mdx.remote.deferredProxies_")||[],_.Jv("yt.mdx.remote.deferredProxies_",WJ));nVb();var G=e6();if(!G){var D=new is(To,x?x.disableAutomaticScreenCache||!1:!1);_.Jv("yt.mdx.remote.screenService_",D);G=e6();var K={};x&&(K={appId:x.appId,disableDial:x.disableDial,theme:x.theme,loadCastApiSetupScript:x.loadCastApiSetupScript,
disableCastApi:x.disableCastApi,enableDialLoungeToken:x.enableDialLoungeToken,enableCastLoungeToken:x.enableCastLoungeToken,forceMirroring:x.forceMirroring});_.Jv("yt.mdx.remote.enableConnectWithInitialState_",x?x.enableConnectWithInitialState||!1:!1);qvT(D,function(y){y?Z3()&&EBT(Z3(),"YouTube TV"):D.subscribe("onlineScreenChange",function(){El("yt-remote-receiver-availability-change")})},K)}if(x&&!_.nT("yt.mdx.remote.initialized_")){_.Jv("yt.mdx.remote.initialized_",!0);
MQ("Initializing: "+(0,_.VZ)(x));Qq.push(_.z1("yt-remote-cast2-api-ready",function(){El("yt-remote-api-ready")}));
Qq.push(_.z1("yt-remote-cast2-availability-change",function(){El("yt-remote-receiver-availability-change")}));
Qq.push(_.z1("yt-remote-cast2-receiver-selected",function(){iBf();El("yt-remote-auto-connect","cast-selector-receiver")}));
Qq.push(_.z1("yt-remote-cast2-receiver-resumed",function(){El("yt-remote-receiver-resumed","cast-selector-receiver")}));
Qq.push(_.z1("yt-remote-cast2-session-change",gVO));Qq.push(_.z1("yt-remote-connection-change",function(y){y?EBT(Z3(),"YouTube TV"):ug4()||(EBT(null,null),tSi())}));
Qq.push(_.z1("yt-remote-cast2-session-failed",function(){El("yt-remote-connection-failed")}));
K=d6b();x.isAuto&&(K.id+="#dial");var z=x.capabilities||[];z.length>0&&(K.capabilities=z);K.name=x.device;K.app=x.app;(x=x.theme)&&(K.theme=x);MQ(" -- with channel params: "+(0,_.VZ)(K));K?(_.hi("yt-remote-session-app",K.app),_.hi("yt-remote-session-name",K.name)):(_.GP("yt-remote-session-app"),_.GP("yt-remote-session-name"));_.Jv("yt.mdx.remote.channelParams_",K);G.start();Z3()||wob()}}},vVi=function(){var x=e6().instance_.$_gos();
var G=Nei();G&&pK()&&(xq6(x,G)||x.push(G));return heT(x)},JzT=function(){var x=vVi(),G=Nei();
G||(G=ug4());return _.iO(x,function(D){return G&&$F(G,D.key)?!0:!1})},Nei=function(){var x=Z3();
if(!x)return null;var G=e6().getScreens();return Fd(G,x)},gVO=function(x){MQ("remote.onCastSessionChange_: "+hpf(x));
if(x){var G=Nei();G&&G.id==x.id?(EBT(G.id,"YouTube TV"),x.idType=="shortLived"&&(x=x.token)&&(G=pK())&&G.setLoungeToken(x)):(G&&fiC(),t1x(x,1))}else pK()&&fiC()},fiC=function(){PgC()?wz().stopSession():dz("stopSession called before API ready.");
var x=pK();x&&(x.disconnect(1),kcO(null))},Pzf=function(){var x=pK();
return x&&x.getProxyState()!=3?new Go(pK(),void 0):null},MQ=function(x){Xd("remote",x)},e6=function(){if(!EV8){var x=_.nT("yt.mdx.remote.screenService_");
EV8=x?new SVc(x):null}return EV8},Z3=function(){return _.nT("yt.mdx.remote.currentScreenId_")},hzj=function(x){_.Jv("yt.mdx.remote.currentScreenId_",x)},iBf=function(){_.Jv("yt.mdx.remote.connectData_",null)},pK=function(){return _.nT("yt.mdx.remote.connection_")},kcO=function(x){var G=pK();
iBf();x||hzj("");_.Jv("yt.mdx.remote.connection_",x);WJ&&(_.uM(WJ,function(D){D(x)}),WJ.length=0);
G&&!x?El("yt-remote-connection-change",!1):!G&&x&&El("yt-remote-connection-change",!0)},ug4=function(){var x=K7k();
if(!x)return null;var G=e6();if(!G)return null;G=G.getScreens();return Fd(G,x)},t1x=function(x,G){hzj(x.id);
x=new lJ(To,x,d6b(),_.nT("yt.mdx.remote.enableConnectWithInitialState_")||!1);x.connect(G,_.nT("yt.mdx.remote.connectData_"));x.subscribe("beforeDisconnect",function(D){El("yt-remote-before-disconnect",D)});
x.subscribe("beforeDispose",function(){pK()&&kcO(null)});
x.subscribe("browserChannelAuthError",function(){var D=Nei();D&&D.idType=="shortLived"&&(PgC()?wz().handleBrowserChannelAuthError():dz("refreshLoungeToken called before API ready."))});
kcO(x)},wob=function(){var x=ug4();
x?(MQ("Resume connection to: "+hpf(x)),t1x(x,0)):(CV(),tSi(),MQ("Skipping connecting because no session screen found."))},To=null,WJ=null,EV8=null,nVb=function(){var x=d6b();
if(_.YS.isEmpty(x)){x=DqT();var G=_.xt("yt-remote-session-name")||"",D=_.xt("yt-remote-session-app")||"";x={device:"REMOTE_CONTROL",id:x,name:G,app:D,mdxVersion:3};x.authuser=String(_.Am("SESSION_INDEX","0"));(G=_.Am("DELEGATED_SESSION_ID"))&&(x.pageId=String(G));_.Jv("yt.mdx.remote.channelParams_",x)}},d6b=function(){return _.nT("yt.mdx.remote.channelParams_")||{}},Qq=[];var xZj=new _.Xj("yt-menu"),G$j=function(){},Kai=function(x,G,D){x=G=="right-click"?D.rightClickMenuPopupHint:D.menuPopupHint;
if(!(DZT(G)>10))return G=G||"default",xZj.set(G+"-impression",DZT(G)+1),x},DZT=function(x){return parseInt(xZj.get((x||"default")+"-impression")||0,10)};
_.JR(G$j);var zmb=function(){this.contexts_=new WeakMap;this.JSC$17567_networkService_=this.activeContext_=null},aOc=function(x,G,D){var K=x.contexts_.get(G);
K||(K=new MnO(x.JSC$17567_networkService_),x.contexts_.set(G,K));x.activeContext_=K;D&&x.activeContext_.reset();x.activeContext_.start();return x.activeContext_};var Vq=function(){};
Vq.prototype.enqueue=function(){var x=this,G;return _.T(function(D){if(x.isCounterfactual())return(G=x.getCounterfactualData())&&x.shouldLogCounterfactualImpression()&&x.sendImpressionEndpoints(G),D.return();x.doEnqueue();_.c5(D)})};
Vq.prototype.sendImpressionEndpoints=function(x){_.gu.getInstance().triggerOptionalAction("yt-service-request",{},x[0])};var bJ=function(x,G){this.renderer=x;this.page=G};
_.m(bJ,Vq);bJ.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
bJ.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
bJ.prototype.shouldLogCounterfactualImpression=function(){return!0};
bJ.prototype.doEnqueue=function(){var x=_.qs(this.page);x&&x.pause();this.renderer.impressionCommand&&_.gu.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.YG(_.gu.getInstance(),[this.renderer.promoCommand],this.page)};var oPj=function(x,G){this.renderer=x;this.resolver=_.Ss();this.JSC$17579_enforcementCounter=new _.x1Z;G?this.JSC$17579_playerManager=_.qs(G):this.JSC$17579_playerManager=null;_.y7(1,!0)};
_.m(oPj,Vq);_.a=oPj.prototype;_.a.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var x=[];this.renderer.impressionEndpoints.forEach(function(G){(G=_.jn(G))&&x.push(G)});
return x}};
_.a.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.a.shouldLogCounterfactualImpression=function(){var x=_.nED();x?(this.JSC$17579_enforcementCounter.increment("POPUP"),_.y7(3)):_.y7(2);return x};
_.a.cancel=function(){this.resolver.promise.cancel()};
_.a.doEnqueue=function(){var x=this;_.nED()?(this.JSC$17579_enforcementCounter.increment("POPUP"),_.y7(3),yif(this)):this.JSC$17579_playerManager?(this.resolver.promise.then(function(){yif(x)}),lO4(this.resolver,this.JSC$17579_playerManager)):_.y7(2)};
var lO4=function(x,G){var D=_.Ss();G.getPlayerPromise().then(function(K){D.resolve(K)});
D.promise.then(function(K){K.addEventListener("onAbnormalityDetected",x.resolve);_.M_(x.promise,function(){K.removeEventListener("onAbnormalityDetected",x.resolve)})});
x.promise.thenCatch(function(){D.promise.cancel()})},yif=function(x){_.y7(3);
var G={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:x.renderer}};G=_.gu.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:G},{});Promise.all(G).then(function(){cix();x.JSC$17579_playerManager&&x.JSC$17579_playerManager.pause()})},cix=function(){GzO(function(x,G){_.xh8(x,G);
x===0?_.y7(7):_.y7(4)})};var TQ4=function(x,G){this.renderer=x;this.page=G;this.resolver=_.Ss()};
_.m(TQ4,Vq);_.a=TQ4.prototype;_.a.cancel=function(){this.resolver.promise.cancel()};
_.a.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.a.isCounterfactual=function(){return!this.renderer.isVisible};
_.a.shouldLogCounterfactualImpression=function(){return!0};
_.a.doEnqueue=function(){var x=this;this.resolver.promise.then(function(){var D={popup:{mealbarPromoRenderer:x.renderer},popupType:"MEALBAR"};_.gu.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:D},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var G=_.qs(this.page);G&&Wac(this.resolver,G)}break;default:this.resolver.resolve()}};
var Wac=function(x,G){var D=_.Ss();G.getPlayerPromise().then(function(K){D.resolve(K)});
D.promise.then(function(K){K.addEventListener("onAdEnd",x.resolve);_.M_(x.promise,function(){K.removeEventListener("onAdEnd",x.resolve)})});
x.promise.thenCatch(function(){D.promise.cancel()})};var emf=function(x,G){this.renderer=x;this.page=G};
_.m(emf,Vq);_.a=emf.prototype;_.a.cancel=function(){this.JSC$17587_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17587_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17587_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.a.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.a.isCounterfactual=function(){return!this.renderer.isVisible};
_.a.shouldLogCounterfactualImpression=function(){return!0};
_.a.doEnqueue=function(){var x=this,G,D;((G=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(D=G.playbackUpsellDialogTriggerConditionData)==null?void 0:D.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17587_downloadedVideosCountSelectorUnsubscriber=_.la(_.wK(),kZj,function(K,z){K>z&&(ZJk(x),x.cancel())}):ZJk(this)};
var ZJk=function(x){var G={popup:{upsellDialogRenderer:x.renderer},popupType:"MODAL"};_.gu.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:G},{});(x=_.qs(x.page))&&x.pause()};var LK={},MKj=(LK.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",LK.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",LK.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",LK.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",LK.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",LK.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",LK.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",LK),QrO=function(x,G){this.renderer=x;this.targetManager=
G};
_.m(QrO,Vq);_.a=QrO.prototype;_.a.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17594_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17594_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17594_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.a.getCounterfactualData=function(){if(this.isCounterfactual()){var x;return(x=this.renderer.promoConfig)==null?void 0:x.impressionEndpoints}};
_.a.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.a.shouldLogCounterfactualImpression=function(){return!0};
_.a.doEnqueue=function(){var x=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17594_downloadedVideosCountSelectorUnsubscriber=_.la(_.wK(),kZj,function(G,D){x.renderer.targetId&&G>D&&(NAi(x.targetManager,x.renderer.targetId,pGc(x)),x.cancel())});
break;default:NAi(this.targetManager,this.renderer.targetId,pGc(this))}};
var pGc=function(x){var G;if((G=x.renderer.suggestedPosition)==null?0:G.type)var D=MKj[x.renderer.suggestedPosition.type];D||(D="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:x.renderer},popupType:"HINT",position:D}}};var VKb=function(){this.previousPage=null},bJj;
VKb.prototype.registerPromoCommand=function(x,G){LaC(this,void 0,void 0,_.Y(x.roadblock,Rqi),void 0,void 0,G)};
var LaC=function(x,G,D,K,z,y,c){x.previousPage!==c&&x.pendingTooltipPromo&&x.pendingTooltipPromo.cancel();x.previousPage=c;z?(x.pendingEnforcementPromo&&x.pendingEnforcementPromo.cancel(),x.pendingEnforcementPromo=new oPj(z,c),x.pendingEnforcementPromo.enqueue()):y?(x.pendingCommandWrapperPromo=new bJ(y,c),x.pendingCommandWrapperPromo.enqueue()):K?(x.pendingRoadblockPromo&&x.pendingRoadblockPromo.cancel(),x.pendingRoadblockPromo=new emf(K,c),x.pendingRoadblockPromo.enqueue()):G?(x.pendingMealbarPromo&&
x.pendingMealbarPromo.cancel(),x.pendingMealbarPromo=new TQ4(G,c),x.pendingMealbarPromo.enqueue()):D&&(x.pendingTooltipPromo&&x.pendingTooltipPromo.cancel(),x.pendingTooltipPromo=new QrO(D,_.e$()),x.pendingTooltipPromo.enqueue())},BQc=function(){bJj||(bJj=new VKb);
return bJj};var Kbc=!1;var kmj=function(x,G){var D=_.Am("SESSION_INDEX");this.actionToken_=x;this.commonToken_=G;this.sessionIndex_=D},t5k=function(x){var G=_.Ss(),D=_.nT("payments.business.integration.bootstrap"),K=_.nT("payments.business.integration"),z=K.Style.create().withMaterialDesignStyle(),y=K.mashupMode.popup("instrument-manager");
D.asMashupMode(y).usingUserIndex(x.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(z).inStandaloneContext(K.standaloneContextAuthId.forUserId()).instrumentManager(x.actionToken_,x.commonToken_.length>0?x.commonToken_:void 0,function(c){var W=c.instrumentId;W?G.resolve(W):(W=_.nT("payments.business.integration.scenario.InstrumentManager"),G.reject(c.errorCode&&c.errorCode===W.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(c){_.RE(c);
G.reject("instrumentManagerLoadError")});
return G.promise};var kF=function(x,G,D){this.payloadName="transactionFlowFailed";this.payload={errorType:x,serializedTransactionFlowLoggingParams:G,isUserDismiss:D===void 0?!1:D}};
_.Jv("yt.ypc.shared.YpcTransactionFlowError",kF);var BJ=function(){return _.WD.apply(this,arguments)||this};
_.m(BJ,_.WD);BJ.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
BJ.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
BJ.prototype.onErrorMessageDismiss=BJ.prototype.onErrorMessageDismiss;_.q([_.R({readOnly:!0,observer:"errorRendererChanged"}),_.N("design:type",Object)],BJ.prototype,"errorRenderer",void 0);_.q([_.oe("yt-live-chat-error-message-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BJ.prototype,"onErrorMessageDismiss",null);BJ=_.q([_.e2()],BJ);var ri8=[BJ.prototype];var sri;var Y3T;var mZ8=new _.Xj("yt-live-chat"),HJY=new Map;HJY.set("timestamp_toggle","show-timestamps");HJY.set("reactions_toggle","allow-reactions");var rS=function(){return _.n.apply(this,arguments)||this};
_.m(rS,_.n);_.a=rS.prototype;_.a.menuItemIdentifierChanged=function(){var x;(x=this.data)!=null&&x.menuItemIdentifier&&(x=HJY.get(this.data.menuItemIdentifier))&&(_.B("enable_lwe_web_mute")?(x=mZ8.get(x),this.isToggled=!(x===void 0?!this.data.isToggled:!x)):this.isToggled=mZ8.get(x))};
_.a.onFocus=function(){this.toggleButton.focus()};
_.a.onTap=function(){var x=this.data.command;x&&this.componentBehavior.resolveCommand(x)};
_.a.computeText=function(x,G,D){return this.componentBehavior.getSimpleString(x?D:G)};
_.a.computeIcon=function(x,G,D){return(x=x?D:G)&&x.iconType?_.aP(x.iconType):""};
rS.prototype.onTap=rS.prototype.onTap;rS.prototype.onFocus=rS.prototype.onFocus;rS.prototype.menuItemIdentifierChanged=rS.prototype.menuItemIdentifierChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],rS.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],rS.prototype,"componentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],rS.prototype,"data",void 0);
_.q([_.R({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.N("design:type",String)],rS.prototype,"icon",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],rS.prototype,"isToggled",void 0);_.q([_.cD("tp-yt-paper-toggle-button"),_.N("design:type",Object)],rS.prototype,"toggleButton",void 0);_.q([_.yf("data.menuItemIdentifier"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rS.prototype,"menuItemIdentifierChanged",null);
_.q([_.oe("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rS.prototype,"onFocus",null);_.q([_.oe("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rS.prototype,"onTap",null);rS=_.q([_.HD({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],rS);
_.w(rS,"yt-live-chat-toggle-renderer",function(){if(Y3T===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;sri===void 0&&(sri=document.createElement("template"));var K=sri;D.call(G,K.content.cloneNode(!0),x.content.firstChild);Y3T=x}x=Y3T;return x},{mode:_.B("live_chat_enable_sink_wrapper")?2:0});var $Z4=new _.wq("NAVIGATION_PROGRESS_TOKEN");_.XQ("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var Fa4={},T5j=(Fa4.CSI=function(x,G){var D={};D[x]=G;x=_.SR(_.NqV)(D);Object.keys(x).length>0&&_.Hg(x)},Fa4.ECATCHER=function(x){return function(G,D){_.Am(x)[G]=D}}("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"),Fa4);var Cax={},IOc={},jri=(IOc[YBk.name]=!0,IOc),sS=function(){var x=_.WD.apply(this,arguments)||this;x._noAccessors=!0;x.tabGesturesIsActive=!1;x.actionRouterIsRoot=!0;x.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"};x.pageTitle="";x.titleSuffix="YouTube";x.unseenNotificationCount=
0;x.hasNavigated=!1;x.hasSetScrollTopForNavigation=!1;x.pagePreparer=null;x.zwiebackInitJobId=0;x.dataUpdatePromise=null;x.loadDepsPromise=_.aI();x.hasPendingNavigation=!1;x.pendingPlayerOnResponseReceivedActions=[];return x};
_.m(sS,_.WD);sS.prototype.attached=function(){OJi(this);document.addEventListener("yt-navigate-cache",_.ae(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var x=Yx();x.init();x.dispatchElement=this.hostElement};
var OJi=function(x,G){G=G===void 0?0:G;var D=_.Eo().resolve(_.P6(_.WP));if(D)XGx(x,D);else{if(G>=5)throw Error("Vk");setTimeout(function(){OJi(x,G+1)},0)}},XGx=function(x,G){G.addEventListener("yt-navigate-start",_.ae(x,x.onYtNavigateStart));
G.addEventListener("yt-navigate-finish",_.ae(x,x.onYtNavigateFinish));G.addEventListener("yt-navigate-error",_.ae(x,x.onYtNavigateError));G.addEventListener("yt-page-data-fetched",_.ae(x,x.onYtPageDataFetched))};
_.a=sS.prototype;_.a.detached=function(){var x=_.Eo().resolve(_.WP);x.removeEventListener("yt-navigate-start",_.ae(this,this.onYtNavigateStart));x.removeEventListener("yt-navigate-finish",_.ae(this,this.onYtNavigateFinish));x.removeEventListener("yt-navigate-error",_.ae(this,this.onYtNavigateError));x.removeEventListener("yt-page-data-fetched",_.ae(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.ae(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.a.setPageOffset=function(x,G){x?_.xO(this.hostElement,"yt-set-page-offset",[x,G]):_.I4(Error("Wk"))};
_.a.setPageOffsetForNavigation=function(x,G){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(x,G))};
_.a.onYtNavigateSetPageOffset=function(x,G){this.setPageOffsetForNavigation(G.page,G.offset)};
_.a.getPageOffset=function(){var x=_.kA(this.hostElement).querySelector("#page-manager").getCurrentPage(),G=0;x&&(G=_.xO(this.hostElement,"yt-get-page-offset",[x])[0]);return G};
_.a.onYtHistoryPop=function(x,G){if(_.Uo("DISABLE_WARM_LOADS"))x.preventDefault(),window.location.reload();else{var D=_.Eo().resolve(_.WP);D.hasPendingNavigation()&&x.preventDefault();D.cancelPendingNavigation();_.Gl(this.hostElement,"yt-pending-navigation-cancelled");G.errorMsg&&(x=G.errorMsg.split(" - "),G=Error(x[0]),x.length==2&&x[1]&&(_.Xv(G,x[1]),_.O9(G)),window.location.reload())}};
_.a.onYtHistoryLoad=function(x,G){var D=this;if(_.Uo("DISABLE_WARM_LOADS"))window.location.reload();else{(x=G.endpoint)&&Object.keys(x).length||(x=null);var K=G.historyEntry,z=_.Eo().resolve(_.WP),y=_.Eo().resolve(_.wG),c=null;K&&K.rootData&&(c=K.rootData);var W=c&&Aib(c);!c||W||c.filler?x?(z.navigate(x,!0),UZT(this,x)):(G.legacyBorder||W||(G.JSC$26565_savedComponentState==null&&c==null?_.O9(new _.LL("Incomplete history entry",G.forward)):_.jm(new _.LL("Malformed history entry",G.JSC$26565_savedComponentState,
G.forward,c))),window.location.reload()):(_.hAL({isHot:!0}),_.Hg({webInfo:{navigationReason:"h"}}),_.ED3(),_.Fs("srt"),_.Fs("pdc"),this.cancelPendingTasks(),Rmj(this,G.forward,c),c.player&&(c.player.loaded=!1),UZT(this,x),_.vDo(z,x||{},c,2,{},!1,G).then(function(){D.setPageOffset(y.getCurrentPage(),K.scrollTop||0)}))}};
_.a.initHistoryManager=function(x){if(!this.hasNavigated){this.hasNavigated=!0;var G=_.kA(this.hostElement).querySelector("#page-manager").getCurrentData();x=isNaN(x)?this.getPageOffset():x;var D=_.Eo().resolve(_.WP).currentEndpoint;this.replaceState(D,G,x)}};
_.a.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.a.onYtNavigateStart=function(x,G){this.cancelPendingTasks();G.noProgressBar||(x=_.Eo().resolve(_.P6($Z4)))&&x.start();x=this.hasPendingNavigation?null:this.data;var D=_.Eo().resolve(_.wG),K,z,y;_.B("kevlar_use_vimio_behavior")&&!((K=G.endpoint)==null?0:(z=K.commandMetadata)==null?0:(y=z.webCommandMetadata)==null?0:y.ignoreNavigation)&&(K=D.getCurrentPage())&&K.disconnectVisibilityRoot();D.prepareForNavigation(G.pageType,G.endpoint);_.B("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.vP(1,
"pcl"),_.JG(this.pagePreparer,D.preparePage.bind(D,G.pageType,G.endpoint)));K=this.getPageOffset();this.initHistoryManager(K);G.reload||this.hasPendingNavigation?this.replaceState(G.endpoint,x,K):(x==null?void 0:x.page)==="watch"&&G.pageType==="watch"&&_.B("kevlar_replace_watch_to_watch_history_state")?this.replaceState(G.endpoint,x,K):(x==null?void 0:x.page)!=="shorts"||G.pageType!=="shorts"||G.endpoint.reelWatchEndpoint.sequenceParams||_.B("short_to_short_back_nav_killswitch")?G.type!="navigate-back"&&
G.type!="navigate-forward"&&(G.pageType==="shorts"&&_.h$(this.hostElement,"yt-shorts-reset"),this.saveAndPush(G.url,G.endpoint,x,K)):this.replaceState(G.endpoint,x,0);this.hasPendingNavigation=!0};
var S3c=function(x){x.hasPendingNavigation=!1;(x=_.Eo().resolve(_.P6($Z4)))&&x.finish()};
sS.prototype.onYtNavigateError=function(x,G){S3c(this);x=this.get("endpoint.commandMetadata.webCommandMetadata.url",G);var D=_.wT(window.location.href);x&&!D.pbjreload&&(G=G.navigationErrorReason||"10",_.B("kevlar_parent_on_pbjreload")&&(D={csn:_.CC()},this.get("data.endpoint.clickTrackingParams")&&(D.itct=this.data.endpoint.clickTrackingParams),_.vy(x,D)),_.U4(_.qh(x,{pbjreload:G})))};
sS.prototype.onYtNavigateCache=function(x,G){var D=this,K=G.url,z=G.endpoint,y=G.data;x=!!G.miniplayer;G=!!G.skipHistory;if(K&&z&&y){var c=this.getPageOffset(),W=this.data||null;G||this.saveAndPush(K,z,W,c);K=_.vDo(_.Eo().resolve(_.WP),z,y,x?4:3,{},x);x&&K.then(function(){D.dataUpdatePromise&&D.dataUpdatePromise.then(function(){var e=_.Eo().resolve(_.wG);D.setPageOffset(e.getCurrentPage(),0)})})}};
sS.prototype.onYtNavigateFinish=function(x,G){var D=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){nPx(D,G.fromHistory)})};
var nPx=function(x,G){S3c(x);if(x.pendingPlayerOnResponseReceivedActions){for(var D=_.l(x.pendingPlayerOnResponseReceivedActions),K=D.next();!K.done;K=D.next())_.lb(K.value,x.hostElement);x.pendingPlayerOnResponseReceivedActions=[]}D=_.Eo().resolve(_.wG);!G&&x.hasNavigated&&((G=D.getCurrentPage())?G.is==="ytd-shorts"||x.tabGesturesIsActive||x.setPageOffsetForNavigation(G,0):_.O9(Error("Xk")));_.Xw(function(){_.Xw(function(){_.Fs("pda")})})};
sS.prototype.onYtNavigate=function(x){if(!x.detail.endpoint){var G=new _.LL("Error: Missing yt-navigate endpoint from target:",x.target,x.target.nodeName);_.I4(G)}if(G=_.B("cold_missing_history"))G=Yx(),G.init(!1),G=!(G.browserHistory.boundHistoryReplaceState&&G.browserHistory.boundHistoryPushState);if(G){_.XQ("DISABLE_WARM_LOADS",!0);G=new _.LL("Failed to initialize history manager",this.getDebugString());var D=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
D?_.O9(G):_.I4(G)}G=x.detail.endpoint;var K,z;_.B("debug_forward_web_query_parameters")&&((K=G.commandMetadata)==null?0:(z=K.webCommandMetadata)==null?0:z.url)&&(G=JSON.parse(JSON.stringify(G)),G.commandMetadata.webCommandMetadata.url=_.gBn(G.commandMetadata.webCommandMetadata.url,window.location.search));x={type:0,command:G,form:{params:x.detail.params,tempData:x.detail.tempData||{},requestType:x.detail.type,createScreenConfig:x.detail.createScreenConfig,reload:x.detail.reload?x.detail.reload:!1,
requestForm:x.detail}};_.B("kevlar_yt_navigate_command_handler")?(K=_.Eo().resolve(_.hm),x.form.skipDefaultElement=!0,K.resolveCommand(G,{form:x.form})):this.handleNavigate(x)};
sS.prototype.handleNavigate=function(x){this.hasSetScrollTopForNavigation=!1;var G=_.Eo().resolve(_.WP),D=x.form||{};G.navigate(x.command,D.reload,D.params,D.tempData,D.requestType,D.createScreenConfig,D.ignoreConfirmation,D.requestForm)&&UZT(this,x.command,D.tempData)};
sS.prototype.onYtPageDataFetched=function(x,G){try{_.J97().reset();this.data=G.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.Eo().resolve(_.wG).updatePageData(this.data);var D=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);D&&Wb4(D);var K=this.get("response.responseContext.serviceTrackingParams",this.data);K&&Wb4(K);var z=
this.get("playerResponse.onResponseReceivedActions",this.data);z&&(z=iJT(this,z));z&&_.zl(this.hostElement,z,this.hostElement);var y=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),c=this.get("response.responseContext.consistencyTokenJar",this.data);if(y||c){var W=_.Wef(),e=(0,_.YS.getValues)(W.tokenJars);y&&W.replace(e,y);c&&W.replace(e,c)}}catch(Q){_.I4(Q)}};
var UZT=function(x,G,D){try{x.onYtEndpointChangeHandler(G,D)}catch(K){_.I4(K)}};
_.a=sS.prototype;_.a.onYtEndpointChangeHandler=function(){};
_.a.setPageTitle=function(x){x=(this.pageTitle=x)?x+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+x};
_.a.onYtUpdateTitle=function(x,G){this.setPageTitle(G)};
_.a.setUnseenNotificationCount=function(x){this.unseenNotificationCount=x;this.setPageTitle(this.pageTitle)};
_.a.handleUpdateNotificationsUnseenCountAction=function(x){_.Y(x,aKx)&&((x=_.Y(x,aKx).unseenCount)?this.setUnseenNotificationCount(x):this.setUnseenNotificationCount(0))};
_.a.handleClearCookieAction=function(x){var G;(x=(G=_.Y(x,GIT))==null?void 0:G.cookieName)&&_.auf(x)};
_.a.onYtUpdateUnseenNotificationCount=function(x,G){this.setUnseenNotificationCount(G)};
_.a.loadData=function(x){var G=this;this.loadDepsPromise.then(function(){var D=_.Eo().resolve(_.P6(_.WP));D||_.I4(Error("Yk"));if(x&&x.response){if(!x.endpoint){var K=_.Sq(window.document.location.href)||"/",z="";if(K==="/"||K.startsWith("/?"))z="WEB_PAGE_TYPE_BROWSE";x.endpoint={commandMetadata:{webCommandMetadata:{url:K,webPageType:z,rootVe:3854}}}}_.vDo(D,x.endpoint,x,5,{})}else x.endpoint?D.navigate(x.endpoint):D.navigate(_.yM);_.Fj.cancelJob(G.zwiebackInitJobId);G.zwiebackInitJobId=_.Fj.addLowPriorityJob(zc4)})};
var Yx=function(){return _.Eo().resolve(_.ad)};
sS.prototype.getDebugString=function(){return Yx().getDebugString()};
sS.prototype.getThirdPartyManipulationSuspected=function(){return Yx().getThirdPartyManipulationSuspected()};
sS.prototype.replaceState=function(x,G,D){Yx().saveAndReplace(x,G,D)};
sS.prototype.saveAndPush=function(x,G,D,K){Yx().saveAndPush(x,G,D,K)};
var Aib=function(x){return _.Y(x.endpoint,_.d5)||_.Y(x.endpoint,_.MB)?!0:!x||isNaN(x.expirationTime)?!1:(0,_.kK)()>x.expirationTime},Rmj=function(x,G,D){var K=x.get("response.trackingParams",D),z=_.Fx(),y=_.CC();
if(K&&z&&y&&(K=x.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",D),!K&&D.rootVe&&(K=D.rootVe),z=G?"forwardButton":"backButton",G=x.get("playerResponse.topbar.desktopTopbarRenderer."+z+".buttonRenderer.command.clickTrackingParams",x.data),x=x.get("response.topbar.desktopTopbarRenderer."+z+".buttonRenderer.command.clickTrackingParams",x.data),G=(x=G||x)?_.V2(x):void 0,x=_.en(),z=[_.aI(D)],_.EV(x,K,G,{dataPromises:z,csnToClone:D.csn}),D.graftedVes))for(D=
_.l(D.graftedVes),K=D.next();!K.done;K=D.next())_.hz(x,K.value)};
sS.prototype.onStoreGraftedVeAction=function(x){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(x)):_.O9(Error("Zk"))};
var iJT=function(x,G){return G.filter(function(D){for(var K in D)if(jri[K])return x.pendingPlayerOnResponseReceivedActions.push(D),!0;return!1})};
_.Nq.Object.defineProperties(sS.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
sS.prototype.onStoreGraftedVeAction=sS.prototype.onStoreGraftedVeAction;sS.prototype.loadData=sS.prototype.loadData;sS.prototype.onYtUpdateUnseenNotificationCount=sS.prototype.onYtUpdateUnseenNotificationCount;sS.prototype.handleClearCookieAction=sS.prototype.handleClearCookieAction;sS.prototype.handleUpdateNotificationsUnseenCountAction=sS.prototype.handleUpdateNotificationsUnseenCountAction;sS.prototype.setUnseenNotificationCount=sS.prototype.setUnseenNotificationCount;
sS.prototype.onYtUpdateTitle=sS.prototype.onYtUpdateTitle;sS.prototype.setPageTitle=sS.prototype.setPageTitle;sS.prototype.onYtEndpointChangeHandler=sS.prototype.onYtEndpointChangeHandler;sS.prototype.onYtPageDataFetched=sS.prototype.onYtPageDataFetched;sS.prototype.handleNavigate=sS.prototype.handleNavigate;sS.prototype.onYtNavigate=sS.prototype.onYtNavigate;sS.prototype.onYtNavigateFinish=sS.prototype.onYtNavigateFinish;sS.prototype.onYtNavigateCache=sS.prototype.onYtNavigateCache;
sS.prototype.onYtNavigateError=sS.prototype.onYtNavigateError;sS.prototype.onYtNavigateStart=sS.prototype.onYtNavigateStart;sS.prototype.cancelPendingTasks=sS.prototype.cancelPendingTasks;sS.prototype.initHistoryManager=sS.prototype.initHistoryManager;sS.prototype.onYtHistoryLoad=sS.prototype.onYtHistoryLoad;sS.prototype.onYtHistoryPop=sS.prototype.onYtHistoryPop;sS.prototype.onYtNavigateSetPageOffset=sS.prototype.onYtNavigateSetPageOffset;sS.prototype.setPageOffset=sS.prototype.setPageOffset;
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],sS.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],sS.prototype,"data",void 0);_.q([_.oe("yt-navigate-set-page-offset"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],sS.prototype,"onYtNavigateSetPageOffset",null);
_.q([_.oe("yt-history-pop"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],sS.prototype,"onYtHistoryPop",null);_.q([_.oe("yt-history-load"),_.N("design:type",Function),_.N("design:paramtypes",[Event,_.ejE]),_.N("design:returntype")],sS.prototype,"onYtHistoryLoad",null);_.q([_.oe("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],sS.prototype,"onYtNavigate",null);
_.q([_.oe("yt-update-title"),_.N("design:type",Function),_.N("design:paramtypes",[Event,String]),_.N("design:returntype")],sS.prototype,"onYtUpdateTitle",null);_.q([_.oe("yt-update-unseen-notification-count"),_.N("design:type",Function),_.N("design:paramtypes",[Event,Number]),_.N("design:returntype")],sS.prototype,"onYtUpdateUnseenNotificationCount",null);sS=_.q([_.e2()],sS);Cax.YtdAppBehavior=[_.tG.YtActionHandlerBehavior,sS.prototype];var m2=function(){var x=_.WD.apply(this,arguments)||this;x._noAccessors=!0;return x};
_.m(m2,_.WD);m2.prototype.ready=function(){var x=this;_.kA(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){x.onChange_()})};
m2.prototype.dataChanged_=function(){_.kA(this.hostElement).querySelector("#checkbox").checked=!1};
m2.prototype.onChange_=function(){var x=_.kA(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.h$(this.hostElement,"yt-dismissal-reason-"+x,this.data.feedbackToken)};
m2.prototype.dataChanged_=m2.prototype.dataChanged_;_.q([_.R(),_.N("design:type",Object)],m2.prototype,"data",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],m2.prototype,"dataChanged_",null);m2=_.q([_.e2()],m2);var gPC=[m2.prototype];var HJ=function(){var x=_.WD.apply(this,arguments)||this;x.timeoutJobId=0;x.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return x};
_.m(HJ,_.WD);HJ.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
HJ.prototype.startTimeout=function(){var x=this,G=this.data&&this.data.displayDurationSeconds;G&&!this.timeoutJobId&&(this.timeoutJobId=_.Bw(_.Fj,function(){_.xO(x.hostElement,"yt-close-popup-action",[x.is]);x.timeoutJobId=0},G*1E3))};
HJ.prototype.cancelTimeout=function(){_.Fj.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
HJ.prototype.ytdHatsSurveyBehaviorDataChanged=HJ.prototype.ytdHatsSurveyBehaviorDataChanged;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],HJ.prototype,"ytActionHandlerBehavior",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HJ.prototype,"ytdHatsSurveyBehaviorDataChanged",null);HJ=_.q([_.e2()],HJ);var upi=[_.tG.YtActionHandlerBehavior,HJ.prototype];var dZc=function(x,G){return x.SHARED_RENDERERS_.hasOwnProperty(G)?"yt":x.prefix},$x={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}};$x.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.B("kevlar_mealbar_above_player"),modern:_.B("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"}};
$x.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};$x.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};$x.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
$x.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)"}};
$x.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};
$x.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};
$x.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};
$x.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};$x.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"}};
$x.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};$x.TOAST={component:null,properties:{}};var wGc=new function(x,G,D){this.supportedPopups=x;this.navigationEndpointPopupMap=G;this.popupTypeMap=D;this.supportedPopups=x;this.navigationEndpointPopupMap=G;this.popupTypeMap=D}({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:_.B("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"}),q3Y=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$17646_popupConfig=$x;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 NQ6=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.rE.getInstance()},Fl=function(x,G){var D=x.pageNameToElement.get(G);
if(!D){switch(G){case "watch":var K=_.B("web_watch_force_learning_journey_for_testing")?_.Nz("ytd-watch-learning-journey"):_.B("kevlar_watch_fixie")?_.Nz("ytd-watch-fixie"):_.B("kevlar_watch_grid")?_.Nz("ytd-watch-grid"):_.Nz("ytd-watch-flexy");break;case "learning_journey_watch":K=_.Nz("ytd-watch-learning-journey");break;case "shorts":K=_.Nz("ytd-shorts");break;case "search":K=_.Nz("ytd-search");break;case "channel":K=_.Nz("ytd-browse");K.pageSubtype="channels";break;case "trending":K=_.Nz("ytd-browse");
K.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":K=
_.Nz("ytd-browse");K.pageSubtype=G;break;case "browse":K=_.Nz("ytd-browse");break;default:_.O9(new _.LL("Error getting page element for type",G))}D=K;x.pageNameToElement.set(G,D)}return D};
NQ6.prototype.preparePage=function(x,G,D){D&&(x=_.ci(D)||x);if(x!=="watch"){var K=this.elementPoolPopulator,z=x;z!=K.targetPage_&&K.pendingPages_.indexOf(z)>-1&&(K.targetPage_&&(K.pendingPages_.unshift(K.targetPage_),K.abort()),fDc(K,z),_.Tok(K,z))}if((K=Fl(this,x))||!_.Y(D,_.iV)){K.isAttached||K===G||(K.hidden=!0);if(!(K.data||x==="watch"&&_.B("swatcheroo_page_pool_dont_provide_filler_data"))){var y;if(x=(y=_.Am("FILLER_DATA",{})[x])==null?void 0:y.response)K.data=x}return K}};var vPj=function(x){this.JSC$28457_clientRoot=x;this.playlistHandlerActionMap={"yt-add-to-playlist-command":QZO,"yt-end-playlist-command":pyf,"yt-recover-playlist-command":bCk,"yt-refresh-playlist-command":r$C,"yt-playlist-remove-videos-action":Lbc};_.uV(_.gu.getInstance(),this.playlistHandlerActionMap,this.JSC$28457_clientRoot);z$f()},JiY;var CK=function(x,G,D){this.apiKey=x;this.endpoint=G;this.confidenceThreshold=D===void 0?.5:D;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=G==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||G==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
G==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||G==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new uu8};
_.a=CK.prototype;
_.a.start=function(x){if(this.state===0)if(this.isOnline()){x.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=x.supportsHttpHeadersOverwriteParam);x.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=x.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.$O("voice_assistant");_.CW("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=x.languageCode||"en-US";this.supportsCrossDomainXhr=x.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=x.youtubeAssistantRequest||null;this.listeningHandler=x.listeningHandler||this.listeningHandler;this.audioDetectedHandler=x.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=x.stopHandler||this.stopHandler;this.completeHandler=x.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=x.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=x.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
x.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=x.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=x.accessToken;this.additionalHeaders=x.additionalHeaders||{};var G;this.prefetchResponseTimeoutMs=(G=x.prefetchResponseTimeoutMs)!=null?G:this.prefetchResponseTimeoutMs;fOi(this);this.startAudio();tK4(this)}else this.errorHandler("OFFLINE")};
_.a.stop=function(x){var G=x===void 0?{}:x;x=G.logCancel===void 0?!0:G.logCancel;var D=G.logMicClosed===void 0?!0:G.logMicClosed;var K=G.handleError===void 0?!0:G.handleError;G=G.handleStop===void 0?!0:G.handleStop;this.state!==0&&(x&&I2("voz_cx"),j6(this,{logMicClosed:D,handleStop:G}),K&&this.errorHandler("ABORTED"))};
_.a.getState=function(){return this.state};
_.a.isSupported=function(){return!0};
_.a.stopAudio=function(x){(x===void 0||x)&&I2("voz_mf")};
_.a.startAudio=function(){I2("voz_vp");return _.aI(null)};
var k$8=function(x,G){x.channelOpen&&(x.state!==2&&(x.state=2,I2("voz_ss"),x.listeningHandler()),G=new Uint8Array(G),G='{ "audioIn": "'+_.PY(G)+'" }',x.channel.send(G))},j6=function(x,G){var D=G===void 0?{}:G;
G=D.logMicClosed===void 0?!0:D.logMicClosed;D=D.handleStop===void 0?!0:D.handleStop;x.vozEndOfDataTimeout>-1&&(clearTimeout(x.vozEndOfDataTimeout),x.vozEndOfDataTimeout=-1);PaC(x);x.stopAudio(G);x.channel&&(x.channelOpen=!1,x.manuallyClosedChannel=!0,x.channel.close(),x.channel=void 0);x.transcribedSpeechResults=[];x.state=0;D&&x.stopHandler()},fOi=function(x){var G={httpHeadersOverwriteParam:x.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},x.additionalHeaders,x.accessToken&&x.isUsingVoz?{Authorization:"Bearer "+x.accessToken}:{"x-goog-api-key":x.apiKey}),supportsCrossDomainXhr:x.supportsCrossDomainXhr};x.channel=new Iv(x.endpoint,G);x.channel.open();_.Lz(x.channel,"w",function(){var D=x.channel,K=D.send,z=x.isUsingVoz?"PLACEHOLDER":"example";z={config:{dialogStateIn:{languageCode:x.languageCode},deviceConfig:{deviceId:z,deviceModelId:z},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!x.isUsingVoz)z.config.requestType=4;else if(x.isUsingVoz&&x.youtubeAssistantRequest){var y=JSON.stringify(x.youtubeAssistantRequest);z.config.internalIn={youtubeAssistantS3InputJson:y}}K.call(D,z);x.channelOpen=!0;x.manuallyClosedChannel=!1});
_.Lz(x.channel,"x",function(){x.manuallyClosedChannel||(x.channelOpen=!1,x.channel=void 0,j6(x))});
_.Lz(x.channel,"z",function(D){if(D.data){PaC(x);for(var K=0;K<D.data.length;K++){var z=x,y=D.data[K],c=y.speechResults;if(c)a:{var W=[];y=[];var e=!1;c=_.l(c);for(var Q=c.next();!Q.done;Q=c.next()){Q=Q.value;if(Q.noSpeech){j6(z);z.errorHandler("NO_SPEECH");break a}Q.transcript!==void 0&&Q.stability!==void 0&&(Q.stability<z.confidenceThreshold&&(e=!0),e?y.push(Q.transcript):W.push(Q.transcript))}if(W.length!==0||y.length!==0)W=W.join(" "),y=y.join(" "),z.receivedEndOfUtterance&&!z.isUsingVoz?z.isUsingVoz||
z.completeHandler([W,y]):(e=z,c=W,Q=y,I2("voz_sf"),e.transcriptionUpdateHandler(c,Q),e.transcribedSpeechResults=[c,Q]),z.receivedEndOfUtterance&&(I2("voz_eou"),z.transcriptionCompleteHandler([W,y]),z.isUsingVoz&&(z.prefetchResponseTimeoutMs===0?j6(z,{logMicClosed:!1,handleStop:!0}):z.prefetchResponseTimeoutMs>0&&EPT(z)))}else z.isUsingVoz&&(y==null?0:y.internalOut)?(y=JSON.parse(y.internalOut.youtubeAssistantS3OutputJson),y.userHasOptedInToVaa||y.vaaConsent?z.vaaConsentUpdateHandler(!!y.userHasOptedInToVaa,
!!y.vaaConsent):(hmf(z),y&&(W=z.transcribedSpeechResults,I2("voz_rqf"),z.completeHandler(W,y)))):y.eventType==="END_OF_UTTERANCE"?z.receivedEndOfUtterance=!0:(I2("voz_err"),z.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.O9(Error("$k")))}}});
_.Lz(x.channel,"y",function(D){j6(x);switch(D.status){case 1:D="WEBCHANNEL_NETWORK_ERROR";break;case 2:D="WEBCHANNEL_SERVER_ERROR";break;default:D="WEBCHANNEL_UNKNOWN_ERROR"}x.errorHandler(D);x.logError(Error(D))})};
CK.prototype.logError=function(x){_.I4(x)};
CK.prototype.isOnline=function(){return!0};
var EPT=function(x){hmf(x);x.prefetchResponseSetTimeoutId=setTimeout(function(){j6(x,{logMicClosed:!1,handleStop:!0})},x.prefetchResponseTimeoutMs)},hmf=function(x){x.prefetchResponseSetTimeoutId>-1&&(clearTimeout(x.prefetchResponseSetTimeoutId),x.prefetchResponseSetTimeoutId=-1)},tK4=function(x){PaC(x);
x.noResponseReceivedTimeout=window.setTimeout(function(){j6(x);x.errorHandler("NO_SPEECH")},11E3)},PaC=function(x){x.noResponseReceivedTimeout>-1&&(window.clearTimeout(x.noResponseReceivedTimeout),x.noResponseReceivedTimeout=-1)},I2=function(x){_.Fs(x,void 0,"voice_assistant")};var OS=function(){CK.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.m(OS,CK);OS.prototype.isSupported=function(){return sZC()};
OS.prototype.startAudio=function(){var x=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.rk(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(K){xzb(x,K)};
this.processor.connect(this.audioContext.destination);var G=function(K){x.stream=K;if(!x.audioContext)return _.aI(null);K=x.audioContext.createMediaStreamSource(K);x.processor&&K.connect(x.processor);return _.aI(null)},D={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?G(this.stream):navigator.mediaDevices.getUserMedia(D).then(G).catch(function(K){j6(x);K.name&&K.name==="NotAllowedError"?x.errorHandler("NO_MICROPHONE_PERMISSION"):(x.errorHandler("AUDIO_ERROR"),x.logError(K));return _.rk(null)});
return CK.prototype.startAudio.call(this)};
OS.prototype.stopAudio=function(x){x=x===void 0?!0:x;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(G){G.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;CK.prototype.stopAudio.call(this,x)};
OS.prototype.isOnline=function(){return navigator.onLine};
var xzb=function(x,G){if(x.audioContext)if(window.OfflineAudioContext){var D=x.audioContext.sampleRate,K=G.inputBuffer.getChannelData(0);G=new window.OfflineAudioContext(1,K.length,16E3);for(var z=G.createBuffer(1,K.length,D),y=z.getChannelData(0),c=0,W=0;W<K.length;W++)y[W]=K[W],c+=y[W]*y[W];!x.audioDetected&&Math.sqrt(c/K.length)>.01&&(x.audioDetected=!0,x.audioDetectedHandler());K=G.createBufferSource();K.buffer=z;K.connect(G.destination);K.start(0);G.oncomplete=function(e){e=e.renderedBuffer.getChannelData(0);
for(var Q=Math.floor(16384E3/D),p=new Int16Array(Q),V=0;V<Q;++V)p[V]=Math.max(-1,Math.min(1,e[V]))*32767;k$8(x,p.buffer)};
G.startRendering()}else GP4(x,G)},GP4=function(x,G){var D=x.audioContext.sampleRate,K=G.inputBuffer.getChannelData(0),z=Math.floor((D+8E3)/16E3);
D=K.length/z;G=new Float32Array(D);for(var y=0;y<D;++y)G[y]=K[y*z];K=new Int16Array(D);for(z=0;z<D;++z)K[z]=Math.max(-1,Math.min(1,G[z]))*32767;k$8(x,K.buffer)};var Dzc={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var K3x=function(){this.JSC$17711_audioEnabled=!0;this.audioFeedbackHolder={}};
K3x.prototype.isPlaying=function(x){return x.currentTime>0&&!x.paused&&!x.ended&&x.readyState>2};
var zJ8=function(x){for(var G=_.l(Object.values(Dzc)),D=G.next();!D.done;D=G.next())D=D.value,x.audioFeedbackHolder[D]=new Audio,x.audioFeedbackHolder[D].src="/s/search/audio/"+D+".mp3",x.audioFeedbackHolder[D].load()},Xl=function(x,G){if(x.JSC$17711_audioEnabled!==!1&&G in x.audioFeedbackHolder){for(var D=_.l(Object.values(x.audioFeedbackHolder)),K=D.next();!K.done;K=D.next())K=K.value,x.isPlaying(K)&&K.pause();
x.audioFeedbackHolder[G].currentTime=0;x.audioFeedbackHolder[G].play().catch(function(){})}};var aHx=function(x,G){var D=this;this.store=x;this.service=G;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){D.setState("offline");D.stop()};
this.audioPlayer=new K3x;var K;(K=this.audioPlayer)==null||zJ8(K)};
_.a=aHx.prototype;_.a.getService=function(){return this.service};
_.a.isEnabled=function(){return!!this.service};
_.a.isSupported=function(){var x;return(x=this.service)==null?void 0:x.isSupported()};
_.a.start=function(){var x=this,G,D,K,z,y,c,W,e,Q,p,V,L,r;return _.T(function(H){switch(H.nextAddress){case 1:x.store.dispatch(ynb("",""));if(!navigator.onLine)return x.setState("offline"),H.return();window.addEventListener("offline",x.handleOfflineEvent);x.stream=null;if(!x.permissionsSupported){H.jumpTo(2);break}_.Kl(H,3);return _.Z(H,otf(x),5);case 5:G=H.yieldResult;if(!G)return(D=x.audioPlayer)==null||Xl(D,"failure"),H.return();x.service.stream=x.stream;x.setState("listening");_.iI(H,2);break;
case 3:_.lX(H),x.permissionsSupported=!1;case 2:K={context:_.e9$(_.Ej())},K.youtubeAssistantParams={searchParams:{inlineSearchResponse:x.enableInlineSearchResponse}},z=function(O,A){x.store.dispatch(lJi("transcribing"));x.store.dispatch(ynb(O,A))},y=function(){var O;
(O=x.audioPlayer)==null||Xl(O,"open");x.setState("listening")},c=function(){x.setState("transcribing")},W=function(O){x.setErrorState(O)},e=function(O,A){var g;
(g=x.audioPlayer)==null||Xl(g,"success");A&&(_.B("kevlar_voice_search_inline_search")&&(x.responseProcessor=_.Eo().resolve(_.S1P),x.responseProcessor&&(g=A.navigationAction,O=A.prefetchedSearchResponse,g&&O&&(g=(new _.chk).JSC$11002_getStoreKey(g),_.Rp(x.responseProcessor,O,g)))),x.JSC$17729_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",A))},Q=function(){window.removeEventListener("offline",x.handleOfflineEvent)},p=_.rNO(!1),V=p.Authorization!=null,L=x.enableFirstPartyAuth||
x.enableFPAForSignedInUsers&&V?p:{"X-Goog-Visitor-Id":p["X-Goog-Visitor-Id"]},r={completeHandler:e,
errorHandler:W,listeningHandler:y,audioDetectedHandler:c,stopHandler:Q,transcriptionUpdateHandler:z,youtubeAssistantRequest:K,languageCode:yGT(),additionalHeaders:L,supportsCrossDomainXhr:x.enableFirstPartyAuth||x.enableFPAForSignedInUsers&&V,supportsHttpHeadersOverwriteParam:!x.disableHttpHeadersOverwrite},x.service.start(r),_.c5(H)}})};
_.a.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.a.reset=function(){this.store.dispatch(_.EO({type:"RESET_VOICE_SEARCH_STATE"}))};
_.a.setState=function(x){this.store.dispatch(lJi(x))};
_.a.setErrorState=function(x){switch(x){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var G;(G=this.audioPlayer)==null||Xl(G,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)otf(this);else{var D;(D=this.audioPlayer)==null||Xl(D,"failure");this.setState("permission-denied")}break;case "ABORTED":var K;(K=this.audioPlayer)==null||Xl(K,"no_input");break;default:var z;(z=this.audioPlayer)==
null||Xl(z,"no_input");this.setState("timeout")}};
var otf=function(x){var G,D;return _.T(function(K){switch(K.nextAddress){case 1:return _.Z(K,navigator.permissions.query({name:"microphone"}),2);case 2:G=K.yieldResult;if(G.state==="granted")return K.return(!0);if(G.state==="denied")return x.setState("permission-denied"),K.return(!1);x.setState("permission");D={audio:{sampleSize:16,channelCount:1},video:!1};_.Kl(K,3);return _.Z(K,navigator.mediaDevices.getUserMedia(D),5);case 5:return x.stream=K.yieldResult,K.return(!0);case 3:return _.lX(K),x.setState("permission-denied"),
K.return(!1)}})},yGT=function(){var x=_.Am("INNERTUBE_CONTEXT_HL"),G=_.Am("INNERTUBE_CONTEXT_GL");
return x.indexOf("-")>-1?x:x+"-"+G};var lHO=function(x,G,D){aHx.call(this,G,D);this.JSC$17729_actionRouter=x;this.enableInlineSearchResponse=_.B("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.B("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.B("kevlar_voice_search_enable_fpa_signedin_users")},cG4;
_.m(lHO,aHx);
var T2b=function(){if(!cG4){var x="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.B("kevlar_voice_search_auth_enabled")||_.B("kevlar_voice_search_use_yt_endpoint")?x="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.B("kevlar_voice_search_use_fp_endpoint")&&(x="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");cG4=
new lHO(_.gu.getInstance(),_.wK(),new OS(_.Am("VOZ_API_KEY"),x,.5))}return cG4};var W3Y=function(x){this.JSC$17733_clientRoot=x;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$17733_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)]]));x=_.l(this.eventListeners);for(var G=x.next();!G.done;G=x.next()){var D=_.l(G.value);G=D.next().value;D=D.next().value;D=_.l(D);for(var K=D.next();!K.done;K=D.next()){var z=
_.l(K.value);K=z.next().value;z=z.next().value;G.addEventListener(K,z)}}_.uV(_.gu.getInstance(),this.autonavPauseActionMap,this.JSC$17733_clientRoot)},eJO,ZFf=function(x){return _.B("kevlar_autonav_popup_filtering")?(x=_.uo(x))?x.hasAttribute("prevent-autonav"):!0:!0};
_.a=W3Y.prototype;_.a.onIronOverlayOpened=function(x){ZFf(x)&&(this.autonavPauseReasons.overlayOpen=!0,AP(this))};
_.a.onIronOverlayClosed=function(x){ZFf(x)&&(this.autonavPauseReasons.overlayOpen=!1,AP(this))};
_.a.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;AP(this)};
_.a.onYtAutonavPauseBlur=function(){var x=this;_.Fj.addJob(function(){x.isInBackground()||(x.autonavPauseReasons.inputBoxFocus=!1,AP(x))},8,0)};
_.a.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;AP(this)};
_.a.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;AP(this)};
_.a.onYtAutonavPauseScroll=function(){var x=_.Eo().resolve(_.wG);x.isOnWatch()&&(x=x.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=x.getBoundingClientRect().top<-200,AP(this))};
_.a.onYtAutonavPauseUserEngagement=function(x){var G=this;if(_.B("user_engagement_enable_autoplay_pause_feature")){var D=Number(x.lowEngagementThresholdMs);isNaN(D)||D<=0||x.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.qe("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.Eo().resolve(_.su),_.xq()<D?_.Bw(_.Fj,function(){_.qe("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.DhC()?(this.userEngagementCsn=_.CC(),_.Bw(_.Fj,function(){_.qe("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
G.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,AP(this)):_.qe("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.HzQ(Error("al`"+JSON.stringify(x)))};
_.a.onYtAutonavPausePlayer=function(x){this.autonavPauseReasons.requestedByPlayer=!!x.detail;AP(this)};
_.a.onYtAutonavVisibilityChanged=function(){var x=this,G,D,K;return _.T(function(z){if(z.nextAddress==1)return(G=_.Ns())?_.Z(z,G.getPlayerPromise(),2):z.return();D=z.yieldResult;K=D.isMuted()||D.getVolume()===0;x.autonavPauseReasons.backgroundAndMute=x.isInBackground()&&K;AP(x);_.c5(z)})};
_.a.onYtAutonavPausePlayerEnded=function(){_.Eo().resolve(_.su);var x=144E5;_.B("user_engagement_enable_autoplay_pause_feature")||_.B("is_part_of_any_user_engagement_experiment")||(x=45E5);this.autonavPauseReasons.longIdle=_.xq()>x;M$Y(this);AP(this)};
_.a.onYtUserActivity=function(){var x=this;this.autonavPauseReasons.userEngagement&&(_.Bw(_.Fj,function(){_.qe("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",x.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,AP(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.Bw(_.Fj,function(){_.qe("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",x.userEngagementCsn);_.CE()}),this.autonavPauseReasons.youthereLactExperiment=!1,AP(this));
this.autonavPauseReasons.longIdle&&!_.B("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,AP(this))};
_.a.isInBackground=function(){var x=window.document.visibilityState;return!(!x||x==="visible")};
var AP=function(x){for(var G=!1,D=_.l(Object.values(x.autonavPauseReasons)),K=D.next();!K.done;K=D.next())K=K.value,G=G||K;G?_.de.getInstance().pause(x.autonavPauseReasons):(x=_.de.getInstance(),x.autonavState_==3?(x.setState(2,!1,!1),x.autonavPauseReason_=void 0):x.autonavState_==1&&(x.disabledAutonavPauseReason_=void 0))},M$Y=function(x){var G=!1;
if(_.B("enable_autoplay_pause_by_lact")){_.Eo().resolve(_.su);G=_.Gz("autoplay_pause_by_lact_sec")*1E3;var D=_.Gz("autoplay_pause_by_lact_sampling_fraction");(G=_.xq()>=G&&Math.random()<D)&&!_.DhC()&&(_.Bw(_.Fj,function(){_.qe("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),G=!1)}G!==x.autonavPauseReasons.youthereLactExperiment&&(x.autonavPauseReasons.youthereLactExperiment=G)&&(x.userEngagementCsn=_.CC(),_.Bw(_.Fj,function(){_.qe("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",x.userEngagementCsn)}));
x.autonavPauseReasons.userEngagement&&_.Bw(_.Fj,function(){_.qe("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",x.userEngagementCsn)})};
W3Y.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.qe("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.CE(),this.autonavPauseReasons.youthereLactExperiment=!1,AP(this));this.autonavPauseReasons.userEngagement&&(_.qe("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,AP(this))};
W3Y.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var US=function(){var x=_.n.apply(this,arguments)||this;x.miniGuideVisible=!1;x.guideOpened=_.B("disable_initial_guide_state_fix")?!1:x.canFitPersistentGuide(x.initialBodyClientWidth);x.guideUserStateOpened=x.getInitialGuideUserStateOpened();x.isFullscreenShorts=!1;x.miniGuideWidthThreshold=_.Gz("kevlar_mini_guide_width_threshold",791);x.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");x.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
x.persistentGuideBlockedPagePathRegex=new RegExp(x.persistentGuideBlockedPagesPatterns.join("|"));x.animationTransitionDuration=0;x.lateDataResolver=_.Ss();x.initialGuideDataFetchFailed=!1;x.initialLoad=!0;x.guideRenderers=new Set;x.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts"};return x};
_.m(US,_.n);_.a=US.prototype;_.a.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.a.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.a.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.a.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.a.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.a.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.a.ready=function(){_.Eo().addProvider({provide:_.On,useValue:this.hostElement})};
_.a.attached=function(){var x=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.ae(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.ae(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.ae(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.ae(this,this.onYtGuideShow));_.w1(this,function(){x.animationTransitionDuration=200})};
_.a.detached=function(){document.removeEventListener("yt-navigate-finish",_.ae(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.ae(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.ae(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.ae(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.ae(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.ae(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.ae(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.a.getData=function(){return this.data};
_.a.load=function(){var x=this,G,D,K,z;return _.T(function(y){switch(y.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=x.lateDataResolver.resolve.bind(x),y.return(x.lateDataResolver.promise);if(window.ytInitialGuideData)return G=_.Ss(),G.resolve(window.ytInitialGuideData),y.return(G.promise);K=!1;_.Kl(y,2);return _.Z(y,x.fetchGuideData(),4);case 4:D=y.yieldResult;_.iI(y,3);break;case 2:z=_.lX(y),z.message==="Returned error"&&(K=!0);
case 3:if(D)return y.return(D);x.onYtGuideClose();K||(x.initialGuideDataFetchFailed=!0);return y.return(x.lateDataResolver.promise)}})};
_.a.fetchGuideData=function(){var x=this,G,D,K,z,y,c,W;return _.T(function(e){if(e.nextAddress==1)return G=_.Eo(),x.guidePromise||(D=G.resolve(_.Hi),x.guidePromise=_.Rl(D,Lgc)),_.Z(e,x.guidePromise,2);if(e.nextAddress!=3)return K=e.yieldResult,z=G.resolve(_.iL),_.Z(e,z(),3);(y=e.yieldResult)&&((c=K)==null?void 0:(W=c.responseContext)==null?void 0:W.maxAgeSeconds)!==0&&y.put("service:guide:fallback",new _.Gp({innertubeResponse:K}));return e.return(K)})};
_.a.initializeGuideDataIfEmpty=function(){var x=this,G,D;return _.T(function(K){if(K.nextAddress==1){if(!x.initialGuideDataFetchFailed||x.data)return K.return();_.Kl(K,2);return _.Z(K,x.fetchGuideData(),4)}if(K.nextAddress!=2)return(G=K.yieldResult)&&x.lateDataResolver.resolve(G),_.iI(K,0);D=_.lX(K);_.O9(D);_.c5(K)})};
_.a.initializeGuideData=function(){var x=this,G;return _.T(function(D){switch(D.nextAddress){case 1:return _.yS(nTc(),{mainAppWeb:_.Rn()}),_.Kl(D,2),_.Z(D,x.load(),4);case 4:x.data=D.yieldResult;_.iI(D,3);break;case 2:_.lX(D),_.lh(nTc(),"FAILURE");case 3:G=x.data&&x.data.items&&x.data.items.length>0?"SUCCESS":"FAILURE",_.lh(nTc(),G),_.c5(D)}})};
_.a.setGuideData=function(x){var G=this,D,K;return _.T(function(z){if(z.nextAddress==1)return G.disabled?z.return():G.data?(x.data=G.data,G.guideRenderers.add(x),z.return()):_.Z(z,G.initializeGuideData(),2);G.graftGuideToPage();D=_.Uo("IS_HOMEPAGE_COLD")?"eop":void 0;_.B("disable_element_pool_populator")?G.setGuideDataAfterInit(x):(K=new _.vP(1,D),_.JG(K,G.setGuideDataAfterInit.bind(G,x)));_.c5(z)})};
_.a.setGuideDataAfterInit=function(x){x.data=this.data;x.markDirty();this.guideRenderers.add(x);_.Xw(function(){_.Fs("gle")});
_.w1(this,function(){_.Fs("gpe")})};
_.a.graftGuideToPage=function(){if(this.data){var x=this.data&&this.data.trackingParams;x&&(x=_.V2(x),_.xP(_.en(),x))}};
_.a.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.ae(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.a.onDrawerOpenedChanged=function(x,G){!G.value&&this.guideOpened&&(this.guideOpened=!1)};
_.a.onYtGuideToggle=function(x){var G=this.guideOpened;this.guideOpened=!G;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var D=_.M5();_.Qg(0,109,!this.guideUserStateOpened);D.save()}this.updateGuideDrawerElementState();if(this.guideElement){var K;this.guideOpened&&((K=x.detail)==null?0:K.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.ae(this,this.onAppDrawerTransitionedFromKeyInput));this.guideElement.addEventListener("app-drawer-transitioned",_.ae(this,
this.onAppDrawerTransitioned))}G||this.initializeGuideDataIfEmpty()};
_.a.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.ae(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.Ju(this.guideElement)};
_.a.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.ae(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(aJc(this.guideOpened))};
_.a.guidePersistentAndVisibleChanged=function(){_.Gl(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.a.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.EO({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.a.miniGuideVisibleChanged=function(){_.Gl(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.a.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(aJc(this.guideOpened)),this.initialLoad=!1);_.Gl(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.a.activeEndpointChanged=function(){_.Gl(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.a.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.a.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()};
_.a.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var x=this.canFitPersistentGuide(this.cachedClientWidth);x?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=x}this.updateGuideDrawerElementState()};
_.a.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.a.getGuideOpened=function(){return this.guideOpened};
_.a.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.a.getActiveEndpoint=function(){return this.activeEndpoint};
_.a.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.a.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&&_.h$(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.a.computeGuidePersistentAndVisible=function(){var x=this;_.Ao(this,"computeGuidePersistentAndVisible",function(){x.guidePersistentAndVisible=x.guideOpened&&x.guidePersistent;x.guideIsVisibleButNotPersistent=!(!x.guideOpened||x.guidePersistent)})};
_.a.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.a.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.a.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.a.startLoadingWatch=function(){this.closeGuide()};
_.a.startLoadingShorts=function(){_.B("web_hide_guide_on_shorts")&&this.closeGuide()};
_.a.onYtNavigateFinish=function(x,G){if(!_.E$||G){this.activeEndpoint=G.endpoint;this.pageType=G.pageType;this.pageUrl=G.response.url;var D,K;x=(K=_.Y((D=G.endpoint)==null?void 0:D.commandMetadata,_.fC))==null?void 0:K.url;!this.pageUrl&&x&&(this.pageUrl=x);_.B("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.a.getVisibleGuideRenderer=function(){for(var x=_.l(this.guideRenderers),G=x.next();!G.done;G=x.next())if(G=G.value,this.miniGuideVisible&&G.is==="ytd-mini-guide-renderer"||this.guideOpened&&G.is==="ytd-guide-renderer")return G;return null};
_.a.markGuideRendererDirty=function(x){if(x){typeof x.markDirty==="function"&&x.markDirty();x=_.l([].concat(_.B5(_.kA(x).children)));for(var G=x.next();!G.done;G=x.next())this.markGuideRendererDirty(G.value)}};
_.a.persistentGuideEnabled=function(x,G){if(!G||x==="watch"||x==="settings"||x==="shorts"&&this.isFullscreenShorts||_.B("reels_web_disable_persistent_guide_shorts")&&x==="shorts")return!1;var D=_.c0(G)||"";return _.B("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(K){return D===K}):!this.persistentGuideBlockedPagePathRegex.test(D)};
_.a.canFitPersistentGuide=function(x){var G=_.Gz("kevlar_persistent_guide_width_threshold",1312);return G===-1||_.B("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:x>G};
_.a.canFitMiniGuide=function(x){return this.miniGuideWidthThreshold===-1?!1:x>this.miniGuideWidthThreshold};
_.a.onResize=function(){var x=this;_.Ao(this,"calculateGuideState",function(){x.onResizeDebounced()})};
_.a.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.a.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.a.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.a.getInitialGuideUserStateOpened=function(){return!_.M5().getFlag(109)};
_.Nq.Object.defineProperties(US.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.Am("initialBodyClientWidth")||window.innerWidth}}});
US.prototype.onResize=US.prototype.onResize;US.prototype.observeForMiniGuideVisible=US.prototype.observeForMiniGuideVisible;US.prototype.computeGuidePersistentAndVisible=US.prototype.computeGuidePersistentAndVisible;US.prototype.cachedClientWidthChanged=US.prototype.cachedClientWidthChanged;US.prototype.resetGuide=US.prototype.resetGuide;US.prototype.activeEndpointChanged=US.prototype.activeEndpointChanged;US.prototype.guideOpenedChanged=US.prototype.guideOpenedChanged;
US.prototype.miniGuideVisibleChanged=US.prototype.miniGuideVisibleChanged;US.prototype.guideIsVisibleButNotPersistentChanged=US.prototype.guideIsVisibleButNotPersistentChanged;US.prototype.guidePersistentAndVisibleChanged=US.prototype.guidePersistentAndVisibleChanged;US.prototype.onGuideElementChanged=US.prototype.onGuideElementChanged;US.prototype.onGuidePersistentChanged=US.prototype.onGuidePersistentChanged;US.prototype.onRenderGuideChanged=US.prototype.onRenderGuideChanged;
US.prototype.onActiveEndpointChanged=US.prototype.onActiveEndpointChanged;US.prototype.onMiniGuideVisibleChanged=US.prototype.onMiniGuideVisibleChanged;US.prototype.onGuideIsVisibleButNotPersistentChanged=US.prototype.onGuideIsVisibleButNotPersistentChanged;US.prototype.onGuidePersistendAndVisibleChanged=US.prototype.onGuidePersistendAndVisibleChanged;_.q([_.I(_.Lg),_.N("design:type",Object)],US.prototype,"ironResizableBehavior",void 0);
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],US.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],US.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],US.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],US.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Boolean)],US.prototype,"disabled",void 0);
_.q([_.R(),_.N("design:type",Boolean)],US.prototype,"guidePersistentAndVisible",void 0);_.q([_.yf("guidePersistentAndVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],US.prototype,"onGuidePersistendAndVisibleChanged",null);_.q([_.R(),_.N("design:type",Boolean)],US.prototype,"guideIsVisibleButNotPersistent",void 0);
_.q([_.yf("guideIsVisibleButNotPersistent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],US.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.q([_.R(),_.N("design:type",Object)],US.prototype,"miniGuideVisible",void 0);_.q([_.yf("miniGuideVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],US.prototype,"onMiniGuideVisibleChanged",null);_.q([_.R(),_.N("design:type",Boolean)],US.prototype,"forceMiniGuideClose",void 0);
_.q([_.R(),_.N("design:type",Object)],US.prototype,"activeEndpoint",void 0);_.q([_.yf("activeEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],US.prototype,"onActiveEndpointChanged",null);_.q([_.R(),_.N("design:type",Boolean)],US.prototype,"renderGuide",void 0);_.q([_.yf("renderGuide"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],US.prototype,"onRenderGuideChanged",null);
_.q([_.R(),_.N("design:type",Object)],US.prototype,"guideOpened",void 0);_.q([_.R(),_.N("design:type",Boolean)],US.prototype,"guidePersistent",void 0);_.q([_.yf("guidePersistent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],US.prototype,"onGuidePersistentChanged",null);_.q([_.R(),_.N("design:type",Object)],US.prototype,"guideUserStateOpened",void 0);_.q([_.R(),_.N("design:type",String)],US.prototype,"pageUrl",void 0);
_.q([_.R(),_.N("design:type",String)],US.prototype,"pageType",void 0);_.q([_.R(),_.N("design:type",Number)],US.prototype,"cachedClientWidth",void 0);_.q([_.R(),_.N("design:type",Object)],US.prototype,"guideElement",void 0);_.q([_.R({selector:_.lQ}),_.N("design:type",Object)],US.prototype,"isFullscreenShorts",void 0);_.q([_.yf("guideElement"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],US.prototype,"onGuideElementChanged",null);
_.q([_.yf("guidePersistentAndVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],US.prototype,"guidePersistentAndVisibleChanged",null);_.q([_.Z6("guideIsVisibleButNotPersistent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],US.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.q([_.yf("miniGuideVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],US.prototype,"miniGuideVisibleChanged",null);_.q([_.Z6("guideOpened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],US.prototype,"guideOpenedChanged",null);_.q([_.yf("activeEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],US.prototype,"activeEndpointChanged",null);
_.q([_.Z6("pageUrl"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],US.prototype,"resetGuide",null);_.q([_.Z6("cachedClientWidth"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],US.prototype,"cachedClientWidthChanged",null);_.q([_.yf("guideOpened","guidePersistent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],US.prototype,"computeGuidePersistentAndVisible",null);
_.q([_.Z6("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],US.prototype,"observeForMiniGuideVisible",null);_.q([_.oe("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],US.prototype,"onResize",null);US=_.q([_.d({disableElementRegistration:!0,is:"yt-guide-manager"})],US);var QQ6=_.w(US,"yt-guide-manager",void 0,{mode:_.Ge("kevlar_poly_si_batch_j081")?1:2});var R2=function(){var x=_.n.apply(this,arguments)||this;x.JSC$17743_keyboardInUse=!1;x.boundHandleCapturedKeydownEvent=function(G){x.handleCapturedKeydownEvent(G)};
return x};
_.m(R2,_.n);_.a=R2.prototype;_.a.attached=function(){this.listenToDocument(document)};
_.a.listenToDocument=function(x){x.addEventListener("keydown",_.ae(this,this.onKeyDownEvent));x.addEventListener("keyup",_.ae(this,this.onKeyUpEvent));x.addEventListener("mousedown",_.ae(this,this.onMouseDownEvent));_.B("desktop_keyboard_capture_keydown_killswitch")||x.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);x.addEventListener("yt-page-data-updated",_.ae(this,this.onPageUpdate))};
_.a.detached=function(){this.unlistenFromDocument(document)};
_.a.unlistenFromDocument=function(x){x.removeEventListener("keydown",_.ae(this,this.onKeyDownEvent));x.removeEventListener("keyup",_.ae(this,this.onKeyUpEvent));x.removeEventListener("mousedown",_.ae(this,this.onMouseDownEvent));_.B("desktop_keyboard_capture_keydown_killswitch")||x.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);x.removeEventListener("yt-page-data-updated",_.ae(this,this.onPageUpdate))};
_.a.ready=function(){_.Eo().addProvider({provide:_.Ee,useValue:this})};
_.a.isKeyBoardInUse=function(){return this.JSC$17743_keyboardInUse};
_.a.handleCapturedKeydownEvent=function(x){if(x.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(x)};
_.a.onMouseDownEvent=function(){this.JSC$17743_keyboardInUse=!1};
_.a.onPageUpdate=function(){if(_.B("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.B("web_shorts_keyboard_shortcut_usage_log")){_.tA.clear();for(var x=_.l(_.JA),G=x.next();!G.done;G=x.next()){var D=_.l(G.value);G=D.next().value;D=D.next().value;D=_.BH(D);_.tA.set(G,D);_.RI(_.CC(),_.Fx(),D)}_.kU.clear();x=_.l(_.fk);for(G=x.next();!G.done;G=x.next())D=_.l(G.value),G=D.next().value,D=D.next().value,D=_.BH(D),_.kU.set(G,D),_.RI(_.CC(),_.Fx(),D);_.S7(_.CC(),_.Fx(),[].concat(_.B5(_.kU.values()),
_.B5(_.tA.values())));_.i0(_.CC(),[].concat(_.B5(_.kU.values()),_.B5(_.tA.values())))}};
_.a.onMiniplayerActiveChange=function(){var x;(x=_.Eo().resolve(_.O$).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(x.document):this.unlistenFromDocument(x.document))};
_.a.ignoreKeyEvent=function(x){if(x.ctrlKey||x.altKey)if(_.B("kevlar_macro_markers_keyboard_shortcut")){if(x.keyCode!==37&&x.keyCode!==39)return!0}else return!0;var G=_.gA(x)||[];return _.ayY(G)?!0:x.defaultPrevented?(ls(x.keyCode,x.shiftKey,this.isShortsPage),!0):x.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(x):!1};
_.a.isSpacebarClick=function(x){var G=x||window.event;var D;G.composedPath&&typeof G.composedPath==="function"?D=G.composedPath():D=G.path;D&&D.length?G=D[0]:(G=G||window.event,G=G.target||G.srcElement,G.nodeType==3&&(G=G.parentNode));return G&&x.keyCode===32&&(x=G.tagName==="BUTTON"||G.tagName==="A"||G.tagName==="INPUT",G=(G=G.getAttribute("role"))&&(G==="option"||G==="button"||G.indexOf("menuitem")===0),x||G)?!0:!1};
_.a.onKeyDownEvent=function(x){if(!this.ignoreKeyEvent(x)&&(x.keyCode===191&&(x.shiftKey||x.metaKey?x.repeat!=null&&x.repeat||(this.openHotkeyDialog(),ls(x.keyCode,x.shiftKey,this.isShortsPage)):(this.focusSearchBox(),x.preventDefault())),!x.metaKey)){var G=_.Eo().resolve(_.O$);switch(x.keyCode){case 9:this.JSC$17743_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(x);break;case 84:G.pipController.getWindow()&&window.focus();this.toggleTheaterMode(x.keyCode,x.shiftKey);break;case 73:G.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(x.keyCode,x.shiftKey);break;case 70:if(this.isShortsPage&&_.B("web_fullscreen_shorts")){_.ymk();break}this.isMiniplayerActive()?G.pipController.getWindow()&&(G.close(!0),window.focus()):this.passEventToPlayer(x);break;case 27:this.closeMiniplayer(x.keyCode,x.shiftKey)||this.passEventToPlayer(x);break;case 13:x.shiftKey&&_.B("web_ephemeral_actions")&&_.Eo().resolve(_.oz).activate(x);break;default:this.passEventToPlayer(x)}}};
_.a.onKeyUpEvent=function(x){if(!this.ignoreKeyEvent(x))if(_.B("web_speedmaster_spacebar_control")&&x.keyCode===32)this.handlePlayerSpaceKey(x,!0);else{var G=this.getPlayerManager();G&&(G=G.getPlayer())&&G.handleGlobalKeyUp(x.keyCode,x.shiftKey,x.ctrlKey,x.altKey,x.metaKey,x.key,x.code)}};
_.a.getPlayerManager=function(){var x=_.Ns(),G=_.Eo().resolve(_.P6(_.wG));return x&&G&&G.isOnWatch()?x:null};
_.a.passEventToPlayer=function(x,G){var D=this,K,z,y;return _.T(function(c){if(c.nextAddress==1)return!_.B("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&D.isMiniplayerActive()?K=_.Eo().resolve(_.O$).getPlayerElement():D.inlinePreviewIsActive?(z=_.Gl(D.hostElement,"yt-get-inline-preview-player-action"))&&z[0]&&(K=z[0]):K=_.Ns(),K?_.Z(c,K.getPlayerPromise(),3):c.jumpTo(0);y=c.yieldResult;G?y.handleGlobalKeyUp(x.keyCode,x.shiftKey,x.ctrlKey,x.altKey,x.metaKey,x.key,x.code,x.repeat):y.handleGlobalKeyDown(x.keyCode,
x.shiftKey,x.ctrlKey,x.altKey,x.metaKey,x.key,x.code,x.repeat);x.keyCode!==38&&x.keyCode!==40&&ls(x.keyCode,x.shiftKey,D.isShortsPage);_.c5(c)})};
_.a.focusSearchBox=function(){_.h$(this.hostElement,"yt-focus-searchbox")};
_.a.openHotkeyDialog=function(){_.h$(this.hostElement,"yt-open-hotkey-dialog")};
_.a.isMiniplayerActive=function(){return _.Eo().resolve(_.O$).isMiniplayerActive()};
_.a.closeMiniplayer=function(x,G){return this.isMiniplayerActive()?(_.Eo().resolve(_.O$).close(),ls(x,G,this.isShortsPage),!0):!1};
_.a.toggleTheaterMode=function(x,G){var D=_.jU(_.wK().getState()),K=this.getPlayerManager(),z=_.B("disable_theater_mode_keyboard")||_.Uo("START_IN_FULL_WINDOW_MODE");K&&!z&&(D=!D,_.t$()&&_.B("external_fullscreen")&&(D=!0),_.xO(this.hostElement,"yt-toggle-theater-mode",[D]),ls(x,G,this.isShortsPage))};
_.a.toggleMiniplayer=function(x,G){var D=this.getPlayerManager();if(this.isMiniplayerActive()){var K;((K=_.Eo().resolve(_.P6(_.wG)))==null?0:K.isOnWatch())?_.Eo().resolve(_.O$).close(!0):_.QP(_.Eo().resolve(_.O$));ls(x,G,this.isShortsPage)}else D&&(_.xO(this.hostElement,"yt-activate-miniplayer-from-watch-action"),ls(x,G,this.isShortsPage))};
_.a.handlePlayerSpaceKey=function(x,G){var D=!!_.Ns()||this.isMiniplayerActive();D=_.B("disable_space_scroll_fix")||D;_.B("global_spacebar_pause")&&!this.isKeyBoardInUse()&&D&&(x.preventDefault(),this.passEventToPlayer(x,G))};
R2.prototype.onMiniplayerActiveChange=R2.prototype.onMiniplayerActiveChange;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],R2.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],R2.prototype,"ytdReduxBehavior",void 0);_.q([_.R({selector:_.yzd}),_.N("design:type",Boolean)],R2.prototype,"inlinePreviewIsActive",void 0);_.q([_.R({selector:_.KSc}),_.N("design:type",Boolean)],R2.prototype,"isShortsPage",void 0);
_.q([_.R({selector:_.Hk}),_.N("design:type",Boolean)],R2.prototype,"miniplayerIsActive",void 0);_.q([_.yf("miniplayerIsActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],R2.prototype,"onMiniplayerActiveChange",null);R2=_.q([_.d({disableElementRegistration:!0,is:"yt-hotkey-manager"})],R2);_.w(R2,"yt-hotkey-manager",void 0,{mode:_.Ge("kevlar_poly_si_batch_j081")?1:2});var gS=function(){var x=_.n.apply(this,arguments)||this;x.loopStateEntityKey_=null;x.playlistLoopStateEntity_=null;x.isShuffleNextPlaylist=!1;x.PLAYER_EVENTS_=new Map;x.playerListenersSetup_=!1;x.videoSkipJob_=0;x.canAutoAdvance_=!1;x.playerManager_=null;x.TEST_ONLY={};return x};
_.m(gS,_.n);_.a=gS.prototype;_.a.ready=function(){_.Eo().addProvider({provide:_.HG,useValue:this.hostElement})};
_.a.created=function(){this.PLAYER_EVENTS_.set("onPlaylistNext",this.onPlaylistNext);this.PLAYER_EVENTS_.set("onPlaylistPrevious",this.onPlaylistPrevious);this.PLAYER_EVENTS_.set("onPlaylistIndex",this.onPlaylistIndex_);this.PLAYER_EVENTS_.set("onStateChange",this.onPlayerStateChange_);this.PLAYER_EVENTS_.set("onLoopChange",this.onPlayerLoopChange_);this.PLAYER_EVENTS_.set("onSleepTimerSettingsChanged",this.onSleepTimerSettingsChanged_)};
_.a.attached=function(){document.addEventListener("yt-navigate-start",_.ae(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.ae(this,this.onYtNavigateFinish_))};
_.a.detached=function(){document.removeEventListener("yt-navigate-start",_.ae(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.ae(this,this.onYtNavigateFinish_))};
_.a.updatePlaylistEventListeners=function(x,G){G&&!this.playerListenersSetup_?(this.playerManager_=x,this.registerPlaylistEventListeners_(x)):!G&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(x))};
_.a.setPlayer=function(x){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=x};
_.a.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.a.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.a.registerPlaylistEventListeners_=function(x){var G=this;x.getPlayerPromise().then(function(D){G.playerListenersSetup_||(G.ytPlayerListenerBehavior.listenToPlayerEvents(D,G.PLAYER_EVENTS_),G.playerListenersSetup_=!0)})};
_.a.removePlaylistEventListeners_=function(x){var G=this;x.getPlayerPromise().then(function(D){G.playerListenersSetup_&&(G.ytPlayerListenerBehavior.unlistenFromPlayerEvents(D,G.PLAYER_EVENTS_),G.playerListenersSetup_=!1)})};
_.a.setPlaylistComponent=function(x){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.ae(this,this.onPlaylistYtNavigate_)),x&&(x.data&&this.playlistComponent.data&&x.data.playlistId==this.playlistComponent.data.playlistId?(x.loopOn=this.playlistComponent.loopOn,x.shuffleOn=this.playlistComponent.shuffleOn):(x.loopOn=!1,x.shuffleOn=!1),this.isShuffleNextPlaylist&&(x.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=x;this.playlistComponent.addEventListener("yt-navigate",
_.ae(this,this.onPlaylistYtNavigate_))};
_.a.setAutoplayRenderer=function(x){this.autoplayData=x};
_.a.setPlaylistData=function(x){this.currentPlaylistData_=x;_.h$(this.hostElement,"yt-playlist-data-updated");_.YS.isEmpty(x)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(x)};
_.a.setPlayerPlaybackControlData=function(x){this.playerManager_&&this.playerManager_.updatePlayerComponents(x.playlistPanelRenderer)};
_.a.getPlaylistData=function(){return this.currentPlaylistData_};
_.a.getTempData_=function(x,G){if(this.playlistComponent==null)return null;x={};this.playlistComponent.shuffleOn&&(x.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(x.loop_on=this.playlistComponent.loopOn);G&&(x.autonav="1",_.Eo().resolve(_.su),G=_.xq(),G>0&&(x.lact=G),this.playerManager_&&(G=this.playerManager_.getPlayer())&&G.shouldSendVisibilityState()&&(G=G.getVisibilityState(),G!=0&&(x.vis=G)));_.B("enable_unknown_lact_fix_on_html5")&&(_.Eo().resolve(_.su),x.lact=
_.xq());return x};
_.a.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.a.setLoopStateEntityKey_=function(x){var G;this.loopStateEntityKey_=((G=this.getPlaylistLoopData_(x))==null?void 0:G.playlistLoopStateEntityKey)||null};
_.a.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.a.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.a.skipVideo=function(){var x=this,G=_.B("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||G)G=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.eU(_.Fj,function(){x.onPlaylistNext();x.videoSkipJob_=0},G)};
_.a.cancelVideoSkip=function(){this.videoSkipJob_&&(_.Fj.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.a.isInBackground_=function(){var x=window.document.visibilityState;return!(!x||x=="visible")};
_.a.onPlaylistIndex_=function(x){this.playlistComponent&&(x=this.playlistComponent.data.contents[x].playlistPanelVideoRenderer.navigationEndpoint,_.h$(this.hostElement,"yt-navigate",{endpoint:x,tempData:this.getTempData_(x)}))};
_.a.onPlayerStateChange_=function(x){if(x=x==0&&this.playlistComponent&&this.canAutoAdvance_)x=_.de.getInstance(),x=!(x.autonavState_===3?x.autonavPauseReason_&&x.autonavPauseReason_.inputBoxFocus===!0:x.autonavState_===1&&x.disabledAutonavPauseReason_&&x.disabledAutonavPauseReason_.inputBoxFocus===!0);x&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.a.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.a.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.a.navigateToAutoplayWatchEndpoint_=function(x,G,D){var K=this.playlistComponent.data.currentIndex,z=this.getNumPlayableVideos_();x=="NORMAL"&&G=="autoplayVideo"&&K+1>=z&&D||!(x=this.getVideoEndpoint_(x,G))||(D=this.getTempData_(x,D),_.h$(this.hostElement,"yt-navigate",{endpoint:x,tempData:D}))};
_.a.getNumPlayableVideos_=function(){for(var x=0,G=_.l(this.playlistComponent.data.contents||[]),D=G.next();!D.done;D=G.next())D.value.playlistPanelVideoRenderer&&(x+=1);return x};
_.a.getVideoEndpoint_=function(x,G){if(this.autoplayData&&this.autoplayData.sets)for(var D=0,K=this.autoplayData.sets.length;D<K;D++){var z=this.autoplayData.sets[D];if(z.mode==x){if(z[G])return z[G];break}}else x=new _.LL("AutoplayData is undefined in playlist manager","Mode: "+x+" endpoint: "+G),_.O9(x)};
_.a.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.a.onPlaylistYtNavigate_=function(x){if(x.detail.endpoint){x.stopPropagation();var G=x.detail;G.tempData=this.getTempData_(x.detail.endpoint);_.h$(this.hostElement,"yt-navigate",G)}};
_.a.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.a.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.a.playlistLoopStateEntityChanged_=function(x){var G=this,D,K,z;return _.T(function(y){if(y.nextAddress==1){if(!x)return y.return();D=x.state==="PLAYLIST_LOOP_STATE_ONE";return G.playerManager_?_.Z(y,G.playerManager_.getPlayerPromise(),3):y.jumpTo(2)}y.nextAddress!=2&&(K=y.yieldResult,K.setLoopVideo(D));z=x.state==="PLAYLIST_LOOP_STATE_ALL";G.playlistComponent&&(G.playlistComponent.loopOn=z);_.c5(y)})};
_.a.getPlaylistLoopData_=function(x){var G,D;if(x=x==null?void 0:(G=x.playlistButtons)==null?void 0:(D=G.menuRenderer)==null?void 0:D.topLevelButtons)for(G=_.l(x),D=G.next();!D.done;D=G.next())if(D=D.value,D.playlistLoopButtonRenderer)return D.playlistLoopButtonRenderer};
_.a.getLoopStateCommand_=function(x){var G=this.getPlaylistData(),D;G=((D=this.getPlaylistLoopData_(G))==null?void 0:D.states)||[];var K;x=(K=_.Y(G[x?1:2],_.reh))==null?void 0:K.button;var z;return(z=_.Y(x,_.$V))==null?void 0:z.command};
_.a.onPlayerLoopChange_=function(x){this.playlistLoopStateEntity_&&(x?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(x=this.getLoopStateCommand_(x))&&this.ytComponentBehavior.resolveCommand(x)};
_.a.onSleepTimerSettingsChanged_=function(x){this.canAutoAdvance_=x!=="End of video"};
gS.prototype.onPlaylistLoopStateEntityChanged=gS.prototype.onPlaylistLoopStateEntityChanged;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],gS.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.nS.YtPlayerListenerBehavior),_.N("design:type",_.i4)],gS.prototype,"ytPlayerListenerBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],gS.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],gS.prototype,"loopStateEntityKey_",void 0);
_.q([_.R({selectorArgs:["loopStateEntityKey_"],selector:_.paP}),_.N("design:type",Object)],gS.prototype,"playlistLoopStateEntity_",void 0);_.q([_.yf("playlistLoopStateEntity_"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],gS.prototype,"onPlaylistLoopStateEntityChanged",null);gS=_.q([_.d({disableElementRegistration:!0,is:"yt-playlist-manager"})],gS);_.w(gS,"yt-playlist-manager",void 0,{mode:_.Ge("kevlar_poly_si_batch_j081")?1:2});var pPj,V$j=function(){if(pPj!==void 0)return pPj;var x=document.createElement("template");_.F(x,"\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");x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return pPj=x};var uJ=function(){var x=_.n.apply(this,arguments)||this;x.lastCallback=null;x.getAccountLinkPromises={};x.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);x.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return x};
_.m(uJ,_.n);_.a=uJ.prototype;_.a.getLocation=function(){return window.location.href};
_.a.getCompletionUrl=function(){return _.Np(this.getLocation())};
_.a.containsRedirectState=function(x){return(x=_.B1(_.ttD(x)))?(new URLSearchParams(x)).get("redirect_state")!==null:!1};
_.a.createGalConfig=function(x,G){var D=new $sT;x=D=G?this.getPopupOrRedirectSetting(D,_.Am("LINK_API_KEY"),_.Am("LINK_API_KEY_REDIRECT"),x):Fjj(D,_.Am("LINK_API_KEY"));x.authUser=_.Am("SESSION_INDEX")||0;x.supportedFlows=new Set([4]);return x.build()};
_.a.getPopupOrRedirectSetting=function(x,G,D,K){this.isGalInteractionPopupMode(K)?(x.interactionMode=0,x=Fjj(x,G)):(x.interactionMode=1,G=this.getCompletionUrl(),x.completionUrl=G,x=Fjj(x,D));return x};
_.a.isGalInteractionPopupMode=function(x){if(this.redirectModeProviderAllowlist.has(x))switch(x){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!_.B("main_web_redirect_integration_riot");default:return!1}return!0};
_.a.getStatusEntityKeyForProviderId=function(x){return _.K3(x+":all","accountLinkStatusEntity")};
_.a.findNestedPropValue=function(x,G){var D=!1,K=null;JSON.stringify(x,function(z,y){D||z!==G||(D=!0,K=y);return D?null:y});
return K};
_.a.findAccountLinkButtonViewModel=function(x,G){var D=null,K=!1;JSON.stringify(x,function(z,y){K||y.accountLinkStatusEntityKey!==G||y.accountLinkStatusSecondaryEntityKey||(K=!0,D=y);return K?null:y});
return D};
_.a.executeLinkingSuccessOrFailureCommands=function(x,G,D){var K=null,z;(G==null?0:(z=G.url)==null?0:z.includes("account_sharing"))?K=G==null?void 0:G.response:K=G==null?void 0:G.response;(G=this.findAccountLinkButtonViewModel(K,x))?(x=D?this.findNestedPropValue(G,"onSuccessCommand"):this.findNestedPropValue(G,"onFailureCommand"))?_.yg([x],this.hostElement):_.iM(Error("bl")):_.iM(Error("cl`"+x))};
_.a.handleInitializeRequest=function(x,G){var D=this,K=Tuc(this.createGalConfig(x,!0));this.containsRedirectState(this.getLocation())?Ppc(x,K.config,K.galService).then(function(z){var y=D.getStatusEntityKeyForProviderId(x);if(z.statusCode===1)G&&D.executeLinkingSuccessOrFailureCommands(y,G,!0),z=D.getLocation().indexOf("#"),z!==-1&&window.history.pushState(null,"",D.getLocation().substring(0,z));else return G&&D.executeLinkingSuccessOrFailureCommands(y,G,!1),Promise.reject(Error(z.statusMessage))}).catch(function(z){_.O9(z);
_.Fv("gamingAccountLinkStatusChanged",{serviceId:x,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(z)}):this.getAccountLinkPromises[x]=K.startLinkingSession({serviceId:x})};
_.a.handleAccountLinkCommand=function(x){_.Y(x,Vjf)&&this.handleLinkRequest(_.Y(x,Vjf))};
_.a.handleLinkRequest=function(x){var G=this,D=x.thirdPartyId;if(D)if(this.isGalInteractionPopupMode(D)){var K=function(){G.closeAndFire("ytd-gaming-account-link-setting-renderer",x.onFailureCommand)},z=function(){G.closeAndFire("ytd-gaming-account-link-setting-renderer",x.onSuccessCommand)};
this.lastCallback=z;this.getAccountLinkPromises[D].then(function(y){oLT(y).then(function(c){c.statusCode===1?z():K()})}).catch(function(){K()})}else this.getAccountLinkPromises[D].then(function(y){oLT(y).then(function(c){if(c.statusCode!==1)return Promise.reject(Error(c.statusMessage))})}).catch(function(y){_.O9(y);
_.Fv("gamingAccountLinkStatusChanged",{serviceId:D,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(y)})};
_.a.closeAndFire=function(x,G){_.xO(this.hostElement,"yt-close-popup-action",[x]);G&&_.yg([G],this.hostElement)};
_.a.handleAccountUnlinkCommand=function(x){_.Y(x,bZc)&&this.handleUnlinkRequest(_.Y(x,bZc))};
_.a.handleUnlinkRequest=function(x){var G=this,D=x.thirdPartyId;if(D){var K=function(){G.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",x.onFailureCommand)},z=function(){G.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",x.onSuccessCommand)};
this.lastCallback=z;var y=Tuc(this.createGalConfig(D,!1));this.unlinkUserGal(y,D).then(function(c){c.statusCode===1?z():K()}).catch(function(){K()})}};
_.a.unlinkUserGal=function(x,G){return x.deleteLink(G)};
_.a.handleLogAccountLinkingEventCommand=function(x){_.B("enable_gel_log_commands")&&_.Y(x,LKx)&&(x=_.Y(x,LKx).event)&&_.Fv("gamingAccountLinkStatusChanged",x)};
_.Nq.Object.defineProperties(uJ,{template:{configurable:!0,enumerable:!0,get:function(){return V$j()}}});
_.q([_.I(_.yU.YtOpenPopupBehavior),_.N("design:type",Object)],uJ.prototype,"ytOpenPopupBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],uJ.prototype,"ytActionHandlerBehavior",void 0);uJ=_.q([_.d({disableElementRegistration:!0,is:"ytd-third-party-manager"})],uJ);_.w(uJ,"ytd-third-party-manager",function(){return V$j()},{mode:_.Ge("kevlar_poly_si_batch_j081")?1:2});var bFj,L3C=function(){return bFj!==void 0?bFj:bFj=document.createElement("template")};
document.head.appendChild(L3C().content);var B2j,rGi=function(){if(B2j!==void 0)return B2j;var x=document.createElement("template");_.F(x,"\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");x.content.insertBefore(L3C().content.cloneNode(!0),x.content.firstChild);x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return B2j=x};var sQ4=_.gv(["\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      "]),dS=function(){var x=_.n.apply(this,arguments)||this;x.currentPage=void 0;x.renderLoadingStateJobId=0;x.updatePageDataJobId=0;x.pageDisposeJobsets=new WeakMap;x.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-start-loading-learning-journey":"startLoadingLearningJourney",
"yt-get-page-offset":"getPageOffset","yt-set-page-offset":"setPageOffset","yt-pause-active-page-context":"pauseActiveContext","yt-prepare-page-dispose":"preparePageDispose","yt-stop-old-player":"onYtStopOldPlayer"};x.applyZoomTransition=_.Db("web_page_transition_type")==="zoom";x.applySlideTransition=_.Db("web_page_transition_type")==="slide";x.TEST_ONLY=void 0;return x};
_.m(dS,_.n);_.a=dS.prototype;_.a.ready=function(){var x=_.Eo();x.addProvider({provide:_.wG,useValue:this});x.addProvider({provide:_.OYJ,useValue:this})};
_.a.created=function(){this.pagePool=new NQ6;this.contextSwitcher=new zmb};
_.a.attached=function(){_.h$(this.hostElement,"attached");var x=_.Eo().resolve(_.P6(_.mg));x&&(this.contextSwitcher.JSC$17567_networkService_=x);this.viewTransitionManager=_.Eo().resolve(_.P6(_.MN));this.setupPageTransitionAnimation()};
_.a.getPageOffset=function(x){return x.getScrollTop()};
_.a.setPageOffset=function(x,G){try{x.setScrollTop(G)}catch(D){}};
_.a.setPageOffsetForNavigation=function(x,G){_.h$(this.hostElement,"yt-navigate-set-page-offset",{page:x,offset:G===void 0?0:G})};
_.a.pauseActiveContext=function(){var x=this.contextSwitcher;x.activeContext_&&x.activeContext_.pause()};
_.a.getModuleNameForType=function(x){return x==="watch"?_.B("kevlar_watch_fixie")?"watchFixie":_.B("kevlar_watch_grid")?"watchGrid":"watchFlexy":x==="shorts"||x==="search"?x:"browse"};
_.a.attachPage=function(x){var G,D=!_.B("pc_is_attached_ks")&&(x==null?void 0:(G=x.polymerController)==null?void 0:G.isAttached);if(!x.isAttached&&!D)try{_.kA(this.hostElement).appendChild(x)}catch(z){var K;_.O9(new _.LL("Error attaching page element for component",{origin:(K=this.currentPage)==null?void 0:K.is,component:x.is}))}};
_.a.setActivePage=function(x){var G=this,D=!1,K=function(){var z=G.isOnWatch(),y=G.currentPage;if(x)if(x!==G.currentPage){y&&(y.hidden=!0,y.active=!1,y.removeAttribute("role"));G.currentPage=x;var c,W=_.ci((c=G.data)==null?void 0:c.endpoint);y&&_.h$(G.hostElement,"yt-page-type-changed",{oldPageType:y.is,newPageType:x.is,newPageSubtype:W});_.iD().dispatch(_.EO({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:x.is}));_.iD().dispatch(_.EO({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:W||""}));x.hidden=
!1;G.attachPage(x);x.active=!0;x.setAttribute("role","main");y&&G.setPageOffsetForNavigation(x,0);_.B("kevlar_remove_page_dom_on_switch")&&!z&&y&&_.kA(G.hostElement).removeChild(y)}else D=!0;else z=new _.LL("Unable to set active page",y?y.is:"unknown origin",(W=G.data)==null?void 0:W.endpoint),_.I4(z)};
this.viewTransitionManager?FyO(this.viewTransitionManager,K,this.viewTransitionConfigForSetActivePage(this.currentPage,x)):K();return D};
_.a.viewTransitionConfigForSetActivePage=function(x,G){return _.B("web_thumbnail_to_watch_transition")&&(x==null?void 0:x.is)==="ytd-browse"&&this.isWatchPage(G)?{viewTransitionOptions:{shouldWrap:!0}}:(this.applySlideTransition||this.applyZoomTransition)&&(x==null?void 0:x.is)==="ytd-browse"&&(G==null?void 0:G.is)==="ytd-browse"&&x!==G?this.applySlideTransition?{transitionName:"slide"}:{transitionName:"zoom"}:{viewTransitionOptions:{shouldWrap:!1}}};
_.a.updatePageData=function(x){var G=this,D=this.data;this.updatePageDataJobId&&_.Fj.cancelJob(this.updatePageDataJobId);this.data=x;return new _.T1(function(K){var z=function(){x.filler?G.performDataUpdate(x,D):vAj(function(){G.performDataUpdate(x,D)});
var e=_.Fp();_.CJ(e,"cr")||e.processSignal("cr");K()},y=function(){x&&x.page==="watch"?G.updatePageDataJobId=_.eU(_.Fj,z):z()};
if(_.B("kevlar_enable_mss_page_modules_client")&&x){var c=_.Eo().resolve(_.AR),W=G.getModuleNameForType(x.page);(c=H7j(c,[W]))?c.then(y):y()}else y()})};
_.a.isDownloadsPage=function(x){var G,D;return(x==null?void 0:(G=x.endpoint)==null?void 0:(D=G.browseEndpoint)==null?void 0:D.browseId)==="FEdownloads"};
_.a.setPlayerSyncInterval=function(x){var G;return _.T(function(D){if(D.nextAddress==1)return _.Z(D,_.Eo().resolve(_.k7),2);G=D.yieldResult;G.setUpPositionSyncInterval(x);_.c5(D)})};
_.a.performDataUpdate=function(x,G){_.B("kevlar_early_popup_close")||_.xO(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var D=!x.filler;D&&(_.Fs("lps"),_.B("config_age_report_killswitch")||LdC());var K=PQ(x),z,y=!1;if(_.B("kevlar_remove_page_dom_on_switch")){var c=G&&PQ(G);K===c&&(z=this.getCurrentPage())}z||(z=Fl(this.pagePool,K));D&&tTc(this.pagePool.elementPoolPopulator,K);D&&!this.renderLoadingStateJobId&&(y=this.setActivePage(z));if(z){c=K==="watch";var W=
K==="shorts",e=K==="learning_journey_watch";_.B("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(z);if(c||W||e)z.playerData=x.playerResponse;if(W){x.reelWatchSequenceResponse?z.reelWatchSequenceResponse=x.reelWatchSequenceResponse:x.cachedReelWatchSequenceResponse?z.reelWatchSequenceResponse=x.cachedReelWatchSequenceResponse:_.B("web_enable_cached_reel_sequence_fix")&&z.cachedReelWatchSequenceResponse&&!z.reelWatchSequenceResponse&&(z.reelWatchSequenceResponse=z.cachedReelWatchSequenceResponse);
z.currentEndpoint=x.endpoint;var Q;z.isPreviousPageShorts=!!(G==null?0:(Q=G.endpoint)==null?0:Q.reelWatchEndpoint);x.cachedReelWatchSequenceResponse=x.reelWatchSequenceResponse||x.cachedReelWatchSequenceResponse||(G==null?void 0:G.cachedReelWatchSequenceResponse);z.cachedReelWatchSequenceResponse=x.cachedReelWatchSequenceResponse}Q=this.isDownloadsPage(x);var p=this.isDownloadsPage(G);Q&&!p?this.setPlayerSyncInterval(6E5):!Q&&p&&this.setPlayerSyncInterval();_.B("block_all_player_prefetch_requests")||
this.preparePrefetchRequest(x,z,D,c,W,e);CDb(_.Eo().resolve(_.O$),G,x);_.NE(_.Eo().resolve(_.su));_.B("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(z);D?(D=typeof z.loadPage,D==="function"?(z.pageContext=aOc(this.contextSwitcher,z,z.data!==x.response),D=function(){z.loadPage(x.response)},(this.applySlideTransition||this.applyZoomTransition)&&this.viewTransitionManager&&z.is==="ytd-browse"&&y&&this.isDifferentBrowseId(x==null?void 0:x.endpoint,G==null?void 0:G.endpoint)?
this.applySlideTransition?FyO(this.viewTransitionManager,D,{transitionName:"slide"}):FyO(this.viewTransitionManager,D,{transitionName:"zoom"}):D()):_.jm(new _.LL("b/38014653 ",[K,
z.is,z.nodeName,D,z.isAttached,G&&PQ(G),this.hostElement.children.length])),_.Fs("pdl")):(z.hidden=!0,x.response.filler=!0,z.data=x.response,this.attachPage(z));_.h$(this.hostElement,"yt-page-data-updated",{pageType:K})}_.Bw(_.Fj,function(){_.B("logging_avoid_blocking_during_navigation")&&_.PDL().transition("none");var V=BQc(),L=z;if(x){var r=Gyf(x),H=Dp8(x),O;a:{if(x.playerResponse){var A=x.playerResponse,g;if((O=A.auxiliaryUi)==null?0:(g=O.messageRenderers)==null?0:g.upsellDialogRenderer){O=A.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(x.response&&(O=x.response,(A=O.overlay)==null?0:A.upsellDialogRenderer)){O=O.overlay.upsellDialogRenderer;break a}O=void 0}var u;var f;g=(u=x.playerResponse)==null?void 0:(f=u.auxiliaryUi)==null?void 0:f.messageRenderers;u=(g==null?void 0:g.enforcementMessageViewModel)||(g==null?void 0:g.bkaEnforcementMessageViewModel);u=(u==null?void 0:u.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?u:void 0;var v;a:{if(x.response&&(f=x.response,(v=f.overlay)==null?0:v.commandWrapperPromoRenderer)){v=
f.overlay.commandWrapperPromoRenderer;break a}v=void 0}LaC(V,r,H,O,u,v,L)}})};
_.a.preparePrefetchRequest=function(x,G,D,K,z,y){var c,W,e,Q,p,V,L,r,H,O,A,g,u,f,v;return _.T(function(P){if(P.nextAddress==1)return!D||!(K||z||y)||_.B("kevlar_disable_background_prefetch")&&_.SR(_.qtd)()===0?P.return():(c=_.qs(G))?_.Z(P,c.getPlayerPromise(),2):P.return();W=P.yieldResult;e=_.Eo().resolve(_.P6(_.mg));if(!e)return P.return();if(z)return Q=_.x1(_.TP),Dv6(Q,(p=x.endpoint)==null?void 0:p.reelWatchEndpoint,G.reelWatchSequenceResponse,W,e),P.return();r=(V=x.response)==null?void 0:(L=V.responseContext)==
null?void 0:L.webResponseContextExtensionData;if(!r)return P.return();u=(H=x.response)==null?void 0:(O=H.contents)==null?void 0:(A=O.twoColumnWatchNextResults)==null?void 0:(g=A.autoplay)==null?void 0:g.autoplay;f=_.Eo().resolve(_.HG);v=_.x1(_.TP);Kyb(v,r,W,e,f,u);_.c5(P)})};
_.a.movePlayerToWatch=function(x){var G=this,D,K;return _.T(function(z){D=Fl(G.pagePool,"watch");K=D.getPlayerContainer();x.appendTo(K);_.c5(z)})};
_.a.movePlayerToShorts=function(x){var G=this,D,K,z;return _.T(function(y){D=Fl(G.pagePool,"shorts");K=D.getPlayerContainer();(z=x)==null||z.appendTo(K,void 0,!0);_.c5(y)})};
_.a.getPlayerFromWatch=function(){var x=Fl(this.pagePool,"watch");return _.qs(x)};
_.a.getPlayerFromShorts=function(){var x=Fl(this.pagePool,"shorts");return _.qs(x)};
_.a.startLoadingWatch=function(){var x=Fl(this.pagePool,"watch");this.renderLoadingStateJobId?(_.Fj.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(x)};
_.a.startLoadingShorts=function(){var x=Fl(this.pagePool,"shorts");this.setActivePage(x)};
_.a.startLoadingLearningJourney=function(){var x=Fl(this.pagePool,"learning_journey_watch");this.setActivePage(x)};
_.a.getCurrentPage=function(){return this.currentPage};
_.a.getDestinationPageType=function(){return this.destinationPageType};
_.a.getCurrentData=function(){return this.data};
_.a.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.a.isOnShorts=function(){var x;return((x=this.currentPage)==null?void 0:x.is)==="ytd-shorts"};
_.a.isWatchPage=function(x){return!!x&&(x.is==="ytd-watch-flexy"||x.is==="ytd-watch-fixie"||x.is==="ytd-watch-grid")};
_.a.preparePage=function(x,G){var D=this,K=function(){var c=D.pagePool.preparePage(x,D.currentPage,G);c&&D.attachPage(c)},z=function(c){_.Xv(c,G);
_.O9(c)};
if(_.B("kevlar_enable_mss_page_modules_client")){var y=this.getModuleNameForType(x);if(y=H7j(_.Eo().resolve(_.AR),[y])){y.then(K.bind(this)).catch(z.bind(this));return}}try{K()}catch(c){z(c)}};
_.a.lazyPrepareCriticalPages=function(x,G){x=_.ci(G)||x;_.B("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(x).then(this.maybePrepareWatchPage.bind(this,x)):this.maybePrepareWatchPage(x)};
_.a.maybePrepareWatchPage=function(x){x!=="watch"&&_.Bw(_.Fj,this.preparePage.bind(this,"watch"))};
_.a.downloadPageModules=function(x){x=this.getModuleNameForType(x);var G=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);G.delete(x);var D=_.Eo().resolve(_.AR);D.JSC$16302_loadModules(x);return D.JSC$16302_loadModules.apply(D,_.B5(G))};
_.a.renderPageLoadingState=function(x,G){this.preparePage(x,G);var D=Fl(this.pagePool,x);D.loadingData&&(D.loadingData.endpoint=G);D.loading=!0;this.setActivePage(D);x==="watch"&&_.h$(this.hostElement,"yt-guide-close")};
_.a.prepareForNavigation=function(x,G){var D=this;if(this.currentPage&&this.data){var K=_.ci(G)||x;this.destinationPageType=K;PQ(this.data)==K&&_.h$(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if(x==="watch"&&this.data&&this.data.page!=="watch"){this.renderLoadingStateJobId&&_.Fj.cancelJob(this.renderLoadingStateJobId);_.Eo().resolve(_.O$).deactivate(G);var z=this.data;this.renderLoadingStateJobId=_.Vs(_.Fj,function(){if(D.data!=z){var y=Fl(D.pagePool,x);D.setActivePage(y)}else D.renderPageLoadingState(x,
G);D.renderLoadingStateJobId=0},150)}};
_.a.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var x=new _.vP(1);this.currentPage.pageDisposeJobs.forEach(function(G){_.JG(x,G)});
this.pageDisposeJobsets.set(this.currentPage,x)}};
_.a.flushPageDisposeJobset=function(x){var G=this.pageDisposeJobsets.get(x);G&&(G.flushJobs(),this.pageDisposeJobsets.delete(x))};
_.a.onYtStopOldPlayer=function(x,G){G=G===void 0?!1:G;var D,K=_.KL("kevlar_new_stop_old_player_logic_pages");if(_.B("kevlar_check_current_page_on_stop_old_player")&&(K.length===0||this.currentPage&&K.includes(this.currentPage.is)))if(this.data&&(D=PQ(this.data)),PQ(x)===D&&this.currentPage&&PQ(this.currentPage.data)!==D)var z=_.qs(this.currentPage);else D=PQ(this.data),z=Fl(this.pagePool,D),z=_.qs(z);else this.data&&(D=PQ(this.data),z=Fl(this.pagePool,D),z=_.qs(z));if(z)if(x=PQ(x),K=Fl(this.pagePool,
x),K=_.qs(K),z==K)G&&!_.B("kevlar_disable_preemptive_player_reset")&&z.resetForNewPlayback();else if(G=D==="watch"&&x!=="watch",!G||x==="shorts"||_.lNq()&&!ZTx(this.data)&&x!=="yts-products"&&x!="mini_app"&&x!="playables")D=_.Eo().resolve(_.O$),G&&D.isMiniplayerActive()&&D.pipController.getWindow()||z.stop()};
_.a.setupPageTransitionAnimation=function(){var x=this;if((this.applyZoomTransition||this.applySlideTransition)&&this.viewTransitionManager){vz(this.viewTransitionManager,"slide",{beforeTransition:function(){x.hostElement.style.viewTransitionName="page-manager-slide"},
afterTransition:function(){x.hostElement.style.viewTransitionName=""}});
vz(this.viewTransitionManager,"zoom",{beforeTransition:function(){x.hostElement.style.viewTransitionName="page-manager-zoom"},
afterTransition:function(){x.hostElement.style.viewTransitionName=""}});
var G=_.Gz("web_page_transition_exit_ms"),D=_.Gz("web_page_transition_wait_ms"),K=_.Gz("web_page_transition_enter_ms");if(!isNaN(G)||!isNaN(D)||!isNaN(K))if(G=BTf(sQ4,G,D,K))D=document.createElement("style"),D.textContent=_.mHf(G),document.head.appendChild(D)}};
_.a.isDifferentBrowseId=function(x,G){x=_.Y(x,_.TU);G=_.Y(G,_.TU);return(x==null?void 0:x.browseId)!==(G==null?void 0:G.browseId)};
_.Nq.Object.defineProperties(dS,{template:{configurable:!0,enumerable:!0,get:function(){return rGi()}}});
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],dS.prototype,"ytActionHandlerBehavior",void 0);dS=_.q([_.d({disableElementRegistration:!0,is:"ytd-page-manager"})],dS);_.w(dS,"ytd-page-manager",function(){return rGi()},{mode:_.Ge("kevlar_poly_si_batch_j081")?1:2});var wS=function(x,G,D){D=D===void 0?!1:D;_.Ya.call(this);this.draggableElement=x;this.callbacks=G;this.allowClicks=D;this.dragOccurred=!1;this.internalDragger=new _.$J(this.draggableElement);this.dragDelay=new _.fo(this.delayedDrag.bind(this));Ye6(this);this.allowClicks&&(_.BO9(this.internalDragger,5),x.addEventListener("click",_.ae(this,this.validateClick),{capture:!0}))};
_.m(wS,_.Ya);var Ye6=function(x){_.Lz(x.internalDragger,"earlycancel",function(){x.allowClicks&&(x.dragOccurred=!1)});
_.Lz(x.internalDragger,"start",function(G){var D,K;(K=(D=x.callbacks).onStartDrag)==null||K.call(D,G);!G.defaultPrevented&&x.allowClicks&&(x.dragOccurred=!0)});
_.Lz(x.internalDragger,"beforedrag",function(G){G.preventDefault();x.lastOffset=new _.$S(G.clientX-x.internalDragger.startX,G.clientY-x.internalDragger.startY);x.dragDelay.start()});
_.Lz(x.internalDragger,"end",function(){x.dragDelay.stop();var G,D;(D=(G=x.callbacks).onEndDrag)==null||D.call(G);x.lastOffset=void 0})};
wS.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
wS.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.ae(this,this.validateClick),{capture:!0})};
wS.prototype.validateClick=function(x){this.dragOccurred&&(this.dragOccurred=!1,x.stopPropagation(),x.preventDefault())};var qQ=function(x,G){_.Ya.call(this);this.JSC$17768_resizeContainer=x;this.callbacks=G;this.aspectRatio=16/9;this.JSC$17768_resizers=[];x=_.l(this.JSC$17768_resizeContainer.children);for(G=x.next();!G.done;G=x.next())mz8(this,G.value)};
_.m(qQ,_.Ya);qQ.prototype.disposeInternal=function(){for(var x=_.l(this.JSC$17768_resizers),G=x.next();!G.done;G=x.next())G.value.dispose();x=_.l(this.JSC$17768_resizeContainer.children);for(G=x.next();!G.done;G=x.next())G.value.setAttribute("disabled","");this.JSC$17768_resizers.length=0};
qQ.prototype.setSize=function(x){this.currentMiniplayerSize=x};
qQ.prototype.setAspectRatio=function(x){this.aspectRatio=x};
qQ.prototype.update=function(x,G){for(var D=_.l(this.JSC$17768_resizeContainer.children),K=D.next();!K.done;K=D.next()){K=K.value;var z=K.getAttribute("alignment");_.Ga(K,"disabled",z===x||z===G)}};
var mz8=function(x,G){var D=G.getAttribute("alignment"),K=new wS(G,{onStartDrag:function(z){if(G.hasAttribute("disabled"))z.preventDefault();else{x.dragStartSize=x.currentMiniplayerSize;var y,c;(c=(y=x.callbacks).onStartResize)==null||c.call(y)}},
onDrag:function(z){if(x.dragStartSize){D!=="north"&&D!=="west"||z.scale(-1);var y=D==="north"||D==="south";z=y?z.y:z.x;y&&x.aspectRatio>=1?z*=x.aspectRatio:!y&&x.aspectRatio<1&&(z/=x.aspectRatio);x.callbacks.onResize(x.dragStartSize+z)}}});
x.JSC$17768_resizers.push(K)};var HFY,$zi=function(){return HFY!==void 0?HFY:HFY=document.createElement("template")};
document.head.appendChild($zi().content);var F38;var CkC=_.Nv(function(x){var G=_.qi(),D=x.onDrag,K=x.onDragStart,z=x.onDragEnd,y=_.qv(x,{allowClicks:!1,dragThreshold:5}),c=y.dragThreshold,W=y.allowClicks;x=y.children;y=y.className;var e=void 0,Q=void 0,p=new _.$S(0,0),V=!1;_.FQ(function(){e=new _.$J(G.value);Q=new _.fo(r);L(e,Q);if(W()){_.BO9(e,c());var O;(O=G.value)==null||O.addEventListener("click",H,{capture:!0})}_.Fq(function(){var A;(A=e)==null||A.dispose();if(W()){var g;(g=G.value)==null||g.removeEventListener("click",H,{capture:!0})}})});
var L=function(O,A){_.Lz(O,"earlycancel",function(){W()&&(V=!1)});
_.Lz(O,"start",function(g){K==null||K(g);g.defaultPrevented||W()&&(V=!0)});
_.Lz(O,"beforedrag",function(g){e&&Q&&(g.preventDefault(),p=new _.$S(g.clientX-e.startX,g.clientY-e.startY),Q.start())});
_.Lz(O,"end",function(){A.stop();z==null||z();p=new _.$S(0,0)})},r=function(){p&&D(p)},H=function(O){V&&(V=!1,O.stopPropagation(),O.preventDefault())};
return _.M("yt-draggable",{el:G,class:_.ym("ytDraggableComponentHost",y)},x)},"lg");var IH6=_.Nv(function(x){var G=_.l(_.eO(0,void 0,"CvAwBd")),D=G.next().value,K=G.next().value;G=function(z){var y={},c={};return _.M(CkC,{className:_.ym("ytdMiniplayerComponentResizer",(y.ytdMiniplayerComponentResizerDisabled=function(){return z===x.horizontalAlignment()||z===x.verticalAlignment()},y.ytdMiniplayerComponentResizerNorth=z==="north",y.ytdMiniplayerComponentResizerEast=z==="east",y.ytdMiniplayerComponentResizerSouth=z==="south",y.ytdMiniplayerComponentResizerWest=z==="west",y)),
onDragStart:function(){K(x.currentMiniplayerSize());if(x.onResizeStart)x.onResizeStart()},
onDrag:function(W){z!=="north"&&z!=="west"||W.scale(-1);var e;W=(e=z==="north"||z==="south")?W.y:W.x;var Q=x.currentAspectRatio();e&&Q>=1?W*=Q:!e&&Q<1&&(W/=Q);e=W;x.onResize(D()+e)}},_.M("div",{class:_.ym("ytdMiniplayerComponentResizerCorner",(c.ytdMiniplayerComponentResizerNorthCorner=z==="north",c.ytdMiniplayerComponentResizerEastCorner=z==="east",c.ytdMiniplayerComponentResizerSouthCorner=z==="south",c.ytdMiniplayerComponentResizerWestCorner=z==="west",c))}))};
return _.M("div",{class:"ytdMiniplayerComponentResizers"},G("north"),G("east"),G("south"),G("west"))},"mg");var jQ8=16/9,OFT=_.Nv(function(){var x=_.qi(),G=_.l(_.eO(new _.cu(NaN,NaN),void 0,"UYv80c")),D=G.next().value,K=G.next().value;G=_.l(_.eO(!1,void 0,"L9O3Tc"));var z=G.next().value,y=G.next().value;G=_.l(_.eO(!1,void 0,"nw5gMc"));var c=G.next().value,W=G.next().value;G=_.l(_.eO(!1,void 0,"X4YUZc"));var e=G.next().value,Q=G.next().value;G=_.l(_.eO(!1,void 0,"jOjwyc"));var p=G.next().value,V=G.next().value;G=_.l(_.eO(!1,void 0,"EmWIj"));var L=G.next().value,r=G.next().value;G=_.l(_.eO(!1,void 0,"pdZbNb"));
var H=G.next().value,O=G.next().value;G=_.l(_.eO(jQ8,void 0,"vdAiue"));var A=G.next().value,g=G.next().value,u=_.l(_.eO(!1,void 0,"agiiqf"));G=u.next().value;var f=u.next().value;u=_.l(_.eO(!1,void 0,"z3vkHe"));var v=u.next().value,P=u.next().value;u=_.l(_.eO(void 0,void 0,"FMEjz"));var k=u.next().value,cL=u.next().value;u=_.l(_.eO(_.Am("HTML_DIR")==="rtl"?"west":"east",void 0,"jGuIHe"));var bO=u.next().value,mE=u.next().value;u=_.l(_.eO("south",void 0,"R5stie"));var jf=u.next().value,$C=u.next().value;
u=_.l(_.eO(400,void 0,"CJeuke"));var OD=u.next().value,wn=u.next().value,n$=_.Eo().resolve(_.O$).miniplayerPropSignalMap[0],Fi=n$.data,pf=n$.externalPlaylistData;u=n$.toastData;var UE=n$.playabilityStatus,M0=n$.isReadyToResume,cs=n$.isDisabled,G8=n$.watchWhile,T7=n$.playerVe,Wd=n$.expandVe,Fc=n$.closeVe,lO=n$.readyToResumeVe,Bs=n$.readyToResumeCloseVe,Xi=n$.repositionVe,uC=n$.resizeVe;n$=_.l(_.ZX(M0));var Y8=n$.next().value,fu=n$.next().value,g4=!1,vs=!1,as;_.FQ(function(){K(_.ZD());x.value.addEventListener("animationend",
function(g9){g9.target===x.value&&(r(!1),O(!1))});
Yf6(x.value)});
_.wu("yt-window-resized",function(g9){g9&&K(g9)});
var d9=function(){as&&g(as.getVideoAspectRatio())},Lf=function(){if(as){var g9=as.getPlayerState()===1;
Y8()&&g9&&fu(!1)}},Lu=function(){var g9=Wd();
if(g9){var FO=_.CC(3);FO&&_.u0(FO,g9)}},Cu=function(){var g9=Fc(),FO=Bs();
g9&&_.u0(_.CC(3),g9);M0()&&FO&&_.u0(_.CC(3),FO)};
_.wu("yt-activate-miniplayer",function(g9){var FO;return _.T(function(Ec){if(Ec.nextAddress==1)return z()?Ec.return():_.Z(Ec,(FO=_.Eo().resolve(_.O$).getPlayerElement())==null?void 0:FO.getPlayerPromise(),2);as=Ec.yieldResult;if(!as)return Ec.return();!v()&&_.B("kevlar_watch_while_v2")&&($C(g9&&!_.B("kevlar_watch_while_bottom_align")?"north":"south"),mE(_.Am("HTML_DIR")==="rtl"?"west":"east"));var h6=as;h6.addEventListener("onVideoDataChange",d9);h6.addEventListener("onStateChange",Lf);h6.addEventListener("onExpandMiniplayer",
Lu);h6.addEventListener("onCloseMiniplayer",Cu);g(as.getVideoAspectRatio());y(!0);r(!0);_.c5(Ec)})});
_.wu("yt-deactivate-miniplayer",function(g9){return _.T(function(FO){if(!z())return FO.return();y(!1);fu(!1);O(g9);r(!0);V(!1);W(!1);if(as){var Ec=as;Ec.removeEventListener("onVideoDataChange",d9);Ec.removeEventListener("onStateChange",Lf);Ec.removeEventListener("onExpandMiniplayer",Lu);Ec.removeEventListener("onCloseMiniplayer",Cu)}_.c5(FO)})});
var ex=function(){return!(G8()&&_.B("kevlar_watch_while_modern"))},y$=function(){var g9;
return!((g9=pf())==null||!g9.contents)},yj=function(){var g9=OD();
var FO=D();FO=Math.min(Math.min(FO.width,FO.height)-32,720);var Ec=A(),h6=ex(),TZ=y$()&&c(),uX=Math.min(g9,FO);g9=new _.cu(192,h6?116:192);Ec=DBk(new _.cu(TZ?jQ8:Ec,1),new _.cu(uX,h6?uX-76:uX));g9.width<=Ec.width&&g9.height<=Ec.height||(GUc(Ec,g9),Ec.width=Math.min(Ec.width,FO),Ec.height=Math.min(Ec.height,FO));return new _.cu(Ec.width,_.$1(192,Ec.height+Cx4(h6,TZ),720))},bX=function(){var g9=yj(),FO=ex(),Ec=y$()&&c();
return new _.cu(g9.width,g9.height-Cx4(FO,Ec))},l0=function(){var g9=function(FO){FO.target===x.value&&p()&&(V(!1),x.value.removeEventListener("transitionend",g9))};
x.value.addEventListener("transitionend",g9);V(!0);W(!c())};
_.$9(function(){var g9=T7(),FO=_.CC(3),Ec=_.Fx(3);if(FO&&Ec&&g9){_.RI(FO,Ec,g9);Ec=Xi();var h6=uC(),TZ=Wd(),uX=Fc(),RW=Bs();TZ&&uX&&RW&&(_.S7(FO,g9,[TZ,uX,RW]),_.i0(FO,[TZ,uX]));Ec&&h6&&_.S7(FO,g9,[Ec,h6])}});
_.$9(function(){var g9=Y8(),FO=lO();if(FO&&(g9===void 0?0:g9)){g9=_.CC(0);var Ec=_.Fx(0);g9&&Ec&&(_.RI(g9,Ec,FO),_.i0(g9,[FO]))}});
n$={};return _.M("ytd-miniplayer",{el:x,class:_.ym("ytdMiniplayerComponentHost",(n$.ytdMiniplayerComponentVisible=function(){return z()||L()},n$.ytdMiniplayerComponentAnimatingSnap=e,n$.ytdMiniplayerComponentAnimatingPlaylistExpand=p,n$.ytdMiniplayerComponentAnimatingFade=L,n$),function(){if(L()){var g9=jf();
var FO=z(),Ec=H();g9=FO?g9==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":Ec?g9==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":g9==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else g9="";return g9}),
style:_.Ms({top:function(){return jf()==="north"?"16px":""},
right:function(){return bO()==="east"?"16px":""},
bottom:function(){return jf()==="south"?"16px":""},
left:function(){return bO()==="west"?"16px":""},
width:function(){return yj().width+"px"},
height:function(){return yj().height+"px"},
transform:function(){var g9=k();return g9?"translate("+g9.x+"px, "+g9.y+"px)":""}})},_.M("div",{class:"ytdMiniplayerComponentContent"},_.M(CkC,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(g9){var FO=Fb8(bO(),jf(),D(),yj(),k()),Ec=bX();Math.abs(g9.clientY-(FO.y+Ec.height))>15?(f(!0),g9=_.CC(3),FO=Xi(),g4||(g4=!0,g9&&FO&&_.i0(g9,[FO])),g9&&FO&&_.u0(g9,FO)):g9.preventDefault()},
onDrag:function(g9){cL(g9)},
onDragEnd:function(){var g9=mpj(Fb8(bO(),jf(),D(),yj(),k()),D(),yj()),FO=$pC(bO(),jf(),D(),yj()),Ec=$pC(g9.horizontalAlignment,g9.verticalAlignment,D(),yj());Ec=new _.$S(Ec.x-FO.x,Ec.y-FO.y);var h6;FO=FO.y+(((h6=k())==null?void 0:h6.y)||0)+yj().height/2;var TZ=function(){bO()===g9.horizontalAlignment&&jf()===g9.verticalAlignment||P(!0);mE(g9.horizontalAlignment);$C(g9.verticalAlignment);cL(void 0)},uX=function(RW){RW.target===x.value&&e()&&(Q(!1),TZ(),x.value.removeEventListener("transitionend",uX))};
f(!1);jf()==="south"&&FO>D().height?(TZ(),_.Eo().resolve(_.O$).close()):(x.value.addEventListener("transitionend",uX),Q(!0),cL(Ec))}},_.M(_.b,{cond:z,
then:function(){return _.M(_.Ak4,{isDisabled:cs,playabilityStatus:UE,size:bX})}}),_.M(_.b,{cond:ex,
then:function(){return _.M(_.Oub,{isReadyToResume:Y8,data:Fi,expanded:c,onExpandClick:l0,playlistData:pf})}}),_.M(_.b,{cond:G,
then:function(){return _.M("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.M(_.b,{cond:function(){return y$()&&c()||p()},
then:function(){return _.M(_.Gt0,{className:"ytdMiniplayerComponentPlaylistPanel",data:pf,hideHeaderText:!0,withinMiniplayer:!0})}}),_.M("div",{class:"ytdMiniplayerComponentToast"},_.M(_.U0Y,{toastData:u}))),_.M(IH6,{onResize:function(g9){wn(_.$1(192,g9,720))},
onResizeStart:function(){var g9=_.CC(3),FO=uC();vs||(vs=!0,g9&&FO&&_.i0(g9,[FO]));g9&&FO&&_.u0(g9,FO)},
currentAspectRatio:A,currentMiniplayerSize:OD,horizontalAlignment:bO,verticalAlignment:jf}))},"ng");_.B("ytd_miniplayer_to_wiz")&&_.tn(OFT,"ytd-miniplayer",{});_.tn(_.U0Y,"ytd-miniplayer-toast",{props:{toastData:_.ik}});var XP6=16/9,AGO=new _.cu(400,400/XP6),NQ=function(){var x=_.n.apply(this,arguments)||this;x.active=!1;x.hasNoData=!1;x.enabled=!1;x.expanded=!1;x.readyToResume=!1;x.isDisabled=!1;x.externalPlaylistData={};x.premiumBadges=[];x.watchWhile=!1;x.playerState=null;x.verticalAttachment="south";x.horizontalAttachment=_.Am("HTML_DIR")==="rtl"?"west":"east";x.isAnimatingFade=!1;x.isAnimatingSnap=!1;x.isAnimatingExpand=!1;x.isDragging=!1;x.playerHidden=!1;x.hasPlaylistData=!1;x.closed=!1;x.expandedClosed=!1;
x.isForReadyToResume=!1;x.watchResponse=null;x.player=null;x.playerVe=null;x.expandVe=null;x.closeVe=null;x.readyToResumeCloseVe=null;x.disabledInitialStateIsPlaying=!1;x.PLAYER_EVENTS=new Map;x.aspectRatio=XP6;x.currentMiniplayerSize=400;x.userSetSize=!1;x.userSetPosition=!1;x.userHasDragged=!1;x.maxMiniplayerSize=720;x.transform=new _.$S(0,0);x.windowDimensions=new _.cu(NaN,NaN);x.dimensions=AGO;x.screenLayer=3;x.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return x};
_.m(NQ,_.n);_.a=NQ.prototype;_.a.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()};
_.a.ready=function(){this.setUpDragging();this.setUpResizing()};
_.a.attached=function(){this.onWindowResized(_.ZD());this.hostElement.addEventListener("animationend",_.ae(this,this.resetFadingAnimation))};
_.a.detached=function(){this.hostElement.removeEventListener("animationend",_.ae(this,this.resetFadingAnimation))};
_.a.resetFadingAnimation=function(x){x.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.a.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.a.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.a.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var x=_.CC(this.screenLayer);this.readyToResumeCloseVe&&x&&_.i0(x,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.a.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var x=_.CC(0),G=_.Fx(0);x&&G&&(_.RI(x,G,this.readyToResumeVe),_.i0(x,[this.readyToResumeVe]))}};
_.a.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var x=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=x===-1||x===1||x===3)&&this.player.pauseVideo()}};
_.a.activate=function(x,G){G=G===void 0?!1:G;var D=this,K;return _.T(function(z){if(z.nextAddress==1)return D.setInitialActivatePositioning(G),D.enabled=!0,D.active=!0,D.expanded=!1,D.closed=!1,D.expandedClosed=!1,D.watchWhileHidden||(D.isAnimatingFade=!0),_.Eo().resolve(_.HG).setPlaylistComponent(D.JSC$17779_playlistPanel),x.appendTo(D.playerContainer),_.Z(z,x.getPlayerPromise(),2);K=z.yieldResult;K.setSizeStyle(!1,!0);D.ytPlayerListenerBehavior.listenToPlayerEvents(K,D.PLAYER_EVENTS);D.player=K;
D.watchWhile&&_.B("kevlar_watch_while_minimum_size")&&D.setMiniplayerSize(192);D.setAspectRatio(D.player.getVideoAspectRatio());D.onIsDisabledChanged();_.c5(z)})};
_.a.setInitialActivatePositioning=function(x){if(!this.userSetPosition&&_.B("kevlar_watch_while_v2")){this.verticalAttachment=x&&!_.B("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.Am("HTML_DIR")==="rtl"?"west":"east";var G;(G=this.JSC$17779_resizers)==null||G.update(this.horizontalAttachment,this.verticalAttachment)}};
_.a.deactivate=function(x,G){var D=this;return _.T(function(K){if(!D.active)return K.return();x||(D.expanded?D.expandedClosed=!0:D.closed=!0);D.active=!1;D.isForReadyToResume=!1;G&&_.B("kevlar_watch_while_counterfactual")||(D.isAnimatingFade=!0);D.player&&D.ytPlayerListenerBehavior.unlistenFromPlayerEvents(D.player,D.PLAYER_EVENTS);D.player=null;_.c5(K)})};
_.a.onMetadataTap=function(x){this.expandVe&&(x===void 0||x)&&(x=_.CC(this.screenLayer))&&_.u0(x,this.expandVe);_.QP(_.Eo().resolve(_.O$))};
_.a.onDisabledTap=function(x){x.target===_.kA(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.a.onPlaylistExpandTap=function(x){if(this.hasPlaylistData){x=_.gA(x)||[];x=_.l(x);for(var G=x.next();!G.done;G=x.next()){G=G.value;if(G===this.hostElement)break;if(G.classList&&G.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.a.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.ae(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.a.animatedResizePlaylist=function(x){x.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.ae(this,this.animatedResizePlaylist)))};
_.a.getExpandIcon=function(x){return x?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.a.onPlayerVideoDataChange=function(){var x,G=(x=this.player)==null?void 0:x.getVideoAspectRatio();G&&G!==this.aspectRatio&&this.setAspectRatio(G)};
_.a.setAspectRatio=function(x){if(this.active){this.aspectRatio=x;this.updateDimensionsAndResize();var G;(G=this.JSC$17779_resizers)==null||G.setAspectRatio(x)}};
_.a.updateDimensionsAndResize=function(){var x=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),G=this.expanded?XP6:this.aspectRatio,D=new _.cu(192,this.showInfoBar?116:192);x=DBk(new _.cu(G,1),new _.cu(x,this.showInfoBar?x-76:x));D.width<=x.width&&D.height<=x.height||(GUc(x,D),x.width=Math.min(x.width,this.maxMiniplayerSize),x.height=Math.min(x.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&G<=1?Math.max(x.width,x.height)+76:Math.max(x.width,x.height)));this.dimensions=
new _.cu(x.width,this.clamp(x.height+this.getNonPlayerHeight()));this.resize()};
_.a.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var x=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=x.height+"px";var G;(G=this.player)==null||G.setInternalSize(x.width,x.height)};
_.a.getPlayerSize=function(x){var G=Math.max(0,x.height-this.getNonPlayerHeight());return new _.cu(x.width,G)};
_.a.getNonPlayerHeight=function(){var x=0;this.showInfoBar&&(x+=76);this.expanded&&(x+=285);return x};
_.a.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.Eo().resolve(_.O$).close()};
_.a.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.a.logClosingClick=function(){this.closeVe&&_.u0(_.CC(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.u0(_.CC(this.screenLayer),this.readyToResumeCloseVe)};
_.a.onPlayerExpandMiniplayer=function(){if(this.expandVe){var x=_.CC(this.screenLayer);x&&_.u0(x,this.expandVe)}};
_.a.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var x=this.playerState===1;this.continueWatching&&x&&(this.continueWatching=!1);this.premiumBadges.length&&x&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.a.getScreenLayer=function(){return this.screenLayer};
_.a.logMiniplayer=function(){var x=_.CC(this.screenLayer),G=_.Fx(this.screenLayer);x&&G&&this.playerVe&&(_.RI(x,G,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.S7(x,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.i0(x,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.S7(x,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.a.computePlaylistData=function(x,G){return G};
_.a.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.a.computeExpandButtonHidden=function(x,G,D){return!x||!G||D};
_.a.computePlaylistIndexHidden=function(x,G){return!x||G};
_.a.computePlaylistPanelHidden=function(x,G){return!G&&!x};
_.a.computeExpandButtonLabel=function(x){return x?_.Wg("MINIPLAYER_COLLAPSE_LABEL"):_.Wg("MINIPLAYER_EXPAND_LABEL")};
_.a.computeDisabledStateCloseButtonLabel=function(){return _.Wg("MINIPLAYER_CLOSE",void 0,"Close")};
_.a.onWindowResized=function(x){x&&(x=this.windowDimensions=x,this.maxMiniplayerSize=Math.min(Math.min(x.width,x.height)-32,720),this.updateDimensionsAndResize())};
_.a.setUpResizing=function(){var x=this;this.JSC$17779_resizers||(this.JSC$17779_resizers=new qQ(this.JSC$17779_resizeContainer,{onStartResize:function(){x.handleResizeStart()},
onResize:function(G){x.handleResize(G)}}),this.JSC$17779_resizers.setSize(this.currentMiniplayerSize),this.JSC$17779_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.a.handleResizeStart=function(){var x=_.CC(this.screenLayer);this.userSetSize||(this.userSetSize=!0,x&&this.resizeVe&&_.i0(x,[this.resizeVe]));x&&this.resizeVe&&_.u0(x,this.resizeVe)};
_.a.handleResize=function(x){this.setMiniplayerSize(x);this.updateDimensionsAndResize()};
_.a.setUpDragging=function(){var x=this;this.JSC$17779_dragger||(this.JSC$17779_dragger=new wS(this.draggableContainer,{onStartDrag:function(G){!x.isSafeToDrag(G)||x.isAnimatingSnap?G.preventDefault():x.handleDragStart()},
onDrag:function(G){x.transform=G;x.setTransform(x.transform)},
onEndDrag:function(){x.handleDragEnd()}},!0))};
_.a.handleDragStart=function(){this.isDragging=!0;var x=_.CC(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,x&&this.repositionVe&&_.i0(x,[this.repositionVe]));x&&this.repositionVe&&_.u0(x,this.repositionVe)};
_.a.handleDragEnd=function(){this.isDragging=!1;var x=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&x>this.windowDimensions.height&&_.Eo().resolve(_.O$).close();this.animateSnapToCorner()};
_.a.animateSnapToCorner=function(){var x=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),G=this.getNearestAttachments();G=this.getGlobalPositionFromAttachments(G.horizontalAttachment,G.verticalAttachment);x=new _.$S(G.x-x.x,G.y-x.y);this.isAnimatingSnap=!0;this.setTransform(x);this.hostElement.addEventListener("transitionend",_.ae(this,this.endSnapAnimation))};
_.a.endSnapAnimation=function(x){x.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.ae(this,this.endSnapAnimation)),this.endDrag())};
_.a.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.a.setTransform=function(x){this.hostElement.style.transform=x?"translate("+x.x+"px, "+x.y+"px)":""};
_.a.getGlobalPositionFromAttachments=function(x,G){return new _.$S(x==="west"?16:this.windowDimensions.width-this.dimensions.width-16,G==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.a.updateAttachments=function(){var x=this.getNearestAttachments();if(this.horizontalAttachment!==x.horizontalAttachment||this.verticalAttachment!==x.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=x.horizontalAttachment;this.verticalAttachment=x.verticalAttachment;var G;(G=this.JSC$17779_resizers)==null||G.update(this.horizontalAttachment,this.verticalAttachment)};
_.a.getNearestAttachments=function(){var x=this.getCurrentGlobalPosition();return{horizontalAttachment:x.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:x.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.a.getCurrentGlobalPosition=function(){var x=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return HCi(x,this.transform)};
_.a.isSafeToDrag=function(x){var G=this.playerContainer.getBoundingClientRect();return Math.abs(x.clientY-(G.y+G.height))>15};
_.a.setMiniplayerSize=function(x){this.currentMiniplayerSize=this.clamp(x);var G;(G=this.JSC$17779_resizers)==null||G.setSize(this.currentMiniplayerSize)};
_.a.clamp=function(x){return _.$1(192,x,720)};
_.a.registerViewTransitionTasks=function(){var x=this,G=_.Eo().resolve(_.P6(_.MN));if(G){var D={beforeTransition:function(){x.hostElement&&(x.hostElement.style.viewTransitionName="miniplayer-page-transition")},
afterTransition:function(){x.hostElement&&(x.hostElement.style.viewTransitionName="")}};
vz(G,"slide",D);vz(G,"zoom",D)}};
_.Nq.Object.defineProperties(NQ.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.B("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:_.Wg("CONTINUE_WATCHING",void 0,"Continue watching")};var x;if((x=this.externalPlaylistData)==null?0:x.contents)return this.externalPlaylistData.titleText;var G;return(G=this.data)==null?void 0:G.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.externalPlaylistData)==null?0:x.contents){var G;return(G=_.vP3(this.externalPlaylistData))==null?void 0:G.title}var D;return(D=this.data)==null?void 0:D.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var x,G,D,K;return((x=this.externalPlaylistData)==null?void 0:x.currentIndex)!==void 0&&((G=this.externalPlaylistData)==null?0:G.totalVideos)&&!((D=this.data)==null?0:(K=D.playlistData)==null?0:K.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.nNC(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.B("kevlar_watch_while_counterfactual")}}});
NQ.prototype.onIsDisabledChanged=NQ.prototype.onIsDisabledChanged;NQ.prototype.readyToResumeVeChanged=NQ.prototype.readyToResumeVeChanged;NQ.prototype.premiumBrandingChanged=NQ.prototype.premiumBrandingChanged;NQ.prototype.onPlayerVeChange=NQ.prototype.onPlayerVeChange;NQ.prototype.hasPlaylistDataChanged=NQ.prototype.hasPlaylistDataChanged;_.q([_.I(_.nS.YtPlayerListenerBehavior),_.N("design:type",_.i4)],NQ.prototype,"ytPlayerListenerBehavior",void 0);
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],NQ.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],NQ.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],NQ.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],NQ.prototype,"ytdReduxBehavior",void 0);_.q([_.cD("#draggable"),_.N("design:type",HTMLDivElement)],NQ.prototype,"draggableContainer",void 0);
_.q([_.cD("#resize-container"),_.N("design:type",HTMLDivElement)],NQ.prototype,"JSC$17779_resizeContainer",void 0);_.q([_.cD("#video-container"),_.N("design:type",HTMLDivElement)],NQ.prototype,"videoContainer",void 0);_.q([_.cD("#player-container"),_.N("design:type",HTMLDivElement)],NQ.prototype,"playerContainer",void 0);_.q([_.cD("#playlist"),_.N("design:type",HTMLDivElement)],NQ.prototype,"JSC$17779_playlistPanel",void 0);_.q([_.R(),_.N("design:type",Object)],NQ.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],NQ.prototype,"active",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],NQ.prototype,"hasNoData",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],NQ.prototype,"enabled",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],NQ.prototype,"expanded",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],NQ.prototype,"readyToResume",void 0);
_.q([_.R(),_.N("design:type",Object)],NQ.prototype,"isDisabled",void 0);_.q([_.R(),_.N("design:type",Object)],NQ.prototype,"externalPlaylistData",void 0);_.q([_.R(),_.N("design:type",Array)],NQ.prototype,"premiumBadges",void 0);_.q([_.R(),_.N("design:type",Object)],NQ.prototype,"toastData",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],NQ.prototype,"watchWhile",void 0);_.q([_.R(),_.N("design:type",Boolean)],NQ.prototype,"premiumBranding",void 0);
_.q([_.R(),_.N("design:type",Object)],NQ.prototype,"playerState",void 0);_.q([_.R(),_.N("design:type",Boolean)],NQ.prototype,"continueWatching",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],NQ.prototype,"verticalAttachment",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],NQ.prototype,"horizontalAttachment",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],NQ.prototype,"isAnimatingFade",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],NQ.prototype,"isAnimatingSnap",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],NQ.prototype,"isAnimatingExpand",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],NQ.prototype,"isDragging",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],NQ.prototype,"playerHidden",void 0);
_.q([_.R({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.N("design:type",Object)],NQ.prototype,"playlistData",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.N("design:type",Object)],NQ.prototype,"hasPlaylistData",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],NQ.prototype,"closed",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],NQ.prototype,"expandedClosed",void 0);
_.q([_.R({selector:_.aiP}),_.N("design:type",Boolean)],NQ.prototype,"isSingleOptionSurveyActive",void 0);_.q([_.R({reflectToAttribute:!0,selector:_.$_}),_.N("design:type",Boolean)],NQ.prototype,"isWatchPage",void 0);_.q([_.R({reflectToAttribute:!0}),_.U("watchWhile"),_.N("design:type",Object),_.N("design:paramtypes",[])],NQ.prototype,"showInfoBar",null);_.q([_.U("premiumBadges","showInfoBar"),_.N("design:type",Object),_.N("design:paramtypes",[])],NQ.prototype,"showOverlayPremiumBadges",null);
_.q([_.R(),_.N("design:type",Object)],NQ.prototype,"watchResponse",void 0);_.q([_.R(),_.N("design:type",Object)],NQ.prototype,"miniplayerRenderer",void 0);_.q([_.R(),_.N("design:type",Object)],NQ.prototype,"playabilityStatus",void 0);_.q([_.R(),_.N("design:type",Object)],NQ.prototype,"playerVe",void 0);_.q([_.R(),_.N("design:type",Object)],NQ.prototype,"expandVe",void 0);_.q([_.R(),_.N("design:type",Object)],NQ.prototype,"closeVe",void 0);
_.q([_.R(),_.N("design:type",Object)],NQ.prototype,"readyToResumeCloseVe",void 0);_.q([_.R(),_.N("design:type",_.$m)],NQ.prototype,"readyToResumeVe",void 0);_.q([_.R(),_.N("design:type",_.$m)],NQ.prototype,"resizeVe",void 0);_.q([_.R(),_.N("design:type",_.$m)],NQ.prototype,"repositionVe",void 0);_.q([_.yf("hasPlaylistData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NQ.prototype,"hasPlaylistDataChanged",null);
_.q([_.yf("playerVe"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NQ.prototype,"onPlayerVeChange",null);_.q([_.yf("premiumBranding"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NQ.prototype,"premiumBrandingChanged",null);_.q([_.yf("readyToResumeVe"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NQ.prototype,"readyToResumeVeChanged",null);
_.q([_.yf("isDisabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NQ.prototype,"onIsDisabledChanged",null);_.q([_.U("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.N("design:type",Object),_.N("design:paramtypes",[])],NQ.prototype,"miniplayerSubtitle",null);_.q([_.U("data.miniplayerTitle","externalPlaylistData"),_.N("design:type",Object),_.N("design:paramtypes",[])],NQ.prototype,"miniplayerTitle",null);
_.q([_.U("externalPlaylistData","continueWatching"),_.N("design:type",Object),_.N("design:paramtypes",[])],NQ.prototype,"playlistIndexMessage",null);_.q([_.R({reflectToAttribute:!0}),_.U("playabilityStatus"),_.N("design:type",Object),_.N("design:paramtypes",[])],NQ.prototype,"showErrorScreen",null);_.q([_.R({reflectToAttribute:!0}),_.U("watchWhile"),_.N("design:type",Object),_.N("design:paramtypes",[])],NQ.prototype,"watchWhileHidden",null);
_.B("ytd_miniplayer_to_wiz")||_.w(NQ,"ytd-miniplayer",function(){if(F38===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore($zi().content.cloneNode(!0),x.content.firstChild);x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);F38=x}x=F38;return x},{mode:2});var UzC;var vJ=function(){var x=_.n.apply(this,arguments)||this;x.useListItemStyles=_.B("web_list_item_style_for_menu_items");x.systemIcons=_.B("kevlar_system_icons");return x};
_.m(vJ,_.n);_.a=vJ.prototype;_.a.ready=function(){this.hostElement.addEventListener("tap",_.ae(this,this.onEndpointTapExtra))};
_.a.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.a.onFocus=function(){var x;(x=_.kA(this.hostElement).querySelector("tp-yt-paper-item"))==null||x.focus()};
_.a.onEndpointTapExtra=function(x){_.h$(this.hostElement,"iron-activate");var G=this.data.navigationEndpoint;G&&_.Y(G,_.Fcd)&&(x.stopPropagation(),_.zl(this.hostElement,[G],this.hostElement))};
_.a.computeIcon=function(x){return x&&x.iconType?_.aP(x.iconType):""};
_.a.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.a.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.a.forceUpdateStylesOnLegacyBrowsers=function(){_.B("kevlar_legacy_browsers")&&_.K7(this.hostElement)};
vJ.prototype.forceUpdateStylesOnLegacyBrowsers=vJ.prototype.forceUpdateStylesOnLegacyBrowsers;vJ.prototype.onFocus=vJ.prototype.onFocus;_.q([_.I(_.i9),_.N("design:type",Object)],vJ.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.I(_.zwZ.YtConditionalRendererBehavior),_.N("design:type",Object)],vJ.prototype,"ytConditionalRendererBehavior",void 0);_.q([_.I(_.l9.YtEndpointBehavior),_.N("design:type",Object)],vJ.prototype,"ytEndpointBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],vJ.prototype,"data",void 0);_.q([_.R({computed:"computeIcon(data.icon)",value:""}),_.N("design:type",String)],vJ.prototype,"icon",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],vJ.prototype,"useIcons",void 0);_.q([_.R({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.N("design:type",Boolean)],vJ.prototype,"hasSeparator",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],vJ.prototype,"useListItemStyles",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],vJ.prototype,"systemIcons",void 0);_.q([_.oe("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vJ.prototype,"onFocus",null);_.q([_.yf("useIcons","hasSeparator"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vJ.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.w(vJ,"ytd-menu-navigation-item-renderer",function(){if(UzC===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);UzC=x}x=UzC;return x},{mode:1});var RJT;var Sec=_.gK(_.Wg("DOWNLOAD",{},"Download")),nti=_.gK(_.Wg("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),iFx=_.gK(_.Wg("RETRY",{},"Retry")),gtj=_.gK(_.Wg("PAUSE_DOWNLOADING",{},"Pause downloading")),uH4=_.gK(_.Wg("RESUME_DOWNLOAD",{},"Resume download")),JP=function(){var x=_.n.apply(this,arguments)||this;x.primaryText=Sec;x.primaryIconType="OFFLINE_DOWNLOAD";x.hasSecondaryContent=!1;x.hasSeparator=!1;x.transferState="TRANSFER_STATE_UNKNOWN";x.isVideoDeletedByUser=!1;x.isHidden=!1;x.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return x};
_.m(JP,_.n);_.a=JP.prototype;_.a.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.a.onFocus=function(){this.primaryEntry.focus()};
_.a.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.a.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.a.getRemoveAction=function(){return"ACTION_REMOVE"};
_.a.sendOfflineAction=function(x){var G=this.data.serviceEndpoint;if(G){var D=_.Y(G,_.zx);D&&x&&(D.action=x);this.ytComponentBehavior.resolveCommand(G)}};
_.a.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=Sec,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=Sec;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=iFx;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=nti;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=uH4;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=nti;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
gtj;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=nti;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=nti;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=Sec,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.a.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.a.isSecondaryEntryHidden=function(x,G){return x?!0:!G};
_.a.computeHasSeparator=function(){var x;return!((x=this.data)==null||!x.hasSeparator)};
JP.prototype.showHideButton=JP.prototype.showHideButton;JP.prototype.onTransferStateChange=JP.prototype.onTransferStateChange;JP.prototype.onFocus=JP.prototype.onFocus;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],JP.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],JP.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],JP.prototype,"ytComponentBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],JP.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],JP.prototype,"primaryText",void 0);_.q([_.R(),_.N("design:type",String)],JP.prototype,"primaryIconType",void 0);_.q([_.R(),_.N("design:type",String)],JP.prototype,"primaryAction",void 0);_.q([_.R(),_.N("design:type",Object)],JP.prototype,"secondaryText",void 0);_.q([_.R(),_.N("design:type",String)],JP.prototype,"secondaryIconType",void 0);
_.q([_.R(),_.N("design:type",String)],JP.prototype,"secondaryAction",void 0);_.q([_.R(),_.N("design:type",Object)],JP.prototype,"hasSecondaryContent",void 0);_.q([_.R({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.N("design:type",Object)],JP.prototype,"hasSeparator",void 0);_.q([_.R({selector:_.C3,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.N("design:type",String)],JP.prototype,"transferState",void 0);
_.q([_.R({selector:_.HBD,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.N("design:type",Object)],JP.prototype,"isVideoDeletedByUser",void 0);_.q([_.R(),_.N("design:type",Object)],JP.prototype,"isHidden",void 0);_.q([_.R({selector:_.LPL,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.N("design:type",Object)],JP.prototype,"offlineabilityState",void 0);_.q([_.cD("#primary-entry"),_.N("design:type",Object)],JP.prototype,"primaryEntry",void 0);
_.q([_.oe("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],JP.prototype,"onFocus",null);_.q([_.Z6("transferState","isVideoDeletedByUser"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],JP.prototype,"onTransferStateChange",null);_.q([_.Z6("offlineabilityState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],JP.prototype,"showHideButton",null);
_.w(JP,"ytd-menu-service-item-download-renderer",function(){if(RJT===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);RJT=x}x=RJT;return x},{mode:1});var dz6;var fK=function(){var x=_.n.apply(this,arguments)||this;x.useIcons=!1;x.systemIcons=_.B("kevlar_system_icons");x.useListItemStyles=_.B("web_list_item_style_for_menu_items");return x};
_.m(fK,_.n);_.a=fK.prototype;_.a.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.a.onFocus=function(){var x;(x=_.kA(this.hostElement).querySelector("tp-yt-paper-item"))==null||x.focus()};
_.a.onTap=function(){_.Gl(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var x=this.data.serviceEndpoint,G=this.data.command;if(x){var D,K=(D=this.data)==null?void 0:D.trackingParams;D=!!_.Y(x,_.HiE);K&&D&&_.wK().dispatch(_.EO({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:K}}));this.ytComponentBehavior.resolveCommand(x)||_.Eo().resolve(_.hm).resolveCommand(x,{form:{element:this.hostElement}})}G&&(this.ytComponentBehavior.resolveCommand(G)||_.zl(this.hostElement,
[G],this.hostElement))};
_.a.computeIcon=function(x){return x&&x.iconType?_.aP(x.iconType):""};
_.a.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.a.computeHasSeparator=function(){var x;return!((x=this.data)==null||!x.hasSeparator)};
_.a.forceUpdateStylesOnLegacyBrowsers=function(){_.B("kevlar_legacy_browsers")&&_.K7(this.hostElement)};
_.a.computeIsSelected=function(){var x;return!((x=this.data)==null||!x.isSelected)};
fK.prototype.forceUpdateStylesOnLegacyBrowsers=fK.prototype.forceUpdateStylesOnLegacyBrowsers;fK.prototype.onTap=fK.prototype.onTap;fK.prototype.onFocus=fK.prototype.onFocus;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],fK.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.i9),_.N("design:type",Object)],fK.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],fK.prototype,"ytComponentBehavior",void 0);
_.q([_.I(_.zwZ.YtConditionalRendererBehavior),_.N("design:type",Object)],fK.prototype,"ytConditionalRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],fK.prototype,"data",void 0);_.q([_.R({computed:"computeIcon(data.icon)",value:""}),_.N("design:type",String)],fK.prototype,"icon",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],fK.prototype,"useIcons",void 0);
_.q([_.R({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.N("design:type",Boolean)],fK.prototype,"hasSeparator",void 0);_.q([_.R({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.N("design:type",Boolean)],fK.prototype,"isSelected",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],fK.prototype,"systemIcons",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],fK.prototype,"useListItemStyles",void 0);
_.q([_.oe("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fK.prototype,"onFocus",null);_.q([_.oe("tap"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],fK.prototype,"onTap",null);_.q([_.yf("useIcons","hasSeparator"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fK.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.w(fK,"ytd-menu-service-item-renderer",function(){if(dz6===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);dz6=x}x=dz6;return x},{mode:2});var wPc;var tP=function(){return _.n.apply(this,arguments)||this};
_.m(tP,_.n);_.a=tP.prototype;_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.onDataChanged=function(){var x=this;_.w1(this,function(){x.postbox.openDialog();x.focus();_.h$(x.hostElement,"yt-refit")})};
_.a.focus=function(){this.postbox.focus()};
_.a.closePopup=function(){_.xO(this.hostElement,"yt-close-popup-action")};
_.a.onYtCommentboxDismiss=function(){this.closePopup()};
tP.prototype.onYtCommentboxDismiss=tP.prototype.onYtCommentboxDismiss;tP.prototype.onDataChanged=tP.prototype.onDataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],tP.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],tP.prototype,"data",void 0);_.q([_.R({value:function(){return _.Wg("SBOX_INAPPROPRIATE_CANCEL")}}),
_.N("design:type",String)],tP.prototype,"closeButtonAriaLabel",void 0);_.q([_.cD("#postbox"),_.N("design:type",Object)],tP.prototype,"postbox",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tP.prototype,"onDataChanged",null);_.q([_.oe("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tP.prototype,"onYtCommentboxDismiss",null);
tP=_.q([_.d({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],tP);
_.w(tP,"ytd-backstage-post-dialog-popup-renderer",function(){if(wPc!==void 0)return wPc;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return wPc=x},{mode:1});var qek;var kx=function(){return _.n.apply(this,arguments)||this};
_.m(kx,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],kx.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],kx.prototype,"data",void 0);kx=_.q([_.d({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],kx);
_.w(kx,"ytd-sender-id-section-renderer",function(){if(qek!==void 0)return qek;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);
return qek=x},{mode:1});var N2f;var vtT;var JGC;var PJ=function(){return _.n.apply(this,arguments)||this};
_.m(PJ,_.n);PJ.prototype.closePopup=function(){_.xO(this.hostElement,"yt-close-popup-action")};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],PJ.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],PJ.prototype,"data",void 0);PJ=_.q([_.HD({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],PJ);
_.w(PJ,"yt-community-post-section-renderer",function(){if(JGC===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;vtT===void 0&&(vtT=document.createElement("template"));var K=vtT;D.call(G,K.content.cloneNode(!0),x.content.firstChild);JGC=x}x=JGC;return x},{mode:2});var fH8;var t$8;var kPb;var PkT;var Etj;var hJf;var ES=function(){return _.n.apply(this,arguments)||this};
_.m(ES,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],ES.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],ES.prototype,"data",void 0);ES=_.q([_.HD({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],ES);
_.w(ES,"yt-share-start-time-with-context-renderer",function(){if(hJf===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;Etj===void 0&&(Etj=document.createElement("template"));var K=Etj;D.call(G,K.content.cloneNode(!0),x.content.firstChild);hJf=x}x=hJf;return x},{mode:2});var hP=function(){return _.n.apply(this,arguments)||this};
_.m(hP,_.n);hP.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],hP.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],hP.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],hP.prototype,"data",void 0);hP=_.q([_.HD({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],hP);
_.w(hP,"yt-share-panel-title-v15-renderer",function(){if(PkT===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;kPb===void 0&&(kPb=document.createElement("template"));var K=kPb;D.call(G,K.content.cloneNode(!0),x.content.firstChild);PkT=x}x=PkT;return x},{mode:2});var xE=function(){return _.n.apply(this,arguments)||this};
_.m(xE,_.n);xE.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"}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],xE.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],xE.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],xE.prototype,"data",void 0);xE=_.q([_.HD({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],xE);
_.w(xE,"yt-share-panel-header-renderer",function(){if(t$8===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;fH8===void 0&&(fH8=document.createElement("template"));var K=fH8;D.call(G,K.content.cloneNode(!0),x.content.firstChild);t$8=x}x=t$8;return x},{mode:2});var xCC;var GSc;var GT=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-open-popup-action":"onOpen"};return x};
_.m(GT,_.n);_.a=GT.prototype;_.a.attached=function(){this.onOpen()};
_.a.updateTimeSecs=function(x){this.currentTimeSecs=x};
_.a.computeTimeString=function(x){x=x.toString();var G=Math.floor(Number(x)/3600),D=Math.floor(Number(x)%3600%60);return(G>0?G+":":"")+_.Je(Math.floor(Number(x)%3600/60),G>0?2:1)+":"+_.Je(D,2)};
_.a.computeTimeStringA11y=function(x){x=_.FPL({seconds:x});var G=x.hours===void 0?0:x.hours,D=x.minutes===void 0?0:x.minutes,K=x.seconds===void 0?0:x.seconds;x=[];if(G>0){var z=xUj().format({hours:G});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.XX)||G>9999)z=z.replace(G.toString(),_.CzL(G)),_.XX==="km"&&(z=z.replace(".",","));x.push(z)}D>0&&x.push(xUj().format({minutes:D}));K>0&&x.push(xUj().format({seconds:K}));G="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");D=_.XX==
"am"?"{0}\u1363 ":_.XX=="fa"?"{0}\u060c\u200f ":_.XX=="my"?"{0} - ":_.XX=="ne"?"{0},":_.XX=="th"?"{0} ":_.XX=="ur"?"{0}\u060c ":_.XX=="ar"||_.XX=="ar-XB"?"{0} \u0648":_.XX=="ja"||_.XX=="zh-CN"||_.XX=="zh-HK"||_.XX=="zh-TW"?"{0}\u3001":"{0}, ";K=_.XX=="am"?"\u1363 ":_.XX=="fa"?"\u060c\u200f ":_.XX=="my"?" - ":_.XX=="th"?" ":_.XX=="ur"?"\u060c ":_.XX=="ar"||_.XX=="ar-XB"?" \u0648":_.XX=="ja"||_.XX=="zh-CN"||_.XX=="zh-HK"||_.XX=="zh-TW"?"\u3001":", ";z=_.XX=="am"?" \u12a5\u1293 {0}":_.XX=="as"?" \u0986\u09f0\u09c1 {0}":
_.XX=="az"?" v\u0259 {0}":_.XX=="bn"?" \u098f\u09ac\u0982 {0}":_.XX=="cs"?" a\u00a0{0}":_.XX=="de"?" und {0}":_.XX=="el"?" \u03ba\u03b1\u03b9 {0}":_.XX=="eu"?" eta {0}":_.XX=="fa"?"\u060c \u0648 {0}":_.XX=="fil"?", at {0}":_.XX=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.XX=="hi"?", \u0914\u0930 {0}":_.XX=="hu"?" \u00e9s {0}":_.XX=="hy"?" \u0587 {0}":_.XX=="id"?", dan {0}":_.XX=="iw"?" \u05d5-{0}":_.XX=="ja"?"\u3001{0}":_.XX=="ka"?" \u10d3\u10d0 {0}":_.XX=="km"?" \u1793\u17b7\u1784 {0}":_.XX=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.XX=="ko"?" \ubc0f {0}":_.XX=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.XX=="lt"?" ir {0}":_.XX=="lv"?" un {0}":_.XX=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.XX=="mr"?" \u0906\u0923\u093f {0}":_.XX=="ms"?" dan {0}":_.XX=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.XX=="ne"?" \u0930 {0}":_.XX=="or"?", \u0b13 {0}":_.XX=="pa"?" \u0a05\u0a24\u0a47 {0}":_.XX=="ro"?" \u0219i {0}":_.XX=="si"?", \u0dc3\u0dc4 {0}":_.XX=="sk"?" a {0}":_.XX=="sl"?" in {0}":_.XX=="sq"?" dhe {0}":_.XX=="sv"?" och {0}":
_.XX=="sw"?" na {0}":_.XX=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.XX=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.XX=="th"?" \u0e41\u0e25\u0e30{0}":_.XX=="tr"?" ve {0}":_.XX=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.XX=="uz"?" va {0}":_.XX=="vi"?" v\u00e0 {0}":_.XX=="zh-HK"?"\u53ca{0}":_.XX=="zu"?", ne-{0}":_.XX=="af"||_.XX=="nl"?" en {0}":_.XX=="ar"||_.XX=="ar-XB"?" \u0648{0}":_.XX=="be"||_.XX=="uk"?" \u0456 {0}":_.XX=="en-GB"||_.XX=="en-IN"?" and {0}":_.XX=="en"||_.XX=="en-XA"?
", and {0}":_.XX=="et"||_.XX=="fi"?" ja {0}":_.XX=="fr"||_.XX=="fr-CA"?" et {0}":_.XX=="zh-CN"||_.XX=="zh-TW"?"\u548c{0}":_.XX=="da"||_.XX=="is"||_.XX=="no"?" og {0}":_.XX=="es"||_.XX=="es-419"||_.XX=="es-US"?" y {0}":_.XX=="kk"||_.XX=="lo"||_.XX=="mn"?", {0}":_.XX=="bg"||_.XX=="mk"||_.XX=="ru"||_.XX=="sr"?" \u0438 {0}":_.XX=="gl"||_.XX=="it"||_.XX=="pt-BR"||_.XX=="pt-PT"?" e {0}":" i {0}";var y=_.XX=="am"?"{0} \u12a5\u1293 {1}":_.XX=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.XX=="az"?"{0} v\u0259 {1}":
_.XX=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.XX=="de"?"{0} und {1}":_.XX=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.XX=="eu"?"{0} eta {1}":_.XX=="fa"?"{0} \u0648 {1}":_.XX=="fil"?"{0} at {1}":_.XX=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.XX=="hi"?"{0} \u0914\u0930 {1}":_.XX=="hu"?"{0} \u00e9s {1}":_.XX=="hy"?"{0} \u0587 {1}":_.XX=="iw"?"{0} \u05d5-{1}":_.XX=="ja"?"{0}\u3001{1}":_.XX=="ka"?"{0} \u10d3\u10d0 {1}":_.XX=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.XX=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.XX=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.XX=="ko"?"{0} \ubc0f {1}":_.XX=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.XX=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.XX=="lt"?"{0} ir {1}":_.XX=="lv"?"{0} un {1}":_.XX=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.XX=="mn"?"{0}, {1}":_.XX=="mr"?"{0} \u0906\u0923\u093f {1}":_.XX=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.XX=="ne"?"{0} \u0930 {1}":_.XX=="or"?"{0} \u0b13 {1}":_.XX=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.XX=="ro"?"{0} \u0219i {1}":_.XX==
"si"?"{0} \u0dc3\u0dc4 {1}":_.XX=="sl"?"{0} in {1}":_.XX=="sq"?"{0} dhe {1}":_.XX=="sv"?"{0} och {1}":_.XX=="sw"?"{0} na {1}":_.XX=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.XX=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.XX=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.XX=="tr"?"{0} ve {1}":_.XX=="ur"?"{0} \u0627\u0648\u0631 {1}":_.XX=="uz"?"{0} va {1}":_.XX=="vi"?"{0} v\u00e0 {1}":_.XX=="zh-HK"?"{0}\u53ca{1}":_.XX=="zu"?"{0} ne-{1}":_.XX=="af"||_.XX=="nl"?"{0} en {1}":_.XX=="ar"||_.XX==
"ar-XB"?"{0} \u0648{1}":_.XX=="be"||_.XX=="uk"?"{0} \u0456 {1}":_.XX=="cs"||_.XX=="sk"?"{0} a\u00a0{1}":_.XX=="et"||_.XX=="fi"?"{0} ja {1}":_.XX=="fr"||_.XX=="fr-CA"?"{0} et {1}":_.XX=="id"||_.XX=="ms"?"{0} dan {1}":_.XX=="zh-CN"||_.XX=="zh-TW"?"{0}\u548c{1}":_.XX=="da"||_.XX=="is"||_.XX=="no"?"{0} og {1}":_.XX=="es"||_.XX=="es-419"||_.XX=="es-US"?"{0} y {1}":_.XX=="bg"||_.XX=="mk"||_.XX=="ru"||_.XX=="sr"?"{0} \u0438 {1}":_.XX=="en"||_.XX=="en-GB"||_.XX=="en-IN"||_.XX=="en-XA"?"{0} and {1}":_.XX==
"gl"||_.XX=="it"||_.XX=="pt-BR"||_.XX=="pt-PT"?"{0} e {1}":"{0} i {1}";_.XX==="sq"?(z=z.replace("dhe","e"),y=y.replace("dhe","e")):_.XX==="th"?(K=K.replace("{0}"," {0}"),y=y.replace("{0}","{0} "),y=y.replace("{1}"," {1}")):_.XX==="ne"?K=",":_.XX==="zh-CN"?K="":G.includes(_.XX)&&(K=" ");return x.length<2?x.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(_.XX)?x.length===2?
y.replace("{0}",x[0]).replace("{1}",x[1]):D.replace("{0}",x[0])+x.slice(1,-1).join(K)+z.replace("{0}",x[x.length-1]):x.join(K)};
_.a.getTimeParam=function(){return IuT(this.timeString)};
_.a.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var x={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},G;_.DO(_.en(),(G=this.data)==null?void 0:G.trackingParams,x,7)};
_.a.onChangeStartAtTimestamp=function(){for(var x=this.startAtTimestamp.value.split(":"),G=0,D=1,K=x.length-1;K>=0;K--)G+=Number(x[K])*D,D*=60;this.updateTimeSecs(G);this.setTimestamp()};
_.a.onOpen=function(){var x=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var G=_.Ns();G?G.getPlayerPromise().then(function(D){D=D.getCurrentTime();x.updateTimeSecs(D)}):EKT()&&this.updateTimeSecs(EKT())};
_.a.setTimestamp=function(){var x=Math.floor(this.currentTimeSecs);_.xO(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!x,timestamp:x||""}])};
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],GT.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],GT.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],GT.prototype,"data",void 0);_.q([_.R({value:!1,notify:!0}),_.N("design:type",Boolean)],GT.prototype,"isStartAtChecked",void 0);_.q([_.R(),_.N("design:type",Number)],GT.prototype,"currentTimeSecs",void 0);
_.q([_.R({computed:"computeTimeString(currentTimeSecs)"}),_.N("design:type",String)],GT.prototype,"timeString",void 0);_.q([_.R({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.N("design:type",String)],GT.prototype,"timeStringA11y",void 0);_.q([_.cD("#start-at-timestamp"),_.N("design:type",Object)],GT.prototype,"startAtTimestamp",void 0);GT=_.q([_.HD({is:"yt-start-at-renderer",disableElementRegistration:!0})],GT);
_.w(GT,"yt-start-at-renderer",function(){if(GSc===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;xCC===void 0&&(xCC=document.createElement("template"));var K=xCC;D.call(G,K.content.cloneNode(!0),x.content.firstChild);GSc=x}x=GSc;return x},{mode:2});var DCO;var KeT;var zlb=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"]]),aNY=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"]]),obC=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var yX4={};yX4.YtBindingExpressionsBehavior={identity:_.gn,msg:function(x,G){G=G===void 0?{}:G;return _.Wg(x,G,x)},
msgPlural:function(x,G){return _.e7(x,G)},
getMusicIconFromType:function(x){if(_.B("music_web_enable_icon_wil"))x=_.aP(x);else if(aNY.has(x))x="yt-sys-icons:"+aNY.get(x);else{var G=zlb.get(x)||_.aP(x).split(":")[1];G=_.LBf(G);var D;x=((D=obC.get(x))!=null?D:"yt-sys-icons:")+G}return x}};var lNC;var cXT;var TVO;var Wec=document.head,elj=Wec.appendChild,Zhf;if(TVO===void 0){var MMb=document.createElement("template");_.F(MMb,'\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>');TVO=MMb}Zhf=TVO;elj.call(Wec,Zhf.content);var Dt=function(){var x=_.n.apply(this,arguments)||this;x.screenLayer=7;return x};
_.m(Dt,_.n);Dt.prototype.getScreenLayer=function(){return this.screenLayer};
Dt.prototype.onTap=function(x){x&&x.detail&&(x.detail.x||x.detail.y)&&_.kA(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.KW(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(x=this.getScreenLayer(),_.h$(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:x}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.Nq.Object.defineProperties(Dt.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()}}});
Dt.prototype.onTap=Dt.prototype.onTap;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Dt.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Dt.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Dt.prototype,"data",void 0);_.q([_.U("data.title"),_.N("design:type",Object),_.N("design:paramtypes",[])],Dt.prototype,"title",null);
_.q([_.U("data.serviceName"),_.N("design:type",String),_.N("design:paramtypes",[])],Dt.prototype,"icon",null);_.q([_.oe("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Dt.prototype,"onTap",null);Dt=_.q([_.HD({is:"yt-share-target-renderer",disableElementRegistration:!0})],Dt);
_.w(Dt,"yt-share-target-renderer",function(){if(cXT===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;lNC===void 0&&(lNC=document.createElement("template"));var K=lNC;D.call(G,K.content.cloneNode(!0),x.content.firstChild);cXT=x}x=cXT;return x},{mode:2});var QJc;var pxk;var Kb=function(){var x=_.n.apply(this,arguments)||this;x.SHARE_TARGET_WIDTH=70;x.SHARE_TARGET_MARGIN_RIGHT=8;x.PAGE_SCROLL_SPEED=9;x.actionMap={"yt-share-panel-reset-action":"onReset_"};return x};
_.m(Kb,_.n);_.a=Kb.prototype;_.a.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.a.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.kA(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.kA(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.a.onReset_=function(){if(_.kA(this.hostElement).querySelector("#list")){var x=_.kA(this.hostElement).querySelector("#list");var G=_.kA(this.hostElement).querySelector("#list");var D=G.offsetLeft,K=G.offsetParent;K||_.AQk(G)!="fixed"||(K=_.C2(G).documentElement);if(K){if(_.hR&&!_.GK(58)){var z=_.dLk(K);D+=z.left}else Number(_.TaO)>=8&&!(Number(_.TaO)>=9)&&(z=_.dLk(K),D-=z.left);G=_.gCk(K)?K.clientWidth-(D+G.offsetWidth):D}else G=D;PDk(x,G);this.updateScrollButtons_()}};
_.a.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.a.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.a.onScrollWheel_=function(x){x.stopPropagation();x.preventDefault();var G=ka6(_.kA(this.hostElement).querySelector("#list"));x=Math.abs(x.deltaX)>Math.abs(x.deltaY)?x.deltaX:x.deltaY;PDk(_.kA(this.hostElement).querySelector("#list"),G+x);this.updateScrollButtons_()};
_.a.smoothScrollByOnePage_=function(x){var G=_.kA(this.hostElement).querySelector("#list"),D=(Math.floor(G.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,K=ka6(G),z=D*(x?1:-1),y=this.PAGE_SCROLL_SPEED,c=this.updateScrollButtons_.bind(this),W=0,e;(function p(){W+=y;e=W/D*2;PDk(G,K+z*(e<1?e*e:-e*e+4*e-2));W<D?window.requestAnimationFrame(p):c()})()};
_.a.updateScrollButtons_=function(){var x=ka6(_.kA(this.hostElement).querySelector("#list")),G=_.kA(this.hostElement).querySelector("#list").scrollWidth-_.kA(this.hostElement).querySelector("#list").clientWidth;_.kA(this.hostElement).querySelector("#scroll-button-back").hidden=x<=0;_.kA(this.hostElement).querySelector("#scroll-button-forward").hidden=x>=G};
Kb.prototype.onScrollWheel_=Kb.prototype.onScrollWheel_;Kb.prototype.onDataChanged_=Kb.prototype.onDataChanged_;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Kb.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],Kb.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(yX4.YtBindingExpressionsBehavior),_.N("design:type",Object)],Kb.prototype,"ytBindingExpressionsBehavior",void 0);
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Kb.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Kb.prototype,"data",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kb.prototype,"onDataChanged_",null);_.q([_.oe("wheel"),_.N("design:type",Function),_.N("design:paramtypes",[WheelEvent]),_.N("design:returntype")],Kb.prototype,"onScrollWheel_",null);
Kb=_.q([_.HD({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],Kb);
_.w(Kb,"yt-third-party-share-target-section-renderer",function(){if(pxk===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;QJc===void 0&&(QJc=document.createElement("template"));var K=QJc;D.call(G,K.content.cloneNode(!0),x.content.firstChild);pxk=x}x=pxk;return x},{mode:2});var zT=function(){return _.n.apply(this,arguments)||this};
_.m(zT,_.n);zT.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"}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],zT.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],zT.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],zT.prototype,"data",void 0);zT=_.q([_.HD({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],zT);
_.w(zT,"yt-third-party-network-section-renderer",function(){if(KeT===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;DCO===void 0&&(DCO=document.createElement("template"));var K=DCO;D.call(G,K.content.cloneNode(!0),x.content.firstChild);KeT=x}x=KeT;return x},{mode:2});_.tn(_.Nv(function(x){return _.M("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.M("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.M(_.bA,{data:function(){return x.data().firstPartyItems}},{listItemViewModel:_.rJ})))},"og"),"first-party-network-section-view-model",{props:{data:_.ik}});var VMC=_.gv(["data:image/svg+xml;charset=UTF-8;base64,",""]),at=function(){var x=_.n.apply(this,arguments)||this;x.screenLayer=7;x.qrCodeEnabled=_.B("web_enable_sharing_qr_code");x.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return x};
_.m(at,_.n);_.a=at.prototype;_.a.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"}}}};
_.a.attached=function(){this.JSC$17831_scroller&&(this.JSC$17831_scroller.dialogElement=this.hostElement.parentNode,this.JSC$17831_scroller.attached&&typeof this.JSC$17831_scroller.attached==="function"&&this.JSC$17831_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.a.onDataChanged=function(){var x=this,G;(G=this.data)!=null&&G.contents&&(this.hostElement.setAttribute("links-only","true"),_.Ga(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.w1(this,function(){_.h$(x.hostElement,"yt-refit");x.focusSharePanelHeader()}))};
_.a.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.a.handleSetTimestamp=function(x){var G=this.shortUrl();x.isSet&&(G=_.Ox(G,"t",x.timestamp));this.maybeRenderQrCode(G)};
_.a.shortUrl=function(){var x,G=(x=this.data)==null?void 0:x.contents;if(G)for(x=0;x<G.length;x++){var D=void 0,K=void 0;if((D=G[x])==null?0:(K=D.thirdPartyNetworkSection)==null?0:K.copyLinkContainer){var z=K=D=void 0;return(z=_.Y((D=G[x])==null?void 0:(K=D.thirdPartyNetworkSection)==null?void 0:K.copyLinkContainer,hri))==null?void 0:z.shortUrl}}};
_.a.maybeRenderQrCode=function(x){var G=this,D,K,z,y,c,W,e,Q,p;return _.T(function(V){if(V.nextAddress==1){D=_.kA(G.hostElement).querySelector("#qr-code");if(!G.qrCodeEnabled||!x)return D&&(D.style.display="none"),V.return();K=_.juE(_.Eo().resolve(_.oP),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});z=document.createElement("div");return typeof K==="function"?(K(z),V.jumpTo(2)):_.Z(V,K,3)}V.nextAddress!=2&&(y=V.yieldResult,y(z));e=(c=z)==null?void 0:(W=c.firstChild)==null?void 0:W.firstChild;
Q=document.createElement("img");p=_.s2(VMC,btoa(e.outerHTML));Q.onload=function(){var L={canvas:D,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:Q},r=new CVY;Uic(r,x);ReO(r,!1,S98(r));var H=r.modules,O=Object.assign({},XA4,L);H=structuredClone(H);L=H.length;var A,g=(A=O.canvas)!=null?A:document.createElement("canvas");A=O.cellSize;r=O.logo;var u,f=(u=O.logoSize)!=null?u:Math.floor(L/4);L%2!==f%2&&f++;var v=O.logoPadding,P=O.backgroundColor;u=L*A;var k=
O.width,cL=0;k&&(cL=O.padding,cL=Math.ceil(cL*u/(k-cL*2)),g.style.width=k+"px",g.style.height=k+"px");g.width!==u+cL*2&&(g.width=u+cL*2);g.height!==u+cL*2&&(g.height=u+cL*2);u=g.getContext("2d");O.autoClear&&u.clearRect(0,0,g.width,g.height);u.fillStyle=P;u.beginPath();u.roundRect(0,0,g.width,g.height,O.borderRadius);u.fill();u.save();u.translate(cL,cL);if(r)for(g=Math.floor(L-f)/2-v,v=Math.floor(L+f)/2+v,P=g;P<v;P++)for(k=g;k<v;k++)H[P][k]=!1;for(g=0;g<L;g++)for(v=0;v<L;v++)(g<7&&v<7||g<7&&v>=L-
7||g>=L-7&&v<7)&&(H[g][v]=!1);var bO;g=(bO=O.markerColor)!=null?bO:O.color;iET(u,0,0,A,g);iET(u,A*(L-7),0,A,g);iET(u,0,A*(L-7),A,g);switch(O.cellStyle){case 0:bO=H;H=bO.length;g=O.cellSize;u.beginPath();for(v=0;v<H;v++)for(P=0;P<H;P++)bO[v][P]&&u.rect(v*g,P*g,g,g);u.fillStyle=O.color;u.fill();break;case 1:bO=H;H=bO.length;g=O.cellSize;v=g*O.relativeCircleSize;u.fillStyle=O.color;u.beginPath();for(O=0;O<H;O++)for(P=0;P<H;P++)bO[O][P]&&(u.beginPath(),u.ellipse((O+.5)*g,(P+.5)*g,v/2,v/2,0,0,2*Math.PI),
u.fill());u.fill();break;case 2:bO=H;H=bO.length;g=O.cellSize;u.fillStyle=O.color;O=[[1,1],[-1,1],[-1,-1],[1,-1]];u.beginPath();for(v=0;v<H;v++)for(P=0;P<H;P++)if(bO[v][P])u.roundRect(v*g,P*g,g,g,g/2),v+1<H&&bO[v+1][P]&&u.rect(v*g+g/2,P*g,g,g),P+1<H&&bO[v][P+1]&&u.rect(v*g,P*g+g/2,g,g);else{k=v*g+g/2;cL=P*g+g/2;for(var mE=0;mE<4;mE++){var jf=_.l(O[mE]),$C=jf.next().value;jf=jf.next().value;v+$C>=0&&v+$C<H&&P+jf>=0&&P+jf<H&&bO[v+$C][P]&&bO[v][P+jf]&&bO[v+$C][P+jf]&&($C=mE*Math.PI/2,jf=g/2,u.moveTo(k+
jf*Math.cos($C),cL+jf*Math.sin($C)),u.arc(k,cL,g/2,$C,$C+Math.PI/2,!1),u.lineTo(k+jf*(Math.cos($C)-Math.sin($C)),cL+jf*(Math.cos($C)+Math.sin($C))),u.lineTo(k+jf*Math.cos($C),cL+jf*Math.sin($C)))}}u.fill()}r&&u.drawImage(r,(L-f)*A/2,(L-f)*A/2,f*A,f*A);u.restore();D.style.removeProperty("display")};
Q.src=_.ZB(p);_.c5(V)})};
_.a.hasCommunityPostRenderer=function(){var x,G,D,K;return!!((x=this.data)==null?0:(G=x.header)==null?0:(D=G.sharePanelHeaderRenderer)==null?0:(K=D.communityPost)==null?0:K.communityPostSectionRenderer)};
_.a.onTapClose=function(){_.xO(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.a.getScreenLayer=function(){return this.screenLayer};
_.a.logSharePanelPage=function(){if(!_.B("enable_share_panel_navigation_logging_fix_on_web")){var x;if((x=this.data)!=null&&x.trackingParams){x=this.data.trackingParams;var G=this.parentClickTrackingParams;G=G?_.V2(G):void 0;var D=_.en();_.EV(D,21760,G,{layer:7,parentLayer:0});D.graftServerVe(x,void 0,7);_.wK().dispatch(_.EO({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
at.prototype.onDataChanged=at.prototype.onDataChanged;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],at.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],at.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],at.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],at.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],at.prototype,"data",void 0);_.q([_.R({value:_.Wg("SBOX_INAPPROPRIATE_CANCEL")}),_.N("design:type",String)],at.prototype,"closeButtonAriaLabel",void 0);_.q([_.cD("yt-share-panel-header-renderer"),_.N("design:type",HTMLElement)],at.prototype,"header",void 0);_.q([_.R({selector:function(x){return x.share.parentClickTrackingParams}}),
_.N("design:type",String)],at.prototype,"parentClickTrackingParams",void 0);_.q([_.R(),_.N("design:type",Object)],at.prototype,"qrCodeEnabled",void 0);_.q([_.cD("#scroller"),_.N("design:type",Object)],at.prototype,"JSC$17831_scroller",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],at.prototype,"onDataChanged",null);at=_.q([_.d({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],at);
_.w(at,"ytd-unified-share-panel-renderer",function(){if(N2f!==void 0)return N2f;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return N2f=x},{mode:1});var bhc;var ot=function(){var x=_.n.apply(this,arguments)||this;x.modernModal=_.B("kevlar_sign_in_modal_modernization");return x};
_.m(ot,_.n);ot.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
ot.prototype.computeShouldHideOldButtons=function(){var x;return!((x=this.data)==null?0:x.button)};
_.Nq.Object.defineProperties(ot.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var x,G;if(this.modernModal&&((x=this.data)==null?0:(G=x.button)==null?0:G.buttonRenderer))return Object.assign({},this.data.button.buttonRenderer,{style:"STYLE_MONO_FILLED"});var D,K;return(D=this.data)==null?void 0:(K=D.button)==null?void 0:K.buttonRenderer}}});
_.q([_.R(),_.N("design:type",Object)],ot.prototype,"data",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],ot.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.Tg.YtEventForwardingBehavior),_.N("design:type",Object)],ot.prototype,"ytEventForwardingBehavior",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],ot.prototype,"modernModal",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],ot.prototype,"buttonRendererData",null);
ot=_.q([_.d({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],ot);
_.w(ot,"ytd-modal-with-title-and-button-renderer",function(){if(bhc!==void 0)return bhc;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return bhc=x},{mode:1});var Lex;var yO=function(){return _.n.apply(this,arguments)||this};
_.m(yO,_.n);yO.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Xt("page-changed",this.page))};
yO.prototype.pageChangedForBinding=yO.prototype.pageChangedForBinding;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],yO.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],yO.prototype,"data",void 0);_.q([_.R(),_.N("design:type",String)],yO.prototype,"page",void 0);_.q([_.yf("page"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yO.prototype,"pageChangedForBinding",null);
yO=_.q([_.d({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],yO);
_.w(yO,"ytd-account-item-section-header-renderer",function(){if(Lex!==void 0)return Lex;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Lex=x},{mode:1});var BVx;var lW=function(){return _.n.apply(this,arguments)||this};
_.m(lW,_.n);lW.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"}}}};
lW.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],lW.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],lW.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.Oh),_.N("design:type",Object)],lW.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],lW.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!1}),_.N("design:type",Function)],lW.prototype,"onAccountItemTap",void 0);
lW=_.q([_.d({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],lW);
_.w(lW,"ytd-account-item-section-renderer",function(){if(BVx!==void 0)return BVx;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return BVx=x},{mode:1});var rXT;var sJO;var c3=function(){return _.n.apply(this,arguments)||this};
_.m(c3,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],c3.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],c3.prototype,"data",void 0);c3=_.q([_.d({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],c3);
_.w(c3,"ytd-accounts-dialog-header-renderer",function(){if(sJO!==void 0)return sJO;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return sJO=x},{mode:1});var YCc;var TT=function(){return _.n.apply(this,arguments)||this};
_.m(TT,_.n);TT.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],TT.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],TT.prototype,"data",void 0);TT=_.q([_.d({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],TT);
_.w(TT,"ytd-google-account-header-renderer",function(){if(YCc!==void 0)return YCc;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return YCc=x},{mode:1});var W3=function(){return _.n.apply(this,arguments)||this};
_.m(W3,_.n);W3.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"}}}};
W3.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Xt("page-changed",this.page))};
W3.prototype.pageChangedForBinding=W3.prototype.pageChangedForBinding;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],W3.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],W3.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],W3.prototype,"data",void 0);_.q([_.R(),_.N("design:type",String)],W3.prototype,"page",void 0);
_.q([_.yf("page"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],W3.prototype,"pageChangedForBinding",null);W3=_.q([_.d({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],W3);
_.x$()(W3,"ytd-account-section-list-renderer",function(){if(rXT===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);rXT=x}x=rXT;return x},{allowedProps:["data"],
mode:1});var mCk;var ek=function(){var x=_.n.apply(this,arguments)||this;x.enableHandlesAccountMenuSwitcher=_.B("enable_handles_account_menu_switcher");return x};
_.m(ek,_.n);ek.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
ek.prototype.dataChanged=ek.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],ek.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],ek.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],ek.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.q([_.cD("#avatar"),_.N("design:type",Object)],ek.prototype,"avatar",void 0);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ek.prototype,"dataChanged",null);ek=_.q([_.d({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],ek);
_.x$()(ek,"ytd-active-account-header-renderer",function(){if(mCk===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);mCk=x}x=mCk;return x},{allowedProps:["data"],
mode:1});var Hhc;var $C6;var Zt=function(){return _.n.apply(this,arguments)||this};
_.m(Zt,_.n);Zt.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Zt.prototype.onBackTap=function(){_.h$(this.hostElement,"yt-menu-back-tapped")};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Zt.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Zt.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Zt.prototype,"data",void 0);Zt=_.q([_.d({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],Zt);
_.x$()(Zt,"ytd-simple-menu-header-renderer",function(){if($C6===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);$C6=x}x=$C6;return x},{allowedProps:["data"],
mode:2});var FeC;var M4=function(){return _.n.apply(this,arguments)||this};
_.m(M4,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],M4.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],M4.prototype,"data",void 0);M4=_.q([_.d({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],M4);
_.w(M4,"ytd-comment-video-thumbnail-header-renderer",function(){if(FeC!==void 0)return FeC;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return FeC=x},{mode:1});var C9C;var QO=function(){return _.n.apply(this,arguments)||this};
_.m(QO,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],QO.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],QO.prototype,"data",void 0);QO=_.q([_.d({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],QO);
_.w(QO,"ytd-abuse-type-selector-renderer",function(){if(C9C!==void 0)return C9C;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return C9C=x},{mode:1});var INf;var pb=function(){return _.n.apply(this,arguments)||this};
_.m(pb,_.n);pb.prototype.attached=function(){var x=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){x.additionalContextInput.focusTextInput()})};
pb.prototype.handleAdditionalContextChanged=function(){var x=this;_.Ao(this,"ytd-report-channel-additional-context-update",function(){x.ytdReduxBehavior.dispatch(_.EO({type:"ADDITIONAL_CONTEXT_UPDATED",payload:x.additionalContext}))},300)};
pb.prototype.updateAdditionalContextFromBinding=function(x){this.additionalContext=x.detail.value};
pb.prototype.handleAdditionalContextChanged=pb.prototype.handleAdditionalContextChanged;_.q([_.I(_.$l),_.N("design:type",Object)],pb.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",String)],pb.prototype,"additionalContext",void 0);_.q([_.R({selector:function(x){return x.reportChannelAbuse.additionalContext}}),
_.N("design:type",String)],pb.prototype,"additionalContextRedux",void 0);_.q([_.R(),_.N("design:type",Object)],pb.prototype,"data",void 0);_.q([_.cD("yt-text-input-form-field-renderer"),_.N("design:type",Object)],pb.prototype,"additionalContextInput",void 0);_.q([_.yf("additionalContext"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pb.prototype,"handleAdditionalContextChanged",null);
pb=_.q([_.d({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],pb);
_.w(pb,"ytd-report-channel-modal-additional-context-renderer",function(){if(INf!==void 0)return INf;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return INf=x},{mode:1});var jJY;var VO=function(){var x=_.n.apply(this,arguments)||this;x.nextButtonDisabled=null;x.submitEndpoint=null;x.navigationEndpoint=null;x.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return x};
_.m(VO,_.n);_.a=VO.prototype;_.a.computeNextButtonData=function(x,G,D){var K={};G&&(K.navigationEndpoint=G);D&&(K.serviceEndpoint=D);x&&x.buttonRenderer&&_.YS.extend(K,x.buttonRenderer);return K};
_.a.handleReportChannelModalDisableNextButtonAction=function(x){this.setNextButtonIsDisabled(x)};
_.a.handleReportFormEndpointUpdateAction=function(x){this.setNextButtonIsDisabled(!!x.disableSubmitButton);this.resetEndpointData();x.submitEndpoint?this.submitEndpoint=x.submitEndpoint:x.submitNavigationEndpoint&&(this.navigationEndpoint=x.submitNavigationEndpoint)};
_.a.handleSignalActionSubmitForm=function(){var x,G=Object.keys(((x=this.reportChannelAbuseForm)==null?void 0:x.selectedVideoIds)||{}),D;x=((D=this.reportChannelAbuseForm)==null?void 0:D.additionalContext)||"";var K;D=((K=this.reportChannelAbuseForm)==null?void 0:K.impersonatedChannelUrl)||"";var z;if((z=this.data)==null?0:z.submitEndpoint){G={impersonated_channel_url:D,text:x,video_ids:G};var y;_.Eo().resolve(_.hm).resolveCommand((y=this.data)==null?void 0:y.submitEndpoint,{form:Object.assign({},
G,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.a.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.a.onYtServiceRequestError=function(x){this.setNextButtonIsDisabled(!1);_.kL(this.hostElement,x.detail.error.message)};
_.a.setNextButtonIsDisabled=function(x){this.set("data.nextButton.buttonRenderer.isDisabled",x)};
_.a.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
VO.prototype.onYtServiceRequestError=VO.prototype.onYtServiceRequestError;VO.prototype.onYtServiceRequestCompleted=VO.prototype.onYtServiceRequestCompleted;_.q([_.R(),_.N("design:type",Object)],VO.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],VO.prototype,"nextButtonDisabled",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],VO.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],VO.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],VO.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],VO.prototype,"submitEndpoint",void 0);_.q([_.R(),_.N("design:type",Object)],VO.prototype,"navigationEndpoint",void 0);_.q([_.R({selector:function(x){return x.reportChannelAbuse}}),
_.N("design:type",Object)],VO.prototype,"reportChannelAbuseForm",void 0);_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],VO.prototype,"onYtServiceRequestCompleted",null);_.q([_.oe("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],VO.prototype,"onYtServiceRequestError",null);
VO=_.q([_.d({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],VO);
_.w(VO,"ytd-report-channel-modal-footer-renderer",function(){if(jJY!==void 0)return jJY;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return jJY=x},{mode:1});var Ohb;var bW=function(){var x=_.n.apply(this,arguments)||this;x.boundOnTapDismissButton=function(){x.closePopup()};
return x};
_.m(bW,_.n);bW.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
bW.prototype.handleDataChanged=function(){_.vS(this.hostElement)};
bW.prototype.closePopup=function(){_.xO(this.hostElement,"yt-close-popup-action")};
bW.prototype.handleDataChanged=bW.prototype.handleDataChanged;_.q([_.R(),_.N("design:type",Object)],bW.prototype,"boundOnTapDismissButton",void 0);_.q([_.R(),_.N("design:type",Object)],bW.prototype,"data",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],bW.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],bW.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bW.prototype,"handleDataChanged",null);bW=_.q([_.d({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],bW);
_.w(bW,"ytd-report-channel-modal-header-renderer",function(){if(Ohb!==void 0)return Ohb;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Ohb=x},{mode:1});var Xxf;var Lb=function(){var x=_.n.apply(this,arguments)||this;x.autoValidate=!1;x.invalid=!1;x.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return x};
_.m(Lb,_.n);_.a=Lb.prototype;_.a.attached=function(){var x=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){x.channelUrlInput.focusTextInput()})};
_.a.disableNextButton=function(x){_.xO(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[x])};
_.a.handleImpersonatedChannelUrlChanged=function(){var x=this;this.disableNextButton(!0);this.invalid=!1;_.Ao(this,"ytd-report-channel-impersonated-channel-update",function(){var G=x.impersonatedChannelUrl.trim();x.ytdReduxBehavior.dispatch(_.EO({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:G}));var D;((D=x.data)==null?0:D.submitEndpoint)&&G&&_.Eo().resolve(_.hm).resolveCommand(x.data.submitEndpoint,{form:{impersonated_channel_url:G,element:x.hostElement}})},500)};
_.a.handleModifyReportFormCommand=function(x){this.invalid=this.get("modifyReportFormCommand.action",x)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.a.updateInvalidFromBinding=function(x){this.invalid=x.detail.value};
_.a.updateImpersonatedChannelUrlFromBinding=function(x){this.impersonatedChannelUrl=x.detail.value};
Lb.prototype.handleImpersonatedChannelUrlChanged=Lb.prototype.handleImpersonatedChannelUrlChanged;_.q([_.I(_.$l),_.N("design:type",Object)],Lb.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],Lb.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Lb.prototype,"autoValidate",void 0);_.q([_.R(),_.N("design:type",Object)],Lb.prototype,"invalid",void 0);
_.q([_.R(),_.N("design:type",String)],Lb.prototype,"impersonatedChannelUrl",void 0);_.q([_.R({selector:function(x){return x.reportChannelAbuse.impersonatedChannelUrl}}),
_.N("design:type",String)],Lb.prototype,"impersonatedChannelUrlRedux",void 0);_.q([_.R(),_.N("design:type",Object)],Lb.prototype,"data",void 0);_.q([_.cD("#text-input"),_.N("design:type",Object)],Lb.prototype,"channelUrlInput",void 0);_.q([_.yf("impersonatedChannelUrl"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Lb.prototype,"handleImpersonatedChannelUrlChanged",null);
Lb=_.q([_.d({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],Lb);
_.w(Lb,"ytd-report-channel-modal-impersonation-renderer",function(){if(Xxf!==void 0)return Xxf;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Xxf=x},{mode:1});var AXC;var UCf;var B3=function(){return _.n.apply(this,arguments)||this};
_.m(B3,_.n);B3.prototype.onCheckboxToggled=function(x){var G,D,K=(D=_.Y((G=this.data)==null?void 0:G.video,_.CB))==null?void 0:D.videoId;K&&this.ytdReduxBehavior.dispatch(x.target.checked?_.EO({type:"VIDEO_SELECTED",payload:K}):_.EO({type:"VIDEO_UNSELECTED",payload:K}))};
B3.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.Nq.Object.defineProperties(B3.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var x,G=(x=this.data)==null?void 0:x.video;if(!G)return{};var D;x=(D=_.Y(G,_.CB))==null?void 0:D.navigationEndpoint;if(!x)return G;_.Y(x==null?void 0:x.commandMetadata,_.fC)&&(_.Y(x.commandMetadata,_.fC).ignoreNavigation=!0);return G}}});
_.q([_.R({reflectToAttribute:!0,selector:function(x,G){return G in x.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.N("design:type",Boolean)],B3.prototype,"checked",void 0);_.q([_.R(),_.N("design:type",Object)],B3.prototype,"data",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],B3.prototype,"video",null);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],B3.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],B3.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.I(_.$l),_.N("design:type",Object)],B3.prototype,"ytdReduxBehavior",void 0);B3=_.q([_.d({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],B3);
_.w(B3,"ytd-selectable-video-renderer",function(){if(UCf!==void 0)return UCf;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return UCf=x},{mode:1});var rY=function(){var x=_.n.apply(this,arguments)||this;x.monitorScroll=!0;return x};
_.m(rY,_.n);rY.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],rY.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],rY.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],rY.prototype,"data",void 0);rY=_.q([_.d({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],rY);
_.w(rY,"ytd-selectable-video-list-renderer",function(){if(AXC!==void 0)return AXC;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return AXC=x},{mode:1});var Rl6;_.HH("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var s7=function(){return _.n.apply(this,arguments)||this};
_.m(s7,_.n);s7.prototype.onChange=function(x){if(x=_.uo(x).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.B("kevlar_command_handler_migration_killswitch"))_.zl(this.hostElement,x,this.hostElement);else{x=_.l(x);for(var G=x.next();!G.done;G=x.next())this.ytComponentBehavior.resolveCommand(G.value)}};
s7.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
s7.prototype.updateDataToggledFromBinding=function(x){this.set("data.toggled",x.detail.value)};
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],s7.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],s7.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],s7.prototype,"data",void 0);_.q([_.R({computed:"isEnabled(data)"}),_.N("design:type",Boolean)],s7.prototype,"enabled",void 0);s7=_.q([_.d({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],s7);
_.w(s7,"ytd-toggle-item-renderer",function(){if(Rl6!==void 0)return Rl6;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Rl6=x},{mode:1});var SCx;var nbC;var ihT;var YE=function(){var x=_.n.apply(this,arguments)||this;x.setVisible=!1;x.boundOnSubmitButtonClick=function(){x.onSubmitButtonClick()};
x.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return x};
_.m(YE,_.n);YE.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}}}}}};
YE.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
YE.prototype.onSubmitButtonClick=function(){var x;((x=this.data)==null?0:x.submitEndpoint)&&!_.B("enable_ytc_refunds_submit_form_signal_action")&&_.KW(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
YE.prototype.handleSignalActionSubmitForm=function(){var x;((x=this.data)==null?0:x.submitEndpoint)&&_.KW(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.Nq.Object.defineProperties(YE.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.hiddenByDefault)&&!this.setVisible}}});
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],YE.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],YE.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],YE.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],YE.prototype,"setVisible",void 0);_.q([_.R(),_.N("design:type",Object)],YE.prototype,"data",void 0);
_.q([_.R(),_.N("design:type",Object)],YE.prototype,"surveyFeedbackData",void 0);_.q([_.R(),_.N("design:type",Object)],YE.prototype,"boundOnSubmitButtonClick",void 0);_.q([_.R({reflectToAttribute:!0}),_.U("data","setVisible"),_.N("design:type",Object),_.N("design:paramtypes",[])],YE.prototype,"visibilityHidden",null);YE=_.q([_.HD({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],YE);
_.w(YE,"yt-flow-footer-renderer",function(){if(ihT===void 0){var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;nbC===void 0&&(nbC=document.createElement("template"));var K=nbC;D.call(G,K.content.cloneNode(!0),x.content.firstChild);ihT=x}x=ihT;return x},{mode:2});var mX=function(){return _.n.apply(this,arguments)||this};
_.m(mX,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],mX.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],mX.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],mX.prototype,"data",void 0);_.q([_.R({selector:function(x){return x.ypc.surveyFeedbackData}}),
_.N("design:type",Object)],mX.prototype,"surveyFeedbackData",void 0);mX=_.q([_.d({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],mX);
_.w(mX,"ytd-flow-footer-renderer",function(){if(SCx!==void 0)return SCx;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return SCx=x},{mode:_.Ge("kevlar_poly_si_batch_j025")?1:2});var gbx;var uti;var H3=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return x};
_.m(H3,_.n);_.a=H3.prototype;_.a.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.$7("multiPageMenuSectionItems")}}};
_.a.handleHideEnclosingAction_=function(x){if(this.data&&this.data.items)for(var G=0;G<this.data.items.length;G++){var D=this.data.items[G].notificationRenderer;if(D&&D.notificationId==x.hideEnclosingAction.notificationId){this.splice("data.items",G,1);_.xO(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.a.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.Ga(this.hostElement,"hidden",!0)};
_.a.updateMenu_=function(x){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&x&&!x.doNotRefreshInbox){x=this.data.continuations;for(var G=0;G<x.length;G++)if(x[G].invalidationContinuationData){var D=void 0;var K=(D=x[G].invalidationContinuationData)==null?void 0:D.continuation;break}x=_.YS.clone(this.data.continuationUpdateEndpoint||null);x.continuation=K;x.click_tracking_params=this.data.trackingParams;_.KW(this.hostElement,[x])}};
_.a.onServiceRequestCompleted_=function(x,G){if(this.data&&(x=G.actions)){G=0;for(var D=x.length;G<D;G++){var K=_.Y(x[G],_.ARZ);if(!K)break;if((K.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||K.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&K.continuationItems&&this.data.items){var z=this.data.items.length-1;this.data.items[z].continuationItemRenderer&&this.splice.apply(this,["data.items",z,1].concat(K.continuationItems))}}}};
H3.prototype.onServiceRequestCompleted_=H3.prototype.onServiceRequestCompleted_;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],H3.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],H3.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],H3.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],H3.prototype,"data",void 0);
_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.gG]),_.N("design:returntype")],H3.prototype,"onServiceRequestCompleted_",null);H3=_.q([_.HD({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],H3);
_.x$()(H3,"yt-multi-page-menu-section-renderer",function(){if(uti===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;gbx===void 0&&(gbx=document.createElement("template"));var K=gbx;D.call(G,K.content.cloneNode(!0),x.content.firstChild);uti=x}x=uti;return x},{allowedProps:["data"],
mode:2});var dCT;var wxY;var $E=function(){return _.n.apply(this,arguments)||this};
_.m($E,_.n);$E.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.Nq.Object.defineProperties($E.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.progress)==null?0:this.data.progress*100}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],$E.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],$E.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],$E.prototype,"data",void 0);_.q([_.U("data.progress"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],$E.prototype,"showProgressBar",null);
_.q([_.U("data.progress"),_.N("design:type",Number),_.N("design:paramtypes",[])],$E.prototype,"progress",null);$E=_.q([_.HD({is:"yt-flow-header-renderer",disableElementRegistration:!0})],$E);
_.w($E,"yt-flow-header-renderer",function(){if(wxY===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;dCT===void 0&&(dCT=document.createElement("template"));var K=dCT;D.call(G,K.content.cloneNode(!0),x.content.firstChild);wxY=x}x=wxY;return x},{mode:2});var qCb;var NVc;var FN=function(){return _.n.apply(this,arguments)||this};
_.m(FN,_.n);FN.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],FN.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],FN.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],FN.prototype,"data",void 0);FN=_.q([_.HD({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],FN);
_.w(FN,"yt-post-confirmation-flow-step-renderer",function(){if(NVc===void 0){var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;qCb===void 0&&(qCb=document.createElement("template"));var K=qCb;D.call(G,K.content.cloneNode(!0),x.content.firstChild);NVc=x}x=NVc;return x},{mode:2});var vb6;var JXf;var Cb=function(){return _.n.apply(this,arguments)||this};
_.m(Cb,_.n);
Cb.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"}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Cb.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Cb.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Cb.prototype,"data",void 0);Cb=_.q([_.HD({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],Cb);
_.w(Cb,"yt-refund-confirmation-flow-step-renderer",function(){if(JXf===void 0){var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;vb6===void 0&&(vb6=document.createElement("template"));var K=vb6;D.call(G,K.content.cloneNode(!0),x.content.firstChild);JXf=x}x=JXf;return x},{mode:2});_.E9(jZj);_.E9(OC4);var Xyx=_.MF({avatarViewModel:_.Lj});_.E9(A$k);var UpY=_.MF({commentInteractionViewModel:OC4,sharedSubscriptionViewModel:A$k,buttonViewModel:_.Cs});_.E9(Rc6);_.E9(Sfj);_.E9(nmO);_.E9(iCb);_.E9(gmi);var uxT=_.MF({profileIdentityInfoViewModel:_.wC6,profileInfoViewModel:gmi});_.E9(dpj);_.KH(dpj,"yt-profile-card-view-model",{propNames:["data"]});var It=function(){var x=_.n.apply(this,arguments)||this;x.enableFocusFix=_.B("music_web_enable_focus_on_setting_menu_fix")&&_.Uo("IS_MOBILE_WEB",!1);x.covered=!1;x.hideMenu=!1;x.isCommentNotificationOnProfileCard=!1;x.scrolledByTouch=!1;x.disableBackdropFilter=_.B("web_disable_backdrop_filter");x.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return x};
_.m(It,_.n);_.a=It.prototype;
_.a.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"}}}};
_.a.ready=function(){var x=this;this.JSC$17940_containerElement.addEventListener("scroll",function(){x.ytRendererBehavior.markDirty()})};
_.a.attributeChanged=function(x,G){x==="menu-style"&&_.xO(this.hostElement,"yt-multi-page-menu-closed-action",[G])};
_.a.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.ae(this,this.focusOnStampFinished))};
_.a.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.ae(this,this.focusOnStampFinished))};
_.a.reset=function(){this.closeJobId&&(_.Fj.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.a.focusOnStampFinished=function(x){x.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.ae(this,this.focusOnStampFinished)),this.doFocus())};
_.a.doFocus=function(){var x=_.Jnh(this.sectionsElement);x.length&&x[0].focus()};
_.a.computeMenuStyle=function(x){return x?x.toLowerCase().replace(/_/g,"-"):""};
_.a.computeIsCommentNotificationOnProfileCard=function(x){return _.B("enable_profile_cards_on_comments")&&x.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.a.computeHideMenu=function(x,G){return x||!(!G||!G.showLoadingSpinner)};
_.a.onPopupClosed=function(){this.isPopUpOpen=!1;_.xO(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.a.onPopupOpened=function(x,G){this.isPopUpOpen=!0;G.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.h$(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.EO({type:"CHANNEL_REPORT_RESET"})))};
_.a.onYtNavigate=function(x,G){this.shouldCloseOnNavigateEvent(G.endpoint)&&_.xO(this.hostElement,"yt-close-all-popups-action")};
_.a.handleEndpoint=function(x){x=_.Y(x,_.sV);!this.isCommentNotificationOnProfileCard&&x&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$17940_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.a.handleActions=function(x){for(var G=0,D=x.length;G<D;G++){var K=_.Y(x[G],DMb);K&&this.handleGetMultiPageMenuAction(K);(K=_.Y(x[G],_.ARZ))&&this.handleAppendContinuationItemsAction(K)}};
_.a.onServiceRequestSentOrCompleted=function(x,G){x.detail&&x.detail.endpoint&&this.handleEndpoint(x.detail.endpoint);G.actions&&this.handleActions(G.actions)};
_.a.handleGetMultiPageMenuAction=function(x){var G=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.kA(this.submenuElement).appendChild(G);(x=x.menu.multiPageMenuRenderer)&&this.logSubmenu(x);G.data=x;G.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.a.handleAppendContinuationItemsAction=function(x){if(this.data&&x.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&x.continuationItems&&this.data.sections){var G=this.data.sections.length-1;this.data.sections[G].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),G--);if(this.data.sections[G].multiPageMenuNotificationSectionRenderer&&x.continuationItems){x=_.l(x==null?void 0:x.continuationItems);for(var D=x.next();!D.done;D=x.next())if(D=D.value,_.Y(D,CFY)){var K=
void 0,z=void 0,y=void 0,c=void 0,W=void 0;((K=this)==null?0:(z=K.data)==null?0:(y=z.sections)==null?0:(c=y[G])==null?0:(W=c.multiPageMenuNotificationSectionRenderer)==null?0:W.items)&&this.push("data.sections."+G+".multiPageMenuNotificationSectionRenderer.items",D)}else if(_.Y(D,_.BPh)||_.Y(D,_.hj))this.push("data.sections",D),G++}}};
_.a.logSubmenu=function(x){if(!_.B("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var G=this.ytRendererBehavior.getScreenLayer(),D=_.CC(G),K=_.Fx(G);if((x=x.trackingParams)&&D&&K){var z=_.V2(x);_.B("combine_ve_grafts")?_.en().graftServerVe(x,K,G):_.RI(D,K,z)}}};
_.a.emptySubmenuContainer=function(){for(var x=_.kA(this.submenuElement);x.firstChild;)x.removeChild(x.firstChild)};
_.a.onMenuBackTap=function(x){_.h$(this.hostElement,"yt-submenu-closed");x.stopPropagation()};
_.a.onSubmenuClosed=function(x){_.uo(x)!==this.hostElement&&(this.covered=!1,_.h$(this.hostElement,"yt-refit"),x.stopPropagation())};
_.a.onRetrieveLocation=function(x,G){G.hasComments&&(G.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),x.stopPropagation())};
_.a.shouldCloseOnNavigateEvent=function(x){if(!x)return!0;if(_.Y(x,_.biZ)||_.Y(x,_.LR8)||_.Y(x,_.Vu7)||_.Y(x,_.iV))return!1;var G;return((G=_.Y(x==null?void 0:x.commandMetadata,_.fC))==null?0:G.ignoreNavigation)?!1:!0};
_.a.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.a.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.a.refitAfterRender=function(){var x=this;_.w1(this,function(){_.h$(x.hostElement,"yt-refit")})};
It.prototype.refitAfterRender=It.prototype.refitAfterRender;It.prototype.onRetrieveLocation=It.prototype.onRetrieveLocation;It.prototype.onSubmenuClosed=It.prototype.onSubmenuClosed;It.prototype.onMenuBackTap=It.prototype.onMenuBackTap;It.prototype.onServiceRequestSentOrCompleted=It.prototype.onServiceRequestSentOrCompleted;It.prototype.onYtNavigate=It.prototype.onYtNavigate;It.prototype.onPopupOpened=It.prototype.onPopupOpened;It.prototype.onPopupClosed=It.prototype.onPopupClosed;
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],It.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.Tg.YtEventForwardingBehavior),_.N("design:type",Object)],It.prototype,"ytEventForwardingBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],It.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],It.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],It.prototype,"data",void 0);
_.q([_.R(),_.N("design:type",Object)],It.prototype,"enableFocusFix",void 0);_.q([_.R(),_.N("design:type",Object)],It.prototype,"covered",void 0);_.q([_.R({computed:"computeHideMenu(covered, data)"}),_.N("design:type",Object)],It.prototype,"hideMenu",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.N("design:type",String)],It.prototype,"menuStyle",void 0);
_.q([_.R({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.N("design:type",Object)],It.prototype,"isCommentNotificationOnProfileCard",void 0);_.q([_.R(),_.N("design:type",Boolean)],It.prototype,"isPopUpOpen",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],It.prototype,"scrolledByTouch",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],It.prototype,"disableBackdropFilter",void 0);
_.q([_.cD("#sections"),_.N("design:type",HTMLElement)],It.prototype,"sectionsElement",void 0);_.q([_.cD("#spinner"),_.N("design:type",HTMLElement)],It.prototype,"spinnerElement",void 0);_.q([_.cD("#header"),_.N("design:type",HTMLElement)],It.prototype,"headerElement",void 0);_.q([_.cD("#container"),_.N("design:type",HTMLElement)],It.prototype,"JSC$17940_containerElement",void 0);_.q([_.cD("#submenu"),_.N("design:type",HTMLElement)],It.prototype,"submenuElement",void 0);
_.q([_.oe("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],It.prototype,"onPopupClosed",null);_.q([_.oe("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],It.prototype,"onPopupOpened",null);_.q([_.oe("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],It.prototype,"onYtNavigate",null);
_.q([_.oe("yt-service-request-completed"),_.oe("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.gG]),_.N("design:returntype")],It.prototype,"onServiceRequestSentOrCompleted",null);_.q([_.oe("yt-menu-back-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],It.prototype,"onMenuBackTap",null);
_.q([_.oe("yt-submenu-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],It.prototype,"onSubmenuClosed",null);_.q([_.oe("yt-retrieve-location"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],It.prototype,"onRetrieveLocation",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],It.prototype,"refitAfterRender",null);
It=_.q([_.d({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],It);
_.w(It,"ytd-multi-page-menu-renderer",function(){if(Hhc!==void 0)return Hhc;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Hhc=x},{mode:1});var fNi;var jk=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return x};
_.m(jk,_.n);_.a=jk.prototype;_.a.created=function(){this.showTooltips=!0};
_.a.computeAccessibility_=function(x){return this.get("accessibility.accessibilityData",x)||null};
_.a.onTap=function(){var x=_.Gl(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(x&&x.length===1&&x[0])_.xO(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var G;if((G=this.data)==null?0:G.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var D;((D=this.data)==null?0:D.menuRequest)&&_.KW(this.hostElement,[this.data.menuRequest])}}};
_.a.handleTopbarMenuClosedAction=function(x){var G,D;(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(x)===((G=this.data)==null?void 0:(D=G.icon)==null?void 0:D.iconType)&&this.toggleIconState(!1)};
_.a.toggleIconState=function(x){_.B("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=x)};
_.a.handleUpdateTopbarAvatarAction=function(x){var G;x=(G=_.Y(x,tY6))==null?void 0:G.avatarUrl;var D,K;G=(D=this.data)==null?void 0:(K=D.avatar)==null?void 0:K.thumbnails;x&&G&&(D={thumbnails:[Object.assign({},G[0],{url:x})]},this.set("data.avatar",D))};
_.Nq.Object.defineProperties(jk.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.kA(this.hostElement).querySelector("#button")}}});
jk.prototype.onTap=jk.prototype.onTap;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],jk.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],jk.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.i9),_.N("design:type",Object)],jk.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.I(_.JJo.YtButtonBehavior),_.N("design:type",Object)],jk.prototype,"ytButtonBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],jk.prototype,"data",void 0);
_.q([_.cD("yt-icon-button#button"),_.N("design:type",Object)],jk.prototype,"iconButton",void 0);_.q([_.oe("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jk.prototype,"onTap",null);jk=_.q([_.d({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],jk);
_.w(jk,"ytd-topbar-menu-button-renderer",function(){if(fNi!==void 0)return fNi;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return fNi=x},{mode:1});var tMO;var O7=function(){return _.n.apply(this,arguments)||this};
_.m(O7,_.n);O7.prototype.getSelected=function(){return this.reasons.selected};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],O7.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],O7.prototype,"data",void 0);_.q([_.cD("#reasons"),_.N("design:type",Object)],O7.prototype,"reasons",void 0);O7=_.q([_.d({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],O7);
_.w(O7,"ytd-ad-feedback-content",function(){if(tMO!==void 0)return tMO;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return tMO=x},{mode:1});var kSj;var XN=function(){return _.n.apply(this,arguments)||this};
_.m(XN,_.n);_.a=XN.prototype;_.a.onPopupOpened=function(){_.xO(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.a.computeConfirmButton=function(x){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:x.confirmLabel}};
_.a.computeCancelButton=function(x){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:x.cancelLabel}};
_.a.onConfirmTap=function(){var x=this.content.getSelected();x!==void 0&&(x=this.data.reasons[x].endpoint)&&(_.Eo().resolve(_.hm).resolveCommand(x,{form:{element:this.hostElement}}),_.xO(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.a.sendFeedbackSubmitToastAction=function(){var x;(x=this.data)!=null&&x.completionMessage&&_.xO(this.hostElement,"yt-open-popup-action",[_.NW(this.data.completionMessage),this])};
_.a.onCancelTap=function(){_.xO(this.hostElement,"yt-close-popup-action")};
XN.prototype.onPopupOpened=XN.prototype.onPopupOpened;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],XN.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],XN.prototype,"data",void 0);_.q([_.cD("#content"),_.N("design:type",Object)],XN.prototype,"content",void 0);_.q([_.oe("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],XN.prototype,"onPopupOpened",null);
XN=_.q([_.d({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],XN);
_.w(XN,"ytd-ad-feedback-renderer",function(){if(kSj!==void 0)return kSj;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return kSj=x},{mode:1});var P9x;var AH=function(){return _.n.apply(this,arguments)||this};
_.m(AH,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],AH.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],AH.prototype,"data",void 0);AH=_.q([_.d({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],AH);
_.w(AH,"ytd-ad-info-dialog-content",function(){if(P9x!==void 0)return P9x;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return P9x=x},{mode:1});var Ebi;var U7=function(){return _.n.apply(this,arguments)||this};
_.m(U7,_.n);U7.prototype.computeConfirmButton=function(x){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:x.confirmLabel}};
U7.prototype.onConfirmTap=function(){_.xO(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
U7.prototype.computeShouldShowTitle=function(){var x;return!((x=this.data)==null||!x.title)};
U7.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.Eo().resolve(_.hm).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
U7.prototype.onPopupClosed=U7.prototype.onPopupClosed;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],U7.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],U7.prototype,"data",void 0);_.q([_.oe("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],U7.prototype,"onPopupClosed",null);U7=_.q([_.d({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],U7);
_.w(U7,"ytd-ad-info-dialog-renderer",function(){if(Ebi!==void 0)return Ebi;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Ebi=x},{mode:1});var hl6;var Rt=function(){var x=_.n.apply(this,arguments)||this;x.actionButtonClass="action-button";x.dismissButtonId="dismiss-button";x.dialogDismiss=!0;return x};
_.m(Rt,_.n);_.a=Rt.prototype;_.a.computeInPlayer=function(x){return(x==null?void 0:x.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.a.computedLogo=function(){var x,G;return this.isDarkTheme()?(x=this.data)==null?void 0:x.logoDark:(G=this.data)==null?void 0:G.logo};
_.a.computedHeaderImage=function(){var x,G;return this.isDarkTheme()?(x=this.data)==null?void 0:x.headerImageDark:(G=this.data)==null?void 0:G.headerImage};
_.a.computeLogoIconId=function(){var x,G,D,K=(x=this.computedLogo())==null?void 0:(G=x.sources)==null?void 0:(D=G[0])==null?void 0:D.height;return K&&K%31===0?"logo-icon-with-padding":"logo-icon"};
_.a.computeLogoIconHeight=function(){var x,G,D,K=(x=this.computedLogo())==null?void 0:(G=x.sources)==null?void 0:(D=G[0])==null?void 0:D.height;return K&&K%31===0?"31":"24"};
_.a.onPopupClosed=function(){_.Eo().resolve(_.hC).dispose()};
_.a.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.a.onShow=function(){this.inPlayer&&_.y7(6)};
_.a.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var x=0;x<this.data.impressionEndpoints.length;x++){var G=_.Y(this.data.impressionEndpoints[x],_.IP);G&&this.ytComponentBehavior.resolveCommand(G)}};
_.a.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.xO(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.Nq.Object.defineProperties(Rt.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var x,G;return!((x=this.data)==null||!x.headerImageDark)&&!((G=this.data)==null||!G.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.secondaryButton)}}});
Rt.prototype.onPopupClosed=Rt.prototype.onPopupClosed;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Rt.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Rt.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.AG.YtVisibilityBehavior),_.N("design:type",Object)],Rt.prototype,"ytVisibilityBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Rt.prototype,"data",void 0);
_.q([_.R(),_.N("design:type",Object)],Rt.prototype,"actionButtonClass",void 0);_.q([_.R(),_.N("design:type",Object)],Rt.prototype,"dismissButtonId",void 0);_.q([_.R(),_.N("design:type",Object)],Rt.prototype,"dialogDismiss",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Rt.prototype,"hasHeaderImage",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Rt.prototype,"hasPremiumButton",null);
_.q([_.R({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.N("design:type",Boolean)],Rt.prototype,"inPlayer",void 0);_.q([_.cD("#dismiss-button"),_.N("design:type",HTMLElement)],Rt.prototype,"dismissButton",void 0);_.q([_.oe("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Rt.prototype,"onPopupClosed",null);Rt=_.q([_.d({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],Rt);
_.w(Rt,"ytd-enforcement-message-view-model",function(){if(hl6!==void 0)return hl6;var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return hl6=x},{mode:1});var xEc;var Gkk;var Sk=function(){var x=_.n.apply(this,arguments)||this;x.TEST_ONLY={immediateValidation:function(){x.immediateValidation()},
onValidationResponse:function(G){x.onValidationResponse(G)},
onGenerateHandleFromNameResponse:function(G){x.onGenerateHandleFromNameResponse(G)}};
return x};
_.m(Sk,_.n);_.a=Sk.prototype;_.a.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.a.validate=function(){this.immediateValidation()};
_.a.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.a.setHandleInputValue=function(x){this.handleDir=this.getHandleDir(x);this.handleInput.value=x;this.validationState={status:"PENDING"};this.immediateValidation()};
_.a.getHandleDir=function(x){var G=x===""&&!1;return(G=_.iTq.test.call(_.iTq,x))?"rtl":"ltr"};
_.a.onDataChanged=function(){var x,G;this.handleDir=this.getHandleDir((G=(x=this.data)==null?void 0:x.handle)!=null?G:"");var D;this.validationState=((D=this.data)==null?0:D.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var K;((K=this.data)==null?0:K.validateOnInit)&&this.immediateValidation()};
_.a.stopPropagation=function(x){x.stopPropagation()};
_.a.onInput=function(){var x;this.handleDir=this.getHandleDir((x=this.handleInput.value)!=null?x:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.a.onFocusout=function(x){this.handleInput.contains(x.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.a.delayedValidation=function(){var x,G;this.debouncedValidation((G=(x=this.data)==null?void 0:x.validationDelayMs)!=null?G:1E3)};
_.a.immediateValidation=function(){this.debouncedValidation(0)};
_.a.debouncedValidation=function(x){var G=this;_.Ao(this,"debouncedValidation",function(){var D,K=G.staticValidation((D=G.handleInput.value)!=null?D:"");if(K!==void 0)G.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:K};else{var z;if((z=G.data)!=null&&z.validateChannelHandleCommand){G.validationState={status:"LOADING"};var y;G.ytComponentBehavior.resolveCommand(G.data.validateChannelHandleCommand,{form:{handle:(y=G.handleInput.value)!=null?y:""},commandController:{onSuccess:function(c,
W){G.onValidationResponse(W)},
onServerError:function(c,W){G.onValidationServerError(W)}}})}else G.handleUnexpectedValidationError(new _.LL("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",G.data))}},x)};
_.a.staticValidation=function(x){var G;if(((G=this.data)==null?void 0:G.channelHandleStaticValidationParams)!==void 0){G=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(x)&&G.validValueRegexpErrorMessage!==void 0)return G.validValueRegexpErrorMessage;if(G.minLength!==void 0&&x.length<G.minLength&&G.minLengthErrorMessage!==void 0)return G.minLengthErrorMessage;if(G.maxLength!==void 0&&x.length>G.maxLength&&G.maxLengthErrorMessage!==void 0)return G.maxLengthErrorMessage}};
_.a.onValidationResponse=function(x){var G=_.Y(x.result,ksk);G===void 0?this.handleUnexpectedValidationError(new _.LL("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",x)):this.handleValidationResultRenderer(G)};
_.a.onValidationServerError=function(x){this.handleUnexpectedValidationError(new _.LL("ValidateChannelHandle request failed.",x))};
_.a.handleValidationResultRenderer=function(x){if(x.handle===void 0)this.handleUnexpectedValidationError(new _.LL("ChannelHandleValidationResultRenderer does not contain handle.",x));else if(x.handle===this.handleInput.value)switch(x.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:x.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:x.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.LL("Unrecognized ChannelHandleValidationResult",x));break;default:_.oT(x.result)}};
_.a.handleUnexpectedValidationError=function(x){var G;this.validationState={status:"UNKNOWN",handle:(G=this.handleInput.value)!=null?G:""};_.O9(x)};
_.a.stopEventPropagation=function(x){x.stopPropagation()};
_.a.updateHandleOnChannelNameInputChange=function(x){if(!this.wasEdited){var G,D;this.debouncedGenerateHandleFromName(x,(D=(G=this.data)==null?void 0:G.validationDelayMs)!=null?D:1E3)}};
_.a.debouncedGenerateHandleFromName=function(x,G){var D=this;_.Ao(this,"debouncedGenerateHandleFromName",function(){var K;(K=D.data)!=null&&K.validateChannelHandleCommand?D.ytComponentBehavior.resolveCommand(D.data.validateChannelHandleCommand,{form:{name:x},commandController:{onSuccess:function(z,y){D.onGenerateHandleFromNameResponse(y)},
onServerError:function(z,y){_.O9(new _.LL("Error calling GenerateHandleFromName",y))}}}):_.O9(new _.LL("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",D.data))},G)};
_.a.onGenerateHandleFromNameResponse=function(x){this.wasEdited||((x=_.Y(x.result,PGC))?this.setHandleInputValue(x.handle):_.O9(new _.LL("Invalid results when generate handle from name")))};
_.Nq.Object.defineProperties(Sk.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var x;if(x=this.validationState)x=this.validationState,x=x.status==="OK"||x.status==="UNKNOWN";if(x)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var x;if(((x=this.validationState)==null?void 0:x.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 x,G=(x=this.channelHandleEntity)==null?void 0:x.handleEdit;this.handleDir=this.getHandleDir(G!=null?G:"");return G}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var x,G;if(((x=this.data)==null?void 0:(G=x.channelHandleStaticValidationParams)==null?void 0:G.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
Sk.prototype.stopEventPropagation=Sk.prototype.stopEventPropagation;Sk.prototype.onDataChanged=Sk.prototype.onDataChanged;Sk.prototype.applyHandleEdit=Sk.prototype.applyHandleEdit;Sk.prototype.onValueChanged=Sk.prototype.onValueChanged;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Sk.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],Sk.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Sk.prototype,"data",void 0);
_.q([_.R(),_.N("design:type",Boolean)],Sk.prototype,"wasEdited",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],Sk.prototype,"handleDir",void 0);_.q([_.cD("#handle-input"),_.N("design:type",Object)],Sk.prototype,"handleInput",void 0);_.q([_.R(),_.U("validationState"),_.N("design:type",Object),_.N("design:paramtypes",[])],Sk.prototype,"value",null);
_.q([_.yf("value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Sk.prototype,"onValueChanged",null);_.q([_.U("validationState"),_.N("design:type",Object),_.N("design:paramtypes",[])],Sk.prototype,"errorIndicator",null);_.q([_.R({reflectToAttribute:!0}),_.U("errorIndicator"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Sk.prototype,"borderErrorIndicator",null);
_.q([_.R({selectorArgs:["data.channelHandleEntityKey"],selector:function(x,G){return _.zm(x.entities,"channelHandle",G)}}),
_.N("design:type",Object)],Sk.prototype,"channelHandleEntity",void 0);_.q([_.U("channelHandleEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],Sk.prototype,"handleEdit",null);_.q([_.yf("handleEdit"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Sk.prototype,"applyHandleEdit",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Sk.prototype,"onDataChanged",null);
_.q([_.U("data.channelHandleStaticValidationParams.validValueRegexp"),_.N("design:type",Object),_.N("design:paramtypes",[])],Sk.prototype,"validValueRegexp",null);_.q([_.oe("yt-service-request-sent"),_.oe("yt-service-request-completed"),_.oe("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Sk.prototype,"stopEventPropagation",null);Sk=_.q([_.d({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],Sk);
_.w(Sk,"ytd-channel-handle-input-renderer",function(){if(Gkk!==void 0)return Gkk;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Gkk=x},{mode:_.Ge("kevlar_poly_si_batch_j025")?1:2});var nb=function(){var x=_.n.apply(this,arguments)||this;x.data=null;x.errorMessage=null;x.isLoading=!0;x.hideContainer=!1;x.enableNewChannelCreationOnIdForAll=_.B("enable_new_channel_creation_for_id4all");x.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"};x.testOnly={setErrorMessage:function(G){x.resetErrorState();
x.setErrorState(G)}};
return x};
_.m(nb,_.n);_.a=nb.prototype;_.a.created=function(){this.logScreenVe()};
_.a.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")};
_.a.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var x;((x=this.zeroStepErrorMessageEntity)==null?0:x.value)&&this.set("errorMessage",_.gK(this.zeroStepErrorMessageEntity.value))};
_.a.onCreateTap=function(){var x=this;if(this.data&&this.data.channelCreationEndpoint){var G,D;if(!((G=this.data.createChannelButton)==null?0:(D=G.buttonRenderer)==null?0:D.isDisabled)){var K;if((K=this.nameInput)!=null&&K.value){this.setLoadingState();var z,y;G=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(z=this.handleInput)==null?void 0:z.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((y=this.handleInput)==null?void 0:y.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:G,commandController:{onSuccess:function(c,W){x.onChannelCreationEndpointSuccess(W);x.obakeImageSource&&_.Fv("channelCreatedWithObakeImage",{imageSourceType:x.obakeImageSource})},
onServerError:function(){x.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.a.endpointRequiresServiceRequestAction=function(x){return!!_.Y(x,_.mJ)||!!_.Y(x,tY6)};
_.a.isNavigateAction=function(x){var G;return!!_.Y(x,_.nP)||!!_.Y((G=_.Y(x,xMx))==null?void 0:G.command,_.nP)};
_.a.isPlaylistAction=function(x){return!!_.Y(x,_.YV)||!!_.Y(x,_.IL)};
_.a.onChannelCreationEndpointSuccess=function(x){if(x.createChannelError){var G;this.setErrorState((G=x.createChannelError)==null?void 0:G.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.B("enable_secondary_channel_creation_form")&&x.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(x.navigationEndpoint);if(x.actions){G=_.l(x.actions);for(var D=G.next();!D.done;D=G.next())if(D=D.value,this.endpointRequiresServiceRequestAction(D)&&this.ytComponentBehavior.resolveCommand(D),
this.isNavigateAction(D)){var K=void 0;D=_.Y((K=_.Y(D,xMx))==null?void 0:K.command,_.nP);K=void 0;this.isPlaylistAction((K=D)==null?void 0:K.endpoint)&&(_.xO(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),K=void 0,this.ytComponentBehavior.resolveCommand((K=D)==null?void 0:K.endpoint))}}x.actions&&x.actions.some(function(z){var y;return _.Y(z,_.nP)||_.Y((y=_.Y(z,xMx))==null?void 0:y.command,_.nP)})||_.xO(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.a.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.a.onCancelTap=function(){var x,G,D;if(!((x=this.data)==null?0:(G=x.cancelButton)==null?0:(D=G.buttonRenderer)==null?0:D.isDisabled)){var K,z,y;x=(K=this.data)==null?void 0:(z=K.cancelButton)==null?void 0:(y=z.buttonRenderer)==null?void 0:y.command;if(!x||!_.Y(x,_.apO)){var c;this.nameInput&&((c=this.data)==null?0:c.name)&&(this.nameInput.value=this.data.name);var W;this.handleInput&&((W=this.data)==null?0:W.channelHandleInput)&&(this.handleInput.data=_.Y(this.data.channelHandleInput,EGT));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.a.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.a.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.a.onClearProfilePhotoTap=function(){var x,G,D;((x=this.data)==null?0:(G=x.clearProfilePhotoButton)==null?0:(D=G.buttonRenderer)==null?0:D.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.a.onEditAvatarTap=function(){var x,G,D;((x=this.data)==null?0:(G=x.editAvatarButton)==null?0:(D=G.buttonRenderer)==null?0:D.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.a.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)};
_.a.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var x;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((x=this.data)==null?0:x.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.a.setErrorState=function(x){this.resetErrorState();if(x)this.set("errorMessage",x);else{var G;if((G=this.zeroStepErrorMessageEntity)==null?0:G.value)this.set("errorMessage",_.gK(this.zeroStepErrorMessageEntity.value));else{var D;((D=this.data)==null?0:D.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.a.fetchImageBlobWithAlr=function(x,G){G=G===void 0?5:G;var D=this,K,z,y,c,W;return _.T(function(e){switch(e.nextAddress){case 1:return _.Z(e,fetch(x,{method:"GET",mode:"cors"}),2);case 2:K=e.yieldResult;if(K.ok){e.jumpTo(3);break}if(G===0)throw Error();z=D.addJitter(Math.pow(2,5-G));return _.Z(e,new Promise(function(Q){setTimeout(Q,z*1E3)}),4);
case 4:return e.return(D.fetchImageBlobWithAlr(x,G-1));case 3:if(!K.headers.get("content-type").split(";").some(function(Q){return Q.trim()==="text/plain"})){e.jumpTo(5);
break}y=D;c=y.fetchImageBlobWithAlr;return _.Z(e,K.text(),6);case 6:return e.return(c.call(y,e.yieldResult,G-1));case 5:return _.Z(e,K.blob(),7);case 7:return W=e.yieldResult,e.return(W)}})};
_.a.addJitter=function(x){var G=x*.3*Math.random();Math.random()>.5&&(G*=-1);return x+G};
_.a.openProfilePicturePicker=function(){var x=this,G,D,K,z,y;return _.T(function(c){if(c.nextAddress==1){G=x.data.scottyUploadUrl;if(!G)return c.return();D=document.documentElement.hasAttribute("dark");K=document.body.style.colorScheme;D&&(document.body.style.colorScheme="dark");z=DtT(KJC(G0j(fkc(D?"dark":"light")),function(W){var e,Q,p,V,L;return _.T(function(r){if(r.nextAddress==1)return e=_.Ox(c3O(new LV(W.photoUrl,!1)).build(),"alr","yes"),x.obakeImageSource=x.pictureChangeSourceToObakeImageSourceType(W.photoSource),
_.Kl(r,2),x.setLoadingState(),_.Z(r,x.fetchImageBlobWithAlr(e),4);if(r.nextAddress!=2)return Q=r.yieldResult,p=new FileReader,p.addEventListener("load",function(){var H,O,A,g,u,f;return _.T(function(v){if(v.nextAddress==1){if(Q.size>15728640)return x.setErrorState((H=x.data)==null?void 0:H.imageSizeErrorMessage),_.O9(Error("gl")),v.return();if(!p.result)return x.setErrorState((O=x.data)==null?void 0:O.genericImageLoadErrorMessage),_.O9(Error("hl")),v.return();A=p.result;_.Kl(v,2);return _.Z(v,wyO(Q,
G),4)}if(v.nextAddress!=2)return g=v.yieldResult,x.handleImageUpdatedAction(A,g),x.resetErrorState(),_.iI(v,0);u=_.lX(v);x.setErrorState((f=x.data)==null?void 0:f.uploadErrorMessage);if(u instanceof Error)_.I4(u);else{var P=new _.LL(JSON.stringify(u));_.I4(P)}_.c5(v)})}),p.readAsDataURL(Q),_.iI(r,0);
V=_.lX(r);x.setErrorState((L=x.data)==null?void 0:L.genericImageLoadErrorMessage);V instanceof Error?_.I4(V):_.jm(new _.LL(JSON.stringify(V)));_.c5(r)})}),function(){x.hideContainer=!1;
document.body.style.colorScheme=K});
_.Kl(c,2);return _.Z(c,z.openPicker(),4)}if(c.nextAddress!=2)return _.iI(c,0);_.lX(c);x.setErrorState((y=x.data)==null?void 0:y.selectImageErrorMessage);_.c5(c)})};
_.a.pictureChangeSourceToObakeImageSourceType=function(x){switch(x){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.a.logScreenVe=function(){_.EV(_.en(),124448)};
_.a.graftServerVe=function(){var x=_.Fx(),G,D,K=(G=this.data)==null?void 0:(D=G.loggingDirectives)==null?void 0:D.trackingParams;K&&x&&(this.channelCreationFormVe=_.en().graftServerVe(K,x),x={visualElement:this.channelCreationFormVe},_.Te().reportShown(x))};
_.a.isNameChanged=function(x){var G;return((G=this.data)==null?void 0:G.name)!==x};
_.a.isHandleChanged=function(x){var G,D=_.Y((G=this.data)==null?void 0:G.channelHandleInput,EGT);return D&&x?D.handle!==x:!1};
_.a.handleImageUpdatedAction=function(x,G){this.hideContainer=!1;this.previewDataUrl=x;this.encryptedBlobId=G};
_.a.handleImageSelectionErrorAction=function(x){this.hideContainer=!1;this.setErrorState(x)};
_.a.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.a.showContainer=function(){this.hideContainer=!1};
_.a.maybeWipeZeroStepErrorMessage=function(){var x,G=(x=this.data)==null?void 0:x.zeroStepErrorMessageEntityKey,D;G&&((D=this.zeroStepErrorMessageEntity)==null?0:D.value)&&this.ytdReduxBehavior.dispatch(_.cq("stringEntity",G,{key:G,value:""}))};
_.Nq.Object.defineProperties(nb.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 x;return((x=this.photoThumbnail)==null?0:x.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 x;return!((x=this.data)==null||!x.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.descriptionInfo}}});
nb.prototype.dataChanged=nb.prototype.dataChanged;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],nb.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],nb.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],nb.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],nb.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],nb.prototype,"errorMessage",void 0);
_.q([_.R(),_.N("design:type",Object)],nb.prototype,"isLoading",void 0);_.q([_.R(),_.N("design:type",String)],nb.prototype,"previewDataUrl",void 0);_.q([_.R(),_.N("design:type",Number)],nb.prototype,"obakeImageSource",void 0);_.q([_.R(),_.N("design:type",Object)],nb.prototype,"hideContainer",void 0);_.q([_.cD("#title-input"),_.N("design:type",Object)],nb.prototype,"nameInput",void 0);_.q([_.cD("#handle-input"),_.N("design:type",Object)],nb.prototype,"handleInput",void 0);
_.q([_.R(),_.N("design:type",Boolean)],nb.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.q([_.R({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.wvh}),_.N("design:type",Object)],nb.prototype,"zeroStepErrorMessageEntity",void 0);_.q([_.U("data","data.isDefaultProfilePhoto","previewDataUrl"),_.N("design:type",Object),_.N("design:paramtypes",[])],nb.prototype,"photoThumbnail",null);
_.q([_.U("data","data.isDefaultProfilePhoto","photoThumbnail"),_.N("design:type",Object),_.N("design:paramtypes",[])],nb.prototype,"userSetPhotoThumbnailUrl",null);_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],nb.prototype,"hideProfilePhotoButtonLayer",null);_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],nb.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.q([_.Z6("data","zeroStepErrorMessageEntity"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nb.prototype,"dataChanged",null);_.q([_.R({reflectToAttribute:!0}),_.U("data.descriptionInfo","zeroStepErrorMessageEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],nb.prototype,"description",null);nb=_.q([_.d({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],nb);
_.w(nb,"ytd-channel-creation-dialog-renderer",function(){if(xEc!==void 0)return xEc;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return xEc=x},{mode:1});var DEC;var iW=function(){var x=_.n.apply(this,arguments)||this;x.isLoading=!1;x.isDisabled=!1;return x};
_.m(iW,_.n);iW.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
iW.prototype.updateDisabled=function(){var x;this.isDisabled=this.isLoading||((x=this.handleInput)==null?void 0:x.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
iW.prototype.onSaveClick=function(){var x=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var G;((G=this.data)==null?void 0:G.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 D;if((D=x.data)==null?0:D.nextEndpoint){var K;x.ytComponentBehavior.resolveCommand((K=x.data)==null?void 0:K.nextEndpoint)}else x.isLoading=
!1,x.closeDialog()},
onServerError:function(){x.isLoading=!1;x.handleInput.validate();var D;x.errorMessage=(D=x.data)==null?void 0:D.errorMessage}}}))}};
iW.prototype.closeDialog=function(){_.xO(this.hostElement,"yt-close-popup-action",[this.is])};
iW.prototype.updateDisabled=iW.prototype.updateDisabled;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],iW.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],iW.prototype,"data",void 0);_.q([_.cD("#handle-input"),_.N("design:type",Object)],iW.prototype,"handleInput",void 0);_.q([_.yf("isLoading"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],iW.prototype,"updateDisabled",null);
iW=_.q([_.d({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],iW);
_.w(iW,"ytd-channel-handle-edit-dialog-renderer",function(){if(DEC!==void 0)return DEC;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return DEC=x},{mode:1});var K1x;var gY=function(){return _.n.apply(this,arguments)||this};
_.m(gY,_.n);gY.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],gY.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],gY.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],gY.prototype,"data",void 0);gY=_.q([_.d({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],gY);
_.w(gY,"ytd-channel-switcher-footer-renderer",function(){if(K1x!==void 0)return K1x;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return K1x=x},{mode:1});var zK8;var aeO;var uW=function(){return _.n.apply(this,arguments)||this};
_.m(uW,_.n);uW.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
uW.prototype.onIronChange=uW.prototype.onIronChange;_.q([_.R(),_.N("design:type",Object)],uW.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!1}),_.N("design:type",Function)],uW.prototype,"onDontAskAgainChanged",void 0);_.q([_.cD("#checkbox"),_.N("design:type",Object)],uW.prototype,"checkbox",void 0);_.q([_.oe("iron-change"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uW.prototype,"onIronChange",null);
uW=_.q([_.d({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],uW);
_.w(uW,"ytd-identity-prompt-footer-renderer",function(){if(aeO!==void 0)return aeO;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return aeO=x},{mode:1});var dY=function(){var x=_.n.apply(this,arguments)||this;x.dontAskAgain=!1;x.showPopup=!1;x.boundDontAskAgainChanged=function(G){x.dontAskAgainChanged(G)};
x.boundOnAccountItemTap=function(G){x.onAccountItemTap(G)};
return x};
_.m(dY,_.n);_.a=dY.prototype;
_.a.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]]"}}}}}};
_.a.ready=function(){var x=this;_.kA(this.hostElement).querySelector("#container").addEventListener("scroll",function(){x.ytRendererBehavior.markDirty()})};
_.a.dontAskAgainChanged=function(x){this.dontAskAgain=x};
_.a.onAccountItemTap=function(x){if(x){var G={};this.dontAskAgain&&(G={dont_ask_again:this.dontAskAgain});_.U4(x,G)}};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.a.redirectOnlyAccount=function(x){x.sections&&x.sections.length>0&&(x=_.Y(x.sections[0],_.O1k),(x==null?0:x.contents)&&(x==null?void 0:x.contents.length)<=1?(x=_.wT(window.location.href),(x==null?0:x.next)&&_.L7Q(x.next)?_.U4(x.next):_.U4("/")):this.showPopup=!0)};
dY.prototype.dataChanged=dY.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],dY.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],dY.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],dY.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!1}),_.N("design:type",Object)],dY.prototype,"dontAskAgain",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],dY.prototype,"showPopup",void 0);_.q([_.R({reflectToAttribute:!1}),_.N("design:type",Object)],dY.prototype,"boundDontAskAgainChanged",void 0);_.q([_.R({reflectToAttribute:!1}),_.N("design:type",Object)],dY.prototype,"boundOnAccountItemTap",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dY.prototype,"dataChanged",null);
dY=_.q([_.d({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],dY);
_.w(dY,"ytd-channel-switcher-renderer",function(){if(zK8!==void 0)return zK8;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return zK8=x},{mode:1});var olc;var wY=function(){return _.n.apply(this,arguments)||this};
_.m(wY,_.n);_.Nq.Object.defineProperties(wY.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.q([_.R(),_.N("design:type",Object)],wY.prototype,"data",void 0);_.q([_.U("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],wY.prototype,"steps",null);wY=_.q([_.d({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],wY);
_.w(wY,"ytd-channel-transfer-stepper-renderer",function(){if(olc!==void 0)return olc;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return olc=x},{mode:1});var yp8;var q4=function(){var x=_.n.apply(this,arguments)||this;x.data=null;x.isError=!1;x.isLoading=!1;return x};
_.m(q4,_.n);_.a=q4.prototype;_.a.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"}}}};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.a.computeProfileName=function(x){return x?x.givenNameValue+" "+x.familyNameValue:""};
_.a.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)};
_.a.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)};
q4.prototype.onYtServiceRequestError=q4.prototype.onYtServiceRequestError;q4.prototype.onYtServiceRequestSent=q4.prototype.onYtServiceRequestSent;q4.prototype.dataChanged=q4.prototype.dataChanged;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],q4.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],q4.prototype,"data",void 0);
_.q([_.R({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.N("design:type",String)],q4.prototype,"profileName",void 0);_.q([_.R(),_.N("design:type",Object)],q4.prototype,"isError",void 0);_.q([_.R(),_.N("design:type",Object)],q4.prototype,"isLoading",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],q4.prototype,"dataChanged",null);
_.q([_.oe("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Ou]),_.N("design:returntype")],q4.prototype,"onYtServiceRequestSent",null);_.q([_.oe("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Ou]),_.N("design:returntype")],q4.prototype,"onYtServiceRequestError",null);q4=_.q([_.d({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],q4);
_.w(q4,"ytd-channel-warm-welcome-cont-renderer",function(){if(yp8!==void 0)return yp8;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return yp8=x},{mode:1});var lef;var N4=function(){var x=_.n.apply(this,arguments)||this;x.data=null;return x};
_.m(N4,_.n);N4.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
N4.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],N4.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],N4.prototype,"data",void 0);N4=_.q([_.d({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],N4);
_.w(N4,"ytd-channel-warm-welcome-renderer",function(){if(lef!==void 0)return lef;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return lef=x},{mode:1});var cpf;var v3=function(){return _.n.apply(this,arguments)||this};
_.m(v3,_.n);_.Nq.Object.defineProperties(v3.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.authorThumbnail)||{}}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],v3.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],v3.prototype,"data",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],v3.prototype,"thumbnailDetails",null);v3=_.q([_.d({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],v3);
_.w(v3,"ytd-comment-preview-renderer",function(){if(cpf!==void 0)return cpf;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return cpf=x},{mode:1});var TEi;var JH=function(){return _.n.apply(this,arguments)||this};
_.m(JH,_.n);JH.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Nq.Object.defineProperties(JH.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.submitButton}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],JH.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],JH.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],JH.prototype,"data",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],JH.prototype,"submitButton",null);JH=_.q([_.d({is:"ytd-notice-renderer",disableElementRegistration:!0})],JH);
_.w(JH,"ytd-notice-renderer",function(){if(TEi!==void 0)return TEi;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return TEi=x},{mode:1});var W16;var fb=function(){return _.n.apply(this,arguments)||this};
_.m(fb,_.n);fb.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],fb.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],fb.prototype,"data",void 0);fb=_.q([_.d({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],fb);
_.w(fb,"ytd-preview-comment-dialog-content",function(){if(W16!==void 0)return W16;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return W16=x},{mode:1});var eK4;var tH=function(){return _.n.apply(this,arguments)||this};
_.m(tH,_.n);tH.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
tH.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],tH.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],tH.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],tH.prototype,"data",void 0);tH=_.q([_.d({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],tH);
_.w(tH,"ytd-preview-comment-dialog-renderer",function(){if(eK4!==void 0)return eK4;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return eK4=x},{mode:1});var ZS8;var MyC=_.B("web_button_rework")&&_.Uo("BUTTON_REWORK")||_.B("web_button_rework_with_live"),kE=function(){var x=_.n.apply(this,arguments)||this;x.closeLabel=_.Wg("CLOSE");x.selectedAmountIndex=1;x.privacyCheckboxValue=!1;x.useAmsterdamStyle=MyC;x.amountPlaceholderIndex=-1;return x};
_.m(kE,_.n);_.a=kE.prototype;_.a.onAmountClick=function(x){this.selectedAmountIndex=_.kA(this.hostElement).querySelector("#amounts").indexForElement(x.currentTarget)};
_.a.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.xO(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.a.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.xO(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.xO(this.hostElement,"yt-close-popup-action",[this.is]);var x;(x=_.Ns())==null||x.getPlayerPromise().then(function(G){G.pauseVideo()})}};
_.a.donationCallback=function(x){x.success?(this.hostElement.hasAttribute("live-chat")&&x.response&&x.response.data&&x.response.data.actions&&_.xO(this.hostElement,"yt-live-chat-open-popup",[x.response.data.actions[0]]),_.xO(this.hostElement,"yt-close-popup-action",[this.is]),_.xO(this.hostElement,"yt-live-chat-close-buy-flow")):x.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(x.errorMessageRenderer)};
_.a.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.kA(this.hostElement).querySelector("#custom-amount-input").focus()};
_.a.updateConfirmationDialogTextWithAmount=function(x){var G=this.getConfirmDialogRuns();G&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(G),"text"],this.getFormattedAmount(x))};
_.a.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.a.getAmountPlaceholderIndex=function(x){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=x.findIndex(function(G){return G.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.a.getFormattedAmount=function(x){var G;return(new _.Ar(4,((G=this.data)==null?void 0:G.currencyCode)||"")).format(x)};
_.a.isAmountValid=function(x){if(x==="")return!1;x=Number(x)*1E6;var G=this.get("minAmountMicros",this.data),D=this.get("maxAmountMicros",this.data);return G&&x<G||D&&x>D?!1:!0};
_.a.setInputError=function(){this.shouldShowValidationError?_.kA(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.kA(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.a.setInitialCheckboxValue=function(){var x;this.privacyCheckboxValue=!((x=this.data)==null||!x.privacyCheckboxInitialState)};
_.a.updateCustomAmountInputFromBinding=function(x){this.customAmountInput=x.detail.value};
_.a.updatePrivacyCheckboxValueFromBinding=function(x){this.privacyCheckboxValue=x.detail.value};
_.Nq.Object.defineProperties(kE.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var x=this,G,D;return((G=this.data)==null?void 0:(D=G.suggestedAmounts)==null?void 0:D.map(function(K,z){return{buttonRenderer:{style:x.selectedAmountIndex===z?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:K.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 x;return!((x=this.data)==null||!x.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 x=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(x&&this.amountMicros!==null)return Object.assign({},x,{ypcGetCartEndpoint:Object.assign({},x.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 x=this.get("confirmLargeAmount",this.data);if(x&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),x}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var x=this.get("donateButton.buttonRenderer",this.data);if(x)return Object.assign({},x,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
kE.prototype.setInitialCheckboxValue=kE.prototype.setInitialCheckboxValue;kE.prototype.setInputError=kE.prototype.setInputError;kE.prototype.setFocusOnCustomAmountInput=kE.prototype.setFocusOnCustomAmountInput;_.q([_.I(ri8),_.N("design:type",Object)],kE.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],kE.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],kE.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],kE.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],kE.prototype,"closeLabel",void 0);_.q([_.R(),_.N("design:type",Object)],kE.prototype,"selectedAmountIndex",void 0);_.q([_.R(),_.N("design:type",String)],kE.prototype,"customAmountInput",void 0);_.q([_.R(),_.N("design:type",Object)],kE.prototype,"privacyCheckboxValue",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],kE.prototype,"useAmsterdamStyle",void 0);_.q([_.yf("customAmount"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kE.prototype,"setFocusOnCustomAmountInput",null);_.q([_.U("data","selectedAmountIndex"),_.N("design:type",Array),_.N("design:paramtypes",[])],kE.prototype,"suggestedAmountButtons",null);
_.q([_.U("data","selectedAmountIndex"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],kE.prototype,"isCustomAmountSelected",null);_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],kE.prototype,"showPrivacyCheckbox",null);_.q([_.U("data","selectedAmountIndex","customAmount"),_.N("design:type",Object),_.N("design:paramtypes",[])],kE.prototype,"amountMicros",null);
_.q([_.U("isCustomAmountSelected","customAmountInput"),_.N("design:type",Object),_.N("design:paramtypes",[])],kE.prototype,"customAmount",null);_.q([_.U("customAmount"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],kE.prototype,"shouldShowValidationError",null);_.q([_.U("customAmount"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],kE.prototype,"isDonateButtonEnabled",null);
_.q([_.U("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.N("design:type",Object),_.N("design:paramtypes",[])],kE.prototype,"donateCommand",null);_.q([_.U("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.N("design:type",Object),_.N("design:paramtypes",[])],kE.prototype,"donateCommandWithConfirmation",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],kE.prototype,"largeDonationThreshold",null);
_.q([_.U("customAmount","donateCommand","amountMicros"),_.N("design:type",Object),_.N("design:paramtypes",[])],kE.prototype,"confirmLargeAmountCommand",null);_.q([_.U("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.N("design:type",Object),_.N("design:paramtypes",[])],kE.prototype,"donateButtonRenderer",null);_.q([_.yf("shouldShowValidationError"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kE.prototype,"setInputError",null);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kE.prototype,"setInitialCheckboxValue",null);kE=_.q([_.d({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],kE);
_.w(kE,"ytd-donation-amount-picker-renderer",function(){if(ZS8!==void 0)return ZS8;var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" aria-label="[[getSimpleString(data.pickerTitle)]]" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" label="[[closeLabel]]" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignTitle)]]</div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignSubtitle)]]</div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return ZS8=x},{mode:1});var QGY;var P3=function(){return _.n.apply(this,arguments)||this};
_.m(P3,_.n);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],P3.prototype,"ytComponentBehavior",void 0);_.q([_.R({}),_.N("design:type",Object)],P3.prototype,"data",void 0);P3=_.q([_.d({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],P3);
_.w(P3,"ytd-donation-post-transaction-content",function(){if(QGY!==void 0)return QGY;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return QGY=x},{mode:1});var pTO;var E7=function(){return _.n.apply(this,arguments)||this};
_.m(E7,_.n);E7.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],E7.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],E7.prototype,"ytRendererBehavior",void 0);_.q([_.R({}),_.N("design:type",Object)],E7.prototype,"data",void 0);E7=_.q([_.d({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],E7);
_.w(E7,"ytd-donation-post-transaction-renderer",function(){if(pTO!==void 0)return pTO;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return pTO=x},{mode:1});var Vyx;var bSf;var hH=function(){return _.n.apply(this,arguments)||this};
_.m(hH,_.n);hH.prototype.computeIsStreamingProvider=function(x){return!!x.isStreamingShelf};
hH.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],hH.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],hH.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],hH.prototype,"data",void 0);_.q([_.R({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],hH.prototype,"isStreamingProvider",void 0);
hH=_.q([_.d({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],hH);
_.w(hH,"ytd-media-provider-renderer",function(){if(bSf!==void 0)return bSf;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return bSf=x},{mode:1});var L18;var xk=function(){return _.n.apply(this,arguments)||this};
_.m(xk,_.n);xk.prototype.observeLightsourcePalette=function(){var x,G=(x=this.data)==null?void 0:x.vibrantsourceColorPaletteData;G&&_.Y7(this.hostElement,G)};
xk.prototype.observeLightsourcePalette=xk.prototype.observeLightsourcePalette;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],xk.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],xk.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],xk.prototype,"data",void 0);
_.q([_.yf("data.vibrantsourceColorPaletteData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xk.prototype,"observeLightsourcePalette",null);xk=_.q([_.d({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],xk);
_.w(xk,"ytd-streaming-pop-up-dialog",function(){if(L18!==void 0)return L18;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return L18=x},{mode:1});var Gr=function(){return _.n.apply(this,arguments)||this};
_.m(Gr,_.n);Gr.prototype.onPopupOpened_=function(){var x;((x=this.data)==null?0:x.serviceEndpoint)&&_.Eo().resolve(_.hm).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
Gr.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
Gr.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"}}}}};
Gr.prototype.onPopupOpened_=Gr.prototype.onPopupOpened_;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Gr.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Gr.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.Oh),_.N("design:type",Object)],Gr.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Gr.prototype,"data",void 0);
_.q([_.oe("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Gr.prototype,"onPopupOpened_",null);Gr=_.q([_.d({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],Gr);
_.w(Gr,"ytd-brandconnect-popup-renderer",function(){if(Vyx!==void 0)return Vyx;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Vyx=x},{mode:1});var BE8;var D$=function(){return _.n.apply(this,arguments)||this};
_.m(D$,_.n);_.a=D$.prototype;_.a.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.dataChanged=function(){for(var x=0;x<this.getOptionRenderers().length;x++)this.notifyPath("data.options."+x+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+x+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.a.updateSubmitButton=function(x){this.set("data.submitButton.buttonRenderer.isDisabled",!x)};
_.a.computeAlt=function(x){return _.u7(x)};
_.a.onDismissTap=function(){_.xO(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.Eo().resolve(_.hm).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.a.getOptionRenderers=function(x){return(x=x||this.data)&&x.options?x.options.reduce(function(G,D){D.checkboxSurveyOptionRenderer&&G.push(D.checkboxSurveyOptionRenderer);return G},[]):[]};
_.a.onOptionChange=function(x){var G=this,D=!1;if(x.detail.checked)for(var K=this.getOptionRenderers().find(function(W){return W.value===x.detail.value}),z=this.getOptionRenderers(),y=0;y<z.length;y++){var c=z[y];
this.notifyPath("data.options."+y+".checkboxSurveyOptionRenderer.checked");c.checked&&((K==null?0:K.isExclusiveOption)?!c.isExclusiveOption:c.isExclusiveOption)?this.set("data.options."+y+".checkboxSurveyOptionRenderer.checked",!1):c.checked&&(D=!0)}else D=this.getOptionRenderers().some(function(W,e){G.notifyPath("data.options."+e+".checkboxSurveyOptionRenderer.checked");return W.checked});
this.updateSubmitButton(D)};
_.a.onSubmitTap=function(){var x=this.getOptionRenderers().filter(function(y){return y.checked});
if(x.length!==0){var G=x.map(function(y){return y.responseEndpoint});
x=[];for(var D=1;D<G.length;D++){var K=void 0,z=(K=_.Y(G[D],_.H1))==null?void 0:K.feedbackToken;z&&x.push(z)}G=[G[0]];x.length&&G.push({extra_feedback_tokens:x});_.KW(this.hostElement,G);_.xO(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);x=this.data&&this.data.submitActions||[];if(_.B("kevlar_command_handler_migration_killswitch"))_.zl(this.hostElement,x,this.hostElement);else for(x=_.l(x),G=x.next();!G.done;G=x.next())this.ytComponentBehavior.resolveCommand(G.value)}};
D$.prototype.onOptionChange=D$.prototype.onOptionChange;D$.prototype.dataChanged=D$.prototype.dataChanged;_.q([_.I(_.Tg.YtEventForwardingBehavior),_.N("design:type",Object)],D$.prototype,"ytEventForwardingBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],D$.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],D$.prototype,"ytComponentBehavior",void 0);
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],D$.prototype,"ytRendererBehavior",void 0);_.q([_.I(upi),_.N("design:type",Object)],D$.prototype,"ytdHatsSurveyBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],D$.prototype,"data",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],D$.prototype,"dataChanged",null);
_.q([_.oe("ytd-checkbox-survey-option-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],D$.prototype,"onOptionChange",null);D$=_.q([_.d({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],D$);
_.w(D$,"ytd-checkbox-survey-renderer",function(){if(BE8!==void 0)return BE8;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return BE8=x},{mode:1});var rpf;var sG6;var K5=function(){return _.n.apply(this,arguments)||this};
_.m(K5,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],K5.prototype,"ytRendererBehavior",void 0);_.q([_.I(gPC),_.N("design:type",Object)],K5.prototype,"ytdDismissalReasonBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],K5.prototype,"data",void 0);K5=_.q([_.d({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],K5);
_.w(K5,"ytd-dismissal-reason-text-renderer",function(){if(sG6!==void 0)return sG6;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return sG6=x},{mode:1});var Yn4;var zr=function(){return _.n.apply(this,arguments)||this};
_.m(zr,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],zr.prototype,"ytRendererBehavior",void 0);_.q([_.I(gPC),_.N("design:type",Object)],zr.prototype,"ytdDismissalReasonBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],zr.prototype,"data",void 0);zr=_.q([_.d({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],zr);
_.w(zr,"ytd-dismissal-reason-video-renderer",function(){if(Yn4!==void 0)return Yn4;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Yn4=x},{mode:1});var a5=function(){var x=_.n.apply(this,arguments)||this;x.darkerDarkTheme=_.B("web_darker_dark_theme");return x};
_.m(a5,_.n);_.a=a5.prototype;_.a.created=function(){this.selectedFeedbackTokens=new i3};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.a.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.a.onDismissalReasonSelected=function(x,G){_.h$(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(G);this.hasReasonsSelected=!0};
_.a.onDismissalReasonDeselected=function(x,G){_.h$(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(G);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.a.onCancelTap=function(){_.xO(this.hostElement,"yt-close-popup-action")};
_.a.onSubmitTap=function(){var x=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(x={feedback_tokens:x},_.Eo().resolve(_.hm).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},x,{element:this.hostElement})}));_.xO(this.hostElement,"yt-close-popup-action")};
a5.prototype.onDismissalReasonDeselected=a5.prototype.onDismissalReasonDeselected;a5.prototype.onDismissalReasonSelected=a5.prototype.onDismissalReasonSelected;a5.prototype.dataChanged=a5.prototype.dataChanged;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],a5.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],a5.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],a5.prototype,"data",void 0);
_.q([_.R(),_.N("design:type",Boolean)],a5.prototype,"hasReasonsSelected",void 0);_.q([_.R(),_.N("design:type",i3)],a5.prototype,"selectedFeedbackTokens",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],a5.prototype,"darkerDarkTheme",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],a5.prototype,"dataChanged",null);
_.q([_.oe("yt-dismissal-reason-selected"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,String]),_.N("design:returntype")],a5.prototype,"onDismissalReasonSelected",null);_.q([_.oe("yt-dismissal-reason-deselected"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,String]),_.N("design:returntype")],a5.prototype,"onDismissalReasonDeselected",null);a5=_.q([_.d({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],a5);
_.w(a5,"ytd-dismissal-follow-up-renderer",function(){if(rpf!==void 0)return rpf;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return rpf=x},{mode:1});var mEc;var o5=function(){return _.n.apply(this,arguments)||this};
_.m(o5,_.n);_.a=o5.prototype;_.a.onCheckedChange=function(){this.multiselect||_.h$(this.hostElement,"yt-feedback-single-select-changed");_.kA(this.hostElement).querySelector("#freeform").focus();_.h$(this.hostElement,"yt-refit")};
_.a.showTextBox=function(x,G){return x&&G};
_.a.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))};
_.a.updateDataCheckedFromBinding=function(x){this.set("data.checked",x.detail.value)};
_.a.updateDataResultTextFromBinding=function(x){this.set("data.resultText",x.detail.value)};
o5.prototype.dataChanged=o5.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],o5.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],o5.prototype,"data",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],o5.prototype,"multiselect",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],o5.prototype,"dataChanged",null);
o5=_.q([_.d({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],o5);
_.w(o5,"ytd-feedback-option-renderer",function(){if(mEc!==void 0)return mEc;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return mEc=x},{mode:1});var HST;var yX=function(){return _.n.apply(this,arguments)||this};
_.m(yX,_.n);yX.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
yX.prototype.onSingleSelectCheckedChanged=function(x){x=_.uo(x);for(var G=0;G<this.data.options.length;G++)if(x.data!==_.Y(this.data.options[G],nyc)){var D="data.options."+G+".feedbackOptionRenderer.checked";this.notifyPath(D);this.set(D,!1)}};
yX.prototype.onSingleSelectCheckedChanged=yX.prototype.onSingleSelectCheckedChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],yX.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],yX.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],yX.prototype,"data",void 0);
_.q([_.oe("yt-feedback-single-select-changed"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],yX.prototype,"onSingleSelectCheckedChanged",null);yX=_.q([_.d({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],yX);
_.w(yX,"ytd-feedback-question-renderer",function(){if(HST!==void 0)return HST;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return HST=x},{mode:1});var $Ef;var lY=function(){return _.n.apply(this,arguments)||this};
_.m(lY,_.n);lY.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
lY.prototype.getSelectedFeedbackResults=function(){for(var x={},G=0;G<this.data.questions.length;G++)for(var D=_.Y(this.data.questions[G],SBi),K=0;K<D.options.length;K++){var z=_.Y(D.options[K],nyc);z&&z.checked&&(x[z.optionKey]=z.resultText)}return x};
lY.prototype.onKeyUp=function(){var x=this;_.x7(_.Fj,function(){_.h$(x.hostElement,"yt-refit")});
_.Fj.start()};
lY.prototype.submitSurvey=function(){var x=this.getSelectedFeedbackResults();Object.keys(x).length>0&&this.data.submitFeedbackEndpoint&&(x={survey_results:x,is_feedback_token_unencrypted:!0},_.Eo().resolve(_.hm).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},x,{element:this.hostElement})}))};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],lY.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],lY.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],lY.prototype,"data",void 0);lY=_.q([_.d({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],lY);
_.w(lY,"ytd-feedback-survey-renderer",function(){if($Ef!==void 0)return $Ef;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return $Ef=x},{mode:1});var F1c;var C4c;var c8=function(){return _.n.apply(this,arguments)||this};
_.m(c8,_.n);c8.prototype.computeAlt=function(x){return _.u7(x)};
c8.prototype.submitResponse=function(){var x,G;(x=this.data)!=null&&x.feedbackToken&&((G=this.data)==null?void 0:G.nextStageIndex)!==void 0&&(_.Gl(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.Gl(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
c8.prototype.onClick=function(){this.submitResponse()};
c8.prototype.onClick=c8.prototype.onClick;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],c8.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],c8.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],c8.prototype,"vertical",void 0);_.q([_.oe("click"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],c8.prototype,"onClick",null);
c8=_.q([_.d({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],c8);
_.w(c8,"ytd-single-select-answer-option-renderer",function(){if(C4c!==void 0)return C4c;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return C4c=x},{mode:1});var Iec;var Tr=function(){var x=_.n.apply(this,arguments)||this;x.darkerDarkTheme=_.B("web_darker_dark_theme");x.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return x};
_.m(Tr,_.n);Tr.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
Tr.prototype.dataChanged=function(){var x,G;this.vertical=((G=(x=this.data)==null?void 0:x.answerOrientation)!=null?G:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
Tr.prototype.submitFeedback=function(x){var G;((G=this.data)==null?0:G.responseEndpoint)&&x&&_.KW(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[x]}])};
Tr.prototype.dataChanged=Tr.prototype.dataChanged;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],Tr.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.Tg.YtEventForwardingBehavior),_.N("design:type",Object)],Tr.prototype,"eventForwardingBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Tr.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Tr.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],Tr.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],Tr.prototype,"vertical",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Tr.prototype,"darkerDarkTheme",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tr.prototype,"dataChanged",null);Tr=_.q([_.d({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],Tr);
_.w(Tr,"ytd-single-select-question-renderer",function(){if(Iec!==void 0)return Iec;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Iec=x},{mode:1});var W8=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return x};
_.m(W8,_.n);_.a=W8.prototype;_.a.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"}}}};
_.a.dataChanged=function(){this.jumpToStage(0)};
_.a.jumpToStage=function(x){var G,D;if((G=this.data)==null?0:(D=G.stages)==null?0:D[x])this.currentStage=this.data.stages[x],this.refitAfterRender()};
_.a.computeAlt=function(x){return _.u7(x)};
_.a.computeSimpleMessage=function(x){var G;return(G=_.Y(x,ub6))==null?void 0:G.messageText};
_.a.computeHideDismiss=function(x){var G;return(G=_.Y(x,ZZb))==null?void 0:G.hideParentDismissButton};
_.a.onDismissTap=function(){_.xO(this.hostElement,"yt-close-popup-action");_.Y(this.currentStage,ub6)||this.data.dismissalEndpoint&&_.Eo().resolve(_.hm).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.a.refitAfterRender=function(){var x=this;_.w1(this,function(){_.h$(x.hostElement,"yt-refit")})};
W8.prototype.dataChanged=W8.prototype.dataChanged;_.q([_.I(_.Tg.YtEventForwardingBehavior),_.N("design:type",Object)],W8.prototype,"eventForwardingBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],W8.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],W8.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],W8.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.I(upi),_.N("design:type",Object)],W8.prototype,"ytdHatsSurveyBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],W8.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],W8.prototype,"currentStage",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],W8.prototype,"dataChanged",null);W8=_.q([_.d({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],W8);
_.w(W8,"ytd-multi-stage-survey-renderer",function(){if(F1c!==void 0)return F1c;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return F1c=x},{mode:1});var jGY;var e3=function(){return _.n.apply(this,arguments)||this};
_.m(e3,_.n);e3.prototype.computeAlt=function(x){return _.u7(x)};
e3.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.Eo().resolve(_.hm).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.xO(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.O9j(!1)))};
e3.prototype.onTap=function(){this.vertical&&this.submitResponse()};
e3.prototype.onTap=e3.prototype.onTap;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],e3.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],e3.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],e3.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],e3.prototype,"vertical",void 0);
_.q([_.oe("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],e3.prototype,"onTap",null);e3=_.q([_.d({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],e3);
_.w(e3,"ytd-single-option-survey-option-renderer",function(){if(jGY!==void 0)return jGY;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return jGY=x},{mode:1});var OSc;var Z$=function(){return _.n.apply(this,arguments)||this};
_.m(Z$,_.n);_.a=Z$.prototype;_.a.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.dataChanged=function(){var x,G;this.vertical=(((x=this.data)==null?void 0:(G=x.surveyOrientation)==null?void 0:G.type)||"HORIZONTAL")==="VERTICAL"};
_.a.computeAlt=function(x){return _.u7(x)};
_.a.onDismissTap=function(){_.xO(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.Eo().resolve(_.hm).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.O9j(!1))};
Z$.prototype.dataChanged=Z$.prototype.dataChanged;_.q([_.I(_.Tg.YtEventForwardingBehavior),_.N("design:type",Object)],Z$.prototype,"eventForwardingBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Z$.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Z$.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(upi),_.N("design:type",Object)],Z$.prototype,"ytdHatsSurveyBehavior",void 0);
_.q([_.I(_.$l),_.N("design:type",Object)],Z$.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Z$.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],Z$.prototype,"vertical",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Z$.prototype,"dataChanged",null);Z$=_.q([_.d({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],Z$);
_.w(Z$,"ytd-single-option-survey-renderer",function(){if(OSc!==void 0)return OSc;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return OSc=x},{mode:1});var XTi;var Mw=function(){var x=_.n.apply(this,arguments)||this;x.darkerDarkTheme=_.B("web_darker_dark_theme");return x};
_.m(Mw,_.n);Mw.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Mw.prototype.onDismissTap=function(){_.xO(this.hostElement,"yt-close-popup-action")};
Mw.prototype.onNavigate=function(){_.xO(this.hostElement,"yt-close-popup-action")};
Mw.prototype.onNavigate=Mw.prototype.onNavigate;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Mw.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.Tg.YtEventForwardingBehavior),_.N("design:type",Object)],Mw.prototype,"ytEventForwardingBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Mw.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Mw.prototype,"darkerDarkTheme",void 0);
_.q([_.oe("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Mw.prototype,"onNavigate",null);Mw=_.q([_.d({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],Mw);
_.w(Mw,"ytd-survey-follow-up-renderer",function(){if(XTi!==void 0)return XTi;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return XTi=x},{mode:1});var Apj;var UEc;var RKc;var QX=function(){var x=_.n.apply(this,arguments)||this;x.polymer2="Element"in Polymer;return x};
_.m(QX,_.n);_.a=QX.prototype;_.a.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.a.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.a.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.a.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Xt("minutes-changed",this.minutes))};
_.a.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Xt("seconds-changed",this.seconds))};
_.a.updateMinutesFromBinding=function(x){this.minutes=x.detail.value};
_.a.updateSecondsFromBinding=function(x){this.seconds=x.detail.value};
QX.prototype.secondsChangedForBinding=QX.prototype.secondsChangedForBinding;QX.prototype.minutesChangedForBinding=QX.prototype.minutesChangedForBinding;QX.prototype.secondsChanged=QX.prototype.secondsChanged;_.q([_.R(),_.N("design:type",String)],QX.prototype,"minutes",void 0);_.q([_.R(),_.N("design:type",String)],QX.prototype,"seconds",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],QX.prototype,"polymer2",void 0);
_.q([_.cD("#seconds"),_.N("design:type",Object)],QX.prototype,"secondsEl",void 0);_.q([_.yf("seconds"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],QX.prototype,"secondsChanged",null);_.q([_.yf("minutes"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],QX.prototype,"minutesChangedForBinding",null);
_.q([_.yf("seconds"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],QX.prototype,"secondsChangedForBinding",null);QX=_.q([_.HD({is:"yt-timestamp-input",disableElementRegistration:!0})],QX);
_.w(QX,"yt-timestamp-input",function(){if(RKc===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;UEc===void 0&&(UEc=document.createElement("template"));var K=UEc;D.call(G,K.content.cloneNode(!0),x.content.firstChild);RKc=x}x=RKc;return x},{mode:2});var p5=function(){return _.n.apply(this,arguments)||this};
_.m(p5,_.n);_.a=p5.prototype;_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$18112_scroller.dialogElement=this.hostElement.parentNode};
_.a.dataChanged=function(){var x=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.vH().getPlayerPromise().then(function(G){G=G.getCurrentTime();x.minutes=Math.floor(G/60).toString();x.seconds=(Math.floor(G)%60).toString()})};
_.a.onTapSubmit=function(x){x.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(x={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(x.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(x.minutes=this.minutes,x.seconds=this.seconds),_.Eo().resolve(_.hm).resolveCommand(this.serviceEndpoint,{form:Object.assign({},x,{element:this.hostElement})}))};
_.a.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.a.onYtServiceRequestCompleted=function(x,G){G=G.actions;if(Array.isArray(G))for(var D=0,K=G.length;D<K;D++)_.Y(G[D],_.bz)&&(x.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(G[D]))};
_.a.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.a.toggleSubmitButton=function(x){this.set("submitButton.isDisabled",!x)};
_.a.handleInput=function(){var x=this.issueType,G=this.affiliation,D=this.minutes,K=this.seconds;D=!this.showTimestamp||!!D&&!!K;this.toggleSubmitButton(!!this.descriptionText&&!!x&&!!G&&D)};
_.a.computeServiceEndpoint=function(x){return this.get("submitButton.buttonRenderer.serviceEndpoint",x)};
_.a.computeSubmitButton=function(x){(x=this.get("submitButton.buttonRenderer",x))&&(x=Object.assign({},x,{serviceEndpoint:void 0}));return x};
_.a.computeShowTimestamp=function(x){return!!x};
_.a.onValueChangedForIssueType=function(x){this.issueType=x.detail.value};
_.a.onValueChangedForAffiliation=function(x){this.affiliation=x.detail.value};
_.a.updateDescriptionTextFromBinding=function(x){this.descriptionText=x.detail.value};
_.a.updateFullNameTextFromBinding=function(x){this.fullNameText=x.detail.value};
_.a.updateMinutesFromBinding=function(x){this.minutes=x.detail.value};
_.a.updateSecondsFromBinding=function(x){this.seconds=x.detail.value};
p5.prototype.handleInput=p5.prototype.handleInput;p5.prototype.onYtServiceRequestError=p5.prototype.onYtServiceRequestError;p5.prototype.onYtServiceRequestCompleted=p5.prototype.onYtServiceRequestCompleted;p5.prototype.onYtServiceRequestSent=p5.prototype.onYtServiceRequestSent;p5.prototype.dataChanged=p5.prototype.dataChanged;_.q([_.I(_.yU.YtOpenPopupBehavior),_.N("design:type",Object)],p5.prototype,"ytOpenPopupBehavior",void 0);
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],p5.prototype,"ytRendererBehavior",void 0);_.q([_.cD("#scroller"),_.N("design:type",Object)],p5.prototype,"JSC$18112_scroller",void 0);_.q([_.cD("#description"),_.N("design:type",HTMLInputElement)],p5.prototype,"description",void 0);_.q([_.cD("#full-name"),_.N("design:type",Object)],p5.prototype,"fullName",void 0);_.q([_.R(),_.N("design:type",Object)],p5.prototype,"data",void 0);
_.q([_.R({computed:"computeShowTimestamp(data.timestampLabel)"}),_.N("design:type",Boolean)],p5.prototype,"showTimestamp",void 0);_.q([_.R({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.N("design:type",Object)],p5.prototype,"serviceEndpoint",void 0);_.q([_.R({computed:"computeSubmitButton(data)"}),_.N("design:type",Object)],p5.prototype,"submitButton",void 0);_.q([_.R(),_.N("design:type",String)],p5.prototype,"descriptionText",void 0);
_.q([_.R(),_.N("design:type",Number)],p5.prototype,"issueType",void 0);_.q([_.R(),_.N("design:type",Number)],p5.prototype,"affiliation",void 0);_.q([_.R(),_.N("design:type",String)],p5.prototype,"fullNameText",void 0);_.q([_.R(),_.N("design:type",String)],p5.prototype,"minutes",void 0);_.q([_.R(),_.N("design:type",String)],p5.prototype,"seconds",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],p5.prototype,"dataChanged",null);
_.q([_.oe("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Ou]),_.N("design:returntype")],p5.prototype,"onYtServiceRequestSent",null);_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.gG]),_.N("design:returntype")],p5.prototype,"onYtServiceRequestCompleted",null);
_.q([_.oe("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],p5.prototype,"onYtServiceRequestError",null);_.q([_.yf("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],p5.prototype,"handleInput",null);p5=_.q([_.d({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],p5);
_.w(p5,"ytd-legal-report-details-form-renderer",function(){if(Apj!==void 0)return Apj;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Apj=x},{mode:1});var Snj;var VX=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return x};
_.m(VX,_.n);VX.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
VX.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var x=this.formRenderer.getForm();x&&this.data.submitEndpoint&&(_.Eo().resolve(_.hm).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},x,{element:this.hostElement})}),_.xO(this.hostElement,"yt-close-popup-action"))}};
VX.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.xO(this.hostElement,"yt-close-popup-action"))};
VX.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
VX.prototype.onPopupClosed=VX.prototype.onPopupClosed;_.q([_.I(_.Tg.YtEventForwardingBehavior),_.N("design:type",Object)],VX.prototype,"ytEventForwardingBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],VX.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],VX.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],VX.prototype,"ytRendererBehavior",void 0);
_.q([_.cD("yt-form-renderer"),_.N("design:type",Object)],VX.prototype,"formRenderer",void 0);_.q([_.R(),_.N("design:type",Object)],VX.prototype,"data",void 0);_.q([_.oe("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],VX.prototype,"onPopupClosed",null);VX=_.q([_.d({is:"ytd-form-popup-content",disableElementRegistration:!0})],VX);
_.w(VX,"ytd-form-popup-content",function(){if(Snj!==void 0)return Snj;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Snj=x},{mode:1});var nlc;var bY=function(){return _.n.apply(this,arguments)||this};
_.m(bY,_.n);bY.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
bY.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
bY.prototype.onPopupOpened=function(){_.h$(this.hostElement,"yt-invalidate-popup-tabbables")};
bY.prototype.onYtServiceRequestCompleted=function(x,G){G.data&&G.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.h$(this.hostElement,"yt-invalidate-popup-tabbables"))};
bY.prototype.onYtServiceRequestCompleted=bY.prototype.onYtServiceRequestCompleted;bY.prototype.onPopupOpened=bY.prototype.onPopupOpened;_.q([_.I(_.Tg.YtEventForwardingBehavior),_.N("design:type",Object)],bY.prototype,"ytEventForwardingBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],bY.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],bY.prototype,"ytRendererBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],bY.prototype,"data",void 0);_.q([_.oe("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bY.prototype,"onPopupOpened",null);_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.gG]),_.N("design:returntype")],bY.prototype,"onYtServiceRequestCompleted",null);bY=_.q([_.d({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],bY);
_.w(bY,"ytd-form-popup-renderer",function(){if(nlc!==void 0)return nlc;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return nlc=x},{mode:1});var iS6;var L5=function(){var x=_.n.apply(this,arguments)||this;x.isLoading=!1;return x};
_.m(L5,_.n);_.a=L5.prototype;_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");JmC(this.hostElement)};
_.a.onYtServiceRequestSent=function(){this.isLoading=!0};
_.a.onYtServiceRequestCompleted=function(){_.xO(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.a.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.zl(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.a.closePopupHandler=function(){this.fireOnCloseActions()};
_.a.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var x=this.get("data.headerImage.thumbnails");x&&(x=_.k$(x,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+x+")")}};
_.a.onYtNavigate=function(x){(x=_.uo(x))&&x.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
L5.prototype.onYtNavigate=L5.prototype.onYtNavigate;L5.prototype.onHeaderImageChanged=L5.prototype.onHeaderImageChanged;L5.prototype.closePopupHandler=L5.prototype.closePopupHandler;L5.prototype.onYtServiceRequestCompleted=L5.prototype.onYtServiceRequestCompleted;L5.prototype.onYtServiceRequestSent=L5.prototype.onYtServiceRequestSent;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],L5.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.Tg.YtEventForwardingBehavior),_.N("design:type",Object)],L5.prototype,"ytEventForwardingBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],L5.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],L5.prototype,"isLoading",void 0);_.q([_.cD("#header"),_.N("design:type",HTMLDivElement)],L5.prototype,"header",void 0);_.q([_.cD("#confirm-button"),_.N("design:type",_.ZN)],L5.prototype,"confirmButton",void 0);
_.q([_.oe("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],L5.prototype,"onYtServiceRequestSent",null);_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],L5.prototype,"onYtServiceRequestCompleted",null);
_.q([_.oe("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],L5.prototype,"closePopupHandler",null);_.q([_.yf("data.headerImage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],L5.prototype,"onHeaderImageChanged",null);_.q([_.oe("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],L5.prototype,"onYtNavigate",null);
L5=_.q([_.d({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],L5);
_.w(L5,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(iS6!==void 0)return iS6;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return iS6=x},{mode:1});var glO;var B8=function(){var x=_.n.apply(this,arguments)||this;x.isLoading=!1;return x};
_.m(B8,_.n);_.a=B8.prototype;_.a.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"}}}};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);JmC(this.hostElement)};
_.a.onYtServiceRequestCompleted=function(){_.xO(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.a.onYtServiceRequestError=function(x){_.kL(this.hostElement,x.detail.error.message)};
_.a.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.a.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.xO(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.a.onDataChanged=function(){this.isLoading=!1;var x=this.get("data.headerImage.thumbnails");x&&(x=_.k$(x,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+x+")");x=_.CC();var G=_.Fx(),D=this.get("data.trackingParams");D&&G&&x&&_.RI(x,G,_.V2(D))};
_.Nq.Object.defineProperties(B8.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
B8.prototype.onDataChanged=B8.prototype.onDataChanged;B8.prototype.onDomChange=B8.prototype.onDomChange;B8.prototype.onYtServiceRequestError=B8.prototype.onYtServiceRequestError;B8.prototype.onYtServiceRequestCompleted=B8.prototype.onYtServiceRequestCompleted;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],B8.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],B8.prototype,"ytRendererBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],B8.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],B8.prototype,"isLoading",void 0);_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],B8.prototype,"hasDescription",null);_.q([_.cD("tp-yt-paper-dialog-scrollable"),_.N("design:type",Object)],B8.prototype,"scrollable",void 0);_.q([_.cD("#header"),_.N("design:type",HTMLElement)],B8.prototype,"header",void 0);
_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],B8.prototype,"onYtServiceRequestCompleted",null);_.q([_.oe("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],B8.prototype,"onYtServiceRequestError",null);
_.q([_.oe("dom-change"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],B8.prototype,"onDomChange",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],B8.prototype,"onDataChanged",null);B8=_.q([_.d({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],B8);
_.w(B8,"ytd-gaming-account-link-setting-renderer",function(){if(glO!==void 0)return glO;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return glO=x},{mode:1});var uLi;var dEi;var rZ=function(){var x=_.n.apply(this,arguments)||this;x.isHeader=!1;x.getEndpointForm=function(){return tqf(x.data)};
return x};
_.m(rZ,_.n);_.a=rZ.prototype;_.a.triggerHintActions=function(){var x=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var G=_.Gl(x.hostElement,"yt-get-opened-popups-action");!(G&&G.length===1?G[0]:[]).some(function(D){D=D.openPopupAction.popupType;return D==="SURVEY"||D==="MEALBAR"||D==="HINT"})&&x.data.hintActions&&x.guideOpened&&(_.zl(x.hostElement,x.data.hintActions,x.hostElement),x.data.hintActions=void 0)})};
_.a.getBadgeIconType=function(x){return x&&x.liveBroadcasting?"live":null};
_.a.onDown=function(){this.interaction.triggerDown()};
_.a.onUp=function(){this.interaction.triggerUp()};
_.a.onTap=function(x){if(this.data.serviceEndpoint){var G;_.B("shorts_controller_retrieve_seedless_sequence_v2")&&((G=_.Y(this.data.serviceEndpoint,_.MB))==null?void 0:G.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):fui(this.data.serviceEndpoint,this);x.preventDefault()}else this.data.navigationEndpoint&&!_.u_(_.gA(x),this.hostElement,["A".toString()])&&_.h$(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.a.computeActive=function(x,G){if(!x)return!1;var D=x.navigationEndpoint;x=x.serviceEndpoint;if(!D&&!x||!G)return!1;if(D){x=(x=_.ci(G))&&["subscriptions","filteredsubscriptions"].includes(x);if(_.Y(D,_.TU)&&_.Y(G,_.TU)&&!x){var K=_.Y(D,_.TU).browseId;G=_.Y(G,_.TU).browseId;return K!==void 0&&G!==void 0&&(K===G||K==="VLWL"&&G==="FEwatch_later"||K==="FEwatch_later"&&G==="VLWL")}var z;D=(z=_.Y(D.commandMetadata,_.fC))==null?void 0:z.url;G=(K=_.Y(G.commandMetadata,_.fC))==null?void 0:K.url;return!(!D||
!G||D!==G&&D!==_.c0(G))}return this.isActiveShortsTab(x,G)};
_.a.isActiveShortsTab=function(x,G){G=!!_.Y(G,_.MB)||!!_.Y(G,_.mP);return(!!_.Y(x,_.MB)||!!_.Y(x,_.mP))&&G};
_.a.computeIsPrimary=function(x){return!!x};
_.Nq.Object.defineProperties(rZ.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 x=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&x)return x}}});
rZ.prototype.onTap=rZ.prototype.onTap;rZ.prototype.onUp=rZ.prototype.onUp;rZ.prototype.onDown=rZ.prototype.onDown;rZ.prototype.triggerHintActions=rZ.prototype.triggerHintActions;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],rZ.prototype,"componentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],rZ.prototype,"rendererBehavior",void 0);_.q([_.I(_.qz.YtTaskEmitterBehavior),_.N("design:type",Object)],rZ.prototype,"taskEmitterBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],rZ.prototype,"activeEndpoint",void 0);_.q([_.R(),_.N("design:type",Object)],rZ.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Boolean)],rZ.prototype,"guideOpened",void 0);_.q([_.R(),_.N("design:type",String)],rZ.prototype,"type",void 0);_.q([_.cD("yt-interaction"),_.N("design:type",Object)],rZ.prototype,"interaction",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],rZ.prototype,"isHeader",void 0);
_.q([_.R({reflectToAttribute:!0}),_.U("data","activeEndpoint"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],rZ.prototype,"active",null);_.q([_.R({reflectToAttribute:!0}),_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],rZ.prototype,"isPrimary",null);_.q([_.R({reflectToAttribute:!0}),_.U("data.count","data.presentationStyle","data.badges.*"),_.N("design:type",String),_.N("design:paramtypes",[])],rZ.prototype,"lineEndStyle",null);
_.q([_.U("lineEndStyle"),_.N("design:type",Object),_.N("design:paramtypes",[])],rZ.prototype,"ariaLabel",null);_.q([_.yf("data.hintActions","guideOpened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rZ.prototype,"triggerHintActions",null);_.q([_.oe("down"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rZ.prototype,"onDown",null);
_.q([_.oe("up"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rZ.prototype,"onUp",null);_.q([_.oe("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],rZ.prototype,"onTap",null);rZ=_.q([_.d({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],rZ);
_.w(rZ,"ytd-guide-entry-renderer",function(){if(dEi!==void 0)return dEi;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return dEi=x},{mode:1});var sz=function(){var x=_.n.apply(this,arguments)||this;x.userToggled=!1;return x};
_.m(sz,_.n);_.a=sz.prototype;_.a.getItemsPath=function(){return"data.expandableItems"};
_.a.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.a.onExpanderItemTapped=function(x){var G=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.B("kevlar_guide_expandable_items_killswitch")&&_.w1(this,function(){_.Ju(G.expandableItems)});
x.preventDefault()};
_.a.onCollapserItemTapped=function(x){var G=this;this._setExpanded(!1);this.userToggled=!0;x.preventDefault();this.expandableItems&&!_.B("kevlar_guide_collapsible_items_killswitch")&&_.w1(this,function(){_.vS(G.hostElement)})};
_.a.observeActiveEndpoint=function(){for(var x=this.activeEndpoint,G=this.data,D=this.expandableItems.children,K=0,z=D.length;K<z;K++)D[K].activeEndpoint=x;G&&G.autoExpandCommand&&x&&!this.userToggled&&(D=this.data.autoExpandCommand,G=!(!_.Y(D,_.TU)||!_.Y(x,_.TU)||_.Y(D,_.TU).browseId!==_.Y(x,_.TU).browseId),x=this.get("commandMetadata.webCommandMetadata.url",x),D=this.get("commandMetadata.webCommandMetadata.url",D),G=G||!!(x&&D&&x.includes(D)),this._setExpanded(G),G&&this.ytLazyListBehavior.fillRemainingListItems())};
sz.prototype.observeActiveEndpoint=sz.prototype.observeActiveEndpoint;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],sz.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],sz.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.fS.YtLazyListBehavior),_.N("design:type",Object)],sz.prototype,"ytLazyListBehavior",void 0);_.q([_.cD("#expandable-items"),_.N("design:type",HTMLElement)],sz.prototype,"expandableItems",void 0);
_.q([_.R(),_.N("design:type",Object)],sz.prototype,"data",void 0);_.q([_.R({readOnly:!0,reflectToAttribute:!0}),_.N("design:type",Boolean)],sz.prototype,"expanded",void 0);_.q([_.R({value:0}),_.N("design:type",Number)],sz.prototype,"initialCount",void 0);_.q([_.R(),_.N("design:type",Object)],sz.prototype,"activeEndpoint",void 0);_.q([_.yf("data","activeEndpoint","canShowMore"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sz.prototype,"observeActiveEndpoint",null);
sz=_.q([_.d({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],sz);
_.w(sz,"ytd-guide-collapsible-entry-renderer",function(){if(uLi!==void 0)return uLi;var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-guide-entry-renderer id="expander-item" aria-expanded="[[expanded]]" data="[[data.expanderItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onExpanderItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n</ytd-guide-entry-renderer>\n<div id="expanded" class="style-scope ytd-guide-collapsible-entry-renderer">\n  <div id="expandable-items" class="style-scope ytd-guide-collapsible-entry-renderer"></div>\n  <ytd-guide-entry-renderer id="collapser-item" aria-expanded="[[expanded]]" data="[[data.collapserItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onCollapserItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return uLi=x},{mode:_.Ge("kevlar_poly_si_batch_j079")?1:2});var wTC;var qn6;var Yk=function(){var x=_.n.apply(this,arguments)||this;x.allVideosCount=0;x.renderGuideEntry=!1;return x};
_.m(Yk,_.n);Yk.prototype.observeRenderEntry=function(){var x;this.renderGuideEntry=!((x=this.data)==null||!x.alwaysShow)||!!this.allVideosCount};
Yk.prototype.observeRenderEntry=Yk.prototype.observeRenderEntry;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Yk.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],Yk.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Yk.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],Yk.prototype,"activeEndpoint",void 0);_.q([_.R({selector:_.M1d}),_.N("design:type",Object)],Yk.prototype,"allVideosCount",void 0);
_.q([_.R(),_.N("design:type",Object)],Yk.prototype,"renderGuideEntry",void 0);_.q([_.Z6("allVideosCount","data.alwaysShow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Yk.prototype,"observeRenderEntry",null);Yk=_.q([_.d({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],Yk);
_.w(Yk,"ytd-guide-downloads-entry-renderer",function(){if(qn6===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);qn6=x}x=qn6;return x},{mode:1});var mM=function(){var x=_.n.apply(this,arguments)||this;x.youtab=_.B("web_enable_youtab");x.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return x};
_.m(mM,_.n);_.a=mM.prototype;_.a.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]]"}}}}}};
_.a.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var x=this.sectionItems.children,G=0,D=x.length;G<D;G++)x[G].activeEndpoint=this.activeEndpoint}};
_.a.handleAddToGuideSectionAction=function(x){var G=_.Y(x,KKf);if(G&&this.data&&(x=G.items,G=G.handlerData,x&&G&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(G)>-1)){G=0;for(var D=x.length;G<D;G++)x[G].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,x[G])}};
_.a.handleRemoveFromGuideSectionAction=function(x){var G=_.Y(x,zqc);G&&this.data&&(x=G.guideEntryId,G=G.handlerData,x&&G&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(G)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(x,this.data.sectionItems),this.removeFromCollapsedSection(x,this.data.sectionItems)))};
_.a.removeFromExpandedSection=function(x,G){x=this.getEntryIndexMatchingId(x,G);x!==-1&&this.splice("data.sectionItems",x,1)};
_.a.removeFromCollapsedSection=function(x,G){var D=G.findIndex(function(K){return!!_.Y(K,BrO)});
D&&D!==-1&&G[D]&&_.Y(G[D],BrO)&&(G=_.Y(G[D],BrO).expandableItems)&&(x=this.getEntryIndexMatchingId(x,G),x!==-1&&this.splice("data.sectionItems."+D+".guideCollapsibleEntryRenderer.expandableItems",x,1))};
_.a.getEntryIndexMatchingId=function(x,G){var D=this;return G.findIndex(function(K){return D.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",K)===x})};
mM.prototype.activeEndpointChanged=mM.prototype.activeEndpointChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],mM.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],mM.prototype,"actionHandlerBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],mM.prototype,"ytRendererstamperBehavior",void 0);_.q([_.cD("#section-items"),_.N("design:type",HTMLDivElement)],mM.prototype,"sectionItems",void 0);
_.q([_.cD("#header-entry"),_.N("design:type",Object)],mM.prototype,"headerEntry",void 0);_.q([_.R(),_.N("design:type",Object)],mM.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],mM.prototype,"activeEndpoint",void 0);_.q([_.R(),_.N("design:type",Object)],mM.prototype,"youtab",void 0);_.q([_.yf("activeEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mM.prototype,"activeEndpointChanged",null);
mM=_.q([_.d({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],mM);
_.w(mM,"ytd-guide-collapsible-section-entry-renderer",function(){if(wTC===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);wTC=x}x=wTC;return x},{mode:1});var NEb;var vlb;var H8=function(){var x=_.n.apply(this,arguments)||this;x.modernTypography=_.B("web_modern_typography");x.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 x};
_.m(H8,_.n);_.a=H8.prototype;
_.a.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}}}}};
_.a.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var x=_.Gl(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);x&&x.length===1&&x[0]&&_.Gl(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.a.handleResetChannelUnreadCountCommand=function(x){var G;(x=(G=_.Y(x,oyO))==null?void 0:G.channelId)&&this.data&&this.data.items&&(G=this.getPathToEntryMatchingId(x))&&(this.set(G+".guideEntryRenderer.count",0),this.set(G+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.a.handleResetSubscriptionsUnreadDotCommand=function(x){var G,D=(G=_.Y(x,yyC))==null?void 0:G.targetId,K;D&&(K=this.data)!=null&&K.items&&(x=this.data.items.findIndex(function(z){var y;return((y=z.guideEntryRenderer)==null?void 0:y.targetId)===D}),x<0||this.set("data.items."+x+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.a.getPathToEntryMatchingId=function(x){if(this.data&&this.data.items){var G=this.getEntryIndexMatchingId(x,this.data.items);if(G>-1)return"data.items."+G;for(var D=0;D<this.data.items.length;D++)if(G=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[D]))if(G=this.getEntryIndexMatchingId(x,G),G>-1)return"data.items."+D+".guideCollapsibleEntryRenderer.expandableItems."+G}};
_.a.handleAddToGuideSectionAction=function(x){var G=this;if(_.Y(x,KKf)){var D=_.Y(x,KKf).items;x=_.Y(x,KKf).handlerData;var K,z;D&&x&&((K=this.data)==null?void 0:(z=K.handlerDatas)==null?void 0:z.indexOf(x))>-1&&(D=D.filter(function(y){return(y=G.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",y))&&!G.isGuideItemPresent(y)}),this.unshift.apply(this,["data.items"].concat(_.B5(D))))}};
_.a.isGuideItemPresent=function(x){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(x,this.data.items)!==-1)return!0;var G=this.data.items.find(function(D){return!!D.guideCollapsibleEntryRenderer});
if((G==null?0:G.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(x,G.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.a.getEntryIndexMatchingId=function(x,G){var D=this;return G.findIndex(function(K){return D.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",K)===x})};
_.a.handleRemoveFromGuideSectionAction=function(x){if(_.Y(x,zqc)){var G=_.Y(x,zqc).guideEntryId;x=_.Y(x,zqc).handlerData;var D,K;G&&x&&((D=this.data)==null?void 0:(K=D.handlerDatas)==null?void 0:K.indexOf(x))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(G,this.data.items),this.removeFromCollapsedSection(G,this.data.items))}};
_.a.removeFromExpandedSection=function(x,G){x=this.getEntryIndexMatchingId(x,G);x!==-1&&this.splice("data.items",x,1)};
_.a.removeFromCollapsedSection=function(x,G){var D=G.findIndex(function(K){return!!K.guideCollapsibleEntryRenderer});
D!==-1&&(G=G[D].guideCollapsibleEntryRenderer.expandableItems)&&(x=this.getEntryIndexMatchingId(x,G),x!==-1&&this.splice("data.items."+D+".guideCollapsibleEntryRenderer.expandableItems",x,1))};
_.a.activeEndpointChanged=function(){for(var x=_.kA(this.hostElement).querySelector("#items").children,G=0,D=x.length;G<D;G++)x[G].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.a.guideOpenedChanged=function(){for(var x=_.kA(this.hostElement).querySelector("#items").children,G=0,D=x.length;G<D;G++)x[G].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
H8.prototype.guideOpenedChanged=H8.prototype.guideOpenedChanged;H8.prototype.activeEndpointChanged=H8.prototype.activeEndpointChanged;H8.prototype.persistentGuideChanged=H8.prototype.persistentGuideChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],H8.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],H8.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],H8.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.fS.YtLazyListBehavior),_.N("design:type",Object)],H8.prototype,"ytLazyListBehavior",void 0);_.q([_.I(_.XL.YtdGuideStateAwareBehavior),_.N("design:type",Object)],H8.prototype,"ytdGuideStateAwareBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],H8.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],H8.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],H8.prototype,"modernTypography",void 0);_.q([_.R(),_.N("design:type",String)],H8.prototype,"type",void 0);_.q([_.R({value:20}),_.N("design:type",Number)],H8.prototype,"initialCount",void 0);_.q([_.R({value:10}),_.N("design:type",Number)],H8.prototype,"targetFramerate",void 0);_.q([_.R({value:!0}),_.N("design:type",Boolean)],H8.prototype,"autoFill",void 0);_.q([_.R({value:50}),_.N("design:type",Number)],H8.prototype,"renderDelay",void 0);
_.q([_.yf("guidePersistentAndVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],H8.prototype,"persistentGuideChanged",null);_.q([_.Z6("activeEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],H8.prototype,"activeEndpointChanged",null);_.q([_.Z6("guideOpened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],H8.prototype,"guideOpenedChanged",null);
H8=_.q([_.d({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],H8);
_.w(H8,"ytd-guide-section-renderer",function(){if(vlb!==void 0)return vlb;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return vlb=x},{mode:_.Ge("kevlar_poly_si_batch_j073")?1:2});var Jpx;var $k=function(){return _.n.apply(this,arguments)||this};
_.m($k,_.n);_.Nq.Object.defineProperties($k.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],$k.prototype,"rendererBehaviors",void 0);_.q([_.R(),_.N("design:type",Object)],$k.prototype,"data",void 0);_.q([_.R(),_.U("data.signInButton.buttonRenderer.style"),_.N("design:type",Object),_.N("design:paramtypes",[])],$k.prototype,"alignByText",null);$k=_.q([_.d({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],$k);
_.w($k,"ytd-guide-signin-promo-renderer",function(){if(Jpx===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);Jpx=x}x=Jpx;return x},{mode:1});var Fy=function(){var x=_.n.apply(this,arguments)||this;x.showFooter=!1;return x};
_.m(Fy,_.n);Fy.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}}}}};
Fy.prototype.attached=function(){var x=this,G;return _.T(function(D){if(D.nextAddress==1){G=_.Eo().resolve(_.P6(_.On));if(!G)return D.jumpTo(0);G.setGuideData(x.hostElement);return _.Z(D,0,3)}x.ytLazyListBehavior.initialCount=2;return D.return()})};
Fy.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
Fy.prototype.dataChanged=Fy.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Fy.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Fy.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.fS.YtLazyListBehavior),_.N("design:type",Object)],Fy.prototype,"ytLazyListBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Fy.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],Fy.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],Fy.prototype,"showFooter",void 0);_.q([_.R({value:!0}),_.N("design:type",Boolean)],Fy.prototype,"autoFill",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fy.prototype,"dataChanged",null);Fy=_.q([_.d({is:"ytd-guide-renderer",disableElementRegistration:!0})],Fy);
_.w(Fy,"ytd-guide-renderer",function(){if(NEb!==void 0)return NEb;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return NEb=x},{mode:_.Ge("kevlar_poly_si_batch_j073")?1:2});var fe8;var C5=function(){var x=_.n.apply(this,arguments)||this;x.systemIcons=_.B("kevlar_system_icons");x.frostedGlass=_.B("web_frosted_glass");x.getEndpointForm=function(){return tqf(x.data)};
return x};
_.m(C5,_.n);_.a=C5.prototype;_.a.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.a.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.u7(this.data.formattedTitle))};
_.a.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.a.onDown=function(){this.interaction.triggerDown()};
_.a.onUp=function(){this.interaction.triggerUp()};
_.a.onTap=function(x){if(this.data.serviceEndpoint){var G;_.B("shorts_controller_retrieve_seedless_sequence_v2")&&((G=_.Y(this.data.serviceEndpoint,_.MB))==null?void 0:G.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):fui(this.data.serviceEndpoint,this);x.preventDefault()}else{var D;((D=this.data)==null?0:D.navigationEndpoint)&&!_.u_(_.gA(x),this.hostElement,["A".toString()])&&_.h$(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.a.computeActive=function(x,G){if(!x)return!1;var D=x.navigationEndpoint;x=x.serviceEndpoint;if(!D&&!x||!G)return!1;if(D){x=_.Y(D,_.TU);var K=_.Y(G,_.TU);if(x&&K)return x.browseId===K.browseId&&x.params===K.params;var z;D=(z=_.Y(D.commandMetadata,_.fC))==null?void 0:z.url;var y;G=(y=_.Y(G.commandMetadata,_.fC))==null?void 0:y.url;return!(!D||!G||D!==G&&D!==_.c0(G))}return this.isActiveShortsTab(x,G)};
_.a.isActiveShortsTab=function(x,G){G=!!_.Y(G,_.MB)||!!_.Y(G,_.mP);return(!!_.Y(x,_.MB)||!!_.Y(x,_.mP))&&G};
_.a.computeTitle=function(x,G){return G?"":_.u7(x)};
_.Nq.Object.defineProperties(C5.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
C5.prototype.onTap=C5.prototype.onTap;C5.prototype.onUp=C5.prototype.onUp;C5.prototype.onDown=C5.prototype.onDown;C5.prototype.onActiveStateChange=C5.prototype.onActiveStateChange;C5.prototype.dataChanged=C5.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],C5.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],C5.prototype,"ytComponentBehavior",void 0);
_.q([_.I(_.sd),_.N("design:type",Object)],C5.prototype,"ironButtonState",void 0);_.q([_.R(),_.N("design:type",Object)],C5.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],C5.prototype,"activeEndpoint",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],C5.prototype,"noLabels",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.N("design:type",Boolean)],C5.prototype,"isActive",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],C5.prototype,"systemIcons",void 0);_.q([_.cD("yt-interaction"),_.N("design:type",Object)],C5.prototype,"interaction",void 0);_.q([_.U("isActive"),_.N("design:type",Object),_.N("design:paramtypes",[])],C5.prototype,"ariaSelected",null);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],C5.prototype,"frostedGlass",void 0);
_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],C5.prototype,"dataChanged",null);_.q([_.yf("isActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],C5.prototype,"onActiveStateChange",null);_.q([_.oe("down"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],C5.prototype,"onDown",null);
_.q([_.oe("up"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],C5.prototype,"onUp",null);_.q([_.oe("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],C5.prototype,"onTap",null);C5=_.q([_.d({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],C5);
_.w(C5,"ytd-mini-guide-entry-renderer",function(){if(fe8!==void 0)return fe8;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return fe8=x},{mode:_.Ge("kevlar_poly_si_batch_j063")?1:2});var tyi;var I5=function(){var x=_.n.apply(this,arguments)||this;x.allVideosCount=0;x.noLabels=_.B("kevlar_mini_guide_no_labels");x.frostedGlass=_.B("web_frosted_glass");return x};
_.m(I5,_.n);_.a=I5.prototype;_.a.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.a.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.a.visibleChanged=function(){if(this.visible&&!this.data){var x=_.Eo().resolve(_.P6(_.On));x&&x.setGuideData(this.hostElement)}};
_.a.dataChanged=function(){var x=[],G;if((G=this.data)!=null&&G.items){G=_.l(this.data.items);for(var D=G.next();!D.done;D=G.next()){D=D.value;var K=void 0;if((K=D.guideSectionRenderer)==null?0:K.items)for(K=void 0,D=_.l((K=D.guideSectionRenderer)==null?void 0:K.items),K=D.next();!K.done;K=D.next())if(K=K.value,K.guideEntryRenderer)K=K.guideEntryRenderer,K.isPrimary&&x.push({guideEntryRenderer:K});else if(K.guideCollapsibleSectionEntryRenderer){var z=void 0;((z=_.Y(K.guideCollapsibleSectionEntryRenderer.headerEntry,
u3))==null?0:z.isPrimary)&&x.push({guideEntryRenderer:_.Y(K.guideCollapsibleSectionEntryRenderer.headerEntry,u3)});if(K=K.guideCollapsibleSectionEntryRenderer.sectionItems)for(K=_.l(K),z=K.next();!z.done;z=K.next()){var y=z.value;z=_.Y(y,ryT);var c=void 0;((c=_.Y(y,u3))==null?0:c.isPrimary)?x.push({guideEntryRenderer:_.Y(y,u3)}):z&&(y=void 0,_.Y((y=z)==null?void 0:y.entryRenderer,u3)&&(z.alwaysShow||this.allVideosCount)&&x.push({guideEntryRenderer:_.Y(z.entryRenderer,u3)}))}}}}this.miniGuideItems=
x};
_.a.activeEndpointChanged=function(){for(var x=this.items.children,G=0;G<x.length;G++)x[G].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
I5.prototype.activeEndpointChanged=I5.prototype.activeEndpointChanged;I5.prototype.dataChanged=I5.prototype.dataChanged;I5.prototype.visibleChanged=I5.prototype.visibleChanged;_.q([_.I(_.$l),_.N("design:type",Object)],I5.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],I5.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],I5.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.I(_.XL.YtdGuideStateAwareBehavior),_.N("design:type",Object)],I5.prototype,"ytdGuideStateAwareBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],I5.prototype,"ytComponentBehavior",void 0);_.q([_.cD("#items"),_.N("design:type",Object)],I5.prototype,"items",void 0);_.q([_.R(),_.N("design:type",Object)],I5.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Boolean)],I5.prototype,"visible",void 0);
_.q([_.R(),_.N("design:type",Object)],I5.prototype,"miniGuideItems",void 0);_.q([_.R({selector:_.M1d}),_.N("design:type",Object)],I5.prototype,"allVideosCount",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],I5.prototype,"noLabels",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],I5.prototype,"frostedGlass",void 0);_.q([_.Z6("visible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],I5.prototype,"visibleChanged",null);
_.q([_.Z6("data","allVideosCount"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],I5.prototype,"dataChanged",null);_.q([_.Z6("activeEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],I5.prototype,"activeEndpointChanged",null);I5=_.q([_.d({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],I5);
_.w(I5,"ytd-mini-guide-renderer",function(){if(tyi===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);tyi=x}x=tyi;return x},{mode:1});var kkc;var P44=/^[\x00-\x7F]+$/,j3=function(){var x=_.n.apply(this,arguments)||this;x.darkerDarkTheme=_.B("web_darker_dark_theme");return x};
_.m(j3,_.n);_.Nq.Object.defineProperties(j3.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var x,G=_.u7((x=this.data)==null?void 0:x.handle);if(G)return _.gK("@"+G)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var x=_.u7(this.displayHandle),G,D=_.u7((G=this.data)==null?void 0:G.handleUrl);if(x&&D)return _.gK(D+x)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var x=_.u7(this.displayHandle);if(x&&!P44.test(x)){var G;return(G=this.data)==null?void 0:G.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var x=_.u7(this.displayHandleUrl),G,D=_.u7((G=this.data)==null?void 0:G.urlInfoText);if(x&&D)return _.gK(D+" "+x)}}});
_.q([_.R(),_.N("design:type",Object)],j3.prototype,"data",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],j3.prototype,"displayHandle",null);_.q([_.U("displayHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],j3.prototype,"displayHandleUrl",null);_.q([_.U("displayHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],j3.prototype,"warningText",null);
_.q([_.U("displayHandleUrl"),_.N("design:type",Object),_.N("design:paramtypes",[])],j3.prototype,"urlInfoTextWithUrl",null);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],j3.prototype,"darkerDarkTheme",void 0);j3=_.q([_.d({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],j3);
_.w(j3,"ytd-handles-claiming-confirm-dialog-content",function(){if(kkc!==void 0)return kkc;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return kkc=x},{mode:1});var El6;var Oz=function(){var x=_.n.apply(this,arguments)||this;x.okButtonOverride={style:"mono",type:"outline",size:"M"};return x};
_.m(Oz,_.n);Oz.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Oz.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Oz.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Oz.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Oz.prototype,"okButtonOverride",void 0);_.q([_.R(),_.N("design:type",Object)],Oz.prototype,"data",void 0);Oz=_.q([_.d({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],Oz);
_.w(Oz,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(El6!==void 0)return El6;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return El6=x},{mode:1});var hKb;var xdO=/^[\x00-\x7F]+$/,Xy=function(){var x=_.n.apply(this,arguments)||this;x.isLoading=!1;x.darkerDarkTheme=_.B("web_darker_dark_theme");return x};
_.m(Xy,_.n);Xy.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var x;this.selectedHandle=(x=this.handleInput)==null?void 0:x.value;this.onSelectedHandleChanged(this.selectedHandle);_.Gl(this.hostElement,"yt-refit-popups-action")}};
_.Nq.Object.defineProperties(Xy.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.gK("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.gK(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!xdO.test(this.selectedHandle)){var x;return(x=this.data)==null?void 0:x.warningText}}}});
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Xy.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Xy.prototype,"data",void 0);_.q([_.R(),_.N("design:type",String)],Xy.prototype,"selectedHandle",void 0);_.q([_.R(),_.N("design:type",Object)],Xy.prototype,"isLoading",void 0);_.q([_.R(),_.N("design:type",Function)],Xy.prototype,"onSelectedHandleChanged",void 0);_.q([_.cD("#channel-handle-input"),_.N("design:type",Object)],Xy.prototype,"handleInput",void 0);
_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Xy.prototype,"handleUrlPrefix",null);_.q([_.U("selectedHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],Xy.prototype,"displayHandle",null);_.q([_.U("selectedHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],Xy.prototype,"displayHandleUrl",null);_.q([_.U("selectedHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],Xy.prototype,"warningText",null);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Xy.prototype,"darkerDarkTheme",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Xy.prototype,"ytRendererBehavior",void 0);Xy=_.q([_.d({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],Xy);
_.w(Xy,"ytd-handles-claiming-edit-dialog-content",function(){if(hKb!==void 0)return hKb;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return hKb=x},{mode:1});var Gp8;var A5=function(){var x=_.n.apply(this,arguments)||this;x.actionButtonOverride={style:"mono",type:"filled",size:"M"};x.cancelButtonOverride={style:"mono",type:"text",size:"M"};x.selectButtonDisabled=!1;x.isLoading=!1;x.hasSelectedHandleEventListener=!1;x.selectedHandleChanged=function(G){x.selectedHandle=G};
return x};
_.m(A5,_.n);_.a=A5.prototype;_.a.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.a.onDataChanged=function(){var x,G;this.selectedHandle=(G=_.Y((x=this.data)==null?void 0:x.inputField,EGT))==null?void 0:G.handle};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.onCancel=function(){this.selectedHandle="";_.xO(this.hostElement,"yt-close-popup-action",[this.is])};
_.a.onSelectHandle=function(){var x=this;if(this.selectedHandle!==void 0){var G;((G=this.data)==null?void 0:G.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(D,K){if(K.newHandleUpdateStatus!==void 0&&K.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&K.newHandleUpdateStatus.errorMessage)_.kL(x.hostElement,_.u7(K.newHandleUpdateStatus.errorMessage)),
x.isLoading=!1;else{var z;if((z=x.data)==null?0:z.onChannelUpdateSuccess){D=x.data.onChannelUpdateSuccess;var y,c;if(K=(y=_.Y(D,_.bz))==null?void 0:(c=y.popup)==null?void 0:c.handlesClaimingConfirmDialogRenderer)K.handle=_.gK(x.selectedHandle);x.ytComponentBehavior.resolveCommand(D);_.xO(x.hostElement,"yt-close-popup-action",[x.is])}else x.isLoading=!1}},
onServerError:function(){var D;x.content&&((D=x.content)==null?0:D.handleInput)&&x.content.handleInput.validate();x.isLoading=!1;_.kL(x.hostElement,_.Wg("TRY_AGAIN_LATER"))}}}))}};
_.a.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
A5.prototype.onDataChanged=A5.prototype.onDataChanged;A5.prototype.onSelectedHandleChanged=A5.prototype.onSelectedHandleChanged;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],A5.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],A5.prototype,"actionButtonOverride",void 0);_.q([_.R(),_.N("design:type",Object)],A5.prototype,"cancelButtonOverride",void 0);_.q([_.R(),_.N("design:type",Object)],A5.prototype,"data",void 0);
_.q([_.R(),_.N("design:type",String)],A5.prototype,"selectedHandle",void 0);_.q([_.R(),_.N("design:type",Object)],A5.prototype,"selectButtonDisabled",void 0);_.q([_.R(),_.N("design:type",Object)],A5.prototype,"isLoading",void 0);_.q([_.R(),_.N("design:type",Object)],A5.prototype,"hasSelectedHandleEventListener",void 0);_.q([_.R(),_.N("design:type",Object)],A5.prototype,"handleInput",void 0);
_.q([_.yf("selectedHandle"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],A5.prototype,"onSelectedHandleChanged",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],A5.prototype,"onDataChanged",null);_.q([_.cD("ytd-handles-claiming-edit-dialog-content"),_.N("design:type",Object)],A5.prototype,"content",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],A5.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],A5.prototype,"ytRendererstamperBehavior",void 0);A5=_.q([_.d({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],A5);
_.w(A5,"ytd-handles-claiming-edit-dialog-renderer",function(){if(Gp8!==void 0)return Gp8;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Gp8=x},{mode:1});var Ddf;var Uz=function(){return _.n.apply(this,arguments)||this};
_.m(Uz,_.n);_.Nq.Object.defineProperties(Uz.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.data)==null?0:x.handle){var G;return _.gK("@"+_.u7((G=this.data)==null?void 0:G.handle))}}}});
_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Uz.prototype,"formattedHandle",null);_.q([_.R(),_.N("design:type",Object)],Uz.prototype,"data",void 0);Uz=_.q([_.d({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],Uz);
_.w(Uz,"ytd-handles-claiming-radio-option-renderer",function(){if(Ddf!==void 0)return Ddf;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Ddf=x},{mode:1});var Kp6;var z24=/^[\x00-\x7F]+$/,R5=function(){var x=_.n.apply(this,arguments)||this;x.initialRadioIndex="-1";x.isLoading=!1;x.darkerDarkTheme=_.B("web_darker_dark_theme");x.maybeSubmitFeedback=function(){x.feedbackSurveyRenderer.submitSurvey()};
return x};
_.m(R5,_.n);R5.prototype.updateSelectedHandleIndexFromBinding=function(x){this.selectedRadioIndex=+x.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(x)};
R5.prototype.selectedHandleChanged=function(x){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var G;this.selectedHandle=(G=this.handleInput)==null?void 0:G.value;this.onSelectedHandleChanged(x)}};
_.Nq.Object.defineProperties(R5.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var x;return(((x=this.data)==null?void 0:x.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var x;return this.ytRendererBehavior.getSimpleString((x=this.data)==null?void 0:x.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.gK("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.gK(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!z24.test(this.selectedHandle)){var x;return(x=this.data)==null?void 0:x.warningText}}}});
_.q([_.R(),_.N("design:type",Object)],R5.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],R5.prototype,"initialRadioIndex",void 0);_.q([_.R(),_.N("design:type",Number)],R5.prototype,"selectedRadioIndex",void 0);_.q([_.R(),_.N("design:type",String)],R5.prototype,"selectedHandle",void 0);_.q([_.R(),_.N("design:type",Object)],R5.prototype,"isLoading",void 0);_.q([_.R(),_.N("design:type",Function)],R5.prototype,"onSelectedHandleChanged",void 0);
_.q([_.R(),_.N("design:type",Function)],R5.prototype,"onSelectedRadioIndexChanged",void 0);_.q([_.cD("#channel-handle-input"),_.N("design:type",Object)],R5.prototype,"handleInput",void 0);_.q([_.cD("ytd-feedback-survey-renderer"),_.N("design:type",Object)],R5.prototype,"feedbackSurveyRenderer",void 0);_.q([_.U("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],R5.prototype,"radioButtonLength",null);
_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],R5.prototype,"handleUrlPrefix",null);_.q([_.U("selectedHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],R5.prototype,"displayHandle",null);_.q([_.U("selectedHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],R5.prototype,"displayHandleUrl",null);_.q([_.U("selectedHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],R5.prototype,"warningText",null);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],R5.prototype,"darkerDarkTheme",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],R5.prototype,"ytRendererBehavior",void 0);R5=_.q([_.d({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],R5);
_.w(R5,"ytd-handles-claiming-select-dialog-content",function(){if(Kp6!==void 0)return Kp6;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Kp6=x},{mode:1});var aQf;var S3=function(){var x=_.n.apply(this,arguments)||this;x.actionButtonOverride={style:"mono",type:"filled",size:"M"};x.cancelButtonOverride={style:"mono",type:"text",size:"M"};x.initialRadioIndex="-1";x.selectButtonDisabled=!1;x.isLoading=!1;x.selectedRadioIndexChanged=function(G){x.selectedRadioIndex=Number(G.detail.value)};
x.selectedHandleChanged=function(G){x.selectedHandle=G.detail.value};
x.darkerDarkTheme=_.B("web_darker_dark_theme");return x};
_.m(S3,_.n);_.a=S3.prototype;_.a.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.a.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.a.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.Gl(this.hostElement,"yt-refit-popups-action")};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.xO(this.hostElement,"yt-close-popup-action",[this.is])};
_.a.onSelectHandle=function(){var x=this;if(this.selectedHandle!==void 0){var G;((G=this.data)==null?void 0:G.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(D,K){if(K.newHandleUpdateStatus!==void 0&&K.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&K.newHandleUpdateStatus.errorMessage)_.kL(x.hostElement,_.u7(K.newHandleUpdateStatus.errorMessage)),
x.isLoading=!1;else{var z;if((z=x.data)==null?0:z.onChannelUpdateSuccess){D=x.data.onChannelUpdateSuccess;K=_.Y(D,_.bz);var y;if(K==null?0:(y=K.popup)==null?0:y.handlesClaimingConfirmDialogRenderer)K.popup.handlesClaimingConfirmDialogRenderer.handle=_.gK(x.selectedHandle);x.ytComponentBehavior.resolveCommand(D);_.xO(x.hostElement,"yt-close-popup-action",[x.is])}else x.isLoading=!1}},
onServerError:function(){if(x.selectedRadioIndex===x.radioButtonLength){var D;x.content&&((D=x.content)==null?0:D.handleInput)&&x.content.handleInput.validate()}x.isLoading=!1;_.kL(x.hostElement,_.Wg("TRY_AGAIN_LATER"))}}}))}};
_.a.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var x,G;this.selectedHandle=(x=this.content)==null?void 0:(G=x.handleInput)==null?void 0:G.value}else this.selectedRadioIndex>=0&&((x=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(x==null?void 0:x.handle):this.selectedHandle=void 0)};
_.a.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.a.getRadioItem=function(x){if(this.radioButtonLength>x&&x>=0)return _.Y(this.data.radioButton[x],MjY)};
_.Nq.Object.defineProperties(S3.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var x;return(((x=this.data)==null?void 0:x.radioButton)||[]).length}}});
S3.prototype.onSelectedHandleChanged=S3.prototype.onSelectedHandleChanged;S3.prototype.onSelectedHandleIndexChanged=S3.prototype.onSelectedHandleIndexChanged;S3.prototype.onDataChanged=S3.prototype.onDataChanged;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],S3.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],S3.prototype,"actionButtonOverride",void 0);_.q([_.R(),_.N("design:type",Object)],S3.prototype,"cancelButtonOverride",void 0);
_.q([_.R(),_.N("design:type",Object)],S3.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],S3.prototype,"initialRadioIndex",void 0);_.q([_.R(),_.N("design:type",Number)],S3.prototype,"selectedRadioIndex",void 0);_.q([_.R(),_.N("design:type",String)],S3.prototype,"selectedHandle",void 0);_.q([_.R(),_.N("design:type",Object)],S3.prototype,"selectButtonDisabled",void 0);_.q([_.R(),_.N("design:type",Object)],S3.prototype,"isLoading",void 0);
_.q([_.U("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],S3.prototype,"radioButtonLength",null);_.q([_.cD("ytd-handles-claiming-select-dialog-content"),_.N("design:type",Object)],S3.prototype,"content",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S3.prototype,"onDataChanged",null);
_.q([_.yf("selectedRadioIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S3.prototype,"onSelectedHandleIndexChanged",null);_.q([_.yf("selectedHandle"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S3.prototype,"onSelectedHandleChanged",null);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],S3.prototype,"darkerDarkTheme",void 0);
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],S3.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],S3.prototype,"ytRendererstamperBehavior",void 0);S3=_.q([_.d({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],S3);
_.w(S3,"ytd-handles-claiming-select-dialog-renderer",function(){if(aQf!==void 0)return aQf;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return aQf=x},{mode:1});var onb;var yMf;var n5=function(){return _.n.apply(this,arguments)||this};
_.m(n5,_.n);n5.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],n5.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],n5.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],n5.prototype,"data",void 0);n5=_.q([_.d({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],n5);
_.w(n5,"ytd-hotkey-dialog-section-option-renderer",function(){if(yMf!==void 0)return yMf;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return yMf=x},{mode:1});var lQO;var iY=function(){return _.n.apply(this,arguments)||this};
_.m(iY,_.n);iY.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],iY.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],iY.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],iY.prototype,"data",void 0);iY=_.q([_.d({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],iY);
_.w(iY,"ytd-hotkey-dialog-section-renderer",function(){if(lQO!==void 0)return lQO;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return lQO=x},{mode:1});var gZ=function(){var x=_.n.apply(this,arguments)||this;x.darkerDarkTheme=_.B("web_darker_dark_theme");return x};
_.m(gZ,_.n);gZ.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],gZ.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],gZ.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],gZ.prototype,"darkerDarkTheme",void 0);gZ=_.q([_.d({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],gZ);
_.w(gZ,"ytd-hotkey-dialog-content",function(){if(onb!==void 0)return onb;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return onb=x},{mode:1});var cMc;var uY=function(){return _.n.apply(this,arguments)||this};
_.m(uY,_.n);uY.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var x=document.querySelector("ytd-hotkey-dialog-content #scrollable");x&&(x.dialogElement=this.hostElement.parentElement)};
uY.prototype.onCloseTap=function(){_.xO(this.hostElement,"yt-close-popup-action")};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],uY.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],uY.prototype,"data",void 0);uY=_.q([_.d({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],uY);
_.w(uY,"ytd-hotkey-dialog-renderer",function(){if(cMc!==void 0)return cMc;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return cMc=x},{mode:1});var T8O;var dZ=function(){return _.n.apply(this,arguments)||this};
_.m(dZ,_.n);dZ.prototype.onYtServiceRequestError=function(){if(this.blocked){var x;var G=(x=this.data)==null?void 0:x.defaultServiceEndpoint}else{var D;G=(D=this.data)==null?void 0:D.toggledServiceEndpoint}var K;(G=(K=_.Y(G,_.m20))==null?void 0:K.onFailureAction)&&this.ytComponentBehavior.resolveCommand(G);this.updateBlockState(!this.blocked)};
dZ.prototype.onYtToggleButton=function(x){this.updateBlockState(x.detail.toggled)};
dZ.prototype.updateBlockState=function(x){if(x!==this.blocked){var G=this.blockedEntityKey;G&&this.ytdReduxBehavior.dispatch(_.cq("blockStateEntity",G,{key:G,blocked:x}));this.set("data.isToggled",x)}};
_.Nq.Object.defineProperties(dZ.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)}}});
dZ.prototype.onYtToggleButton=dZ.prototype.onYtToggleButton;dZ.prototype.onYtServiceRequestError=dZ.prototype.onYtServiceRequestError;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],dZ.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],dZ.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],dZ.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],dZ.prototype,"blockedEntityKey",void 0);
_.q([_.R({selectorArgs:["blockedEntityKey"],selector:function(x,G){return _.zm(x.entities,"blockStateEntity",G)}}),
_.N("design:type",Object)],dZ.prototype,"blockStateEntity",void 0);_.q([_.U("data","blockStateEntity"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],dZ.prototype,"blocked",null);_.q([_.oe("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],dZ.prototype,"onYtServiceRequestError",null);
_.q([_.oe("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],dZ.prototype,"onYtToggleButton",null);dZ=_.q([_.d({is:"ytd-block-button",disableElementRegistration:!0})],dZ);
_.w(dZ,"ytd-block-button",function(){if(T8O!==void 0)return T8O;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return T8O=x},
{mode:1});var WpC;var e2C;var wZ=function(){return _.n.apply(this,arguments)||this};
_.m(wZ,_.n);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],wZ.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],wZ.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],wZ.prototype,"data",void 0);wZ=_.q([_.d({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],wZ);
_.w(wZ,"ytd-kids-blocklist-picker-item-renderer",function(){if(e2C!==void 0)return e2C;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return e2C=x},{mode:1});var qw=function(){return _.n.apply(this,arguments)||this};
_.m(qw,_.n);qw.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],qw.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],qw.prototype,"data",void 0);qw=_.q([_.d({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],qw);
_.w(qw,"ytd-kids-blocklist-picker-content",function(){if(WpC!==void 0)return WpC;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return WpC=
x},{mode:_.Ge("kevlar_poly_si_batch_j025")?1:2});var ZMj;var Nw=function(){var x=_.n.apply(this,arguments)||this;x.hasAnyRequestSucceeded=!1;x.hasAnyRequestFailed=!1;x.numPendingRequests=0;return x};
_.m(Nw,_.n);_.a=Nw.prototype;_.a.attached=function(){this.hostElement.setAttribute("dialog","")};
_.a.onDoneButtonTap=function(){_.xO(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.a.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.a.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.a.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.a.onPopupClosed=function(x){var G,D;if(((G=x.detail)==null?void 0:(D=G.popup)==null?void 0:D.is)==="tp-yt-paper-dialog"){var K;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((K=this.data)==null?0:K.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.NW(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
Nw.prototype.onPopupClosed=Nw.prototype.onPopupClosed;Nw.prototype.onYtServiceRequestError=Nw.prototype.onYtServiceRequestError;Nw.prototype.onYtServiceRequestCompleted=Nw.prototype.onYtServiceRequestCompleted;Nw.prototype.onYtServiceRequestSent=Nw.prototype.onYtServiceRequestSent;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Nw.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Nw.prototype,"ytRendererBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],Nw.prototype,"data",void 0);_.q([_.oe("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Nw.prototype,"onYtServiceRequestSent",null);_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Nw.prototype,"onYtServiceRequestCompleted",null);
_.q([_.oe("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Nw.prototype,"onYtServiceRequestError",null);_.q([_.oe("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Nw.prototype,"onPopupClosed",null);Nw=_.q([_.d({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],Nw);
_.w(Nw,"ytd-kids-blocklist-picker-renderer",function(){if(ZMj!==void 0)return ZMj;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return ZMj=x},{mode:1});var Mex;var Qdf;var v8=function(){return _.n.apply(this,arguments)||this};
_.m(v8,_.n);v8.prototype.setTip=function(x){var G=this;this.data&&(this.tip=Kai(G$j.getInstance(),x,this.data),_.w1(this,function(){_.h$(G.hostElement,"yt-refit")}))};
v8.prototype.clearTip=function(){this.tip=void 0};
v8.prototype.computeHidden=function(x){return!x};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],v8.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],v8.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.N("design:type",Boolean)],v8.prototype,"hidden",void 0);_.q([_.R(),_.N("design:type",Object)],v8.prototype,"tip",void 0);v8=_.q([_.d({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],v8);
_.w(v8,"ytd-menu-popup-tip-renderer",function(){if(Qdf!==void 0)return Qdf;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);
return Qdf=x},{mode:1});var pti;var J5=function(){var x=_.n.apply(this,arguments)||this;x.useIcons=!1;x.systemIcons=_.B("kevlar_system_icons");x.useListItemStyles=_.B("web_list_item_style_for_menu_items");return x};
_.m(J5,_.n);_.a=J5.prototype;_.a.onFocus=function(){var x;(x=_.kA(this.hostElement).querySelector("tp-yt-paper-item"))==null||x.focus()};
_.a.onTap=function(){var x=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(x&&_.Y(x,_.oI))this.componentBehavior.resolveCommand(x),this.updateToggledStateInEntity();else if(x){this.componentBehavior.resolveCommand(x)||_.Eo().resolve(_.hm).resolveCommand(x,{form:{element:this.hostElement}});var G;((G=_.Y(x,_.cg))==null?void 0:G.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.a.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.a.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.a.updateToggledStateInEntity=function(){var x=this.data.toggleMenuServiceItemEntityKey,G=!this.data.isToggled;x&&this.ytdReduxBehavior.dispatch(_.cq("toggleMenuServiceItemEntity",x,{key:x,isToggled:G}))};
_.a.computeIcon=function(x,G,D){return(x=x?D:G)&&x.iconType?_.aP(x.iconType):""};
_.a.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.a.isIconActive=function(x){return!_.B("toggle_menu_active_icon_killswitch")&&x};
_.Nq.Object.defineProperties(J5.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var x,G,D;return((x=this.data)==null?0:x.isToggled)?(G=this.data)==null?void 0:G.toggledText:(D=this.data)==null?void 0:D.defaultText}}});
J5.prototype.toggledStateEntityChanged=J5.prototype.toggledStateEntityChanged;J5.prototype.onYtServiceRequestCompleted=J5.prototype.onYtServiceRequestCompleted;J5.prototype.onTap=J5.prototype.onTap;J5.prototype.onFocus=J5.prototype.onFocus;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],J5.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],J5.prototype,"componentBehavior",void 0);
_.q([_.I(_.$l),_.N("design:type",Object)],J5.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],J5.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],J5.prototype,"useIcons",void 0);_.q([_.R({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.N("design:type",String)],J5.prototype,"icon",void 0);
_.q([_.R({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(x,G){return _.zm(x.entities,"toggleMenuServiceItemEntity",G)}}),
_.N("design:type",Object)],J5.prototype,"toggleMenuServiceItemEntity",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],J5.prototype,"systemIcons",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],J5.prototype,"useListItemStyles",void 0);_.q([_.oe("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],J5.prototype,"onFocus",null);
_.q([_.U("data.isToggled"),_.N("design:type",Object),_.N("design:paramtypes",[])],J5.prototype,"toggleButtonText",null);_.q([_.oe("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],J5.prototype,"onTap",null);_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],J5.prototype,"onYtServiceRequestCompleted",null);
_.q([_.yf("toggleMenuServiceItemEntity.isToggled","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],J5.prototype,"toggledStateEntityChanged",null);J5=_.q([_.d({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],J5);
_.w(J5,"ytd-toggle-menu-service-item-renderer",function(){if(pti!==void 0)return pti;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return pti=x},{mode:1});var Vec;var f5=function(){return _.n.apply(this,arguments)||this};
_.m(f5,_.n);f5.prototype.onFocus=function(){var x;(x=_.kA(this.hostElement).querySelector("tp-yt-paper-item"))==null||x.focus()};
_.Nq.Object.defineProperties(f5.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.V$(this.data.iconUrl)}}});
f5.prototype.onFocus=f5.prototype.onFocus;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],f5.prototype,"rendererBehavior",void 0);_.q([_.I(_.l9.YtEndpointBehavior),_.N("design:type",Object)],f5.prototype,"ytEndpointBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],f5.prototype,"data",void 0);_.q([_.oe("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],f5.prototype,"onFocus",null);
_.q([_.U("data.iconUrl"),_.N("design:type",Object),_.N("design:paramtypes",[])],f5.prototype,"imageSource",null);f5=_.q([_.d({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],f5);
_.w(f5,"ytd-menu-custom-icon-item-renderer",function(){if(Vec!==void 0)return Vec;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Vec=x},{mode:_.Ge("kevlar_poly_si_batch_j028")?1:2});_.tn(_.rJ,"yt-list-item-view-model",{props:{data:_.ik,isMenuItem:_.ik,isCompact:_.ik,onTap:_.fz,trailingAccessory:_.fz,hideSelectionTextChevron:_.ik,disabled:_.ik,inPopup:_.ik,disableHorizontalPadding:_.ik,isOverlay:_.ik}});var t5=function(){var x=_.n.apply(this,arguments)||this;x.disableBackdropFilter=_.B("web_disable_backdrop_filter");return x};
_.m(t5,_.n);_.a=t5.prototype;
_.a.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"}}}};
_.a.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.a.computeAriaLabel=function(x){return x};
_.a.onPopupOpened=function(){this.items.selected=0;for(var x=_.l(_.kA(this.items).children),G=x.next();!G.done;G=x.next())G.value.popupPositionTarget=this.positionTarget;if(x=this.popupTip||void 0)x.setTip(this.source||""),this.source=void 0;this.veData&&(x=_.CC())&&_.i0(x,[this.veData])};
_.a.onPopupClosed=function(){var x=this.popupTip||void 0;x&&x.clearTip()};
_.a.onIronActivate=function(x){this.shouldPersist(x)||_.xO(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(x=_.CC())&&_.u0(x,this.veData)};
_.a.shouldPersist=function(x){var G,D;if(((G=x.detail)==null?void 0:G.selected)===void 0||(D=this.data)==null||!D.items)return!1;var K,z;return!((z=(K=this.data.items[x.detail.selected])==null?void 0:K.toggleMenuServiceItemRenderer)==null||!z.persistentOnMenuPopup)};
_.a.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(x){return x.menuNavigationItemRenderer?!!x.menuNavigationItemRenderer.icon:x.menuServiceItemRenderer?!!x.menuServiceItemRenderer.icon:x.menuConditionalServiceItemRenderer?!!x.menuConditionalServiceItemRenderer.icon:x.menuConditionalNavigationItemRenderer?!!x.menuConditionalNavigationItemRenderer.icon:x.toggleMenuServiceItemRenderer?!!x.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
t5.prototype.onPopupClosed=t5.prototype.onPopupClosed;t5.prototype.onPopupOpened=t5.prototype.onPopupOpened;_.q([_.I(_.Tg.YtEventForwardingBehavior),_.N("design:type",Object)],t5.prototype,"ytEventForwardingBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],t5.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],t5.prototype,"ytRendererBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],t5.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],t5.prototype,"veData",void 0);_.q([_.R({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.N("design:type",String)],t5.prototype,"ariaLabel",void 0);_.q([_.R({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],t5.prototype,"useIcons",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],t5.prototype,"disableBackdropFilter",void 0);_.q([_.cD("#items"),_.N("design:type",Object)],t5.prototype,"items",void 0);_.q([_.cD("ytd-menu-popup-tip-renderer"),_.N("design:type",Object)],t5.prototype,"popupTip",void 0);_.q([_.oe("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],t5.prototype,"onPopupOpened",null);
_.q([_.oe("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],t5.prototype,"onPopupClosed",null);t5=_.q([_.d({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],t5);
_.w(t5,"ytd-menu-popup-renderer",function(){if(Mex!==void 0)return Mex;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Mex=x},{mode:1});var bMb;var Lpj=_.Nv(function(x){x=_.qv(x,{icon:void 0});var G=x.data;x=x.icon;var D=function(){return G().iconBadgeText},K={},z=_.ym("yt-spec-icon-badge-shape",function(){a:switch(G().iconBadgeType){case "notification":var y="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":y="yt-spec-icon-badge-shape--type-cart";break a;default:y=""}return y},function(){a:switch(G().iconBadgeStyle){case "overlay":var y="yt-spec-icon-badge-shape--style-overlay";
break a;default:y=""}return y},(K["yt-spec-icon-badge-shape--text-size-small"]=function(){var y=D();
return!!((y==null?0:y.length)&&y.length>2)},K));
return _.M("yt-icon-badge-shape",null,_.M(_.b,{cond:x,then:function(y){return _.M("div",{class:z},_.M("div",{class:"yt-spec-icon-badge-shape__icon"},_.M(_.Qm,{icon:y})),_.M(_.b,{cond:D,then:function(c){return _.M("div",{class:"yt-spec-icon-badge-shape__badge"},c)}}))}}))},"pg");
Lpj.idomCompat=!0;_.tn(Lpj,"yt-icon-badge-shape",{props:{data:_.ik,icon:_.ik}});var kk=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};x.unseenCount=0;x.isOverlay=!1;return x};
_.m(kk,_.n);_.a=kk.prototype;_.a.attached=function(){var x=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(G){x.onServiceWorkerMessage(G)})};
_.a.onDataChanged=function(){this.isAttached&&!this.JSC$18243_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18243_lastData=this.data};
_.a.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.a.computeIcon=function(){var x,G;return(x=this.data)==null?void 0:(G=x.icon)==null?void 0:G.iconType};
_.a.onServiceWorkerMessage=function(x){x.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.a.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.Y(this.data.updateUnseenCountEndpoint,_.cg)&&_.Y(this.data.updateUnseenCountEndpoint,_.cg).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.a.handleUpdateNotificationsUnseenCountAction=function(x){var G=this;x=_.Y(x,aKx);x!=null&&x.unseenCount&&x.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(x.unseenCount),_.Fj.addLowPriorityJob(function(){G.data.updateUnseenCountEndpoint&&G.ytComponentBehavior.resolveCommand(G.data.updateUnseenCountEndpoint)},x.timeoutMs))};
_.a.onClick=function(){_.h$(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var x=_.Gl(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),G=this.data.menuRequest;x&&x.length===1&&x[0]?_.xO(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):G&&this.ytComponentBehavior.resolveCommand(G)};
_.a.handleTopbarMenuClosedAction=function(x){x==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.a.toggleIconState=function(x){this.iconButton&&(this.iconButton.pressed=x)};
_.a.sendUnseenCountRequest=function(x){var G=this;_.Bw(_.Fj,function(){G.ytComponentBehavior.resolveCommand(x)})};
_.a.updateCountUI=function(x){this.set("unseenCount",x<9?x:"9+")};
_.Nq.Object.defineProperties(kk.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
kk.prototype.handleUpdateNotificationsUnseenCountAction=kk.prototype.handleUpdateNotificationsUnseenCountAction;kk.prototype.onDataChanged=kk.prototype.onDataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],kk.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],kk.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.i9),_.N("design:type",Object)],kk.prototype,"ytdOpenPopupBehavior",void 0);
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],kk.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],kk.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],kk.prototype,"unseenCount",void 0);_.q([_.R(),_.N("design:type",Object)],kk.prototype,"isOverlay",void 0);_.q([_.R({value:!0}),_.N("design:type",Boolean)],kk.prototype,"showTooltips",void 0);_.q([_.cD("yt-icon-button"),_.N("design:type",Object)],kk.prototype,"iconButton",void 0);
_.q([_.U("unseenCount"),_.N("design:type",Object),_.N("design:paramtypes",[])],kk.prototype,"showNotificationCount",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kk.prototype,"onDataChanged",null);_.q([_.oe("yt-update-notifications-unseen-count-action"),_.N("design:type",Function),_.N("design:paramtypes",[Object]),_.N("design:returntype")],kk.prototype,"handleUpdateNotificationsUnseenCountAction",null);
kk=_.q([_.d({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],kk);
_.w(kk,"ytd-notification-topbar-button-renderer",function(){if(bMb!==void 0)return bMb;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return bMb=x},{mode:_.Ge("kevlar_poly_si_batch_j025")?1:2});var B8k;var P8=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return x};
_.m(P8,_.n);P8.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}}}}}};
P8.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
P8.prototype.onDarkModeToggled=function(x){this.dark=x};
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],P8.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],P8.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],P8.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],P8.prototype,"data",void 0);_.q([_.R({value:!0,reflectToAttribute:!0}),_.N("design:type",Boolean)],P8.prototype,"dark",void 0);
P8=_.q([_.d({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],P8);
_.w(P8,"yt-pdg-buy-flow-header-renderer",function(){if(B8k!==void 0)return B8k;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return B8k=x},{mode:1});var rMc;var sd6;var Ez=function(){var x=_.n.apply(this,arguments)||this;x.immediateValue=0;x.isDarkTheme=!1;x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return x};
_.m(Ez,_.n);_.a=Ez.prototype;_.a.created=function(){_.I8.requestAvailability()};
_.a.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.a.dataChanged=function(){var x=_.kA(this.hostElement).querySelector("#color-slider");x.immediateValue&&this.updateSliderKnobAndGradientStyles(x.immediateValue);this.data.notches[0].knobColorArgb&&_.K7(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.jT(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.Am("HTML_DIR")==="rtl"&&_.kA(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.a.onSliderImmediateChange=function(){var x=_.kA(this.hostElement).querySelector("#color-slider");x.dragging&&(x.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(x.immediateValue),this.updateSliderKnobAndGradientStyles(x.immediateValue)),this.updateSliderAria())};
_.a.onSliderChange=function(){var x=_.kA(this.hostElement).querySelector("#color-slider");x.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(x.immediateValue),this.updateSliderKnobAndGradientStyles(x.immediateValue));this.updateSliderAria()};
_.a.updateSliderAria=function(){var x=_.kA(this.hostElement).querySelector("#color-slider"),G=_.kA(this.hostElement).querySelector("#color-slider");G=_.u7(this.data.notches[G.immediateValue].tierValue);_.Xh()&&_.h$(this.hostElement,"iron-announce",{text:G});x.setAttribute("aria-valuetext",G)};
_.a.updateSuperThanksSelectedTierEntity=function(x){if(x!==this.immediateValue){var G,D,K=this==null?void 0:(G=this.data)==null?void 0:(D=G.superThanksSelectedTierEntity)==null?void 0:D.key;K&&K.length>0&&this.ytdReduxBehavior.dispatch(_.cq("superThanksSelectedTierEntity",K,{key:K,index:x}))}};
_.a.onDarkModeToggledAction=function(x){this.isDarkTheme=x};
_.a.updateSliderKnobAndGradientStyles=function(x){this.immediateValue=x;x=this.data.notches[x];if(x==null?0:x.knobColorArgb)var G={"--ytd-pdg-color-slider-knob-color":_.jT(x.knobColorArgb)};(x==null?0:x.linearGradientCssStyle)&&G!==null&&(G=Object.assign({},G,{"--ytd-pdg-color-slider-active-color":x==null?void 0:x.linearGradientCssStyle}));G!==null&&_.K7(this.hostElement,G)};
Ez.prototype.onSliderChange=Ez.prototype.onSliderChange;Ez.prototype.onSliderImmediateChange=Ez.prototype.onSliderImmediateChange;Ez.prototype.dataChanged=Ez.prototype.dataChanged;_.q([_.R(),_.N("design:type",Object)],Ez.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],Ez.prototype,"immediateValue",void 0);_.q([_.R(),_.N("design:type",Number)],Ez.prototype,"maxMarkers",void 0);
_.q([_.R({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:GuY}),_.N("design:type",Object)],Ez.prototype,"superThanksSelectedTierEntity",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Ez.prototype,"isDarkTheme",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],Ez.prototype,"ytdReduxBehavior",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ez.prototype,"dataChanged",null);
_.q([_.oe("immediate-value-change"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ez.prototype,"onSliderImmediateChange",null);_.q([_.oe("change"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ez.prototype,"onSliderChange",null);Ez=_.q([_.d({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],Ez);
_.w(Ez,"ytd-pdg-color-slider-renderer",function(){if(sd6!==void 0)return sd6;var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return sd6=x},{mode:1});var YJ8;var mdc;var h5=null;
_.BD({is:"ytd-comment-input",_template:function(){if(mdc!==void 0)return mdc;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return mdc=x},
behaviors:[_.teL.YtHostElementBehavior,_.Tb,_.j$.YtComponentBehavior,_.fF.YtRendererstamperBehavior,_.Lcu.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 _.Ch}},
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",_.ae(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;_.GI();this.focus()},
detached:function(){document.removeEventListener("tap",_.ae(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(x){x=x.detail;x=x.isCustomEmoji?x.shortcuts[0]:x.emojiId;var G=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(G,x);this.maybeUpdateTextDirection_();_.h$(this.hostElement,"input")},
getInputRange_:function(){var x=_.Zk();if(x){x=x.getBrowserRangeObject();for(var G=x.commonAncestorContainer;G;){if(G===this.getEditableTextArea_())return x;G=G.parentNode}}x=this.getEditableTextArea_();x=_.mK(x,x.childNodes.length);x.select();return x.getBrowserRangeObject()},
insertTextWithEmojis_:function(x,G,D){(G=this.emojiManager.createDocumentFragment(G,!0,!1,D===void 0?!0:D))&&G.childNodes.length!==0&&(x.collapsed||x.deleteContents(),D=G.lastChild,x.insertNode(G),_.fu8(D).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var x=_.Zk();if(x){var G=x.JSC$9250_getStartNode(),D=x.JSC$9250_getEndNode();if(kyx(G)&&kyx(D)){var K=x.JSC$9250_getStartOffset(),z;if(_.Dh&&G.nodeType===Node.ELEMENT_NODE&&(z=_.yQo(G)))_.mK(z,0).select();else{z=Jw(G)?G:_.Xn(G,Jw);var y=Jw(D)?D:_.Xn(D,Jw);if(z||y)if(x.isCollapsed()){if(G.nodeType===Node.TEXT_NODE){x=!0;K===G.length&&(x=!1);if(h5==="end"||h5==="right")x=!1;G=G.parentNode;x=[].concat(_.B5(G.parentNode.childNodes)).indexOf(G)+(x?0:1);_.mK(G.parentNode,x).select()}}else z?
z.previousSibling&&z.previousSibling.length>0?_.He(D,x.JSC$9250_getEndOffset(),z.previousSibling,z.previousSibling.length-1).select():(G=document.createTextNode("\u200b"),z.parentNode.insertBefore(G,z),_.He(D,x.JSC$9250_getEndOffset(),G,0).select()):y&&(y.nextSibling&&y.nextSibling.length>0?_.He(G,x.JSC$9250_getStartOffset(),y.nextSibling,1).select():(D=document.createTextNode("\u200b"),y.parentNode.insertBefore(D,y.nextSibling),_.He(G,x.JSC$9250_getStartOffset(),D,D.length).select()));h5=null}}else h5=
null}else h5=null},
leftKeyPressed_:function(){h5="left"},
rightKeyPressed_:function(){h5="right"},
endKeyPressed_:function(){h5="end"},
maybeDeleteChip_:function(){var x=D5x(!0);if(x){var G=_.Zk(),D=G.JSC$9250_getStartNode();G=G.JSC$9250_getStartOffset();_.LZ(D,G,x,x.childNodes.length).select()}},
maybeBackspaceChip_:function(){var x=D5x(!1);if(x){var G=_.Zk(),D=G.JSC$9250_getStartNode();G=G.JSC$9250_getStartOffset();_.LZ(D,G,x,0).select()}},
maybeBackspaceChipWordMode_:function(x){var G=_.Zk();if(G.isCollapsed()){var D=G.JSC$9250_getStartNode();G=G.JSC$9250_getStartOffset();var K=Ks8(D,G,!0);K&&(_.LZ(D,G,K,0).select(),document.execCommand("delete"),x.preventDefault(),x.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(x){var G=_.Zk();if(G.isCollapsed()){var D=G.JSC$9250_getStartNode();G=G.JSC$9250_getStartOffset();var K=Ks8(D,G,!1);K&&(_.LZ(D,G,K,K.childNodes.length).select(),document.execCommand("delete"),x.preventDefault(),x.stopImmediatePropagation())}},
onContentClick:function(x){x.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(x){x.defaultPrevented||x.currentTarget.tagName==="YTD-COMMENT-INPUT"&&Jw(x.target)&&x.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.kA(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.kA(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(x,G){x=EmC(x,this.emojiManager,G).cloneNode(!0);for(G=x.firstChild;G;)if(G.nodeType!==1)G=G.nextSibling;else switch(G.tagName){case "BR":var D=_.Vd();_.QVi(D,G);G=D.nextSibling;break;case "DIV":(D=G.lastChild)&&G.nextSibling&&_.rg(_.Vd(),D);G.previousSibling&&(G.previousSibling.nodeType===1||G.previousSibling.nodeType===3&&!G.previousSibling.textContent.endsWith("\n"))&&_.B_(_.Vd(),G);D&&D.nodeName==="BR"&&_.VF(D);D=G;G.hasChildNodes()?(G=G.firstChild,
_.pLJ(D)):(G=G.nextSibling,_.VF(D));break;default:G=G.nextSibling}return z9O(x)},
setTextAreaValue:function(x){x||(x="");var G=this.getEditableFormattedString_();G.text="";this.getEditableTextArea_().innerText="";typeof x==="string"&&(x={runs:[{text:x}]});G.text=x},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();h5=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var x=this.getEditableTextArea_();x&&(_.mK(x,x.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Am("HTML_DIR")==="rtl"){var x=this.getEditableTextArea_(),G=this.getTextAreaValue()!==""?"auto":"rtl";x.setAttribute("dir",G)}},
handleInputEvent_:function(){var x=null;if(this.isEmojiButtonDisplayed){var G=this.getInputRange_();G&&(x=this.emojiInput.retrieveTextBeforeRange(G))}this.insertText_(x,!0);this.updateCharCount_();x=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=x.scrollHeight>x.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var x=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:x})},
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(x){this.isEmojiButtonDisplayed&&(x.preventDefault(),x.stopImmediatePropagation(),x=x.clipboardData.getData("text/plain"),this.insertText_(x,!1,!1),_.h$(this.hostElement,"input"))},
insertText_:function(x,G,D){G=G===void 0?!1:G;D=D===void 0?!0:D;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&x){var K=this.getInputRange_().cloneRange();this.emojiManager&&K&&(G&&this.emojiInput.offsetStartOfRangeBy(K,x.length),this.insertTextWithEmojis_(K,x,D),Pxf(this.getEditableTextArea_().lastChild)||(K=this.getInputRange_().cloneRange()),K&&(this.emojiInput.updateSuggestions(K,x),this.updateSuggestionOffset_(K)))}},
getSimpleString:_.u7,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(x){return x?"focused":"not-focused"},
computePlaceholderText_:function(x){return this.getSimpleString(x)},
computeEditableText_:function(x){return this.getSimpleString(x)},
onPrefilledContentDismissed_:function(x){x.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(x,G){x?this.fire("yt-autonav-pause-focus"):G!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(x){var G=this.getEditableTextArea_();[].concat(_.B5(x.dataTransfer.items)).forEach(function(D){D.kind==="string"&&D.type.match("^text/plain")&&D.getAsString(function(K){G.appendChild(document.createTextNode(K))})});
x.preventDefault()},
preventDefault_:function(x){x.preventDefault()},
onSuggestionInsert_:function(x){this.insertTextWithEmojis_(x.detail.range,x.detail.text)},
onEmojiSuggestionClick_:function(x){this.emojiInput.insertSuggestion(x.detail)},
updateSuggestionOffset_:function(x){if(this.emojiInput&&_.kA(this.emojiInput).querySelector("#dropdown")){var G=this.getEditableTextArea_().getBoundingClientRect().bottom,D=x.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(G-D)+5;G=this.getEditableTextArea_().getBoundingClientRect().left;x=x.getBoundingClientRect().left-G;_.kA(this.emojiInput).querySelector("#dropdown").style.marginLeft=x+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Xj("yt-post"));return this.localStorage}});var xN=function(){var x=_.n.apply(this,arguments)||this;x.currentCommentOptionIndex=0;x.isEmojiPickerDisplayed=!1;x.emojiManager=_.Ch;x.isUgcEmpty=!1;x.userGeneratedCommentChangedHandler=function(){_.h$(x.hostElement,"ytd-pdg-user-generated-comment-changed");x.isEmojiYtdCommentInputEnabled&&(x.isUgcEmpty=!x.ytdCommentInputEl.getTextAreaValue())};
x.pasteHandler=function(G){G.preventDefault();G.stopImmediatePropagation();var D;if(G=(D=G.clipboardData)==null?void 0:D.getData("text/plain"))D=document.getSelection().getRangeAt(0),D.collapsed||D.deleteContents(),G=document.createTextNode(G),D.insertNode(G),D.selectNodeContents(G),D.collapse(!1),G=window.getSelection(),G.removeAllRanges(),G.addRange(D)};
x.onDocumentClick=function(G){if(x.isEmojiPickerDisplayed){var D,K,z;!(G.target instanceof Node)||(D=G.composedPath())!=null&&D.includes(x.editableTextEl)||(K=G.composedPath())!=null&&K.includes(x.emojiButtonEl)||(z=G.composedPath())!=null&&z.includes(x.emojiPickerEl)||(x.isEmojiPickerDisplayed=!1)}};
return x};
_.m(xN,_.n);_.a=xN.prototype;_.a.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.a.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.a.detached=function(){var x;(x=this.contentEl)==null||x.removeEventListener("input",this.userGeneratedCommentChangedHandler);var G;(G=this.contentEl)==null||G.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.a.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.a.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var x;this.contentEl.textContent=this.rendererBehavior.getSimpleString((x=this.data)==null?void 0:x.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.a.reloadEmojis=function(){this.emojiPickerEl&&_.Y(this.emojiPicker,_.Rsq)&&this.emojiPickerEl.updateEmojiCategories()};
_.a.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.K7(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.a.handleBackgroundColorStyling=function(){var x;if((x=this.currentCommentOption)==null?0:x.commentBackgroundColorArgb){var G;_.K7(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.jT((G=this.currentCommentOption)==null?void 0:G.commentBackgroundColorArgb)})}else _.K7(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.a.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var x;(x=this.contentEl)==null||x.focus()}};
_.a.onEditButtonClick=function(x){var G=document.getSelection();G&&this.contentEl&&(x.stopPropagation(),x.preventDefault(),G.selectAllChildren(this.contentEl),G.collapseToEnd())};
_.a.onContentDrop=function(x){var G=this;if(x.dataTransfer){x=_.l(x.dataTransfer.items);for(var D=x.next();!D.done;D=x.next())D=D.value,D.kind==="string"&&D.type.match("^text/plain")&&D.getAsString(function(K){var z;(z=G.contentEl)==null||z.appendChild(document.createTextNode(K))})}};
_.a.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.a.getUserGeneratedCommentText=function(){var x,G=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(x=this.contentEl)==null?void 0:x.textContent;return G?G.trim():""};
_.a.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.a.onEmojiSelect=function(x){this.ytdCommentInputEl.onEmojiSelect(x)};
_.Nq.Object.defineProperties(xN.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.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 x;return!((x=this.currentCommentOption)==null||!x.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var x;if(_.Y((x=this.currentCommentOption)==null?void 0:x.chipRenderer,_.fCE)){var G;return _.Y((G=this.currentCommentOption)==null?void 0:G.chipRenderer,_.fCE)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var x,G;return((x=this.data)==null?0:x.commentOptionRenderers)?_.Y((G=this.data)==null?void 0:G.commentOptionRenderers[this.superThanksSelectedTierEntity.index],OZj):void 0}var D,K;return((D=this.data)==null?0:D.commentOptionRenderers)?_.Y((K=this.data)==null?void 0:K.commentOptionRenderers[this.currentCommentOptionIndex],OZj):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var x;return this.rendererBehavior.getSimpleString((x=this.data)==null?void 0:x.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var x;return this.rendererBehavior.getSimpleString((x=this.data)==null?void 0:x.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var x,G;return(G=_.Y((x=this.data)==null?void 0:x.commentDialog,_.FJE))==null?void 0:G.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var x,G;return(G=_.Y((x=this.data)==null?void 0:x.commentDialog,_.FJE))==null?void 0:G.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var x,G;return(G=_.Y((x=this.data)==null?void 0:x.commentDialog,_.FJE))==null?void 0:G.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var x,G,D=(G=_.Y((x=this.data)==null?void 0:x.commentDialog,_.FJE))==null?void 0:G.emojiPicker;if(!_.Y(D,_.Rsq)||!_.Y(D,_.Rsq).categories)return!1;x=function(y){return y.emojiPickerCategoryRenderer?y.emojiPickerCategoryRenderer.emojiIds&&y.emojiPickerCategoryRenderer.emojiIds.length>0:y.emojiPickerUpsellCategoryRenderer?y.emojiPickerUpsellCategoryRenderer.emojis&&y.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var K,z;return((K=_.Y(D,_.Rsq))==null?0:(z=K.categories)==null?0:z.find(x))?!0:!1}}});
xN.prototype.onEmojiSelect=xN.prototype.onEmojiSelect;xN.prototype.dataChanged=xN.prototype.dataChanged;xN.prototype.currentCommentOptionChanged=xN.prototype.currentCommentOptionChanged;_.q([_.I(_.$l),_.N("design:type",Object)],xN.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],xN.prototype,"rendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],xN.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.cD("#content-dom-if"),_.N("design:type",_.sY)],xN.prototype,"contentDomIfEl",void 0);_.q([_.cD("#content-no-emojis"),_.N("design:type",HTMLElement)],xN.prototype,"contentEl",void 0);_.q([_.cD("#container"),_.N("design:type",HTMLElement)],xN.prototype,"containerEl",void 0);_.q([_.cD("#comment-chip-container"),_.N("design:type",HTMLElement)],xN.prototype,"paidCommentChipContainerEl",void 0);_.q([_.cD("#text-input"),_.N("design:type",HTMLElement)],xN.prototype,"editableTextEl",void 0);
_.q([_.cD("#emoji-button"),_.N("design:type",HTMLElement)],xN.prototype,"emojiButtonEl",void 0);_.q([_.cD("#emoji-picker > yt-emoji-picker-renderer"),_.N("design:type",Object)],xN.prototype,"emojiPickerEl",void 0);_.q([_.cD("#text-input > ytd-comment-input"),_.N("design:type",Object)],xN.prototype,"ytdCommentInputEl",void 0);_.q([_.R(),_.N("design:type",Object)],xN.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],xN.prototype,"currentCommentOptionIndex",void 0);
_.q([_.R({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:GuY}),_.N("design:type",Object)],xN.prototype,"superThanksSelectedTierEntity",void 0);_.q([_.R(),_.N("design:type",Object)],xN.prototype,"isEmojiPickerDisplayed",void 0);_.q([_.R(),_.N("design:type",Object)],xN.prototype,"emojiManager",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],xN.prototype,"isUgcEmpty",void 0);
_.q([_.yf("currentCommentOption"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xN.prototype,"currentCommentOptionChanged",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xN.prototype,"dataChanged",null);_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],xN.prototype,"isEmojiYtdCommentInputEnabled",null);
_.q([_.U("data.title"),_.N("design:type",Object),_.N("design:paramtypes",[])],xN.prototype,"title",null);_.q([_.U("data.authorText"),_.N("design:type",Object),_.N("design:paramtypes",[])],xN.prototype,"channelName",null);_.q([_.U("data.commentOptionRenderers","currentCommentOption"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],xN.prototype,"shouldShowPaidCommentChipRenderer",null);
_.q([_.U("data.commentOptionRenderers","currentCommentOption"),_.N("design:type",Object),_.N("design:paramtypes",[])],xN.prototype,"paidCommentChipRenderer",null);_.q([_.U("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],xN.prototype,"currentCommentOption",null);
_.q([_.U("data.defaultCommentText","superThanksSelectedTierEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],xN.prototype,"commentText",null);_.q([_.U("data.placeholderText"),_.N("design:type",Object),_.N("design:paramtypes",[])],xN.prototype,"placeholderText",null);_.q([_.U("data.commentDialog.commentDialogRenderer.editableText"),_.N("design:type",Object),_.N("design:paramtypes",[])],xN.prototype,"editableText",null);
_.q([_.U("data.commentDialog.commentDialogRenderer.emojiButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],xN.prototype,"emojiButton",null);_.q([_.U("data.commentDialog.commentDialogRenderer.emojiPicker"),_.N("design:type",Object),_.N("design:paramtypes",[])],xN.prototype,"emojiPicker",null);
_.q([_.U("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],xN.prototype,"isEmojiButtonDisplayed",null);_.q([_.oe("yt-emoji-select"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],xN.prototype,"onEmojiSelect",null);xN=_.q([_.d({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],xN);
_.w(xN,"ytd-pdg-comment-preview-renderer",function(){if(YJ8!==void 0)return YJ8;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return YJ8=x},{mode:2});var HMf;var G5=function(){var x=_.n.apply(this,arguments)||this;x.selected=!1;return x};
_.m(G5,_.n);_.a=G5.prototype;_.a.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.a.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.a.dataChanged=function(){this.data&&(_.Pi(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.K7(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.jT(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.jT(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.a.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.a.onClick=function(){this.logClick()};
_.a.onKeyboardSelect=function(){_.h$(this.hostElement,"tap");this.onClick()};
_.a.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
G5.prototype.onClick=G5.prototype.onClick;G5.prototype.selectedChanged=G5.prototype.selectedChanged;G5.prototype.dataChanged=G5.prototype.dataChanged;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],G5.prototype,"componentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],G5.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.Tb),_.N("design:type",Object)],G5.prototype,"ironA11yKeysBehavior",void 0);
_.q([_.I(_.Re),_.N("design:type",Object)],G5.prototype,"ironSelectableBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],G5.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],G5.prototype,"shownThumbnail",void 0);_.q([_.R(),_.N("design:type",Object)],G5.prototype,"basePriceText",void 0);_.q([_.R(),_.N("design:type",Object)],G5.prototype,"purchaseCommand",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],G5.prototype,"selected",void 0);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],G5.prototype,"dataChanged",null);_.q([_.yf("selected"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],G5.prototype,"selectedChanged",null);_.q([_.oe("click"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],G5.prototype,"onClick",null);
G5=_.q([_.d({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],G5);
_.w(G5,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(HMf!==void 0)return HMf;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return HMf=x},{mode:1});var Dx=function(){var x=_.n.apply(this,arguments)||this;x.selectedItemIndex=0;x.buyButtonDisabled=!1;return x};
_.m(Dx,_.n);_.a=Dx.prototype;
_.a.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]]"}}}}}};
_.a.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var x;var G=(x=_.Y(this.data.colorSlider,jc6))==null?void 0:x.notches[this.selectedItemIndex].purchaseCommand}else{var D;G=(D=_.Y(this.data.selectableItemButtons[this.selectedItemIndex],AyY))==null?void 0:D.purchaseCommand}if(G){x=_.Y(G,_.HBE);x.productData||(x.productData={});var K;x.productData={pdgData:{commentMessageText:(K=this.commentPreviewRenderer)==null?void 0:K.getUserGeneratedCommentText()}};
_.h$(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(G)}}};
_.a.dataChanged=function(){if(this.data){_.Ch.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.hnZ(_.Ch,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.Ch.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var x;this.buyButtonDisabled=!((x=_.Y(this.data.commentPreview,Xej))==null||!x.placeholderText);this.updatePriceSelectorStatus();var G;if((G=this.data)==null?0:G.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;x=[];this.data.preloadImages&&(x=this.data.preloadImages);
x=x.map(function(D){return _.k$(D.thumbnails,1920)});
x=_.l(x);for(G=x.next();!G.done;G=x.next())(G=G.value)&&_.p9O(G).thenCatch(function(){_.O9(Error("il"))})}};
_.a.superThanksSelectedTierEntityChanged=function(){var x;(this==null?void 0:(x=this.superThanksSelectedTierEntity)==null?void 0:x.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.a.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.a.updatePriceSelectorStatus=function(){this.isColorSlider?(_.kA(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.kA(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.kA(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.kA(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.a.closeBuyFlow=function(){_.xO(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.a.onUserGeneratedContentChanged=function(){var x;this.buyButtonDisabled=!((x=this.commentPreviewRenderer)==null?0:x.getUserGeneratedCommentText())};
_.a.updateSelectedItemIndexFromBinding=function(x){this.selectedItemIndex=x.detail.value};
_.Nq.Object.defineProperties(Dx.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.disclaimerText)}}});
Dx.prototype.onUserGeneratedContentChanged=Dx.prototype.onUserGeneratedContentChanged;Dx.prototype.closeBuyFlow=Dx.prototype.closeBuyFlow;Dx.prototype.selectedItemIndexChanged=Dx.prototype.selectedItemIndexChanged;Dx.prototype.superThanksSelectedTierEntityChanged=Dx.prototype.superThanksSelectedTierEntityChanged;Dx.prototype.dataChanged=Dx.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Dx.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Dx.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Dx.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Dx.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],Dx.prototype,"selectedItemIndex",void 0);_.q([_.R(),_.N("design:type",Boolean)],Dx.prototype,"isColorSlider",void 0);
_.q([_.R(),_.N("design:type",Object)],Dx.prototype,"buyButtonDisabled",void 0);_.q([_.R({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:GuY}),_.N("design:type",Object)],Dx.prototype,"superThanksSelectedTierEntity",void 0);_.q([_.cD("ytd-pdg-comment-preview-renderer"),_.N("design:type",Object)],Dx.prototype,"commentPreviewRenderer",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],Dx.prototype,"ytdReduxBehavior",void 0);
_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Dx.prototype,"dataChanged",null);_.q([_.yf("superThanksSelectedTierEntity"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Dx.prototype,"superThanksSelectedTierEntityChanged",null);_.q([_.yf("selectedItemIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Dx.prototype,"selectedItemIndexChanged",null);
_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Dx.prototype,"closeBuyFlow",null);_.q([_.oe("ytd-pdg-user-generated-comment-changed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Dx.prototype,"onUserGeneratedContentChanged",null);_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Dx.prototype,"isDisclaimerTextShown",null);
Dx=_.q([_.d({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],Dx);
_.w(Dx,"yt-super-vod-buy-flow-content-renderer",function(){if(rMc!==void 0)return rMc;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return rMc=x},{mode:1});var $di;var KI=function(){var x=_.n.apply(this,arguments)||this;x.lottieAnimationRef={};return x};
_.m(KI,_.n);_.a=KI.prototype;_.a.created=function(){_.I8.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.ae(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.a.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.h$(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.a.detached=function(){this.autoCloseJobId&&_.Fj.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.ae(this,this.onPopupIronOverlayOpened))};
_.a.dataChanged=function(){var x=this;this.data&&this.data.autoCloseDelay&&(_.xO(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.x7(_.Fj,function(){x.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.K7(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.a.onDOMLoadedLottie=function(){var x=this,G,D,K=Number((G=this.data)==null?void 0:(D=G.autoCloseDelay)==null?void 0:D.seconds)||0;this.fadeOutJobId=_.x7(_.Fj,function(){x.lottiePlayerEl.classList.add("fadeout")},(K-.25)*1E3);
this.autoCloseJobId=_.x7(_.Fj,function(){x.closePopup()},K*1E3)};
_.a.openPopup=function(){this.ironOverlayBehavior.open()};
_.a.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.xO(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.zl(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.Eo().resolve(_.hm).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.Fj.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.Fj.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.a.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var x,G;(x=this.lottieAnimationRef)==null||(G=x.lottieEl)==null||G.destroy();x=this.data.lottie;var D,K;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:x.url+"_"+Math.random(),path:x.url,autoplay:!0,loop:(K=(D=x.settings)==null?void 0:D.loop)!=null?K:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.Nq.Object.defineProperties(KI.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var x,G;return!!((x=this.data)==null?0:(G=x.lottie)==null?0:G.url)}}});
KI.prototype.maybeInitializeLottie=KI.prototype.maybeInitializeLottie;KI.prototype.dataChanged=KI.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],KI.prototype,"rendererBehavior",void 0);_.q([_.I(_.Ud),_.N("design:type",Object)],KI.prototype,"ironOverlayBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],KI.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],KI.prototype,"lottiePlayerProps",void 0);
_.q([_.R(),_.N("design:type",Object)],KI.prototype,"lottieAnimationRef",void 0);_.q([_.cD("ytd-lottie-player"),_.N("design:type",HTMLElement)],KI.prototype,"lottiePlayerEl",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],KI.prototype,"dataChanged",null);_.q([_.U("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],KI.prototype,"hasLottieAnimation",null);
_.q([_.yf("data.lottie.url"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],KI.prototype,"maybeInitializeLottie",null);KI=_.q([_.d({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],KI);
_.w(KI,"ytd-desktop-image-overlay-renderer",function(){if($di!==void 0)return $di;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return $di=x},{mode:1});var FpO;var z5=function(){return _.n.apply(this,arguments)||this};
_.m(z5,_.n);_.a=z5.prototype;_.a.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"}}}}};
_.a.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",_.ae(this,this.closePopup))};
_.a.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.ae(this,this.closePopup))};
_.a.dataChanged=function(){_.Gl(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.Y(this.data.header,IKi)&&(this.hasBackgroundBanner=!!_.Y(this.data.header,IKi).backgroundBanner)};
_.a.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.ae(this,this.closePopup))};
_.a.closePopup=function(){this.data&&this.data.onCloseCommand&&_.KW(this.hostElement,[this.data.onCloseCommand])};
z5.prototype.handleBuyflowSelectionSubmitted=z5.prototype.handleBuyflowSelectionSubmitted;z5.prototype.dataChanged=z5.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],z5.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],z5.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],z5.prototype,"data",void 0);
_.q([_.R({value:!0,reflectToAttribute:!0}),_.N("design:type",Boolean)],z5.prototype,"hasBackgroundBanner",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],z5.prototype,"dataChanged",null);_.q([_.oe("yt-pdg-buy-flow-selection-submitted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],z5.prototype,"handleBuyflowSelectionSubmitted",null);
z5=_.q([_.d({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],z5);
_.w(z5,"ytd-pdg-buy-flow-renderer",function(){if(FpO!==void 0)return FpO;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return FpO=x},{mode:1});var Cmk;var a3=function(){var x=_.n.apply(this,arguments)||this;x.isOpen=!1;x.isPlaylistCreated=!1;return x};
_.m(a3,_.n);_.a=a3.prototype;_.a.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.a.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.h$(this.hostElement,"yt-refit")};
_.a.onCreateTap=function(){var x=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.KW(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(G,D){if(!_.B("killswitch_ep_in_create_playlist_response")&&(D==null?0:D.actions))for(G=_.l(D.actions),D=G.next();!D.done;D=G.next())D=D.value,_.Y(D,_.mJ)&&x.ytComponentBehavior.resolveCommand(D)}}]),this.isPlaylistCreated=!0)};
_.a.onKeydown=function(x){if(x.keyCode===13)this.onCreateTap()};
_.a.onServiceRequestCompleted=function(x){x.stopPropagation();_.xO(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.a.computePrivacyBadge=function(x){return x?[{metadataBadgeRenderer:x}]:[]};
a3.prototype.onServiceRequestCompleted=a3.prototype.onServiceRequestCompleted;a3.prototype.onKeydown=a3.prototype.onKeydown;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],a3.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],a3.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],a3.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],a3.prototype,"isOpen",void 0);
_.q([_.R(),_.N("design:type",Object)],a3.prototype,"isPlaylistCreated",void 0);_.q([_.R({value:{REQUIRED_LABEL:_.Wg("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Wg("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.N("design:type",Object)],a3.prototype,"addToStrings",void 0);_.q([_.R({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.N("design:type",Array)],a3.prototype,"privacyBadge",void 0);
_.q([_.cD("#privacy-input"),_.N("design:type",Object)],a3.prototype,"privacyInput",void 0);_.q([_.cD("#name-input"),_.N("design:type",Object)],a3.prototype,"nameInput",void 0);_.q([_.oe("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],a3.prototype,"onKeydown",null);_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],a3.prototype,"onServiceRequestCompleted",null);
a3=_.q([_.d({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],a3);
_.w(a3,"ytd-add-to-playlist-create-renderer",function(){if(Cmk!==void 0)return Cmk;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Cmk=x},{mode:1});var IQc;var jdC;var o3=function(){var x=_.n.apply(this,arguments)||this;x.transferState="TRANSFER_STATE_UNKNOWN";return x};
_.m(o3,_.n);o3.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
o3.prototype.onCheckboxChange=function(x){var G=this;this.data&&_.Ao(this,"yt-playlist-checkbox-changed",function(){var D=_.uo(x).checked?G.data.addToPlaylistServiceEndpoint:G.data.removeFromPlaylistServiceEndpoint;D&&_.Eo().resolve(_.hm).resolveCommand(D,{form:{element:G.hostElement}});_.B("dl_playlist_killswitch")||G.transferState!=="TRANSFER_STATE_UNKNOWN"&&G.transferState!=="TRANSFER_STATE_FAILED"&&G.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:G.data.playlistId,action:"ACTION_SYNC"}})},
100)};
o3.prototype.computeIconType=function(x){return x?"yt-icons:"+x.toLowerCase():null};
o3.prototype.dataChanged=o3.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],o3.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],o3.prototype,"data",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],o3.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],o3.prototype,"ytComponentBehavior",void 0);_.q([_.cD("#checkbox"),_.N("design:type",HTMLInputElement)],o3.prototype,"checkbox",void 0);
_.q([_.R({selector:_.I_,selectorArgs:["data.playlistId"]}),_.N("design:type",String)],o3.prototype,"transferState",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],o3.prototype,"dataChanged",null);o3=_.q([_.d({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],o3);
_.w(o3,"ytd-playlist-add-to-option-renderer",function(){if(jdC!==void 0)return jdC;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return jdC=x},{mode:1});_.E9(aqi);_.KH(aqi,"ytd-menu-title-renderer",{propNames:["data"]});var yC=function(){var x=_.n.apply(this,arguments)||this;x.addToStrings={ADD_TO_DROPDOWN_LABEL:_.Wg("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};x.closeButtonAriaLabel=_.Wg("SBOX_INAPPROPRIATE_CANCEL");x.dialog=_.B("desktop_add_to_playlist_renderer_dialog_popup");return x};
_.m(yC,_.n);_.a=yC.prototype;_.a.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"}}}};
_.a.onPopupOpened=function(){_.E4(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.a.onPopupClosed=function(){_.E4(this.playlists,"scrollable",!1)};
_.a.computeAriaLabel=function(){var x;if(this==null?0:(x=this.data)==null?0:x.actions){x=_.l(this.data.actions);for(var G=x.next();!G.done;G=x.next())if(G=G.value,G.menuTitleRenderer)return _.u7(G.menuTitleRenderer.title)}};
_.a.onTapClose=function(){_.xO(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.Nq.Object.defineProperties(yC.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var x;if(this==null?0:(x=this.data)==null?0:x.actions){x=_.l(this.data.actions);for(var G=x.next();!G.done;G=x.next())if(G=G.value,G.menuTitleRenderer)return G.menuTitleRenderer}return!1}}});
yC.prototype.onPopupClosed=yC.prototype.onPopupClosed;yC.prototype.onPopupOpened=yC.prototype.onPopupOpened;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],yC.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.Tg.YtEventForwardingBehavior),_.N("design:type",Object)],yC.prototype,"ytEventForwardingBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],yC.prototype,"ytRendererStamperBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],yC.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],yC.prototype,"addToStrings",void 0);_.q([_.R({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.N("design:type",String)],yC.prototype,"ariaLabel",void 0);_.q([_.R(),_.N("design:type",String)],yC.prototype,"closeButtonAriaLabel",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],yC.prototype,"dialog",void 0);
_.q([_.cD("#playlists"),_.N("design:type",HTMLElement)],yC.prototype,"playlists",void 0);_.q([_.cD("ytd-add-to-playlist-create-renderer"),_.N("design:type",Object)],yC.prototype,"createRenderer",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],yC.prototype,"menuTitleRenderer",null);_.q([_.oe("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yC.prototype,"onPopupOpened",null);
_.q([_.oe("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yC.prototype,"onPopupClosed",null);yC=_.q([_.d({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],yC);
_.w(yC,"ytd-add-to-playlist-renderer",function(){if(IQc!==void 0)return IQc;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return IQc=x},{mode:1});var OMj;var l6=function(){var x=_.n.apply(this,arguments)||this;x.isPlaylistEditComplete=!1;x.isCollabEngagementDisabled=!1;x.closeButtonAriaLabel=_.Wg("SBOX_INAPPROPRIATE_CANCEL");x.saveButton={title:_.Wg("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"};x.onValueChanged=function(){x.updateSaveButtonState();x.computeCollabEngagementDisabled()};
return x};
_.m(l6,_.n);_.a=l6.prototype;_.a.attached=function(){this.JSC$18299_scroller&&(this.JSC$18299_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18299_scroller.attached&&typeof this.JSC$18299_scroller.attached==="function"&&this.JSC$18299_scroller.attached())};
_.a.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.a.onPopupClosed=function(){this.reset()};
_.a.close=function(){_.xO(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.a.onClickSave=function(){var x=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var G=[];this.nameInput.value!==null&&G.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&G.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var D=Number(this.privacyInput.value);isNaN(D)||G.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:D})}this.votingInput.value!==null&&(D=this.votingInput.value)&&G.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:D});if(G.length>0){var K;_.Y((K=this.data)==null?void 0:K.updateSettingsEndpoint,_.YV).actions=G;var z;if((z=this.data)==null?0:z.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){x.close()}}}),this.isPlaylistEditComplete=!0}}};
_.a.computePrivacyBadge=function(x){return x?[{metadataBadgeRenderer:x}]:[]};
_.a.computeEditorData=function(x){var G,D;return x==null?void 0:(G=x.sections)==null?void 0:(D=G[0])==null?void 0:D.playlistSettingsEditorCasualSectionRenderer};
_.a.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.a.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}}}}}};
_.a.computeAriaLabel=function(){var x,G,D,K=(x=this.data)==null?void 0:(G=x.sections)==null?void 0:(D=G[0])==null?void 0:D.playlistSettingsEditorCasualSectionRenderer;return _.u7(K==null?void 0:K.title)};
_.a.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"}))};
_.a.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.a.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.a.isNameChanged=function(){var x,G,D;return(((x=this.editorData)==null?void 0:(G=x.name)==null?void 0:(D=G.textInputFormFieldRenderer)==null?void 0:D.value)||"")!==(this.nameInput.value||"")};
_.a.isDescriptionChanged=function(){var x,G,D;return(((x=this.editorData)==null?void 0:(G=x.description)==null?void 0:(D=G.textInputFormFieldRenderer)==null?void 0:D.value)||"")!==(this.descriptionInput.value||"")};
_.a.isPrivacyChanged=function(){var x,G,D,K,z,y,c,W;return((c=(x=this.editorData)==null?void 0:(G=x.privacy)==null?void 0:(D=G.dropdownFormFieldRenderer)==null?void 0:(K=D.dropdown)==null?void 0:(z=K.dropdownRenderer)==null?void 0:(y=z.entries)==null?void 0:y.find(function(e){var Q;return e==null?void 0:(Q=e.privacyDropdownItemRenderer)==null?void 0:Q.isSelected}))==null?void 0:(W=c.privacyDropdownItemRenderer)==null?void 0:W.int32Value)!==this.privacyInput.value};
_.a.isVotingChanged=function(){var x,G,D,K,z,y,c,W;return((c=(x=this.editorData)==null?void 0:(G=x.voting)==null?void 0:(D=G.dropdownFormFieldRenderer)==null?void 0:(K=D.dropdown)==null?void 0:(z=K.dropdownRenderer)==null?void 0:(y=z.entries)==null?void 0:y.find(function(e){var Q;return e==null?void 0:(Q=e.privacyDropdownItemRenderer)==null?void 0:Q.isSelected}))==null?void 0:(W=c.privacyDropdownItemRenderer)==null?void 0:W.int32Value)!==this.votingInput.value};
l6.prototype.onPopupClosed=l6.prototype.onPopupClosed;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],l6.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],l6.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.Tg.YtEventForwardingBehavior),_.N("design:type",Object)],l6.prototype,"ytEventForwardingBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],l6.prototype,"ytRendererStamperBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],l6.prototype,"data",void 0);_.q([_.R({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.N("design:type",Array)],l6.prototype,"privacyBadge",void 0);_.q([_.R({computed:"computeEditorData(data)"}),_.N("design:type",Object)],l6.prototype,"editorData",void 0);_.q([_.R(),_.N("design:type",Object)],l6.prototype,"isPlaylistEditComplete",void 0);_.q([_.R(),_.N("design:type",Object)],l6.prototype,"isCollabEngagementDisabled",void 0);
_.q([_.R({value:{REQUIRED_LABEL:_.Wg("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Wg("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.N("design:type",Object)],l6.prototype,"addToStrings",void 0);_.q([_.R({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.N("design:type",String)],l6.prototype,"ariaLabel",void 0);_.q([_.R(),_.N("design:type",String)],l6.prototype,"closeButtonAriaLabel",void 0);
_.q([_.R(),_.N("design:type",Object)],l6.prototype,"saveButton",void 0);_.q([_.cD("#name-input"),_.N("design:type",Object)],l6.prototype,"nameInput",void 0);_.q([_.cD("#description-input"),_.N("design:type",Object)],l6.prototype,"descriptionInput",void 0);_.q([_.cD("#privacy-input"),_.N("design:type",Object)],l6.prototype,"privacyInput",void 0);_.q([_.cD("#voting-input"),_.N("design:type",Object)],l6.prototype,"votingInput",void 0);
_.q([_.cD("#scroller"),_.N("design:type",Object)],l6.prototype,"JSC$18299_scroller",void 0);_.q([_.oe("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],l6.prototype,"onPopupClosed",null);_.q([_.R(),_.N("design:type",Object)],l6.prototype,"onValueChanged",void 0);l6=_.q([_.d({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],l6);
_.w(l6,"ytd-playlist-settings-editor-renderer",function(){if(OMj===void 0){var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-settings-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="header-title" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-formatted-string text="[[editorData.title]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-icon icon="close" class="style-scope ytd-playlist-settings-editor-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="content" class="style-scope ytd-playlist-settings-editor-renderer">\n    <div id="thumbnail" class="style-scope ytd-playlist-settings-editor-renderer"></div>\n    <div id="edit-playlist-form" class="style-scope ytd-playlist-settings-editor-renderer">\n      <yt-text-input-form-field-renderer id="name-input" data="[[editorData.name.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <yt-text-input-form-field-renderer id="description-input" data="[[editorData.description.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!editorData.privacy.metadataBadgeRenderer]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-dropdown-renderer id="privacy-input" data="[[editorData.privacy.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" hidden="[[!editorData.privacy]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <ytd-dropdown-renderer id="voting-input" data="[[editorData.voting.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" disabled="[[isCollabEngagementDisabled]]" hidden="[[!editorData.voting]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <div id="collaborate" class="style-scope ytd-playlist-settings-editor-renderer">\n        <yt-list-item-view-model data="[[editorData.collaborate.listItemViewModel]]" disabled="[[isCollabEngagementDisabled]]" hidden$="[[!editorData.collaborate]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-list-item-view-model>\n      </div>\n    </div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="actions" class="style-scope ytd-playlist-settings-editor-renderer">\n  <yt-button-view-model data="[[saveButton]]" scoping-class-name="[[is]]" on-click="onClickSave" class="style-scope ytd-playlist-settings-editor-renderer">\n  </yt-button-view-model>\n</div>\n');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);OMj=x}x=OMj;return x},{mode:1});var Xtx;_.HH("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var c4=function(){return _.n.apply(this,arguments)||this};
_.m(c4,_.n);_.a=c4.prototype;_.a.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}}}}}};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.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 x=this.get("data.nextButton.buttonRenderer.navigationEndpoint");x&&(this.nextNavigationEndpoint=x,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.a.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 x={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",x)}}};
_.a.onPopupOpened=function(x){x.detail!==this&&x.detail!==this.hostElement||!_.B("enable_premium_voluntary_pause")||_.xO(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.a.onNextButtonTap=function(){var x=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);x&&this.ytdOpenPopupBehavior.openPopup(x)};
_.a.updateSelectedResponseIndexFromBinding=function(x){this.selectedResponseIndex=x.detail.value};
c4.prototype.onPopupOpened=c4.prototype.onPopupOpened;c4.prototype.onSelectedResponseIndexChange=c4.prototype.onSelectedResponseIndexChange;c4.prototype.dataChanged=c4.prototype.dataChanged;_.q([_.I(_.i9),_.N("design:type",Object)],c4.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],c4.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],c4.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],c4.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Number)],c4.prototype,"selectedResponseIndex",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],c4.prototype,"dataChanged",null);_.q([_.yf("selectedResponseIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],c4.prototype,"onSelectedResponseIndexChange",null);
_.q([_.oe("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],c4.prototype,"onPopupOpened",null);c4=_.q([_.d({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],c4);
_.w(c4,"ytd-red-cancel-survey-renderer",function(){if(Xtx!==void 0)return Xtx;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Xtx=x},{mode:1});var AMC;var T5=function(){var x=_.n.apply(this,arguments)||this;x.closeButtonAriaLabel=_.Wg("SBOX_INAPPROPRIATE_CANCEL");return x};
_.m(T5,_.n);T5.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
T5.prototype.onClickClose=function(){_.xO(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],T5.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],T5.prototype,"rendererStamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],T5.prototype,"data",void 0);_.q([_.R(),_.N("design:type",String)],T5.prototype,"closeButtonAriaLabel",void 0);T5=_.q([_.d({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],T5);
_.w(T5,"ytd-search-filter-options-dialog-renderer",function(){if(AMC!==void 0)return AMC;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return AMC=x},{mode:1});var UdT;var lqf=function(){return function(x){x=x.availabilityType;return x===void 0||x==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||x==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var W4=function(){var x=_.n.apply(this,arguments)||this;x.qualityOptions=[];x.upsellOptions=[];x.showUpsellSection=!1;x.darkerDarkTheme=_.B("web_darker_dark_theme");x.rememberSettingsChecked=!1;return x};
_.m(W4,_.n);_.a=W4.prototype;_.a.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}}}}};
_.a.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.a.updateQualityOptions=function(){if(this.formats===void 0)_.xO(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var x=[],G=[];this.showUpsellSection=!1;for(var D=_.l(this.formats),K=D.next();!K.done;K=D.next())(K=K.value)&&(K.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?G.push(K):x.push(K));x.length&&(this.qualityOptions=yNx(x));G.length&&(this.showUpsellSection=!0,this.upsellOptions=yNx(G))}};
_.a.updateRememberString=function(){if(this.downloadQualityPickerEntity)var x=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var G;x=(G=this.data)==null?void 0:G.premiumRememberSettingString}else{var D;x=(D=this.data)==null?void 0:D.rememberSettingString}x=x===void 0?_.Wg("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):x;this.rememberSettingsCheckboxRenderer={title:_.tN(x),disabled:!1}};
_.a.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.Nq.Object.defineProperties(W4.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var x;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(x=this.data)==null?void 0:x.qualityFormats}}});
W4.prototype.updateRememberString=W4.prototype.updateRememberString;W4.prototype.updateQualityOptions=W4.prototype.updateQualityOptions;W4.prototype.dataChanged=W4.prototype.dataChanged;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],W4.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],W4.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],W4.prototype,"data",void 0);
_.q([_.I(_.$l),_.N("design:type",Object)],W4.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Boolean)],W4.prototype,"selectedUpsellQuality",void 0);_.q([_.R({computed:"computeIcon_(data.premiumIcon)",value:""}),_.N("design:type",String)],W4.prototype,"premiumIcon",void 0);_.q([_.R({selector:PMj,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.N("design:type",Object)],W4.prototype,"downloadQualityPickerEntity",void 0);
_.q([_.R(),_.N("design:type",Array)],W4.prototype,"qualityOptions",void 0);_.q([_.R(),_.N("design:type",Array)],W4.prototype,"upsellOptions",void 0);_.q([_.R(),_.N("design:type",Object)],W4.prototype,"showUpsellSection",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],W4.prototype,"darkerDarkTheme",void 0);_.q([_.R(),_.N("design:type",Object)],W4.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.q([_.cD("#remember-settings"),_.N("design:type",HTMLInputElement)],W4.prototype,"rememberSettingsCheckbox",void 0);_.q([_.R(),_.N("design:type",Object)],W4.prototype,"rememberSettingsChecked",void 0);_.q([_.R(),_.N("design:type",Function)],W4.prototype,"onRememberSettingsCheckedChanged",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],W4.prototype,"dataChanged",null);
_.q([_.yf("downloadQualityPickerEntity"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],W4.prototype,"updateQualityOptions",null);_.q([_.yf("selectedUpsellQuality"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],W4.prototype,"updateRememberString",null);W4=_.q([_.d({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],W4);
_.w(W4,"ytd-download-quality-selector-content",function(){if(UdT!==void 0)return UdT;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return UdT=x},{mode:1});var R2c;var eo=function(){var x=_.n.apply(this,arguments)||this;x.selectedUpsellQuality=!1;x.qualityOptions=[];x.darkerDarkTheme=_.B("web_darker_dark_theme");x.useUpsellDismissAlternate=_.B("use_not_now_dl_upsell_dismiss_cta");x.shouldShowAlternateUpsellDimiss=!1;x.rememberSettings=!1;x.rememberSettingsChecked=!1;x.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};x.rememberSettingsCheckedChanged=function(G){x.rememberSettingsChecked=G};
return x};
_.m(eo,_.n);_.a=eo.prototype;
_.a.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.tN(_.Wg("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.tN(_.Wg("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.tN(_.Wg("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.tN(_.Wg("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.a.updateQualityOptions=function(){this.formats===void 0?_.xO(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=yNx(this.formats)};
_.a.onQualityOptionsSelect=function(x){if(this.qualityOptions&&x){x!==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 G=_.l(this.qualityOptions.entries()),D=G.next();!D.done;D=
G.next()){D=_.l(D.value);var K=D.next().value;D=D.next().value;var z=void 0,y=void 0;if(((z=D)==null?void 0:(y=z.settingsRadioOptionRenderer)==null?void 0:y.id)===x){this.selectedQualityIndex=K;x=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((x=this.formats[K])==null?void 0:x.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.a.onClickSubmit=function(){var x;if((x=this.downloadButtonRenderer)==null||!x.isDisabled){var G,D;x=(D=(G=this.data)==null?void 0:G.onSubmitEndpoint)!=null?D:{};var K,z;if(this.formats&&(((K=_.Y(x,_.zx))==null?0:K.videoId)||((z=_.Y(x,_.oO))==null?0:z.playlistId))){var y,c,W,e,Q,p;G={formatType:(e=(y=this.formats)==null?void 0:(c=y[(W=this.selectedQualityIndex)!=null?W:0])==null?void 0:c.format)!=null?e:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(Q=this.getOfflineEndpoint(x))==null?void 0:(p=Q.actionParams)==null?void 0:p.settingsAction)};this.getOfflineEndpoint(x).actionParams=G;this.ytComponentBehavior.resolveCommand(x)}_.xO(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.a.onClickUpsell=function(){var x;if((x=this.upsellButtonRenderer)==null||!x.isDisabled){var G,D;x=(D=(G=this.data)==null?void 0:G.upsellEndpoint)!=null?D:{};this.ytComponentBehavior.resolveCommand(x);_.xO(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);G="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var K,z,y,c;G=(c=(K=this.formats)==null?void 0:(z=K[(y=this.selectedQualityIndex)!=null?y:0])==null?void 0:z.format)!=null?c:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:G}})}};
_.a.onClickClose=function(){_.xO(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.a.getOfflineSettingsAction=function(x,G){return x?G===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":G:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.a.getOfflineEndpoint=function(x){return _.Y(x,_.zx)?_.Y(x,_.zx):_.Y(x,_.oO)};
_.Nq.Object.defineProperties(eo.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.tN(_.Wg("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var x;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(x=this.data)==null?void 0:x.qualityFormats}}});
eo.prototype.updateQualityOptions=eo.prototype.updateQualityOptions;eo.prototype.dataChanged=eo.prototype.dataChanged;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],eo.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],eo.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],eo.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],eo.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],eo.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Number)],eo.prototype,"selectedQualityIndex",void 0);_.q([_.R(),_.N("design:type",Object)],eo.prototype,"selectedUpsellQuality",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],eo.prototype,"ytdReduxBehavior",void 0);
_.q([_.R({selector:PMj,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.N("design:type",Object)],eo.prototype,"downloadQualityPickerEntity",void 0);_.q([_.R(),_.N("design:type",Array)],eo.prototype,"qualityOptions",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],eo.prototype,"darkerDarkTheme",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],eo.prototype,"useUpsellDismissAlternate",void 0);
_.q([_.R(),_.N("design:type",Object)],eo.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.q([_.R(),_.N("design:type",Object)],eo.prototype,"downloadButtonRenderer",void 0);_.q([_.R(),_.N("design:type",Object)],eo.prototype,"upsellButtonRenderer",void 0);_.q([_.R(),_.N("design:type",Object)],eo.prototype,"cancelButtonRenderer",void 0);_.q([_.R(),_.N("design:type",Object)],eo.prototype,"upsellCancelButtonRenderer",void 0);_.q([_.R(),_.N("design:type",Object)],eo.prototype,"rememberSettings",void 0);
_.q([_.R(),_.N("design:type",Object)],eo.prototype,"rememberSettingsChecked",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],eo.prototype,"dataChanged",null);_.q([_.yf("downloadQualityPickerEntity"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],eo.prototype,"updateQualityOptions",null);eo=_.q([_.d({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],eo);
_.w(eo,"ytd-download-quality-selector-renderer",function(){if(R2c!==void 0)return R2c;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return R2c=x},{mode:1});var SJY;var Zx=function(){var x=_.n.apply(this,arguments)||this;x.darkerDarkTheme=_.B("web_darker_dark_theme");return x};
_.m(Zx,_.n);Zx.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Zx.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"}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Zx.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Zx.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Zx.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],Zx.prototype,"darkerDarkTheme",void 0);_.q([_.R({computed:"computeIcon_(data.infoIcon)"}),_.N("design:type",Object)],Zx.prototype,"infoIcon",void 0);
_.q([_.R({computed:"computeIcon_(data.warningIcon)"}),_.N("design:type",Object)],Zx.prototype,"warningIcon",void 0);Zx=_.q([_.d({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Zx);
_.w(Zx,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(SJY!==void 0)return SJY;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return SJY=x},{mode:1});var nnc;var MK=function(){var x=_.n.apply(this,arguments)||this;x.darkerDarkTheme=_.B("web_darker_dark_theme");return x};
_.m(MK,_.n);MK.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
MK.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"}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],MK.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],MK.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],MK.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],MK.prototype,"darkerDarkTheme",void 0);MK=_.q([_.d({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],MK);
_.w(MK,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(nnc!==void 0)return nnc;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return nnc=x},{mode:1});var iMC;var QC=function(){var x=_.n.apply(this,arguments)||this;x.darkerDarkTheme=_.B("web_darker_dark_theme");return x};
_.m(QC,_.n);QC.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
QC.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"}}}}};
QC.prototype.onServiceRequestSentOrCompleted=function(x,G){G&&G.actions&&G.actions.length>0&&_.xO(this.hostElement,"yt-close-popup-action",[this.is])};
QC.prototype.onServiceRequestSentOrCompleted=QC.prototype.onServiceRequestSentOrCompleted;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],QC.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],QC.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],QC.prototype,"darkerDarkTheme",void 0);_.q([_.R(),_.N("design:type",Object)],QC.prototype,"data",void 0);
_.q([_.oe("yt-service-request-completed"),_.oe("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.gG]),_.N("design:returntype")],QC.prototype,"onServiceRequestSentOrCompleted",null);QC=_.q([_.d({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],QC);
_.w(QC,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(iMC!==void 0)return iMC;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return iMC=x},{mode:1});var gnY;var pI=function(){var x=_.n.apply(this,arguments)||this;x.darkerDarkTheme=_.B("web_darker_dark_theme");x.submitButtonDisabled=!0;return x};
_.m(pI,_.n);_.a=pI.prototype;_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.a.onDataChanged=function(){var x,G,D;if(((x=this.data)==null?void 0:(G=x.confirmButton)==null?void 0:(D=G.buttonRenderer)==null?void 0:D.isDisabled)!==void 0){var K,z,y;this.submitButtonDisabled=(K=this.data)==null?void 0:(z=K.confirmButton)==null?void 0:(y=z.buttonRenderer)==null?void 0:y.isDisabled}};
_.a.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.a.updateSubmitButtonDisabledFromBinding=function(x){this.submitButtonDisabled=x.detail.value};
_.a.updateSubmitButtonDisabledFromConfirmCheckbox=function(x){this.submitButtonDisabled=!x.detail.value};
pI.prototype.onDataChanged=pI.prototype.onDataChanged;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],pI.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],pI.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],pI.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],pI.prototype,"darkerDarkTheme",void 0);
_.q([_.R(),_.N("design:type",Object)],pI.prototype,"submitButtonDisabled",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pI.prototype,"onDataChanged",null);pI=_.q([_.d({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],pI);
_.w(pI,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(gnY!==void 0)return gnY;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return gnY=x},{mode:1});var u2Y;var VC=function(){return _.n.apply(this,arguments)||this};
_.m(VC,_.n);_.Nq.Object.defineProperties(VC.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var x,G,D;return((x=this.data)==null?void 0:x.title)+" "+((G=this.data)==null?void 0:G.metadataPrimary)+" "+((D=this.data)==null?void 0:D.metadataSecondary)}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],VC.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],VC.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],VC.prototype,"data",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],VC.prototype,"ariaLabel",null);VC=_.q([_.d({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],VC);
_.w(VC,"ytd-compact-product-list-item-renderer",function(){if(u2Y!==void 0)return u2Y;var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return u2Y=x},{mode:1});var ddf;var b6=function(){return _.n.apply(this,arguments)||this};
_.m(b6,_.n);b6.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]]"}}}}}};
_.Nq.Object.defineProperties(b6.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],b6.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],b6.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],b6.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],b6.prototype,"data",void 0);b6=_.q([_.d({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],b6);
_.w(b6,"ytd-compact-product-list-renderer",function(){if(ddf!==void 0)return ddf;var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return ddf=x},{mode:1});var wt8;var LI=function(){var x=_.n.apply(this,arguments)||this;x.darkerDarkTheme=_.B("web_darker_dark_theme");return x};
_.m(LI,_.n);_.a=LI.prototype;_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.a.getBackgroundUrl=function(){var x=this.get("data.headerImage.thumbnails");return x?"url("+_.k$(x,this.hostElement.clientWidth)+")":""};
_.a.onDataChanged=function(){var x=this.getBackgroundUrl();x&&(this.header.style.backgroundImage=x);x=_.CC();var G=_.Fx(),D=this.get("data.trackingParams");D&&G&&x&&_.RI(x,G,_.V2(D));x=_.l(this.hostElement.querySelectorAll("yt-img-shadow"));for(G=x.next();!G.done;G=x.next())G.value.onShow()};
_.a.onPopupClosed=function(x){_.uo(x).localName==="ytd-membership-post-cancel-renderer"&&_.xO(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
LI.prototype.onPopupClosed=LI.prototype.onPopupClosed;LI.prototype.onDataChanged=LI.prototype.onDataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],LI.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],LI.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],LI.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],LI.prototype,"darkerDarkTheme",void 0);
_.q([_.cD("#header"),_.N("design:type",HTMLDivElement)],LI.prototype,"header",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],LI.prototype,"onDataChanged",null);_.q([_.oe("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],LI.prototype,"onPopupClosed",null);LI=_.q([_.d({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],LI);
_.w(LI,"ytd-membership-post-cancel-renderer",function(){if(wt8!==void 0)return wt8;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return wt8=x},{mode:1});var qJi;var B4=function(){var x=_.n.apply(this,arguments)||this;x.darkerDarkTheme=_.B("web_darker_dark_theme");return x};
_.m(B4,_.n);B4.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
B4.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],B4.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],B4.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],B4.prototype,"darkerDarkTheme",void 0);_.q([_.cD("ytd-feedback-survey-renderer"),_.N("design:type",Object)],B4.prototype,"feedbackSurveyRenderer",void 0);B4=_.q([_.d({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],B4);
_.w(B4,"ytd-sponsorship-confirm-cancel-content",function(){if(qJi!==void 0)return qJi;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return qJi=x},{mode:1});var N8Y;var rw=function(){var x=_.n.apply(this,arguments)||this;x.darkerDarkTheme=_.B("web_darker_dark_theme");x.maybeSubmitFeedback=function(){x.content&&x.content.maybeSubmitFeedback()};
return x};
_.m(rw,_.n);_.a=rw.prototype;_.a.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.a.onYtPopupOpened=function(x,G){G===this&&this.data&&this.data.onOpenCommands&&_.zl(this.hostElement,this.data.onOpenCommands,this.hostElement);_.xO(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.a.onYtPopupClosed=function(x,G){(G&&G.canceled===!0||G&&G.canceled===!1&&G.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.zl(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.a.onYtServiceRequestCompleted=function(){_.xO(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.a.onYtServiceRequestError=function(x){_.kL(this.hostElement,x.detail.error.message)};
_.a.onDataChanged=function(){if(this.isAttached){var x=this.backgroundUrl;x&&(_.kA(this.hostElement).querySelector("#header").style.backgroundImage=x)}};
_.Nq.Object.defineProperties(rw.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var x=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return x?"url("+_.k$(x,this.hostElement.clientWidth)+")":""}}});
rw.prototype.onDataChanged=rw.prototype.onDataChanged;rw.prototype.onYtServiceRequestError=rw.prototype.onYtServiceRequestError;rw.prototype.onYtServiceRequestCompleted=rw.prototype.onYtServiceRequestCompleted;rw.prototype.onYtPopupClosed=rw.prototype.onYtPopupClosed;rw.prototype.onYtPopupOpened=rw.prototype.onYtPopupOpened;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],rw.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],rw.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],rw.prototype,"data",void 0);_.q([_.R({value:function(){return _.Wg("SBOX_INAPPROPRIATE_CANCEL")}}),
_.N("design:type",String)],rw.prototype,"closeButtonAriaLabel",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],rw.prototype,"darkerDarkTheme",void 0);_.q([_.cD("#scrollable"),_.N("design:type",Object)],rw.prototype,"scrollable",void 0);_.q([_.cD("ytd-sponsorship-confirm-cancel-content"),_.N("design:type",Object)],rw.prototype,"content",void 0);
_.q([_.oe("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],rw.prototype,"onYtPopupOpened",null);_.q([_.oe("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],rw.prototype,"onYtPopupClosed",null);
_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],rw.prototype,"onYtServiceRequestCompleted",null);_.q([_.oe("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],rw.prototype,"onYtServiceRequestError",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rw.prototype,"onDataChanged",null);
rw=_.q([_.d({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],rw);
_.w(rw,"ytd-sponsorship-confirm-cancel-renderer",function(){if(N8Y!==void 0)return N8Y;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return N8Y=x},{mode:_.Ge("kevlar_poly_si_batch_j081")?1:2});var vn4;var s0=function(){var x=_.n.apply(this,arguments)||this;x.darkerDarkTheme=_.B("web_darker_dark_theme");return x};
_.m(s0,_.n);s0.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],s0.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],s0.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],s0.prototype,"darkerDarkTheme",void 0);s0=_.q([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],s0);
_.w(s0,"ytd-sponsorships-celebration-content",function(){if(vn4!==void 0)return vn4;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return vn4=
x},{mode:1});var JMi;var fQO=_.gv(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),YN=function(){var x=_.n.apply(this,arguments)||this;x.scriptsAppended=!1;x.buttonOverrides={type:"tonal",style:"overlay-dark"};return x};
_.m(YN,_.n);_.a=YN.prototype;
_.a.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:_.B("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}}}}}};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.onDataChanged=function(){var x;(x=this.header)==null||x.style.setProperty("background-color",this.backgroundColor);if(x=this.headerImageUrl){var G;(G=this.header)==null||G.style.setProperty("background-image",x)}G=_.CC(4);x=_.Fx(4);var D=this.get("data.trackingParams");if(D&&x&&G){var K=_.V2(D);_.RI(G,x,K);_.B("combine_ve_grafts")?_.en().graftServerVe(D,x,4):_.RI(G,x,K)}G=_.l(this.hostElement.querySelectorAll("yt-img-shadow"));for(x=G.next();!x.done;x=G.next())x.value.onShow();if(G=this.get("data.gtmId"))_.pF(G,
_.Am("GL","")),this.setupConversionTracking()};
_.a.setupConversionTracking=function(){if(!this.scriptsAppended){var x=document.createElement("script");var G=_.A_(fQO.join(""));_.RF(x,G);document.head.appendChild(x);x=document.createElement("noscript");x.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(x);this.scriptsAppended=!0}};
_.a.onPopupClosed=function(x){if(_.uo(x).localName==="ytd-sponsorships-celebration-renderer"){_.xO(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var G;this.data&&((G=this.data)==null?0:G.dismissCommand)&&_.y2.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.Nq.Object.defineProperties(YN.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var x=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.jT(x)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var x=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return x?"url("+_.k$(x,this.hostElement.getBoundingClientRect().width)+")":""}}});
YN.prototype.onPopupClosed=YN.prototype.onPopupClosed;YN.prototype.onDataChanged=YN.prototype.onDataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],YN.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],YN.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],YN.prototype,"data",void 0);_.q([_.cD("#header"),_.N("design:type",HTMLElement)],YN.prototype,"header",void 0);
_.q([_.R(),_.N("design:type",Object)],YN.prototype,"scriptsAppended",void 0);_.q([_.R(),_.N("design:type",Object)],YN.prototype,"buttonOverrides",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YN.prototype,"onDataChanged",null);_.q([_.oe("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],YN.prototype,"onPopupClosed",null);
YN=_.q([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],YN);
_.w(YN,"ytd-sponsorships-celebration-renderer",function(){if(JMi!==void 0)return JMi;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return JMi=x},{mode:1});var teY;var mN=function(){var x=_.n.apply(this,arguments)||this;x.isToggleChecked=!1;return x};
_.m(mN,_.n);mN.prototype.onDataChanged=function(){var x;this.isToggleChecked=((x=this.data)==null?void 0:x.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
mN.prototype.close=function(){var x;((x=this.data)==null?0:x.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
mN.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var x,G=_.Y((x=this.data)==null?void 0:x.switchButton,UMc);G&&(this.isToggleChecked&&G.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(G.switchOnInnertubeCommand),!this.isToggleChecked&&G.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(G.switchOffInnertubeCommand))};
mN.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
mN.prototype.onDataChanged=mN.prototype.onDataChanged;_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],mN.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],mN.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],mN.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],mN.prototype,"isToggleChecked",void 0);_.q([_.R({value:_.Wg("CLOSE")}),_.N("design:type",String)],mN.prototype,"closeButtonAriaLabel",void 0);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mN.prototype,"onDataChanged",null);mN=_.q([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],mN);
_.w(mN,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(teY!==void 0)return teY;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return teY=x},{mode:1});var kpk;var H4=function(){return _.n.apply(this,arguments)||this};
_.m(H4,_.n);_.a=H4.prototype;_.a.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"}}}}};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.detached=function(){this.playerElement.stop()};
_.a.onYtServiceRequestCompleted=function(){_.xO(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.a.onYtServiceRequestError=function(x){_.kL(this.hostElement,x.detail.error.message)};
_.a.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.a.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.a.getTier=function(x,G){return!x||!x.tiers||G<0?null:_.Y(x.tiers[G],iZC)};
_.a.moreThanOne=function(x){return!!(x&&x.length>1)};
_.a.tierOverviewTap=function(x){var G=this;this.selectedTier=x.model.index;_.w1(this,function(){_.h$(G.hostElement,"yt-refit")})};
_.a.computeSelectedClass=function(x,G){return this.isSelected(x,G)?"selected":""};
_.a.computeButtonAriaPressed=function(x,G){return this.isSelected(x,G)?"true":"false"};
_.a.isSelected=function(x,G){return x===G};
_.a.onDataChanged=function(){_.kA(this.hostElement).querySelector("#header-overlay").style.visibility="";_.kA(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 x=_.l(this.hostElement.querySelectorAll("yt-img-shadow")),
G=x.next();!G.done;G=x.next())G.value.onShow();var D;this.set("selectedTier",(D=this.get("data.targetTierIndex"))!=null?D:0);var K;(x=(K=this.data)==null?void 0:K.onVisible)&&this.ytComponentBehavior.resolveCommand(x)};
_.a.initializeVe=function(x){var G=_.CC(),D=_.Fx(),K=this.get("data.trackingParams");D&&G&&(this.screenLayer=4,G=_.SR(_.erf)(void 0,69877,{clientScreenNonce:G,visualElement:D},void 0,void 0,void 0),_.jq(G,69877,4),D=_.Fx(4),K&&D&&(K=_.V2(K),_.RI(G,D,K),x&&(this.offerVideoVe=_.BH(74659),_.RI(G,K,this.offerVideoVe))))};
_.a.setHeaderBackground=function(){var x=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.kA(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.jT(x);if(x=this.getHeaderImage())x=_.k$(x,screen.width),_.kA(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+x+")"};
_.a.getHeaderImage=function(){var x=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&x?x:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.a.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.a.setupVideoPlayer=function(x){var G=this,D,K,z,y;return _.T(function(c){if(c.nextAddress==1)return D=G.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),K=G.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.B("kevlar_player_update_killswitch")?G.playerElement.update({args:{autoplay:D,video_id:x,player_params:K}}):G.playerElement.loadVideoWithPlayerVars({autoplay:D,video_id:x,player_params:K}),
_.Z(c,G.playerElement.getPlayerPromise(),2);z=c.yieldResult;z.addEventListener("onStateChange",function(W){G.onPlayerStateChange(W)});
z.setScreenLayer(G.screenLayer);(y=_.CC(4))&&G.offerVideoVe&&_.nW(y,G.offerVideoVe);D&&(G.pauseOtherPlayers(),G.playerElement.focusOnPlayer(),G.playerElement.getPlayer().hideControls(),_.Bw(_.Fj,function(){G.fadeOutHeaderOverlay()},4E3));
_.c5(c)})};
_.a.onPlayerStateChange=function(x){x===1?this.backgroundPlayerElement&&(x=this.backgroundPlayerElement.player_.getPlayerState(),x!==1&&x!==3||this.backgroundPlayerElement.pause()):x===0&&(_.kA(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.kA(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.a.fadeOutHeaderOverlay=function(){_.kA(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.a.onHeaderTap=function(){if(this.offerVideo){_.kA(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var x;((x=this.playerElement.player_)==null?void 0:x.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(x=_.CC(4))&&this.offerVideoVe&&_.u0(x,this.offerVideoVe)}};
_.a.getBackgroundImageLayerClass=function(x){return x?"background-image-layer-with-video":""};
_.a.getHeaderClass=function(x){return x?"header-with-video":""};
_.a.getHeaderOverlayClass=function(x){return x?"header-overlay-with-video":""};
_.a.getTitleContainerClass=function(x,G){return x?"title-container-with-video":G?"title-container-without-video-flexible":"title-container-without-video"};
_.a.tierTitleDisplayStatus=function(x){return this.moreThanOne(x)?"hide":"show"};
_.a.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.Eo().resolve(_.O$).getPlayerElement():this.backgroundPlayerElement=_.Ns();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var x=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=x===1||x===3;this.backgroundPlayerElement.pause()}};
_.a.isMiniplayerActive=function(){return _.Eo().resolve(_.O$).isMiniplayerActive()};
_.a.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Xt("selected-tier-changed",this.selectedTier))};
H4.prototype.selectedTierChangedForBinding=H4.prototype.selectedTierChangedForBinding;H4.prototype.onDataChanged=H4.prototype.onDataChanged;H4.prototype.onYtPopupClosed=H4.prototype.onYtPopupClosed;H4.prototype.onYtPopupOpened=H4.prototype.onYtPopupOpened;H4.prototype.onYtServiceRequestError=H4.prototype.onYtServiceRequestError;H4.prototype.onYtServiceRequestCompleted=H4.prototype.onYtServiceRequestCompleted;
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],H4.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],H4.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],H4.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],H4.prototype,"data",void 0);_.q([_.R({value:0}),_.N("design:type",Number)],H4.prototype,"selectedTier",void 0);
_.q([_.R({value:""}),_.N("design:type",String)],H4.prototype,"offerVideo",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],H4.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.q([_.R({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.Do(this)}}),
_.N("design:type",String)],H4.prototype,"playerId",void 0);_.q([_.cD("tp-yt-paper-dialog-scrollable"),_.N("design:type",Object)],H4.prototype,"scrollable",void 0);_.q([_.cD("ytd-sponsorships-tier-renderer"),_.N("design:type",Object)],H4.prototype,"tierRenderer",void 0);_.q([_.cD("#player"),_.N("design:type",Object)],H4.prototype,"playerElement",void 0);
_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],H4.prototype,"onYtServiceRequestCompleted",null);_.q([_.oe("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],H4.prototype,"onYtServiceRequestError",null);
_.q([_.oe("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],H4.prototype,"onYtPopupOpened",null);_.q([_.oe("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],H4.prototype,"onYtPopupClosed",null);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],H4.prototype,"onDataChanged",null);
_.q([_.yf("selectedTier"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],H4.prototype,"selectedTierChangedForBinding",null);H4=_.q([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],H4);
_.w(H4,"ytd-sponsorships-offer-renderer",function(){if(kpk!==void 0)return kpk;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return kpk=x},{mode:_.Ge("kevlar_poly_si_batch_j077")?1:2});var Pmx;var $N=function(){var x=_.n.apply(this,arguments)||this;x.buttonOverrides={type:"filled",style:"mono"};return x};
_.m($N,_.n);$N.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}}}}}};
$N.prototype.backgroundColorChanged=function(){var x,G,D,K=(G=_.Y((x=this.data)==null?void 0:x.content,gyc))==null?void 0:(D=G.backgroundColor)==null?void 0:D.backgroundColor;K&&(x=_.In(K),_.kA(this.hostElement).querySelector("#banner").style.backgroundColor=x,_.kA(this.hostElement).querySelector("#abstract-art").style.backgroundColor=x)};
$N.prototype.attached=function(){this.JSC$18385_scroller&&(this.JSC$18385_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18385_scroller.attached&&typeof this.JSC$18385_scroller.attached==="function"&&this.JSC$18385_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
$N.prototype.backgroundColorChanged=$N.prototype.backgroundColorChanged;_.q([_.R(),_.N("design:type",Object)],$N.prototype,"data",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],$N.prototype,"ytRendererstamperBehavior",void 0);_.q([_.cD("#scroller"),_.N("design:type",Object)],$N.prototype,"JSC$18385_scroller",void 0);_.q([_.R(),_.N("design:type",Object)],$N.prototype,"buttonOverrides",void 0);
_.q([_.yf("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$N.prototype,"backgroundColorChanged",null);$N=_.q([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],$N);
_.w($N,"ytd-sponsorships-promotion-celebration-renderer",function(){if(Pmx!==void 0)return Pmx;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Pmx=x},{mode:_.Ge("kevlar_poly_si_batch_j077")?1:2});var Eni;var h2f;var FS=function(){return _.n.apply(this,arguments)||this};
_.m(FS,_.n);FS.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
FS.prototype.computeIsInitiallyChecked=function(x){return x===1};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],FS.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],FS.prototype,"data",void 0);_.q([_.cD("#checkbox"),_.N("design:type",Object)],FS.prototype,"checkbox",void 0);FS=_.q([_.d({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],FS);
_.w(FS,"ytd-subscription-toggle-option-renderer",function(){if(h2f!==void 0)return h2f;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return h2f=x},{mode:1});var CI=function(){var x=_.n.apply(this,arguments)||this;x.darkerDarkTheme=_.B("web_darker_dark_theme");x.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return x};
_.m(CI,_.n);CI.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"}}}};
CI.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
CI.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var x=_.kA(this.hostElement).querySelector("#options").selected;x=this.data.options[x].subscriptionRadioOptionRenderer.serviceEndpoint;var G=_.kA(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");G&&x&&x.modifyChannelNotificationPreferenceEndpoint&&(G=G.getValue())&&(x.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[G]);_.Eo().resolve(_.hm).resolveCommand(x,{form:{element:this.hostElement}});
_.xO(this.hostElement,"yt-close-popup-action")};
_.Nq.Object.defineProperties(CI.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var x=this.data.options,G=0;G<x.length;G++){var D=x[G].subscriptionRadioOptionRenderer;if(D&&D.selected)return G}return null}}});
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],CI.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],CI.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.Tg.YtEventForwardingBehavior),_.N("design:type",Object)],CI.prototype,"eventForwardingBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],CI.prototype,"ytRendererBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],CI.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],CI.prototype,"darkerDarkTheme",void 0);_.q([_.U("data.options"),_.N("design:type",Object),_.N("design:paramtypes",[])],CI.prototype,"initialIndex",null);CI=_.q([_.d({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],CI);
_.w(CI,"ytd-subscription-notification-options-renderer",function(){if(Eni!==void 0)return Eni;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Eni=x},{mode:1});var xgY;var I3=function(){return _.n.apply(this,arguments)||this};
_.m(I3,_.n);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],I3.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],I3.prototype,"data",void 0);I3=_.q([_.d({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],I3);
_.w(I3,"ytd-tvfilm-offer-groups-renderer",function(){if(xgY!==void 0)return xgY;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return xgY=x},{mode:1});var Gg4;var jo=function(){var x=_.n.apply(this,arguments)||this;x.darkerDarkTheme=_.B("web_darker_dark_theme");return x};
_.m(jo,_.n);_.a=jo.prototype;_.a.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"}}}};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.a.computeThumbnailClass=function(x){return x.thumbnailOverlays?x.isShow?"thumbnail-show":"thumbnail-movie":x.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.a.computeCommerceSectionClass=function(x){return x.offers&&x.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.a.computeTitleClass=function(x){return x.offers&&x.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.a.onDataChanged=function(){[].concat(_.B5(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(x){x.onShow()})};
jo.prototype.onDataChanged=jo.prototype.onDataChanged;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],jo.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],jo.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],jo.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],jo.prototype,"darkerDarkTheme",void 0);
_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jo.prototype,"onDataChanged",null);jo=_.q([_.d({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],jo);
_.w(jo,"ytd-ypc-offers-overlay-renderer",function(){if(Gg4!==void 0)return Gg4;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Gg4=x},{mode:_.Ge("kevlar_poly_si_batch_j028")?1:2});var DgT;var KZc=function(){this.usedMethods=new Set};
KZc.prototype.add=function(x){this.usedMethods.add(x)};
KZc.prototype.reset=function(){this.usedMethods.clear()};var ocx=function(x,G){this.query=x;this.previousSearchQuery=G;this.id=zQf++;if(!aIY){G=_.Am("SBOX_SETTINGS");x="https://"+((G==null?void 0:G.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var D=G==null?void 0:G.REQUEST_LANGUAGE;D&&(x+="&hl="+D);(D=G==null?void 0:G.REQUEST_DOMAIN)&&(x+="&gl="+D);x+="&client=youtube&gs_ri=youtube";(D=G==null?void 0:G.SUGG_EXP_ID)&&(x+="&sugexp="+encodeURIComponent(D));(D=G==null?void 0:G.PSUGGEST_TOKEN)&&(x+="&tok="+D);(G=
G==null?void 0:G.SESSION_INDEX)&&(x+="&authuser="+G);_.B("desktop_enable_visual_suggest")&&(x+="&h=180&w=320&ytvs=1");aIY=x}},yKT=function(x){var G="q="+encodeURIComponent(x.query);
x.previousSearchQuery&&(G+="&pq="+encodeURIComponent(x.previousSearchQuery));return G},lI8=function(){var x=_.Am("SBOX_SETTINGS"),G={};
if(x==null?0:x.SEND_VISITOR_DATA)G["X-Goog-Visitor-Id"]=x==null?void 0:x.VISITOR_DATA;return G},cK4=function(x){var G=aIY;
G+="&gs_id="+x.id.toString(36);G+="&q="+encodeURIComponent(x.query);G+="&cp="+x.query.length;x.previousSearchQuery&&(G+="&pq="+encodeURIComponent(x.previousSearchQuery));(x=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(G+="&video_id="+x);return G},zQf=0,aIY="";var TRf=_.gN.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,WZ4=_.gN.SEARCH_ENTITY_SUGGESTION_MOVIE,eQj=_.gN.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,ZjO=_.gN.SEARCH_ENTITY_SUGGESTION_TV_SHOW,MGf=function(x,G){this.text=x;this.bold=G},QHO=function(x,G,D){this.input=G;
this.index=D;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=x[0];this.type=x[1];this.subtypes=x[2];var K;this.displayText=tw((K=x[3])==null?void 0:K.b);var z;this.ignoredPrefix=tw((z=x[3])==null?void 0:z.a);var y,c;this.hasNewVideo=((y=x[3])==null?void 0:(c=y.zam)==null?void 0:c.toString())==="true"?!0:!1;var W;this.visualSuggestUrl=(W=x[3])==null?void 0:W.zai;var e;this.entityType=tw((e=x[3])==null?void 0:e.zap);var Q;this.entityName=tw((Q=x[3])==null?void 0:Q.zao);var p;G=tw((p=
x[3])==null?void 0:p.zaf);var V;this.entityMid=(V=x[3])==null?void 0:V.zae;p=TBC(this.subtypes,this.entityMid);if(G&&p){if(G){V="";switch(p){case "YOUTUBE_ENTITY_TYPE_SONG":V=eQj;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":V=TRf;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":V=ZjO;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":V=WZ4}p=p==="YOUTUBE_ENTITY_TYPE_SONG"||p==="YOUTUBE_ENTITY_TYPE_ALBUM"?V+" \u2022  \u2022 "+G:G}else p="";this.entitySubtitle=p}var L;this.externalChannelId=(L=x[3])==null?void 0:L.zav;var r;
this.entityThumbnailAttributionUrl=(r=x[3])==null?void 0:r.zaq},VGO=function(x,G){var D=[],K,z=(K=x.displayText)!=null?K:x.text;
(G==null?0:G.useEntityName)&&p2j(x)&&x.entityName&&(z=x.entityName);if(x.type===33)return D.push(new MGf(z,!1)),D;if(z.length>=x.input.length&&z.substring(0,x.input.length)===x.input)D.push(new MGf(x.input,!1)),D.push(new MGf(z.substring(x.input.length),!0));else{var y=new Set(x.input.split(/\s/)),c=z.split(/\s/);D=c.map(function(W,e){return new MGf(W.trim()+(e===c.length-1?"":" "),!y.has(W))})}return D},p2j=function(x){var G=!!TBC(x.subtypes);
x=!!x.entityMid;return G||x};var bjb=function(x){this.rawResponse=["",[],{}];this.suggestions=[];try{var G=JSON.parse(Wsf(x));if(typeof G==="object"&&G!==null)this.rawResponse=G;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(K){console.log("Suggest: Failed to parse SuggestResponse!");return}var D=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(K,z){return new QHO(K,D,z)})};var LZ8=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new KZc;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18422_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},BRk,rKb=function(){BRk||(BRk=new LZ8);
return BRk};
LZ8.prototype.updateSuggestions=function(x){var G=this;this.availableSuggestions.forEach(function(D){G.previousSuggestions[D]=!0});
this.availableSuggestions=x.map(function(D){var K=D.type.toString();D.subtypes.length>0&&(K+="i"+D.subtypes.join("i"),K+="k"+D.suggestionSources.COMPLETE_SERVER.toString());return K})};
var sHO=function(x,G){var D=Date.now();x.firstEditTime<0&&(x.firstEditTime=D);G&&(x.lastQueryBuildTime=D);x.lastEditTime=D};
LZ8.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18422_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var Ybi=function(x){var G="";x.availableSuggestions.forEach(function(z){delete x.previousSuggestions[z]});
for(var D=_.l(Object.keys(x.previousSuggestions)),K=D.next();!K.done;K=D.next())K=K.value,x.previousSuggestions[K]&&(G+=(G?"j":"")+K);return G},mgO=function(x,G){var D=[];
G&&(D[1]=G.toString());D[0]="youtube";D[7]=Date.now()-x.startTime;D[6]=x.sessionNumber;x.zeroPrefixSuggestionCount>=0&&(D[33]=x.zeroPrefixSuggestionCount);D[13]=x.outOfSyncResponseCount;if(x.availableSuggestions.length>0){for(var K=G="",z=0,y=_.l(x.availableSuggestions),c=y.next();!c.done;c=y.next())c=c.value,c!==K&&(z>1&&(G+="l"+z),G+=(K?"j":"")+c,z=0,K=c),z+=1;z>1&&(G+="l"+z);D[3]=G}D[35]=Ybi(x);x.selectedSuggestionIndex>=0&&(D[2]=x.selectedSuggestionIndex);var W;if(G=(W=_.Am("SBOX_SETTINGS"))==
null?void 0:W.SUGG_EXP_ID)D[19]=x.normalize(G),W=0,x.experimentTriggeredBeforeFinal&&(W|=1),x.experimentTriggeredFinal&&(W|=2),D[20]=W;D[26]=Array.from(x.inputMethodsTracker.usedMethods).join("j");if(x.JSC$18422_totalRoundTripTime>0){D[15]=x.JSC$18422_totalRoundTripTime;D[14]=x.maxRoundTripTime;W=[];for(z=G=0;z<10;z++)K=x.roundTripTimeHistogram[z],K===0?G++:(G>1?W.push(z+"-"+K):G===1?W.push("0j"+K):W.push(K.toString()),G=0);W=W.join("j");D[16]=W}x.zeroPrefixRoundTripTime>0&&(D[36]=x.zeroPrefixRoundTripTime);
x.lastQueryBuildTime>0&&(D[18]=x.lastQueryBuildTime-x.startTime);x.firstEditTime>0&&(D[4]=x.firstEditTime-x.startTime);x.lastEditTime>0&&(D[5]=x.lastEditTime-x.startTime);return D.join(".")};
LZ8.prototype.normalize=function(x){return x.replaceAll(".","-")};
var Hj6=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var O0=function(){var x=_.n.apply(this,arguments)||this;x.microphoneSpinnerActive=!1;x.noAnimations=!1;x.boundExitClick=function(){x.onExitButtonClick()};
x.speechOverlayClassName="";x.isLevelAnimating=!1;x.playCloseDialogAudioFeedback=!0;x.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return x};
_.m(O0,_.n);_.a=O0.prototype;_.a.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.a.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=T2b()};
_.a.dataChanged=function(){this.logDialog()};
_.a.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var x;(x=this.manager.audioPlayer)!=null&&(x.JSC$17711_audioEnabled=!1)}this.manager.stop();(x=this.manager.audioPlayer)!=null&&(x.JSC$17711_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.a.handleSpeechQueryCompleteAction=function(x){var G=x.navigationAction;G&&(x.trackingParams&&_.en().graftServerVe(x.trackingParams,this.dialogVe,5),_.h$(this.hostElement,"yt-navigate",{endpoint:G,tempData:this.getNavigationParams(G),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.a.onExitButtonClick=function(){this.closeDialog()};
_.a.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var x;if((x=this.manager)!=null){var G;(G=x.audioPlayer)==null||Xl(G,"failure");x.setState("microphone-off");x.stop()}}else(x=this.manager)==null||x.start()};
_.a.transcriptionChanged=function(){var x,G;(((x=this.transcription)==null?0:x.low)||((G=this.transcription)==null?0:G.high))&&this.setState("transcribing",this.transcription)};
_.a.stateChanged=function(){this.setState(this.state,this.transcription)};
_.a.logDialog=function(){var x;(x=this.data)!=null&&x.trackingParams&&(x=_.en(),_.EV(x,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=x.graftServerVe(this.data.trackingParams,void 0,5))};
_.a.getNavigationParams=function(x){var G={};if(_.B("web_yt_searchbox")){var D=rKb();D.inputMethodsTracker.add(6);D=mgO(D,15);G.gs_l=D;var K;G.oq=((K=_.Y(x,_.Wi))==null?void 0:K.query)||""}else if(x=window.ytvoicesearchloggingparams){if(x=x())G.oq=x.oq,G.gs_l=x.gs_l}else _.iM(Error("jl"));return G};
_.a.closeDialog=function(){_.xO(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.a.setState=function(x,G){if(this.data){var D=this.data,K={};switch(x){case "listening":K={headerText:D.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:D.microphoneButtonAriaLabel};break;case "timeout":K={headerText:D.promptHeader,microphoneState:"try-again",microphoneLabel:D.promptMicrophoneLabel,microphoneAriaLabel:D.promptMicrophoneLabel};break;case "microphone-off":K={headerText:D.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:D.promptMicrophoneLabel,
microphoneAriaLabel:D.promptMicrophoneLabel};break;case "transcribing":(G==null?0:G.low)||(G==null?0:G.high)?K={transcriptionLow:G==null?void 0:G.low,transcriptionHigh:G==null?void 0:G.high,microphoneState:"speaking",microphoneAriaLabel:D.microphoneButtonAriaLabel}:K={headerText:D.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:D.microphoneButtonAriaLabel};break;case "processing":K={headerText:D.loadingHeader,microphoneState:"processing",microphoneAriaLabel:D.microphoneButtonAriaLabel};
break;case "offline":K={headerText:D.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:D.connectionErrorMicrophoneLabel,microphoneAriaLabel:D.connectionErrorMicrophoneLabel};break;case "permission":K={headerText:D.permissionsHeader,bodyLine1:D.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:D.permissionsSubtext};break;case "permission-denied":K={headerText:D.disabledHeader,bodyLine1:D.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:D.disabledSubtext}}K.className=
x;this.speechOverlayState=K;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.a.setMicrophoneState=function(x){var G=this.isLevelAnimating;this.isLevelAnimating=x==="speaking";!G&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=x==="processing"&&!this.noAnimations};
_.a.setClass=function(x){this.speechOverlayClassName&&_.E4(this.hostElement,this.speechOverlayClassName,!1);x&&(this.speechOverlayClassName=x,_.E4(this.hostElement,x,!0))};
_.a.runLevelAnimation=function(){var x=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var G=1+Math.random()*.75,D=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+D/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+G+")");_.Fj.addJob(function(){x.runLevelAnimation()},3,D)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
O0.prototype.stateChanged=O0.prototype.stateChanged;O0.prototype.transcriptionChanged=O0.prototype.transcriptionChanged;O0.prototype.onPopupClosed=O0.prototype.onPopupClosed;O0.prototype.dataChanged=O0.prototype.dataChanged;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],O0.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],O0.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],O0.prototype,"rendererStamperBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],O0.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.Tg.YtEventForwardingBehavior),_.N("design:type",Object)],O0.prototype,"eventForwardingBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],O0.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],O0.prototype,"speechOverlayState",void 0);
_.q([_.R(),_.N("design:type",Object)],O0.prototype,"microphoneSpinnerActive",void 0);_.q([_.R({type:_.B("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.N("design:type",Object)],O0.prototype,"noAnimations",void 0);_.q([_.R({selector:function(x){var G;return(G=x.voiceSearch)==null?void 0:G.transcription}}),
_.N("design:type",Object)],O0.prototype,"transcription",void 0);_.q([_.R({selector:function(x){var G;return(G=x.voiceSearch)==null?void 0:G.overlay}}),
_.N("design:type",String)],O0.prototype,"state",void 0);_.q([_.R(),_.N("design:type",Object)],O0.prototype,"boundExitClick",void 0);_.q([_.cD("#microphone-levels"),_.N("design:type",HTMLElement)],O0.prototype,"level",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],O0.prototype,"dataChanged",null);_.q([_.oe("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],O0.prototype,"onPopupClosed",null);
_.q([_.Z6("transcription"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],O0.prototype,"transcriptionChanged",null);_.q([_.Z6("state"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],O0.prototype,"stateChanged",null);O0=_.q([_.d({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],O0);
_.w(O0,"ytd-voice-search-dialog-renderer",function(){if(DgT!==void 0)return DgT;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return DgT=x},{mode:1});var $gT;var XS=function(){var x=_.n.apply(this,arguments)||this;x.isOverlay=!1;x.hidden=!1;return x};
_.m(XS,_.n);_.a=XS.prototype;_.a.onPopupClosed=function(){this.toggleIconState(!1)};
_.a.computeIcon=function(){var x,G,D;return(G=_.Y((x=this.data)==null?void 0:x.icon,NrO))==null?void 0:(D=G.icon)==null?void 0:D.iconType};
_.a.computeIconBadgeShape=function(){var x;return{iconBadgeType:"cart",iconBadgeText:(x=this.iconBadgeEntity)==null?void 0:x.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.a.onClick=function(){var x;(x=this.data)!=null&&x.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.a.computeHidden=function(x){return!x};
_.a.toggleIconState=function(x){this.iconButton&&(this.iconButton.pressed=x)};
XS.prototype.onPopupClosed=XS.prototype.onPopupClosed;_.q([_.I(_.$l),_.N("design:type",Object)],XS.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],XS.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],XS.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],XS.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],XS.prototype,"isOverlay",void 0);
_.q([_.R({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.N("design:type",Object)],XS.prototype,"hidden",void 0);_.q([_.R({selectorArgs:["data.iconBadgeEntityKey"],selector:function(x,G){return _.zm(x.entities,"iconBadgeEntity",G)}}),
_.N("design:type",Object)],XS.prototype,"iconBadgeEntity",void 0);_.q([_.cD("yt-icon-button"),_.N("design:type",HTMLButtonElement)],XS.prototype,"iconButton",void 0);_.q([_.oe("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],XS.prototype,"onPopupClosed",null);XS=_.q([_.d({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],XS);
_.w(XS,"ytd-icon-badge-topbar-button-renderer",function(){if($gT!==void 0)return $gT;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return $gT=x},{mode:1});var FZc;var AL=function(){var x=_.n.apply(this,arguments)||this;x.premiumOptions=[];x.darkerDarkTheme=_.B("web_darker_dark_theme");return x};
_.m(AL,_.n);AL.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.Nq.Object.defineProperties(AL.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],AL.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],AL.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Array)],AL.prototype,"premiumOptions",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],AL.prototype,"darkerDarkTheme",void 0);_.q([_.U("premiumOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],AL.prototype,"hasPremiumOptions",null);
AL=_.q([_.d({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],AL);
_.w(AL,"ytd-offline-promo-content",function(){if(FZc!==void 0)return FZc;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return FZc=x},{mode:1});var Cuc;var U0=function(){var x=_.n.apply(this,arguments)||this;x.premiumOptions=[];return x};
_.m(U0,_.n);U0.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var x;this.premiumOptions=cN8((x=this.data)==null?void 0:x.formats)};
U0.prototype.onClickSubmit=function(){_.xO(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var x;(x=_.Ns())==null||x.pause()};
U0.prototype.attached=function(){this.JSC$18442_scroller&&(this.JSC$18442_scroller.dialogElement=this.hostElement.parentNode)};
_.Nq.Object.defineProperties(U0.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
U0.prototype.dataChanged=U0.prototype.dataChanged;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],U0.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],U0.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],U0.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],U0.prototype,"data",void 0);
_.q([_.R({computed:"computeIcon_(data.headersIcon)",value:""}),_.N("design:type",String)],U0.prototype,"headersIcon",void 0);_.q([_.R(),_.N("design:type",Array)],U0.prototype,"premiumOptions",void 0);_.q([_.cD("#scroller"),_.N("design:type",Object)],U0.prototype,"JSC$18442_scroller",void 0);_.q([_.U("headersIcon"),_.N("design:type",Object),_.N("design:paramtypes",[])],U0.prototype,"showIcon",null);
_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],U0.prototype,"dataChanged",null);U0=_.q([_.d({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],U0);
_.w(U0,"ytd-offline-promo-renderer",function(){if(Cuc!==void 0)return Cuc;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Cuc=x},{mode:1});var II8;var R3=function(){var x=_.n.apply(this,arguments)||this;x.playbackPauseInterval=NaN;x.isLoading=!1;x.hasError=!1;x.dialogClass="";x.youtubeLabel=_.Wg("LOGO_ALT_LABEL",{},"YouTube Home");x.logoName="yt-logos-ext:yt-logo-updated";x.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return x};
_.m(R3,_.n);_.a=R3.prototype;_.a.onDataChange=function(){var x;if(this.showEOMV1Text=!((x=this.data)==null||!x.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.a.attached=function(){this.pausePlayer()};
_.a.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.a.handleLangSelect=function(x){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[x.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.a.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.a.handleSaveConsent=function(x){var G=this;this.showLoadingSpinner();this.showLoadingSpinner();gTT(_.Y(x,vGx)).catch(function(D){_.O9(new _.LL("Something went wrong when save consent "+(D.message?D.message:D)+"."));G.hideLoadingSpinner();G.showErrorMessage()})};
_.a.handleDisablePersonalization=function(x){var G=this;this.showLoadingSpinner();uQO(_.Y(x,NUx)).then(function(){G.dialog.close();G.resumePlayer()}).catch(function(D){_.O9(new _.LL("Something went wrong when disable personalization "+(D.message?D.message:D)+"."));
G.hideLoadingSpinner();G.showErrorMessage()})};
_.a.showLoadingSpinner=function(){var x=this;this.showSpinnerJobId=_.Fj.addLowPriorityJob(function(){x.isLoading=!0},500)};
_.a.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.Fj.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.a.showErrorMessage=function(){var x=this;this.hasError=!0;_.Fj.addLowPriorityJob(function(){x.hasError=!1},2E3)};
_.a.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.yR(function(){try{var x=_.Ns();x&&x.pause()}catch(G){}},100))};
_.a.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var x=_.Ns();x&&x.play()}catch(G){}};
_.Nq.Object.defineProperties(R3.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.data)==null||!x.eomV1Text)return[];x=[];for(var G=["SHIELD","WARNING","BAR_CHART"],D=this.data.eomV1Text.essentialCookieMsg.items,K=0;K<G.length&&K<D.length;K++)x.push({icon:G[K],text:D[K]});return x}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.data)==null||!x.eomV1Text)return[];x=[];for(var G=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],D=this.data.eomV1Text.nonEssentialCookieMsg.items,K=0;K<G.length&&K<D.length;K++)x.push({icon:G[K],text:D[K]});return x}}});
R3.prototype.onDataChange=R3.prototype.onDataChange;_.q([_.R(),_.N("design:type",Object)],R3.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Boolean)],R3.prototype,"showEOMV1Text",void 0);_.q([_.R(),_.N("design:type",Object)],R3.prototype,"isLoading",void 0);_.q([_.R(),_.N("design:type",Object)],R3.prototype,"hasError",void 0);_.q([_.R(),_.N("design:type",Number)],R3.prototype,"showSpinnerJobId",void 0);_.q([_.R(),_.N("design:type",Object)],R3.prototype,"dialogClass",void 0);
_.q([_.cD("#dialog"),_.N("design:type",Object)],R3.prototype,"dialog",void 0);_.q([_.cD("#cb-header"),_.N("design:type",HTMLElement)],R3.prototype,"header",void 0);_.q([_.cD("#lang-select"),_.N("design:type",HTMLElement)],R3.prototype,"langSelect",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],R3.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],R3.prototype,"ytComponentBehavior",void 0);
_.q([_.R(),_.N("design:type",String)],R3.prototype,"youtubeLabel",void 0);_.q([_.R(),_.N("design:type",Object)],R3.prototype,"logoName",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],R3.prototype,"onDataChange",null);_.q([_.U("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],R3.prototype,"eomEssentialCookieMsgItems",null);
_.q([_.U("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],R3.prototype,"eomNonEssentialCookieMsgItems",null);R3=_.q([_.d({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],R3);
_.w(R3,"ytd-consent-bump-v2-lightbox",function(){if(II8!==void 0)return II8;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return II8=x},{mode:1});var jH6;var So=function(){return _.n.apply(this,arguments)||this};
_.m(So,_.n);So.prototype.ready=function(){if(!_.pL()||zf6)var x=!0;else zf6=!0,x=!1;x||(x=document.querySelector("ytd-app"),x||(x=document.body),this.internalLightBox=_.kA(x).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.q([_.R(),_.N("design:type",Object)],So.prototype,"data",void 0);_.q([_.cD("#lightbox"),_.N("design:type",Object)],So.prototype,"lightBox",void 0);So=_.q([_.d({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],So);
_.w(So,"ytd-consent-bump-v2-renderer",function(){if(jH6!==void 0)return jH6;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return jH6=x},{mode:1});var Oj6;var X2b;var AKb;var P4=function(){var x=_.n.apply(this,arguments)||this;x.ephemeralActionsEnabled=_.B("web_ephemeral_actions");return x};
_.m(P4,_.n);_.a=P4.prototype;_.a.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&rob(this.toastManager,this.toastType)};
_.a.open=function(x){this.toast&&(this.ephemeralAction&&_.Eo().resolve(_.oz).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=x!=null?x:0,this.toastManager.enqueue(this.toast,x)):this.toast.open())};
_.a.close=function(x){var G;(G=this.toast)==null||G.close();this.toastManager&&x===1&&rob(this.toastManager,x)};
_.a.refit=function(){var x;(x=this.toast)==null||x.refit()};
_.a.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var x;(x=this.toast)==null||x.close()}};
_.a.setVerticalOffset=function(x){this.toast&&(this.toast.verticalOffset=x,this.toast.fit())};
_.a.computeButtonClass_=function(x){return x?"toast-button":""};
_.a.computeText_=function(x){return _.u7(x)};
_.a.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Xt("toast-opened-changed",this.toastOpened))};
_.a.updateToastOpenedFromBinding=function(x){this.toastOpened=x.detail.value};
_.Nq.Object.defineProperties(P4.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var x,G,D=(x=this.data)==null?void 0:(G=x.actionButton)==null?void 0:G.buttonRenderer;return(D==null?void 0:D.command)||(D==null?void 0:D.serviceEndpoint)||(D==null?void 0:D.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 x=[],G;((G=this.data)==null?0:G.responseText)&&x.push(_.u7(this.data.responseText));var D;((D=this.data)==null?0:D.subText)&&x.push(_.u7(this.data.subText));var K,z;if((K=this.data)==null?0:(z=K.actionButton)==null?0:z.buttonRenderer){var y,c;x.push(((y=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(c=y.accessibilityData)==null?void 0:c.label)||_.u7(this.data.actionButton.buttonRenderer.text))}return x.filter(function(W){return W}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var x,G;return(G=(x=this.toast)==null?void 0:x.opened)!=null?G:!1}}});
P4.prototype.toastOpenedChangedForBinding=P4.prototype.toastOpenedChangedForBinding;P4.prototype.toastOpenedChanged=P4.prototype.toastOpenedChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],P4.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.Tg.YtEventForwardingBehavior),_.N("design:type",Object)],P4.prototype,"ytEventForwardingBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],P4.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],P4.prototype,"duration",void 0);
_.q([_.R(),_.N("design:type",Number)],P4.prototype,"toastType",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],P4.prototype,"useCloseButton",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],P4.prototype,"closeToastOnActionButtonClick",void 0);_.q([_.R({value:function(){return _.Wg("SBOX_INAPPROPRIATE_CANCEL")}}),
_.N("design:type",String)],P4.prototype,"closeButtonAriaLabel",void 0);_.q([_.R(),_.N("design:type",Boolean)],P4.prototype,"toastOpened",void 0);_.q([_.R(),_.N("design:type",Boolean)],P4.prototype,"hasOpened",void 0);_.q([_.R(),_.N("design:type",Object)],P4.prototype,"ephemeralActionsEnabled",void 0);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],P4.prototype,"command",null);
_.q([_.U("ephemeralActionsEnabled","labelText","command","duration"),_.N("design:type",Object),_.N("design:paramtypes",[])],P4.prototype,"ephemeralAction",null);_.q([_.U("ephemeralAction"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],P4.prototype,"hasEphemeralAction",null);_.q([_.cD("#toast"),_.N("design:type",Object)],P4.prototype,"toast",void 0);_.q([_.R({value:function(){return{style:"call-to-action-inverse"}}}),
_.N("design:type",Object)],P4.prototype,"buttonOverrides",void 0);_.q([_.R({value:{style:"mono-inverse"}}),_.N("design:type",Object)],P4.prototype,"closeButtonOverrides",void 0);_.q([_.R({value:function(){return _.Eo().resolve(_.P6(_.YUJ))}}),
_.N("design:type",Object)],P4.prototype,"toastManager",void 0);_.q([_.U("data.responseText","data.subText","data.actionButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],P4.prototype,"labelText",null);_.q([_.yf("toastOpened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],P4.prototype,"toastOpenedChanged",null);
_.q([_.yf("toastOpened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],P4.prototype,"toastOpenedChangedForBinding",null);P4=_.q([_.HD({is:"yt-notification-action-renderer",disableElementRegistration:!0})],P4);
_.w(P4,"yt-notification-action-renderer",function(){if(AKb===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;X2b===void 0&&(X2b=document.createElement("template"));var K=X2b;D.call(G,K.content.cloneNode(!0),x.content.firstChild);AKb=x}x=AKb;return x},{mode:2});var E0=function(){var x=_.n.apply(this,arguments)||this;x.duration=4E3;x.downloadingCount=0;x.downloadedCount=0;x.downloadingOnlySmartDownloads=!1;x.sessionTotalDownloads=0;x.sessionDownloaded=0;x.previousSessionsDownloaded=0;x.totalDownloadPercentage=0;x.currentDownloadProgress=0;x.currentDownloadPercentage=0;x.isLeaderTab=!0;x.isFullScreen=!1;x.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};x.boundBeforeUnload=function(G){x.isLeaderTab&&x.downloadingCount>0&&(G.preventDefault(),
G.returnValue=!0)};
return x};
_.m(E0,_.n);_.a=E0.prototype;
_.a.open=function(){this.updateDownloadState();if(this.data){var x=this.sessionDownloaded+1,G=this.sessionTotalDownloads>1?_.Wg("VIDEOS_DOWNLOADING_RATIO",{downloaded:x.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+x+"/"+this.sessionTotalDownloads):_.Wg("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(G=this.sessionTotalDownloads>1?_.Wg("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:x.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
x+"/"+this.sessionTotalDownloads):_.Wg("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));x=this.isLeaderTab?_.Wg("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.u7(this.data.responseText)!==G||_.u7(this.data.subText)!==x)this.set("data.responseText",_.gK(G)),this.set("data.subText",_.gK(x)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.a.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.a.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.a.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.a.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var x=this.downloadedCount-this.previousSessionsDownloaded;x<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-x);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.a.handleFullscreenChange=function(x){(this.isFullScreen=x)||this.updatePopup()};
E0.prototype.updateCurrentDownloadProgress=E0.prototype.updateCurrentDownloadProgress;E0.prototype.updatePopup=E0.prototype.updatePopup;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],E0.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],E0.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.Tg.YtEventForwardingBehavior),_.N("design:type",Object)],E0.prototype,"ytEventForwardingBehavior",void 0);
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],E0.prototype,"actionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],E0.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],E0.prototype,"duration",void 0);_.q([_.R({selector:function(x){return _.MVh(x.entities).length}}),
_.N("design:type",Object)],E0.prototype,"downloadingCount",void 0);_.q([_.R({selector:kZj}),_.N("design:type",Object)],E0.prototype,"downloadedCount",void 0);_.q([_.R({selector:function(x){var G=_.MVh(x.entities);return tR8(x.entities,G)}}),
_.N("design:type",Object)],E0.prototype,"downloadingOnlySmartDownloads",void 0);_.q([_.R(),_.N("design:type",Object)],E0.prototype,"sessionTotalDownloads",void 0);_.q([_.R(),_.N("design:type",Object)],E0.prototype,"sessionDownloaded",void 0);_.q([_.R(),_.N("design:type",Object)],E0.prototype,"previousSessionsDownloaded",void 0);_.q([_.R(),_.N("design:type",Object)],E0.prototype,"totalDownloadPercentage",void 0);
_.q([_.R({selector:function(x){var G;x=(G=_.MVh(x.entities))!=null?G:[];return x.length>0?_.KUV(x.slice(-1)):0}}),
_.N("design:type",Object)],E0.prototype,"currentDownloadProgress",void 0);_.q([_.R(),_.N("design:type",Object)],E0.prototype,"currentDownloadPercentage",void 0);_.q([_.R({selector:_.bBO}),_.N("design:type",Object)],E0.prototype,"isLeaderTab",void 0);_.q([_.cD("yt-notification-action-renderer"),_.N("design:type",Object)],E0.prototype,"notificationActionRenderer",void 0);
_.q([_.Z6("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],E0.prototype,"updatePopup",null);_.q([_.Z6("currentDownloadProgress"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],E0.prototype,"updateCurrentDownloadProgress",null);E0=_.q([_.d({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],E0);
_.w(E0,"ytd-video-download-toast-renderer",function(){if(Oj6!==void 0)return Oj6;var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return Oj6=x},{mode:1});var Ugi;var RQx;var hL=function(){return _.n.apply(this,arguments)||this};
_.m(hL,_.n);hL.prototype.computeIsRedLogo=function(x,G){!x&&G&&(x=G);return x==="YOUTUBE_RED_LOGO"||x==="YOUTUBE_PREMIUM_LOGO"};
hL.prototype.computeLogoName=function(x){x=this.componentBehavior.computeIcon_(x);return x===""?"yt-logos-ext:yt-logo-updated":x};
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],hL.prototype,"componentBehavior",void 0);_.q([_.R({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.N("design:type",Boolean)],hL.prototype,"isRedLogo",void 0);_.q([_.R({computed:"computeLogoName(data)"}),_.N("design:type",String)],hL.prototype,"logoName",void 0);_.q([_.R({value:{}}),_.N("design:type",Object)],hL.prototype,"data",void 0);
_.q([_.R(),_.N("design:type",Object)],hL.prototype,"logoType",void 0);hL=_.q([_.d({disableElementRegistration:!0,is:"ytd-logo"})],hL);
_.w(hL,"ytd-logo",function(){if(RQx!==void 0)return RQx;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return RQx=x},{mode:_.Ge("kevlar_poly_si_batch_j074")?1:2});var xH=function(){var x=_.n.apply(this,arguments)||this;x.animationRef={};return x};
_.m(xH,_.n);_.a=xH.prototype;_.a.attached=function(){document.addEventListener("yt-navigate-finish",_.ae(this,this.logYoodle))};
_.a.detached=function(){document.removeEventListener("yt-navigate-finish",_.ae(this,this.logYoodle))};
_.a.logYoodle=function(){var x,G;if((x=this.data)==null?0:(G=x.loggingDirectives)==null?0:G.trackingParams)this.ytRendererBehavior.markDirty(),_.en().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.a.computeHideImg=function(x,G){return!!x||!!G};
_.a.computeHideYtdLogo=function(x,G){return!x||!!G};
_.a.computeHideLottie=function(x){return!x};
_.a.computeIsRedLogo=function(x){return x==="YOUTUBE_RED_LOGO"||x==="YOUTUBE_PREMIUM_LOGO"};
_.a.renderLogoEntity=function(){var x=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),G=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),D=this.getLogoTitleText(this.data),K=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==x&&(this.url=x);this.animatedUrl!==G&&(this.animatedUrl=G);this.logoTitleText!==D&&(this.logoTitleText=D);this.lottieUrl!==K&&(this.lottieUrl=K,this.lottiePlayerProps=this.computeLottiePlayerProps(K))};
_.a.getSanitizedThumbnail=function(x){return x&&x.thumbnails?_.uA$(x.thumbnails,122)||"":""};
_.a.getThumbnailUrl=function(x,G){if(!G)return"";var D,K;x=x?(D=G.darkThemeLogo)==null?void 0:D.thumbnail:(K=G.lightThemeLogo)==null?void 0:K.thumbnail;return this.getSanitizedThumbnail(x)};
_.a.getAnimatedThumbnailUrl=function(x,G){return G?this.getSanitizedThumbnail(x?G.darkThemeAnimatedLogo:G.lightThemeAnimatedLogo):""};
_.a.getLogoTitleText=function(x){if(x)return _.u7(x.tooltipText)};
_.a.computeLogoIcon=function(x,G){if(G){var D,K;return x?(D=G.darkThemeLogo)==null?void 0:D.icon:(K=G.lightThemeLogo)==null?void 0:K.icon}};
_.a.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.a.getLottieUrl=function(x,G){var D,K,z,y;return x?G==null?void 0:(D=G.darkThemeLogo)==null?void 0:(K=D.lottieAnimation)==null?void 0:K.url:G==null?void 0:(z=G.lightThemeLogo)==null?void 0:(y=z.lottieAnimation)==null?void 0:y.url};
_.a.computeLottiePlayerProps=function(x){if(x){var G;if((G=this.animationRef)==null?0:G.lottieEl){var D;(D=this.animationRef)==null||D.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:x,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.a.onLottieError=function(){this.data&&this.lottieUrl&&_.h$(this.hostElement,"yoodle-error")};
_.a.onImgError=function(){this.data&&!this.lottieUrl&&_.h$(this.hostElement,"yoodle-error")};
xH.prototype.playAnimation=xH.prototype.playAnimation;xH.prototype.renderLogoEntity=xH.prototype.renderLogoEntity;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],xH.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],xH.prototype,"data",void 0);_.q([_.R({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.N("design:type",Boolean)],xH.prototype,"hideImg",void 0);
_.q([_.R({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.N("design:type",Boolean)],xH.prototype,"hideYtdLogo",void 0);_.q([_.R({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.N("design:type",Boolean)],xH.prototype,"hideLottie",void 0);_.q([_.R({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.N("design:type",Boolean)],xH.prototype,"isRedLogo",void 0);
_.q([_.R(),_.N("design:type",Boolean)],xH.prototype,"useDarkThemeYoodle",void 0);_.q([_.R(),_.N("design:type",String)],xH.prototype,"url",void 0);_.q([_.R(),_.N("design:type",String)],xH.prototype,"animatedUrl",void 0);_.q([_.R(),_.N("design:type",String)],xH.prototype,"logoTitleText",void 0);_.q([_.R({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.N("design:type",Object)],xH.prototype,"logoIcon",void 0);_.q([_.R(),_.N("design:type",Object)],xH.prototype,"logoType",void 0);
_.q([_.R(),_.N("design:type",String)],xH.prototype,"lottieUrl",void 0);_.q([_.R(),_.N("design:type",Object)],xH.prototype,"lottiePlayerProps",void 0);_.q([_.R(),_.N("design:type",Object)],xH.prototype,"animationRef",void 0);_.q([_.yf("data"),_.yf("useDarkThemeYoodle"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xH.prototype,"renderLogoEntity",null);
_.q([_.oe("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],xH.prototype,"playAnimation",null);xH=_.q([_.d({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],xH);
_.w(xH,"ytd-yoodle-renderer",function(){if(Ugi!==void 0)return Ugi;var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Ugi=x},{mode:_.Ge("kevlar_poly_si_batch_j074")?1:2});var Sbc;var ncj;var Gh=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return x};
_.m(Gh,_.n);_.a=Gh.prototype;_.a.onYoodleError=function(){_.B("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.a.computeLogoName=function(x){x=this.componentBehavior.computeIcon_(x);return x===""?"yt-logos-ext:yt-logo-updated":x};
_.a.computeTitle=function(x,G,D){return D&&(G==null?0:G.tooltipText)?_.u7(G.tooltipText):_.u7(x)};
_.a.computeAriaLabel=function(x,G,D){return D&&(G==null?0:G.tooltipText)?_.u7(x):""};
_.a.computeShowYoodle=function(x,G,D){return!x||!G&&!!D&&!_.YS.isEmpty(D)};
_.a.onNavigateHomeAction=function(){if(_.B("kevlar_miniplayer_navigate_home_from_app_killswitch")){var x;(x=_.kA(this.hostElement).querySelector(".yt-simple-endpoint"))==null||x.click()}};
_.a.computeLogoHref=function(x,G,D){var K;(D==null?0:D.onTapCommand)?K=this.componentBehavior.computeHref_(D.onTapCommand):x&&(K=this.componentBehavior.computeHref_(x));return K?K:G};
_.a.computeCommand=function(x,G){return(G==null?void 0:G.onTapCommand)||x};
_.a.getEndpointForm=function(){if(_.B("kevlar_topbar_disable_cache_only_home")){var x=_.Eo().resolve(_.$t),G=DOk(x.getState())||"";x=_.Okf(x.getState())||"";return{disableCache:G==="ytd-browse"&&x==="home"}}return{disableCache:!0}};
Gh.prototype.onYoodleError=Gh.prototype.onYoodleError;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],Gh.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Gh.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Gh.prototype,"componentBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],Gh.prototype,"ytdReduxBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],Gh.prototype,"data",void 0);_.q([_.R(),_.N("design:type",String)],Gh.prototype,"countryCode",void 0);_.q([_.R({selectorArgs:["data.overrideEntityKey"],selector:function(x,G){return _.zm(x.entities,"logoEntity",G)}}),
_.N("design:type",Object)],Gh.prototype,"logoEntity",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.N("design:type",Boolean)],Gh.prototype,"showYoodle",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],Gh.prototype,"yoodleError",void 0);_.q([_.R({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.N("design:type",String)],Gh.prototype,"titleText",void 0);
_.q([_.R({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.N("design:type",String)],Gh.prototype,"ariaLabelText",void 0);_.q([_.R({value:"/"}),_.N("design:type",String)],Gh.prototype,"defaultEndpointUrl",void 0);_.q([_.R({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.N("design:type",String)],Gh.prototype,"endpointUrl",void 0);
_.q([_.R({computed:"computeCommand(data.endpoint, logoEntity)"}),_.N("design:type",String)],Gh.prototype,"command",void 0);_.q([_.R(),_.N("design:type",Object)],Gh.prototype,"logoType",void 0);_.q([_.R({}),_.N("design:type",Boolean)],Gh.prototype,"useDarkThemeYoodle",void 0);_.q([_.oe("yoodle-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Gh.prototype,"onYoodleError",null);Gh=_.q([_.d({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],Gh);
_.w(Gh,"ytd-topbar-logo-renderer",function(){if(ncj!==void 0)return ncj;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return ncj=x},{mode:_.Ge("kevlar_poly_si_batch_j027")?1:2});var ijT=0;var gcf=_.gN.SEARCH_APPEND_LABEL,uT6=_.gN.SUGGESTION_NEW_VIDEOS_TEXT,dgc=_.gN.SUGGESTION_THUMBNAIL_LABEL,w2i=_.gN.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,qbT=_.Nv(function(x){function G(Cu){var ex,y$;return _.T(function(yj){if(yj.nextAddress==1)return ex=new Request(Cu),_.Kl(yj,2),_.Z(yj,fetch(ex,{credentials:"include"}),4);if(yj.nextAddress!=2)return Wd(!0),_.iI(yj,0);y$=_.lX(yj);_.O9(y$);_.c5(yj)})}
var D=x.isHighlighted;var K=x.suggestion;var z=x.onClickCallback;var y=x.onHoverUpdateCallback;var c=x.labels;var W=x.queryBuilderFunction;var e=x.onRemoveCallback;var Q=x.suggestionIndex;var p=x.generateUniqueId;var V=x.highlightedId;var L=x.useScrollMargin;var r=x.isKeyboardMode;var H=null,O=null,A=_.qi(),g=_.qi();x=_.l(_.eO(!1,void 0,"CgAMgc"));var u=x.next().value,f=x.next().value,v=_.Ni(function(Cu){Cu&&_.Fm(237477,Cu,O,function(ex){O=ex})}),P=_.Ni(function(Cu){Cu&&_.Fm(237477,Cu,O,function(ex){O=
ex})}),k=_.WH(function(Cu){if((Cu==null?void 0:Cu.button)===2)return Cu.preventDefault(),!1;
var ex=_.CC();ex&&H&&_.dB(ex,H,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var y$;z(Cu,K().text,K().index,K().entityMid,Cu==null?void 0:(y$=Cu.detail)==null?void 0:y$.wasSelectedByKeyboard);return!1}),cL=function(){return K().type===35},bO=function(){return _.B("desktop_enable_single_suggestion_highlight")},mE=function(){return _.Gz("desktop_suggestions_panel_row_height")||0},jf=function(){var Cu;
return _.B("desktop_enable_new_video_metadata")&&((Cu=K())==null?void 0:Cu.hasNewVideo)===!0},$C=function(){return _.B("desktop_enable_visual_suggest")},OD=function(){return _.B("desktop_enable_entity_suggest")&&p2j(K())},wn=function(){return K().entitySubtitle},n$=function(){return bO()?(D==null?void 0:D())||Bs()&&!(r==null?0:r()):(D==null?void 0:D())||Bs()},Fi=function(){var Cu=_.Am("SBOX_SETTINGS");
return cL()&&!(Cu==null?0:Cu.HIDE_REMOVE_LINK)},pf=function(){return VGO(K(),{useEntityName:OD()})},UE,M0=!((UE=_.Eo().resolve(_.P6(_.ib)))==null||!UE()),cs=function(){return cL()?_.B("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},G8=function(){return c==null?void 0:c().SUGGESTION_DISMISS_LABEL},T7=function(){return c==null?void 0:c().SUGGESTION_DISMISSED_LABEL};
x=_.l(_.eO(!1,void 0,"RcUcKd"));UE=x.next().value;var Wd=x.next().value;x=_.l(_.eO(!1,void 0,"yGR7je"));var Fc=x.next().value,lO=x.next().value,Bs=Fc,Xi=_.WH(function(){W(g.value.innerText);return!1}),uC=_.WH(function(Cu){Cu.preventDefault();
return!1}),Y8=_.WH(function(Cu){var ex=K().text,y$=_.Am("SBOX_SETTINGS"),yj="https://"+(y$.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
yj+="&delq="+encodeURIComponent(ex);(ex=y$==null?void 0:y$.PSUGGEST_TOKEN)&&(yj+="&tok="+ex);(y$=y$==null?void 0:y$.SESSION_INDEX)&&(yj+="&authuser="+y$);G(yj);Cu.preventDefault();(Cu=_.CC())&&O&&_.dB(Cu,O,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");e(Q==null?void 0:Q());return!1}),fu=_.WH(function(){if(bO()&&(r==null?0:r()))return!1;
lO(!0);y(!0);return!1}),g4=_.WH(function(){lO(!1);
y(!1);return!1}),vs=_.WH(function(){f(!0);
return!1}),as=_.WH(function(){f(!1);
return!1}),d9=_.WH(function(Cu){Cu.preventDefault();
var ex;(Cu=(ex=K().entityThumbnailAttributionUrl)!=null?ex:"")&&_.cp$(Cu);return!1});
x=_.l(_.eO("",void 0,"k9uVge"));var Lf=x.next().value,Lu=x.next().value;_.H6(function(){Fi()&&Lu(p==null?void 0:p(Q==null?void 0:Q()));A.value&&_.Fm(12453,A.value,H,function(Cu){H=Cu})});
return _.M(_.b,{cond:UE,then:function(){var Cu={};return _.M("div",{class:_.ym("ytSuggestionComponentRemovedText",(Cu.ytSuggestionComponentLargerRemovedText=function(){return $C()},Cu)),
style:function(){return mE()>0?"height: "+mE()+"px;":""},
role:"button"},T7)},
else:function(){var Cu={},ex={};return _.M("div",{class:_.ym("ytSuggestionComponentSuggestion",(Cu.ytSuggestionComponentSuggestionHover=function(){return!bO()},Cu.ytSuggestionComponentHighlighted=n$,Cu.ytSuggestionComponentPersonalizedSuggestion=cL,Cu.ytSuggestionComponentMweb=!1,Cu.ytSuggestionComponentLargerSuggestion=function(){return jf()||$C()},Cu.ytSuggestionComponentThumbnailSuggestion=function(){return $C()},Cu.ytSuggestionComponentRoundedSuggestion=function(){return _.B("desktop_enable_scrollable_suggestions_panel")&&
_.B("desktop_enable_suggestions_panel_padding")},Cu.ytSuggestionComponentThumbnailPadding=function(){return $C()&&!cL()},Cu)),
style:function(){return mE()>0?"height: "+mE()+"px;":""},
role:"presentation","on:mousedown":k,"on:mouseover":fu,"on:mouseout":g4,el:A},_.M("div",{class:_.ym("ytSuggestionComponentText",(ex.ytSuggestionComponentScrollMargin=L,ex)),"aria-label":function(){return jf()?K().text+" "+uT6:K().text},
id:function(){return p==null?void 0:p(Q==null?void 0:Q())},
"on:mousedown":k,role:"option"},_.M(_.b,{cond:function(){return K().type!==33},
then:function(){return _.M(_.Qm,{icon:cs,className:"ytSuggestionComponentIcon"})}}),_.M("div",{class:"ytSuggestionComponentLeftContainer"},_.M("span",{el:g,
role:"button",tabindex:0},_.M(_.LT,{each:pf},function(y$){return y$.bold?_.M("span",{class:"ytSuggestionComponentBold"},y$.text):_.M("span",null,y$.text)})),_.M(_.b,{cond:function(){return OD()&&!!K().entitySubtitle||jf()},
then:function(){return _.M("div",{class:"ytSuggestionComponentMetadataContainer"},_.M(_.b,{cond:function(){return OD()&&!!K().entitySubtitle},
then:function(){return _.M("div",{class:"ytSuggestionComponentEntitySubtitle"},wn)}}),_.M(_.b,{cond:function(){return jf()},
then:function(){return _.M("div",{class:"ytSuggestionComponentNewVideoContainer"},_.M("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.M("div",{class:"ytSuggestionComponentNewVideoText"},uT6))}}))}}))),_.M("div",{class:"ytSuggestionComponentRightContainer"},_.M(_.b,{cond:function(){return $C()&&K().visualSuggestUrl!==void 0},
then:function(){var y$={};return _.M("div",{class:"ytSuggestionComponentThumbnailContainer"},_.M("img",{"aria-label":dgc,class:_.ym("ytSuggestionComponentVisualSuggestThumbnail",(y$.ytSuggestionComponentCircularFrame=function(){return OD()&&K().subtypes.includes(790)},y$.ytSuggestionComponentEntitySuggestThumbnail=function(){return OD()},y$)),
src:function(){return K().visualSuggestUrl}}),_.M(_.b,{cond:function(){return OD()&&!!K().entityThumbnailAttributionUrl},
then:function(){var yj={};return _.M("span",{title:w2i,role:"tooltip"},_.M("div",{"on:mouseover":vs,"on:mouseout":as,"on:mousedown":d9,class:_.ym("ytSuggestionComponentThumbnailOverlay",(yj.ytSuggestionComponentThumbnailOverlayHidden=function(){return!u()},yj))},_.M(_.Qm,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.M(_.so,null,_.M(_.B6,{when:function(){return $C()&&Fi()}},function(){var y$={};
return _.M("button",{class:_.ym("ytSuggestionComponentRemoveLinkClearButton",(y$.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return Lf()&&Lf()===(V==null?void 0:V())},y$.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!n$()},y$)),
el:P,"on:mousedown":Y8,"aria-label":G8,id:function(){return Lf()}},_.M(_.Qm,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.M(_.B6,{when:function(){return!($C()&&K().visualSuggestUrl!==void 0)&&Fi()}},function(){var y$={};
return _.M("a",{class:_.ym("ytSuggestionComponentRemoveLink",(y$.ytSuggestionComponentRemoveLinkDark=M0,y$.ytSuggestionComponentRemoveLinkSelected=function(){return Lf()&&Lf()===(V==null?void 0:V())},y$)),
el:v,"on:mousedown":Y8,"aria-label":G8,tabindex:0,role:"button",id:function(){return Lf()}},G8)}),_.M(_.B6,{when:function(){return!1}},function(){return _.M("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":Xi,"on:mousedown":uC,role:"button","aria-label":gcf},_.M(_.Qm,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"qg");var NRc=_.Nv(function(){return _.M("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.M("button",{class:"ytdTextInputAssistantButton","on:click":_.WH(function(){rKb().inputMethodsTracker.add(3);var x,G=(x=_.Am("SBOX_SETTINGS"))==null?void 0:x.REQUEST_LANGUAGE;if(G)return _.Uf("//www.google.com/textinputassistant/14/"+G+"_tia.js"),!1})},_.M("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"rg");var vcf=function(){this.cache=new Map},JKj=function(x){for(var G=_.l(x.cache.entries()),D=G.next();!D.done;D=G.next()){var K=_.l(D.value);
D=K.next().value;K=K.next().value;K.suggestions.some(function(z){return z.type===35})&&x.cache.delete(D)}};var fIf=_.gN.SEARCH,tGf=_.gN.SEARCH_CLEAR_LABEL,kg8=new _.wq("FAKE_SUGGEST_RESPONSE");_.tn(_.Nv(function(x){function G(){vs||(vs=setTimeout(function(){d9()},1E3))}
function D(VJ,QJ,BY){if(VJ.trim()){g4=VJ;_.XQ("REFINEMENTS_TUPLE",void 0);Y8=!0;var eX;QJ=mgO(Fc,QJ);var os=(eX=x.searchEndpoint)==null?void 0:eX.call(x);eX=cs.value.value;os||(os=btf);var bH;(bH=_.Y(os.commandMetadata,_.fC))!=null&&bH.url||(bH=Error("kl`"+JSON.stringify(os)),_.I4(bH),os=btf);bH=_.YS.unsafeClone(os);os=_.U9(_.Y(bH.commandMetadata,_.fC).url,"search_query",VJ);_.uP(location.href,"sv")==="1"&&(_.Y(bH,_.Wi).params="EgOAAgE%3D",os=_.U9(os,"sv","1"));_.Y(bH,_.Wi)&&(_.Y(bH,_.Wi).query=VJ);
os=os.replace(/%20/g,"+");_.Y(bH.commandMetadata,_.fC).url=os;BY=_.B("desktop_enable_entity_suggest")?{entityMid:BY}:{};_.Eo().resolve(_.hm).resolveCommand(bH,{form:{tempData:Object.assign({},{gs_l:QJ,oq:eX!=null?eX:VJ},BY)}});d9();cs.value.value=VJ;cs.value.blur();Fc.reset()}}
function K(VJ){return _.T(function(QJ){return QJ.return(new Promise(function(BY){var eX=new XMLHttpRequest;eX.open("GET",cK4(VJ),!0);eX.withCredentials=!0;var os=_.Am("SBOX_SETTINGS");(os==null?0:os.SEND_VISITOR_DATA)&&eX.setRequestHeader("X-Goog-Visitor-Id",os==null?void 0:os.VISITOR_DATA);eX.onload=function(){BY(eX.responseText)};
eX.onerror=function(){_.O9(Error("ll"));BY(null)};
setTimeout(function(){eX.abort()},1E4);
eX.send(null)}))})}
function z(VJ){var QJ,BY,eX,os;return _.T(function(bH){switch(bH.nextAddress){case 1:return QJ={credentials:"include",headers:lI8()},window.AbortController&&(BY=new AbortController,setTimeout(function(){BY.abort("ytsbox-suggest-timeout")},1E4),QJ.signal=BY.signal),_.Kl(bH,2),_.Z(bH,fetch(cK4(VJ),QJ),4);
case 4:eX=bH.yieldResult.text();_.iI(bH,3);break;case 2:return os=_.lX(bH),os!=="ytsbox-abort-last"&&os!=="ytsbox-suggest-timeout"&&_.O9(os),bH.return(null);case 3:return bH.return(eX)}})}
function y(VJ){var QJ,BY,eX;return _.T(function(os){switch(os.nextAddress){case 1:if(QJ=_.Eo().resolve(_.P6(kg8)))return os.return(QJ);BY=Date.now();G();return _.B("yt_searchbox_xhr")?_.Z(os,K(VJ),5):_.Z(os,z(VJ),4);case 4:eX=os.yieldResult;os.jumpTo(3);break;case 5:eX=os.yieldResult;case 3:if(eX){vs&&(clearTimeout(vs),vs=null);var bH=Fc,Vx=BY,Ag=VJ.query.length===0;Vx=Date.now()-Vx;Ag?bH.zeroPrefixRoundTripTime=Vx:(bH.JSC$18422_totalRoundTripTime+=Vx,bH.maxRoundTripTime=Math.max(bH.maxRoundTripTime,
Vx),Ag=Math.floor(Vx/100),Ag>=Hj6.length?++bH.roundTripTimeHistogram[9]:++bH.roundTripTimeHistogram[Hj6[Ag]])}return os.return(eX)}})}
function c(VJ){var QJ,BY,eX;return _.T(function(os){if(os.nextAddress==1)return(QJ=Wd.cache.get(yKT(VJ)))?os.return(QJ):_.Z(os,y(VJ),2);BY=os.yieldResult;if(BY===null)return os.return(null);eX=new bjb(BY);VJ.query.length===0&&eX.suggestions.length===0||Wd.cache.set(yKT(VJ),eX);return os.return(eX)})}
function W(VJ){var QJ,BY;return _.T(function(eX){if(eX.nextAddress==1){fu=!1;var os=g4;os=_.fA$()==="search"?(_.uP(location.href,"search_query")||_.uP(location.href,"q"))===os:!1;QJ=new ocx(VJ,os?g4:null);return _.Z(eX,c(QJ),2)}BY=eX.yieldResult;if(BY===null)return eX.return();QJ.query.length===0&&(Fc.zeroPrefixSuggestionCount=BY.suggestions.length);if(QJ.id<=as)return Fc.outOfSyncResponseCount++,eX.return();if(document.activeElement!==cs.value)return eX.return();as=QJ.id;var bH=Fc,Vx=BY.rawResponse[2]||
{};bH.experimentTriggeredBeforeFinal||(bH.experimentTriggeredBeforeFinal=bH.experimentTriggeredFinal);bH.experimentTriggeredFinal=!!Vx.e;Fc.updateSuggestions(BY.suggestions);A(-1);Fi([]);BY.suggestions!==r()&&aA(BY.suggestions.length);H(BY.suggestions);bO(BY.suggestions.length>0&&BY.suggestions[0].type===33);T7&&(T7.hidden=BY.suggestions.length===0,cL()?(T7.style.minWidth="",bH=T7.style,Vx=(os=r()[0])==null?void 0:os.ignoredPrefix,bH.marginLeft=(Vx?Math.min(Vx.length*6,G8.value.offsetWidth):0).toString()+
"px"):(T7.style.minWidth=G8.value.offsetWidth+"px",T7.style.marginLeft="0"),PC());_.c5(eX)})}
function e(){if(!Y8)return!1;var VJ=_.Am("REFINEMENTS_TUPLE");return VJ?(VJ=VJ[1].map(function(QJ,BY){return new QHO([QJ,0,[71]],cs.value.value,BY)}),r()!==VJ&&aA(VJ.length),Fi([]),H(VJ),Fc.updateSuggestions(VJ),Y8=!1,T7.hidden=VJ.length===0,fu=VJ.length>0,!0):!1}
function Q(){var VJ=cs.value.value;(typeof VJ==="string"||VJ instanceof String)&&VJ!==""?v(!0):v(!1)}
function p(){if(_.fA$()==="search"){var VJ=window.location.href;try{var QJ=_.uP(VJ,"search_query")||_.uP(VJ,"q")||""}catch(BY){QJ=""}QJ&&(cs.value.value=QJ,v(!0))}}
var V=_.l(_.eO([],void 0,"kGFAjf")),L=V.next().value;V=V.next().value;var r=L,H=V;L=_.l(_.eO(-1,void 0,"mLGL9e"));var O=L.next().value,A=L.next().value;L=_.l(_.eO(-1,void 0,"u2rYdc"));var g=L.next().value,u=L.next().value;L=_.l(_.eO(!1,void 0,"W9DFC"));var f=L.next().value,v=L.next().value;L=_.l(_.eO(!1,void 0,"Ip4dNc"));var P=L.next().value,k=L.next().value;V=_.l(_.eO(!1,void 0,"ZNKSQb"));L=V.next().value;V=V.next().value;var cL=L,bO=V;V=_.l(_.eO(!1,void 0,"JBrGLd"));L=V.next().value;var mE=V.next().value;
V=_.l(_.eO(!1,void 0,"P2pD6e"));var jf=V.next().value,$C=V.next().value;V=_.l(_.eO(1,void 0,"SjP20c"));var OD=V.next().value,wn=V.next().value;V=_.l(_.eO([],void 0,"h4dRaf"));var n$=V.next().value,Fi=V.next().value;V=_.l(_.eO(!1,void 0,"TUTzaf"));var pf=V.next().value,UE=V.next().value;V=_.B("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var M0=_.qi(),cs=_.qi(),G8=_.qi(),T7,Wd=new vcf,Fc=rKb(),lO=_.Eo().resolve(_.P6(_.ib)),
Bs=function(){var VJ;return((VJ=x.forceDarkMode)==null?void 0:VJ.call(x))||!(lO==null||!lO())},Xi=function(){return _.B("desktop_enable_scrollable_suggestions_panel")},uC="i"+ijT++,Y8=!1,fu=!1,g4="",vs=null,as=-1,d9=function(){Fi([]);
H([]);bO(!1);T7&&(T7.hidden=!0);vs&&(clearTimeout(vs),vs=null);A(-1)},Lf=function(VJ,QJ){VJ.preventDefault();
UE(!0);T7&&(T7.hidden=!1);var BY=O();VJ=r();var eX=n$();QJ=e9f(QJ);BY+=QJ;for(BY>=VJ.length?BY=-1:BY<-1&&(BY=VJ.length-1);BY!==-1&&(eX.includes(BY)||BY>=VJ.length||BY<0);)BY+=QJ,BY>=VJ.length&&(BY=-1);A(BY);O()>=0&&(cs.value.value=r()[O()].text,u(0),Q(),VJ=O(),eX=g(),(eX=document.getElementById(uX[VJ][eX]))&&Xi()&&(VJ===r().length-1?T7.scrollTop=T7.scrollHeight:eX.scrollIntoView({block:"nearest",inline:"start"})))},Lu=_.WH(function(VJ){if(!(VJ.relatedTarget instanceof Element&&VJ.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){k(!0);
var QJ;(QJ=x.focusCallback)==null||QJ.call(x,!0);e()||(fu?T7.hidden=!1:(_.h$(M0.value,"yt-autonav-pause-focus",{}),W(VJ.target.value)))}}),Cu=_.WH(function(VJ){if(!(VJ.relatedTarget instanceof Element&&VJ.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){k(!1);
var QJ;(QJ=x.focusCallback)==null||QJ.call(x,!1);T7.scrollTop=0;T7.hidden=!0;_.h$(M0.value,"yt-autonav-pause-blur",{})}}),ex=function(VJ){VJ=e9f(VJ);
var QJ;((QJ=uX[O()])==null?0:QJ[g()+VJ])&&u(g()+VJ)},y$=_.WH(function(VJ){var QJ=VJ.target;
switch(VJ.keyCode){case 13:VJ.preventDefault();var BY;if((BY=uX[O()])==null?0:BY[g()]){var eX;(eX=document.getElementById(uX[O()][g()]))==null||eX.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}VJ=VJ.shiftKey?4:3;BY=Fc;eX=O();BY.selectedSuggestionIndex=eX;D(QJ.value,VJ);break;case 27:T7&&(T7.hidden=!0);break;case 40:Lf(VJ,40);break;case 38:Lf(VJ,38);break;case 39:ex(39);break;case 37:ex(37);break;case 229:Fc.inputMethodsTracker.add(4);break;default:Fc.inputMethodsTracker.add(1),
sHO(Fc)}return!1}),yj=_.WH(function(VJ){W(VJ.target.value);
Q();Xi()&&T7&&(T7.scrollTop=0);return!1}),bX=_.WH(function(){Fc.inputMethodsTracker.add(2);
sHO(Fc);return!1});
_.H6(function(){if(T7){Fc.reset();if(window.ResizeObserver){var VJ=new ResizeObserver(function(){cL()||(T7.style.minWidth=G8.value.offsetWidth+"px")});
VJ.observe(G8.value);(new ResizeObserver(function(){PC()})).observe(T7);
_.Fq(function(){VJ.disconnect()})}p();
window.addEventListener("yt-navigate-finish",p);window.addEventListener("yt-focus-searchbox",function(){cs.value.focus()});
var QJ;mE((QJ=_.Am("SBOX_SETTINGS"))==null?void 0:QJ.HAS_ON_SCREEN_KEYBOARD)}else _.I4(new _.LL("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var l0=_.WH(function(VJ){VJ.preventDefault();D(cs.value.value,12);return!1}),g9=_.WH(function(VJ){VJ.preventDefault();
var QJ,BY;(QJ=cs)==null||(BY=QJ.value)==null||BY.focus();var eX,os;((eX=cs)==null?void 0:(os=eX.value)==null?void 0:os.value)!==""&&(cs.value.value="",cs.value.dispatchEvent(new Event("input")));return!1}),FO=_.WH(function(){var VJ=Knf(cs.value.value,r().filter(function(QJ){return QJ.type!==35}).map(function(QJ){return{label:QJ.text}}));
_.xO(M0.value,"yt-open-popup-action",[{openPopupAction:VJ},document.body]);return!1}),Ec=_.WH(function(){cs.value.focus();
return!1}),h6=function(VJ,QJ,BY,eX,os){Fc.selectedSuggestionIndex=BY;
D(QJ,os?3:1,eX)},TZ=function(VJ){cs.value.value=VJ;
cs.value.dispatchEvent(new Event("input"));Fc.inputMethodsTracker.add(5);sHO(Fc,!0)},uX=[[]],RW=function(VJ){var QJ="searchbox-suggestion"+_.st(_.bE);
uX[VJ].push(QJ);return QJ},aA=function(VJ){if(r()){uX=[[]];
for(var QJ=0;QJ<VJ;QJ++)uX.push([])}},PC=function(){if(Xi()){var VJ=T7,QJ=VJ.scrollTop;
VJ=VJ.scrollHeight-VJ.clientHeight;$C(QJ>=VJ);QJ=Math.abs(VJ-QJ);QJ<=40?wn(1-(40-QJ)/40):wn(1)}},zy=function(){return"opacity: "+OD()*100+"%"},sD=_.WH(function(){PC();
return!1}),Sf=_.WH(function(){UE(!1);
return!1}),dn,Ws={},aT={},Cm={},Zc={};
return _.M("yt-searchbox",{class:_.ym("ytSearchboxComponentHost",(Ws.ytSearchboxComponentMweb=!1,Ws.ytSearchboxComponentDesktop=!0,Ws["yt-searchbox-filled-query"]=function(){return f()},Ws["ytd-masthead"]=function(){return!P()},Ws.ytSearchboxComponentHostDark=Bs,Ws)),
role:"search",el:M0,"client-ve-type":10349},_.M("div",{el:G8,"on:click":Ec,class:_.ym("ytSearchboxComponentInputBox",(aT.ytSearchboxComponentInputBoxDark=Bs,aT.ytSearchboxComponentInputBoxHasFocus=P,aT))},_.M("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":l0},_.M(_.b,{cond:P,then:function(){return _.M("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.M(_.Qm,{icon:"SEARCH"}))}}),_.M("input",{el:cs,
class:_.ym("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":uC,"aria-expanded":!((dn=T7)==null?0:dn.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":Cu,"on:focus":Lu,"on:input":yj,"on:keydown":y$,"on:paste":bX,placeholder:x.placeholderText,"aria-activedescendant":function(){var VJ;return(VJ=uX[O()])==null?void 0:VJ[g()]},
"aria-autocomplete":"list",role:"combobox"})),_.M(_.b,{cond:L,then:function(){return _.M("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.M(NRc,null))}}),_.M(_.b,{cond:f,
then:function(){return _.M("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.M("button",{class:"ytSearchboxComponentClearButton","on:click":g9,"aria-label":x.clearButtonAriaLabel||tGf},_.M(_.Qm,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.M(_.b_,{model:{}})))}})),_.M("button",{class:_.ym("ytSearchboxComponentSearchButton",(Cm.ytSearchboxComponentSearchButtonDark=Bs,Cm)),
"on:click":l0,"aria-label":fIf,title:x.placeholderText},_.M(_.Qm,{icon:"SEARCH"})),_.M(_.b,{cond:function(){if(sZC()&&_.B("mweb_voice_search")&&x.voiceSearchButton)return x.voiceSearchButton()},
then:function(VJ){var QJ={};return _.M("div",{class:_.ym("ytSearchboxComponentVoiceSearchWrapper",(QJ.ytSearchboxComponentHideVoiceSearchButton=function(){return f()},QJ))},_.M(_.bA,{data:VJ},{buttonRenderer:function(BY){return _.M(_.RH,{data:BY.data,
onButtonClickCallback:function(){}})}}))}}),_.M("div",{el:_.NJ(function(VJ){return void(T7=VJ)}),
id:uC,class:_.ym("ytSearchboxComponentSuggestionsContainer",(Zc.ytSearchboxComponentSuggestionsContainerDark=Bs,Zc["yt-searchbox-suggestions-container"]=!1,Zc.ytSearchboxComponentSuggestionsContainerScrollable=Xi(),Zc.ytSearchboxComponentSuggestionsContainerAnimated=V,Zc)),"on:scroll":sD,"on:mousemove":Sf,role:"listbox",hidden:!0},_.M(_.LT,{each:r},function(VJ,QJ){return _.M(qbT,{suggestion:VJ,isHighlighted:function(){return QJ()===O()},
onClickCallback:h6,onHoverUpdateCallback:function(BY){if(_.B("desktop_enable_single_suggestion_highlight")){var eX=QJ();BY&&(u(0),A(eX))}},
onRemoveCallback:function(BY){JKj(Wd);BY===void 0||BY<0||n$().includes(BY)||Fi([].concat(_.B5(n$()),[BY]))},
labels:x.labels,queryBuilderFunction:TZ,suggestionIndex:QJ,generateUniqueId:RW,highlightedId:function(){var BY;return(BY=uX[O()])==null?void 0:BY[g()]},
useScrollMargin:Xi(),isKeyboardMode:pf})}),_.M(_.b,{cond:function(){return!cL()&&r().find(function(VJ){return VJ.type!==35})&&_.B("searchbox_reporting")},
then:function(){return _.M("button",{class:"ytSearchboxComponentReportButton","on:mousedown":FO},_.Wg("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.M(_.b,{cond:function(){return!jf()&&Xi()},
then:function(){return _.M("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.M("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:zy}))}})))},"sg"),"yt-searchbox",{props:{searchEndpoint:_.ik,
placeholderText:_.ik,labels:_.ik,voiceSearchButton:_.ik,focusCallback:_.fz,clearButtonAriaLabel:_.ik,forceDarkMode:_.ik}});var DW=function(){var x=_.n.apply(this,arguments)||this;x.menuButtonTargetId="topbar-guide-menu";x.narrow=!1;x.menuStrings={BACK_ALT_LABEL:_.Wg("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.Wg("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.Wg("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.Wg("SBOX_PLACEHOLDER",void 0,"Search")};x.pageDarkTheme=document.documentElement.hasAttribute("dark");x.watchPageScrollTop=0;x.theater=!1;x.fullscreen=!1;x.desktopUnifiedSearchPanelMode=_.B("desktop_enable_unified_search_panel");
x.cinematicTheaterMode=_.B("web_cinematic_theater_mode");x.ytSearchboxFocused=!1;x.searchboxLabels=_.Am("SBOX_LABELS");x.topbarIsAboveChipbar=!1;x.isDarkThemeForced=!1;x.areGhostCardsHidden=!1;x.guideKeyboardToggle=!1;x.voiceSearchManager=T2b();x.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};x.setYtSearchboxFocused=function(G){x.ytSearchboxFocused=G};
return x};
_.m(DW,_.n);_.a=DW.prototype;_.a.computeSimpleText=function(x){return _.u7(x)};
_.a.onDarkChanged=function(){for(var x=_.l(this.buttons||[]),G=x.next();!G.done;G=x.next())G.value.isOverlay=!!this.dark;x=_.l(this.buttonRenderers||[]);for(G=x.next();!G.done;G=x.next())G.value.overrides=this.computeButtonOverride()};
_.a.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.a.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"}}}};
_.a.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var x=_.CJ(_.Fp(),"aa");_.E4(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||x||(this.isDarkThemeForced=this.dark=!0);this.logoType?(x=this.hostElement.querySelector("#masthead-logo"))&&(_.B("polymer_on_demand_shady_dom")?x.setAttribute("slot","masthead-logo-old"):_.VF(x)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.ae(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.ae(this,this.onSetTheaterModeEnabled))};
_.a.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.ae(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.ae(this,this.onSetTheaterModeEnabled))};
_.a.dataChanged=function(){var x=this.data;x&&(this.voiceEnabled=x.voiceSearchButton?T2b().isSupported():!1,_.cKZ(_.e$(),this.menuButtonTargetId,this.guideButton),x.onReceivedActions&&x.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.zl(this.hostElement,x.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&x&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.E4(this.hostElement,"dark",!1),_.E4(this.hostElement,"theater",!1),
(x=this.hostElement.querySelector("#masthead-logo"))&&(_.B("polymer_on_demand_shady_dom")?x.setAttribute("slot","masthead-logo-old"):_.VF(x))))};
_.a.computeCenterHidden=function(){var x;return this.data&&!((x=this.data.searchbox)==null?0:x.fusionSearchboxRenderer)};
_.a.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.E4(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.a.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.a.onWatchScroll=function(x){this.watchPageScrollTop=x.detail||0;this.updateMastheadBackgroundOpacity()};
_.a.onFullscreenChangeAction=function(x){x||(this.watchPageScrollTop=0);this.fullscreen=x;this.updateMastheadBackgroundOpacity()};
_.a.onSetTheaterModeEnabled=function(x){this.theater=x.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.a.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.a.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.a.setBackgroundOpacity=function(x){x=this.calculateBackgroundOpacity(x);this.background.style.opacity=""+x};
_.a.calculateBackgroundOpacity=function(x){var G=this.theater&&this.cinematicTheaterMode?.6:0,D=this.hostElement.clientHeight/2;return Math.min(Math.max(x,0),D)/D*(1-G)+G};
_.a.shouldShowCinematicMastHead=function(){var x=_.B("kevlar_watch_grid")&&!_.B("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(x||this.pageDarkTheme)};
_.a.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.a.focusGuide=function(){this.guideButton.focus()};
_.a.onGuideToggleTap=function(){_.h$(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.a.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.a.onGuideToggleHover=function(){_.h$(this.hostElement,"yt-guide-hover")};
_.a.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.a.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.a.closeOnOutsideClickCondition=function(x){for(x=_.gA(x);x[0];){var G=x.shift();if(G instanceof Element&&G.id==="kbd")return!1}return!0};
_.a.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.a.pausePlayer=function(){var x;(x=_.Ns())==null||x.pause();this.pauseMiniplayer()};
_.a.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var x;(x=_.Eo().resolve(_.O$).getPlayerElement())==null||x.pause()}};
_.a.isMiniplayerActive=function(){return _.Eo().resolve(_.O$).isMiniplayerActive()};
_.a.updateNarrowFromBinding=function(x){this.narrow=x.detail.value};
_.a.onYtSendFeedbackAction=function(){_.xO(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.Nq.Object.defineProperties(DW.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.B("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var x;return(x=this.data)==null?void 0:x.voiceSearchButton}}}});
DW.prototype.narrowChanged=DW.prototype.narrowChanged;DW.prototype.onWatchPageChange=DW.prototype.onWatchPageChange;DW.prototype.onRendererStamperFinished=DW.prototype.onRendererStamperFinished;DW.prototype.dataChanged=DW.prototype.dataChanged;DW.prototype.onDarkChanged=DW.prototype.onDarkChanged;_.q([_.I(_.Lg),_.N("design:type",Object)],DW.prototype,"ironResizableBehavior",void 0);_.q([_.I(_.Vrf),_.N("design:type",Object)],DW.prototype,"ytdExpandableInputBehavior",void 0);
_.q([_.I(_.XL.YtdGuideStateAwareBehavior),_.N("design:type",Object)],DW.prototype,"ytdGuideStateAwareBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],DW.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],DW.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],DW.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],DW.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.$l),_.N("design:type",Object)],DW.prototype,"ytdReduxBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],DW.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],DW.prototype,"narrow",void 0);_.q([_.R(),_.N("design:type",Object)],DW.prototype,"logoType",void 0);_.q([_.R(),_.N("design:type",Boolean)],DW.prototype,"voiceEnabled",void 0);
_.q([_.R(),_.N("design:type",Object)],DW.prototype,"menuStrings",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],DW.prototype,"dark",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],DW.prototype,"pageDarkTheme",void 0);_.q([_.R(),_.N("design:type",Object)],DW.prototype,"watchPageScrollTop",void 0);_.q([_.R({reflectToAttribute:!0,selector:_.$_}),_.N("design:type",Boolean)],DW.prototype,"isWatchPage",void 0);
_.q([_.R({reflectToAttribute:!0,selector:_.oVC}),_.N("design:type",Boolean)],DW.prototype,"isShortsPage",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],DW.prototype,"theater",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],DW.prototype,"fullscreen",void 0);_.q([_.R({reflectToAttribute:!0,selector:_.WPV}),_.N("design:type",String)],DW.prototype,"frostedGlassMode",void 0);_.q([_.R(),_.N("design:type",Object)],DW.prototype,"ytSearchboxFocused",void 0);
_.q([_.Ta("#buttons > *"),_.N("design:type",Array)],DW.prototype,"buttons",void 0);_.q([_.Ta("ytd-button-renderer"),_.N("design:type",Array)],DW.prototype,"buttonRenderers",void 0);_.q([_.cD("#background"),_.N("design:type",HTMLDivElement)],DW.prototype,"background",void 0);_.q([_.cD("#guide-button"),_.N("design:type",Object)],DW.prototype,"guideButton",void 0);_.q([_.cD("#logo"),_.N("design:type",Object)],DW.prototype,"logo",void 0);
_.q([_.R({computed:"computeButtonOverride(dark)"}),_.N("design:type",Object)],DW.prototype,"buttonOverrides",void 0);_.q([_.Z6("dark"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DW.prototype,"onDarkChanged",null);_.q([_.R({value:function(){return this.onVoiceTap.bind(this)}}),
_.N("design:type",Function)],DW.prototype,"boundOnTapVoiceButton",void 0);_.q([_.R(),_.N("design:type",Object)],DW.prototype,"topbarIsAboveChipbar",void 0);_.q([_.R(),_.N("design:type",String),_.N("design:paramtypes",[])],DW.prototype,"guideIcon",null);_.q([_.U("voiceEnabled"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],DW.prototype,"shouldShowVoiceSearchButton",null);_.q([_.U("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],DW.prototype,"voiceSearchButton",null);
_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DW.prototype,"dataChanged",null);_.q([_.oe("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DW.prototype,"onRendererStamperFinished",null);_.q([_.Z6("isWatchPage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DW.prototype,"onWatchPageChange",null);
_.q([_.Z6("narrow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DW.prototype,"narrowChanged",null);DW=_.q([_.d({disableElementRegistration:!0,is:"ytd-masthead"})],DW);
_.w(DW,"ytd-masthead",function(){if(Sbc!==void 0)return Sbc;var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="max-width: 656px" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Sbc=x},{mode:_.Ge("kevlar_poly_si_batch_j036")?1:2});var PuT;var Ec4={},hQC={},xDY={},Gnc={},DDY=(Gnc.OFFLINE=(Ec4["publicytnetworkstatus-online"]="BACK_ONLINE",Ec4),Gnc.ONLINE=(hQC["publicytnetworkstatus-offline"]="OFFLINE",hQC),Gnc.BACK_ONLINE=(xDY["publicytnetworkstatus-offline"]="OFFLINE",xDY.TIMER_TRIGGER="ONLINE",xDY),Gnc),KA=function(){var x=_.n.apply(this,arguments)||this;x.currentState="ONLINE";x.scheduledJobId=0;x.bannerString="";x.bannerVe=null;x.networkStatusManagerInstance=new _.w$;return x};
_.m(KA,_.n);_.a=KA.prototype;_.a.attached=function(){var x=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){x.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){x.stateChangeHandler("publicytnetworkstatus-offline")})};
_.a.detached=function(){var x=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){x.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){x.stateChangeHandler("publicytnetworkstatus-offline")})};
_.a.enterState=function(x){var G=this;this.scheduledJobId&&_.Fj.cancelJob(this.scheduledJobId);x==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):x==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.Wg("NO_INTERNET_CONNECTION",void 0,"No internet connection")):x==="BACK_ONLINE"&&(this.bannerString=_.Wg("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.Bw(_.Fj,function(){G.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=x};
_.a.stateChangeHandler=function(x){(x=DDY[this.currentState][x])&&this.enterState(x)};
_.a.logVisibility=function(x){var G=_.CC();this.createBannerVe(x);G&&this.bannerVe&&(x?_.i0(G,[this.bannerVe]):_.gB(G,[this.bannerVe]))};
_.a.createBannerVe=function(x){!this.bannerVe&&x&&(this.bannerVe=_.BH(37929),_.xP(_.en(),this.bannerVe))};
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",String)],KA.prototype,"currentState",void 0);_.q([_.R(),_.N("design:type",Object)],KA.prototype,"scheduledJobId",void 0);_.q([_.R(),_.N("design:type",Object)],KA.prototype,"bannerString",void 0);KA=_.q([_.d({disableElementRegistration:!0,is:"ytd-network-status-banner"})],KA);
_.w(KA,"ytd-network-status-banner",function(){if(PuT!==void 0)return PuT;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return PuT=
x},{mode:1});var Kxx;var zh=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};x.hidden=!0;x.frostedGlass=_.B("web_frosted_glass");return x};
_.m(zh,_.n);zh.prototype.computeHidden=function(x){return x&&x.status?!1:!0};
zh.prototype.handleUpdatePermissionRoleCommand=function(x){if(x=_.Y(x,_.kXs))if(x=_.Y(x.renderer,_.tuo))this.data=x};
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],zh.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],zh.prototype,"componentBehavior",void 0);_.q([_.R({value:!0,computed:"computeHidden(data)"}),_.N("design:type",Object)],zh.prototype,"hidden",void 0);_.q([_.R(),_.N("design:type",Object)],zh.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],zh.prototype,"frostedGlass",void 0);
zh=_.q([_.d({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],zh);
_.w(zh,"ytd-permission-role-bottom-bar-renderer",function(){if(Kxx!==void 0)return Kxx;var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);return Kxx=x},{mode:1});var zVk;var a9b;var ZWf={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var aB=function(){return _.n.apply(this,arguments)||this};
_.m(aB,_.n);_.a=aB.prototype;_.a.attached=function(){this.JSC$18525_scroller&&(this.JSC$18525_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18525_scroller.attached&&typeof this.JSC$18525_scroller.attached==="function"&&this.JSC$18525_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(D){D.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var x=_.kA(this.hostElement);x.querySelector("tp-yt-paper-radio-group").selected="";var G=x.querySelector("#reason-text");G&&(G.value="");x.querySelector("#description-text").value=""}};
_.a.canSubmit=function(x,G){_.h$(this.hostElement,"yt-invalidate-popup-tabbables");return!(x&&G)};
_.a.onCancel=function(){_.xO(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.a.onSubmit=function(){var x=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(y){return y.active}).map(function(y){return y.innerText.trim()}),G=this.hostElement.querySelector("tp-yt-paper-radio-group"),D=G.selectedItem,K=D.name;
D=D.innerText.trim();var z=G.querySelector("#reason-text");G=void 0;z&&(G=z.value);(z=this.descriptionText.value)&&(z=z.trim());M7f(this.data.searchQuery,x,K,D,z,G);_.xO(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.a.sendFormSubmitToast=function(){var x=_.vk(_.Wg("SBOX_INAPPROPRIATE_TOAST"));_.xO(this.hostElement,"yt-open-popup-action",[x,this])};
_.a.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(x){return x.active})};
_.a.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
aB.prototype.onIronSelect=aB.prototype.onIronSelect;aB.prototype.onIronChange=aB.prototype.onIronChange;aB.prototype.dataChanged=aB.prototype.dataChanged;_.q([_.R(),_.N("design:type",Object)],aB.prototype,"data",void 0);_.q([_.R({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.N("design:type",Boolean)],aB.prototype,"submitDisabled",void 0);_.q([_.R(),_.N("design:type",Boolean)],aB.prototype,"suggestionSelected",void 0);
_.q([_.R(),_.N("design:type",Boolean)],aB.prototype,"catagorySelected",void 0);_.q([_.cD("#scroller"),_.N("design:type",Object)],aB.prototype,"JSC$18525_scroller",void 0);_.q([_.cD("#description-text"),_.N("design:type",Object)],aB.prototype,"descriptionText",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aB.prototype,"dataChanged",null);
_.q([_.oe("iron-change"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aB.prototype,"onIronChange",null);_.q([_.oe("iron-select"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aB.prototype,"onIronSelect",null);aB=_.q([_.d({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],aB);
_.w(aB,"ytd-search-suggestion-report-dialog",function(){if(a9b!==void 0)return a9b;var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return a9b=x},{mode:1});var oB=function(x){var G=x.openPopupAction;var D=x.target;var K=x.container;var z=x.popupContainerConfig;var y=x.getElement;x=x.removeWhenClosed===void 0?!1:x.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=G;this.target=D;this.container=K;this.popupContainerConfig=z;this.getElement=y;this.JSC$18531_popupConfig=this.popupContainerConfig.JSC$17646_popupConfig[this.openPopupAction.popupType];this.rendererName=(G=this.getName())?_.OzQ(G,dZc(this.popupContainerConfig,
G)):"";_.B("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=x);this.createPopup()};
oB.prototype.updatePopup=function(x){this.openPopupAction=x;this.JSC$18531_popupConfig=this.popupContainerConfig.JSC$17646_popupConfig[this.openPopupAction.popupType];odY(this);_.B("reorder_popup_updates_killswitch")&&yW4(this);_.B("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
var T_T=function(x,G,D){x.target=D;var K;D=((K=x.target.polymerController)!=null?K:x.target).popupPositionTarget||x.target;x.JSC$18531_popupConfig.targetContainer&&(D=x.container);x.popup.positionTarget=D;x.popupContent.positionTarget=D;_.B("reorder_popup_updates_killswitch")||yW4(x);x.JSC$18531_popupConfig.forceFocus&&(x.popupContent.style.outline="none");x.popupContent.tabIndex=-1;x.JSC$18531_popupConfig.narrowProperties&&(x.popup.style.position="static");x.JSC$18531_popupConfig.preventAutonav&&
x.popup.setAttribute("prevent-autonav",!0);x.JSC$18531_popupConfig.forceCloseOnOutsideClick&&x.popup.setAttribute("force-close-on-outside-click",!0);l9k(x,G);cWj(x,x.JSC$18531_popupConfig.styles);x.isRtl()&&cWj(x,x.JSC$18531_popupConfig.rtlStyles);if(!x.openPopupAction.shouldStopParentSignal){var z;G=(z=x.target.polymerController)!=null?z:x.target;(x.popupContent.startForwardingEvents||x.popupContainerConfig.forwardingEnabledPopups.has(x.rendererName))&&G.parentComponent!==x.popupContent&&x.popupContent!==
x.target&&x.target!==document.body&&(x.popupContent.startForwardingEvents?x.popupContent.startForwardingEvents(x.popupContainerConfig.forwardedEvents,x.target):(x.JSC$18531_eventForwarder||(x.JSC$18531_eventForwarder=new _.op(x.popupContent)),x.JSC$18531_eventForwarder.start(x.popupContainerConfig.forwardedEvents,x.target)))}};
oB.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var l9k=function(x,G){WxO(x,G&&x.JSC$18531_popupConfig.narrowProperties?x.JSC$18531_popupConfig.narrowProperties:x.JSC$18531_popupConfig.properties);x.isRtl()&&WxO(x,x.JSC$18531_popupConfig.rtlProperties);yW4(x)};
oB.prototype.createPopup=function(){var x=this.JSC$18531_popupConfig.component;if(this.popupContent=eVx(this,this.rendererName)){if(x){this.popup=eVx(this,x);var G=this.popupContent;_.B("web_enable_wrapper_for_cow_component_in_popup")&&(G=document.createElement("div"),G.appendChild(this.popupContent));_.B("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18531_popupConfig.slotName&&G.setAttribute("slot",this.JSC$18531_popupConfig.slotName);x=this.popup;var D=this.container.tagName.toLowerCase(),
K=_.dA(G);_.P4P(_.qB(x),_.JS(G,D,K));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.B("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.kA(this.container).appendChild(this.popup)}};
var odY=function(x){var G,D,K=(G=x.openPopupAction.accessibilityData)==null?void 0:(D=G.accessibilityData)==null?void 0:D.label;K&&(x.popup.ariaLabel=K);var z;((z=x.popupContent.polymerController)!=null?z:x.popupContent).data=(0,_.YS.unsafeClone)(x.openPopupAction.popup[x.getName()]);x.popupContent.duration=Zdb(x);x.popupContent.positionType=x.openPopupAction.position;var y=x.openPopupAction.properties;y&&Object.keys(y).forEach(function(c){x.popupContent[c]=y[c]})},WxO=function(x,G){if(G)for(var D=
_.l(Object.keys(G)),K=D.next();!K.done;K=D.next())K=K.value,x.popup[K]=G[K]},yW4=function(x){if(x.openPopupAction.position){var G=x.JSC$18531_popupConfig.positionalProperties&&x.JSC$18531_popupConfig.positionalProperties[x.openPopupAction.position],D=x.JSC$18531_popupConfig.rtlPositionalProperties&&x.JSC$18531_popupConfig.rtlPositionalProperties[x.openPopupAction.position];
G=x.isRtl()&&D?D:G;G.shiftedHorizontalOffset&&(D=x.popup.style.display,x.popup.style.display="block",x.popupContent&&x.popup.positionTarget&&x.popupContent.clientWidth>x.popup.positionTarget.clientWidth&&(G.horizontalOffset=x.popup.positionTarget.clientWidth/2-G.shiftedHorizontalOffset),x.popup.style.display=D);WxO(x,G)}},cWj=function(x,G){if(G)for(var D=_.l(Object.keys(G)),K=D.next();!K.done;K=D.next())K=K.value,x.popup.style[K]=G[K]};
oB.prototype.getName=function(){return _.jR(this.openPopupAction.popup,"renderer")||_.jR(this.openPopupAction.popup,"dialog")||_.jR(this.openPopupAction.popup,"model")||void 0};
var Zdb=function(x){x=x.openPopupAction.durationHintMs;return x===0?x:Math.max(4E3,x||4E3)};
oB.prototype.isRtl=function(){return _.Am("HTML_DIR")==="rtl"};
var eVx=function(x,G){x=x.getElement(G,x.target);x==null&&_.O9(new _.LL("popup getElement returned null",G));return x};var Mbx={};
Mbx.YtPopupContainerBehavior=[_.j$.YtComponentBehavior,_.tG.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_);_.Py(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.Ef(this.hostElement)},
closePopup:function(x){var G=this.createCacheKey(void 0,x);this.popups_[G]&&this.handleClosePopupAction_(void 0,x)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.Fj.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.Fj.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(x){x.opened&&x.keepBelowPlayer&&this.ensurePopupBelowPlayer(x)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var x in this.popups_){var G=this.popups_[x];if(G.popup.scrollAction==="refit"){var D=G.popup.positionTarget.getBoundingClientRect(),K=G.popup;D=D.top;var z=G;if(!z.naturalHeight){z.popup.hidden=!1;z.popup.style.position="fixed";z.popup.style.top="0px";z.popup.style.left="0px";var y=z.popup.getBoundingClientRect();z.naturalHeight=y.bottom-y.top;z.popup.refit()}K.hidden=!(D>=z.naturalHeight+60);G.popupContent.clientHeight===0&&G.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(x){this.popupContainerConfig=x},
handleOpenPopupAction:function(x,G){var D=x.openPopupAction,K=_.Eo().resolve(_.P6(_.YUJ))&&D.popupType==="TOAST";K&&!D.uniqueId&&(D.uniqueId=_.YZ());if(!_.B("popup_container_parent_target_killswitch")){var z;G=(z=this.getParentTarget(G))!=null?z:G}var y=this.ensurePopup_(D,G);return new _.T1(function(c){y.then(function(W){if(!W)return c();this.maybeCreateNarrowMediaQuery_();var e=this.createCacheKey(W.rendererName,W.openPopupAction.uniqueId);if(D.showOncePerUniqueId){if(this.shownPopupKeys_.has(e))return c();
this.shownPopupKeys_.add(e)}e=this.popups_[e];var Q=!(!e||!e.openPopupAction.beReused);Q=!!D.reusePopup||Q;if(W.popup.opened&&!Q){K&&!W.openPopupAction.replacePopup||this.handleClosePopupAction_(W.rendererName,W.openPopupAction.uniqueId);Q=D.popupType==="DIALOG"&&!_.B("popup_container_dialog_reopen_killswitch");if(!K&&!Q&&e&&e.target==G&&!W.openPopupAction.replacePopup)return c();_.w1(W.popup,function(){this.completeOpenPopupAction_(D,G,W);c()}.bind(this))}else W.popup.opened?W.updatePopup(D):this.completeOpenPopupAction_(D,
G,W),c()}.bind(this))}.bind(this))},
getParentTarget:function(x){if(x&&x instanceof HTMLElement)for(var G=_.l(Object.entries(this.popups_)),D=G.next();!D.done;D=G.next())if(D=_.l(D.value),D.next(),D=D.next().value,D.popup.tagName==="TP-YT-IRON-DROPDOWN"&&x.closest(D.rendererName))return D.target},
completeOpenPopupAction_:function(x,G,D){_.B("reorder_popup_updates_killswitch")?(T_T(D,this.narrowMediaQuery_.queryMatches,G),D.updatePopup(x)):(D.updatePopup(x),T_T(D,this.narrowMediaQuery_.queryMatches,G));x=D.popup;x.addEventListener("iron-overlay-opened",_.ae(this,this.onPopupIronOverlayOpened_));x.addEventListener("iron-overlay-closed",_.ae(this,this.onPopupIronOverlayClosed_));x.addEventListener("iron-overlay-canceled",_.ae(this,this.onPopupIronOverlayCanceled_));x.addEventListener("yt-refit",
_.ae(this,this.refitPopup_));x.addEventListener("yt-invalidate-popup-tabbables",_.ae(this,this.handleInvalidatePopupTabbables_));x.open()},
getPopupDurationMs_:function(x){return x.durationHintMs===0?x.durationHintMs:Math.max(4E3,x.durationHintMs||4E3)},
handleClosePopupAction_:function(x,G){var D=_.B("web_popup_cache_key_killswitch")||!!G;if(x||D){var K=this.createCacheKey(x,G);x=(x=this.popups_[K])&&x.popup}else x=_.keq(_.Xa);if(x&&x.close){if(G=_.Eo().resolve(_.P6(_.Ee)))x.restoreFocusOnClose=G.isKeyBoardInUse();x.close();this.removePopup_(x,K)}},
handleClosePopupCommand_:function(x){x.closePopupCommand&&x.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,x.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(x){var G={},D;for(D in this.popups_)if(G={key$jscomp$1165:G.key$jscomp$1165},G.key$jscomp$1165=D,!x||!x.some(function(y){return function(c){return c==y.key$jscomp$1165}}(G))){var K=this.popups_[G.key$jscomp$1165],z=K.popup;
_.Eo().resolve(_.P6(_.YUJ))&&K.openPopupAction.popupType==="TOAST"||(z&&z.close&&z.close(),this.removePopup_(z,G.key$jscomp$1165))}},
handleClosePopupsAction_:function(x){x.forEach(function(G){var D=this.popups_[G];D&&((D=D.popup)&&D.close&&D.close(),this.removePopup_(D,G))}.bind(this))},
handleGetPopupOpenedAction_:function(x,G){return(G=this.createCacheKey(x,G))&&this.popups_[G]?this.popups_[x].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var x=[],G;for(G in this.popups_){var D=this.popups_[G];D.popup.opened&&x.push(D)}return x},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(x,G){_.B("ytpopup_disable_default_html_caching")&&x&&x.removeWhenClosed&&(_.kA(this.hostElement).removeChild(x),G&&this.popups_[G]&&delete this.popups_[G])},
shouldReusePopup_:function(x){return!(!x||!x.reusePopup)||!(!x||!x.beReused)},
ensurePopup_:function(x,G){this.maybeCreateNarrowMediaQuery_();var D=_.jR(x.popup,"renderer")||_.jR(x.popup,"dialog")||_.jR(x.popup,"model");if(!D)return _.aI();D=_.OzQ(D,dZc(this.popupContainerConfig,D));return _.aI(this.getAndMaybeCreatePopup_(x,D,G))},
getAndMaybeCreatePopup_:function(x,G,D){var K=this.createCacheKey(G,x.uniqueId);if(this.popups_[K])return this.popups_[K];x=new oB({openPopupAction:x,target:D,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(G)});return this.popups_[K]=x},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(x){return _.B("ytpopup_disable_default_html_caching")?x&&x.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",_.ae(this,this.openPopupQueryMatchesChanged_)),_.kA(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(x){x=x.detail.value;for(var G in this.popups_)l9k(this.popups_[G],x)},
onPopupIronOverlayClosed_:function(x){var G=x.currentTarget,D=_.VeD(G);D=D.length>0?D[0]:G;if(D.is!=="ytd-reel-watch-while-dialog-renderer"||x.target.is!=="tp-yt-iron-dropdown"){x.detail.popup=G;x.detail.popupRenderer=D;var K,z={context:{openingElement:((K=this.popups_[(D==null?void 0:D.is)||""])==null?void 0:K.target)||void 0}};Object.assign(z,x.detail);var y;_.h$((y=D.hostElement)!=null?y:D,"yt-popup-closed",z);G.removeEventListener("yt-refit",_.ae(this,this.refitPopup_));G.removeEventListener("yt-invalidate-popup-tabbables",
_.ae(this,this.handleInvalidatePopupTabbables_));G.removeEventListener("iron-overlay-canceled",_.ae(this,this.onPopupIronOverlayCanceled_));G.removeEventListener("iron-overlay-closed",_.ae(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(G)}},
onPopupIronOverlayCanceled_:function(x,G){var D=x.currentTarget,K=_.VeD(D);K=K.length>0?K[0]:D;if(K.is!=="ytd-reel-watch-while-dialog-renderer"||x.target.is!=="tp-yt-iron-dropdown"){var z;_.h$((z=K.hostElement)!=null?z:K,"yt-popup-canceled",x.detail);z=G?_.gA(G):null;(!G||["click","tap"].includes(G.type))&&!D.hasAttribute("force-close-on-outside-click")&&D.positionTarget&&z&&z.includes(D.positionTarget)&&x.preventDefault();D.restoreFocusOnClose=_.Tb.keyboardEventMatchesKeys(G,"esc")}},
onPopupIronOverlayOpened_:function(x){x=x.currentTarget;var G=_.VeD(x);G=G.length>0?G[0]:x;var D,K;_.h$((D=G.hostElement)!=null?D:G,"yt-popup-opened",(K=G.hostElement)!=null?K:G);x.keepBelowPlayer&&(this.ensurePopupBelowPlayer(x,!0),this.dynamicallyPositionedElements_.add(x));D=_.Eo().resolve(_.P6(_.Ee));K=!!G.querySelector("#toast");D&&D.isKeyBoardInUse()&&!K&&(typeof G.focusFirstItem==="function"?G.focusFirstItem():(G=_.Jnh(x),G.length&&G[0].focus()));x.removeEventListener("iron-overlay-opened",
_.ae(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(x){x=x.currentTarget;x.refit&&x.refit()},
refitPopups_:function(){for(var x in this.popups_)this.popups_[x].refit()},
handleInvalidatePopupTabbables_:function(x){x=x.currentTarget;x.invalidateTabbables&&x.invalidateTabbables()},
createCacheKey:function(x,G){return _.B("web_popup_cache_key_killswitch")?G?x+"#"+G:x:G?"#"+G:x},
openSheet:function(x,G){var D=x==null?void 0:x.openPopupActionCommand;!D&&(x==null?0:x.viewModel)&&(D={openPopupAction:{popup:{sheetViewModel:x.viewModel},popupType:"CONTEXTUAL_SHEET"}});D&&this.handleOpenPopupAction(D,G)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var x=this;return _.T(function(G){return G.return(x.handleGetOpenedPopupsAction_().filter(function(D){var K;return((K=D.openPopupAction)==null?void 0:K.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(x,G,D){if(_.B("web_dialog_utils_killswitch")){var K=x==null?void 0:x.openPopupActionCommand,z=(D==null?0:D.ariaLabel)?{accessibilityData:{accessibilityData:{label:D.ariaLabel}}}:void 0;!K&&(x==null?0:x.viewModel)&&(K={openPopupAction:Object.assign({},{popup:{dialogViewModel:x.viewModel},popupType:(D==null?0:D.isModal)?"MODAL":"DIALOG"},z&&z)});K&&this.handleOpenPopupAction(K,G)}else{if(z=x==null?void 0:x.viewModel){var y=D=D===void 0?{}:D;D=y.ariaLabel;z={popup:{dialogViewModel:z},
popupType:y.isModal?"MODAL":"DIALOG"};y={accessibilityData:{label:D}};D&&(z.accessibilityData=y);z={openPopupAction:z}}else z=void 0;(z=(K=z)!=null?K:x==null?void 0:x.openPopupActionCommand)&&this.handleOpenPopupAction(z,G)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var x=this;return _.T(function(G){return G.return(x.handleGetOpenedPopupsAction_().filter(function(D){var K;return((K=D.openPopupAction)==null?void 0:K.popupType)==="DIALOG"}).length>0)})}}];var QDf;var pOk;var VbO=_.gv(["about:blank"]),lj=function(){var x=_.n.apply(this,arguments)||this;x.isMuted=!1;x.pageLoadTimeoutId=void 0;return x};
_.m(lj,_.n);_.a=lj.prototype;_.a.dataChanged=function(){var x=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var G=this.data.url,D=_.CU(G);_.B("enable_yt_ata_iframe_authuser")?(D=_.CU(G),_.C9(this.iframe,QIf(D))):_.C9(this.iframe,D);this.pageLoadTimeoutId=_.Bw(_.rv(),function(){return void x.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.qV({destination:window,iframe:this.iframe,origin:_.G7Z(D.toString()),channelName:"ataiframe",onMessage:_.Wl$(JDx,function(K){frT(K.data)?(K=_.Lm(K.data,1,_.sc,_.xa()),K.length!==1?_.O9(Error("ml")):(K=K[0],K===3?(x.isMuted=!0,x.logStateChanged({adMuteRequested:!0})):K===1&&x.close())):_.O9(Error("nl"))}),
onEstablished:function(){x.cancelPageLoadTimeout();x.logStateChanged({pageLoadSucceeded:!0})}})}};
_.a.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.rv().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.a.logStateChanged=function(x){var G;if((G=this.data)==null?0:G.trackingParams)x={adsClientData:{aboutThisAdData:x}},_.en().stateChanged(this.data.trackingParams,x)};
_.a.close=function(){_.xO(this.hostElement,"yt-close-popup-action",[this.is])};
_.a.handlesPopupClosed=function(x,G){var D=this,K,z;return _.T(function(y){if(y.nextAddress==1)return _.Am("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.xO(D.hostElement,"on-about-this-ad-popup-closed",[D.isMuted,G]),y.jumpTo(0)):x&&pgT(x)?_.Z(y,V7f(x),4):(D.isMuted&&_.xO(D.hostElement,"yt-mute-ad-action",[D.is,D]),y.jumpTo(0));if(K=y.yieldResult){var c=z=new _.MD(K),W=D.isMuted;c.getOptions().includes("onAboutThisAdPopupClosed")?_.FrZ(c,"onAboutThisAdPopupClosed",{isMuted:W,layoutId:G}):_.tc("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.c5(y)})};
_.a.onPopupClosed=function(x){var G=this,D,K;return _.T(function(z){D=_.xS(VbO);_.C9(G.iframe,D);G.cancelPageLoadTimeout();if(!G.data)return z.jumpTo(0);G.ytRendererBehavior.markDirty();K=x.detail.context.openingElement;return _.Z(z,G.handlesPopupClosed(K,G.data.layoutId),0)})};
_.a.detached=function(){this.cancelPageLoadTimeout()};
_.a.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
lj.prototype.onPopupClosed=lj.prototype.onPopupClosed;lj.prototype.dataChanged=lj.prototype.dataChanged;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],lj.prototype,"ytRendererBehavior",void 0);_.q([_.cD("#iframe"),_.N("design:type",HTMLIFrameElement)],lj.prototype,"iframe",void 0);_.q([_.R(),_.N("design:type",Object)],lj.prototype,"data",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lj.prototype,"dataChanged",null);
_.q([_.oe("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype",Promise)],lj.prototype,"onPopupClosed",null);lj=_.q([_.HD({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],lj);
_.w(lj,"yt-about-this-ad-renderer",function(){if(pOk===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;QDf===void 0&&(QDf=document.createElement("template"));var K=QDf;D.call(G,K.content.cloneNode(!0),x.content.firstChild);pOk=x}x=pOk;return x},{mode:2});var bdj;var Lxk;var cf=function(x){var G=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=G.message;"stack"in G&&(this.stack=G.stack);this.maxFileSizeMB=x;Object.setPrototypeOf(this,cf.prototype)};
_.m(cf,Error);var B_T=function(x,G){var D=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=D.message;"stack"in D&&(this.stack=D.stack);this.minWidth=x;this.minHeight=G;Object.setPrototypeOf(this,B_T.prototype)};
_.m(B_T,Error);var rWf=function(x){this.requirements=x;this.JSC$18559_maxFileSize=x.maxFileSizeMB*1024*1024},sD6=function(x,G){if(G.size>x.JSC$18559_maxFileSize)throw new cf(x.requirements.maxFileSizeMB);
};var Yhk=function(x,G){this.canvas=x;this.imageEditorBuilder=G};
Yhk.prototype.addEventListeners=function(x){var G=function(z){mDO(x,z)};
this.JSC$18565_mouseDownEvent=G;var D=function(z){HdC(x,z)};
this.JSC$18565_mouseMoveEvent=D;var K=function(){$Dc(x)};
this.JSC$18565_mouseUpEvent=K;this.canvas.addEventListener("mousedown",G);this.canvas.addEventListener("mousemove",D);document.addEventListener("mouseup",K)};
Yhk.prototype.removeEventListeners=function(){this.JSC$18565_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18565_mouseDownEvent);this.JSC$18565_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18565_mouseMoveEvent);this.JSC$18565_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18565_mouseUpEvent)};
var Fxc=function(x,G){x.removeEventListeners();return new Promise(function(D){var K=new Image;K.crossOrigin="anonymous";K.onload=function(){var z=x.imageEditorBuilder(x.canvas,K);x.addEventListeners(z);D(z)};
K.src=G})},Th=function(x,G,D,K,z,y,c,W){this.canvas=x;
this.image=G;this.requiredRatio=D;this.minImageCropDimension=K;this.minOutputImageResolution=z;this.component=y;this.styleFocusedCorner=W===void 0?!0:W;this.action=2;this.focusedCorner=this.resizeCorner=0;x=this.canvas.getContext("2d");if(!x)throw Error("ol");this.ctx=x;this.canvasMargin=c!=null?c:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;c=this.image;x=this.canvasInnerWidth/c.width;c.height*x>912&&(x=c.width/c.height*912/c.width);c=x;this.scaledImageWidth=this.canvas.width%2?
LsO(this.image.width*c):bWY(this.image.width*c);this.scaledImageHeight=Math.round(this.image.height*c);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18568_overlayMarginBottom=this.JSC$18568_overlayMarginTop=this.canvasMargin;this.JSC$18568_overlayMarginRight=this.JSC$18568_overlayMarginLeft=this.horizontalMargin;this.JSC$18568_overlayWidth=this.scaledImageWidth;this.JSC$18568_overlayHeight=this.scaledImageHeight;
x=this.image.width/this.image.height;x>this.requiredRatio?(this.JSC$18568_overlayWidth=this.canvas.width%2?LsO(this.scaledImageHeight*this.requiredRatio):bWY(this.scaledImageHeight*this.requiredRatio),this.JSC$18568_overlayMarginRight=this.JSC$18568_overlayMarginLeft=(this.canvas.width-this.JSC$18568_overlayWidth)/2):x<this.requiredRatio&&(this.JSC$18568_overlayHeight=this.canvas.height%2?LsO(this.scaledImageWidth/this.requiredRatio):bWY(this.scaledImageWidth/this.requiredRatio),this.JSC$18568_overlayMarginBottom=
this.JSC$18568_overlayMarginTop=(this.canvas.height-this.JSC$18568_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*c,this.scaledImageWidth);C2c(this)};
Th.prototype.getContext=function(){return this.ctx};
var mDO=function(x,G){G={x:Math.round(G.pageX-x.canvas.getBoundingClientRect().left),y:Math.round(G.pageY-x.canvas.getBoundingClientRect().top)};x.dragStart=G;I9i(x,G)!==0?(x.action=1,jDi(x,G),x.resizeCorner=I9i(x,G)):G.x>x.JSC$18568_overlayMarginLeft&&G.x<x.JSC$18568_overlayMarginLeft+x.JSC$18568_overlayWidth&&G.y>x.JSC$18568_overlayMarginTop&&G.y<x.JSC$18568_overlayMarginTop+x.JSC$18568_overlayHeight&&(x.action=0)},Odc=function(x,G){switch(G){case 1:return{x:x.JSC$18568_overlayMarginLeft,
y:x.JSC$18568_overlayMarginTop};case 2:return{x:x.JSC$18568_overlayMarginLeft,y:x.JSC$18568_overlayMarginTop+x.JSC$18568_overlayHeight};case 3:return{x:x.JSC$18568_overlayMarginLeft+x.JSC$18568_overlayWidth,y:x.JSC$18568_overlayMarginTop};case 4:return{x:x.JSC$18568_overlayMarginLeft+x.JSC$18568_overlayWidth,y:x.JSC$18568_overlayMarginTop+x.JSC$18568_overlayHeight};default:throw Error("pl");}},AWO=function(x,G){if(x.focusedCorner!==0){x.dragStart=Odc(x,x.focusedCorner);
x.action=1;x.resizeCorner=x.focusedCorner;var D=x.dragStart.x,K=x.dragStart.y;switch(G){case 0:x.focusedCorner===1||x.focusedCorner===4?(D-=10,K-=10):(D-=10,K+=10);break;case 1:x.focusedCorner===1||x.focusedCorner===4?(D+=10,K+=10):(D+=10,K-=10);break;case 2:D=x.focusedCorner===1||x.focusedCorner===4?D-10:D+10;K-=10;break;case 3:D=x.focusedCorner===1||x.focusedCorner===4?D+10:D-10;K+=10;break;default:throw Error("ql");}XO8(x,{x:D,y:K});C2c(x);x.action=2;x.dragStart=void 0}},HdC=function(x,G){G={x:Math.round(G.pageX-
x.canvas.getBoundingClientRect().left),
y:Math.round(G.pageY-x.canvas.getBoundingClientRect().top)};jDi(x,G);switch(x.action){case 1:XO8(x,G);break;case 0:x.dragStart&&(x.JSC$18568_overlayMarginLeft=Math.max(x.horizontalMargin,Math.min(x.JSC$18568_overlayMarginLeft-(x.dragStart.x-G.x),x.horizontalMargin+x.scaledImageWidth-x.JSC$18568_overlayWidth)),x.JSC$18568_overlayMarginRight=x.canvas.width-x.JSC$18568_overlayMarginLeft-x.JSC$18568_overlayWidth,x.JSC$18568_overlayMarginTop=Math.max(x.canvasMargin,Math.min(x.JSC$18568_overlayMarginTop-
(x.dragStart.y-G.y),x.scaledImageHeight-x.JSC$18568_overlayHeight+x.canvasMargin)),x.JSC$18568_overlayMarginBottom=x.canvas.height-(x.JSC$18568_overlayMarginTop+x.JSC$18568_overlayHeight));break;default:return}C2c(x);x.dragStart=G},$Dc=function(x){x.action=2;
x.dragStart=void 0;document.body.style.cursor="auto"},jDi=function(x,G){switch(I9i(x,G)){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:x.action!==1&&(document.body.style.cursor="auto")}},I9i=function(x,G){var D=x.JSC$18568_overlayMarginLeft-5,K=x.JSC$18568_overlayMarginTop-5,z=x.JSC$18568_overlayMarginLeft+x.JSC$18568_overlayWidth-5;
x=x.JSC$18568_overlayMarginTop+x.JSC$18568_overlayHeight-5;return UDi(G,{x:D,y:K})?1:UDi(G,{x:z,y:K})?3:UDi(G,{x:D,y:x})?2:UDi(G,{x:z,y:x})?4:0},UDi=function(x,G){return x.x>=G.x&&x.x<=G.x+10&&x.y>=G.y&&x.y<=G.y+10},XO8=function(x,G){if(x.dragStart)switch(x.resizeCorner){case 2:Math.abs((x.JSC$18568_overlayMarginLeft+x.JSC$18568_overlayWidth-G.x)/(G.y-x.JSC$18568_overlayMarginTop))>=x.requiredRatio?RVf(x,G.x):Shx(x,G.y);
break;case 1:Math.abs((x.JSC$18568_overlayMarginLeft+x.JSC$18568_overlayWidth-G.x)/(x.JSC$18568_overlayMarginTop+x.JSC$18568_overlayHeight-G.y))>=x.requiredRatio?nd4(x,G.x):Shx(x,G.y);break;case 4:Math.abs((G.x-x.JSC$18568_overlayMarginLeft)/(G.y-x.JSC$18568_overlayMarginTop))>=x.requiredRatio?RVf(x,G.x):idf(x,G.y);break;case 3:Math.abs((G.x-x.JSC$18568_overlayMarginLeft)/(x.JSC$18568_overlayMarginTop+x.JSC$18568_overlayHeight-G.y))>=x.requiredRatio?nd4(x,G.x):idf(x,G.y);break;default:throw Error("rl");
}},RVf=function(x,G){var D=x.JSC$18568_overlayMarginTop;
x.JSC$18568_overlayMarginBottom=gdf(x,G);x.JSC$18568_overlayHeight=x.canvas.height-x.JSC$18568_overlayMarginBottom-D;x.JSC$18568_overlayWidth=Math.round(x.JSC$18568_overlayHeight*x.requiredRatio);urj(x)},nd4=function(x,G){var D=x.JSC$18568_overlayMarginTop+x.JSC$18568_overlayHeight;
x.JSC$18568_overlayMarginTop=gdf(x,G);x.JSC$18568_overlayHeight=D-x.JSC$18568_overlayMarginTop;x.JSC$18568_overlayWidth=Math.round(x.JSC$18568_overlayHeight*x.requiredRatio);urj(x)},urj=function(x){switch(x.resizeCorner){case 2:case 1:x.JSC$18568_overlayMarginLeft=x.canvas.width-x.JSC$18568_overlayMarginRight-x.JSC$18568_overlayWidth;
break;case 4:case 3:x.JSC$18568_overlayMarginRight=x.canvas.width-x.JSC$18568_overlayMarginLeft-x.JSC$18568_overlayWidth;break;default:throw Error("rl");}},Shx=function(x,G){var D=x.JSC$18568_overlayMarginLeft+x.JSC$18568_overlayWidth;
x.JSC$18568_overlayMarginLeft=dD8(x,G);x.JSC$18568_overlayWidth=D-x.JSC$18568_overlayMarginLeft;x.JSC$18568_overlayHeight=Math.round(x.JSC$18568_overlayWidth/x.requiredRatio);wOY(x)},idf=function(x,G){var D=x.JSC$18568_overlayMarginLeft;
x.JSC$18568_overlayMarginRight=dD8(x,G);x.JSC$18568_overlayWidth=x.canvas.width-x.JSC$18568_overlayMarginRight-D;x.JSC$18568_overlayHeight=Math.round(x.JSC$18568_overlayWidth/x.requiredRatio);wOY(x)},wOY=function(x){switch(x.resizeCorner){case 2:case 4:x.JSC$18568_overlayMarginBottom=x.canvas.height-x.JSC$18568_overlayMarginTop-x.JSC$18568_overlayHeight;
break;case 1:case 3:x.JSC$18568_overlayMarginTop=x.canvas.height-x.JSC$18568_overlayMarginBottom-x.JSC$18568_overlayHeight;break;default:throw Error("rl");}},gdf=function(x,G){switch(x.resizeCorner){case 2:G=x.canvas.height-(x.JSC$18568_overlayMarginTop+qhf(x,G));
break;case 4:G=x.canvas.height-(x.JSC$18568_overlayMarginTop+N_O(x,G));break;case 1:G=x.JSC$18568_overlayMarginTop+x.JSC$18568_overlayHeight-qhf(x,G);break;case 3:G=x.JSC$18568_overlayMarginTop+x.JSC$18568_overlayHeight-N_O(x,G);break;default:throw Error("rl");}return Math.max(G,x.canvasMargin)},qhf=function(x,G){G=x.JSC$18568_overlayMarginLeft+x.JSC$18568_overlayWidth-Math.max(G,x.horizontalMargin);
G=G<0?x.JSC$18568_overlayWidth:Math.max(G,x.minOverlayWidth);return Math.round(G/x.requiredRatio)},N_O=function(x,G){G=x.canvas.width-Math.max(x.canvas.width-G,x.horizontalMargin)-x.JSC$18568_overlayMarginLeft;
G=G<0?x.JSC$18568_overlayWidth:Math.max(G,x.minOverlayWidth);return Math.round(G/x.requiredRatio)},dD8=function(x,G){switch(x.resizeCorner){case 2:G=x.canvas.width-x.JSC$18568_overlayMarginRight-vd8(x,G);
break;case 4:G=x.canvas.width-x.JSC$18568_overlayMarginLeft-vd8(x,G);break;case 1:G=x.canvas.width-x.JSC$18568_overlayMarginRight-JWk(x,G);break;case 3:G=x.canvas.width-x.JSC$18568_overlayMarginLeft-JWk(x,G);break;default:throw Error("rl");}return Math.max(G,x.horizontalMargin)},vd8=function(x,G){G=x.canvas.height-Math.max(x.canvas.height-G,x.canvasMargin)-x.JSC$18568_overlayMarginTop;
return G<0?x.JSC$18568_overlayWidth:Math.max(Math.round(G*x.requiredRatio),x.minOverlayWidth)},JWk=function(x,G){G=x.JSC$18568_overlayMarginTop+x.JSC$18568_overlayHeight-Math.max(G,x.canvasMargin);
return G<0?x.JSC$18568_overlayWidth:Math.max(Math.round(G*x.requiredRatio),x.minOverlayWidth)},C2c=function(x){x.ctx.clearRect(0,0,x.canvas.width,x.canvas.height);
x.ctx.drawImage(x.image,0,0,x.image.width,x.image.height,x.horizontalMargin,x.canvasMargin,x.canvas.width-2*x.horizontalMargin,x.scaledImageHeight);x.ctx.fillStyle="rgba(0, 0, 0, 0.7)";x.ctx.fillRect(x.horizontalMargin,x.JSC$18568_overlayMarginTop,x.JSC$18568_overlayMarginLeft-x.horizontalMargin,x.JSC$18568_overlayHeight);x.ctx.fillRect(x.JSC$18568_overlayMarginLeft+x.JSC$18568_overlayWidth,x.JSC$18568_overlayMarginTop,x.JSC$18568_overlayMarginRight-x.horizontalMargin,x.JSC$18568_overlayHeight);x.ctx.fillRect(x.horizontalMargin,
x.canvasMargin,x.scaledImageWidth,x.JSC$18568_overlayMarginTop-x.canvasMargin);x.ctx.fillRect(x.horizontalMargin,x.JSC$18568_overlayMarginTop+x.JSC$18568_overlayHeight,x.scaledImageWidth,x.JSC$18568_overlayMarginBottom-x.canvasMargin);x.drawOverlay();x.component&&_.h$(x.component,"image-updated")};
Th.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18568_overlayMarginLeft,this.JSC$18568_overlayMarginTop,this.JSC$18568_overlayWidth,this.JSC$18568_overlayHeight);f96(this)};
var f96=function(x){var G=x.JSC$18568_overlayMarginLeft-5,D=x.JSC$18568_overlayMarginTop-5,K=x.JSC$18568_overlayMarginLeft+x.JSC$18568_overlayWidth-5,z=x.JSC$18568_overlayMarginTop+x.JSC$18568_overlayHeight-5;x.ctx.fillStyle="#FFF";x.ctx.fillRect(G,D,10,10);x.ctx.strokeRect(G,D,10,10);x.ctx.fillRect(K,D,10,10);x.ctx.strokeRect(K,D,10,10);x.ctx.fillRect(G,z,10,10);x.ctx.strokeRect(G,z,10,10);x.ctx.fillRect(K,z,10,10);x.ctx.strokeRect(K,z,10,10);if(x.focusedCorner!==0&&x.styleFocusedCorner){x.ctx.lineWidth=
4;x.ctx.strokeStyle="#3EA6FF";switch(x.focusedCorner){case 1:--G;--D;break;case 2:--G;D=z-1;break;case 3:G=K-1;--D;break;case 4:G=K-1;D=z-1;break;default:return}x.ctx.strokeRect(G,D,12,12)}};
Th.prototype.crop=function(x,G){G=G===void 0?!0:G;var D=this.image.width/this.scaledImageWidth,K=document.createElement("canvas"),z=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],y=this.JSC$18568_overlayWidth*D,c=this.JSC$18568_overlayHeight*D;K.width=Math.max(y,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);K.height=Math.max(c,z);x&&(K.width=Math.min(K.width,K.height),K.height=Math.min(K.width,K.height));
x=K.getContext("2d");if(!x)throw Error("fl");z=(this.JSC$18568_overlayMarginLeft-this.horizontalMargin)*D;D*=this.JSC$18568_overlayMarginTop-this.canvasMargin;G||(x.fillStyle="white",x.fillRect(0,0,K.width,K.height));x.drawImage(this.image,z,D,y,c,0,0,K.width,K.height);return K};var tbY=function(x,G,D,K,z){Th.call(this,x,G,D,K,void 0,z,8,!1)};
_.m(tbY,Th);tbY.prototype.drawOverlay=function(){var x=this.getContext(),G=this.JSC$18568_overlayWidth,D=this.JSC$18568_overlayHeight,K=this.JSC$18568_overlayMarginTop,z=this.JSC$18568_overlayMarginLeft;x.lineWidth=2;x.strokeStyle="#3EA6FF";x.beginPath();x.arc(z+G/2,K+D/2,G/2,0,2*Math.PI);x.stroke();x.strokeRect(z,K,G,D);f96(this)};
var knb={maxFileSizeMB:15,minWidth:98,minHeight:98},P2f=["image/png","image/jpeg","image/gif"],Wf=function(){var x=_.n.apply(this,arguments)||this;x.fileSelectorFocusListener=null;x.errorMessage=null;x.isLoading=!0;x.hideContainer=!0;x.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return x};
_.m(Wf,_.n);_.a=Wf.prototype;_.a.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.a.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.a.computePlaylistThumbnail=function(x){return x==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.a.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.xO(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.a.setErrorState=function(x){this.resetErrorState();x&&(this.errorMessage=x)};
_.a.showPopup=function(){var x=this;this.hideContainer=!1;_.Bw(_.Fj,function(){_.h$(x.hostElement,"yt-refit")});
this.isLoading=!1};
_.a.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.a.closePopup=function(){this.resetFileSelector();_.xO(this.hostElement,"yt-close-popup-action",[this.is])};
_.a.onCancelTap=function(){this.isPlaylistThumbnail||_.xO(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.a.openFileSelector=function(){var x=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.Bw(_.Fj,function(){setTimeout(function(){if(!x.fileSelector.files||x.fileSelector.files.length===0)x.onCancelTap();x.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(G){G instanceof Error?_.I4(G):_.jm(new _.LL(JSON.stringify(G)))}};
_.a.handleFileSelection=function(){var x=this,G,D,K,z,y,c;return _.T(function(W){switch(W.nextAddress){case 1:_.Kl(W,2);if(!x.fileSelector.files||!x.imageEditorCanvas)return x.onCancelTap(),W.return();G=x.fileSelector.files[0];sD6(x.imageChecker,G);_.Kl(W,4);return _.Z(W,N5T(G),6);case 6:x.mimeType=W.yieldResult;_.iI(W,5,2);break;case 4:_.lX(W,2),_.xO(x.hostElement,"yt-image-selection-error-action",[(D=x.data)==null?void 0:D.genericImageLoadErrorMessage]),x.onCancelTap();case 5:K=new FileReader;K.addEventListener("load",
function(){var e,Q;return _.T(function(p){if(p.nextAddress==1){if(!K.result)return _.O9(Error("hl")),p.return();e=K.result;Q=new Image;Q.src=e;Q.onload=function(){try{var V=x.imageChecker;if(Q.width<V.requirements.minWidth||Q.height<V.requirements.minHeight)throw new B_T(V.requirements.minWidth,V.requirements.minHeight);}catch(r){if(r instanceof B_T){var L;_.xO(x.hostElement,"yt-image-selection-error-action",[(L=x.data)==null?void 0:L.imageDimensionErrorMessage]);x.logImageDimensionErrorVe()}else r instanceof
Error?_.I4(r):(V=new _.LL(JSON.stringify(r)),_.I4(V));x.onCancelTap()}x.showPopup()};
Q.onerror=function(){var V;_.xO(x.hostElement,"yt-image-selection-error-action",[(V=x.data)==null?void 0:V.genericImageLoadErrorMessage]);x.onCancelTap()};
return _.Z(p,Fxc(x.imageEditorCanvas,e),2)}x.imageEditor=p.yieldResult;x.updatePositionOfAllCorners();x.addEventListeners(x.imageEditor);_.c5(p)})},!1);
K.readAsDataURL(G);_.iI(W,0);break;case 2:z=_.lX(W),z instanceof cf?_.xO(x.hostElement,"yt-image-selection-error-action",[(y=x.data)==null?void 0:y.imageSizeErrorMessage]):(z instanceof Error?_.I4(z):_.jm(new _.LL(JSON.stringify(z))),_.xO(x.hostElement,"yt-image-selection-error-action",[(c=x.data)==null?void 0:c.genericImageLoadErrorMessage])),x.onCancelTap(),_.c5(W)}})};
_.a.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var x=_.Wh(_.en(),{veType:232707,visualElement:_.BH(232707)});x&&(x={visualElement:x},_.Te().reportShown(x))}};
_.a.handleImageSelectionErrorAction=function(x){this.isPlaylistThumbnail&&_.udL(this.hostElement,x)};
_.a.convertToImageFormatBundle=function(x){var G=this,D,K,z;return _.T(function(y){switch(y.nextAddress){case 1:return D=x.toDataURL(G.outputMimeType,1),_.Z(y,vm6(D),2);case 2:K=y.yieldResult;_.Kl(y,3);sD6(G.imageChecker,K);_.iI(y,4);break;case 3:z=_.lX(y);if(!(z instanceof cf))throw z;_.O9(new _.LL("Output size is bigger than input size for image",G.mimeType,G.outputMimeType,K.size));D=x.toDataURL("image/jpeg",.95);return _.Z(y,vm6(D),6);case 6:K=y.yieldResult;case 4:return y.return({dataUrl:D,imageFile:K})}})};
_.a.handleUploadImageToScottyCommand=function(x){var G=this,D,K,z,y,c,W,e,Q,p,V;return _.T(function(L){switch(L.nextAddress){case 1:if(!G.imageEditor||!_.Y(x,cyY))return L.return();D=_.Y(x,cyY).scottyUploadUrl;if(!D){var r=new _.LL("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.I4(r);return L.return()}_.Kl(L,2);G.setLoadingState();K=G.imageEditor.crop(!1,!1);return _.Z(L,G.convertToImageFormatBundle(K),4);case 4:return z=L.yieldResult,_.Z(L,wyO(z.imageFile,D),5);case 5:y=
L.yieldResult;((c=G.data)==null?0:c.onUploadEndpoint)?(W=G.buildUploadServiceEndpoint(y),G.ytComponentBehavior.resolveCommand(W),e=_.Y(W,_.YV),((Q=e)==null?0:Q.params)?G.closePopup():G.resetFileSelector()):(_.xO(G.hostElement,"yt-image-updated-action",[z.dataUrl,y]),G.closePopup());_.iI(L,0);break;case 2:p=_.lX(L),G.setErrorState((V=G.data)==null?void 0:V.uploadErrorMessage),p instanceof Error?_.I4(p):(r=new _.LL(JSON.stringify(p)),_.I4(r)),_.c5(L)}})};
_.a.buildUploadServiceEndpoint=function(x){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",x),this.data.onUploadEndpoint):null};
_.a.dataChanged=function(){var x=this,G;return _.T(function(D){if(D.nextAddress==1){if(!x.data||!x.canvasElement)return D.return();x.data.imageRatio&&x.data.minImageCropWidth||_.jm(new _.LL("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));G=function(K,z){return x.data.imageType==="IMAGE_TYPE_AVATAR"?new tbY(K,z,x.data.imageRatio,[x.data.minImageCropWidth,x.data.minImageCropWidth/x.data.imageRatio],x.hostElement):new Th(K,z,x.data.imageRatio,[x.data.minImageCropWidth,
x.data.minImageCropWidth/x.data.imageRatio],void 0,x.hostElement,8,!1)};
x.imageEditorCanvas=new Yhk(x.canvasElement,G);return x.data.url?_.Z(D,Fxc(x.imageEditorCanvas,x.data.url),3):(x.hideContainer=!0,x.openFileSelector(),D.jumpTo(0))}x.imageEditor=D.yieldResult;x.showPopup();x.addEventListeners(x.imageEditor);_.c5(D)})};
_.a.addEventListeners=function(x){this.removeEventListeners();var G=function(z){mDO(x,z)};
this.JSC$18576_mouseDownEvent=G;var D=function(z){HdC(x,z)};
this.JSC$18576_mouseMoveEvent=D;var K=function(){$Dc(x)};
this.JSC$18576_mouseUpEvent=K;this.topLeftCorner.addEventListener("mousedown",G);this.topLeftCorner.addEventListener("mousemove",D);this.topLeftCorner.addEventListener("mouseup",K);this.topRightCorner.addEventListener("mousedown",G);this.topRightCorner.addEventListener("mousemove",D);this.topRightCorner.addEventListener("mouseup",K);this.bottomLeftCorner.addEventListener("mousedown",G);this.bottomLeftCorner.addEventListener("mousemove",D);this.bottomLeftCorner.addEventListener("mouseup",K);this.bottomRightCorner.addEventListener("mousedown",
G);this.bottomRightCorner.addEventListener("mousemove",D);this.bottomRightCorner.addEventListener("mouseup",K)};
_.a.removeEventListeners=function(){this.JSC$18576_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18576_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18576_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18576_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18576_mouseDownEvent));this.JSC$18576_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18576_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18576_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18576_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18576_mouseMoveEvent));this.JSC$18576_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18576_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18576_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18576_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18576_mouseUpEvent))};
_.a.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var x=document.activeElement;x&&x.shadowRoot&&x.shadowRoot.activeElement;)x=x.shadowRoot.activeElement;switch(x){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};
_.a.updatePositionOfCorner=function(x,G){var D=x.y-G.offsetHeight/2+4;G.style.left=x.x-G.offsetWidth/2+16+"px";G.style.top=D+"px"};
_.a.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var x=_.l([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),G=x.next();!G.done;G=x.next()){G=G.value;var D=Odc(this.imageEditor,G.corner);this.updatePositionOfCorner(D,G.div)}};
_.a.onLeft=function(x){this.imageEditor&&this.setFocusInImageEditor()&&(AWO(this.imageEditor,0),this.updatePositionOfAllCorners(),x.preventDefault())};
_.a.onRight=function(x){this.imageEditor&&this.setFocusInImageEditor()&&(AWO(this.imageEditor,1),this.updatePositionOfAllCorners(),x.preventDefault())};
_.a.onUp=function(x){this.imageEditor&&this.setFocusInImageEditor()&&(AWO(this.imageEditor,2),this.updatePositionOfAllCorners(),x.preventDefault())};
_.a.onDown=function(x){this.imageEditor&&this.setFocusInImageEditor()&&(AWO(this.imageEditor,3),this.updatePositionOfAllCorners(),x.preventDefault())};
_.a.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.Nq.Object.defineProperties(Wf.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&P2f.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var x,G,D;((G=this.data)==null?0:G.imageRatio)&&((D=this.data)==null?0:D.minImageCropWidth)?x={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:x=knb;return new rWf(x)}}});
Wf.prototype.updatePositionOfAllCorners=Wf.prototype.updatePositionOfAllCorners;Wf.prototype.dataChanged=Wf.prototype.dataChanged;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],Wf.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],Wf.prototype,"ytComponentBehavior",void 0);_.q([_.I(_.Tb),_.N("design:type",Object)],Wf.prototype,"ironA11yKeysBehavior",void 0);
_.q([_.cD("#canvas"),_.N("design:type",HTMLCanvasElement)],Wf.prototype,"canvasElement",void 0);_.q([_.cD("#file-selector"),_.N("design:type",HTMLInputElement)],Wf.prototype,"fileSelector",void 0);_.q([_.cD("#top-left-corner"),_.N("design:type",HTMLDivElement)],Wf.prototype,"topLeftCorner",void 0);_.q([_.cD("#top-right-corner"),_.N("design:type",HTMLDivElement)],Wf.prototype,"topRightCorner",void 0);
_.q([_.cD("#bottom-left-corner"),_.N("design:type",HTMLDivElement)],Wf.prototype,"bottomLeftCorner",void 0);_.q([_.cD("#bottom-right-corner"),_.N("design:type",HTMLDivElement)],Wf.prototype,"bottomRightCorner",void 0);_.q([_.R(),_.N("design:type",Object)],Wf.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],Wf.prototype,"errorMessage",void 0);_.q([_.R(),_.N("design:type",Object)],Wf.prototype,"isLoading",void 0);_.q([_.R(),_.N("design:type",Object)],Wf.prototype,"hideContainer",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.N("design:type",Boolean)],Wf.prototype,"isPlaylistThumbnail",void 0);_.q([_.Z6("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],Wf.prototype,"dataChanged",null);_.q([_.oe("image-updated"),_.oe("yt-refit"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Wf.prototype,"updatePositionOfAllCorners",null);
Wf=_.q([_.HD({is:"yt-image-editor-renderer",disableElementRegistration:!0})],Wf);
_.w(Wf,"yt-image-editor-renderer",function(){if(Lxk===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;bdj===void 0&&(bdj=document.createElement("template"));var K=bdj;D.call(G,K.content.cloneNode(!0),x.content.firstChild);Lxk=x}x=Lxk;return x},{mode:2});var Ed6;var hVT;var eQ=function(){return _.n.apply(this,arguments)||this};
_.m(eQ,_.n);eQ.prototype.updateMinutesFromBinding=function(x){this.handleMinutesChanged&&this.handleMinutesChanged(x)};
eQ.prototype.updateSecondsFromBinding=function(x){this.handleSecondsChanged&&this.handleSecondsChanged(x)};
eQ.prototype.updateDescriptionFromBinding=function(x){this.handleDescriptionChanged&&this.handleDescriptionChanged(x)};
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],eQ.prototype,"ytComponentBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],eQ.prototype,"data",void 0);_.q([_.R(),_.N("design:type",String)],eQ.prototype,"minutes",void 0);_.q([_.R(),_.N("design:type",String)],eQ.prototype,"seconds",void 0);_.q([_.R(),_.N("design:type",String)],eQ.prototype,"description",void 0);_.q([_.R(),_.N("design:type",Function)],eQ.prototype,"handleMinutesChanged",void 0);
_.q([_.R(),_.N("design:type",Function)],eQ.prototype,"handleSecondsChanged",void 0);_.q([_.R(),_.N("design:type",Function)],eQ.prototype,"handleDescriptionChanged",void 0);_.q([_.R(),_.N("design:type",Number)],eQ.prototype,"characterLimit",void 0);_.q([_.R(),_.N("design:type",Number)],eQ.prototype,"textNumRows",void 0);eQ=_.q([_.HD({is:"yt-report-details-form-content",disableElementRegistration:!0})],eQ);
_.w(eQ,"yt-report-details-form-content",function(){if(hVT===void 0){var x=document.createElement("template");_.F(x,'\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>');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;Ed6===void 0&&(Ed6=document.createElement("template"));var K=Ed6;D.call(G,K.content.cloneNode(!0),x.content.firstChild);hVT=x}x=hVT;return x},{mode:2});var xSx;var GQ8;var ZW=function(){var x=_.n.apply(this,arguments)||this;x.updateMinutesFromBinding=function(G){x.minutes=G.detail.value};
x.updateSecondsFromBinding=function(G){x.seconds=G.detail.value};
x.updateDescriptionFromBinding=function(G){x.description=G.detail.value};
return x};
_.m(ZW,_.n);_.a=ZW.prototype;_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.a.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"}}}};
_.a.ready=function(){_.kA(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.a.onSubmitYtAction=function(x){var G=x.detail;G.actionName==="yt-service-request"&&(G=G.args[1],G.flagEndpoint&&(x.stopPropagation(),this.refireAction(G)))};
_.a.refireAction=function(x){var G={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(G.vss_id=this.vssId);_.KW(this.hostElement,[x,G]);this.submitDisabled=!0};
_.a.dataChanged=function(){var x=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var G=_.Ns();G&&G.getPlayerPromise().then(function(D){var K=D.getOption("cc","track")||D.getOption("captions","track");K&&(x.vssId=K.vss_id);D=D.getCurrentTime();x.minutes=Math.floor(D/60).toString();x.seconds=(Math.floor(D)%60).toString()})};
_.a.updateSubmitButtonState=function(){var x;((x=this.data)==null?0:x.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==="")};
_.a.onYtServiceRequestCompleted=function(){_.xO(this.hostElement,"yt-close-popup-action")};
_.a.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.Nq.Object.defineProperties(ZW.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.textNumRows)||4}}});
ZW.prototype.onYtServiceRequestError=ZW.prototype.onYtServiceRequestError;ZW.prototype.onYtServiceRequestCompleted=ZW.prototype.onYtServiceRequestCompleted;ZW.prototype.updateSubmitButtonState=ZW.prototype.updateSubmitButtonState;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],ZW.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],ZW.prototype,"ytRendererBehavior",void 0);
_.q([_.R({observer:"dataChanged"}),_.N("design:type",Object)],ZW.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Boolean)],ZW.prototype,"submitDisabled",void 0);_.q([_.R(),_.N("design:type",String)],ZW.prototype,"minutes",void 0);_.q([_.R(),_.N("design:type",String)],ZW.prototype,"seconds",void 0);_.q([_.R(),_.N("design:type",String)],ZW.prototype,"description",void 0);_.q([_.R(),_.N("design:type",String)],ZW.prototype,"vssId",void 0);
_.q([_.R({value:_.Am("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.N("design:type",Boolean)],ZW.prototype,"isMusic",void 0);_.q([_.U("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],ZW.prototype,"characterLimit",null);_.q([_.U("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],ZW.prototype,"textNumRows",null);
_.q([_.Z6("minutes","seconds","description","submitDisabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ZW.prototype,"updateSubmitButtonState",null);_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ZW.prototype,"onYtServiceRequestCompleted",null);
_.q([_.oe("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ZW.prototype,"onYtServiceRequestError",null);ZW=_.q([_.HD({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],ZW);
_.w(ZW,"yt-report-details-form-renderer",function(){if(GQ8===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;xSx===void 0&&(xSx=document.createElement("template"));var K=xSx;D.call(G,K.content.cloneNode(!0),x.content.firstChild);GQ8=x}x=GQ8;return x});var DSk;var K_i;var zuC;var aLf;var MT=function(){return _.n.apply(this,arguments)||this};
_.m(MT,_.n);
MT.prototype.onCheckedChanged_=function(){if(this.data){var x=_.kA(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.xO(this.hostElement,"yt-additional-detail-checkbox-update",[x]):this.data.identifier==="yt-hide-user-checkbox"?_.xO(this.hostElement,"yt-hide-user-checkbox-update",[x]):x&&this.data.enableCommand?_.xO(this.hostElement,"yt-modify-report-form-command",[_.Y(this.data.enableCommand,pex)]):!x&&this.data.disableCommand&&_.xO(this.hostElement,
"yt-modify-report-form-command",[_.Y(this.data.enableCommand,pex)])}};
MT.prototype.onLabelTap_=function(x){x.target.tagName!="A"&&(_.kA(this.hostElement).querySelector("#checkbox").checked=!_.kA(this.hostElement).querySelector("#checkbox").checked)};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],MT.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],MT.prototype,"data",void 0);MT=_.q([_.HD({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],MT);
_.w(MT,"yt-boolean-form-field-v2-renderer",function(){if(aLf===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;zuC===void 0&&(zuC=document.createElement("template"));var K=zuC;D.call(G,K.content.cloneNode(!0),x.content.firstChild);aLf=x}x=aLf;return x});var Qt=function(){var x=_.n.apply(this,arguments)||this;x.canShowAdditionalDetailCheckbox=!1;x.canShowCheckbox=!1;x.keepDropdownFocusedAfterSelection=!0;return x};
_.m(Qt,_.n);Qt.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}}}}};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Qt.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Qt.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],Qt.prototype,"canShowAdditionalDetailCheckbox",void 0);_.q([_.R(),_.N("design:type",Object)],Qt.prototype,"canShowCheckbox",void 0);_.q([_.R(),_.N("design:type",Object)],Qt.prototype,"keepDropdownFocusedAfterSelection",void 0);
Qt=_.q([_.HD({is:"yt-report-form-modal-content",disableElementRegistration:!0})],Qt);
_.w(Qt,"yt-report-form-modal-content",function(){if(K_i===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;DSk===void 0&&(DSk=document.createElement("template"));var K=DSk;D.call(G,K.content.cloneNode(!0),x.content.firstChild);K_i=x}x=K_i;return x},{mode:2});var oMO;var y9f;var pA=function(){var x=_.n.apply(this,arguments)||this;x.submitting=!1;x.submitButtonDisabled=!0;x.command=null;x.canShowCheckbox=!1;x.canShowAdditionalDetailCheckbox=!1;x.canShowNextButton=!1;x.additionalDetailCheckboxChecked=!1;x.refitJob=0;x.keepDropdownFocusedAfterSelection=!0;x.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 x};
_.m(pA,_.n);_.a=pA.prototype;_.a.created=function(){this.refitJob=0};
_.a.attached=function(){this.JSC$18599_scroller&&(this.JSC$18599_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18599_scroller.attached&&typeof this.JSC$18599_scroller.attached==="function"&&this.JSC$18599_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.dataChanged=function(x){x&&(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,x.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),x.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.a.onYtPopupOpened=function(){var x=_.Ns();x&&x.getPlayerPromise().then(function(G){G.pauseVideo()})};
_.a.onYtNavigate=function(x){_.Y(x.detail.endpoint,_.cR7)&&(x.stopPropagation(),this.hideReportForm=!0)};
_.a.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.a.onYtServiceRequestCompleted=function(x,G){var D=G.actions;if(D){if(D.length===1&&_.Y(D[0],_.oI)){var K;D=((K=_.Y(D[0],_.oI))==null?void 0:K.commands)||[]}K=0;for(var z=D.length;K<z;K++)_.Y(D[K],_.bz)&&(x.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(D[K]))}if(G.data&&(x=this.get("feedbackResponses",G.data)))for(G=0;G<x.length;G++)if(x[G].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.a.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.a._onDescendantIronResize=function(x){x.stopPropagation();return!1};
_.a.handleReportFormEndpointUpdateAction=function(x){if(x.submitEndpoint){var G=this.command=x.submitEndpoint;G=_.Y(G,_.kKq);if(G==null?0:G.additionalDetailCheckboxChecked)G.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else x.submitNavigationEndpoint?(this.command=x.submitNavigationEndpoint,this.toggleSubmitButton(!1)):x.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:x.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;x.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",x));this.refit()};
_.a.handleConfirmDialogCloseAction=function(x){x.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.a.submitButtonDisabledChanged=function(){var x=this.hostElement.parentElement;x&&x.invalidateTabbables&&x.invalidateTabbables()};
_.a.handleModifyReportFormCommand=function(x){x=this.get("action",x);x==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:x==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:x==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:x==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:x==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:x==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.a.updateDialogStyling=function(){var x,G,D,K,z,y=((z=(x=this.data)==null?void 0:(G=x.optionsSupportedRenderers)==null?void 0:(D=G.optionsRenderer)==null?void 0:(K=D.items)==null?void 0:K.length)!=null?z:0)<=2?0:240;_.K7(this.hostElement,{"--yt-report-form-modal-renderer-min-width":y+"px"})};
_.a.toggleSubmitButton=function(x){this.submitButtonDisabled=!x;this.submitButtonDisabled=x};
_.a.computeSubmitButtonData=function(x,G){var D={};_.Y(G,_.cR7)?D.navigationEndpoint=G:D.command=G||void 0;x&&x.buttonRenderer&&_.YS.extend(D,x.buttonRenderer);return D};
_.a.computeNextButtonData=function(x,G){var D={};if(!x||!x.buttonRenderer)return D;_.YS.extend(D,x.buttonRenderer);if(!G)return D;if(_.Y(G,_.cR7))D.navigationEndpoint=jeC(G);else if(D.command=jeC(G),x=_.Y(D.command,_.kKq))x.legalCheckboxChecked=!0;return D};
_.a.computeShowNextButton=function(x,G,D){return!!x&&G&&D};
_.a.refit=function(){var x=this;this.refitJob||(this.refitJob=_.Fj.addLowPriorityJob(function(){_.h$(x.hostElement,"yt-refit");x.refitJob=0}))};
_.a.handleAdditionalDetailCheckboxUpdateAction=function(x){this.additionalDetailCheckboxChecked=x;_.Y(this.command,_.kKq).additionalDetailCheckboxChecked=x};
_.Nq.Object.defineProperties(pA,{template:{configurable:!0,enumerable:!0,get:function(){if(y9f===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;oMO===void 0&&(oMO=document.createElement("template"));var K=oMO;D.call(G,K.content.cloneNode(!0),x.content.firstChild);y9f=x}x=y9f;return x}}});
pA.prototype.onYtServiceRequestError=pA.prototype.onYtServiceRequestError;pA.prototype.onYtServiceRequestCompleted=pA.prototype.onYtServiceRequestCompleted;pA.prototype.onYtServiceRequestSent=pA.prototype.onYtServiceRequestSent;pA.prototype.onYtNavigate=pA.prototype.onYtNavigate;pA.prototype.onYtPopupOpened=pA.prototype.onYtPopupOpened;_.q([_.I(_.yU.YtOpenPopupBehavior),_.N("design:type",Object)],pA.prototype,"openPopupBehavior",void 0);
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],pA.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],pA.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.Tg.YtEventForwardingBehavior),_.N("design:type",Object)],pA.prototype,"eventForwardingBehavior",void 0);_.q([_.I(_.Lg),_.N("design:type",Object)],pA.prototype,"ironResizableBehavior",void 0);_.q([_.R({observer:"dataChanged"}),_.N("design:type",Object)],pA.prototype,"data",void 0);
_.q([_.R(),_.N("design:type",Object)],pA.prototype,"submitting",void 0);_.q([_.R({observer:"submitButtonDisabledChanged"}),_.N("design:type",Object)],pA.prototype,"submitButtonDisabled",void 0);_.q([_.R(),_.N("design:type",Object)],pA.prototype,"command",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],pA.prototype,"hideReportForm",void 0);_.q([_.R(),_.N("design:type",Object)],pA.prototype,"canShowCheckbox",void 0);
_.q([_.R(),_.N("design:type",Object)],pA.prototype,"canShowAdditionalDetailCheckbox",void 0);_.q([_.R(),_.N("design:type",Object)],pA.prototype,"canShowNextButton",void 0);_.q([_.R(),_.N("design:type",Object)],pA.prototype,"additionalDetailCheckboxChecked",void 0);_.q([_.R(),_.N("design:type",Object)],pA.prototype,"refitJob",void 0);_.q([_.R(),_.N("design:type",Object)],pA.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.q([_.cD("#scroller"),_.N("design:type",Object)],pA.prototype,"JSC$18599_scroller",void 0);_.q([_.oe("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pA.prototype,"onYtPopupOpened",null);_.q([_.oe("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],pA.prototype,"onYtNavigate",null);
_.q([_.oe("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Ou]),_.N("design:returntype")],pA.prototype,"onYtServiceRequestSent",null);_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.gG]),_.N("design:returntype")],pA.prototype,"onYtServiceRequestCompleted",null);
_.q([_.oe("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],pA.prototype,"onYtServiceRequestError",null);pA=_.q([_.HD({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],pA);var lLO;var c94;var Vt=function(){return _.n.apply(this,arguments)||this};
_.m(Vt,_.n);_.a=Vt.prototype;_.a.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.a.onVisible=function(){if(_.B("web_ephemeral_actions_focus")){var x,G;(G=_.Eo().resolve(_.P6(_.oz)))==null||G.enqueue({label:_.u7((x=this.data)==null?void 0:x.messageTitle),elementToFocus:this.hostElement})}};
_.a.onThumbnailLoaded=function(){_.h$(this.hostElement,"yt-refit")};
_.a.onDismissTap=function(){_.xO(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.a.computeAlternateIcon=function(x){return x?x==="BACKSTAGE_ARTWORK"?"backstage:artwork":x:null};
_.a.computeFontFamily=function(x){return x==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.a.computeBackgroundStyle=function(x,G){if(x=this.computeBackgroundImage(x,G))if(x=_.Ph(x.thumbnails))return'background-image: url("'+x+'");'};
_.a.computeHasFullHeightImage=function(x){return!(!(x&&x.thumbnails&&x.thumbnails.length>0)||this.modern)};
_.a.isModernStyle=function(x){return x.style==="STYLE_MODERN"};
_.a.computeIcon=function(x,G){if(x&&x.icon)return G?x.iconDark:x.icon};
_.a.computeBackgroundImage=function(x,G){if(x&&x.backgroundImage)return G?x.backgroundImageDark:x.backgroundImage};
_.a.computeLogo=function(x,G){if(x&&x.logo)return G?x.logoDark:x.logo};
_.a.computeShouldShowModernIcon=function(x,G){return x&&!!G};
_.a.getLogoContainerClassName=function(x){return this.logoWithPadding(x)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.a.getLogoImageId=function(x){return this.logoWithPadding(x)?"mealbar-logo-with-padding":"mealbar-logo"};
_.a.logoWithPadding=function(x){var G,D,K;return(x=(G=this.computeLogo(x,this.isDarkTheme))==null?void 0:(D=G.thumbnails)==null?void 0:(K=D[0])==null?void 0:K.height)&&x%31===0?!0:!1};
Vt.prototype.onThumbnailLoaded=Vt.prototype.onThumbnailLoaded;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Vt.prototype,"ytRendererBehavior",void 0);_.q([_.R({}),_.N("design:type",Object)],Vt.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.N("design:type",Boolean)],Vt.prototype,"modern",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],Vt.prototype,"isDarkTheme",void 0);
_.q([_.R({computed:"computeIcon(data, isDarkTheme)"}),_.N("design:type",Object)],Vt.prototype,"icon",void 0);_.q([_.R({computed:"computeLogo(data, isDarkTheme)"}),_.N("design:type",Object)],Vt.prototype,"logo",void 0);_.q([_.R({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.N("design:type",Object)],Vt.prototype,"backgroundStyle",void 0);_.q([_.R({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.N("design:type",Object)],Vt.prototype,"alternateIcon",void 0);
_.q([_.R({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.N("design:type",Boolean)],Vt.prototype,"hasFullHeightImage",void 0);_.q([_.R({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.N("design:type",Boolean)],Vt.prototype,"useYoutubeSans",void 0);_.q([_.R({computed:"computeShouldShowModernIcon(modern, icon)"}),_.N("design:type",Boolean)],Vt.prototype,"shouldShowModernIcon",void 0);
_.q([_.oe("yt-img-shadow-loaded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vt.prototype,"onThumbnailLoaded",null);Vt=_.q([_.HD({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],Vt);
_.w(Vt,"yt-mealbar-promo-renderer",function(){if(c94===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;lLO===void 0&&(lLO=document.createElement("template"));var K=lLO;D.call(G,K.content.cloneNode(!0),x.content.firstChild);c94=x}x=c94;return x},{mode:2});var Tyc;var W_T;var bj=function(){return _.n.apply(this,arguments)||this};
_.m(bj,_.n);_.a=bj.prototype;_.a.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]]"}}}}}};
_.a.computeHasButtons_=function(x){return!(!x.dismissButton&&!x.acceptButton)};
_.a.computeStyle_=function(x){return x||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.a.observeImpressionEndpoints_=function(){var x=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(G){G.clickTrackingParams&&delete G.clickTrackingParams;_.KW(x.hostElement,[G])})};
_.a.onTap_=function(){_.xO(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
bj.prototype.observeImpressionEndpoints_=bj.prototype.observeImpressionEndpoints_;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],bj.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.Tg.YtEventForwardingBehavior),_.N("design:type",Object)],bj.prototype,"ytEventForwardingBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],bj.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],bj.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],bj.prototype,"positionType",void 0);_.q([_.R({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.N("design:type",Boolean)],bj.prototype,"hasButtons_",void 0);_.q([_.R({value:function(){return this.onTap_.bind(this)}}),
_.N("design:type",Function)],bj.prototype,"boundOnTap_",void 0);_.q([_.R({value:{style:"mono-inverse"}}),_.N("design:type",Object)],bj.prototype,"buttonOverride",void 0);_.q([_.yf("data.promoConfig.impressionEndpoints"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bj.prototype,"observeImpressionEndpoints_",null);bj=_.q([_.HD({is:"yt-tooltip-renderer",disableElementRegistration:!0})],bj);
_.w(bj,"yt-tooltip-renderer",function(){if(W_T===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;Tyc===void 0&&(Tyc=document.createElement("template"));var K=Tyc;D.call(G,K.content.cloneNode(!0),x.content.firstChild);W_T=x}x=W_T;return x},{mode:2});var eui;var ZNx;var MC8={},Qq4=(MC8.WEB_REMIX="music.youtube.com",MC8),LA=function(){var x=_.n.apply(this,arguments)||this;x.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return x};
_.m(LA,_.n);_.a=LA.prototype;_.a.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.created=function(){this.embedHost_=Qq4[_.Am("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.a.ready=function(){_.kA(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.a.computeEmbedCode_=function(x,G,D,K,z){if(!x)return"";var y=x.videoId,c=x.fullListId,W=[];x.attributionId&&W.push("si="+x.attributionId);K||W.push("controls=0");D&&Number(G)>0&&W.push("start="+G);c&&(y="videoseries",W.push("list="+c));D="https://"+(z?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+y;x.clipId&&(W.push("clip="+x.clipId),W.push("clipt="+x.clipTiming));G=W.length>0?D+"?"+W.join("&amp;"):D;x.encryptedEmbedConfig&&W.push("embed_config="+JSON.stringify({enc:x.encryptedEmbedConfig}));
W=W.length>0?D+"?"+W.join("&amp;"):D;_.B("web_sharing_embed_preview_killswitch")?_.kA(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(W,x.previewWidth||854,x.previewHeight||480):(_.LX(this.videoPreviewContainer),_.kA(this.videoPreviewContainer).appendChild(this.buildIframeElement(W)));return this.getEmbedCode_(G,x.width||560,x.height||315)};
_.a.buildIframeElement=function(x){var G=document.createElement("iframe"),D,K;G.width=""+((K=(D=this.data)==null?void 0:D.previewWidth)!=null?K:854);var z,y;G.height=""+((y=(z=this.data)==null?void 0:z.previewHeight)!=null?y:480);_.LzL(G,2,x);G.title="YouTube video player";G.frameBorder="0";G.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";G.referrerPolicy="strict-origin-when-cross-origin";G.allowFullscreen=!0;return G};
_.a.computeIsSquareAspectRatio_=function(x){return x.previewHeight&&x.previewWidth?x.previewHeight==x.previewWidth:!1};
_.a.computeShowEmbedOptions_=function(x){return!!x.enablePrivacyModeOptionLabel||!!x.showPlayerControlsOptionLabel};
_.a.getEmbedCode_=function(x,G,D){return'<iframe width="'+G+'" height="'+D+'" src="'+x+'" 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>'};
_.a.handleSignalActionCopyShareEmbedUrl_=function(){_.kA(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.a.handleSetTimestamp_=function(x){this.startAtTimeStamp_=(this.startAtChecked_=x.isSet)?x.timestamp:0};
_.a.closePanel_=function(){_.xO(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.a.onEmbedCode_=function(){_.kA(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.a.onYtPopupClosed_=function(){_.LX(_.kA(this.hostElement).querySelector("#video-preview"))};
_.a.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.Y(this.data.actionButtons[0],_.$V)&&this.ytRendererBehavior.logExplicitClick(_.Y(this.data.actionButtons[0],_.$V))};
LA.prototype.onYtPopupClosed_=LA.prototype.onYtPopupClosed_;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],LA.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],LA.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],LA.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],LA.prototype,"data",void 0);
_.q([_.R({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.N("design:type",String)],LA.prototype,"embedCode_",void 0);_.q([_.R({value:!0}),_.N("design:type",Boolean)],LA.prototype,"isPlayerControlsOptionChecked_",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],LA.prototype,"isPrivacyModeOptionChecked_",void 0);_.q([_.R({value:!1,notify:!0}),_.N("design:type",Boolean)],LA.prototype,"startAtChecked_",void 0);
_.q([_.R({value:0}),_.N("design:type",Number)],LA.prototype,"startAtTimeStamp_",void 0);_.q([_.R({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],LA.prototype,"isSquareAspectRatio_",void 0);_.q([_.cD("#video-preview"),_.N("design:type",HTMLElement)],LA.prototype,"videoPreviewContainer",void 0);_.q([_.oe("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],LA.prototype,"onYtPopupClosed_",null);
LA=_.q([_.HD({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],LA);
_.w(LA,"yt-sharing-embed-renderer",function(){if(ZNx===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;eui===void 0&&(eui=document.createElement("template"));var K=eui;D.call(G,K.content.cloneNode(!0),x.content.firstChild);ZNx=x}x=ZNx;return x},{mode:2});var pUj={};
pUj.YtUnlimitedFamilyInterstitialBehavior=[_.yU.YtOpenPopupBehavior,_.tG.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(x){x=_.jVo(_.uo(x),"yt-button-renderer");return x?x.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(x){this.dialogHistory_.push(x)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var x=this.popFromHistory();if(x){var G={openPopupAction:{popupType:"DIALOG",popup:{}}};G.openPopupAction.popup[x.renderer]=x.data;this.showingPreviousDialog_=!0;this.openPopup(G)}},
handleOpenPopupAction_:function(x){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var G=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(K){return!!x.openPopupAction.popup[K]}),D=this.getElementName_();
G&&this.data&&(this.pushToHistory({renderer:D,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(x){if(x=_.Y(x,qB6))this.loading=!0,_.xO(this.hostElement,"yt-open-create-family-dialog",[x,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var x=this.hostElement.nodeName.split("-").slice(1).map(function(G){return""+G[0].toUpperCase()+G.slice(1).toLowerCase()}).join("");
return x[0].toLowerCase()+x.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var VCi;var bNx;var Bf=function(){return _.n.apply(this,arguments)||this};
_.m(Bf,_.n);_.a=Bf.prototype;_.a.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}}}}}};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.xO(this.hostElement,"yt-register-create-family-dialog");_.kA(this.hostElement).querySelector("#thumbnail").onShow()};
_.a.fireOnCloseCommand_=function(){var x;((x=this.data)==null?0:x.onCloseCommand)&&_.zl(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.a.onYtServiceRequestSent_=function(x,G){G&&G.endpoint&&_.Y(G.endpoint,_.cg)||(this.loading=!0)};
_.a.onYtServiceRequestCompleted_=function(){var x=this.hostElement.parentElement;x.close&&x.close();this.loading=!1};
_.a.openPopupHandler_=function(x){if(x.detail==this){var G;((G=this.data)==null?0:G.onOpenCommands)&&_.zl(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.a.closePopupHandler_=function(x,G){this.fireOnCloseCommand_();if(G&&G.canceled===!0||G&&G.canceled===!1&&G.confirmed===!1){var D;((D=this.data)==null?0:D.onDismissCommands)&&_.zl(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.a.dataChanged_=function(){this.loading=!1};
Bf.prototype.dataChanged_=Bf.prototype.dataChanged_;Bf.prototype.closePopupHandler_=Bf.prototype.closePopupHandler_;Bf.prototype.openPopupHandler_=Bf.prototype.openPopupHandler_;Bf.prototype.onYtServiceRequestCompleted_=Bf.prototype.onYtServiceRequestCompleted_;Bf.prototype.onYtServiceRequestSent_=Bf.prototype.onYtServiceRequestSent_;_.q([_.I(_.Tg.YtEventForwardingBehavior),_.N("design:type",Object)],Bf.prototype,"ytEventForwardingBehavior",void 0);
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Bf.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(pUj.YtUnlimitedFamilyInterstitialBehavior),_.N("design:type",Object)],Bf.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Bf.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Bf.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Bf.prototype,"loading",void 0);_.q([_.oe("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Ou]),_.N("design:returntype")],Bf.prototype,"onYtServiceRequestSent_",null);_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.gG]),_.N("design:returntype")],Bf.prototype,"onYtServiceRequestCompleted_",null);
_.q([_.oe("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],Bf.prototype,"openPopupHandler_",null);_.q([_.oe("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],Bf.prototype,"closePopupHandler_",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Bf.prototype,"dataChanged_",null);
Bf=_.q([_.HD({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],Bf);
_.w(Bf,"yt-unlimited-family-message-interstitial-renderer",function(){if(bNx===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;VCi===void 0&&(VCi=document.createElement("template"));var K=VCi;D.call(G,K.content.cloneNode(!0),x.content.firstChild);bNx=x}x=bNx;return x},{mode:2});var L_k;var By6;var rW=function(){return _.n.apply(this,arguments)||this};
_.m(rW,_.n);rW.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"}}}};
rW.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.kA(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(x){x.onShow()});
_.kA(this.hostElement).querySelector("#main-thumbnail").onShow()};
rW.prototype.onButtonTap_=function(x){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(x)};
rW.prototype.computeMainThumbnailWidth_=function(x){return x&&x.length!==0?72:96};
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],rW.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],rW.prototype,"ytRendererBehavior",void 0);_.q([_.I(pUj.YtUnlimitedFamilyInterstitialBehavior),_.N("design:type",Object)],rW.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],rW.prototype,"data",void 0);
_.q([_.R({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.N("design:type",Number)],rW.prototype,"mainThumbnailWidth_",void 0);_.q([_.R({value:function(){return this.onButtonTap_.bind(this)}}),
_.N("design:type",Function)],rW.prototype,"boundButtonTap_",void 0);rW=_.q([_.HD({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],rW);
_.w(rW,"yt-unlimited-family-profile-interstitial-renderer",function(){if(By6===void 0){var x=document.createElement("template");_.F(x,'\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>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;L_k===void 0&&(L_k=document.createElement("template"));var K=L_k;D.call(G,K.content.cloneNode(!0),x.content.firstChild);By6=x}x=By6;return x},{mode:2});var r9f;var sqx;var sK=function(){var x=_.n.apply(this,arguments)||this;x.sliderAriaValueText_=null;x.selectedIndex_=0;x.messages={PAUSE_SLIDER:_.Wg("PAUSE_SLIDER",void 0,"Pause Duration")};return x};
_.m(sK,_.n);_.a=sK.prototype;_.a.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_]]"}}}}}};
_.a.onPopupOpened_=function(x){x.detail==this&&_.B("enable_premium_voluntary_pause")&&(_.xO(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a.setDialogData=function(x){this.data=x;this.resetSlider_()};
_.a.dataChanged_=function(){this.data&&this.resetSlider_()};
_.a.onSubmitTap_=function(){if(this.data.confirmCommand){var x=this.data.confirmCommand;_.Y(x,_.Te7)&&_.KW(this.hostElement,[x,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.a.onExitButtonTap_=function(){_.xO(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.a.closePopupHandler_=function(x,G){(G&&G.canceled===!0||G.canceled===!1&&G.confirmed===!1)&&this.handleOnDismissCommands_()};
_.a.onSliderChange_=function(){this.selectedIndex_=_.kA(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.a.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.a.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.a.resetSlider_=function(){if(this.data){var x=this.data.defaultEndOptionIndex||0,G=_.kA(this.hostElement).querySelector("#id-pause-slider");if(G.immediateValue<x)for(;G.immediateValue!=x;)G.increment();else if(x<G.immediateValue)for(;G.immediateValue!=x;)G.decrement();this.selectedIndex_=x;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.a.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.zl(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.a.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.zl(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.a.onYtServiceRequestSent=function(){this.loading=!0};
_.a.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
sK.prototype.onYtServiceRequestCompleted=sK.prototype.onYtServiceRequestCompleted;sK.prototype.onYtServiceRequestSent=sK.prototype.onYtServiceRequestSent;sK.prototype.closePopupHandler_=sK.prototype.closePopupHandler_;sK.prototype.dataChanged_=sK.prototype.dataChanged_;sK.prototype.onPopupOpened_=sK.prototype.onPopupOpened_;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],sK.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],sK.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],sK.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],sK.prototype,"loading",void 0);_.q([_.R(),_.N("design:type",Number)],sK.prototype,"selectIndexMax_",void 0);_.q([_.R(),_.N("design:type",Object)],sK.prototype,"selectedData_",void 0);
_.q([_.R(),_.N("design:type",Object)],sK.prototype,"sliderAriaValueText_",void 0);_.q([_.R({value:function(){return this.onSubmitTap_.bind(this)}}),
_.N("design:type",Function)],sK.prototype,"onButtonTap_",void 0);_.q([_.R({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.N("design:type",Function)],sK.prototype,"onSecondaryTap_",void 0);_.q([_.R(),_.N("design:type",Object)],sK.prototype,"messages",void 0);_.q([_.oe("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],sK.prototype,"onPopupOpened_",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sK.prototype,"dataChanged_",null);
_.q([_.oe("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],sK.prototype,"closePopupHandler_",null);_.q([_.oe("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Ou]),_.N("design:returntype")],sK.prototype,"onYtServiceRequestSent",null);
_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.gG]),_.N("design:returntype")],sK.prototype,"onYtServiceRequestCompleted",null);sK=_.q([_.HD({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],sK);
_.w(sK,"yt-unplugged-pause-membership-dialog-renderer",function(){if(sqx===void 0){var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unplugged-pause-membership-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unplugged_pause_membership_dialog_renderer.yt.unplugged.pause.membership.dialog.renderer.css.js--\x3e<tp-yt-paper-spinner-lite active="[[loading]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></tp-yt-paper-spinner-lite><div class="dialog-title style-scope yt-unplugged-pause-membership-dialog-renderer" role="heading">[[getSimpleString(data.title)]]</div><div class="duration-title style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pausePeriodMessage)]]\n</div><div class="duration-subtitle style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pauseEndMessage)]]\n</div><tp-yt-paper-slider id="id-pause-slider" class="pause-slider style-scope yt-unplugged-pause-membership-dialog-renderer" aria-label$="[[messages.PAUSE_SLIDER]]" aria-valuetext$="[[sliderAriaValueText_]]" max="[[selectIndexMax_]]" min="0" step="1" on-immediate-value-change="onSliderChange_" on-value-change="onSliderChange_"></tp-yt-paper-slider><template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><yt-formatted-string class="body-message style-scope yt-unplugged-pause-membership-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string></template><div id="dialog-actions" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><div id="secondary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div><div id="primary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div></div>');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;r9f===void 0&&(r9f=document.createElement("template"));var K=r9f;D.call(G,K.content.cloneNode(!0),x.content.firstChild);sqx=x}x=sqx;return x},{mode:2});var YLj;var mSk;var YH=function(){return _.n.apply(this,arguments)||this};
_.m(YH,_.n);YH.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.$7("vcBalanceRenderer")}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],YH.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],YH.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],YH.prototype,"data",void 0);YH=_.q([_.HD({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],YH);
_.w(YH,"yt-vc-offer-layout-header-renderer",function(){if(mSk===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;YLj===void 0&&(YLj=document.createElement("template"));var K=YLj;D.call(G,K.content.cloneNode(!0),x.content.firstChild);mSk=x}x=mSk;return x},{mode:2});var HNY;var $ST;var F_x;var CyY;var mQ=function(){return _.n.apply(this,arguments)||this};
_.m(mQ,_.n);mQ.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Nq.Object.defineProperties(mQ.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)}}});
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],mQ.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],mQ.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.zTJ.YtTappableItemBehavior),_.N("design:type",Object)],mQ.prototype,"ytTappableItemBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],mQ.prototype,"data",void 0);
_.q([_.R({reflectToAttribute:!0}),_.U("data.accessibilityText"),_.N("design:type",String),_.N("design:paramtypes",[])],mQ.prototype,"ariaLabel",null);_.q([_.R({reflectToAttribute:!0}),_.U("data.style"),_.N("design:type",String),_.N("design:paramtypes",[])],mQ.prototype,"vcOfferStyle",null);_.q([_.U("data.style","data.titleText"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],mQ.prototype,"showTitleText",null);mQ=_.q([_.HD({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],mQ);
_.w(mQ,"yt-vc-offer-renderer",function(){if(CyY===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;F_x===void 0&&(F_x=document.createElement("template"));var K=F_x;D.call(G,K.content.cloneNode(!0),x.content.firstChild);CyY=x}x=CyY;return x},{mode:2});var Hf=function(){return _.n.apply(this,arguments)||this};
_.m(Hf,_.n);Hf.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}}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Hf.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Hf.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Hf.prototype,"data",void 0);Hf=_.q([_.HD({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],Hf);
_.w(Hf,"yt-vc-offer-layout-renderer",function(){if($ST===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;HNY===void 0&&(HNY=document.createElement("template"));var K=HNY;D.call(G,K.content.cloneNode(!0),x.content.firstChild);$ST=x}x=$ST;return x},{mode:2});var ILk;var jqY;var ONx;var XUf;var $H=function(){return _.n.apply(this,arguments)||this};
_.m($H,_.n);$H.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}}}}}};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],$H.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],$H.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],$H.prototype,"data",void 0);$H=_.q([_.HD({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],$H);
_.w($H,"yt-ypc-offers-modal-top-bar-renderer",function(){if(XUf===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;ONx===void 0&&(ONx=document.createElement("template"));var K=ONx;D.call(G,K.content.cloneNode(!0),x.content.firstChild);XUf=x}x=XUf;return x},{mode:2});var Fz=function(){return _.n.apply(this,arguments)||this};
_.m(Fz,_.n);Fz.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"}}}}};
Fz.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
Fz.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var x=this.scrollable;x.attached&&typeof x.attached==="function"&&x.attached()};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Fz.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],Fz.prototype,"ytRendererstamperBehavior",void 0);_.q([_.cD("#scrollable"),_.N("design:type",Object)],Fz.prototype,"scrollable",void 0);_.q([_.R(),_.N("design:type",Object)],Fz.prototype,"data",void 0);Fz=_.q([_.HD({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],Fz);
_.w(Fz,"yt-ypc-offers-modal-renderer",function(){if(jqY===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;ILk===void 0&&(ILk=document.createElement("template"));var K=ILk;D.call(G,K.content.cloneNode(!0),x.content.firstChild);jqY=x}x=jqY;return x},{mode:2});var A9f;var USO;var CA=function(){return _.n.apply(this,arguments)||this};
_.m(CA,_.n);_.a=CA.prototype;_.a.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}}}}}};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.kA(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.a.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.xO(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.a.onYtPopupOpened_=function(x,G){(G==null?void 0:G.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.zl(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.a.onYtPopupClosed_=function(x,G){this.continueButtonTapped||G&&(G.canceled===!0||G.canceled===!1&&G.confirmed===!1)&&this.data.onDismissCommands&&_.zl(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.a.onYtServiceRequestError_=function(x){this.set("showSpinner",!1);_.kL(this.hostElement,x.detail.error.message)};
_.a.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.B("enable_ypc_spinners")?_.xO(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
CA.prototype.onYtServiceRequestError_=CA.prototype.onYtServiceRequestError_;CA.prototype.onYtPopupClosed_=CA.prototype.onYtPopupClosed_;CA.prototype.onYtPopupOpened_=CA.prototype.onYtPopupOpened_;CA.prototype.onYtServiceRequestCompleted_=CA.prototype.onYtServiceRequestCompleted_;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],CA.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],CA.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.R(),_.N("design:type",Object)],CA.prototype,"data",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],CA.prototype,"showSpinner",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],CA.prototype,"continueButtonTapped",void 0);_.q([_.R({value:function(){return this.onContinueTapped_.bind(this)}}),
_.N("design:type",Function)],CA.prototype,"bindOnContinueTapped_",void 0);_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],CA.prototype,"onYtServiceRequestCompleted_",null);_.q([_.oe("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],CA.prototype,"onYtPopupOpened_",null);
_.q([_.oe("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],CA.prototype,"onYtPopupClosed_",null);_.q([_.oe("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],CA.prototype,"onYtServiceRequestError_",null);CA=_.q([_.HD({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],CA);
_.w(CA,"yt-ypc-upgrade-dialog-renderer",function(){if(USO===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;A9f===void 0&&(A9f=document.createElement("template"));var K=A9f;D.call(G,K.content.cloneNode(!0),x.content.firstChild);USO=x}x=USO;return x},{mode:2});var Ruf;var SLj;var IB=function(){return _.n.apply(this,arguments)||this};
_.m(IB,_.n);IB.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
IB.prototype.computeHasButtons_=function(x){return!(!x.dismissButton&&!x.confirmButton)};
IB.prototype.computeStyle_=function(x){return x||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],IB.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.Tg.YtEventForwardingBehavior),_.N("design:type",Object)],IB.prototype,"ytEventForwardingBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],IB.prototype,"ytRendererstamperBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],IB.prototype,"data",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],IB.prototype,"positionType",void 0);
_.q([_.R({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.N("design:type",Boolean)],IB.prototype,"hasButtons_",void 0);_.q([_.R({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.N("design:type",Boolean)],IB.prototype,"style_",void 0);IB=_.q([_.HD({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],IB);
_.w(IB,"yt-bubble-hint-renderer",function(){if(SLj===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;Ruf===void 0&&(Ruf=document.createElement("template"));var K=Ruf;D.call(G,K.content.cloneNode(!0),x.content.firstChild);SLj=x}x=SLj;return x},{mode:2});var nMc;var iNC;var jQ=function(){var x=_.vm.apply(this,arguments)||this;x.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return x};
_.m(jQ,_.vm);_.a=jQ.prototype;_.a.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.a.attached=function(){var x=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){x.$.thumbnail.onShow();x.$["header-image"].onShow()})};
_.a.handleCheckBoxUpdateAction_=function(x){this.canShowCheckboxEnabledConfirmButton=x};
_.a.computeUseOverlayForSpinner_=function(x,G){return!!x&&G};
_.a.computeShowSpinner_=function(x,G){return x||!!G};
_.a.fireOnCloseActions_=function(){var x,G=_.l(((x=this.data)==null?void 0:x.onClosedActions)||[]);for(x=G.next();!x.done;x=G.next())this.ytRendererBehavior.resolveCommand(x.value)};
_.a.fireOnOpenCommands_=function(x){var G,D=(G=this.data)==null?void 0:G.onOpenCommands;if(D)for(x.stopImmediatePropagation(),x=_.l(D),G=x.next();!G.done;G=x.next())this.ytRendererBehavior.resolveCommand(G.value)};
_.a.fireOnDismissCommands_=function(x){var G,D=(G=this.data)==null?void 0:G.onDismissCommands;if(D)for(x.stopImmediatePropagation(),x=_.l(D),G=x.next();!G.done;G=x.next())this.ytRendererBehavior.resolveCommand(G.value)};
_.a.openPopupHandler_=function(x){x.detail==this&&this.fireOnOpenCommands_(x)};
_.a.closePopupHandler_=function(x,G){_.Gl(this,"yt-confirm-dialog-close-action",[G]);this.fireOnCloseActions_();(G&&G.canceled===!0||G&&G.canceled===!1&&G.confirmed===!1)&&this.fireOnDismissCommands_(x)};
_.a.onHeaderImageChanged_=function(){var x;((x=this.data)==null?0:x.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.a.computeHasHeaderImageWidth_=function(x){return x!=void 0};
_.a.computeHasLoadingMessage=function(x){return!!x};
_.a.onHeaderImageWidthChanged_=function(){var x,G=(x=this.data)==null?void 0:x.headerImageWidth;if(G){if(x=1.25*G*2+G,this.$.main.style.width=x+"px",G=this.$.scroller.firstElementChild)G.style.minWidth=x+"px"}else this.$.main.style.width="100%"};
_.a.onThumbnailChanged_=function(){var x;((x=this.data)==null?0:x.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")};
_.a.onYtNavigate_=function(x){x=_.uo(x);x instanceof Node&&_.Pi(this.$["confirm-button"]).contains(x)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.a.computePrimaryIsCancel_=function(x){return x};
_.a.computeIsCancelButtonHidden_=function(x){return x.skipCancelButton||!x.cancelButton};
_.a.computeIsCheckboxHidden_=function(x){return!x.checkbox};
_.a.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.a.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.a.onYtServiceRequestCompleted_=function(){var x;((x=this.data)==null?0:x.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.Nq.Object.defineProperties(jQ,{template:{configurable:!0,enumerable:!0,get:function(){if(iNC===void 0){var x=document.createElement("template");_.F(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_confirm_dialog_renderer.yt.confirm.dialog.renderer.css.js--\x3e<div id="spinner" hidden="[[!showSpinner_]]" class="style-scope yt-confirm-dialog-renderer">\n  <tp-yt-paper-spinner active="[[showSpinner_]]" class="style-scope yt-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  <div id="loading-message" class="body-text style-scope yt-confirm-dialog-renderer" hidden="[[!data.loadingMessage]]">\n    <yt-formatted-string text="[[data.loadingMessage]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n</div>\n<yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" notify-on-loaded="" thumbnail="[[data.thumbnail]]" width="256" class="style-scope yt-confirm-dialog-renderer">\n</yt-img-shadow>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope yt-confirm-dialog-renderer">\n  <yt-img-shadow id="header-image" hidden="[[!data.headerImage]]" notify-on-loaded="" thumbnail="[[data.headerImage]]" width="[[data.headerImageWidth]]" class="style-scope yt-confirm-dialog-renderer">\n  </yt-img-shadow>\n  <h2 class="heading style-scope yt-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </h2>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="body-text style-scope yt-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope yt-confirm-dialog-renderer" respect-html-dir="" split-lines="" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="checkbox-container" hidden="[[isCheckboxHidden]]" class="style-scope yt-confirm-dialog-renderer"></div>\n  <div class="buttons style-scope yt-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="checkbox-enabled-confirm-button" data="[[data.checkboxEnabledConfirmButton.buttonRenderer]]" dialog-confirm="" hidden="[[!canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm$="[[!data.showLoadingSpinnerOnAction]]" hidden="[[canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;nMc===void 0&&(nMc=document.createElement("template"));var K=nMc;D.call(G,K.content.cloneNode(!0),x.content.firstChild);iNC=x}x=iNC;return x}}});
jQ.prototype.onYtServiceRequestCompleted_=jQ.prototype.onYtServiceRequestCompleted_;jQ.prototype.onYtServiceRequestSent_=jQ.prototype.onYtServiceRequestSent_;jQ.prototype.onThumbnailLoaded_=jQ.prototype.onThumbnailLoaded_;jQ.prototype.onYtNavigate_=jQ.prototype.onYtNavigate_;jQ.prototype.onThumbnailChanged_=jQ.prototype.onThumbnailChanged_;jQ.prototype.onHeaderImageWidthChanged_=jQ.prototype.onHeaderImageWidthChanged_;jQ.prototype.onHeaderImageChanged_=jQ.prototype.onHeaderImageChanged_;
jQ.prototype.closePopupHandler_=jQ.prototype.closePopupHandler_;jQ.prototype.openPopupHandler_=jQ.prototype.openPopupHandler_;_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],jQ.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],jQ.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],jQ.prototype,"ytRendererBehavior",void 0);
_.q([_.I(_.Tg.YtEventForwardingBehavior),_.N("design:type",Object)],jQ.prototype,"ytEventForwardingBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],jQ.prototype,"data",void 0);_.q([_.R({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.N("design:type",Boolean)],jQ.prototype,"primaryIsCancel",void 0);_.q([_.R({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.N("design:type",Boolean)],jQ.prototype,"isCancelButtonHidden",void 0);
_.q([_.R({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.N("design:type",Boolean)],jQ.prototype,"isCheckboxHidden",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],jQ.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.q([_.R({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.N("design:type",Boolean)],jQ.prototype,"useOverlayForSpinner_",void 0);
_.q([_.R({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.N("design:type",Boolean)],jQ.prototype,"showSpinner_",void 0);_.q([_.R({value:!1}),_.N("design:type",Boolean)],jQ.prototype,"isActionInProgress_",void 0);_.q([_.R({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.N("design:type",Boolean)],jQ.prototype,"hasHeaderImageWidth_",void 0);
_.q([_.R({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.N("design:type",Boolean)],jQ.prototype,"hasLoadingMessage",void 0);_.q([_.oe("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],jQ.prototype,"openPopupHandler_",null);_.q([_.oe("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],jQ.prototype,"closePopupHandler_",null);
_.q([_.yf("data.headerImage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jQ.prototype,"onHeaderImageChanged_",null);_.q([_.yf("data.headerImageWidth"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jQ.prototype,"onHeaderImageWidthChanged_",null);_.q([_.yf("data.thumbnail"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jQ.prototype,"onThumbnailChanged_",null);
_.q([_.oe("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],jQ.prototype,"onYtNavigate_",null);_.q([_.oe("yt-img-shadow-loaded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jQ.prototype,"onThumbnailLoaded_",null);_.q([_.oe("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Ou]),_.N("design:returntype")],jQ.prototype,"onYtServiceRequestSent_",null);
_.q([_.oe("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.gG]),_.N("design:returntype")],jQ.prototype,"onYtServiceRequestCompleted_",null);jQ=_.q([_.HD({is:"yt-confirm-dialog-renderer",noInjection:!0})],jQ);var gMC;var uoY;var OK=function(){return _.n.apply(this,arguments)||this};
_.m(OK,_.n);OK.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.kA(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
OK.prototype.computeConfirmButton_=function(x){var G={text:x.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};x.confirmNavigationEndpoint?G.navigationEndpoint=x.confirmNavigationEndpoint:x.confirmServiceEndpoint&&(G.serviceEndpoint=x.confirmServiceEndpoint);return G};
OK.prototype.computeShowTitle_=function(x){return!(x==null||!x.title)};
_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],OK.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],OK.prototype,"data",void 0);_.q([_.R({computed:"computeShowTitle_(data)"}),_.N("design:type",Boolean)],OK.prototype,"showTitle",void 0);OK=_.q([_.HD({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],OK);
_.w(OK,"yt-fancy-dismissible-dialog-renderer",function(){if(uoY===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;gMC===void 0&&(gMC=document.createElement("template"));var K=gMC;D.call(G,K.content.cloneNode(!0),x.content.firstChild);uoY=x}x=uoY;return x});var dSf;var wU4;var Xz=function(){var x=_.n.apply(this,arguments)||this;x.spinnerActive=!1;return x};
_.m(Xz,_.n);Xz.prototype.created=function(){cSi(2201)};
Xz.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
Xz.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
Xz.prototype.onIronOverlayClosed=Xz.prototype.onIronOverlayClosed;Xz.prototype.onIronOverlayOpened=Xz.prototype.onIronOverlayOpened;_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],Xz.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.Ud),_.N("design:type",Object)],Xz.prototype,"tpYtIronOverlayBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],Xz.prototype,"data",void 0);_.q([_.R(),_.N("design:type",Object)],Xz.prototype,"spinnerActive",void 0);
_.q([_.oe("iron-overlay-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xz.prototype,"onIronOverlayOpened",null);_.q([_.oe("iron-overlay-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xz.prototype,"onIronOverlayClosed",null);Xz=_.q([_.HD({is:"yt-loading-renderer",disableElementRegistration:!0})],Xz);
_.w(Xz,"yt-loading-renderer",function(){if(wU4===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;dSf===void 0&&(dSf=document.createElement("template"));var K=dSf;D.call(G,K.content.cloneNode(!0),x.content.firstChild);wU4=x}x=wU4;return x},{mode:2});var qLc;var Nyc;var A4=function(){var x=_.n.apply(this,arguments)||this;x.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);x.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);x.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return x};
_.m(A4,_.n);_.a=A4.prototype;_.a.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.a.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.a.onDarkModeToggledAction=function(x){this.isDarkTheme=x};
_.a.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.a.openPopupHandler_=function(x){x.detail===this.hostElement&&this.hostElement.hidden&&_.xO(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.a.onDismissButtonTap_=function(){var x;this.closeOnDismissButton_.has(((x=this.data)==null?void 0:x.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.xO(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.a.onAcceptButtonTap_=function(){var x;this.closeOnAcceptButton_.has(((x=this.data)==null?void 0:x.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.xO(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.a.computeHasHeader_=function(x){return!!x.headerBackgroundImage};
_.a.computeLayoutStyle_=function(x){return x};
_.a.computePopupSize_=function(x){return x};
_.a.computeIconType_=function(x){return x.dialogIcon&&x.dialogIcon.iconType?x.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":x.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":x.dialogIcon.iconType:""};
_.a.computeIsLogo_=function(x){return!!x.dialogIcon&&!!x.dialogIcon.iconType&&(x.dialogIcon.iconType==="YOUTUBE_LOGO"||x.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||x.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.a.computeHasCustomLogo=function(x){return!(x==null||!x.headerForegroundImage)};
_.a.computeCustomLogo=function(x,G){if(x!=null&&x.headerForegroundImage)return x.headerForegroundImageDark?G?x.headerForegroundImageDark:x.headerForegroundImage:x.headerForegroundImage};
_.a.computeHeaderBackgroundImage=function(x,G){if(x!=null&&x.headerBackgroundImage)return G&&(x==null?0:x.headerBackgroundImageDark)?x.headerBackgroundImageDark:x.headerBackgroundImage};
_.a.shouldShowIconContainer=function(x,G){return x&&!G};
_.a.shouldShowNonYouTubeIcon=function(x,G){return!x&&!G};
_.a.getLogoImageId=function(x){var G,D,K;return(x=(G=this.computeCustomLogo(x,this.isDarkTheme))==null?void 0:(D=G.thumbnails)==null?void 0:(K=D[0])==null?void 0:K.height)&&x%31===0?"custom-logo-with-padding":"custom-logo"};
A4.prototype.openPopupHandler_=A4.prototype.openPopupHandler_;A4.prototype.dataChanged_=A4.prototype.dataChanged_;_.q([_.I(_.fF.YtRendererstamperBehavior),_.N("design:type",Object)],A4.prototype,"ytRendererstamperBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],A4.prototype,"ytRendererBehavior",void 0);_.q([_.R(),_.N("design:type",Boolean)],A4.prototype,"isDarkTheme",void 0);
_.q([_.R({computed:"computeCustomLogo(data, isDarkTheme)"}),_.N("design:type",Object)],A4.prototype,"customLogo",void 0);_.q([_.R({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.N("design:type",Object)],A4.prototype,"headerBackgroundImage",void 0);_.q([_.R(),_.N("design:type",Object)],A4.prototype,"data",void 0);_.q([_.R({computed:"computeHasHeader_(data)"}),_.N("design:type",Boolean)],A4.prototype,"hasHeader",void 0);
_.q([_.R({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.N("design:type",Object)],A4.prototype,"layoutStyle",void 0);_.q([_.R({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.N("design:type",Object)],A4.prototype,"popupSize",void 0);_.q([_.R({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],A4.prototype,"hasLogo",void 0);
_.q([_.R({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],A4.prototype,"hasCustomLogo",void 0);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],A4.prototype,"dataChanged_",null);_.q([_.oe("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],A4.prototype,"openPopupHandler_",null);
A4=_.q([_.HD({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],A4);
_.w(A4,"yt-upsell-dialog-renderer",function(){if(Nyc===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;qLc===void 0&&(qLc=document.createElement("template"));var K=qLc;D.call(G,K.content.cloneNode(!0),x.content.firstChild);Nyc=x}x=Nyc;return x},{mode:2});var vMf=_.Nv(function(x){return _.M("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.M(_.b,{cond:x.title,then:function(G){return _.M("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},G)}}))},"tg"),J98=_.Nv(function(x){return _.M("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.M(_.bA,{data:x.closeButton},{buttonViewModel:function(G){return _.M("div",null,_.M(_.Cs,{data:G.data}))}}))},"ug"),fL4=_.Nv(function(x){var G=
x.data;
return _.M(_.xT,null,_.M("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.M("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.M(_.b,{cond:function(){return!!G().image&&!!G().title},
then:function(){return _.M(_.wk,{data:function(){return G().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.M("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.M(_.b,{cond:function(){return G().title},
then:function(D){return _.M("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},D)}}),_.M(_.b,{cond:function(){return G().primaryGenre},
then:function(D){return _.M("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},D)}}))),_.M(_.b,{cond:function(){var D=G().description;
return D&&D.length<=150},
then:function(){return _.M("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.M("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return G().description}))}}))},"vg"),tCO=_.Nv(function(x){x=x.infoRows;
var G=_.Eo().resolve(_.Iu),D=_.B("enable_displaying_ppn");return _.M("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.M(_.LT,{each:x},function(K){return _.M("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.M(_.b,{cond:function(){return K.label},
then:function(z){return _.M("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},z)}}),_.M(_.b,{cond:function(){return K.attributedLabel},
then:function(z){return _.M("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.M(_.vq,{text:z,noPreWrap:!0}))}}),_.M(_.b,{cond:function(){return K.value},
then:function(z){return _.M("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},z)}}),_.M(_.b,{cond:function(){return K.attributedValue},
then:function(z){return _.M("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.M(_.vq,{text:z,noPreWrap:!0}))}}))}),_.M(_.b,{cond:function(){return D&&G.clientData.has("post_play_nonce")},
then:function(){return _.M("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.M("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.M("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},G.getData("post_play_nonce")))}}))},"wg"),kQc=_.Nv(function(x){var G=x.data;
return _.M("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.M(vMf,{title:function(){return G().dialogTitle}}),_.M(fL4,{data:G}),_.M(_.b,{cond:function(){return G().infoRow},
then:function(D){return _.M(tCO,{infoRows:D})}}),_.M(J98,{closeButton:function(){return G().closeButton}}))},"xg");
kQc.idomCompat=!0;_.tn(kQc,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.ik}});_.tn(_.Nv(function(x){var G=x.data;return _.M("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.M(_.wk,{data:function(){return G().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.M("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.M("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.M(_.b,{cond:function(){var D=G().ytLogo;return D?D.iconType:null},
then:function(D){return _.M(_.Qm,{icon:D,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.M("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.M("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.M(_.vq,{text:function(){return G().title}})),_.M("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.M(_.vq,{text:function(){return G().body}})),_.M("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.M(_.vq,{text:function(){return G().verifyStateText}}))),
_.M("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.M("div",null,_.M(_.bA,{data:function(){return G().dismissButton}},{buttonViewModel:_.Cs})),_.M("div",null,_.M(_.bA,{data:function(){return G().linkParentButton}},{buttonViewModel:_.Cs})))))},"yg"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.ik}});var PyT=_.Nv(function(x){var G=x.data;return _.M("installment-agreements-view-model",{class:_.ym("ytInstallmentAgreementsViewModelHost")},_.M(_.LT,{each:_.wc(function(){return G().agreements},[])},function(D){return _.M("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.M("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.M(_.vq,{text:D.label})),_.M("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.M(_.bA,{data:function(){return D.openButton}},{buttonViewModel:_.Cs})))}))},
"zg");
PyT.idomCompat=!0;var EM4=_.Nv(function(x){return _.M("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.M("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.M(_.vq,{text:function(){return x.data().inviteMessage}})),_.M("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.M(_.vq,{text:function(){return x.data().attributedAccountSectionHeaderText}})),_.M("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.M(_.bA,{data:function(){return x.data().accountAvatar}},{avatarViewModel:_.Lj}),_.M("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.M(_.vq,{text:function(){return x.data().accountName}}),_.M("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.M(_.vq,{text:function(){return x.data().handle}}))),_.M(_.bA,{data:function(){return x.data().trailingButton}},{buttonViewModel:_.Cs})),_.M("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.M(_.vq,{text:function(){return x.data().termsOfService}})))},"Ag");var huc=_.Nv(function(x){var G=_.l(_.ZX(function(){var k,cL;return((k=x.data().createPlaylistDialogFormSchema)==null?0:(cL=k.initialValues)==null?0:cL.title)?x.data().createPlaylistDialogFormSchema.initialValues.title:""})),D=G.next().value,K=G.next().value;
G=_.l(_.ZX(function(){x.data();return!1}));
var z=G.next().value,y=G.next().value;G=_.l(_.ZX(function(){x.data();return!1}));
var c=G.next().value,W=G.next().value;G=_.l(_.ZX(function(){var k,cL;return(k=x.data().createPlaylistDialogFormSchema)==null?void 0:(cL=k.initialValues)==null?void 0:cL.visibility}));
var e=G.next().value,Q=G.next().value;G=_.l(_.ZX(function(){x.data();return!1}));
var p=G.next().value,V=G.next().value;G=_.l(_.ZX(function(){var k,cL;return(k=x.data().createPlaylistDialogFormSchema)==null?void 0:(cL=k.initialValues)==null?void 0:cL.isCollaborative}));
var L=G.next().value,r=G.next().value,H=_.qi();_.$9(function(){var k=H.value.querySelector("textarea");k&&(k.value=D())});
_.FQ(function(){var k;_.r1b((k=x.data().createPlaylistDialogFormSchema)==null?void 0:k.id,{onSubmit:function(){var cL=D();var bO=e(),mE=L(),jf=x.data();cL={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:cL,privacyStatus:bO,videoIds:jf.videoIds,sourcePlaylistId:jf.sourcePlaylistId,params:mE?jf.createPlaylistParamsCollaborationEnabled:jf.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.Eo().resolve(_.hm).resolveCommand(cL)},
isValid:function(){return z()&&!c()&&!p()}})});
var O=function(k){if(k!==void 0&&(K(k),!z()&&k.length>0&&y(!0),z())){var cL=BBf(x.data());if(cL){var bO=cL.minLength;cL=cL.maxLength;bO&&k.length<bO?W(!0):cL&&k.length>cL?W(!0):W(!1)}}},A=function(){var k=!(!L()||e()!=="PRIVATE");
V(k)},g=function(k){k!==void 0&&(Q(k),A())},u=function(){if(p())return sI4(x.data())},f=function(){r(!L());
A()},v=function(){return{validate:function(k){if(z()){var cL=BBf(x.data());
if(cL){var bO=cL.minLength;cL=cL.translations;if(bO&&k.length<bO)return cL==null?void 0:cL.minLengthErrorMessage}}}}},P=function(){var k=BBf(x.data()),cL=k==null?void 0:k.maxLength,bO;
k=k==null?void 0:(bO=k.translations)==null?void 0:bO.maxLengthErrorMessage;if(cL&&k)return{maxChars:cL,errorMessage:k}};
return _.M("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.M("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:H},_.M(_.bA,{data:function(){return x.data().playlistTitle}},{textFormFieldViewModel:function(k){return _.M(_.zF6,{data:k.data,
text:D,onInput:O,validation:v,characterLimit:P})},
textFieldViewModel:function(k){return _.M(_.KGf,{data:k.data,text:D,onInput:O,validation:v,characterLimit:P})}})),_.M("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.M(_.bA,{data:function(){return x.data().playlistVisibility}},{dropdownViewModel:function(k){return _.M(_.plk,{data:k.data,
onSelected:g,error:u})}})),_.M(_.b,{cond:function(){return!!x.data().playlistCollaborate},
then:function(){return _.M("div",null,_.M(_.bA,{data:function(){return x.data().playlistCollaborate}},{switchListItemViewModel:function(k){return _.M(_.MoZ,{data:k.data,
onTap:f})}}))}}))},"Bg");var xnj=_.Nv(function(x){var G=_.wc(x.noPadding,!1),D=function(){var z,y;return(y=(z=x.data().logo.accessibilityData)==null?void 0:z.label)!=null?y:""},K={};
return _.M("upsell-view-model",{class:_.ym("ytUpsellViewModelHost",(K.ytUpsellViewModelHostNoPadding=function(){return G()},K))},_.M("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.M(_.b,{cond:function(){return _.NF(x.data().logo)},
then:function(z){return _.M(_.wk,{data:z,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:D})}})),_.M("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.M(_.vq,{text:function(){return x.data().title}})),_.M("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.M(_.LT,{each:function(){var z;
return(z=x.data().subtitles)!=null?z:[]},
keyBy:"INDEX"},function(z){return _.M("div",{class:"ytUpsellViewModelHostUpsellSubtitleSectionSubtitle"},_.M(_.vq,{text:z}))})),_.M("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.M(_.LT,{each:function(){var z;
return(z=x.data().benefitInfos)!=null?z:[]},
keyBy:"INDEX"},function(z){return _.M(_.b,{cond:function(){return z().info},
then:function(y){return _.M("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.M(_.Qm,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.M(_.vq,{text:y}))}})})),_.M("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.M(_.LT,{each:function(){var z;
return(z=x.data().legalInfos)!=null?z:[]},
keyBy:"INDEX"},function(z){return _.M("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo"},_.M(_.vq,{text:z}))})))},"Cg");var GD8=_.Nv(function(x){var G=x.data;x={};x=(x.ytMiniAppScoreChallengeViewModelScoreRadial=!0,x.ytMiniAppScoreChallengeViewModelDarkScoreRadial=YOC(),x);return _.M("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.M("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return G().title}),_.M("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return G().subtitle}),_.M("div",{class:_.cH(x)},_.M("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return G().score})),_.M("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return G().prompt}))},"Dg");var Dn4=function(){this.store=_.iD();this.formId=""};var KB4=_.Nv(function(x){function G(W){if(W&&(W=_.Y(W,_.Wq)))return Object.assign({},W,{isSelected:y()})}
var D=_.l(_.ZX(function(){var W,e;return(e=(W=_.Y(x.data().option,_.Wq))==null?void 0:W.isSelected)!=null?e:!1})),K=D.next().value,z=D.next().value,y=K;
_.FQ(function(){var W;_.r1b((W=x.data().formSchema)==null?void 0:W.id,{onSubmit:function(){var e=_.Eo().resolve(_.hm),Q=!!x.data().selectedCommand,p=!!x.data().unselectedCommand;if(y()){if(Q)var V=x.data().selectedCommand}else p&&(V=x.data().unselectedCommand);V=_.jn(V);G(x.data().option)&&!V?(e="",!Q&&p?e="selected ":Q&&!p&&(e="unselected "),Q=new _.LL("No "+e+"command found for SelectionListItemFormViewModel"),_.I4(Q)):V&&e.resolveCommand(V)},
isValid:function(){return!0}})});
var c=function(){z(!y())};
_.Fq(function(){var W,e,Q=(W=x.data())==null?void 0:(e=W.formSchema)==null?void 0:e.id;Q&&_.LVO()().delete(Q)});
return _.M("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.M("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.M(_.vq,{text:function(){return x.data().paragraph}})),_.M(_.b,{cond:function(){return G(x.data().option)},
then:function(W){return _.M(_.rJ,{data:W,isCompact:!0,hideSelectionTextChevron:!0,onTap:c,disableHorizontalPadding:!0})}}))},"Eg");var z8i=_.Nv(function(x){var G=x.data;var D=x.disablePadding;var K=x.className;var z=_.qi(),y=function(){var W=G().imageBanner;a:switch(G().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var e="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:e="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:W,style:e,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},c=function(){return G().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.FQ(function(){var W=function(){_.xO(z.value,"yt-refit-popups-action")},e;
(e=z.value)==null||e.addEventListener("image-loaded",W);_.Fq(function(){var Q;(Q=z.value)==null||Q.removeEventListener("image-loaded",W)})});
x={};return _.M("yt-dialog-header-view-model",{el:z,class:_.ym(K,(x.ytDialogHeaderViewModelHost=!0,x.ytDialogHeaderViewModelHostDisablePadding=D,x))},_.M(_.b,{cond:function(){return G().imageBanner},
then:function(){var W={};return _.M("div",{class:_.ym(K,(W.ytDialogHeaderViewModelBanner=!0,W.ytDialogHeaderViewModelBannerFullBleed=c,W)),style:_.Ms({"max-height":function(){return G().assetContainerMaxHeight!==void 0?G().assetContainerMaxHeight+"px":void 0}})},_.M(_.JK,{data:y,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.M(_.b,{cond:function(){return G().headerBlock},
then:function(){return _.M("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.M(_.bA,{data:function(){return G().headerBlock}},{contentPreviewImageViewModel:function(W){return _.M(_.JK,{data:W.data,
notifyOnLoaded:!0})}}))}}),_.M(_.b,{cond:function(){return G().customAssetContainer},
then:function(W){return _.M("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.M(_.bA,{data:W},{avatarStackViewModel:_.rR}))}}),_.M(_.b,{cond:function(){return G().customBanner},
then:function(W){return _.M("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.M(_.bA,{data:W},{avatarStackViewModel:_.rR}))}}),_.M(_.b,{cond:function(){return G().headline},
then:function(W){return _.M("h2",null,_.M(_.vq,{text:W,className:"ytDialogHeaderViewModelText"}))}}))},"Fg");
z8i.idomCompat=!0;var aZC=_.Nv(function(x){var G=_.s0b(function(){return x.data().formId}),D=G.onSubmit,K=G.isValid;
return _.M("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.M(_.bA,{data:function(){return x.data().panelFooter}},{panelFooterViewModel:function(z){return _.M(_.Rk,{data:z.data,
disablePadding:!0,disablePrimaryButton:function(){return!K()},
onClickPrimaryButton:function(){D()}})}}))},"Gg");var oXO=_.Nv(function(x){var G=function(){var D,K;return(K=(D=_.Y(x.data().rendererContext,_.Wo))==null?void 0:D.label)!=null?K:""};
return _.M("yt-dialog-image-content-view-model",{class:_.ym("ytDialogImageContentViewModelHost",x.className)},_.M(_.b,{cond:function(){return _.NF(x.data().image)},
then:function(D){return _.M(_.wk,{data:D,alt:G,className:"ytDialogImageContentViewModelImage",contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"})}}),_.M(_.vq,{text:function(){return x.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Hg");var cJY=_.Nv(function(x){var G=_.qv(x,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),D=G.elRefCallback;x=G.iconWiz;var K=G.assetWiz,z=G.assetType,y=G.titleWiz,c=G.leadingActionHeaderWiz,W=G.trailingActionHeaderWiz,e=G.headerPosition,Q=G.contentWiz,p=G.buttonLayout,V=G.buttonStyle,L=G.primaryButtonWiz,r=G.secondaryButtonWiz,H=G.contentAlignment,O=G.isFullscreen,A=G.width,g=G.maxHeight,u=G.isHeaderWizDefined,
f=G.headerWiz,v=G.isFooterWizDefined,P=G.footerWiz;G=_.qi(function(n$){D==null||D(n$)});
var k=K?function(){return K({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,cL=L?function(){var n$={};
return L({buttonOverrides:function(){return{style:(V==null?void 0:V())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.ym((n$["yt-spec-dialog-layout__dialog-layout-button"]=!0,n$["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(p==null?void 0:p())===0||(p==null?void 0:p())===2},n$))})}:void 0,bO=r?function(){var n$={};
return r({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.ym((n$["yt-spec-dialog-layout__dialog-layout-button"]=!0,n$["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(p==null?void 0:p())===0||(p==null?void 0:p())===2},n$))})}:void 0,mE=function(){return(!!y||!!c||!!W)&&e()===0},jf={},$C={},OD={},wn={};
return _.M("dialog-layout",{el:G,class:_.ym((jf["yt-spec-dialog-layout"]=!0,jf["yt-spec-dialog-layout--dialog-layout-fullscreen"]=O,jf["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!O()},jf["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return g()===1},jf["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(z==null?void 0:z())===1},jf)),
style:function(){return(A==null?void 0:A())!==void 0?"width: "+A+"px;":""}},x?_.M("div",{class:_.ym(($C["yt-spec-dialog-layout__dialog-layout-icon"]=!0,$C["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!K&&e()===1},$C["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return H()===1},$C))},_.M(x,null)):null,_.M(_.b,{cond:u,
then:function(){return f?_.M("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.M(f,null)):null},
else:function(){return _.M(_.xT,null,_.M(_.b,{cond:mE,then:function(){return _.M(yJf,{contentAlignment:H,LeadingActionHeader:c,TrailingActionHeader:W,Title:y,isAboveAsset:!!k})}}),k?_.M("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.M(k,null)):null)}}),_.M("div",{class:_.ym((OD["yt-spec-dialog-layout__dialog-layout-container"]=!0,OD["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(H==null?void 0:H())===1},OD["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!y&&!f||!!k&&(e==null?void 0:e())===0},OD))},_.M(_.b,{cond:function(){return y&&!f&&(e==null?void 0:e())===1},
then:function(){return _.M(yJf,{contentAlignment:H,LeadingActionHeader:c,TrailingActionHeader:W,Title:y,isAboveAsset:!1})}}),Q?_.M("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.M("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.M(Q,null))):null,_.M(_.b,{cond:v,
then:function(){return P?_.M("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.M(P,null)):null}}),cL||bO?_.M(lZ6,{footerClasses:_.ym((wn["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,wn["yt-spec-dialog-layout__dialog-layout-footer"]=!0,wn["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(p==null?void 0:p())===2},wn["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(p==null?void 0:p())===1},wn)),
PrimaryButton:cL,SecondaryButton:bO}):null))},"Ig"),yJf=_.Nv(function(x){var G=_.qv(x,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),D=G.contentAlignment,K=G.LeadingActionHeader;x=G.Title;var z=G.TrailingActionHeader,y=G.isAboveAsset,c=G.enableLeadingActionHeader;G={};return _.M("div",{class:_.ym((G["yt-spec-dialog-layout__dialog-header-container"]=!0,G["yt-spec-dialog-layout__dialog-header"]=!0,G["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=y,G["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(D==null?void 0:D())===1&&c()},G))},_.M(_.b,{cond:function(){return c()},
then:function(){return K?_.M("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.M(K,null)):null}}),x?_.M("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.M(x,null)):null,z?_.M("div",null,_.M(z,null)):null)},"Jg"),lZ6=_.Nv(function(x){var G=x.footerClasses;
var D=x.PrimaryButton;x=x.SecondaryButton;return _.M("div",{class:G},x?_.M(x,null):null,D?_.M(D,null):null)},"Kg");var Tp8=_.Nv(function(x){var G=x.data;return _.M("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.M("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.M(_.bA,{data:function(){return G().avatar}},{avatarViewModel:_.Lj})),_.M("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.M(_.vq,{text:function(){return G().title}})),_.M(_.vq,{text:function(){return G().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Lg");var WBj=_.Nv(function(x){var G=x.data;return _.M("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.M("div",{class:"ytAccessConfirmationViewModelContent"},_.M(_.bA,{data:function(){return G().dualAvatar}},{dualAvatarViewModel:function(D){return _.M("div",{class:"ytAccessConfirmationViewModelDualAvatar"},_.M(_.wEZ,{data:D.data}))}}),_.M("h2",{class:"ytAccessConfirmationViewModelTitle"},_.M(_.vq,{text:function(){return G().title}})),_.M(_.vq,{text:function(){return G().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Mg");var e8c=_.Nv(function(x){var G=x.data;var D=void 0;x=_.l(_.eO("",void 0,"bj3Bbf"));var K=x.next().value,z=x.next().value,y,c=function(){z("");var Q;(Q=D)!=null&&Q.store.dispatch(_.EO({type:"RESET_COMMAND_MAP"}))};
_.FQ(function(){D=new Dn4;window.addEventListener("yt-popup-closed",c)});
_.$9(function(){if(D&&y!==G().formId){var Q=D,p=G();p.formId&&(Q.formId=p.formId,Q.store.dispatch(_.EO({type:"SET_CURRENT_FORM_ID",payload:{formId:Q.formId}})));y=G().formId}});
_.Fq(function(){window.removeEventListener("yt-popup-closed",c)});
var W=function(Q,p,V){p.key&&V&&p.key!==K()&&(z(p.key),D&&p.command&&D.store.dispatch(_.EO({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:V,command:p.command}})))},e=function(){if(_.Y(G().content,_.i2O))return!(K==null?0:K())};
return _.M("yt-dialog-view-model",{class:_.ym("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.M(cJY,{headerWiz:function(){return _.M("span",{skip:!0},_.M(_.bA,{data:function(){return G().header}},{dialogHeaderViewModel:function(Q){return _.M(z8i,{data:Q.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!G().header},
contentWiz:function(){return _.M("span",{skip:!0},_.M(_.bA,{data:function(){return G().customContent?G().customContent:G().content}},{basicContentViewModel:_.Hcu,
createPlaylistDialogFormViewModel:huc,collaborativePlaylistInviteMessageViewModel:EM4,miniAppScoreChallengeViewModel:GD8,radioButtonGroupViewModel:function(Q){return _.M(_.Zxj,{data:Q.data,selectedKey:K,onSelected:W})},
selectionListItemFormViewModel:KB4,upsellViewModel:function(Q){return _.M(xnj,{data:Q.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:Tp8,installmentAgreementsViewModel:PyT,accessConfirmationViewModel:WBj,listViewModel:function(Q){return _.M(_.rLE,{data:Q.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:oXO}))},
footerWiz:function(){return _.M("span",{skip:!0},_.M(_.bA,{data:function(){return G().footer}},{panelFooterViewModel:function(Q){return _.M(_.Rk,{data:Q.data,
disablePadding:!0,disablePrimaryButton:e})},
formPanelFooterViewModel:aZC,formFooterViewModel:function(Q){return _.M(_.xuk,{data:Q.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!G().footer}}))},"Ng");
e8c.idomCompat=!0;_.tn(e8c,"yt-dialog-view-model",{props:{data:_.ik},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var Zec=_.Nv(function(x){var G=x.data;x={};return _.M("yt-panel-header-view-model",{class:_.ym("yt-panel-header-view-model-wiz",(x["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!G().shouldHideDivider},x["yt-panel-header-view-model-wiz--compact"]=function(){return!!G().subtitle},x))},_.M("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.M(_.b,{cond:function(){return G().title},
then:function(D){return _.M(_.vq,{text:D,className:"yt-panel-header-view-model-wiz__title"})}}),_.M(_.b,{cond:function(){return G().subtitle},
then:function(D){return _.M(_.vq,{text:D,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.M("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.M(_.bA,{data:function(){return G().trailingButtons}},{buttonViewModel:function(D){return _.M(_.Cs,{data:D.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"Og");
Zec.idomCompat=!0;var MEc=_.Nv(function(x){var G=_.WH(function(y){var c;if((c=x.skipContentClick)==null?0:c.call(x))return!1;x.onContentWrapperClick(y);return!0}),D,K,z;
return _.M("div",{class:_.ym("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return x.isAnimating()?"transform: translateY("+x.currentY()+"px);transition: 0.2s":""}},(D=x.header)==null?void 0:D.call(x),_.M("div",{id:x.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.Ms({"max-height":(0,_.L_)(x.maxHeightForContentWrapper)}),"on:scroll":FsO(x.onScroll),"on:touchmove":FsO(function(y){return void y.stopPropagation()})},_.M("div",{el:{onRender:x.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":G},(K=x.body)==null?void 0:K.call(x))),(z=x.footer)==null?void 0:z.call(x))},"Pg");
MEc.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var QMx=_.Nv(function(x){var G=_.wc(x.leadingLabel),D=_.wc(x.trailingLabel),K=_.wc(x.footerButtonType),z=function(){return G()||D()||x.hasPrimaryButton()||x.hasSecondaryButton()},y={},c=_.ym("yt-spec-bottom-sheet-layout__primary-button",(y["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return K()===0&&x.hasPrimaryButton()},y["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return K()===1&&x.hasPrimaryButton()},y["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return K()===2&&x.hasPrimaryButton()},y["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return K()===3&&x.hasPrimaryButton()},y));
y={};var W=_.ym("yt-spec-bottom-sheet-layout__secondary-button",(y["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return K()===1&&x.hasSecondaryButton()},y["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return K()===2&&x.hasSecondaryButton()},y["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return K()===3&&x.hasPrimaryButton()},y));
return _.M(_.b,{cond:x.hasFooterOverride,then:function(){var e;return _.M(_.xT,null,(e=x.footerOverride)==null?void 0:e.call(x))},
else:function(){return _.M(_.b,{cond:z,then:function(){return _.M("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.M(_.b,{cond:function(){return G()||D()},
then:function(){var e={};return _.M("div",{class:_.ym("yt-spec-bottom-sheet-layout__footer-label-wrapper",(e["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!x.hasPrimaryButton()},e))},_.M(_.b,{cond:G,
then:function(){return _.M("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},G)}}),_.M(_.b,{cond:D,
then:function(){return _.M("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},D)}}))}}),_.M(_.b,{cond:function(){return x.hasPrimaryButton()||x.hasSecondaryButton()},
then:function(){var e={};return _.M("div",{class:_.ym("yt-spec-bottom-sheet-layout__footer-button-wrapper",(e["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.A9h,e))},_.M(_.b,{cond:function(){return x.hasSecondaryButton()&&K()!==0},
then:function(){var Q;return _.M("div",{class:W},(Q=x.secondaryButton)==null?void 0:Q.call(x))}}),_.M(_.b,{cond:x.hasPrimaryButton,
then:function(){var Q;return _.M("div",{class:c},(Q=x.primaryButton)==null?void 0:Q.call(x))}}))}}))}})}})},"Qg");
QMx.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var pF6=_.Nv(function(x){var G=_.wc(x.title),D=_.wc(x.subtitle);return _.M("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:x.headerId,"on:touchstart":_.WH(function(K){var z;(z=x.touchstart)==null||z.call(x,K);return!1}),
"on:touchmove":_.WH(function(K){var z;(z=x.touchmove)==null||z.call(x,K);return!1}),
"on:touchend":_.WH(function(K){var z;(z=x.touchend)==null||z.call(x,K);return!1})},_.M("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.M(_.b,{cond:x.hasHeaderOverride,
then:function(){var K;return _.M(_.xT,null,(K=x.headerOverride)==null?void 0:K.call(x))},
else:function(){var K={};return _.M("div",{class:_.ym((K["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,K["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=G,K))},_.M("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.M(_.b,{cond:G,then:function(){return _.M(_.xT,null,_.M("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},G),_.M(_.b,{cond:D,then:function(){return _.M("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
D)}}))}})),_.M(_.b,{cond:function(){return G()&&x.hasActionHeader()},
then:function(){var z;return _.M("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(z=x.actionHeader)==null?void 0:z.call(x))}}))}}))},"Rg");
pF6.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.Nv(function(x){function G(k){if(!g&&typeof MutationObserver!=="undefined"){var cL={childList:!0};"MutationObserver"in window&&(g=new MutationObserver(D.bind(void 0,k)),g.observe(k,cL))}}
function D(k){typeof g!=="undefined"&&(u["content-wrapper"]===void 0&&(u["content-wrapper"]=k.children[0].clientHeight),r(u["content-wrapper"]),L()>H()||O(L()))}
function K(){V(window.innerHeight);L()>H()||O(L());f.isFullScreen[0]()&&L()>H()?v().dispatch("Snap To Full Screen",{maxHeight:A()}):v().dispatch("Snap To Neutral Position",{maxHeight:H()})}
function z(k){document.body.style.overscrollBehavior="none";k.preventDefault();v().dispatch("Touch Start",{event:k})}
function y(k){k.preventDefault();v().dispatch("Touch Move",{event:k,contentScrollable:L()>H(),fullContentWrapperHeight:A(),contentWrapperHeight:H(),contentHeightMap:u,contentWrapperId:"content-wrapper",header:Iqj(x),footer:Iqj(x)})}
function c(){document.body.style.overscrollBehavior="";f.isFullScreen[0]()?f.currentY[0]()>=60?v().dispatch("Snap To Neutral Position",{maxHeight:H()}):v().dispatch("Snap To Full Screen",{maxHeight:A()}):f.currentY[0]()>=60?W():f.currentY[0]()<=-60&&L()>H()?v().dispatch("Snap To Full Screen",{maxHeight:A()}):v().dispatch("Snap To Neutral Position",{maxHeight:H()})}
function W(){v().dispatch("Close Sheet",{clientHeight:p(),maxHeight:0});setTimeout(function(){C0C()},250)}
var e=_.l(_.eO(window.innerHeight,void 0,"NWeFS")),Q=e.next().value;e=e.next().value;var p=Q,V=e;e=_.l(_.eO(0,void 0,"oxfm4"));Q=e.next().value;e=e.next().value;var L=Q,r=e;e=_.l(_.ZX(function(){var k=Iqj(x);return.6*p()-m5j(k)-HWf(k)}));
Q=e.next().value;e=e.next().value;var H=Q,O=e,A=function(){var k=Iqj(x);return p()-m5j(k)-HWf(k)-24-24},g=null,u={},f={initialY:_.eO(0,void 0,"cYBE5c"),
currentY:_.eO(0,void 0,"RndqHc"),isAnimating:_.eO(!1,void 0,"vO9DVd"),isFullScreen:_.eO(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.ZX(H)},v=function(){var k=null;return function(){if(!k){var cL={initialY:f.initialY[0](),currentY:f.currentY[0](),isAnimating:f.isAnimating[0](),isFullScreen:f.isFullScreen[0](),maxHeightForContentWrapper:f.maxHeightForContentWrapper[0]()};k=$5b(cL)}return k}}();
_.FQ(function(){window.addEventListener("resize",K);v().subscribe(function(k){f.initialY[1](k.initialY);f.currentY[1](k.currentY);f.isAnimating[1](k.isAnimating);f.isFullScreen[1](k.isFullScreen);f.maxHeightForContentWrapper[1](k.maxHeightForContentWrapper)})});
_.Fq(function(){window.removeEventListener("resize",K);g&&(g.disconnect(),g=null)});
var P=_.ym({"bottom-sheet-content-without-icon":function(){var k;return!((k=x.shouldShowIcons)==null?0:k.call(x))}});
return _.M("bottom-sheet-layout",null,_.M(MEc,{contentWrapperId:"content-wrapper",isAnimating:function(){return f.isAnimating[0]()},
currentY:function(){return f.currentY[0]()},
maxHeightForContentWrapper:function(){return f.maxHeightForContentWrapper[0]()},
shouldShowIcons:x.shouldShowIcons,skipContentClick:x.skipContentClick,onScroll:function(){var k=document.getElementById("header-wrapper"),cL=document.getElementById("content-wrapper");if(k&&cL){var bO={};bO=(bO["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,bO["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,bO);k.className=cL.scrollTop>1?_.cH(bO):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:C0C,contentWrapperEl:function(k){G(k);requestAnimationFrame(function(){D(k)})},
header:function(){return _.M(pF6,{touchstart:z,touchmove:y,touchend:c,title:x.headerTitle,subtitle:x.headerSubtitle,headerId:"header-wrapper",headerOverride:x.headerFn,hasHeaderOverride:x.hasHeaderFn,actionHeader:x.headerActionHeader,hasActionHeader:x.hasHeaderActionHeader})},
footer:function(){return _.M(QMx,{footerButtonType:x.footerButtonType,leadingLabel:x.footerLeadingLabel,trailingLabel:x.footerTrailingLabel,primaryButton:x.footerPrimaryButton,hasPrimaryButton:x.hasFooterPrimaryButton,secondaryButton:x.footerSecondaryButton,hasSecondaryButton:x.hasFooterSecondaryButton,footerOverride:x.footerFn,hasFooterOverride:x.hasFooterFn})},
body:function(){return _.M(_.b,{cond:x.hasContentFn,then:function(){var k;return _.M("div",{class:P},(k=x.contentFn)==null?void 0:k.call(x))}})}}))},"Sg").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var VEi=_.Nv(function(x){var G=_.Eo().resolve(_.bm);return _.M("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":_.WH(function(){return void G.closeSheet()})},_.M(_.b,{cond:function(){return!!x.header},
then:function(){return _.M("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},x.header())}}),_.M(_.b,{cond:function(){return!!x.content},
then:function(){return _.M("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},x.content())}}),_.M(_.b,{cond:function(){return!!x.footer},
then:function(){return _.M("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},x.footer())}}))},"Tg");
VEi.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var beb=_.Nv(function(x){x=x.data;var G=_.qi(function(K){if(_.B("web_focus_first_element_sheet"))return K.addEventListener("focus",function(){MlO(K)}),function(){K.removeEventListener("focus",function(){MlO(K)})}}),D={};
return _.M("yt-sheet-view-model",{class:_.ym("yt-sheet-view-model-wiz",(D["yt-sheet-view-model-wiz--contextual"]=!0,D["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.B("web_disable_backdrop_filter"),D)),el:G,tabindex:-1},_.M(_.b,{cond:x,then:function(K){return _.M(VEi,{header:function(){return _.M(_.bA,{data:function(){return K().header}},{panelHeaderViewModel:Zec})},
content:function(){return _.M(_.bA,{data:function(){return K().content}},{listViewModel:function(z){return _.M(_.rLE,{data:z.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:xnj,miniAppScoreChallengeViewModel:GD8})},
footer:function(){return _.M(_.bA,{data:function(){return K().footer}},{panelFooterViewModel:_.Rk})}})}}))},"Ug");
beb.idomCompat=!0;_.tn(beb,"yt-sheet-view-model",{props:{data:_.ik}});var Bpf=_.Nv(function(x){var G=function(){var D;return(D=x.data().enableDebuggingFeatures)!=null?D:!1};
return _.M("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.M(_.LT,{each:function(){var D;return(D=x.data().stickers)!=null?D:[]}},function(D){return _.M(LBx,{data:function(){return D},
debugMode:G})}))},"Vg"),LBx=_.Nv(function(x){var G=_.qv(x,{debugMode:!1}).debugMode,D=_.wc(function(){var e;
return(e=x.data().region)==null?void 0:e.w},0),K=_.wc(function(){var e;
return(e=x.data().region)==null?void 0:e.h},0),z=_.wc(function(){var e;
return(e=x.data().region)==null?void 0:e.x},0),y=_.wc(function(){var e;
return(e=x.data().region)==null?void 0:e.y},0),c=_.WH(function(){var e=x.data().onTap;
e&&_.UI(e)}),W={};
return _.M("div",{class:_.ym("ytStoriesStickerLayerViewModelSticker",(W.ytStoriesStickerLayerViewModelDebugMode=G,W)),style:_.Ms({width:function(){return 100*D()+"%"},
height:function(){return 100*K()+"%"},
left:function(){return 100*z()+"%"},
top:function(){return 100*y()+"%"},
"flex-direction":function(){return jIj(x.data().flexDirection)},
"justify-content":function(){return OWf(x.data().justifyContent)},
"align-items":function(){return XgO(x.data().alignItems)}}),
"on:click":c},_.M(_.bA,{data:function(){return x.data().button||x.data().toggleButton}},{buttonViewModel:function(e){return _.M(_.Cs,{data:e.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(e){return _.M(_.rl,{data:e.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Wg");var sMi=_.Nv(function(x){var G=function(){return x.data()},D=_.wc(function(){return G().backgroundColor},0),K=_.wc(function(){return G().actionButtons},[]),z=_.wc(function(){return G().stickerLayer},{}),y={},c=function(){var e,Q;
return{animationRef:y,animationConfig:{autoplay:!1,loop:!1,path:(Q=(e=G().foregroundAnimation)==null?void 0:e.url)!=null?Q:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){x.navigateToNextItemOnLottieComplete()}}}},W=function(){var e,Q,p,V,L,r,H,O;
return{animationConfig:{autoplay:(r=(e=G().backgroundAnimation)==null?void 0:(Q=e.settings)==null?void 0:Q.autoplay)!=null?r:!1,loop:(H=(p=G().backgroundAnimation)==null?void 0:(V=p.settings)==null?void 0:V.loop)!=null?H:!1,path:(O=(L=G().backgroundAnimation)==null?void 0:L.url)!=null?O:"",name:"stories_item_background_animation"}}};
_.$9(function(){if(x.isVisible()){var e;(e=y.lottieEl)==null||e.play()}else{var Q;(Q=y.lottieEl)==null||Q.stop()}});
return _.M("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.Ms({"background-color":function(){return _.jT(D())+";"}})},_.M("div",{class:"ytStoriesItemViewModelAssetContent"},_.M(_.b,{cond:function(){return!!G().backgroundAnimation},
then:function(){return _.M(_.l_,{data:W,animationName:function(){return W().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.M(_.b,{cond:function(){return!!G().backgroundImage},
then:function(){return _.M(_.wk,{data:function(){return G().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.M(_.b,{cond:function(){return!!G().foregroundAnimation},
then:function(){return _.M(_.l_,{data:c,animationName:function(){return c().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.M(_.b,{cond:function(){return!!G().foregroundImage},
then:function(){return _.M(_.wk,{data:function(){return G().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.M("div",{class:"ytStoriesItemViewModelTopShadow"}),_.M(_.bA,{data:function(){return z()}},{storiesStickerLayerViewModel:Bpf})),_.M("div",{class:"ytStoriesItemViewModelBottomShadow"},_.M("div",{class:"ytStoriesItemViewModelActionButtonWrapper",
"on:click":_.WH(x.pauseAutoNavigation)},_.M(_.LT,{each:K},function(e){return _.M(rJ8,{data:function(){return e}})}))))},"Xg"),rJ8=_.Nv(function(x){var G={};
return _.M("div",{class:_.ym("ytStoriesItemViewModelActionButton",(G.ytStoriesItemViewModelStretchedActionButton=function(){return x.data().size==="STORIES_BUTTON_SIZE_STRETCH"},G))},_.M(_.bA,{data:function(){return x.data().button}},{buttonViewModel:function(D){return _.M(_.Cs,{data:D.data,
className:"ytStoriesItemViewModelButton"})}}))},"Yg");_.tn(_.Nv(function(x){var G=_.l(_.ZX(function(){var u;return(u=x.data().startIndex)!=null?u:0})),D=G.next().value,K=G.next().value;
G=_.l(_.eO(!1,void 0,"klmjc"));var z=G.next().value,y=G.next().value,c=function(){var u;return(u=x.data().storyItems)!=null?u:[]},W=function(){return x.data().dismissButton},e=function(){var u;
return _.Y((u=_.Y(W(),_.Ls))==null?void 0:u.onTap,_.IP)},Q=_.qi(),p,V=function(){var u;
(u=p)==null||u.cancel();p=L(D()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});p.onfinish=function(){L(D()).style.width="100%";var f=_.Y(c()[D()],mM6),v,P;f!=null&&f.foregroundAnimation&&((f==null?0:(v=f.foregroundAnimation)==null?0:v.url)||(f==null?0:(P=f.foregroundAnimation)==null?0:P.payload))||(D()!==c().length-1?(K(D()+1),V()):e()&&_.OI(e()))}},L=function(u){return Q.value.children[u].children[0]},r=function(){for(var u=0;u<D();u++)L(u).style.width="100%"};
G=_.WH(function(){z()?y(!1):(D()===c().length-1&&e()&&_.OI(e()),L(D()).style.width="100%",D()!==c().length-1&&(K(D()+1),V()))});
var H=_.WH(function(){z()?y(!1):(L(D()).style.width="0%",D()!==0?K(D()-1):K(D()),V())}),O=function(){y(!0)},A=function(){L(D()).style.width="100%";
D()!==c().length-1?(K(D()+1),V()):e()&&_.OI(e())},g=_.WH(function(){var u;
(u=p)==null||u.pause()});
_.$9(function(){if(z()){var u;(u=p)==null||u.pause()}else{var f;(f=p)==null||f.play()}});
_.$9(function(){r();D()===x.data().startIndex&&V()});
_.FQ(function(){r();V()});
return _.M("yt-stories-viewer-view-model",{class:_.ym("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.M("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.M("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":H,"on:mousedown":g}),_.M("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":G,"on:mousedown":g})),_.M(_.bA,{data:c},{storiesItemViewModel:function(u,f){var v=u.data;return _.M(_.b,{cond:function(){return Math.abs(f()-
D())<=1},
then:function(){var P={};return _.M("div",{class:_.ym("ytStoriesViewerViewModelStoryItem",(P.ytStoriesViewerViewModelHiddenStoryItem=function(){return f()!==D()},P))},_.M(sMi,{data:v,
pauseAutoNavigation:O,navigateToNextItemOnLottieComplete:A,isVisible:function(){return f()===D()}}))}})}}),_.M("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:Q},_.M(_.LT,{each:c},function(){return _.M("div",{class:"ytStoriesViewerViewModelProgressBar"},_.M("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.M("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.M(_.bA,{data:W},{buttonViewModel:_.Cs})))},"Zg"),"yt-stories-viewer-view-model",{props:{data:_.ik}});_.tn(_.Nv(function(x){var G=x.data;var D=_.qi(),K=[];return _.M("yt-gen-ai-feedback-form-view-model",{el:D,class:"ytGenAiFeedbackFormViewModelHost"},_.M(_.vq,{text:function(){return G().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.M("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.M(_.bA,{data:function(){return G().feedbackChips}},{toggleButtonViewModel:function(z){var y=z.data;
return _.M(_.rl,{data:y,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(c){var W=y();W=_.Y(W,_.Bq);W=_.Y(W==null?void 0:W.defaultButtonViewModel,_.Ls).trackingParams;c?K.push(W):(c=K.indexOf(W),c>-1&&K.splice(c,1))}})}})),_.M(_.vq,{text:function(){return G().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.M("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.M(_.bA,{data:function(){return G().submitButton}},{buttonViewModel:function(z){return _.M(_.Cs,{data:z.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){ANT(D.value,K,G().uniqueId)}})}}),_.M(_.bA,{data:function(){return G().moreFeedbackButton}},{buttonViewModel:function(z){return _.M(_.Cs,{data:z.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"$g"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.ik},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var UK=function(){return _.n.apply(this,arguments)||this};
_.m(UK,_.n);UK.prototype.created=function(){cSi(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(q3Y);var x=_.Eo().resolve(_.oeu);x&&(x.container=this.ytPopupContainerBehavior);if(x=_.Eo().resolve(_.bm))x.container=this.ytPopupContainerBehavior;if(x=_.Eo().resolve(_.LM)){var G=this.ytPopupContainerBehavior;x.containerWasInjected?_.O9(Error("$i")):x.container=G}};
UK.prototype.ensurePopupBelowPlayer=function(x,G){var D=_.Eo().resolve(_.P6(_.wG));if(!D||!D.isOnWatch()||!_.Ns())return!1;D=D.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.ZD().height>D+this.getPopupHeight(x,G)?(x.style.top="auto",x.style.bottom="0px"):(x.style.top=D+"px",x.style.bottom="auto");return!0};
UK.prototype.getPopupHeight=function(x,G){G&&(x.cachedPopupHeight=0);if(!x.cachedPopupHeight){G=0;var D=x.clientHeight,K=window.getComputedStyle(x);G+=parseInt(K.marginTop,10);G+=parseInt(K.marginBottom,10);x.cachedPopupHeight=D+G}return x.cachedPopupHeight};
UK.prototype.getElement=function(x){return document.createElement(x)};
_.q([_.I(Mbx.YtPopupContainerBehavior),_.N("design:type",Object)],UK.prototype,"ytPopupContainerBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],UK.prototype,"ytComponentBehavior",void 0);UK=_.q([_.d({disableElementRegistration:!0,is:"ytd-popup-container"})],UK);
_.w(UK,"ytd-popup-container",function(){if(zVk!==void 0)return zVk;var x=document.createElement("template");_.F(x,"\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");x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);return zVk=x},{mode:1});var YmT;var mnO={};mnO.YtLogYpcFlowCommandsBehavior=[_.tG.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(x){_.Y(x,wex)&&(x=_.Y(x,wex))&&(x.serializedTransactionFlowLoggingParams?_.Vyf(x.serializedTransactionFlowLoggingParams):x.serializedYpcCancelFlowLoggingParams?(x=x.serializedYpcCancelFlowLoggingParams)&&_.$Z("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",x):x.serializedYpcResumeFlowLoggingParams?(x=x.serializedYpcResumeFlowLoggingParams)&&_.$Z("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",x):x.serializedYpcPauseFlowLoggingParams?(x=x.serializedYpcPauseFlowLoggingParams)&&
_.$Z("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",x):x.serializedYpcRefundFlowLoggingParams?(x=x.serializedYpcRefundFlowLoggingParams)&&JvY("YPC_EVENT_TYPE_START",x):x.serializedYpcDeactivateFlowLoggingParams?(x=x.serializedYpcDeactivateFlowLoggingParams)&&_.$Z("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",x):x.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(x=x.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.$Z("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",x))},
handleLogYpcFlowDismiss_:function(x){_.Y(x,dMf)&&(x=_.Y(x,dMf),x.serializedTransactionFlowLoggingParams?_.bSE(x.serializedTransactionFlowLoggingParams):x.serializedYpcCancelFlowLoggingParams?(x=x.serializedYpcCancelFlowLoggingParams)&&_.$Z("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",x):x.serializedYpcResumeFlowLoggingParams?(x=x.serializedYpcResumeFlowLoggingParams)&&_.$Z("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",x):x.serializedYpcPauseFlowLoggingParams?(x=
x.serializedYpcPauseFlowLoggingParams)&&_.$Z("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",x):x.serializedYpcRefundFlowLoggingParams&&(x=x.serializedYpcRefundFlowLoggingParams)&&JvY("YPC_EVENT_TYPE_CANCEL",x))}}];var Hex={};Hex.YtCancelRecurrenceBehavior=[_.j$.YtComponentBehavior,_.BJu,{attached:function(){var x=this;JSb(this,function(G,D){return x.ypcCancelRecurrenceHandler(G,D)})},
ypcCancelRecurrenceHandler:function(x,G){var D=this;if(!G||!G.ypcCancelRecurrenceEndpoint)return!1;if(!G.ypcCancelRecurrenceEndpoint.params)return _.RE(Error("sl")),!0;_.uQ(this.hostElement);var K=_.Aa.instance,z=_.Eo().resolve(_.P6(_.mg));K&&_.Uu(K,G)?_.Rl(K,G).then(function(y){D.ypcCancelRecurrenceSuccess_(x,G,{data:y})},function(y){D.ypcCancelRecurrenceFailure_(x,G,y)}).thenCatch(function(){_.RE(Error("tl"))}):z?z.requestDataForServiceEndpoint(G).then(function(y){D.ypcCancelRecurrenceSuccess_(x,
G,y)},function(y){D.ypcCancelRecurrenceFailure_(x,G,y)}).thenCatch(function(){_.RE(Error("tl"))}):_.RE(Error("ul"));
return!0},
ypcCancelRecurrenceSuccess_:function(x,G,D){_.dj(this.hostElement);D.data||(D={data:D});D.data&&D.data.actions&&_.zl(this.hostElement,D.data.actions,this.hostElement);D.data.messageRenderer?t_O(G.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(G=G.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.$Z("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",G);_.h$(x,"yt-service-request-completed",D)},
ypcCancelRecurrenceFailure_:function(x,G,D){_.dj(this.hostElement);t_O(G.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.h$(x,"yt-service-request-error",{error:D,params:[x,G]})}}];var $n8=function(x,G){_.xC.call(this,G)};
_.m($n8,Vnk);var FBx={};FBx.YtCompleteTransactionBehavior=[_.j$.YtComponentBehavior,_.BJu,{attached:function(){var x=this;JSb(this,function(G,D){return x.ypcCompleteTransactionHandler(G,D)})},
completeTransaction:function(x,G){var D=this;G={payments_payload:window.btoa(G.integratorData),buybucket_params:x.data.buybucketParams,offer_params:x.data.offerParams};var K=_.Eo().resolve(_.mg),z=x.data.completeTransactionEndpoint,y=this.get("ypcCompleteTransactionEndpoint.actions",z);y&&_.zl(this.hostElement,y,this.hostElement);return(y=_.Aa.instance)&&_.Uu(y,z)?_.Rl(y,z,G).then(function(c){return!c||(c==null?0:c.error)?(c=D.get("data.serializedTransactionFlowLoggingParams",x),_.rk(new kF("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
c))):{data:c}}).then(function(c){return D.handleCompleteTransactionSuccess_(c,x)},function(){return D.handleCompleteTransactionFailure_(x)}):K.requestDataForServiceEndpoint(z,G).then(function(c){return D.handleCompleteTransactionSuccess_(c,x)},function(){return D.handleCompleteTransactionFailure_(x)})},
handleCompleteTransactionSuccess_:function(x,G){x.data||(x={data:x});if(x.data.messageRenderer)return _.rk(new $n8(x.data.messageRenderer));if(x.data.trackingParams){var D=_.CC(),K=_.Fx();D&&K&&_.RI(D,K,_.V2(x.data.trackingParams))}G=this.get("data.serializedTransactionFlowLoggingParams",G);fbc(G);return _.aI(x)},
handleCompleteTransactionFailure_:function(x){x=this.get("data.serializedTransactionFlowLoggingParams",x);_.nt("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",x);return _.rk(new kF("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",x))},
ypcCompleteTransactionHandler:function(x,G){var D=this;if(!G.ypcCompleteTransactionEndpoint)return!1;if(!G.ypcCompleteTransactionEndpoint.transactionParams)return _.RE(Error("vl")),!0;G.ypcCompleteTransactionEndpoint&&G.ypcCompleteTransactionEndpoint.gtmData&&_.Vb(G.ypcCompleteTransactionEndpoint.gtmData);var K=_.Eo().resolve(_.P6(_.mg));if(K){_.uQ(this.hostElement);var z=_.Aa.instance;z&&_.Uu(z,G)?_.Rl(z,G).then(function(y){return!y||(y==null?0:y.error)?(y=D.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
G),_.rk(new kF("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",y))):{data:y}}).then(function(y){_.h$(x,"yt-service-request-completed");
D.ypcCompleteTransactionSuccess_(G,y)},function(){return D.ypcCompleteTransactionFailure_(G)}):K.requestDataForServiceEndpoint(G).then(function(y){_.h$(x,"yt-service-request-completed");
D.ypcCompleteTransactionSuccess_(G,y)},function(){return D.ypcCompleteTransactionFailure_(G)})}return!0},
ypcCompleteTransactionSuccess_:function(x,G){_.dj(this.hostElement);G.data||(G={data:G});_.xO(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);G.data.messageRenderer||G.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(x):(_.Vb('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",x));G.data.actions&&(x=luc(G.data.actions),G=c$f(G.data.actions),x.length&&_.KW(this.hostElement,
x),G.length&&_.zl(this.hostElement,G,this.hostElement))},
ypcCompleteTransactionFailure_:function(x){_.dj(this.hostElement);_.xO(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",x,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(x,G,D){if(G=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",G))G={serializedTransactionFlowLoggingParams:G},D&&(G.errorType=D),_.Fv(x,G),_.CE()}}];var C$c={};C$c.YtEndpointHandlerWithYpcBehavior=[_.BJu,_.tG.YtActionHandlerBehavior,[{openWalletDialog:function(x,G,D,K,z,y,c){var W=this,e=_.Ss();G=G.replace(/-/g,"+").replace(/_/g,"/");var Q=_.M5().get("hl");_.uyL(_.x1(_.io),G,e.resolve,z,function(p){y&&y();e.reject(p)},Q,function(p){return W.onServerBackendAnalyticEvent_(x,D,p)},this.onDialogClose_.bind(this),K,c);
return e.promise},
openFixFlowDialog:function(x,G,D,K){x=x.replace(/-/g,"+").replace(/_/g,"/");_.x1(_.io).openFixFlowDialog(x,G,D,K)},
onDialogClose_:function(){_.xO(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(x,G,D){_.h$(x,"yt-commerce-action-init-done");G&&_.KW(this.hostElement,[G,{backend_analytics:D}])}}],
_.yU.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(x,G){x=this.get("data.nativeFlowEndpoint",G);G=this.get("data.fallbackEndpoint",G);x?_.KW(this.hostElement,[x]):G&&_.h$(this.hostElement,"yt-navigate",{endpoint:G})}}],
Hex.YtCancelRecurrenceBehavior,FBx.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 x=this;JSb(this,function(G,D,K){return x.handleYPCEndpoint(G,D,K)});
this.ypcRegisterActionMapJobId_=_.Bw(_.Fj,function(){x.registerActionMap(x.buyFlowActionMap_)})},
detached:function(){var x=this;_.Fj.cancelJob(this.ypcRegisterActionMapJobId_);_.Bw(_.Fj,function(){x.unregisterActionMap(x.buyFlowActionMap_)})},
handleYPCEndpoint:function(x,G,D){var K=G.ypcGetCartEndpoint;if(K){_.$O("commerce_transaction");var z=K.gtmId;z&&_.pF(z);(K=K.gtmData)&&_.Vb(K)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",G)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(x,G),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",G)!=null?(this.handleYPCFixInstrumentEndpoint_(x,G),!0):G.ypcPauseSubscriptionCommand?(wg4(this.hostElement,x,G,D),
!0):G.ypcResumeSubscriptionCommand?(vOi(this.hostElement,x,G),!0):G.getPaymentInstrumentsParamsCommand?(gOT(this.hostElement,x,G),!0):G.ypcHandleTransactionEndpoint?(nO4(this.hostElement,x,G,D),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(x,G){var D=this;_.Fs("ttcr",void 0,"commerce_transaction");G=G.ypcGetCartEndpoint;var K=G.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,z=K.encryptedPurchaseParams,y=K.serializedTransactionFlowLoggingParams,c=K.serializedPaymentsClientParams,W=this.createGetCartResponseFromParams_(K,G.offerParams,y);this.changeButtonState(x,!0);_.M_(this.openWalletDialog(x,z,K.ypcLogWalletAnalyticDataEndpoint,y,function(){D.changeButtonState(x,!1)},function(){D.changeButtonState(x,
!1)},c).then(function(e){return D.handleBuyFlowCompleteCallback_(x,W,e)},function(){return D.handleOnLoadError(W)}).then(function(e){return void D.handlePostPurchaseSuccess_(x,W,e)},function(e){return void D.handlePostPurchaseError_(e)}),function(){D.changeButtonState(x,!1);
x instanceof Element&&_.h$(x,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(x,G,D){var K=x.completeTransactionEndpoint,z=x.handleTransactionEndpoint;G={data:{offerParams:window.btoa(G),serializedTransactionFlowLoggingParams:D}};z?G.data.handleTransactionEndpoint=z:G.data.completeTransactionEndpoint=K;x.onCartDismissCommand&&(G.data.onCartDismissCommand=x.onCartDismissCommand);return G},
onGetCartServiceRequestCompleted_:function(x,G){var D=this,K=x.target;if(G&&G.data&&G.data.messageRenderer)_.dj(this.hostElement),this.handleMessageRenderer_(G.data.messageRenderer),this.changeButtonState(K,!1);else{var z=this.get("data.encryptedPurchaseParams",G),y=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",G),c=this.get("data.ypcLogWalletAnalyticDataEndpoint",G),W=this.get("data.serializedPaymentsClientParams",G),e=this.getLoggingParams_(G);if(e||z||y)x.stopPropagation(),_.Fs("ttcr",
void 0,"commerce_transaction"),z||_.dj(this.hostElement),this.changeButtonState(K,!1),y?_.xO(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.Am("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:y}}},this]):z&&(this.changeButtonState(K,!0),x=null,x=this.openWalletDialog(K,z,c,e,function(){_.dj(D.hostElement);D.changeButtonState(K,!1)},function(){_.dj(D.hostElement);
D.changeButtonState(K,!1)},W),_.M_(x.then(function(Q){return D.handleBuyFlowCompleteCallback_(K,G,Q)},function(){return D.handleOnLoadError(G)}).then(function(Q){return D.handlePostPurchaseSuccess_(K,G,Q)},function(Q){return D.handlePostPurchaseError_(Q)}),function(){D.changeButtonState(K,!1);
_.h$(K,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(x,G){G&&G.endpoint&&G.endpoint.ypcGetCartEndpoint&&!G.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",G.endpoint.ypcGetCartEndpoint)&&_.zl(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",G.endpoint.ypcGetCartEndpoint)],x.target),_.uQ(this.hostElement),this.changeButtonState(x.target,!0))},
onServiceRequestError_:function(x,G){if(G&&G.params&&G.params.length){G=_.l(G.params);for(var D=G.next();!D.done;D=G.next())if((D=D.value)&&D.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",D.ypcGetCartEndpoint)&&_.zl(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",D.ypcGetCartEndpoint)],x.target);_.dj(this.hostElement);this.changeButtonState(x.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(x,G,D){var K=D.integratorData;return K==null||K===""||D.error!=null?(K=this.getLoggingParams_(G),String(D.error)==="-1"?(G.data.onCartDismissCommand&&_.zl(this.hostElement,[G.data.onCartDismissCommand],x),_.rk(new kF("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",K,!0))):_.rk(new kF("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",K))):G.data.handleTransactionEndpoint?iWf(this.hostElement,G.data.handleTransactionEndpoint,{payments_payload:K,funds_guarantee_callback_client_data:D.integratorClientCallbackData}):
this.completeTransaction(G,D)},
handlePostPurchaseSuccess_:function(x,G,D){G=D.data;var K=!1,z,y;if(G&&((z=G.command)==null?0:(y=z.commandExecutorCommand)==null?0:y.commands)){var c,W;z=(c=G.command)==null?void 0:(W=c.commandExecutorCommand)==null?void 0:W.commands;for(c=0;c<z.length;c++)if(_.Y(z[c],_.lis)){K=!0;break}}K||(G&&G.gtmDatas&&G.gtmDatas.length?_.Vb(G.gtmDatas[0]):_.Vb('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));D.data&&D.data.actions&&(G=luc(D.data.actions),D=c$f(D.data.actions),G.length&&
_.KW(this.hostElement,G),D.length&&_.zl(this.hostElement,D,x))},
handlePostPurchaseError_:function(x){x&&x.payload&&x.payload.isUserDismiss||_.I4(Error("xl"))},
handleOnLoadError:function(x){x=this.getLoggingParams_(x);return _.rk(new kF("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",x))},
getLoggingParams_:function(x){return this.get("data.serializedTransactionFlowLoggingParams",x)},
handleMessageRenderer_:function(x){var G=_.jR(x,"renderer"),D=_.Am("openPopupConfig");G==="confirmDialogRenderer"&&D&&_.xO(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:D.popupTypeMap[G],popup:x}},this])},
handleYPCFixInstrumentEndpoint_:function(x,G){var D=this,K=G.ypcFixInstrumentEndpoint;G=K.encryptedFixInstrumentParameters;this.logFixFopEvent_(K,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(x,!0);this.openFixFlowDialog(G,function(z,y){D.onFixFlowCompleteCallback_(K,z,y)},function(){return D.changeButtonState(x,!1)},function(){D.changeButtonState(x,!1);
D.logFixFopEvent_(K,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(x,G,D){var K=_.nT("payments.business.integration.scenario.FixInstrument");if(G==K.IntegratorCallbackType.ON_COMPLETE){G="FIX_FOP_EVENT_TYPE_CANCEL";var z=null;D.error!=null?D.error!=K.OnCompleteCallbackError.USER_CANCELLED&&(_.zl(this.hostElement,[x.errorAction],this.hostElement),G="FIX_FOP_EVENT_TYPE_FAILURE",z="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.zl(this.hostElement,[x.successAction],this.hostElement),G="FIX_FOP_EVENT_TYPE_SUCCESS");_.zl(this.hostElement,[x.onFinishAction],
this.hostElement);this.logFixFopEvent_(x,G,z)}},
logFixFopEvent_:function(x,G,D){(x=x.serializedFixFopLoggingParams)?(G={eventType:G,serializedFixFopLoggingParams:x},D!=null&&(G.errorType=D),_.Fv("fixFopFlow",G),_.CE()):_.I4(Error("yl"))},
changeButtonState:function(x,G){_.B("enable_ypc_spinners")&&x&&(x.is==="yt-button-renderer"||x.is==="ytd-button-renderer")&&(x.disabled=G)}}];var IZ8=function(x){this.JSC$28757_clientRoot=x;this.feedbackCollectorActionMap={"yt-help-dialog-requested":fqc,"yt-feedback-dialog-requested":JNC,"yt-signal-action-help":t7f,"yt-signal-action-send-feedback":kl8,"yt-send-feedback-action":EOO,"yt-user-feedback-endpoint":h9i};_.uV(_.gu.getInstance(),this.feedbackCollectorActionMap,this.JSC$28757_clientRoot)},jMO;var Oek=function(x){this.JSC$28762_clientRoot=x;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":xWk.bind(null,this.JSC$28762_clientRoot),"yt-signal-action-delete-all-downloads":DW8,"yt-signal-action-delete-download":K8c,"yt-signal-action-delete-playlist-download":a2i,"yt-signal-action-install-pwa":W8b,"yt-signal-action-refresh-downloads":crO,"yt-offline-video-endpoint":Z36,"yt-offline-playlist-endpoint":Q_c,"yt-update-local-app-setting-command":V5O,"yt-offline-orchestration-action-command":L8i,
"yt-signal-action-undo-delete-download":yrO,"yt-local-watch-history-command":s_i};_.uV(_.gu.getInstance(),this.downloadManagerActionMap,this.JSC$28762_clientRoot);_.rA.instance=new _.rA},XFf;var RB=function(){var x=_.n.apply(this,arguments)||this;x.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_"};x.remoteApi_=null;return x};
_.m(RB,_.n);_.a=RB.prototype;
_.a.ready=function(){_.B("polymer_enable_mdx")&&(qVY({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.B("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.B("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.B("enable_cast_short_lived_lounge_token")}),_.z1("yt-remote-connection-change",this.handleConnectionChange_,this),_.z1("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=Pzf())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.a.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.a.handleConnectionChange_=function(x){(this.mdxConnected=x)?(x=JzT(),!x&&JU4()&&fP4()&&(x={key:"cast-selector-receiver",name:fP4()}),x=x.name):x=null;this.receiverName=x;_.kS(this.remoteApi_);(this.remoteApi_=Pzf())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.a.handleReceiverAvailabilityChange_=function(){var x=vVi();JU4()&&_.xt("yt-remote-cast-available")&&x.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=x.length>0};
_.a.handleRemoteQueueChange_=function(){var x=this.currentVideoId_,G=this.currentListId_,D=D3(this.remoteApi_);this.currentVideoId_=D.videoId;this.currentListId_=D.listId;this.currentVideoId_&&_.xO(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.B("polymer_enable_mdx_queue")?this.currentListId_:null,x,G])};
_.a.handleAddToQueueAction_=function(x){x=_.Y(x,HZO);this.remoteApi_&&(x.videoId?this.remoteApi_.addVideo(x.videoId):x.playlistId&&this.remoteApi_.addPlaylist(x.playlistId))};
_.a.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.a.handleInsertInQueueAction_=function(x){x=_.Y(x,$M8);this.remoteApi_&&x.videoId&&this.remoteApi_.JSC$17548_insertVideo(x.videoId)};
_.a.handleRemoveFromQueueAction_=function(x){x=_.Y(x,FKT);this.remoteApi_&&x.videoId&&this.remoteApi_.JSC$17548_removeVideo(x.videoId)};
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],RB.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R(),_.N("design:type",Object)],RB.prototype,"appId",void 0);_.q([_.R(),_.N("design:type",Boolean)],RB.prototype,"mdxConnected",void 0);_.q([_.R(),_.N("design:type",Boolean)],RB.prototype,"receiverAvailable",void 0);_.q([_.R(),_.N("design:type",Object)],RB.prototype,"receiverName",void 0);_.q([_.R(),_.N("design:type",Object)],RB.prototype,"currentVideoId_",void 0);
_.q([_.R(),_.N("design:type",Object)],RB.prototype,"currentListId_",void 0);RB=_.q([_.HD({is:"yt-mdx-manager",disableElementRegistration:!0})],RB);_.w(RB,"yt-mdx-manager",void 0,{mode:2});var AJ6;var UnO;var SQ=function(){var x=_.n.apply(this,arguments)||this;x.APP_IDS={ytr:3,ytm:5};x.JSC$18789_timeoutId_=0;x.actionMap={"yt-open-create-family-dialog":"open"};return x};
_.m(SQ,_.n);_.a=SQ.prototype;_.a.created=function(){cSi(2200)};
_.a.detached=function(){this.observer_&&this.observer_.disconnect()};
_.a.open=function(x,G){var D=this,K=x.serializedYpcFamilyCreateLoggingParams;this.JSC$18789_timeoutId_=setTimeout(this.abort_.bind(this,x.postFlowErrorEndpoint,K),3E4);G&&(this.onReadyCallback_=G);var z=_.kA(this.hostElement).querySelector("#unicorn-iframe");K&&K&&vK8("ypcFamilyCreateFlowStarted",K);_.WRO("family_creation",function(){var y=_.nT("gapi.family_creation.render");_.nT("gapi.config.update")("iframes/family_creation/url",D.getFamilyCreationUrlWithUnicornParams_());var c=3;x.appId&&x.appId in
D.APP_IDS&&(c=D.APP_IDS[x.appId]);c={authUser:_.Am("SESSION_INDEX")||0,clientId:c,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.Am("HL"),initialflow:[4,5,6,7],m:D.isMobile?1:0,onFlowComplete:D.onUnicornFlowComplete_.bind(D,x.postFlowSuccessEndpoint,K),onError:D.onUnicornFlowError_.bind(D,x.postFlowErrorEndpoint,K),onReady:D.onUnicornFlowReady_.bind(D,x.referencePcidParams)};y(z,c)})};
_.a.close=function(){_.kA(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.a.onUnicornFlowComplete_=function(x,G){this.close();G&&G&&vK8("ypcFamilyCreateFlowSucceeded",G);_.h$(this.hostElement,"yt-navigate",{endpoint:x})};
_.a.onUnicornFlowError_=function(x,G){this.close();G&&vK8("ypcFamilyCreateFlowCancelled",G);_.h$(this.hostElement,"yt-navigate",{endpoint:x})};
_.a.onUnicornFlowReady_=function(x){var G=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();x&&_.nT("gapi.family_creation.setConfig")(0,x);this.observer_=new MutationObserver(function(){_.kA(G.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.kA(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.kA(this.hostElement).querySelector("#dialog").open()};
_.a.getFamilyCreationUrlWithUnicornParams_=function(){return _.Am("YTR_FAMILY_CREATION_URL")};
_.a.getCurrentUrl_=function(){return document.location.href};
_.a.abort_=function(x,G){this.clearTimeout_();this.onUnicornFlowError_(x,G)};
_.a.clearTimeout_=function(){clearTimeout(this.JSC$18789_timeoutId_)};
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],SQ.prototype,"ytActionHandlerBehavior",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],SQ.prototype,"isMobile",void 0);_.q([_.R(),_.N("design:type",Object)],SQ.prototype,"onReadyCallback_",void 0);_.q([_.R(),_.N("design:type",Object)],SQ.prototype,"observer_",void 0);SQ=_.q([_.HD({is:"yt-create-family-dialog",disableElementRegistration:!0})],SQ);
_.w(SQ,"yt-create-family-dialog",function(){if(UnO===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);var G=x.content,D=G.insertBefore;AJ6===void 0&&(AJ6=document.createElement("template"));var K=AJ6;D.call(G,K.content.cloneNode(!0),x.content.firstChild);UnO=x}x=UnO;return x},{mode:2});var R8T;var Sm4;var nA=function(){var x=_.n.apply(this,arguments)||this;x.STEP=1;x.BLOCK_ON=80;x.MIN_PROGESS=0;x.MAX_PROGESS=100;return x};
_.m(nA,_.n);_.a=nA.prototype;_.a.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.a.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));_.Eo().addProvider({provide:$Z4,useValue:this})};
_.a.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.a.finish=function(){var x=this;this.progress=this.MAX_PROGESS;YAc(function(){x.progress==x.MAX_PROGESS&&(x.hostElement.hidden=!0)})};
_.a.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.Nq.Object.defineProperties(nA.prototype,{progress:{configurable:!0,enumerable:!0,set:function(x){this.progress_=x;var G="scaleX("+x/this.MAX_PROGESS+")",D=_.kA(this.hostElement).querySelector("#progress").style;D.transform=G;D.webkitTransform=G;this.hostElement.setAttribute("aria-valuenow",String(x))},
get:function(){return this.progress_}}});
_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],nA.prototype,"ytComponentBehavior",void 0);nA=_.q([_.HD({is:"yt-page-navigation-progress",disableElementRegistration:!0})],nA);
_.w(nA,"yt-page-navigation-progress",function(){if(Sm4===void 0){var x=document.createElement("template");_.F(x,'\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');x.content.insertBefore(_.E().content.cloneNode(!0),
x.content.firstChild);var G=x.content,D=G.insertBefore;R8T===void 0&&(R8T=document.createElement("template"));var K=R8T;D.call(G,K.content.cloneNode(!0),x.content.firstChild);Sm4=x}x=Sm4;return x},{mode:2});var nXT={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"},iek={"font-size":"12px","font-style":"italic"},gXx={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.F8x=function(){return _.T(function(x){_.c5(x)})};_.tn(_.Nv(function(){var x=_.F8(_.TwL);return _.M("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var G;return(G=x())==null?void 0:G.announcement})},"ah"),"yt-ephemeral-actions");var v_c=new Map;var HTY=function(x,G){var D=this;this.handleError=x;this.logEventInternal=G;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){D.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
HTY.prototype.logError=function(x){this.handleError(x)};
HTY.prototype.logEvent=function(x,G){switch(x){case "IDB_DATA_CORRUPTED":_.B("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",G);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",G);break;case "IS_SUPPORTED_COMPLETED":_.B("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",G);break;case "QUOTA_EXCEEDED":uZ8(this,G);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",G);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":x=Object.assign({},G,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",x)}};
var uZ8=function(x,G){_.lZ.getInstance().estimate().then(function(D){D=Object.assign({},G,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:f2j(D==null?void 0:D.usage),deviceStorageQuotaMbytes:f2j(D==null?void 0:D.quota)});x.logEventInternal("idbQuotaExceeded",D)})};var ij=function(){var x=_.n.apply(this,arguments)||this;x.tabGesturesIsActive=!1;x.deprecateFullerscreenUi=_.B("web_watch_fullerscreen_deprecation_ui");x.hasDelegation=!1;x.darkerDarkTheme=_.B("web_darker_dark_theme");x.isFrostedGlassInitialized=!1;x.frostedGlassExp=_.B("web_frosted_glass");x.mastheadHiddenFocusWithinKillswitch=_.B("web_masthead_hidden_focus_within_killswitch");x.ephemeralActionsEnabled=_.B("web_ephemeral_actions");x.scrollAtTop=!0;x.guideScrollTop=0;x.isTheaterModeSession=_.Uo("START_IN_THEATER_MODE");
x.iMaxTheaterMode=_.B("web_watch_imax_theater_mode");x.isFullWindowSession=_.Uo("START_IN_FULL_WINDOW_MODE");x.hasCreateFamilyDialog=!1;x.mastheadHeight=56;x.networkStatusManager=new _.w$;x.actionMap={"yt-command-executor-command":"handleCommandWithCommandHandler","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-edu-dismiss-action":"handleEduDismissAction","yt-edu-impression-action":"handleEduImpressionAction","yt-navigate-action":"onYtNavigateAction","yt-navigate-home-action":"onYtNavigateHomeAction",
"yt-player-fullscreen":"onPlayerFullscreen","yt-register-create-family-dialog":"onYtRegisterCreateFamilyDialog","yt-select-country-command":"handleCommandWithCommandHandler","yt-select-language-command":"handleSelectLanguageCommand","yt-set-push-notifications-enabled-command":"onSetPushNotificationsEnabledCommand","yt-signal-action-copy-debug-data":"onYtSignalActionCopyDebugData","yt-signal-action-enable-chrome-notifications":"onYtSignalActionEnableChromeNotifications","yt-signal-action-toggle-restricted-mode-on":"onYtSignalActionToggleRestrictedModeOnAction",
"yt-signal-action-toggle-restricted-mode-off":"onYtSignalActionToggleRestrictedModeOffAction","yt-signal-action-confirm-mentions-edu":"onYtSignalActionConfirmMentionsEdu","yt-signal-action-record-mentions-edu-impression":"onYtSignalActionRecordMentionsEduImpression","yt-signal-action-show-keyboard-shortcut-dialog":"onYtSignalActionShowKeyboardShortcutDialog","yt-signal-action-skip-navigation":"onYtSignalActionSkipNavigation","yt-signal-action-request-persistent-storage":"onYtSignalActionRequestPersistentStorage",
"yt-timed-command":"onYtTimedCommand","yt-window-resized":"onWindowResized","yt-window-scrolled":"onWindowScrolled","yt-invoke-instrument-manager-action":"onInvokeInstrumentManagerAction","yt-entity-update-command":"handleEntityUpdateCommand","yt-web-native-share-command":"handleCommandWithCommandHandler","yt-confirm-dialog-endpoint":"handleConfirmDialogEndpoint","yt-ad-feedback-endpoint":"handleOpenPopupNavigationEndpoints","yt-create-backstage-post-dialog-endpoint":"handleOpenPopupNavigationEndpoints",
"yt-manage-purchase-endpoint":"handleOpenPopupNavigationEndpoints","yt-modal-endpoint":"handleOpenPopupNavigationEndpoints","yt-unlimited-family-flow-endpoint":"handleOpenPopupNavigationEndpoints","yt-ypc-cancel-survey-endpoint":"handleOpenPopupNavigationEndpoints","yt-register-promo-command":"handleYtRegisterPromoCommand","yt-location-collection-command":"onYtLocationCollectionCommand","yt-get-location-command":"onYtGetLocationCommand","yt-log-flow-logging-event-command":"logFlowLoggingEventCommand",
"yt-save-command-to-session-storage-action":"handleSaveCommandToSessionStorage","yt-show-dma-consent-flow-command":"handleShowConsentPrimitive","yt-signal-action-show-dma-consent-flow":"handleShowConsentPrimitive","yt-show-mmg-notice-command":"handleShowConsentPrimitive","yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice",
"yt-select-active-identity-endpoint":"handleSelectActiveIdentityEndpointInternal","yt-update-permission-role-command":"handleUpdatePermissionRoleCommand","yt-channel-creation-form-endpoint":"handleYtChannelCreationFormEndpoints","yt-show-engagement-panel-endpoint":"handleShowEngagementPanelEndpoint","yt-google-payment-billing-command":"handleCommandWithCommandHandler"};x.dynamicActionMap={"yt-run-attestation-command":function(G){var D=_.inE.instance,K=_.Y(G,_.FIo);return K?_.B("use_rta_manager_for_async")&&
TTb()?hSc(D,K,G.clickTrackingParams):EAT(D,K,G.clickTrackingParams):_.rk(Error("ii"))}};
x.isFrostedGlassDisabled=!1;x.isChannelOrPlaylistPage=!1;return x};
_.m(ij,_.n);_.a=ij.prototype;_.a.created=function(){var x=_.Eo();_.B("kevlar_clear_duplicate_pref_cookie")&&_.Bw(_.Fj,function(){var G=_.MU.get("PREF");G&&!/f\d=/.test(G)&&(G=_.Db("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=G?"PREF=null;domain="+G+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.B("gzip_gel_with_worker")&&_.F8f();_.B("jspb_serialize_with_worker")&&RRb();_.B("web_worker_availability_check")&&Jrc();_.B("nwl_init_killswitch")||Amf().then(function(){_.Fj.addLowPriorityJob(xpc)});
this.pageManagerAttachedPromise=_.Ss();this.ytdAppBehavior.loadDepsPromise=_.Zz([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.Jc(this.onThrottledScroll,200,this);_.B("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);$hO();QPf=!!_.nT("ytappsettings.initialized");ao=_.nT("ytappsettings.previousValue");cvO=_.nT("ytappsettings.previousSnapshotTime");QPf||(QPf=!0,Txf());om4();y$j();_.XQ("DEFERRED_DETACH",
_.B("kevlar_tuner_should_defer_detach"));_.XQ("REUSE_COMPONENTS",!0);_.XQ("STAMPER_STABLE_LIST",!0);_.XQ("SCHEDULED_LAZY_LIST",!0);_.XQ("openPopupConfig",wGc);_.XQ("useClickHandler",!0);_.B("kevlar_shell_cleanup")&&_.Fj.addLowPriorityJob(V_i.bind(this,_.Df.caches));_.Uo("IS_SHELL_LOAD")&&_.Hg({shellStartupDurationMs:Math.round((0,_.kK)()-_.b0())});O34(this.networkStatusManager);_.B("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",mWj(nXT)),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!",
mWj(iek)),console.log("%cVisit http://go/join-youtube-web to apply today.",mWj(gXx)));_.CNC(x.resolve(_.z3),1E3)};
_.a.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var x=vTY();x&&!_.B("external_fullscreen_killswitch")&&document.addEventListener(x,this.setFullscreen.bind(this));(x=window.matchMedia("(prefers-color-scheme: dark)"))&&x.addEventListener&&x.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.a.attached=function(){var x=this;_.Fp().processSignal("ci");_.B("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.a8C?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.lh(_.Own(),"SUCCESS");this.updateIconSet();_.Py(this.guideInnerContent,!1);_.e$().initVisibilityObserver();this.guideService.guideElement=this.guide;var G=document.createElement("ytd-miniplayer"),D=_.kA(this.hostElement).querySelector("#content");
_.kA(this.hostElement).insertBefore(G,D);_.Fp().processSignal("ma");_.Eo().resolve(_.O$).init(G);_.Uo("IS_SHELL_LOAD")&&(D=document.createElement("ytd-network-status-banner"),_.kA(this.hostElement).insertBefore(D,G));_.B("kevlar_right_click_on_lockups")&&_.Xa._onCaptureClick&&document.addEventListener("contextmenu",_.Xa._onCaptureClick.bind(_.Xa),!0);var K=function(){var z=_.Nz("yt-page-navigation-progress");_.kA(x.hostElement).appendChild(z)};
setTimeout(function(){_.Fp().parkOrScheduleJob(K,0,"eocs",16)},0);
_.B("service_worker_push_enabled")&&_.Bw(_.Fj,NxC);_.uV(_.gu.getInstance(),this.dynamicActionMap,this.hostElement);_.h$(this.hostElement,"ytd-app-attached");_.Fp().processSignal("aa");lbf(this.hostElement);_.Jv("gapi.load",_.WRO);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.Bw(_.Fj,
function(){var z=document.createElement("ytd-video-preview");_.kA(_.kA(x.hostElement).querySelector("#video-preview")).appendChild(z)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.Bw(_.Fj,function(){C74();x.registerViewTransitionTasks()});
if(_.Bi()&&this.isAppDarkTheme()!==_.bo())this.onDarkModeToggledAction();else G=_.Lt()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==G&&(_.B("enable_dark_theme_only_on_shorts")?_.U4(_.B("enable_dark_theme_only_on_shorts_control")?window.location.href:_.qh(window.location.href,{theme:"dark"})):_.O9(new _.LL("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(JiY=new vPj(this.hostElement)),XFf=new Oek(this.hostElement),jMO=new IZ8(this.hostElement),eJO=new W3Y(this.hostElement)};
_.a.getThemeSettingsToLog=function(){var x=_.Lt()==="USER_INTERFACE_THEME_DARK";x=_.Bi()?_.bo()?"os-dark":"os-light":x?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:x,cookiesEnabled:_.pL()}};
_.a.detached=function(){_.Ef(this.guideInnerContent);_.Fj.cancelJob(DA);DA=0;_.Fj.cancelJob(zf);zf=0;_.u5$(yvf);yvf.length=0;zxf=_.PkV=null;_.e$().dispose();_.B("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.du(_.gu.getInstance(),JiY.playlistHandlerActionMap,JiY.JSC$28457_clientRoot);_.du(_.gu.getInstance(),XFf.downloadManagerActionMap,XFf.JSC$28762_clientRoot);_.du(_.gu.getInstance(),jMO.feedbackCollectorActionMap,jMO.JSC$28757_clientRoot);
for(var x=_.l(eJO.eventListeners),G=x.next();!G.done;G=x.next()){var D=_.l(G.value);G=D.next().value;D=D.next().value;D=_.l(D);for(var K=D.next();!K.done;K=D.next()){var z=_.l(K.value);K=z.next().value;z=z.next().value;G.removeEventListener(K,z)}}_.du(_.gu.getInstance(),eJO.autonavPauseActionMap,eJO.JSC$17733_clientRoot)};
_.a.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.M5().getFlag(186)};
_.a.computeIsInlinePreviewEnabled=function(x,G,D){return!D&&_.mYc({miniplayerIsActive:x,miniplayerPlaybackState:G})};
_.a.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.EO({type:"SET_FROSTED_GLASS_MODE",payload:!_.B("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"}))};
_.a.computeIsFrostedGlassDisabled=function(x,G,D,K){return x||G||D||K&&_.B("web_frosted_glass_disable_watch")};
_.a.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.B("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.a.computeIsHomePage=function(x,G){if(!x||G==null||!G.endpoint)return!1;var D;return((D=_.Y(G.endpoint,_.TU))==null?void 0:D.browseId)==="FEwhat_to_watch"};
_.a.updateIsChannelOrPlaylistPage=function(){if(_.B("web_frosted_glass")){var x,G,D=(G=(x=_.Eo().resolve(_.P6(_.wG)))==null?void 0:x.getCurrentPage())==null?void 0:G.pageSubtype;this.isChannelOrPlaylistPage=D?["channel","channels","playlist"].includes(D):!1}};
_.a.scheduleFrostedGlassInitialization=function(){var x=this;_.B("web_frosted_glass")&&_.Fp().parkOrScheduleJob(function(){x.isFrostedGlassInitialized=!0},0,_.FU(["eocs",
"cr"]),300)};
_.a.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.zK7(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.EO({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.EO({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.a.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(o$x(!0))};
_.a.onYtSignalActionRequestPersistentStorage=function(){if(!_.B("request_persistent_storage_killswitch")){var x=_.Eo().resolve(_.Bdu);x.cachedPersistStatePromise||(x.cachedPersistStatePromise=mvj())}};
_.a.handleYtChannelCreationFormEndpoints=function(x){x&&this.ytComponentBehavior.resolveCommand(x)};
_.a.handleShowEngagementPanelEndpoint=function(x){x&&this.ytComponentBehavior.resolveCommand(x)};
_.a.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(o$x(!1))};
_.a.initIconDefs=function(x,G,D){var K=document.createElement("iron-iconset-svg");K.name=x;x=document.createElementNS("http://www.w3.org/2000/svg","svg");K.appendChild(x);x.appendChild(G);if(D)for(var z in D)K[z]=D[z];document.body.appendChild(K);return K};
_.a.onWindowResized=function(){_.xO(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var x=_.Qdh.getInstance();x.documentWidth_=document.body.clientWidth;Htx(x)};
_.a.onWindowScrolled=function(){var x=_.Eo().resolve(_.wG).getCurrentPage();if(x!=null&&x.getScrollTop){var G=this.ytdReduxBehavior,D=G.dispatch;x=x.getScrollTop()<=0;D.call(G,_.EO({type:"SET_SCROLL_AT_TOP",payload:x}))}};
_.a.guideIsVisibleButNotPersistentSelectorChanged=function(){var x=_.Eo().resolve(_.wG).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=x.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"),
x.setScrollTop(this.guideScrollTop));_.Gl(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.a.getCurrentPageScrollableElementType=function(){var x=_.Eo().resolve(_.wG).getCurrentPage();if(x&&x.getPageScrollingElement())return x.getPageScrollingElement().nodeName};
_.a.observeGuideVisibility=function(){var x=_.Qdh.getInstance(),G=this.miniGuideVisible;x.guidePersistentAndVisible_=this.guidePersistentAndVisible;x.miniGuideVisible_=G;Htx(x)};
_.a.handleEduDismissAction=function(x){x&&x.eduDismissAction&&(_.xO(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.T8i.getInstance(),_.ua.set(x.eduDismissAction.key+"-dismissed",!0))};
_.a.handleEduImpressionAction=function(x){if(x&&x.eduImpressionAction){var G=_.T8i.getInstance();x=x.eduImpressionAction.key;G.JSC$10903_eduDisplayedThisLoad_[_.cMo[x].setKey||x]=!0;_.ua.set(x+"-impression",parseInt(_.ua.get(x+"-impression")||0,10)+1)}};
_.a.onYtSignalActionConfirmMentionsEdu=function(){_.xO(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.qZ.getInstance();_.wQ.set("edu-dismissed",!0)};
_.a.onYtSignalActionRecordMentionsEduImpression=function(){_.qZ.getInstance();var x=_.wQ.set,G=parseInt(_.wQ.get("edu-impressions"),10);x.call(_.wQ,"edu-impressions",(isFinite(G)?G:0)+1)};
_.a.onYtPageManagerAttached=function(x){var G;((G=_.uo(x))==null?void 0:G.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.a.onInvokeInstrumentManagerAction=function(x,G){E_x(G,x)};
_.a.updateIconSet=function(){var x=this.hostElement.querySelector("#masthead");if(x){var G=_.Pi(x),D=G.querySelector("g#yt-logo-updated");D&&(x=document.createElementNS("http://www.w3.org/2000/svg","defs"),x.appendChild(D.cloneNode(!0)),(G=G.querySelector("g#yt-logo-red-updated"))&&x.appendChild(G.cloneNode(!0)),this.initIconDefs("yt-logos-ext",x))}};
_.a.updateMastheadData=function(){var x=this,G,D,K,z,y;return _.T(function(c){if(c.nextAddress==1){G=x.data;D=x.hostElement.querySelector("#masthead");if(!D)return c.return();_.w1(x,function(){D.data=x.topbarData});
if(!x.get("response.topbar",G)||x.get("response.topbar.responseContext.maxAgeSeconds",G)===0)return c.jumpTo(0);if(K=_.Eo().resolve(_.iL))return _.Z(c,K(),6);z=_.Eo().resolve(_.xn);return _.Z(c,z.put("service:topbar:fallback",new _.Gp({innertubeResponse:x.get("response.topbar",G)})),0)}return(y=c.yieldResult)?_.Z(c,y.put("service:topbar:fallback",new _.Gp({innertubeResponse:x.get("response.topbar",G)})),0):c.jumpTo(0)})};
_.a.computeTopbarData=function(x){if(!x)return null;var G;return this.isShortsPage&&this.topbarData&&!_.Y((G=x.response)==null?void 0:G.topbar,eqc)?this.topbarData:x.response&&"topbar"in x.response?_.Y(x.response.topbar,eqc)||null:null};
_.a.onSetTheaterModeEnabled=function(x,G){this.isTheaterModeSession=G.enabled;this.setTheaterModeStyles(G.enabled)};
_.a.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.a.onDarkModeToggledAction=function(){var x=_.c0(window.location.href);if(!_.lNO(x)){(x=!!_.wT(window.location.href).themeRefresh)&&_.O9(new _.LL("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!x){Txf();x={themeRefresh:1};var G=_.Eo().resolve(_.wG);if(G.isOnWatch()){var D,K;G=((D=G.getPlayerFromWatch())==null?void 0:(K=D.getPlayer())==null?void 0:K.getCurrentTime())||0;G>=1&&(x.time_continue=Math.floor(G))}_.pL()||_.Lt()!=="USER_INTERFACE_THEME_DARK"||(x.theme="dark");_.U4(_.qh(window.location.href,
x))}_.B("web_appshell_refresh_trigger")&&_.Df.caches&&this.refreshAppShellResponse();D=_.Sq(window.location.href);_.zp(_.Eo().resolve(_.ad),_.J$(D,"theme"))}};
_.a.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.a.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.a.onPlayerFullscreen=function(x){_.t$();this.playerFullscreen=x};
_.a.setRestrictedMode=function(x){var G=_.M5();_.Qg(0,58,x);G.save();_.Eo().resolve(_.WP).reload()};
_.a.onPageChanged=function(x){x.detail.newPageType==="ytd-watch-flexy"||x.detail.newPageType==="ytd-watch-fixie"||x.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.s$("WEB_PAGE_TYPE_WATCH")):x.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.s$("WEB_PAGE_TYPE_SHORTS")):x.detail.newPageType==="ytd-browse"&&x.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.s$("WEB_PAGE_TYPE_MINI_APP")):_.B("web_frosted_glass")&&x.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.s$("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.s$("WEB_PAGE_TYPE_UNKNOWN"));x.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.a.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.a.onGuideToggleTap=function(){_.h$(this.hostElement,"yt-guide-toggle")};
_.a.onGuideToggleHover=function(){_.h$(this.hostElement,"yt-guide-hover")};
_.a.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.a.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.a.setMastheadTheme=function(){var x=_.Pi(this.hostElement).querySelector("#masthead");x&&(x.dark=x.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),x.isDarkThemeForced=!1)};
_.a.onRequestPanelModeChange=function(x,G){this.hideHeaderShadow=G.mode!=="seamed"};
_.a.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.a.onDrawerIronSelect=function(x){_.uo(x).id==="guide"&&this.processDrawerIronSelect()};
_.a.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var x="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(x="opened"));_.h$(this.hostElement,"yt-autonav-pause-guide-"+x)};
_.a.onAddElementToApp=function(x){_.kA(this.hostElement).appendChild(x.detail)};
_.a.onThrottledScroll=function(){var x=_.Eo().resolve(_.wG).getCurrentPage();x&&(this.scrollAtTop=x.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.a.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.a.setFullscreen=function(){if(_.B("external_fullscreen")||!this.isWatchPage){var x=_.B("kevlar_fullerscreen_root_only_killswitch")?!!_.t$():!!_.t$()&&_.t$()===document.documentElement;x=(this.isWatchPage||_.B("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(x||this.isFullWindowSession);this.fullscreen!==x&&((this.fullscreen=x)&&_.Gl(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.wK().dispatch(_.oTj(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.xO(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.a.setFullscreenLoggingForShorts=function(x){var G,D,K;return _.T(function(z){if(z.nextAddress==1)return _.Z(z,(G=_.Ns())==null?void 0:G.getPlayerPromise(),2);D=z.yieldResult;(K=D)==null||K.setAppFullscreen(x);_.c5(z)})};
_.a.updateMastheadCssHeight=function(){var x=this.mastheadHeight;this.fullscreen&&(x=0);_.K7(this.hostElement,{"--ytd-masthead-height":x+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.a.updateNetworkStatusBannerDisplayStatus=function(){var x="unset";this.fullscreen&&(x="none");_.K7(this.hostElement,{"--ytd-network-status-banner-display":x})};
_.a.updateNetworkStatusBannerCssHeight=function(){var x="unset";this.fullscreen&&(x="0px");_.K7(this.hostElement,{"--ytd-network-status-banner-max-height":x})};
_.a.updateScrollAndMasthead=function(x,G,D,K){this.iMaxTheaterMode||(K=!1);var z=_.Eo().resolve(_.wG).getCurrentPage();x||G||K?(document.body.classList.add("no-scroll"),z.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.ae(this,this.onScroll)),z.setScrollTop(0),_.K7(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.mO()+"px"})):D?_.h$(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.h$(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
z.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.ae(this,this.onScroll)));this.mastheadHidden=x||G||D;this.updateMastheadCssHeight();_.B("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.a.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.a.onYtNavigateAction=function(x){x=this.get("navigateAction.endpoint",x);_.h$(this.hostElement,"yt-navigate",{endpoint:x})};
_.a.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var x=document.createElement("yt-create-family-dialog");_.kA(this.hostElement).appendChild(x);this.hasCreateFamilyDialog=!0}};
_.a.onSetPushNotificationsEnabledCommand=function(x){var G=this,D=_.Y(x,WKc);D&&typeof D.enabled==="boolean"&&(Notification.permission!=="granted"?gKf().then(function(){Notification.permission==="granted"?(mUc(!D.enabled).then(FdY),D.successAction&&_.KW(G.hostElement,[D.successAction])):D.failureAction&&_.KW(G.hostElement,[D.failureAction])}):(mUc(!D.enabled).then(FdY),D.successAction&&_.KW(this.hostElement,[D.successAction])))};
_.a.onYtSignalActionEnableChromeNotifications=function(){uf4(!0)};
_.a.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.Y(this.topbarData.hotkeyDialog,Qc8)}}})};
_.a.onYtSignalActionShowKeyboardShortcutDialog=function(){_.xO(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.a.onYtEndpointChangeHandler=function(x,G){var D=_.x1(_.TP);D.pendingPrefetchJob_&&(G=!(!G||G.autonav!="1"),D.pendingPrefetchJob_.resolve(x&&_.Et3(x)?_.hJ$(x,G):""),D.pendingPrefetchJob_=null);_.xO(this.hostElement,"yt-pause-active-page-context");_.xO(this.hostElement,"ytd-log-youthere-nav");_.xO(this.hostElement,"yt-prepare-page-dispose")};
_.a.handleCommandWithCommandHandler=function(x,G){_.y2.instance.resolveCommand(x,{form:{element:G}})};
_.a.onYtTimedCommand=function(x){var G=this;x=_.Y(x,xMx);var D=x.command;D&&_.Vs(_.Fj,function(){var K=_.Y(D,_.XRh);K?(_.y2.instance.resolveCommand(D),G.maybeLogGetAnswerRequestTick(K)):_.zl(G.hostElement,[D],G.hostElement)},x.timeoutMs||0)};
_.a.maybeLogGetAnswerRequestTick=function(x){x&&x.isFirstRequest&&(_.$O("search_overview_answer"),_.Fs("so_rq",void 0,"search_overview_answer"))};
_.a.onYtSignalActionSkipNavigation=function(){var x=_.Eo().resolve(_.wG).getCurrentPage();_.Ju(x)};
_.a.onYtSignalActionCopyDebugData=function(){xO6()};
_.a.handleEntityUpdateCommand=function(x){_.ck(_.Y(x,_.R00).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.a.logFlowLoggingEventCommand=function(x){if(x=_.Y(x,_.nXV))if(x.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var G=x.flowEventNamespace,D=x.flowEventType,K=x.flowType;K&&G&&D&&_.N2E(_.zU(G,D,x.flowEventMetadata),K)}else{G=_.on();D=x.flowEventNamespace;K=x.flowEventType;var z=x.flowType;z&&D&&K&&_.an(G,_.zU(D,K,x.flowEventMetadata),z,x.flowNonce)}};
_.a.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.a.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.a.onTouchStart=function(){var x=_.ZH();_.CC()&&_.X8(x.JSC$11130_screenManager,{visualElement:x.ve})};
_.a.handleSelectLanguageCommand=function(x){if(x=_.Y(x,lKb).hl){var G=_.M5();G.set("hl",x);G.save();_.Eo().resolve(_.WP).reload()}};
_.a.handleConfirmDialogEndpoint=function(x){(x=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(x))&&this.ytOpenPopupBehavior.openPopup(x)};
_.a.handleOpenPopupNavigationEndpoints=function(x,G){_.B("web_button_rework")&&(x=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(x))&&this.ytOpenPopupBehavior.openPopup(x,G)};
_.a.handleSaveCommandToSessionStorage=function(x){if(x=_.Y(x,_.AjZ)){var G=x.key;G&&x.command&&window.sessionStorage.setItem(G,JSON.stringify(x.command))}};
_.a.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(x){x&&x.active&&x.active.postMessage({type:"refresh_shell"})}).catch(function(x){x.name!=="SecurityError"&&_.I4(x)})};
_.a.onDeviceThemeChanged=function(){var x=_.bo();_.Qg(_.M5(),185,x);_.M5().save()};
_.a.handleYtRegisterPromoCommand=function(x){if(_.Y(x,Trc)){var G=_.Eo().resolve(_.wG).getCurrentPage()||this.hostElement;BQc().registerPromoCommand(_.Y(x,Trc),G)}};
_.a.onYtNavigateHomeAction=function(){if(!_.B("kevlar_miniplayer_navigate_home_from_app_killswitch")){var x,G,D,K,z=(K=(x=this.topbarData)==null?void 0:(G=x.logo)==null?void 0:(D=G.topbarLogoRenderer)==null?void 0:D.endpoint)!=null?K:_.yM;this.ytComponentBehavior.resolveCommand(z)}};
_.a.onYtLocationCollectionCommand=function(x){$Wc(_.Y(x,YBk))};
_.a.onYtGetLocationCommand=function(x){ZCc(_.Y(x,scj),this)};
_.a.updateRenderGuideFromBinding=function(x){this.renderGuide=x.detail.value};
_.a.updateGuidePersistentAndVisibleFromBinding=function(x){this.guidePersistentAndVisible=x.detail.value};
_.a.updateMiniGuideVisibleFromBinding=function(x){this.miniGuideVisible=x.detail.value};
_.a.onThemeSelected=function(x,G){var D=_.M5(),K=x||G?x:_.bo(),z=(K&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!K&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.lNO(_.c0(window.location.href));_.Qg(0,165,x);_.Qg(0,174,G);D.save();z&&_.xO(this.hostElement,"yt-dark-mode-toggled-action",[K]);_.xO(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.a.getCurrentTheme=function(){return _.Bi()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Lt()};
_.a.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.a.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.a.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.a.handleShowConsentPrimitive=function(x){var G=this,D,K;return _.T(function(z){if(z.nextAddress==1){try{D=(K=_.Ns())==null?void 0:K.getPlayerPromise()}catch(y){}return _.Z(z,NKC(x,D),2)}_.xO(G.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.c5(z)})};
_.a.handleSelectActiveIdentityEndpointInternal=function(x){_.X5();x=_.Y(x,_.Ey8);if(x!=null&&x.supportedTokens){x=_.l(x.supportedTokens);for(var G=x.next();!G.done;G=x.next())G=G.value,G.accountSigninToken&&_.U4(G.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.a.handleUpdatePermissionRoleCommand=function(x){if(x=_.Y(x,_.kXs)){var G;this.hasDelegation=!((G=_.Y(x.renderer,_.tuo))==null||!G.status)}};
_.a.registerViewTransitionTasks=function(){var x=this,G=_.Eo().resolve(_.P6(_.MN));if(G){var D,K=(D=this.guide)==null?void 0:D.querySelector("#scrim"),z,y=(z=this.guide)==null?void 0:z.querySelector("#contentContainer");K&&y&&(D={beforeTransition:function(){var c;(c=x.guide)!=null&&c.persistent||(K.style.viewTransitionName="app-drawer-scrim",y.style.viewTransitionName="app-drawer-container")},
afterTransition:function(){var c;(c=x.guide)!=null&&c.persistent||(K.style.viewTransitionName="",y.style.viewTransitionName="")}},vz(G,"slide",D),vz(G,"zoom",D))}};
_.Nq.Object.defineProperties(ij.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.B("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.Nq.Object.defineProperties(ij,{template:{configurable:!0,enumerable:!0,get:function(){if(YmT===void 0){var x=document.createElement("template");_.F(x,'\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');
x.content.insertBefore(_.E().content.cloneNode(!0),x.content.firstChild);YmT=x}x=YmT;return x}}});
ij.prototype.onOpenHotkeyDialog=ij.prototype.onOpenHotkeyDialog;ij.prototype.setFullscreen=ij.prototype.setFullscreen;ij.prototype.onAddElementToApp=ij.prototype.onAddElementToApp;ij.prototype.onDrawerIronSelect=ij.prototype.onDrawerIronSelect;ij.prototype.onGuideOpenButtonHover=ij.prototype.onGuideOpenButtonHover;ij.prototype.onRequestPanelModeChange=ij.prototype.onRequestPanelModeChange;ij.prototype.onPageDataUpdated=ij.prototype.onPageDataUpdated;ij.prototype.onPageChanged=ij.prototype.onPageChanged;
ij.prototype.onSetTheaterModeEnabled=ij.prototype.onSetTheaterModeEnabled;ij.prototype.updateMastheadData=ij.prototype.updateMastheadData;ij.prototype.onYtPageManagerAttached=ij.prototype.onYtPageManagerAttached;ij.prototype.observeGuideVisibility=ij.prototype.observeGuideVisibility;ij.prototype.guideIsVisibleButNotPersistentSelectorChanged=ij.prototype.guideIsVisibleButNotPersistentSelectorChanged;ij.prototype.isInlinePreviewEnabledChanged=ij.prototype.isInlinePreviewEnabledChanged;
ij.prototype.isWatchPageChanged=ij.prototype.isWatchPageChanged;ij.prototype.dispatchFrostedGlassMode=ij.prototype.dispatchFrostedGlassMode;_.q([_.I(_.$l),_.N("design:type",Object)],ij.prototype,"ytdReduxBehavior",void 0);_.q([_.I(_.Tg.YtEventForwardingBehavior),_.N("design:type",Object)],ij.prototype,"ytEventForwardingBehavior",void 0);_.q([_.I(_.yU.YtOpenPopupBehavior),_.N("design:type",Object)],ij.prototype,"ytOpenPopupBehavior",void 0);
_.q([_.I(_.tG.YtActionHandlerBehavior),_.N("design:type",Object)],ij.prototype,"ytActionHandlerBehavior",void 0);_.q([_.I({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.gu.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.B("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var x;((x=this.actionRouterNode.hostElement)!=null?x:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var x;((x=this.actionRouterNode.hostElement)!=null?x:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(x){this.actionRouter_.handleAction(x.detail)}}),
_.N("design:type",Object)],ij.prototype,"ytActionRouterBehavior",void 0);_.q([_.I(Cax.YtdAppBehavior),_.N("design:type",Object)],ij.prototype,"ytdAppBehavior",void 0);_.q([_.I(_.l9.YtEndpointBehavior),_.N("design:type",Object)],ij.prototype,"ytEndpointBehavior",void 0);_.q([_.I(C$c.YtEndpointHandlerWithYpcBehavior),_.N("design:type",Object)],ij.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.q([_.I(mnO.YtLogYpcFlowCommandsBehavior),_.N("design:type",Object)],ij.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.q([_.I(_.h.YtRendererBehavior),_.N("design:type",Object)],ij.prototype,"ytRendererBehavior",void 0);_.q([_.I(_.j$.YtComponentBehavior),_.N("design:type",Object)],ij.prototype,"ytComponentBehavior",void 0);_.q([_.R({selector:_.zox}),_.N("design:type",Object)],ij.prototype,"tabGesturesIsActive",void 0);_.q([_.R(),_.N("design:type",Boolean)],ij.prototype,"renderGuide",void 0);
_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],ij.prototype,"guidePersistentAndVisible",void 0);_.q([_.R({selector:_.Kuj}),_.N("design:type",Boolean)],ij.prototype,"guideIsVisibleButNotPersistent",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],ij.prototype,"standalone",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],ij.prototype,"miniGuideVisible",void 0);
_.q([_.R({selector:_.czO}),_.N("design:type",Number)],ij.prototype,"miniplayerPlaybackState",void 0);_.q([_.R({selector:_.Hk,reflectToAttribute:!0}),_.N("design:type",Boolean)],ij.prototype,"miniplayerIsActive",void 0);_.q([_.R({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.N("design:type",Boolean)],ij.prototype,"isInlinePreviewEnabled",void 0);_.q([_.R(),_.N("design:type",Boolean)],ij.prototype,"isInlinePreviewDisabled",void 0);
_.q([_.R({reflectToAttribute:!0,value:function(){return _.Uo("START_IN_FULL_WINDOW_MODE")}}),
_.N("design:type",Boolean)],ij.prototype,"mastheadHidden",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],ij.prototype,"playerFullscreen",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],ij.prototype,"deprecateFullerscreenUi",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],ij.prototype,"fullscreen",void 0);_.q([_.R({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],ij.prototype,"hideHeaderShadow",void 0);
_.q([_.R({value:{GUIDE_ALT_LABEL:_.Wg("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.N("design:type",Object)],ij.prototype,"menuStrings",void 0);_.q([_.R({computed:"computeTopbarData(data)"}),_.N("design:type",Object)],ij.prototype,"topbarData",void 0);_.q([_.R({selector:_.$_}),_.N("design:type",Boolean)],ij.prototype,"isWatchPage",void 0);_.q([_.R({selector:_.oVC,reflectToAttribute:!0}),_.N("design:type",Boolean)],ij.prototype,"isShortsPage",void 0);
_.q([_.R({selector:function(x){return x.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.N("design:type",Boolean)],ij.prototype,"isMiniAppPage",void 0);_.q([_.R({selector:function(x){return x.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.N("design:type",Boolean)],ij.prototype,"isBrowsePage",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Boolean)],ij.prototype,"scrolling",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],ij.prototype,"hasDelegation",void 0);_.q([_.R({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],ij.prototype,"guideScrolledByTouch",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],ij.prototype,"darkerDarkTheme",void 0);
_.q([_.R(),_.N("design:type",Object)],ij.prototype,"isFrostedGlassInitialized",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],ij.prototype,"frostedGlassExp",void 0);_.q([_.R({selector:function(x){return x.ui.chipBarIsSticky}}),
_.N("design:type",Boolean)],ij.prototype,"chipBarIsSticky",void 0);_.q([_.R({computed:"computeIsHomePage(isBrowsePage, data)"}),_.N("design:type",Boolean)],ij.prototype,"isHomePage",void 0);_.q([_.R({reflectToAttribute:!0}),_.N("design:type",Object)],ij.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.q([_.R(),_.N("design:type",Object)],ij.prototype,"ephemeralActionsEnabled",void 0);_.q([_.Ne("guide"),_.N("design:type",Object)],ij.prototype,"guide",void 0);
_.q([_.Ne("guide-service"),_.N("design:type",QQ6)],ij.prototype,"guideService",void 0);_.q([_.Ne("guide-inner-content"),_.N("design:type",HTMLDivElement)],ij.prototype,"guideInnerContent",void 0);_.q([_.R({selector:_.WPV}),_.N("design:type",String)],ij.prototype,"frostedGlassMode",void 0);
_.q([_.yf("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ij.prototype,"dispatchFrostedGlassMode",null);_.q([_.R({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.N("design:type",Object)],ij.prototype,"isFrostedGlassDisabled",void 0);
_.q([_.yf("isWatchPage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ij.prototype,"isWatchPageChanged",null);_.q([_.U("isHomePage","chipBarIsSticky"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ij.prototype,"applyFrostedGlassToChipBar",null);_.q([_.R(),_.N("design:type",Object)],ij.prototype,"isChannelOrPlaylistPage",void 0);
_.q([_.Z6("isInlinePreviewEnabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ij.prototype,"isInlinePreviewEnabledChanged",null);_.q([_.yf("guideIsVisibleButNotPersistent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ij.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.q([_.yf("guidePersistentAndVisible","miniGuideVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ij.prototype,"observeGuideVisibility",null);_.q([_.oe("attached"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],ij.prototype,"onYtPageManagerAttached",null);_.q([_.yf("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],ij.prototype,"updateMastheadData",null);
_.q([_.oe("yt-set-theater-mode-enabled"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],ij.prototype,"onSetTheaterModeEnabled",null);_.q([_.oe("yt-page-type-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],ij.prototype,"onPageChanged",null);_.q([_.oe("yt-page-data-updated"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ij.prototype,"onPageDataUpdated",null);
_.q([_.oe("yt-request-panel-mode-change"),_.N("design:type",Function),_.N("design:paramtypes",[Event,Object]),_.N("design:returntype")],ij.prototype,"onRequestPanelModeChange",null);_.q([_.oe("yt-guide-hover"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ij.prototype,"onGuideOpenButtonHover",null);_.q([_.oe("app-drawer-transitioned"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],ij.prototype,"onDrawerIronSelect",null);
_.q([_.oe("yt-add-element-to-app"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],ij.prototype,"onAddElementToApp",null);_.q([_.oe("yt-set-fullerscreen-styles"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ij.prototype,"setFullscreen",null);_.q([_.oe("yt-open-hotkey-dialog"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ij.prototype,"onOpenHotkeyDialog",null);
ij=_.q([_.d({is:"ytd-app"})],ij);_.Fp().processSignal("eor");
_.Xk();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
